@metrifox/react-sdk 0.0.8 → 0.0.9
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 +0 -168
- package/dist/index.cjs +24 -17
- package/dist/index.js +23 -16
- package/dist/styles.css +1 -1
- package/package.json +4 -1
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var p=require("react"),o=require("react/jsx-runtime"),Ws=require("react-dom");function Ma(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var K=Ma(p),Pr=Ma(Ws),Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ar(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 Ta(e,t){return function(){return e.apply(t,arguments)}}const{toString:V0}=Object.prototype,{getPrototypeOf:Us}=Object,{iterator:Nr,toStringTag:Da}=Symbol,Rr=(e=>t=>{const n=V0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>Rr(t)===e),Fr=e=>t=>typeof t===e,{isArray:xn}=Array,yn=Fr("undefined");function Zn(e){return e!==null&&!yn(e)&&e.constructor!==null&&!yn(e.constructor)&&Oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pa=ot("ArrayBuffer");function $0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pa(e.buffer),t}const O0=Fr("string"),Oe=Fr("function"),Aa=Fr("number"),zn=e=>e!==null&&typeof e=="object",_0=e=>e===!0||e===!1,Vr=e=>{if(Rr(e)!=="object")return!1;const t=Us(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Da in e)&&!(Nr in e)},B0=e=>{if(!zn(e)||Zn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},I0=ot("Date"),H0=ot("File"),W0=ot("Blob"),U0=ot("FileList"),Z0=e=>zn(e)&&Oe(e.pipe),z0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oe(e.append)&&((t=Rr(e))==="formdata"||t==="object"&&Oe(e.toString)&&e.toString()==="[object FormData]"))},K0=ot("URLSearchParams"),[Y0,G0,q0,X0]=["ReadableStream","Request","Response","Headers"].map(ot),J0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),xn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Zn(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function Na(e,t){if(Zn(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Wt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ht)(),Ra=e=>!yn(e)&&e!==Wt;function Zs(){const{caseless:e,skipUndefined:t}=Ra(this)&&this||{},n={},r=(s,a)=>{const i=e&&Na(n,a)||a;Vr(n[i])&&Vr(s)?n[i]=Zs(n[i],s):Vr(s)?n[i]=Zs({},s):xn(s)?n[i]=s.slice():(!t||!yn(s))&&(n[i]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Kn(arguments[s],r);return n}const Q0=(e,t,n,{allOwnKeys:r}={})=>(Kn(t,(s,a)=>{n&&Oe(s)?e[a]=Ta(s,n):e[a]=s},{allOwnKeys:r}),e),e2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),t2=(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)},n2=(e,t,n,r)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Us(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},r2=(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},s2=e=>{if(!e)return null;if(xn(e))return e;let t=e.length;if(!Aa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},o2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Us(Uint8Array)),i2=(e,t)=>{const r=(e&&e[Nr]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},a2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},l2=ot("HTMLFormElement"),c2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Fa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),u2=ot("RegExp"),Va=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kn(n,(s,a)=>{let i;(i=t(s,a,e))!==!1&&(r[a]=i||s)}),Object.defineProperties(e,r)},d2=e=>{Va(e,(t,n)=>{if(Oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oe(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+"'")})}})},f2=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return xn(e)?r(e):r(String(e).split(t)),n},h2=()=>{},p2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function m2(e){return!!(e&&Oe(e.append)&&e[Da]==="FormData"&&e[Nr])}const g2=e=>{const t=new Array(10),n=(r,s)=>{if(zn(r)){if(t.indexOf(r)>=0)return;if(Zn(r))return r;if(!("toJSON"in r)){t[s]=r;const a=xn(r)?[]:{};return Kn(r,(i,l)=>{const c=n(i,s+1);!yn(c)&&(a[l]=c)}),t[s]=void 0,a}}return r};return n(e,0)},x2=ot("AsyncFunction"),y2=e=>e&&(zn(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),$a=((e,t)=>e?setImmediate:t?((n,r)=>(Wt.addEventListener("message",({source:s,data:a})=>{s===Wt&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Wt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oe(Wt.postMessage)),v2=typeof queueMicrotask<"u"?queueMicrotask.bind(Wt):typeof process<"u"&&process.nextTick||$a,b2=e=>e!=null&&Oe(e[Nr]);var M={isArray:xn,isArrayBuffer:Pa,isBuffer:Zn,isFormData:z0,isArrayBufferView:$0,isString:O0,isNumber:Aa,isBoolean:_0,isObject:zn,isPlainObject:Vr,isEmptyObject:B0,isReadableStream:Y0,isRequest:G0,isResponse:q0,isHeaders:X0,isUndefined:yn,isDate:I0,isFile:H0,isBlob:W0,isRegExp:u2,isFunction:Oe,isStream:Z0,isURLSearchParams:K0,isTypedArray:o2,isFileList:U0,forEach:Kn,merge:Zs,extend:Q0,trim:J0,stripBOM:e2,inherits:t2,toFlatObject:n2,kindOf:Rr,kindOfTest:ot,endsWith:r2,toArray:s2,forEachEntry:i2,matchAll:a2,isHTMLForm:l2,hasOwnProperty:Fa,hasOwnProp:Fa,reduceDescriptors:Va,freezeMethods:d2,toObjectSet:f2,toCamelCase:c2,noop:h2,toFiniteNumber:p2,findKey:Na,global:Wt,isContextDefined:Ra,isSpecCompliantForm:m2,toJSONObject:g2,isAsyncFn:x2,isThenable:y2,setImmediate:$a,asap:v2,isIterable:b2};function ee(e,t,n,r,s){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),s&&(this.response=s,this.status=s.status?s.status:null)}M.inherits(ee,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:M.toJSONObject(this.config),code:this.code,status:this.status}}});const Oa=ee.prototype,_a={};["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=>{_a[e]={value:e}}),Object.defineProperties(ee,_a),Object.defineProperty(Oa,"isAxiosError",{value:!0}),ee.from=(e,t,n,r,s,a)=>{const i=Object.create(Oa);M.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ee.call(i,l,c,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};var C2=null;function zs(e){return M.isPlainObject(e)||M.isArray(e)}function Ba(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function Ia(e,t,n){return e?e.concat(t).map(function(s,a){return s=Ba(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function w2(e){return M.isArray(e)&&!e.some(zs)}const k2=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function $r(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,y){return!M.isUndefined(y[x])});const r=n.metaTokens,s=n.visitor||d,a=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!c&&M.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,y){let v=m;if(m&&!y&&typeof m=="object"){if(M.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&w2(m)||(M.isFileList(m)||M.endsWith(x,"[]"))&&(v=M.toArray(m)))return x=Ba(x),v.forEach(function(b,j){!(M.isUndefined(b)||b===null)&&t.append(i===!0?Ia([x],j,a):i===null?x:x+"[]",u(b))}),!1}return zs(m)?!0:(t.append(Ia(y,x,a),u(m)),!1)}const f=[],h=Object.assign(k2,{defaultVisitor:d,convertValue:u,isVisitable:zs});function g(m,x){if(!M.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),M.forEach(m,function(v,C){(!(M.isUndefined(v)||v===null)&&s.call(t,v,M.isString(C)?C.trim():C,x,h))===!0&&g(v,x?x.concat(C):[C])}),f.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ha(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ks(e,t){this._pairs=[],e&&$r(e,this,t)}const Wa=Ks.prototype;Wa.append=function(t,n){this._pairs.push([t,n])},Wa.toString=function(t){const n=t?function(r){return t.call(this,r,Ha)}:Ha;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function j2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ua(e,t,n){if(!t)return e;const r=n&&n.encode||j2;M.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=M.isURLSearchParams(t)?t.toString():new Ks(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class L2{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){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Za=L2,za={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},E2=typeof URLSearchParams<"u"?URLSearchParams:Ks,S2=typeof FormData<"u"?FormData:null,M2=typeof Blob<"u"?Blob:null,T2={isBrowser:!0,classes:{URLSearchParams:E2,FormData:S2,Blob:M2},protocols:["http","https","file","blob","url","data"]};const Ys=typeof window<"u"&&typeof document<"u",Gs=typeof navigator=="object"&&navigator||void 0,D2=Ys&&(!Gs||["ReactNative","NativeScript","NS"].indexOf(Gs.product)<0),P2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),A2=Ys&&window.location.href||"http://localhost";var N2=Object.freeze({__proto__:null,hasBrowserEnv:Ys,hasStandardBrowserWebWorkerEnv:P2,hasStandardBrowserEnv:D2,navigator:Gs,origin:A2}),Me={...N2,...T2};function R2(e,t){return $r(e,new Me.classes.URLSearchParams,{visitor:function(n,r,s,a){return Me.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function F2(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function V2(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r<s;r++)a=n[r],t[a]=e[a];return t}function Ka(e){function t(n,r,s,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=n.length;return i=!i&&M.isArray(s)?s.length:i,c?(M.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!M.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],a)&&M.isArray(s[i])&&(s[i]=V2(s[i])),!l)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,s)=>{t(F2(r),s,n,0)}),n}return null}function $2(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qs={transitional:za,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return s?JSON.stringify(Ka(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return R2(t,this.formSerializer).toString();if((l=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $r(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),$2(t)):t}],transformResponse:[function(t){const n=this.transitional||qs.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{qs.headers[e]={}});var Xs=qs;const O2=M.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 _2=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&
|
|
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(s=>r.set(s)),r}static accessor(t){const r=(this[Ya]=this[Ya]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=Yn(i);r[l]||(W2(s,i),r[l]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}}_r.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.reduceDescriptors(_r.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),M.freezeMethods(_r);var it=_r;function Qs(e,t){const n=this||Xs,r=t||n,s=it.from(r.headers);let a=r.data;return M.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Ga(e){return!!(e&&e.__CANCEL__)}function vn(e,t,n){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(vn,ee,{__CANCEL__:!0});function qa(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ee("Request failed with status code "+n.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function U2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[a];i||(i=u),n[s]=c,r[s]=u;let f=a,h=0;for(;f!==s;)h+=n[f++],f=f%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),u-i<t)return;const g=d&&u-d;return g?Math.round(h*1e3/g):void 0}}function z2(e,t){let n=0,r=1e3/t,s,a;const i=(u,d=Date.now())=>{n=d,s=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?i(u,d):(s=u,a||(a=setTimeout(()=>{a=null,i(s)},r-f)))},()=>s&&i(s)]}const Br=(e,t,n=3)=>{let r=0;const s=Z2(50,250);return z2(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-r,u=s(c),d=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Xa=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ja=e=>(...t)=>M.asap(()=>e(...t));var K2=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,Y2=Me.hasStandardBrowserEnv?{write(e,t,n,r,s,a){const i=[e+"="+encodeURIComponent(t)];M.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),M.isString(r)&&i.push("path="+r),M.isString(s)&&i.push("domain="+s),a===!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 G2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qa(e,t,n){let r=!G2(t);return e&&(r||n==!1)?q2(e,t):t}const el=e=>e instanceof it?{...e}:e;function Ut(e,t){t=t||{};const n={};function r(u,d,f,h){return M.isPlainObject(u)&&M.isPlainObject(d)?M.merge.call({caseless:h},u,d):M.isPlainObject(d)?M.merge({},d):M.isArray(d)?d.slice():d}function s(u,d,f,h){if(M.isUndefined(d)){if(!M.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function a(u,d){if(!M.isUndefined(d))return r(void 0,d)}function i(u,d){if(M.isUndefined(d)){if(!M.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:a,method:a,data:a,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:l,headers:(u,d,f)=>s(el(u),el(d),f,!0)};return M.forEach(Object.keys({...e,...t}),function(d){const f=c[d]||s,h=f(e[d],t[d],d);M.isUndefined(h)&&f!==l||(n[d]=h)}),n}var tl=e=>{const t=Ut({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=it.from(i),t.url=Ua(Qa(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),M.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(M.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(Me.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(t)),r||r!==!1&&K2(t.url))){const c=s&&a&&Y2.read(a);c&&i.set(s,c)}return t};const X2=typeof XMLHttpRequest<"u";var J2=X2&&function(e){return new Promise(function(n,r){const s=tl(e);let a=s.data;const i=it.from(s.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=s,d,f,h,g,m;function x(){g&&g(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function v(){if(!y)return;const b=it.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:b,config:e,request:y};qa(function(A){n(A),x()},function(A){r(A),x()},k),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(r(new ee("Request aborted",ee.ECONNABORTED,e,y)),y=null)},y.onerror=function(j){const k=j&&j.message?j.message:"Network Error",L=new ee(k,ee.ERR_NETWORK,e,y);L.event=j||null,r(L),y=null},y.ontimeout=function(){let j=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const k=s.transitional||za;s.timeoutErrorMessage&&(j=s.timeoutErrorMessage),r(new ee(j,k.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,y)),y=null},a===void 0&&i.setContentType(null),"setRequestHeader"in y&&M.forEach(i.toJSON(),function(j,k){y.setRequestHeader(k,j)}),M.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&l!=="json"&&(y.responseType=s.responseType),u&&([h,m]=Br(u,!0),y.addEventListener("progress",h)),c&&y.upload&&([f,g]=Br(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=b=>{y&&(r(!b||b.type?new vn(null,e,y):b),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const C=U2(s.url);if(C&&Me.protocols.indexOf(C)===-1){r(new ee("Unsupported protocol "+C+":",ee.ERR_BAD_REQUEST,e));return}y.send(a||null)})};const Q2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(u){if(!s){s=!0,l();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ee?d:new vn(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,a(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>M.asap(l),c}};var ef=Q2;const tf=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},nf=async function*(e,t){for await(const n of rf(e))yield*tf(n,t)},rf=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()}},nl=(e,t,n,r)=>{const s=nf(e,t);let a=0,i,l=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await s.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),s.return()}},{highWaterMark:2})},rl=64*1024,{isFunction:Ir}=M,sf=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:sl,TextEncoder:ol}=M.global,il=(e,...t)=>{try{return!!e(...t)}catch{return!1}},of=e=>{e=M.merge.call({skipUndefined:!0},sf,e);const{fetch:t,Request:n,Response:r}=e,s=t?Ir(t):typeof fetch=="function",a=Ir(n),i=Ir(r);if(!s)return!1;const l=s&&Ir(sl),c=s&&(typeof ol=="function"?(m=>x=>m.encode(x))(new ol):async m=>new Uint8Array(await new n(m).arrayBuffer())),u=a&&l&&il(()=>{let m=!1;const x=new n(Me.origin,{body:new sl,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!x}),d=i&&l&&il(()=>M.isReadableStream(new r("").body)),f={stream:d&&(m=>m.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(x,y)=>{let v=x&&x[m];if(v)return v.call(x);throw new ee(`Response type '${m}' is not supported`,ee.ERR_NOT_SUPPORT,y)})});const h=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new n(Me.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await c(m)).byteLength},g=async(m,x)=>{const y=M.toFiniteNumber(m.getContentLength());return y??h(x)};return async m=>{let{url:x,method:y,data:v,signal:C,cancelToken:b,timeout:j,onDownloadProgress:k,onUploadProgress:L,responseType:A,headers:D,withCredentials:H="same-origin",fetchOptions:V}=tl(m),O=t||fetch;A=A?(A+"").toLowerCase():"text";let z=ef([C,b&&b.toAbortSignal()],j),Z=null;const P=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let F;try{if(L&&u&&y!=="get"&&y!=="head"&&(F=await g(D,v))!==0){let W=new n(x,{method:"POST",body:v,duplex:"half"}),Y;if(M.isFormData(v)&&(Y=W.headers.get("content-type"))&&D.setContentType(Y),W.body){const[_,N]=Xa(F,Br(Ja(L)));v=nl(W.body,rl,_,N)}}M.isString(H)||(H=H?"include":"omit");const E=a&&"credentials"in n.prototype,T={...V,signal:z,method:y.toUpperCase(),headers:D.normalize().toJSON(),body:v,duplex:"half",credentials:E?H:void 0};Z=a&&new n(x,T);let S=await(a?O(Z,V):O(x,T));const $=d&&(A==="stream"||A==="response");if(d&&(k||$&&P)){const W={};["status","statusText","headers"].forEach(I=>{W[I]=S[I]});const Y=M.toFiniteNumber(S.headers.get("content-length")),[_,N]=k&&Xa(Y,Br(Ja(k),!0))||[];S=new r(nl(S.body,rl,_,()=>{N&&N(),P&&P()}),W)}A=A||"text";let R=await f[M.findKey(f,A)||"text"](S,m);return!$&&P&&P(),await new Promise((W,Y)=>{qa(W,Y,{data:R,headers:it.from(S.headers),status:S.status,statusText:S.statusText,config:m,request:Z})})}catch(E){throw P&&P(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,m,Z),{cause:E.cause||E}):ee.from(E,E&&E.code,m,Z)}}},af=new Map,al=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:s}=t,a=[r,s,n];let i=a.length,l=i,c,u,d=af;for(;l--;)c=a[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:of(t)),d=u;return u};al();const eo={http:C2,xhr:J2,fetch:{get:al}};M.forEach(eo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ll=e=>`- ${e}`,lf=e=>M.isFunction(e)||e===null||e===!1;var cl={getAdapter:(e,t)=>{e=M.isArray(e)?e:[e];const{length:n}=e;let r,s;const a={};for(let i=0;i<n;i++){r=e[i];let l;if(s=r,!lf(r)&&(s=eo[(l=String(r)).toLowerCase()],s===void 0))throw new ee(`Unknown adapter '${l}'`);if(s&&(M.isFunction(s)||(s=s.get(t))))break;a[l||"#"+i]=s}if(!s){const i=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
|
4
|
-
`+i.map(
|
|
5
|
-
`):" "+
|
|
6
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ut(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&Wr.assertOptions(r,{silentJSONParsing:ft.transitional(ft.boolean),forcedJSONParsing:ft.transitional(ft.boolean),clarifyTimeoutError:ft.transitional(ft.boolean)},!1),s!=null&&(M.isFunction(s)?n.paramsSerializer={serialize:s}:Wr.assertOptions(s,{encode:ft.function,serialize:ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Wr.assertOptions(n,{baseUrl:ft.spelling("baseURL"),withXsrfToken:ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&M.merge(a.common,a[n.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=it.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,f=0,h;if(!c){const m=[ul.bind(this),void 0];for(m.unshift(...l),m.push(...u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=l.length;let g=n;for(;f<h;){const m=l[f++],x=l[f++];try{g=m(g)}catch(y){x.call(this,y);break}}try{d=ul.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Ut(this.defaults,t);const n=Qa(t.baseURL,t.url,t.allowAbsoluteUrls);return Ua(n,t.params,t.paramsSerializer)}}M.forEach(["delete","get","head","options"],function(t){Ur.prototype[t]=function(n,r){return this.request(Ut(r||{},{method:t,url:n,data:(r||{}).data}))}}),M.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(Ut(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ur.prototype[t]=n(),Ur.prototype[t+"Form"]=n(!0)});var Zr=Ur;class va{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(s=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new vn(a,i,l),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 va(function(s){t=s}),cancel:t}}}var uf=va;function df(e){return function(n){return e.apply(null,n)}}function ff(e){return M.isObject(e)&&e.isAxiosError===!0}const no={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(no).forEach(([e,t])=>{no[t]=e});var hf=no;function hl(e){const t=new Zr(e),n=Ta(Zr.prototype.request,t);return M.extend(n,Zr.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return hl(Ut(e,s))},n}const ve=hl(Xs);ve.Axios=Zr,ve.CanceledError=vn,ve.CancelToken=uf,ve.isCancel=Ga,ve.VERSION=dl,ve.toFormData=$r,ve.AxiosError=ee,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=df,ve.isAxiosError=ff,ve.mergeConfig=Ut,ve.AxiosHeaders=it,ve.formToJSON=e=>Ka(M.isHTMLForm(e)?new FormData(e):e),ve.getAdapter=cl.getAdapter,ve.HttpStatusCode=hf,ve.default=ve;var pf=ve,mf=Ar(pf);const pl=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(g=>g(t,h))}},s=()=>t,l={setState:r,getState:s,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u))},c=t=e(r,s,l);return l},gf=e=>e?pl(e):pl,xf=e=>e;function yf(e,t=xf){const n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}const ml=e=>{const t=gf(e),n=r=>yf(t,r);return Object.assign(n,t),n},ro=e=>e?ml(e):ml,gl=ro(e=>({clientKey:"",baseUrl:"",setConfig:(t,n)=>e({clientKey:t,baseUrl:n})})),xl="https://api.metrifox.com/api/v1",at=()=>{const{clientKey:e,baseUrl:t}=gl.getState();if(!e)throw new Error("MetriFox SDK not initialized: Client key is missing. Please call metrifoxInit(clientKey) before using SDK feature(s).");return mf.create({baseURL:t||xl,headers:{"x-client-key":e,"Content-Type":"application/json"},timeout:18e4})},vf=e=>{gl.getState().setConfig(e.clientKey,e.baseUrl||xl)};function bf(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 Cf=e=>{switch(e){case"success":return jf;case"info":return Ef;case"warning":return Lf;case"error":return Sf;default:return null}},wf=Array(12).fill(0),kf=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},wf.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),jf=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),Lf=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),Ef=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),Sf=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),Mf=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Tf=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let so=1;class Df{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,...s}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:so++,i=this.toasts.find(c=>c.id===a),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...t,id:a,title:r}),{...c,...t,id:a,dismissible:l,title:r}):c):this.addToast({title:r,...s,dismissible:l,id:a}),a},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 s=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,i;const l=s.then(async u=>{if(i=["resolve",u],p.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(Af(u)&&!u.ok){a=!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,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(u instanceof Error){a=!1;const f=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){a=!1;const f=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...m})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){a=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...g})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,d)=>l.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||so++;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 _e=new Df,Pf=(e,t)=>{const n=t?.id||so++;return _e.addToast({title:e,...t,id:n}),n},Af=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Nf=Pf,Rf=()=>_e.toasts,Ff=()=>_e.getActiveToasts(),Ct=Object.assign(Nf,{success:_e.success,info:_e.info,warning:_e.warning,error:_e.error,custom:_e.custom,message:_e.message,promise:_e.promise,dismiss:_e.dismiss,loading:_e.loading},{getHistory:Rf,getToasts:Ff});bf("[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 zr(e){return e.label!==void 0}const Vf=3,$f="24px",Of="16px",yl=4e3,_f=356,Bf=14,If=45,Hf=200;function ht(...e){return e.filter(Boolean).join(" ")}function Wf(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Uf=e=>{var t,n,r,s,a,i,l,c,u;const{invert:d,toast:f,unstyled:h,interacting:g,setHeights:m,visibleToasts:x,heights:y,index:v,toasts:C,expanded:b,removeToast:j,defaultRichColors:k,closeButton:L,style:A,cancelButtonStyle:D,actionButtonStyle:H,className:V="",descriptionClassName:O="",duration:z,position:Z,gap:P,expandByDefault:F,classNames:E,icons:T,closeButtonAriaLabel:S="Close toast"}=e,[$,R]=p.useState(null),[W,Y]=p.useState(null),[_,N]=p.useState(!1),[I,Q]=p.useState(!1),[ne,G]=p.useState(!1),[oe,re]=p.useState(!1),[le,J]=p.useState(!1),[q,ye]=p.useState(0),[ie,de]=p.useState(0),pe=p.useRef(f.duration||z||yl),We=p.useRef(null),me=p.useRef(null),nt=v===0,Bs=v+1<=x,Ue=f.type,pn=f.dismissible!==!1,M0=f.className||"",T0=f.descriptionClassName||"",Mr=p.useMemo(()=>y.findIndex(te=>te.toastId===f.id)||0,[y,f.id]),D0=p.useMemo(()=>{var te;return(te=f.closeButton)!=null?te:L},[f.closeButton,L]),Ca=p.useMemo(()=>f.duration||z||yl,[f.duration,z]),Is=p.useRef(0),mn=p.useRef(0),wa=p.useRef(0),gn=p.useRef(null),[P0,A0]=Z.split("-"),ka=p.useMemo(()=>y.reduce((te,ke,Se)=>Se>=Mr?te:te+ke.height,0),[y,Mr]),ja=Tf(),N0=f.invert||d,Hs=Ue==="loading";mn.current=p.useMemo(()=>Mr*P+ka,[Mr,ka]),p.useEffect(()=>{pe.current=Ca},[Ca]),p.useEffect(()=>{N(!0)},[]),p.useEffect(()=>{const te=me.current;if(te){const ke=te.getBoundingClientRect().height;return de(ke),m(Se=>[{toastId:f.id,height:ke,position:f.position},...Se]),()=>m(Se=>Se.filter(Ze=>Ze.toastId!==f.id))}},[m,f.id]),p.useLayoutEffect(()=>{if(!_)return;const te=me.current,ke=te.style.height;te.style.height="auto";const Se=te.getBoundingClientRect().height;te.style.height=ke,de(Se),m(Ze=>Ze.find(Le=>Le.toastId===f.id)?Ze.map(Le=>Le.toastId===f.id?{...Le,height:Se}:Le):[{toastId:f.id,height:Se,position:f.position},...Ze])},[_,f.title,f.description,m,f.id,f.jsx,f.action,f.cancel]);const At=p.useCallback(()=>{Q(!0),ye(mn.current),m(te=>te.filter(ke=>ke.toastId!==f.id)),setTimeout(()=>{j(f)},Hf)},[f,j,m,mn]);p.useEffect(()=>{if(f.promise&&Ue==="loading"||f.duration===1/0||f.type==="loading")return;let te;return b||g||ja?(()=>{if(wa.current<Is.current){const Ze=new Date().getTime()-Is.current;pe.current=pe.current-Ze}wa.current=new Date().getTime()})():(()=>{pe.current!==1/0&&(Is.current=new Date().getTime(),te=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),At()},pe.current))})(),()=>clearTimeout(te)},[b,g,f,Ue,ja,At]),p.useEffect(()=>{f.delete&&(At(),f.onDismiss==null||f.onDismiss.call(f,f))},[At,f.delete]);function R0(){var te;if(T?.loading){var ke;return p.createElement("div",{className:ht(E?.loader,f==null||(ke=f.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":Ue==="loading"},T.loading)}return p.createElement(kf,{className:ht(E?.loader,f==null||(te=f.classNames)==null?void 0:te.loader),visible:Ue==="loading"})}const F0=f.icon||T?.[Ue]||Cf(Ue);var La,Ea;return p.createElement("li",{tabIndex:0,ref:me,className:ht(V,M0,E?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,E?.default,E?.[Ue],f==null||(n=f.classNames)==null?void 0:n[Ue]),"data-sonner-toast":"","data-rich-colors":(La=f.richColors)!=null?La:k,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":_,"data-promise":!!f.promise,"data-swiped":le,"data-removed":I,"data-visible":Bs,"data-y-position":P0,"data-x-position":A0,"data-index":v,"data-front":nt,"data-swiping":ne,"data-dismissible":pn,"data-type":Ue,"data-invert":N0,"data-swipe-out":oe,"data-swipe-direction":W,"data-expanded":!!(b||F&&_),"data-testid":f.testId,style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${I?q:mn.current}px`,"--initial-height":F?"auto":`${ie}px`,...A,...f.style},onDragEnd:()=>{G(!1),R(null),gn.current=null},onPointerDown:te=>{te.button!==2&&(Hs||!pn||(We.current=new Date,ye(mn.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(G(!0),gn.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,ke,Se;if(oe||!pn)return;gn.current=null;const Ze=Number(((te=me.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tr=Number(((ke=me.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Le=new Date().getTime()-((Se=We.current)==null?void 0:Se.getTime()),Ye=$==="x"?Ze:Tr,Dr=Math.abs(Ye)/Le;if(Math.abs(Ye)>=If||Dr>.11){ye(mn.current),f.onDismiss==null||f.onDismiss.call(f,f),Y($==="x"?Ze>0?"right":"left":Tr>0?"down":"up"),At(),re(!0);return}else{var rt,st;(rt=me.current)==null||rt.style.setProperty("--swipe-amount-x","0px"),(st=me.current)==null||st.style.setProperty("--swipe-amount-y","0px")}J(!1),G(!1),R(null)},onPointerMove:te=>{var ke,Se,Ze;if(!gn.current||!pn||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;const Le=te.clientY-gn.current.y,Ye=te.clientX-gn.current.x;var Dr;const rt=(Dr=e.swipeDirections)!=null?Dr:Wf(Z);!$&&(Math.abs(Ye)>1||Math.abs(Le)>1)&&R(Math.abs(Ye)>Math.abs(Le)?"x":"y");let st={x:0,y:0};const Sa=It=>1/(1.5+Math.abs(It)/20);if($==="y"){if(rt.includes("top")||rt.includes("bottom"))if(rt.includes("top")&&Le<0||rt.includes("bottom")&&Le>0)st.y=Le;else{const It=Le*Sa(Le);st.y=Math.abs(It)<Math.abs(Le)?It:Le}}else if($==="x"&&(rt.includes("left")||rt.includes("right")))if(rt.includes("left")&&Ye<0||rt.includes("right")&&Ye>0)st.x=Ye;else{const It=Ye*Sa(Ye);st.x=Math.abs(It)<Math.abs(Ye)?It:Ye}(Math.abs(st.x)>0||Math.abs(st.y)>0)&&J(!0),(Se=me.current)==null||Se.style.setProperty("--swipe-amount-x",`${st.x}px`),(Ze=me.current)==null||Ze.style.setProperty("--swipe-amount-y",`${st.y}px`)}},D0&&!f.jsx&&Ue!=="loading"?p.createElement("button",{"aria-label":S,"data-disabled":Hs,"data-close-button":!0,onClick:Hs||!pn?()=>{}:()=>{At(),f.onDismiss==null||f.onDismiss.call(f,f)},className:ht(E?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Ea=T?.close)!=null?Ea:Mf):null,(Ue||f.icon||f.promise)&&f.icon!==null&&(T?.[Ue]!==null||f.icon)?p.createElement("div",{"data-icon":"",className:ht(E?.icon,f==null||(s=f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||R0():null,f.type!=="loading"?F0:null):null,p.createElement("div",{"data-content":"",className:ht(E?.content,f==null||(a=f.classNames)==null?void 0:a.content)},p.createElement("div",{"data-title":"",className:ht(E?.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?p.createElement("div",{"data-description":"",className:ht(O,T0,E?.description,f==null||(l=f.classNames)==null?void 0:l.description)},typeof f.description=="function"?f.description():f.description):null),p.isValidElement(f.cancel)?f.cancel:f.cancel&&zr(f.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||D,onClick:te=>{zr(f.cancel)&&pn&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,te),At())},className:ht(E?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,p.isValidElement(f.action)?f.action:f.action&&zr(f.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||H,onClick:te=>{zr(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,te),!te.defaultPrevented&&At())},className:ht(E?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function vl(){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 Zf(e,t){const n={};return[e,t].forEach((r,s)=>{const a=s===1,i=a?"--mobile-offset":"--offset",l=a?Of:$f;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}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}const zf=p.forwardRef(function(t,n){const{id:r,invert:s,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:f,theme:h="light",richColors:g,duration:m,style:x,visibleToasts:y=Vf,toastOptions:v,dir:C=vl(),gap:b=Bf,icons:j,containerAriaLabel:k="Notifications"}=t,[L,A]=p.useState([]),D=p.useMemo(()=>r?L.filter(_=>_.toasterId===r):L.filter(_=>!_.toasterId),[L,r]),H=p.useMemo(()=>Array.from(new Set([a].concat(D.filter(_=>_.position).map(_=>_.position)))),[D,a]),[V,O]=p.useState([]),[z,Z]=p.useState(!1),[P,F]=p.useState(!1),[E,T]=p.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=p.useRef(null),$=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=p.useRef(null),W=p.useRef(!1),Y=p.useCallback(_=>{A(N=>{var I;return(I=N.find(Q=>Q.id===_.id))!=null&&I.delete||_e.dismiss(_.id),N.filter(({id:Q})=>Q!==_.id)})},[]);return p.useEffect(()=>_e.subscribe(_=>{if(_.dismiss){requestAnimationFrame(()=>{A(N=>N.map(I=>I.id===_.id?{...I,delete:!0}:I))});return}setTimeout(()=>{Ws.flushSync(()=>{A(N=>{const I=N.findIndex(Q=>Q.id===_.id);return I!==-1?[...N.slice(0,I),{...N[I],..._},...N.slice(I+1)]:[_,...N]})})})}),[L]),p.useEffect(()=>{if(h!=="system"){T(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:N})=>{T(N?"dark":"light")})}catch{_.addListener(({matches:I})=>{try{T(I?"dark":"light")}catch(Q){console.error(Q)}})}},[h]),p.useEffect(()=>{L.length<=1&&Z(!1)},[L]),p.useEffect(()=>{const _=N=>{var I;if(i.every(G=>N[G]||N.code===G)){var ne;Z(!0),(ne=S.current)==null||ne.focus()}N.code==="Escape"&&(document.activeElement===S.current||(I=S.current)!=null&&I.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[i]),p.useEffect(()=>{if(S.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,W.current=!1)}},[S.current]),p.createElement("section",{ref:n,"aria-label":`${k} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((_,N)=>{var I;const[Q,ne]=_.split("-");return D.length?p.createElement("ol",{key:_,dir:C==="auto"?vl():C,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":E,"data-y-position":Q,"data-x-position":ne,style:{"--front-toast-height":`${((I=V[0])==null?void 0:I.height)||0}px`,"--width":`${_f}px`,"--gap":`${b}px`,...x,...Zf(d,f)},onBlur:G=>{W.current&&!G.currentTarget.contains(G.relatedTarget)&&(W.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||W.current||(W.current=!0,R.current=G.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{P||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},D.filter(G=>!G.position&&N===0||G.position===_).map((G,oe)=>{var re,le;return p.createElement(Uf,{key:G.id,icons:j,index:oe,toast:G,defaultRichColors:g,duration:(re=v?.duration)!=null?re:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:s,visibleToasts:y,closeButton:(le=v?.closeButton)!=null?le:c,interacting:P,position:_,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:Y,toasts:D.filter(J=>J.position==G.position),heights:V.filter(J=>J.position==G.position),setHeights:O,expandByDefault:l,gap:b,expanded:z,swipeDirections:t.swipeDirections})})):null}))}),Kf=({children:e})=>o.jsxs(p.Fragment,{children:[o.jsx(zf,{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]}),w=({children:e,className:t="",...n})=>o.jsx("div",{className:t,...n,children:e}),bl=typeof document<"u"?p.useLayoutEffect:()=>{};var oo;const Yf=(oo=p.useInsertionEffect)!==null&&oo!==void 0?oo:bl;function Gf(e){const t=p.useRef(null);return Yf(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}const Nt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Zt=e=>e&&"window"in e&&e.window===e?e:Nt(e).defaultView||window;function qf(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Xf(e){return qf(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Jf=!1;function io(){return Jf}function Cl(e,t){if(!io())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:Xf(n)?n=n.host:n=n.parentNode}return!1}const ao=(e=document)=>{var t;if(!io())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 wl(e){return io()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Kr(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 lo(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 wt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const co=wt(function(){return lo(/^Mac/i)}),Qf=wt(function(){return lo(/^iPhone/i)}),e3=wt(function(){return lo(/^iPad/i)||co()&&navigator.maxTouchPoints>1}),t3=wt(function(){return Qf()||e3()});wt(function(){return co()||t3()}),wt(function(){return Kr(/AppleWebKit/i)&&!n3()});const n3=wt(function(){return Kr(/Chrome/i)}),r3=wt(function(){return Kr(/Android/i)});wt(function(){return Kr(/Firefox/i)});function kl(){let e=p.useRef(new Map),t=p.useCallback((s,a,i,l)=>{let c=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:s,fn:c,options:l}),s.addEventListener(a,c,l)},[]),n=p.useCallback((s,a,i,l)=>{var c;let u=((c=e.current.get(i))===null||c===void 0?void 0:c.fn)||i;s.removeEventListener(a,u,l),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((s,a)=>{n(s.eventTarget,s.type,a,s.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function s3(e){return e.pointerType===""&&e.isTrusted?!0:r3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function o3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ll(e){let t=p.useRef({isFocused:!1,observer:null});bl(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Gf(r=>{e?.(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,a=i=>{if(t.current.isFocused=!1,s.disabled){let l=jl(i);n(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let i3=!1,Gn=null,uo=new Set,qn=new Map,zt=!1,fo=!1;const a3={Tab:!0,Escape:!0};function ho(e,t){for(let n of uo)n(e,t)}function l3(e){return!(e.metaKey||!co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yr(e){zt=!0,l3(e)&&(Gn="keyboard",ho("keyboard",e))}function Ge(e){Gn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(zt=!0,ho("pointer",e))}function El(e){s3(e)&&(zt=!0,Gn="virtual")}function Sl(e){e.target===window||e.target===document||i3||!e.isTrusted||(!zt&&!fo&&(Gn="virtual",ho("virtual",e)),zt=!1,fo=!1)}function Ml(){zt=!1,fo=!0}function po(e){if(typeof window>"u"||typeof document>"u"||qn.get(Zt(e)))return;const t=Zt(e),n=Nt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){zt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yr,!0),n.addEventListener("keyup",Yr,!0),n.addEventListener("click",El,!0),t.addEventListener("focus",Sl,!0),t.addEventListener("blur",Ml,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ge,!0),n.addEventListener("pointermove",Ge,!0),n.addEventListener("pointerup",Ge,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ge,!0),n.addEventListener("mousemove",Ge,!0),n.addEventListener("mouseup",Ge,!0)),t.addEventListener("beforeunload",()=>{Tl(e)},{once:!0}),qn.set(t,{focus:r})}const Tl=(e,t)=>{const n=Zt(e),r=Nt(e);t&&r.removeEventListener("DOMContentLoaded",t),qn.has(n)&&(n.HTMLElement.prototype.focus=qn.get(n).focus,r.removeEventListener("keydown",Yr,!0),r.removeEventListener("keyup",Yr,!0),r.removeEventListener("click",El,!0),n.removeEventListener("focus",Sl,!0),n.removeEventListener("blur",Ml,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ge,!0),r.removeEventListener("pointermove",Ge,!0),r.removeEventListener("pointerup",Ge,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ge,!0),r.removeEventListener("mousemove",Ge,!0),r.removeEventListener("mouseup",Ge,!0)),qn.delete(n))};function c3(e){const t=Nt(e);let n;return t.readyState!=="loading"?po(e):(n=()=>{po(e)},t.addEventListener("DOMContentLoaded",n)),()=>Tl(e,n)}typeof document<"u"&&c3();function Dl(){return Gn!=="pointer"}const u3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function d3(e,t,n){let r=Nt(n?.target);const s=typeof window<"u"?Zt(n?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Zt(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Zt(n?.target).HTMLElement:HTMLElement,l=typeof window<"u"?Zt(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof s&&!u3.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!a3[n.key])}function f3(e,t,n){po(),p.useEffect(()=>{let r=(s,a)=>{d3(!!n?.isTextInput,s,a)&&e(Dl())};return uo.add(r),()=>{uo.delete(r)}},t)}function h3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:s}=e;const a=p.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),s&&s(!1),!0},[r,s]),i=Ll(a),l=p.useCallback(c=>{const u=Nt(c.target),d=u?ao(u):ao();c.target===c.currentTarget&&d===wl(c.nativeEvent)&&(n&&n(c),s&&s(!0),i(c))},[s,n,i]);return{focusProps:{onFocus:!t&&(n||s||r)?l:void 0,onBlur:!t&&(r||s)?a:void 0}}}function p3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:s}=e,a=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=kl(),c=p.useCallback(f=>{f.currentTarget.contains(f.target)&&a.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(f),s&&s(!1))},[n,s,a,l]),u=Ll(c),d=p.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=Nt(f.target),g=ao(h);if(!a.current.isFocusWithin&&g===wl(f.nativeEvent)){r&&r(f),s&&s(!0),a.current.isFocusWithin=!0,u(f);let m=f.currentTarget;i(h,"focus",x=>{if(a.current.isFocusWithin&&!Cl(m,x.target)){let y=new h.defaultView.FocusEvent("blur",{relatedTarget:x.target});o3(y,m);let v=jl(y);c(v)}},{capture:!0})}},[r,s,u,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}let Gr=!1,qr=0;function mo(){Gr=!0,setTimeout(()=>{Gr=!1},50)}function Pl(e){e.pointerType==="touch"&&mo()}function m3(){if(!(typeof document>"u"))return qr===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Pl):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",mo)),qr++,()=>{qr--,!(qr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pl):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",mo))}}function Al(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[a,i]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(m3,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=kl(),{hoverProps:d,triggerHoverEnd:f}=p.useMemo(()=>{let h=(x,y)=>{if(l.pointerType=y,s||y==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let v=x.currentTarget;l.target=v,c(Nt(x.target),"pointerover",C=>{l.isHovered&&l.target&&!Cl(l.target,C.target)&&g(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:y}),n&&n(!0),i(!0)},g=(x,y)=>{let v=l.target;l.pointerType="",l.target=null,!(y==="touch"||!l.isHovered||!v)&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:v,pointerType:y}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=x=>{Gr&&x.pointerType==="mouse"||h(x,x.pointerType)},m.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&g(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!Gr&&h(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&g(x,"mouse")}),{hoverProps:m,triggerHoverEnd:g}},[t,n,r,s,l,c,u]);return p.useEffect(()=>{s&&f({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:d,isHovered:a}}function go(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,s=p.useRef({isFocused:!1,isFocusVisible:t||Dl()}),[a,i]=p.useState(!1),[l,c]=p.useState(()=>s.current.isFocused&&s.current.isFocusVisible),u=p.useCallback(()=>c(s.current.isFocused&&s.current.isFocusVisible),[]),d=p.useCallback(g=>{s.current.isFocused=g,i(g),u()},[u]);f3(g=>{s.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=h3({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=p3({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?h:f}}var g3=Object.defineProperty,x3=(e,t,n)=>t in e?g3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t,n)=>(x3(e,typeof t!="symbol"?t+"":t,n),n);let y3=class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(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"}},Kt=new y3;function bn(e){var t;return Kt.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function Yt(e){var t,n;return Kt.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function Gt(e){var t,n;return(n=(t=Yt(e))==null?void 0:t.activeElement)!=null?n:null}function yo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kt(){let e=[],t={addEventListener(n,r,s,a){return n.addEventListener(r,s,a),t.add(()=>n.removeEventListener(r,s,a))},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 yo(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,s){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=kt();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 s of e.splice(r,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}function Xr(){let[e]=p.useState(kt);return p.useEffect(()=>()=>e.dispose(),[e]),e}let Ae=(e,t)=>{Kt.isServer?p.useEffect(e,t):p.useLayoutEffect(e,t)};function qe(e){let t=p.useRef(e);return Ae(()=>{t.current=e},[e]),t}let se=function(e){let t=qe(e);return p.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 b3(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Nl({disabled:e=!1}={}){let t=p.useRef(null),[n,r]=p.useState(!1),s=Xr(),a=se(()=>{t.current=null,r(!1),s.dispose()}),i=se(l=>{if(s.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let c=bn(l.currentTarget);s.addEventListener(c,"pointerup",a,!1),s.addEventListener(c,"pointermove",u=>{if(t.current){let d=v3(u);r(b3(d,t.current.getBoundingClientRect()))}},!1),s.addEventListener(c,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function pt(e){return p.useMemo(()=>e,Object.values(e))}function Rl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ne(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ne),r}var qt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qt||{}),C3=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(C3||{});function Be(){let e=k3();return p.useCallback(t=>w3({mergeRefs:e,...t}),[e])}function w3({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:s,visible:a=!0,name:i,mergeRefs:l}){l=l??j3;let c=Fl(t,e);if(a)return Jr(c,n,r,i,l);let u=s??0;if(u&2){let{static:d=!1,...f}=c;if(d)return Jr(f,n,r,i,l)}if(u&1){let{unmount:d=!0,...f}=c;return Ne(d?0:1,{0(){return null},1(){return Jr({...f,hidden:!0,style:{display:"none"}},n,r,i,l)}})}return Jr(c,n,r,i,l)}function Jr(e,t={},n,r,s){let{as:a=n,children:i,refName:l="ref",...c}=vo(e,["unmount","static"]),u=e.ref!==void 0?{[l]: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,g=[];for(let[m,x]of Object.entries(t))typeof x=="boolean"&&(h=!0),x===!0&&g.push(m.replace(/([A-Z])/g,y=>`-${y.toLowerCase()}`));if(h){f["data-headlessui-state"]=g.join(" ");for(let m of g)f[`data-${m}`]=""}}if(Qr(a)&&(Object.keys(Cn(c)).length>0||Object.keys(Cn(f)).length>0))if(!p.isValidElement(d)||Array.isArray(d)&&d.length>1||E3(d)){if(Object.keys(Cn(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(Cn(c)).concat(Object.keys(Cn(f))).map(h=>` - ${h}`).join(`
|
|
1
|
+
"use strict";var p=require("react"),o=require("react/jsx-runtime"),Ks=require("react-dom"),Cn=require("react-hook-form"),Z0=require("@hookform/resolvers/zod"),Rt=require("zod");function Ra(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var K=Ra(p),Vr=Ra(Ks),Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $r(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:z0}=Object.prototype,{getPrototypeOf:Ys}=Object,{iterator:Or,toStringTag:Fa}=Symbol,Br=(e=>t=>{const n=z0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>Br(t)===e),Ir=e=>t=>typeof t===e,{isArray:wn}=Array,jn=Ir("undefined");function Xn(e){return e!==null&&!jn(e)&&e.constructor!==null&&!jn(e.constructor)&&Oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Va=at("ArrayBuffer");function K0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Va(e.buffer),t}const Y0=Ir("string"),Oe=Ir("function"),$a=Ir("number"),Jn=e=>e!==null&&typeof e=="object",G0=e=>e===!0||e===!1,Hr=e=>{if(Br(e)!=="object")return!1;const t=Ys(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fa in e)&&!(Or in e)},q0=e=>{if(!Jn(e)||Xn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},X0=at("Date"),J0=at("File"),Q0=at("Blob"),e2=at("FileList"),t2=e=>Jn(e)&&Oe(e.pipe),n2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oe(e.append)&&((t=Br(e))==="formdata"||t==="object"&&Oe(e.toString)&&e.toString()==="[object FormData]"))},r2=at("URLSearchParams"),[s2,o2,i2,a2]=["ReadableStream","Request","Response","Headers"].map(at),l2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),wn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Xn(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function Oa(e,t){if(Xn(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Zt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ut)(),Ba=e=>!jn(e)&&e!==Zt;function Gs(){const{caseless:e,skipUndefined:t}=Ba(this)&&this||{},n={},r=(s,a)=>{const i=e&&Oa(n,a)||a;Hr(n[i])&&Hr(s)?n[i]=Gs(n[i],s):Hr(s)?n[i]=Gs({},s):wn(s)?n[i]=s.slice():(!t||!jn(s))&&(n[i]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Qn(arguments[s],r);return n}const c2=(e,t,n,{allOwnKeys:r}={})=>(Qn(t,(s,a)=>{n&&Oe(s)?e[a]=_a(s,n):e[a]=s},{allOwnKeys:r}),e),u2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),d2=(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)},f2=(e,t,n,r)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ys(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},h2=(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},p2=e=>{if(!e)return null;if(wn(e))return e;let t=e.length;if(!$a(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},m2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ys(Uint8Array)),g2=(e,t)=>{const r=(e&&e[Or]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},x2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},y2=at("HTMLFormElement"),v2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ia=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b2=at("RegExp"),Ha=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qn(n,(s,a)=>{let i;(i=t(s,a,e))!==!1&&(r[a]=i||s)}),Object.defineProperties(e,r)},C2=e=>{Ha(e,(t,n)=>{if(Oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oe(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+"'")})}})},w2=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return wn(e)?r(e):r(String(e).split(t)),n},j2=()=>{},k2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function E2(e){return!!(e&&Oe(e.append)&&e[Fa]==="FormData"&&e[Or])}const S2=e=>{const t=new Array(10),n=(r,s)=>{if(Jn(r)){if(t.indexOf(r)>=0)return;if(Xn(r))return r;if(!("toJSON"in r)){t[s]=r;const a=wn(r)?[]:{};return Qn(r,(i,l)=>{const c=n(i,s+1);!jn(c)&&(a[l]=c)}),t[s]=void 0,a}}return r};return n(e,0)},L2=at("AsyncFunction"),T2=e=>e&&(Jn(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),Wa=((e,t)=>e?setImmediate:t?((n,r)=>(Zt.addEventListener("message",({source:s,data:a})=>{s===Zt&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Zt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oe(Zt.postMessage)),M2=typeof queueMicrotask<"u"?queueMicrotask.bind(Zt):typeof process<"u"&&process.nextTick||Wa,D2=e=>e!=null&&Oe(e[Or]);var D={isArray:wn,isArrayBuffer:Va,isBuffer:Xn,isFormData:n2,isArrayBufferView:K0,isString:Y0,isNumber:$a,isBoolean:G0,isObject:Jn,isPlainObject:Hr,isEmptyObject:q0,isReadableStream:s2,isRequest:o2,isResponse:i2,isHeaders:a2,isUndefined:jn,isDate:X0,isFile:J0,isBlob:Q0,isRegExp:b2,isFunction:Oe,isStream:t2,isURLSearchParams:r2,isTypedArray:m2,isFileList:e2,forEach:Qn,merge:Gs,extend:c2,trim:l2,stripBOM:u2,inherits:d2,toFlatObject:f2,kindOf:Br,kindOfTest:at,endsWith:h2,toArray:p2,forEachEntry:g2,matchAll:x2,isHTMLForm:y2,hasOwnProperty:Ia,hasOwnProp:Ia,reduceDescriptors:Ha,freezeMethods:C2,toObjectSet:w2,toCamelCase:v2,noop:j2,toFiniteNumber:k2,findKey:Oa,global:Zt,isContextDefined:Ba,isSpecCompliantForm:E2,toJSONObject:S2,isAsyncFn:L2,isThenable:T2,setImmediate:Wa,asap:M2,isIterable:D2};function ee(e,t,n,r,s){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),s&&(this.response=s,this.status=s.status?s.status:null)}D.inherits(ee,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});const Ua=ee.prototype,Za={};["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=>{Za[e]={value:e}}),Object.defineProperties(ee,Za),Object.defineProperty(Ua,"isAxiosError",{value:!0}),ee.from=(e,t,n,r,s,a)=>{const i=Object.create(Ua);D.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ee.call(i,l,c,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};var N2=null;function qs(e){return D.isPlainObject(e)||D.isArray(e)}function za(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function Ka(e,t,n){return e?e.concat(t).map(function(s,a){return s=za(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function P2(e){return D.isArray(e)&&!e.some(qs)}const A2=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Wr(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,v){return!D.isUndefined(v[x])});const r=n.metaTokens,s=n.visitor||d,a=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(D.isDate(m))return m.toISOString();if(D.isBoolean(m))return m.toString();if(!c&&D.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(m)||D.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,v){let y=m;if(m&&!v&&typeof m=="object"){if(D.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(D.isArray(m)&&P2(m)||(D.isFileList(m)||D.endsWith(x,"[]"))&&(y=D.toArray(m)))return x=za(x),y.forEach(function(b,k){!(D.isUndefined(b)||b===null)&&t.append(i===!0?Ka([x],k,a):i===null?x:x+"[]",u(b))}),!1}return qs(m)?!0:(t.append(Ka(v,x,a),u(m)),!1)}const f=[],h=Object.assign(A2,{defaultVisitor:d,convertValue:u,isVisitable:qs});function g(m,x){if(!D.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),D.forEach(m,function(y,C){(!(D.isUndefined(y)||y===null)&&s.call(t,y,D.isString(C)?C.trim():C,x,h))===!0&&g(y,x?x.concat(C):[C])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ya(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xs(e,t){this._pairs=[],e&&Wr(e,this,t)}const Ga=Xs.prototype;Ga.append=function(t,n){this._pairs.push([t,n])},Ga.toString=function(t){const n=t?function(r){return t.call(this,r,Ya)}:Ya;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function R2(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||R2;D.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=D.isURLSearchParams(t)?t.toString():new Xs(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class _2{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){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Xa=_2,Ja={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F2=typeof URLSearchParams<"u"?URLSearchParams:Xs,V2=typeof FormData<"u"?FormData:null,$2=typeof Blob<"u"?Blob:null,O2={isBrowser:!0,classes:{URLSearchParams:F2,FormData:V2,Blob:$2},protocols:["http","https","file","blob","url","data"]};const Js=typeof window<"u"&&typeof document<"u",Qs=typeof navigator=="object"&&navigator||void 0,B2=Js&&(!Qs||["ReactNative","NativeScript","NS"].indexOf(Qs.product)<0),I2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),H2=Js&&window.location.href||"http://localhost";var W2=Object.freeze({__proto__:null,hasBrowserEnv:Js,hasStandardBrowserWebWorkerEnv:I2,hasStandardBrowserEnv:B2,navigator:Qs,origin:H2}),Te={...W2,...O2};function U2(e,t){return Wr(e,new Te.classes.URLSearchParams,{visitor:function(n,r,s,a){return Te.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Z2(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function z2(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r<s;r++)a=n[r],t[a]=e[a];return t}function Qa(e){function t(n,r,s,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=n.length;return i=!i&&D.isArray(s)?s.length:i,c?(D.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!D.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],a)&&D.isArray(s[i])&&(s[i]=z2(s[i])),!l)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,s)=>{t(Z2(r),s,n,0)}),n}return null}function K2(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const eo={transitional:Ja,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=D.isObject(t);if(a&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return s?JSON.stringify(Qa(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U2(t,this.formSerializer).toString();if((l=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Wr(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),K2(t)):t}],transformResponse:[function(t){const n=this.transitional||eo.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{eo.headers[e]={}});var to=eo;const Y2=D.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 G2=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Y2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const el=Symbol("internals");function er(e){return e&&String(e).trim().toLowerCase()}function Ur(e){return e===!1||e==null?e:D.isArray(e)?e.map(Ur):String(e)}function q2(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 X2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function no(e,t,n,r,s){if(D.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function J2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Q2(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,a,i){return this[r].call(this,t,s,a,i)},configurable:!0})})}class Zr{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function a(l,c,u){const d=er(c);if(!d)throw new Error("header name must be a non-empty string");const f=D.findKey(s,d);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=Ur(l))}const i=(l,c)=>D.forEach(l,(u,d)=>a(u,d,c));if(D.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(D.isString(t)&&(t=t.trim())&&!X2(t))i(G2(t),n);else if(D.isObject(t)&&D.isIterable(t)){let l={},c,u;for(const d of t){if(!D.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?D.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}i(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=er(t),t){const r=D.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return q2(s);if(D.isFunction(n))return n.call(this,s,r);if(D.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=er(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||no(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function a(i){if(i=er(i),i){const l=D.findKey(r,i);l&&(!n||no(r,r[l],l,n))&&(delete r[l],s=!0)}}return D.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!t||no(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,r={};return D.forEach(this,(s,a)=>{const i=D.findKey(r,a);if(i){n[i]=Ur(s),delete n[a];return}const l=t?J2(a):String(a).trim();l!==a&&delete n[a],n[l]=Ur(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&D.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(s=>r.set(s)),r}static accessor(t){const r=(this[el]=this[el]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=er(i);r[l]||(Q2(s,i),r[l]=!0)}return D.isArray(t)?t.forEach(a):a(t),this}}Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(Zr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),D.freezeMethods(Zr);var lt=Zr;function ro(e,t){const n=this||to,r=t||n,s=lt.from(r.headers);let a=r.data;return D.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function tl(e){return!!(e&&e.__CANCEL__)}function kn(e,t,n){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(kn,ee,{__CANCEL__:!0});function nl(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ee("Request failed with status code "+n.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ef(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tf(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[a];i||(i=u),n[s]=c,r[s]=u;let f=a,h=0;for(;f!==s;)h+=n[f++],f=f%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),u-i<t)return;const g=d&&u-d;return g?Math.round(h*1e3/g):void 0}}function nf(e,t){let n=0,r=1e3/t,s,a;const i=(u,d=Date.now())=>{n=d,s=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?i(u,d):(s=u,a||(a=setTimeout(()=>{a=null,i(s)},r-f)))},()=>s&&i(s)]}const zr=(e,t,n=3)=>{let r=0;const s=tf(50,250);return nf(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-r,u=s(c),d=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},rl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sl=e=>(...t)=>D.asap(()=>e(...t));var rf=Te.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Te.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Te.origin),Te.navigator&&/(msie|trident)/i.test(Te.navigator.userAgent)):()=>!0,sf=Te.hasStandardBrowserEnv?{write(e,t,n,r,s,a){const i=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),D.isString(r)&&i.push("path="+r),D.isString(s)&&i.push("domain="+s),a===!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 of(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function af(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ol(e,t,n){let r=!of(t);return e&&(r||n==!1)?af(e,t):t}const il=e=>e instanceof lt?{...e}:e;function zt(e,t){t=t||{};const n={};function r(u,d,f,h){return D.isPlainObject(u)&&D.isPlainObject(d)?D.merge.call({caseless:h},u,d):D.isPlainObject(d)?D.merge({},d):D.isArray(d)?d.slice():d}function s(u,d,f,h){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function a(u,d){if(!D.isUndefined(d))return r(void 0,d)}function i(u,d){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:a,method:a,data:a,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:l,headers:(u,d,f)=>s(il(u),il(d),f,!0)};return D.forEach(Object.keys({...e,...t}),function(d){const f=c[d]||s,h=f(e[d],t[d],d);D.isUndefined(h)&&f!==l||(n[d]=h)}),n}var al=e=>{const t=zt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=lt.from(i),t.url=qa(ol(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),D.isFormData(n)){if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(D.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(Te.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&rf(t.url))){const c=s&&a&&sf.read(a);c&&i.set(s,c)}return t};const lf=typeof XMLHttpRequest<"u";var cf=lf&&function(e){return new Promise(function(n,r){const s=al(e);let a=s.data;const i=lt.from(s.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=s,d,f,h,g,m;function x(){g&&g(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function y(){if(!v)return;const b=lt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};nl(function(T){n(T),x()},function(T){r(T),x()},E),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new ee("Request aborted",ee.ECONNABORTED,e,v)),v=null)},v.onerror=function(k){const E=k&&k.message?k.message:"Network Error",j=new ee(E,ee.ERR_NETWORK,e,v);j.event=k||null,r(j),v=null},v.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const E=s.transitional||Ja;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),r(new ee(k,E.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,v)),v=null},a===void 0&&i.setContentType(null),"setRequestHeader"in v&&D.forEach(i.toJSON(),function(k,E){v.setRequestHeader(E,k)}),D.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),l&&l!=="json"&&(v.responseType=s.responseType),u&&([h,m]=zr(u,!0),v.addEventListener("progress",h)),c&&v.upload&&([f,g]=zr(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=b=>{v&&(r(!b||b.type?new kn(null,e,v):b),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const C=ef(s.url);if(C&&Te.protocols.indexOf(C)===-1){r(new ee("Unsupported protocol "+C+":",ee.ERR_BAD_REQUEST,e));return}v.send(a||null)})};const uf=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(u){if(!s){s=!0,l();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ee?d:new kn(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,a(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>D.asap(l),c}};var df=uf;const ff=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},hf=async function*(e,t){for await(const n of pf(e))yield*ff(n,t)},pf=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()}},ll=(e,t,n,r)=>{const s=hf(e,t);let a=0,i,l=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await s.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),s.return()}},{highWaterMark:2})},cl=64*1024,{isFunction:Kr}=D,mf=(({Request:e,Response:t})=>({Request:e,Response:t}))(D.global),{ReadableStream:ul,TextEncoder:dl}=D.global,fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gf=e=>{e=D.merge.call({skipUndefined:!0},mf,e);const{fetch:t,Request:n,Response:r}=e,s=t?Kr(t):typeof fetch=="function",a=Kr(n),i=Kr(r);if(!s)return!1;const l=s&&Kr(ul),c=s&&(typeof dl=="function"?(m=>x=>m.encode(x))(new dl):async m=>new Uint8Array(await new n(m).arrayBuffer())),u=a&&l&&fl(()=>{let m=!1;const x=new n(Te.origin,{body:new ul,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!x}),d=i&&l&&fl(()=>D.isReadableStream(new r("").body)),f={stream:d&&(m=>m.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(x,v)=>{let y=x&&x[m];if(y)return y.call(x);throw new ee(`Response type '${m}' is not supported`,ee.ERR_NOT_SUPPORT,v)})});const h=async m=>{if(m==null)return 0;if(D.isBlob(m))return m.size;if(D.isSpecCompliantForm(m))return(await new n(Te.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(D.isArrayBufferView(m)||D.isArrayBuffer(m))return m.byteLength;if(D.isURLSearchParams(m)&&(m=m+""),D.isString(m))return(await c(m)).byteLength},g=async(m,x)=>{const v=D.toFiniteNumber(m.getContentLength());return v??h(x)};return async m=>{let{url:x,method:v,data:y,signal:C,cancelToken:b,timeout:k,onDownloadProgress:E,onUploadProgress:j,responseType:T,headers:N,withCredentials:I="same-origin",fetchOptions:F}=al(m),$=t||fetch;T=T?(T+"").toLowerCase():"text";let z=df([C,b&&b.toAbortSignal()],k),Z=null;const M=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let _;try{if(j&&u&&v!=="get"&&v!=="head"&&(_=await g(N,y))!==0){let U=new n(x,{method:"POST",body:y,duplex:"half"}),Y;if(D.isFormData(y)&&(Y=U.headers.get("content-type"))&&N.setContentType(Y),U.body){const[B,A]=rl(_,zr(sl(j)));y=ll(U.body,cl,B,A)}}D.isString(I)||(I=I?"include":"omit");const S=a&&"credentials"in n.prototype,P={...F,signal:z,method:v.toUpperCase(),headers:N.normalize().toJSON(),body:y,duplex:"half",credentials:S?I:void 0};Z=a&&new n(x,P);let L=await(a?$(Z,F):$(x,P));const O=d&&(T==="stream"||T==="response");if(d&&(E||O&&M)){const U={};["status","statusText","headers"].forEach(H=>{U[H]=L[H]});const Y=D.toFiniteNumber(L.headers.get("content-length")),[B,A]=E&&rl(Y,zr(sl(E),!0))||[];L=new r(ll(L.body,cl,B,()=>{A&&A(),M&&M()}),U)}T=T||"text";let R=await f[D.findKey(f,T)||"text"](L,m);return!O&&M&&M(),await new Promise((U,Y)=>{nl(U,Y,{data:R,headers:lt.from(L.headers),status:L.status,statusText:L.statusText,config:m,request:Z})})}catch(S){throw M&&M(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,m,Z),{cause:S.cause||S}):ee.from(S,S&&S.code,m,Z)}}},xf=new Map,hl=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:s}=t,a=[r,s,n];let i=a.length,l=i,c,u,d=xf;for(;l--;)c=a[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:gf(t)),d=u;return u};hl();const so={http:N2,xhr:cf,fetch:{get:hl}};D.forEach(so,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pl=e=>`- ${e}`,yf=e=>D.isFunction(e)||e===null||e===!1;var ml={getAdapter:(e,t)=>{e=D.isArray(e)?e:[e];const{length:n}=e;let r,s;const a={};for(let i=0;i<n;i++){r=e[i];let l;if(s=r,!yf(r)&&(s=so[(l=String(r)).toLowerCase()],s===void 0))throw new ee(`Unknown adapter '${l}'`);if(s&&(D.isFunction(s)||(s=s.get(t))))break;a[l||"#"+i]=s}if(!s){const i=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
|
4
|
+
`+i.map(pl).join(`
|
|
5
|
+
`):" "+pl(i[0]):"as no adapter specified";throw new ee("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s},adapters:so};function oo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kn(null,e)}function gl(e){return oo(e),e.headers=lt.from(e.headers),e.data=ro.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ml.getAdapter(e.adapter||to.adapter,e)(e).then(function(r){return oo(e),r.data=ro.call(e,e.transformResponse,r),r.headers=lt.from(r.headers),r},function(r){return tl(r)||(oo(e),r&&r.response&&(r.response.data=ro.call(e,e.transformResponse,r.response),r.response.headers=lt.from(r.response.headers))),Promise.reject(r)})}const xl="1.12.2",Yr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yl={};Yr.transitional=function(t,n,r){function s(a,i){return"[Axios v"+xl+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new ee(s(i," has been removed"+(n?" in "+n:"")),ee.ERR_DEPRECATED);return n&&!yl[i]&&(yl[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}},Yr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vf(e,t,n){if(typeof e!="object")throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const a=r[s],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new ee("option "+a+" must be "+c,ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ee("Unknown option "+a,ee.ERR_BAD_OPTION)}}var Gr={assertOptions:vf,validators:Yr};const pt=Gr.validators;class qr{constructor(t){this.defaults=t||{},this.interceptors={request:new Xa,response:new Xa}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zt(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&Gr.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),s!=null&&(D.isFunction(s)?n.paramsSerializer={serialize:s}:Gr.assertOptions(s,{encode:pt.function,serialize:pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Gr.assertOptions(n,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&D.merge(a.common,a[n.method]);a&&D.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=lt.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,f=0,h;if(!c){const m=[gl.bind(this),void 0];for(m.unshift(...l),m.push(...u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=l.length;let g=n;for(;f<h;){const m=l[f++],x=l[f++];try{g=m(g)}catch(v){x.call(this,v);break}}try{d=gl.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=zt(this.defaults,t);const n=ol(t.baseURL,t.url,t.allowAbsoluteUrls);return qa(n,t.params,t.paramsSerializer)}}D.forEach(["delete","get","head","options"],function(t){qr.prototype[t]=function(n,r){return this.request(zt(r||{},{method:t,url:n,data:(r||{}).data}))}}),D.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(zt(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}qr.prototype[t]=n(),qr.prototype[t+"Form"]=n(!0)});var Xr=qr;class Ea{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(s=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new kn(a,i,l),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 Ea(function(s){t=s}),cancel:t}}}var bf=Ea;function Cf(e){return function(n){return e.apply(null,n)}}function wf(e){return D.isObject(e)&&e.isAxiosError===!0}const io={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(io).forEach(([e,t])=>{io[t]=e});var jf=io;function vl(e){const t=new Xr(e),n=_a(Xr.prototype.request,t);return D.extend(n,Xr.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return vl(zt(e,s))},n}const ve=vl(to);ve.Axios=Xr,ve.CanceledError=kn,ve.CancelToken=bf,ve.isCancel=tl,ve.VERSION=xl,ve.toFormData=Wr,ve.AxiosError=ee,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=Cf,ve.isAxiosError=wf,ve.mergeConfig=zt,ve.AxiosHeaders=lt,ve.formToJSON=e=>Qa(D.isHTMLForm(e)?new FormData(e):e),ve.getAdapter=ml.getAdapter,ve.HttpStatusCode=jf,ve.default=ve;var kf=ve,Ef=$r(kf);const bl=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(g=>g(t,h))}},s=()=>t,l={setState:r,getState:s,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u))},c=t=e(r,s,l);return l},Sf=e=>e?bl(e):bl,Lf=e=>e;function Tf(e,t=Lf){const n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}const Cl=e=>{const t=Sf(e),n=r=>Tf(t,r);return Object.assign(n,t),n},ao=e=>e?Cl(e):Cl,wl=ao(e=>({clientKey:"",baseUrl:"",setConfig:(t,n)=>e({clientKey:t,baseUrl:n})})),jl="https://api.metrifox.com/api/v1",Pe=()=>{const{clientKey:e,baseUrl:t}=wl.getState();if(!e)throw new Error("MetriFox SDK not initialized: Client key is missing. Please call metrifoxInit(clientKey) before using SDK feature(s).");return Ef.create({baseURL:t||jl,headers:{"x-client-key":e,"Content-Type":"application/json"},timeout:18e4})},Mf=e=>{wl.getState().setConfig(e.clientKey,e.baseUrl||jl)};function Df(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 Nf=e=>{switch(e){case"success":return Rf;case"info":return Ff;case"warning":return _f;case"error":return Vf;default:return null}},Pf=Array(12).fill(0),Af=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},Pf.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Rf=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),_f=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),Ff=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),Vf=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),$f=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Of=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let lo=1;class Bf{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,...s}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:lo++,i=this.toasts.find(c=>c.id===a),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...t,id:a,title:r}),{...c,...t,id:a,dismissible:l,title:r}):c):this.addToast({title:r,...s,dismissible:l,id:a}),a},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 s=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,i;const l=s.then(async u=>{if(i=["resolve",u],p.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(Hf(u)&&!u.ok){a=!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,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(u instanceof Error){a=!1;const f=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){a=!1;const f=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,m=typeof f=="object"&&!p.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...m})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){a=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...g})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,d)=>l.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||lo++;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 Be=new Bf,If=(e,t)=>{const n=t?.id||lo++;return Be.addToast({title:e,...t,id:n}),n},Hf=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Wf=If,Uf=()=>Be.toasts,Zf=()=>Be.getActiveToasts(),jt=Object.assign(Wf,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:Uf,getToasts:Zf});Df("[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 Jr(e){return e.label!==void 0}const zf=3,Kf="24px",Yf="16px",kl=4e3,Gf=356,qf=14,Xf=45,Jf=200;function mt(...e){return e.filter(Boolean).join(" ")}function Qf(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const e3=e=>{var t,n,r,s,a,i,l,c,u;const{invert:d,toast:f,unstyled:h,interacting:g,setHeights:m,visibleToasts:x,heights:v,index:y,toasts:C,expanded:b,removeToast:k,defaultRichColors:E,closeButton:j,style:T,cancelButtonStyle:N,actionButtonStyle:I,className:F="",descriptionClassName:$="",duration:z,position:Z,gap:M,expandByDefault:_,classNames:S,icons:P,closeButtonAriaLabel:L="Close toast"}=e,[O,R]=p.useState(null),[U,Y]=p.useState(null),[B,A]=p.useState(!1),[H,Q]=p.useState(!1),[ne,G]=p.useState(!1),[ie,se]=p.useState(!1),[le,J]=p.useState(!1),[q,ye]=p.useState(0),[ae,de]=p.useState(0),pe=p.useRef(f.duration||z||kl),Ue=p.useRef(null),me=p.useRef(null),st=y===0,Us=y+1<=x,Ze=f.type,yn=f.dismissible!==!1,V0=f.className||"",$0=f.descriptionClassName||"",Rr=p.useMemo(()=>v.findIndex(te=>te.toastId===f.id)||0,[v,f.id]),O0=p.useMemo(()=>{var te;return(te=f.closeButton)!=null?te:j},[f.closeButton,j]),La=p.useMemo(()=>f.duration||z||kl,[f.duration,z]),Zs=p.useRef(0),vn=p.useRef(0),Ta=p.useRef(0),bn=p.useRef(null),[B0,I0]=Z.split("-"),Ma=p.useMemo(()=>v.reduce((te,je,Le)=>Le>=Rr?te:te+je.height,0),[v,Rr]),Da=Of(),H0=f.invert||d,zs=Ze==="loading";vn.current=p.useMemo(()=>Rr*M+Ma,[Rr,Ma]),p.useEffect(()=>{pe.current=La},[La]),p.useEffect(()=>{A(!0)},[]),p.useEffect(()=>{const te=me.current;if(te){const je=te.getBoundingClientRect().height;return de(je),m(Le=>[{toastId:f.id,height:je,position:f.position},...Le]),()=>m(Le=>Le.filter(ze=>ze.toastId!==f.id))}},[m,f.id]),p.useLayoutEffect(()=>{if(!B)return;const te=me.current,je=te.style.height;te.style.height="auto";const Le=te.getBoundingClientRect().height;te.style.height=je,de(Le),m(ze=>ze.find(Ee=>Ee.toastId===f.id)?ze.map(Ee=>Ee.toastId===f.id?{...Ee,height:Le}:Ee):[{toastId:f.id,height:Le,position:f.position},...ze])},[B,f.title,f.description,m,f.id,f.jsx,f.action,f.cancel]);const At=p.useCallback(()=>{Q(!0),ye(vn.current),m(te=>te.filter(je=>je.toastId!==f.id)),setTimeout(()=>{k(f)},Jf)},[f,k,m,vn]);p.useEffect(()=>{if(f.promise&&Ze==="loading"||f.duration===1/0||f.type==="loading")return;let te;return b||g||Da?(()=>{if(Ta.current<Zs.current){const ze=new Date().getTime()-Zs.current;pe.current=pe.current-ze}Ta.current=new Date().getTime()})():(()=>{pe.current!==1/0&&(Zs.current=new Date().getTime(),te=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),At()},pe.current))})(),()=>clearTimeout(te)},[b,g,f,Ze,Da,At]),p.useEffect(()=>{f.delete&&(At(),f.onDismiss==null||f.onDismiss.call(f,f))},[At,f.delete]);function W0(){var te;if(P?.loading){var je;return p.createElement("div",{className:mt(S?.loader,f==null||(je=f.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Ze==="loading"},P.loading)}return p.createElement(Af,{className:mt(S?.loader,f==null||(te=f.classNames)==null?void 0:te.loader),visible:Ze==="loading"})}const U0=f.icon||P?.[Ze]||Nf(Ze);var Na,Pa;return p.createElement("li",{tabIndex:0,ref:me,className:mt(F,V0,S?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,S?.default,S?.[Ze],f==null||(n=f.classNames)==null?void 0:n[Ze]),"data-sonner-toast":"","data-rich-colors":(Na=f.richColors)!=null?Na:E,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":B,"data-promise":!!f.promise,"data-swiped":le,"data-removed":H,"data-visible":Us,"data-y-position":B0,"data-x-position":I0,"data-index":y,"data-front":st,"data-swiping":ne,"data-dismissible":yn,"data-type":Ze,"data-invert":H0,"data-swipe-out":ie,"data-swipe-direction":U,"data-expanded":!!(b||_&&B),"data-testid":f.testId,style:{"--index":y,"--toasts-before":y,"--z-index":C.length-y,"--offset":`${H?q:vn.current}px`,"--initial-height":_?"auto":`${ae}px`,...T,...f.style},onDragEnd:()=>{G(!1),R(null),bn.current=null},onPointerDown:te=>{te.button!==2&&(zs||!yn||(Ue.current=new Date,ye(vn.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(G(!0),bn.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,je,Le;if(ie||!yn)return;bn.current=null;const ze=Number(((te=me.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_r=Number(((je=me.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ee=new Date().getTime()-((Le=Ue.current)==null?void 0:Le.getTime()),Ge=O==="x"?ze:_r,Fr=Math.abs(Ge)/Ee;if(Math.abs(Ge)>=Xf||Fr>.11){ye(vn.current),f.onDismiss==null||f.onDismiss.call(f,f),Y(O==="x"?ze>0?"right":"left":_r>0?"down":"up"),At(),se(!0);return}else{var ot,it;(ot=me.current)==null||ot.style.setProperty("--swipe-amount-x","0px"),(it=me.current)==null||it.style.setProperty("--swipe-amount-y","0px")}J(!1),G(!1),R(null)},onPointerMove:te=>{var je,Le,ze;if(!bn.current||!yn||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;const Ee=te.clientY-bn.current.y,Ge=te.clientX-bn.current.x;var Fr;const ot=(Fr=e.swipeDirections)!=null?Fr:Qf(Z);!O&&(Math.abs(Ge)>1||Math.abs(Ee)>1)&&R(Math.abs(Ge)>Math.abs(Ee)?"x":"y");let it={x:0,y:0};const Aa=Wt=>1/(1.5+Math.abs(Wt)/20);if(O==="y"){if(ot.includes("top")||ot.includes("bottom"))if(ot.includes("top")&&Ee<0||ot.includes("bottom")&&Ee>0)it.y=Ee;else{const Wt=Ee*Aa(Ee);it.y=Math.abs(Wt)<Math.abs(Ee)?Wt:Ee}}else if(O==="x"&&(ot.includes("left")||ot.includes("right")))if(ot.includes("left")&&Ge<0||ot.includes("right")&&Ge>0)it.x=Ge;else{const Wt=Ge*Aa(Ge);it.x=Math.abs(Wt)<Math.abs(Ge)?Wt:Ge}(Math.abs(it.x)>0||Math.abs(it.y)>0)&&J(!0),(Le=me.current)==null||Le.style.setProperty("--swipe-amount-x",`${it.x}px`),(ze=me.current)==null||ze.style.setProperty("--swipe-amount-y",`${it.y}px`)}},O0&&!f.jsx&&Ze!=="loading"?p.createElement("button",{"aria-label":L,"data-disabled":zs,"data-close-button":!0,onClick:zs||!yn?()=>{}:()=>{At(),f.onDismiss==null||f.onDismiss.call(f,f)},className:mt(S?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Pa=P?.close)!=null?Pa:$f):null,(Ze||f.icon||f.promise)&&f.icon!==null&&(P?.[Ze]!==null||f.icon)?p.createElement("div",{"data-icon":"",className:mt(S?.icon,f==null||(s=f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||W0():null,f.type!=="loading"?U0:null):null,p.createElement("div",{"data-content":"",className:mt(S?.content,f==null||(a=f.classNames)==null?void 0:a.content)},p.createElement("div",{"data-title":"",className:mt(S?.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?p.createElement("div",{"data-description":"",className:mt($,$0,S?.description,f==null||(l=f.classNames)==null?void 0:l.description)},typeof f.description=="function"?f.description():f.description):null),p.isValidElement(f.cancel)?f.cancel:f.cancel&&Jr(f.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||N,onClick:te=>{Jr(f.cancel)&&yn&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,te),At())},className:mt(S?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,p.isValidElement(f.action)?f.action:f.action&&Jr(f.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:te=>{Jr(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,te),!te.defaultPrevented&&At())},className:mt(S?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function El(){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 t3(e,t){const n={};return[e,t].forEach((r,s)=>{const a=s===1,i=a?"--mobile-offset":"--offset",l=a?Yf:Kf;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}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}const n3=p.forwardRef(function(t,n){const{id:r,invert:s,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:f,theme:h="light",richColors:g,duration:m,style:x,visibleToasts:v=zf,toastOptions:y,dir:C=El(),gap:b=qf,icons:k,containerAriaLabel:E="Notifications"}=t,[j,T]=p.useState([]),N=p.useMemo(()=>r?j.filter(B=>B.toasterId===r):j.filter(B=>!B.toasterId),[j,r]),I=p.useMemo(()=>Array.from(new Set([a].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,a]),[F,$]=p.useState([]),[z,Z]=p.useState(!1),[M,_]=p.useState(!1),[S,P]=p.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=p.useRef(null),O=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=p.useRef(null),U=p.useRef(!1),Y=p.useCallback(B=>{T(A=>{var H;return(H=A.find(Q=>Q.id===B.id))!=null&&H.delete||Be.dismiss(B.id),A.filter(({id:Q})=>Q!==B.id)})},[]);return p.useEffect(()=>Be.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{T(A=>A.map(H=>H.id===B.id?{...H,delete:!0}:H))});return}setTimeout(()=>{Ks.flushSync(()=>{T(A=>{const H=A.findIndex(Q=>Q.id===B.id);return H!==-1?[...A.slice(0,H),{...A[H],...B},...A.slice(H+1)]:[B,...A]})})})}),[j]),p.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 B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:A})=>{P(A?"dark":"light")})}catch{B.addListener(({matches:H})=>{try{P(H?"dark":"light")}catch(Q){console.error(Q)}})}},[h]),p.useEffect(()=>{j.length<=1&&Z(!1)},[j]),p.useEffect(()=>{const B=A=>{var H;if(i.every(G=>A[G]||A.code===G)){var ne;Z(!0),(ne=L.current)==null||ne.focus()}A.code==="Escape"&&(document.activeElement===L.current||(H=L.current)!=null&&H.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[i]),p.useEffect(()=>{if(L.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,U.current=!1)}},[L.current]),p.createElement("section",{ref:n,"aria-label":`${E} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((B,A)=>{var H;const[Q,ne]=B.split("-");return N.length?p.createElement("ol",{key:B,dir:C==="auto"?El():C,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":S,"data-y-position":Q,"data-x-position":ne,style:{"--front-toast-height":`${((H=F[0])==null?void 0:H.height)||0}px`,"--width":`${Gf}px`,"--gap":`${b}px`,...x,...t3(d,f)},onBlur:G=>{U.current&&!G.currentTarget.contains(G.relatedTarget)&&(U.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||U.current||(U.current=!0,R.current=G.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{M||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},N.filter(G=>!G.position&&A===0||G.position===B).map((G,ie)=>{var se,le;return p.createElement(e3,{key:G.id,icons:k,index:ie,toast:G,defaultRichColors:g,duration:(se=y?.duration)!=null?se:m,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:s,visibleToasts:v,closeButton:(le=y?.closeButton)!=null?le:c,interacting:M,position:B,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:Y,toasts:N.filter(J=>J.position==G.position),heights:F.filter(J=>J.position==G.position),setHeights:$,expandByDefault:l,gap:b,expanded:z,swipeDirections:t.swipeDirections})})):null}))}),r3=({children:e})=>o.jsxs(p.Fragment,{children:[o.jsx(n3,{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]}),w=({children:e,className:t="",...n})=>o.jsx("div",{className:t,...n,children:e}),Sl=typeof document<"u"?p.useLayoutEffect:()=>{};var co;const s3=(co=p.useInsertionEffect)!==null&&co!==void 0?co:Sl;function o3(e){const t=p.useRef(null);return s3(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}const _t=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Kt=e=>e&&"window"in e&&e.window===e?e:_t(e).defaultView||window;function i3(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function a3(e){return i3(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let l3=!1;function uo(){return l3}function Ll(e,t){if(!uo())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:a3(n)?n=n.host:n=n.parentNode}return!1}const fo=(e=document)=>{var t;if(!uo())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 Tl(e){return uo()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Qr(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 ho(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 kt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const po=kt(function(){return ho(/^Mac/i)}),c3=kt(function(){return ho(/^iPhone/i)}),u3=kt(function(){return ho(/^iPad/i)||po()&&navigator.maxTouchPoints>1}),d3=kt(function(){return c3()||u3()});kt(function(){return po()||d3()}),kt(function(){return Qr(/AppleWebKit/i)&&!f3()});const f3=kt(function(){return Qr(/Chrome/i)}),h3=kt(function(){return Qr(/Android/i)});kt(function(){return Qr(/Firefox/i)});function Ml(){let e=p.useRef(new Map),t=p.useCallback((s,a,i,l)=>{let c=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:s,fn:c,options:l}),s.addEventListener(a,c,l)},[]),n=p.useCallback((s,a,i,l)=>{var c;let u=((c=e.current.get(i))===null||c===void 0?void 0:c.fn)||i;s.removeEventListener(a,u,l),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((s,a)=>{n(s.eventTarget,s.type,a,s.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function p3(e){return e.pointerType===""&&e.isTrusted?!0:h3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Dl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function m3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Nl(e){let t=p.useRef({isFocused:!1,observer:null});Sl(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=o3(r=>{e?.(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,a=i=>{if(t.current.isFocused=!1,s.disabled){let l=Dl(i);n(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let g3=!1,tr=null,mo=new Set,nr=new Map,Yt=!1,go=!1;const x3={Tab:!0,Escape:!0};function xo(e,t){for(let n of mo)n(e,t)}function y3(e){return!(e.metaKey||!po()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function es(e){Yt=!0,y3(e)&&(tr="keyboard",xo("keyboard",e))}function qe(e){tr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yt=!0,xo("pointer",e))}function Pl(e){p3(e)&&(Yt=!0,tr="virtual")}function Al(e){e.target===window||e.target===document||g3||!e.isTrusted||(!Yt&&!go&&(tr="virtual",xo("virtual",e)),Yt=!1,go=!1)}function Rl(){Yt=!1,go=!0}function yo(e){if(typeof window>"u"||typeof document>"u"||nr.get(Kt(e)))return;const t=Kt(e),n=_t(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Yt=!0,r.apply(this,arguments)},n.addEventListener("keydown",es,!0),n.addEventListener("keyup",es,!0),n.addEventListener("click",Pl,!0),t.addEventListener("focus",Al,!0),t.addEventListener("blur",Rl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",qe,!0),n.addEventListener("pointermove",qe,!0),n.addEventListener("pointerup",qe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",qe,!0),n.addEventListener("mousemove",qe,!0),n.addEventListener("mouseup",qe,!0)),t.addEventListener("beforeunload",()=>{_l(e)},{once:!0}),nr.set(t,{focus:r})}const _l=(e,t)=>{const n=Kt(e),r=_t(e);t&&r.removeEventListener("DOMContentLoaded",t),nr.has(n)&&(n.HTMLElement.prototype.focus=nr.get(n).focus,r.removeEventListener("keydown",es,!0),r.removeEventListener("keyup",es,!0),r.removeEventListener("click",Pl,!0),n.removeEventListener("focus",Al,!0),n.removeEventListener("blur",Rl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",qe,!0),r.removeEventListener("pointermove",qe,!0),r.removeEventListener("pointerup",qe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",qe,!0),r.removeEventListener("mousemove",qe,!0),r.removeEventListener("mouseup",qe,!0)),nr.delete(n))};function v3(e){const t=_t(e);let n;return t.readyState!=="loading"?yo(e):(n=()=>{yo(e)},t.addEventListener("DOMContentLoaded",n)),()=>_l(e,n)}typeof document<"u"&&v3();function Fl(){return tr!=="pointer"}const b3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function C3(e,t,n){let r=_t(n?.target);const s=typeof window<"u"?Kt(n?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Kt(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Kt(n?.target).HTMLElement:HTMLElement,l=typeof window<"u"?Kt(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof s&&!b3.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!x3[n.key])}function w3(e,t,n){yo(),p.useEffect(()=>{let r=(s,a)=>{C3(!!n?.isTextInput,s,a)&&e(Fl())};return mo.add(r),()=>{mo.delete(r)}},t)}function j3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:s}=e;const a=p.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),s&&s(!1),!0},[r,s]),i=Nl(a),l=p.useCallback(c=>{const u=_t(c.target),d=u?fo(u):fo();c.target===c.currentTarget&&d===Tl(c.nativeEvent)&&(n&&n(c),s&&s(!0),i(c))},[s,n,i]);return{focusProps:{onFocus:!t&&(n||s||r)?l:void 0,onBlur:!t&&(r||s)?a:void 0}}}function k3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:s}=e,a=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Ml(),c=p.useCallback(f=>{f.currentTarget.contains(f.target)&&a.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(f),s&&s(!1))},[n,s,a,l]),u=Nl(c),d=p.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=_t(f.target),g=fo(h);if(!a.current.isFocusWithin&&g===Tl(f.nativeEvent)){r&&r(f),s&&s(!0),a.current.isFocusWithin=!0,u(f);let m=f.currentTarget;i(h,"focus",x=>{if(a.current.isFocusWithin&&!Ll(m,x.target)){let v=new h.defaultView.FocusEvent("blur",{relatedTarget:x.target});m3(v,m);let y=Dl(v);c(y)}},{capture:!0})}},[r,s,u,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}let ts=!1,ns=0;function vo(){ts=!0,setTimeout(()=>{ts=!1},50)}function Vl(e){e.pointerType==="touch"&&vo()}function E3(){if(!(typeof document>"u"))return ns===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Vl):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",vo)),ns++,()=>{ns--,!(ns>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Vl):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",vo))}}function $l(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[a,i]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(E3,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Ml(),{hoverProps:d,triggerHoverEnd:f}=p.useMemo(()=>{let h=(x,v)=>{if(l.pointerType=v,s||v==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let y=x.currentTarget;l.target=y,c(_t(x.target),"pointerover",C=>{l.isHovered&&l.target&&!Ll(l.target,C.target)&&g(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:v}),n&&n(!0),i(!0)},g=(x,v)=>{let y=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!y)&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:y,pointerType:v}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=x=>{ts&&x.pointerType==="mouse"||h(x,x.pointerType)},m.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&g(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!ts&&h(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&g(x,"mouse")}),{hoverProps:m,triggerHoverEnd:g}},[t,n,r,s,l,c,u]);return p.useEffect(()=>{s&&f({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:d,isHovered:a}}function bo(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,s=p.useRef({isFocused:!1,isFocusVisible:t||Fl()}),[a,i]=p.useState(!1),[l,c]=p.useState(()=>s.current.isFocused&&s.current.isFocusVisible),u=p.useCallback(()=>c(s.current.isFocused&&s.current.isFocusVisible),[]),d=p.useCallback(g=>{s.current.isFocused=g,i(g),u()},[u]);w3(g=>{s.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=j3({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=k3({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?h:f}}var S3=Object.defineProperty,L3=(e,t,n)=>t in e?S3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Co=(e,t,n)=>(L3(e,typeof t!="symbol"?t+"":t,n),n);let T3=class{constructor(){Co(this,"current",this.detect()),Co(this,"handoffState","pending"),Co(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"}},Gt=new T3;function En(e){var t;return Gt.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function qt(e){var t,n;return Gt.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function Xt(e){var t,n;return(n=(t=qt(e))==null?void 0:t.activeElement)!=null?n:null}function wo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Et(){let e=[],t={addEventListener(n,r,s,a){return n.addEventListener(r,s,a),t.add(()=>n.removeEventListener(r,s,a))},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 wo(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,s){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Et();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 s of e.splice(r,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}function rs(){let[e]=p.useState(Et);return p.useEffect(()=>()=>e.dispose(),[e]),e}let Ae=(e,t)=>{Gt.isServer?p.useEffect(e,t):p.useLayoutEffect(e,t)};function Xe(e){let t=p.useRef(e);return Ae(()=>{t.current=e},[e]),t}let oe=function(e){let t=Xe(e);return p.useCallback((...n)=>t.current(...n),[t])};function M3(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 D3(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Ol({disabled:e=!1}={}){let t=p.useRef(null),[n,r]=p.useState(!1),s=rs(),a=oe(()=>{t.current=null,r(!1),s.dispose()}),i=oe(l=>{if(s.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let c=En(l.currentTarget);s.addEventListener(c,"pointerup",a,!1),s.addEventListener(c,"pointermove",u=>{if(t.current){let d=M3(u);r(D3(d,t.current.getBoundingClientRect()))}},!1),s.addEventListener(c,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function gt(e){return p.useMemo(()=>e,Object.values(e))}function Bl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Re(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Re),r}var Jt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Jt||{}),N3=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(N3||{});function Ie(){let e=A3();return p.useCallback(t=>P3({mergeRefs:e,...t}),[e])}function P3({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:s,visible:a=!0,name:i,mergeRefs:l}){l=l??R3;let c=Il(t,e);if(a)return ss(c,n,r,i,l);let u=s??0;if(u&2){let{static:d=!1,...f}=c;if(d)return ss(f,n,r,i,l)}if(u&1){let{unmount:d=!0,...f}=c;return Re(d?0:1,{0(){return null},1(){return ss({...f,hidden:!0,style:{display:"none"}},n,r,i,l)}})}return ss(c,n,r,i,l)}function ss(e,t={},n,r,s){let{as:a=n,children:i,refName:l="ref",...c}=jo(e,["unmount","static"]),u=e.ref!==void 0?{[l]: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,g=[];for(let[m,x]of Object.entries(t))typeof x=="boolean"&&(h=!0),x===!0&&g.push(m.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){f["data-headlessui-state"]=g.join(" ");for(let m of g)f[`data-${m}`]=""}}if(os(a)&&(Object.keys(Sn(c)).length>0||Object.keys(Sn(f)).length>0))if(!p.isValidElement(d)||Array.isArray(d)&&d.length>1||F3(d)){if(Object.keys(Sn(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(Sn(c)).concat(Object.keys(Sn(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,g=h?.className,m=typeof g=="function"?(...
|
|
9
|
+
`))}else{let h=d.props,g=h?.className,m=typeof g=="function"?(...y)=>Bl(g(...y),c.className):Bl(g,c.className),x=m?{className:m}:{},v=Il(d.props,Sn(jo(c,["ref"])));for(let y in f)y in v&&delete f[y];return p.cloneElement(d,Object.assign({},v,f,u,{ref:s(_3(d),u.ref)},x))}return p.createElement(a,Object.assign({},jo(c,["ref"]),!os(a)&&u,!os(a)&&f),d)}function A3(){let e=p.useRef([]),t=p.useCallback(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 R3(...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 Il(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[s=>{var a;return(a=s?.preventDefault)==null?void 0:a.call(s)}]);for(let r in n)Object.assign(t,{[r](s,...a){let i=n[r];for(let l of i){if((s instanceof Event||s?.nativeEvent instanceof Event)&&s.defaultPrevented)return;l(s,...a)}}});return t}function rr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];for(let r in n)Object.assign(t,{[r](...s){let a=n[r];for(let i of a)i?.(...s)}});return t}function _e(e){var t;return Object.assign(p.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Sn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function jo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function _3(e){return p.version.split(".")[0]>="19"?e.props.ref:e.ref}function os(e){return e===p.Fragment||e===Symbol.for("react.fragment")}function F3(e){return os(e.type)}let V3="span";var Ln=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ln||{});function $3(e,t){var n;let{features:r=1,...s}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=s["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 Ie()({ourProps:a,theirProps:s,slot:{},defaultTag:V3,name:"Hidden"})}let Tn=_e($3);function O3(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Qt(e){return O3(e)&&"tagName"in e}function St(e){return Qt(e)&&"accessKey"in e}function Mn(e){return Qt(e)&&"tabIndex"in e}function B3(e){return Qt(e)&&"style"in e}function I3(e){return St(e)&&e.nodeName==="IFRAME"}function H3(e){return St(e)&&e.nodeName==="INPUT"}function W3(e){return St(e)&&e.nodeName==="FIELDSET"}function Hl(e){return St(e)&&e.nodeName==="LEGEND"}function Wl(e){let t=e.parentElement,n=null;for(;t&&!W3(t);)Hl(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&U3(n)?!1:r}function U3(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Hl(t))return!1;t=t.previousElementSibling}return!0}let Ul=Symbol();function Zl(e,t=!0){return Object.assign(e,{[Ul]:t})}function He(...e){let t=p.useRef(e);p.useEffect(()=>{t.current=e},[e]);let n=oe(r=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(r):s.current=r)});return e.every(r=>r==null||r?.[Ul])?void 0:n}var ke=(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))(ke||{});let Z3=p.createContext(()=>{});function zl({value:e,children:t}){return p.createElement(Z3.Provider,{value:e},t)}function Kl(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function z3(e,t,n=!1){let[r,s]=p.useState(()=>Kl(t));return Ae(()=>{if(!t||!e)return;let a=Et();return a.requestAnimationFrame(function i(){a.requestAnimationFrame(i),s(l=>{let c=Kl(t);return c.width===l.width&&c.height===l.height?l:c})}),()=>{a.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}let Yl=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 K3=Object.defineProperty,Y3=(e,t,n)=>t in e?K3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G3=(e,t,n)=>(Y3(e,t+"",n),n),Gl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Je=(e,t,n)=>(Gl(e,t,"read from private field"),n?n.call(e):t.get(e)),ko=(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)},ql=(e,t,n,r)=>(Gl(e,t,"write to private field"),t.set(e,n),n),xt,sr,or;let Xl=class{constructor(t){ko(this,xt,{}),ko(this,sr,new Yl(()=>new Set)),ko(this,or,new Set),G3(this,"disposables",Et()),ql(this,xt,t),Gt.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Je(this,xt)}subscribe(t,n){if(Gt.isServer)return()=>{};let r={selector:t,callback:n,current:t(Je(this,xt))};return Je(this,or).add(r),this.disposables.add(()=>{Je(this,or).delete(r)})}on(t,n){return Gt.isServer?()=>{}:(Je(this,sr).get(t).add(n),this.disposables.add(()=>{Je(this,sr).get(t).delete(n)}))}send(t){let n=this.reduce(Je(this,xt),t);if(n!==Je(this,xt)){ql(this,xt,n);for(let r of Je(this,or)){let s=r.selector(Je(this,xt));Jl(r.current,s)||(r.current=s,r.callback(s))}for(let r of Je(this,sr).get(t.type))r(Je(this,xt),t)}}};xt=new WeakMap,sr=new WeakMap,or=new WeakMap;function Jl(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:Eo(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Eo(e.entries(),t.entries()):Ql(e)&&Ql(t)?Eo(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Eo(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 Ql(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var q3=Object.defineProperty,X3=(e,t,n)=>t in e?q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ec=(e,t,n)=>(X3(e,typeof t!="symbol"?t+"":t,n),n),J3=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(J3||{});let Q3={0(e,t){let n=t.id,r=e.stack,s=e.stack.indexOf(n);if(s!==-1){let a=e.stack.slice();return a.splice(s,1),a.push(n),r=a,{...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 s=e.stack.slice();return s.splice(r,1),{...e,stack:s}}},eh=class F0 extends Xl{constructor(){super(...arguments),ec(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),ec(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new F0({stack:[]})}reduce(t,n){return Re(n.type,Q3,t,n)}};const tc=new Yl(()=>eh.new());var So={exports:{}},Lo={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* use-sync-external-store-with-selector.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
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 nc;function th(){if(nc)return Lo;nc=1;var e=p;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,s=e.useRef,a=e.useEffect,i=e.useMemo,l=e.useDebugValue;return Lo.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var g=s(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=i(function(){function v(E){if(!y){if(y=!0,C=E,E=f(E),h!==void 0&&m.hasValue){var j=m.value;if(h(j,E))return b=j}return b=E}if(j=b,n(C,E))return j;var T=f(E);return h!==void 0&&h(j,T)?(C=E,j):(C=E,b=T)}var y=!1,C,b,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,f,h]);var x=r(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=x},[x]),l(x),x},Lo}var To={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* use-sync-external-store-with-selector.development.js
|
|
20
20
|
*
|
|
@@ -22,8 +22,8 @@
|
|
|
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 Xl;function z3(){return Xl||(Xl=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=p,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,s=t.useRef,a=t.useEffect,i=t.useMemo,l=t.useDebugValue;jo.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var g=s(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=i(function(){function y(k){if(!v){if(v=!0,C=k,k=f(k),h!==void 0&&m.hasValue){var L=m.value;if(h(L,k))return b=L}return b=k}if(L=b,n(C,k))return L;var A=f(k);return h!==void 0&&h(L,A)?(C=k,L):(C=k,b=A)}var v=!1,C,b,j=d===void 0?null:d;return[function(){return y(u())},j===null?void 0:function(){return y(j())}]},[u,d,f,h]);var x=r(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=x},[x]),l(x),x},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),jo}process.env.NODE_ENV==="production"?wo.exports=Z3():wo.exports=z3();var K3=wo.exports;function Jt(e,t,n=zl){return K3.useSyncExternalStoreWithSelector(se(r=>e.subscribe(Y3,r)),se(()=>e.state),se(()=>e.state),se(t),n)}function Y3(e){return e}function G3(e,t){let n=p.useId(),r=Gl.get(t),[s,a]=Jt(r,p.useCallback(i=>[r.selectors.isTop(i,n),r.selectors.inStack(i,n)],[r,n]));return Ae(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?a?s:!0:!1}function q3(e,t,n){let r=qe(s=>{let a=s.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});p.useEffect(()=>{if(!e)return;let s=t===null?null:jt(t)?t:t.current;if(!s)return;let a=kt();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>r.current(s));i.observe(s),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>r.current(s));i.observe(s),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,r,e])}let Lo=["[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(","),X3=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var we=(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))(we||{}),Rt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Rt||{}),J3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(J3||{});function es(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Lo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Q3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(X3)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Eo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Eo||{});function Jl(e,t=0){var n;return e===((n=bn(e))==null?void 0:n.body)?!1:Ne(t,{0(){return e.matches(Lo)},1(){let r=e;for(;r!==null;){if(r.matches(Lo))return!0;r=r.parentElement}return!1}})}var eh=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(eh||{});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 th=["textarea","input"].join(",");function nh(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,th))!=null?n:!1}function Ln(e,t=n=>n){return e.slice().sort((n,r)=>{let s=t(n),a=t(r);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ze(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){let a=Array.isArray(e)?e.length>0?Yt(e[0]):document:Yt(e),i=Array.isArray(e)?n?Ln(e):e:t&64?Q3(e):es(e);s.length>0&&i.length>1&&(i=i.filter(g=>!s.some(m=>m!=null&&"current"in m?m?.current===g:m===g))),r=r??a?.activeElement;let l=(()=>{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 g=c+d;if(t&16)g=(g+f)%f;else{if(g<0)return 3;if(g>=f)return 1}h=i[g],h?.focus(u),d+=l}while(h!==Gt(h));return t&6&&nh(h)&&h.select(),2}function Ql(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function rh(){return/Android/gi.test(window.navigator.userAgent)}function ec(){return Ql()||rh()}function ts(e,t,n,r){let s=qe(n);p.useEffect(()=>{if(!e)return;function a(i){s.current(i)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function tc(e,t,n,r){let s=qe(n);p.useEffect(()=>{if(!e)return;function a(i){s.current(i)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const nc=30;function sh(e,t,n){let r=qe(n),s=p.useCallback(function(l,c){if(l.defaultPrevented)return;let u=c(l);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)||l.composed&&l.composedPath().includes(f)))return;return!Jl(u,Eo.Loose)&&u.tabIndex!==-1&&l.preventDefault(),r.current(l,u)},[r,t]),a=p.useRef(null);ts(e,"pointerdown",l=>{var c,u;ec()||(a.current=((u=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:u[0])||l.target)},!0),ts(e,"pointerup",l=>{if(ec()||!a.current)return;let c=a.current;return a.current=null,s(l,()=>c)},!0);let i=p.useRef({x:0,y:0});ts(e,"touchstart",l=>{i.current.x=l.touches[0].clientX,i.current.y=l.touches[0].clientY},!0),ts(e,"touchend",l=>{let c={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(c.x-i.current.x)>=nc||Math.abs(c.y-i.current.y)>=nc))return s(l,()=>jn(l.target)?l.target:null)},!0),tc(e,"blur",l=>s(l,()=>P3(window.document.activeElement)?window.document.activeElement:null),!0)}function So(...e){return p.useMemo(()=>bn(...e),[...e])}function oh(...e){return p.useMemo(()=>Yt(...e),[...e])}function ih(e,t,n,r){let s=qe(n);p.useEffect(()=>{e=e??window;function a(i){s.current(i)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function rc(e,t){return p.useMemo(()=>{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 ah(e){return p.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function lh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,r.forEach(l=>l()))}}}function ch(){let e;return{before({doc:t}){var n;let r=t.documentElement,s=(n=t.defaultView)!=null?n:window;e=Math.max(0,s.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,s=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-s);n.style(r,"paddingRight",`${a}px`)}}}function uh(){return Ql()?{before({doc:e,d:t,meta:n}){function r(s){for(let a of n().containers)for(let i of a())if(i.contains(s))return!0;return!1}t.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=kt();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(s=window.scrollY)!=null?s:window.pageYOffset,i=null;t.addEventListener(e,"click",l=>{if(jn(l.target))try{let c=l.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);jn(d)&&!r(d)&&(i=d)}catch{}},!0),t.group(l=>{t.addEventListener(e,"touchstart",c=>{if(l.dispose(),jn(c.target)&&D3(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;l.style(u,"overscrollBehavior","contain")}else l.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",l=>{if(jn(l.target)){if(A3(l.target))return;if(r(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;a!==c&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function dh(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function sc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Qt=lh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:kt(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=sc(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=sc(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[uh(),ch(),dh()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Qt.subscribe(()=>{let e=Qt.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",s=n.count!==0;(s&&!r||!s&&r)&&Qt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Qt.dispatch("TEARDOWN",n)}});function fh(e,t,n=()=>({containers:[]})){let r=ah(Qt),s=t?r.get(t):void 0,a=s?s.count>0:!1;return Ae(()=>{if(!(!t||!e))return Qt.dispatch("PUSH",t,n),()=>Qt.dispatch("POP",t,n)},[e,t]),a}function hh(e,t,n=()=>[document.body]){let r=G3(e,"scroll-lock");fh(r,t,s=>{var a;return{containers:[...(a=s.containers)!=null?a:[],n]}})}function ph(e=0){let[t,n]=p.useState(e),r=p.useCallback(c=>n(c),[]),s=p.useCallback(c=>n(u=>u|c),[]),a=p.useCallback(c=>(t&c)===c,[t]),i=p.useCallback(c=>n(u=>u&~c),[]),l=p.useCallback(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:s,hasFlag:a,removeFlag:i,toggleFlag:l}}var oc,ic;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((oc=process==null?void 0:process.env)==null?void 0:oc.NODE_ENV)==="test"&&typeof((ic=Element?.prototype)==null?void 0:ic.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 mh=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(mh||{});function ac(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function lc(e,t,n,r){let[s,a]=p.useState(n),{hasFlag:i,addFlag:l,removeFlag:c}=ph(e&&s?3:0),u=p.useRef(!1),d=p.useRef(!1),f=Xr();return Ae(()=>{var h;if(e){if(n&&a(!0),!t){n&&l(3);return}return(h=void 0)==null||h.call(r,n),gh(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(l(3),c(4)):(l(4),c(2)))},run(){d.current?n?(c(3),l(4)):(c(4),l(3)):n?c(1):l(1)},done(){var g;d.current&&vh(t)||(u.current=!1,c(7),n||a(!1),(g=void 0)==null||g.call(r,n))}})}},[e,n,t,f]),e?[s,{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 gh(e,{prepare:t,run:n,done:r,inFlight:s}){let a=kt();return yh(e,{prepare:t,inFlight:s}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(xh(e,r))})}),a.dispose}function xh(e,t){var n,r;let s=kt();if(!e)return s.dispose;let a=!1;s.add(()=>{a=!0});let i=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return i.length===0?(t(),s.dispose):(Promise.allSettled(i.map(l=>l.finished)).then(()=>{a||t()}),s.dispose)}function yh(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 ns(){return typeof window<"u"}function En(e){return cc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gt(e){var t;return(t=(cc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cc(e){return ns()?e instanceof Node||e instanceof Ke(e).Node:!1}function Te(e){return ns()?e instanceof Element||e instanceof Ke(e).Element:!1}function xt(e){return ns()?e instanceof HTMLElement||e instanceof Ke(e).HTMLElement:!1}function uc(e){return!ns()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ke(e).ShadowRoot}const bh=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bh.has(s)}const Ch=new Set(["table","td","th"]);function wh(e){return Ch.has(En(e))}const kh=[":popover-open",":modal"];function rs(e){return kh.some(t=>{try{return e.matches(t)}catch{return!1}})}const jh=["transform","translate","scale","rotate","perspective"],Lh=["transform","translate","scale","rotate","perspective","filter"],Eh=["paint","layout","strict","content"];function Mo(e){const t=To(),n=Te(e)?lt(e):e;return jh.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)||Lh.some(r=>(n.willChange||"").includes(r))||Eh.some(r=>(n.contain||"").includes(r))}function Sh(e){let t=Ft(e);for(;xt(t)&&!Sn(t);){if(Mo(t))return t;if(rs(t))return null;t=Ft(t)}return null}function To(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mh=new Set(["html","body","#document"]);function Sn(e){return Mh.has(En(e))}function lt(e){return Ke(e).getComputedStyle(e)}function ss(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ft(e){if(En(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uc(e)&&e.host||gt(e);return uc(t)?t.host:t}function dc(e){const t=Ft(e);return Sn(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&er(t)?t:dc(t)}function tr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=dc(e),a=s===((r=e.ownerDocument)==null?void 0:r.body),i=Ke(s);if(a){const l=Do(i);return t.concat(i,i.visualViewport||[],er(s)?s:[],l&&n?tr(l):[])}return t.concat(s,tr(s,[],n))}function Do(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Th(){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 en=Math.min,De=Math.max,nr=Math.round,os=Math.floor,yt=e=>({x:e,y:e}),Dh={left:"right",right:"left",bottom:"top",top:"bottom"},Ph={start:"end",end:"start"};function fc(e,t,n){return De(e,en(t,n))}function Mn(e,t){return typeof e=="function"?e(t):e}function Vt(e){return e.split("-")[0]}function rr(e){return e.split("-")[1]}function hc(e){return e==="x"?"y":"x"}function pc(e){return e==="y"?"height":"width"}const Ah=new Set(["top","bottom"]);function Lt(e){return Ah.has(Vt(e))?"y":"x"}function mc(e){return hc(Lt(e))}function Nh(e,t,n){n===void 0&&(n=!1);const r=rr(e),s=mc(e),a=pc(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=is(i)),[i,is(i)]}function Rh(e){const t=is(e);return[Po(e),t,Po(t)]}function Po(e){return e.replace(/start|end/g,t=>Ph[t])}const gc=["left","right"],xc=["right","left"],Fh=["top","bottom"],Vh=["bottom","top"];function $h(e,t,n){switch(e){case"top":case"bottom":return n?t?xc:gc:t?gc:xc;case"left":case"right":return t?Fh:Vh;default:return[]}}function Oh(e,t,n,r){const s=rr(e);let a=$h(Vt(e),n==="start",r);return s&&(a=a.map(i=>i+"-"+s),t&&(a=a.concat(a.map(Po)))),a}function is(e){return e.replace(/left|right|bottom|top/g,t=>Dh[t])}function _h(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bh(e){return typeof e!="number"?_h(e):{top:e,right:e,bottom:e,left:e}}function as(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function yc(e,t,n){let{reference:r,floating:s}=e;const a=Lt(t),i=mc(t),l=pc(i),c=Vt(t),u=a==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[l]/2-s[l]/2;let g;switch(c){case"top":g={x:d,y:r.y-s.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-s.width,y:f};break;default:g={x:r.x,y:r.y}}switch(rr(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-1:1);break}return g}const Ih=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=yc(u,r,c),h=r,g={},m=0;for(let x=0;x<l.length;x++){const{name:y,fn:v}=l[x],{x:C,y:b,data:j,reset:k}=await v({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=C??d,f=b??f,g={...g,[y]:{...g[y],...j}},k&&m<=50&&(m++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=yc(u,h,c)),x=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:g}};async function ls(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=Mn(t,e),m=Bh(g),y=l[h?f==="floating"?"reference":"floating":f],v=as(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),C=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),j=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},k=as(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:b,strategy:c}):C);return{top:(v.top-k.top+m.top)/j.y,bottom:(k.bottom-v.bottom+m.bottom)/j.y,left:(v.left-k.left+m.left)/j.x,right:(k.right-v.right+m.right)/j.x}}const Hh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:x=!0,...y}=Mn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Vt(s),C=Lt(l),b=Vt(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=h||(b||!x?[is(l)]:Rh(l)),L=m!=="none";!h&&L&&k.push(...Oh(l,x,m,j));const A=[l,...k],D=await ls(t,y),H=[];let V=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&H.push(D[v]),f){const P=Nh(s,i,j);H.push(D[P[0]],D[P[1]])}if(V=[...V,{placement:s,overflows:H}],!H.every(P=>P<=0)){var O,z;const P=(((O=a.flip)==null?void 0:O.index)||0)+1,F=A[P];if(F&&(!(f==="alignment"?C!==Lt(F):!1)||V.every(S=>Lt(S.placement)===C?S.overflows[0]>0:!0)))return{data:{index:P,overflows:V},reset:{placement:F}};let E=(z=V.filter(T=>T.overflows[0]<=0).sort((T,S)=>T.overflows[1]-S.overflows[1])[0])==null?void 0:z.placement;if(!E)switch(g){case"bestFit":{var Z;const T=(Z=V.filter(S=>{if(L){const $=Lt(S.placement);return $===C||$==="y"}return!0}).map(S=>[S.placement,S.overflows.filter($=>$>0).reduce(($,R)=>$+R,0)]).sort((S,$)=>S[1]-$[1])[0])==null?void 0:Z[0];T&&(E=T);break}case"initialPlacement":E=l;break}if(s!==E)return{reset:{placement:E}}}return{}}}},Wh=new Set(["left","top"]);async function Uh(e,t){const{placement:n,platform:r,elements:s}=e,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Vt(n),l=rr(n),c=Lt(n)==="y",u=Wh.has(i)?-1:1,d=a&&c?-1:1,f=Mn(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),c?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const Zh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:a,placement:i,middlewareData:l}=t,c=await Uh(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:i}}}}},zh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:v,y:C}=y;return{x:v,y:C}}},...c}=Mn(e,t),u={x:n,y:r},d=await ls(t,c),f=Lt(Vt(s)),h=hc(f);let g=u[h],m=u[f];if(a){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",C=g+d[y],b=g-d[v];g=fc(C,g,b)}if(i){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",C=m+d[y],b=m-d[v];m=fc(C,m,b)}const x=l.fn({...t,[h]:g,[f]:m});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:a,[f]:i}}}}}},Kh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...u}=Mn(e,t),d=await ls(t,u),f=Vt(s),h=rr(s),g=Lt(s)==="y",{width:m,height:x}=a.floating;let y,v;f==="top"||f==="bottom"?(y=f,v=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(v=f,y=h==="end"?"top":"bottom");const C=x-d.top-d.bottom,b=m-d.left-d.right,j=en(x-d[y],C),k=en(m-d[v],b),L=!t.middlewareData.shift;let A=j,D=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=C),L&&!h){const V=De(d.left,0),O=De(d.right,0),z=De(d.top,0),Z=De(d.bottom,0);g?D=m-2*(V!==0||O!==0?V+O:De(d.left,d.right)):A=x-2*(z!==0||Z!==0?z+Z:De(d.top,d.bottom))}await c({...t,availableWidth:D,availableHeight:A});const H=await i.getDimensions(l.floating);return m!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function vc(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=xt(e),a=s?e.offsetWidth:n,i=s?e.offsetHeight:r,l=nr(n)!==a||nr(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Ao(e){return Te(e)?e:e.contextElement}function Tn(e){const t=Ao(e);if(!xt(t))return yt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:a}=vc(t);let i=(a?nr(n.width):n.width)/r,l=(a?nr(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Yh=yt(0);function bc(e){const t=Ke(e);return!To()||!t.visualViewport?Yh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ke(e)?!1:t}function tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=Ao(e);let i=yt(1);t&&(r?Te(r)&&(i=Tn(r)):i=Tn(e));const l=Gh(a,n,r)?bc(a):yt(0);let c=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(a){const h=Ke(a),g=r&&Te(r)?Ke(r):r;let m=h,x=Do(m);for(;x&&r&&g!==m;){const y=Tn(x),v=x.getBoundingClientRect(),C=lt(x),b=v.left+(x.clientLeft+parseFloat(C.paddingLeft))*y.x,j=v.top+(x.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,f*=y.y,c+=b,u+=j,m=Ke(x),x=Do(m)}}return as({width:d,height:f,x:c,y:u})}function cs(e,t){const n=ss(e).scrollLeft;return t?t.left+n:tn(gt(e)).left+n}function Cc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-cs(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function qh(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const a=s==="fixed",i=gt(r),l=t?rs(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=yt(1);const d=yt(0),f=xt(r);if((f||!f&&!a)&&((En(r)!=="body"||er(i))&&(c=ss(r)),xt(r))){const g=tn(r);u=Tn(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=i&&!f&&!a?Cc(i,c):yt(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 Xh(e){return Array.from(e.getClientRects())}function Jh(e){const t=gt(e),n=ss(e),r=e.ownerDocument.body,s=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cs(e);const l=-n.scrollTop;return lt(r).direction==="rtl"&&(i+=De(t.clientWidth,r.clientWidth)-s),{width:s,height:a,x:i,y:l}}const wc=25;function Qh(e,t){const n=Ke(e),r=gt(e),s=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(s){a=s.width,i=s.height;const d=To();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}const u=cs(r);if(u<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-g);m<=wc&&(a-=m)}else u<=wc&&(a+=u);return{width:a,height:i,x:l,y:c}}const e5=new Set(["absolute","fixed"]);function t5(e,t){const n=tn(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,a=xt(e)?Tn(e):yt(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=s*a.x,u=r*a.y;return{width:i,height:l,x:c,y:u}}function kc(e,t,n){let r;if(t==="viewport")r=Qh(e,n);else if(t==="document")r=Jh(gt(e));else if(Te(t))r=t5(t,n);else{const s=bc(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return as(r)}function jc(e,t){const n=Ft(e);return n===t||!Te(n)||Sn(n)?!1:lt(n).position==="fixed"||jc(n,t)}function n5(e,t){const n=t.get(e);if(n)return n;let r=tr(e,[],!1).filter(l=>Te(l)&&En(l)!=="body"),s=null;const a=lt(e).position==="fixed";let i=a?Ft(e):e;for(;Te(i)&&!Sn(i);){const l=lt(i),c=Mo(i);!c&&l.position==="fixed"&&(s=null),(a?!c&&!s:!c&&l.position==="static"&&!!s&&e5.has(s.position)||er(i)&&!c&&jc(e,i))?r=r.filter(d=>d!==i):s=l,i=Ft(i)}return t.set(e,r),r}function r5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?rs(t)?[]:n5(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,d)=>{const f=kc(t,d,s);return u.top=De(f.top,u.top),u.right=en(f.right,u.right),u.bottom=en(f.bottom,u.bottom),u.left=De(f.left,u.left),u},kc(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function s5(e){const{width:t,height:n}=vc(e);return{width:t,height:n}}function o5(e,t,n){const r=xt(t),s=gt(t),a=n==="fixed",i=tn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=yt(0);function u(){c.x=cs(s)}if(r||!r&&!a)if((En(t)!=="body"||er(s))&&(l=ss(t)),r){const g=tn(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else s&&u();a&&!r&&s&&u();const d=s&&!r&&!a?Cc(s,l):yt(0),f=i.left+l.scrollLeft-c.x-d.x,h=i.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function No(e){return lt(e).position==="static"}function Lc(e,t){if(!xt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return gt(e)===n&&(n=n.ownerDocument.body),n}function Ec(e,t){const n=Ke(e);if(rs(e))return n;if(!xt(e)){let s=Ft(e);for(;s&&!Sn(s);){if(Te(s)&&!No(s))return s;s=Ft(s)}return n}let r=Lc(e,t);for(;r&&wh(r)&&No(r);)r=Lc(r,t);return r&&Sn(r)&&No(r)&&!Mo(r)?n:r||Sh(e)||n}const i5=async function(e){const t=this.getOffsetParent||Ec,n=this.getDimensions,r=await n(e.floating);return{reference:o5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a5(e){return lt(e).direction==="rtl"}const l5={convertOffsetParentRelativeRectToViewportRelativeRect:qh,getDocumentElement:gt,getClippingRect:r5,getOffsetParent:Ec,getElementRects:i5,getClientRects:Xh,getDimensions:s5,getScale:Tn,isElement:Te,isRTL:a5};function Sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function c5(e,t){let n=null,r;const s=gt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:g}=u;if(l||t(),!h||!g)return;const m=os(f),x=os(s.clientWidth-(d+h)),y=os(s.clientHeight-(f+g)),v=os(d),b={rootMargin:-m+"px "+-x+"px "+-y+"px "+-v+"px",threshold:De(0,en(1,c))||1};let j=!0;function k(L){const A=L[0].intersectionRatio;if(A!==c){if(!j)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Sc(u,e.getBoundingClientRect())&&i(),j=!1}try{n=new IntersectionObserver(k,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,b)}n.observe(e)}return i(!0),a}function u5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ao(e),d=s||a?[...u?tr(u):[],...tr(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=u&&l?c5(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(v=>{let[C]=v;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let m,x=c?tn(e):null;c&&y();function y(){const v=tn(e);x&&!Sc(x,v)&&n(),x=v,m=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(C=>{s&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),f?.(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const Ro=ls,d5=Zh,f5=zh,h5=Hh,p5=Kh,m5=(e,t,n)=>{const r=new Map,s={platform:l5,...n},a={...s.platform,_c:r};return Ih(e,t,{...s,platform:a})};var g5=typeof document<"u",x5=function(){},us=g5?p.useLayoutEffect:x5;function ds(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,s;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(!ds(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&e.$$typeof)&&!ds(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Mc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tc(e,t){const n=Mc(e);return Math.round(t*n)/n}function Fo(e){const t=K.useRef(e);return us(()=>{t.current=e}),t}function y5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=K.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=K.useState(r);ds(h,r)||g(r);const[m,x]=K.useState(null),[y,v]=K.useState(null),C=K.useCallback(S=>{S!==L.current&&(L.current=S,x(S))},[]),b=K.useCallback(S=>{S!==A.current&&(A.current=S,v(S))},[]),j=a||m,k=i||y,L=K.useRef(null),A=K.useRef(null),D=K.useRef(d),H=c!=null,V=Fo(c),O=Fo(s),z=Fo(u),Z=K.useCallback(()=>{if(!L.current||!A.current)return;const S={placement:t,strategy:n,middleware:h};O.current&&(S.platform=O.current),m5(L.current,A.current,S).then($=>{const R={...$,isPositioned:z.current!==!1};P.current&&!ds(D.current,R)&&(D.current=R,Pr.flushSync(()=>{f(R)}))})},[h,t,n,O,z]);us(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[u]);const P=K.useRef(!1);us(()=>(P.current=!0,()=>{P.current=!1}),[]),us(()=>{if(j&&(L.current=j),k&&(A.current=k),j&&k){if(V.current)return V.current(j,k,Z);Z()}},[j,k,Z,V,H]);const F=K.useMemo(()=>({reference:L,floating:A,setReference:C,setFloating:b}),[C,b]),E=K.useMemo(()=>({reference:j,floating:k}),[j,k]),T=K.useMemo(()=>{const S={position:n,left:0,top:0};if(!E.floating)return S;const $=Tc(E.floating,d.x),R=Tc(E.floating,d.y);return l?{...S,transform:"translate("+$+"px, "+R+"px)",...Mc(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:R}},[n,l,E.floating,d.x,d.y]);return K.useMemo(()=>({...d,update:Z,refs:F,elements:E,floatingStyles:T}),[d,Z,F,E,T])}const Dc=(e,t)=>({...d5(e),options:[e,t]}),v5=(e,t)=>({...f5(e),options:[e,t]}),b5=(e,t)=>({...h5(e),options:[e,t]}),C5=(e,t)=>({...p5(e),options:[e,t]}),Pc={...K},w5=Pc.useInsertionEffect,k5=w5||(e=>e());function Ac(e){const t=K.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return k5(()=>{t.current=e}),K.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}var Vo=typeof document<"u"?p.useLayoutEffect:p.useEffect;let Nc=!1,j5=0;const Rc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+j5++;function L5(){const[e,t]=K.useState(()=>Nc?Rc():void 0);return Vo(()=>{e==null&&t(Rc())},[]),K.useEffect(()=>{Nc=!0},[]),e}const E5=Pc.useId,S5=E5||L5;let sr;process.env.NODE_ENV!=="production"&&(sr=new Set);function M5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=sr)!=null&&e.has(s))){var a;(a=sr)==null||a.add(s),console.warn(s)}}function T5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=sr)!=null&&e.has(s))){var a;(a=sr)==null||a.add(s),console.error(s)}}function D5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(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(s=>s!==n))||[])}}}const P5=K.createContext(null),A5=K.createContext(null),N5=()=>{var e;return((e=K.useContext(P5))==null?void 0:e.id)||null},R5=()=>K.useContext(A5),F5="data-floating-ui-focusable";function V5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=S5(),a=K.useRef({}),[i]=K.useState(()=>D5()),l=N5()!=null;if(process.env.NODE_ENV!=="production"){const g=r.reference;g&&!Te(g)&&T5("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]=K.useState(r.reference),d=Ac((g,m,x)=>{a.current.openEvent=g?m:void 0,i.emit("openchange",{open:g,event:m,reason:x,nested:l}),n?.(g,m,x)}),f=K.useMemo(()=>({setPositionReference:u}),[]),h=K.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return K.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:h,events:i,floatingId:s,refs:f}),[t,d,h,i,s,f])}function $5(e){e===void 0&&(e={});const{nodeId:t}=e,n=V5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[a,i]=K.useState(null),[l,c]=K.useState(null),d=s?.domReference||a,f=K.useRef(null),h=R5();Vo(()=>{d&&(f.current=d)},[d]);const g=y5({...e,elements:{...s,...l&&{reference:l}}}),m=K.useCallback(b=>{const j=Te(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;c(j),g.refs.setReference(j)},[g.refs]),x=K.useCallback(b=>{(Te(b)||b===null)&&(f.current=b,i(b)),(Te(g.refs.reference.current)||g.refs.reference.current===null||b!==null&&!Te(b))&&g.refs.setReference(b)},[g.refs]),y=K.useMemo(()=>({...g.refs,setReference:x,setPositionReference:m,domReference:f}),[g.refs,x,m]),v=K.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),C=K.useMemo(()=>({...g,...r,refs:y,elements:v,nodeId:t}),[g,y,v,t,r]);return Vo(()=>{r.dataRef.current.floatingContext=C;const b=h?.nodesRef.current.find(j=>j.id===t);b&&(b.context=C)}),K.useMemo(()=>({...g,context:C,refs:y,elements:v}),[g,y,v,C])}const Fc="active",Vc="selected";function $o(e,t,n){const r=new Map,s=n==="item";let a=e;if(s&&e){const{[Fc]:i,[Vc]:l,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1,[F5]:""},...a,...t.map(i=>{const l=i?i[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((i,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(s&&[Fc,Vc].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,g=arguments.length,m=new Array(g),x=0;x<g;x++)m[x]=arguments[x];return(h=r.get(u))==null?void 0:h.map(y=>y(...m)).find(y=>y!==void 0)}}}else i[u]=d}),i),{})}}function O5(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),s=K.useCallback(l=>$o(l,e,"reference"),t),a=K.useCallback(l=>$o(l,e,"floating"),n),i=K.useCallback(l=>$o(l,e,"item"),r);return K.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:i}),[s,a,i])}function $c(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const _5=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:s,offset:a=0,index:i=0,minItemsVisible:l=4,referenceOverflowThreshold:c=0,scrollRef:u,...d}=Mn(e,t),{rects:f,elements:{floating:h}}=t,g=n.current[i],m=u?.current||h,x=h.clientTop||m.clientTop,y=h.clientTop!==0,v=m.clientTop!==0,C=h===m;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||M5('`placement` side must be "bottom" when using the `inner`',"middleware.")),!g)return{};const b={...t,...await Dc(-g.offsetTop-h.clientTop-f.reference.height/2-g.offsetHeight/2-a).fn(t)},j=await Ro($c(b,m.scrollHeight+x+h.clientTop),d),k=await Ro(b,{...d,elementContext:"reference"}),L=De(0,j.top),A=b.y+L,V=(m.scrollHeight>m.clientHeight?O=>O:nr)(De(0,m.scrollHeight+(y&&C||v?x*2:0)-L-De(0,j.bottom)));if(m.style.maxHeight=V+"px",m.scrollTop=L,s){const O=m.offsetHeight<g.offsetHeight*en(l,n.current.length)-1||k.top>=-c||k.bottom>=-c;Pr.flushSync(()=>s(O))}return r&&(r.current=await Ro($c({...b,y:A},m.offsetHeight+x+h.clientTop),d)),{y:A}}});function B5(e,t){const{open:n,elements:r}=e,{enabled:s=!0,overflowRef:a,scrollRef:i,onChange:l}=t,c=Ac(l),u=K.useRef(!1),d=K.useRef(null),f=K.useRef(null);K.useEffect(()=>{if(!s)return;function g(x){if(x.ctrlKey||!m||a.current==null)return;const y=x.deltaY,v=a.current.top>=-.5,C=a.current.bottom>=-.5,b=m.scrollHeight-m.clientHeight,j=y<0?-1:1,k=y<0?"max":"min";m.scrollHeight<=m.clientHeight||(!v&&y>0||!C&&y<0?(x.preventDefault(),Pr.flushSync(()=>{c(L=>L+Math[k](y,b*j))})):/firefox/i.test(Th())&&(m.scrollTop+=y))}const m=i?.current||r.floating;if(n&&m)return m.addEventListener("wheel",g),requestAnimationFrame(()=>{d.current=m.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{d.current=null,f.current=null,m.removeEventListener("wheel",g)}},[s,n,r.floating,a,i,c]);const h=K.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const g=i?.current||r.floating;if(!(!a.current||!g||!u.current)){if(d.current!==null){const m=g.scrollTop-d.current;(a.current.bottom<-.5&&m<-1||a.current.top<-.5&&m>1)&&Pr.flushSync(()=>c(x=>x+m))}requestAnimationFrame(()=>{d.current=g.scrollTop})}}}),[r.floating,c,a,i]);return K.useMemo(()=>s?{floating:h}:{},[s,h])}let or=p.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});or.displayName="FloatingContext";let Oo=p.createContext(null);Oo.displayName="PlacementContext";function I5(e){return p.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function H5(){return p.useContext(or).setReference}function W5(){let{getFloatingProps:e,slot:t}=p.useContext(or);return p.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function U5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=p.useContext(Oo),n=p.useMemo(()=>e,[JSON.stringify(e,(s,a)=>{var i;return(i=a?.outerHTML)!=null?i:a})]);Ae(()=>{t?.(n??null)},[t,n]);let r=p.useContext(or);return p.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Oc=4;function Z5({children:e,enabled:t=!0}){let[n,r]=p.useState(null),[s,a]=p.useState(0),i=p.useRef(null),[l,c]=p.useState(null);z5(l);let u=t&&n!==null&&l!==null,{to:d="bottom",gap:f=0,offset:h=0,padding:g=0,inner:m}=K5(n,l),[x,y="center"]=d.split(" ");Ae(()=>{u&&a(0)},[u]);let{refs:v,floatingStyles:C,context:b}=$5({open:u,placement:x==="selection"?y==="center"?"bottom":`bottom-${y}`:y==="center"?`${x}`:`${x}-${y}`,strategy:"absolute",transform:!1,middleware:[Dc({mainAxis:x==="selection"?0:f,crossAxis:h}),v5({padding:g}),x!=="selection"&&b5({padding:g}),x==="selection"&&m?_5({...m,padding:g,overflowRef:i,offset:s,minItemsVisible:Oc,referenceOverflowThreshold:g,onFallbackChange(O){var z,Z;if(!O)return;let P=b.elements.floating;if(!P)return;let F=parseFloat(getComputedStyle(P).scrollPaddingBottom)||0,E=Math.min(Oc,P.childElementCount),T=0,S=0;for(let $ of(Z=(z=b.elements.floating)==null?void 0:z.childNodes)!=null?Z:[])if(jt($)){let R=$.offsetTop,W=R+$.clientHeight+F,Y=P.scrollTop,_=Y+P.clientHeight;if(R>=Y&&W<=_)E--;else{S=Math.max(0,Math.min(W,_)-Math.max(R,Y)),T=$.clientHeight;break}}E>=1&&a($=>{let R=T*E-S+F;return $>=R?$:R})}}):null,C5({padding:g,apply({availableWidth:O,availableHeight:z,elements:Z}){Object.assign(Z.floating.style,{overflow:"auto",maxWidth:`${O}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${z}px)`})}})].filter(Boolean),whileElementsMounted:u5}),[j=x,k=y]=b.placement.split("-");x==="selection"&&(j="selection");let L=p.useMemo(()=>({anchor:[j,k].filter(Boolean).join(" ")}),[j,k]),A=B5(b,{overflowRef:i,onChange:a}),{getReferenceProps:D,getFloatingProps:H}=O5([A]),V=se(O=>{c(O),v.setFloating(O)});return K.createElement(Oo.Provider,{value:r},K.createElement(or.Provider,{value:{setFloating:V,setReference:v.setReference,styles:C,getReferenceProps:D,getFloatingProps:H,slot:L}},e))}function z5(e){Ae(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let s=parseInt(n);isNaN(s)||r!==s&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function K5(e,t){var n,r,s;let a=_o((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),i=_o((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),l=_o((s=e?.padding)!=null?s:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:i,padding:l}}function _o(e,t,n=void 0){let r=Xr(),s=se((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=Bc(c,u);return[d,f=>{let h=_c(c);{let g=h.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let x=!1;for(let[v,C]of h.entries()){let b=window.getComputedStyle(u).getPropertyValue(C);if(g[v]!==b){g[v]=b,x=!0;break}}if(!x)return;let y=Bc(c,u);d!==y&&(f(y),d=y)})}return r.dispose}]}return[n,null]}),a=p.useMemo(()=>s(e,t)[0],[e,t]),[i=a,l]=p.useState();return Ae(()=>{let[c,u]=s(e,t);if(l(c),!!u)return u(l)},[e,t]),i}function _c(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(),s=t[1].slice(n+1).trim();return s?[r,..._c(s)]:[r]}return[]}function Bc(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 fs=p.createContext(null);fs.displayName="OpenClosedContext";var nn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(nn||{});function Ic(){return p.useContext(fs)}function Y5({value:e,children:t}){return p.createElement(fs.Provider,{value:e},t)}function G5({children:e}){return p.createElement(fs.Provider,{value:null},e)}function Hc(e){let t=se(e),n=p.useRef(!1);p.useEffect(()=>(n.current=!1,()=>{n.current=!0,yo(()=>{n.current&&t()})}),[t])}let q5=p.createContext(!1);function X5(){return p.useContext(q5)}function J5(e){let t=X5(),n=p.useContext(Uc),[r,s]=p.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(Kt.isServer)return null;let i=e?.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let l=e.createElement("div");return l.setAttribute("id","headlessui-portal-root"),e.body.appendChild(l)});return p.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),p.useEffect(()=>{t||n!==null&&s(n.current)},[n,s,t]),r}let Wc=p.Fragment,Q5=Re(function(e,t){let{ownerDocument:n=null,...r}=e,s=p.useRef(null),a=Ie(_l(h=>{s.current=h}),t),i=So(s.current),l=n??i,c=J5(l),u=p.useContext(Bo),d=Xr(),f=Be();return Hc(()=>{var h;c&&c.childNodes.length<=0&&((h=c.parentElement)==null||h.removeChild(c))}),c?Ws.createPortal(p.createElement("div",{"data-headlessui-portal":"",ref:h=>{d.dispose(),u&&h&&d.add(u.register(h))}},f({ourProps:{ref:a},theirProps:r,slot:{},defaultTag:Wc,name:"Portal"})),c):null});function e9(e,t){let n=Ie(t),{enabled:r=!0,ownerDocument:s,...a}=e,i=Be();return r?p.createElement(Q5,{...a,ownerDocument:s,ref:n}):i({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:Wc,name:"Portal"})}let t9=p.Fragment,Uc=p.createContext(null);function n9(e,t){let{target:n,...r}=e,s={ref:Ie(t)},a=Be();return p.createElement(Uc.Provider,{value:n},a({ourProps:s,theirProps:r,defaultTag:t9,name:"Popover.Group"}))}let Bo=p.createContext(null);function r9(){let e=p.useContext(Bo),t=p.useRef([]),n=se(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=se(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),s=p.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,p.useMemo(()=>function({children:a}){return p.createElement(Bo.Provider,{value:s},a)},[s])]}let s9=Re(e9),o9=Re(n9),i9=Object.assign(s9,{Group:o9});function a9({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=se(()=>{var s,a;let i=bn(n),l=[];for(let c of e)c!==null&&(Xt(c)?l.push(c):"current"in c&&Xt(c.current)&&l.push(c.current));if(t!=null&&t.current)for(let c of t.current)l.push(c);for(let c of(s=i?.querySelectorAll("html > *, body > *"))!=null?s:[])c!==document.body&&c!==document.head&&Xt(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((a=n?.getRootNode())==null?void 0:a.host))||l.some(u=>c.contains(u))||l.push(c));return l});return{resolveContainers:r,contains:se(s=>r().some(a=>a.contains(s)))}}let Zc=p.createContext(null);function zc({children:e,node:t}){let[n,r]=p.useState(null),s=Kc(t??n);return p.createElement(Zc.Provider,{value:s},e,s===null&&p.createElement(kn,{features:wn.Hidden,ref:a=>{var i,l;if(a){for(let c of(l=(i=bn(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?l:[])if(c!==document.body&&c!==document.head&&Xt(c)&&c!=null&&c.contains(a)){r(c);break}}}}))}function Kc(e=null){var t;return(t=p.useContext(Zc))!=null?t:e}function l9(){let e=p.useRef(!1);return Ae(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Et=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Et||{});function Yc(){let e=p.useRef(0);return tc(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}var c9=Object.defineProperty,u9=(e,t,n)=>t in e?c9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t,n)=>(u9(e,typeof t!="symbol"?t+"":t,n),n),be=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(be||{}),d9=(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))(d9||{});let f9={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 ba extends Zl{constructor(t){super(t),Gc(this,"actions",{close:()=>this.send({type:1}),refocusableClose:n=>{this.actions.close();let r=(()=>n?jt(n)?n:"current"in n&&jt(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})}),Gc(this,"selectors",{isPortalled:n=>{var r;if(!n.button||!n.panel)return!1;let s=(r=bn(n.button))!=null?r:document;for(let f of s.querySelectorAll("body > *"))if(Number(f?.contains(n.button))^Number(f?.contains(n.panel)))return!0;let a=es(s),i=a.indexOf(n.button),l=(i+a.length-1)%a.length,c=(i+1)%a.length,u=a[l],d=a[c];return!n.panel.contains(u)&&!n.panel.contains(d)}});{let n=this.state.id,r=Gl.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 ba({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 Ne(n.type,f9,t,n)}}const qc=p.createContext(null);function hs(e){let t=p.useContext(qc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hs),n}return t}function h9({id:e,__demoMode:t=!1}){let n=p.useMemo(()=>ba.new({id:e,__demoMode:t}),[]);return Hc(()=>n.dispose()),n}let Io=p.createContext(null);Io.displayName="PopoverGroupContext";function Xc(){return p.useContext(Io)}let ps=p.createContext(null);ps.displayName="PopoverPanelContext";function p9(){return p.useContext(ps)}let m9="div";function g9(e,t){var n;let r=p.useId(),{__demoMode:s=!1,...a}=e,i=h9({id:r,__demoMode:s}),l=p.useRef(null),c=Ie(t,_l(P=>{l.current=P})),[u,d,f,h,g]=Jt(i,p.useCallback(P=>[P.popoverState,P.button,P.panel,P.buttonId,P.panelId],[])),m=oh((n=l.current)!=null?n:d),x=qe(h),y=qe(g),v=p.useMemo(()=>({buttonId:x,panelId:y,close:i.actions.close}),[x,y,i]),C=Xc(),b=C?.registerPopover,j=se(()=>{var P,F;let E=Gt((P=l.current)!=null?P:d);return(F=C?.isFocusWithinPopoverGroup())!=null?F:E&&(d?.contains(E)||f?.contains(E))});p.useEffect(()=>b?.(v),[b,v]);let[k,L]=r9(),A=Kc(d),D=a9({mainTreeNode:A,portals:k,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});ih(m,"focus",P=>{var F,E,T,S,$,R;P.target!==window&&jn(P.target)&&i.state.popoverState===be.Open&&(j()||i.state.button&&i.state.panel&&(D.contains(P.target)||(E=(F=i.state.beforePanelSentinel.current)==null?void 0:F.contains)!=null&&E.call(F,P.target)||(S=(T=i.state.afterPanelSentinel.current)==null?void 0:T.contains)!=null&&S.call(T,P.target)||(R=($=i.state.afterButtonSentinel.current)==null?void 0:$.contains)!=null&&R.call($,P.target)||i.actions.close()))},!0);let H=u===be.Open;sh(H,D.resolveContainers,(P,F)=>{i.actions.close(),Jl(F,Eo.Loose)||(P.preventDefault(),d?.focus())});let V=pt({open:u===be.Open,close:i.actions.refocusableClose}),O=Jt(i,p.useCallback(P=>Ne(P.popoverState,{[be.Open]:nn.Open,[be.Closed]:nn.Closed}),[])),z={ref:c},Z=Be();return p.createElement(zc,{node:A},p.createElement(Z5,null,p.createElement(ps.Provider,{value:null},p.createElement(qc.Provider,{value:i},p.createElement(Bl,{value:i.actions.refocusableClose},p.createElement(Y5,{value:O},p.createElement(L,null,Z({ourProps:z,theirProps:a,slot:V,defaultTag:m9,name:"Popover"}))))))))}let x9="button";function y9(e,t){let n=p.useId(),{id:r=`headlessui-popover-button-${n}`,disabled:s=!1,autoFocus:a=!1,...i}=e,l=hs("Popover.Button"),[c,u,d,f,h,g,m]=Jt(l,p.useCallback(N=>[N.popoverState,l.selectors.isPortalled(N),N.button,N.buttonId,N.panel,N.panelId,N.afterButtonSentinel],[])),x=p.useRef(null),y=`headlessui-focus-sentinel-${p.useId()}`,v=Xc(),C=v?.closeOthers,b=p9()!==null;p.useEffect(()=>{if(!b)return l.actions.setButtonId(r),()=>l.actions.setButtonId(null)},[b,r,l]);let[j]=p.useState(()=>Symbol()),k=Ie(x,t,H5(),se(N=>{if(!b){if(N)l.state.buttons.current.push(j);else{let I=l.state.buttons.current.indexOf(j);I!==-1&&l.state.buttons.current.splice(I,1)}l.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),N&&l.actions.setButton(N)}})),L=Ie(x,t),A=se(N=>{var I,Q,ne;if(b){if(l.state.popoverState===be.Closed)return;switch(N.key){case je.Space:case je.Enter:N.preventDefault(),(Q=(I=N.target).click)==null||Q.call(I),l.actions.close(),(ne=l.state.button)==null||ne.focus();break}}else switch(N.key){case je.Space:case je.Enter:N.preventDefault(),N.stopPropagation(),l.state.popoverState===be.Closed?(C?.(l.state.buttonId),l.actions.open()):l.actions.close();break;case je.Escape:if(l.state.popoverState!==be.Open)return C?.(l.state.buttonId);if(!x.current)return;let G=Gt(x.current);if(G&&!x.current.contains(G))return;N.preventDefault(),N.stopPropagation(),l.actions.close();break}}),D=se(N=>{b||N.key===je.Space&&N.preventDefault()}),H=se(N=>{var I,Q;$l(N.currentTarget)||s||(b?(l.actions.close(),(I=l.state.button)==null||I.focus()):(N.preventDefault(),N.stopPropagation(),l.state.popoverState===be.Closed?(C?.(l.state.buttonId),l.actions.open()):l.actions.close(),(Q=l.state.button)==null||Q.focus()))}),V=se(N=>{N.preventDefault(),N.stopPropagation()}),{isFocusVisible:O,focusProps:z}=go({autoFocus:a}),{isHovered:Z,hoverProps:P}=Al({isDisabled:s}),{pressed:F,pressProps:E}=Nl({disabled:s}),T=c===be.Open,S=pt({open:T,active:F||T,disabled:s,hover:Z,focus:O,autofocus:a}),$=rc(e,d),R=Xn(b?{ref:L,type:$,onKeyDown:A,onClick:H,disabled:s||void 0,autoFocus:a}:{ref:k,id:f,type:$,"aria-expanded":c===be.Open,"aria-controls":h?g:void 0,disabled:s||void 0,autoFocus:a,onKeyDown:A,onKeyUp:D,onClick:H,onMouseDown:V},z,P,E),W=Yc(),Y=se(()=>{if(!jt(l.state.panel))return;let N=l.state.panel;function I(){Ne(W.current,{[Et.Forwards]:()=>ze(N,we.First),[Et.Backwards]:()=>ze(N,we.Last)})===Rt.Error&&ze(es(Yt(l.state.button)).filter(Q=>Q.dataset.headlessuiFocusGuard!=="true"),Ne(W.current,{[Et.Forwards]:we.Next,[Et.Backwards]:we.Previous}),{relativeTo:l.state.button})}I()}),_=Be();return p.createElement(p.Fragment,null,_({ourProps:R,theirProps:i,slot:S,defaultTag:x9,name:"Popover.Button"}),T&&!b&&u&&p.createElement(kn,{id:y,ref:m,features:wn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Y}))}let v9="div",b9=qt.RenderStrategy|qt.Static;function Jc(e,t){let n=p.useId(),{id:r=`headlessui-popover-backdrop-${n}`,transition:s=!1,...a}=e,i=hs("Popover.Backdrop"),l=Jt(i,p.useCallback(v=>v.popoverState,[])),[c,u]=p.useState(null),d=Ie(t,u),f=Ic(),[h,g]=lc(s,c,f!==null?(f&nn.Open)===nn.Open:l===be.Open),m=se(v=>{if($l(v.currentTarget))return v.preventDefault();i.actions.close()}),x=pt({open:l===be.Open}),y={ref:d,id:r,"aria-hidden":!0,onClick:m,...ac(g)};return Be()({ourProps:y,theirProps:a,slot:x,defaultTag:v9,features:b9,visible:h,name:"Popover.Backdrop"})}let C9="div",w9=qt.RenderStrategy|qt.Static;function k9(e,t){let n=p.useId(),{id:r=`headlessui-popover-panel-${n}`,focus:s=!1,anchor:a,portal:i=!1,modal:l=!1,transition:c=!1,...u}=e,d=hs("Popover.Panel"),f=Jt(d,d.selectors.isPortalled),[h,g,m,x,y]=Jt(d,p.useCallback(_=>[_.popoverState,_.button,_.__demoMode,_.beforePanelSentinel,_.afterPanelSentinel],[])),v=`headlessui-focus-sentinel-before-${n}`,C=`headlessui-focus-sentinel-after-${n}`,b=p.useRef(null),j=I5(a),[k,L]=U5(j),A=W5();j&&(i=!0);let[D,H]=p.useState(null),V=Ie(b,t,j?k:null,d.actions.setPanel,H),O=So(g),z=So(b.current);Ae(()=>(d.actions.setPanelId(r),()=>d.actions.setPanelId(null)),[r,d]);let Z=Ic(),[P,F]=lc(c,D,Z!==null?(Z&nn.Open)===nn.Open:h===be.Open);q3(P,g,d.actions.close),hh(m?!1:l&&P,z);let E=se(_=>{var N;switch(_.key){case je.Escape:if(d.state.popoverState!==be.Open||!b.current)return;let I=Gt(b.current);if(I&&!b.current.contains(I))return;_.preventDefault(),_.stopPropagation(),d.actions.close(),(N=d.state.button)==null||N.focus();break}});p.useEffect(()=>{var _;e.static||h===be.Closed&&((_=e.unmount)==null||_)&&d.actions.setPanel(null)},[h,e.unmount,e.static,d]),p.useEffect(()=>{if(m||!s||h!==be.Open||!b.current)return;let _=Gt(b.current);b.current.contains(_)||ze(b.current,we.First)},[m,s,b.current,h]);let T=pt({open:h===be.Open,close:d.actions.refocusableClose}),S=Xn(j?A():{},{ref:V,id:r,onKeyDown:E,onBlur:s&&h===be.Open?_=>{var N,I,Q,ne,G;let oe=_.relatedTarget;oe&&b.current&&((N=b.current)!=null&&N.contains(oe)||(d.actions.close(),((Q=(I=x.current)==null?void 0:I.contains)!=null&&Q.call(I,oe)||(G=(ne=y.current)==null?void 0:ne.contains)!=null&&G.call(ne,oe))&&oe.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...L,"--button-width":V3(P,g,!0).width},...ac(F)}),$=Yc(),R=se(()=>{let _=b.current;if(!_)return;function N(){Ne($.current,{[Et.Forwards]:()=>{var I;ze(_,we.First)===Rt.Error&&((I=d.state.afterPanelSentinel.current)==null||I.focus())},[Et.Backwards]:()=>{var I;(I=d.state.button)==null||I.focus({preventScroll:!0})}})}N()}),W=se(()=>{let _=b.current;if(!_)return;function N(){Ne($.current,{[Et.Forwards]:()=>{var I;if(!d.state.button)return;let Q=(I=Yt(d.state.button))!=null?I:document.body,ne=es(Q),G=ne.indexOf(d.state.button),oe=ne.slice(0,G+1),re=[...ne.slice(G+1),...oe];for(let le of re.slice())if(le.dataset.headlessuiFocusGuard==="true"||D!=null&&D.contains(le)){let J=re.indexOf(le);J!==-1&&re.splice(J,1)}ze(re,we.First,{sorted:!1})},[Et.Backwards]:()=>{var I;ze(_,we.Previous)===Rt.Error&&((I=d.state.button)==null||I.focus())}})}N()}),Y=Be();return p.createElement(G5,null,p.createElement(ps.Provider,{value:r},p.createElement(Bl,{value:d.actions.refocusableClose},p.createElement(i9,{enabled:i?e.static||P:!1,ownerDocument:O},P&&f&&p.createElement(kn,{id:v,ref:x,features:wn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:R}),Y({ourProps:S,theirProps:u,slot:T,defaultTag:C9,features:w9,visible:P,name:"Popover.Panel"}),P&&f&&p.createElement(kn,{id:C,ref:y,features:wn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:W})))))}let j9="div";function L9(e,t){let n=p.useRef(null),r=Ie(n,t),[s,a]=p.useState([]),i=se(x=>{a(y=>{let v=y.indexOf(x);if(v!==-1){let C=y.slice();return C.splice(v,1),C}return y})}),l=se(x=>(a(y=>[...y,x]),()=>i(x))),c=se(()=>{var x;let y=Yt(n.current);if(!y)return!1;let v=Gt(n.current);return(x=n.current)!=null&&x.contains(v)?!0:s.some(C=>{var b,j;return((b=y.getElementById(C.buttonId.current))==null?void 0:b.contains(v))||((j=y.getElementById(C.panelId.current))==null?void 0:j.contains(v))})}),u=se(x=>{for(let y of s)y.buttonId.current!==x&&y.close()}),d=p.useMemo(()=>({registerPopover:l,unregisterPopover:i,isFocusWithinPopoverGroup:c,closeOthers:u}),[l,i,c,u]),f=pt({}),h=e,g={ref:r},m=Be();return p.createElement(zc,null,p.createElement(Io.Provider,{value:d},m({ourProps:g,theirProps:h,slot:f,defaultTag:j9,name:"Popover.Group"})))}let E9=Re(g9),Qc=Re(y9),S9=Re(Jc),M9=Re(Jc),e1=Re(k9),T9=Re(L9),D9=Object.assign(E9,{Button:Qc,Backdrop:M9,Overlay:S9,Panel:e1,Group:T9});function P9({onFocus:e}){let[t,n]=p.useState(!0),r=l9();return t?p.createElement(kn,{as:"button",type:"button",features:wn.Focusable,onFocus:s=>{s.preventDefault();let a,i=50;function l(){if(i--<=0){a&&cancelAnimationFrame(a);return}if(e()){if(cancelAnimationFrame(a),!r.current)return;n(!1);return}a=requestAnimationFrame(l)}a=requestAnimationFrame(l)}}):null}const t1=K.createContext(null);function A9(){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 s=(n=r.get(t))!=null?n:0;r.set(t,s+1);let a=Array.from(r.keys()).indexOf(t);function i(){let l=r.get(t);l>1?r.set(t,l-1):r.delete(t)}return[a,i]}}}function N9({children:e}){let t=K.useRef(A9());return K.createElement(t1.Provider,{value:t},e)}function n1(e){let t=K.useContext(t1);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=K.useId(),[r,s]=t.current.get(e,n);return K.useEffect(()=>s,[]),r}var R9=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(R9||{}),F9=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(F9||{}),V9=(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))(V9||{});let $9={0(e,t){var n;let r=Ln(e.tabs,d=>d.current),s=Ln(e.panels,d=>d.current),a=r.filter(d=>{var f;return!((f=d.current)!=null&&f.hasAttribute("disabled"))}),i={...e,tabs:r,panels:s};if(t.index<0||t.index>r.length-1){let d=Ne(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Ne(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(a.length===0)return i;let f=Ne(d,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:f===-1?e.selectedIndex:f}}let l=r.slice(0,t.index),c=[...r.slice(t.index),...l].find(d=>a.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=Ln([...e.tabs,t.tab],a=>a.current),s=e.selectedIndex;return e.info.current.isControlled||(s=r.indexOf(n),s===-1&&(s=e.selectedIndex)),{...e,tabs:r,selectedIndex:s}},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:Ln([...e.panels,t.panel],n=>n.current)}},4(e,t){return{...e,panels:e.panels.filter(n=>n!==t.panel)}}},Ho=p.createContext(null);Ho.displayName="TabsDataContext";function Dn(e){let t=p.useContext(Ho);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Dn),n}return t}let Wo=p.createContext(null);Wo.displayName="TabsActionsContext";function Uo(e){let t=p.useContext(Wo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Uo),n}return t}function O9(e,t){return Ne(t.type,$9,e,t)}let _9="div";function B9(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:s=!1,onChange:a,selectedIndex:i=null,...l}=e;const c=r?"vertical":"horizontal",u=s?"manual":"auto";let d=i!==null,f=qe({isControlled:d}),h=Ie(t),[g,m]=p.useReducer(O9,{info:f,selectedIndex:i??n,tabs:[],panels:[]}),x=pt({selectedIndex:g.selectedIndex}),y=qe(a||(()=>{})),v=qe(g.tabs),C=p.useMemo(()=>({orientation:c,activation:u,...g}),[c,u,g]),b=se(V=>(m({type:1,tab:V}),()=>m({type:2,tab:V}))),j=se(V=>(m({type:3,panel:V}),()=>m({type:4,panel:V}))),k=se(V=>{L.current!==V&&y.current(V),d||m({type:0,index:V})}),L=qe(d?e.selectedIndex:g.selectedIndex),A=p.useMemo(()=>({registerTab:b,registerPanel:j,change:k}),[]);Ae(()=>{m({type:0,index:i??n})},[i]),Ae(()=>{if(L.current===void 0||g.tabs.length<=0)return;let V=Ln(g.tabs,O=>O.current);V.some((O,z)=>g.tabs[z]!==O)&&k(V.indexOf(g.tabs[L.current]))});let D={ref:h},H=Be();return p.createElement(N9,null,p.createElement(Wo.Provider,{value:A},p.createElement(Ho.Provider,{value:C},C.tabs.length<=0&&p.createElement(P9,{onFocus:()=>{var V,O;for(let z of v.current)if(((V=z.current)==null?void 0:V.tabIndex)===0)return(O=z.current)==null||O.focus(),!0;return!1}}),H({ourProps:D,theirProps:l,slot:x,defaultTag:_9,name:"Tabs"}))))}let I9="div";function H9(e,t){let{orientation:n,selectedIndex:r}=Dn("Tab.List"),s=Ie(t),a=pt({selectedIndex:r}),i=e,l={ref:s,role:"tablist","aria-orientation":n};return Be()({ourProps:l,theirProps:i,slot:a,defaultTag:I9,name:"Tabs.List"})}let W9="button";function U9(e,t){var n,r;let s=p.useId(),{id:a=`headlessui-tabs-tab-${s}`,disabled:i=!1,autoFocus:l=!1,...c}=e,{orientation:u,activation:d,selectedIndex:f,tabs:h,panels:g}=Dn("Tab"),m=Uo("Tab"),x=Dn("Tab"),[y,v]=p.useState(null),C=p.useRef(null),b=Ie(C,t,v);Ae(()=>m.registerTab(C),[m,C]);let j=n1("tabs"),k=h.indexOf(C);k===-1&&(k=j);let L=k===f,A=se(R=>{let W=R();if(W===Rt.Success&&d==="auto"){let Y=Gt(C.current),_=x.tabs.findIndex(N=>N.current===Y);_!==-1&&m.change(_)}return W}),D=se(R=>{let W=h.map(Y=>Y.current).filter(Boolean);if(R.key===je.Space||R.key===je.Enter){R.preventDefault(),R.stopPropagation(),m.change(k);return}switch(R.key){case je.Home:case je.PageUp:return R.preventDefault(),R.stopPropagation(),A(()=>ze(W,we.First));case je.End:case je.PageDown:return R.preventDefault(),R.stopPropagation(),A(()=>ze(W,we.Last))}if(A(()=>Ne(u,{vertical(){return R.key===je.ArrowUp?ze(W,we.Previous|we.WrapAround):R.key===je.ArrowDown?ze(W,we.Next|we.WrapAround):Rt.Error},horizontal(){return R.key===je.ArrowLeft?ze(W,we.Previous|we.WrapAround):R.key===je.ArrowRight?ze(W,we.Next|we.WrapAround):Rt.Error}}))===Rt.Success)return R.preventDefault()}),H=p.useRef(!1),V=se(()=>{var R;H.current||(H.current=!0,(R=C.current)==null||R.focus({preventScroll:!0}),m.change(k),yo(()=>{H.current=!1}))}),O=se(R=>{R.preventDefault()}),{isFocusVisible:z,focusProps:Z}=go({autoFocus:l}),{isHovered:P,hoverProps:F}=Al({isDisabled:i}),{pressed:E,pressProps:T}=Nl({disabled:i}),S=pt({selected:L,hover:P,active:E,focus:z,autofocus:l,disabled:i}),$=Xn({ref:b,onKeyDown:D,onMouseDown:O,onClick:V,id:a,role:"tab",type:rc(e,y),"aria-controls":(r=(n=g[k])==null?void 0:n.current)==null?void 0:r.id,"aria-selected":L,tabIndex:L?0:-1,disabled:i||void 0,autoFocus:l},Z,F,T);return Be()({ourProps:$,theirProps:c,slot:S,defaultTag:W9,name:"Tabs.Tab"})}let Z9="div";function z9(e,t){let{selectedIndex:n}=Dn("Tab.Panels"),r=Ie(t),s=pt({selectedIndex:n}),a=e,i={ref:r};return Be()({ourProps:i,theirProps:a,slot:s,defaultTag:Z9,name:"Tabs.Panels"})}let K9="div",Y9=qt.RenderStrategy|qt.Static;function G9(e,t){var n,r,s,a;let i=p.useId(),{id:l=`headlessui-tabs-panel-${i}`,tabIndex:c=0,...u}=e,{selectedIndex:d,tabs:f,panels:h}=Dn("Tab.Panel"),g=Uo("Tab.Panel"),m=p.useRef(null),x=Ie(m,t);Ae(()=>g.registerPanel(m),[g,m]);let y=n1("panels"),v=h.indexOf(m);v===-1&&(v=y);let C=v===d,{isFocusVisible:b,focusProps:j}=go(),k=pt({selected:C,focus:b}),L=Xn({ref:x,id:l,role:"tabpanel","aria-labelledby":(r=(n=f[v])==null?void 0:n.current)==null?void 0:r.id,tabIndex:C?c:-1},j),A=Be();return!C&&((s=u.unmount)==null||s)&&!((a=u.static)!=null&&a)?p.createElement(kn,{"aria-hidden":"true",...L}):A({ourProps:L,theirProps:u,slot:k,defaultTag:K9,features:Y9,visible:C,name:"Tabs.Panel"})}let q9=Re(U9),r1=Re(B9),s1=Re(H9),o1=Re(z9),i1=Re(G9),X9=Object.assign(q9,{Group:r1,List:s1,Panels:o1,Panel:i1});const ms=e=>o.jsx(r1,{...e,children:e.children}),gs=({children:e,className:t})=>o.jsx(s1,{className:t,children:e}),ir=({children:e,className:t,disabled:n,onClick:r,...s})=>o.jsx(X9,{onClick:r,className:t,disabled:!!n,...s,children:e}),xs=({children:e,className:t=""})=>o.jsx(o1,{className:t,children:e}),Pn=({children:e,className:t=""})=>o.jsx(i1,{className:t,children:e});var Zo={exports:{}},J9={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 zo=J9;Zo.exports=function(t){if(typeof t!="string")return;const n=t.toUpperCase();if(Object.prototype.hasOwnProperty.call(zo,n))return zo[n]},Zo.exports.currencySymbolMap=zo;var Q9=Zo.exports,ep=Ar(Q9);const Ko={"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]"},tp={small:"max-w-[518px]",medium:"max-w-[641px]",large:"max-w-[830px]",extralarge:"max-w-[940px]"},np={small:"h-[20px] min-w-[20px] text-xs",medium:"h-[36px] min-w-[36px] text-sm"},Yo=(...e)=>e.filter(Boolean).join(" "),ys=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 s=n.toLocaleString("en",r);return t&&(s=s.replace(/ AM| PM/,a=>a.toLowerCase()),s=s.replace(/,(?=\s\d{1,2}:\d{2})/,"")),s},ct=e=>e?ys(e.split("T")[0]):"nil",vt=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",rp=e=>{if(!e)return{};const{address_line1:t,address_line2:n,city:r,state:s,country:a,zip_code:i}=e;return{address:[t,n,r,s,a].filter(Boolean).join(", "),zipCode:i}},a1=e=>{if(!e)return{};const{address_line_one:t,address_line_two:n,city:r,state:s,country:a,zip_code:i}=e;return{address:[t,n,r,s,a].filter(Boolean).join(", "),zipCode:i}},$t=e=>ep(e),sp=(e,t)=>{if(!e)return t;const{line1:n,line2:r,city:s,state:a,country:i,zip_code:l}=e,c=[n,r,s,a,i&&vt(i),l].filter(Boolean);return c.length>0?c.join(", "):t},op={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%]"},B=({variant:e,className:t,as:n="p",children:r,color:s})=>o.jsx(n,{className:Yo(op[e],s,t),children:r}),ip={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"},U=({variant:e,className:t,as:n="span",children:r,color:s})=>o.jsx(n,{className:Yo(ip[e],s,t),children:r}),ap={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%]"},Go=({variant:e,className:t,as:n="h1",children:r,color:s})=>o.jsx(n,{className:Yo(ap[e],s,t),children:r}),lp=async({customerKey:e})=>{const{data:t}=await at().get(`/sdk/customers/${e}/details`);return t},cp=({customerKey:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing customerKey");i(!0);try{const c=await lp({customerKey:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load customer details")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{customerDetails:t,error:r,isLoading:a,refetch:l}},up=async({customerKey:e})=>{const{data:t}=await at().get(`/sdk/credit_systems/wallets/${e}`);return t},dp=({customerKey:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing customerKey");i(!0);try{const c=await up({customerKey:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load customer wallet")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{customerWallets:t,error:r,isLoading:a,refetch:l}},ar=ro(e=>({customerKey:"",setCustomerKey:t=>e({customerKey:t}),customerRefetch:()=>{},setCustomerRefetch:t=>e({customerRefetch:t}),plans:[],setPlans:t=>e({plans:t})}));var l1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ht,function(){var n=1e3,r=6e4,s=36e5,a="millisecond",i="second",l="minute",c="hour",u="day",d="week",f="month",h="quarter",g="year",m="date",x="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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(P){var F=["th","st","nd","rd"],E=P%100;return"["+P+(F[(E-20)%10]||F[E]||F[0])+"]"}},b=function(P,F,E){var T=String(P);return!T||T.length>=F?P:""+Array(F+1-T.length).join(E)+P},j={s:b,z:function(P){var F=-P.utcOffset(),E=Math.abs(F),T=Math.floor(E/60),S=E%60;return(F<=0?"+":"-")+b(T,2,"0")+":"+b(S,2,"0")},m:function P(F,E){if(F.date()<E.date())return-P(E,F);var T=12*(E.year()-F.year())+(E.month()-F.month()),S=F.clone().add(T,f),$=E-S<0,R=F.clone().add(T+($?-1:1),f);return+(-(T+(E-S)/($?S-R:R-S))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:g,w:d,d:u,D:m,h:c,m:l,s:i,ms:a,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},k="en",L={};L[k]=C;var A="$isDayjsObject",D=function(P){return P instanceof z||!(!P||!P[A])},H=function P(F,E,T){var S;if(!F)return k;if(typeof F=="string"){var $=F.toLowerCase();L[$]&&(S=$),E&&(L[$]=E,S=$);var R=F.split("-");if(!S&&R.length>1)return P(R[0])}else{var W=F.name;L[W]=F,S=W}return!T&&S&&(k=S),S||!T&&k},V=function(P,F){if(D(P))return P.clone();var E=typeof F=="object"?F:{};return E.date=P,E.args=arguments,new z(E)},O=j;O.l=H,O.i=D,O.w=function(P,F){return V(P,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=function(){function P(E){this.$L=H(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[A]=!0}var F=P.prototype;return F.parse=function(E){this.$d=function(T){var S=T.date,$=T.utc;if(S===null)return new Date(NaN);if(O.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var R=S.match(y);if(R){var W=R[2]-1||0,Y=(R[7]||"0").substring(0,3);return $?new Date(Date.UTC(R[1],W,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)):new Date(R[1],W,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)}}return new Date(S)}(E),this.init()},F.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},F.$utils=function(){return O},F.isValid=function(){return this.$d.toString()!==x},F.isSame=function(E,T){var S=V(E);return this.startOf(T)<=S&&S<=this.endOf(T)},F.isAfter=function(E,T){return V(E)<this.startOf(T)},F.isBefore=function(E,T){return this.endOf(T)<V(E)},F.$g=function(E,T,S){return O.u(E)?this[T]:this.set(S,E)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(E,T){var S=this,$=!!O.u(T)||T,R=O.p(E),W=function(oe,re){var le=O.w(S.$u?Date.UTC(S.$y,re,oe):new Date(S.$y,re,oe),S);return $?le:le.endOf(u)},Y=function(oe,re){return O.w(S.toDate()[oe].apply(S.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(re)),S)},_=this.$W,N=this.$M,I=this.$D,Q="set"+(this.$u?"UTC":"");switch(R){case g:return $?W(1,0):W(31,11);case f:return $?W(1,N):W(0,N+1);case d:var ne=this.$locale().weekStart||0,G=(_<ne?_+7:_)-ne;return W($?I-G:I+(6-G),N);case u:case m:return Y(Q+"Hours",0);case c:return Y(Q+"Minutes",1);case l:return Y(Q+"Seconds",2);case i:return Y(Q+"Milliseconds",3);default:return this.clone()}},F.endOf=function(E){return this.startOf(E,!1)},F.$set=function(E,T){var S,$=O.p(E),R="set"+(this.$u?"UTC":""),W=(S={},S[u]=R+"Date",S[m]=R+"Date",S[f]=R+"Month",S[g]=R+"FullYear",S[c]=R+"Hours",S[l]=R+"Minutes",S[i]=R+"Seconds",S[a]=R+"Milliseconds",S)[$],Y=$===u?this.$D+(T-this.$W):T;if($===f||$===g){var _=this.clone().set(m,1);_.$d[W](Y),_.init(),this.$d=_.set(m,Math.min(this.$D,_.daysInMonth())).$d}else W&&this.$d[W](Y);return this.init(),this},F.set=function(E,T){return this.clone().$set(E,T)},F.get=function(E){return this[O.p(E)]()},F.add=function(E,T){var S,$=this;E=Number(E);var R=O.p(T),W=function(N){var I=V($);return O.w(I.date(I.date()+Math.round(N*E)),$)};if(R===f)return this.set(f,this.$M+E);if(R===g)return this.set(g,this.$y+E);if(R===u)return W(1);if(R===d)return W(7);var Y=(S={},S[l]=r,S[c]=s,S[i]=n,S)[R]||1,_=this.$d.getTime()+E*Y;return O.w(_,this)},F.subtract=function(E,T){return this.add(-1*E,T)},F.format=function(E){var T=this,S=this.$locale();if(!this.isValid())return S.invalidDate||x;var $=E||"YYYY-MM-DDTHH:mm:ssZ",R=O.z(this),W=this.$H,Y=this.$m,_=this.$M,N=S.weekdays,I=S.months,Q=S.meridiem,ne=function(re,le,J,q){return re&&(re[le]||re(T,$))||J[le].slice(0,q)},G=function(re){return O.s(W%12||12,re,"0")},oe=Q||function(re,le,J){var q=re<12?"AM":"PM";return J?q.toLowerCase():q};return $.replace(v,function(re,le){return le||function(J){switch(J){case"YY":return String(T.$y).slice(-2);case"YYYY":return O.s(T.$y,4,"0");case"M":return _+1;case"MM":return O.s(_+1,2,"0");case"MMM":return ne(S.monthsShort,_,I,3);case"MMMM":return ne(I,_);case"D":return T.$D;case"DD":return O.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ne(S.weekdaysMin,T.$W,N,2);case"ddd":return ne(S.weekdaysShort,T.$W,N,3);case"dddd":return N[T.$W];case"H":return String(W);case"HH":return O.s(W,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return oe(W,Y,!0);case"A":return oe(W,Y,!1);case"m":return String(Y);case"mm":return O.s(Y,2,"0");case"s":return String(T.$s);case"ss":return O.s(T.$s,2,"0");case"SSS":return O.s(T.$ms,3,"0");case"Z":return R}return null}(re)||R.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(E,T,S){var $,R=this,W=O.p(T),Y=V(E),_=(Y.utcOffset()-this.utcOffset())*r,N=this-Y,I=function(){return O.m(R,Y)};switch(W){case g:$=I()/12;break;case f:$=I();break;case h:$=I()/3;break;case d:$=(N-_)/6048e5;break;case u:$=(N-_)/864e5;break;case c:$=N/s;break;case l:$=N/r;break;case i:$=N/n;break;default:$=N}return S?$:O.a($)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return L[this.$L]},F.locale=function(E,T){if(!E)return this.$L;var S=this.clone(),$=H(E,T,!0);return $&&(S.$L=$),S},F.clone=function(){return O.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},P}(),Z=z.prototype;return V.prototype=Z,[["$ms",a],["$s",i],["$m",l],["$H",c],["$W",u],["$M",f],["$y",g],["$D",m]].forEach(function(P){Z[P[1]]=function(F){return this.$g(F,P[0],P[1])}}),V.extend=function(P,F){return P.$i||(P(F,z,V),P.$i=!0),V},V.locale=H,V.isDayjs=D,V.unix=function(P){return V(1e3*P)},V.en=L[k],V.Ls=L,V.p={},V})})(l1);var fp=l1.exports,c1=Ar(fp);const hp={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:hp},mp=pp.colors,gp=e=>{if(/^#([0-9A-Fa-f]{3}){1,2}$/.test(e))return e;const t=e.split("-");let n=mp;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},xp={"danger-filled":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#currentColor",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),home:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12.525 5.44167L17.5833 10.5L12.525 15.5583",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.41666 10.5H17.4417",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"code-circle":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M4.5 8H12.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.5 12V4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),search:o.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M2.5 18.3333H17.5",stroke:"currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),times:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M18.0697 9.57L11.9997 3.5L5.92969 9.57",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 20.4999V3.66992",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"arrow-up-light":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:[o.jsx("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"}),o.jsx("path",{d:"M22 10h-4c-3 0-4-1-4-4V2l8 8ZM7 13h6M7 17h4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),notification:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M11.995 13.75H12.004",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-circle":o.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M10.5 6.77881V10.9455",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.4956 13.4458H10.5031",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"info-circle-filled":o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M18.8333 10.5675V5.9458H14.1816",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"course-down-line-duotone":o.jsxs("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_13667_69012)",children:[o.jsx("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"}),o.jsx("path",{d:"M16.45 20.9612L20.7043 19.1554L18.8867 14.8735",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_13667_69012",children:o.jsx("rect",{width:"20",height:"20",fill:"white",transform:"translate(18.9102) rotate(67)"})})})]}),more:o.jsxs("svg",{width:"29",height:"21",viewBox:"0 0 29 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"35",height:"34",viewBox:"0 0 35 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"366",height:"306",viewBox:"0 0 366 306",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M14.168 170.379V173.603",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M7.72266 173.603L9.87191 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.5 180.051H7.72388",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M7.72266 186.498L9.87191 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M14.168 189.722V186.498",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M20.618 186.498L18.4688 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M23.8372 180.051H20.6133",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M20.618 173.603L18.4688 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M179.66 38.2V40.3493",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M174.293 43.5732H176.442",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M179.66 50.0209V47.8716",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M186.11 44.6478H183.961",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M61.4531 123.095V126.319",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M51.7852 132.767H55.009",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M60.375 141.364V138.14",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M70.0559 132.767H66.832",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"menu",children:o.jsx("g",{id:"vuesax/bold/menu",children:o.jsxs("g",{id:"menu_2",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M3.5 7H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.5 12H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.5 17H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),category:o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{width:"5",height:"21",viewBox:"0 0 5 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.3281 16.5H13.6581",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9.5 12.5H14.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),timer:o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M9.97 14.5312L2.5 22.0013",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22.5013 2L15.0312 9.47",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),repeat:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M4.48948 1.33301L2.38281 3.43966L4.48948 5.54635",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.75 12.0019L10.58 14.8319L16.25 9.17188",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square-fill":o.jsxs("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M17.4395 15.12L19.9995 12.56L17.4395 10",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9.75977 12.5596H19.9298",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M12 9V13",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 16V16.5",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),archive:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.1797 14H13.8197",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),lock:o.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:o.jsx("path",{d:"M6 12h12",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-3":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",fill:"#3F3F46"}),o.jsx("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M6.72656 21V3",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.5469 17.28L17.2669 21L20.9869 17.28",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M17.2656 3V21",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),filter:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.28667 1.40039L4 6.66706",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),export:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M8.66797 7.33385L14.1346 1.86719",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.6648 4.53398V1.33398H11.4648",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"money-icon":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M5.16797 8.49995L7.05464 10.3866L10.8346 6.61328",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),calendar:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_1215_17258)",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.6257 16.7915L13.709 13.7082",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.23255 9.3916L5.69922 6.93327",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1215_17258",children:o.jsx("rect",{width:"20",height:"20",fill:"white",transform:"matrix(-1 0 0 -1 20 20)"})})})]}),building:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M1 22H23",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.78 22.0098V17.5498",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M5.80005 8.25H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M5.80005 12H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.25 22V18.25",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),book:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M12 5.49023V20.4902",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M7.75 8.49023H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.5 11.4902H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),menu:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M11.6641 1.66675L9.16406 3.75008L11.6641 5.83341",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M8.33594 18.3334L10.8359 16.2501L8.33594 14.1667",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M9.54492 270.507L12.8939 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M19.5938 295.623V290.6",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M29.64 270.507L26.291 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M277.465 59.5231V62.872",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M269.092 67.8953H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M277.465 77.9412V74.5922",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M287.505 69.5707H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"lock",children:o.jsxs("g",{id:"vuesax/bold/lock",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M9.07031 4.38574V6.67136",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("path",{d:"M2.17969 8.27121L2.63223 8.72376L3.60591 7.82324",stroke:"#currentColor",strokeWidth:"1.02853",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M19.49 18.48H16.51",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M18 17.02V20.01",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"logo-placeholder":o.jsxs("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",fill:"#F7FEE7"}),o.jsx("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",stroke:"#84CC16"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M14.5 18H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.5 22H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M6.08594 8.00005L7.6926 9.61339L10.9126 6.38672",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M11.9485 7.33301V1.33301L9.88574 2.83301",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.667 10.667L12.667 12.667L10.667 14.667",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12.6667 12.667H5",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),"override-quota":o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M9.96094 5.52148L12.8454 6.94546L14.2694 4.06096",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.2906 14.6753V10.126L11.7266 11.2633",stroke:"#currentColor",strokeWidth:"1.36479",strokeLinecap:"round",strokeLinejoin:"round"})]}),sandbox:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M9.54492 270.506L12.8939 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M19.5938 295.623V290.599",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M29.64 270.506L26.291 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M277.465 59.5232V62.8721",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M269.092 67.8955H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M277.465 77.941V74.592",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M287.505 69.5706H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"timer",children:o.jsx("g",{id:"vuesax/bold/timer",children:o.jsxs("g",{id:"timer_2",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M1.33301 5.66699H9.66634",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M4 11H5.33333",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M7 11H9.66667",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("path",{d:"M13.333 2.33301V6.33301L14.6663 4.99967",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.3333 6.33333L12 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),radar:o.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"})]})},ae=({name:e,size:t=24,color:n="currentColor"})=>{const r=xp[e];if(!r)return null;const s=n==="currentColor"?n:gp(n),{props:a}=r;return o.jsx("svg",{xmlns:a.xmlns,viewBox:a.viewBox,width:t,height:t,fill:a.fill==="none"?"none":s,stroke:a.fill==="none"?s:"none",children:a.children})};var lr=(e=>(e.NONE="none",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.QUARTERLY="quarterly",e.YEARLY="yearly",e.BI_ANNUALLY="biannually",e))(lr||{}),ge=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.YEARLY="yearly",e.QUARTERLY="quarterly",e.BIANNUALLY="biannually",e.CUSTOM="custom",e))(ge||{}),vs=(e=>(e.InAdvance="in_advance",e.InArrears="in_arrears",e))(vs||{}),rn=(e=>(e.BOOLEAN="boolean",e.METERED="metered",e))(rn||{}),yp=(e=>(e.ARCHIVED="archived",e.ACTIVE="active",e.ALL="all",e))(yp||{}),vp=(e=>(e.SOFT="soft",e.HARD="hard",e))(vp||{}),Fe=(e=>(e.ACTIVE="active",e.IN_TRIAL="in_trial",e.CANCELED="canceled",e.EXPIRED="expired",e.DEACTIVATED="deactivated",e.PAUSED="paused",e))(Fe||{}),u1=(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))(u1||{}),bp=(e=>(e.ONE_OFF="OneOff",e.FIXED_RECURRING="RecurringFixed",e.USAGE_BASED="UsageBased",e))(bp||{}),sn=(e=>(e.PER_UNIT="per_unit",e.PER_PACKAGE="per_package",e.FLAT="flat",e.PERCENTAGE="percentage",e))(sn||{}),Cp=(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))(Cp||{}),d1=(e=>(e.PAY_AS_YOU_GO="in_arrears",e.UPFRONT_COMMITMENT="in_advance",e))(d1||{}),wp=(e=>(e.PER_USE="per_use",e.PERSISTENT_USE="persistent_use",e))(wp||{}),kp=(e=>(e.ROLLOVER="Rollover",e.INCLUDED="Included",e.PURCHASED="Purchased",e.PAY_AS_YOU_GO="Pay as you go",e))(kp||{}),f1=(e=>(e.DRAFT="draft",e))(f1||{});const jp=()=>({once:"once",daily:"per day",weekly:"per week",monthly:"per month",quarterly:"per quarter",yearly:"per year",biannually:"per 6 months"}),Lp={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"}},Ep=e=>Lp[e]||{color:"bg-blue-500",text:""},Sp={[Fe.ACTIVE]:{color:"bg-metrifox-success",text:"Active"},[Fe.IN_TRIAL]:{color:"bg-metrifox-blue",text:"In trial"},[Fe.CANCELED]:{color:"bg-metrifox-danger",text:"Canceled"},[Fe.EXPIRED]:{color:"bg-metrifox-danger",text:"Expired"},[Fe.DEACTIVATED]:{color:"bg-metrifox-danger",text:"Deactivated"},[Fe.PAUSED]:{color:"bg-grey-500",text:"Paused"}},Mp=e=>Sp[e]||{color:"bg-metrifox-success",text:""};function Ve(e){return Math.floor(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const Tp=(e,t,n="-")=>{try{return t.split(/[.[\]]+/).filter(Boolean).reduce((r,s)=>r[s],e)??n}catch{return n}},h1=(e,t)=>t.find(n=>n.price.billing_interval===e),p1=(e,t)=>t?.filter(n=>n.price.billing_interval===e),Dp=(e,t=1)=>({[ge.QUARTERLY]:3,[ge.BIANNUALLY]:6,[ge.YEARLY]:12}[e]??1)*t,Pp={daily:"days",weekly:"weeks",monthly:"months",quarterly:"quarters",yearly:"years"},Ap=(e,t)=>e?.map((n,r)=>{const{first_unit:s,last_unit:a,unit_price:i,package_price:l,package_size:c,pricing_model:u,flat_fee:d}=n,f=$t(t),h=r===0,g=r===e.length-1,m=()=>u===sn.PER_UNIT?h&&a===-1?"per unit":h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:u===sn.PER_PACKAGE?h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:u===sn.FLAT?h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:"",x=()=>u===sn.PER_UNIT?`${f}${ce(i)}`:u===sn.PER_PACKAGE&&c?`${f}${ce(l)}`:u===sn.FLAT?`${f}${ce(d)}`:"";return{label:m(),price:x(),package:c}}),qo=e=>{const t=e?.price?.owner,n=0,r=e?.price?.tiers?.find(f=>f.first_unit===n),s=$t(e?.price?.currency)||"";if(!r)return{price:null,label:null,currencySymbol:null};const{unit_price:a,package_price:i,package_size:l,pricing_model:c,flat_fee:u,percentage:d}=r;return u?{price:ce(u),label:"",currencySymbol:s,isPercentage:!1}:{per_unit:{price:ce(a),label:`${t?.feature?.unit_singular||t?.credit_unit_singular||t?.unit_singular}`,currencySymbol:s,isPercentage:!1},per_package:{price:ce(i),label:`${l} ${t?.feature?.unit_plural}`,currencySymbol:s,isPercentage:!1},percentage:{price:`${d}%`,label:`of ${t?.feature?.unit_plural}`,currencySymbol:s,isPercentage:!0}}[c]??{price:null,label:null,currencySymbol:null,isPercentage:null}},Np=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||[]],s=r.some(a=>a.price?.invoice_timing===vs.InAdvance);r.forEach(a=>{const i=a.price.invoice_timing===vs.InAdvance&&a.price?.billing_interval,l=a.price.invoice_timing===vs.InArrears&&a.price?.billing_interval,c=s?i:l;c&&t.add(c)})}return Array.from(t)},ce=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 s="";s=r.toFixed(6).split(".")[1]?.replace(/0+$/,"")||"";const a=s.match(/^0*/)?.[0].length||0,i=Math.min(a+2,6),l=Number(t.toFixed(i));return isFinite(l)?l.toLocaleString(n,{minimumFractionDigits:i,maximumFractionDigits:i}):"--"},Xo=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())},Rp=(e,t)=>[...e].sort((n,r)=>{const s=n.feature?.id,a=r.feature?.id,i=s?t.get(s)??1/0:1/0,l=a?t.get(a)??1/0:1/0;return i-l}),Fp=e=>{const t=new Map;e?.forEach(s=>{const{entitlements:a=[],base_entitlements:i=[]}=s||{};Xo([...a,...i]).forEach(l=>{const c=l.feature?.id;if(c){const u=t.get(c);u?u.count+=1:t.set(c,{count:1,entitlement:l})}})});const n=Array.from(t.entries()).sort(([s,a],[i,l])=>{if(l.count!==a.count)return l.count-a.count;const c=a.entitlement.feature?.key||s,u=l.entitlement.feature?.key||i;return c.localeCompare(u)}),r=new Map;return n.forEach(([s],a)=>{r.set(s,a)}),{frequencyMap:t,featureOrderMap:r}},Vp=({productKey:e,checkoutUsername:t})=>{if(t)return`${`${window.location.protocol}//${window.location.host}`}/${t}/pricing/${e}`},$p=(e,t,n,r)=>{if(!e)return null;const s=Number(e.used||"0"),a=Number(e.amount||"0"),i=Number(e.balance||"0"),l=e.next_reset_at&&ys(e.next_reset_at),c=e.amount===null||a===-1;let u=0;return c?u=100:a>0&&(u=Math.min(s/a*100,100)),{pool:t,balance:i,used:s,amount:c?1/0:a,color:n,percent:u,isUnlimited:c,order:r,nextResetAt:l}},Op=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=$p(d,u.name,u.color,u.order);f&&n.push(f)}const r=n.reduce((u,d)=>u+d.used,0),s=n.filter(u=>!u.isUnlimited),a=s.reduce((u,d)=>u+d.amount,0),i=s.reduce((u,d)=>u+d.balance,0),l=n.some(u=>u.isUnlimited),c=n.length;return{processedPools:n,totalUsed:r,totalAmount:a,totalBalance:i,isAnyUnlimited:l,calculatedPoolCount:c}},m1=e=>e.includes("PurchasedCredit")?"Purchased credits":e.includes("IncludedCredit")?"Included credits":e.includes("Overage")?"Overage":e,_p=e=>{const t=n=>new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return{id:e.id,creditedDate:ys(e.created_at),source:m1(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}},g1=({width:e=170,height:t=28})=>o.jsxs("svg",{width:e,height:t,viewBox:"0 0 109 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M106.131 4.67773V4.50098H107.149V4.67773H106.736V5.78874H106.542V4.67773H106.131Z",fill:"#3D3D3D"}),o.jsx("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"}),o.jsx("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"})]}),x1=({data:e})=>{const t=e?.customer,{address:n}=a1(t?.billing_configuration?.billing_address),{address:r}=rp(t),s=t?.primary_phone||t?.phone_numbers[0]?.phone_number,a=n??r,i=e?.line_items||[],l=e?.charge_items||[],c=e?.usage_items||[],u=e?.currency?.symbol,d=[...i.map(h=>({...h,itemType:"line_item"})),...l.map(h=>({...h,itemType:"charge_item"})),...c.map(h=>({...h,itemType:"usage_item"}))],f=sp({...e?.tenant?.default_address},"No Tenant address provided");return o.jsxs(w,{children:[o.jsxs(w,{className:"h-max w-full flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-3",children:[e?.tenant?.logo_url?o.jsx(w,{className:"h-[2.5rem] w-[2.5rem] border overflow-hidden rounded-full",children:o.jsx("img",{src:e?.tenant?.logo_url,alt:"logo"})}):o.jsx(w,{className:"rounded-full h-[2.8rem] w-[2.8rem] bg-grey-200 p-3",children:o.jsx(ae,{name:"logo-placeholder",size:20})}),o.jsx(Go,{variant:"h5",className:"text-metrifox-black font-bold",children:e?.tenant?.business_name})]}),o.jsxs(w,{children:[o.jsx(Go,{variant:"h5",className:"text-metrifox-black font-bold uppercase",children:"Invoice"}),o.jsx(B,{variant:"body7",className:"text-metrifox-black text-right",children:e?.invoice_number})]})]}),o.jsxs(w,{className:"bg-grey-100 px-3.5 py-5 mt-4 rounded-md flex items-center justify-between",children:[o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"font-medium text-grey-700",children:"Invoice no"}),o.jsx(B,{variant:"body7",className:"font-light text-grey-500 text-center mt-0.5",children:e?.invoice_number||"-"})]}),o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"font-medium text-grey-700",children:"Issue date"}),o.jsx(B,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:ct(e?.issued_at)})]}),o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"font-medium text-grey-700",children:"Due date"}),o.jsx(B,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:ct(e?.due_at)})]})]}),o.jsxs(w,{className:"mt-6 flex justify-between",children:[o.jsxs(w,{className:"text-gray-500 max-w-[12rem]",children:[o.jsx(U,{variant:"label8",className:"font-medium text-grey-700",children:"From"}),o.jsxs(w,{className:"text-gray-500 font-light space-y-1 mt-1",children:[o.jsx(B,{variant:"body7",children:e?.tenant?.business_name}),o.jsx(B,{variant:"body7",children:f})]})]}),o.jsxs(w,{className:"text-right max-w-[12rem] ",children:[o.jsx(U,{variant:"label8",className:"font-medium text-grey-700",children:"Billed to"}),o.jsxs(w,{className:"text-gray-500 font-light space-y-1 mt-1",children:[o.jsx(U,{variant:"label8",className:"font-medium text-metrifox-blue underline",children:e?.customer?.full_name}),o.jsx(B,{variant:"body7",children:a}),o.jsx(B,{variant:"body7",children:e?.customer?.primary_email}),o.jsxs(B,{variant:"body7",children:[" ",s]})]})]})]}),o.jsx(w,{className:"mt-8",children:o.jsxs(w,{className:"w-full",children:[o.jsxs(w,{className:"bg-grey-200 p-2 rounded-md font-medium text-grey-700 grid grid-cols-5 gap-x-6",children:[o.jsx(U,{variant:"label8",className:"w-[12rem]",children:"Item name"}),o.jsx(U,{variant:"label8",children:"Price"}),o.jsx(U,{variant:"label8",children:"Qty"}),o.jsx(U,{variant:"label8",children:"Subtotal"}),o.jsx(U,{variant:"label8",children:"Amount"})]}),o.jsx(w,{children:d?.map(h=>o.jsxs(w,{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:[o.jsxs(w,{className:"w-full",children:[o.jsx(U,{variant:"label8",className:"font-medium text-metrifox-blue",children:h?.name}),o.jsx(B,{variant:"body8",children:h?.description})]}),o.jsx(B,{variant:"body6",color:"text-metrifox-black",children:h.itemType==="usage_item"?"Tier based pricing":`${u}${ce(h.unit_price)}`}),o.jsx(B,{variant:"body8",children:h?.quantity}),o.jsxs(B,{variant:"body8",children:[u,ce(h?.total_amount)]}),o.jsxs(B,{variant:"body8",children:[u,ce(h?.amount)]})]},h?.id))})]})}),o.jsxs(w,{className:"bg-neutral-100 p-2.5 w-[50%] ml-auto rounded-sm mt-5",children:[o.jsxs(w,{className:"flex justify-between border-b pb-2",children:[o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"font-medium text-neutral-900",children:"Subtotal"}),o.jsxs(w,{className:"text-neutral-500 space-y-1 my-2",children:[o.jsx(B,{variant:"body8",children:"Discount"}),o.jsx(B,{variant:"body8",children:"Tax"})]}),o.jsx(U,{variant:"label8",className:"font-medium text-grey-800",children:"Grand total"})]}),o.jsxs(w,{className:"text-right",children:[o.jsxs(U,{variant:"label8",className:"font-medium text-grey-800",children:[u,ce(e?.summary?.items_subtotal)]}),o.jsxs(w,{className:"text-neutral-500 space-y-1 my-2",children:[o.jsxs(B,{variant:"body8",children:[u,ce(e?.summary?.total_discounts)]}),o.jsxs(B,{variant:"body8",children:[u,ce(e?.summary?.total_tax_amount)]})]}),o.jsxs(U,{variant:"label8",className:"font-medium text-grey-800",children:[u,ce(e?.summary?.total_amount_paid)]})]})]}),o.jsxs(w,{className:"flex justify-between pt-2",children:[o.jsxs(w,{className:"space-y-3 font-medium text-neutral-900",children:[o.jsx(U,{variant:"label8",children:"Amount paid"}),o.jsx(U,{variant:"label8",children:"Amount due"})]}),o.jsxs(w,{className:"text-right space-y-3 font-medium text-grey-800",children:[o.jsxs(U,{variant:"label8",children:[u,ce(e?.summary?.total_amount_paid)]}),o.jsxs(U,{variant:"label7",children:[u,ce(e?.summary?.total_outstanding_amount)]})]})]})]}),e?.comment&&o.jsxs(w,{className:"flex items-center gap-1 text-[.625rem] bg-metrifox-white p-2 mt-40 border-[0.03rem] border-grey-300 rounded",children:[o.jsx(B,{variant:"body8",children:"Note:"}),o.jsx(B,{variant:"body8",children:e?.comment})]}),o.jsx(w,{className:"border-t-[0.03rem] border-grey-300 pb-3 w-full mt-20",children:o.jsxs(w,{className:"flex items-center justify-center gap-2 mt-1",children:[o.jsx(B,{variant:"body8",className:"text-metrifox-black",children:"Powered by"}),o.jsx(g1,{height:30,width:100})]})})]})},y1=p.createContext({});function Jo(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=typeof window<"u",v1=Qo?p.useLayoutEffect:p.useEffect,ei=p.createContext(null);function ti(e,t){e.indexOf(t)===-1&&e.push(t)}function ni(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const St=(e,t,n)=>n>t?t:n<e?e:n;function ri(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let An=()=>{},Mt=()=>{};process.env.NODE_ENV!=="production"&&(An=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ri(t,n))},Mt=(e,t,n)=>{if(!e)throw new Error(ri(t,n))});const Tt={},b1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function C1(e){return typeof e=="object"&&e!==null}const w1=e=>/^0[^.\s]+$/u.test(e);function si(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,Bp=(e,t)=>n=>t(e(n)),cr=(...e)=>e.reduce(Bp),ur=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class oi{constructor(){this.subscriptions=[]}add(t){return ti(this.subscriptions,t),()=>ni(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a<s;a++){const i=this.subscriptions[a];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ut=e=>e*1e3,Qe=e=>e/1e3;function k1(e,t){return t?e*(1e3/t):0}const j1=new Set;function ii(e,t,n){e||j1.has(t)||(console.warn(ri(t,n)),j1.add(t))}const L1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ip=1e-7,Hp=12;function Wp(e,t,n,r,s){let a,i,l=0;do i=t+(n-t)/2,a=L1(i,r,s)-e,a>0?n=i:t=i;while(Math.abs(a)>Ip&&++l<Hp);return i}function dr(e,t,n,r){if(e===t&&n===r)return Je;const s=a=>Wp(a,0,1,e,n);return a=>a===0||a===1?a:L1(s(a),t,r)}const E1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,S1=e=>t=>1-e(1-t),M1=dr(.33,1.53,.69,.99),ai=S1(M1),T1=E1(ai),D1=e=>(e*=2)<1?.5*ai(e):.5*(2-Math.pow(2,-10*(e-1))),li=e=>1-Math.sin(Math.acos(e)),P1=S1(li),A1=E1(li),Up=dr(.42,0,1,1),Zp=dr(0,0,.58,1),N1=dr(.42,0,.58,1),zp=e=>Array.isArray(e)&&typeof e[0]!="number",R1=e=>Array.isArray(e)&&typeof e[0]=="number",F1={linear:Je,easeIn:Up,easeInOut:N1,easeOut:Zp,circIn:li,circInOut:A1,circOut:P1,backIn:ai,backInOut:T1,backOut:M1,anticipate:D1},Kp=e=>typeof e=="string",V1=e=>{if(R1(e)){Mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return dr(t,n,r,s)}else if(Kp(e))return Mt(F1[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),F1[e];return e},bs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Yp(e,t){let n=new Set,r=new Set,s=!1,a=!1;const i=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,h=!1)=>{const m=h&&s?n:r;return f&&i.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(l=d,s){a=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),n.clear(),s=!1,a&&(a=!1,u.process(d))}};return u}const Gp=40;function $1(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=bs.reduce((b,j)=>(b[j]=Yp(a),b),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:g,postRender:m}=i,x=()=>{const b=Tt.useManualTiming?s.timestamp:performance.now();n=!1,Tt.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Gp),1)),s.timestamp=b,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),g.process(s),m.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},y=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:bs.reduce((b,j)=>{const k=i[j];return b[j]=(L,A=!1,D=!1)=>(n||y(),k.schedule(L,A,D)),b},{}),cancel:b=>{for(let j=0;j<bs.length;j++)i[bs[j]].cancel(b)},state:s,steps:i}}const{schedule:ue,cancel:Dt,state:Ee,steps:ci}=$1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Je,!0);let Cs;function qp(){Cs=void 0}const He={now:()=>(Cs===void 0&&He.set(Ee.isProcessing||Tt.useManualTiming?Ee.timestamp:performance.now()),Cs),set:e=>{Cs=e,queueMicrotask(qp)}},O1=e=>t=>typeof t=="string"&&t.startsWith(e),ui=O1("--"),Xp=O1("var(--"),di=e=>Xp(e)?Jp.test(e.split("/*")[0].trim()):!1,Jp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fr={...Nn,transform:e=>St(0,1,e)},ws={...Nn,default:1},hr=e=>Math.round(e*1e5)/1e5,fi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qp(e){return e==null}const e6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hi=(e,t)=>n=>!!(typeof n=="string"&&e6.test(n)&&n.startsWith(e)||t&&!Qp(n)&&Object.prototype.hasOwnProperty.call(n,t)),_1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,a,i,l]=r.match(fi);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},t6=e=>St(0,255,e),pi={...Nn,transform:e=>Math.round(t6(e))},on={test:hi("rgb","red"),parse:_1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+pi.transform(e)+", "+pi.transform(t)+", "+pi.transform(n)+", "+hr(fr.transform(r))+")"};function n6(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const mi={test:hi("#"),parse:n6,transform:on.transform},pr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ot=pr("deg"),bt=pr("%"),X=pr("px"),r6=pr("vh"),s6=pr("vw"),B1=(()=>({...bt,parse:e=>bt.parse(e)/100,transform:e=>bt.transform(e*100)}))(),Rn={test:hi("hsl","hue"),parse:_1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+bt.transform(hr(t))+", "+bt.transform(hr(n))+", "+hr(fr.transform(r))+")"},Ce={test:e=>on.test(e)||mi.test(e)||Rn.test(e),parse:e=>on.test(e)?on.parse(e):Rn.test(e)?Rn.parse(e):mi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?on.transform(e):Rn.transform(e),getAnimatableNone:e=>{const t=Ce.parse(e);return t.alpha=0,Ce.transform(t)}},o6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i6(e){return isNaN(e)&&typeof e=="string"&&(e.match(fi)?.length||0)+(e.match(o6)?.length||0)>0}const I1="number",H1="color",a6="var",l6="var(",W1="${}",c6=/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:[]},s=[];let a=0;const l=t.replace(c6,c=>(Ce.test(c)?(r.color.push(a),s.push(H1),n.push(Ce.parse(c))):c.startsWith(l6)?(r.var.push(a),s.push(a6),n.push(c)):(r.number.push(a),s.push(I1),n.push(parseFloat(c))),++a,W1)).split(W1);return{values:n,split:l,indexes:r,types:s}}function U1(e){return mr(e).values}function Z1(e){const{split:t,types:n}=mr(e),r=t.length;return s=>{let a="";for(let i=0;i<r;i++)if(a+=t[i],s[i]!==void 0){const l=n[i];l===I1?a+=hr(s[i]):l===H1?a+=Ce.transform(s[i]):a+=s[i]}return a}}const u6=e=>typeof e=="number"?0:Ce.test(e)?Ce.getAnimatableNone(e):e;function d6(e){const t=U1(e);return Z1(e)(t.map(u6))}const _t={test:i6,parse:U1,createTransformer:Z1,getAnimatableNone:d6};function gi(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 f6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,i=0;if(!t)s=a=i=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=gi(c,l,e+1/3),a=gi(c,l,e),i=gi(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}function ks(e,t){return n=>n>0?t:e}const fe=(e,t,n)=>e+(t-e)*n,xi=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},h6=[mi,on,Rn],p6=e=>h6.find(t=>t.test(e));function z1(e){const t=p6(e);if(An(!!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===Rn&&(n=f6(n)),n}const K1=(e,t)=>{const n=z1(e),r=z1(t);if(!n||!r)return ks(e,t);const s={...n};return a=>(s.red=xi(n.red,r.red,a),s.green=xi(n.green,r.green,a),s.blue=xi(n.blue,r.blue,a),s.alpha=fe(n.alpha,r.alpha,a),on.transform(s))},yi=new Set(["none","hidden"]);function m6(e,t){return yi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function g6(e,t){return n=>fe(e,t,n)}function vi(e){return typeof e=="number"?g6:typeof e=="string"?di(e)?ks:Ce.test(e)?K1:v6:Array.isArray(e)?Y1:typeof e=="object"?Ce.test(e)?K1:x6:ks}function Y1(e,t){const n=[...e],r=n.length,s=e.map((a,i)=>vi(a)(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=s[i](a);return n}}function x6(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=vi(e[s])(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}}function y6(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],i=e.indexes[a][r[a]],l=e.values[i]??0;n[s]=l,r[a]++}return n}const v6=(e,t)=>{const n=_t.createTransformer(t),r=mr(e),s=mr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?yi.has(e)&&!s.values.length||yi.has(t)&&!r.values.length?m6(e,t):cr(Y1(y6(r,s),s.values),n):(An(!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"),ks(e,t))};function G1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fe(e,t,n):vi(e)(e,t)}const b6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ue.update(t,n),stop:()=>Dt(t),now:()=>Ee.isProcessing?Ee.timestamp:He.now()}},q1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let a=0;a<s;a++)r+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},js=2e4;function bi(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<js;)t+=n,r=e.next(t);return t>=js?1/0:t}function C6(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(bi(r),js);return{type:"keyframes",ease:a=>r.next(s*a).value/t,duration:Qe(s)}}const w6=5;function X1(e,t,n){const r=Math.max(t-w6,0);return k1(n-e(r),t-r)}const he={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},Ci=.001;function k6({duration:e=he.duration,bounce:t=he.bounce,velocity:n=he.velocity,mass:r=he.mass}){let s,a;An(e<=ut(he.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=St(he.minDamping,he.maxDamping,i),e=St(he.minDuration,he.maxDuration,Qe(e)),i<1?(s=u=>{const d=u*i,f=d*e,h=d-n,g=wi(u,i),m=Math.exp(-f);return Ci-h/g*m},a=u=>{const f=u*i*e,h=f*n+n,g=Math.pow(i,2)*Math.pow(u,2)*e,m=Math.exp(-f),x=wi(Math.pow(u,2),i);return(-s(u)+Ci>0?-1:1)*((h-g)*m)/x}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ci+d*f},a=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=L6(s,a,l);if(e=ut(e),isNaN(c))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const j6=12;function L6(e,t,n){let r=n;for(let s=1;s<j6;s++)r=r-e(r)/t(r);return r}function wi(e,t){return e*Math.sqrt(1-t*t)}const E6=["duration","bounce"],S6=["stiffness","damping","mass"];function J1(e,t){return t.some(n=>e[n]!==void 0)}function M6(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!J1(e,S6)&&J1(e,E6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,a=2*St(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:a}}else{const n=k6(e);t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function Ls(e=he.visualDuration,t=he.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const a=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=M6({...n,velocity:-Qe(n.velocity||0)}),m=h||0,x=u/(2*Math.sqrt(c*d)),y=i-a,v=Qe(Math.sqrt(c/d)),C=Math.abs(y)<5;r||(r=C?he.restSpeed.granular:he.restSpeed.default),s||(s=C?he.restDelta.granular:he.restDelta.default);let b;if(x<1){const k=wi(v,x);b=L=>{const A=Math.exp(-x*v*L);return i-A*((m+x*v*y)/k*Math.sin(k*L)+y*Math.cos(k*L))}}else if(x===1)b=k=>i-Math.exp(-v*k)*(y+(m+v*y)*k);else{const k=v*Math.sqrt(x*x-1);b=L=>{const A=Math.exp(-x*v*L),D=Math.min(k*L,300);return i-A*((m+x*v*y)*Math.sinh(D)+k*y*Math.cosh(D))/k}}const j={calculatedDuration:g&&f||null,next:k=>{const L=b(k);if(g)l.done=k>=f;else{let A=k===0?m:0;x<1&&(A=k===0?ut(m):X1(b,k,L));const D=Math.abs(A)<=r,H=Math.abs(i-L)<=s;l.done=D&&H}return l.value=l.done?i:L,l},toString:()=>{const k=Math.min(bi(j),js),L=q1(A=>j.next(k*A).value,k,30);return k+"ms "+L},toTransition:()=>{}};return j}Ls.applyToOptions=e=>{const t=C6(e,100,Ls);return e.ease=t.ease,e.duration=ut(t.duration),e.type="keyframes",e};function ki({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:i,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=D=>l!==void 0&&D<l||c!==void 0&&D>c,m=D=>l===void 0?c:c===void 0||Math.abs(l-D)<Math.abs(c-D)?l:c;let x=n*t;const y=f+x,v=i===void 0?y:i(y);v!==y&&(x=v-f);const C=D=>-x*Math.exp(-D/r),b=D=>v+C(D),j=D=>{const H=C(D),V=b(D);h.done=Math.abs(H)<=u,h.value=h.done?v:V};let k,L;const A=D=>{g(h.value)&&(k=D,L=Ls({keyframes:[h.value,m(h.value)],velocity:X1(b,D,h.value),damping:s,stiffness:a,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:D=>{let H=!1;return!L&&k===void 0&&(H=!0,j(D),A(D)),k!==void 0&&D>=k?L.next(D-k):(!H&&j(D),h)}}}function T6(e,t,n){const r=[],s=n||Tt.mix||G1,a=e.length-1;for(let i=0;i<a;i++){let l=s(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||Je:t;l=cr(c,l)}r.push(l)}return r}function Q1(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const a=e.length;if(Mt(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=T6(t,r,s),c=l.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=ur(e[f],e[f+1],d);return l[f](h)};return n?d=>u(St(e[0],e[a-1],d)):u}function D6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=ur(0,t,r);e.push(fe(n,1,s))}}function P6(e){const t=[0];return D6(t,e.length-1),t}function A6(e,t){return e.map(n=>n*t)}function N6(e,t){return e.map(()=>t||N1).splice(0,e.length-1)}function Fn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=zp(r)?r.map(V1):V1(r),a={done:!1,value:t[0]},i=A6(n&&n.length===t.length?n:P6(t),e),l=Q1(i,t,{ease:Array.isArray(s)?s:N6(t,s)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const R6=e=>e!==null;function ji(e,{repeat:t,repeatType:n="loop"},r,s=1){const a=e.filter(R6),l=s<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!l||r===void 0?a[l]:r}const F6={decay:ki,inertia:ki,tween:Fn,keyframes:Fn,spring:Ls};function eu(e){typeof e.type=="string"&&(e.type=F6[e.type])}class Li{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 V6=e=>e/100;class Ei extends Li{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!==He.now()&&this.tick(He.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;eu(t);const{type:n=Fn,repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:i=0}=t;let{keyframes:l}=t;const c=n||Fn;process.env.NODE_ENV!=="production"&&c!==Fn&&Mt(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Fn&&typeof l[0]!="number"&&(this.mixKeyframes=cr(V6,G1(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=bi(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,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:s,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:g,type:m,onUpdate:x,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let b=this.currentTime,j=r;if(f){const D=Math.min(this.currentTime,s)/l;let H=Math.floor(D),V=D%1;!V&&D>=1&&(V=1),V===1&&H--,H=Math.min(H,f+1),!!(H%2)&&(h==="reverse"?(V=1-V,g&&(V-=g/l)):h==="mirror"&&(j=i)),b=St(0,1,V)*l}const k=C?{done:!1,value:d[0]}:j.next(b);a&&(k.value=a(k.value));let{done:L}=k;!C&&c!==null&&(L=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return A&&m!==ki&&(k.value=ji(d,this.options,y,this.speed)),x&&x(k.value),A&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Qe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qe(t)}get time(){return Qe(this.currentTime)}set time(t){t=ut(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(He.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=b6,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),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(He.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 $6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const an=e=>e*180/Math.PI,Si=e=>{const t=an(Math.atan2(e[1],e[0]));return Mi(t)},O6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Si,rotateZ:Si,skewX:e=>an(Math.atan(e[1])),skewY:e=>an(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mi=e=>(e=e%360,e<0&&(e+=360),e),tu=Si,nu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ru=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:nu,scaleY:ru,scale:e=>(nu(e)+ru(e))/2,rotateX:e=>Mi(an(Math.atan2(e[6],e[5]))),rotateY:e=>Mi(an(Math.atan2(-e[2],e[0]))),rotateZ:tu,rotate:tu,skewX:e=>an(Math.atan(e[4])),skewY:e=>an(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ti(e){return e.includes("scale")?1:0}function Di(e,t){if(!e||e==="none")return Ti(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=_6,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=O6,s=l}if(!s)return Ti(t);const a=r[t],i=s[1].split(",").map(I6);return typeof a=="function"?a(i):i[a]}const B6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Di(n,t)};function I6(e){return parseFloat(e.trim())}const Vn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$n=(()=>new Set(Vn))(),su=e=>e===Nn||e===X,H6=new Set(["x","y","z"]),W6=Vn.filter(e=>!H6.has(e));function U6(e){const t=[];return W6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ln={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})=>Di(t,"x"),y:(e,{transform:t})=>Di(t,"y")};ln.translateX=ln.x,ln.translateY=ln.y;const cn=new Set;let Pi=!1,Ai=!1,Ni=!1;function ou(){if(Ai){const e=Array.from(cn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=U6(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([a,i])=>{r.getValue(a)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ai=!1,Pi=!1,cn.forEach(e=>e.complete(Ni)),cn.clear()}function iu(){cn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ai=!0)})}function Z6(){Ni=!0,iu(),ou(),Ni=!1}class Ri{constructor(t,n,r,s,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(cn.add(this),Pi||(Pi=!0,ue.read(iu),ue.resolveKeyframes(ou))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const a=s?.get(),i=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),s&&a===void 0&&s.set(t[0])}$6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),cn.delete(this)}cancel(){this.state==="scheduled"&&(cn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const z6=e=>e.startsWith("--");function K6(e,t,n){z6(t)?e.style.setProperty(t,n):e.style[t]=n}const Y6=si(()=>window.ScrollTimeline!==void 0),G6={};function q6(e,t){const n=si(e);return()=>G6[t]??n()}const au=q6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gr([0,.65,.55,1]),circOut:gr([.55,0,1,.45]),backIn:gr([.31,.01,.66,-.59]),backOut:gr([.33,1.53,.69,.99])};function cu(e,t){if(e)return typeof e=="function"?au()?q1(e,t):"ease-out":R1(e)?gr(e):Array.isArray(e)?e.map(n=>cu(n,t)||lu.easeOut):lu[e]}function X6(e,t,n,{delay:r=0,duration:s=300,repeat:a=0,repeatType:i="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=cu(l,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function uu(e){return typeof e=="function"&&"applyToOptions"in e}function J6({type:e,...t}){return uu(e)&&au()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Q6 extends Li{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=t,Mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=J6(t);this.animation=X6(n,r,s,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=ji(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):K6(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 Qe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qe(t)}get time(){return Qe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ut(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&&Y6()?(this.animation.timeline=t,Je):n(this)}}const du={anticipate:D1,backInOut:T1,circInOut:A1};function e7(e){return e in du}function t7(e){typeof e.ease=="string"&&e7(e.ease)&&(e.ease=du[e.ease])}const fu=10;class n7 extends Q6{constructor(t){t7(t),eu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:a,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Ei({...i,autoplay:!1}),c=ut(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-fu).value,l.sample(c).value,fu),l.stop()}}const hu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_t.test(e)||e==="0")&&!e.startsWith("url("));function r7(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 s7(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],i=hu(s,t),l=hu(a,t);return An(i===l,`You are trying to animate ${t} from "${s}" to "${a}". "${i?a:s}" is not an animatable value.`,"value-not-animatable"),!i||!l?!1:r7(e)||(n==="spring"||uu(n))&&r}function Fi(e){e.duration=0,e.type="keyframes"}const o7=new Set(["opacity","clipPath","filter","transform"]),i7=si(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function a7(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:a,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return i7()&&n&&o7.has(n)&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&a!==0&&i!=="inertia"}const l7=40;class c7 extends Li{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:i="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=He.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:a,repeatType:i,name:c,motionValue:u,element:d,...f},g=d?.KeyframeResolver||Ri;this.keyframeResolver=new g(l,(m,x,y)=>this.onKeyframesResolved(m,x,h,!y),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,s){this.keyframeResolver=void 0;const{name:a,type:i,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=He.now(),s7(t,a,i,l)||((Tt.instantAnimations||!c)&&d?.(ji(t,r,n)),t[0]=t[t.length-1],Fi(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>l7?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&a7(h)?new n7({...h,element:h.motionValue.owner.current}):new Ei(h);g.finished.then(()=>this.notifyFinished()).catch(Je),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}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(),Z6()),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 u7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function d7(e){const t=u7.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const f7=4;function pu(e,t,n=1){Mt(n<=f7,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=d7(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return b1(i)?parseFloat(i):i}return di(s)?pu(s,t,n+1):s}function Vi(e,t){return e?.[t]??e?.default??e}const mu=new Set(["width","height","top","left","right","bottom",...Vn]),h7={test:e=>e==="auto",parse:e=>e},gu=e=>t=>t.test(e),xu=[Nn,X,bt,Ot,s6,r6,h7],yu=e=>xu.find(gu(e));function p7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||w1(e):!0}const m7=new Set(["brightness","contrast","saturate","opacity"]);function g7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fi)||[];if(!r)return e;const s=n.replace(r,"");let a=m7.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const x7=/\b([a-z-]*)\(.*?\)/gu,$i={..._t,getAnimatableNone:e=>{const t=e.match(x7);return t?t.map(g7).join(" "):e}},vu={...Nn,transform:Math.round},y7={rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:ws,scaleX:ws,scaleY:ws,scaleZ:ws,skew:Ot,skewX:Ot,skewY:Ot,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:fr,originX:B1,originY:B1,originZ:X},Oi={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X,...y7,zIndex:vu,fillOpacity:fr,strokeOpacity:fr,numOctaves:vu},v7={...Oi,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:$i,WebkitFilter:$i},bu=e=>v7[e];function Cu(e,t){let n=bu(e);return n!==$i&&(n=_t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const b7=new Set(["auto","none","0"]);function C7(e,t,n){let r=0,s;for(;r<e.length&&!s;){const a=e[r];typeof a=="string"&&!b7.has(a)&&mr(a).values.length&&(s=e[r]),r++}if(s&&n)for(const a of t)e[a]=Cu(n,s)}class w7 extends Ri{constructor(t,n,r,s,a){super(t,n,r,s,a,!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(),di(u))){const d=pu(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!mu.has(r)||t.length!==2)return;const[s,a]=t,i=yu(s),l=yu(a);if(i!==l)if(su(i)&&su(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else ln[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||p7(t[s]))&&r.push(s);r.length&&C7(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=ln[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,i=r[a];r[a]=ln[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function k7(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=n?.[e]??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const wu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function j7(e){return C1(e)&&"offsetHeight"in e}const ku=30,L7=e=>!isNaN(parseFloat(e)),xr={current:void 0};class E7{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=He.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=He.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=L7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ii(!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 oi);const r=this.events[t].add(n);return t==="change"?()=>{r(),ue.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 xr.current&&xr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=He.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ku)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ku);return k1(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 un(e,t){return new E7(e,t)}const{schedule:_i}=$1(queueMicrotask,!1),dt={x:!1,y:!1};function ju(){return dt.x||dt.y}function S7(e){return e==="x"||e==="y"?dt[e]?null:(dt[e]=!0,()=>{dt[e]=!1}):dt.x||dt.y?null:(dt.x=dt.y=!0,()=>{dt.x=dt.y=!1})}function Lu(e,t){const n=k7(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Eu(e){return!(e.pointerType==="touch"||ju())}function M7(e,t,n={}){const[r,s,a]=Lu(e,n),i=l=>{if(!Eu(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{Eu(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return r.forEach(l=>{l.addEventListener("pointerenter",i,s)}),a}const Su=(e,t)=>t?e===t?!0:Su(e,t.parentElement):!1,Bi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,T7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function D7(e){return T7.has(e.tagName)||e.tabIndex!==-1}const Es=new WeakSet;function Mu(e){return t=>{t.key==="Enter"&&e(t)}}function Ii(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const P7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Mu(()=>{if(Es.has(n))return;Ii(n,"down");const s=Mu(()=>{Ii(n,"up")}),a=()=>Ii(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tu(e){return Bi(e)&&!ju()}function A7(e,t,n={}){const[r,s,a]=Lu(e,n),i=l=>{const c=l.currentTarget;if(!Tu(l))return;Es.add(c);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Es.has(c)&&Es.delete(c),Tu(g)&&typeof u=="function"&&u(g,{success:m})},f=g=>{d(g,c===window||c===document||n.useGlobalTarget||Su(c,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",i,s),j7(l)&&(l.addEventListener("focus",u=>P7(u,s)),!D7(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function Du(e){return C1(e)&&"ownerSVGElement"in e}function N7(e){return Du(e)&&e.tagName==="svg"}function R7(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],a=e[2+n],i=e[3+n],l=Q1(s,a,i);return t?l(r):l}const Pe=e=>!!(e&&e.getVelocity),F7=[...xu,Ce,_t],V7=e=>F7.find(gu(e)),Hi=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function $7(e=!0){const t=p.useContext(ei);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,a=p.useId();p.useEffect(()=>{if(e)return s(a)},[e]);const i=p.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,i]:[!0]}const Pu=p.createContext({strict:!1}),Au={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"]},On={};for(const e in Au)On[e]={isEnabled:t=>Au[e].some(n=>!!t[n])};function O7(e){for(const t in e)On[t]={...On[t],...e[t]}}const _7=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 Ss(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_7.has(e)}let Nu=e=>!Ss(e);function B7(e){typeof e=="function"&&(Nu=t=>t.startsWith("on")?!Ss(t):e(t))}try{B7(require("@emotion/is-prop-valid").default)}catch{}function I7(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Nu(s)||n===!0&&Ss(s)||!t&&!Ss(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Ms=p.createContext({});function Ts(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yr(e){return typeof e=="string"||Array.isArray(e)}const Wi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ui=["initial",...Wi];function Ds(e){return Ts(e.animate)||Ui.some(t=>yr(e[t]))}function Ru(e){return!!(Ds(e)||e.variants)}function H7(e,t){if(Ds(e)){const{initial:n,animate:r}=e;return{initial:n===!1||yr(n)?n:void 0,animate:yr(r)?r:void 0}}return e.inherit!==!1?t:{}}function W7(e){const{initial:t,animate:n}=H7(e,p.useContext(Ms));return p.useMemo(()=>({initial:t,animate:n}),[Fu(t),Fu(n)])}function Fu(e){return Array.isArray(e)?e.join(" "):e}const vr={};function U7(e){for(const t in e)vr[t]=e[t],ui(t)&&(vr[t].isCSSVariable=!0)}function Vu(e,{layout:t,layoutId:n}){return $n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vr[e]||e==="opacity")}const Z7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z7=Vn.length;function K7(e,t,n){let r="",s=!0;for(let a=0;a<z7;a++){const i=Vn[a],l=e[i];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(i.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=wu(l,Oi[i]);if(!c){s=!1;const d=Z7[i]||i;r+=`${d}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Zi(e,t,n){const{style:r,vars:s,transformOrigin:a}=e;let i=!1,l=!1;for(const c in t){const u=t[c];if($n.has(c)){i=!0;continue}else if(ui(c)){s[c]=u;continue}else{const d=wu(u,Oi[c]);c.startsWith("origin")?(l=!0,a[c]=d):r[c]=d}}if(t.transform||(i||n?r.transform=K7(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;r.transformOrigin=`${c} ${u} ${d}`}}const zi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $u(e,t,n){for(const r in t)!Pe(t[r])&&!Vu(r,n)&&(e[r]=t[r])}function Y7({transformTemplate:e},t){return p.useMemo(()=>{const n=zi();return Zi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function G7(e,t){const n=e.style||{},r={};return $u(r,n,e),Object.assign(r,Y7(e,t)),r}function q7(e,t){const n={},r=G7(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 X7={offset:"stroke-dashoffset",array:"stroke-dasharray"},J7={offset:"strokeDashoffset",array:"strokeDasharray"};function Q7(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?X7:J7;e[a.offset]=X.transform(-r);const i=X.transform(t),l=X.transform(n);e[a.array]=`${i} ${l}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:a=1,pathOffset:i=0,...l},c,u,d){if(Zi(e,l,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),s!==void 0&&Q7(f,s,a,i,!1)}const _u=()=>({...zi(),attrs:{}}),Bu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function e4(e,t,n,r){const s=p.useMemo(()=>{const a=_u();return Ou(a,t,Bu(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$u(a,e.style,e),s.style={...a,...s.style}}return s}const t4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ki(e){return typeof e!="string"||e.includes("-")?!1:!!(t4.indexOf(e)>-1||/[A-Z]/u.test(e))}function n4(e,t,n,{latestValues:r},s,a=!1){const l=(Ki(e)?e4:q7)(t,r,s,e),c=I7(t,typeof e=="string",a),u=e!==p.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=p.useMemo(()=>Pe(d)?d.get():d,[d]);return p.createElement(e,{...u,children:f})}function Iu(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Yi(e,t,n,r){if(typeof t=="function"){const[s,a]=Iu(r);t=t(n!==void 0?n:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=Iu(r);t=t(n!==void 0?n:e.custom,s,a)}return t}function Ps(e){return Pe(e)?e.get():e}function r4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:s4(n,r,s,e),renderState:t()}}function s4(e,t,n,r){const s={},a=r(e,{});for(const h in a)s[h]=Ps(a[h]);let{initial:i,animate:l}=e;const c=Ds(e),u=Ru(e);t&&u&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?l:i;if(f&&typeof f!="boolean"&&!Ts(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const m=Yi(e,h[g]);if(m){const{transitionEnd:x,transition:y,...v}=m;for(const C in v){let b=v[C];if(Array.isArray(b)){const j=d?b.length-1:0;b=b[j]}b!==null&&(s[C]=b)}for(const C in x)s[C]=x[C]}}}return s}const Hu=e=>(t,n)=>{const r=p.useContext(Ms),s=p.useContext(ei),a=()=>r4(e,t,r,s);return n?a():Jo(a)};function Gi(e,t,n){const{style:r}=e,s={};for(const a in r)(Pe(r[a])||t.style&&Pe(t.style[a])||Vu(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=r[a]);return s}const o4=Hu({scrapeMotionValuesFromProps:Gi,createRenderState:zi});function Wu(e,t,n){const r=Gi(e,t,n);for(const s in e)if(Pe(e[s])||Pe(t[s])){const a=Vn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[a]=e[s]}return r}const i4=Hu({scrapeMotionValuesFromProps:Wu,createRenderState:_u}),a4=Symbol.for("motionComponentSymbol");function _n(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function l4(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_n(n)&&(n.current=r))},[t])}const qi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),c4="framerAppearId",Uu="data-"+qi(c4),Zu=p.createContext({});function u4(e,t,n,r,s){const{visualElement:a}=p.useContext(Ms),i=p.useContext(Pu),l=p.useContext(ei),c=p.useContext(Hi).reducedMotion,u=p.useRef(null);r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,f=p.useContext(Zu);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&d4(u.current,n,s,f);const h=p.useRef(!1);p.useInsertionEffect(()=>{d&&h.current&&d.update(n,l)});const g=n[Uu],m=p.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return v1(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),p.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),m.current=!1),d.enteringChildren=void 0)}),d}function d4(e,t,n,r){const{layoutId:s,layout:a,drag:i,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zu(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!i||l&&_n(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function zu(e){if(e)return e.options.allowProjection!==!1?e.projection:zu(e.parent)}function Xi(e,{forwardMotionProps:t=!1}={},n,r){n&&O7(n);const s=Ki(e)?i4:o4;function a(l,c){let u;const d={...p.useContext(Hi),...l,layoutId:f4(l)},{isStatic:f}=d,h=W7(l),g=s(l,f);if(!f&&Qo){h4(d,n);const m=p4(d);u=m.MeasureLayout,h.visualElement=u4(e,g,d,r,m.ProjectionNode)}return o.jsxs(Ms.Provider,{value:h,children:[u&&h.visualElement?o.jsx(u,{visualElement:h.visualElement,...d}):null,n4(e,l,l4(g,h.visualElement,c),g,f,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=p.forwardRef(a);return i[a4]=e,i}function f4({layoutId:e}){const t=p.useContext(y1).id;return t&&e!==void 0?t+"-"+e:e}function h4(e,t){const n=p.useContext(Pu).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?An(!1,r,"lazy-strict-mode"):Mt(!1,r,"lazy-strict-mode")}}function p4(e){const{drag:t,layout:n}=On;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function m4(e,t){if(typeof Proxy>"u")return Xi;const n=new Map,r=(a,i)=>Xi(a,i,e,t),s=(a,i)=>(process.env.NODE_ENV!=="production"&&ii(!1,"motion() is deprecated. Use motion.create() instead."),r(a,i));return new Proxy(s,{get:(a,i)=>i==="create"?r:(n.has(i)||n.set(i,Xi(i,void 0,e,t)),n.get(i))})}function Ku({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function g4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function x4(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 Ji(e){return e===void 0||e===1}function Qi({scale:e,scaleX:t,scaleY:n}){return!Ji(e)||!Ji(t)||!Ji(n)}function dn(e){return Qi(e)||Yu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yu(e){return Gu(e.x)||Gu(e.y)}function Gu(e){return e&&e!=="0%"}function As(e,t,n){const r=e-n,s=t*r;return n+s}function qu(e,t,n,r,s){return s!==void 0&&(e=As(e,s,r)),As(e,n,r)+t}function ea(e,t=0,n=1,r,s){e.min=qu(e.min,t,n,r,s),e.max=qu(e.max,t,n,r,s)}function Xu(e,{x:t,y:n}){ea(e.x,t.translate,t.scale,t.originPoint),ea(e.y,n.translate,n.scale,n.originPoint)}const Ju=.999999999999,Qu=1.0000000000001;function y4(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let a,i;for(let l=0;l<s;l++){a=n[l],i=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&In(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Xu(e,i)),r&&dn(a.latestValues)&&In(e,a.latestValues))}t.x<Qu&&t.x>Ju&&(t.x=1),t.y<Qu&&t.y>Ju&&(t.y=1)}function Bn(e,t){e.min=e.min+t,e.max=e.max+t}function ed(e,t,n,r,s=.5){const a=fe(e.min,e.max,s);ea(e,t,n,a,r)}function In(e,t){ed(e.x,t.x,t.scaleX,t.scale,t.originX),ed(e.y,t.y,t.scaleY,t.scale,t.originY)}function td(e,t){return Ku(x4(e.getBoundingClientRect(),t))}function v4(e,t,n){const r=td(e,n),{scroll:s}=t;return s&&(Bn(r.x,s.offset.x),Bn(r.y,s.offset.y)),r}const nd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hn=()=>({x:nd(),y:nd()}),rd=()=>({min:0,max:0}),xe=()=>({x:rd(),y:rd()}),ta={current:null},sd={current:!1};function b4(){if(sd.current=!0,!!Qo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ta.current=e.matches;e.addEventListener("change",t),t()}else ta.current=!1}const C4=new WeakMap;function w4(e,t,n){for(const r in t){const s=t[r],a=n[r];if(Pe(s))e.addValue(r,s);else if(Pe(a))e.addValue(r,un(s,{owner:e}));else if(a!==s)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(r);e.addValue(r,un(i!==void 0?i:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const od=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class k4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:a,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ri,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=He.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ue.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=s,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=Ds(n),this.isVariantNode=Ru(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 g=f[h];c[h]!==void 0&&Pe(g)&&g.set(c[h])}}mount(t){this.current=t,C4.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)),sd.current||b4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ta.current,process.env.NODE_ENV!=="production"&&ii(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(),Dt(this.notifyUpdate),Dt(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=$n.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),a&&a(),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 On){const n=On[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xe()}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<od.length;r++){const s=od[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,i=t[a];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=w4(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=un(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"&&(b1(r)||w1(r))?r=parseFloat(r):!V7(r)&&_t.test(n)&&(r=Cu(t,n)),this.setBaseTarget(t,Pe(r)?r.get():r)),Pe(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 a=Yi(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Pe(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){_i.render(this.render)}}class id extends k4{constructor(){super(...arguments),this.KeyframeResolver=w7}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;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ad(e,{style:t,vars:n},r,s){const a=e.style;let i;for(i in t)a[i]=t[i];s?.applyProjectionStyles(a,r);for(i in n)a.setProperty(i,n[i])}function j4(e){return window.getComputedStyle(e)}class L4 extends id{constructor(){super(...arguments),this.type="html",this.renderInstance=ad}readValueFromInstance(t,n){if($n.has(n))return this.projection?.isProjecting?Ti(n):B6(t,n);{const r=j4(t),s=(ui(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return td(t,n)}build(t,n,r){Zi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Gi(t,n,r)}}const ld=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 E4(e,t,n,r){ad(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ld.has(s)?s:qi(s),t.attrs[s])}class S4 extends id{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($n.has(n)){const r=bu(n);return r&&r.default||0}return n=ld.has(n)?n:qi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Wu(t,n,r)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){E4(t,n,r,s)}mount(t){this.isSVGTag=Bu(t.tagName),super.mount(t)}}const M4=(e,t)=>Ki(e)?new S4(t):new L4(t,{allowProjection:e!==p.Fragment});function Wn(e,t,n){const r=e.getProps();return Yi(r,t,n!==void 0?n:r.custom,e)}const na=e=>Array.isArray(e);function T4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,un(n))}function D4(e){return na(e)?e[e.length-1]||0:e}function P4(e,t){const n=Wn(e,t);let{transitionEnd:r={},transition:s={},...a}=n||{};a={...a,...r};for(const i in a){const l=D4(a[i]);T4(e,i,l)}}function A4(e){return!!(Pe(e)&&e.add)}function ra(e,t){const n=e.getValue("willChange");if(A4(n))return n.add(t);if(!n&&Tt.WillChange){const r=new Tt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function cd(e){return e.props[Uu]}const N4=e=>e!==null;function R4(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(N4),a=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[a]}const F4={type:"spring",stiffness:500,damping:25,restSpeed:10},V4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$4={type:"keyframes",duration:.8},O4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_4=(e,{keyframes:t})=>t.length>2?$4:$n.has(e)?e.startsWith("scale")?V4(t[1]):F4:O4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:a,repeatType:i,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const sa=(e,t,n,r={},s,a)=>i=>{const l=Vi(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ut(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{i(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:s};B4(l)||Object.assign(d,_4(e,d)),d.duration&&(d.duration=ut(d.duration)),d.repeatDelay&&(d.repeatDelay=ut(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Fi(d),d.delay===0&&(f=!0)),(Tt.instantAnimations||Tt.skipAnimations)&&(f=!0,Fi(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!a&&t.get()!==void 0){const h=R4(d.keyframes,l);if(h!==void 0){ue.update(()=>{d.onUpdate(h),d.onComplete()});return}}return l.isSync?new Ei(d):new c7(d)};function I4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ud(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(a=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,e.latestValues[d]??null),h=l[d];if(h===void 0||u&&I4(u,d))continue;const g={delay:n,...Vi(a||{},d)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const v=cd(e);if(v){const C=window.MotionHandoffAnimation(v,d,ue);C!==null&&(g.startTime=C,x=!0)}}ra(e,d),f.start(sa(d,f,h,e.shouldReduceMotion&&mu.has(d)?{type:!1}:g,e,x));const y=f.animation;y&&c.push(y)}return i&&Promise.all(c).then(()=>{ue.update(()=>{i&&P4(e,i)})}),c}function dd(e,t,n,r=0,s=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,l=(i-1)*r;return typeof n=="function"?n(a,i):s===1?a*r:l-a*r}function oa(e,t,n={}){const r=Wn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(ud(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return H4(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[a,i]:[i,a];return c().then(()=>u())}else return Promise.all([a(),i(n.delay)])}function H4(e,t,n=0,r=0,s=0,a=1,i){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(oa(c,t,{...i,delay:n+(typeof r=="function"?0:r)+dd(e.variantChildren,c,r,s,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function W4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>oa(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=oa(e,t,n);else{const s=typeof t=="function"?Wn(e,t,n.custom):t;r=Promise.all(ud(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function fd(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 U4=Ui.length;function hd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<U4;n++){const r=Ui[n],s=e.props[r];(yr(s)||s===!1)&&(t[r]=s)}return t}const Z4=[...Wi].reverse(),z4=Wi.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>W4(e,n,r)))}function Y4(e){let t=K4(e),n=pd(),r=!0;const s=c=>(u,d)=>{const f=Wn(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:g,...m}=f;u={...u,...m,...g}}return u};function a(c){t=c(e)}function i(c){const{props:u}=e,d=hd(e.parent)||{},f=[],h=new Set;let g={},m=1/0;for(let y=0;y<z4;y++){const v=Z4[y],C=n[v],b=u[v]!==void 0?u[v]:d[v],j=yr(b),k=v===c?C.isActive:null;k===!1&&(m=y);let L=b===d[v]&&b!==u[v]&&j;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),C.protectedKeys={...g},!C.isActive&&k===null||!b&&!C.prevProp||Ts(b)||typeof b=="boolean")continue;const A=G4(C.prevProp,b);let D=A||v===c&&C.isActive&&!L&&j||y>m&&j,H=!1;const V=Array.isArray(b)?b:[b];let O=V.reduce(s(v),{});k===!1&&(O={});const{prevResolvedValues:z={}}=C,Z={...z,...O},P=T=>{D=!0,h.has(T)&&(H=!0,h.delete(T)),C.needsAnimating[T]=!0;const S=e.getValue(T);S&&(S.liveStyle=!1)};for(const T in Z){const S=O[T],$=z[T];if(g.hasOwnProperty(T))continue;let R=!1;na(S)&&na($)?R=!fd(S,$):R=S!==$,R?S!=null?P(T):h.add(T):S!==void 0&&h.has(T)?P(T):C.protectedKeys[T]=!0}C.prevProp=b,C.prevResolvedValues=O,C.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(D=!1);const F=L&&A;D&&(!F||H)&&f.push(...V.map(T=>{const S={type:v};if(typeof T=="string"&&r&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:$}=e,R=Wn($,T);if($.enteringChildren&&R){const{delayChildren:W}=R.transition||{};S.delay=dd($.enteringChildren,e,W)}}return{animation:T,options:S}}))}if(h.size){const y={};if(typeof u.initial!="boolean"){const v=Wn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}h.forEach(v=>{const C=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),y[v]=C??null}),f.push({animation:y})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(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:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=pd()}}}function G4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fd(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pd(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class Bt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class q4 extends Bt{constructor(t){super(t),t.animationState||(t.animationState=Y4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ts(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 X4=0;class J4 extends Bt{constructor(){super(...arguments),this.id=X4++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 Q4={animation:{Feature:q4},exit:{Feature:J4}};function br(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Cr(e){return{point:{x:e.pageX,y:e.pageY}}}const em=e=>t=>Bi(t)&&e(t,Cr(t));function wr(e,t,n,r){return br(e,t,em(n),r)}const md=1e-4,tm=1-md,nm=1+md,gd=.01,rm=0-gd,sm=0+gd;function $e(e){return e.max-e.min}function om(e,t,n){return Math.abs(e-t)<=n}function xd(e,t,n,r=.5){e.origin=r,e.originPoint=fe(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=tm&&e.scale<=nm||isNaN(e.scale))&&(e.scale=1),(e.translate>=rm&&e.translate<=sm||isNaN(e.translate))&&(e.translate=0)}function kr(e,t,n,r){xd(e.x,t.x,n.x,r?r.originX:void 0),xd(e.y,t.y,n.y,r?r.originY:void 0)}function yd(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function im(e,t,n){yd(e.x,t.x,n.x),yd(e.y,t.y,n.y)}function vd(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function jr(e,t,n){vd(e.x,t.x,n.x),vd(e.y,t.y,n.y)}function et(e){return[e("x"),e("y")]}const bd=({current:e})=>e?e.ownerDocument.defaultView:null,Cd=(e,t)=>Math.abs(e-t);function am(e,t){const n=Cd(e.x,t.x),r=Cd(e.y,t.y);return Math.sqrt(n**2+r**2)}class wd{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:a=!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=aa(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=am(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:x}=h,{timestamp:y}=Ee;this.history.push({...x,timestamp:y});const{onStart:v,onMove:C}=this.handlers;g||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,g)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ia(g,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(h,g)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=aa(h.type==="pointercancel"?this.lastMoveEventInfo:ia(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,v),x&&x(h,v)},!Bi(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=s||window;const l=Cr(t),c=ia(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ee;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,aa(c,this.history)),this.removeListeners=cr(wr(this.contextWindow,"pointermove",this.handlePointerMove),wr(this.contextWindow,"pointerup",this.handlePointerUp),wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dt(this.updatePoint)}}function ia(e,t){return t?{point:t(e.point)}:e}function kd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aa({point:e},t){return{point:e,delta:kd(e,jd(t)),offset:kd(e,lm(t)),velocity:cm(t,.1)}}function lm(e){return e[0]}function jd(e){return e[e.length-1]}function cm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=jd(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ut(t)));)n--;if(!r)return{x:0,y:0};const a=Qe(s.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const i={x:(s.x-r.x)/a,y:(s.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function um(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?fe(n,e,r.max):Math.min(e,n)),e}function Ld(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 dm(e,{top:t,left:n,bottom:r,right:s}){return{x:Ld(e.x,n,s),y:Ld(e.y,t,r)}}function Ed(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 fm(e,t){return{x:Ed(e.x,t.x),y:Ed(e.y,t.y)}}function hm(e,t){let n=.5;const r=$e(e),s=$e(t);return s>r?n=ur(t.min,t.max-r,e.min):r>s&&(n=ur(e.min,e.max-s,t.min)),St(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 la=.35;function mm(e=la){return e===!1?e=0:e===!0&&(e=la),{x:Sd(e,"left","right"),y:Sd(e,"top","bottom")}}function Sd(e,t,n){return{min:Md(e,t),max:Md(e,n)}}function Md(e,t){return typeof e=="number"?e:e[t]||0}const gm=new WeakMap;class xm{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=xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cr(f).point)},i=(f,h)=>{const{drag:g,dragPropagation:m,onDragStart:x}=this.getProps();if(g&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=S7(g),!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),et(v=>{let C=this.getAxisMotionValue(v).get()||0;if(bt.test(C)){const{projection:b}=this.visualElement;if(b&&b.layout){const j=b.layout.layoutBox[v];j&&(C=$e(j)*(parseFloat(C)/100))}}this.originPoint[v]=C}),x&&ue.postRender(()=>x(f,h)),ra(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:g,dragDirectionLock:m,onDirectionLock:x,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=h;if(m&&this.currentDirection===null){this.currentDirection=ym(v),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),y&&y(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>et(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new wd(t,{onSessionStart:a,onStart:i,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:bd(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!r)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&ue.postRender(()=>l(r,s))}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:s}=this.getProps();if(!r||!Ns(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=um(i,this.constraints[t],this.elastic[t])),a.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,s=this.constraints;t&&_n(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=dm(r.layoutBox,t):this.constraints=!1,this.elastic=mm(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&et(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=pm(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_n(t))return!1;const r=t.current;Mt(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:s}=this.visualElement;if(!s||!s.layout)return!1;const a=v4(r,s.root,this.visualElement.getTransformPagePoint());let i=fm(s.layout.layoutBox,a);if(n){const l=n(g4(i));this.hasMutatedConstraints=!!l,l&&(i=Ku(l))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=et(d=>{if(!Ns(d,n,this.currentDirection))return;let f=c&&c[d]||{};i&&(f={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ra(this.visualElement,t),r.start(sa(t,r,0,n,this.visualElement,!1))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(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(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:r}=this.getProps();if(!Ns(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:l}=s.layout.layoutBox[n];a.set(t[n]-fe(i,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_n(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};et(i=>{const l=this.getAxisMotionValue(i);if(l&&this.constraints!==!1){const c=l.get();s[i]=hm({min:c,max:c},this.constraints[i])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),et(i=>{if(!Ns(i,t,null))return;const l=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];l.set(fe(c,u,s[i]))})}addListeners(){if(!this.visualElement.current)return;gm.set(this.visualElement,this);const t=this.visualElement.current,n=wr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();_n(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ue.read(r);const i=br(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(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(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:i=la,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:a,dragElastic:i,dragMomentum:l}}}function Ns(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ym(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 Bt{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new xm(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}unmount(){this.removeGroupControls(),this.removeListeners()}}const Td=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))};class bm extends Bt{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new wd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Td(t),onStart:Td(n),onMove:r,onEnd:(a,i)=>{delete this.session,s&&ue.postRender(()=>s(a,i))}}}mount(){this.removePointerDownListener=wr(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 Rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Lr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=Dd(e,t.target.x),r=Dd(e,t.target.y);return`${n}% ${r}%`}},Cm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=_t.parse(e);if(s.length>5)return r;const a=_t.createTransformer(e),i=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+i]/=l,s[1+i]/=c;const u=fe(l,c,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),a(s)}};let ca=!1;class wm extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:a}=t;U7(km),a&&(n.group&&n.group.add(a),r&&r.register&&s&&r.register(a),ca&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:a}=this.props,{projection:i}=r;return i&&(i.isPresent=a,ca=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==a?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||ue.postRender(()=>{const l=i.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_i.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;ca=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pd(e){const[t,n]=$7(),r=p.useContext(y1);return o.jsx(wm,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(Zu),isPresent:t,safeToRemove:n})}const km={borderRadius:{...Lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lr,borderTopRightRadius:Lr,borderBottomLeftRadius:Lr,borderBottomRightRadius:Lr,boxShadow:Cm};function jm(e,t,n){const r=Pe(e)?e:un(e);return r.start(sa("",r,t,n)),r.animation}const Lm=(e,t)=>e.depth-t.depth;class Em{constructor(){this.children=[],this.isDirty=!1}add(t){ti(this.children,t),this.isDirty=!0}remove(t){ni(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lm),this.isDirty=!1,this.children.forEach(t)}}function Sm(e,t){const n=He.now(),r=({timestamp:s})=>{const a=s-n;a>=t&&(Dt(r),e(a-t))};return ue.setup(r,!0),()=>Dt(r)}const Ad=["TopLeft","TopRight","BottomLeft","BottomRight"],Mm=Ad.length,Nd=e=>typeof e=="string"?parseFloat(e):e,Rd=e=>typeof e=="number"||X.test(e);function Tm(e,t,n,r,s,a){s?(e.opacity=fe(0,n.opacity??1,Dm(r)),e.opacityExit=fe(t.opacity??1,0,Pm(r))):a&&(e.opacity=fe(t.opacity??1,n.opacity??1,r));for(let i=0;i<Mm;i++){const l=`border${Ad[i]}Radius`;let c=Fd(t,l),u=Fd(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Rd(c)===Rd(u)?(e[l]=Math.max(fe(Nd(c),Nd(u),r),0),(bt.test(u)||bt.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=fe(t.rotate||0,n.rotate||0,r))}function Fd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Dm=Vd(0,.5,P1),Pm=Vd(.5,.95,Je);function Vd(e,t,n){return r=>r<e?0:r>t?1:n(ur(e,t,r))}function $d(e,t){e.min=t.min,e.max=t.max}function tt(e,t){$d(e.x,t.x),$d(e.y,t.y)}function Od(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _d(e,t,n,r,s){return e-=t,e=As(e,1/n,r),s!==void 0&&(e=As(e,1/s,r)),e}function Am(e,t=0,n=1,r=.5,s,a=e,i=e){if(bt.test(t)&&(t=parseFloat(t),t=fe(i.min,i.max,t/100)-i.min),typeof t!="number")return;let l=fe(a.min,a.max,r);e===a&&(l-=t),e.min=_d(e.min,t,n,l,s),e.max=_d(e.max,t,n,l,s)}function Bd(e,t,[n,r,s],a,i){Am(e,t[n],t[r],t[s],t.scale,a,i)}const Nm=["x","scaleX","originX"],Rm=["y","scaleY","originY"];function Id(e,t,n,r){Bd(e.x,t,Nm,n?n.x:void 0,r?r.x:void 0),Bd(e.y,t,Rm,n?n.y:void 0,r?r.y:void 0)}function Hd(e){return e.translate===0&&e.scale===1}function Wd(e){return Hd(e.x)&&Hd(e.y)}function Ud(e,t){return e.min===t.min&&e.max===t.max}function Fm(e,t){return Ud(e.x,t.x)&&Ud(e.y,t.y)}function Zd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zd(e,t){return Zd(e.x,t.x)&&Zd(e.y,t.y)}function Kd(e){return $e(e.x)/$e(e.y)}function Yd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Vm{constructor(){this.members=[]}add(t){ti(this.members,t),t.scheduleRender()}remove(t){if(ni(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){r=a;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:s}=t.options;s===!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 $m(e,t,n){let r="";const s=e.x.translate/t.x,a=e.y.translate/t.y,i=n?.z||0;if((s||a||i)&&(r=`translate3d(${s}px, ${a}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:g,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ua=["","X","Y","Z"],Om=1e3;let _m=0;function da(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Gd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=cd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(s||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Gd(r)}function qd({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},l=t?.()){this.id=_m++,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(Hm),this.nodes.forEach(zm),this.nodes.forEach(Km),this.nodes.forEach(Wm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Em)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new oi),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Du(i)&&!N7(i),this.instance=i;const{layoutId:l,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||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;ue.read(()=>{f=window.innerWidth}),e(i,()=>{const g=window.innerWidth;g!==f&&(f=g,this.root.updateBlockedByResize=!0,d&&d(),d=Sm(h,250),Rs.hasAnimatedSinceResize&&(Rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Qd)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Jm,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!zd(this.targetLayout,g),C=!f&&h;if(this.options.layoutRoot||this.resumeFrom||C||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Vi(m,"layout"),onPlay:x,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,C)}else f||Qd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),Dt(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(Ym),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&&Gd(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:l,layout:c}=this.options;if(l===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(Xd);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Jd);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Zm),this.nodes.forEach(Bm),this.nodes.forEach(Im)):this.nodes.forEach(Jd),this.clearAllSnapshots();const l=He.now();Ee.delta=St(0,1e3/60,l-Ee.timestamp),Ee.timestamp=l,Ee.isProcessing=!0,ci.update.process(Ee),ci.preRender.process(Ee),ci.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_i.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Um),this.sharedNodes.forEach(Gm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$e(this.snapshot.measuredBox.x)&&!$e(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=xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&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(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Wd(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||dn(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),Qm(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return xe();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e8))){const{scroll:u}=this.root;u&&(Bn(l.x,u.offset.x),Bn(l.y,u.offset.y))}return l}removeElementScroll(i){const l=xe();if(tt(l,i),this.scroll?.wasRoot)return l;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&&tt(l,i),Bn(l.x,d.offset.x),Bn(l.y,d.offset.y))}return l}applyTransform(i,l=!1){const c=xe();tt(c,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&In(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),dn(d.latestValues)&&In(c,d.latestValues)}return dn(this.latestValues)&&In(c,this.latestValues),c}removeTransform(i){const l=xe();tt(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!dn(u.latestValues))continue;Qi(u.latestValues)&&u.updateSnapshot();const d=xe(),f=u.measurePageBox();tt(d,f),Id(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return dn(this.latestValues)&&Id(l,this.latestValues),l}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!==Ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;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=Ee.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xe(),this.relativeTargetOrigin=xe(),jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xe(),this.targetWithTransforms=xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),im(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tt(this.target,this.layout.layoutBox),Xu(this.target,this.targetDelta)):tt(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=xe(),this.relativeTargetOrigin=xe(),jr(this.relativeTargetOrigin,this.target,h.target),tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Qi(this.parent.latestValues)||Yu(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(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ee.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;tt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;y4(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=xe());const{target:g}=i;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Od(this.prevProjectionDelta.x,this.projectionDelta.x),Od(this.prevProjectionDelta.y,this.projectionDelta.y)),kr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Yd(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Hn(),this.projectionDelta=Hn(),this.projectionDeltaWithTransform=Hn()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Hn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=xe(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,x=g!==m,y=this.getStack(),v=!y||y.members.length<=1,C=!!(x&&!v&&this.options.crossfade===!0&&!this.path.some(Xm));this.animationProgress=0;let b;this.mixTargetDelta=j=>{const k=j/1e3;e0(f.x,i.x,k),e0(f.y,i.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qm(this.relativeTarget,this.relativeTargetOrigin,h,k),b&&Fm(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=xe()),tt(b,this.relativeTarget)),x&&(this.animationValues=d,Tm(d,u,this.latestValues,k,C,v)),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&&(Dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{Rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=un(0)),this.currentAnimation=jm(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},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(Om),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&o0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||xe();const f=$e(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+f;const h=$e(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}tt(l,c),In(l,d),kr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Vm),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):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:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&da("z",i,u,this.animationValues);for(let d=0;d<ua.length;d++)da(`rotate${ua[d]}`,i,u,this.animationValues),da(`skew${ua[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,l){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=Ps(l?.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=Ps(l?.pointerEvents)||""),this.hasProjected&&!dn(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=$m(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),i.transform=f;const{x:h,y:g}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${g.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 m in vr){if(d[m]===void 0)continue;const{correct:x,applyTo:y,isCSSVariable:v}=vr[m],C=f==="none"?d[m]:x(d[m],u);if(y){const b=y.length;for(let j=0;j<b;j++)i[y[j]]=C}else v?this.options.visualElement.renderState.vars[m]=C:i[m]=C}this.options.layoutId&&(i.pointerEvents=u===this?Ps(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Xd),this.root.sharedNodes.clear()}}}function Bm(e){e.updateLayout()}function Im(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:s}=e.options,a=t.source!==e.layout.source;s==="size"?et(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=$e(f);f.min=n[d].min,f.max=f.min+h}):o0(s,t.layoutBox,n)&&et(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=$e(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=Hn();kr(i,n,t.layoutBox);const l=Hn();a?kr(l,e.applyTransform(r,!0),t.measuredBox):kr(l,n,t.layoutBox);const c=!Wd(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 g=xe();jr(g,t.layoutBox,f.layoutBox);const m=xe();jr(m,n,h.layoutBox),zd(g,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Hm(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 Wm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Um(e){e.clearSnapshot()}function Xd(e){e.clearMeasurements()}function Jd(e){e.isLayoutDirty=!1}function Zm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zm(e){e.resolveTargetDelta()}function Km(e){e.calcProjection()}function Ym(e){e.resetSkewAndRotation()}function Gm(e){e.removeLeadSnapshot()}function e0(e,t,n){e.translate=fe(t.translate,0,n),e.scale=fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function t0(e,t,n,r){e.min=fe(t.min,n.min,r),e.max=fe(t.max,n.max,r)}function qm(e,t,n,r){t0(e.x,t.x,n.x,r),t0(e.y,t.y,n.y,r)}function Xm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jm={duration:.45,ease:[.4,0,.1,1]},n0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r0=n0("applewebkit/")&&!n0("chrome/")?Math.round:Je;function s0(e){e.min=r0(e.min),e.max=r0(e.max)}function Qm(e){s0(e.x),s0(e.y)}function o0(e,t,n){return e==="position"||e==="preserve-aspect"&&!om(Kd(t),Kd(n),.2)}function e8(e){return e!==e.root&&e.scroll?.wasRoot}const t8=qd({attachResizeListener:(e,t)=>br(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fa={current:void 0},i0=qd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fa.current){const e=new t8({});e.mount(window),e.setOptions({layoutScroll:!0}),fa.current=e}return fa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),n8={pan:{Feature:bm},drag:{Feature:vm,ProjectionNode:i0,MeasureLayout:Pd}};function a0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,a=r[s];a&&ue.postRender(()=>a(t,Cr(t)))}class r8 extends Bt{mount(){const{current:t}=this.node;t&&(this.unmount=M7(t,(n,r)=>(a0(this.node,r,"Start"),s=>a0(this.node,s,"End"))))}unmount(){}}class s8 extends Bt{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=cr(br(this.node.current,"focus",()=>this.onFocus()),br(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function l0(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 s="onTap"+(n==="End"?"":n),a=r[s];a&&ue.postRender(()=>a(t,Cr(t)))}class o8 extends Bt{mount(){const{current:t}=this.node;t&&(this.unmount=A7(t,(n,r)=>(l0(this.node,r,"Start"),(s,{success:a})=>l0(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ha=new WeakMap,pa=new WeakMap,i8=e=>{const t=ha.get(e.target);t&&t(e)},a8=e=>{e.forEach(i8)};function l8({root:e,...t}){const n=e||document;pa.has(n)||pa.set(n,{});const r=pa.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(a8,{root:e,...t})),r[s]}function c8(e,t,n){const r=l8(t);return ha.set(e,n),r.observe(e),()=>{ha.delete(e),r.unobserve(e)}}const u8={some:0,all:1};class d8 extends Bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:u8[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!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 c8(this.node.current,i,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(f8(t,n))&&this.startObserver()}unmount(){}}function f8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const h8={inView:{Feature:d8},tap:{Feature:o8},focus:{Feature:s8},hover:{Feature:r8}},p8={layout:{ProjectionNode:i0,MeasureLayout:Pd}},m8={...Q4,...h8,...n8,...p8},Fs=m4(m8,M4);function c0(e){const t=Jo(()=>un(e)),{isStatic:n}=p.useContext(Hi);if(n){const[,r]=p.useState(e);p.useEffect(()=>t.on("change",r),[])}return t}function u0(e,t){const n=c0(t()),r=()=>n.set(t());return r(),v1(()=>{const s=()=>ue.preRender(r,!1,!0),a=e.map(i=>i.on("change",s));return()=>{a.forEach(i=>i()),Dt(r)}}),n}function g8(e){xr.current=[],e();const t=u0(xr.current,e);return xr.current=void 0,t}function x8(e,t,n,r){if(typeof e=="function")return g8(e);const s=typeof t=="function"?t:R7(t,n,r);return Array.isArray(e)?d0(e,s):d0([e],([a])=>s(a))}function d0(e,t){const n=Jo(()=>[]);return u0(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}const Er=({isOpen:e,onClose:t,title:n,description:r,children:s,bottomContent:a,topContent:i,className:l,showCloseButton:c=!0,size:u="medium",variant:d="centered"})=>{const f=p.useRef(null);if(!e)return null;const h=tp[u],g={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 o.jsx(w,{onClick:m=>m.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:o.jsxs(Fs.div,{ref:f,initial:g[d].initial,animate:g[d].animate,exit:g[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?o.jsx(w,{className:"p-4",children:i}):o.jsxs(w,{className:`${n?"p-6":"py-4 px-6"} border-b border-grey-200`,children:[o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(Go,{variant:"h6",color:"text-metrifox-black",children:n}),c&&o.jsx("span",{onClick:t,className:"cursor-pointer",children:o.jsx(ae,{name:"circle-close",size:24,color:"grey-800"})})]}),r&&o.jsx(B,{variant:"body4",color:"text-grey-500",className:"mt-2 mr-6",children:r})]}),o.jsx(w,{className:`flex-grow overflow-y-auto p-6 max-h-[calc(90vh - 100px)] ${!a&&"rounded-b-2xl"} ${l}`,children:s}),a&&o.jsx(w,{className:"p-4 border-t border-grey-200",children:a})]})})};var f0={exports:{}};(function(e,t){(function(n,r){e.exports=r(p)})(typeof self<"u"?self:Ht,function(n){return function(){var r={155:function(C){C.exports=n}},s={};function a(C){var b=s[C];if(b!==void 0)return b.exports;var j=s[C]={exports:{}};return r[C](j,j.exports,a),j.exports}a.d=function(C,b){for(var j in b)a.o(b,j)&&!a.o(C,j)&&Object.defineProperty(C,j,{enumerable:!0,get:b[j]})},a.o=function(C,b){return Object.prototype.hasOwnProperty.call(C,b)},a.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})};var i={};a.r(i),a.d(i,{useReactToPrint:function(){return v}});var l=a(155);const c="printWindow";function u({level:C="error",messages:b,suppressErrors:j=!1}){j||(C==="error"?console.error(b):C==="warning"?console.warn(b):console.debug(b))}function d(C,b){if(b||!C){const j=document.getElementById(c);j&&document.body.removeChild(j)}}function f(C){return C instanceof Error?C:new Error("Unknown Error")}function h(C,b){const{documentTitle:j,onAfterPrint:k,onPrintError:L,preserveAfterPrint:A,print:D,suppressErrors:H}=b;setTimeout(()=>{var V,O;if(C.contentWindow){let z=function(){k?.(),d(A)};if(C.contentWindow.focus(),D)D(C).then(z).catch(Z=>{L?L("print",f(Z)):u({messages:["An error was thrown by the specified `print` function"],suppressErrors:H})});else{if(C.contentWindow.print){const Z=(O=(V=C.contentDocument)===null||V===void 0?void 0:V.title)!==null&&O!==void 0?O:"",P=C.ownerDocument.title;j&&(C.ownerDocument.title=j,C.contentDocument&&(C.contentDocument.title=j)),C.contentWindow.print(),j&&(C.ownerDocument.title=P,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:H});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(Z=>{var P,F;return((F=(P=navigator.userAgent)!==null&&P!==void 0?P:navigator.vendor)!==null&&F!==void 0?F:"opera"in window&&window.opera).match(Z)})?setTimeout(z,500):z()}}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:H})},500)}function g(C){const b=[],j=document.createTreeWalker(C,NodeFilter.SHOW_ELEMENT,null);let k=j.nextNode();for(;k;)b.push(k),k=j.nextNode();return b}function m(C,b,j){const k=g(C),L=g(b);if(k.length===L.length)for(let A=0;A<k.length;A++){const D=k[A],H=L[A],V=D.shadowRoot;if(V!==null){const O=H.attachShadow({mode:V.mode});O.innerHTML=V.innerHTML,m(V,O,j)}}else u({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",C,b],suppressErrors:j})}const x=`
|
|
25
|
+
*/var rc;function nh(){return rc||(rc=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=p,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,s=t.useRef,a=t.useEffect,i=t.useMemo,l=t.useDebugValue;To.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var g=s(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=i(function(){function v(E){if(!y){if(y=!0,C=E,E=f(E),h!==void 0&&m.hasValue){var j=m.value;if(h(j,E))return b=j}return b=E}if(j=b,n(C,E))return j;var T=f(E);return h!==void 0&&h(j,T)?(C=E,j):(C=E,b=T)}var y=!1,C,b,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,f,h]);var x=r(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=x},[x]),l(x),x},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),To}process.env.NODE_ENV==="production"?So.exports=th():So.exports=nh();var rh=So.exports;function en(e,t,n=Jl){return rh.useSyncExternalStoreWithSelector(oe(r=>e.subscribe(sh,r)),oe(()=>e.state),oe(()=>e.state),oe(t),n)}function sh(e){return e}function oh(e,t){let n=p.useId(),r=tc.get(t),[s,a]=en(r,p.useCallback(i=>[r.selectors.isTop(i,n),r.selectors.inStack(i,n)],[r,n]));return Ae(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?a?s:!0:!1}function ih(e,t,n){let r=Xe(s=>{let a=s.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});p.useEffect(()=>{if(!e)return;let s=t===null?null:St(t)?t:t.current;if(!s)return;let a=Et();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>r.current(s));i.observe(s),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>r.current(s));i.observe(s),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,r,e])}let Mo=["[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(","),ah=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var we=(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))(we||{}),Ft=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ft||{}),lh=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(lh||{});function is(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function ch(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ah)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Do=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Do||{});function sc(e,t=0){var n;return e===((n=En(e))==null?void 0:n.body)?!1:Re(t,{0(){return e.matches(Mo)},1(){let r=e;for(;r!==null;){if(r.matches(Mo))return!0;r=r.parentElement}return!1}})}var uh=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(uh||{});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 dh=["textarea","input"].join(",");function fh(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,dh))!=null?n:!1}function Dn(e,t=n=>n){return e.slice().sort((n,r)=>{let s=t(n),a=t(r);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ke(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){let a=Array.isArray(e)?e.length>0?qt(e[0]):document:qt(e),i=Array.isArray(e)?n?Dn(e):e:t&64?ch(e):is(e);s.length>0&&i.length>1&&(i=i.filter(g=>!s.some(m=>m!=null&&"current"in m?m?.current===g:m===g))),r=r??a?.activeElement;let l=(()=>{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 g=c+d;if(t&16)g=(g+f)%f;else{if(g<0)return 3;if(g>=f)return 1}h=i[g],h?.focus(u),d+=l}while(h!==Xt(h));return t&6&&fh(h)&&h.select(),2}function oc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hh(){return/Android/gi.test(window.navigator.userAgent)}function ic(){return oc()||hh()}function as(e,t,n,r){let s=Xe(n);p.useEffect(()=>{if(!e)return;function a(i){s.current(i)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function ac(e,t,n,r){let s=Xe(n);p.useEffect(()=>{if(!e)return;function a(i){s.current(i)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const lc=30;function ph(e,t,n){let r=Xe(n),s=p.useCallback(function(l,c){if(l.defaultPrevented)return;let u=c(l);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)||l.composed&&l.composedPath().includes(f)))return;return!sc(u,Do.Loose)&&u.tabIndex!==-1&&l.preventDefault(),r.current(l,u)},[r,t]),a=p.useRef(null);as(e,"pointerdown",l=>{var c,u;ic()||(a.current=((u=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:u[0])||l.target)},!0),as(e,"pointerup",l=>{if(ic()||!a.current)return;let c=a.current;return a.current=null,s(l,()=>c)},!0);let i=p.useRef({x:0,y:0});as(e,"touchstart",l=>{i.current.x=l.touches[0].clientX,i.current.y=l.touches[0].clientY},!0),as(e,"touchend",l=>{let c={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(c.x-i.current.x)>=lc||Math.abs(c.y-i.current.y)>=lc))return s(l,()=>Mn(l.target)?l.target:null)},!0),ac(e,"blur",l=>s(l,()=>I3(window.document.activeElement)?window.document.activeElement:null),!0)}function No(...e){return p.useMemo(()=>En(...e),[...e])}function mh(...e){return p.useMemo(()=>qt(...e),[...e])}function gh(e,t,n,r){let s=Xe(n);p.useEffect(()=>{e=e??window;function a(i){s.current(i)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function cc(e,t){return p.useMemo(()=>{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 xh(e){return p.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function yh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,r.forEach(l=>l()))}}}function vh(){let e;return{before({doc:t}){var n;let r=t.documentElement,s=(n=t.defaultView)!=null?n:window;e=Math.max(0,s.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,s=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-s);n.style(r,"paddingRight",`${a}px`)}}}function bh(){return oc()?{before({doc:e,d:t,meta:n}){function r(s){for(let a of n().containers)for(let i of a())if(i.contains(s))return!0;return!1}t.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Et();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(s=window.scrollY)!=null?s:window.pageYOffset,i=null;t.addEventListener(e,"click",l=>{if(Mn(l.target))try{let c=l.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);Mn(d)&&!r(d)&&(i=d)}catch{}},!0),t.group(l=>{t.addEventListener(e,"touchstart",c=>{if(l.dispose(),Mn(c.target)&&B3(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;l.style(u,"overscrollBehavior","contain")}else l.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",l=>{if(Mn(l.target)){if(H3(l.target))return;if(r(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;a!==c&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Ch(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function uc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tn=yh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Et(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=uc(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=uc(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[bh(),vh(),Ch()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});tn.subscribe(()=>{let e=tn.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",s=n.count!==0;(s&&!r||!s&&r)&&tn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tn.dispatch("TEARDOWN",n)}});function wh(e,t,n=()=>({containers:[]})){let r=xh(tn),s=t?r.get(t):void 0,a=s?s.count>0:!1;return Ae(()=>{if(!(!t||!e))return tn.dispatch("PUSH",t,n),()=>tn.dispatch("POP",t,n)},[e,t]),a}function jh(e,t,n=()=>[document.body]){let r=oh(e,"scroll-lock");wh(r,t,s=>{var a;return{containers:[...(a=s.containers)!=null?a:[],n]}})}function kh(e=0){let[t,n]=p.useState(e),r=p.useCallback(c=>n(c),[]),s=p.useCallback(c=>n(u=>u|c),[]),a=p.useCallback(c=>(t&c)===c,[t]),i=p.useCallback(c=>n(u=>u&~c),[]),l=p.useCallback(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:s,hasFlag:a,removeFlag:i,toggleFlag:l}}var dc,fc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((dc=process==null?void 0:process.env)==null?void 0:dc.NODE_ENV)==="test"&&typeof((fc=Element?.prototype)==null?void 0:fc.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 Eh=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Eh||{});function hc(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function pc(e,t,n,r){let[s,a]=p.useState(n),{hasFlag:i,addFlag:l,removeFlag:c}=kh(e&&s?3:0),u=p.useRef(!1),d=p.useRef(!1),f=rs();return Ae(()=>{var h;if(e){if(n&&a(!0),!t){n&&l(3);return}return(h=void 0)==null||h.call(r,n),Sh(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(l(3),c(4)):(l(4),c(2)))},run(){d.current?n?(c(3),l(4)):(c(4),l(3)):n?c(1):l(1)},done(){var g;d.current&&Mh(t)||(u.current=!1,c(7),n||a(!1),(g=void 0)==null||g.call(r,n))}})}},[e,n,t,f]),e?[s,{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 Sh(e,{prepare:t,run:n,done:r,inFlight:s}){let a=Et();return Th(e,{prepare:t,inFlight:s}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(Lh(e,r))})}),a.dispose}function Lh(e,t){var n,r;let s=Et();if(!e)return s.dispose;let a=!1;s.add(()=>{a=!0});let i=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return i.length===0?(t(),s.dispose):(Promise.allSettled(i.map(l=>l.finished)).then(()=>{a||t()}),s.dispose)}function Th(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 Mh(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 ls(){return typeof window<"u"}function Nn(e){return mc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(mc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mc(e){return ls()?e instanceof Node||e instanceof Ye(e).Node:!1}function Me(e){return ls()?e instanceof Element||e instanceof Ye(e).Element:!1}function vt(e){return ls()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function gc(e){return!ls()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}const Dh=new Set(["inline","contents"]);function ir(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dh.has(s)}const Nh=new Set(["table","td","th"]);function Ph(e){return Nh.has(Nn(e))}const Ah=[":popover-open",":modal"];function cs(e){return Ah.some(t=>{try{return e.matches(t)}catch{return!1}})}const Rh=["transform","translate","scale","rotate","perspective"],_h=["transform","translate","scale","rotate","perspective","filter"],Fh=["paint","layout","strict","content"];function Po(e){const t=Ao(),n=Me(e)?ct(e):e;return Rh.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)||_h.some(r=>(n.willChange||"").includes(r))||Fh.some(r=>(n.contain||"").includes(r))}function Vh(e){let t=Vt(e);for(;vt(t)&&!Pn(t);){if(Po(t))return t;if(cs(t))return null;t=Vt(t)}return null}function Ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $h=new Set(["html","body","#document"]);function Pn(e){return $h.has(Nn(e))}function ct(e){return Ye(e).getComputedStyle(e)}function us(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vt(e){if(Nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gc(e)&&e.host||yt(e);return gc(t)?t.host:t}function xc(e){const t=Vt(e);return Pn(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&ir(t)?t:xc(t)}function ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=xc(e),a=s===((r=e.ownerDocument)==null?void 0:r.body),i=Ye(s);if(a){const l=Ro(i);return t.concat(i,i.visualViewport||[],ir(s)?s:[],l&&n?ar(l):[])}return t.concat(s,ar(s,[],n))}function Ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oh(){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 nn=Math.min,De=Math.max,lr=Math.round,ds=Math.floor,bt=e=>({x:e,y:e}),Bh={left:"right",right:"left",bottom:"top",top:"bottom"},Ih={start:"end",end:"start"};function yc(e,t,n){return De(e,nn(t,n))}function An(e,t){return typeof e=="function"?e(t):e}function $t(e){return e.split("-")[0]}function cr(e){return e.split("-")[1]}function vc(e){return e==="x"?"y":"x"}function bc(e){return e==="y"?"height":"width"}const Hh=new Set(["top","bottom"]);function Lt(e){return Hh.has($t(e))?"y":"x"}function Cc(e){return vc(Lt(e))}function Wh(e,t,n){n===void 0&&(n=!1);const r=cr(e),s=Cc(e),a=bc(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=fs(i)),[i,fs(i)]}function Uh(e){const t=fs(e);return[_o(e),t,_o(t)]}function _o(e){return e.replace(/start|end/g,t=>Ih[t])}const wc=["left","right"],jc=["right","left"],Zh=["top","bottom"],zh=["bottom","top"];function Kh(e,t,n){switch(e){case"top":case"bottom":return n?t?jc:wc:t?wc:jc;case"left":case"right":return t?Zh:zh;default:return[]}}function Yh(e,t,n,r){const s=cr(e);let a=Kh($t(e),n==="start",r);return s&&(a=a.map(i=>i+"-"+s),t&&(a=a.concat(a.map(_o)))),a}function fs(e){return e.replace(/left|right|bottom|top/g,t=>Bh[t])}function Gh(e){return{top:0,right:0,bottom:0,left:0,...e}}function qh(e){return typeof e!="number"?Gh(e):{top:e,right:e,bottom:e,left:e}}function hs(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function kc(e,t,n){let{reference:r,floating:s}=e;const a=Lt(t),i=Cc(t),l=bc(i),c=$t(t),u=a==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[l]/2-s[l]/2;let g;switch(c){case"top":g={x:d,y:r.y-s.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-s.width,y:f};break;default:g={x:r.x,y:r.y}}switch(cr(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-1:1);break}return g}const Xh=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=kc(u,r,c),h=r,g={},m=0;for(let x=0;x<l.length;x++){const{name:v,fn:y}=l[x],{x:C,y:b,data:k,reset:E}=await y({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=C??d,f=b??f,g={...g,[v]:{...g[v],...k}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:d,y:f}=kc(u,h,c)),x=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:g}};async function ps(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=An(t,e),m=qh(g),v=l[h?f==="floating"?"reference":"floating":f],y=hs(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),C=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),k=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},E=hs(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:b,strategy:c}):C);return{top:(y.top-E.top+m.top)/k.y,bottom:(E.bottom-y.bottom+m.bottom)/k.y,left:(y.left-E.left+m.left)/k.x,right:(E.right-y.right+m.right)/k.x}}const Jh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:x=!0,...v}=An(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=$t(s),C=Lt(l),b=$t(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(b||!x?[fs(l)]:Uh(l)),j=m!=="none";!h&&j&&E.push(...Yh(l,x,m,k));const T=[l,...E],N=await ps(t,v),I=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&I.push(N[y]),f){const M=Wh(s,i,k);I.push(N[M[0]],N[M[1]])}if(F=[...F,{placement:s,overflows:I}],!I.every(M=>M<=0)){var $,z;const M=((($=a.flip)==null?void 0:$.index)||0)+1,_=T[M];if(_&&(!(f==="alignment"?C!==Lt(_):!1)||F.every(L=>Lt(L.placement)===C?L.overflows[0]>0:!0)))return{data:{index:M,overflows:F},reset:{placement:_}};let S=(z=F.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:z.placement;if(!S)switch(g){case"bestFit":{var Z;const P=(Z=F.filter(L=>{if(j){const O=Lt(L.placement);return O===C||O==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(O=>O>0).reduce((O,R)=>O+R,0)]).sort((L,O)=>L[1]-O[1])[0])==null?void 0:Z[0];P&&(S=P);break}case"initialPlacement":S=l;break}if(s!==S)return{reset:{placement:S}}}return{}}}},Qh=new Set(["left","top"]);async function e5(e,t){const{placement:n,platform:r,elements:s}=e,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=$t(n),l=cr(n),c=Lt(n)==="y",u=Qh.has(i)?-1:1,d=a&&c?-1:1,f=An(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),c?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const t5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:a,placement:i,middlewareData:l}=t,c=await e5(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:i}}}}},n5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:y,y:C}=v;return{x:y,y:C}}},...c}=An(e,t),u={x:n,y:r},d=await ps(t,c),f=Lt($t(s)),h=vc(f);let g=u[h],m=u[f];if(a){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",C=g+d[v],b=g-d[y];g=yc(C,g,b)}if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",C=m+d[v],b=m-d[y];m=yc(C,m,b)}const x=l.fn({...t,[h]:g,[f]:m});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:a,[f]:i}}}}}},r5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...u}=An(e,t),d=await ps(t,u),f=$t(s),h=cr(s),g=Lt(s)==="y",{width:m,height:x}=a.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,v=h==="end"?"top":"bottom");const C=x-d.top-d.bottom,b=m-d.left-d.right,k=nn(x-d[v],C),E=nn(m-d[y],b),j=!t.middlewareData.shift;let T=k,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=C),j&&!h){const F=De(d.left,0),$=De(d.right,0),z=De(d.top,0),Z=De(d.bottom,0);g?N=m-2*(F!==0||$!==0?F+$:De(d.left,d.right)):T=x-2*(z!==0||Z!==0?z+Z:De(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:T});const I=await i.getDimensions(l.floating);return m!==I.width||x!==I.height?{reset:{rects:!0}}:{}}}};function Ec(e){const t=ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=vt(e),a=s?e.offsetWidth:n,i=s?e.offsetHeight:r,l=lr(n)!==a||lr(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Fo(e){return Me(e)?e:e.contextElement}function Rn(e){const t=Fo(e);if(!vt(t))return bt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:a}=Ec(t);let i=(a?lr(n.width):n.width)/r,l=(a?lr(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const s5=bt(0);function Sc(e){const t=Ye(e);return!Ao()||!t.visualViewport?s5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function rn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=Fo(e);let i=bt(1);t&&(r?Me(r)&&(i=Rn(r)):i=Rn(e));const l=o5(a,n,r)?Sc(a):bt(0);let c=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(a){const h=Ye(a),g=r&&Me(r)?Ye(r):r;let m=h,x=Ro(m);for(;x&&r&&g!==m;){const v=Rn(x),y=x.getBoundingClientRect(),C=ct(x),b=y.left+(x.clientLeft+parseFloat(C.paddingLeft))*v.x,k=y.top+(x.clientTop+parseFloat(C.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,f*=v.y,c+=b,u+=k,m=Ye(x),x=Ro(m)}}return hs({width:d,height:f,x:c,y:u})}function ms(e,t){const n=us(e).scrollLeft;return t?t.left+n:rn(yt(e)).left+n}function Lc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ms(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function i5(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const a=s==="fixed",i=yt(r),l=t?cs(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=bt(1);const d=bt(0),f=vt(r);if((f||!f&&!a)&&((Nn(r)!=="body"||ir(i))&&(c=us(r)),vt(r))){const g=rn(r);u=Rn(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=i&&!f&&!a?Lc(i,c):bt(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 a5(e){return Array.from(e.getClientRects())}function l5(e){const t=yt(e),n=us(e),r=e.ownerDocument.body,s=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ms(e);const l=-n.scrollTop;return ct(r).direction==="rtl"&&(i+=De(t.clientWidth,r.clientWidth)-s),{width:s,height:a,x:i,y:l}}const Tc=25;function c5(e,t){const n=Ye(e),r=yt(e),s=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(s){a=s.width,i=s.height;const d=Ao();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}const u=ms(r);if(u<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-g);m<=Tc&&(a-=m)}else u<=Tc&&(a+=u);return{width:a,height:i,x:l,y:c}}const u5=new Set(["absolute","fixed"]);function d5(e,t){const n=rn(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,a=vt(e)?Rn(e):bt(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=s*a.x,u=r*a.y;return{width:i,height:l,x:c,y:u}}function Mc(e,t,n){let r;if(t==="viewport")r=c5(e,n);else if(t==="document")r=l5(yt(e));else if(Me(t))r=d5(t,n);else{const s=Sc(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return hs(r)}function Dc(e,t){const n=Vt(e);return n===t||!Me(n)||Pn(n)?!1:ct(n).position==="fixed"||Dc(n,t)}function f5(e,t){const n=t.get(e);if(n)return n;let r=ar(e,[],!1).filter(l=>Me(l)&&Nn(l)!=="body"),s=null;const a=ct(e).position==="fixed";let i=a?Vt(e):e;for(;Me(i)&&!Pn(i);){const l=ct(i),c=Po(i);!c&&l.position==="fixed"&&(s=null),(a?!c&&!s:!c&&l.position==="static"&&!!s&&u5.has(s.position)||ir(i)&&!c&&Dc(e,i))?r=r.filter(d=>d!==i):s=l,i=Vt(i)}return t.set(e,r),r}function h5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?cs(t)?[]:f5(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,d)=>{const f=Mc(t,d,s);return u.top=De(f.top,u.top),u.right=nn(f.right,u.right),u.bottom=nn(f.bottom,u.bottom),u.left=De(f.left,u.left),u},Mc(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function p5(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function m5(e,t,n){const r=vt(t),s=yt(t),a=n==="fixed",i=rn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=bt(0);function u(){c.x=ms(s)}if(r||!r&&!a)if((Nn(t)!=="body"||ir(s))&&(l=us(t)),r){const g=rn(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else s&&u();a&&!r&&s&&u();const d=s&&!r&&!a?Lc(s,l):bt(0),f=i.left+l.scrollLeft-c.x-d.x,h=i.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function Vo(e){return ct(e).position==="static"}function Nc(e,t){if(!vt(e)||ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yt(e)===n&&(n=n.ownerDocument.body),n}function Pc(e,t){const n=Ye(e);if(cs(e))return n;if(!vt(e)){let s=Vt(e);for(;s&&!Pn(s);){if(Me(s)&&!Vo(s))return s;s=Vt(s)}return n}let r=Nc(e,t);for(;r&&Ph(r)&&Vo(r);)r=Nc(r,t);return r&&Pn(r)&&Vo(r)&&!Po(r)?n:r||Vh(e)||n}const g5=async function(e){const t=this.getOffsetParent||Pc,n=this.getDimensions,r=await n(e.floating);return{reference:m5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x5(e){return ct(e).direction==="rtl"}const y5={convertOffsetParentRelativeRectToViewportRelativeRect:i5,getDocumentElement:yt,getClippingRect:h5,getOffsetParent:Pc,getElementRects:g5,getClientRects:a5,getDimensions:p5,getScale:Rn,isElement:Me,isRTL:x5};function Ac(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function v5(e,t){let n=null,r;const s=yt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:g}=u;if(l||t(),!h||!g)return;const m=ds(f),x=ds(s.clientWidth-(d+h)),v=ds(s.clientHeight-(f+g)),y=ds(d),b={rootMargin:-m+"px "+-x+"px "+-v+"px "+-y+"px",threshold:De(0,nn(1,c))||1};let k=!0;function E(j){const T=j[0].intersectionRatio;if(T!==c){if(!k)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Ac(u,e.getBoundingClientRect())&&i(),k=!1}try{n=new IntersectionObserver(E,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return i(!0),a}function b5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Fo(e),d=s||a?[...u?ar(u):[],...ar(t)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&l?v5(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(y=>{let[C]=y;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let m,x=c?rn(e):null;c&&v();function v(){const y=rn(e);x&&!Ac(x,y)&&n(),x=y,m=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(C=>{s&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),f?.(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const $o=ps,C5=t5,w5=n5,j5=Jh,k5=r5,E5=(e,t,n)=>{const r=new Map,s={platform:y5,...n},a={...s.platform,_c:r};return Xh(e,t,{...s,platform:a})};var S5=typeof document<"u",L5=function(){},gs=S5?p.useLayoutEffect:L5;function xs(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,s;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(!xs(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&e.$$typeof)&&!xs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Rc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _c(e,t){const n=Rc(e);return Math.round(t*n)/n}function Oo(e){const t=K.useRef(e);return gs(()=>{t.current=e}),t}function T5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=K.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=K.useState(r);xs(h,r)||g(r);const[m,x]=K.useState(null),[v,y]=K.useState(null),C=K.useCallback(L=>{L!==j.current&&(j.current=L,x(L))},[]),b=K.useCallback(L=>{L!==T.current&&(T.current=L,y(L))},[]),k=a||m,E=i||v,j=K.useRef(null),T=K.useRef(null),N=K.useRef(d),I=c!=null,F=Oo(c),$=Oo(s),z=Oo(u),Z=K.useCallback(()=>{if(!j.current||!T.current)return;const L={placement:t,strategy:n,middleware:h};$.current&&(L.platform=$.current),E5(j.current,T.current,L).then(O=>{const R={...O,isPositioned:z.current!==!1};M.current&&!xs(N.current,R)&&(N.current=R,Vr.flushSync(()=>{f(R)}))})},[h,t,n,$,z]);gs(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[u]);const M=K.useRef(!1);gs(()=>(M.current=!0,()=>{M.current=!1}),[]),gs(()=>{if(k&&(j.current=k),E&&(T.current=E),k&&E){if(F.current)return F.current(k,E,Z);Z()}},[k,E,Z,F,I]);const _=K.useMemo(()=>({reference:j,floating:T,setReference:C,setFloating:b}),[C,b]),S=K.useMemo(()=>({reference:k,floating:E}),[k,E]),P=K.useMemo(()=>{const L={position:n,left:0,top:0};if(!S.floating)return L;const O=_c(S.floating,d.x),R=_c(S.floating,d.y);return l?{...L,transform:"translate("+O+"px, "+R+"px)",...Rc(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:R}},[n,l,S.floating,d.x,d.y]);return K.useMemo(()=>({...d,update:Z,refs:_,elements:S,floatingStyles:P}),[d,Z,_,S,P])}const Fc=(e,t)=>({...C5(e),options:[e,t]}),M5=(e,t)=>({...w5(e),options:[e,t]}),D5=(e,t)=>({...j5(e),options:[e,t]}),N5=(e,t)=>({...k5(e),options:[e,t]}),Vc={...K},P5=Vc.useInsertionEffect,A5=P5||(e=>e());function $c(e){const t=K.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return A5(()=>{t.current=e}),K.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}var Bo=typeof document<"u"?p.useLayoutEffect:p.useEffect;let Oc=!1,R5=0;const Bc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+R5++;function _5(){const[e,t]=K.useState(()=>Oc?Bc():void 0);return Bo(()=>{e==null&&t(Bc())},[]),K.useEffect(()=>{Oc=!0},[]),e}const F5=Vc.useId,V5=F5||_5;let ur;process.env.NODE_ENV!=="production"&&(ur=new Set);function $5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=ur)!=null&&e.has(s))){var a;(a=ur)==null||a.add(s),console.warn(s)}}function O5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=ur)!=null&&e.has(s))){var a;(a=ur)==null||a.add(s),console.error(s)}}function B5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(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(s=>s!==n))||[])}}}const I5=K.createContext(null),H5=K.createContext(null),W5=()=>{var e;return((e=K.useContext(I5))==null?void 0:e.id)||null},U5=()=>K.useContext(H5),Z5="data-floating-ui-focusable";function z5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=V5(),a=K.useRef({}),[i]=K.useState(()=>B5()),l=W5()!=null;if(process.env.NODE_ENV!=="production"){const g=r.reference;g&&!Me(g)&&O5("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]=K.useState(r.reference),d=$c((g,m,x)=>{a.current.openEvent=g?m:void 0,i.emit("openchange",{open:g,event:m,reason:x,nested:l}),n?.(g,m,x)}),f=K.useMemo(()=>({setPositionReference:u}),[]),h=K.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return K.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:h,events:i,floatingId:s,refs:f}),[t,d,h,i,s,f])}function K5(e){e===void 0&&(e={});const{nodeId:t}=e,n=z5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[a,i]=K.useState(null),[l,c]=K.useState(null),d=s?.domReference||a,f=K.useRef(null),h=U5();Bo(()=>{d&&(f.current=d)},[d]);const g=T5({...e,elements:{...s,...l&&{reference:l}}}),m=K.useCallback(b=>{const k=Me(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;c(k),g.refs.setReference(k)},[g.refs]),x=K.useCallback(b=>{(Me(b)||b===null)&&(f.current=b,i(b)),(Me(g.refs.reference.current)||g.refs.reference.current===null||b!==null&&!Me(b))&&g.refs.setReference(b)},[g.refs]),v=K.useMemo(()=>({...g.refs,setReference:x,setPositionReference:m,domReference:f}),[g.refs,x,m]),y=K.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),C=K.useMemo(()=>({...g,...r,refs:v,elements:y,nodeId:t}),[g,v,y,t,r]);return Bo(()=>{r.dataRef.current.floatingContext=C;const b=h?.nodesRef.current.find(k=>k.id===t);b&&(b.context=C)}),K.useMemo(()=>({...g,context:C,refs:v,elements:y}),[g,v,y,C])}const Ic="active",Hc="selected";function Io(e,t,n){const r=new Map,s=n==="item";let a=e;if(s&&e){const{[Ic]:i,[Hc]:l,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1,[Z5]:""},...a,...t.map(i=>{const l=i?i[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((i,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(s&&[Ic,Hc].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,g=arguments.length,m=new Array(g),x=0;x<g;x++)m[x]=arguments[x];return(h=r.get(u))==null?void 0:h.map(v=>v(...m)).find(v=>v!==void 0)}}}else i[u]=d}),i),{})}}function Y5(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),s=K.useCallback(l=>Io(l,e,"reference"),t),a=K.useCallback(l=>Io(l,e,"floating"),n),i=K.useCallback(l=>Io(l,e,"item"),r);return K.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:i}),[s,a,i])}function Wc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const G5=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:s,offset:a=0,index:i=0,minItemsVisible:l=4,referenceOverflowThreshold:c=0,scrollRef:u,...d}=An(e,t),{rects:f,elements:{floating:h}}=t,g=n.current[i],m=u?.current||h,x=h.clientTop||m.clientTop,v=h.clientTop!==0,y=m.clientTop!==0,C=h===m;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||$5('`placement` side must be "bottom" when using the `inner`',"middleware.")),!g)return{};const b={...t,...await Fc(-g.offsetTop-h.clientTop-f.reference.height/2-g.offsetHeight/2-a).fn(t)},k=await $o(Wc(b,m.scrollHeight+x+h.clientTop),d),E=await $o(b,{...d,elementContext:"reference"}),j=De(0,k.top),T=b.y+j,F=(m.scrollHeight>m.clientHeight?$=>$:lr)(De(0,m.scrollHeight+(v&&C||y?x*2:0)-j-De(0,k.bottom)));if(m.style.maxHeight=F+"px",m.scrollTop=j,s){const $=m.offsetHeight<g.offsetHeight*nn(l,n.current.length)-1||E.top>=-c||E.bottom>=-c;Vr.flushSync(()=>s($))}return r&&(r.current=await $o(Wc({...b,y:T},m.offsetHeight+x+h.clientTop),d)),{y:T}}});function q5(e,t){const{open:n,elements:r}=e,{enabled:s=!0,overflowRef:a,scrollRef:i,onChange:l}=t,c=$c(l),u=K.useRef(!1),d=K.useRef(null),f=K.useRef(null);K.useEffect(()=>{if(!s)return;function g(x){if(x.ctrlKey||!m||a.current==null)return;const v=x.deltaY,y=a.current.top>=-.5,C=a.current.bottom>=-.5,b=m.scrollHeight-m.clientHeight,k=v<0?-1:1,E=v<0?"max":"min";m.scrollHeight<=m.clientHeight||(!y&&v>0||!C&&v<0?(x.preventDefault(),Vr.flushSync(()=>{c(j=>j+Math[E](v,b*k))})):/firefox/i.test(Oh())&&(m.scrollTop+=v))}const m=i?.current||r.floating;if(n&&m)return m.addEventListener("wheel",g),requestAnimationFrame(()=>{d.current=m.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{d.current=null,f.current=null,m.removeEventListener("wheel",g)}},[s,n,r.floating,a,i,c]);const h=K.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const g=i?.current||r.floating;if(!(!a.current||!g||!u.current)){if(d.current!==null){const m=g.scrollTop-d.current;(a.current.bottom<-.5&&m<-1||a.current.top<-.5&&m>1)&&Vr.flushSync(()=>c(x=>x+m))}requestAnimationFrame(()=>{d.current=g.scrollTop})}}}),[r.floating,c,a,i]);return K.useMemo(()=>s?{floating:h}:{},[s,h])}let dr=p.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});dr.displayName="FloatingContext";let Ho=p.createContext(null);Ho.displayName="PlacementContext";function X5(e){return p.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function J5(){return p.useContext(dr).setReference}function Q5(){let{getFloatingProps:e,slot:t}=p.useContext(dr);return p.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function e6(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=p.useContext(Ho),n=p.useMemo(()=>e,[JSON.stringify(e,(s,a)=>{var i;return(i=a?.outerHTML)!=null?i:a})]);Ae(()=>{t?.(n??null)},[t,n]);let r=p.useContext(dr);return p.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Uc=4;function t6({children:e,enabled:t=!0}){let[n,r]=p.useState(null),[s,a]=p.useState(0),i=p.useRef(null),[l,c]=p.useState(null);n6(l);let u=t&&n!==null&&l!==null,{to:d="bottom",gap:f=0,offset:h=0,padding:g=0,inner:m}=r6(n,l),[x,v="center"]=d.split(" ");Ae(()=>{u&&a(0)},[u]);let{refs:y,floatingStyles:C,context:b}=K5({open:u,placement:x==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${x}`:`${x}-${v}`,strategy:"absolute",transform:!1,middleware:[Fc({mainAxis:x==="selection"?0:f,crossAxis:h}),M5({padding:g}),x!=="selection"&&D5({padding:g}),x==="selection"&&m?G5({...m,padding:g,overflowRef:i,offset:s,minItemsVisible:Uc,referenceOverflowThreshold:g,onFallbackChange($){var z,Z;if(!$)return;let M=b.elements.floating;if(!M)return;let _=parseFloat(getComputedStyle(M).scrollPaddingBottom)||0,S=Math.min(Uc,M.childElementCount),P=0,L=0;for(let O of(Z=(z=b.elements.floating)==null?void 0:z.childNodes)!=null?Z:[])if(St(O)){let R=O.offsetTop,U=R+O.clientHeight+_,Y=M.scrollTop,B=Y+M.clientHeight;if(R>=Y&&U<=B)S--;else{L=Math.max(0,Math.min(U,B)-Math.max(R,Y)),P=O.clientHeight;break}}S>=1&&a(O=>{let R=P*S-L+_;return O>=R?O:R})}}):null,N5({padding:g,apply({availableWidth:$,availableHeight:z,elements:Z}){Object.assign(Z.floating.style,{overflow:"auto",maxWidth:`${$}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${z}px)`})}})].filter(Boolean),whileElementsMounted:b5}),[k=x,E=v]=b.placement.split("-");x==="selection"&&(k="selection");let j=p.useMemo(()=>({anchor:[k,E].filter(Boolean).join(" ")}),[k,E]),T=q5(b,{overflowRef:i,onChange:a}),{getReferenceProps:N,getFloatingProps:I}=Y5([T]),F=oe($=>{c($),y.setFloating($)});return K.createElement(Ho.Provider,{value:r},K.createElement(dr.Provider,{value:{setFloating:F,setReference:y.setReference,styles:C,getReferenceProps:N,getFloatingProps:I,slot:j}},e))}function n6(e){Ae(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let s=parseInt(n);isNaN(s)||r!==s&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function r6(e,t){var n,r,s;let a=Wo((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),i=Wo((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Wo((s=e?.padding)!=null?s:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:i,padding:l}}function Wo(e,t,n=void 0){let r=rs(),s=oe((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=zc(c,u);return[d,f=>{let h=Zc(c);{let g=h.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let x=!1;for(let[y,C]of h.entries()){let b=window.getComputedStyle(u).getPropertyValue(C);if(g[y]!==b){g[y]=b,x=!0;break}}if(!x)return;let v=zc(c,u);d!==v&&(f(v),d=v)})}return r.dispose}]}return[n,null]}),a=p.useMemo(()=>s(e,t)[0],[e,t]),[i=a,l]=p.useState();return Ae(()=>{let[c,u]=s(e,t);if(l(c),!!u)return u(l)},[e,t]),i}function Zc(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(),s=t[1].slice(n+1).trim();return s?[r,...Zc(s)]:[r]}return[]}function zc(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 ys=p.createContext(null);ys.displayName="OpenClosedContext";var sn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(sn||{});function Kc(){return p.useContext(ys)}function s6({value:e,children:t}){return p.createElement(ys.Provider,{value:e},t)}function o6({children:e}){return p.createElement(ys.Provider,{value:null},e)}function Yc(e){let t=oe(e),n=p.useRef(!1);p.useEffect(()=>(n.current=!1,()=>{n.current=!0,wo(()=>{n.current&&t()})}),[t])}let i6=p.createContext(!1);function a6(){return p.useContext(i6)}function l6(e){let t=a6(),n=p.useContext(qc),[r,s]=p.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(Gt.isServer)return null;let i=e?.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let l=e.createElement("div");return l.setAttribute("id","headlessui-portal-root"),e.body.appendChild(l)});return p.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),p.useEffect(()=>{t||n!==null&&s(n.current)},[n,s,t]),r}let Gc=p.Fragment,c6=_e(function(e,t){let{ownerDocument:n=null,...r}=e,s=p.useRef(null),a=He(Zl(h=>{s.current=h}),t),i=No(s.current),l=n??i,c=l6(l),u=p.useContext(Uo),d=rs(),f=Ie();return Yc(()=>{var h;c&&c.childNodes.length<=0&&((h=c.parentElement)==null||h.removeChild(c))}),c?Ks.createPortal(p.createElement("div",{"data-headlessui-portal":"",ref:h=>{d.dispose(),u&&h&&d.add(u.register(h))}},f({ourProps:{ref:a},theirProps:r,slot:{},defaultTag:Gc,name:"Portal"})),c):null});function u6(e,t){let n=He(t),{enabled:r=!0,ownerDocument:s,...a}=e,i=Ie();return r?p.createElement(c6,{...a,ownerDocument:s,ref:n}):i({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:Gc,name:"Portal"})}let d6=p.Fragment,qc=p.createContext(null);function f6(e,t){let{target:n,...r}=e,s={ref:He(t)},a=Ie();return p.createElement(qc.Provider,{value:n},a({ourProps:s,theirProps:r,defaultTag:d6,name:"Popover.Group"}))}let Uo=p.createContext(null);function h6(){let e=p.useContext(Uo),t=p.useRef([]),n=oe(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=oe(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),s=p.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,p.useMemo(()=>function({children:a}){return p.createElement(Uo.Provider,{value:s},a)},[s])]}let p6=_e(u6),m6=_e(f6),g6=Object.assign(p6,{Group:m6});function x6({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=oe(()=>{var s,a;let i=En(n),l=[];for(let c of e)c!==null&&(Qt(c)?l.push(c):"current"in c&&Qt(c.current)&&l.push(c.current));if(t!=null&&t.current)for(let c of t.current)l.push(c);for(let c of(s=i?.querySelectorAll("html > *, body > *"))!=null?s:[])c!==document.body&&c!==document.head&&Qt(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((a=n?.getRootNode())==null?void 0:a.host))||l.some(u=>c.contains(u))||l.push(c));return l});return{resolveContainers:r,contains:oe(s=>r().some(a=>a.contains(s)))}}let Xc=p.createContext(null);function Jc({children:e,node:t}){let[n,r]=p.useState(null),s=Qc(t??n);return p.createElement(Xc.Provider,{value:s},e,s===null&&p.createElement(Tn,{features:Ln.Hidden,ref:a=>{var i,l;if(a){for(let c of(l=(i=En(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?l:[])if(c!==document.body&&c!==document.head&&Qt(c)&&c!=null&&c.contains(a)){r(c);break}}}}))}function Qc(e=null){var t;return(t=p.useContext(Xc))!=null?t:e}function y6(){let e=p.useRef(!1);return Ae(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Tt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Tt||{});function e1(){let e=p.useRef(0);return ac(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}var v6=Object.defineProperty,b6=(e,t,n)=>t in e?v6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t1=(e,t,n)=>(b6(e,typeof t!="symbol"?t+"":t,n),n),be=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(be||{}),C6=(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))(C6||{});let w6={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 Sa extends Xl{constructor(t){super(t),t1(this,"actions",{close:()=>this.send({type:1}),refocusableClose:n=>{this.actions.close();let r=(()=>n?St(n)?n:"current"in n&&St(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})}),t1(this,"selectors",{isPortalled:n=>{var r;if(!n.button||!n.panel)return!1;let s=(r=En(n.button))!=null?r:document;for(let f of s.querySelectorAll("body > *"))if(Number(f?.contains(n.button))^Number(f?.contains(n.panel)))return!0;let a=is(s),i=a.indexOf(n.button),l=(i+a.length-1)%a.length,c=(i+1)%a.length,u=a[l],d=a[c];return!n.panel.contains(u)&&!n.panel.contains(d)}});{let n=this.state.id,r=tc.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 Sa({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 Re(n.type,w6,t,n)}}const n1=p.createContext(null);function vs(e){let t=p.useContext(n1);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vs),n}return t}function j6({id:e,__demoMode:t=!1}){let n=p.useMemo(()=>Sa.new({id:e,__demoMode:t}),[]);return Yc(()=>n.dispose()),n}let Zo=p.createContext(null);Zo.displayName="PopoverGroupContext";function r1(){return p.useContext(Zo)}let bs=p.createContext(null);bs.displayName="PopoverPanelContext";function k6(){return p.useContext(bs)}let E6="div";function S6(e,t){var n;let r=p.useId(),{__demoMode:s=!1,...a}=e,i=j6({id:r,__demoMode:s}),l=p.useRef(null),c=He(t,Zl(M=>{l.current=M})),[u,d,f,h,g]=en(i,p.useCallback(M=>[M.popoverState,M.button,M.panel,M.buttonId,M.panelId],[])),m=mh((n=l.current)!=null?n:d),x=Xe(h),v=Xe(g),y=p.useMemo(()=>({buttonId:x,panelId:v,close:i.actions.close}),[x,v,i]),C=r1(),b=C?.registerPopover,k=oe(()=>{var M,_;let S=Xt((M=l.current)!=null?M:d);return(_=C?.isFocusWithinPopoverGroup())!=null?_:S&&(d?.contains(S)||f?.contains(S))});p.useEffect(()=>b?.(y),[b,y]);let[E,j]=h6(),T=Qc(d),N=x6({mainTreeNode:T,portals:E,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});gh(m,"focus",M=>{var _,S,P,L,O,R;M.target!==window&&Mn(M.target)&&i.state.popoverState===be.Open&&(k()||i.state.button&&i.state.panel&&(N.contains(M.target)||(S=(_=i.state.beforePanelSentinel.current)==null?void 0:_.contains)!=null&&S.call(_,M.target)||(L=(P=i.state.afterPanelSentinel.current)==null?void 0:P.contains)!=null&&L.call(P,M.target)||(R=(O=i.state.afterButtonSentinel.current)==null?void 0:O.contains)!=null&&R.call(O,M.target)||i.actions.close()))},!0);let I=u===be.Open;ph(I,N.resolveContainers,(M,_)=>{i.actions.close(),sc(_,Do.Loose)||(M.preventDefault(),d?.focus())});let F=gt({open:u===be.Open,close:i.actions.refocusableClose}),$=en(i,p.useCallback(M=>Re(M.popoverState,{[be.Open]:sn.Open,[be.Closed]:sn.Closed}),[])),z={ref:c},Z=Ie();return p.createElement(Jc,{node:T},p.createElement(t6,null,p.createElement(bs.Provider,{value:null},p.createElement(n1.Provider,{value:i},p.createElement(zl,{value:i.actions.refocusableClose},p.createElement(s6,{value:$},p.createElement(j,null,Z({ourProps:z,theirProps:a,slot:F,defaultTag:E6,name:"Popover"}))))))))}let L6="button";function T6(e,t){let n=p.useId(),{id:r=`headlessui-popover-button-${n}`,disabled:s=!1,autoFocus:a=!1,...i}=e,l=vs("Popover.Button"),[c,u,d,f,h,g,m]=en(l,p.useCallback(A=>[A.popoverState,l.selectors.isPortalled(A),A.button,A.buttonId,A.panel,A.panelId,A.afterButtonSentinel],[])),x=p.useRef(null),v=`headlessui-focus-sentinel-${p.useId()}`,y=r1(),C=y?.closeOthers,b=k6()!==null;p.useEffect(()=>{if(!b)return l.actions.setButtonId(r),()=>l.actions.setButtonId(null)},[b,r,l]);let[k]=p.useState(()=>Symbol()),E=He(x,t,J5(),oe(A=>{if(!b){if(A)l.state.buttons.current.push(k);else{let H=l.state.buttons.current.indexOf(k);H!==-1&&l.state.buttons.current.splice(H,1)}l.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),A&&l.actions.setButton(A)}})),j=He(x,t),T=oe(A=>{var H,Q,ne;if(b){if(l.state.popoverState===be.Closed)return;switch(A.key){case ke.Space:case ke.Enter:A.preventDefault(),(Q=(H=A.target).click)==null||Q.call(H),l.actions.close(),(ne=l.state.button)==null||ne.focus();break}}else switch(A.key){case ke.Space:case ke.Enter:A.preventDefault(),A.stopPropagation(),l.state.popoverState===be.Closed?(C?.(l.state.buttonId),l.actions.open()):l.actions.close();break;case ke.Escape:if(l.state.popoverState!==be.Open)return C?.(l.state.buttonId);if(!x.current)return;let G=Xt(x.current);if(G&&!x.current.contains(G))return;A.preventDefault(),A.stopPropagation(),l.actions.close();break}}),N=oe(A=>{b||A.key===ke.Space&&A.preventDefault()}),I=oe(A=>{var H,Q;Wl(A.currentTarget)||s||(b?(l.actions.close(),(H=l.state.button)==null||H.focus()):(A.preventDefault(),A.stopPropagation(),l.state.popoverState===be.Closed?(C?.(l.state.buttonId),l.actions.open()):l.actions.close(),(Q=l.state.button)==null||Q.focus()))}),F=oe(A=>{A.preventDefault(),A.stopPropagation()}),{isFocusVisible:$,focusProps:z}=bo({autoFocus:a}),{isHovered:Z,hoverProps:M}=$l({isDisabled:s}),{pressed:_,pressProps:S}=Ol({disabled:s}),P=c===be.Open,L=gt({open:P,active:_||P,disabled:s,hover:Z,focus:$,autofocus:a}),O=cc(e,d),R=rr(b?{ref:j,type:O,onKeyDown:T,onClick:I,disabled:s||void 0,autoFocus:a}:{ref:E,id:f,type:O,"aria-expanded":c===be.Open,"aria-controls":h?g:void 0,disabled:s||void 0,autoFocus:a,onKeyDown:T,onKeyUp:N,onClick:I,onMouseDown:F},z,M,S),U=e1(),Y=oe(()=>{if(!St(l.state.panel))return;let A=l.state.panel;function H(){Re(U.current,{[Tt.Forwards]:()=>Ke(A,we.First),[Tt.Backwards]:()=>Ke(A,we.Last)})===Ft.Error&&Ke(is(qt(l.state.button)).filter(Q=>Q.dataset.headlessuiFocusGuard!=="true"),Re(U.current,{[Tt.Forwards]:we.Next,[Tt.Backwards]:we.Previous}),{relativeTo:l.state.button})}H()}),B=Ie();return p.createElement(p.Fragment,null,B({ourProps:R,theirProps:i,slot:L,defaultTag:L6,name:"Popover.Button"}),P&&!b&&u&&p.createElement(Tn,{id:v,ref:m,features:Ln.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Y}))}let M6="div",D6=Jt.RenderStrategy|Jt.Static;function s1(e,t){let n=p.useId(),{id:r=`headlessui-popover-backdrop-${n}`,transition:s=!1,...a}=e,i=vs("Popover.Backdrop"),l=en(i,p.useCallback(y=>y.popoverState,[])),[c,u]=p.useState(null),d=He(t,u),f=Kc(),[h,g]=pc(s,c,f!==null?(f&sn.Open)===sn.Open:l===be.Open),m=oe(y=>{if(Wl(y.currentTarget))return y.preventDefault();i.actions.close()}),x=gt({open:l===be.Open}),v={ref:d,id:r,"aria-hidden":!0,onClick:m,...hc(g)};return Ie()({ourProps:v,theirProps:a,slot:x,defaultTag:M6,features:D6,visible:h,name:"Popover.Backdrop"})}let N6="div",P6=Jt.RenderStrategy|Jt.Static;function A6(e,t){let n=p.useId(),{id:r=`headlessui-popover-panel-${n}`,focus:s=!1,anchor:a,portal:i=!1,modal:l=!1,transition:c=!1,...u}=e,d=vs("Popover.Panel"),f=en(d,d.selectors.isPortalled),[h,g,m,x,v]=en(d,p.useCallback(B=>[B.popoverState,B.button,B.__demoMode,B.beforePanelSentinel,B.afterPanelSentinel],[])),y=`headlessui-focus-sentinel-before-${n}`,C=`headlessui-focus-sentinel-after-${n}`,b=p.useRef(null),k=X5(a),[E,j]=e6(k),T=Q5();k&&(i=!0);let[N,I]=p.useState(null),F=He(b,t,k?E:null,d.actions.setPanel,I),$=No(g),z=No(b.current);Ae(()=>(d.actions.setPanelId(r),()=>d.actions.setPanelId(null)),[r,d]);let Z=Kc(),[M,_]=pc(c,N,Z!==null?(Z&sn.Open)===sn.Open:h===be.Open);ih(M,g,d.actions.close),jh(m?!1:l&&M,z);let S=oe(B=>{var A;switch(B.key){case ke.Escape:if(d.state.popoverState!==be.Open||!b.current)return;let H=Xt(b.current);if(H&&!b.current.contains(H))return;B.preventDefault(),B.stopPropagation(),d.actions.close(),(A=d.state.button)==null||A.focus();break}});p.useEffect(()=>{var B;e.static||h===be.Closed&&((B=e.unmount)==null||B)&&d.actions.setPanel(null)},[h,e.unmount,e.static,d]),p.useEffect(()=>{if(m||!s||h!==be.Open||!b.current)return;let B=Xt(b.current);b.current.contains(B)||Ke(b.current,we.First)},[m,s,b.current,h]);let P=gt({open:h===be.Open,close:d.actions.refocusableClose}),L=rr(k?T():{},{ref:F,id:r,onKeyDown:S,onBlur:s&&h===be.Open?B=>{var A,H,Q,ne,G;let ie=B.relatedTarget;ie&&b.current&&((A=b.current)!=null&&A.contains(ie)||(d.actions.close(),((Q=(H=x.current)==null?void 0:H.contains)!=null&&Q.call(H,ie)||(G=(ne=v.current)==null?void 0:ne.contains)!=null&&G.call(ne,ie))&&ie.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...j,"--button-width":z3(M,g,!0).width},...hc(_)}),O=e1(),R=oe(()=>{let B=b.current;if(!B)return;function A(){Re(O.current,{[Tt.Forwards]:()=>{var H;Ke(B,we.First)===Ft.Error&&((H=d.state.afterPanelSentinel.current)==null||H.focus())},[Tt.Backwards]:()=>{var H;(H=d.state.button)==null||H.focus({preventScroll:!0})}})}A()}),U=oe(()=>{let B=b.current;if(!B)return;function A(){Re(O.current,{[Tt.Forwards]:()=>{var H;if(!d.state.button)return;let Q=(H=qt(d.state.button))!=null?H:document.body,ne=is(Q),G=ne.indexOf(d.state.button),ie=ne.slice(0,G+1),se=[...ne.slice(G+1),...ie];for(let le of se.slice())if(le.dataset.headlessuiFocusGuard==="true"||N!=null&&N.contains(le)){let J=se.indexOf(le);J!==-1&&se.splice(J,1)}Ke(se,we.First,{sorted:!1})},[Tt.Backwards]:()=>{var H;Ke(B,we.Previous)===Ft.Error&&((H=d.state.button)==null||H.focus())}})}A()}),Y=Ie();return p.createElement(o6,null,p.createElement(bs.Provider,{value:r},p.createElement(zl,{value:d.actions.refocusableClose},p.createElement(g6,{enabled:i?e.static||M:!1,ownerDocument:$},M&&f&&p.createElement(Tn,{id:y,ref:x,features:Ln.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:R}),Y({ourProps:L,theirProps:u,slot:P,defaultTag:N6,features:P6,visible:M,name:"Popover.Panel"}),M&&f&&p.createElement(Tn,{id:C,ref:v,features:Ln.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:U})))))}let R6="div";function _6(e,t){let n=p.useRef(null),r=He(n,t),[s,a]=p.useState([]),i=oe(x=>{a(v=>{let y=v.indexOf(x);if(y!==-1){let C=v.slice();return C.splice(y,1),C}return v})}),l=oe(x=>(a(v=>[...v,x]),()=>i(x))),c=oe(()=>{var x;let v=qt(n.current);if(!v)return!1;let y=Xt(n.current);return(x=n.current)!=null&&x.contains(y)?!0:s.some(C=>{var b,k;return((b=v.getElementById(C.buttonId.current))==null?void 0:b.contains(y))||((k=v.getElementById(C.panelId.current))==null?void 0:k.contains(y))})}),u=oe(x=>{for(let v of s)v.buttonId.current!==x&&v.close()}),d=p.useMemo(()=>({registerPopover:l,unregisterPopover:i,isFocusWithinPopoverGroup:c,closeOthers:u}),[l,i,c,u]),f=gt({}),h=e,g={ref:r},m=Ie();return p.createElement(Jc,null,p.createElement(Zo.Provider,{value:d},m({ourProps:g,theirProps:h,slot:f,defaultTag:R6,name:"Popover.Group"})))}let F6=_e(S6),o1=_e(T6),V6=_e(s1),$6=_e(s1),i1=_e(A6),O6=_e(_6),B6=Object.assign(F6,{Button:o1,Backdrop:$6,Overlay:V6,Panel:i1,Group:O6});function I6({onFocus:e}){let[t,n]=p.useState(!0),r=y6();return t?p.createElement(Tn,{as:"button",type:"button",features:Ln.Focusable,onFocus:s=>{s.preventDefault();let a,i=50;function l(){if(i--<=0){a&&cancelAnimationFrame(a);return}if(e()){if(cancelAnimationFrame(a),!r.current)return;n(!1);return}a=requestAnimationFrame(l)}a=requestAnimationFrame(l)}}):null}const a1=K.createContext(null);function H6(){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 s=(n=r.get(t))!=null?n:0;r.set(t,s+1);let a=Array.from(r.keys()).indexOf(t);function i(){let l=r.get(t);l>1?r.set(t,l-1):r.delete(t)}return[a,i]}}}function W6({children:e}){let t=K.useRef(H6());return K.createElement(a1.Provider,{value:t},e)}function l1(e){let t=K.useContext(a1);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=K.useId(),[r,s]=t.current.get(e,n);return K.useEffect(()=>s,[]),r}var U6=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(U6||{}),Z6=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Z6||{}),z6=(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))(z6||{});let K6={0(e,t){var n;let r=Dn(e.tabs,d=>d.current),s=Dn(e.panels,d=>d.current),a=r.filter(d=>{var f;return!((f=d.current)!=null&&f.hasAttribute("disabled"))}),i={...e,tabs:r,panels:s};if(t.index<0||t.index>r.length-1){let d=Re(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Re(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(a.length===0)return i;let f=Re(d,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:f===-1?e.selectedIndex:f}}let l=r.slice(0,t.index),c=[...r.slice(t.index),...l].find(d=>a.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=Dn([...e.tabs,t.tab],a=>a.current),s=e.selectedIndex;return e.info.current.isControlled||(s=r.indexOf(n),s===-1&&(s=e.selectedIndex)),{...e,tabs:r,selectedIndex:s}},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:Dn([...e.panels,t.panel],n=>n.current)}},4(e,t){return{...e,panels:e.panels.filter(n=>n!==t.panel)}}},zo=p.createContext(null);zo.displayName="TabsDataContext";function _n(e){let t=p.useContext(zo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_n),n}return t}let Ko=p.createContext(null);Ko.displayName="TabsActionsContext";function Yo(e){let t=p.useContext(Ko);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Yo),n}return t}function Y6(e,t){return Re(t.type,K6,e,t)}let G6="div";function q6(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:s=!1,onChange:a,selectedIndex:i=null,...l}=e;const c=r?"vertical":"horizontal",u=s?"manual":"auto";let d=i!==null,f=Xe({isControlled:d}),h=He(t),[g,m]=p.useReducer(Y6,{info:f,selectedIndex:i??n,tabs:[],panels:[]}),x=gt({selectedIndex:g.selectedIndex}),v=Xe(a||(()=>{})),y=Xe(g.tabs),C=p.useMemo(()=>({orientation:c,activation:u,...g}),[c,u,g]),b=oe(F=>(m({type:1,tab:F}),()=>m({type:2,tab:F}))),k=oe(F=>(m({type:3,panel:F}),()=>m({type:4,panel:F}))),E=oe(F=>{j.current!==F&&v.current(F),d||m({type:0,index:F})}),j=Xe(d?e.selectedIndex:g.selectedIndex),T=p.useMemo(()=>({registerTab:b,registerPanel:k,change:E}),[]);Ae(()=>{m({type:0,index:i??n})},[i]),Ae(()=>{if(j.current===void 0||g.tabs.length<=0)return;let F=Dn(g.tabs,$=>$.current);F.some(($,z)=>g.tabs[z]!==$)&&E(F.indexOf(g.tabs[j.current]))});let N={ref:h},I=Ie();return p.createElement(W6,null,p.createElement(Ko.Provider,{value:T},p.createElement(zo.Provider,{value:C},C.tabs.length<=0&&p.createElement(I6,{onFocus:()=>{var F,$;for(let z of y.current)if(((F=z.current)==null?void 0:F.tabIndex)===0)return($=z.current)==null||$.focus(),!0;return!1}}),I({ourProps:N,theirProps:l,slot:x,defaultTag:G6,name:"Tabs"}))))}let X6="div";function J6(e,t){let{orientation:n,selectedIndex:r}=_n("Tab.List"),s=He(t),a=gt({selectedIndex:r}),i=e,l={ref:s,role:"tablist","aria-orientation":n};return Ie()({ourProps:l,theirProps:i,slot:a,defaultTag:X6,name:"Tabs.List"})}let Q6="button";function ep(e,t){var n,r;let s=p.useId(),{id:a=`headlessui-tabs-tab-${s}`,disabled:i=!1,autoFocus:l=!1,...c}=e,{orientation:u,activation:d,selectedIndex:f,tabs:h,panels:g}=_n("Tab"),m=Yo("Tab"),x=_n("Tab"),[v,y]=p.useState(null),C=p.useRef(null),b=He(C,t,y);Ae(()=>m.registerTab(C),[m,C]);let k=l1("tabs"),E=h.indexOf(C);E===-1&&(E=k);let j=E===f,T=oe(R=>{let U=R();if(U===Ft.Success&&d==="auto"){let Y=Xt(C.current),B=x.tabs.findIndex(A=>A.current===Y);B!==-1&&m.change(B)}return U}),N=oe(R=>{let U=h.map(Y=>Y.current).filter(Boolean);if(R.key===ke.Space||R.key===ke.Enter){R.preventDefault(),R.stopPropagation(),m.change(E);return}switch(R.key){case ke.Home:case ke.PageUp:return R.preventDefault(),R.stopPropagation(),T(()=>Ke(U,we.First));case ke.End:case ke.PageDown:return R.preventDefault(),R.stopPropagation(),T(()=>Ke(U,we.Last))}if(T(()=>Re(u,{vertical(){return R.key===ke.ArrowUp?Ke(U,we.Previous|we.WrapAround):R.key===ke.ArrowDown?Ke(U,we.Next|we.WrapAround):Ft.Error},horizontal(){return R.key===ke.ArrowLeft?Ke(U,we.Previous|we.WrapAround):R.key===ke.ArrowRight?Ke(U,we.Next|we.WrapAround):Ft.Error}}))===Ft.Success)return R.preventDefault()}),I=p.useRef(!1),F=oe(()=>{var R;I.current||(I.current=!0,(R=C.current)==null||R.focus({preventScroll:!0}),m.change(E),wo(()=>{I.current=!1}))}),$=oe(R=>{R.preventDefault()}),{isFocusVisible:z,focusProps:Z}=bo({autoFocus:l}),{isHovered:M,hoverProps:_}=$l({isDisabled:i}),{pressed:S,pressProps:P}=Ol({disabled:i}),L=gt({selected:j,hover:M,active:S,focus:z,autofocus:l,disabled:i}),O=rr({ref:b,onKeyDown:N,onMouseDown:$,onClick:F,id:a,role:"tab",type:cc(e,v),"aria-controls":(r=(n=g[E])==null?void 0:n.current)==null?void 0:r.id,"aria-selected":j,tabIndex:j?0:-1,disabled:i||void 0,autoFocus:l},Z,_,P);return Ie()({ourProps:O,theirProps:c,slot:L,defaultTag:Q6,name:"Tabs.Tab"})}let tp="div";function np(e,t){let{selectedIndex:n}=_n("Tab.Panels"),r=He(t),s=gt({selectedIndex:n}),a=e,i={ref:r};return Ie()({ourProps:i,theirProps:a,slot:s,defaultTag:tp,name:"Tabs.Panels"})}let rp="div",sp=Jt.RenderStrategy|Jt.Static;function op(e,t){var n,r,s,a;let i=p.useId(),{id:l=`headlessui-tabs-panel-${i}`,tabIndex:c=0,...u}=e,{selectedIndex:d,tabs:f,panels:h}=_n("Tab.Panel"),g=Yo("Tab.Panel"),m=p.useRef(null),x=He(m,t);Ae(()=>g.registerPanel(m),[g,m]);let v=l1("panels"),y=h.indexOf(m);y===-1&&(y=v);let C=y===d,{isFocusVisible:b,focusProps:k}=bo(),E=gt({selected:C,focus:b}),j=rr({ref:x,id:l,role:"tabpanel","aria-labelledby":(r=(n=f[y])==null?void 0:n.current)==null?void 0:r.id,tabIndex:C?c:-1},k),T=Ie();return!C&&((s=u.unmount)==null||s)&&!((a=u.static)!=null&&a)?p.createElement(Tn,{"aria-hidden":"true",...j}):T({ourProps:j,theirProps:u,slot:E,defaultTag:rp,features:sp,visible:C,name:"Tabs.Panel"})}let ip=_e(ep),c1=_e(q6),u1=_e(J6),d1=_e(np),f1=_e(op),ap=Object.assign(ip,{Group:c1,List:u1,Panels:d1,Panel:f1});const Cs=e=>o.jsx(c1,{...e,children:e.children}),ws=({children:e,className:t})=>o.jsx(u1,{className:t,children:e}),fr=({children:e,className:t,disabled:n,onClick:r,...s})=>o.jsx(ap,{onClick:r,className:t,disabled:!!n,...s,children:e}),js=({children:e,className:t=""})=>o.jsx(d1,{className:t,children:e}),Fn=({children:e,className:t=""})=>o.jsx(f1,{className:t,children:e});var Go={exports:{}},lp={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 qo=lp;Go.exports=function(t){if(typeof t!="string")return;const n=t.toUpperCase();if(Object.prototype.hasOwnProperty.call(qo,n))return qo[n]},Go.exports.currencySymbolMap=qo;var cp=Go.exports,up=$r(cp);const Xo={"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]"},dp={small:"max-w-[518px]",medium:"max-w-[641px]",large:"max-w-[830px]",extralarge:"max-w-[940px]"},fp={small:"h-[20px] min-w-[20px] text-xs",medium:"h-[36px] min-w-[36px] text-sm"},on=(...e)=>e.filter(Boolean).join(" "),ks=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 s=n.toLocaleString("en",r);return t&&(s=s.replace(/ AM| PM/,a=>a.toLowerCase()),s=s.replace(/,(?=\s\d{1,2}:\d{2})/,"")),s},ut=e=>e?ks(e.split("T")[0]):"nil",dt=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",hp=e=>{if(!e)return{};const{address_line1:t,address_line2:n,city:r,state:s,country:a,zip_code:i}=e;return{address:[t,n,r,s,a].filter(Boolean).join(", "),zipCode:i}},h1=e=>{if(!e)return{};const{address_line_one:t,address_line_two:n,city:r,state:s,country:a,zip_code:i}=e;return{address:[t,n,r,s,a].filter(Boolean).join(", "),zipCode:i}},Ot=e=>up(e),pp=(e,t)=>{if(!e)return t;const{line1:n,line2:r,city:s,state:a,country:i,zip_code:l}=e,c=[n,r,s,a,i&&dt(i),l].filter(Boolean);return c.length>0?c.join(", "):t},mp={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%]"},V=({variant:e,className:t,as:n="p",children:r,color:s})=>o.jsx(n,{className:on(mp[e],s,t),children:r}),gp={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"},W=({variant:e,className:t,as:n="span",children:r,color:s})=>o.jsx(n,{className:on(gp[e],s,t),children:r}),xp={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%]"},Jo=({variant:e,className:t,as:n="h1",children:r,color:s})=>o.jsx(n,{className:on(xp[e],s,t),children:r}),yp=async({customerKey:e})=>{const{data:t}=await Pe().get(`/sdk/customers/${e}/details`);return t},vp=({customerKey:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing customerKey");i(!0);try{const c=await yp({customerKey:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load customer details")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{customerDetails:t,error:r,isLoading:a,refetch:l}},bp=async({customerKey:e})=>{const{data:t}=await Pe().get(`/sdk/credit_systems/wallets/${e}`);return t},Cp=({customerKey:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing customerKey");i(!0);try{const c=await bp({customerKey:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load customer wallet")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{customerWallets:t,error:r,isLoading:a,refetch:l}},hr=ao(e=>({customerKey:"",setCustomerKey:t=>e({customerKey:t}),customerRefetch:()=>{},setCustomerRefetch:t=>e({customerRefetch:t}),plans:[],setPlans:t=>e({plans:t})}));var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ut,function(){var n=1e3,r=6e4,s=36e5,a="millisecond",i="second",l="minute",c="hour",u="day",d="week",f="month",h="quarter",g="year",m="date",x="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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(M){var _=["th","st","nd","rd"],S=M%100;return"["+M+(_[(S-20)%10]||_[S]||_[0])+"]"}},b=function(M,_,S){var P=String(M);return!P||P.length>=_?M:""+Array(_+1-P.length).join(S)+M},k={s:b,z:function(M){var _=-M.utcOffset(),S=Math.abs(_),P=Math.floor(S/60),L=S%60;return(_<=0?"+":"-")+b(P,2,"0")+":"+b(L,2,"0")},m:function M(_,S){if(_.date()<S.date())return-M(S,_);var P=12*(S.year()-_.year())+(S.month()-_.month()),L=_.clone().add(P,f),O=S-L<0,R=_.clone().add(P+(O?-1:1),f);return+(-(P+(S-L)/(O?L-R:R-L))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:g,w:d,d:u,D:m,h:c,m:l,s:i,ms:a,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},E="en",j={};j[E]=C;var T="$isDayjsObject",N=function(M){return M instanceof z||!(!M||!M[T])},I=function M(_,S,P){var L;if(!_)return E;if(typeof _=="string"){var O=_.toLowerCase();j[O]&&(L=O),S&&(j[O]=S,L=O);var R=_.split("-");if(!L&&R.length>1)return M(R[0])}else{var U=_.name;j[U]=_,L=U}return!P&&L&&(E=L),L||!P&&E},F=function(M,_){if(N(M))return M.clone();var S=typeof _=="object"?_:{};return S.date=M,S.args=arguments,new z(S)},$=k;$.l=I,$.i=N,$.w=function(M,_){return F(M,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var z=function(){function M(S){this.$L=I(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[T]=!0}var _=M.prototype;return _.parse=function(S){this.$d=function(P){var L=P.date,O=P.utc;if(L===null)return new Date(NaN);if($.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var R=L.match(v);if(R){var U=R[2]-1||0,Y=(R[7]||"0").substring(0,3);return O?new Date(Date.UTC(R[1],U,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)):new Date(R[1],U,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)}}return new Date(L)}(S),this.init()},_.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==x},_.isSame=function(S,P){var L=F(S);return this.startOf(P)<=L&&L<=this.endOf(P)},_.isAfter=function(S,P){return F(S)<this.startOf(P)},_.isBefore=function(S,P){return this.endOf(P)<F(S)},_.$g=function(S,P,L){return $.u(S)?this[P]:this.set(L,S)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(S,P){var L=this,O=!!$.u(P)||P,R=$.p(S),U=function(ie,se){var le=$.w(L.$u?Date.UTC(L.$y,se,ie):new Date(L.$y,se,ie),L);return O?le:le.endOf(u)},Y=function(ie,se){return $.w(L.toDate()[ie].apply(L.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(se)),L)},B=this.$W,A=this.$M,H=this.$D,Q="set"+(this.$u?"UTC":"");switch(R){case g:return O?U(1,0):U(31,11);case f:return O?U(1,A):U(0,A+1);case d:var ne=this.$locale().weekStart||0,G=(B<ne?B+7:B)-ne;return U(O?H-G:H+(6-G),A);case u:case m:return Y(Q+"Hours",0);case c:return Y(Q+"Minutes",1);case l:return Y(Q+"Seconds",2);case i:return Y(Q+"Milliseconds",3);default:return this.clone()}},_.endOf=function(S){return this.startOf(S,!1)},_.$set=function(S,P){var L,O=$.p(S),R="set"+(this.$u?"UTC":""),U=(L={},L[u]=R+"Date",L[m]=R+"Date",L[f]=R+"Month",L[g]=R+"FullYear",L[c]=R+"Hours",L[l]=R+"Minutes",L[i]=R+"Seconds",L[a]=R+"Milliseconds",L)[O],Y=O===u?this.$D+(P-this.$W):P;if(O===f||O===g){var B=this.clone().set(m,1);B.$d[U](Y),B.init(),this.$d=B.set(m,Math.min(this.$D,B.daysInMonth())).$d}else U&&this.$d[U](Y);return this.init(),this},_.set=function(S,P){return this.clone().$set(S,P)},_.get=function(S){return this[$.p(S)]()},_.add=function(S,P){var L,O=this;S=Number(S);var R=$.p(P),U=function(A){var H=F(O);return $.w(H.date(H.date()+Math.round(A*S)),O)};if(R===f)return this.set(f,this.$M+S);if(R===g)return this.set(g,this.$y+S);if(R===u)return U(1);if(R===d)return U(7);var Y=(L={},L[l]=r,L[c]=s,L[i]=n,L)[R]||1,B=this.$d.getTime()+S*Y;return $.w(B,this)},_.subtract=function(S,P){return this.add(-1*S,P)},_.format=function(S){var P=this,L=this.$locale();if(!this.isValid())return L.invalidDate||x;var O=S||"YYYY-MM-DDTHH:mm:ssZ",R=$.z(this),U=this.$H,Y=this.$m,B=this.$M,A=L.weekdays,H=L.months,Q=L.meridiem,ne=function(se,le,J,q){return se&&(se[le]||se(P,O))||J[le].slice(0,q)},G=function(se){return $.s(U%12||12,se,"0")},ie=Q||function(se,le,J){var q=se<12?"AM":"PM";return J?q.toLowerCase():q};return O.replace(y,function(se,le){return le||function(J){switch(J){case"YY":return String(P.$y).slice(-2);case"YYYY":return $.s(P.$y,4,"0");case"M":return B+1;case"MM":return $.s(B+1,2,"0");case"MMM":return ne(L.monthsShort,B,H,3);case"MMMM":return ne(H,B);case"D":return P.$D;case"DD":return $.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ne(L.weekdaysMin,P.$W,A,2);case"ddd":return ne(L.weekdaysShort,P.$W,A,3);case"dddd":return A[P.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ie(U,Y,!0);case"A":return ie(U,Y,!1);case"m":return String(Y);case"mm":return $.s(Y,2,"0");case"s":return String(P.$s);case"ss":return $.s(P.$s,2,"0");case"SSS":return $.s(P.$ms,3,"0");case"Z":return R}return null}(se)||R.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(S,P,L){var O,R=this,U=$.p(P),Y=F(S),B=(Y.utcOffset()-this.utcOffset())*r,A=this-Y,H=function(){return $.m(R,Y)};switch(U){case g:O=H()/12;break;case f:O=H();break;case h:O=H()/3;break;case d:O=(A-B)/6048e5;break;case u:O=(A-B)/864e5;break;case c:O=A/s;break;case l:O=A/r;break;case i:O=A/n;break;default:O=A}return L?O:$.a(O)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return j[this.$L]},_.locale=function(S,P){if(!S)return this.$L;var L=this.clone(),O=I(S,P,!0);return O&&(L.$L=O),L},_.clone=function(){return $.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()},M}(),Z=z.prototype;return F.prototype=Z,[["$ms",a],["$s",i],["$m",l],["$H",c],["$W",u],["$M",f],["$y",g],["$D",m]].forEach(function(M){Z[M[1]]=function(_){return this.$g(_,M[0],M[1])}}),F.extend=function(M,_){return M.$i||(M(_,z,F),M.$i=!0),F},F.locale=I,F.isDayjs=N,F.unix=function(M){return F(1e3*M)},F.en=j[E],F.Ls=j,F.p={},F})})(p1);var wp=p1.exports,m1=$r(wp);const jp={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"}},kp={colors:jp},Ep=kp.colors,Sp=e=>{if(/^#([0-9A-Fa-f]{3}){1,2}$/.test(e))return e;const t=e.split("-");let n=Ep;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},Lp={"danger-filled":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#currentColor",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),home:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12.525 5.44167L17.5833 10.5L12.525 15.5583",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.41666 10.5H17.4417",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"code-circle":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M4.5 8H12.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.5 12V4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),search:o.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M2.5 18.3333H17.5",stroke:"currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),times:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M18.0697 9.57L11.9997 3.5L5.92969 9.57",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 20.4999V3.66992",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"arrow-up-light":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:[o.jsx("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"}),o.jsx("path",{d:"M22 10h-4c-3 0-4-1-4-4V2l8 8ZM7 13h6M7 17h4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),notification:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M11.995 13.75H12.004",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-circle":o.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M10.5 6.77881V10.9455",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.4956 13.4458H10.5031",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"info-circle-filled":o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M18.8333 10.5675V5.9458H14.1816",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"course-down-line-duotone":o.jsxs("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_13667_69012)",children:[o.jsx("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"}),o.jsx("path",{d:"M16.45 20.9612L20.7043 19.1554L18.8867 14.8735",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_13667_69012",children:o.jsx("rect",{width:"20",height:"20",fill:"white",transform:"translate(18.9102) rotate(67)"})})})]}),more:o.jsxs("svg",{width:"29",height:"21",viewBox:"0 0 29 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"35",height:"34",viewBox:"0 0 35 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"366",height:"306",viewBox:"0 0 366 306",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M14.168 170.379V173.603",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M7.72266 173.603L9.87191 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.5 180.051H7.72388",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M7.72266 186.498L9.87191 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M14.168 189.722V186.498",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M20.618 186.498L18.4688 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M23.8372 180.051H20.6133",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M20.618 173.603L18.4688 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M179.66 38.2V40.3493",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M174.293 43.5732H176.442",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M179.66 50.0209V47.8716",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M186.11 44.6478H183.961",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M61.4531 123.095V126.319",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M51.7852 132.767H55.009",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M60.375 141.364V138.14",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M70.0559 132.767H66.832",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"menu",children:o.jsx("g",{id:"vuesax/bold/menu",children:o.jsxs("g",{id:"menu_2",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M3.5 7H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.5 12H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.5 17H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),category:o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{width:"5",height:"21",viewBox:"0 0 5 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.3281 16.5H13.6581",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9.5 12.5H14.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),timer:o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M9.97 14.5312L2.5 22.0013",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22.5013 2L15.0312 9.47",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),repeat:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M4.48948 1.33301L2.38281 3.43966L4.48948 5.54635",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.75 12.0019L10.58 14.8319L16.25 9.17188",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square-fill":o.jsxs("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M17.4395 15.12L19.9995 12.56L17.4395 10",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9.75977 12.5596H19.9298",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M12 9V13",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12 16V16.5",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),archive:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.1797 14H13.8197",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),lock:o.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:o.jsx("path",{d:"M6 12h12",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-3":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",fill:"#3F3F46"}),o.jsx("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M6.72656 21V3",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.5469 17.28L17.2669 21L20.9869 17.28",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M17.2656 3V21",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),filter:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.28667 1.40039L4 6.66706",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),export:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M8.66797 7.33385L14.1346 1.86719",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.6648 4.53398V1.33398H11.4648",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"money-icon":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M5.16797 8.49995L7.05464 10.3866L10.8346 6.61328",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),calendar:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_1215_17258)",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M10.6257 16.7915L13.709 13.7082",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M3.23255 9.3916L5.69922 6.93327",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1215_17258",children:o.jsx("rect",{width:"20",height:"20",fill:"white",transform:"matrix(-1 0 0 -1 20 20)"})})})]}),building:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M1 22H23",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.78 22.0098V17.5498",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M5.80005 8.25H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M5.80005 12H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.25 22V18.25",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),book:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M12 5.49023V20.4902",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M7.75 8.49023H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M8.5 11.4902H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),menu:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M11.6641 1.66675L9.16406 3.75008L11.6641 5.83341",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M8.33594 18.3334L10.8359 16.2501L8.33594 14.1667",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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":o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M9.54492 270.507L12.8939 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M19.5938 295.623V290.6",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M29.64 270.507L26.291 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M277.465 59.5231V62.872",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M269.092 67.8953H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M277.465 77.9412V74.5922",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M287.505 69.5707H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"lock",children:o.jsxs("g",{id:"vuesax/bold/lock",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M9.07031 4.38574V6.67136",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("path",{d:"M2.17969 8.27121L2.63223 8.72376L3.60591 7.82324",stroke:"#currentColor",strokeWidth:"1.02853",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsxs("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M19.49 18.48H16.51",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M18 17.02V20.01",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"logo-placeholder":o.jsxs("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",fill:"#F7FEE7"}),o.jsx("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",stroke:"#84CC16"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{d:"M14.5 18H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.5 22H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M6.08594 8.00005L7.6926 9.61339L10.9126 6.38672",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M11.9485 7.33301V1.33301L9.88574 2.83301",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.667 10.667L12.667 12.667L10.667 14.667",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12.6667 12.667H5",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),"override-quota":o.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M9.96094 5.52148L12.8454 6.94546L14.2694 4.06096",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.2906 14.6753V10.126L11.7266 11.2633",stroke:"#currentColor",strokeWidth:"1.36479",strokeLinecap:"round",strokeLinejoin:"round"})]}),sandbox:o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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":o.jsx("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsxs("g",{id:"Wallet is Empty",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 27",d:"M9.54492 270.506L12.8939 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 33",d:"M19.5938 295.623V290.599",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 39",d:"M29.64 270.506L26.291 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 41",d:"M277.465 59.5232V62.8721",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 43",d:"M269.092 67.8955H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 45",d:"M277.465 77.941V74.592",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 47",d:"M287.505 69.5706H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("g",{id:"timer",children:o.jsx("g",{id:"vuesax/bold/timer",children:o.jsxs("g",{id:"timer_2",children:[o.jsx("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"}),o.jsx("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:o.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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":o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M1.33301 5.66699H9.66634",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M4 11H5.33333",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M7 11H9.66667",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("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"}),o.jsx("path",{d:"M13.333 2.33301V6.33301L14.6663 4.99967",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.3333 6.33333L12 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),radar:o.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("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:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"}),o.jsx("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"})]}),"settings-3":o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M9.99967 15.1668H5.99967C2.37967 15.1668 0.833008 13.6202 0.833008 10.0002V6.00016C0.833008 2.38016 2.37967 0.833496 5.99967 0.833496H9.99967C13.6197 0.833496 15.1663 2.38016 15.1663 6.00016V10.0002C15.1663 13.6202 13.6197 15.1668 9.99967 15.1668ZM5.99967 1.8335C2.92634 1.8335 1.83301 2.92683 1.83301 6.00016V10.0002C1.83301 13.0735 2.92634 14.1668 5.99967 14.1668H9.99967C13.073 14.1668 14.1663 13.0735 14.1663 10.0002V6.00016C14.1663 2.92683 13.073 1.8335 9.99967 1.8335H5.99967Z",fill:"#52525B"}),o.jsx("path",{d:"M10.3867 12.8334C10.1134 12.8334 9.88672 12.6067 9.88672 12.3334V9.7334C9.88672 9.46007 10.1134 9.2334 10.3867 9.2334C10.6601 9.2334 10.8867 9.46007 10.8867 9.7334V12.3334C10.8867 12.6067 10.6601 12.8334 10.3867 12.8334Z",fill:"#52525B"}),o.jsx("path",{d:"M10.3867 5.4665C10.1134 5.4665 9.88672 5.23984 9.88672 4.9665V3.6665C9.88672 3.39317 10.1134 3.1665 10.3867 3.1665C10.6601 3.1665 10.8867 3.39317 10.8867 3.6665V4.9665C10.8867 5.23984 10.6601 5.4665 10.3867 5.4665Z",fill:"#52525B"}),o.jsx("path",{d:"M10.3867 8.93346C9.15332 8.93346 8.15332 7.93346 8.15332 6.70013C8.15332 5.4668 9.15332 4.4668 10.3867 4.4668C11.62 4.4668 12.62 5.4668 12.62 6.70013C12.62 7.93346 11.6133 8.93346 10.3867 8.93346ZM10.3867 5.4668C9.70665 5.4668 9.15332 6.02013 9.15332 6.70013C9.15332 7.38013 9.70665 7.93346 10.3867 7.93346C11.0667 7.93346 11.62 7.38013 11.62 6.70013C11.62 6.02013 11.06 5.4668 10.3867 5.4668Z",fill:"#52525B"}),o.jsx("path",{d:"M5.61328 12.8332C5.33995 12.8332 5.11328 12.6065 5.11328 12.3332V11.0332C5.11328 10.7599 5.33995 10.5332 5.61328 10.5332C5.88661 10.5332 6.11328 10.7599 6.11328 11.0332V12.3332C6.11328 12.6065 5.89328 12.8332 5.61328 12.8332Z",fill:"#52525B"}),o.jsx("path",{d:"M5.61328 6.7665C5.33995 6.7665 5.11328 6.53984 5.11328 6.2665V3.6665C5.11328 3.39317 5.33995 3.1665 5.61328 3.1665C5.88661 3.1665 6.11328 3.39317 6.11328 3.6665V6.2665C6.11328 6.53984 5.89328 6.7665 5.61328 6.7665Z",fill:"#52525B"}),o.jsx("path",{d:"M5.61322 11.5336C4.37988 11.5336 3.37988 10.5336 3.37988 9.30023C3.37988 8.06689 4.37988 7.06689 5.61322 7.06689C6.84655 7.06689 7.84655 8.06689 7.84655 9.30023C7.84655 10.5336 6.84655 11.5336 5.61322 11.5336ZM5.61322 8.06689C4.93322 8.06689 4.37988 8.62023 4.37988 9.30023C4.37988 9.98023 4.93322 10.5336 5.61322 10.5336C6.29322 10.5336 6.84655 9.98023 6.84655 9.30023C6.84655 8.62023 6.29988 8.06689 5.61322 8.06689Z",fill:"#52525B"})]})},re=({name:e,size:t=24,color:n="currentColor"})=>{const r=Lp[e];if(!r)return null;const s=n==="currentColor"?n:Sp(n),{props:a}=r;return o.jsx("svg",{xmlns:a.xmlns,viewBox:a.viewBox,width:t,height:t,fill:a.fill==="none"?"none":s,stroke:a.fill==="none"?s:"none",children:a.children})};var pr=(e=>(e.NONE="none",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.QUARTERLY="quarterly",e.YEARLY="yearly",e.BI_ANNUALLY="biannually",e))(pr||{}),ge=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.YEARLY="yearly",e.QUARTERLY="quarterly",e.BIANNUALLY="biannually",e.CUSTOM="custom",e))(ge||{}),Es=(e=>(e.InAdvance="in_advance",e.InArrears="in_arrears",e))(Es||{}),an=(e=>(e.BOOLEAN="boolean",e.METERED="metered",e))(an||{}),Tp=(e=>(e.ARCHIVED="archived",e.ACTIVE="active",e.ALL="all",e))(Tp||{}),Mp=(e=>(e.SOFT="soft",e.HARD="hard",e))(Mp||{}),Fe=(e=>(e.ACTIVE="active",e.IN_TRIAL="in_trial",e.CANCELED="canceled",e.EXPIRED="expired",e.DEACTIVATED="deactivated",e.PAUSED="paused",e))(Fe||{}),g1=(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))(g1||{}),Dp=(e=>(e.ONE_OFF="OneOff",e.FIXED_RECURRING="RecurringFixed",e.USAGE_BASED="UsageBased",e))(Dp||{}),ln=(e=>(e.PER_UNIT="per_unit",e.PER_PACKAGE="per_package",e.FLAT="flat",e.PERCENTAGE="percentage",e))(ln||{}),Np=(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))(Np||{}),x1=(e=>(e.PAY_AS_YOU_GO="in_arrears",e.UPFRONT_COMMITMENT="in_advance",e))(x1||{}),Pp=(e=>(e.PER_USE="per_use",e.PERSISTENT_USE="persistent_use",e))(Pp||{}),Ap=(e=>(e.ROLLOVER="Rollover",e.INCLUDED="Included",e.PURCHASED="Purchased",e.PAY_AS_YOU_GO="Pay as you go",e))(Ap||{}),y1=(e=>(e.DRAFT="draft",e))(y1||{}),Qe=(e=>(e.AUTO_TOP_UP_ENABLED="auto_top_up_enabled",e.NOTIFICATION_ENABLED="notification_enabled",e))(Qe||{});const Rp=()=>({once:"once",daily:"per day",weekly:"per week",monthly:"per month",quarterly:"per quarter",yearly:"per year",biannually:"per 6 months"}),_p={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"}},Fp=e=>_p[e]||{color:"bg-blue-500",text:""},Vp={[Fe.ACTIVE]:{color:"bg-metrifox-success",text:"Active"},[Fe.IN_TRIAL]:{color:"bg-metrifox-blue",text:"In trial"},[Fe.CANCELED]:{color:"bg-metrifox-danger",text:"Canceled"},[Fe.EXPIRED]:{color:"bg-metrifox-danger",text:"Expired"},[Fe.DEACTIVATED]:{color:"bg-metrifox-danger",text:"Deactivated"},[Fe.PAUSED]:{color:"bg-grey-500",text:"Paused"}},$p=e=>Vp[e]||{color:"bg-metrifox-success",text:""};function Ve(e){const t=e.toString().split(".");return t[0]&&(t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")),t.join(".")}const Op=(e,t,n="-")=>{try{return t.split(/[.[\]]+/).filter(Boolean).reduce((r,s)=>r[s],e)??n}catch{return n}},v1=(e,t)=>t.find(n=>n.price.billing_interval===e),b1=(e,t)=>t?.filter(n=>n.price.billing_interval===e),Bp=(e,t=1)=>({[ge.QUARTERLY]:3,[ge.BIANNUALLY]:6,[ge.YEARLY]:12}[e]??1)*t,Ip={daily:"days",weekly:"weeks",monthly:"months",quarterly:"quarters",yearly:"years"},Hp=(e,t)=>e?.map((n,r)=>{const{first_unit:s,last_unit:a,unit_price:i,package_price:l,package_size:c,pricing_model:u,flat_fee:d}=n,f=Ot(t),h=r===0,g=r===e.length-1,m=()=>u===ln.PER_UNIT?h&&a===-1?"per unit":h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:u===ln.PER_PACKAGE?h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:u===ln.FLAT?h?`First ${a}`:g?`Last ${s}`:`${s} to ${a}`:"",x=()=>u===ln.PER_UNIT?`${f}${ce(i)}`:u===ln.PER_PACKAGE&&c?`${f}${ce(l)}`:u===ln.FLAT?`${f}${ce(d)}`:"";return{label:m(),price:x(),package:c}}),Qo=e=>{const t=e?.price?.owner,n=0,r=e?.price?.tiers?.find(f=>f.first_unit===n),s=Ot(e?.price?.currency)||"";if(!r)return{price:null,label:null,currencySymbol:null};const{unit_price:a,package_price:i,package_size:l,pricing_model:c,flat_fee:u,percentage:d}=r;return u?{price:ce(u),label:"",currencySymbol:s,isPercentage:!1}:{per_unit:{price:ce(a),label:`${t?.feature?.unit_singular||t?.credit_unit_singular||t?.unit_singular}`,currencySymbol:s,isPercentage:!1},per_package:{price:ce(i),label:`${l} ${t?.feature?.unit_plural}`,currencySymbol:s,isPercentage:!1},percentage:{price:`${d}%`,label:`of ${t?.feature?.unit_plural}`,currencySymbol:s,isPercentage:!0}}[c]??{price:null,label:null,currencySymbol:null,isPercentage:null}},Wp=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||[]],s=r.some(a=>a.price?.invoice_timing===Es.InAdvance);r.forEach(a=>{const i=a.price.invoice_timing===Es.InAdvance&&a.price?.billing_interval,l=a.price.invoice_timing===Es.InArrears&&a.price?.billing_interval,c=s?i:l;c&&t.add(c)})}return Array.from(t)},ce=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 s="";s=r.toFixed(6).split(".")[1]?.replace(/0+$/,"")||"";const a=s.match(/^0*/)?.[0].length||0,i=Math.min(a+2,6),l=Number(t.toFixed(i));return isFinite(l)?l.toLocaleString(n,{minimumFractionDigits:i,maximumFractionDigits:i}):"--"},ei=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())},Up=(e,t)=>[...e].sort((n,r)=>{const s=n.feature?.id,a=r.feature?.id,i=s?t.get(s)??1/0:1/0,l=a?t.get(a)??1/0:1/0;return i-l}),Zp=e=>{const t=new Map;e?.forEach(s=>{const{entitlements:a=[],base_entitlements:i=[]}=s||{};ei([...a,...i]).forEach(l=>{const c=l.feature?.id;if(c){const u=t.get(c);u?u.count+=1:t.set(c,{count:1,entitlement:l})}})});const n=Array.from(t.entries()).sort(([s,a],[i,l])=>{if(l.count!==a.count)return l.count-a.count;const c=a.entitlement.feature?.key||s,u=l.entitlement.feature?.key||i;return c.localeCompare(u)}),r=new Map;return n.forEach(([s],a)=>{r.set(s,a)}),{frequencyMap:t,featureOrderMap:r}},zp=({productKey:e,checkoutUsername:t})=>{if(t)return`${`${window.location.protocol}//${window.location.host}`}/${t}/pricing/${e}`},Kp=(e,t,n,r)=>{if(!e)return null;const s=Number(e.used||"0"),a=Number(e.amount||"0"),i=Number(e.balance||"0"),l=e.next_reset_at&&ks(e.next_reset_at),c=e.amount===null||a===-1;let u=0;return c?u=100:a>0&&(u=Math.min(s/a*100,100)),{pool:t,balance:i,used:s,amount:c?1/0:a,color:n,percent:u,isUnlimited:c,order:r,nextResetAt:l}},Yp=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=Kp(d,u.name,u.color,u.order);f&&n.push(f)}const r=n.reduce((u,d)=>u+d.used,0),s=n.filter(u=>!u.isUnlimited),a=s.reduce((u,d)=>u+d.amount,0),i=s.reduce((u,d)=>u+d.balance,0),l=n.some(u=>u.isUnlimited),c=n.length;return{processedPools:n,totalUsed:r,totalAmount:a,totalBalance:i,isAnyUnlimited:l,calculatedPoolCount:c}},C1=e=>e.includes("PurchasedCredit")?"Purchased credits":e.includes("IncludedCredit")?"Included credits":e.includes("Overage")?"Overage":e,Gp=e=>{const t=n=>new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return{id:e.id,creditedDate:ks(e.created_at),source:C1(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}},w1=({width:e=170,height:t=28})=>o.jsxs("svg",{width:e,height:t,viewBox:"0 0 109 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("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"}),o.jsx("path",{d:"M106.131 4.67773V4.50098H107.149V4.67773H106.736V5.78874H106.542V4.67773H106.131Z",fill:"#3D3D3D"}),o.jsx("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"}),o.jsx("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"})]}),j1=({data:e})=>{const t=e?.customer,{address:n}=h1(t?.billing_configuration?.billing_address),{address:r}=hp(t),s=t?.primary_phone||t?.phone_numbers[0]?.phone_number,a=n??r,i=e?.line_items||[],l=e?.charge_items||[],c=e?.usage_items||[],u=e?.currency?.symbol,d=[...i.map(h=>({...h,itemType:"line_item"})),...l.map(h=>({...h,itemType:"charge_item"})),...c.map(h=>({...h,itemType:"usage_item"}))],f=pp({...e?.tenant?.default_address},"No Tenant address provided");return o.jsxs(w,{children:[o.jsxs(w,{className:"h-max w-full flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-3",children:[e?.tenant?.logo_url?o.jsx(w,{className:"h-[2.5rem] w-[2.5rem] border overflow-hidden rounded-full",children:o.jsx("img",{src:e?.tenant?.logo_url,alt:"logo"})}):o.jsx(w,{className:"rounded-full h-[2.8rem] w-[2.8rem] bg-grey-200 p-3",children:o.jsx(re,{name:"logo-placeholder",size:20})}),o.jsx(Jo,{variant:"h5",className:"text-metrifox-black font-bold",children:e?.tenant?.business_name})]}),o.jsxs(w,{children:[o.jsx(Jo,{variant:"h5",className:"text-metrifox-black font-bold uppercase",children:"Invoice"}),o.jsx(V,{variant:"body7",className:"text-metrifox-black text-right",children:e?.invoice_number})]})]}),o.jsxs(w,{className:"bg-grey-100 px-3.5 py-5 mt-4 rounded-md flex items-center justify-between",children:[o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"font-medium text-grey-700",children:"Invoice no"}),o.jsx(V,{variant:"body7",className:"font-light text-grey-500 text-center mt-0.5",children:e?.invoice_number||"-"})]}),o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"font-medium text-grey-700",children:"Issue date"}),o.jsx(V,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:ut(e?.issued_at)})]}),o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"font-medium text-grey-700",children:"Due date"}),o.jsx(V,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:ut(e?.due_at)})]})]}),o.jsxs(w,{className:"mt-6 flex justify-between",children:[o.jsxs(w,{className:"text-gray-500 max-w-[12rem]",children:[o.jsx(W,{variant:"label8",className:"font-medium text-grey-700",children:"From"}),o.jsxs(w,{className:"text-gray-500 font-light space-y-1 mt-1",children:[o.jsx(V,{variant:"body7",children:e?.tenant?.business_name}),o.jsx(V,{variant:"body7",children:f})]})]}),o.jsxs(w,{className:"text-right max-w-[12rem] ",children:[o.jsx(W,{variant:"label8",className:"font-medium text-grey-700",children:"Billed to"}),o.jsxs(w,{className:"text-gray-500 font-light space-y-1 mt-1",children:[o.jsx(W,{variant:"label8",className:"font-medium text-metrifox-blue underline",children:e?.customer?.full_name}),o.jsx(V,{variant:"body7",children:a}),o.jsx(V,{variant:"body7",children:e?.customer?.primary_email}),o.jsxs(V,{variant:"body7",children:[" ",s]})]})]})]}),o.jsx(w,{className:"mt-8",children:o.jsxs(w,{className:"w-full",children:[o.jsxs(w,{className:"bg-grey-200 p-2 rounded-md font-medium text-grey-700 grid grid-cols-5 gap-x-6",children:[o.jsx(W,{variant:"label8",className:"w-[12rem]",children:"Item name"}),o.jsx(W,{variant:"label8",children:"Price"}),o.jsx(W,{variant:"label8",children:"Qty"}),o.jsx(W,{variant:"label8",children:"Subtotal"}),o.jsx(W,{variant:"label8",children:"Amount"})]}),o.jsx(w,{children:d?.map(h=>o.jsxs(w,{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:[o.jsxs(w,{className:"w-full",children:[o.jsx(W,{variant:"label8",className:"font-medium text-metrifox-blue",children:h?.name}),o.jsx(V,{variant:"body8",children:h?.description})]}),o.jsx(V,{variant:"body6",color:"text-metrifox-black",children:h.itemType==="usage_item"?"Tier based pricing":`${u}${ce(h.unit_price)}`}),o.jsx(V,{variant:"body8",children:h?.quantity}),o.jsxs(V,{variant:"body8",children:[u,ce(h?.total_amount)]}),o.jsxs(V,{variant:"body8",children:[u,ce(h?.amount)]})]},h?.id))})]})}),o.jsxs(w,{className:"bg-neutral-100 p-2.5 w-[50%] ml-auto rounded-sm mt-5",children:[o.jsxs(w,{className:"flex justify-between border-b pb-2",children:[o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"font-medium text-neutral-900",children:"Subtotal"}),o.jsxs(w,{className:"text-neutral-500 space-y-1 my-2",children:[o.jsx(V,{variant:"body8",children:"Discount"}),o.jsx(V,{variant:"body8",children:"Tax"})]}),o.jsx(W,{variant:"label8",className:"font-medium text-grey-800",children:"Grand total"})]}),o.jsxs(w,{className:"text-right",children:[o.jsxs(W,{variant:"label8",className:"font-medium text-grey-800",children:[u,ce(e?.summary?.items_subtotal)]}),o.jsxs(w,{className:"text-neutral-500 space-y-1 my-2",children:[o.jsxs(V,{variant:"body8",children:[u,ce(e?.summary?.total_discounts)]}),o.jsxs(V,{variant:"body8",children:[u,ce(e?.summary?.total_tax_amount)]})]}),o.jsxs(W,{variant:"label8",className:"font-medium text-grey-800",children:[u,ce(e?.summary?.total_amount_paid)]})]})]}),o.jsxs(w,{className:"flex justify-between pt-2",children:[o.jsxs(w,{className:"space-y-3 font-medium text-neutral-900",children:[o.jsx(W,{variant:"label8",children:"Amount paid"}),o.jsx(W,{variant:"label8",children:"Amount due"})]}),o.jsxs(w,{className:"text-right space-y-3 font-medium text-grey-800",children:[o.jsxs(W,{variant:"label8",children:[u,ce(e?.summary?.total_amount_paid)]}),o.jsxs(W,{variant:"label7",children:[u,ce(e?.summary?.total_outstanding_amount)]})]})]})]}),e?.comment&&o.jsxs(w,{className:"flex items-center gap-1 text-[.625rem] bg-metrifox-white p-2 mt-40 border-[0.03rem] border-grey-300 rounded",children:[o.jsx(V,{variant:"body8",children:"Note:"}),o.jsx(V,{variant:"body8",children:e?.comment})]}),o.jsx(w,{className:"border-t-[0.03rem] border-grey-300 pb-3 w-full mt-20",children:o.jsxs(w,{className:"flex items-center justify-center gap-2 mt-1",children:[o.jsx(V,{variant:"body8",className:"text-metrifox-black",children:"Powered by"}),o.jsx(w1,{height:30,width:100})]})})]})},k1=p.createContext({});function ti(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const ni=typeof window<"u",E1=ni?p.useLayoutEffect:p.useEffect,ri=p.createContext(null);function si(e,t){e.indexOf(t)===-1&&e.push(t)}function oi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Mt=(e,t,n)=>n>t?t:n<e?e:n;function ii(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vn=()=>{},Dt=()=>{};process.env.NODE_ENV!=="production"&&(Vn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ii(t,n))},Dt=(e,t,n)=>{if(!e)throw new Error(ii(t,n))});const Nt={},S1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function L1(e){return typeof e=="object"&&e!==null}const T1=e=>/^0[^.\s]+$/u.test(e);function ai(e){let t;return()=>(t===void 0&&(t=e()),t)}const et=e=>e,qp=(e,t)=>n=>t(e(n)),mr=(...e)=>e.reduce(qp),gr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class li{constructor(){this.subscriptions=[]}add(t){return si(this.subscriptions,t),()=>oi(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a<s;a++){const i=this.subscriptions[a];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ft=e=>e*1e3,tt=e=>e/1e3;function M1(e,t){return t?e*(1e3/t):0}const D1=new Set;function ci(e,t,n){e||D1.has(t)||(console.warn(ii(t,n)),D1.add(t))}const N1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xp=1e-7,Jp=12;function Qp(e,t,n,r,s){let a,i,l=0;do i=t+(n-t)/2,a=N1(i,r,s)-e,a>0?n=i:t=i;while(Math.abs(a)>Xp&&++l<Jp);return i}function xr(e,t,n,r){if(e===t&&n===r)return et;const s=a=>Qp(a,0,1,e,n);return a=>a===0||a===1?a:N1(s(a),t,r)}const P1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,A1=e=>t=>1-e(1-t),R1=xr(.33,1.53,.69,.99),ui=A1(R1),_1=P1(ui),F1=e=>(e*=2)<1?.5*ui(e):.5*(2-Math.pow(2,-10*(e-1))),di=e=>1-Math.sin(Math.acos(e)),V1=A1(di),$1=P1(di),e9=xr(.42,0,1,1),t9=xr(0,0,.58,1),O1=xr(.42,0,.58,1),n9=e=>Array.isArray(e)&&typeof e[0]!="number",B1=e=>Array.isArray(e)&&typeof e[0]=="number",I1={linear:et,easeIn:e9,easeInOut:O1,easeOut:t9,circIn:di,circInOut:$1,circOut:V1,backIn:ui,backInOut:_1,backOut:R1,anticipate:F1},r9=e=>typeof e=="string",H1=e=>{if(B1(e)){Dt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return xr(t,n,r,s)}else if(r9(e))return Dt(I1[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),I1[e];return e},Ss=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function s9(e,t){let n=new Set,r=new Set,s=!1,a=!1;const i=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,h=!1)=>{const m=h&&s?n:r;return f&&i.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(l=d,s){a=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),n.clear(),s=!1,a&&(a=!1,u.process(d))}};return u}const o9=40;function W1(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=Ss.reduce((b,k)=>(b[k]=s9(a),b),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:g,postRender:m}=i,x=()=>{const b=Nt.useManualTiming?s.timestamp:performance.now();n=!1,Nt.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,o9),1)),s.timestamp=b,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),g.process(s),m.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},v=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Ss.reduce((b,k)=>{const E=i[k];return b[k]=(j,T=!1,N=!1)=>(n||v(),E.schedule(j,T,N)),b},{}),cancel:b=>{for(let k=0;k<Ss.length;k++)i[Ss[k]].cancel(b)},state:s,steps:i}}const{schedule:ue,cancel:Pt,state:Se,steps:fi}=W1(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0);let Ls;function i9(){Ls=void 0}const We={now:()=>(Ls===void 0&&We.set(Se.isProcessing||Nt.useManualTiming?Se.timestamp:performance.now()),Ls),set:e=>{Ls=e,queueMicrotask(i9)}},U1=e=>t=>typeof t=="string"&&t.startsWith(e),hi=U1("--"),a9=U1("var(--"),pi=e=>a9(e)?l9.test(e.split("/*")[0].trim()):!1,l9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$n={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yr={...$n,transform:e=>Mt(0,1,e)},Ts={...$n,default:1},vr=e=>Math.round(e*1e5)/1e5,mi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c9(e){return e==null}const u9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gi=(e,t)=>n=>!!(typeof n=="string"&&u9.test(n)&&n.startsWith(e)||t&&!c9(n)&&Object.prototype.hasOwnProperty.call(n,t)),Z1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,a,i,l]=r.match(mi);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},d9=e=>Mt(0,255,e),xi={...$n,transform:e=>Math.round(d9(e))},cn={test:gi("rgb","red"),parse:Z1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xi.transform(e)+", "+xi.transform(t)+", "+xi.transform(n)+", "+vr(yr.transform(r))+")"};function f9(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const yi={test:gi("#"),parse:f9,transform:cn.transform},br=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bt=br("deg"),Ct=br("%"),X=br("px"),h9=br("vh"),p9=br("vw"),z1=(()=>({...Ct,parse:e=>Ct.parse(e)/100,transform:e=>Ct.transform(e*100)}))(),On={test:gi("hsl","hue"),parse:Z1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ct.transform(vr(t))+", "+Ct.transform(vr(n))+", "+vr(yr.transform(r))+")"},Ce={test:e=>cn.test(e)||yi.test(e)||On.test(e),parse:e=>cn.test(e)?cn.parse(e):On.test(e)?On.parse(e):yi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cn.transform(e):On.transform(e),getAnimatableNone:e=>{const t=Ce.parse(e);return t.alpha=0,Ce.transform(t)}},m9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g9(e){return isNaN(e)&&typeof e=="string"&&(e.match(mi)?.length||0)+(e.match(m9)?.length||0)>0}const K1="number",Y1="color",x9="var",y9="var(",G1="${}",v9=/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 Cr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let a=0;const l=t.replace(v9,c=>(Ce.test(c)?(r.color.push(a),s.push(Y1),n.push(Ce.parse(c))):c.startsWith(y9)?(r.var.push(a),s.push(x9),n.push(c)):(r.number.push(a),s.push(K1),n.push(parseFloat(c))),++a,G1)).split(G1);return{values:n,split:l,indexes:r,types:s}}function q1(e){return Cr(e).values}function X1(e){const{split:t,types:n}=Cr(e),r=t.length;return s=>{let a="";for(let i=0;i<r;i++)if(a+=t[i],s[i]!==void 0){const l=n[i];l===K1?a+=vr(s[i]):l===Y1?a+=Ce.transform(s[i]):a+=s[i]}return a}}const b9=e=>typeof e=="number"?0:Ce.test(e)?Ce.getAnimatableNone(e):e;function C9(e){const t=q1(e);return X1(e)(t.map(b9))}const It={test:g9,parse:q1,createTransformer:X1,getAnimatableNone:C9};function vi(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 w9({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,i=0;if(!t)s=a=i=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=vi(c,l,e+1/3),a=vi(c,l,e),i=vi(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}function Ms(e,t){return n=>n>0?t:e}const fe=(e,t,n)=>e+(t-e)*n,bi=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},j9=[yi,cn,On],k9=e=>j9.find(t=>t.test(e));function J1(e){const t=k9(e);if(Vn(!!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===On&&(n=w9(n)),n}const Q1=(e,t)=>{const n=J1(e),r=J1(t);if(!n||!r)return Ms(e,t);const s={...n};return a=>(s.red=bi(n.red,r.red,a),s.green=bi(n.green,r.green,a),s.blue=bi(n.blue,r.blue,a),s.alpha=fe(n.alpha,r.alpha,a),cn.transform(s))},Ci=new Set(["none","hidden"]);function E9(e,t){return Ci.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function S9(e,t){return n=>fe(e,t,n)}function wi(e){return typeof e=="number"?S9:typeof e=="string"?pi(e)?Ms:Ce.test(e)?Q1:M9:Array.isArray(e)?eu:typeof e=="object"?Ce.test(e)?Q1:L9:Ms}function eu(e,t){const n=[...e],r=n.length,s=e.map((a,i)=>wi(a)(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=s[i](a);return n}}function L9(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=wi(e[s])(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}}function T9(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],i=e.indexes[a][r[a]],l=e.values[i]??0;n[s]=l,r[a]++}return n}const M9=(e,t)=>{const n=It.createTransformer(t),r=Cr(e),s=Cr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Ci.has(e)&&!s.values.length||Ci.has(t)&&!r.values.length?E9(e,t):mr(eu(T9(r,s),s.values),n):(Vn(!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"),Ms(e,t))};function tu(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fe(e,t,n):wi(e)(e,t)}const D9=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ue.update(t,n),stop:()=>Pt(t),now:()=>Se.isProcessing?Se.timestamp:We.now()}},nu=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let a=0;a<s;a++)r+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ds=2e4;function ji(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ds;)t+=n,r=e.next(t);return t>=Ds?1/0:t}function N9(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(ji(r),Ds);return{type:"keyframes",ease:a=>r.next(s*a).value/t,duration:tt(s)}}const P9=5;function ru(e,t,n){const r=Math.max(t-P9,0);return M1(n-e(r),t-r)}const he={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},ki=.001;function A9({duration:e=he.duration,bounce:t=he.bounce,velocity:n=he.velocity,mass:r=he.mass}){let s,a;Vn(e<=ft(he.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Mt(he.minDamping,he.maxDamping,i),e=Mt(he.minDuration,he.maxDuration,tt(e)),i<1?(s=u=>{const d=u*i,f=d*e,h=d-n,g=Ei(u,i),m=Math.exp(-f);return ki-h/g*m},a=u=>{const f=u*i*e,h=f*n+n,g=Math.pow(i,2)*Math.pow(u,2)*e,m=Math.exp(-f),x=Ei(Math.pow(u,2),i);return(-s(u)+ki>0?-1:1)*((h-g)*m)/x}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-ki+d*f},a=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=_9(s,a,l);if(e=ft(e),isNaN(c))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const R9=12;function _9(e,t,n){let r=n;for(let s=1;s<R9;s++)r=r-e(r)/t(r);return r}function Ei(e,t){return e*Math.sqrt(1-t*t)}const F9=["duration","bounce"],V9=["stiffness","damping","mass"];function su(e,t){return t.some(n=>e[n]!==void 0)}function $9(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!su(e,V9)&&su(e,F9))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,a=2*Mt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:a}}else{const n=A9(e);t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function Ns(e=he.visualDuration,t=he.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const a=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=$9({...n,velocity:-tt(n.velocity||0)}),m=h||0,x=u/(2*Math.sqrt(c*d)),v=i-a,y=tt(Math.sqrt(c/d)),C=Math.abs(v)<5;r||(r=C?he.restSpeed.granular:he.restSpeed.default),s||(s=C?he.restDelta.granular:he.restDelta.default);let b;if(x<1){const E=Ei(y,x);b=j=>{const T=Math.exp(-x*y*j);return i-T*((m+x*y*v)/E*Math.sin(E*j)+v*Math.cos(E*j))}}else if(x===1)b=E=>i-Math.exp(-y*E)*(v+(m+y*v)*E);else{const E=y*Math.sqrt(x*x-1);b=j=>{const T=Math.exp(-x*y*j),N=Math.min(E*j,300);return i-T*((m+x*y*v)*Math.sinh(N)+E*v*Math.cosh(N))/E}}const k={calculatedDuration:g&&f||null,next:E=>{const j=b(E);if(g)l.done=E>=f;else{let T=E===0?m:0;x<1&&(T=E===0?ft(m):ru(b,E,j));const N=Math.abs(T)<=r,I=Math.abs(i-j)<=s;l.done=N&&I}return l.value=l.done?i:j,l},toString:()=>{const E=Math.min(ji(k),Ds),j=nu(T=>k.next(E*T).value,E,30);return E+"ms "+j},toTransition:()=>{}};return k}Ns.applyToOptions=e=>{const t=N9(e,100,Ns);return e.ease=t.ease,e.duration=ft(t.duration),e.type="keyframes",e};function Si({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:i,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=N=>l!==void 0&&N<l||c!==void 0&&N>c,m=N=>l===void 0?c:c===void 0||Math.abs(l-N)<Math.abs(c-N)?l:c;let x=n*t;const v=f+x,y=i===void 0?v:i(v);y!==v&&(x=y-f);const C=N=>-x*Math.exp(-N/r),b=N=>y+C(N),k=N=>{const I=C(N),F=b(N);h.done=Math.abs(I)<=u,h.value=h.done?y:F};let E,j;const T=N=>{g(h.value)&&(E=N,j=Ns({keyframes:[h.value,m(h.value)],velocity:ru(b,N,h.value),damping:s,stiffness:a,restDelta:u,restSpeed:d}))};return T(0),{calculatedDuration:null,next:N=>{let I=!1;return!j&&E===void 0&&(I=!0,k(N),T(N)),E!==void 0&&N>=E?j.next(N-E):(!I&&k(N),h)}}}function O9(e,t,n){const r=[],s=n||Nt.mix||tu,a=e.length-1;for(let i=0;i<a;i++){let l=s(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||et:t;l=mr(c,l)}r.push(l)}return r}function ou(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const a=e.length;if(Dt(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=O9(t,r,s),c=l.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=gr(e[f],e[f+1],d);return l[f](h)};return n?d=>u(Mt(e[0],e[a-1],d)):u}function B9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=gr(0,t,r);e.push(fe(n,1,s))}}function I9(e){const t=[0];return B9(t,e.length-1),t}function H9(e,t){return e.map(n=>n*t)}function W9(e,t){return e.map(()=>t||O1).splice(0,e.length-1)}function Bn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=n9(r)?r.map(H1):H1(r),a={done:!1,value:t[0]},i=H9(n&&n.length===t.length?n:I9(t),e),l=ou(i,t,{ease:Array.isArray(s)?s:W9(t,s)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const U9=e=>e!==null;function Li(e,{repeat:t,repeatType:n="loop"},r,s=1){const a=e.filter(U9),l=s<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!l||r===void 0?a[l]:r}const Z9={decay:Si,inertia:Si,tween:Bn,keyframes:Bn,spring:Ns};function iu(e){typeof e.type=="string"&&(e.type=Z9[e.type])}class Ti{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 z9=e=>e/100;class Mi extends Ti{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!==We.now()&&this.tick(We.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;iu(t);const{type:n=Bn,repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:i=0}=t;let{keyframes:l}=t;const c=n||Bn;process.env.NODE_ENV!=="production"&&c!==Bn&&Dt(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Bn&&typeof l[0]!="number"&&(this.mixKeyframes=mr(z9,tu(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=ji(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,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:s,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:g,type:m,onUpdate:x,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let b=this.currentTime,k=r;if(f){const N=Math.min(this.currentTime,s)/l;let I=Math.floor(N),F=N%1;!F&&N>=1&&(F=1),F===1&&I--,I=Math.min(I,f+1),!!(I%2)&&(h==="reverse"?(F=1-F,g&&(F-=g/l)):h==="mirror"&&(k=i)),b=Mt(0,1,F)*l}const E=C?{done:!1,value:d[0]}:k.next(b);a&&(E.value=a(E.value));let{done:j}=E;!C&&c!==null&&(j=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return T&&m!==Si&&(E.value=Li(d,this.options,v,this.speed)),x&&x(E.value),T&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return tt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+tt(t)}get time(){return tt(this.currentTime)}set time(t){t=ft(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(We.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=tt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=D9,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),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(We.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 K9(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const un=e=>e*180/Math.PI,Di=e=>{const t=un(Math.atan2(e[1],e[0]));return Ni(t)},Y9={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Di,rotateZ:Di,skewX:e=>un(Math.atan(e[1])),skewY:e=>un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ni=e=>(e=e%360,e<0&&(e+=360),e),au=Di,lu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G9={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lu,scaleY:cu,scale:e=>(lu(e)+cu(e))/2,rotateX:e=>Ni(un(Math.atan2(e[6],e[5]))),rotateY:e=>Ni(un(Math.atan2(-e[2],e[0]))),rotateZ:au,rotate:au,skewX:e=>un(Math.atan(e[4])),skewY:e=>un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pi(e){return e.includes("scale")?1:0}function Ai(e,t){if(!e||e==="none")return Pi(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=G9,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Y9,s=l}if(!s)return Pi(t);const a=r[t],i=s[1].split(",").map(X9);return typeof a=="function"?a(i):i[a]}const q9=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ai(n,t)};function X9(e){return parseFloat(e.trim())}const In=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hn=(()=>new Set(In))(),uu=e=>e===$n||e===X,J9=new Set(["x","y","z"]),Q9=In.filter(e=>!J9.has(e));function em(e){const t=[];return Q9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const dn={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})=>Ai(t,"x"),y:(e,{transform:t})=>Ai(t,"y")};dn.translateX=dn.x,dn.translateY=dn.y;const fn=new Set;let Ri=!1,_i=!1,Fi=!1;function du(){if(_i){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=em(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([a,i])=>{r.getValue(a)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_i=!1,Ri=!1,fn.forEach(e=>e.complete(Fi)),fn.clear()}function fu(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_i=!0)})}function tm(){Fi=!0,fu(),du(),Fi=!1}class Vi{constructor(t,n,r,s,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(fn.add(this),Ri||(Ri=!0,ue.read(fu),ue.resolveKeyframes(du))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const a=s?.get(),i=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),s&&a===void 0&&s.set(t[0])}K9(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fn.delete(this)}cancel(){this.state==="scheduled"&&(fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const nm=e=>e.startsWith("--");function rm(e,t,n){nm(t)?e.style.setProperty(t,n):e.style[t]=n}const sm=ai(()=>window.ScrollTimeline!==void 0),om={};function im(e,t){const n=ai(e);return()=>om[t]??n()}const hu=im(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wr([0,.65,.55,1]),circOut:wr([.55,0,1,.45]),backIn:wr([.31,.01,.66,-.59]),backOut:wr([.33,1.53,.69,.99])};function mu(e,t){if(e)return typeof e=="function"?hu()?nu(e,t):"ease-out":B1(e)?wr(e):Array.isArray(e)?e.map(n=>mu(n,t)||pu.easeOut):pu[e]}function am(e,t,n,{delay:r=0,duration:s=300,repeat:a=0,repeatType:i="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=mu(l,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function gu(e){return typeof e=="function"&&"applyToOptions"in e}function lm({type:e,...t}){return gu(e)&&hu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class cm extends Ti{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=t,Dt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=lm(t);this.animation=am(n,r,s,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=Li(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):rm(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 tt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+tt(t)}get time(){return tt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ft(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&&sm()?(this.animation.timeline=t,et):n(this)}}const xu={anticipate:F1,backInOut:_1,circInOut:$1};function um(e){return e in xu}function dm(e){typeof e.ease=="string"&&um(e.ease)&&(e.ease=xu[e.ease])}const yu=10;class fm extends cm{constructor(t){dm(t),iu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:a,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Mi({...i,autoplay:!1}),c=ft(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-yu).value,l.sample(c).value,yu),l.stop()}}const vu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(It.test(e)||e==="0")&&!e.startsWith("url("));function hm(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 pm(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],i=vu(s,t),l=vu(a,t);return Vn(i===l,`You are trying to animate ${t} from "${s}" to "${a}". "${i?a:s}" is not an animatable value.`,"value-not-animatable"),!i||!l?!1:hm(e)||(n==="spring"||gu(n))&&r}function $i(e){e.duration=0,e.type="keyframes"}const mm=new Set(["opacity","clipPath","filter","transform"]),gm=ai(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function xm(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:a,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return gm()&&n&&mm.has(n)&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&a!==0&&i!=="inertia"}const ym=40;class vm extends Ti{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:i="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=We.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:a,repeatType:i,name:c,motionValue:u,element:d,...f},g=d?.KeyframeResolver||Vi;this.keyframeResolver=new g(l,(m,x,v)=>this.onKeyframesResolved(m,x,h,!v),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,s){this.keyframeResolver=void 0;const{name:a,type:i,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=We.now(),pm(t,a,i,l)||((Nt.instantAnimations||!c)&&d?.(Li(t,r,n)),t[0]=t[t.length-1],$i(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>ym?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&xm(h)?new fm({...h,element:h.motionValue.owner.current}):new Mi(h);g.finished.then(()=>this.notifyFinished()).catch(et),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}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(),tm()),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 bm=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Cm(e){const t=bm.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const wm=4;function bu(e,t,n=1){Dt(n<=wm,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=Cm(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return S1(i)?parseFloat(i):i}return pi(s)?bu(s,t,n+1):s}function Oi(e,t){return e?.[t]??e?.default??e}const Cu=new Set(["width","height","top","left","right","bottom",...In]),jm={test:e=>e==="auto",parse:e=>e},wu=e=>t=>t.test(e),ju=[$n,X,Ct,Bt,p9,h9,jm],ku=e=>ju.find(wu(e));function km(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||T1(e):!0}const Em=new Set(["brightness","contrast","saturate","opacity"]);function Sm(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mi)||[];if(!r)return e;const s=n.replace(r,"");let a=Em.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const Lm=/\b([a-z-]*)\(.*?\)/gu,Bi={...It,getAnimatableNone:e=>{const t=e.match(Lm);return t?t.map(Sm).join(" "):e}},Eu={...$n,transform:Math.round},Tm={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:Ts,scaleX:Ts,scaleY:Ts,scaleZ:Ts,skew:Bt,skewX:Bt,skewY:Bt,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:yr,originX:z1,originY:z1,originZ:X},Ii={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X,...Tm,zIndex:Eu,fillOpacity:yr,strokeOpacity:yr,numOctaves:Eu},Mm={...Ii,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:Bi,WebkitFilter:Bi},Su=e=>Mm[e];function Lu(e,t){let n=Su(e);return n!==Bi&&(n=It),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dm=new Set(["auto","none","0"]);function Nm(e,t,n){let r=0,s;for(;r<e.length&&!s;){const a=e[r];typeof a=="string"&&!Dm.has(a)&&Cr(a).values.length&&(s=e[r]),r++}if(s&&n)for(const a of t)e[a]=Lu(n,s)}class Pm extends Vi{constructor(t,n,r,s,a){super(t,n,r,s,a,!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(),pi(u))){const d=bu(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Cu.has(r)||t.length!==2)return;const[s,a]=t,i=ku(s),l=ku(a);if(i!==l)if(uu(i)&&uu(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else dn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||km(t[s]))&&r.push(s);r.length&&Nm(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=dn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,i=r[a];r[a]=dn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Am(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=n?.[e]??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Tu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Rm(e){return L1(e)&&"offsetHeight"in e}const Mu=30,_m=e=>!isNaN(parseFloat(e)),jr={current:void 0};class Fm{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=We.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=We.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_m(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ci(!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 li);const r=this.events[t].add(n);return t==="change"?()=>{r(),ue.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 jr.current&&jr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=We.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mu);return M1(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 hn(e,t){return new Fm(e,t)}const{schedule:Hi}=W1(queueMicrotask,!1),ht={x:!1,y:!1};function Du(){return ht.x||ht.y}function Vm(e){return e==="x"||e==="y"?ht[e]?null:(ht[e]=!0,()=>{ht[e]=!1}):ht.x||ht.y?null:(ht.x=ht.y=!0,()=>{ht.x=ht.y=!1})}function Nu(e,t){const n=Am(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Pu(e){return!(e.pointerType==="touch"||Du())}function $m(e,t,n={}){const[r,s,a]=Nu(e,n),i=l=>{if(!Pu(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{Pu(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return r.forEach(l=>{l.addEventListener("pointerenter",i,s)}),a}const Au=(e,t)=>t?e===t?!0:Au(e,t.parentElement):!1,Wi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Om=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bm(e){return Om.has(e.tagName)||e.tabIndex!==-1}const Ps=new WeakSet;function Ru(e){return t=>{t.key==="Enter"&&e(t)}}function Ui(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Im=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ru(()=>{if(Ps.has(n))return;Ui(n,"down");const s=Ru(()=>{Ui(n,"up")}),a=()=>Ui(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _u(e){return Wi(e)&&!Du()}function Hm(e,t,n={}){const[r,s,a]=Nu(e,n),i=l=>{const c=l.currentTarget;if(!_u(l))return;Ps.add(c);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Ps.has(c)&&Ps.delete(c),_u(g)&&typeof u=="function"&&u(g,{success:m})},f=g=>{d(g,c===window||c===document||n.useGlobalTarget||Au(c,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",i,s),Rm(l)&&(l.addEventListener("focus",u=>Im(u,s)),!Bm(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function Fu(e){return L1(e)&&"ownerSVGElement"in e}function Wm(e){return Fu(e)&&e.tagName==="svg"}function Um(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],a=e[2+n],i=e[3+n],l=ou(s,a,i);return t?l(r):l}const Ne=e=>!!(e&&e.getVelocity),Zm=[...ju,Ce,It],zm=e=>Zm.find(wu(e)),Zi=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Km(e=!0){const t=p.useContext(ri);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,a=p.useId();p.useEffect(()=>{if(e)return s(a)},[e]);const i=p.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,i]:[!0]}const Vu=p.createContext({strict:!1}),$u={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"]},Wn={};for(const e in $u)Wn[e]={isEnabled:t=>$u[e].some(n=>!!t[n])};function Ym(e){for(const t in e)Wn[t]={...Wn[t],...e[t]}}const Gm=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 As(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gm.has(e)}let Ou=e=>!As(e);function qm(e){typeof e=="function"&&(Ou=t=>t.startsWith("on")?!As(t):e(t))}try{qm(require("@emotion/is-prop-valid").default)}catch{}function Xm(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Ou(s)||n===!0&&As(s)||!t&&!As(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Rs=p.createContext({});function _s(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function kr(e){return typeof e=="string"||Array.isArray(e)}const zi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ki=["initial",...zi];function Fs(e){return _s(e.animate)||Ki.some(t=>kr(e[t]))}function Bu(e){return!!(Fs(e)||e.variants)}function Jm(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||kr(n)?n:void 0,animate:kr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Qm(e){const{initial:t,animate:n}=Jm(e,p.useContext(Rs));return p.useMemo(()=>({initial:t,animate:n}),[Iu(t),Iu(n)])}function Iu(e){return Array.isArray(e)?e.join(" "):e}const Er={};function e7(e){for(const t in e)Er[t]=e[t],hi(t)&&(Er[t].isCSSVariable=!0)}function Hu(e,{layout:t,layoutId:n}){return Hn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Er[e]||e==="opacity")}const t7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},n7=In.length;function r7(e,t,n){let r="",s=!0;for(let a=0;a<n7;a++){const i=In[a],l=e[i];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(i.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=Tu(l,Ii[i]);if(!c){s=!1;const d=t7[i]||i;r+=`${d}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Yi(e,t,n){const{style:r,vars:s,transformOrigin:a}=e;let i=!1,l=!1;for(const c in t){const u=t[c];if(Hn.has(c)){i=!0;continue}else if(hi(c)){s[c]=u;continue}else{const d=Tu(u,Ii[c]);c.startsWith("origin")?(l=!0,a[c]=d):r[c]=d}}if(t.transform||(i||n?r.transform=r7(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;r.transformOrigin=`${c} ${u} ${d}`}}const Gi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wu(e,t,n){for(const r in t)!Ne(t[r])&&!Hu(r,n)&&(e[r]=t[r])}function s7({transformTemplate:e},t){return p.useMemo(()=>{const n=Gi();return Yi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function o7(e,t){const n=e.style||{},r={};return Wu(r,n,e),Object.assign(r,s7(e,t)),r}function i7(e,t){const n={},r=o7(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 a7={offset:"stroke-dashoffset",array:"stroke-dasharray"},l7={offset:"strokeDashoffset",array:"strokeDasharray"};function c7(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?a7:l7;e[a.offset]=X.transform(-r);const i=X.transform(t),l=X.transform(n);e[a.array]=`${i} ${l}`}function Uu(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:a=1,pathOffset:i=0,...l},c,u,d){if(Yi(e,l,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),s!==void 0&&c7(f,s,a,i,!1)}const Zu=()=>({...Gi(),attrs:{}}),zu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function u7(e,t,n,r){const s=p.useMemo(()=>{const a=Zu();return Uu(a,t,zu(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Wu(a,e.style,e),s.style={...a,...s.style}}return s}const d7=["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 qi(e){return typeof e!="string"||e.includes("-")?!1:!!(d7.indexOf(e)>-1||/[A-Z]/u.test(e))}function f7(e,t,n,{latestValues:r},s,a=!1){const l=(qi(e)?u7:i7)(t,r,s,e),c=Xm(t,typeof e=="string",a),u=e!==p.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=p.useMemo(()=>Ne(d)?d.get():d,[d]);return p.createElement(e,{...u,children:f})}function Ku(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xi(e,t,n,r){if(typeof t=="function"){const[s,a]=Ku(r);t=t(n!==void 0?n:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=Ku(r);t=t(n!==void 0?n:e.custom,s,a)}return t}function Vs(e){return Ne(e)?e.get():e}function h7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:p7(n,r,s,e),renderState:t()}}function p7(e,t,n,r){const s={},a=r(e,{});for(const h in a)s[h]=Vs(a[h]);let{initial:i,animate:l}=e;const c=Fs(e),u=Bu(e);t&&u&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?l:i;if(f&&typeof f!="boolean"&&!_s(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const m=Xi(e,h[g]);if(m){const{transitionEnd:x,transition:v,...y}=m;for(const C in y){let b=y[C];if(Array.isArray(b)){const k=d?b.length-1:0;b=b[k]}b!==null&&(s[C]=b)}for(const C in x)s[C]=x[C]}}}return s}const Yu=e=>(t,n)=>{const r=p.useContext(Rs),s=p.useContext(ri),a=()=>h7(e,t,r,s);return n?a():ti(a)};function Ji(e,t,n){const{style:r}=e,s={};for(const a in r)(Ne(r[a])||t.style&&Ne(t.style[a])||Hu(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=r[a]);return s}const m7=Yu({scrapeMotionValuesFromProps:Ji,createRenderState:Gi});function Gu(e,t,n){const r=Ji(e,t,n);for(const s in e)if(Ne(e[s])||Ne(t[s])){const a=In.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[a]=e[s]}return r}const g7=Yu({scrapeMotionValuesFromProps:Gu,createRenderState:Zu}),x7=Symbol.for("motionComponentSymbol");function Un(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y7(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Un(n)&&(n.current=r))},[t])}const Qi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),v7="framerAppearId",qu="data-"+Qi(v7),Xu=p.createContext({});function b7(e,t,n,r,s){const{visualElement:a}=p.useContext(Rs),i=p.useContext(Vu),l=p.useContext(ri),c=p.useContext(Zi).reducedMotion,u=p.useRef(null);r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,f=p.useContext(Xu);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&C7(u.current,n,s,f);const h=p.useRef(!1);p.useInsertionEffect(()=>{d&&h.current&&d.update(n,l)});const g=n[qu],m=p.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return E1(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),p.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),m.current=!1),d.enteringChildren=void 0)}),d}function C7(e,t,n,r){const{layoutId:s,layout:a,drag:i,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ju(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!i||l&&Un(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function Ju(e){if(e)return e.options.allowProjection!==!1?e.projection:Ju(e.parent)}function ea(e,{forwardMotionProps:t=!1}={},n,r){n&&Ym(n);const s=qi(e)?g7:m7;function a(l,c){let u;const d={...p.useContext(Zi),...l,layoutId:w7(l)},{isStatic:f}=d,h=Qm(l),g=s(l,f);if(!f&&ni){j7(d,n);const m=k7(d);u=m.MeasureLayout,h.visualElement=b7(e,g,d,r,m.ProjectionNode)}return o.jsxs(Rs.Provider,{value:h,children:[u&&h.visualElement?o.jsx(u,{visualElement:h.visualElement,...d}):null,f7(e,l,y7(g,h.visualElement,c),g,f,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=p.forwardRef(a);return i[x7]=e,i}function w7({layoutId:e}){const t=p.useContext(k1).id;return t&&e!==void 0?t+"-"+e:e}function j7(e,t){const n=p.useContext(Vu).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?Vn(!1,r,"lazy-strict-mode"):Dt(!1,r,"lazy-strict-mode")}}function k7(e){const{drag:t,layout:n}=Wn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function E7(e,t){if(typeof Proxy>"u")return ea;const n=new Map,r=(a,i)=>ea(a,i,e,t),s=(a,i)=>(process.env.NODE_ENV!=="production"&&ci(!1,"motion() is deprecated. Use motion.create() instead."),r(a,i));return new Proxy(s,{get:(a,i)=>i==="create"?r:(n.has(i)||n.set(i,ea(i,void 0,e,t)),n.get(i))})}function Qu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function S7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L7(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 ta(e){return e===void 0||e===1}function na({scale:e,scaleX:t,scaleY:n}){return!ta(e)||!ta(t)||!ta(n)}function pn(e){return na(e)||ed(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ed(e){return td(e.x)||td(e.y)}function td(e){return e&&e!=="0%"}function $s(e,t,n){const r=e-n,s=t*r;return n+s}function nd(e,t,n,r,s){return s!==void 0&&(e=$s(e,s,r)),$s(e,n,r)+t}function ra(e,t=0,n=1,r,s){e.min=nd(e.min,t,n,r,s),e.max=nd(e.max,t,n,r,s)}function rd(e,{x:t,y:n}){ra(e.x,t.translate,t.scale,t.originPoint),ra(e.y,n.translate,n.scale,n.originPoint)}const sd=.999999999999,od=1.0000000000001;function T7(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let a,i;for(let l=0;l<s;l++){a=n[l],i=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zn(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,rd(e,i)),r&&pn(a.latestValues)&&zn(e,a.latestValues))}t.x<od&&t.x>sd&&(t.x=1),t.y<od&&t.y>sd&&(t.y=1)}function Zn(e,t){e.min=e.min+t,e.max=e.max+t}function id(e,t,n,r,s=.5){const a=fe(e.min,e.max,s);ra(e,t,n,a,r)}function zn(e,t){id(e.x,t.x,t.scaleX,t.scale,t.originX),id(e.y,t.y,t.scaleY,t.scale,t.originY)}function ad(e,t){return Qu(L7(e.getBoundingClientRect(),t))}function M7(e,t,n){const r=ad(e,n),{scroll:s}=t;return s&&(Zn(r.x,s.offset.x),Zn(r.y,s.offset.y)),r}const ld=()=>({translate:0,scale:1,origin:0,originPoint:0}),Kn=()=>({x:ld(),y:ld()}),cd=()=>({min:0,max:0}),xe=()=>({x:cd(),y:cd()}),sa={current:null},ud={current:!1};function D7(){if(ud.current=!0,!!ni)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sa.current=e.matches;e.addEventListener("change",t),t()}else sa.current=!1}const N7=new WeakMap;function P7(e,t,n){for(const r in t){const s=t[r],a=n[r];if(Ne(s))e.addValue(r,s);else if(Ne(a))e.addValue(r,hn(s,{owner:e}));else if(a!==s)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(r);e.addValue(r,hn(i!==void 0?i:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class A7{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:a,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vi,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=We.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ue.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=s,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=Fs(n),this.isVariantNode=Bu(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 g=f[h];c[h]!==void 0&&Ne(g)&&g.set(c[h])}}mount(t){this.current=t,N7.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)),ud.current||D7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sa.current,process.env.NODE_ENV!=="production"&&ci(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(),Pt(this.notifyUpdate),Pt(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=Hn.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),a&&a(),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 Wn){const n=Wn[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xe()}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<dd.length;r++){const s=dd[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,i=t[a];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=P7(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=hn(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"&&(S1(r)||T1(r))?r=parseFloat(r):!zm(r)&&It.test(n)&&(r=Lu(t,n)),this.setBaseTarget(t,Ne(r)?r.get():r)),Ne(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 a=Xi(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Ne(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new li),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Hi.render(this.render)}}class fd extends A7{constructor(){super(...arguments),this.KeyframeResolver=Pm}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;Ne(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hd(e,{style:t,vars:n},r,s){const a=e.style;let i;for(i in t)a[i]=t[i];s?.applyProjectionStyles(a,r);for(i in n)a.setProperty(i,n[i])}function R7(e){return window.getComputedStyle(e)}class _7 extends fd{constructor(){super(...arguments),this.type="html",this.renderInstance=hd}readValueFromInstance(t,n){if(Hn.has(n))return this.projection?.isProjecting?Pi(n):q9(t,n);{const r=R7(t),s=(hi(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ad(t,n)}build(t,n,r){Yi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ji(t,n,r)}}const pd=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 F7(e,t,n,r){hd(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(pd.has(s)?s:Qi(s),t.attrs[s])}class V7 extends fd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hn.has(n)){const r=Su(n);return r&&r.default||0}return n=pd.has(n)?n:Qi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Gu(t,n,r)}build(t,n,r){Uu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){F7(t,n,r,s)}mount(t){this.isSVGTag=zu(t.tagName),super.mount(t)}}const $7=(e,t)=>qi(e)?new V7(t):new _7(t,{allowProjection:e!==p.Fragment});function Yn(e,t,n){const r=e.getProps();return Xi(r,t,n!==void 0?n:r.custom,e)}const oa=e=>Array.isArray(e);function O7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hn(n))}function B7(e){return oa(e)?e[e.length-1]||0:e}function I7(e,t){const n=Yn(e,t);let{transitionEnd:r={},transition:s={},...a}=n||{};a={...a,...r};for(const i in a){const l=B7(a[i]);O7(e,i,l)}}function H7(e){return!!(Ne(e)&&e.add)}function ia(e,t){const n=e.getValue("willChange");if(H7(n))return n.add(t);if(!n&&Nt.WillChange){const r=new Nt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function md(e){return e.props[qu]}const W7=e=>e!==null;function U7(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(W7),a=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[a]}const Z7={type:"spring",stiffness:500,damping:25,restSpeed:10},z7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),K7={type:"keyframes",duration:.8},Y7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},G7=(e,{keyframes:t})=>t.length>2?K7:Hn.has(e)?e.startsWith("scale")?z7(t[1]):Z7:Y7;function q7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:a,repeatType:i,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const aa=(e,t,n,r={},s,a)=>i=>{const l=Oi(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ft(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{i(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:s};q7(l)||Object.assign(d,G7(e,d)),d.duration&&(d.duration=ft(d.duration)),d.repeatDelay&&(d.repeatDelay=ft(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&($i(d),d.delay===0&&(f=!0)),(Nt.instantAnimations||Nt.skipAnimations)&&(f=!0,$i(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!a&&t.get()!==void 0){const h=U7(d.keyframes,l);if(h!==void 0){ue.update(()=>{d.onUpdate(h),d.onComplete()});return}}return l.isSync?new Mi(d):new vm(d)};function X7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function gd(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(a=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,e.latestValues[d]??null),h=l[d];if(h===void 0||u&&X7(u,d))continue;const g={delay:n,...Oi(a||{},d)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const y=md(e);if(y){const C=window.MotionHandoffAnimation(y,d,ue);C!==null&&(g.startTime=C,x=!0)}}ia(e,d),f.start(aa(d,f,h,e.shouldReduceMotion&&Cu.has(d)?{type:!1}:g,e,x));const v=f.animation;v&&c.push(v)}return i&&Promise.all(c).then(()=>{ue.update(()=>{i&&I7(e,i)})}),c}function xd(e,t,n,r=0,s=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,l=(i-1)*r;return typeof n=="function"?n(a,i):s===1?a*r:l-a*r}function la(e,t,n={}){const r=Yn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(gd(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return J7(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[a,i]:[i,a];return c().then(()=>u())}else return Promise.all([a(),i(n.delay)])}function J7(e,t,n=0,r=0,s=0,a=1,i){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(la(c,t,{...i,delay:n+(typeof r=="function"?0:r)+xd(e.variantChildren,c,r,s,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Q7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>la(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=la(e,t,n);else{const s=typeof t=="function"?Yn(e,t,n.custom):t;r=Promise.all(gd(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function yd(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 e4=Ki.length;function vd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<e4;n++){const r=Ki[n],s=e.props[r];(kr(s)||s===!1)&&(t[r]=s)}return t}const t4=[...zi].reverse(),n4=zi.length;function r4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Q7(e,n,r)))}function s4(e){let t=r4(e),n=bd(),r=!0;const s=c=>(u,d)=>{const f=Yn(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:g,...m}=f;u={...u,...m,...g}}return u};function a(c){t=c(e)}function i(c){const{props:u}=e,d=vd(e.parent)||{},f=[],h=new Set;let g={},m=1/0;for(let v=0;v<n4;v++){const y=t4[v],C=n[y],b=u[y]!==void 0?u[y]:d[y],k=kr(b),E=y===c?C.isActive:null;E===!1&&(m=v);let j=b===d[y]&&b!==u[y]&&k;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),C.protectedKeys={...g},!C.isActive&&E===null||!b&&!C.prevProp||_s(b)||typeof b=="boolean")continue;const T=o4(C.prevProp,b);let N=T||y===c&&C.isActive&&!j&&k||v>m&&k,I=!1;const F=Array.isArray(b)?b:[b];let $=F.reduce(s(y),{});E===!1&&($={});const{prevResolvedValues:z={}}=C,Z={...z,...$},M=P=>{N=!0,h.has(P)&&(I=!0,h.delete(P)),C.needsAnimating[P]=!0;const L=e.getValue(P);L&&(L.liveStyle=!1)};for(const P in Z){const L=$[P],O=z[P];if(g.hasOwnProperty(P))continue;let R=!1;oa(L)&&oa(O)?R=!yd(L,O):R=L!==O,R?L!=null?M(P):h.add(P):L!==void 0&&h.has(P)?M(P):C.protectedKeys[P]=!0}C.prevProp=b,C.prevResolvedValues=$,C.isActive&&(g={...g,...$}),r&&e.blockInitialAnimation&&(N=!1);const _=j&&T;N&&(!_||I)&&f.push(...F.map(P=>{const L={type:y};if(typeof P=="string"&&r&&!_&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,R=Yn(O,P);if(O.enteringChildren&&R){const{delayChildren:U}=R.transition||{};L.delay=xd(O.enteringChildren,e,U)}}return{animation:P,options:L}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const y=Yn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(v.transition=y.transition)}h.forEach(y=>{const C=e.getBaseTarget(y),b=e.getValue(y);b&&(b.liveStyle=!0),v[y]=C??null}),f.push({animation:v})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(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:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=bd()}}}function o4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yd(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bd(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class Ht{constructor(t){this.isMounted=!1,this.node=t}update(){}}class i4 extends Ht{constructor(t){super(t),t.animationState||(t.animationState=s4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();_s(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 a4=0;class l4 extends Ht{constructor(){super(...arguments),this.id=a4++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 c4={animation:{Feature:i4},exit:{Feature:l4}};function Sr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Lr(e){return{point:{x:e.pageX,y:e.pageY}}}const u4=e=>t=>Wi(t)&&e(t,Lr(t));function Tr(e,t,n,r){return Sr(e,t,u4(n),r)}const Cd=1e-4,d4=1-Cd,f4=1+Cd,wd=.01,h4=0-wd,p4=0+wd;function $e(e){return e.max-e.min}function m4(e,t,n){return Math.abs(e-t)<=n}function jd(e,t,n,r=.5){e.origin=r,e.originPoint=fe(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=d4&&e.scale<=f4||isNaN(e.scale))&&(e.scale=1),(e.translate>=h4&&e.translate<=p4||isNaN(e.translate))&&(e.translate=0)}function Mr(e,t,n,r){jd(e.x,t.x,n.x,r?r.originX:void 0),jd(e.y,t.y,n.y,r?r.originY:void 0)}function kd(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function g4(e,t,n){kd(e.x,t.x,n.x),kd(e.y,t.y,n.y)}function Ed(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function Dr(e,t,n){Ed(e.x,t.x,n.x),Ed(e.y,t.y,n.y)}function nt(e){return[e("x"),e("y")]}const Sd=({current:e})=>e?e.ownerDocument.defaultView:null,Ld=(e,t)=>Math.abs(e-t);function x4(e,t){const n=Ld(e.x,t.x),r=Ld(e.y,t.y);return Math.sqrt(n**2+r**2)}class Td{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:a=!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=ua(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=x4(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:x}=h,{timestamp:v}=Se;this.history.push({...x,timestamp:v});const{onStart:y,onMove:C}=this.handlers;g||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,g)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ca(g,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(h,g)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ua(h.type==="pointercancel"?this.lastMoveEventInfo:ca(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,y),x&&x(h,y)},!Wi(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=s||window;const l=Lr(t),c=ca(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Se;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ua(c,this.history)),this.removeListeners=mr(Tr(this.contextWindow,"pointermove",this.handlePointerMove),Tr(this.contextWindow,"pointerup",this.handlePointerUp),Tr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pt(this.updatePoint)}}function ca(e,t){return t?{point:t(e.point)}:e}function Md(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ua({point:e},t){return{point:e,delta:Md(e,Dd(t)),offset:Md(e,y4(t)),velocity:v4(t,.1)}}function y4(e){return e[0]}function Dd(e){return e[e.length-1]}function v4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Dd(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ft(t)));)n--;if(!r)return{x:0,y:0};const a=tt(s.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const i={x:(s.x-r.x)/a,y:(s.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function b4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?fe(n,e,r.max):Math.min(e,n)),e}function Nd(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 C4(e,{top:t,left:n,bottom:r,right:s}){return{x:Nd(e.x,n,s),y:Nd(e.y,t,r)}}function Pd(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 w4(e,t){return{x:Pd(e.x,t.x),y:Pd(e.y,t.y)}}function j4(e,t){let n=.5;const r=$e(e),s=$e(t);return s>r?n=gr(t.min,t.max-r,e.min):r>s&&(n=gr(e.min,e.max-s,t.min)),Mt(0,1,n)}function k4(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 da=.35;function E4(e=da){return e===!1?e=0:e===!0&&(e=da),{x:Ad(e,"left","right"),y:Ad(e,"top","bottom")}}function Ad(e,t,n){return{min:Rd(e,t),max:Rd(e,n)}}function Rd(e,t){return typeof e=="number"?e:e[t]||0}const S4=new WeakMap;class L4{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=xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Lr(f).point)},i=(f,h)=>{const{drag:g,dragPropagation:m,onDragStart:x}=this.getProps();if(g&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vm(g),!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),nt(y=>{let C=this.getAxisMotionValue(y).get()||0;if(Ct.test(C)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[y];k&&(C=$e(k)*(parseFloat(C)/100))}}this.originPoint[y]=C}),x&&ue.postRender(()=>x(f,h)),ia(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:g,dragDirectionLock:m,onDirectionLock:x,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=T4(y),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),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=()=>nt(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Td(t,{onSessionStart:a,onStart:i,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Sd(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!r)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&ue.postRender(()=>l(r,s))}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:s}=this.getProps();if(!r||!Os(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=b4(i,this.constraints[t],this.elastic[t])),a.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,s=this.constraints;t&&Un(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=C4(r.layoutBox,t):this.constraints=!1,this.elastic=E4(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k4(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Un(t))return!1;const r=t.current;Dt(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:s}=this.visualElement;if(!s||!s.layout)return!1;const a=M7(r,s.root,this.visualElement.getTransformPagePoint());let i=w4(s.layout.layoutBox,a);if(n){const l=n(S7(i));this.hasMutatedConstraints=!!l,l&&(i=Qu(l))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=nt(d=>{if(!Os(d,n,this.currentDirection))return;let f=c&&c[d]||{};i&&(f={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ia(this.visualElement,t),r.start(aa(t,r,0,n,this.visualElement,!1))}stopAnimation(){nt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nt(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(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nt(n=>{const{drag:r}=this.getProps();if(!Os(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:l}=s.layout.layoutBox[n];a.set(t[n]-fe(i,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Un(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};nt(i=>{const l=this.getAxisMotionValue(i);if(l&&this.constraints!==!1){const c=l.get();s[i]=j4({min:c,max:c},this.constraints[i])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nt(i=>{if(!Os(i,t,null))return;const l=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];l.set(fe(c,u,s[i]))})}addListeners(){if(!this.visualElement.current)return;S4.set(this.visualElement,this);const t=this.visualElement.current,n=Tr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Un(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ue.read(r);const i=Sr(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(nt(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(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:i=da,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:a,dragElastic:i,dragMomentum:l}}}function Os(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function T4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class M4 extends Ht{constructor(t){super(t),this.removeGroupControls=et,this.removeListeners=et,this.controls=new L4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}unmount(){this.removeGroupControls(),this.removeListeners()}}const _d=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))};class D4 extends Ht{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(t){this.session=new Td(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:_d(t),onStart:_d(n),onMove:r,onEnd:(a,i)=>{delete this.session,s&&ue.postRender(()=>s(a,i))}}}mount(){this.removePointerDownListener=Tr(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 Bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=Fd(e,t.target.x),r=Fd(e,t.target.y);return`${n}% ${r}%`}},N4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=It.parse(e);if(s.length>5)return r;const a=It.createTransformer(e),i=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+i]/=l,s[1+i]/=c;const u=fe(l,c,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),a(s)}};let fa=!1;class P4 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:a}=t;e7(A4),a&&(n.group&&n.group.add(a),r&&r.register&&s&&r.register(a),fa&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:a}=this.props,{projection:i}=r;return i&&(i.isPresent=a,fa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==a?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||ue.postRender(()=>{const l=i.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;fa=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vd(e){const[t,n]=Km(),r=p.useContext(k1);return o.jsx(P4,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(Xu),isPresent:t,safeToRemove:n})}const A4={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:N4};function R4(e,t,n){const r=Ne(e)?e:hn(e);return r.start(aa("",r,t,n)),r.animation}const _4=(e,t)=>e.depth-t.depth;class F4{constructor(){this.children=[],this.isDirty=!1}add(t){si(this.children,t),this.isDirty=!0}remove(t){oi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_4),this.isDirty=!1,this.children.forEach(t)}}function V4(e,t){const n=We.now(),r=({timestamp:s})=>{const a=s-n;a>=t&&(Pt(r),e(a-t))};return ue.setup(r,!0),()=>Pt(r)}const $d=["TopLeft","TopRight","BottomLeft","BottomRight"],$4=$d.length,Od=e=>typeof e=="string"?parseFloat(e):e,Bd=e=>typeof e=="number"||X.test(e);function O4(e,t,n,r,s,a){s?(e.opacity=fe(0,n.opacity??1,B4(r)),e.opacityExit=fe(t.opacity??1,0,I4(r))):a&&(e.opacity=fe(t.opacity??1,n.opacity??1,r));for(let i=0;i<$4;i++){const l=`border${$d[i]}Radius`;let c=Id(t,l),u=Id(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Bd(c)===Bd(u)?(e[l]=Math.max(fe(Od(c),Od(u),r),0),(Ct.test(u)||Ct.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=fe(t.rotate||0,n.rotate||0,r))}function Id(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const B4=Hd(0,.5,V1),I4=Hd(.5,.95,et);function Hd(e,t,n){return r=>r<e?0:r>t?1:n(gr(e,t,r))}function Wd(e,t){e.min=t.min,e.max=t.max}function rt(e,t){Wd(e.x,t.x),Wd(e.y,t.y)}function Ud(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Zd(e,t,n,r,s){return e-=t,e=$s(e,1/n,r),s!==void 0&&(e=$s(e,1/s,r)),e}function H4(e,t=0,n=1,r=.5,s,a=e,i=e){if(Ct.test(t)&&(t=parseFloat(t),t=fe(i.min,i.max,t/100)-i.min),typeof t!="number")return;let l=fe(a.min,a.max,r);e===a&&(l-=t),e.min=Zd(e.min,t,n,l,s),e.max=Zd(e.max,t,n,l,s)}function zd(e,t,[n,r,s],a,i){H4(e,t[n],t[r],t[s],t.scale,a,i)}const W4=["x","scaleX","originX"],U4=["y","scaleY","originY"];function Kd(e,t,n,r){zd(e.x,t,W4,n?n.x:void 0,r?r.x:void 0),zd(e.y,t,U4,n?n.y:void 0,r?r.y:void 0)}function Yd(e){return e.translate===0&&e.scale===1}function Gd(e){return Yd(e.x)&&Yd(e.y)}function qd(e,t){return e.min===t.min&&e.max===t.max}function Z4(e,t){return qd(e.x,t.x)&&qd(e.y,t.y)}function Xd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jd(e,t){return Xd(e.x,t.x)&&Xd(e.y,t.y)}function Qd(e){return $e(e.x)/$e(e.y)}function e0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z4{constructor(){this.members=[]}add(t){si(this.members,t),t.scheduleRender()}remove(t){if(oi(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){r=a;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:s}=t.options;s===!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 K4(e,t,n){let r="";const s=e.x.translate/t.x,a=e.y.translate/t.y,i=n?.z||0;if((s||a||i)&&(r=`translate3d(${s}px, ${a}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:g,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ha=["","X","Y","Z"],Y4=1e3;let G4=0;function pa(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function t0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=md(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(s||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t0(r)}function n0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},l=t?.()){this.id=G4++,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(J4),this.nodes.forEach(n8),this.nodes.forEach(r8),this.nodes.forEach(Q4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new F4)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new li),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Fu(i)&&!Wm(i),this.instance=i;const{layoutId:l,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||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;ue.read(()=>{f=window.innerWidth}),e(i,()=>{const g=window.innerWidth;g!==f&&(f=g,this.root.updateBlockedByResize=!0,d&&d(),d=V4(h,250),Bs.hasAnimatedSinceResize&&(Bs.hasAnimatedSinceResize=!1,this.nodes.forEach(o0)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||l8,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),y=!this.targetLayout||!Jd(this.targetLayout,g),C=!f&&h;if(this.options.layoutRoot||this.resumeFrom||C||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Oi(m,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,C)}else f||o0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),Pt(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(s8),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&&t0(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:l,layout:c}=this.options;if(l===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(r0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(s0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(t8),this.nodes.forEach(q4),this.nodes.forEach(X4)):this.nodes.forEach(s0),this.clearAllSnapshots();const l=We.now();Se.delta=Mt(0,1e3/60,l-Se.timestamp),Se.timestamp=l,Se.isProcessing=!0,fi.update.process(Se),fi.preRender.process(Se),fi.render.process(Se),Se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e8),this.sharedNodes.forEach(o8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$e(this.snapshot.measuredBox.x)&&!$e(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=xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&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(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Gd(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||pn(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),c8(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return xe();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(u8))){const{scroll:u}=this.root;u&&(Zn(l.x,u.offset.x),Zn(l.y,u.offset.y))}return l}removeElementScroll(i){const l=xe();if(rt(l,i),this.scroll?.wasRoot)return l;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&&rt(l,i),Zn(l.x,d.offset.x),Zn(l.y,d.offset.y))}return l}applyTransform(i,l=!1){const c=xe();rt(c,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&zn(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),pn(d.latestValues)&&zn(c,d.latestValues)}return pn(this.latestValues)&&zn(c,this.latestValues),c}removeTransform(i){const l=xe();rt(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!pn(u.latestValues))continue;na(u.latestValues)&&u.updateSnapshot();const d=xe(),f=u.measurePageBox();rt(d,f),Kd(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return pn(this.latestValues)&&Kd(l,this.latestValues),l}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!==Se.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;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=Se.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xe(),this.relativeTargetOrigin=xe(),Dr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xe(),this.targetWithTransforms=xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rt(this.target,this.layout.layoutBox),rd(this.target,this.targetDelta)):rt(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=xe(),this.relativeTargetOrigin=xe(),Dr(this.relativeTargetOrigin,this.target,h.target),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||na(this.parent.latestValues)||ed(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(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Se.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;rt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;T7(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=xe());const{target:g}=i;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ud(this.prevProjectionDelta.x,this.projectionDelta.x),Ud(this.prevProjectionDelta.y,this.projectionDelta.y)),Mr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!e0(this.projectionDelta.x,this.prevProjectionDelta.x)||!e0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Kn(),this.projectionDelta=Kn(),this.projectionDeltaWithTransform=Kn()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Kn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=xe(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,x=g!==m,v=this.getStack(),y=!v||v.members.length<=1,C=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(a8));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const E=k/1e3;i0(f.x,i.x,E),i0(f.y,i.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i8(this.relativeTarget,this.relativeTargetOrigin,h,E),b&&Z4(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=xe()),rt(b,this.relativeTarget)),x&&(this.animationValues=d,O4(d,u,this.latestValues,E,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{Bs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hn(0)),this.currentAnimation=R4(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},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(Y4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&d0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||xe();const f=$e(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+f;const h=$e(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}rt(l,c),zn(l,d),Mr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new z4),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):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:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&pa("z",i,u,this.animationValues);for(let d=0;d<ha.length;d++)pa(`rotate${ha[d]}`,i,u,this.animationValues),pa(`skew${ha[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,l){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=Vs(l?.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=Vs(l?.pointerEvents)||""),this.hasProjected&&!pn(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=K4(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),i.transform=f;const{x:h,y:g}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${g.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 m in Er){if(d[m]===void 0)continue;const{correct:x,applyTo:v,isCSSVariable:y}=Er[m],C=f==="none"?d[m]:x(d[m],u);if(v){const b=v.length;for(let k=0;k<b;k++)i[v[k]]=C}else y?this.options.visualElement.renderState.vars[m]=C:i[m]=C}this.options.layoutId&&(i.pointerEvents=u===this?Vs(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(r0),this.root.sharedNodes.clear()}}}function q4(e){e.updateLayout()}function X4(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:s}=e.options,a=t.source!==e.layout.source;s==="size"?nt(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=$e(f);f.min=n[d].min,f.max=f.min+h}):d0(s,t.layoutBox,n)&&nt(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=$e(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=Kn();Mr(i,n,t.layoutBox);const l=Kn();a?Mr(l,e.applyTransform(r,!0),t.measuredBox):Mr(l,n,t.layoutBox);const c=!Gd(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 g=xe();Dr(g,t.layoutBox,f.layoutBox);const m=xe();Dr(m,n,h.layoutBox),Jd(g,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function J4(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 Q4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e8(e){e.clearSnapshot()}function r0(e){e.clearMeasurements()}function s0(e){e.isLayoutDirty=!1}function t8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function o0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n8(e){e.resolveTargetDelta()}function r8(e){e.calcProjection()}function s8(e){e.resetSkewAndRotation()}function o8(e){e.removeLeadSnapshot()}function i0(e,t,n){e.translate=fe(t.translate,0,n),e.scale=fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function a0(e,t,n,r){e.min=fe(t.min,n.min,r),e.max=fe(t.max,n.max,r)}function i8(e,t,n,r){a0(e.x,t.x,n.x,r),a0(e.y,t.y,n.y,r)}function a8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const l8={duration:.45,ease:[.4,0,.1,1]},l0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),c0=l0("applewebkit/")&&!l0("chrome/")?Math.round:et;function u0(e){e.min=c0(e.min),e.max=c0(e.max)}function c8(e){u0(e.x),u0(e.y)}function d0(e,t,n){return e==="position"||e==="preserve-aspect"&&!m4(Qd(t),Qd(n),.2)}function u8(e){return e!==e.root&&e.scroll?.wasRoot}const d8=n0({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ma={current:void 0},f0=n0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ma.current){const e=new d8({});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),f8={pan:{Feature:D4},drag:{Feature:M4,ProjectionNode:f0,MeasureLayout:Vd}};function h0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,a=r[s];a&&ue.postRender(()=>a(t,Lr(t)))}class h8 extends Ht{mount(){const{current:t}=this.node;t&&(this.unmount=$m(t,(n,r)=>(h0(this.node,r,"Start"),s=>h0(this.node,s,"End"))))}unmount(){}}class p8 extends Ht{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=mr(Sr(this.node.current,"focus",()=>this.onFocus()),Sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function p0(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 s="onTap"+(n==="End"?"":n),a=r[s];a&&ue.postRender(()=>a(t,Lr(t)))}class m8 extends Ht{mount(){const{current:t}=this.node;t&&(this.unmount=Hm(t,(n,r)=>(p0(this.node,r,"Start"),(s,{success:a})=>p0(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ga=new WeakMap,xa=new WeakMap,g8=e=>{const t=ga.get(e.target);t&&t(e)},x8=e=>{e.forEach(g8)};function y8({root:e,...t}){const n=e||document;xa.has(n)||xa.set(n,{});const r=xa.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(x8,{root:e,...t})),r[s]}function v8(e,t,n){const r=y8(t);return ga.set(e,n),r.observe(e),()=>{ga.delete(e),r.unobserve(e)}}const b8={some:0,all:1};class C8 extends Ht{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:b8[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!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 v8(this.node.current,i,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(w8(t,n))&&this.startObserver()}unmount(){}}function w8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const j8={inView:{Feature:C8},tap:{Feature:m8},focus:{Feature:p8},hover:{Feature:h8}},k8={layout:{ProjectionNode:f0,MeasureLayout:Vd}},E8={...c4,...j8,...f8,...k8},Is=E7(E8,$7);function m0(e){const t=ti(()=>hn(e)),{isStatic:n}=p.useContext(Zi);if(n){const[,r]=p.useState(e);p.useEffect(()=>t.on("change",r),[])}return t}function g0(e,t){const n=m0(t()),r=()=>n.set(t());return r(),E1(()=>{const s=()=>ue.preRender(r,!1,!0),a=e.map(i=>i.on("change",s));return()=>{a.forEach(i=>i()),Pt(r)}}),n}function S8(e){jr.current=[],e();const t=g0(jr.current,e);return jr.current=void 0,t}function L8(e,t,n,r){if(typeof e=="function")return S8(e);const s=typeof t=="function"?t:Um(t,n,r);return Array.isArray(e)?x0(e,s):x0([e],([a])=>s(a))}function x0(e,t){const n=ti(()=>[]);return g0(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}const Gn=({isOpen:e,onClose:t,title:n,description:r,children:s,bottomContent:a,topContent:i,className:l,showCloseButton:c=!0,size:u="medium",variant:d="centered"})=>{const f=p.useRef(null);if(!e)return null;const h=dp[u],g={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 o.jsx(w,{onClick:m=>m.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:o.jsxs(Is.div,{ref:f,initial:g[d].initial,animate:g[d].animate,exit:g[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?o.jsx(w,{className:"p-4",children:i}):o.jsxs(w,{className:`${n?"p-6":"py-4 px-6"} border-b border-grey-200`,children:[o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(Jo,{variant:"h6",color:"text-metrifox-black",children:n}),c&&o.jsx("span",{onClick:t,className:"cursor-pointer",children:o.jsx(re,{name:"circle-close",size:24,color:"grey-800"})})]}),r&&o.jsx(V,{variant:"body4",color:"text-grey-500",className:"mt-2 mr-6",children:r})]}),o.jsx(w,{className:`flex-grow overflow-y-auto p-6 max-h-[calc(90vh - 100px)] ${!a&&"rounded-b-2xl"} ${l}`,children:s}),a&&o.jsx(w,{className:"p-4 border-t border-grey-200",children:a})]})})};var y0={exports:{}};(function(e,t){(function(n,r){e.exports=r(p)})(typeof self<"u"?self:Ut,function(n){return function(){var r={155:function(C){C.exports=n}},s={};function a(C){var b=s[C];if(b!==void 0)return b.exports;var k=s[C]={exports:{}};return r[C](k,k.exports,a),k.exports}a.d=function(C,b){for(var k in b)a.o(b,k)&&!a.o(C,k)&&Object.defineProperty(C,k,{enumerable:!0,get:b[k]})},a.o=function(C,b){return Object.prototype.hasOwnProperty.call(C,b)},a.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})};var i={};a.r(i),a.d(i,{useReactToPrint:function(){return y}});var l=a(155);const c="printWindow";function u({level:C="error",messages:b,suppressErrors:k=!1}){k||(C==="error"?console.error(b):C==="warning"?console.warn(b):console.debug(b))}function d(C,b){if(b||!C){const k=document.getElementById(c);k&&document.body.removeChild(k)}}function f(C){return C instanceof Error?C:new Error("Unknown Error")}function h(C,b){const{documentTitle:k,onAfterPrint:E,onPrintError:j,preserveAfterPrint:T,print:N,suppressErrors:I}=b;setTimeout(()=>{var F,$;if(C.contentWindow){let z=function(){E?.(),d(T)};if(C.contentWindow.focus(),N)N(C).then(z).catch(Z=>{j?j("print",f(Z)):u({messages:["An error was thrown by the specified `print` function"],suppressErrors:I})});else{if(C.contentWindow.print){const Z=($=(F=C.contentDocument)===null||F===void 0?void 0:F.title)!==null&&$!==void 0?$:"",M=C.ownerDocument.title;k&&(C.ownerDocument.title=k,C.contentDocument&&(C.contentDocument.title=k)),C.contentWindow.print(),k&&(C.ownerDocument.title=M,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:I});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(Z=>{var M,_;return((_=(M=navigator.userAgent)!==null&&M!==void 0?M:navigator.vendor)!==null&&_!==void 0?_:"opera"in window&&window.opera).match(Z)})?setTimeout(z,500):z()}}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:I})},500)}function g(C){const b=[],k=document.createTreeWalker(C,NodeFilter.SHOW_ELEMENT,null);let E=k.nextNode();for(;E;)b.push(E),E=k.nextNode();return b}function m(C,b,k){const E=g(C),j=g(b);if(E.length===j.length)for(let T=0;T<E.length;T++){const N=E[T],I=j[T],F=N.shadowRoot;if(F!==null){const $=I.attachShadow({mode:F.mode});$.innerHTML=F.innerHTML,m(F,$,k)}}else u({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",C,b],suppressErrors:k})}const x=`
|
|
27
27
|
@page {
|
|
28
28
|
/* Remove browser default header (title) and footer (url) */
|
|
29
29
|
margin: 0;
|
|
@@ -36,10 +36,17 @@
|
|
|
36
36
|
-webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`;function
|
|
40
|
-
`)}catch(me){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.",ie,`Original error: ${f(me).message}`],level:"warning"})}de.setAttribute("id",`react-to-print-${q}`),W&&de.setAttribute("nonce",W),de.appendChild(N.createTextNode(We)),N.head.appendChild(de)}}else if(ie.getAttribute("href"))if(ie.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:",ie],level:"warning"}),b(ie);else{const de=N.createElement(ie.tagName);for(let pe=0,We=ie.attributes.length;pe<We;++pe){const me=ie.attributes[pe];me&&de.setAttribute(me.nodeName,(V=me.nodeValue)!==null&&V!==void 0?V:"")}de.onload=()=>{b(de)},de.onerror=(pe,We,me,nt,Bs)=>{b(de,["Failed to load",de,"Error:",Bs])},W&&de.setAttribute("nonce",W),N.head.appendChild(de)}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:",ie],level:"warning"}),b(ie)}}}F===0&&h(C,k)}function v({bodyClass:C,contentRef:b,copyShadowRoots:j,documentTitle:k,fonts:L,ignoreGlobalStyles:A,nonce:D,onAfterPrint:H,onBeforePrint:V,onPrintError:O,pageStyle:z,preserveAfterPrint:Z,print:P,printIframeProps:F,suppressErrors:E}){return(0,l.useCallback)(S=>{function $(){const R={bodyClass:C,contentRef:b,copyShadowRoots:j,documentTitle:k,fonts:L,ignoreGlobalStyles:A,nonce:D,onAfterPrint:H,onPrintError:O,pageStyle:z,preserveAfterPrint:Z,print:P,suppressErrors:E},W=function(N){const I=document.createElement("iframe");return I.width=`${document.documentElement.clientWidth}px`,I.height=`${document.documentElement.clientHeight}px`,I.style.position="absolute",I.style.top=`-${document.documentElement.clientHeight+100}px`,I.style.left=`-${document.documentElement.clientWidth+100}px`,I.id=c,I.srcdoc="<!DOCTYPE html>",N&&(N.allow&&(I.allow=N.allow),N.referrerPolicy!==void 0&&(I.referrerPolicy=N.referrerPolicy),N.sandbox!==void 0&&(I.sandbox=N.sandbox)),I}(F),Y=function(N,I){const{contentRef:Q,fonts:ne,ignoreGlobalStyles:G,suppressErrors:oe}=I,re=function({contentRef:de,optionalContent:pe,suppressErrors:We}){return pe&&typeof pe=="function"?(de&&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.']}),pe()):de?de.current:void u({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:We})}({contentRef:Q,optionalContent:N,suppressErrors:oe});if(!re)return;const le=re.cloneNode(!0),J=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),q=le.querySelectorAll("img"),ye=le.querySelectorAll("video"),ie=ne?ne.length:0;return{contentNode:re,clonedContentNode:le,clonedImgNodes:q,clonedVideoNodes:ye,numResourcesToLoad:(G?0:J.length)+q.length+ye.length+ie,originalCanvasNodes:re.querySelectorAll("canvas")}}(S,R);if(!Y)return void u({messages:["There is nothing to print"],suppressErrors:E});const _=function(N,I,Q){const{suppressErrors:ne}=N,G=[],oe=[];return function(re,le){G.includes(re)?u({level:"debug",messages:["Tried to mark a resource that has already been handled",re],suppressErrors:ne}):(le?(u({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...le],suppressErrors:ne}),oe.push(re)):G.push(re),G.length+oe.length===I&&h(Q,N))}}(R,Y.numResourcesToLoad,W);(function(N,I,Q,ne){N.onload=()=>{y(N,I,Q,ne)},document.body.appendChild(N)})(W,_,Y,R)}d(Z,!0),V?V().then(()=>{$()}).catch(R=>{O?.("onBeforePrint",f(R))}):$()},[C,b,j,k,L,A,D,H,V,O,z,Z,P,E])}return i}()})})(f0);var y8=f0.exports,h0=(e=>(e.PDF="PDF",e.Email="Email",e))(h0||{});const Vs=({size:e,color:t})=>o.jsx(w,{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:o.jsx("span",{className:"sr-only",children:"Loading..."})}),Un=({children:e,onClick:t,className:n,isLoading:r,size:s="small",leadingIcon:a,trailingIcon:i,href:l,...c})=>o.jsx("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 ${Ko[s]} ${n}`,onClick:()=>l?window.open(l,"_blank"):t?.(),...c,children:r?o.jsx(Vs,{color:"white"}):o.jsxs(o.Fragment,{children:[a&&o.jsx(ae,{name:a,size:16}),e,i&&o.jsx(ae,{name:i,size:16})]})}),$s=({children:e,onClick:t,className:n,leadingIcon:r,trailingIcon:s,iconColor:a,iconSize:i=16,isLoading:l,...c})=>o.jsx("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:l?o.jsx(Vs,{}):o.jsxs(o.Fragment,{children:[r&&o.jsx(ae,{name:r,size:i,color:a}),e,s&&o.jsx(ae,{name:s,size:i,color:a})]})}),Os=({children:e,onClick:t,className:n,isLoading:r,leadingIcon:s,trailingIcon:a,size:i="small",...l})=>o.jsx("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 ${Ko[i]} ${n}`,onClick:t,...l,children:r?o.jsx(Vs,{color:"white"}):o.jsxs(o.Fragment,{children:[s&&o.jsx(ae,{name:s,size:16}),e,a&&o.jsx(ae,{name:a,size:16})]})}),ma=({children:e,onClick:t,className:n,isLoading:r,size:s="small",...a})=>o.jsx("button",{className:`px-4 py-2 text-[13px]/[16.9px] font-medium text-metrifox-black bg-background-system-secondary rounded-[8px] ${Ko[s]} ${n}`,onClick:t,...a,children:r?o.jsx(Vs,{}):e}),v8=({contentRef:e,content:t,containerBgColor:n="bg-neutral-100",panelShadow:r,panelWidth:s="w-full"})=>{const a=y8.useReactToPrint({contentRef:e}),i=[h0.PDF],l=()=>{setTimeout(()=>{e.current&&a()},100)};return o.jsx(w,{className:`${n} flex flex-col justify-center`,children:o.jsxs(ms,{className:"my-6 px-4",children:[o.jsxs(w,{className:"flex items-center justify-between",children:[o.jsx(gs,{className:"w-max border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:i.map(c=>o.jsx(ir,{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))}),o.jsxs(ma,{className:"flex items-center gap-1 !px-3 !py-6",size:"x-small",onClick:l,children:[o.jsx(U,{variant:"label8",className:"text-metrifox-black flex items-center gap-2.5",children:"Download"}),o.jsx(ae,{name:"download",size:16,color:"metrifox-black"})]})]}),o.jsxs(xs,{children:[o.jsx(Pn,{children:o.jsx(w,{ref:e,className:`bg-metrifox-white ${r} p-8 rounded-xl border-t-8 border-metrifox-black h-full mt-8 ${s} mx-auto`,children:t||"Nothing to display"})}),o.jsx(Pn,{className:"h-screen text-center py-20",children:o.jsx("p",{children:"Coming soon"})})]})]})})},p0=({isOpen:e,onClose:t,contentRef:n,content:r,modalTitle:s,modalDescription:a})=>o.jsx(Er,{isOpen:e,onClose:t,title:s,description:a,size:"large",variant:"right-slide",className:"!p-0",children:o.jsx(v8,{contentRef:n,content:r})}),hn=({label:e,onClick:t,disabled:n,variant:r="normal",active:s})=>{const a={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=s?"bg-grey-200 font-semibold":"";return o.jsx("button",{className:`px-3 py-2 text-grey-500 hover:text-grey-800 border disabled:opacity-50 ${a[r]} ${i}`,onClick:t,disabled:n,children:e})},b8=({currentPage:e,totalPages:t,onPageChange:n})=>o.jsxs("div",{className:"flex items-center justify-center pt-6",children:[o.jsx(hn,{label:"Prev",onClick:()=>n(e-1),disabled:e===1,variant:"prev"}),(()=>{const r=[];r.push(o.jsx(hn,{label:1,onClick:()=>n(1),variant:"normal",active:e===1},1)),e>2&&r.push(o.jsx(hn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-start"));const s=Math.max(2,e-1),a=Math.min(t-1,e+1);for(let i=s;i<=a;i++)r.push(o.jsx(hn,{label:i,onClick:()=>n(i),variant:"normal",active:e===i},i));return e<t-1&&r.push(o.jsx(hn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-end")),t>1&&r.push(o.jsx(hn,{label:t,onClick:()=>n(t),variant:"normal",active:e===t},t)),r})(),o.jsx(hn,{label:"Next",onClick:()=>n(e+1),disabled:e===t,variant:"next"})]}),Sr=({columns:e,data:t,pagination:n,filters:r,actions:s,onRowClick:a,view:i="list",gridView:l,isLoading:c,skelentonRow:u=2,emptyState:d,isLastColumnSticky:f=!1,actionButton:h,className:g,emptyStateClassName:m,tab:x})=>{const[y,v]=p.useState(!1),[C,b]=p.useState(""),[j,k]=p.useState("");if(p.useEffect(()=>{v(!1),b(""),k("")},[x]),t?.length===0&&!C&&!j&&!c)return o.jsx("div",{className:`h-[55vh] flex items-center justify-center ${m}`,children:d||null});const L=D=>D?o.jsx(B,{variant:"body6",color:"text-grey-700",children:String(D)}):"-",A=l?.style?`${l?.style}`:"grid-cols-2 gap-2";return o.jsxs("div",{className:`overflow-x-auto px-3 rounded-2xl bg-metrifox-white ${g}`,children:[o.jsx("div",{className:"px-3 mb-6",children:o.jsxs("div",{className:"flex justify-between items-center",children:[s&&s,o.jsxs("div",{className:"flex justify-end w-full gap-x-2 items-center",children:[r&&o.jsx(Os,{className:"!border-grey-300 !text-grey-500",size:"x-small",leadingIcon:"filter",onClick:()=>v(!y),children:"Filter"}),h&&o.jsx(ma,{className:"!text-metrifox-white !bg-metrifox-primary",size:"x-small",onClick:h.onClick,children:h.text})]})]})}),i==="list"&&o.jsx("div",{className:"w-full overflow-x-hidden hover:overflow-x-auto scrollbar",children:o.jsxs("table",{className:"min-w-full border-collapse text-left relative",children:[o.jsx("thead",{children:o.jsx("tr",{children:e.map((D,H)=>o.jsx("th",{className:`px-3 py-2 text-sm font-semibold text-gray-700 border-b border-grey-100 whitespace-nowrap
|
|
41
|
-
${
|
|
42
|
-
`,children:typeof
|
|
43
|
-
${
|
|
44
|
-
${
|
|
45
|
-
`,children:V.render?V.render(D):L(Tp(D,V.key))},O))},H))]})]})}),i==="grid"&&o.jsx("div",{className:`grid ${A}`,children:t?.map((D,H)=>o.jsx("div",{className:a?"cursor-pointer":"cursor-default",onClick:()=>a?.(D),children:l?.renderItem(D)},H))}),n&&o.jsx(b8,{currentPage:n.currentPage,totalPages:n.totalPages,onPageChange:n.onPageChange})]})},C8=({columns:e})=>o.jsx("tr",{children:Array.from({length:e}).map((t,n)=>o.jsx("td",{className:"px-3 py-4 border-b border-grey-100",children:o.jsx("div",{className:"mt-1 h-4 w-20 rounded-md bg-grey-200"})},n))}),Pt=({children:e,size:t="medium",background:n="transparent",textColor:r=""})=>{const s=np[t];return o.jsx(w,{className:`inline-flex items-center ${n} min-w-fit justify-center rounded-full px-2.5 py-1 border gap-x-2 ${s} ${n==="transparent"?"border-grey-300":"border-none"} ${r}`,children:e})},w8=async({subscriptionId:e})=>{const{data:t}=await at().get(`/sdk/subscriptions/${e}/billing-history`);return t},k8=({subscriptionId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(!1),a=async()=>{if(!e){Ct.error("Missing subscriptionId");return}s(!0);try{const i=await w8({subscriptionId:e});n(i?.data)}catch(i){Ct.error(i instanceof Error?i.message:"Failed to load billing history")}finally{s(!1)}};return p.useEffect(()=>{a()},[e]),{billingHistory:t,isLoading:r,refetch:a}},j8=async({invoiceId:e})=>{const{data:t}=await at().get(`/sdk/invoices/${e}/view`);return t},m0=({invoiceId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(!1),a=async()=>{if(e){s(!0);try{const i=await j8({invoiceId:e});n(i?.data)}catch(i){Ct.error(i instanceof Error?i.message:"Failed to load invoice details")}finally{s(!1)}}};return p.useEffect(()=>{a()},[e]),{invoiceDetails:t,isLoading:r,refetch:a}},L8=({subscriptionId:e})=>{const[t,n]=p.useState(!1),[r,s]=p.useState(null),a=p.useRef(null),{billingHistory:i}=k8({subscriptionId:e}),{invoiceDetails:l}=m0({invoiceId:r||""}),c=d=>{d.status===u1.Paid&&d.invoice_id&&(s(d.invoice_id),n(!0))},u=[{header:"Total amount",render:d=>{const{text:f,color:h}=Ep(d.status),g=$t(d.currency);return o.jsx(w,{children:o.jsxs(w,{className:"flex items-center gap-2",children:[o.jsxs(w,{className:"flex items-center",children:[o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:g}),o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:ce(d.total_amount)})]}),o.jsx(Pt,{size:"small",background:`${h}`,children:o.jsx(U,{variant:"label9",className:"capitalize text-metrifox-white",children:f})})]})})}},{header:"Invoice number",render:d=>o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.invoice_number||"-"})},{header:"Source type",render:d=>o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:vt(d.source_type==="billing_cycle"?"subscription":d.source_type).replace(/_/g," ")})},{header:"Issue date",render:d=>o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.issued_date?c1(d.issued_date).format("MMM D, YYYY"):"-"})},{header:"Due date",render:d=>o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.due_date?c1(d.due_date).format("MMM D, YYYY"):"-"})},{header:"Amount paid",render:d=>{const f=$t(d.currency);return o.jsxs(w,{className:"flex items-center",children:[o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:f}),o.jsx(B,{className:"capitalize",variant:"body6",color:"text-grey-700",children:ce(d.amount_paid)})]})}}];return!i||i?.length===0?null:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"receipt",size:16,color:"grey-500"})}),o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Billing history"})]}),o.jsx(Sr,{columns:u,data:i,onRowClick:c,className:"mt-2"}),t&&r&&o.jsx(p0,{isOpen:t,onClose:()=>{n(!1),s(null)},contentRef:a,content:o.jsx(x1,{data:l}),modalTitle:"Invoice PDF"})]})},E8=async({subscriptionId:e})=>{const{data:t}=await at().get(`/sdk/subscriptions/${e}/entitlements-usage`);return t},S8=async({subscriptionId:e})=>{const{data:t}=await at().get(`/sdk/subscriptions/${e}/entitlements-summary`);return t},M8=({subscriptionId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),[l,c]=p.useState(null),[u,d]=p.useState(null),[f,h]=p.useState(!1),g=async()=>{if(!e)return s("Missing subscription");i(!0);try{const x=await E8({subscriptionId:e});n(x.data),s(null)}catch(x){const y=x,v=y?.response?.data?.data?.error||y?.message;s(v||"Failed to load entitlement usage")}finally{i(!1)}},m=async()=>{if(!e)return d("Missing subscription");h(!0);try{const x=await S8({subscriptionId:e});c(x.data),d(null)}catch(x){const y=x,v=y?.response?.data?.data?.error||y?.message;d(v||"Failed to load entitlement summary")}finally{h(!1)}};return p.useEffect(()=>{g(),m()},[e]),{entitlementUsage:t||[],usageError:r,isUsageLoading:a,refetchUsage:g,entitlementSummary:l||[],summaryError:u,isSummaryLoading:f,refetchSummary:m}},T8=({entitlements:e})=>{const t=jp();return o.jsx(Sr,{columns:[{header:"Feature",render:n=>o.jsx(w,{children:o.jsxs(w,{className:"flex flex-col gap-y-1 items-start",children:[o.jsx(B,{variant:"body6",color:"text-gray-700",children:n.feature_name}),o.jsx(Pt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:n.feature_key})]})})},{header:"Type",render:n=>{const r={[rn.METERED]:"bg-metrifox-blue",[rn.BOOLEAN]:"bg-metrifox-warning"};return o.jsxs(w,{children:[o.jsx(Pt,{size:"small",textColor:"text-metrifox-white",background:r[n.feature_type],children:o.jsx(B,{variant:"body6",children:vt(n.feature_type)})}),n.usage_model&&o.jsxs(B,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:[vt(n.usage_model?.split("_").join(" ")),n.feature_type===rn.METERED?n.prepaid?"/ Prepaid":`/ ${vt(n.price_type)}`:""]})]})}},{header:"Included allowance",render:n=>o.jsx(w,{children:o.jsx(B,{variant:"body6",children:n.feature_type===rn.BOOLEAN?"Unlimited":`${Ve(n.included_allowance||0)}${n.included_allowance_reset_interval!==lr.NONE?` ${t[n.included_allowance_reset_interval].toLowerCase()}`:""}`})})},{header:"Usage limits",render:n=>o.jsx(w,{children:o.jsx(B,{variant:"body6",children:(r=>{if(r.feature_type===rn.BOOLEAN)return"Unlimited";if(r.price_type===d1.PAY_AS_YOU_GO){const s=r.usage_limit??"Unlimited";let a="";return r.usage_limit_reset_interval&&r.usage_limit_reset_interval!==lr.NONE&&(a=` ${t[r.usage_limit_reset_interval].toLowerCase()}`),`${s}${a}`}if(r.purchased_qty!==null&&r.purchased_qty!==void 0){const s=Ve(r.purchased_qty),a=r.billing_interval&&r.billing_interval!==lr.NONE?` ${t[r.billing_interval].toLowerCase()}`:"",i=r.soft_limit_enabled?"Soft limits enabled":"";return`${s}${a} ${i}`}if(r.included_allowance!==null&&r.included_allowance!==void 0){const s=Ve(r.included_allowance);let a="";return r.included_allowance_reset_interval&&r.included_allowance_reset_interval!==lr.NONE&&(a=` ${t[r.included_allowance_reset_interval].toLowerCase()}`),`${s}${a}`}return"0"})(n)})})}],data:e,emptyState:o.jsx(o.Fragment,{children:o.jsxs(w,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto ",children:[o.jsx(ae,{name:"note-2",color:"neutral-200",size:72}),o.jsx(B,{variant:"body4",color:"text-grey-400",children:"No entitlements attached to this subscription"})]})})})},D8=({triggerFunc:e,trigger:t,caretIcon:n,isOpenDefault:r=!1,triggerClassName:s="",triggerOpenClassName:a="",contentClassName:i="",mainClassName:l="",children:c,caretPosition:u="end"})=>{const[d,f]=p.useState(r);return e&&(e.current=h=>f(h)),o.jsxs(w,{className:`w-full ${l}`,children:[o.jsxs(w,{onClick:()=>f(!d),className:`flex items-start justify-between gap-2 w-full px-4 py-2 bg-gray-100 cursor-pointer ${d&&a||s}`,children:[u==="start"&&o.jsx("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||o.jsx(ae,{name:"arrow-down",size:24,color:"grey-500"})}),typeof t=="function"?t(d):t,u==="end"&&o.jsx("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||o.jsx(ae,{name:"arrow-down",size:24,color:"grey-500"})})]}),d&&o.jsx(w,{className:`p-4 ${i}`,children:typeof c=="function"?c(()=>f(!d)):c})]})},P8=({meteredEntitlements:e})=>o.jsx(w,{className:"rounded-2xl px-3 pt-5",children:o.jsxs(w,{children:[o.jsxs(w,{className:"flex-1 grid grid-cols-4 border-b border-grey-100 gap-x-4 py-3 pl-3 pr-12",children:[o.jsx(w,{children:o.jsx(U,{variant:"label8",color:"text-metrifox-black",children:"Feature"})}),o.jsx(w,{children:o.jsx(U,{variant:"label8",color:"text-metrifox-black",children:"Type"})}),o.jsx(w,{className:"col-span-2",children:o.jsx(U,{variant:"label8",color:"text-metrifox-black",children:"Usage"})})]}),o.jsx(w,{className:"w-8"}),e.length>0?e.map(t=>{const{processedPools:n,totalUsed:r,totalAmount:s,totalBalance:a,isAnyUnlimited:i}=Op(t),l=(c,u)=>u>0?c/u*100:0;return o.jsx(w,{className:"py-4 px-4 border-b border-grey-100 last:border-0",children:o.jsx(D8,{trigger:o.jsxs(w,{className:"flex-1 grid grid-cols-4 gap-4 items-center pr-8",children:[o.jsxs(w,{className:"flex flex-col gap-y-1 items-start",children:[o.jsx(B,{variant:"body6",color:"text-gray-700",children:t.feature_name}),o.jsx(Pt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:t.feature_key})]}),o.jsx(w,{children:o.jsx(B,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:vt(t.type?.split("_").join(" "))})}),o.jsxs(w,{className:"col-span-2",children:[o.jsx(B,{variant:"body6",color:"text-grey-700",children:!i&&(a<0?`${Ve(Math.abs(a))} used above limit`:`${Ve(a)} left`)}),o.jsxs(w,{className:"w-full flex items-center gap-x-2",children:[o.jsx(w,{className:"w-96 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:i?o.jsx(w,{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=>o.jsx(w,{className:"h-[6px] bg-metrifox-blue",style:{width:`${l(c.used,s)}%`}},c.pool))}),o.jsx(B,{variant:"body6",color:"text-grey-700",children:i?`${Ve(r)}/Unlimited`:`${Ve(r)}/${Ve(s)}`})]})]})]}),triggerClassName:"!p-0 !bg-transparent !item-center",contentClassName:"!p-0",caretIcon:o.jsx(ae,{name:"arrow-down-linear",size:16,color:"grey-500"}),children:o.jsx(w,{className:"w-full rounded-lg overflow-hidden flex flex-col items-start justify-start gap-y-0 pt-4",children:n.map((c,u)=>o.jsxs(w,{className:"w-full flex items-center px-6 py-3 bg-grey-100 gap-x-40",children:[o.jsx(B,{variant:"body6",color:"text-grey-700",children:c.pool}),o.jsxs(w,{children:[o.jsx(B,{variant:"body6",color:"text-grey-700",children:!c.isUnlimited&&(c.balance<0?`${Ve(Math.abs(c.balance))} used above limit`:`${Ve(c.balance)} left`)}),o.jsxs(w,{className:"w-full flex items-center gap-x-2",children:[o.jsx(w,{className:"w-72 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:o.jsx(w,{className:`h-[6px] bg-${c.color}`,style:{width:`${c.percent}%`}})}),o.jsx(B,{variant:"body6",color:"text-grey-700",children:c.isUnlimited?`${Ve(c.used)}/ Unlimited`:`${Ve(c.used)}/${Ve(c.amount)}`})]}),c.nextResetAt&&o.jsxs(B,{variant:"body6",color:"text-grey-500",children:["resets on ",c.nextResetAt]})]})]},u))})})},t.id)}):o.jsxs(w,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto py-12 ",children:[o.jsx(ae,{name:"note-1-bulk",color:"neutral-200",size:72}),o.jsx(B,{variant:"body4",color:"text-grey-400",children:"No metered entitlements attached to this subscription"})]})]})}),A8=({subscriptionId:e})=>{const{entitlementUsage:t,entitlementSummary:n}=M8({subscriptionId:e}),r=t?.filter(s=>s.type!==rn.BOOLEAN)||[];return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"radar",size:16,color:"grey-500"})}),o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Entitlements"})]})}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:o.jsxs(ms,{children:[o.jsxs(gs,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:[o.jsx(ir,{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:o.jsx(B,{variant:"body6",children:"Summary"})}),r.length>0&&o.jsx(ir,{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:o.jsx(B,{variant:"body6",children:"Usage"})})]}),o.jsxs(xs,{children:[o.jsx(Pn,{children:o.jsx(T8,{entitlements:n})}),r.length>0&&o.jsx(Pn,{children:o.jsx(P8,{meteredEntitlements:r})})]})]})})]})},N8=({tenantDetails:e,paymentMethod:t})=>{const{address:n}=a1(e?.billing_address),r=[{label:"Billed to",value:e?.full_name||"-"},{label:"Billing email",value:e?.billing_email||"-"},{label:"Billing address",value:n||"-"}];return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"money",size:18,color:"grey-500"})}),o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Payment"})]})}),o.jsx(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:o.jsx(U,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),o.jsxs(w,{className:"bg-metrifox-white grid grid-cols-3 gap-8 justify-between rounded-2xl p-4 -mt-2.5",children:[r?.map((s,a)=>o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"text-grey-500",children:s?.label}),o.jsx(U,{variant:"label7",className:"text-grey-600 font-medium mt-2",children:s?.value||"-"})]},a)),o.jsxs(w,{children:[o.jsx(U,{variant:"label8",className:"text-grey-500",children:"Payment method"}),t?o.jsxs(w,{className:"flex items-center gap-x-2 mt-2",children:[o.jsxs(B,{variant:"body6",color:"text-grey-600 font-medium",children:[vt(t?.brand)," ",t?.display_name," "]}),o.jsxs(B,{variant:"body6",className:"text-neutral-500 font-light",children:["Expires ",t?.exp_month,"/",t?.exp_year]})]}):o.jsx("span",{children:"-"})]})]})]})},R8=({progress:e})=>{const t=x8(e,[0,20,100],[0,0,1]);return o.jsx(Fs.svg,{width:"16",height:"16",viewBox:"0 0 25 25",children:o.jsx(Fs.path,{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",fill:"transparent",stroke:"#1E4D37",strokeWidth:2,style:{pathLength:t}})})},F8=({text:e,children:t,showCopyIcon:n})=>{const r=c0(90),[s,a]=p.useState(!1),i=l=>{navigator.clipboard.writeText(l).catch(()=>{})};return o.jsxs(w,{className:"*:ml-1 flex items-center bg-grey-200 w-fit py-0.5 px-2 rounded-xl font-medium",children:[t||o.jsx(B,{variant:"body6",color:"text-grey-700",className:"!ml-0",children:e}),n&&o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(Fs.div,{initial:{x:0},animate:{x:100},style:{x:r},transition:{duration:.25,ease:"easeOut"}}),o.jsx(R8,{progress:r})]}):o.jsx("button",{className:"w-fit",type:"button",onClick:l=>{l.stopPropagation(),i(e),a(!0),setTimeout(()=>a(!1),2e3)},children:o.jsx(ae,{name:"copy",color:"grey-500",size:16})})})]})},g0=ro(e=>({plans:[],setPlans:t=>e(n=>({plans:typeof t=="function"?t(n.plans):t}))})),ga=({selectedInterval:e,publishedOnly:t=!1})=>{const{plans:n}=g0(),[r,s]=p.useState(40),a=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=>!!a(d)?.description),l=n?.some(d=>!!a(d)?.trial_duration_value),c=n?.some(d=>{const f=a(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=a(d);return f?[f.credit_attachment_price_options,f.entitlement_price_options].some(h=>Array.isArray(h)&&h.some(g=>g.price?.billing_interval===e)):!1});return p.useEffect(()=>{n.forEach(d=>{const f=a(d);if(!f)return;const h=[...f.credit_attachment_price_options||[],...f.entitlement_price_options||[]].filter(v=>v.price?.billing_interval===e),g=v=>{const C=v,b=C?.price?.name||C?.price?.owner?.feature?.name||C?.price?.owner?.name,{price:j,label:k,currencySymbol:L}=qo(C);return`${b} from ${L}${j}${k?`/${k}`:""}`.length>40?39:24},m=h[0]?g(h[0]):0,x=h[1]?g(h[1]):0,y=m+x;s(v=>y>v?y:v)})},[n,e]),{dynamicCardHeight:r,shouldShowDescription:i,shouldShowFreeTrial:l,shouldShowFixedPrice:c,shouldShowDynamicPrices:u}},x0=({entitlements:e,baseEntitlementsPlanName:t,credits:n})=>{const r=Xo(e).filter(s=>s?.is_visible);return o.jsxs(w,{children:[o.jsx(U,{variant:"label7",className:"text-metrifox-primary mb-3",as:"p",children:t?`Everything in ${t} plus:`:"\xA0"}),o.jsxs("ul",{className:"flex flex-col gap-y-3",children:[n?.map((s,a)=>o.jsxs("li",{className:"flex items-center gap-[10px]",children:[" ",o.jsx(ae,{name:"check",color:"green-600",size:16}),o.jsx(B,{variant:"body5",children:s.included_usage_text})]},a)),r?.map((s,a)=>o.jsxs("li",{className:"flex items-center gap-[10px]",children:[" ",o.jsx(ae,{name:"check",color:"green-600",size:16}),o.jsx(B,{variant:"body5",children:s.display_text})]},a))]})]})},V8=e=>{const t=e?.price?.billing_interval,n=e?.price.tiers,r=e?.price.currency,s=e?.price?.invoice_timing,a=$t(r),i=x=>{const y=e?.price?.owner,v=y?.included_usage||0,C=x?.find(D=>D.first_unit===v);if(!C)return{price:null,label:null};const{unit_price:b,package_price:j,package_size:k,pricing_model:L,flat_fee:A}=C;return A?{price:A.toFixed(2),label:""}:{per_unit:{price:b?.toFixed(2),label:`per. ${y?.feature?.unit_singular||y?.credit_unit_singular}`},per_package:{price:j?.toFixed(2),label:`for ${k} ${y?.feature?.unit_plural}`}}[L]??{price:null,label:null}},{price:l,label:c}=i(n),u=e?.price?.is_custom&&e?.price?.billing_interval_value>1?`every ${e?.price?.billing_interval_value} ${Pp[t]}`:t,d=[ge.DAILY,ge.WEEKLY],f={[ge.DAILY]:"day",[ge.WEEKLY]:"week"},h=t,g=d.includes(h)?f[h]:"month",m=(Dp(t,e?.price?.billing_interval_value)*(e?.price?.price??0)).toFixed(2);return{amount:(e?.price?.price??0).toFixed(2),billedText:u,intervalText:g,billingAmount:m,tierPrice:l,tierLabel:c,currencySymbol:a,invoiceTiming:s,intervalValue:e?.price?.billing_interval_value}},$8=({priceOption:e,interval:t})=>{const{amount:n,billedText:r,billingAmount:s,intervalText:a,currencySymbol:i,intervalValue:l}=V8(e),c=ce(n).split("."),u=c?c[0]:"0",d=c&&c.length>1?c[1]:"00";return o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsx(U,{variant:"label7",className:"text-grey-600 mb-2",children:"Fixed recurring"})}),o.jsxs(w,{className:"flex items-end",children:[o.jsxs(U,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[i,u]}),o.jsxs(U,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",d]}),o.jsxs(B,{variant:"body4",className:"mb-[5px] text-grey-500",children:["/",a]})]}),(t!==ge.MONTHLY||l!==1)&&o.jsxs(B,{className:"-mt-2",variant:"body6",children:["Billed"," ",o.jsxs(U,{as:"span",variant:"label8",className:"inline-block",children:[i,ce(s)," ",r.toLowerCase()]})]})]})},O8=({interval:e,dynamicPrices:t,showMoreCard:n,showMore:r})=>{const[s,a]=p.useState(""),{dynamicCardHeight:i}=ga({selectedInterval:e}),l=n?"":"flex flex-col",c=n?{}:{height:i+20};return o.jsxs(w,{className:l,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=Ap(u?.price.tiers,u.price.currency),{price:h,label:g,currencySymbol:m,isPercentage:x}=qo(u),y=f?.length===1;return n?o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(U,{variant:"label7",className:"text-grey-600 mb-1",children:d}),y&&o.jsxs(w,{className:"flex items-center cursor-pointer",children:[o.jsxs(U,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),g&&o.jsxs(B,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[x?"\xA0":"/",g]})]})]}),!y&&o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(B,{variant:"body5",className:"text-grey-700",children:"Starts at"}),o.jsxs(w,{className:"flex items-center cursor-pointer",onClick:v=>{v.stopPropagation(),a(s===u.id?"":u.id)},children:[o.jsxs(U,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),o.jsxs(B,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[x?"\xA0":"/",g]}),f.length>1&&o.jsx(ae,{name:s===u.id?"arrow-up-light":"arrow-down-linear",size:16,color:"grey-400"})]})]}),s===u.id&&f.length>1&&o.jsx(w,{className:"bg-grey-200 p-2 mt-1 rounded-lg",children:o.jsx(w,{className:"flex flex-col gap-y",children:f?.map(v=>o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(B,{variant:"body7",color:"text-grey-700",children:v?.label}),o.jsxs(B,{variant:"body7",color:"text-grey-700",children:[v?.price,v?.package?`/${v?.package} ${g}`:""]})]},v?.label))})})]},u.id):o.jsx(w,{className:"mt-1",children:o.jsxs(w,{className:"flex items-center gap-x-1 flex-wrap",children:[o.jsx(U,{variant:"label8",className:"text-grey-600 whitespace-nowrap",children:d}),o.jsx(B,{variant:"body7",children:y?"at":"from"}),o.jsxs(w,{className:"flex items-center",children:[o.jsxs(U,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),g&&o.jsxs(B,{variant:"body7",color:"text-grey-500",children:[x?"\xA0":"/",g]})]})]})},u.id)}),!n&&!!t?.length&&o.jsx(w,{className:"flex justify-center mt-auto",children:o.jsx($s,{onClick:u=>{r(),u?.stopPropagation()},className:"mt-2",children:o.jsx(B,{variant:"body8",className:"text-metrifox-blue underline",children:"Explore all priced features \u2192"})})})]})},y0=({priceOption:e})=>{const{price:t,label:n,currencySymbol:r,isPercentage:s}=qo(e),a=ce(t).split("."),i=a?a[0]:"0",l=a&&a.length>1?a[1]:"00";return o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsx(U,{variant:"label7",className:"text-grey-600 mb-2",children:"Starts at"})}),o.jsxs(w,{className:"flex items-end",children:[!s&&o.jsxs(o.Fragment,{children:[o.jsxs(U,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[r,i]}),o.jsxs(U,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",l]})]}),s&&o.jsx(U,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:t}),n&&o.jsxs(B,{variant:"body4",className:"mb-[5px] text-grey-500",children:[s?"\xA0":"/",n]})]})]})},_8=({interval:e,priceOptions:t,entitlementPriceOptions:n,creditAttachmentPriceOptions:r,isPricePage:s,trialTag:a,showMoreCard:i,isFree:l,isCustom:c,showMore:u,addPriceButton:d})=>{const{shouldShowFixedPrice:f,shouldShowFreeTrial:h,shouldShowDynamicPrices:g}=ga({selectedInterval:e,publishedOnly:s}),m=h1(e,t),x=p1(e,n),y=p1(e,r),v=x.length===1&&!m,C=y.length===1&&!m&&x.length===0,b=[...C?[]:y,...v?[]:x];return!s&&!m&&x.length===0&&!y.length&&!l&&!c?o.jsxs(o.Fragment,{children:[o.jsx(w,{className:"h-[94px] flex items-center",children:o.jsx(w,{className:"w-full bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3",children:d||o.jsx(B,{variant:"body6",children:"No price added yet"})})}),h&&o.jsx(w,{className:"h-6"})]}):o.jsxs(w,{className:i?"bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3":"",children:[f&&o.jsxs(w,{className:i?"":"h-[94px]",children:[l&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(U,{variant:"label3",children:"Free"})})}),c&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(U,{variant:"label4",children:"Custom"})})}),!m&&!l&&!c&&!v&&!C&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(U,{variant:"label4",children:"No fixed price"})})}),m&&o.jsx($8,{interval:e,priceOption:m}),v&&!m&&o.jsx(y0,{priceOption:x[0]}),C&&!m&&!v&&o.jsx(y0,{priceOption:y[0]})]}),h&&!s&&o.jsx(w,{className:"h-6",children:a}),g&&o.jsx(O8,{interval:e,dynamicPrices:b,showMoreCard:i,showMore:u})]})},B8=({description:e,entitlements:t,baseEntitlementsPlanName:n,priceContent:r})=>o.jsxs(w,{children:[o.jsx(U,{variant:"label7",className:"mb-2",children:"Description"}),o.jsx(B,{variant:"body5",className:"mb-4",children:e}),r,o.jsx(x0,{entitlements:t,baseEntitlementsPlanName:n})]});function I8(e){p.useEffect(function(){typeof e=="function"&&e()},[])}var H8="Expected a function",v0=0/0,W8="[object Symbol]",U8=/^\s+|\s+$/g,Z8=/^[-+]0x[0-9a-f]+$/i,z8=/^0b[01]+$/i,K8=/^0o[0-7]+$/i,Y8=parseInt,G8=typeof Ht=="object"&&Ht&&Ht.Object===Object&&Ht,q8=typeof self=="object"&&self&&self.Object===Object&&self,X8=G8||q8||Function("return this")(),J8=Object.prototype,Q8=J8.toString,eg=Math.max,tg=Math.min,xa=function(){return X8.Date.now()};function ng(e,t,n){var r,s,a,i,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(H8);t=b0(t)||0,ya(n)&&(d=!!n.leading,f="maxWait"in n,a=f?eg(b0(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function g(L){var A=r,D=s;return r=s=void 0,u=L,i=e.apply(D,A),i}function m(L){return u=L,l=setTimeout(v,t),d?g(L):i}function x(L){var A=L-c,D=L-u,H=t-A;return f?tg(H,a-D):H}function y(L){var A=L-c,D=L-u;return c===void 0||A>=t||A<0||f&&D>=a}function v(){var L=xa();if(y(L))return C(L);l=setTimeout(v,x(L))}function C(L){return l=void 0,h&&r?g(L):(r=s=void 0,i)}function b(){l!==void 0&&clearTimeout(l),u=0,r=c=s=l=void 0}function j(){return l===void 0?i:C(xa())}function k(){var L=xa(),A=y(L);if(r=arguments,s=this,c=L,A){if(l===void 0)return m(c);if(f)return l=setTimeout(v,t),g(c)}return l===void 0&&(l=setTimeout(v,t)),i}return k.cancel=b,k.flush=j,k}function ya(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rg(e){return!!e&&typeof e=="object"}function sg(e){return typeof e=="symbol"||rg(e)&&Q8.call(e)==W8}function b0(e){if(typeof e=="number")return e;if(sg(e))return v0;if(ya(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ya(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(U8,"");var n=z8.test(e);return n||K8.test(e)?Y8(e.slice(2),n?2:8):Z8.test(e)?v0:+e}var og=ng,ig=Ar(og);function ag(e,t,n){var r=p.useCallback(function(a){return ig(a,t,n)},[t,n]),s=p.useRef(r(e));return p.useEffect(function(){s.current=r(e)},[e,r]),s.current}function lg(e,t){var n=p.useRef(!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."),p.useEffect(function(){n.current?e():n.current=!0},t),p.useEffect(function(){return function(){n.current=!1}},[])}var C0=typeof window>"u"?p.useEffect:p.useLayoutEffect;function cg(e,t){t===void 0&&(t=!1);var n=t?C0:p.useEffect,r=p.useRef(e);return n(function(){r.current=e}),r}function ug(e){var t=cg(e);function n(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];typeof t.current=="function"&&t.current.apply(t,r)}return n}var dg=process.env.NODE_ENV!=="production",w0=function(){};if(dg){var fg=function(e){var t="Warning: ".concat(e);typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};w0=function(e,t){e||fg(t)}}function hg(e,t,n,r,s,a){r===void 0&&(r={}),s===void 0&&(s=!0),a===void 0&&(a=!1);var i=ug(n),l=a?C0:p.useEffect;l(function(){return w0(typeof e<"u","[useGlobalObjectEventListener]: Cannot attach event handlers to undefined."),typeof e<"u"&&s?(e.addEventListener(t,i,r),function(){e.removeEventListener(t,i,r)}):function(){}},[t,r])}function pg(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),typeof window<"u"?hg(window,"resize",e,{passive:!0},t,n):console.warn("useOnWindowResize can't attach an event listener as window is undefined.")}var k0="...",mg=0,_s=function(){return"__clamp_text_key__".concat(mg++)};function gg(e){var t=e.text,n=e.ellipsis,r=n===void 0?k0:n,s=e.lines,a=s===void 0?3:s,i=e.expanded,l=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=p.useState(function(){return{noClamp:!1,clampedText:".",key:_s()}}),g=h[0],m=g.noClamp,x=g.clampedText,y=g.key,v=h[1],C=p.useRef(),b=p.useRef(0),j=p.useCallback(function(L){var A=L.lineHeight,D=L.originalText,H=L.expanded,V=L.ellipsis,O=L.lines,z=L.charWidth,Z=C.current;if(!Z)return;if(!D||H){v({noClamp:!0,clampedText:D,key:_s()});return}var P=A*O+1,F=0;typeof V=="string"?F=V===k0?5:Math.ceil(V.length*z):typeof V=="number"&&(F=Math.ceil(V*z));var E=0,T=0,S=D.length;if(!Z.clientHeight)return;function $(){var W,Y=(W=Z?.clientHeight)!==null&&W!==void 0?W:1;Y<=P?E=T+1:S=T-1}for(;E<=S;){if(T=Math.floor((E+S)/2),Z.innerText=D.slice(0,T),T===D.length){v({clampedText:D,noClamp:!0,key:_s()});return}$()}var R=D.slice(0,Math.max(T-F,0)).trim()+(typeof V=="string"?V:"");Z.innerText=R,v({noClamp:!1,clampedText:R,key:_s()})},[]),k=ag(j,u);return pg(function(){return k({lineHeight:b.current,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})}),I8(function(){var L,A;if(t&&!b.current){var D=((A=(L=C.current)===null||L===void 0?void 0:L.clientHeight)!==null&&A!==void 0?A:1)+1;b.current=D,j({lineHeight:D,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})}}),lg(function(){j({lineHeight:b.current,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})},[l,t,f,r,a]),[C,{noClamp:m,clampedText:x,key:y}]}const xg=({description:e,showDetails:t})=>{const[n,{noClamp:r,clampedText:s,key:a}]=gg({text:e,ellipsis:12.5,lines:3});return e?o.jsx(B,{variant:"body6",children:o.jsxs("span",{ref:n,className:"w-full inline-block",children:[s,!r&&o.jsxs(o.Fragment,{children:["...",o.jsx($s,{onClick:i=>{t(),i?.stopPropagation()},className:"!inline",children:o.jsx(B,{variant:"body6",className:"text-metrifox-blue border-b border-metrifox-blue",children:"See more"})})]})]},a)}):null},j0=({plan:e,interval:t,featureOrderMap:n,isPricePage:r,isCustomerPortal:s,statusTag:a,addPriceButton:i,buttonText:l,isCurrentPlan:c,planActions:u,cardAction:d,buttonAction:f})=>{const{setPlans:h}=g0(),{shouldShowDescription:g}=ga({selectedInterval:t,publishedOnly:r}),[m,x]=p.useState(!1),{name:y,entitlements:v,base_entitlements_plan_name:C,is_free:b,is_custom:j,custom_cta_text:k,description:L,price_options:A,entitlement_price_options:D,credit_attachment_price_options:H,credit_attachments:V,trial_duration_unit:O,trial_duration_value:z,version_id:Z,is_visible:P,is_invoiceable:F,status:E}=e,T=h1(t,[...A,...D,...H]),S=O&&z,$=z===1?O:`${O}s`,R=Xo([...v]).filter(G=>G?.is_visible),W=Rp(R,n),Y=V?.filter(G=>G.included_usage);if(p.useEffect(()=>{e&&h(G=>[...G,e])},[e,h]),!T&&!b&&!j&&r||!P&&r||!F&&r||!T&&E!==f1.DRAFT&&(A?.length>0||D?.length>0||H?.length>0))return null;const _=G=>o.jsx(_8,{trialTag:S&&o.jsx(Pt,{background:"bg-grey-300",textColor:"text-metrifox-black",size:"small",children:o.jsx(B,{variant:"body6",children:`${z} ${$} Free trial`})}),offering:e,interval:t,priceOptions:A,entitlementPriceOptions:D,creditAttachmentPriceOptions:H,isPricePage:r,versionId:Z,showMoreCard:G,showMore:()=>x(!0),isFree:b,isCustom:j,addPriceButton:i}),N=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",I=j?k:b?"Get started":S?`Start ${z} ${$} free trial`:"Buy now",Q=r?I:l,ne=()=>{f?.()};return o.jsxs(w,{className:`flex flex-col rounded-2xl border border-grey-100 text-wrap shrink-0 ${c?"bg-metrifox-primary":"bg-grey-200"} ${N}`,onClick:d,children:[o.jsxs(w,{className:"flex items-center justify-between pl-4 pr-[5px] pt-[6px] pb-[2px]",children:[o.jsx(U,{variant:"label7",className:`${c?"text-metrifox-white":"text-grey-700"}`,children:y}),o.jsxs(w,{className:"flex items-center gap-x-2",children:[a," ",u]})]}),o.jsxs(w,{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:[g&&o.jsx(w,{className:"min-h-[51px] mt-1",children:o.jsx(xg,{description:L,showDetails:()=>x(!0)})}),_(),(r||s)&&o.jsx(Un,{className:"w-full !text-[var(--button-text,#FFFFFF)] !bg-[var(--button-color,#3D3D3D)] mt-3",onClick:ne,disabled:c,children:Q}),o.jsx(w,{className:"px-2 mt-3",children:o.jsx(x0,{entitlements:W,credits:Y,baseEntitlementsPlanName:C})})]}),o.jsx(Er,{isOpen:m,onClose:()=>x(!1),title:y,size:"small",bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(ma,{onClick:()=>x(!1),children:r?"Cancel":"Close"}),r&&o.jsx(Un,{onClick:ne,children:Q})]}),children:o.jsx(B8,{baseEntitlementsPlanName:C,description:L,entitlements:v,priceContent:_(!0)})})]})},yg=async({product_key:e,customer_key:t})=>{const{data:n}=await at().get(`/sdk/product_catalogues/products/published-plans?product_key=${e}&customer_key=${t}`);return n},vg=({product_key:e,customer_key:t})=>{const[n,r]=p.useState(null),[s,a]=p.useState(!1),i=async()=>{if(!e){Ct.error("Missing product_key");return}a(!0);try{const l=await yg({product_key:e,customer_key:t});r(l?.data)}catch(l){Ct.error(l instanceof Error?l.message:"Failed to load product plans")}finally{a(!1)}};return p.useEffect(()=>{i()},[e]),{productPlans:n,isLoading:s,refetch:i}},bg=e=>{const t=Np(e||[]),[n,r]=p.useState(""),s=[...t.includes(ge.DAILY)?[ge.DAILY]:[],...t.includes(ge.WEEKLY)?[ge.WEEKLY]:[],...t.includes(ge.MONTHLY)?[ge.MONTHLY]:[],...t.includes(ge.QUARTERLY)?[ge.QUARTERLY]:[],...t.includes(ge.BIANNUALLY)?[ge.BIANNUALLY]:[],...t.includes(ge.YEARLY)?[ge.YEARLY]:[]];return p.useEffect(()=>{!n&&s[0]&&r(s[0])},[s,n]),{intervals:s,selectedInterval:n,setSelectedInterval:r}},Cg=({selectedInterval:e,intervals:t,setSelectedInterval:n})=>o.jsx(w,{className:"rounded-2xl p-1 flex bg-[var(--card-background-color,#F5F5F5)]",children:t.map(r=>{const s=e===r;return o.jsx(w,{className:`py-[4px] px-3 rounded-[12px] cursor-pointer ${s?"bg-[var(--active-tab-color,#3D3D3D)]":""}`,onClick:()=>n(r),children:o.jsx(B,{variant:"body4",color:s?"text-[var(--button-text,#FFFFFF)]":"text-[var(--tab-color,#A1A1AA)]",children:vt(r)})},r)})}),wg=({product:e,tenantDetails:t})=>{const{customerKey:n,setPlans:r}=ar(),s=e?.product_key,a=t?.tenant_checkout_username,i=Vp({productKey:s,checkoutUsername:a}),{productPlans:l}=vg({product_key:s,customer_key:n}),c=p.useMemo(()=>{const m=l?.plans||[],x=new Map;return m.forEach(y=>{y.is_visible&&(!x.get(y.offering_key)||y.is_current_plan)&&x.set(y.offering_key,y)}),Array.from(x.values())},[l]),u=p.useMemo(()=>c?.findIndex(m=>m?.is_current_plan)??-1,[c]),{intervals:d,selectedInterval:f,setSelectedInterval:h}=bg(c||[]),g=m=>{window.open(m,"_blank","noopener,noreferrer")};return p.useEffect(()=>{c&&c?.length>0&&r(c)},[c,r]),!c||c?.length===0?null:o.jsx(o.Fragment,{children:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"subtitle",size:18,color:"grey-500"})}),o.jsxs(w,{className:"flex gap-x-2",children:[o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Plan"}),o.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"underline text-metrifox-blue",children:o.jsx(F8,{text:i,children:o.jsx(B,{variant:"body6",color:"text-metrifox-blue",className:"truncate w-[165px]",children:i})})})]})]})}),o.jsxs(w,{className:"bg-metrifox-white rounded-2xl mt-2 p-4",children:[d.length>0&&o.jsx(w,{className:"flex justify-center mb-2.5",children:o.jsx(Cg,{selectedInterval:f,intervals:d,setSelectedInterval:h})}),o.jsx(w,{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((m,x)=>{const y=m?.is_current_plan,{featureOrderMap:v}=Fp(c||[]),C=y&&e?.subscription?.status===Fe.ACTIVE?"Current plan":x>=u?"Upgrade":"Downgrade";return o.jsx(j0,{plan:m,featureOrderMap:v,interval:f,buttonText:C,buttonAction:()=>g(m?.checkout_url),isCurrentPlan:y,isCustomerPortal:!0},m.id)})})]})]})})},kg=()=>o.jsx(w,{className:"flex justify-center items-center gap-x-2 h-full",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(B,{variant:"body7",color:"text-metrifox-black",children:"Powered by"}),o.jsx(g1,{height:30,width:100})]})}),jg=({trigger:e,children:t,className:n="bg-metrifox-white rounded-[10px] shadow-md",shouldMatchWidth:r,anchorGap:s=4,anchorTo:a="bottom start",anchorOffset:i=0})=>{const l=p.useRef(null),[c,u]=p.useState(null);p.useLayoutEffect(()=>{l.current&&u(l.current.offsetWidth)},[]);const d=r&&c?c:"auto";return o.jsxs(D9,{className:"relative",children:[o.jsx(Qc,{className:"outline-none w-full cursor-pointer",ref:l,as:"span",children:e}),o.jsx(e1,{anchor:{gap:s,to:a,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"?o.jsx(o.Fragment,{children:t(f)}):o.jsx(o.Fragment,{children:t})})]})},Lg=async e=>{const{data:t}=await at().post("/sdk/subscriptions/schedule-cancellation",e);return t},Eg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,s]=p.useState(!1),{customerRefetch:a}=ar();return o.jsxs(Er,{size:"small",title:"Cancel subscription?",isOpen:t,onClose:n,bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(Os,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),o.jsx(Un,{className:"!bg-metrifox-danger text-metrifox-white",onClick:async()=>{s(!0);try{const i=await Lg({id:e});Ct.success(i.message),s(!1),n(),a()}catch(i){Ct.error(i instanceof Error?i.message:"An error ocurred"),s(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Confirm"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[o.jsx(U,{variant:"label7",children:"Are you sure you want to proceed?"}),o.jsx(B,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"This subscription is scheduled to be canceled at the end of the billing cycle"})]})},Sg=async e=>{const{data:t}=await at().post("/sdk/subscriptions/revert-cancellation",e);return t},Mg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,s]=p.useState(!1),{customerRefetch:a}=ar();return o.jsxs(Er,{size:"small",title:"Undo cancellation?",isOpen:t,onClose:n,bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(Os,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),o.jsx(Un,{className:"text-metrifox-white",onClick:async()=>{s(!0);try{const i=await Sg({id:e});Ct.success(i.message),s(!1),n(),a()}catch(i){Ct.error(i instanceof Error?i.message:"An error ocurred"),s(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Next"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[o.jsx(B,{variant:"body4",color:"text-metrifox-black",children:"Keep subscription active?"}),o.jsx(B,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"The subscription would keep going and renew as usual."})]})},Tg=({subscription:e})=>{const[t,n]=p.useState(!1),[r,s]=p.useState(!1);return o.jsxs(w,{children:[e?.ends_at?o.jsx(w,{onClick:()=>s(!0),className:"cursor-pointer",children:o.jsx(B,{variant:"body6",className:"text-metrifox-danger",children:"Undo cancellation"})}):o.jsx(w,{onClick:()=>n(!0),className:"cursor-pointer",children:o.jsx(B,{variant:"body6",className:"text-metrifox-danger",children:"Cancel subscription"})}),o.jsx(Eg,{subscriptionId:e?.id,isOpen:t,onClose:()=>n(!1)}),o.jsx(Mg,{subscriptionId:e?.id,isOpen:r,onClose:()=>s(!1)})]})},Dg=({subscriptionLineItems:e,handleUpdateQuantity:t,canUpdateQuantities:n})=>{const[r,s]=p.useState(!1),a=e[0];return o.jsxs(w,{children:[o.jsxs(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-4 flex items-center justify-between cursor-pointer",onClick:()=>s(!r),children:[o.jsx(U,{variant:"label8",className:"text-grey-500 font-medium",children:"Items"}),o.jsxs(w,{className:"flex gap-x-2",children:[n&&o.jsx($s,{className:"!text-metrifox-blue underline cursor-pointer",onClick:i=>{i?.stopPropagation(),t()},children:"Update items"}),o.jsx("span",{className:`transform transition-transform duration-300 ${r?"rotate-180":"rotate-0"}`,children:o.jsx(ae,{name:"arrow-down",size:14,color:"grey-500"})})]})]}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-2 -mt-2.5 space-y-2",children:r?o.jsx(o.Fragment,{children:e?.map((i,l)=>o.jsx(w,{className:"bg-grey-50 border border-grey-200 rounded-lg p-2 flex justify-between",children:o.jsxs(w,{className:"w-full flex items-center justify-between",children:[o.jsx(w,{className:"flex items-center gap-4",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(U,{variant:"label8",className:"text-grey-800 font-medium",children:vt(i?.name)}),i?.is_addon&&o.jsx(Pt,{size:"small",background:"bg-grey-300",textColor:"text-metrifox-black",children:"Add-on"})]})}),o.jsxs(B,{variant:"body6",className:"text-grey-800 font-medium",children:[$t(i?.currency_code),ce(i?.unit_price||i?.total_amount)]})]})},l))}):o.jsxs(w,{className:"bg-grey-100 rounded-lg p-2 flex items-center justify-between cursor-pointer",children:[o.jsxs(U,{variant:"label8",className:"text-grey-800 font-medium",children:[a?.name," ",o.jsx("span",{children:"\u2022"})," ",e.length," item(s)"]}),o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsxs(B,{variant:"body6",className:"text-grey-800 font-medium",children:[$t(a?.currency_code),ce(a?.unit_price||a?.total_amount)]}),o.jsxs(B,{variant:"body6",className:"text-metrifox-blue",children:["+ ",e.length-1," prices(s)"]})]})]})})]})},Pg=({subscription:e,tenantDetails:t})=>{const n=e?.status,{text:r,color:s}=Mp(n),{customerKey:a}=ar(),i=[{label:"Current plan",value:`${e?.plan_name||"-"}`},{label:"Status",value:o.jsx(Pt,{size:"small",background:s,textColor:"text-metrifox-white",children:vt(r)||"-"})},{label:"Start date",value:ct(e?.starts_at)},...n===Fe.IN_TRIAL?[{label:"Trial end date",value:ct(e?.trial_end_date)}]:[{label:"End date",value:e?.ends_at?ct(e?.ends_at):"-"}],...n===Fe.IN_TRIAL?[{label:"Trial period",value:e?.starts_at&&e?.trial_end_date?o.jsxs(U,{variant:"label7",className:"text-grey-600",children:[ct(e?.starts_at)," -"," ",ct(e?.trial_end_date)]}):"-"}]:[],...n===Fe.ACTIVE?[{label:"Renewal date",value:e?.renews_at?ct(e?.renews_at):"-"}]:[],...n===Fe.ACTIVE?[{label:"Current billing period",value:e?.current_billing_period_start&&e?.current_billing_period_end?o.jsxs(w,{children:[o.jsxs(U,{variant:"label7",className:"text-grey-600",children:[ct(e.current_billing_period_start)," -"," ",ct(e.current_billing_period_end)]}),o.jsx(Pt,{size:"small",background:"bg-grey-200",textColor:"text-metrifox-black",children:"Auto-renew"})]}):"-"}]:[],...n===Fe.ACTIVE?[{label:"Next billing date",value:e?.renews_at?ct(e?.renews_at):"-"}]:[],...n===Fe.ACTIVE?[{label:"Next estimated bill",value:e?.next_billing_amount?o.jsx(w,{children:o.jsxs(U,{variant:"label7",className:"text-grey-600",children:[$t(e.currency_code),e.next_billing_amount]})}):"-"}]:[]],l=()=>{const c=`${window.location.origin}/${t.tenant_checkout_username}/${e.offering_key}/subscriptions/${e.id}?customer=${a}`;window.open(c,"_blank","noopener,noreferrer")};return o.jsx(w,{children:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"money",size:18,color:"grey-500"})}),o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Subscription"})]}),e.status!==Fe.CANCELED&&o.jsx(jg,{trigger:o.jsx(ae,{name:"more",size:20,color:"grey-500"}),anchorTo:"bottom end",className:"bg-metrifox-white rounded-md shadow-md p-4",children:o.jsx(Tg,{subscription:e})})]}),o.jsx(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:o.jsx(U,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),o.jsx(w,{className:"bg-metrifox-white flex justify-between flex-wrap gap-8 rounded-2xl p-4 -mt-2.5",children:i?.map((c,u)=>o.jsxs(w,{className:"",children:[o.jsx(U,{variant:"label8",className:"text-grey-500",children:c?.label}),o.jsx(U,{variant:"label7",className:`text-grey-600 font-medium mt-2 ${c?.value==="-"?"text-center":""}`,children:c?.value})]},u))}),e?.subscription_items?.length>0&&o.jsx(Dg,{subscriptionLineItems:e?.subscription_items,handleUpdateQuantity:l,canUpdateQuantities:e?.can_update_quantities})]})})},Ag=({upcomingInvoice:e})=>{const[t,n]=p.useState(!1),r=p.useRef(null),{invoiceDetails:s}=m0({invoiceId:e?.invoice_id});return o.jsxs(w,{children:[o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4 w-full flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-3",children:[o.jsx(U,{variant:"label7",className:"font-medium text-metrifox-black",children:"Upcoming Invoice"}),o.jsx(w,{className:"flex items-center gap-2",children:o.jsx(Pt,{background:"bg-purple-500",size:"small",children:o.jsxs(U,{variant:"label8",className:"text-metrifox-white",children:[e?.currency?.symbol,e?.amount]})})}),o.jsxs(B,{variant:"body6",className:"text-metrifox-black",children:["Due"," ",new Date(e?.due_date).toLocaleString(e?.currency?.country_code,{month:"short",day:"numeric",year:"numeric"})]})]}),o.jsx($s,{className:"!text-metrifox-blue underline cursor-pointer",onClick:()=>{n(!0)},children:"Preview invoice"})]}),t&&o.jsx(p0,{isOpen:t,onClose:()=>n(!1),contentRef:r,content:o.jsx(x1,{data:s}),modalTitle:"Invoice preview"})]})},L0=({tabs:e,activeTab:t,handleTabClick:n,count:r,className:s,tabButtonClassName:a,activeTabButtonClassName:i})=>o.jsx(w,{className:"flex justify-between",children:o.jsx(w,{className:`flex gap-x-6 items-center ${s}`,children:e.map(l=>o.jsxs(Os,{onClick:()=>n(l.key),className:`!font-normal !text-grey-500 !border-grey-300 !rounded-xl !px-3 ${a} ${t===l.key?"flex gap-3 items-center !text-metrifox-white !bg-metrifox-primary "+i:""}`,children:[o.jsx(w,{children:l.label}),t===l.key&&r&&o.jsx(w,{className:"flex items-center bg-metrifox-secondary justify-center rounded-md h-5 px-[6px]",children:o.jsx(U,{variant:"label8",color:"text-metrifox-primary",children:Ve(r??0)})}),l.count&&o.jsx(w,{className:`flex items-center justify-center rounded-md h-5 px-[6px] ${t===l.key?"bg-metrifox-secondary":"bg-grey-100"}`,children:o.jsx(U,{variant:"label8",color:"text-metrifox-primary",children:Ve(r??0)})})]},l.key))})}),Ng=async({walletId:e,status:t})=>{const{data:n}=await at().get(`/sdk/credit_systems/wallets/${e}/credit-allocations`,{params:{status:t||void 0}});return n},Rg=({walletId:e,status:t})=>{const[n,r]=p.useState(null),[s,a]=p.useState(null),[i,l]=p.useState(!1),c=async()=>{if(!e)return a("Missing walletId");l(!0);try{const u=await Ng({walletId:e,status:t});r(u?.data),a(null)}catch(u){const d=u,f=d?.response?.data?.data?.error||d?.message;a(f||"Failed to load credit allocations")}finally{l(!1)}};return p.useEffect(()=>{c()},[e,t]),{creditAllocations:n,error:s,isLoading:i,refetch:c}},Fg=({consumed:e,total:t,className:n=""})=>{const r=t>0?e/t*100:0;return o.jsxs(w,{className:`w-full ${n}`,children:[o.jsxs(w,{className:"flex justify-between text-xs text-grey-600 mb-1",children:[o.jsx("span",{children:e.toFixed(0)}),o.jsx("span",{children:"/"}),o.jsx("span",{children:t.toFixed(0)})]}),o.jsx(w,{className:"w-full bg-grey-200 rounded-full h-2 overflow-hidden",children:o.jsx(w,{className:"bg-blue-500 h-2 rounded-full transition-all duration-300 ease-in-out",style:{width:`${r}%`}})})]})},Vg=async({allocationId:e})=>{const{data:t}=await at().get(`/sdk/credit_systems/wallets/${e}/credit-transaction`);return t},$g=({allocationId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing AllocationId");i(!0);try{const c=await Vg({allocationId:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load credit allocation")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{creditTransactions:t,error:r,isLoading:a,refetch:l}},Og=({allocationId:e,isOpen:t,onClose:n})=>{const{creditTransactions:r,isLoading:s}=$g({allocationId:e}),a=r?.allocation_type,i=m1(a||""),l=(r?.transactions||[]).map(c=>({date:ys(c.created_at),event:c.event_name||"-",quantity:c.quantity,amount:-Math.abs(c.amount)}));return o.jsx(Er,{size:"large",title:i,isOpen:t,onClose:()=>n(),className:"bg-metrifox-white",children:o.jsx(Sr,{columns:[{key:"date",header:"Date",render:c=>o.jsx(B,{variant:"body6",className:"text-md",children:c.date})},{key:"event",header:"Event",render:c=>o.jsx(B,{variant:"body6",className:"text-lg",children:c.event})},{key:"quantity",header:"Quantity",render:c=>o.jsx(B,{variant:"body6",className:"text-lg",children:c.quantity})},{key:"amount",header:"Amount",render:c=>o.jsx(B,{variant:"body6",className:"text-lg text-[#D12C2C]",children:ce(c.amount)})}],data:l,isLoading:s,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(ae,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(U,{variant:"label7",color:"text-grey-500",children:"No transactions found"})]})})})},_g=({tenantDetails:e,subscription:t,wallets:n})=>{const[r,s]=p.useState(0),[a,i]=p.useState(""),[l,c]=p.useState(!1),[u,d]=p.useState(""),[f,h]=p.useState("active"),g=k=>{h(k)},m=[{key:"active",label:"Active"},{key:"expired",label:"Expired"},{key:"overage",label:"Overage"}],{creditAllocations:x,isLoading:y}=Rg({walletId:a,status:f}),v=x?.map(k=>_p(k));p.useEffect(()=>{n&&n.length>0&&!a&&i(n?.[0]?.id)},[n,a]);const C=[{header:"Credited date",render:k=>o.jsxs(w,{className:"flex flex-col",children:[o.jsx(B,{variant:"body6",className:"text-grey-700 font-medium",children:k.creditedDate}),k.orderId&&k.orderNumber&&o.jsx(B,{variant:"body6",className:"underline",children:k.orderNumber}),k.invoiceId&&o.jsx(B,{variant:"body6",className:"underline",children:k.invoiceId})]})},{key:"source",header:"Source"},{header:"Amount",render:k=>o.jsx(B,{variant:"body6",color:"text-grey-700",children:ce(k.amount)})},{header:"Balance",render:k=>o.jsxs(w,{className:"space-y-2",children:[o.jsxs(B,{variant:"body6",className:"text-grey-700 font-medium",children:[k.balance," ",k.source==="Overage"?"":"available"]}),o.jsx(Fg,{consumed:k.consumed,total:k.amount})]})},{header:"Valid until",render:k=>o.jsx(B,{variant:"body6",color:"text-grey-700",children:k.validUntil?new Date(k.validUntil).toLocaleDateString():"No expiration"})}],b=k=>{const L=`${window.location.origin}/${e.tenant_checkout_username}/checkout/${t.offering_key}?customer=${e.customer_key}&credit=${k}`;window.open(L,"_blank","noopener,noreferrer")};if(!n||n.length===0)return null;const j=k=>{c(!0),d(k.id)};return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(ae,{name:"card-receive",size:16,color:"grey-500"})}),o.jsx(U,{variant:"label7",className:"text-metrifox-black font-medium",children:"Wallet balance"})]}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:n.length>1?o.jsxs(ms,{defaultIndex:r,onChange:s,children:[o.jsx(gs,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:n.map(k=>o.jsx(ir,{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:o.jsx(B,{variant:"body6",children:k.name})},k.id))}),o.jsx(xs,{children:n.map(k=>o.jsxs(Pn,{children:[o.jsx(w,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:o.jsxs(w,{className:"w-full flex items-center justify-between gap-1",children:[o.jsxs(w,{className:"text-center",children:[o.jsx(w,{className:"flex items-center justify-center gap-1",children:o.jsx(U,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),o.jsxs(w,{className:"flex items-baseline justify-center gap-1",children:[o.jsx(U,{variant:"label6",className:"text-neutral-800 font-medium",children:ce(k.balance)}),o.jsx(U,{variant:"label8",className:"text-grey-500 mt-3.5",children:k.name})]})]}),o.jsx(Un,{type:"button",size:"small",onClick:()=>b(k.credit_key),className:"text-metrifox-white",children:"Top up"})]})}),o.jsx(L0,{tabs:m,activeTab:f,handleTabClick:g,count:y?0:x?.length,className:"my-2"}),o.jsx(Sr,{columns:C,data:v,onRowClick:j,isLoading:y,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(ae,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(U,{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]&&o.jsxs(o.Fragment,{children:[o.jsx(w,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:o.jsxs(w,{className:"w-full flex items-center justify-between gap-1",children:[o.jsxs(w,{className:"text-center",children:[o.jsx(w,{className:"flex items-center justify-center gap-1",children:o.jsx(U,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),o.jsxs(w,{className:"flex items-baseline justify-center gap-1",children:[o.jsx(U,{variant:"label6",className:"text-neutral-800 font-medium",children:ce(n[0].balance)}),o.jsx(U,{variant:"label8",className:"text-grey-500 mt-3.5",children:n[0].name})]})]}),o.jsx(Un,{type:"button",size:"small",onClick:()=>n[0]?.id&&b(n[0].credit_key),className:"text-metrifox-white",children:"Top up"})]})}),o.jsx(L0,{tabs:m,activeTab:f,handleTabClick:g,count:y?0:x?.length,className:"my-2"}),o.jsx(Sr,{columns:C,data:v,onRowClick:j,isLoading:y,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(ae,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(U,{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"})]})}),o.jsx(Og,{allocationId:u,isOpen:l,onClose:()=>{c(!1),d("")}})]})},Bg=[{key:"upcomingInvoice"},{key:"subscription"},{key:"creditBalance"},{key:"entitlementUsage"},{key:"paymentOverview"},{key:"billingHistory"},{key:"plan"}],Ig={upcomingInvoice:"upcoming-invoice",subscription:"subscription",creditBalance:"credit-balance",entitlementUsage:"entitlement-usage",paymentOverview:"payment-overview",billingHistory:"billing-history",plan:"plan"},E0=({product:e,tenantDetails:t,sectionsConfig:n,customerWallets:r})=>{const s=n||Bg,a={upcomingInvoice:()=>e?.subscription?.upcoming_invoice?o.jsx(Ag,{upcomingInvoice:e.subscription.upcoming_invoice}):null,subscription:()=>e?.subscription?o.jsx(Pg,{subscription:e.subscription,tenantDetails:t}):null,creditBalance:()=>r&&r.length>0?o.jsx(_g,{subscription:e.subscription,tenantDetails:t,wallets:r}):null,entitlementUsage:()=>e?.subscription?o.jsx(A8,{subscriptionId:e?.subscription?.id}):null,paymentOverview:()=>o.jsx(N8,{paymentMethod:e.payment_method,tenantDetails:t}),billingHistory:()=>e?.subscription?.id?o.jsx(L8,{subscriptionId:e.subscription?.id}):null,plan:()=>e?.product_key?o.jsx(wg,{product:e,tenantDetails:t}):null};return o.jsxs(w,{className:"space-y-4",children:[s.filter(i=>!i.hidden).map(i=>{const l=Ig[i.key]??i.key;if(i.component)return o.jsx("section",{id:l,className:"space-y-4",children:o.jsx(i.component,{product:e,tenantDetails:t,...i.props})},i.key);const c=a[i.key],u=c?c(i.props):null;return u?o.jsx("section",{id:l,children:u},i.key):null}),o.jsx(kg,{})," "]})},Hg=({customerKey:e,sectionsConfig:t})=>{const[n,r]=p.useState(0),{setCustomerKey:s,setCustomerRefetch:a}=ar(),{customerDetails:i,error:l,refetch:c,isLoading:u}=cp({customerKey:e}),{customerWallets:d}=dp({customerKey:e});if(p.useEffect(()=>{s(e),a(c)},[]),l)return o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4",children:o.jsxs("div",{className:"bg-red-50 p-4 rounded-lg text-red-700",children:["Error loading customer details: ",l]})});if(u||!i)return o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4",children:o.jsxs("div",{className:"animate-pulse space-y-4",children:[o.jsx("div",{className:"h-12 bg-gray-200 rounded-lg"}),o.jsx("div",{className:"h-16 bg-gray-200 rounded-lg"}),[1,2,3,4,5].map(m=>o.jsx("div",{className:"h-48 bg-gray-200 rounded-lg"},m))]})});const{subscriptions:f,...h}=i||{},g=f||[];return o.jsx(Kf,{children:o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4 space-y-4",children:g&&g.length>1?o.jsxs(ms,{defaultIndex:n,onChange:m=>r(m),children:[o.jsx(gs,{className:"w-max bg-grey-100 border border-grey-200 text-grey-500 px-1.5 py-1 mb-4 rounded-2xl",children:g.map(m=>o.jsx(ir,{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:o.jsx(B,{variant:"body6",children:m.product_name})},m.product_key))}),o.jsx(xs,{children:g.map(m=>o.jsx(Pn,{children:o.jsx(E0,{product:m,tenantDetails:h,sectionsConfig:t,customerWallets:d})},m.product_key))})]}):o.jsx(o.Fragment,{children:g.map(m=>o.jsx(E0,{product:m,tenantDetails:h,sectionsConfig:t,customerWallets:d},m.product_key))})})})};exports.CustomerPortal=Hg,exports.PriceCard=j0,exports.metrifoxInit=vf;
|
|
39
|
+
`;function v(C,b,k,E){var j,T,N,I,F;const{contentNode:$,clonedContentNode:z,clonedImgNodes:Z,clonedVideoNodes:M,numResourcesToLoad:_,originalCanvasNodes:S}=k,{bodyClass:P,fonts:L,ignoreGlobalStyles:O,pageStyle:R,nonce:U,suppressErrors:Y,copyShadowRoots:B}=E;C.onload=null;const A=(j=C.contentDocument)!==null&&j!==void 0?j:(T=C.contentWindow)===null||T===void 0?void 0:T.document;if(A){const H=A.body.appendChild(z);B&&m($,H,!!Y),L&&(!((N=C.contentDocument)===null||N===void 0)&&N.fonts&&(!((I=C.contentWindow)===null||I===void 0)&&I.FontFace)?L.forEach(J=>{const q=new FontFace(J.family,J.source,{weight:J.weight,style:J.style});C.contentDocument.fonts.add(q),q.loaded.then(()=>{b(q)}).catch(ye=>{b(q,["Failed loading the font:",q,"Load error:",f(ye)])})}):(L.forEach(J=>{b(J)}),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:Y})));const Q=R??x,ne=A.createElement("style");U&&(ne.setAttribute("nonce",U),A.head.setAttribute("nonce",U)),ne.appendChild(A.createTextNode(Q)),A.head.appendChild(ne),P&&A.body.classList.add(...P.split(" "));const G=A.querySelectorAll("canvas");for(let J=0;J<S.length;++J){const q=S[J],ye=G[J];if(ye===void 0){u({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",q],suppressErrors:Y});continue}const ae=ye.getContext("2d");ae&&ae.drawImage(q,0,0)}for(let J=0;J<Z.length;J++){const q=Z[J],ye=q.getAttribute("src");if(ye){const ae=new Image;ae.onload=()=>{b(q)},ae.onerror=(de,pe,Ue,me,st)=>{b(q,["Error loading <img>",q,"Error",st])},ae.src=ye}else b(q,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',q])}for(let J=0;J<M.length;J++){const q=M[J];q.preload="auto";const ye=q.getAttribute("poster");if(ye){const ae=new Image;ae.onload=()=>{b(q)},ae.onerror=(de,pe,Ue,me,st)=>{b(q,["Error loading video poster",ye,"for video",q,"Error:",st])},ae.src=ye}else q.readyState>=2?b(q):q.src?(q.onloadeddata=()=>{b(q)},q.onerror=(ae,de,pe,Ue,me)=>{b(q,["Error loading video",q,"Error",me])},q.onstalled=()=>{b(q,["Loading video stalled, skipping",q])}):b(q,["Error loading video, `src` is empty",q])}const ie="select",se=$.querySelectorAll(ie),le=A.querySelectorAll(ie);for(let J=0;J<se.length;J++)le[J].value=se[J].value;if(!O){const J=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let q=0,ye=J.length;q<ye;++q){const ae=J[q];if(ae.tagName.toLowerCase()==="style"){const de=A.createElement(ae.tagName),pe=ae.sheet;if(pe){let Ue="";try{const me=pe.cssRules.length;for(let st=0;st<me;++st)typeof pe.cssRules[st].cssText=="string"&&(Ue+=`${pe.cssRules[st].cssText}\r
|
|
40
|
+
`)}catch(me){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.",ae,`Original error: ${f(me).message}`],level:"warning"})}de.setAttribute("id",`react-to-print-${q}`),U&&de.setAttribute("nonce",U),de.appendChild(A.createTextNode(Ue)),A.head.appendChild(de)}}else if(ae.getAttribute("href"))if(ae.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:",ae],level:"warning"}),b(ae);else{const de=A.createElement(ae.tagName);for(let pe=0,Ue=ae.attributes.length;pe<Ue;++pe){const me=ae.attributes[pe];me&&de.setAttribute(me.nodeName,(F=me.nodeValue)!==null&&F!==void 0?F:"")}de.onload=()=>{b(de)},de.onerror=(pe,Ue,me,st,Us)=>{b(de,["Failed to load",de,"Error:",Us])},U&&de.setAttribute("nonce",U),A.head.appendChild(de)}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:",ae],level:"warning"}),b(ae)}}}_===0&&h(C,E)}function y({bodyClass:C,contentRef:b,copyShadowRoots:k,documentTitle:E,fonts:j,ignoreGlobalStyles:T,nonce:N,onAfterPrint:I,onBeforePrint:F,onPrintError:$,pageStyle:z,preserveAfterPrint:Z,print:M,printIframeProps:_,suppressErrors:S}){return(0,l.useCallback)(L=>{function O(){const R={bodyClass:C,contentRef:b,copyShadowRoots:k,documentTitle:E,fonts:j,ignoreGlobalStyles:T,nonce:N,onAfterPrint:I,onPrintError:$,pageStyle:z,preserveAfterPrint:Z,print:M,suppressErrors:S},U=function(A){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>",A&&(A.allow&&(H.allow=A.allow),A.referrerPolicy!==void 0&&(H.referrerPolicy=A.referrerPolicy),A.sandbox!==void 0&&(H.sandbox=A.sandbox)),H}(_),Y=function(A,H){const{contentRef:Q,fonts:ne,ignoreGlobalStyles:G,suppressErrors:ie}=H,se=function({contentRef:de,optionalContent:pe,suppressErrors:Ue}){return pe&&typeof pe=="function"?(de&&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.']}),pe()):de?de.current:void u({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:Ue})}({contentRef:Q,optionalContent:A,suppressErrors:ie});if(!se)return;const le=se.cloneNode(!0),J=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),q=le.querySelectorAll("img"),ye=le.querySelectorAll("video"),ae=ne?ne.length:0;return{contentNode:se,clonedContentNode:le,clonedImgNodes:q,clonedVideoNodes:ye,numResourcesToLoad:(G?0:J.length)+q.length+ye.length+ae,originalCanvasNodes:se.querySelectorAll("canvas")}}(L,R);if(!Y)return void u({messages:["There is nothing to print"],suppressErrors:S});const B=function(A,H,Q){const{suppressErrors:ne}=A,G=[],ie=[];return function(se,le){G.includes(se)?u({level:"debug",messages:["Tried to mark a resource that has already been handled",se],suppressErrors:ne}):(le?(u({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...le],suppressErrors:ne}),ie.push(se)):G.push(se),G.length+ie.length===H&&h(Q,A))}}(R,Y.numResourcesToLoad,U);(function(A,H,Q,ne){A.onload=()=>{v(A,H,Q,ne)},document.body.appendChild(A)})(U,B,Y,R)}d(Z,!0),F?F().then(()=>{O()}).catch(R=>{$?.("onBeforePrint",f(R))}):O()},[C,b,k,E,j,T,N,I,F,$,z,Z,M,S])}return i}()})})(y0);var T8=y0.exports,v0=(e=>(e.PDF="PDF",e.Email="Email",e))(v0||{});const qn=({size:e,color:t})=>o.jsx(w,{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:o.jsx("span",{className:"sr-only",children:"Loading..."})}),gn=({children:e,onClick:t,className:n,isLoading:r,size:s="small",leadingIcon:a,trailingIcon:i,href:l,...c})=>o.jsx("button",{className:`px-4 py-2 text-[13px]/[16.9px] whitespace-nowrap flex items-center justify-center !gap-2 font-semibold text-metrifox-white bg-metrifox-primary rounded-lg disabled:opacity-60 hover:opacity-90 ${Xo[s]} ${n}`,onClick:()=>l?window.open(l,"_blank"):t?.(),...c,children:r?o.jsx(qn,{color:"white"}):o.jsxs(o.Fragment,{children:[a&&o.jsx(re,{name:a,size:16}),e,i&&o.jsx(re,{name:i,size:16})]})}),Hs=({children:e,onClick:t,className:n,leadingIcon:r,trailingIcon:s,iconColor:a,iconSize:i=16,isLoading:l,...c})=>o.jsx("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:l?o.jsx(qn,{}):o.jsxs(o.Fragment,{children:[r&&o.jsx(re,{name:r,size:i,color:a}),e,s&&o.jsx(re,{name:s,size:i,color:a})]})}),Pr=({children:e,onClick:t,className:n,isLoading:r,leadingIcon:s,trailingIcon:a,size:i="small",...l})=>o.jsx("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 ${Xo[i]} ${n}`,onClick:t,...l,children:r?o.jsx(qn,{color:"white"}):o.jsxs(o.Fragment,{children:[s&&o.jsx(re,{name:s,size:16}),e,a&&o.jsx(re,{name:a,size:16})]})}),ya=({children:e,onClick:t,className:n,isLoading:r,size:s="small",...a})=>o.jsx("button",{className:`px-4 py-2 text-[13px]/[16.9px] font-medium text-metrifox-black bg-background-system-secondary rounded-[8px] ${Xo[s]} ${n}`,onClick:t,...a,children:r?o.jsx(qn,{}):e}),M8=({contentRef:e,content:t,containerBgColor:n="bg-neutral-100",panelShadow:r,panelWidth:s="w-full"})=>{const a=T8.useReactToPrint({contentRef:e}),i=[v0.PDF],l=()=>{setTimeout(()=>{e.current&&a()},100)};return o.jsx(w,{className:`${n} flex flex-col justify-center`,children:o.jsxs(Cs,{className:"my-6 px-4",children:[o.jsxs(w,{className:"flex items-center justify-between",children:[o.jsx(ws,{className:"w-max border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:i.map(c=>o.jsx(fr,{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))}),o.jsxs(ya,{className:"flex items-center gap-1 !px-3 !py-6",size:"x-small",onClick:l,children:[o.jsx(W,{variant:"label8",className:"text-metrifox-black flex items-center gap-2.5",children:"Download"}),o.jsx(re,{name:"download",size:16,color:"metrifox-black"})]})]}),o.jsxs(js,{children:[o.jsx(Fn,{children:o.jsx(w,{ref:e,className:`bg-metrifox-white ${r} p-8 rounded-xl border-t-8 border-metrifox-black h-full mt-8 ${s} mx-auto`,children:t||"Nothing to display"})}),o.jsx(Fn,{className:"h-screen text-center py-20",children:o.jsx("p",{children:"Coming soon"})})]})]})})},b0=({isOpen:e,onClose:t,contentRef:n,content:r,modalTitle:s,modalDescription:a})=>o.jsx(Gn,{isOpen:e,onClose:t,title:s,description:a,size:"large",variant:"right-slide",className:"!p-0",children:o.jsx(M8,{contentRef:n,content:r})}),xn=({label:e,onClick:t,disabled:n,variant:r="normal",active:s})=>{const a={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=s?"bg-grey-200 font-semibold":"";return o.jsx("button",{className:`px-3 py-2 text-grey-500 hover:text-grey-800 border disabled:opacity-50 ${a[r]} ${i}`,onClick:t,disabled:n,children:e})},D8=({currentPage:e,totalPages:t,onPageChange:n})=>o.jsxs("div",{className:"flex items-center justify-center pt-6",children:[o.jsx(xn,{label:"Prev",onClick:()=>n(e-1),disabled:e===1,variant:"prev"}),(()=>{const r=[];r.push(o.jsx(xn,{label:1,onClick:()=>n(1),variant:"normal",active:e===1},1)),e>2&&r.push(o.jsx(xn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-start"));const s=Math.max(2,e-1),a=Math.min(t-1,e+1);for(let i=s;i<=a;i++)r.push(o.jsx(xn,{label:i,onClick:()=>n(i),variant:"normal",active:e===i},i));return e<t-1&&r.push(o.jsx(xn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-end")),t>1&&r.push(o.jsx(xn,{label:t,onClick:()=>n(t),variant:"normal",active:e===t},t)),r})(),o.jsx(xn,{label:"Next",onClick:()=>n(e+1),disabled:e===t,variant:"next"})]}),Ar=({columns:e,data:t,pagination:n,filters:r,actions:s,onRowClick:a,view:i="list",gridView:l,isLoading:c,skelentonRow:u=2,emptyState:d,isLastColumnSticky:f=!1,actionButton:h,className:g,emptyStateClassName:m,tab:x})=>{const[v,y]=p.useState(!1),[C,b]=p.useState(""),[k,E]=p.useState("");if(p.useEffect(()=>{y(!1),b(""),E("")},[x]),t?.length===0&&!C&&!k&&!c)return o.jsx("div",{className:`h-[55vh] flex items-center justify-center ${m}`,children:d||null});const j=N=>N?o.jsx(V,{variant:"body6",color:"text-grey-700",children:String(N)}):"-",T=l?.style?`${l?.style}`:"grid-cols-2 gap-2";return o.jsxs("div",{className:`overflow-x-auto px-3 rounded-2xl bg-metrifox-white ${g}`,children:[o.jsx("div",{className:"px-3 mb-6",children:o.jsxs("div",{className:"flex justify-between items-center",children:[s&&s,o.jsxs("div",{className:"flex justify-end w-full gap-x-2 items-center",children:[r&&o.jsx(Pr,{className:"!border-grey-300 !text-grey-500",size:"x-small",leadingIcon:"filter",onClick:()=>y(!v),children:"Filter"}),h&&o.jsx(ya,{className:"!text-metrifox-white !bg-metrifox-primary",size:"x-small",onClick:h.onClick,children:h.text})]})]})}),i==="list"&&o.jsx("div",{className:"w-full overflow-x-hidden hover:overflow-x-auto scrollbar",children:o.jsxs("table",{className:"min-w-full border-collapse text-left relative",children:[o.jsx("thead",{children:o.jsx("tr",{children:e.map((N,I)=>o.jsx("th",{className:`px-3 py-2 text-sm font-semibold text-gray-700 border-b border-grey-100 whitespace-nowrap
|
|
41
|
+
${I===e.length-1&&f?"sticky right-0 bg-white z-10":""}
|
|
42
|
+
`,children:typeof N.header=="string"?o.jsx(W,{variant:"label8",color:"text-metrifox-black",children:N.header}):N.header},I))})}),o.jsxs("tbody",{children:[c&&[...Array(u)].map((N,I)=>o.jsx(N8,{columns:e.length},I)),!c&&t?.map((N,I)=>o.jsx("tr",{onClick:()=>a?.(N),className:`relative ${a?"cursor-pointer hover:bg-grey-100":"cursor-default"}`,children:e.map((F,$)=>o.jsx("td",{className:`px-3 py-4 text-grey-700 border-grey-100 whitespace-nowrap
|
|
43
|
+
${I===t.length-1?"border-t":"border-y"}
|
|
44
|
+
${$===e.length-1&&f?"z-10 right-0 bg-white relative":""}
|
|
45
|
+
`,children:F.render?F.render(N):j(Op(N,F.key))},$))},I))]})]})}),i==="grid"&&o.jsx("div",{className:`grid ${T}`,children:t?.map((N,I)=>o.jsx("div",{className:a?"cursor-pointer":"cursor-default",onClick:()=>a?.(N),children:l?.renderItem(N)},I))}),n&&o.jsx(D8,{currentPage:n.currentPage,totalPages:n.totalPages,onPageChange:n.onPageChange})]})},N8=({columns:e})=>o.jsx("tr",{children:Array.from({length:e}).map((t,n)=>o.jsx("td",{className:"px-3 py-4 border-b border-grey-100",children:o.jsx("div",{className:"mt-1 h-4 w-20 rounded-md bg-grey-200"})},n))}),wt=({children:e,size:t="medium",background:n="transparent",textColor:r=""})=>{const s=fp[t];return o.jsx(w,{className:`inline-flex items-center ${n} min-w-fit justify-center rounded-full px-2.5 py-1 border gap-x-2 ${s} ${n==="transparent"?"border-grey-300":"border-none"} ${r}`,children:e})},P8=async({subscriptionId:e})=>{const{data:t}=await Pe().get(`/sdk/subscriptions/${e}/billing-history`);return t},A8=({subscriptionId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(!1),a=async()=>{if(!e){jt.error("Missing subscriptionId");return}s(!0);try{const i=await P8({subscriptionId:e});n(i?.data)}catch(i){jt.error(i instanceof Error?i.message:"Failed to load billing history")}finally{s(!1)}};return p.useEffect(()=>{a()},[e]),{billingHistory:t,isLoading:r,refetch:a}},R8=async({invoiceId:e})=>{const{data:t}=await Pe().get(`/sdk/invoices/${e}/view`);return t},C0=({invoiceId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(!1),a=async()=>{if(e){s(!0);try{const i=await R8({invoiceId:e});n(i?.data)}catch(i){jt.error(i instanceof Error?i.message:"Failed to load invoice details")}finally{s(!1)}}};return p.useEffect(()=>{a()},[e]),{invoiceDetails:t,isLoading:r,refetch:a}},_8=({subscriptionId:e})=>{const[t,n]=p.useState(!1),[r,s]=p.useState(null),a=p.useRef(null),{billingHistory:i}=A8({subscriptionId:e}),{invoiceDetails:l}=C0({invoiceId:r||""}),c=d=>{d.status===g1.Paid&&d.invoice_id&&(s(d.invoice_id),n(!0))},u=[{header:"Total amount",render:d=>{const{text:f,color:h}=Fp(d.status),g=Ot(d.currency);return o.jsx(w,{children:o.jsxs(w,{className:"flex items-center gap-2",children:[o.jsxs(w,{className:"flex items-center",children:[o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:g}),o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:ce(d.total_amount)})]}),o.jsx(wt,{size:"small",background:`${h}`,children:o.jsx(W,{variant:"label9",className:"capitalize text-metrifox-white",children:f})})]})})}},{header:"Invoice number",render:d=>o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.invoice_number||"-"})},{header:"Source type",render:d=>o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:dt(d.source_type==="billing_cycle"?"subscription":d.source_type).replace(/_/g," ")})},{header:"Issue date",render:d=>o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.issued_date?m1(d.issued_date).format("MMM D, YYYY"):"-"})},{header:"Due date",render:d=>o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.due_date?m1(d.due_date).format("MMM D, YYYY"):"-"})},{header:"Amount paid",render:d=>{const f=Ot(d.currency);return o.jsxs(w,{className:"flex items-center",children:[o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:f}),o.jsx(V,{className:"capitalize",variant:"body6",color:"text-grey-700",children:ce(d.amount_paid)})]})}}];return!i||i?.length===0?null:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"receipt",size:16,color:"grey-500"})}),o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Billing history"})]}),o.jsx(Ar,{columns:u,data:i,onRowClick:c,className:"mt-2"}),t&&r&&o.jsx(b0,{isOpen:t,onClose:()=>{n(!1),s(null)},contentRef:a,content:o.jsx(j1,{data:l}),modalTitle:"Invoice PDF"})]})},F8=async({subscriptionId:e})=>{const{data:t}=await Pe().get(`/sdk/subscriptions/${e}/entitlements-usage`);return t},V8=async({subscriptionId:e})=>{const{data:t}=await Pe().get(`/sdk/subscriptions/${e}/entitlements-summary`);return t},$8=({subscriptionId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),[l,c]=p.useState(null),[u,d]=p.useState(null),[f,h]=p.useState(!1),g=async()=>{if(!e)return s("Missing subscription");i(!0);try{const x=await F8({subscriptionId:e});n(x.data),s(null)}catch(x){const v=x,y=v?.response?.data?.data?.error||v?.message;s(y||"Failed to load entitlement usage")}finally{i(!1)}},m=async()=>{if(!e)return d("Missing subscription");h(!0);try{const x=await V8({subscriptionId:e});c(x.data),d(null)}catch(x){const v=x,y=v?.response?.data?.data?.error||v?.message;d(y||"Failed to load entitlement summary")}finally{h(!1)}};return p.useEffect(()=>{g(),m()},[e]),{entitlementUsage:t||[],usageError:r,isUsageLoading:a,refetchUsage:g,entitlementSummary:l||[],summaryError:u,isSummaryLoading:f,refetchSummary:m}},O8=({entitlements:e})=>{const t=Rp();return o.jsx(Ar,{columns:[{header:"Feature",render:n=>o.jsx(w,{children:o.jsxs(w,{className:"flex flex-col gap-y-1 items-start",children:[o.jsx(V,{variant:"body6",color:"text-grey-700",children:n.feature_name}),o.jsx(wt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:n.feature_key})]})})},{header:"Type",render:n=>{const r={[an.METERED]:"bg-metrifox-blue",[an.BOOLEAN]:"bg-metrifox-warning"};return o.jsxs(w,{children:[o.jsx(wt,{size:"small",textColor:"text-metrifox-white",background:r[n.feature_type],children:o.jsx(V,{variant:"body6",children:dt(n.feature_type)})}),n.usage_model&&o.jsxs(V,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:[dt(n.usage_model?.split("_").join(" ")),n.feature_type===an.METERED?n.prepaid?"/ Prepaid":`/ ${dt(n.price_type)}`:""]})]})}},{header:"Included allowance",render:n=>o.jsx(w,{children:o.jsx(V,{variant:"body6",children:n.feature_type===an.BOOLEAN?"Unlimited":`${n.included_allowance===-1?"Unlimited":Ve(n.included_allowance||0)}${n.included_allowance_reset_interval!==pr.NONE?` ${t[n.included_allowance_reset_interval].toLowerCase()}`:""}`})})},{header:"Usage limits",render:n=>o.jsx(w,{children:o.jsx(V,{variant:"body6",children:(r=>{if(r.feature_type===an.BOOLEAN)return"Unlimited";if(r.price_type===x1.PAY_AS_YOU_GO){const s=r.usage_limit??"Unlimited";let a="";return r.usage_limit_reset_interval&&r.usage_limit_reset_interval!==pr.NONE&&(a=` ${t[r.usage_limit_reset_interval].toLowerCase()}`),`${s===-1?"Unlimited":s}${a}`}if(r.purchased_qty!==null&&r.purchased_qty!==void 0){const s=r.purchased_qty===-1?"Unlimited":Ve(r.purchased_qty),a=r.billing_interval&&r.billing_interval!==pr.NONE?` ${t[r.billing_interval].toLowerCase()}`:"",i=r.soft_limit_enabled?"Soft limits enabled":"";return`${s}${a} ${i}`}if(r.included_allowance!==null&&r.included_allowance!==void 0){const s=r.included_allowance===-1?"Unlimited":Ve(r.included_allowance);let a="";return r.included_allowance_reset_interval&&r.included_allowance_reset_interval!==pr.NONE&&(a=` ${t[r.included_allowance_reset_interval].toLowerCase()}`),`${s}${a}`}return"0"})(n)})})}],data:e,emptyState:o.jsx(o.Fragment,{children:o.jsxs(w,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto ",children:[o.jsx(re,{name:"note-2",color:"neutral-200",size:72}),o.jsx(V,{variant:"body4",color:"text-grey-400",children:"No entitlements attached to this subscription"})]})})})},B8=({triggerFunc:e,trigger:t,caretIcon:n,isOpenDefault:r=!1,triggerClassName:s="",triggerOpenClassName:a="",contentClassName:i="",mainClassName:l="",children:c,caretPosition:u="end"})=>{const[d,f]=p.useState(r);return e&&(e.current=h=>f(h)),o.jsxs(w,{className:`w-full ${l}`,children:[o.jsxs(w,{onClick:()=>f(!d),className:`flex items-start justify-between gap-2 w-full px-4 py-2 bg-gray-100 cursor-pointer ${d&&a||s}`,children:[u==="start"&&o.jsx("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||o.jsx(re,{name:"arrow-down",size:24,color:"grey-500"})}),typeof t=="function"?t(d):t,u==="end"&&o.jsx("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||o.jsx(re,{name:"arrow-down",size:24,color:"grey-500"})})]}),d&&o.jsx(w,{className:`p-4 ${i}`,children:typeof c=="function"?c(()=>f(!d)):c})]})},I8=({meteredEntitlements:e})=>o.jsx(w,{className:"rounded-2xl px-3 pt-5",children:o.jsxs(w,{children:[o.jsxs(w,{className:"flex-1 grid grid-cols-4 border-b border-grey-100 gap-x-4 py-3 pl-3 pr-12",children:[o.jsx(w,{children:o.jsx(W,{variant:"label8",color:"text-metrifox-black",children:"Feature"})}),o.jsx(w,{children:o.jsx(W,{variant:"label8",color:"text-metrifox-black",children:"Type"})}),o.jsx(w,{className:"col-span-2",children:o.jsx(W,{variant:"label8",color:"text-metrifox-black",children:"Usage"})})]}),o.jsx(w,{className:"w-8"}),e.length>0?e.map(t=>{const{processedPools:n,totalUsed:r,totalAmount:s,totalBalance:a,isAnyUnlimited:i}=Yp(t),l=(c,u)=>u>0?c/u*100:0;return o.jsx(w,{className:"py-4 px-4 border-b border-grey-100 last:border-0",children:o.jsx(B8,{trigger:o.jsxs(w,{className:"flex-1 grid grid-cols-4 gap-4 items-center pr-8",children:[o.jsxs(w,{className:"flex flex-col gap-y-1 items-start",children:[o.jsx(V,{variant:"body6",color:"text-grey-700",children:t.feature_name}),o.jsx(wt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:t.feature_key})]}),o.jsx(w,{children:o.jsx(V,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:dt(t.type?.split("_").join(" "))})}),o.jsxs(w,{className:"col-span-2",children:[o.jsx(V,{variant:"body6",color:"text-grey-700",children:!i&&(a<0?`${Ve(Math.abs(a))} used above limit`:`${Ve(a)} left`)}),o.jsxs(w,{className:"w-full flex items-center gap-x-2",children:[o.jsx(w,{className:"w-96 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:i?o.jsx(w,{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=>o.jsx(w,{className:"h-[6px] bg-metrifox-blue",style:{width:`${l(c.used,s)}%`}},c.pool))}),o.jsx(V,{variant:"body6",color:"text-grey-700",children:i?`${Ve(r)}/Unlimited`:`${Ve(r)}/${Ve(s)}`})]})]})]}),triggerClassName:"!p-0 !bg-transparent !item-center",contentClassName:"!p-0",caretIcon:o.jsx(re,{name:"arrow-down-linear",size:16,color:"grey-500"}),children:o.jsx(w,{className:"w-full rounded-lg overflow-hidden flex flex-col items-start justify-start gap-y-0 pt-4",children:n.map((c,u)=>o.jsxs(w,{className:"w-full flex items-center px-6 py-3 bg-grey-100 gap-x-40",children:[o.jsx(V,{variant:"body6",color:"text-grey-700",className:"w-20",children:c.pool}),o.jsxs(w,{children:[o.jsx(V,{variant:"body6",color:"text-grey-700",children:!c.isUnlimited&&(c.balance<0?`${Ve(Math.abs(c.balance))} used above limit`:`${Ve(c.balance)} left`)}),o.jsxs(w,{className:"w-full flex items-center gap-x-2",children:[o.jsx(w,{className:"w-72 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:o.jsx(w,{className:`h-[6px] bg-${c.color}`,style:{width:`${c.percent}%`}})}),o.jsx(V,{variant:"body6",color:"text-grey-700",children:c.isUnlimited?`${Ve(c.used)}/ Unlimited`:`${Ve(c.used)}/${Ve(c.amount)}`})]}),c.nextResetAt&&o.jsxs(V,{variant:"body6",color:"text-grey-500",children:["resets on ",c.nextResetAt]})]})]},u))})})},t.id)}):o.jsxs(w,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto py-12 ",children:[o.jsx(re,{name:"note-1-bulk",color:"neutral-200",size:72}),o.jsx(V,{variant:"body4",color:"text-grey-400",children:"No metered entitlements attached to this subscription"})]})]})}),H8=({subscriptionId:e})=>{const{entitlementUsage:t,entitlementSummary:n}=$8({subscriptionId:e}),r=t?.filter(s=>s.type!==an.BOOLEAN)||[];return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"radar",size:16,color:"grey-500"})}),o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Entitlements"})]})}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:o.jsxs(Cs,{children:[o.jsxs(ws,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:[o.jsx(fr,{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:o.jsx(V,{variant:"body6",children:"Summary"})}),r.length>0&&o.jsx(fr,{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:o.jsx(V,{variant:"body6",children:"Usage"})})]}),o.jsxs(js,{children:[o.jsx(Fn,{children:o.jsx(O8,{entitlements:n})}),r.length>0&&o.jsx(Fn,{children:o.jsx(I8,{meteredEntitlements:r})})]})]})})]})},W8=({tenantDetails:e,paymentMethod:t})=>{const{address:n}=h1(e?.billing_address),r=[{label:"Billed to",value:e?.full_name||"-"},{label:"Billing email",value:e?.billing_email||"-"},{label:"Billing address",value:n||"-"}];return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"money",size:18,color:"grey-500"})}),o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Payment"})]})}),o.jsx(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:o.jsx(W,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),o.jsxs(w,{className:"bg-metrifox-white grid grid-cols-3 gap-8 justify-between rounded-2xl p-4 -mt-2.5",children:[r?.map((s,a)=>o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"text-grey-500",children:s?.label}),o.jsx(W,{variant:"label7",className:"text-grey-600 font-medium mt-2",children:s?.value||"-"})]},a)),o.jsxs(w,{children:[o.jsx(W,{variant:"label8",className:"text-grey-500",children:"Payment method"}),t?o.jsxs(w,{className:"flex items-center gap-x-2 mt-2",children:[o.jsxs(V,{variant:"body6",color:"text-grey-600 font-medium",children:[dt(t?.brand)," ",t?.display_name," "]}),o.jsxs(V,{variant:"body6",className:"text-neutral-500 font-light",children:["Expires ",t?.exp_month,"/",t?.exp_year]})]}):o.jsx("span",{children:"-"})]})]})]})},U8=({progress:e})=>{const t=L8(e,[0,20,100],[0,0,1]);return o.jsx(Is.svg,{width:"16",height:"16",viewBox:"0 0 25 25",children:o.jsx(Is.path,{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",fill:"transparent",stroke:"#1E4D37",strokeWidth:2,style:{pathLength:t}})})},Z8=({text:e,children:t,showCopyIcon:n})=>{const r=m0(90),[s,a]=p.useState(!1),i=l=>{navigator.clipboard.writeText(l).catch(()=>{})};return o.jsxs(w,{className:"*:ml-1 flex items-center bg-grey-200 w-fit py-0.5 px-2 rounded-xl font-medium",children:[t||o.jsx(V,{variant:"body6",color:"text-grey-700",className:"!ml-0",children:e}),n&&o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(Is.div,{initial:{x:0},animate:{x:100},style:{x:r},transition:{duration:.25,ease:"easeOut"}}),o.jsx(U8,{progress:r})]}):o.jsx("button",{className:"w-fit",type:"button",onClick:l=>{l.stopPropagation(),i(e),a(!0),setTimeout(()=>a(!1),2e3)},children:o.jsx(re,{name:"copy",color:"grey-500",size:16})})})]})},w0=ao(e=>({plans:[],setPlans:t=>e(n=>({plans:typeof t=="function"?t(n.plans):t}))})),va=({selectedInterval:e,publishedOnly:t=!1})=>{const{plans:n}=w0(),[r,s]=p.useState(40),a=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=>!!a(d)?.description),l=n?.some(d=>!!a(d)?.trial_duration_value),c=n?.some(d=>{const f=a(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=a(d);return f?[f.credit_attachment_price_options,f.entitlement_price_options].some(h=>Array.isArray(h)&&h.some(g=>g.price?.billing_interval===e)):!1});return p.useEffect(()=>{n.forEach(d=>{const f=a(d);if(!f)return;const h=[...f.credit_attachment_price_options||[],...f.entitlement_price_options||[]].filter(y=>y.price?.billing_interval===e),g=y=>{const C=y,b=C?.price?.name||C?.price?.owner?.feature?.name||C?.price?.owner?.name,{price:k,label:E,currencySymbol:j}=Qo(C);return`${b} from ${j}${k}${E?`/${E}`:""}`.length>40?39:24},m=h[0]?g(h[0]):0,x=h[1]?g(h[1]):0,v=m+x;s(y=>v>y?v:y)})},[n,e]),{dynamicCardHeight:r,shouldShowDescription:i,shouldShowFreeTrial:l,shouldShowFixedPrice:c,shouldShowDynamicPrices:u}},j0=({entitlements:e,baseEntitlementsPlanName:t,credits:n})=>{const r=ei(e).filter(s=>s?.is_visible);return o.jsxs(w,{children:[o.jsx(W,{variant:"label7",className:"text-metrifox-primary mb-3",as:"p",children:t?`Everything in ${t} plus:`:"\xA0"}),o.jsxs("ul",{className:"flex flex-col gap-y-3",children:[n?.map((s,a)=>o.jsxs("li",{className:"flex items-center gap-[10px]",children:[" ",o.jsx(re,{name:"check",color:"green-600",size:16}),o.jsx(V,{variant:"body5",children:s.included_usage_text})]},a)),r?.map((s,a)=>o.jsxs("li",{className:"flex items-center gap-[10px]",children:[" ",o.jsx(re,{name:"check",color:"green-600",size:16}),o.jsx(V,{variant:"body5",children:s.display_text})]},a))]})]})},z8=e=>{const t=e?.price?.billing_interval,n=e?.price.tiers,r=e?.price.currency,s=e?.price?.invoice_timing,a=Ot(r),i=x=>{const v=e?.price?.owner,y=v?.included_usage||0,C=x?.find(N=>N.first_unit===y);if(!C)return{price:null,label:null};const{unit_price:b,package_price:k,package_size:E,pricing_model:j,flat_fee:T}=C;return T?{price:T.toFixed(2),label:""}:{per_unit:{price:b?.toFixed(2),label:`per. ${v?.feature?.unit_singular||v?.credit_unit_singular}`},per_package:{price:k?.toFixed(2),label:`for ${E} ${v?.feature?.unit_plural}`}}[j]??{price:null,label:null}},{price:l,label:c}=i(n),u=e?.price?.is_custom&&e?.price?.billing_interval_value>1?`every ${e?.price?.billing_interval_value} ${Ip[t]}`:t,d=[ge.DAILY,ge.WEEKLY],f={[ge.DAILY]:"day",[ge.WEEKLY]:"week"},h=t,g=d.includes(h)?f[h]:"month",m=(Bp(t,e?.price?.billing_interval_value)*(e?.price?.price??0)).toFixed(2);return{amount:(e?.price?.price??0).toFixed(2),billedText:u,intervalText:g,billingAmount:m,tierPrice:l,tierLabel:c,currencySymbol:a,invoiceTiming:s,intervalValue:e?.price?.billing_interval_value}},K8=({priceOption:e,interval:t})=>{const{amount:n,billedText:r,billingAmount:s,intervalText:a,currencySymbol:i,intervalValue:l}=z8(e),c=ce(n).split("."),u=c?c[0]:"0",d=c&&c.length>1?c[1]:"00";return o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsx(W,{variant:"label7",className:"text-grey-600 mb-2",children:"Fixed recurring"})}),o.jsxs(w,{className:"flex items-end",children:[o.jsxs(W,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[i,u]}),o.jsxs(W,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",d]}),o.jsxs(V,{variant:"body4",className:"mb-[5px] text-grey-500",children:["/",a]})]}),(t!==ge.MONTHLY||l!==1)&&o.jsxs(V,{className:"-mt-2",variant:"body6",children:["Billed"," ",o.jsxs(W,{as:"span",variant:"label8",className:"inline-block",children:[i,ce(s)," ",r.toLowerCase()]})]})]})},Y8=({interval:e,dynamicPrices:t,showMoreCard:n,showMore:r})=>{const[s,a]=p.useState(""),{dynamicCardHeight:i}=va({selectedInterval:e}),l=n?"":"flex flex-col",c=n?{}:{height:i+20};return o.jsxs(w,{className:l,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=Hp(u?.price.tiers,u.price.currency),{price:h,label:g,currencySymbol:m,isPercentage:x}=Qo(u),v=f?.length===1;return n?o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(W,{variant:"label7",className:"text-grey-600 mb-1",children:d}),v&&o.jsxs(w,{className:"flex items-center cursor-pointer",children:[o.jsxs(W,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),g&&o.jsxs(V,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[x?"\xA0":"/",g]})]})]}),!v&&o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(V,{variant:"body5",className:"text-grey-700",children:"Starts at"}),o.jsxs(w,{className:"flex items-center cursor-pointer",onClick:y=>{y.stopPropagation(),a(s===u.id?"":u.id)},children:[o.jsxs(W,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),o.jsxs(V,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[x?"\xA0":"/",g]}),f.length>1&&o.jsx(re,{name:s===u.id?"arrow-up-light":"arrow-down-linear",size:16,color:"grey-400"})]})]}),s===u.id&&f.length>1&&o.jsx(w,{className:"bg-grey-200 p-2 mt-1 rounded-lg",children:o.jsx(w,{className:"flex flex-col gap-y",children:f?.map(y=>o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsx(V,{variant:"body7",color:"text-grey-700",children:y?.label}),o.jsxs(V,{variant:"body7",color:"text-grey-700",children:[y?.price,y?.package?`/${y?.package} ${g}`:""]})]},y?.label))})})]},u.id):o.jsx(w,{className:"mt-1",children:o.jsxs(w,{className:"flex items-center gap-x-1 flex-wrap",children:[o.jsx(W,{variant:"label8",className:"text-grey-600 whitespace-nowrap",children:d}),o.jsx(V,{variant:"body7",children:v?"at":"from"}),o.jsxs(w,{className:"flex items-center",children:[o.jsxs(W,{variant:"label7",color:"text-metrifox-black",children:[!x&&m,h]}),g&&o.jsxs(V,{variant:"body7",color:"text-grey-500",children:[x?"\xA0":"/",g]})]})]})},u.id)}),!n&&!!t?.length&&o.jsx(w,{className:"flex justify-center mt-auto",children:o.jsx(Hs,{onClick:u=>{r(),u?.stopPropagation()},className:"mt-2",children:o.jsx(V,{variant:"body8",className:"text-metrifox-blue underline",children:"Explore all priced features \u2192"})})})]})},k0=({priceOption:e})=>{const{price:t,label:n,currencySymbol:r,isPercentage:s}=Qo(e),a=ce(t).split("."),i=a?a[0]:"0",l=a&&a.length>1?a[1]:"00";return o.jsxs(w,{className:"p-2 border-b border-grey-200 last:border-0",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsx(W,{variant:"label7",className:"text-grey-600 mb-2",children:"Starts at"})}),o.jsxs(w,{className:"flex items-end",children:[!s&&o.jsxs(o.Fragment,{children:[o.jsxs(W,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[r,i]}),o.jsxs(W,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",l]})]}),s&&o.jsx(W,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:t}),n&&o.jsxs(V,{variant:"body4",className:"mb-[5px] text-grey-500",children:[s?"\xA0":"/",n]})]})]})},G8=({interval:e,priceOptions:t,entitlementPriceOptions:n,creditAttachmentPriceOptions:r,isPricePage:s,trialTag:a,showMoreCard:i,isFree:l,isCustom:c,showMore:u,addPriceButton:d})=>{const{shouldShowFixedPrice:f,shouldShowFreeTrial:h,shouldShowDynamicPrices:g}=va({selectedInterval:e,publishedOnly:s}),m=v1(e,t),x=b1(e,n),v=b1(e,r),y=x.length===1&&!m,C=v.length===1&&!m&&x.length===0,b=[...C?[]:v,...y?[]:x];return!s&&!m&&x.length===0&&!v.length&&!l&&!c?o.jsxs(o.Fragment,{children:[o.jsx(w,{className:"h-[94px] flex items-center",children:o.jsx(w,{className:"w-full bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3",children:d||o.jsx(V,{variant:"body6",children:"No price added yet"})})}),h&&o.jsx(w,{className:"h-6"})]}):o.jsxs(w,{className:i?"bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3":"",children:[f&&o.jsxs(w,{className:i?"":"h-[94px]",children:[l&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(W,{variant:"label3",children:"Free"})})}),c&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(W,{variant:"label4",children:"Custom"})})}),!m&&!l&&!c&&!y&&!C&&o.jsx(w,{className:"p-2 border-b border-grey-200 last:border-0",children:o.jsx(w,{className:"flex items-center justify-between pt-[21px] pb-4",children:o.jsx(W,{variant:"label4",children:"No fixed price"})})}),m&&o.jsx(K8,{interval:e,priceOption:m}),y&&!m&&o.jsx(k0,{priceOption:x[0]}),C&&!m&&!y&&o.jsx(k0,{priceOption:v[0]})]}),h&&!s&&o.jsx(w,{className:"h-6",children:a}),g&&o.jsx(Y8,{interval:e,dynamicPrices:b,showMoreCard:i,showMore:u})]})},q8=({description:e,entitlements:t,baseEntitlementsPlanName:n,priceContent:r})=>o.jsxs(w,{children:[o.jsx(W,{variant:"label7",className:"mb-2",children:"Description"}),o.jsx(V,{variant:"body5",className:"mb-4",children:e}),r,o.jsx(j0,{entitlements:t,baseEntitlementsPlanName:n})]});function X8(e){p.useEffect(function(){typeof e=="function"&&e()},[])}var J8="Expected a function",E0=0/0,Q8="[object Symbol]",eg=/^\s+|\s+$/g,tg=/^[-+]0x[0-9a-f]+$/i,ng=/^0b[01]+$/i,rg=/^0o[0-7]+$/i,sg=parseInt,og=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,ig=typeof self=="object"&&self&&self.Object===Object&&self,ag=og||ig||Function("return this")(),lg=Object.prototype,cg=lg.toString,ug=Math.max,dg=Math.min,ba=function(){return ag.Date.now()};function fg(e,t,n){var r,s,a,i,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(J8);t=S0(t)||0,Ca(n)&&(d=!!n.leading,f="maxWait"in n,a=f?ug(S0(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function g(j){var T=r,N=s;return r=s=void 0,u=j,i=e.apply(N,T),i}function m(j){return u=j,l=setTimeout(y,t),d?g(j):i}function x(j){var T=j-c,N=j-u,I=t-T;return f?dg(I,a-N):I}function v(j){var T=j-c,N=j-u;return c===void 0||T>=t||T<0||f&&N>=a}function y(){var j=ba();if(v(j))return C(j);l=setTimeout(y,x(j))}function C(j){return l=void 0,h&&r?g(j):(r=s=void 0,i)}function b(){l!==void 0&&clearTimeout(l),u=0,r=c=s=l=void 0}function k(){return l===void 0?i:C(ba())}function E(){var j=ba(),T=v(j);if(r=arguments,s=this,c=j,T){if(l===void 0)return m(c);if(f)return l=setTimeout(y,t),g(c)}return l===void 0&&(l=setTimeout(y,t)),i}return E.cancel=b,E.flush=k,E}function Ca(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function hg(e){return!!e&&typeof e=="object"}function pg(e){return typeof e=="symbol"||hg(e)&&cg.call(e)==Q8}function S0(e){if(typeof e=="number")return e;if(pg(e))return E0;if(Ca(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ca(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(eg,"");var n=ng.test(e);return n||rg.test(e)?sg(e.slice(2),n?2:8):tg.test(e)?E0:+e}var mg=fg,gg=$r(mg);function xg(e,t,n){var r=p.useCallback(function(a){return gg(a,t,n)},[t,n]),s=p.useRef(r(e));return p.useEffect(function(){s.current=r(e)},[e,r]),s.current}function yg(e,t){var n=p.useRef(!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."),p.useEffect(function(){n.current?e():n.current=!0},t),p.useEffect(function(){return function(){n.current=!1}},[])}var L0=typeof window>"u"?p.useEffect:p.useLayoutEffect;function vg(e,t){t===void 0&&(t=!1);var n=t?L0:p.useEffect,r=p.useRef(e);return n(function(){r.current=e}),r}function bg(e){var t=vg(e);function n(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];typeof t.current=="function"&&t.current.apply(t,r)}return n}var Cg=process.env.NODE_ENV!=="production",T0=function(){};if(Cg){var wg=function(e){var t="Warning: ".concat(e);typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};T0=function(e,t){e||wg(t)}}function jg(e,t,n,r,s,a){r===void 0&&(r={}),s===void 0&&(s=!0),a===void 0&&(a=!1);var i=bg(n),l=a?L0:p.useEffect;l(function(){return T0(typeof e<"u","[useGlobalObjectEventListener]: Cannot attach event handlers to undefined."),typeof e<"u"&&s?(e.addEventListener(t,i,r),function(){e.removeEventListener(t,i,r)}):function(){}},[t,r])}function kg(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),typeof window<"u"?jg(window,"resize",e,{passive:!0},t,n):console.warn("useOnWindowResize can't attach an event listener as window is undefined.")}var M0="...",Eg=0,Ws=function(){return"__clamp_text_key__".concat(Eg++)};function Sg(e){var t=e.text,n=e.ellipsis,r=n===void 0?M0:n,s=e.lines,a=s===void 0?3:s,i=e.expanded,l=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=p.useState(function(){return{noClamp:!1,clampedText:".",key:Ws()}}),g=h[0],m=g.noClamp,x=g.clampedText,v=g.key,y=h[1],C=p.useRef(),b=p.useRef(0),k=p.useCallback(function(j){var T=j.lineHeight,N=j.originalText,I=j.expanded,F=j.ellipsis,$=j.lines,z=j.charWidth,Z=C.current;if(!Z)return;if(!N||I){y({noClamp:!0,clampedText:N,key:Ws()});return}var M=T*$+1,_=0;typeof F=="string"?_=F===M0?5:Math.ceil(F.length*z):typeof F=="number"&&(_=Math.ceil(F*z));var S=0,P=0,L=N.length;if(!Z.clientHeight)return;function O(){var U,Y=(U=Z?.clientHeight)!==null&&U!==void 0?U:1;Y<=M?S=P+1:L=P-1}for(;S<=L;){if(P=Math.floor((S+L)/2),Z.innerText=N.slice(0,P),P===N.length){y({clampedText:N,noClamp:!0,key:Ws()});return}O()}var R=N.slice(0,Math.max(P-_,0)).trim()+(typeof F=="string"?F:"");Z.innerText=R,y({noClamp:!1,clampedText:R,key:Ws()})},[]),E=xg(k,u);return kg(function(){return E({lineHeight:b.current,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})}),X8(function(){var j,T;if(t&&!b.current){var N=((T=(j=C.current)===null||j===void 0?void 0:j.clientHeight)!==null&&T!==void 0?T:1)+1;b.current=N,k({lineHeight:N,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})}}),yg(function(){k({lineHeight:b.current,originalText:t,expanded:l,ellipsis:r,lines:a,charWidth:f})},[l,t,f,r,a]),[C,{noClamp:m,clampedText:x,key:v}]}const Lg=({description:e,showDetails:t})=>{const[n,{noClamp:r,clampedText:s,key:a}]=Sg({text:e,ellipsis:12.5,lines:3});return e?o.jsx(V,{variant:"body6",children:o.jsxs("span",{ref:n,className:"w-full inline-block",children:[s,!r&&o.jsxs(o.Fragment,{children:["...",o.jsx(Hs,{onClick:i=>{t(),i?.stopPropagation()},className:"!inline",children:o.jsx(V,{variant:"body6",className:"text-metrifox-blue border-b border-metrifox-blue",children:"See more"})})]})]},a)}):null},D0=({plan:e,interval:t,featureOrderMap:n,isPricePage:r,isCustomerPortal:s,statusTag:a,addPriceButton:i,buttonText:l,isCurrentPlan:c,planActions:u,cardAction:d,buttonAction:f})=>{const{setPlans:h}=w0(),{shouldShowDescription:g}=va({selectedInterval:t,publishedOnly:r}),[m,x]=p.useState(!1),{name:v,entitlements:y,base_entitlements_plan_name:C,is_free:b,is_custom:k,custom_cta_text:E,description:j,price_options:T,entitlement_price_options:N,credit_attachment_price_options:I,credit_attachments:F,trial_duration_unit:$,trial_duration_value:z,version_id:Z,is_visible:M,is_invoiceable:_,status:S}=e,P=v1(t,[...T,...N,...I]),L=$&&z,O=z===1?$:`${$}s`,R=ei([...y]).filter(G=>G?.is_visible),U=Up(R,n),Y=F?.filter(G=>G.included_usage);if(p.useEffect(()=>{e&&h(G=>[...G,e])},[e,h]),!P&&!b&&!k&&r||!M&&r||!_&&r||!P&&S!==y1.DRAFT&&(T?.length>0||N?.length>0||I?.length>0))return null;const B=G=>o.jsx(G8,{trialTag:L&&o.jsx(wt,{background:"bg-grey-300",textColor:"text-metrifox-black",size:"small",children:o.jsx(V,{variant:"body6",children:`${z} ${O} Free trial`})}),offering:e,interval:t,priceOptions:T,entitlementPriceOptions:N,creditAttachmentPriceOptions:I,isPricePage:r,versionId:Z,showMoreCard:G,showMore:()=>x(!0),isFree:b,isCustom:k,addPriceButton:i}),A=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=k?E:b?"Get started":L?`Start ${z} ${O} free trial`:"Buy now",Q=r?H:l,ne=()=>{f?.()};return o.jsxs(w,{className:`flex flex-col rounded-2xl border border-grey-100 text-wrap shrink-0 ${c?"bg-metrifox-primary":"bg-grey-200"} ${A}`,onClick:d,children:[o.jsxs(w,{className:"flex items-center justify-between pl-4 pr-[5px] pt-[6px] pb-[2px]",children:[o.jsx(W,{variant:"label7",className:`${c?"text-metrifox-white":"text-grey-700"}`,children:v}),o.jsxs(w,{className:"flex items-center gap-x-2",children:[a," ",u]})]}),o.jsxs(w,{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:[g&&o.jsx(w,{className:"min-h-[51px] mt-1",children:o.jsx(Lg,{description:j,showDetails:()=>x(!0)})}),B(),(r||s)&&o.jsx(gn,{className:"w-full !text-[var(--button-text,#FFFFFF)] !bg-[var(--button-color,#3D3D3D)] mt-3",onClick:ne,disabled:c,children:Q}),o.jsx(w,{className:"px-2 mt-3",children:o.jsx(j0,{entitlements:U,credits:Y,baseEntitlementsPlanName:C})})]}),o.jsx(Gn,{isOpen:m,onClose:()=>x(!1),title:v,size:"small",bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(ya,{onClick:()=>x(!1),children:r?"Cancel":"Close"}),r&&o.jsx(gn,{onClick:ne,children:Q})]}),children:o.jsx(q8,{baseEntitlementsPlanName:C,description:j,entitlements:y,priceContent:B(!0)})})]})},Tg=async({product_key:e,customer_key:t})=>{const{data:n}=await Pe().get(`/sdk/product_catalogues/products/published-plans?product_key=${e}&customer_key=${t}`);return n},Mg=({product_key:e,customer_key:t})=>{const[n,r]=p.useState(null),[s,a]=p.useState(!1),i=async()=>{if(!e){jt.error("Missing product_key");return}a(!0);try{const l=await Tg({product_key:e,customer_key:t});r(l?.data)}catch(l){jt.error(l instanceof Error?l.message:"Failed to load product plans")}finally{a(!1)}};return p.useEffect(()=>{i()},[e]),{productPlans:n,isLoading:s,refetch:i}},Dg=e=>{const t=Wp(e||[]),[n,r]=p.useState(""),s=[...t.includes(ge.DAILY)?[ge.DAILY]:[],...t.includes(ge.WEEKLY)?[ge.WEEKLY]:[],...t.includes(ge.MONTHLY)?[ge.MONTHLY]:[],...t.includes(ge.QUARTERLY)?[ge.QUARTERLY]:[],...t.includes(ge.BIANNUALLY)?[ge.BIANNUALLY]:[],...t.includes(ge.YEARLY)?[ge.YEARLY]:[]];return p.useEffect(()=>{!n&&s[0]&&r(s[0])},[s,n]),{intervals:s,selectedInterval:n,setSelectedInterval:r}},Ng=({selectedInterval:e,intervals:t,setSelectedInterval:n})=>o.jsx(w,{className:"rounded-2xl p-1 flex bg-[var(--card-background-color,#F5F5F5)]",children:t.map(r=>{const s=e===r;return o.jsx(w,{className:`py-[4px] px-3 rounded-[12px] cursor-pointer ${s?"bg-[var(--active-tab-color,#3D3D3D)]":""}`,onClick:()=>n(r),children:o.jsx(V,{variant:"body4",color:s?"text-[var(--button-text,#FFFFFF)]":"text-[var(--tab-color,#A1A1AA)]",children:dt(r)})},r)})}),Pg=({product:e,tenantDetails:t})=>{const{customerKey:n,setPlans:r}=hr(),s=e?.product_key,a=t?.tenant_checkout_username,i=zp({productKey:s,checkoutUsername:a}),{productPlans:l}=Mg({product_key:s,customer_key:n}),c=p.useMemo(()=>{const m=l?.plans||[],x=new Map;return m.forEach(v=>{v.is_visible&&(!x.get(v.offering_key)||v.is_current_plan)&&x.set(v.offering_key,v)}),Array.from(x.values())},[l]),u=p.useMemo(()=>c?.findIndex(m=>m?.is_current_plan)??-1,[c]),{intervals:d,selectedInterval:f,setSelectedInterval:h}=Dg(c||[]),g=m=>{window.open(m,"_blank","noopener,noreferrer")};return p.useEffect(()=>{c&&c?.length>0&&r(c)},[c,r]),!c||c?.length===0?null:o.jsx(o.Fragment,{children:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsx(w,{className:"flex items-center justify-between",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"subtitle",size:18,color:"grey-500"})}),o.jsxs(w,{className:"flex gap-x-2",children:[o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Plan"}),o.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"underline text-metrifox-blue",children:o.jsx(Z8,{text:i,children:o.jsx(V,{variant:"body6",color:"text-metrifox-blue",className:"truncate w-[165px]",children:i})})})]})]})}),o.jsxs(w,{className:"bg-metrifox-white rounded-2xl mt-2 p-4",children:[d.length>0&&o.jsx(w,{className:"flex justify-center mb-2.5",children:o.jsx(Ng,{selectedInterval:f,intervals:d,setSelectedInterval:h})}),o.jsx(w,{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((m,x)=>{const v=m?.is_current_plan,{featureOrderMap:y}=Zp(c||[]),C=v&&e?.subscription?.status===Fe.ACTIVE?"Current plan":x>=u?"Upgrade":"Downgrade";return o.jsx(D0,{plan:m,featureOrderMap:y,interval:f,buttonText:C,buttonAction:()=>g(m?.checkout_url),isCurrentPlan:v,isCustomerPortal:!0},m.id)})})]})]})})},Ag=()=>o.jsx(w,{className:"flex justify-center items-center gap-x-2 h-full",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(V,{variant:"body7",color:"text-metrifox-black",children:"Powered by"}),o.jsx(w1,{height:30,width:100})]})}),Rg=({trigger:e,children:t,className:n="bg-metrifox-white rounded-[10px] shadow-md",shouldMatchWidth:r,anchorGap:s=4,anchorTo:a="bottom start",anchorOffset:i=0})=>{const l=p.useRef(null),[c,u]=p.useState(null);p.useLayoutEffect(()=>{l.current&&u(l.current.offsetWidth)},[]);const d=r&&c?c:"auto";return o.jsxs(B6,{className:"relative",children:[o.jsx(o1,{className:"outline-none w-full cursor-pointer",ref:l,as:"span",children:e}),o.jsx(i1,{anchor:{gap:s,to:a,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"?o.jsx(o.Fragment,{children:t(f)}):o.jsx(o.Fragment,{children:t})})]})},_g=async e=>{const{data:t}=await Pe().post("/sdk/subscriptions/schedule-cancellation",e);return t},Fg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,s]=p.useState(!1),{customerRefetch:a}=hr();return o.jsxs(Gn,{size:"small",title:"Cancel subscription?",isOpen:t,onClose:n,bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(Pr,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),o.jsx(gn,{className:"!bg-metrifox-danger text-metrifox-white",onClick:async()=>{s(!0);try{const i=await _g({id:e});jt.success(i.message),s(!1),n(),a()}catch(i){jt.error(i instanceof Error?i.message:"An error ocurred"),s(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Confirm"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[o.jsx(W,{variant:"label7",children:"Are you sure you want to proceed?"}),o.jsx(V,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"This subscription is scheduled to be canceled at the end of the billing cycle"})]})},Vg=async e=>{const{data:t}=await Pe().post("/sdk/subscriptions/revert-cancellation",e);return t},$g=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,s]=p.useState(!1),{customerRefetch:a}=hr();return o.jsxs(Gn,{size:"small",title:"Undo cancellation?",isOpen:t,onClose:n,bottomContent:o.jsxs(w,{className:"flex justify-end gap-x-2",children:[o.jsx(Pr,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),o.jsx(gn,{className:"text-metrifox-white",onClick:async()=>{s(!0);try{const i=await Vg({id:e});jt.success(i.message),s(!1),n(),a()}catch(i){jt.error(i instanceof Error?i.message:"An error ocurred"),s(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Next"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[o.jsx(V,{variant:"body4",color:"text-metrifox-black",children:"Keep subscription active?"}),o.jsx(V,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"The subscription would keep going and renew as usual."})]})},Og=({subscription:e})=>{const[t,n]=p.useState(!1),[r,s]=p.useState(!1);return o.jsxs(w,{children:[e?.ends_at?o.jsx(w,{onClick:()=>s(!0),className:"cursor-pointer",children:o.jsx(V,{variant:"body6",className:"text-metrifox-danger",children:"Undo cancellation"})}):o.jsx(w,{onClick:()=>n(!0),className:"cursor-pointer",children:o.jsx(V,{variant:"body6",className:"text-metrifox-danger",children:"Cancel subscription"})}),o.jsx(Fg,{subscriptionId:e?.id,isOpen:t,onClose:()=>n(!1)}),o.jsx($g,{subscriptionId:e?.id,isOpen:r,onClose:()=>s(!1)})]})},Bg=({subscriptionLineItems:e,handleUpdateQuantity:t,canUpdateQuantities:n})=>{const[r,s]=p.useState(!1),a=e[0];return o.jsxs(w,{children:[o.jsxs(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-4 flex items-center justify-between cursor-pointer",onClick:()=>s(!r),children:[o.jsx(W,{variant:"label8",className:"text-grey-500 font-medium",children:"Items"}),o.jsxs(w,{className:"flex gap-x-2",children:[n&&o.jsx(Hs,{className:"!text-metrifox-blue underline cursor-pointer",onClick:i=>{i?.stopPropagation(),t()},children:"Update items"}),o.jsx("span",{className:`transform transition-transform duration-300 ${r?"rotate-180":"rotate-0"}`,children:o.jsx(re,{name:"arrow-down",size:14,color:"grey-500"})})]})]}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-2 -mt-2.5 space-y-2",children:r?o.jsx(o.Fragment,{children:e?.map((i,l)=>o.jsx(w,{className:"bg-grey-50 border border-grey-200 rounded-lg p-2 flex justify-between",children:o.jsxs(w,{className:"w-full flex items-center justify-between",children:[o.jsx(w,{className:"flex items-center gap-4",children:o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(W,{variant:"label8",className:"text-grey-800 font-medium",children:dt(i?.name)}),i?.is_addon&&o.jsx(wt,{size:"small",background:"bg-grey-300",textColor:"text-metrifox-black",children:"Add-on"})]})}),o.jsxs(V,{variant:"body6",className:"text-grey-800 font-medium",children:[Ot(i?.currency_code),ce(i?.unit_price||i?.total_amount)]})]})},l))}):o.jsxs(w,{className:"bg-grey-100 rounded-lg p-2 flex items-center justify-between cursor-pointer",children:[o.jsxs(W,{variant:"label8",className:"text-grey-800 font-medium",children:[a?.name," ",o.jsx("span",{children:"\u2022"})," ",e.length," item(s)"]}),o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsxs(V,{variant:"body6",className:"text-grey-800 font-medium",children:[Ot(a?.currency_code),ce(a?.unit_price||a?.total_amount)]}),o.jsxs(V,{variant:"body6",className:"text-metrifox-blue",children:["+ ",e.length-1," prices(s)"]})]})]})})]})},Ig=({subscription:e,tenantDetails:t})=>{const n=e?.status,{text:r,color:s}=$p(n),{customerKey:a}=hr(),i=[{label:"Current plan",value:`${e?.plan_name||"-"}`},{label:"Status",value:o.jsx(wt,{size:"small",background:s,textColor:"text-metrifox-white",children:dt(r)||"-"})},{label:"Start date",value:ut(e?.starts_at)},...n===Fe.IN_TRIAL?[{label:"Trial end date",value:ut(e?.trial_end_date)}]:[{label:"End date",value:e?.ends_at?ut(e?.ends_at):"-"}],...n===Fe.IN_TRIAL?[{label:"Trial period",value:e?.starts_at&&e?.trial_end_date?o.jsxs(W,{variant:"label7",className:"text-grey-600",children:[ut(e?.starts_at)," -"," ",ut(e?.trial_end_date)]}):"-"}]:[],...n===Fe.ACTIVE?[{label:"Renewal date",value:e?.renews_at?ut(e?.renews_at):"-"}]:[],...n===Fe.ACTIVE?[{label:"Current billing period",value:e?.current_billing_period_start&&e?.current_billing_period_end?o.jsxs(w,{children:[o.jsxs(W,{variant:"label7",className:"text-grey-600",children:[ut(e.current_billing_period_start)," -"," ",ut(e.current_billing_period_end)]}),o.jsx(wt,{size:"small",background:"bg-grey-200",textColor:"text-metrifox-black",children:"Auto-renew"})]}):"-"}]:[],...n===Fe.ACTIVE?[{label:"Next billing date",value:e?.renews_at?ut(e?.renews_at):"-"}]:[],...n===Fe.ACTIVE?[{label:"Next estimated bill",value:e?.next_billing_amount?o.jsx(w,{children:o.jsxs(W,{variant:"label7",className:"text-grey-600",children:[Ot(e.currency_code),e.next_billing_amount]})}):"-"}]:[]],l=()=>{const c=`${window.location.origin}/${t.tenant_checkout_username}/${e.offering_key}/subscriptions/${e.id}?customer=${a}`;window.open(c,"_blank","noopener,noreferrer")};return o.jsx(w,{children:o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"money",size:18,color:"grey-500"})}),o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Subscription"})]}),e.status!==Fe.CANCELED&&o.jsx(Rg,{trigger:o.jsx(re,{name:"more",size:20,color:"grey-500"}),anchorTo:"bottom end",className:"bg-metrifox-white rounded-md shadow-md p-4",children:o.jsx(Og,{subscription:e})})]}),o.jsx(w,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:o.jsx(W,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),o.jsx(w,{className:"bg-metrifox-white flex justify-between flex-wrap gap-8 rounded-2xl p-4 -mt-2.5",children:i?.map((c,u)=>o.jsxs(w,{className:"",children:[o.jsx(W,{variant:"label8",className:"text-grey-500",children:c?.label}),o.jsx(W,{variant:"label7",className:`text-grey-600 font-medium mt-2 ${c?.value==="-"?"text-center":""}`,children:c?.value})]},u))}),e?.subscription_items?.length>0&&o.jsx(Bg,{subscriptionLineItems:e?.subscription_items,handleUpdateQuantity:l,canUpdateQuantities:e?.can_update_quantities})]})})},Hg=({upcomingInvoice:e})=>{const[t,n]=p.useState(!1),r=p.useRef(null),{invoiceDetails:s}=C0({invoiceId:e?.invoice_id});return o.jsxs(w,{children:[o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4 w-full flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-3",children:[o.jsx(W,{variant:"label7",className:"font-medium text-metrifox-black",children:"Upcoming Invoice"}),o.jsx(w,{className:"flex items-center gap-2",children:o.jsx(wt,{background:"bg-purple-500",size:"small",children:o.jsxs(W,{variant:"label8",className:"text-metrifox-white",children:[e?.currency?.symbol,e?.amount]})})}),o.jsxs(V,{variant:"body6",className:"text-metrifox-black",children:["Due"," ",new Date(e?.due_date).toLocaleString(e?.currency?.country_code,{month:"short",day:"numeric",year:"numeric"})]})]}),o.jsx(Hs,{className:"!text-metrifox-blue underline cursor-pointer",onClick:()=>{n(!0)},children:"Preview invoice"})]}),t&&o.jsx(b0,{isOpen:t,onClose:()=>n(!1),contentRef:r,content:o.jsx(j1,{data:s}),modalTitle:"Invoice preview"})]})},wa=({icon:e,size:t=20,color:n="black",className:r,isLoading:s,...a})=>o.jsx("button",{type:"button",className:`p-2 rounded ${r}`,disabled:s,...a,children:s?o.jsx(qn,{}):o.jsx(re,{name:e,size:t,color:n})}),N0=({tabs:e,activeTab:t,handleTabClick:n,count:r,className:s,tabButtonClassName:a,activeTabButtonClassName:i})=>o.jsx(w,{className:"flex justify-between",children:o.jsx(w,{className:`flex gap-x-6 items-center ${s}`,children:e.map(l=>o.jsxs(Pr,{onClick:()=>n(l.key),className:`!font-normal !text-grey-500 !border-grey-300 !rounded-xl !px-3 ${a} ${t===l.key?"flex gap-3 items-center !text-metrifox-white !bg-metrifox-primary "+i:""}`,children:[o.jsx(w,{children:l.label}),t===l.key&&r&&o.jsx(w,{className:"flex items-center bg-metrifox-secondary justify-center rounded-md h-5 px-[6px]",children:o.jsx(W,{variant:"label8",color:"text-metrifox-primary",children:Ve(r??0)})}),l.count&&o.jsx(w,{className:`flex items-center justify-center rounded-md h-5 px-[6px] ${t===l.key?"bg-metrifox-secondary":"bg-grey-100"}`,children:o.jsx(W,{variant:"label8",color:"text-metrifox-primary",children:Ve(r??0)})})]},l.key))})}),Wg=async({walletId:e,status:t})=>{const{data:n}=await Pe().get(`/sdk/credit_systems/wallets/${e}/credit-allocations`,{params:{status:t||void 0}});return n},Ug=({walletId:e,status:t})=>{const[n,r]=p.useState(null),[s,a]=p.useState(null),[i,l]=p.useState(!1),c=async()=>{if(!e)return a("Missing walletId");l(!0);try{const u=await Wg({walletId:e,status:t});r(u?.data),a(null)}catch(u){const d=u,f=d?.response?.data?.data?.error||d?.message;a(f||"Failed to load credit allocations")}finally{l(!1)}};return p.useEffect(()=>{c()},[e,t]),{creditAllocations:n,error:s,isLoading:i,refetch:c}},Zg=({consumed:e,total:t,className:n=""})=>{const r=t>0?e/t*100:0;return o.jsxs(w,{className:`w-full ${n}`,children:[o.jsxs(w,{className:"flex justify-between text-xs text-grey-600 mb-1",children:[o.jsx("span",{children:e.toFixed(0)}),o.jsx("span",{children:"/"}),o.jsx("span",{children:t.toFixed(0)})]}),o.jsx(w,{className:"w-full bg-grey-200 rounded-full h-2 overflow-hidden",children:o.jsx(w,{className:"bg-blue-500 h-2 rounded-full transition-all duration-300 ease-in-out",style:{width:`${r}%`}})})]})},zg=async({allocationId:e})=>{const{data:t}=await Pe().get(`/sdk/credit_systems/wallets/${e}/credit-transaction`);return t},Kg=({allocationId:e})=>{const[t,n]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(!1),l=async()=>{if(!e)return s("Missing AllocationId");i(!0);try{const c=await zg({allocationId:e});n(c?.data),s(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;s(d||"Failed to load credit allocation")}finally{i(!1)}};return p.useEffect(()=>{l()},[e]),{creditTransactions:t,error:r,isLoading:a,refetch:l}},Yg=({allocationId:e,isOpen:t,onClose:n})=>{const{creditTransactions:r,isLoading:s}=Kg({allocationId:e}),a=r?.allocation_type,i=C1(a||""),l=(r?.transactions||[]).map(c=>({date:ks(c.created_at),event:c.event_name||"-",quantity:c.quantity,amount:-Math.abs(c.amount)}));return o.jsx(Gn,{size:"large",title:i,isOpen:t,onClose:()=>n(),className:"bg-metrifox-white",children:o.jsx(Ar,{columns:[{key:"date",header:"Date",render:c=>o.jsx(V,{variant:"body6",className:"text-md",children:c.date})},{key:"event",header:"Event",render:c=>o.jsx(V,{variant:"body6",className:"text-lg",children:c.event})},{key:"quantity",header:"Quantity",render:c=>o.jsx(V,{variant:"body6",className:"text-lg",children:c.quantity})},{key:"amount",header:"Amount",render:c=>o.jsx(V,{variant:"body6",className:"text-lg text-[#D12C2C]",children:ce(c.amount)})}],data:l,isLoading:s,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(re,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(W,{variant:"label7",color:"text-grey-500",children:"No transactions found"})]})})})},ja=({helperText:e,helperTextColor:t,errorText:n})=>o.jsxs("div",{children:[e&&!n&&o.jsx("p",{className:`mt-1 text-sm ${t||"text-grey-500"}`,children:e}),n&&o.jsxs("div",{className:"flex items-center gap-x-1 mt-1",children:[o.jsx(re,{name:"danger-filled",size:16,color:"base-danger"}),o.jsx("p",{className:"text-sm text-base-danger flex items-center",children:n})]})]}),P0=({text:e,required:t,className:n})=>o.jsx("label",{className:`block mb-1 opacity-60 ${n}`,children:o.jsxs(V,{variant:"body6",color:"text-metrifox-black",as:"span",children:[e,t&&o.jsx("span",{className:"text-base-danger text-lg inline-block",children:"*"})]})}),Gg=({options:e,selectedValue:t,onChange:n,disabled:r=!1,className:s="",optionsClassName:a="",labelText:i,layout:l="horizontal",hasDividers:c=!0})=>{const u=l==="vertical",d=c&&u;return o.jsxs("div",{className:on("w-full",s),children:[i&&o.jsx(P0,{text:i}),o.jsx("div",{className:on("flex",u?"flex-col":"flex-row gap-x-4",a),children:e.map(f=>{const h=t===f.value;return o.jsxs(w,{children:[o.jsxs("label",{className:on("flex items-start cursor-pointer p-4",u?d?"border-b":"border-b-0":"border rounded-lg",h&&!u?"border-metrifox-primary":"border-grey-200",r&&"opacity-50 cursor-not-allowed"),children:[o.jsx("input",{type:"radio",name:"radio-group",value:f.value,checked:h,onChange:()=>n(f.value),disabled:r,className:"hidden"}),o.jsx("span",{className:on("mr-2 flex items-center justify-center border rounded-full",u?"w-5 h-5":"w-4 h-4",h&&u?"border-4":"",h?"border-metrifox-primary":"border-grey-400"),children:h&&!u&&o.jsx("span",{className:"w-2 h-2 bg-metrifox-primary rounded-full"})}),typeof f.label=="string"?o.jsxs(w,{className:"space-y-2",children:[o.jsx(V,{variant:"body7",className:"text-grey-900",children:f.label}),f.description&&o.jsx(V,{variant:"body8",className:"text-base-default-600",children:f.description})]}):f.label]}),f.renderContent&&h&&o.jsx(w,{className:"my-4",children:f.renderContent})]},f.value)})})]})},qg=(e,t)=>{p.useEffect(()=>{const n=r=>{!e.current||e.current.contains(r.target)||t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])},A0={"x-small":"py-[8px] h-[36px] text-sm",small:"py-[8px] h-[40px] text-sm",regular:"py-[17px] h-[52px] text-base"},R0=({value:e,disabled:t,errorText:n,size:r,focused:s,noBorder:a})=>{let i="text-grey-500";return t?i="text-foreground-disabled":e?.length&&(i="text-neutral-800"),a?`w-full text-left bg-transparent outline-none border-none ${i} ${A0[r]}`:`w-full border rounded-[8px] text-left px-3 ${i} ${A0[r]} ${t?"bg-background-system-disabled cursor-not-allowed":"bg-background-system-primary"} ${n?"border-base-danger":"border-grey-300"} placeholder-grey-500
|
|
46
|
+
${s?"shadow-[0px_0px_0px_2.5px_#9EE35B4D] border-metrifox-primary outline-none":"shadow-[0px_1px_2px_0px_#0A0D120D]"}
|
|
47
|
+
focus:shadow-[0px_0px_0px_2.5px_#9EE35B4D] focus:border-metrifox-primary focus:outline-none`},Xg=({size:e="small",disabled:t=!1,className:n="",placeholderText:r="Select option",labelText:s,helperText:a,errorText:i,options:l,emptyState:c,value:u,onChange:d,searchable:f=!1,defaultValue:h,bottomOption:g,topOption:m,name:x,variant:v="default",containerClassName:y="",optionsContainerClassName:C="",required:b})=>{const[k,E]=p.useState(!1),[j,T]=p.useState(""),[N,I]=p.useState(h||null),F=p.useRef(null);p.useEffect(()=>{h&&I(h)},[h]),p.useEffect(()=>{u&&I(String(u))},[u]);const $=M=>{I(M.value),d(M.value),E(!1),f&&T("")};qg(F,()=>E(!1));const z=R0({value:u,errorText:i||"",disabled:t,size:e,noBorder:v==="no-border"}),Z=l?.filter(M=>M.label?.toLowerCase().includes(j.toLowerCase()));return o.jsxs("div",{className:`w-full ${n}`,ref:F,children:[s&&o.jsx("label",{className:`block mb-1 opacity-60 ${n}`,children:o.jsxs(V,{variant:"body6",color:"text-metrifox-black",as:"span",children:[s,b&&o.jsx("span",{className:"text-base-danger text-lg inline-block",children:"*"})]})}),o.jsxs("div",{className:"relative",children:[o.jsxs("button",{name:x,type:"button",disabled:t,"aria-haspopup":"listbox","aria-expanded":k,onClick:()=>!t&&E(!k),className:`flex items-center justify-between ${z} ${y}`,children:[o.jsx("div",{className:"flex items-center gap-1 text-nowrap",children:l?.find(M=>M.value===N)?.label||r}),o.jsx(re,{name:"arrow-down",size:18,color:"grey-500"})]}),k&&o.jsxs("div",{className:`absolute z-10 mt-1 min-w-full bg-metrifox-white border border-grey-300 rounded-[10px] shadow-lg max-h-60 overflow-auto flex flex-col ${C}`,children:[f&&o.jsx("div",{className:"p-2",children:o.jsx("input",{type:"text",value:j,onChange:M=>T(M.target.value),placeholder:"Search",className:"w-full px-3 py-1 border border-grey-300 rounded-md focus:shadow-[0px_0px_0px_2.5px_#9EE35B4D] focus:outline-none",autoFocus:!0})}),m&&o.jsxs("div",{className:"px-4 py-3 bg-metrifox-primary text-metrifox-white flex items-center gap-x-2 cursor-pointer",onClick:m.onClick,children:[m.icon&&o.jsx(re,{name:m.icon,color:"metrifox-white",size:24}),o.jsx(V,{variant:"body6",color:"text-metrifox-white",children:m.label})]}),o.jsx("ul",{role:"listbox",className:"max-h-[12rem] overflow-auto",children:Z?.length>0?Z?.map((M,_)=>o.jsxs("div",{children:[o.jsxs("li",{role:"option","aria-selected":N===M.value,onClick:()=>$(M),className:"px-4 py-3 hover:bg-grey-100 cursor-pointer mb-0",children:[o.jsxs(w,{className:"flex items-center gap-1.5",children:[o.jsx(V,{variant:"body6",color:"text-base-default-600",children:M.label}),M?.labelTag&&o.jsx(wt,{background:M?.labelTagBgColor,textColor:M?.labelTagTextColor,size:"small",children:dt(M?.labelTag)})]}),o.jsx(V,{variant:"body7",color:"text-grey-500",className:"mt-1.5",children:M.description})]}),_!==Z?.length-1&&o.jsx("hr",{className:"w-full border-t-[1px] border-grey-200"})]},M.value)):o.jsx(W,{variant:"label8",className:"font-normal px-4 py-3 text-grey-500",children:c||"No results found"})}),g&&o.jsxs("div",{className:"px-4 py-3 bg-metrifox-primary text-metrifox-white flex items-center gap-x-2 cursor-pointer",onClick:g.onClick,children:[g.icon&&o.jsx(re,{name:g.icon,color:"metrifox-white",size:24}),o.jsx(V,{variant:"body6",color:"text-metrifox-white",children:g.label})]})]})]}),o.jsx(ja,{helperText:a,errorText:i})]})},Jg=({checked:e,onChange:t,label:n,disabled:r,className:s,defaultBgColor:a})=>o.jsxs(w,{className:`flex items-center gap-2 ${s}`,children:[o.jsx(w,{role:"switch","aria-checked":e,tabIndex:0,onClick:()=>!r&&t(!e),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&!r&&t(!e)},className:`relative inline-flex h-5 w-10 items-center rounded-full transition
|
|
48
|
+
${e?"bg-metrifox-primary cursor-pointer":`${a||"bg-neutral-200"} cursor-pointer`}
|
|
49
|
+
${r?"opacity-50 cursor-not-allowed":"hover:bg-opacity-80"} focus:outline-none`,children:o.jsx("span",{className:`inline-block h-4 w-4 transform bg-white rounded-full shadow transition bg-neutral-200
|
|
50
|
+
${e?"translate-x-[21.5px]":"translate-x-[2.5px]"}`})}),n&&o.jsx(V,{variant:"body4",className:`${e?"":"opacity-70"} capitalize`,children:n})]}),ka=({type:e="text",size:t="small",disabled:n=!1,ref:r,className:s="",placeholderText:a="",labelText:i,helperText:l,helperTextColor:c,errorText:u,value:d,defaultValue:f,onChange:h,leadingContent:g,trailingContent:m,onBlur:x,required:v,onKeyDown:y})=>{const[C,b]=p.useState(!1),k=R0({value:d,errorText:u||"",focused:C,disabled:n,size:t});return o.jsxs("div",{className:`w-full ${s}`,children:[i&&o.jsx(P0,{text:i,required:v??!1}),o.jsxs("div",{className:`
|
|
51
|
+
relative flex items-center
|
|
52
|
+
${k}`,children:[g&&o.jsx("span",{className:"mr-2",children:g}),o.jsx("input",{ref:r,type:e,disabled:n,placeholder:a,value:d,defaultValue:f,onChange:h,onFocus:()=>b(!0),onBlur:()=>{b(!1),x?.()},onKeyDown:y,className:"w-full h-full focus:outline-none"}),m&&o.jsx("span",{className:"ml-2",children:m})]}),o.jsx(ja,{...l!==void 0&&{helperText:l},...c!==void 0&&{helperTextColor:c},...u!==void 0&&{errorText:u}})]})},Qg=({trigger:e,children:t,position:n="top",className:r="",disabled:s=!1})=>{const[a,i]=p.useState(!1);return o.jsxs("div",{className:"relative",children:[o.jsx("div",{onMouseEnter:()=>!s&&i(!0),onMouseLeave:()=>i(!1),onFocus:()=>!s&&i(!0),onBlur:()=>i(!1),children:e}),a&&!s&&o.jsx("div",{className:`absolute w-[15rem] p-1.5 bg-metrifox-white text-metrifox-black text-sm rounded-lg shadow-lg z-10 transition-opacity duration-300 ease-in-out ${{top:"bottom-full left-1/2 transform -translate-x-1/2 mb-2",right:"left-full top-1/2 transform -translate-y-1/2 ml-2",bottom:"top-full left-1/2 transform -translate-x-1/2 mt-2",left:"right-full top-1/2 transform -translate-y-1/2 mr-2"}[n]} ${r}`,children:t})]})},ex=async e=>{const{data:t}=await Pe().post("/sdk/wallet_settings",e);return t},tx=async e=>{const{data:t}=await Pe().delete(`/sdk/wallet_settings/${e}`);return t},nx=async(e,t)=>{const{data:n}=await Pe().patch(`/sdk/wallet_settings/${e}`,t);return n},rx=async e=>{const{data:t}=await Pe().get("/sdk/wallet_settings",{params:{customer_key:e}});return t},sx=()=>Rt.object({walletId:Rt.string().min(1,"This field is required"),threshold_amount:Rt.string().min(1,"This field is required"),behaviour:Rt.enum([Qe.AUTO_TOP_UP_ENABLED,Qe.NOTIFICATION_ENABLED]),target_balance:Rt.string().optional(),monthly_top_up_count_limit:Rt.string().optional()}).superRefine((e,t)=>{e.behaviour===Qe.AUTO_TOP_UP_ENABLED&&((!e.target_balance||e.target_balance.trim()==="")&&t.addIssue({code:Rt.ZodIssueCode.custom,message:"Target balance is required for auto top-up",path:["target_balance"]}),(!e.monthly_top_up_count_limit||e.monthly_top_up_count_limit.trim()==="")&&t.addIssue({code:Rt.ZodIssueCode.custom,message:"Limit is required for auto top-up",path:["monthly_top_up_count_limit"]}))}),ox=(e,t,n)=>{const[r,s]=p.useState(null),[a,i]=p.useState(null),[l,c]=p.useState(!1),[u,d]=p.useState(!1),[f,h]=p.useState(!1),[g,m]=p.useState(!1),x=async()=>{if(!t)return i("Missing customerKey");c(!0);try{const T=await rx(t);s(T?.data),i(null)}catch(T){i(T?.response?.data?.message||"Failed to load wallet settings")}finally{c(!1)}};p.useEffect(()=>{x()},[t]);const v=n?.map(T=>({label:T.name,value:T.id}))||[],y=Cn.useForm({resolver:Z0.zodResolver(sx()),shouldUnregister:!1,defaultValues:{behaviour:Qe.NOTIFICATION_ENABLED,walletId:v[0]?.value||""}}),C=y.watch("walletId"),b=n?.find(T=>T?.id===C),k=r?.find(T=>T.wallet_id===C);p.useEffect(()=>{k?(m(!0),y.reset({walletId:k.wallet_id,threshold_amount:String(k.threshold_amount||""),behaviour:k.auto_top_up_enabled?Qe.AUTO_TOP_UP_ENABLED:Qe.NOTIFICATION_ENABLED,target_balance:String(k.target_balance||""),monthly_top_up_count_limit:String(k.monthly_top_up_count_limit||"")})):(m(!1),y.reset({walletId:C,threshold_amount:"",behaviour:Qe.NOTIFICATION_ENABLED,target_balance:"",monthly_top_up_count_limit:""}))},[C,k,y]);const E=async()=>{d(!0);try{await tx(k?.id),await x(),i(null),y.reset(),e()}catch{i("Failed to delete wallet setting")}finally{d(!1)}},j=async T=>{h(!0);const N={notification_enabled:T.behaviour===Qe.NOTIFICATION_ENABLED,auto_top_up_enabled:T.behaviour===Qe.AUTO_TOP_UP_ENABLED,...T.target_balance&&{target_balance:Number(T.target_balance)},...T.monthly_top_up_count_limit&&{monthly_top_up_count_limit:Number(T.monthly_top_up_count_limit)},threshold_amount:Number(T.threshold_amount),customer_key:t,wallet_id:T.walletId,credit_system_id:b?.credit_system_id};try{k?await nx(k?.id,N):await ex(N),i(null),y.reset(),e(),await x()}catch(I){i(I?.response?.data?.message||"Failed to save settings")}finally{h(!1)}};return{formMethod:y,isLoading:l,onSubmit:y?.handleSubmit(j),isSaving:f||u,error:a,deleteWalletSetting:E,walletOptions:v,selectedWallet:b,switchState:g,setSwitchState:m,isEdit:!!k}},ix=({customerKey:e,wallets:t,isOpen:n,onClose:r})=>{const{formMethod:s,walletOptions:a,onSubmit:i,deleteWalletSetting:l,selectedWallet:c,switchState:u,setSwitchState:d,isEdit:f,isLoading:h,isSaving:g,error:m}=ox(r,e,t),x=o.jsxs(w,{className:"flex gap-x-2 mt-4 ml-8 items-start",children:[o.jsx(w,{className:"mt-2",children:o.jsx(re,{name:"arrow-down-right",size:16,color:"grey-500"})}),o.jsxs(w,{className:"w-full",children:[o.jsx(Cn.Controller,{name:"target_balance",control:s.control,render:({field:y})=>o.jsx(ka,{type:"text",labelText:"Bring wallet balance back up to",value:y?.value||"",onChange:y.onChange,trailingContent:o.jsx(V,{variant:"body6",color:"text-grey-400",className:"whitespace-nowrap",children:c?.name}),errorText:s.formState.errors.target_balance?.message||""})}),o.jsx(Cn.Controller,{name:"monthly_top_up_count_limit",control:s.control,render:({field:y})=>o.jsx(ka,{type:"text",labelText:"Limit the amount of automatic top up per month",value:y?.value||"",onChange:y.onChange,className:"mt-3",trailingContent:o.jsx(V,{variant:"body6",color:"text-grey-400",className:"whitespace-nowrap",children:c?.name}),errorText:s.formState.errors.monthly_top_up_count_limit?.message||""})})]})]}),v=[{label:"Notify me when balance goes below threshold",value:Qe.NOTIFICATION_ENABLED,renderContent:null},{label:"Auto top-up when balance goes below threshold",value:Qe.AUTO_TOP_UP_ENABLED,renderContent:x}];return o.jsx(Gn,{size:"large",topContent:o.jsxs(w,{className:"flex justify-between items-center",children:[o.jsxs(w,{className:"flex items-center gap-x-1",children:[o.jsx(w,{className:"flex justify-center items-center bg-grey-200 p-[6px] rounded-lg",children:o.jsx(wa,{icon:"settings-3",size:20,color:"grey-600"})}),o.jsx(W,{variant:"label7",color:"text-grey-600",children:"Wallet balance settings"})]}),o.jsx(wa,{icon:"circle-close-filled",size:24,color:"grey-500",onClick:r})]}),isOpen:n,onClose:r,className:"bg-metrifox-white h-[80vh]",bottomContent:o.jsxs(w,{className:"flex justify-end items-center gap-x-2 py-3",children:[o.jsx(Pr,{onClick:r,children:"Cancel"}),o.jsx(gn,{onClick:()=>{u?i():l()},isLoading:g,disabled:!u&&!f,children:u?f?"Update settings":"Save settings":f?"Delete settings":"Save settings"})]}),children:h?o.jsx(w,{className:"h-full w-full my-auto mx-auto flex justify-center items-center",children:o.jsx(qn,{size:"big"})}):o.jsxs(w,{children:[o.jsx(Cn.Controller,{name:"walletId",control:s.control,render:({field:y})=>o.jsx(Xg,{labelText:"Prepaid balance",placeholderText:"Select the prepaid balance",options:a,onChange:y?.onChange,value:y?.value||"",disabled:a.length===1,errorText:s.formState.errors.walletId?.message||""})}),c&&o.jsxs(w,{className:"bg-grey-100 mt-4 px-[10px] pt-[10px] pb-4 rounded-xl",children:[o.jsxs(w,{className:"flex justify-start items-center gap-x-2",children:[o.jsx(Jg,{checked:u,onChange:()=>{d(!u)}}),o.jsxs(w,{className:"flex justify-start items-center gap-x-1",children:[o.jsx(W,{color:"text-grey-700",variant:"label8",children:"Low balance threshholds"}),o.jsx(Qg,{trigger:o.jsx(re,{name:"info-circle",size:14,color:"grey-400"}),children:o.jsx(V,{variant:"body6",color:"texy-grey-500",className:"px-3 py-2",children:"Automatically recharge any payment when my credit falls below a threshold"})})]})]}),u&&o.jsxs(w,{className:"flex gap-x-2 mt-4 ml-4 items-start",children:[o.jsx(w,{className:"mt-2",children:o.jsx(re,{name:"arrow-down-right",size:16,color:"grey-500"})}),o.jsxs(w,{className:"w-full",children:[o.jsx(Cn.Controller,{name:"threshold_amount",control:s.control,render:({field:y})=>o.jsx(ka,{type:"text",labelText:"Set a low balance threshold",value:y?.value||"",onChange:y.onChange,trailingContent:o.jsx(V,{variant:"body6",color:"text-grey-400",className:"whitespace-nowrap",children:c?.name}),errorText:s.formState.errors.threshold_amount?.message||""})}),o.jsx(w,{className:"my-2",children:o.jsx(W,{variant:"label8",color:"text-grey-700",children:"Define behavior"})}),o.jsxs(w,{className:"flex gap-x-2 mt-4 ml-4 items-start",children:[o.jsx(w,{className:"mt-2",children:o.jsx(re,{name:"arrow-down-right",size:16,color:"grey-500"})}),o.jsx(w,{className:"w-full",children:o.jsx(Cn.Controller,{name:"behaviour",control:s.control,render:({field:y})=>o.jsx(Gg,{options:v,selectedValue:y?.value||"",onChange:y.onChange,layout:"vertical"})})})]})]})]})]}),o.jsx(ja,{errorText:m})]})})},ax=({tenantDetails:e,wallets:t})=>{const[n,r]=p.useState(0),[s,a]=p.useState(""),[i,l]=p.useState(!1),[c,u]=p.useState(!1),[d,f]=p.useState(""),[h,g]=p.useState("active"),m=j=>{g(j)},x=[{key:"active",label:"Active"},{key:"expired",label:"Expired"},{key:"overage",label:"Overage"}],{creditAllocations:v,isLoading:y}=Ug({walletId:s,status:h}),C=v?.map(j=>Gp(j));p.useEffect(()=>{t&&t.length>0&&!s&&a(t?.[0]?.id)},[t,s]);const b=[{header:"Credited date",render:j=>o.jsxs(w,{className:"flex flex-col",children:[o.jsx(V,{variant:"body6",className:"text-grey-700 font-medium",children:j.creditedDate}),j.orderId&&j.orderNumber&&o.jsx(V,{variant:"body6",className:"underline",children:j.orderNumber}),j.invoiceId&&o.jsx(V,{variant:"body6",className:"underline",children:j.invoiceId})]})},{key:"source",header:"Source"},{header:"Amount",render:j=>o.jsx(V,{variant:"body6",color:"text-grey-700",children:ce(j.amount)})},{header:"Balance",render:j=>o.jsxs(w,{className:"space-y-2",children:[o.jsxs(V,{variant:"body6",className:"text-grey-700 font-medium",children:[j.balance," ",j.source==="Overage"?"":"available"]}),o.jsx(Zg,{consumed:j.consumed,total:j.amount})]})},{header:"Valid until",render:j=>o.jsx(V,{variant:"body6",color:"text-grey-700",children:j.validUntil?new Date(j.validUntil).toLocaleDateString():"No expiration"})}],k=j=>{const T=`${window.location.origin}/${e.tenant_checkout_username}/wallets/${j}?customer=${e.customer_key}`;window.open(T,"_blank","noopener,noreferrer")};if(!t||t.length===0)return null;const E=j=>{l(!0),f(j.id)};return o.jsxs(w,{className:"bg-grey-100 rounded-2xl p-4",children:[o.jsxs(w,{className:"flex items-center justify-between",children:[o.jsxs(w,{className:"flex items-center gap-1",children:[o.jsx(w,{className:"p-1.5 bg-grey-200 rounded-lg",children:o.jsx(re,{name:"card-receive",size:16,color:"grey-500"})}),o.jsx(W,{variant:"label7",className:"text-metrifox-black font-medium",children:"Wallet balance"})]}),o.jsx(wa,{icon:"settings-2",size:24,color:"grey-500",className:"!p-0",onClick:()=>u(!0)})]}),o.jsx(w,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:t.length>1?o.jsxs(Cs,{defaultIndex:n,onChange:r,children:[o.jsx(ws,{className:"inline-flex max-w-full whitespace-nowrap overflow-x-auto bg-grey-100 border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:t.map(j=>o.jsx(fr,{onClick:()=>a(j.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:o.jsx(V,{variant:"body6",children:j.name})},j.id))}),o.jsx(js,{children:t.map(j=>o.jsxs(Fn,{children:[o.jsx(w,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:o.jsxs(w,{className:"w-full flex items-center justify-between gap-1",children:[o.jsxs(w,{className:"text-center",children:[o.jsx(w,{className:"flex items-center justify-center gap-1",children:o.jsx(W,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),o.jsxs(w,{className:"flex items-baseline justify-center gap-1",children:[o.jsx(W,{variant:"label6",className:"text-neutral-800 font-medium",children:ce(j.balance)}),o.jsx(W,{variant:"label8",className:"text-grey-500 mt-3.5",children:j.name})]})]}),o.jsx(gn,{type:"button",size:"small",onClick:()=>k(j.id),className:"text-metrifox-white",children:"Top up"})]})}),o.jsx(N0,{tabs:x,activeTab:h,handleTabClick:m,count:y?0:v?.length,className:"my-2"}),o.jsx(Ar,{columns:b,data:C,onRowClick:E,isLoading:y,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(re,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(W,{variant:"label7",color:"text-grey-500",children:h==="active"?"No active credit allocations found":h==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]},j.id))})]}):t[0]&&o.jsxs(o.Fragment,{children:[o.jsx(w,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:o.jsxs(w,{className:"w-full flex items-center justify-between gap-1",children:[o.jsxs(w,{className:"text-center",children:[o.jsx(w,{className:"flex items-center justify-center gap-1",children:o.jsx(W,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),o.jsxs(w,{className:"flex items-baseline justify-center gap-1",children:[o.jsx(W,{variant:"label6",className:"text-neutral-800 font-medium",children:ce(t[0].balance)}),o.jsx(W,{variant:"label8",className:"text-grey-500 mt-3.5",children:t[0].name})]})]}),o.jsx(gn,{type:"button",size:"small",onClick:()=>t[0]?.id&&k(t[0]?.id),className:"text-metrifox-white",children:"Top up"})]})}),o.jsx(N0,{tabs:x,activeTab:h,handleTabClick:m,count:y?0:v?.length,className:"my-2"}),o.jsx(Ar,{columns:b,data:C,onRowClick:E,isLoading:y,emptyState:o.jsxs(w,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[o.jsx(re,{name:"wallet-is-empty",size:84,color:"grey-400"}),o.jsx(W,{variant:"label7",color:"text-grey-500",children:h==="active"?"No active credit allocations found":h==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]})}),o.jsx(Yg,{allocationId:d,isOpen:i,onClose:()=>{l(!1),f("")}}),o.jsx(ix,{customerKey:e?.customer_key,wallets:t,isOpen:c,onClose:()=>u(!1)})]})},lx=[{key:"upcomingInvoice"},{key:"subscription"},{key:"creditBalance"},{key:"entitlementUsage"},{key:"paymentOverview"},{key:"billingHistory"},{key:"plan"}],cx={upcomingInvoice:"upcoming-invoice",subscription:"subscription",creditBalance:"credit-balance",entitlementUsage:"entitlement-usage",paymentOverview:"payment-overview",billingHistory:"billing-history",plan:"plan"},_0=({product:e,tenantDetails:t,sectionsConfig:n,customerWallets:r})=>{const s=n||lx,a={upcomingInvoice:()=>e?.subscription?.upcoming_invoice?o.jsx(Hg,{upcomingInvoice:e.subscription.upcoming_invoice}):null,subscription:()=>e?.subscription?o.jsx(Ig,{subscription:e.subscription,tenantDetails:t}):null,creditBalance:()=>r&&r.length>0?o.jsx(ax,{tenantDetails:t,wallets:r}):null,entitlementUsage:()=>e?.subscription?o.jsx(H8,{subscriptionId:e?.subscription?.id}):null,paymentOverview:()=>o.jsx(W8,{paymentMethod:e.payment_method,tenantDetails:t}),billingHistory:()=>e?.subscription?.id?o.jsx(_8,{subscriptionId:e.subscription?.id}):null,plan:()=>e?.product_key?o.jsx(Pg,{product:e,tenantDetails:t}):null};return o.jsxs(w,{className:"space-y-4",children:[s.filter(i=>!i.hidden).map(i=>{const l=cx[i.key]??i.key;if(i.component)return o.jsx("section",{id:l,className:"space-y-4",children:o.jsx(i.component,{product:e,tenantDetails:t,...i.props})},i.key);const c=a[i.key],u=c?c(i.props):null;return u?o.jsx("section",{id:l,children:u},i.key):null}),o.jsx(Ag,{})," "]})},ux=({customerKey:e,sectionsConfig:t})=>{const[n,r]=p.useState(0),{setCustomerKey:s,setCustomerRefetch:a}=hr(),{customerDetails:i,error:l,refetch:c,isLoading:u}=vp({customerKey:e}),{customerWallets:d}=Cp({customerKey:e});if(p.useEffect(()=>{s(e),a(c)},[]),l)return o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4",children:o.jsxs("div",{className:"bg-red-50 p-4 rounded-lg text-red-700",children:["Error loading customer details: ",l]})});if(u||!i)return o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4",children:o.jsxs("div",{className:"animate-pulse space-y-4",children:[o.jsx("div",{className:"h-12 bg-gray-200 rounded-lg"}),o.jsx("div",{className:"h-16 bg-gray-200 rounded-lg"}),[1,2,3,4,5].map(m=>o.jsx("div",{className:"h-48 bg-gray-200 rounded-lg"},m))]})});const{subscriptions:f,...h}=i||{},g=f||[];return o.jsx(r3,{children:o.jsx(w,{className:"max-w-[60rem] mx-auto py-6 px-4 space-y-4",children:g&&g.length>1?o.jsxs(Cs,{defaultIndex:n,onChange:m=>r(m),children:[o.jsx(ws,{className:"w-max bg-grey-100 border border-grey-200 text-grey-500 px-1.5 py-1 mb-4 rounded-2xl",children:g.map(m=>o.jsx(fr,{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:o.jsx(V,{variant:"body6",children:m.product_name})},m.product_key))}),o.jsx(js,{children:g.map(m=>o.jsx(Fn,{children:o.jsx(_0,{product:m,tenantDetails:h,sectionsConfig:t,customerWallets:d})},m.product_key))})]}):o.jsx(o.Fragment,{children:g.map(m=>o.jsx(_0,{product:m,tenantDetails:h,sectionsConfig:t,customerWallets:d},m.product_key))})})})};exports.CustomerPortal=ux,exports.PriceCard=D0,exports.metrifoxInit=Mf;
|