@matthiaskrijgsman/mat-ui 0.0.24 → 0.0.25
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 +5 -1
- package/dist/components/inputs/InputColor.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7079 -6796
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +41 -41
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(B,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(B=typeof globalThis<"u"?globalThis:B||self,S(B.MatUI={},B.React,B.ReactDOM))})(this,(function(B,S,vu){"use strict";function To(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=To(S),So=To(vu);function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xn={exports:{}},$t={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var jo;function xu(){if(jo)return $t;jo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:e,type:i,key:s,ref:r!==void 0?r:null,props:o}}return $t.Fragment=t,$t.jsx=n,$t.jsxs=n,$t}var Wt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
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 Eo;function yu(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===W?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case y:return"Fragment";case g:return"Profiler";case w:return"StrictMode";case h:return"Suspense";case C:return"SuspenseList";case M:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case x:return"Portal";case b:return(v.displayName||"Context")+".Provider";case T:return(v._context.displayName||"Context")+".Consumer";case k:var E=v.render;return v=v.displayName,v||(v=E.displayName||E.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case j:return E=v.displayName||null,E!==null?E:e(v.type)||"Memo";case A:E=v._payload,v=v._init;try{return e(v(E))}catch{}}return null}function t(v){return""+v}function n(v){try{t(v);var E=!1}catch{E=!0}if(E){E=console;var I=E.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return I.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(v)}}function i(v){if(v===y)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===A)return"<...>";try{var E=e(v);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function r(){var v=O.A;return v===null?null:v.getOwner()}function o(){return Error("react-stack-top-frame")}function s(v){if(J.call(v,"key")){var E=Object.getOwnPropertyDescriptor(v,"key").get;if(E&&E.isReactWarning)return!1}return v.key!==void 0}function a(v,E){function I(){ee||(ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}I.isReactWarning=!0,Object.defineProperty(v,"key",{get:I,configurable:!0})}function l(){var v=e(this.type);return ie[v]||(ie[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function u(v,E,I,V,L,z,K,$){return I=z.ref,v={$$typeof:m,type:v,key:E,props:z,_owner:L},(I!==void 0?I:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:l}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function c(v,E,I,V,L,z,K,$){var _=E.children;if(_!==void 0)if(V)if(Y(_)){for(V=0;V<_.length;V++)d(_[V]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(_);if(J.call(E,"key")){_=e(v);var X=Object.keys(E).filter(function(de){return de!=="key"});V=0<X.length?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}",Z[_+V]||(X=0<X.length?"{"+X.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,V,_,H,_),Z[_+V]=!0)}if(_=null,O!==void 0&&(n(O),_=""+O),s(E)&&(n(E.key),_=""+E.key),"key"in E){O={};for(var J in E)J!=="key"&&(O[J]=E[J])}else O=E;return _&&a(O,typeof g=="function"?g.displayName||g.name||"Unknown":g),u(g,_,z,L,r(),O,K,B)}function d(g){typeof g=="object"&&g!==null&&g.$$typeof===m&&g._store&&(g._store.validated=1)}var f=S,m=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),b=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),F=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,G=Array.isArray,N=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(g){return g()}};var ee,ie={},X=f.react_stack_bottom_frame.bind(f,o)(),q=N(i(o)),Z={};$t.Fragment=x,$t.jsx=function(g,E,O,V,L){var z=1e4>F.recentlyCreatedOwnerStacks++;return c(g,E,O,!1,V,L,z?Error("react-stack-top-frame"):X,z?N(i(g)):q)},$t.jsxs=function(g,E,O,V,L){var z=1e4>F.recentlyCreatedOwnerStacks++;return c(g,E,O,!0,V,L,z?Error("react-stack-top-frame"):X,z?N(i(g)):q)}})()),$t}var Eo;function hu(){return Eo||(Eo=1,process.env.NODE_ENV==="production"?vn.exports=fu():vn.exports=mu()),vn.exports}var p=hu();const I=(...e)=>e.filter(Boolean).join(" "),ri=S.createContext({});function oi(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const si=typeof window<"u",jo=si?S.useLayoutEffect:S.useEffect,xn=S.createContext(null);function ai(e,t){e.indexOf(t)===-1&&e.push(t)}function yn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Be=(e,t,n)=>n>t?t:n<e?e:n;function li(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let gt=()=>{},ke=()=>{};process.env.NODE_ENV!=="production"&&(gt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(li(t,n))},ke=(e,t,n)=>{if(!e)throw new Error(li(t,n))});const $e={},Co=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Po(e){return typeof e=="object"&&e!==null}const Ao=e=>/^0[^.\s]+$/u.test(e);function ci(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ee=e=>e,gu=(e,t)=>n=>t(e(n)),Wt=(...e)=>e.reduce(gu),vt=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class ui{constructor(){this.subscriptions=[]}add(t){return ai(this.subscriptions,t),()=>yn(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const je=e=>e*1e3,Ie=e=>e/1e3;function Do(e,t){return t?e*(1e3/t):0}const Ro=new Set;function di(e,t,n){e||Ro.has(t)||(console.warn(li(t,n)),Ro.add(t))}const vu=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e},Oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xu=1e-7,yu=12;function bu(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=Oo(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>xu&&++a<yu);return s}function Ut(e,t,n,i){if(e===t&&n===i)return Ee;const r=o=>bu(o,0,1,e,n);return o=>o===0||o===1?o:Oo(r(o),t,i)}const Mo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Io=e=>t=>1-e(1-t),No=Ut(.33,1.53,.69,.99),pi=Io(No),Fo=Mo(pi),Vo=e=>(e*=2)<1?.5*pi(e):.5*(2-Math.pow(2,-10*(e-1))),fi=e=>1-Math.sin(Math.acos(e)),Lo=Io(fi),_o=Mo(fi),wu=Ut(.42,0,1,1),Tu=Ut(0,0,.58,1),zo=Ut(.42,0,.58,1),Bo=e=>Array.isArray(e)&&typeof e[0]!="number";function $o(e,t){return Bo(e)?e[vu(0,e.length,t)]:e}const Wo=e=>Array.isArray(e)&&typeof e[0]=="number",Uo={linear:Ee,easeIn:wu,easeInOut:zo,easeOut:Tu,circIn:fi,circInOut:_o,circOut:Lo,backIn:pi,backInOut:Fo,backOut:No,anticipate:Vo},Su=e=>typeof e=="string",qo=e=>{if(Wo(e)){ke(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,i,r]=e;return Ut(t,n,i,r)}else if(Su(e))return ke(Uo[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Uo[e];return e},bn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ku(e,t){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&r?n:i;return d&&s.add(c),v.has(c)||v.add(c),c},cancel:c=>{i.delete(c),s.delete(c)},process:c=>{if(a=c,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,u.process(c))}};return u}const Eu=40;function Ko(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=bn.reduce((b,k)=>(b[k]=ku(o),b),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:v}=s,x=()=>{const b=$e.useManualTiming?r.timestamp:performance.now();n=!1,$e.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(b-r.timestamp,Eu),1)),r.timestamp=b,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),m.process(r),v.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(x))},w=()=>{n=!0,i=!0,r.isProcessing||e(x)};return{schedule:bn.reduce((b,k)=>{const y=s[k];return b[k]=(P,j=!1,A=!1)=>(n||w(),y.schedule(P,j,A)),b},{}),cancel:b=>{for(let k=0;k<bn.length;k++)s[bn[k]].cancel(b)},state:r,steps:s}}const{schedule:se,cancel:Ke,state:ge,steps:mi}=Ko(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ee,!0);let wn;function ju(){wn=void 0}const we={now:()=>(wn===void 0&&we.set(ge.isProcessing||$e.useManualTiming?ge.timestamp:performance.now()),wn),set:e=>{wn=e,queueMicrotask(ju)}},Yo=e=>t=>typeof t=="string"&&t.startsWith(e),hi=Yo("--"),Cu=Yo("var(--"),gi=e=>Cu(e)?Pu.test(e.split("/*")[0].trim()):!1,Pu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qt={...xt,transform:e=>Be(0,1,e)},Tn={...xt,default:1},Kt=e=>Math.round(e*1e5)/1e5,vi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Au(e){return e==null}const Du=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xi=(e,t)=>n=>!!(typeof n=="string"&&Du.test(n)&&n.startsWith(e)||t&&!Au(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ho=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(vi);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ru=e=>Be(0,255,e),yi={...xt,transform:e=>Math.round(Ru(e))},tt={test:xi("rgb","red"),parse:Ho("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+yi.transform(e)+", "+yi.transform(t)+", "+yi.transform(n)+", "+Kt(qt.transform(i))+")"};function Ou(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const bi={test:xi("#"),parse:Ou,transform:tt.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Yt("deg"),Ne=Yt("%"),Y=Yt("px"),Mu=Yt("vh"),Iu=Yt("vw"),Go={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},yt={test:xi("hsl","hue"),parse:Ho("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ne.transform(Kt(t))+", "+Ne.transform(Kt(n))+", "+Kt(qt.transform(i))+")"},pe={test:e=>tt.test(e)||bi.test(e)||yt.test(e),parse:e=>tt.test(e)?tt.parse(e):yt.test(e)?yt.parse(e):bi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tt.transform(e):yt.transform(e),getAnimatableNone:e=>{const t=pe.parse(e);return t.alpha=0,pe.transform(t)}},Nu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fu(e){return isNaN(e)&&typeof e=="string"&&(e.match(vi)?.length||0)+(e.match(Nu)?.length||0)>0}const Xo="number",Zo="color",Vu="var",Lu="var(",Jo="${}",_u=/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 Ht(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(_u,l=>(pe.test(l)?(i.color.push(o),r.push(Zo),n.push(pe.parse(l))):l.startsWith(Lu)?(i.var.push(o),r.push(Vu),n.push(l)):(i.number.push(o),r.push(Xo),n.push(parseFloat(l))),++o,Jo)).split(Jo);return{values:n,split:a,indexes:i,types:r}}function Qo(e){return Ht(e).values}function es(e){const{split:t,types:n}=Ht(e),i=t.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=t[s],r[s]!==void 0){const a=n[s];a===Xo?o+=Kt(r[s]):a===Zo?o+=pe.transform(r[s]):o+=r[s]}return o}}const zu=e=>typeof e=="number"?0:pe.test(e)?pe.getAnimatableNone(e):e;function Bu(e){const t=Qo(e);return es(e)(t.map(zu))}const He={test:Fu,parse:Qo,createTransformer:es,getAnimatableNone:Bu};function wi(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 $u({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=wi(l,a,e+1/3),o=wi(l,a,e),s=wi(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function Sn(e,t){return n=>n>0?t:e}const ae=(e,t,n)=>e+(t-e)*n,Ti=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},Wu=[bi,tt,yt],Uu=e=>Wu.find(t=>t.test(e));function ts(e){const t=Uu(e);if(gt(!!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===yt&&(n=$u(n)),n}const ns=(e,t)=>{const n=ts(e),i=ts(t);if(!n||!i)return Sn(e,t);const r={...n};return o=>(r.red=Ti(n.red,i.red,o),r.green=Ti(n.green,i.green,o),r.blue=Ti(n.blue,i.blue,o),r.alpha=ae(n.alpha,i.alpha,o),tt.transform(r))},Si=new Set(["none","hidden"]);function qu(e,t){return Si.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ku(e,t){return n=>ae(e,t,n)}function ki(e){return typeof e=="number"?Ku:typeof e=="string"?gi(e)?Sn:pe.test(e)?ns:Gu:Array.isArray(e)?is:typeof e=="object"?pe.test(e)?ns:Yu:Sn}function is(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>ki(o)(o,t[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Yu(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=ki(e[r])(e[r],t[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Hu(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],s=e.indexes[o][i[o]],a=e.values[s]??0;n[r]=a,i[o]++}return n}const Gu=(e,t)=>{const n=He.createTransformer(t),i=Ht(e),r=Ht(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Si.has(e)&&!r.values.length||Si.has(t)&&!i.values.length?qu(e,t):Wt(is(Hu(i,r),r.values),n):(gt(!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"),Sn(e,t))};function rs(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ae(e,t,n):ki(e)(e,t)}const Xu=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>se.update(t,n),stop:()=>Ke(t),now:()=>ge.isProcessing?ge.timestamp:we.now()}},os=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)i+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},kn=2e4;function Ei(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<kn;)t+=n,i=e.next(t);return t>=kn?1/0:t}function ss(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(Ei(i),kn);return{type:"keyframes",ease:o=>i.next(r*o).value/t,duration:Ie(r)}}const Zu=5;function as(e,t,n){const i=Math.max(t-Zu,0);return Do(n-e(i),t-i)}const le={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},ji=.001;function Ju({duration:e=le.duration,bounce:t=le.bounce,velocity:n=le.velocity,mass:i=le.mass}){let r,o;gt(e<=je(le.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Be(le.minDamping,le.maxDamping,s),e=Be(le.minDuration,le.maxDuration,Ie(e)),s<1?(r=u=>{const c=u*s,d=c*e,f=c-n,m=Ci(u,s),v=Math.exp(-d);return ji-f/m*v},o=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Ci(Math.pow(u,2),s);return(-r(u)+ji>0?-1:1)*((f-m)*v)/x}):(r=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ji+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=ed(r,o,a);if(e=je(e),isNaN(l))return{stiffness:le.stiffness,damping:le.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const Qu=12;function ed(e,t,n){let i=n;for(let r=1;r<Qu;r++)i=i-e(i)/t(i);return i}function Ci(e,t){return e*Math.sqrt(1-t*t)}const td=["duration","bounce"],nd=["stiffness","damping","mass"];function ls(e,t){return t.some(n=>e[n]!==void 0)}function id(e){let t={velocity:le.velocity,stiffness:le.stiffness,damping:le.damping,mass:le.mass,isResolvedFromDuration:!1,...e};if(!ls(e,nd)&&ls(e,td))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*Be(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:le.mass,stiffness:r,damping:o}}else{const n=Ju(e);t={...t,...n,mass:le.mass},t.isResolvedFromDuration=!0}return t}function Gt(e=le.visualDuration,t=le.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=id({...n,velocity:-Ie(n.velocity||0)}),v=f||0,x=u/(2*Math.sqrt(l*c)),w=s-o,h=Ie(Math.sqrt(l/c)),T=Math.abs(w)<5;i||(i=T?le.restSpeed.granular:le.restSpeed.default),r||(r=T?le.restDelta.granular:le.restDelta.default);let b;if(x<1){const y=Ci(h,x);b=P=>{const j=Math.exp(-x*h*P);return s-j*((v+x*h*w)/y*Math.sin(y*P)+w*Math.cos(y*P))}}else if(x===1)b=y=>s-Math.exp(-h*y)*(w+(v+h*w)*y);else{const y=h*Math.sqrt(x*x-1);b=P=>{const j=Math.exp(-x*h*P),A=Math.min(y*P,300);return s-j*((v+x*h*w)*Math.sinh(A)+y*w*Math.cosh(A))/y}}const k={calculatedDuration:m&&d||null,next:y=>{const P=b(y);if(m)a.done=y>=d;else{let j=y===0?v:0;x<1&&(j=y===0?je(v):as(b,y,P));const A=Math.abs(j)<=i,M=Math.abs(s-P)<=r;a.done=A&&M}return a.value=a.done?s:P,a},toString:()=>{const y=Math.min(Ei(k),kn),P=os(j=>k.next(y*j).value,y,30);return y+"ms "+P},toTransition:()=>{}};return k}Gt.applyToOptions=e=>{const t=ss(e,100,Gt);return e.ease=t.ease,e.duration=je(t.duration),e.type="keyframes",e};function Pi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=A=>a!==void 0&&A<a||l!==void 0&&A>l,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let x=n*t;const w=d+x,h=s===void 0?w:s(w);h!==w&&(x=h-d);const T=A=>-x*Math.exp(-A/i),b=A=>h+T(A),k=A=>{const M=T(A),U=b(A);f.done=Math.abs(M)<=u,f.value=f.done?h:U};let y,P;const j=A=>{m(f.value)&&(y=A,P=Gt({keyframes:[f.value,v(f.value)],velocity:as(b,A,f.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:A=>{let M=!1;return!P&&y===void 0&&(M=!0,k(A),j(A)),y!==void 0&&A>=y?P.next(A-y):(!M&&k(A),f)}}}function rd(e,t,n){const i=[],r=n||$e.mix||rs,o=e.length-1;for(let s=0;s<o;s++){let a=r(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ee:t;a=Wt(l,a)}i.push(a)}return i}function od(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const o=e.length;if(ke(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rd(t,i,r),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=vt(e[d],e[d+1],c);return a[d](f)};return n?c=>u(Be(e[0],e[o-1],c)):u}function cs(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=vt(0,t,i);e.push(ae(n,1,r))}}function us(e){const t=[0];return cs(t,e.length-1),t}function sd(e,t){return e.map(n=>n*t)}function ad(e,t){return e.map(()=>t||zo).splice(0,e.length-1)}function bt({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=Bo(i)?i.map(qo):qo(i),o={done:!1,value:t[0]},s=sd(n&&n.length===t.length?n:us(t),e),a=od(s,t,{ease:Array.isArray(r)?r:ad(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ld=e=>e!==null;function Ai(e,{repeat:t,repeatType:n="loop"},i,r=1){const o=e.filter(ld),a=r<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const cd={decay:Pi,inertia:Pi,tween:bt,keyframes:bt,spring:Gt};function ds(e){typeof e.type=="string"&&(e.type=cd[e.type])}class Di{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 ud=e=>e/100;class Ri extends Di{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;ds(t);const{type:n=bt,repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||bt;process.env.NODE_ENV!=="production"&&l!==bt&&ke(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==bt&&typeof a[0]!="number"&&(this.mixKeyframes=Wt(ud,rs(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ei(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,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:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:v,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?h<0:h>r;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let b=this.currentTime,k=i;if(d){const A=Math.min(this.currentTime,r)/a;let M=Math.floor(A),U=A%1;!U&&A>=1&&(U=1),U===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(f==="reverse"?(U=1-U,m&&(U-=m/a)):f==="mirror"&&(k=s)),b=Be(0,1,U)*a}const y=T?{done:!1,value:c[0]}:k.next(b);o&&(y.value=o(y.value));let{done:P}=y;!T&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return j&&v!==Pi&&(y.value=Ai(c,this.options,w,this.speed)),x&&x(y.value),j&&this.finish(),y}then(t,n){return this.finished.then(t,n)}get duration(){return Ie(this.calculatedDuration)}get time(){return Ie(this.currentTime)}set time(t){t=je(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=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Xu,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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 dd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nt=e=>e*180/Math.PI,Oi=e=>{const t=nt(Math.atan2(e[1],e[0]));return Mi(t)},pd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Oi,rotateZ:Oi,skewX:e=>nt(Math.atan(e[1])),skewY:e=>nt(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),ps=Oi,fs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ms=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fs,scaleY:ms,scale:e=>(fs(e)+ms(e))/2,rotateX:e=>Mi(nt(Math.atan2(e[6],e[5]))),rotateY:e=>Mi(nt(Math.atan2(-e[2],e[0]))),rotateZ:ps,rotate:ps,skewX:e=>nt(Math.atan(e[4])),skewY:e=>nt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ii(e){return e.includes("scale")?1:0}function Ni(e,t){if(!e||e==="none")return Ii(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=fd,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=pd,r=a}if(!r)return Ii(t);const o=i[t],s=r[1].split(",").map(hd);return typeof o=="function"?o(s):s[o]}const md=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ni(n,t)};function hd(e){return parseFloat(e.trim())}const wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tt=new Set(wt),hs=e=>e===xt||e===Y,gd=new Set(["x","y","z"]),vd=wt.filter(e=>!gd.has(e));function xd(e){const t=[];return vd.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const it={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})=>Ni(t,"x"),y:(e,{transform:t})=>Ni(t,"y")};it.translateX=it.x,it.translateY=it.y;const rt=new Set;let Fi=!1,Vi=!1,Li=!1;function gs(){if(Vi){const e=Array.from(rt).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=xd(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{i.getValue(o)?.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Vi=!1,Fi=!1,rt.forEach(e=>e.complete(Li)),rt.clear()}function vs(){rt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vi=!0)})}function yd(){Li=!0,vs(),gs(),Li=!1}class _i{constructor(t,n,i,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(rt.add(this),Fi||(Fi=!0,se.read(vs),se.resolveKeyframes(gs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;if(t[0]===null){const o=r?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(i&&n){const a=i.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}dd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),rt.delete(this)}cancel(){this.state==="scheduled"&&(rt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bd=e=>e.startsWith("--");function wd(e,t,n){bd(t)?e.style.setProperty(t,n):e.style[t]=n}const Td=ci(()=>window.ScrollTimeline!==void 0),Sd={};function kd(e,t){const n=ci(e);return()=>Sd[t]??n()}const xs=kd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,ys={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function bs(e,t){if(e)return typeof e=="function"?xs()?os(e,t):"ease-out":Wo(e)?Xt(e):Array.isArray(e)?e.map(n=>bs(n,t)||ys.easeOut):ys[e]}function Ed(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=bs(a,r);Array.isArray(d)&&(c.easing=d);const f={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function zi(e){return typeof e=="function"&&"applyToOptions"in e}function jd({type:e,...t}){return zi(e)&&xs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Cd extends Di{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,ke(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=jd(t);this.animation=Ed(n,i,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Ai(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):wd(n,i,c),this.animation.cancel()}l?.(),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 Ie(Number(t))}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=je(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&&Td()?(this.animation.timeline=t,Ee):n(this)}}const ws={anticipate:Vo,backInOut:Fo,circInOut:_o};function Pd(e){return e in ws}function Ad(e){typeof e.ease=="string"&&Pd(e.ease)&&(e.ease=ws[e.ease])}const Ts=10;class Dd extends Cd{constructor(t){Ad(t),ds(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:r,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ri({...s,autoplay:!1}),l=je(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ts).value,a.sample(l).value,Ts),a.stop()}}const Ss=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(He.test(e)||e==="0")&&!e.startsWith("url("));function Rd(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 Od(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Ss(r,t),a=Ss(o,t);return gt(s===a,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Rd(e)||(n==="spring"||zi(n))&&i}function Bi(e){e.duration=0,e.type}const Md=new Set(["opacity","clipPath","filter","transform"]),Id=ci(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Nd(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Id()&&n&&Md.has(n)&&(n!=="transform"||!u)&&!l&&!i&&r!=="mirror"&&o!==0&&s!=="inertia"}const Fd=40;class Vd extends Di{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const f={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...d},m=c?.KeyframeResolver||_i;this.keyframeResolver=new m(a,(v,x,w)=>this.onKeyframesResolved(v,x,f,!w),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,i,r){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=we.now(),Od(t,o,s,a)||(($e.instantAnimations||!l)&&c?.(Ai(t,i,n)),t[0]=t[t.length-1],Bi(i),i.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Fd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},m=!u&&Nd(f)?new Dd({...f,element:f.motionValue.owner.current}):new Ri(f);m.finished.then(()=>this.notifyFinished()).catch(Ee),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yd()),this._animation}get duration(){return this.animation.duration}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()}}class Ld{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>i.attachTimeline(t));return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class _d extends Ld{then(t,n){return this.finished.finally(t).then(()=>{})}}const zd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bd(e){const t=zd.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}const $d=4;function ks(e,t,n=1){ke(n<=$d,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,r]=Bd(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return Co(s)?parseFloat(s):s}return gi(r)?ks(r,t,n+1):r}function $i(e,t){return e?.[t]??e?.default??e}const Es=new Set(["width","height","top","left","right","bottom",...wt]),Wd={test:e=>e==="auto",parse:e=>e},js=e=>t=>t.test(e),Cs=[xt,Y,Ne,Ye,Iu,Mu,Wd],Ps=e=>Cs.find(js(e));function Ud(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ao(e):!0}const qd=new Set(["brightness","contrast","saturate","opacity"]);function Kd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(vi)||[];if(!i)return e;const r=n.replace(i,"");let o=qd.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const Yd=/\b([a-z-]*)\(.*?\)/gu,Wi={...He,getAnimatableNone:e=>{const t=e.match(Yd);return t?t.map(Kd).join(" "):e}},As={...xt,transform:Math.round},Ui={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,backgroundPositionX:Y,backgroundPositionY:Y,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Tn,scaleX:Tn,scaleY:Tn,scaleZ:Tn,skew:Ye,skewX:Ye,skewY:Ye,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:qt,originX:Go,originY:Go,originZ:Y},zIndex:As,fillOpacity:qt,strokeOpacity:qt,numOctaves:As},Hd={...Ui,color:pe,backgroundColor:pe,outlineColor:pe,fill:pe,stroke:pe,borderColor:pe,borderTopColor:pe,borderRightColor:pe,borderBottomColor:pe,borderLeftColor:pe,filter:Wi,WebkitFilter:Wi},Ds=e=>Hd[e];function Rs(e,t){let n=Ds(e);return n!==Wi&&(n=He),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Gd=new Set(["auto","none","0"]);function Xd(e,t,n){let i=0,r;for(;i<e.length&&!r;){const o=e[i];typeof o=="string"&&!Gd.has(o)&&Ht(o).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=Rs(n,r)}class Zd extends _i{constructor(t,n,i,r,o){super(t,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gi(u))){const c=ks(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Es.has(i)||t.length!==2)return;const[r,o]=t,s=Ps(r),a=Ps(o);if(s!==a)if(hs(s)&&hs(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else it[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||Ud(t[r]))&&i.push(r);i.length&&Xd(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=it[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Os(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const Ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Is(e){return Po(e)&&"offsetHeight"in e}const Ns=30,Jd=e=>!isNaN(parseFloat(e));class Qd{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const r=we.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.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=Jd(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&di(!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 ui);const i=this.events[t].add(n);return t==="change"?()=>{i(),se.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ns)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ns);return Do(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 St(e,t){return new Qd(e,t)}const{schedule:qi}=Ko(queueMicrotask,!1),Oe={x:!1,y:!1};function Fs(){return Oe.x||Oe.y}function ep(e){return e==="x"||e==="y"?Oe[e]?null:(Oe[e]=!0,()=>{Oe[e]=!1}):Oe.x||Oe.y?null:(Oe.x=Oe.y=!0,()=>{Oe.x=Oe.y=!1})}function Vs(e,t){const n=Os(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function Ls(e){return!(e.pointerType==="touch"||Fs())}function tp(e,t,n={}){const[i,r,o]=Vs(e,n),s=a=>{if(!Ls(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Ls(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}const _s=(e,t)=>t?e===t?!0:_s(e,t.parentElement):!1,Ki=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,np=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ip(e){return np.has(e.tagName)||e.tabIndex!==-1}const En=new WeakSet;function zs(e){return t=>{t.key==="Enter"&&e(t)}}function Yi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const rp=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=zs(()=>{if(En.has(n))return;Yi(n,"down");const r=zs(()=>{Yi(n,"up")}),o=()=>Yi(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Bs(e){return Ki(e)&&!Fs()}function op(e,t,n={}){const[i,r,o]=Vs(e,n),s=a=>{const l=a.currentTarget;if(!Bs(a))return;En.add(l);const u=t(l,a),c=(m,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),En.has(l)&&En.delete(l),Bs(m)&&typeof u=="function"&&u(m,{success:v})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||_s(l,m.target))},f=m=>{c(m,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),Is(a)&&(a.addEventListener("focus",u=>rp(u,r)),!ip(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Hi(e){return Po(e)&&"ownerSVGElement"in e}function $s(e){return Hi(e)&&e.tagName==="svg"}const he=e=>!!(e&&e.getVelocity),sp=[...Cs,pe,He],ap=e=>sp.find(js(e)),Gi=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lp extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=n.offsetParent,r=Is(i)&&i.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function cp({children:e,isPresent:t,anchorX:n,root:i}){const r=S.useId(),o=S.useRef(null),s=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=S.useContext(Gi);return S.useInsertionEffect(()=>{const{width:l,height:u,top:c,left:d,right:f}=s.current;if(t||!o.current||!l||!u)return;const m=n==="left"?`left: ${d}`:`right: ${f}`;o.current.dataset.motionPopId=r;const v=document.createElement("style");a&&(v.nonce=a);const x=i??document.head;return x.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
22
|
+
<%s key={someKey} {...props} />`,V,_,X,_),Z[_+V]=!0)}if(_=null,I!==void 0&&(n(I),_=""+I),s(E)&&(n(E.key),_=""+E.key),"key"in E){I={};for(var Q in E)Q!=="key"&&(I[Q]=E[Q])}else I=E;return _&&a(I,typeof v=="function"?v.displayName||v.name||"Unknown":v),u(v,_,z,L,r(),I,K,$)}function d(v){typeof v=="object"&&v!==null&&v.$$typeof===m&&v._store&&(v._store.validated=1)}var f=S,m=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),b=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),O=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,Y=Array.isArray,F=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(v){return v()}};var ee,ie={},G=f.react_stack_bottom_frame.bind(f,o)(),q=F(i(o)),Z={};Wt.Fragment=y,Wt.jsx=function(v,E,I,V,L){var z=1e4>O.recentlyCreatedOwnerStacks++;return c(v,E,I,!1,V,L,z?Error("react-stack-top-frame"):G,z?F(i(v)):q)},Wt.jsxs=function(v,E,I,V,L){var z=1e4>O.recentlyCreatedOwnerStacks++;return c(v,E,I,!0,V,L,z?Error("react-stack-top-frame"):G,z?F(i(v)):q)}})()),Wt}var Co;function bu(){return Co||(Co=1,process.env.NODE_ENV==="production"?xn.exports=xu():xn.exports=yu()),xn.exports}var p=bu();const N=(...e)=>e.filter(Boolean).join(" "),oi=S.createContext({});function si(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ai=typeof window<"u",Po=ai?S.useLayoutEffect:S.useEffect,yn=S.createContext(null);function li(e,t){e.indexOf(t)===-1&&e.push(t)}function bn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $e=(e,t,n)=>n>t?t:n<e?e:n;function ci(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let bt=()=>{},Ee=()=>{};process.env.NODE_ENV!=="production"&&(bt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ci(t,n))},Ee=(e,t,n)=>{if(!e)throw new Error(ci(t,n))});const We={},Ao=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Do(e){return typeof e=="object"&&e!==null}const Ro=e=>/^0[^.\s]+$/u.test(e);function ui(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,wu=(e,t)=>n=>t(e(n)),Ut=(...e)=>e.reduce(wu),wt=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class di{constructor(){this.subscriptions=[]}add(t){return li(this.subscriptions,t),()=>bn(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Pe=e=>e*1e3,Ie=e=>e/1e3;function Mo(e,t){return t?e*(1e3/t):0}const Oo=new Set;function pi(e,t,n){e||Oo.has(t)||(console.warn(ci(t,n)),Oo.add(t))}const Tu=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e},Io=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Su=1e-7,ku=12;function ju(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=Io(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>Su&&++a<ku);return s}function qt(e,t,n,i){if(e===t&&n===i)return Ce;const r=o=>ju(o,0,1,e,n);return o=>o===0||o===1?o:Io(r(o),t,i)}const No=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fo=e=>t=>1-e(1-t),Vo=qt(.33,1.53,.69,.99),fi=Fo(Vo),Lo=No(fi),_o=e=>(e*=2)<1?.5*fi(e):.5*(2-Math.pow(2,-10*(e-1))),mi=e=>1-Math.sin(Math.acos(e)),zo=Fo(mi),Bo=No(mi),Eu=qt(.42,0,1,1),Cu=qt(0,0,.58,1),$o=qt(.42,0,.58,1),Wo=e=>Array.isArray(e)&&typeof e[0]!="number";function Uo(e,t){return Wo(e)?e[Tu(0,e.length,t)]:e}const qo=e=>Array.isArray(e)&&typeof e[0]=="number",Ko={linear:Ce,easeIn:Eu,easeInOut:$o,easeOut:Cu,circIn:mi,circInOut:Bo,circOut:zo,backIn:fi,backInOut:Lo,backOut:Vo,anticipate:_o},Pu=e=>typeof e=="string",Ho=e=>{if(qo(e)){Ee(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,i,r]=e;return qt(t,n,i,r)}else if(Pu(e))return Ee(Ko[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ko[e];return e},wn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Au(e,t){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const x=f&&r?n:i;return d&&s.add(c),x.has(c)||x.add(c),c},cancel:c=>{i.delete(c),s.delete(c)},process:c=>{if(a=c,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,u.process(c))}};return u}const Du=40;function Yo(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=wn.reduce((b,k)=>(b[k]=Au(o),b),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:x}=s,y=()=>{const b=We.useManualTiming?r.timestamp:performance.now();n=!1,We.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(b-r.timestamp,Du),1)),r.timestamp=b,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),m.process(r),x.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(y))},w=()=>{n=!0,i=!0,r.isProcessing||e(y)};return{schedule:wn.reduce((b,k)=>{const h=s[k];return b[k]=(C,j=!1,A=!1)=>(n||w(),h.schedule(C,j,A)),b},{}),cancel:b=>{for(let k=0;k<wn.length;k++)s[wn[k]].cancel(b)},state:r,steps:s}}const{schedule:se,cancel:Xe,state:ge,steps:hi}=Yo(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Tn;function Ru(){Tn=void 0}const we={now:()=>(Tn===void 0&&we.set(ge.isProcessing||We.useManualTiming?ge.timestamp:performance.now()),Tn),set:e=>{Tn=e,queueMicrotask(Ru)}},Xo=e=>t=>typeof t=="string"&&t.startsWith(e),gi=Xo("--"),Mu=Xo("var(--"),vi=e=>Mu(e)?Ou.test(e.split("/*")[0].trim()):!1,Ou=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Kt={...Tt,transform:e=>$e(0,1,e)},Sn={...Tt,default:1},Ht=e=>Math.round(e*1e5)/1e5,xi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Iu(e){return e==null}const Nu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yi=(e,t)=>n=>!!(typeof n=="string"&&Nu.test(n)&&n.startsWith(e)||t&&!Iu(n)&&Object.prototype.hasOwnProperty.call(n,t)),Go=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(xi);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Fu=e=>$e(0,255,e),bi={...Tt,transform:e=>Math.round(Fu(e))},it={test:yi("rgb","red"),parse:Go("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+bi.transform(e)+", "+bi.transform(t)+", "+bi.transform(n)+", "+Ht(Kt.transform(i))+")"};function Vu(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const wi={test:yi("#"),parse:Vu,transform:it.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ge=Yt("deg"),Ne=Yt("%"),H=Yt("px"),Lu=Yt("vh"),_u=Yt("vw"),Zo={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},St={test:yi("hsl","hue"),parse:Go("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ne.transform(Ht(t))+", "+Ne.transform(Ht(n))+", "+Ht(Kt.transform(i))+")"},pe={test:e=>it.test(e)||wi.test(e)||St.test(e),parse:e=>it.test(e)?it.parse(e):St.test(e)?St.parse(e):wi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):St.transform(e),getAnimatableNone:e=>{const t=pe.parse(e);return t.alpha=0,pe.transform(t)}},zu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bu(e){return isNaN(e)&&typeof e=="string"&&(e.match(xi)?.length||0)+(e.match(zu)?.length||0)>0}const Jo="number",Qo="color",$u="var",Wu="var(",es="${}",Uu=/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 Xt(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(Uu,l=>(pe.test(l)?(i.color.push(o),r.push(Qo),n.push(pe.parse(l))):l.startsWith(Wu)?(i.var.push(o),r.push($u),n.push(l)):(i.number.push(o),r.push(Jo),n.push(parseFloat(l))),++o,es)).split(es);return{values:n,split:a,indexes:i,types:r}}function ts(e){return Xt(e).values}function ns(e){const{split:t,types:n}=Xt(e),i=t.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=t[s],r[s]!==void 0){const a=n[s];a===Jo?o+=Ht(r[s]):a===Qo?o+=pe.transform(r[s]):o+=r[s]}return o}}const qu=e=>typeof e=="number"?0:pe.test(e)?pe.getAnimatableNone(e):e;function Ku(e){const t=ts(e);return ns(e)(t.map(qu))}const Ze={test:Bu,parse:ts,createTransformer:ns,getAnimatableNone:Ku};function Ti(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 Hu({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ti(l,a,e+1/3),o=Ti(l,a,e),s=Ti(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function kn(e,t){return n=>n>0?t:e}const ae=(e,t,n)=>e+(t-e)*n,Si=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},Yu=[wi,it,St],Xu=e=>Yu.find(t=>t.test(e));function is(e){const t=Xu(e);if(bt(!!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===St&&(n=Hu(n)),n}const rs=(e,t)=>{const n=is(e),i=is(t);if(!n||!i)return kn(e,t);const r={...n};return o=>(r.red=Si(n.red,i.red,o),r.green=Si(n.green,i.green,o),r.blue=Si(n.blue,i.blue,o),r.alpha=ae(n.alpha,i.alpha,o),it.transform(r))},ki=new Set(["none","hidden"]);function Gu(e,t){return ki.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Zu(e,t){return n=>ae(e,t,n)}function ji(e){return typeof e=="number"?Zu:typeof e=="string"?vi(e)?kn:pe.test(e)?rs:ed:Array.isArray(e)?os:typeof e=="object"?pe.test(e)?rs:Ju:kn}function os(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>ji(o)(o,t[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Ju(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=ji(e[r])(e[r],t[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Qu(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],s=e.indexes[o][i[o]],a=e.values[s]??0;n[r]=a,i[o]++}return n}const ed=(e,t)=>{const n=Ze.createTransformer(t),i=Xt(e),r=Xt(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?ki.has(e)&&!r.values.length||ki.has(t)&&!i.values.length?Gu(e,t):Ut(os(Qu(i,r),r.values),n):(bt(!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"),kn(e,t))};function ss(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ae(e,t,n):ji(e)(e,t)}const td=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>se.update(t,n),stop:()=>Xe(t),now:()=>ge.isProcessing?ge.timestamp:we.now()}},as=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)i+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},jn=2e4;function Ei(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<jn;)t+=n,i=e.next(t);return t>=jn?1/0:t}function ls(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(Ei(i),jn);return{type:"keyframes",ease:o=>i.next(r*o).value/t,duration:Ie(r)}}const nd=5;function cs(e,t,n){const i=Math.max(t-nd,0);return Mo(n-e(i),t-i)}const le={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 id({duration:e=le.duration,bounce:t=le.bounce,velocity:n=le.velocity,mass:i=le.mass}){let r,o;bt(e<=Pe(le.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=$e(le.minDamping,le.maxDamping,s),e=$e(le.minDuration,le.maxDuration,Ie(e)),s<1?(r=u=>{const c=u*s,d=c*e,f=c-n,m=Pi(u,s),x=Math.exp(-d);return Ci-f/m*x},o=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),y=Pi(Math.pow(u,2),s);return(-r(u)+Ci>0?-1:1)*((f-m)*x)/y}):(r=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ci+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=od(r,o,a);if(e=Pe(e),isNaN(l))return{stiffness:le.stiffness,damping:le.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const rd=12;function od(e,t,n){let i=n;for(let r=1;r<rd;r++)i=i-e(i)/t(i);return i}function Pi(e,t){return e*Math.sqrt(1-t*t)}const sd=["duration","bounce"],ad=["stiffness","damping","mass"];function us(e,t){return t.some(n=>e[n]!==void 0)}function ld(e){let t={velocity:le.velocity,stiffness:le.stiffness,damping:le.damping,mass:le.mass,isResolvedFromDuration:!1,...e};if(!us(e,ad)&&us(e,sd))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*$e(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:le.mass,stiffness:r,damping:o}}else{const n=id(e);t={...t,...n,mass:le.mass},t.isResolvedFromDuration=!0}return t}function Gt(e=le.visualDuration,t=le.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=ld({...n,velocity:-Ie(n.velocity||0)}),x=f||0,y=u/(2*Math.sqrt(l*c)),w=s-o,g=Ie(Math.sqrt(l/c)),T=Math.abs(w)<5;i||(i=T?le.restSpeed.granular:le.restSpeed.default),r||(r=T?le.restDelta.granular:le.restDelta.default);let b;if(y<1){const h=Pi(g,y);b=C=>{const j=Math.exp(-y*g*C);return s-j*((x+y*g*w)/h*Math.sin(h*C)+w*Math.cos(h*C))}}else if(y===1)b=h=>s-Math.exp(-g*h)*(w+(x+g*w)*h);else{const h=g*Math.sqrt(y*y-1);b=C=>{const j=Math.exp(-y*g*C),A=Math.min(h*C,300);return s-j*((x+y*g*w)*Math.sinh(A)+h*w*Math.cosh(A))/h}}const k={calculatedDuration:m&&d||null,next:h=>{const C=b(h);if(m)a.done=h>=d;else{let j=h===0?x:0;y<1&&(j=h===0?Pe(x):cs(b,h,C));const A=Math.abs(j)<=i,M=Math.abs(s-C)<=r;a.done=A&&M}return a.value=a.done?s:C,a},toString:()=>{const h=Math.min(Ei(k),jn),C=as(j=>k.next(h*j).value,h,30);return h+"ms "+C},toTransition:()=>{}};return k}Gt.applyToOptions=e=>{const t=ls(e,100,Gt);return e.ease=t.ease,e.duration=Pe(t.duration),e.type="keyframes",e};function Ai({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=A=>a!==void 0&&A<a||l!==void 0&&A>l,x=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let y=n*t;const w=d+y,g=s===void 0?w:s(w);g!==w&&(y=g-d);const T=A=>-y*Math.exp(-A/i),b=A=>g+T(A),k=A=>{const M=T(A),W=b(A);f.done=Math.abs(M)<=u,f.value=f.done?g:W};let h,C;const j=A=>{m(f.value)&&(h=A,C=Gt({keyframes:[f.value,x(f.value)],velocity:cs(b,A,f.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:A=>{let M=!1;return!C&&h===void 0&&(M=!0,k(A),j(A)),h!==void 0&&A>=h?C.next(A-h):(!M&&k(A),f)}}}function cd(e,t,n){const i=[],r=n||We.mix||ss,o=e.length-1;for(let s=0;s<o;s++){let a=r(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ce:t;a=Ut(l,a)}i.push(a)}return i}function ud(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const o=e.length;if(Ee(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=cd(t,i,r),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=wt(e[d],e[d+1],c);return a[d](f)};return n?c=>u($e(e[0],e[o-1],c)):u}function ds(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=wt(0,t,i);e.push(ae(n,1,r))}}function ps(e){const t=[0];return ds(t,e.length-1),t}function dd(e,t){return e.map(n=>n*t)}function pd(e,t){return e.map(()=>t||$o).splice(0,e.length-1)}function kt({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=Wo(i)?i.map(Ho):Ho(i),o={done:!1,value:t[0]},s=dd(n&&n.length===t.length?n:ps(t),e),a=ud(s,t,{ease:Array.isArray(r)?r:pd(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const fd=e=>e!==null;function Di(e,{repeat:t,repeatType:n="loop"},i,r=1){const o=e.filter(fd),a=r<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const md={decay:Ai,inertia:Ai,tween:kt,keyframes:kt,spring:Gt};function fs(e){typeof e.type=="string"&&(e.type=md[e.type])}class Ri{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 hd=e=>e/100;class Mi extends Ri{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;fs(t);const{type:n=kt,repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||kt;process.env.NODE_ENV!=="production"&&l!==kt&&Ee(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==kt&&typeof a[0]!="number"&&(this.mixKeyframes=Ut(hd,ss(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ei(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,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:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:x,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let b=this.currentTime,k=i;if(d){const A=Math.min(this.currentTime,r)/a;let M=Math.floor(A),W=A%1;!W&&A>=1&&(W=1),W===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(f==="reverse"?(W=1-W,m&&(W-=m/a)):f==="mirror"&&(k=s)),b=$e(0,1,W)*a}const h=T?{done:!1,value:c[0]}:k.next(b);o&&(h.value=o(h.value));let{done:C}=h;!T&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return j&&x!==Ai&&(h.value=Di(c,this.options,w,this.speed)),y&&y(h.value),j&&this.finish(),h}then(t,n){return this.finished.then(t,n)}get duration(){return Ie(this.calculatedDuration)}get time(){return Ie(this.currentTime)}set time(t){t=Pe(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=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=td,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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 gd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const rt=e=>e*180/Math.PI,Oi=e=>{const t=rt(Math.atan2(e[1],e[0]));return Ii(t)},vd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Oi,rotateZ:Oi,skewX:e=>rt(Math.atan(e[1])),skewY:e=>rt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ii=e=>(e=e%360,e<0&&(e+=360),e),ms=Oi,hs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hs,scaleY:gs,scale:e=>(hs(e)+gs(e))/2,rotateX:e=>Ii(rt(Math.atan2(e[6],e[5]))),rotateY:e=>Ii(rt(Math.atan2(-e[2],e[0]))),rotateZ:ms,rotate:ms,skewX:e=>rt(Math.atan(e[4])),skewY:e=>rt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ni(e){return e.includes("scale")?1:0}function Fi(e,t){if(!e||e==="none")return Ni(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=xd,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=vd,r=a}if(!r)return Ni(t);const o=i[t],s=r[1].split(",").map(bd);return typeof o=="function"?o(s):s[o]}const yd=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fi(n,t)};function bd(e){return parseFloat(e.trim())}const jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set(jt),vs=e=>e===Tt||e===H,wd=new Set(["x","y","z"]),Td=jt.filter(e=>!wd.has(e));function Sd(e){const t=[];return Td.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const ot={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})=>Fi(t,"x"),y:(e,{transform:t})=>Fi(t,"y")};ot.translateX=ot.x,ot.translateY=ot.y;const st=new Set;let Vi=!1,Li=!1,_i=!1;function xs(){if(Li){const e=Array.from(st).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=Sd(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{i.getValue(o)?.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Li=!1,Vi=!1,st.forEach(e=>e.complete(_i)),st.clear()}function ys(){st.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Li=!0)})}function kd(){_i=!0,ys(),xs(),_i=!1}class zi{constructor(t,n,i,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(st.add(this),Vi||(Vi=!0,se.read(ys),se.resolveKeyframes(xs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;if(t[0]===null){const o=r?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(i&&n){const a=i.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}gd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),st.delete(this)}cancel(){this.state==="scheduled"&&(st.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const jd=e=>e.startsWith("--");function Ed(e,t,n){jd(t)?e.style.setProperty(t,n):e.style[t]=n}const Cd=ui(()=>window.ScrollTimeline!==void 0),Pd={};function Ad(e,t){const n=ui(e);return()=>Pd[t]??n()}const bs=Ad(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,ws={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function Ts(e,t){if(e)return typeof e=="function"?bs()?as(e,t):"ease-out":qo(e)?Zt(e):Array.isArray(e)?e.map(n=>Ts(n,t)||ws.easeOut):ws[e]}function Dd(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Ts(a,r);Array.isArray(d)&&(c.easing=d);const f={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Bi(e){return typeof e=="function"&&"applyToOptions"in e}function Rd({type:e,...t}){return Bi(e)&&bs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Md extends Ri{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Ee(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Rd(t);this.animation=Dd(n,i,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Di(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ed(n,i,c),this.animation.cancel()}l?.(),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 Ie(Number(t))}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Pe(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&&Cd()?(this.animation.timeline=t,Ce):n(this)}}const Ss={anticipate:_o,backInOut:Lo,circInOut:Bo};function Od(e){return e in Ss}function Id(e){typeof e.ease=="string"&&Od(e.ease)&&(e.ease=Ss[e.ease])}const ks=10;class Nd extends Md{constructor(t){Id(t),fs(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:r,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Mi({...s,autoplay:!1}),l=Pe(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-ks).value,a.sample(l).value,ks),a.stop()}}const js=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ze.test(e)||e==="0")&&!e.startsWith("url("));function Fd(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 Vd(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=js(r,t),a=js(o,t);return bt(s===a,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Fd(e)||(n==="spring"||Bi(n))&&i}function $i(e){e.duration=0,e.type}const Ld=new Set(["opacity","clipPath","filter","transform"]),_d=ui(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zd(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _d()&&n&&Ld.has(n)&&(n!=="transform"||!u)&&!l&&!i&&r!=="mirror"&&o!==0&&s!=="inertia"}const Bd=40;class $d extends Ri{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const f={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...d},m=c?.KeyframeResolver||zi;this.keyframeResolver=new m(a,(x,y,w)=>this.onKeyframesResolved(x,y,f,!w),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,i,r){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=we.now(),Vd(t,o,s,a)||((We.instantAnimations||!l)&&c?.(Di(t,i,n)),t[0]=t[t.length-1],$i(i),i.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Bd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},m=!u&&zd(f)?new Nd({...f,element:f.motionValue.owner.current}):new Mi(f);m.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),kd()),this._animation}get duration(){return this.animation.duration}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()}}class Wd{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>i.attachTimeline(t));return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Ud extends Wd{then(t,n){return this.finished.finally(t).then(()=>{})}}const qd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kd(e){const t=qd.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}const Hd=4;function Es(e,t,n=1){Ee(n<=Hd,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,r]=Kd(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return Ao(s)?parseFloat(s):s}return vi(r)?Es(r,t,n+1):r}function Wi(e,t){return e?.[t]??e?.default??e}const Cs=new Set(["width","height","top","left","right","bottom",...jt]),Yd={test:e=>e==="auto",parse:e=>e},Ps=e=>t=>t.test(e),As=[Tt,H,Ne,Ge,_u,Lu,Yd],Ds=e=>As.find(Ps(e));function Xd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ro(e):!0}const Gd=new Set(["brightness","contrast","saturate","opacity"]);function Zd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(xi)||[];if(!i)return e;const r=n.replace(i,"");let o=Gd.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const Jd=/\b([a-z-]*)\(.*?\)/gu,Ui={...Ze,getAnimatableNone:e=>{const t=e.match(Jd);return t?t.map(Zd).join(" "):e}},Rs={...Tt,transform:Math.round},qi={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H,...{rotate:Ge,rotateX:Ge,rotateY:Ge,rotateZ:Ge,scale:Sn,scaleX:Sn,scaleY:Sn,scaleZ:Sn,skew:Ge,skewX:Ge,skewY:Ge,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Kt,originX:Zo,originY:Zo,originZ:H},zIndex:Rs,fillOpacity:Kt,strokeOpacity:Kt,numOctaves:Rs},Qd={...qi,color:pe,backgroundColor:pe,outlineColor:pe,fill:pe,stroke:pe,borderColor:pe,borderTopColor:pe,borderRightColor:pe,borderBottomColor:pe,borderLeftColor:pe,filter:Ui,WebkitFilter:Ui},Ms=e=>Qd[e];function Os(e,t){let n=Ms(e);return n!==Ui&&(n=Ze),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ep=new Set(["auto","none","0"]);function tp(e,t,n){let i=0,r;for(;i<e.length&&!r;){const o=e[i];typeof o=="string"&&!ep.has(o)&&Xt(o).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=Os(n,r)}class np extends zi{constructor(t,n,i,r,o){super(t,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),vi(u))){const c=Es(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Cs.has(i)||t.length!==2)return;const[r,o]=t,s=Ds(r),a=Ds(o);if(s!==a)if(vs(s)&&vs(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else ot[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||Xd(t[r]))&&i.push(r);i.length&&tp(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=ot[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Is(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const Ns=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fs(e){return Do(e)&&"offsetHeight"in e}const Vs=30,ip=e=>!isNaN(parseFloat(e));class rp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const r=we.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.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=ip(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pi(!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 di);const i=this.events[t].add(n);return t==="change"?()=>{i(),se.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Vs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vs);return Mo(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 Ct(e,t){return new rp(e,t)}const{schedule:Ki}=Yo(queueMicrotask,!1),Me={x:!1,y:!1};function Ls(){return Me.x||Me.y}function op(e){return e==="x"||e==="y"?Me[e]?null:(Me[e]=!0,()=>{Me[e]=!1}):Me.x||Me.y?null:(Me.x=Me.y=!0,()=>{Me.x=Me.y=!1})}function _s(e,t){const n=Is(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function zs(e){return!(e.pointerType==="touch"||Ls())}function sp(e,t,n={}){const[i,r,o]=_s(e,n),s=a=>{if(!zs(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{zs(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}const Bs=(e,t)=>t?e===t?!0:Bs(e,t.parentElement):!1,Hi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ap=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lp(e){return ap.has(e.tagName)||e.tabIndex!==-1}const En=new WeakSet;function $s(e){return t=>{t.key==="Enter"&&e(t)}}function Yi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cp=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=$s(()=>{if(En.has(n))return;Yi(n,"down");const r=$s(()=>{Yi(n,"up")}),o=()=>Yi(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Ws(e){return Hi(e)&&!Ls()}function up(e,t,n={}){const[i,r,o]=_s(e,n),s=a=>{const l=a.currentTarget;if(!Ws(a))return;En.add(l);const u=t(l,a),c=(m,x)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),En.has(l)&&En.delete(l),Ws(m)&&typeof u=="function"&&u(m,{success:x})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||Bs(l,m.target))},f=m=>{c(m,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),Fs(a)&&(a.addEventListener("focus",u=>cp(u,r)),!lp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Xi(e){return Do(e)&&"ownerSVGElement"in e}function Us(e){return Xi(e)&&e.tagName==="svg"}const he=e=>!!(e&&e.getVelocity),dp=[...As,pe,Ze],pp=e=>dp.find(Ps(e)),Gi=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class fp extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=n.offsetParent,r=Fs(i)&&i.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function mp({children:e,isPresent:t,anchorX:n,root:i}){const r=S.useId(),o=S.useRef(null),s=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=S.useContext(Gi);return S.useInsertionEffect(()=>{const{width:l,height:u,top:c,left:d,right:f}=s.current;if(t||!o.current||!l||!u)return;const m=n==="left"?`left: ${d}`:`right: ${f}`;o.current.dataset.motionPopId=r;const x=document.createElement("style");a&&(x.nonce=a);const y=i??document.head;return y.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
23
23
|
[data-motion-pop-id="${r}"] {
|
|
24
24
|
position: absolute !important;
|
|
25
25
|
width: ${l}px !important;
|
|
@@ -27,157 +27,157 @@ React keys must be passed directly to JSX without using spread:
|
|
|
27
27
|
${m}px !important;
|
|
28
28
|
top: ${c}px !important;
|
|
29
29
|
}
|
|
30
|
-
`),()=>{x.contains(v)&&x.removeChild(v)}},[t]),p.jsx(lp,{isPresent:t,childRef:o,sizeRef:s,children:C.cloneElement(e,{ref:o})})}const up=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const u=oi(dp),c=S.useId();let d=!0,f=S.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:r,onExitComplete:m=>{u.set(m,!0);for(const v of u.values())if(!v)return;i&&i()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,i]);return o&&d&&(f={...f}),S.useMemo(()=>{u.forEach((m,v)=>u.set(v,!1))},[n]),C.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),s==="popLayout"&&(e=p.jsx(cp,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(xn.Provider,{value:f,children:e})};function dp(){return new Map}function Ws(e=!0){const t=S.useContext(xn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,o=S.useId();S.useEffect(()=>{if(e)return r(o)},[e]);const s=S.useCallback(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,s]:[!0]}const jn=e=>e.key||"";function Us(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Cn=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=Ws(s),d=S.useMemo(()=>Us(e),[e]),f=s&&!u?[]:d.map(jn),m=S.useRef(!0),v=S.useRef(d),x=oi(()=>new Map),[w,h]=S.useState(d),[T,b]=S.useState(d);jo(()=>{m.current=!1,v.current=d;for(let P=0;P<T.length;P++){const j=jn(T[P]);f.includes(j)?x.delete(j):x.get(j)!==!0&&x.set(j,!1)}},[T,f.length,f.join("-")]);const k=[];if(d!==w){let P=[...d];for(let j=0;j<T.length;j++){const A=T[j],M=jn(A);f.includes(M)||(P.splice(j,0,A),k.push(A))}return o==="wait"&&k.length&&(P=k),b(Us(P)),h(d),null}process.env.NODE_ENV!=="production"&&o==="wait"&&T.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:y}=S.useContext(ri);return p.jsx(p.Fragment,{children:T.map(P=>{const j=jn(P),A=s&&!u?!1:d===T||f.includes(j),M=()=>{if(x.has(j))x.set(j,!0);else return;let U=!0;x.forEach(F=>{F||(U=!1)}),U&&(y?.(),b(v.current),s&&c?.(),i&&i())};return p.jsx(up,{isPresent:A,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:l,onExitComplete:A?void 0:M,anchorX:a,children:P},j)})})},qs=S.createContext({strict:!1}),Ks={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"]},kt={};for(const e in Ks)kt[e]={isEnabled:t=>Ks[e].some(n=>!!t[n])};function pp(e){for(const t in e)kt[t]={...kt[t],...e[t]}}const fp=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 Pn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fp.has(e)}let Ys=e=>!Pn(e);function mp(e){typeof e=="function"&&(Ys=t=>t.startsWith("on")?!Pn(t):e(t))}try{mp(require("@emotion/is-prop-valid").default)}catch{}function hp(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Ys(r)||n===!0&&Pn(r)||!t&&!Pn(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}const An=S.createContext({});function Dn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zt(e){return typeof e=="string"||Array.isArray(e)}const Xi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zi=["initial",...Xi];function Rn(e){return Dn(e.animate)||Zi.some(t=>Zt(e[t]))}function Hs(e){return!!(Rn(e)||e.variants)}function gp(e,t){if(Rn(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Zt(n)?n:void 0,animate:Zt(i)?i:void 0}}return e.inherit!==!1?t:{}}function vp(e){const{initial:t,animate:n}=gp(e,S.useContext(An));return S.useMemo(()=>({initial:t,animate:n}),[Gs(t),Gs(n)])}function Gs(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function xp(e){for(const t in e)Jt[t]=e[t],hi(t)&&(Jt[t].isCSSVariable=!0)}function Xs(e,{layout:t,layoutId:n}){return Tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const yp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bp=wt.length;function wp(e,t,n){let i="",r=!0;for(let o=0;o<bp;o++){const s=wt[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Ms(a,Ui[s]);if(!l){r=!1;const c=yp[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function Ji(e,t,n){const{style:i,vars:r,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Tt.has(l)){s=!0;continue}else if(hi(l)){r[l]=u;continue}else{const c=Ms(u,Ui[l]);l.startsWith("origin")?(a=!0,o[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=wp(t,e.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;i.transformOrigin=`${l} ${u} ${c}`}}const Qi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zs(e,t,n){for(const i in t)!he(t[i])&&!Xs(i,n)&&(e[i]=t[i])}function Tp({transformTemplate:e},t){return S.useMemo(()=>{const n=Qi();return Ji(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Sp(e,t){const n=e.style||{},i={};return Zs(i,n,e),Object.assign(i,Tp(e,t)),i}function kp(e,t){const n={},i=Sp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const Ep={offset:"stroke-dashoffset",array:"stroke-dasharray"},jp={offset:"strokeDashoffset",array:"strokeDasharray"};function Cp(e,t,n=1,i=0,r=!0){e.pathLength=1;const o=r?Ep:jp;e[o.offset]=Y.transform(-i);const s=Y.transform(t),a=Y.transform(n);e[o.array]=`${s} ${a}`}function Js(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Ji(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),r!==void 0&&Cp(d,r,o,s,!1)}const Qs=()=>({...Qi(),attrs:{}}),ea=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Pp(e,t,n,i){const r=S.useMemo(()=>{const o=Qs();return Js(o,t,ea(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Zs(o,e.style,e),r.style={...o,...r.style}}return r}const Ap=["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 er(e){return typeof e!="string"||e.includes("-")?!1:!!(Ap.indexOf(e)>-1||/[A-Z]/u.test(e))}function Dp(e,t,n,{latestValues:i},r,o=!1){const a=(er(e)?Pp:kp)(t,i,r,e),l=hp(t,typeof e=="string",o),u=e!==S.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=S.useMemo(()=>he(c)?c.get():c,[c]);return S.createElement(e,{...u,children:d})}function ta(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function tr(e,t,n,i){if(typeof t=="function"){const[r,o]=ta(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=ta(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function On(e){return he(e)?e.get():e}function Rp({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:Op(n,i,r,e),renderState:t()}}function Op(e,t,n,i){const r={},o=i(e,{});for(const f in o)r[f]=On(o[f]);let{initial:s,animate:a}=e;const l=Rn(e),u=Hs(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!Dn(d)){const f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){const v=tr(e,f[m]);if(v){const{transitionEnd:x,transition:w,...h}=v;for(const T in h){let b=h[T];if(Array.isArray(b)){const k=c?b.length-1:0;b=b[k]}b!==null&&(r[T]=b)}for(const T in x)r[T]=x[T]}}}return r}const na=e=>(t,n)=>{const i=S.useContext(An),r=S.useContext(xn),o=()=>Rp(e,t,i,r);return n?o():oi(o)};function nr(e,t,n){const{style:i}=e,r={};for(const o in i)(he(i[o])||t.style&&he(t.style[o])||Xs(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}const Mp=na({scrapeMotionValuesFromProps:nr,createRenderState:Qi});function ia(e,t,n){const i=nr(e,t,n);for(const r in e)if(he(e[r])||he(t[r])){const o=wt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}const Ip=na({scrapeMotionValuesFromProps:ia,createRenderState:Qs}),Np=Symbol.for("motionComponentSymbol");function Et(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fp(e,t,n){return S.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Et(n)&&(n.current=i))},[t])}const ir=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ra="data-"+ir("framerAppearId"),oa=S.createContext({});function Vp(e,t,n,i,r){const{visualElement:o}=S.useContext(An),s=S.useContext(qs),a=S.useContext(xn),l=S.useContext(Gi).reducedMotion,u=S.useRef(null);i=i||s.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=S.useContext(oa);c&&!c.projection&&r&&(c.type==="html"||c.type==="svg")&&Lp(u.current,n,r,d);const f=S.useRef(!1);S.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const m=n[ra],v=S.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return jo(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),S.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),v.current=!1),c.enteringChildren=void 0)}),c}function Lp(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sa(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&Et(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}function sa(e){if(e)return e.options.allowProjection!==!1?e.projection:sa(e.parent)}function rr(e,{forwardMotionProps:t=!1}={},n,i){n&&pp(n);const r=er(e)?Ip:Mp;function o(a,l){let u;const c={...S.useContext(Gi),...a,layoutId:_p(a)},{isStatic:d}=c,f=vp(a),m=r(a,d);if(!d&&si){zp(c,n);const v=Bp(c);u=v.MeasureLayout,f.visualElement=Vp(e,m,c,i,v.ProjectionNode)}return p.jsxs(An.Provider,{value:f,children:[u&&f.visualElement?p.jsx(u,{visualElement:f.visualElement,...c}):null,Dp(e,a,Fp(m,f.visualElement,l),m,d,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=S.forwardRef(o);return s[Np]=e,s}function _p({layoutId:e}){const t=S.useContext(ri).id;return t&&e!==void 0?t+"-"+e:e}function zp(e,t){const n=S.useContext(qs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?gt(!1,i,"lazy-strict-mode"):ke(!1,i,"lazy-strict-mode")}}function Bp(e){const{drag:t,layout:n}=kt;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function $p(e,t){if(typeof Proxy>"u")return rr;const n=new Map,i=(o,s)=>rr(o,s,e,t),r=(o,s)=>(process.env.NODE_ENV!=="production"&&di(!1,"motion() is deprecated. Use motion.create() instead."),i(o,s));return new Proxy(r,{get:(o,s)=>s==="create"?i:(n.has(s)||n.set(s,rr(s,void 0,e,t)),n.get(s))})}function aa({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Wp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Up(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function or(e){return e===void 0||e===1}function sr({scale:e,scaleX:t,scaleY:n}){return!or(e)||!or(t)||!or(n)}function ot(e){return sr(e)||la(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function la(e){return ca(e.x)||ca(e.y)}function ca(e){return e&&e!=="0%"}function Mn(e,t,n){const i=e-n,r=t*i;return n+r}function ua(e,t,n,i,r){return r!==void 0&&(e=Mn(e,r,i)),Mn(e,n,i)+t}function ar(e,t=0,n=1,i,r){e.min=ua(e.min,t,n,i,r),e.max=ua(e.max,t,n,i,r)}function da(e,{x:t,y:n}){ar(e.x,t.translate,t.scale,t.originPoint),ar(e.y,n.translate,n.scale,n.originPoint)}const pa=.999999999999,fa=1.0000000000001;function qp(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ct(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,da(e,s)),i&&ot(o.latestValues)&&Ct(e,o.latestValues))}t.x<fa&&t.x>pa&&(t.x=1),t.y<fa&&t.y>pa&&(t.y=1)}function jt(e,t){e.min=e.min+t,e.max=e.max+t}function ma(e,t,n,i,r=.5){const o=ae(e.min,e.max,r);ar(e,t,n,o,i)}function Ct(e,t){ma(e.x,t.x,t.scaleX,t.scale,t.originX),ma(e.y,t.y,t.scaleY,t.scale,t.originY)}function ha(e,t){return aa(Up(e.getBoundingClientRect(),t))}function Kp(e,t,n){const i=ha(e,n),{scroll:r}=t;return r&&(jt(i.x,r.offset.x),jt(i.y,r.offset.y)),i}const ga=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pt=()=>({x:ga(),y:ga()}),va=()=>({min:0,max:0}),ue=()=>({x:va(),y:va()}),lr={current:null},xa={current:!1};function Yp(){if(xa.current=!0,!!si)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lr.current=e.matches;e.addEventListener("change",t),t()}else lr.current=!1}const Qt=new WeakMap;function Hp(e,t,n){for(const i in t){const r=t[i],o=n[i];if(he(r))e.addValue(i,r);else if(he(o))e.addValue(i,St(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,St(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const ya=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ba{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_i,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 f=we.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,se.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Rn(n),this.isVariantNode=Hs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];l[f]!==void 0&&he(m)&&m.set(l[f])}}mount(t){this.current=t,Qt.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,i)=>this.bindToMotionValue(i,n)),xa.current||Yp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lr.current,process.env.NODE_ENV!=="production"&&di(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(),Ke(this.notifyUpdate),Ke(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 i=Tt.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&se.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o&&o(),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 kt){const n=kt[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}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 i=0;i<ya.length;i++){const r=ya[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Hp(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 i=this.values.get(t);n!==i&&(i&&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 i=this.values.get(t);return i===void 0&&n!==void 0&&(i=St(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Co(i)||Ao(i))?i=parseFloat(i):!ap(i)&&He.test(n)&&(i=Rs(t,n)),this.setBaseTarget(t,he(i)?i.get():i)),he(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=tr(this.props,n,this.presenceContext?.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!he(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ui),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qi.render(this.render)}}class wa extends ba{constructor(){super(...arguments),this.KeyframeResolver=Zd}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:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;he(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ta(e,{style:t,vars:n},i,r){const o=e.style;let s;for(s in t)o[s]=t[s];r?.applyProjectionStyles(o,i);for(s in n)o.setProperty(s,n[s])}function Gp(e){return window.getComputedStyle(e)}class Sa extends wa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ta}readValueFromInstance(t,n){if(Tt.has(n))return this.projection?.isProjecting?Ii(n):md(t,n);{const i=Gp(t),r=(hi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ha(t,n)}build(t,n,i){Ji(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return nr(t,n,i)}}const ka=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 Xp(e,t,n,i){Ta(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(ka.has(r)?r:ir(r),t.attrs[r])}class Ea extends wa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Tt.has(n)){const i=Ds(n);return i&&i.default||0}return n=ka.has(n)?n:ir(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return ia(t,n,i)}build(t,n,i){Js(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,r){Xp(t,n,i,r)}mount(t){this.isSVGTag=ea(t.tagName),super.mount(t)}}const Zp=(e,t)=>er(e)?new Ea(t):new Sa(t,{allowProjection:e!==S.Fragment});function At(e,t,n){const i=e.getProps();return tr(i,t,n!==void 0?n:i.custom,e)}const cr=e=>Array.isArray(e);function Jp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,St(n))}function Qp(e){return cr(e)?e[e.length-1]||0:e}function ef(e,t){const n=At(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=Qp(o[s]);Jp(e,s,a)}}function tf(e){return!!(he(e)&&e.add)}function ur(e,t){const n=e.getValue("willChange");if(tf(n))return n.add(t);if(!n&&$e.WillChange){const i=new $e.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function ja(e){return e.props[ra]}const nf=e=>e!==null;function rf(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(nf),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[o]}const of={type:"spring",stiffness:500,damping:25,restSpeed:10},sf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),af={type:"keyframes",duration:.8},lf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cf=(e,{keyframes:t})=>t.length>2?af:Tt.has(e)?e.startsWith("scale")?sf(t[1]):of:lf;function uf({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const dr=(e,t,n,i={},r,o)=>s=>{const a=$i(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-je(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};uf(a)||Object.assign(c,cf(e,c)),c.duration&&(c.duration=je(c.duration)),c.repeatDelay&&(c.repeatDelay=je(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Bi(c),c.delay===0&&(d=!0)),($e.instantAnimations||$e.skipAnimations)&&(d=!0,Bi(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const f=rf(c.keyframes,a);if(f!==void 0){se.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new Ri(c):new Vd(c)};function df({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function pr(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;i&&(o=i);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&df(u,c))continue;const m={delay:n,...$i(o||{},c)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const h=ja(e);if(h){const T=window.MotionHandoffAnimation(h,c,se);T!==null&&(m.startTime=T,x=!0)}}ur(e,c),d.start(dr(c,d,f,e.shouldReduceMotion&&Es.has(c)?{type:!1}:m,e,x));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{se.update(()=>{s&&ef(e,s)})}),l}function Ca(e,t,n,i=0,r=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*i;return typeof n=="function"?n(o,s):r===1?o*i:a-o*i}function fr(e,t,n={}){const i=At(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(pr(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return pf(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function pf(e,t,n=0,i=0,r=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(fr(l,t,{...s,delay:n+(typeof i=="function"?0:i)+Ca(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function ff(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>fr(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=fr(e,t,n);else{const r=typeof t=="function"?At(e,t,n.custom):t;i=Promise.all(pr(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function Pa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const mf=Zi.length;function Aa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Aa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mf;n++){const i=Zi[n],r=e.props[i];(Zt(r)||r===!1)&&(t[i]=r)}return t}const hf=[...Xi].reverse(),gf=Xi.length;function vf(e){return t=>Promise.all(t.map(({animation:n,options:i})=>ff(e,n,i)))}function xf(e){let t=vf(e),n=Da(),i=!0;const r=l=>(u,c)=>{const d=At(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:m,...v}=d;u={...u,...v,...m}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Aa(e.parent)||{},d=[],f=new Set;let m={},v=1/0;for(let w=0;w<gf;w++){const h=hf[w],T=n[h],b=u[h]!==void 0?u[h]:c[h],k=Zt(b),y=h===l?T.isActive:null;y===!1&&(v=w);let P=b===c[h]&&b!==u[h]&&k;if(P&&i&&e.manuallyAnimateOnMount&&(P=!1),T.protectedKeys={...m},!T.isActive&&y===null||!b&&!T.prevProp||Dn(b)||typeof b=="boolean")continue;const j=yf(T.prevProp,b);let A=j||h===l&&T.isActive&&!P&&k||w>v&&k,M=!1;const U=Array.isArray(b)?b:[b];let F=U.reduce(r(h),{});y===!1&&(F={});const{prevResolvedValues:Q={}}=T,G={...Q,...F},N=X=>{A=!0,f.has(X)&&(M=!0,f.delete(X)),T.needsAnimating[X]=!0;const q=e.getValue(X);q&&(q.liveStyle=!1)};for(const X in G){const q=F[X],Z=Q[X];if(m.hasOwnProperty(X))continue;let g=!1;cr(q)&&cr(Z)?g=!Pa(q,Z):g=q!==Z,g?q!=null?N(X):f.add(X):q!==void 0&&f.has(X)?N(X):T.protectedKeys[X]=!0}T.prevProp=b,T.prevResolvedValues=F,T.isActive&&(m={...m,...F}),i&&e.blockInitialAnimation&&(A=!1);const ee=P&&j;A&&(!ee||M)&&d.push(...U.map(X=>{const q={type:h};if(typeof X=="string"&&i&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,g=At(Z,X);if(Z.enteringChildren&&g){const{delayChildren:E}=g.transition||{};q.delay=Ca(Z.enteringChildren,e,E)}}return{animation:X,options:q}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const h=At(e,Array.isArray(u.initial)?u.initial[0]:u.initial);h&&h.transition&&(w.transition=h.transition)}f.forEach(h=>{const T=e.getBaseTarget(h),b=e.getValue(h);b&&(b.liveStyle=!0),w[h]=T??null}),d.push({animation:w})}let x=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),i=!1,x?t(d):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Da(),i=!0}}}function yf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pa(t,e):!1}function st(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Da(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}class Ge{constructor(t){this.isMounted=!1,this.node=t}update(){}}class bf extends Ge{constructor(t){super(t),t.animationState||(t.animationState=xf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Dn(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 wf=0;class Tf extends Ge{constructor(){super(...arguments),this.id=wf++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 Sf={animation:{Feature:bf},exit:{Feature:Tf}};function en(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tn(e){return{point:{x:e.pageX,y:e.pageY}}}const kf=e=>t=>Ki(t)&&e(t,tn(t));function nn(e,t,n,i){return en(e,t,kf(n),i)}const Ra=1e-4,Ef=1-Ra,jf=1+Ra,Oa=.01,Cf=0-Oa,Pf=0+Oa;function be(e){return e.max-e.min}function Af(e,t,n){return Math.abs(e-t)<=n}function Ma(e,t,n,i=.5){e.origin=i,e.originPoint=ae(t.min,t.max,e.origin),e.scale=be(n)/be(t),e.translate=ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ef&&e.scale<=jf||isNaN(e.scale))&&(e.scale=1),(e.translate>=Cf&&e.translate<=Pf||isNaN(e.translate))&&(e.translate=0)}function rn(e,t,n,i){Ma(e.x,t.x,n.x,i?i.originX:void 0),Ma(e.y,t.y,n.y,i?i.originY:void 0)}function Ia(e,t,n){e.min=n.min+t.min,e.max=e.min+be(t)}function Df(e,t,n){Ia(e.x,t.x,n.x),Ia(e.y,t.y,n.y)}function Na(e,t,n){e.min=t.min-n.min,e.max=e.min+be(t)}function on(e,t,n){Na(e.x,t.x,n.x),Na(e.y,t.y,n.y)}function Ce(e){return[e("x"),e("y")]}const Fa=({current:e})=>e?e.ownerDocument.defaultView:null,Va=(e,t)=>Math.abs(e-t);function Rf(e,t){const n=Va(e.x,t.x),i=Va(e.y,t.y);return Math.sqrt(n**2+i**2)}class La{constructor(t,n,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=hr(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=Rf(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:x}=f,{timestamp:w}=ge;this.history.push({...x,timestamp:w});const{onStart:h,onMove:T}=this.handlers;m||(h&&h(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=mr(m,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=hr(f.type==="pointercancel"?this.lastMoveEventInfo:mr(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,h),x&&x(f,h)},!Ki(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=tn(t),l=mr(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ge;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,hr(l,this.history)),this.removeListeners=Wt(nn(this.contextWindow,"pointermove",this.handlePointerMove),nn(this.contextWindow,"pointerup",this.handlePointerUp),nn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function mr(e,t){return t?{point:t(e.point)}:e}function _a(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hr({point:e},t){return{point:e,delta:_a(e,za(t)),offset:_a(e,Of(t)),velocity:Mf(t,.1)}}function Of(e){return e[0]}function za(e){return e[e.length-1]}function Mf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=za(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>je(t)));)n--;if(!i)return{x:0,y:0};const o=Ie(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function If(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ae(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ae(n,e,i.max):Math.min(e,n)),e}function Ba(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 Nf(e,{top:t,left:n,bottom:i,right:r}){return{x:Ba(e.x,n,r),y:Ba(e.y,t,i)}}function $a(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function Ff(e,t){return{x:$a(e.x,t.x),y:$a(e.y,t.y)}}function Vf(e,t){let n=.5;const i=be(e),r=be(t);return r>i?n=vt(t.min,t.max-i,e.min):i>r&&(n=vt(e.min,e.max-r,t.min)),Be(0,1,n)}function Lf(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 gr=.35;function _f(e=gr){return e===!1?e=0:e===!0&&(e=gr),{x:Wa(e,"left","right"),y:Wa(e,"top","bottom")}}function Wa(e,t,n){return{min:Ua(e,t),max:Ua(e,n)}}function Ua(e,t){return typeof e=="number"?e:e[t]||0}const zf=new WeakMap;class Bf{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=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tn(d).point)},s=(d,f)=>{const{drag:m,dragPropagation:v,onDragStart:x}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ep(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ce(h=>{let T=this.getAxisMotionValue(h).get()||0;if(Ne.test(T)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[h];k&&(T=be(k)*(parseFloat(T)/100))}}this.originPoint[h]=T}),x&&se.postRender(()=>x(d,f)),ur(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:x,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:h}=f;if(v&&this.currentDirection===null){this.currentDirection=$f(h),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,h),this.updateAxis("y",f.point,h),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ce(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new La(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:Fa(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,r=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&se.postRender(()=>a(i,r))}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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!In(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=If(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Et(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Nf(i.layoutBox,t):this.constraints=!1,this.elastic=_f(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ce(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lf(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Et(t))return!1;const i=t.current;ke(i!==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:r}=this.visualElement;if(!r||!r.layout)return!1;const o=Kp(i,r.root,this.visualElement.getTransformPagePoint());let s=Ff(r.layout.layoutBox,o);if(n){const a=n(Wp(s));this.hasMutatedConstraints=!!a,a&&(s=aa(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ce(c=>{if(!In(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,v={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return ur(this.visualElement,t),i.start(dr(t,i,0,n,this.visualElement,!1))}stopAnimation(){Ce(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ce(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Ce(n=>{const{drag:i}=this.getProps();if(!In(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(t[n]-ae(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Et(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ce(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=Vf({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ce(s=>{if(!In(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ae(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;zf.set(this.visualElement,this);const t=this.visualElement.current,n=nn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Et(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),se.read(i);const s=en(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ce(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=gr,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function In(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $f(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Wf extends Ge{constructor(t){super(t),this.removeGroupControls=Ee,this.removeListeners=Ee,this.controls=new Bf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ee}unmount(){this.removeGroupControls(),this.removeListeners()}}const qa=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class Uf extends Ge{constructor(){super(...arguments),this.removePointerDownListener=Ee}onPointerDown(t){this.session=new La(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fa(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:qa(t),onStart:qa(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&se.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=nn(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 Nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ka(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const n=Ka(e,t.target.x),i=Ka(e,t.target.y);return`${n}% ${i}%`}},qf={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=He.parse(e);if(r.length>5)return i;const o=He.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const u=ae(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};let vr=!1;class Kf extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;xp(Yf),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),vr&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,{projection:s}=i;return s&&(s.isPresent=o,vr=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;vr=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ya(e){const[t,n]=Ws(),i=S.useContext(ri);return p.jsx(Kf,{...e,layoutGroup:i,switchLayoutGroup:S.useContext(oa),isPresent:t,safeToRemove:n})}const Yf={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:qf};function Ha(e,t,n){const i=he(e)?e:St(e);return i.start(dr("",i,t,n)),i.animation}const Hf=(e,t)=>e.depth-t.depth;class Gf{constructor(){this.children=[],this.isDirty=!1}add(t){ai(this.children,t),this.isDirty=!0}remove(t){yn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hf),this.isDirty=!1,this.children.forEach(t)}}function Xf(e,t){const n=we.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Ke(i),e(o-t))};return se.setup(i,!0),()=>Ke(i)}const Ga=["TopLeft","TopRight","BottomLeft","BottomRight"],Zf=Ga.length,Xa=e=>typeof e=="string"?parseFloat(e):e,Za=e=>typeof e=="number"||Y.test(e);function Jf(e,t,n,i,r,o){r?(e.opacity=ae(0,n.opacity??1,Qf(i)),e.opacityExit=ae(t.opacity??1,0,em(i))):o&&(e.opacity=ae(t.opacity??1,n.opacity??1,i));for(let s=0;s<Zf;s++){const a=`border${Ga[s]}Radius`;let l=Ja(t,a),u=Ja(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Za(l)===Za(u)?(e[a]=Math.max(ae(Xa(l),Xa(u),i),0),(Ne.test(u)||Ne.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ae(t.rotate||0,n.rotate||0,i))}function Ja(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Qf=Qa(0,.5,Lo),em=Qa(.5,.95,Ee);function Qa(e,t,n){return i=>i<e?0:i>t?1:n(vt(e,t,i))}function el(e,t){e.min=t.min,e.max=t.max}function Pe(e,t){el(e.x,t.x),el(e.y,t.y)}function tl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nl(e,t,n,i,r){return e-=t,e=Mn(e,1/n,i),r!==void 0&&(e=Mn(e,1/r,i)),e}function tm(e,t=0,n=1,i=.5,r,o=e,s=e){if(Ne.test(t)&&(t=parseFloat(t),t=ae(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ae(o.min,o.max,i);e===o&&(a-=t),e.min=nl(e.min,t,n,a,r),e.max=nl(e.max,t,n,a,r)}function il(e,t,[n,i,r],o,s){tm(e,t[n],t[i],t[r],t.scale,o,s)}const nm=["x","scaleX","originX"],im=["y","scaleY","originY"];function rl(e,t,n,i){il(e.x,t,nm,n?n.x:void 0,i?i.x:void 0),il(e.y,t,im,n?n.y:void 0,i?i.y:void 0)}function ol(e){return e.translate===0&&e.scale===1}function sl(e){return ol(e.x)&&ol(e.y)}function al(e,t){return e.min===t.min&&e.max===t.max}function rm(e,t){return al(e.x,t.x)&&al(e.y,t.y)}function ll(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cl(e,t){return ll(e.x,t.x)&&ll(e.y,t.y)}function ul(e){return be(e.x)/be(e.y)}function dl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class om{constructor(){this.members=[]}add(t){ai(this.members,t),t.scheduleRender()}remove(t){if(yn(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(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sm(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:m,skewY:v}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),m&&(i+=`skewX(${m}deg) `),v&&(i+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const xr=["","X","Y","Z"],am=1e3;let lm=0;function yr(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function pl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ja(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",se,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&pl(i)}function fl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t?.()){this.id=lm++,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(dm),this.nodes.forEach(hm),this.nodes.forEach(gm),this.nodes.forEach(pm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gf)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ui),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Hi(s)&&!$s(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;se.read(()=>{d=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=Xf(f,250),Nn.hasAnimatedSinceResize&&(Nn.hasAnimatedSinceResize=!1,this.nodes.forEach(gl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||wm,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=u.getProps(),h=!this.targetLayout||!cl(this.targetLayout,m),T=!d&&f;if(this.options.layoutRoot||this.resumeFrom||T||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...$i(v,"layout"),onPlay:x,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(c,T)}else d||gl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(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(vm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ml);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(cm),this.nodes.forEach(um)):this.nodes.forEach(hl),this.clearAllSnapshots();const a=we.now();ge.delta=Be(0,1e3/60,a-ge.timestamp),ge.timestamp=a,ge.isProcessing=!0,mi.update.process(ge),mi.preRender.process(ge),mi.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fm),this.sharedNodes.forEach(xm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!be(this.snapshot.measuredBox.x)&&!be(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!sl(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||ot(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Tm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Sm))){const{scroll:u}=this.root;u&&(jt(a.x,u.offset.x),jt(a.y,u.offset.y))}return a}removeElementScroll(s){const a=ue();if(Pe(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&Pe(a,s),jt(a.x,c.offset.x),jt(a.y,c.offset.y))}return a}applyTransform(s,a=!1){const l=ue();Pe(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ct(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ot(c.latestValues)&&Ct(l,c.latestValues)}return ot(this.latestValues)&&Ct(l,this.latestValues),l}removeTransform(s){const a=ue();Pe(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ot(u.latestValues))continue;sr(u.latestValues)&&u.updateSnapshot();const c=ue(),d=u.measurePageBox();Pe(c,d),rl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ot(this.latestValues)&&rl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ge.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),on(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Df(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pe(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):Pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),on(this.relativeTargetOrigin,this.target,f.target),Pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||sr(this.parent.latestValues)||la(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ge.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=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||c))return;Pe(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;qp(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tl(this.prevProjectionDelta.x,this.projectionDelta.x),tl(this.prevProjectionDelta.y,this.projectionDelta.y)),rn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!dl(this.projectionDelta.x,this.prevProjectionDelta.x)||!dl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pt(),this.projectionDelta=Pt(),this.projectionDeltaWithTransform=Pt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ue(),m=l?l.source:void 0,v=this.layout?this.layout.source:void 0,x=m!==v,w=this.getStack(),h=!w||w.members.length<=1,T=!!(x&&!h&&this.options.crossfade===!0&&!this.path.some(bm));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const y=k/1e3;vl(d.x,s.x,y),vl(d.y,s.y,y),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(on(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ym(this.relativeTarget,this.relativeTargetOrigin,f,y),b&&rm(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ue()),Pe(b,this.relativeTarget)),x&&(this.animationValues=c,Jf(c,u,this.latestValues,y,T,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{Nn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=St(0)),this.currentAnimation=Ha(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(am),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Tl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();const d=be(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=be(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Pe(a,l),Ct(a,c),rn(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new om),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&yr("z",s,u,this.animationValues);for(let c=0;c<xr.length;c++)yr(`rotate${xr[c]}`,s,u,this.animationValues),yr(`skew${xr[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=On(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=On(a?.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=sm(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;const{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const v in Jt){if(c[v]===void 0)continue;const{correct:x,applyTo:w,isCSSVariable:h}=Jt[v],T=d==="none"?c[v]:x(c[v],u);if(w){const b=w.length;for(let k=0;k<b;k++)s[w[k]]=T}else h?this.options.visualElement.renderState.vars[v]=T:s[v]=T}this.options.layoutId&&(s.pointerEvents=u===this?On(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(ml),this.root.sharedNodes.clear()}}}function cm(e){e.updateLayout()}function um(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?Ce(c=>{const d=o?t.measuredBox[c]:t.layoutBox[c],f=be(d);d.min=n[c].min,d.max=d.min+f}):Tl(r,t.layoutBox,n)&&Ce(c=>{const d=o?t.measuredBox[c]:t.layoutBox[c],f=be(n[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});const s=Pt();rn(s,n,t.layoutBox);const a=Pt();o?rn(a,e.applyTransform(i,!0),t.measuredBox):rn(a,n,t.layoutBox);const l=!sl(s);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:f}=c;if(d&&f){const m=ue();on(m,t.layoutBox,d.layoutBox);const v=ue();on(v,n,f.layoutBox),cl(m,v)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function dm(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 pm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fm(e){e.clearSnapshot()}function ml(e){e.clearMeasurements()}function hl(e){e.isLayoutDirty=!1}function mm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hm(e){e.resolveTargetDelta()}function gm(e){e.calcProjection()}function vm(e){e.resetSkewAndRotation()}function xm(e){e.removeLeadSnapshot()}function vl(e,t,n){e.translate=ae(t.translate,0,n),e.scale=ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xl(e,t,n,i){e.min=ae(t.min,n.min,i),e.max=ae(t.max,n.max,i)}function ym(e,t,n,i){xl(e.x,t.x,n.x,i),xl(e.y,t.y,n.y,i)}function bm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wm={duration:.45,ease:[.4,0,.1,1]},yl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bl=yl("applewebkit/")&&!yl("chrome/")?Math.round:Ee;function wl(e){e.min=bl(e.min),e.max=bl(e.max)}function Tm(e){wl(e.x),wl(e.y)}function Tl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Af(ul(t),ul(n),.2)}function Sm(e){return e!==e.root&&e.scroll?.wasRoot}const km=fl({attachResizeListener:(e,t)=>en(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),br={current:void 0},Sl=fl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!br.current){const e=new km({});e.mount(window),e.setOptions({layoutScroll:!0}),br.current=e}return br.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Uf},drag:{Feature:Wf,ProjectionNode:Sl,MeasureLayout:Ya}};function kl(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&se.postRender(()=>o(t,tn(t)))}class jm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=tp(t,(n,i)=>(kl(this.node,i,"Start"),r=>kl(this.node,r,"End"))))}unmount(){}}class Cm extends Ge{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=Wt(en(this.node.current,"focus",()=>this.onFocus()),en(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function El(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&se.postRender(()=>o(t,tn(t)))}class Pm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=op(t,(n,i)=>(El(this.node,i,"Start"),(r,{success:o})=>El(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wr=new WeakMap,Tr=new WeakMap,Am=e=>{const t=wr.get(e.target);t&&t(e)},Dm=e=>{e.forEach(Am)};function Rm({root:e,...t}){const n=e||document;Tr.has(n)||Tr.set(n,{});const i=Tr.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Dm,{root:e,...t})),i[r]}function Om(e,t,n){const i=Rm(t);return wr.set(e,n),i.observe(e),()=>{wr.delete(e),i.unobserve(e)}}const Mm={some:0,all:1};class Im extends Ge{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:Mm[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Om(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Nm(t,n))&&this.startObserver()}unmount(){}}function Nm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fm={...Sf,...{inView:{Feature:Im},tap:{Feature:Pm},focus:{Feature:Cm},hover:{Feature:jm}},...Em,...{layout:{ProjectionNode:Sl,MeasureLayout:Ya}}},at=$p(Fm,Zp);function Sr(e){return typeof e=="object"&&!Array.isArray(e)}function jl(e,t,n,i){return typeof e=="string"&&Sr(t)?Os(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Vm(e,t,n){return e*(t+1)}function Cl(e,t,n,i){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):i.get(t)??e}function Lm(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];r.at>t&&r.at<n&&(yn(e,r),i--)}}function _m(e,t,n,i,r,o){Lm(e,r,o);for(let s=0;s<t.length;s++)e.push({value:t[s],at:ae(r,o,i[s]),easing:$o(n,s)})}function zm(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Bm(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const $m="easeInOut",Wm=20;function Um(e,{defaultTransition:t={},...n}={},i,r){const o=t.duration||.3,s=new Map,a=new Map,l={},u=new Map;let c=0,d=0,f=0;for(let m=0;m<e.length;m++){const v=e[m];if(typeof v=="string"){u.set(v,d);continue}else if(!Array.isArray(v)){u.set(v.name,Cl(d,v.at,c,u));continue}let[x,w,h={}]=v;h.at!==void 0&&(d=Cl(d,h.at,c,u));let T=0;const b=(k,y,P,j=0,A=0)=>{const M=qm(k),{delay:U=0,times:F=us(M),type:Q="keyframes",repeat:G,repeatType:N,repeatDelay:ee=0,...ie}=y;let{ease:X=t.ease||"easeOut",duration:q}=y;const Z=typeof U=="function"?U(j,A):U,g=M.length,E=zi(Q)?Q:r?.[Q||"keyframes"];if(g<=2&&E){let z=100;if(g===2&&Hm(M)){const _=M[1]-M[0];z=Math.abs(_)}const K={...ie};q!==void 0&&(K.duration=je(q));const B=ss(K,z,E);X=B.ease,q=B.duration}q??(q=o);const O=d+Z;F.length===1&&F[0]===0&&(F[1]=1);const V=F.length-M.length;if(V>0&&cs(F,V),M.length===1&&M.unshift(null),G){ke(G<Wm,"Repeat count too high, must be less than 20","repeat-count-high"),q=Vm(q,G);const z=[...M],K=[...F];X=Array.isArray(X)?[...X]:[X];const B=[...X];for(let _=0;_<G;_++){M.push(...z);for(let H=0;H<z.length;H++)F.push(K[H]+(_+1)),X.push(H===0?"linear":$o(B,H-1))}zm(F,G)}const L=O+q;_m(P,M,X,F,O,L),T=Math.max(Z+q,T),f=Math.max(L,f)};if(he(x)){const k=Pl(x,a);b(w,h,Al("default",k))}else{const k=jl(x,w,i,l),y=k.length;for(let P=0;P<y;P++){w=w,h=h;const j=k[P],A=Pl(j,a);for(const M in w)b(w[M],Km(h,M),Al(M,A),P,y)}}c=d,d+=T}return a.forEach((m,v)=>{for(const x in m){const w=m[x];w.sort(Bm);const h=[],T=[],b=[];for(let y=0;y<w.length;y++){const{at:P,value:j,easing:A}=w[y];h.push(j),T.push(vt(0,f,P)),b.push(A||"easeOut")}T[0]!==0&&(T.unshift(0),h.unshift(h[0]),b.unshift($m)),T[T.length-1]!==1&&(T.push(1),h.push(null)),s.has(v)||s.set(v,{keyframes:{},transition:{}});const k=s.get(v);k.keyframes[x]=h,k.transition[x]={...t,duration:f,ease:b,times:T,...n}}}),s}function Pl(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Al(e,t){return t[e]||(t[e]=[]),t[e]}function qm(e){return Array.isArray(e)?e:[e]}function Km(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Ym=e=>typeof e=="number",Hm=e=>e.every(Ym);function Gm(e,t){return e in t}class Xm extends ba{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Gm(n,t)){const i=t[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return ue()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function Zm(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Hi(e)&&!$s(e)?new Ea(t):new Sa(t);n.mount(e),Qt.set(e,n)}function Jm(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Xm(t);n.mount(e),Qt.set(e,n)}function Qm(e,t){return he(e)||typeof e=="number"||typeof e=="string"&&!Sr(t)}function Dl(e,t,n,i){const r=[];if(Qm(e,t))r.push(Ha(e,Sr(t)&&t.default||t,n&&(n.default||n)));else{const o=jl(e,t,i),s=o.length;ke(!!s,"No valid elements provided.","no-valid-elements");for(let a=0;a<s;a++){const l=o[a];ke(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const u=l instanceof Element?Zm:Jm;Qt.has(l)||u(l);const c=Qt.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,s)),r.push(...pr(c,{...t,transition:d},{}))}}return r}function eh(e,t,n){const i=[];return Um(e,t,n,{spring:Gt}).forEach(({keyframes:o,transition:s},a)=>{i.push(...Dl(a,o,s))}),i}function th(e){return Array.isArray(e)&&e.some(Array.isArray)}function nh(e){function t(n,i,r){let o=[];return th(n)?o=eh(n,i,e):o=Dl(n,i,r,e),new _d(o)}return t}const ih=nh(),rh=["polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)","polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)","polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)","polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)","polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)"],Dt=e=>{const{speed:t=1,className:n}=e,i=1/t,r=2/t;return p.jsx(Cn,{children:p.jsx(at.div,{role:"status",className:I("relative rounded-full",n),animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:i},children:p.jsx(at.div,{className:"absolute inset-0 rounded-full",style:{boxSizing:"border-box",borderStyle:"solid",borderWidth:2},animate:{clipPath:rh},transition:{repeat:1/0,ease:"linear",duration:r,times:[0,.25,.5,.75,1]}})})})},lt={sm:"h-[var(--control-size-sm-height)]",md:"h-[var(--control-size-md-height)]",lg:"h-[var(--control-size-lg-height)]"},oh={sm:"min-h-[var(--control-size-sm-height)]",md:"min-h-[var(--control-size-md-height)]",lg:"min-h-[var(--control-size-lg-height)]"},Xe={sm:"text-[length:var(--control-size-sm-font-size)]",md:"text-[length:var(--control-size-md-font-size)]",lg:"text-[length:var(--control-size-lg-font-size)]"},sh={sm:"gap-[var(--control-size-sm-gap)]",md:"gap-[var(--control-size-md-gap)]",lg:"gap-[var(--control-size-lg-gap)]"},ah={sm:"px-[var(--control-size-sm-px)]",md:"px-[var(--control-size-md-px)]",lg:"px-[var(--control-size-lg-px)]"},ct={sm:"pl-[var(--control-size-sm-px)]",md:"pl-[var(--control-size-md-px)]",lg:"pl-[var(--control-size-lg-px)]"},Rl={sm:"pr-[var(--control-size-sm-px)]",md:"pr-[var(--control-size-md-px)]",lg:"pr-[var(--control-size-lg-px)]"},Rt={sm:"pr-[calc(var(--control-size-sm-px)+2rem)]",md:"pr-[calc(var(--control-size-md-px)+2rem)]",lg:"pr-[calc(var(--control-size-lg-px)+2rem)]"},lh={sm:"pl-[calc(var(--control-size-sm-icon-offset)+var(--control-size-sm-icon)+0.75rem)]",md:"pl-[calc(var(--control-size-md-icon-offset)+var(--control-size-md-icon)+0.75rem)]",lg:"pl-[calc(var(--control-size-lg-icon-offset)+var(--control-size-lg-icon)+0.75rem)]"},ch={sm:"left-[var(--control-size-sm-icon-offset)]",md:"left-[var(--control-size-md-icon-offset)]",lg:"left-[var(--control-size-lg-icon-offset)]"},uh={sm:"right-[var(--control-size-sm-px)]",md:"right-[var(--control-size-md-px)]",lg:"right-[var(--control-size-lg-px)]"},Ot={sm:"h-[var(--control-size-sm-icon)] w-[var(--control-size-sm-icon)]",md:"h-[var(--control-size-md-icon)] w-[var(--control-size-md-icon)]",lg:"h-[var(--control-size-lg-icon)] w-[var(--control-size-lg-icon)]"},Ol={sm:"h-[var(--control-size-sm-height)] w-[var(--control-size-sm-height)]",md:"h-[var(--control-size-md-height)] w-[var(--control-size-md-height)]",lg:"h-[var(--control-size-lg-height)] w-[var(--control-size-lg-height)]"},dh=`
|
|
30
|
+
`),()=>{y.contains(x)&&y.removeChild(x)}},[t]),p.jsx(fp,{isPresent:t,childRef:o,sizeRef:s,children:P.cloneElement(e,{ref:o})})}const hp=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const u=si(gp),c=S.useId();let d=!0,f=S.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:r,onExitComplete:m=>{u.set(m,!0);for(const x of u.values())if(!x)return;i&&i()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,i]);return o&&d&&(f={...f}),S.useMemo(()=>{u.forEach((m,x)=>u.set(x,!1))},[n]),P.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),s==="popLayout"&&(e=p.jsx(mp,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(yn.Provider,{value:f,children:e})};function gp(){return new Map}function qs(e=!0){const t=S.useContext(yn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,o=S.useId();S.useEffect(()=>{if(e)return r(o)},[e]);const s=S.useCallback(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,s]:[!0]}const Cn=e=>e.key||"";function Ks(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Pn=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=qs(s),d=S.useMemo(()=>Ks(e),[e]),f=s&&!u?[]:d.map(Cn),m=S.useRef(!0),x=S.useRef(d),y=si(()=>new Map),[w,g]=S.useState(d),[T,b]=S.useState(d);Po(()=>{m.current=!1,x.current=d;for(let C=0;C<T.length;C++){const j=Cn(T[C]);f.includes(j)?y.delete(j):y.get(j)!==!0&&y.set(j,!1)}},[T,f.length,f.join("-")]);const k=[];if(d!==w){let C=[...d];for(let j=0;j<T.length;j++){const A=T[j],M=Cn(A);f.includes(M)||(C.splice(j,0,A),k.push(A))}return o==="wait"&&k.length&&(C=k),b(Ks(C)),g(d),null}process.env.NODE_ENV!=="production"&&o==="wait"&&T.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:h}=S.useContext(oi);return p.jsx(p.Fragment,{children:T.map(C=>{const j=Cn(C),A=s&&!u?!1:d===T||f.includes(j),M=()=>{if(y.has(j))y.set(j,!0);else return;let W=!0;y.forEach(O=>{O||(W=!1)}),W&&(h?.(),b(x.current),s&&c?.(),i&&i())};return p.jsx(hp,{isPresent:A,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:l,onExitComplete:A?void 0:M,anchorX:a,children:C},j)})})},Hs=S.createContext({strict:!1}),Ys={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pt={};for(const e in Ys)Pt[e]={isEnabled:t=>Ys[e].some(n=>!!t[n])};function vp(e){for(const t in e)Pt[t]={...Pt[t],...e[t]}}const xp=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 An(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xp.has(e)}let Xs=e=>!An(e);function yp(e){typeof e=="function"&&(Xs=t=>t.startsWith("on")?!An(t):e(t))}try{yp(require("@emotion/is-prop-valid").default)}catch{}function bp(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Xs(r)||n===!0&&An(r)||!t&&!An(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}const Dn=S.createContext({});function Rn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jt(e){return typeof e=="string"||Array.isArray(e)}const Zi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ji=["initial",...Zi];function Mn(e){return Rn(e.animate)||Ji.some(t=>Jt(e[t]))}function Gs(e){return!!(Mn(e)||e.variants)}function wp(e,t){if(Mn(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Jt(n)?n:void 0,animate:Jt(i)?i:void 0}}return e.inherit!==!1?t:{}}function Tp(e){const{initial:t,animate:n}=wp(e,S.useContext(Dn));return S.useMemo(()=>({initial:t,animate:n}),[Zs(t),Zs(n)])}function Zs(e){return Array.isArray(e)?e.join(" "):e}const Qt={};function Sp(e){for(const t in e)Qt[t]=e[t],gi(t)&&(Qt[t].isCSSVariable=!0)}function Js(e,{layout:t,layoutId:n}){return Et.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qt[e]||e==="opacity")}const kp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jp=jt.length;function Ep(e,t,n){let i="",r=!0;for(let o=0;o<jp;o++){const s=jt[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Ns(a,qi[s]);if(!l){r=!1;const c=kp[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function Qi(e,t,n){const{style:i,vars:r,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Et.has(l)){s=!0;continue}else if(gi(l)){r[l]=u;continue}else{const c=Ns(u,qi[l]);l.startsWith("origin")?(a=!0,o[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=Ep(t,e.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;i.transformOrigin=`${l} ${u} ${c}`}}const er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(e,t,n){for(const i in t)!he(t[i])&&!Js(i,n)&&(e[i]=t[i])}function Cp({transformTemplate:e},t){return S.useMemo(()=>{const n=er();return Qi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Pp(e,t){const n=e.style||{},i={};return Qs(i,n,e),Object.assign(i,Cp(e,t)),i}function Ap(e,t){const n={},i=Pp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const Dp={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rp={offset:"strokeDashoffset",array:"strokeDasharray"};function Mp(e,t,n=1,i=0,r=!0){e.pathLength=1;const o=r?Dp:Rp;e[o.offset]=H.transform(-i);const s=H.transform(t),a=H.transform(n);e[o.array]=`${s} ${a}`}function ea(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Qi(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),r!==void 0&&Mp(d,r,o,s,!1)}const ta=()=>({...er(),attrs:{}}),na=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Op(e,t,n,i){const r=S.useMemo(()=>{const o=ta();return ea(o,t,na(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Qs(o,e.style,e),r.style={...o,...r.style}}return r}const Ip=["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 tr(e){return typeof e!="string"||e.includes("-")?!1:!!(Ip.indexOf(e)>-1||/[A-Z]/u.test(e))}function Np(e,t,n,{latestValues:i},r,o=!1){const a=(tr(e)?Op:Ap)(t,i,r,e),l=bp(t,typeof e=="string",o),u=e!==S.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=S.useMemo(()=>he(c)?c.get():c,[c]);return S.createElement(e,{...u,children:d})}function ia(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function nr(e,t,n,i){if(typeof t=="function"){const[r,o]=ia(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=ia(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function On(e){return he(e)?e.get():e}function Fp({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:Vp(n,i,r,e),renderState:t()}}function Vp(e,t,n,i){const r={},o=i(e,{});for(const f in o)r[f]=On(o[f]);let{initial:s,animate:a}=e;const l=Mn(e),u=Gs(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!Rn(d)){const f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){const x=nr(e,f[m]);if(x){const{transitionEnd:y,transition:w,...g}=x;for(const T in g){let b=g[T];if(Array.isArray(b)){const k=c?b.length-1:0;b=b[k]}b!==null&&(r[T]=b)}for(const T in y)r[T]=y[T]}}}return r}const ra=e=>(t,n)=>{const i=S.useContext(Dn),r=S.useContext(yn),o=()=>Fp(e,t,i,r);return n?o():si(o)};function ir(e,t,n){const{style:i}=e,r={};for(const o in i)(he(i[o])||t.style&&he(t.style[o])||Js(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}const Lp=ra({scrapeMotionValuesFromProps:ir,createRenderState:er});function oa(e,t,n){const i=ir(e,t,n);for(const r in e)if(he(e[r])||he(t[r])){const o=jt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}const _p=ra({scrapeMotionValuesFromProps:oa,createRenderState:ta}),zp=Symbol.for("motionComponentSymbol");function At(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Bp(e,t,n){return S.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):At(n)&&(n.current=i))},[t])}const rr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sa="data-"+rr("framerAppearId"),aa=S.createContext({});function $p(e,t,n,i,r){const{visualElement:o}=S.useContext(Dn),s=S.useContext(Hs),a=S.useContext(yn),l=S.useContext(Gi).reducedMotion,u=S.useRef(null);i=i||s.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=S.useContext(aa);c&&!c.projection&&r&&(c.type==="html"||c.type==="svg")&&Wp(u.current,n,r,d);const f=S.useRef(!1);S.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const m=n[sa],x=S.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Po(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),x.current&&c.animationState&&c.animationState.animateChanges())}),S.useEffect(()=>{c&&(!x.current&&c.animationState&&c.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),x.current=!1),c.enteringChildren=void 0)}),c}function Wp(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:la(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&At(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}function la(e){if(e)return e.options.allowProjection!==!1?e.projection:la(e.parent)}function or(e,{forwardMotionProps:t=!1}={},n,i){n&&vp(n);const r=tr(e)?_p:Lp;function o(a,l){let u;const c={...S.useContext(Gi),...a,layoutId:Up(a)},{isStatic:d}=c,f=Tp(a),m=r(a,d);if(!d&&ai){qp(c,n);const x=Kp(c);u=x.MeasureLayout,f.visualElement=$p(e,m,c,i,x.ProjectionNode)}return p.jsxs(Dn.Provider,{value:f,children:[u&&f.visualElement?p.jsx(u,{visualElement:f.visualElement,...c}):null,Np(e,a,Bp(m,f.visualElement,l),m,d,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=S.forwardRef(o);return s[zp]=e,s}function Up({layoutId:e}){const t=S.useContext(oi).id;return t&&e!==void 0?t+"-"+e:e}function qp(e,t){const n=S.useContext(Hs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?bt(!1,i,"lazy-strict-mode"):Ee(!1,i,"lazy-strict-mode")}}function Kp(e){const{drag:t,layout:n}=Pt;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Hp(e,t){if(typeof Proxy>"u")return or;const n=new Map,i=(o,s)=>or(o,s,e,t),r=(o,s)=>(process.env.NODE_ENV!=="production"&&pi(!1,"motion() is deprecated. Use motion.create() instead."),i(o,s));return new Proxy(r,{get:(o,s)=>s==="create"?i:(n.has(s)||n.set(s,or(s,void 0,e,t)),n.get(s))})}function ca({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Yp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Xp(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function sr(e){return e===void 0||e===1}function ar({scale:e,scaleX:t,scaleY:n}){return!sr(e)||!sr(t)||!sr(n)}function at(e){return ar(e)||ua(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ua(e){return da(e.x)||da(e.y)}function da(e){return e&&e!=="0%"}function In(e,t,n){const i=e-n,r=t*i;return n+r}function pa(e,t,n,i,r){return r!==void 0&&(e=In(e,r,i)),In(e,n,i)+t}function lr(e,t=0,n=1,i,r){e.min=pa(e.min,t,n,i,r),e.max=pa(e.max,t,n,i,r)}function fa(e,{x:t,y:n}){lr(e.x,t.translate,t.scale,t.originPoint),lr(e.y,n.translate,n.scale,n.originPoint)}const ma=.999999999999,ha=1.0000000000001;function Gp(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Rt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,fa(e,s)),i&&at(o.latestValues)&&Rt(e,o.latestValues))}t.x<ha&&t.x>ma&&(t.x=1),t.y<ha&&t.y>ma&&(t.y=1)}function Dt(e,t){e.min=e.min+t,e.max=e.max+t}function ga(e,t,n,i,r=.5){const o=ae(e.min,e.max,r);lr(e,t,n,o,i)}function Rt(e,t){ga(e.x,t.x,t.scaleX,t.scale,t.originX),ga(e.y,t.y,t.scaleY,t.scale,t.originY)}function va(e,t){return ca(Xp(e.getBoundingClientRect(),t))}function Zp(e,t,n){const i=va(e,n),{scroll:r}=t;return r&&(Dt(i.x,r.offset.x),Dt(i.y,r.offset.y)),i}const xa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mt=()=>({x:xa(),y:xa()}),ya=()=>({min:0,max:0}),ue=()=>({x:ya(),y:ya()}),cr={current:null},ba={current:!1};function Jp(){if(ba.current=!0,!!ai)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cr.current=e.matches;e.addEventListener("change",t),t()}else cr.current=!1}const en=new WeakMap;function Qp(e,t,n){for(const i in t){const r=t[i],o=n[i];if(he(r))e.addValue(i,r);else if(he(o))e.addValue(i,Ct(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,Ct(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const wa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ta{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zi,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 f=we.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,se.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Mn(n),this.isVariantNode=Gs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];l[f]!==void 0&&he(m)&&m.set(l[f])}}mount(t){this.current=t,en.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,i)=>this.bindToMotionValue(i,n)),ba.current||Jp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cr.current,process.env.NODE_ENV!=="production"&&pi(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(),Xe(this.notifyUpdate),Xe(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 i=Et.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&se.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pt){const n=Pt[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}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 i=0;i<wa.length;i++){const r=wa[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Qp(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 i=this.values.get(t);n!==i&&(i&&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 i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Ct(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ao(i)||Ro(i))?i=parseFloat(i):!pp(i)&&Ze.test(n)&&(i=Os(t,n)),this.setBaseTarget(t,he(i)?i.get():i)),he(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=nr(this.props,n,this.presenceContext?.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!he(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new di),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ki.render(this.render)}}class Sa extends Ta{constructor(){super(...arguments),this.KeyframeResolver=np}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:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;he(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ka(e,{style:t,vars:n},i,r){const o=e.style;let s;for(s in t)o[s]=t[s];r?.applyProjectionStyles(o,i);for(s in n)o.setProperty(s,n[s])}function ef(e){return window.getComputedStyle(e)}class ja extends Sa{constructor(){super(...arguments),this.type="html",this.renderInstance=ka}readValueFromInstance(t,n){if(Et.has(n))return this.projection?.isProjecting?Ni(n):yd(t,n);{const i=ef(t),r=(gi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return va(t,n)}build(t,n,i){Qi(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return ir(t,n,i)}}const Ea=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 tf(e,t,n,i){ka(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(Ea.has(r)?r:rr(r),t.attrs[r])}class Ca extends Sa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Et.has(n)){const i=Ms(n);return i&&i.default||0}return n=Ea.has(n)?n:rr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return oa(t,n,i)}build(t,n,i){ea(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,r){tf(t,n,i,r)}mount(t){this.isSVGTag=na(t.tagName),super.mount(t)}}const nf=(e,t)=>tr(e)?new Ca(t):new ja(t,{allowProjection:e!==S.Fragment});function Ot(e,t,n){const i=e.getProps();return nr(i,t,n!==void 0?n:i.custom,e)}const ur=e=>Array.isArray(e);function rf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ct(n))}function of(e){return ur(e)?e[e.length-1]||0:e}function sf(e,t){const n=Ot(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=of(o[s]);rf(e,s,a)}}function af(e){return!!(he(e)&&e.add)}function dr(e,t){const n=e.getValue("willChange");if(af(n))return n.add(t);if(!n&&We.WillChange){const i=new We.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function Pa(e){return e.props[sa]}const lf=e=>e!==null;function cf(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(lf),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[o]}const uf={type:"spring",stiffness:500,damping:25,restSpeed:10},df=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pf={type:"keyframes",duration:.8},ff={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mf=(e,{keyframes:t})=>t.length>2?pf:Et.has(e)?e.startsWith("scale")?df(t[1]):uf:ff;function hf({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const pr=(e,t,n,i={},r,o)=>s=>{const a=Wi(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Pe(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};hf(a)||Object.assign(c,mf(e,c)),c.duration&&(c.duration=Pe(c.duration)),c.repeatDelay&&(c.repeatDelay=Pe(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&($i(c),c.delay===0&&(d=!0)),(We.instantAnimations||We.skipAnimations)&&(d=!0,$i(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const f=cf(c.keyframes,a);if(f!==void 0){se.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new Mi(c):new $d(c)};function gf({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function fr(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;i&&(o=i);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&gf(u,c))continue;const m={delay:n,...Wi(o||{},c)},x=d.get();if(x!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===x&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const g=Pa(e);if(g){const T=window.MotionHandoffAnimation(g,c,se);T!==null&&(m.startTime=T,y=!0)}}dr(e,c),d.start(pr(c,d,f,e.shouldReduceMotion&&Cs.has(c)?{type:!1}:m,e,y));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{se.update(()=>{s&&sf(e,s)})}),l}function Aa(e,t,n,i=0,r=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*i;return typeof n=="function"?n(o,s):r===1?o*i:a-o*i}function mr(e,t,n={}){const i=Ot(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(fr(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return vf(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function vf(e,t,n=0,i=0,r=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(mr(l,t,{...s,delay:n+(typeof i=="function"?0:i)+Aa(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function xf(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>mr(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=mr(e,t,n);else{const r=typeof t=="function"?Ot(e,t,n.custom):t;i=Promise.all(fr(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function Da(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const yf=Ji.length;function Ra(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ra(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<yf;n++){const i=Ji[n],r=e.props[i];(Jt(r)||r===!1)&&(t[i]=r)}return t}const bf=[...Zi].reverse(),wf=Zi.length;function Tf(e){return t=>Promise.all(t.map(({animation:n,options:i})=>xf(e,n,i)))}function Sf(e){let t=Tf(e),n=Ma(),i=!0;const r=l=>(u,c)=>{const d=Ot(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:m,...x}=d;u={...u,...x,...m}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Ra(e.parent)||{},d=[],f=new Set;let m={},x=1/0;for(let w=0;w<wf;w++){const g=bf[w],T=n[g],b=u[g]!==void 0?u[g]:c[g],k=Jt(b),h=g===l?T.isActive:null;h===!1&&(x=w);let C=b===c[g]&&b!==u[g]&&k;if(C&&i&&e.manuallyAnimateOnMount&&(C=!1),T.protectedKeys={...m},!T.isActive&&h===null||!b&&!T.prevProp||Rn(b)||typeof b=="boolean")continue;const j=kf(T.prevProp,b);let A=j||g===l&&T.isActive&&!C&&k||w>x&&k,M=!1;const W=Array.isArray(b)?b:[b];let O=W.reduce(r(g),{});h===!1&&(O={});const{prevResolvedValues:J={}}=T,Y={...J,...O},F=G=>{A=!0,f.has(G)&&(M=!0,f.delete(G)),T.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in Y){const q=O[G],Z=J[G];if(m.hasOwnProperty(G))continue;let v=!1;ur(q)&&ur(Z)?v=!Da(q,Z):v=q!==Z,v?q!=null?F(G):f.add(G):q!==void 0&&f.has(G)?F(G):T.protectedKeys[G]=!0}T.prevProp=b,T.prevResolvedValues=O,T.isActive&&(m={...m,...O}),i&&e.blockInitialAnimation&&(A=!1);const ee=C&&j;A&&(!ee||M)&&d.push(...W.map(G=>{const q={type:g};if(typeof G=="string"&&i&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,v=Ot(Z,G);if(Z.enteringChildren&&v){const{delayChildren:E}=v.transition||{};q.delay=Aa(Z.enteringChildren,e,E)}}return{animation:G,options:q}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const g=Ot(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(w.transition=g.transition)}f.forEach(g=>{const T=e.getBaseTarget(g),b=e.getValue(g);b&&(b.liveStyle=!0),w[g]=T??null}),d.push({animation:w})}let y=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ma(),i=!0}}}function kf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Da(t,e):!1}function lt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ma(){return{animate:lt(!0),whileInView:lt(),whileHover:lt(),whileTap:lt(),whileDrag:lt(),whileFocus:lt(),exit:lt()}}class Je{constructor(t){this.isMounted=!1,this.node=t}update(){}}class jf extends Je{constructor(t){super(t),t.animationState||(t.animationState=Sf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rn(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 Ef=0;class Cf extends Je{constructor(){super(...arguments),this.id=Ef++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 Pf={animation:{Feature:jf},exit:{Feature:Cf}};function tn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function nn(e){return{point:{x:e.pageX,y:e.pageY}}}const Af=e=>t=>Hi(t)&&e(t,nn(t));function rn(e,t,n,i){return tn(e,t,Af(n),i)}const Oa=1e-4,Df=1-Oa,Rf=1+Oa,Ia=.01,Mf=0-Ia,Of=0+Ia;function be(e){return e.max-e.min}function If(e,t,n){return Math.abs(e-t)<=n}function Na(e,t,n,i=.5){e.origin=i,e.originPoint=ae(t.min,t.max,e.origin),e.scale=be(n)/be(t),e.translate=ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Df&&e.scale<=Rf||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mf&&e.translate<=Of||isNaN(e.translate))&&(e.translate=0)}function on(e,t,n,i){Na(e.x,t.x,n.x,i?i.originX:void 0),Na(e.y,t.y,n.y,i?i.originY:void 0)}function Fa(e,t,n){e.min=n.min+t.min,e.max=e.min+be(t)}function Nf(e,t,n){Fa(e.x,t.x,n.x),Fa(e.y,t.y,n.y)}function Va(e,t,n){e.min=t.min-n.min,e.max=e.min+be(t)}function sn(e,t,n){Va(e.x,t.x,n.x),Va(e.y,t.y,n.y)}function Ae(e){return[e("x"),e("y")]}const La=({current:e})=>e?e.ownerDocument.defaultView:null,_a=(e,t)=>Math.abs(e-t);function Ff(e,t){const n=_a(e.x,t.x),i=_a(e.y,t.y);return Math.sqrt(n**2+i**2)}class za{constructor(t,n,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=gr(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=Ff(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!x)return;const{point:y}=f,{timestamp:w}=ge;this.history.push({...y,timestamp:w});const{onStart:g,onMove:T}=this.handlers;m||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=hr(m,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:x,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=gr(f.type==="pointercancel"?this.lastMoveEventInfo:hr(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(f,g),y&&y(f,g)},!Hi(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=nn(t),l=hr(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ge;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,gr(l,this.history)),this.removeListeners=Ut(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe(this.updatePoint)}}function hr(e,t){return t?{point:t(e.point)}:e}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gr({point:e},t){return{point:e,delta:Ba(e,$a(t)),offset:Ba(e,Vf(t)),velocity:Lf(t,.1)}}function Vf(e){return e[0]}function $a(e){return e[e.length-1]}function Lf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=$a(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Pe(t)));)n--;if(!i)return{x:0,y:0};const o=Ie(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function _f(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ae(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ae(n,e,i.max):Math.min(e,n)),e}function Wa(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 zf(e,{top:t,left:n,bottom:i,right:r}){return{x:Wa(e.x,n,r),y:Wa(e.y,t,i)}}function Ua(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function Bf(e,t){return{x:Ua(e.x,t.x),y:Ua(e.y,t.y)}}function $f(e,t){let n=.5;const i=be(e),r=be(t);return r>i?n=wt(t.min,t.max-i,e.min):i>r&&(n=wt(e.min,e.max-r,t.min)),$e(0,1,n)}function Wf(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 vr=.35;function Uf(e=vr){return e===!1?e=0:e===!0&&(e=vr),{x:qa(e,"left","right"),y:qa(e,"top","bottom")}}function qa(e,t,n){return{min:Ka(e,t),max:Ka(e,n)}}function Ka(e,t){return typeof e=="number"?e:e[t]||0}const qf=new WeakMap;class Kf{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=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(nn(d).point)},s=(d,f)=>{const{drag:m,dragPropagation:x,onDragStart:y}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=op(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ae(g=>{let T=this.getAxisMotionValue(g).get()||0;if(Ne.test(T)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[g];k&&(T=be(k)*(parseFloat(T)/100))}}this.originPoint[g]=T}),y&&se.postRender(()=>y(d,f)),dr(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:y,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:g}=f;if(x&&this.currentDirection===null){this.currentDirection=Hf(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ae(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new za(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:La(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,r=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&se.postRender(()=>a(i,r))}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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Nn(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=_f(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&At(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=zf(i.layoutBox,t):this.constraints=!1,this.elastic=Uf(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ae(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Wf(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!At(t))return!1;const i=t.current;Ee(i!==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:r}=this.visualElement;if(!r||!r.layout)return!1;const o=Zp(i,r.root,this.visualElement.getTransformPagePoint());let s=Bf(r.layout.layoutBox,o);if(n){const a=n(Yp(s));this.hasMutatedConstraints=!!a,a&&(s=ca(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ae(c=>{if(!Nn(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,x={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return dr(this.visualElement,t),i.start(pr(t,i,0,n,this.visualElement,!1))}stopAnimation(){Ae(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ae(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Ae(n=>{const{drag:i}=this.getProps();if(!Nn(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(t[n]-ae(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!At(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ae(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=$f({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ae(s=>{if(!Nn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ae(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;qf.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();At(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),se.read(i);const s=tn(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ae(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=vr,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Nn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Yf extends Je{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Kf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ha=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class Xf extends Je{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new za(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:La(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ha(t),onStart:Ha(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&se.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=rn(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 Fn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ya(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const an={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=Ya(e,t.target.x),i=Ya(e,t.target.y);return`${n}% ${i}%`}},Gf={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ze.parse(e);if(r.length>5)return i;const o=Ze.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const u=ae(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};let xr=!1;class Zf extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;Sp(Jf),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),xr&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Fn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,{projection:s}=i;return s&&(s.isPresent=o,xr=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ki.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;xr=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xa(e){const[t,n]=qs(),i=S.useContext(oi);return p.jsx(Zf,{...e,layoutGroup:i,switchLayoutGroup:S.useContext(aa),isPresent:t,safeToRemove:n})}const Jf={borderRadius:{...an,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:an,borderTopRightRadius:an,borderBottomLeftRadius:an,borderBottomRightRadius:an,boxShadow:Gf};function Ga(e,t,n){const i=he(e)?e:Ct(e);return i.start(pr("",i,t,n)),i.animation}const Qf=(e,t)=>e.depth-t.depth;class em{constructor(){this.children=[],this.isDirty=!1}add(t){li(this.children,t),this.isDirty=!0}remove(t){bn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qf),this.isDirty=!1,this.children.forEach(t)}}function tm(e,t){const n=we.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Xe(i),e(o-t))};return se.setup(i,!0),()=>Xe(i)}const Za=["TopLeft","TopRight","BottomLeft","BottomRight"],nm=Za.length,Ja=e=>typeof e=="string"?parseFloat(e):e,Qa=e=>typeof e=="number"||H.test(e);function im(e,t,n,i,r,o){r?(e.opacity=ae(0,n.opacity??1,rm(i)),e.opacityExit=ae(t.opacity??1,0,om(i))):o&&(e.opacity=ae(t.opacity??1,n.opacity??1,i));for(let s=0;s<nm;s++){const a=`border${Za[s]}Radius`;let l=el(t,a),u=el(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Qa(l)===Qa(u)?(e[a]=Math.max(ae(Ja(l),Ja(u),i),0),(Ne.test(u)||Ne.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ae(t.rotate||0,n.rotate||0,i))}function el(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const rm=tl(0,.5,zo),om=tl(.5,.95,Ce);function tl(e,t,n){return i=>i<e?0:i>t?1:n(wt(e,t,i))}function nl(e,t){e.min=t.min,e.max=t.max}function De(e,t){nl(e.x,t.x),nl(e.y,t.y)}function il(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rl(e,t,n,i,r){return e-=t,e=In(e,1/n,i),r!==void 0&&(e=In(e,1/r,i)),e}function sm(e,t=0,n=1,i=.5,r,o=e,s=e){if(Ne.test(t)&&(t=parseFloat(t),t=ae(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ae(o.min,o.max,i);e===o&&(a-=t),e.min=rl(e.min,t,n,a,r),e.max=rl(e.max,t,n,a,r)}function ol(e,t,[n,i,r],o,s){sm(e,t[n],t[i],t[r],t.scale,o,s)}const am=["x","scaleX","originX"],lm=["y","scaleY","originY"];function sl(e,t,n,i){ol(e.x,t,am,n?n.x:void 0,i?i.x:void 0),ol(e.y,t,lm,n?n.y:void 0,i?i.y:void 0)}function al(e){return e.translate===0&&e.scale===1}function ll(e){return al(e.x)&&al(e.y)}function cl(e,t){return e.min===t.min&&e.max===t.max}function cm(e,t){return cl(e.x,t.x)&&cl(e.y,t.y)}function ul(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dl(e,t){return ul(e.x,t.x)&&ul(e.y,t.y)}function pl(e){return be(e.x)/be(e.y)}function fl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class um{constructor(){this.members=[]}add(t){li(this.members,t),t.scheduleRender()}remove(t){if(bn(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(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dm(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:m,skewY:x}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),m&&(i+=`skewX(${m}deg) `),x&&(i+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const yr=["","X","Y","Z"],pm=1e3;let fm=0;function br(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function ml(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Pa(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",se,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&ml(i)}function hl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t?.()){this.id=fm++,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(gm),this.nodes.forEach(bm),this.nodes.forEach(wm),this.nodes.forEach(vm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new em)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new di),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Xi(s)&&!Us(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;se.read(()=>{d=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=tm(f,250),Fn.hasAnimatedSinceResize&&(Fn.hasAnimatedSinceResize=!1,this.nodes.forEach(xl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||Em,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=u.getProps(),g=!this.targetLayout||!dl(this.targetLayout,m),T=!d&&f;if(this.options.layoutRoot||this.resumeFrom||T||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Wi(x,"layout"),onPlay:y,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(c,T)}else d||xl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xe(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(Tm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ml(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ym),this.nodes.forEach(mm),this.nodes.forEach(hm)):this.nodes.forEach(vl),this.clearAllSnapshots();const a=we.now();ge.delta=$e(0,1e3/60,a-ge.timestamp),ge.timestamp=a,ge.isProcessing=!0,hi.update.process(ge),hi.preRender.process(ge),hi.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ki.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xm),this.sharedNodes.forEach(Sm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!be(this.snapshot.measuredBox.x)&&!be(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ll(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||at(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Cm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pm))){const{scroll:u}=this.root;u&&(Dt(a.x,u.offset.x),Dt(a.y,u.offset.y))}return a}removeElementScroll(s){const a=ue();if(De(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&De(a,s),Dt(a.x,c.offset.x),Dt(a.y,c.offset.y))}return a}applyTransform(s,a=!1){const l=ue();De(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Rt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),at(c.latestValues)&&Rt(l,c.latestValues)}return at(this.latestValues)&&Rt(l,this.latestValues),l}removeTransform(s){const a=ue();De(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!at(u.latestValues))continue;ar(u.latestValues)&&u.updateSnapshot();const c=ue(),d=u.measurePageBox();De(c,d),sl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return at(this.latestValues)&&sl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ge.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),sn(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),De(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Nf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):De(this.target,this.layout.layoutBox),fa(this.target,this.targetDelta)):De(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),sn(this.relativeTargetOrigin,this.target,f.target),De(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ar(this.parent.latestValues)||ua(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ge.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=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||c))return;De(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Gp(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)),on(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!fl(this.projectionDelta.x,this.prevProjectionDelta.x)||!fl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mt(),this.projectionDelta=Mt(),this.projectionDeltaWithTransform=Mt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ue(),m=l?l.source:void 0,x=this.layout?this.layout.source:void 0,y=m!==x,w=this.getStack(),g=!w||w.members.length<=1,T=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(jm));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const h=k/1e3;yl(d.x,s.x,h),yl(d.y,s.y,h),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),km(this.relativeTarget,this.relativeTargetOrigin,f,h),b&&cm(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ue()),De(b,this.relativeTarget)),y&&(this.animationValues=c,im(c,u,this.latestValues,h,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=h},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Xe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{Fn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ct(0)),this.currentAnimation=Ga(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&kl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();const d=be(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=be(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}De(a,l),Rt(a,c),on(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new um),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&br("z",s,u,this.animationValues);for(let c=0;c<yr.length;c++)br(`rotate${yr[c]}`,s,u,this.animationValues),br(`skew${yr[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=On(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=On(a?.pointerEvents)||""),this.hasProjected&&!at(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=dm(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;const{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const x in Qt){if(c[x]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:g}=Qt[x],T=d==="none"?c[x]:y(c[x],u);if(w){const b=w.length;for(let k=0;k<b;k++)s[w[k]]=T}else g?this.options.visualElement.renderState.vars[x]=T:s[x]=T}this.options.layoutId&&(s.pointerEvents=u===this?On(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(gl),this.root.sharedNodes.clear()}}}function mm(e){e.updateLayout()}function hm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?Ae(c=>{const d=o?t.measuredBox[c]:t.layoutBox[c],f=be(d);d.min=n[c].min,d.max=d.min+f}):kl(r,t.layoutBox,n)&&Ae(c=>{const d=o?t.measuredBox[c]:t.layoutBox[c],f=be(n[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});const s=Mt();on(s,n,t.layoutBox);const a=Mt();o?on(a,e.applyTransform(i,!0),t.measuredBox):on(a,n,t.layoutBox);const l=!ll(s);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:f}=c;if(d&&f){const m=ue();sn(m,t.layoutBox,d.layoutBox);const x=ue();sn(x,n,f.layoutBox),dl(m,x)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function gm(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 vm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xm(e){e.clearSnapshot()}function gl(e){e.clearMeasurements()}function vl(e){e.isLayoutDirty=!1}function ym(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bm(e){e.resolveTargetDelta()}function wm(e){e.calcProjection()}function Tm(e){e.resetSkewAndRotation()}function Sm(e){e.removeLeadSnapshot()}function yl(e,t,n){e.translate=ae(t.translate,0,n),e.scale=ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bl(e,t,n,i){e.min=ae(t.min,n.min,i),e.max=ae(t.max,n.max,i)}function km(e,t,n,i){bl(e.x,t.x,n.x,i),bl(e.y,t.y,n.y,i)}function jm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Em={duration:.45,ease:[.4,0,.1,1]},wl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tl=wl("applewebkit/")&&!wl("chrome/")?Math.round:Ce;function Sl(e){e.min=Tl(e.min),e.max=Tl(e.max)}function Cm(e){Sl(e.x),Sl(e.y)}function kl(e,t,n){return e==="position"||e==="preserve-aspect"&&!If(pl(t),pl(n),.2)}function Pm(e){return e!==e.root&&e.scroll?.wasRoot}const Am=hl({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wr={current:void 0},jl=hl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wr.current){const e=new Am({});e.mount(window),e.setOptions({layoutScroll:!0}),wr.current=e}return wr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Dm={pan:{Feature:Xf},drag:{Feature:Yf,ProjectionNode:jl,MeasureLayout:Xa}};function El(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&se.postRender(()=>o(t,nn(t)))}class Rm extends Je{mount(){const{current:t}=this.node;t&&(this.unmount=sp(t,(n,i)=>(El(this.node,i,"Start"),r=>El(this.node,r,"End"))))}unmount(){}}class Mm extends Je{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=Ut(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Cl(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&se.postRender(()=>o(t,nn(t)))}class Om extends Je{mount(){const{current:t}=this.node;t&&(this.unmount=up(t,(n,i)=>(Cl(this.node,i,"Start"),(r,{success:o})=>Cl(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tr=new WeakMap,Sr=new WeakMap,Im=e=>{const t=Tr.get(e.target);t&&t(e)},Nm=e=>{e.forEach(Im)};function Fm({root:e,...t}){const n=e||document;Sr.has(n)||Sr.set(n,{});const i=Sr.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Nm,{root:e,...t})),i[r]}function Vm(e,t,n){const i=Fm(t);return Tr.set(e,n),i.observe(e),()=>{Tr.delete(e),i.unobserve(e)}}const Lm={some:0,all:1};class _m extends Je{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:Lm[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Vm(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zm(t,n))&&this.startObserver()}unmount(){}}function zm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Bm={...Pf,...{inView:{Feature:_m},tap:{Feature:Om},focus:{Feature:Mm},hover:{Feature:Rm}},...Dm,...{layout:{ProjectionNode:jl,MeasureLayout:Xa}}},ct=Hp(Bm,nf);function kr(e){return typeof e=="object"&&!Array.isArray(e)}function Pl(e,t,n,i){return typeof e=="string"&&kr(t)?Is(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function $m(e,t,n){return e*(t+1)}function Al(e,t,n,i){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):i.get(t)??e}function Wm(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];r.at>t&&r.at<n&&(bn(e,r),i--)}}function Um(e,t,n,i,r,o){Wm(e,r,o);for(let s=0;s<t.length;s++)e.push({value:t[s],at:ae(r,o,i[s]),easing:Uo(n,s)})}function qm(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Km(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Hm="easeInOut",Ym=20;function Xm(e,{defaultTransition:t={},...n}={},i,r){const o=t.duration||.3,s=new Map,a=new Map,l={},u=new Map;let c=0,d=0,f=0;for(let m=0;m<e.length;m++){const x=e[m];if(typeof x=="string"){u.set(x,d);continue}else if(!Array.isArray(x)){u.set(x.name,Al(d,x.at,c,u));continue}let[y,w,g={}]=x;g.at!==void 0&&(d=Al(d,g.at,c,u));let T=0;const b=(k,h,C,j=0,A=0)=>{const M=Gm(k),{delay:W=0,times:O=ps(M),type:J="keyframes",repeat:Y,repeatType:F,repeatDelay:ee=0,...ie}=h;let{ease:G=t.ease||"easeOut",duration:q}=h;const Z=typeof W=="function"?W(j,A):W,v=M.length,E=Bi(J)?J:r?.[J||"keyframes"];if(v<=2&&E){let z=100;if(v===2&&Qm(M)){const _=M[1]-M[0];z=Math.abs(_)}const K={...ie};q!==void 0&&(K.duration=Pe(q));const $=ls(K,z,E);G=$.ease,q=$.duration}q??(q=o);const I=d+Z;O.length===1&&O[0]===0&&(O[1]=1);const V=O.length-M.length;if(V>0&&ds(O,V),M.length===1&&M.unshift(null),Y){Ee(Y<Ym,"Repeat count too high, must be less than 20","repeat-count-high"),q=$m(q,Y);const z=[...M],K=[...O];G=Array.isArray(G)?[...G]:[G];const $=[...G];for(let _=0;_<Y;_++){M.push(...z);for(let X=0;X<z.length;X++)O.push(K[X]+(_+1)),G.push(X===0?"linear":Uo($,X-1))}qm(O,Y)}const L=I+q;Um(C,M,G,O,I,L),T=Math.max(Z+q,T),f=Math.max(L,f)};if(he(y)){const k=Dl(y,a);b(w,g,Rl("default",k))}else{const k=Pl(y,w,i,l),h=k.length;for(let C=0;C<h;C++){w=w,g=g;const j=k[C],A=Dl(j,a);for(const M in w)b(w[M],Zm(g,M),Rl(M,A),C,h)}}c=d,d+=T}return a.forEach((m,x)=>{for(const y in m){const w=m[y];w.sort(Km);const g=[],T=[],b=[];for(let h=0;h<w.length;h++){const{at:C,value:j,easing:A}=w[h];g.push(j),T.push(wt(0,f,C)),b.push(A||"easeOut")}T[0]!==0&&(T.unshift(0),g.unshift(g[0]),b.unshift(Hm)),T[T.length-1]!==1&&(T.push(1),g.push(null)),s.has(x)||s.set(x,{keyframes:{},transition:{}});const k=s.get(x);k.keyframes[y]=g,k.transition[y]={...t,duration:f,ease:b,times:T,...n}}}),s}function Dl(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Rl(e,t){return t[e]||(t[e]=[]),t[e]}function Gm(e){return Array.isArray(e)?e:[e]}function Zm(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Jm=e=>typeof e=="number",Qm=e=>e.every(Jm);function eh(e,t){return e in t}class th extends Ta{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(eh(n,t)){const i=t[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return ue()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function nh(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Xi(e)&&!Us(e)?new Ca(t):new ja(t);n.mount(e),en.set(e,n)}function ih(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new th(t);n.mount(e),en.set(e,n)}function rh(e,t){return he(e)||typeof e=="number"||typeof e=="string"&&!kr(t)}function Ml(e,t,n,i){const r=[];if(rh(e,t))r.push(Ga(e,kr(t)&&t.default||t,n&&(n.default||n)));else{const o=Pl(e,t,i),s=o.length;Ee(!!s,"No valid elements provided.","no-valid-elements");for(let a=0;a<s;a++){const l=o[a];Ee(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const u=l instanceof Element?nh:ih;en.has(l)||u(l);const c=en.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,s)),r.push(...fr(c,{...t,transition:d},{}))}}return r}function oh(e,t,n){const i=[];return Xm(e,t,n,{spring:Gt}).forEach(({keyframes:o,transition:s},a)=>{i.push(...Ml(a,o,s))}),i}function sh(e){return Array.isArray(e)&&e.some(Array.isArray)}function ah(e){function t(n,i,r){let o=[];return sh(n)?o=oh(n,i,e):o=Ml(n,i,r,e),new Ud(o)}return t}const lh=ah(),ch=["polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)","polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)","polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)","polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)","polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)"],It=e=>{const{speed:t=1,className:n}=e,i=1/t,r=2/t;return p.jsx(Pn,{children:p.jsx(ct.div,{role:"status",className:N("relative rounded-full",n),animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:i},children:p.jsx(ct.div,{className:"absolute inset-0 rounded-full",style:{boxSizing:"border-box",borderStyle:"solid",borderWidth:2},animate:{clipPath:ch},transition:{repeat:1/0,ease:"linear",duration:r,times:[0,.25,.5,.75,1]}})})})},Qe={sm:"h-[var(--control-size-sm-height)]",md:"h-[var(--control-size-md-height)]",lg:"h-[var(--control-size-lg-height)]"},uh={sm:"min-h-[var(--control-size-sm-height)]",md:"min-h-[var(--control-size-md-height)]",lg:"min-h-[var(--control-size-lg-height)]"},Ue={sm:"text-[length:var(--control-size-sm-font-size)]",md:"text-[length:var(--control-size-md-font-size)]",lg:"text-[length:var(--control-size-lg-font-size)]"},dh={sm:"gap-[var(--control-size-sm-gap)]",md:"gap-[var(--control-size-md-gap)]",lg:"gap-[var(--control-size-lg-gap)]"},ph={sm:"px-[var(--control-size-sm-px)]",md:"px-[var(--control-size-md-px)]",lg:"px-[var(--control-size-lg-px)]"},ut={sm:"pl-[var(--control-size-sm-px)]",md:"pl-[var(--control-size-md-px)]",lg:"pl-[var(--control-size-lg-px)]"},jr={sm:"pr-[var(--control-size-sm-px)]",md:"pr-[var(--control-size-md-px)]",lg:"pr-[var(--control-size-lg-px)]"},dt={sm:"pr-[calc(var(--control-size-sm-px)+2rem)]",md:"pr-[calc(var(--control-size-md-px)+2rem)]",lg:"pr-[calc(var(--control-size-lg-px)+2rem)]"},Ol={sm:"pl-[calc(var(--control-size-sm-icon-offset)+var(--control-size-sm-icon)+0.75rem)]",md:"pl-[calc(var(--control-size-md-icon-offset)+var(--control-size-md-icon)+0.75rem)]",lg:"pl-[calc(var(--control-size-lg-icon-offset)+var(--control-size-lg-icon)+0.75rem)]"},Il={sm:"left-[var(--control-size-sm-icon-offset)]",md:"left-[var(--control-size-md-icon-offset)]",lg:"left-[var(--control-size-lg-icon-offset)]"},fh={sm:"right-[var(--control-size-sm-px)]",md:"right-[var(--control-size-md-px)]",lg:"right-[var(--control-size-lg-px)]"},pt={sm:"h-[var(--control-size-sm-icon)] w-[var(--control-size-sm-icon)]",md:"h-[var(--control-size-md-icon)] w-[var(--control-size-md-icon)]",lg:"h-[var(--control-size-lg-icon)] w-[var(--control-size-lg-icon)]"},Nl={sm:"h-[var(--control-size-sm-height)] w-[var(--control-size-sm-height)]",md:"h-[var(--control-size-md-height)] w-[var(--control-size-md-height)]",lg:"h-[var(--control-size-lg-height)] w-[var(--control-size-lg-height)]"},mh=`
|
|
31
31
|
inline-flex flex-row items-center justify-center
|
|
32
32
|
button-ring font-semibold ring-0 disabled:hover:ring-0 hover:ring-4 active:ring-1
|
|
33
33
|
rounded-[var(--border-radius-input)]
|
|
34
34
|
cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-4
|
|
35
35
|
disabled:cursor-default
|
|
36
|
-
`,
|
|
36
|
+
`,hh={primary:"border button-primary shadow-sm",secondary:"border button-secondary shadow-sm",tertiary:"border button-tertiary",white:"border button-white shadow-sm",black:"border button-black shadow-sm",transparent:"border button-transparent"},Fl=P.forwardRef((e,t)=>{const{variant:n="white",size:i="md",className:r,children:o,loading:s=!1,Icon:a,...l}=e;return p.jsxs("button",{ref:t,className:N(mh,hh[n],Qe[i],ph[i],Ue[i],dh[i],r),...l,children:[s&&p.jsx(It,{className:N(pt[i])}),!s&&p.jsxs(p.Fragment,{children:[a&&p.jsx(a,{className:N(pt[i],"-ml-1")}),o]})]})}),gh=`
|
|
37
37
|
inline-flex flex-row items-center justify-center
|
|
38
38
|
button-ring font-semibold ring-0 disabled:hover:ring-0 hover:ring-4 active:ring-1
|
|
39
39
|
rounded-[var(--border-radius-input)]
|
|
40
40
|
cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-4
|
|
41
41
|
disabled:cursor-default
|
|
42
|
-
`,
|
|
42
|
+
`,vh={primary:"border button-primary shadow-sm",secondary:"border button-secondary shadow-sm",tertiary:"border button-tertiary",white:"border button-white shadow-sm",black:"border button-black shadow-sm",transparent:"border button-transparent"},Vn=P.forwardRef((e,t)=>{const{variant:n="white",size:i="md",className:r,Icon:o,...s}=e;return p.jsx("button",{ref:t,className:N(gh,vh[n],Nl[i],r),...s,children:p.jsx(o,{className:pt[i]})})}),xh=`
|
|
43
43
|
inline-flex flex-row items-center justify-center
|
|
44
44
|
button-ring font-semibold ring-0 disabled:hover:ring-0 hover:ring-4 active:ring-1 rounded-full cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-4
|
|
45
45
|
disabled:cursor-default
|
|
46
|
-
`,
|
|
46
|
+
`,yh={primary:"border button-primary shadow-sm",secondary:"border button-secondary shadow-sm",tertiary:"border button-tertiary",white:"border button-white shadow-sm",black:"border button-black shadow-sm",transparent:"border button-transparent"},Er=P.forwardRef((e,t)=>{const{variant:n="white",size:i="md",className:r,Icon:o,...s}=e;return p.jsx("button",{ref:t,className:N(xh,yh[n],Nl[i],r),...s,children:p.jsx(o,{className:pt[i]})})});/**
|
|
47
47
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var bh={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
|
|
52
52
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const fe=(e,t,n,i)=>{const r=S.forwardRef(({color:o="currentColor",size:s=24,stroke:a=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...
|
|
56
|
+
*/const fe=(e,t,n,i)=>{const r=S.forwardRef(({color:o="currentColor",size:s=24,stroke:a=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...bh[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),...e==="filled"?{fill:o}:{strokeWidth:a,stroke:o},...d},[l&&S.createElement("title",{key:"svg-title"},l),...i.map(([m,x])=>S.createElement(m,x)),...Array.isArray(c)?c:[c]]));return r.displayName=`${n}`,r};/**
|
|
57
57
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the MIT license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const wh=fe("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/**
|
|
62
62
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the MIT license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const ln=fe("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
|
|
67
67
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the MIT license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const Th=fe("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/**
|
|
72
72
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const Sh=fe("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
|
|
77
77
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const kh=fe("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);/**
|
|
82
82
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const jh=fe("outline","eye-off","EyeOff",[["path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828",key:"svg-0"}],["path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]]);/**
|
|
87
87
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the MIT license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const Eh=fe("outline","eye","Eye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
|
|
92
92
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the MIT license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const Vl=fe("outline","list","List",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]]);/**
|
|
97
97
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the MIT license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const Ch=fe("outline","paperclip","Paperclip",[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]]);/**
|
|
102
102
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the MIT license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const Ll=fe("outline","plus","Plus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
|
|
107
107
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the MIT license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const _l=fe("outline","search-off","SearchOff",[["path",{d:"M5.039 5.062a7 7 0 0 0 9.91 9.89m1.584 -2.434a7 7 0 0 0 -9.038 -9.057",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]]);/**
|
|
112
112
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the MIT license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const Cr=fe("outline","search","Search",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/**
|
|
117
117
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the MIT license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const zl=fe("outline","settings","Settings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]);/**
|
|
122
122
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the MIT license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const Ph=fe("outline","trash","Trash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
|
|
127
127
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the MIT license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const ft=fe("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);/**
|
|
132
132
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the MIT license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const Ah=fe("filled","alert-triangle-filled","AlertTriangleFilled",[["path",{d:"M12 1.67c.955 0 1.845 .467 2.39 1.247l.105 .16l8.114 13.548a2.914 2.914 0 0 1 -2.307 4.363l-.195 .008h-16.225a2.914 2.914 0 0 1 -2.582 -4.2l.099 -.185l8.11 -13.538a2.914 2.914 0 0 1 2.491 -1.403zm.01 13.33l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -7a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",key:"svg-0"}]]);/**
|
|
137
137
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the MIT license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const Pr=fe("filled","circle-check-filled","CircleCheckFilled",[["path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z",key:"svg-0"}]]);/**
|
|
142
142
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the MIT license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const Ar=fe("filled","exclamation-circle-filled","ExclamationCircleFilled",[["path",{d:"M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336m-5 11.66a1 1 0 0 0 -1 1v.01a1 1 0 0 0 2 0v-.01a1 1 0 0 0 -1 -1m0 -7a1 1 0 0 0 -1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0 -1 -1",key:"svg-0"}]]);/**
|
|
147
147
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the MIT license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
151
|
+
*/const Dh=fe("filled","info-circle-filled","InfoCircleFilled",[["path",{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",key:"svg-0"}]]);/**
|
|
152
152
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the MIT license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const Rh=fe("filled","mail-filled","MailFilled",[["path",{d:"M22 7.535v9.465a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-9.465l9.445 6.297l.116 .066a1 1 0 0 0 .878 0l.116 -.066l9.445 -6.297z",key:"svg-0"}],["path",{d:"M19 4c1.08 0 2.027 .57 2.555 1.427l-9.555 6.37l-9.555 -6.37a2.999 2.999 0 0 1 2.354 -1.42l.201 -.007h14z",key:"svg-1"}]]),Fe=e=>{const{children:t}=e;return t?p.jsx("label",{className:"input-label font-medium mb-1",children:t}):null},qe=()=>p.jsx("div",{className:"h-5 w-5",children:p.jsx(Ar,{className:"h-5 w-5 input-error-icon"})}),Ke=S.createContext("md"),Mh=()=>S.useContext(Ke),et=e=>{const{children:t,className:n}=e,i=Mh();return p.jsx("div",{className:N("absolute top-1/2 -translate-y-1/2 flex flex-row items-center gap-1",fh[i],n),children:t})},Se=e=>{const{children:t}=e;return t?p.jsx("div",{className:"input-description text-sm font-medium mt-2",children:t}):null},ke=e=>{const{children:t}=e;return t?p.jsx("div",{className:"input-error-text text-sm font-medium mt-2",children:t}):null},Dr=e=>{const{className:t,label:n,description:i,Icon:r,error:o,buttonTray:s,size:a="md",...l}=e,u=!!o||!!s;return p.jsx(Ke.Provider,{value:a,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"flex flex-col relative",children:[r&&p.jsx(r,{className:N("input-icon absolute top-1/2 -translate-y-1/2",pt[a],Il[a])}),p.jsx("input",{className:N("border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",Qe[a],Ue[a],r?Ol[a]:ut[a],u?dt[a]:jr[a],o&&"input-error"),...l}),p.jsxs(et,{children:[o&&p.jsx(qe,{}),s]})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:o})]})})},Oh="flex flex-col dropdown-panel border mt-1 rounded-xl shadow-lg overflow-y-auto relative space-y-1",Ih={sm:"p-2",md:"p-3",lg:"p-4"},mt=e=>{const{className:t,children:n,padding:i="md",...r}=e;return p.jsx("div",{className:N(Oh,Ih[i],t),...r,children:n})};function Ln(){return typeof window<"u"}function Nt(e){return Rr(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=(Rr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rr(e){return Ln()?e instanceof Node||e instanceof je(e).Node:!1}function ye(e){return Ln()?e instanceof Element||e instanceof je(e).Element:!1}function Le(e){return Ln()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function Mr(e){return!Ln()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}const Nh=new Set(["inline","contents"]);function cn(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Nh.has(r)}const Fh=new Set(["table","td","th"]);function Vh(e){return Fh.has(Nt(e))}const Lh=[":popover-open",":modal"];function _n(e){return Lh.some(t=>{try{return e.matches(t)}catch{return!1}})}const _h=["transform","translate","scale","rotate","perspective"],zh=["transform","translate","scale","rotate","perspective","filter"],Bh=["paint","layout","strict","content"];function Or(e){const t=Ir(),n=ye(e)?Oe(e):e;return _h.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zh.some(i=>(n.willChange||"").includes(i))||Bh.some(i=>(n.contain||"").includes(i))}function $h(e){let t=tt(e);for(;Le(t)&&!Ft(t);){if(Or(t))return t;if(_n(t))return null;t=tt(t)}return null}function Ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Wh=new Set(["html","body","#document"]);function Ft(e){return Wh.has(Nt(e))}function Oe(e){return je(e).getComputedStyle(e)}function zn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tt(e){if(Nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mr(e)&&e.host||Ve(e);return Mr(t)?t.host:t}function Bl(e){const t=tt(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&cn(t)?t:Bl(t)}function un(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Bl(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=je(r);if(o){const a=Nr(s);return t.concat(s,s.visualViewport||[],cn(r)?r:[],a&&n?un(a):[])}return t.concat(r,un(r,[],n))}function Nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const dn=Math.min,Re=Math.max,Bn=Math.round,$n=Math.floor,_e=e=>({x:e,y:e});function $l(e,t){return typeof e=="function"?e(t):e}function Fr(e){return e.split("-")[0]}function Wl(e){return e.split("-")[1]}function Uh(e){return e==="x"?"y":"x"}function qh(e){return e==="y"?"height":"width"}const Kh=new Set(["top","bottom"]);function Vr(e){return Kh.has(Fr(e))?"y":"x"}function Hh(e){return Uh(Vr(e))}function Yh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xh(e){return typeof e!="number"?Yh(e):{top:e,right:e,bottom:e,left:e}}function Wn(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}/*!
|
|
157
|
+
* tabbable 6.2.0
|
|
158
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
159
|
+
*/var Gh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Lr=Gh.join(","),Ul=typeof Element>"u",pn=Ul?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Un=!Ul&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},qn=function e(t,n){var i;n===void 0&&(n=!0);var r=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),o=r===""||r==="true",s=o||n&&t&&e(t.parentNode);return s},Zh=function(t){var n,i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return i===""||i==="true"},Jh=function(t,n,i){if(qn(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Lr));return n&&pn.call(t,Lr)&&r.unshift(t),r=r.filter(i),r},Qh=function e(t,n,i){for(var r=[],o=Array.from(t);o.length;){var s=o.shift();if(!qn(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,i);i.flatten?r.push.apply(r,u):r.push({scopeParent:s,candidates:u})}else{var c=pn.call(s,Lr);c&&i.filter(s)&&(n||!t.includes(s))&&r.push(s);var d=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),f=!qn(d,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(d&&f){var m=e(d===!0?s.children:d.children,!0,i);i.flatten?r.push.apply(r,m):r.push({scopeParent:s,candidates:m})}else o.unshift.apply(o,s.children)}}return r},ql=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Kl=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Zh(t))&&!ql(t)?0:t.tabIndex},eg=function(t,n){var i=Kl(t);return i<0&&n&&!ql(t)?0:i},tg=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Hl=function(t){return t.tagName==="INPUT"},ng=function(t){return Hl(t)&&t.type==="hidden"},ig=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return n},rg=function(t,n){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===n)return t[i]},og=function(t){if(!t.name)return!0;var n=t.form||Un(t),i=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(t.name));else try{r=i(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=rg(r,t.form);return!o||o===t},sg=function(t){return Hl(t)&&t.type==="radio"},ag=function(t){return sg(t)&&!og(t)},lg=function(t){var n,i=t&&Un(t),r=(n=i)===null||n===void 0?void 0:n.host,o=!1;if(i&&i!==t){var s,a,l;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&r;){var u,c,d;i=Un(r),r=(u=i)===null||u===void 0?void 0:u.host,o=!!((c=r)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(r))}}return o},Yl=function(t){var n=t.getBoundingClientRect(),i=n.width,r=n.height;return i===0&&r===0},cg=function(t,n){var i=n.displayCheck,r=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=pn.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(pn.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=t;t;){var l=t.parentElement,u=Un(t);if(l&&!l.shadowRoot&&r(l)===!0)return Yl(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=a}if(lg(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Yl(t);return!1},ug=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var i=0;i<n.children.length;i++){var r=n.children.item(i);if(r.tagName==="LEGEND")return pn.call(n,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}n=n.parentElement}return!1},dg=function(t,n){return!(n.disabled||qn(n)||ng(n)||cg(n,t)||ig(n)||ug(n))},Xl=function(t,n){return!(ag(n)||Kl(n)<0||!dg(t,n))},pg=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},fg=function e(t){var n=[],i=[];return t.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,l=eg(a,s),u=s?e(r.candidates):a;l===0?s?n.push.apply(n,u):n.push(a):i.push({documentOrder:o,tabIndex:l,item:r,isScope:s,content:u})}),i.sort(tg).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),r},[]).concat(n)},Gl=function(t,n){n=n||{};var i;return n.getShadowRoot?i=Qh([t],n.includeContainer,{filter:Xl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:pg}):i=Jh(t,n.includeContainer,Xl.bind(null,n)),fg(i)};function mg(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function hg(){return/apple/i.test(navigator.vendor)}function gg(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function vg(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function _r(e){return e?.ownerDocument||document}var xg=typeof document<"u",yg=function(){},nt=xg?S.useLayoutEffect:yg;const bg={...P}.useInsertionEffect||(e=>e());function wg(e){const t=P.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return bg(()=>{t.current=e}),P.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}const Zl=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Jl(e,t){const n=Gl(e,Zl()),i=n.length;if(i===0)return;const r=gg(_r(e)),o=n.indexOf(r),s=o===-1?t===1?0:i-1:o+t;return n[s]}function Tg(e){return Jl(_r(e).body,1)||e}function Sg(e){return Jl(_r(e).body,-1)||e}function zr(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!vg(n,i)}function kg(e){Gl(e,Zl()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ql(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const i=n.dataset.tabindex;delete n.dataset.tabindex,i?n.setAttribute("tabindex",i):n.removeAttribute("tabindex")})}function ec(e,t,n){let{reference:i,floating:r}=e;const o=Vr(t),s=Hh(t),a=qh(s),l=Fr(t),u=o==="y",c=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let m;switch(l){case"top":m={x:c,y:i.y-r.height};break;case"bottom":m={x:c,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:d};break;case"left":m={x:i.x-r.width,y:d};break;default:m={x:i.x,y:i.y}}switch(Wl(t)){case"start":m[s]-=f*(n&&u?-1:1);break;case"end":m[s]+=f*(n&&u?-1:1);break}return m}const jg=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=ec(u,i,l),f=i,m={},x=0;for(let y=0;y<a.length;y++){const{name:w,fn:g}=a[y],{x:T,y:b,data:k,reset:h}=await g({x:c,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=T??c,d=b??d,m={...m,[w]:{...m[w],...k}},h&&x<=50&&(x++,typeof h=="object"&&(h.placement&&(f=h.placement),h.rects&&(u=h.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):h.rects),{x:c,y:d}=ec(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:m}};async function Eg(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=$l(t,e),x=Xh(m),w=a[f?d==="floating"?"reference":"floating":d],g=Wn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),T=d==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),k=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},h=Wn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:T,offsetParent:b,strategy:l}):T);return{top:(g.top-h.top+x.top)/k.y,bottom:(h.bottom-g.bottom+x.bottom)/k.y,left:(g.left-h.left+x.left)/k.x,right:(h.right-g.right+x.right)/k.x}}const Cg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=$l(e,t),c=await Eg(t,u),d=Fr(r),f=Wl(r),m=Vr(r)==="y",{width:x,height:y}=o.floating;let w,g;d==="top"||d==="bottom"?(w=d,g=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,w=f==="end"?"top":"bottom");const T=y-c.top-c.bottom,b=x-c.left-c.right,k=dn(y-c[w],T),h=dn(x-c[g],b),C=!t.middlewareData.shift;let j=k,A=h;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(j=T),C&&!f){const W=Re(c.left,0),O=Re(c.right,0),J=Re(c.top,0),Y=Re(c.bottom,0);m?A=x-2*(W!==0||O!==0?W+O:Re(c.left,c.right)):j=y-2*(J!==0||Y!==0?J+Y:Re(c.top,c.bottom))}await l({...t,availableWidth:A,availableHeight:j});const M=await s.getDimensions(a.floating);return x!==M.width||y!==M.height?{reset:{rects:!0}}:{}}}};function tc(e){const t=Oe(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Le(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Bn(n)!==o||Bn(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function Br(e){return ye(e)?e:e.contextElement}function Vt(e){const t=Br(e);if(!Le(t))return _e(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=tc(t);let s=(o?Bn(n.width):n.width)/i,a=(o?Bn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Pg=_e(0);function nc(e){const t=je(e);return!Ir()||!t.visualViewport?Pg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ag(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function ht(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Br(e);let s=_e(1);t&&(i?ye(i)&&(s=Vt(i)):s=Vt(e));const a=Ag(o,n,i)?nc(o):_e(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o){const f=je(o),m=i&&ye(i)?je(i):i;let x=f,y=Nr(x);for(;y&&i&&m!==x;){const w=Vt(y),g=y.getBoundingClientRect(),T=Oe(y),b=g.left+(y.clientLeft+parseFloat(T.paddingLeft))*w.x,k=g.top+(y.clientTop+parseFloat(T.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=b,u+=k,x=je(y),y=Nr(x)}}return Wn({width:c,height:d,x:l,y:u})}function Kn(e,t){const n=zn(e).scrollLeft;return t?t.left+n:ht(Ve(e)).left+n}function ic(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Kn(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function Dg(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=r==="fixed",s=Ve(i),a=t?_n(t.floating):!1;if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=_e(1);const c=_e(0),d=Le(i);if((d||!d&&!o)&&((Nt(i)!=="body"||cn(s))&&(l=zn(i)),Le(i))){const m=ht(i);u=Vt(i),c.x=m.x+i.clientLeft,c.y=m.y+i.clientTop}const f=s&&!d&&!o?ic(s,l):_e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function Rg(e){return Array.from(e.getClientRects())}function Mg(e){const t=Ve(e),n=zn(e),i=e.ownerDocument.body,r=Re(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Re(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Kn(e);const a=-n.scrollTop;return Oe(i).direction==="rtl"&&(s+=Re(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}const rc=25;function Og(e,t){const n=je(e),i=Ve(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const c=Ir();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=Kn(i);if(u<=0){const c=i.ownerDocument,d=c.body,f=getComputedStyle(d),m=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,x=Math.abs(i.clientWidth-d.clientWidth-m);x<=rc&&(o-=x)}else u<=rc&&(o+=u);return{width:o,height:s,x:a,y:l}}const Ig=new Set(["absolute","fixed"]);function Ng(e,t){const n=ht(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=Le(e)?Vt(e):_e(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:s,height:a,x:l,y:u}}function oc(e,t,n){let i;if(t==="viewport")i=Og(e,n);else if(t==="document")i=Mg(Ve(e));else if(ye(t))i=Ng(t,n);else{const r=nc(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Wn(i)}function sc(e,t){const n=tt(e);return n===t||!ye(n)||Ft(n)?!1:Oe(n).position==="fixed"||sc(n,t)}function Fg(e,t){const n=t.get(e);if(n)return n;let i=un(e,[],!1).filter(a=>ye(a)&&Nt(a)!=="body"),r=null;const o=Oe(e).position==="fixed";let s=o?tt(e):e;for(;ye(s)&&!Ft(s);){const a=Oe(s),l=Or(s);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&!!r&&Ig.has(r.position)||cn(s)&&!l&&sc(e,s))?i=i.filter(c=>c!==s):r=a,s=tt(s)}return t.set(e,i),i}function Vg(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?_n(t)?[]:Fg(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((u,c)=>{const d=oc(t,c,r);return u.top=Re(d.top,u.top),u.right=dn(d.right,u.right),u.bottom=dn(d.bottom,u.bottom),u.left=Re(d.left,u.left),u},oc(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Lg(e){const{width:t,height:n}=tc(e);return{width:t,height:n}}function _g(e,t,n){const i=Le(t),r=Ve(t),o=n==="fixed",s=ht(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=_e(0);function u(){l.x=Kn(r)}if(i||!i&&!o)if((Nt(t)!=="body"||cn(r))&&(a=zn(t)),i){const m=ht(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&u();o&&!i&&r&&u();const c=r&&!i&&!o?ic(r,a):_e(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function $r(e){return Oe(e).position==="static"}function ac(e,t){if(!Le(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ve(e)===n&&(n=n.ownerDocument.body),n}function lc(e,t){const n=je(e);if(_n(e))return n;if(!Le(e)){let r=tt(e);for(;r&&!Ft(r);){if(ye(r)&&!$r(r))return r;r=tt(r)}return n}let i=ac(e,t);for(;i&&Vh(i)&&$r(i);)i=ac(i,t);return i&&Ft(i)&&$r(i)&&!Or(i)?n:i||$h(e)||n}const zg=async function(e){const t=this.getOffsetParent||lc,n=this.getDimensions,i=await n(e.floating);return{reference:_g(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Bg(e){return Oe(e).direction==="rtl"}const $g={convertOffsetParentRelativeRectToViewportRelativeRect:Dg,getDocumentElement:Ve,getClippingRect:Vg,getOffsetParent:lc,getElementRects:zg,getClientRects:Rg,getDimensions:Lg,getScale:Vt,isElement:ye,isRTL:Bg};function cc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wg(e,t){let n=null,i;const r=Ve(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:m}=u;if(a||t(),!f||!m)return;const x=$n(d),y=$n(r.clientWidth-(c+f)),w=$n(r.clientHeight-(d+m)),g=$n(c),b={rootMargin:-x+"px "+-y+"px "+-w+"px "+-g+"px",threshold:Re(0,dn(1,l))||1};let k=!0;function h(C){const j=C[0].intersectionRatio;if(j!==l){if(!k)return s();j?s(!1,j):i=setTimeout(()=>{s(!1,1e-7)},1e3)}j===1&&!cc(u,e.getBoundingClientRect())&&s(),k=!1}try{n=new IntersectionObserver(h,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(h,b)}n.observe(e)}return s(!0),o}function Ug(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=Br(e),c=r||o?[...u?un(u):[],...un(t)]:[];c.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const d=u&&a?Wg(u,n):null;let f=-1,m=null;s&&(m=new ResizeObserver(g=>{let[T]=g;T&&T.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let x,y=l?ht(e):null;l&&w();function w(){const g=ht(e);y&&!cc(y,g)&&n(),y=g,x=requestAnimationFrame(w)}return n(),()=>{var g;c.forEach(T=>{r&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(x)}}const qg=Cg,Kg=(e,t,n)=>{const i=new Map,r={platform:$g,...n},o={...r.platform,_c:i};return jg(e,t,{...r,platform:o})};var Hg=typeof document<"u",Yg=function(){},Hn=Hg?S.useLayoutEffect:Yg;function Yn(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,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Yn(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!Yn(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function uc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dc(e,t){const n=uc(e);return Math.round(t*n)/n}function Wr(e){const t=P.useRef(e);return Hn(()=>{t.current=e}),t}function Xg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=P.useState(i);Yn(f,i)||m(i);const[x,y]=P.useState(null),[w,g]=P.useState(null),T=P.useCallback(q=>{q!==C.current&&(C.current=q,y(q))},[]),b=P.useCallback(q=>{q!==j.current&&(j.current=q,g(q))},[]),k=o||x,h=s||w,C=P.useRef(null),j=P.useRef(null),A=P.useRef(c),M=l!=null,W=Wr(l),O=Wr(r),J=Wr(u),Y=P.useCallback(()=>{if(!C.current||!j.current)return;const q={placement:t,strategy:n,middleware:f};O.current&&(q.platform=O.current),Kg(C.current,j.current,q).then(Z=>{const v={...Z,isPositioned:J.current!==!1};F.current&&!Yn(A.current,v)&&(A.current=v,So.flushSync(()=>{d(v)}))})},[f,t,n,O,J]);Hn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[u]);const F=P.useRef(!1);Hn(()=>(F.current=!0,()=>{F.current=!1}),[]),Hn(()=>{if(k&&(C.current=k),h&&(j.current=h),k&&h){if(W.current)return W.current(k,h,Y);Y()}},[k,h,Y,W,M]);const ee=P.useMemo(()=>({reference:C,floating:j,setReference:T,setFloating:b}),[T,b]),ie=P.useMemo(()=>({reference:k,floating:h}),[k,h]),G=P.useMemo(()=>{const q={position:n,left:0,top:0};if(!ie.floating)return q;const Z=dc(ie.floating,c.x),v=dc(ie.floating,c.y);return a?{...q,transform:"translate("+Z+"px, "+v+"px)",...uc(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:v}},[n,a,ie.floating,c.x,c.y]);return P.useMemo(()=>({...c,update:Y,refs:ee,elements:ie,floatingStyles:G}),[c,Y,ee,ie,G])}const Gg=(e,t)=>({...qg(e),options:[e,t]}),Zg={...P};let pc=!1,Jg=0;const fc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Jg++;function Qg(){const[e,t]=P.useState(()=>pc?fc():void 0);return nt(()=>{e==null&&t(fc())},[]),P.useEffect(()=>{pc=!0},[]),e}const mc=Zg.useId||Qg;let Ur;process.env.NODE_ENV!=="production"&&(Ur=new Set);function ev(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r="Floating UI: "+n.join(" ");if(!((e=Ur)!=null&&e.has(r))){var o;(o=Ur)==null||o.add(r),console.error(r)}}function tv(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var i;(i=e.get(t))==null||i.delete(n)}}}const nv=P.createContext(null),iv=P.createContext(null),rv=()=>{var e;return((e=P.useContext(nv))==null?void 0:e.id)||null},ov=()=>P.useContext(iv);function hc(e){return"data-floating-ui-"+e}const gc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},vc=P.forwardRef(function(t,n){const[i,r]=P.useState();nt(()=>{hg()&&r("button")},[]);const o={ref:n,tabIndex:0,role:i,"aria-hidden":i?void 0:!0,[hc("focus-guard")]:"",style:gc};return p.jsx("span",{...t,...o})}),xc=P.createContext(null),yc=hc("portal");function sv(e){e===void 0&&(e={});const{id:t,root:n}=e,i=mc(),r=av(),[o,s]=P.useState(null),a=P.useRef(null);return nt(()=>()=>{o?.remove(),queueMicrotask(()=>{a.current=null})},[o]),nt(()=>{if(!i||a.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=i,u.setAttribute(yc,""),l.appendChild(u),a.current=u,s(u)},[t,i]),nt(()=>{if(n===null||!i||a.current)return;let l=n||r?.portalNode;l&&!Rr(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=i,c.setAttribute(yc,""),l=u||l,l.appendChild(c),a.current=c,s(c)},[t,n,i,r]),o}function qr(e){const{children:t,id:n,root:i,preserveTabOrder:r=!0}=e,o=sv({id:n,root:i}),[s,a]=P.useState(null),l=P.useRef(null),u=P.useRef(null),c=P.useRef(null),d=P.useRef(null),f=s?.modal,m=s?.open,x=!!s&&!s.modal&&s.open&&r&&!!(i||o);return P.useEffect(()=>{if(!o||!r||f)return;function y(w){o&&zr(w)&&(w.type==="focusin"?Ql:kg)(o)}return o.addEventListener("focusin",y,!0),o.addEventListener("focusout",y,!0),()=>{o.removeEventListener("focusin",y,!0),o.removeEventListener("focusout",y,!0)}},[o,r,f]),P.useEffect(()=>{o&&(m||Ql(o))},[m,o]),p.jsxs(xc.Provider,{value:P.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:a}),[r,o]),children:[x&&o&&p.jsx(vc,{"data-type":"outside",ref:l,onFocus:y=>{if(zr(y,o)){var w;(w=c.current)==null||w.focus()}else{const g=s?s.domReference:null,T=Sg(g);T?.focus()}}}),x&&o&&p.jsx("span",{"aria-owns":o.id,style:gc}),o&&So.createPortal(t,o),x&&o&&p.jsx(vc,{"data-type":"outside",ref:u,onFocus:y=>{if(zr(y,o)){var w;(w=d.current)==null||w.focus()}else{const g=s?s.domReference:null,T=Tg(g);T?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,y.nativeEvent,"focus-out")}}})]})}const av=()=>P.useContext(xc);let Xn=0;const bc="--floating-ui-scrollbar-width";function lv(){const e=mg(),t=/iP(hone|ad|od)|iOS/.test(e)||e==="MacIntel"&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,s=n.left?parseFloat(n.left):window.scrollX,a=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(bc,o+"px"),o&&(n[r]=o+"px"),t){var l,u;const c=((l=window.visualViewport)==null?void 0:l.offsetLeft)||0,d=((u=window.visualViewport)==null?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(a-Math.floor(d))+"px",left:-(s-Math.floor(c))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(bc),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(s,a))}}let wc=()=>{};const Kr=P.forwardRef(function(t,n){const{lockScroll:i=!1,...r}=t;return nt(()=>{if(i)return Xn++,Xn===1&&(wc=lv()),()=>{Xn--,Xn===0&&wc()}},[i]),p.jsx("div",{ref:n,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function cv(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=mc(),o=P.useRef({}),[s]=P.useState(()=>tv()),a=rv()!=null;if(process.env.NODE_ENV!=="production"){const m=i.reference;m&&!ye(m)&&ev("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=P.useState(i.reference),c=wg((m,x,y)=>{o.current.openEvent=m?x:void 0,s.emit("openchange",{open:m,event:x,reason:y,nested:a}),n?.(m,x,y)}),d=P.useMemo(()=>({setPositionReference:u}),[]),f=P.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return P.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:s,floatingId:r,refs:d}),[t,c,f,s,r,d])}function uv(e){e===void 0&&(e={});const{nodeId:t}=e,n=cv({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[o,s]=P.useState(null),[a,l]=P.useState(null),c=r?.domReference||o,d=P.useRef(null),f=ov();nt(()=>{c&&(d.current=c)},[c]);const m=Xg({...e,elements:{...r,...a&&{reference:a}}}),x=P.useCallback(b=>{const k=ye(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;l(k),m.refs.setReference(k)},[m.refs]),y=P.useCallback(b=>{(ye(b)||b===null)&&(d.current=b,s(b)),(ye(m.refs.reference.current)||m.refs.reference.current===null||b!==null&&!ye(b))&&m.refs.setReference(b)},[m.refs]),w=P.useMemo(()=>({...m.refs,setReference:y,setPositionReference:x,domReference:d}),[m.refs,y,x]),g=P.useMemo(()=>({...m.elements,domReference:c}),[m.elements,c]),T=P.useMemo(()=>({...m,...i,refs:w,elements:g,nodeId:t}),[m,w,g,t,i]);return nt(()=>{i.dataRef.current.floatingContext=T;const b=f?.nodesRef.current.find(k=>k.id===t);b&&(b.context=T)}),P.useMemo(()=>({...m,context:T,refs:w,elements:g}),[m,w,g,T])}const dv={top:"bottom center","top-start":"bottom left","top-end":"bottom right",right:"left center","right-start":"top left","right-end":"bottom left",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"top right","left-end":"bottom right"},Tc=P.memo(({open:e,children:t,className:n,onOutsideClick:i,floatingStyles:r,setFloating:o,placement:s})=>p.jsx(qr,{children:p.jsx(Pn,{children:e&&p.jsxs(p.Fragment,{children:[i&&p.jsx(Kr,{onClick:i}),p.jsx("div",{ref:o,style:r,className:"z-50",children:p.jsx(ct.div,{className:n,style:{transformOrigin:dv[s]},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeInOut"},children:t})})]})})})),gt=e=>{const{placement:t="bottom",onOutsideClick:n,fullWidth:i,minWidth:r,maxWidth:o}=e,s=P.useMemo(()=>[Gg({apply({rects:d,elements:f}){i&&(f.floating.style.width=`${d.reference.width}px`),r&&(f.floating.style.minWidth=`${r}px`),o&&(f.floating.style.maxWidth=`${o}px`)}})],[i,o,r]),{refs:a,floatingStyles:l}=uv({placement:t,middleware:s,whileElementsMounted:Ug}),u=P.useRef({onOutsideClick:n,floatingStyles:l,setFloating:a.setFloating,placement:t});u.current={onOutsideClick:n,floatingStyles:l,setFloating:a.setFloating,placement:t};const c=P.useMemo(()=>{const d=f=>{const{floatingStyles:m,setFloating:x,onOutsideClick:y,placement:w}=u.current,{className:g,open:T,children:b}=f;return p.jsx(Tc,{open:T,className:g,onOutsideClick:y,floatingStyles:m,setFloating:x,placement:w,children:b})};return P.memo(d)},[]);return{anchorRef:a.setReference,Popover:c}},Lt=(e,t)=>{S.useEffect(()=>{if(!e)return;const n=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e,t])},pv=e=>{const t=e.match(/^#?([0-9a-fA-F]{6})$/);if(!t)return null;const n=parseInt(t[1],16);return[(n>>16&255)/255,(n>>8&255)/255,(n&255)/255]},fv=(e,t,n)=>{const i=r=>Math.round(r*255).toString(16).padStart(2,"0").toUpperCase();return"#"+i(e)+i(t)+i(n)},mv=(e,t,n)=>{const i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;let s=0;return o!==0&&(i===e?s=((t-n)/o+6)%6:i===t?s=(n-e)/o+2:s=(e-t)/o+4,s*=60),[s,i===0?0:o/i,i]},hv=(e,t,n)=>{const i=n*t,r=e/60,o=i*(1-Math.abs(r%2-1));let s=0,a=0,l=0;r<1?(s=i,a=o):r<2?(s=o,a=i):r<3?(a=i,l=o):r<4?(a=o,l=i):r<5?(s=o,l=i):(s=i,l=o);const u=n-i;return[s+u,a+u,l+u]},fn=(e,t,n)=>{const[i,r,o]=hv(e,t,n);return fv(i,r,o)},Sc=e=>{const t=pv(e);return t?mv(t[0],t[1],t[2]):null},gv=e=>{const t=e.trim();if(!t)return null;const n=t.match(/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);if(n){let s=n[1];return s.length===3&&(s=s.split("").map(a=>a+a).join("")),"#"+s.toUpperCase()}if(typeof document>"u")return null;const i=document.createElement("div");if(i.style.color=t,!i.style.color)return null;document.body.appendChild(i);const r=getComputedStyle(i).color;document.body.removeChild(i);const o=r.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return o?"#"+[o[1],o[2],o[3]].map(s=>parseInt(s,10).toString(16).padStart(2,"0")).join("").toUpperCase():null},kc=(e,t)=>{Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0}))},vv=({value:e,onChange:t})=>{const[n,i]=S.useState(()=>Sc(e)??[0,0,1]),r=S.useRef(fn(n[0],n[1],n[2]));S.useEffect(()=>{if((e||"").toUpperCase()===r.current)return;const C=Sc(e);C&&i(C)},[e]);const o=h=>{i(h);const C=fn(h[0],h[1],h[2]);r.current=C,t(C)},s=S.useRef(null),a=S.useRef(null),l=S.useRef(null),u=S.useRef(!1),c=S.useRef(!1),d=S.useRef(!1),f=(h,C)=>{if(!s.current)return;const j=s.current.getBoundingClientRect(),A=Math.max(0,Math.min(1,(h-j.left)/j.width)),M=Math.max(0,Math.min(1,(C-j.top)/j.height));o([n[0],A,1-M])},m=h=>{if(!a.current)return;const C=a.current.getBoundingClientRect(),j=Math.max(0,Math.min(1,(h-C.left)/C.width));o([j*360,n[1],n[2]])},x=h=>{if(!l.current)return;const C=l.current.getBoundingClientRect(),j=Math.max(0,Math.min(1,(h-C.left)/C.width));o([n[0],n[1],j])},[y,w,g]=n,T=fn(y,1,1),b=fn(y,w,1),k=fn(y,w,g);return p.jsxs("div",{className:"flex flex-col gap-3",style:{width:220,userSelect:"none"},onMouseDown:h=>h.preventDefault(),children:[p.jsxs("div",{ref:s,className:"relative w-full rounded-md overflow-hidden border color-picker-surface",style:{height:160,backgroundColor:T,touchAction:"none",cursor:"crosshair"},onPointerDown:h=>{h.currentTarget.setPointerCapture?.(h.pointerId),u.current=!0,f(h.clientX,h.clientY)},onPointerMove:h=>{u.current&&f(h.clientX,h.clientY)},onPointerUp:h=>{u.current=!1,h.currentTarget.releasePointerCapture?.(h.pointerId)},children:[p.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to right, #fff, rgba(255,255,255,0))"}}),p.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, #000, rgba(0,0,0,0))"}}),p.jsx("div",{className:"absolute pointer-events-none rounded-full border-2 border-white",style:{width:14,height:14,left:`calc(${w*100}% - 7px)`,top:`calc(${(1-g)*100}% - 7px)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.4)"}})]}),p.jsx("div",{ref:a,className:"relative w-full rounded-md",style:{height:12,background:"linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%)",touchAction:"none",cursor:"ew-resize"},onPointerDown:h=>{h.currentTarget.setPointerCapture?.(h.pointerId),c.current=!0,m(h.clientX)},onPointerMove:h=>{c.current&&m(h.clientX)},onPointerUp:h=>{c.current=!1,h.currentTarget.releasePointerCapture?.(h.pointerId)},children:p.jsx("div",{className:"absolute pointer-events-none rounded-full border-2 border-white",style:{width:14,height:14,top:-1,left:`calc(${y/360*100}% - 7px)`,backgroundColor:T,boxShadow:"0 0 0 1px rgba(0,0,0,0.4)"}})}),p.jsx("div",{ref:l,className:"relative w-full rounded-md",style:{height:12,background:`linear-gradient(to right, #000, ${b})`,touchAction:"none",cursor:"ew-resize"},onPointerDown:h=>{h.currentTarget.setPointerCapture?.(h.pointerId),d.current=!0,x(h.clientX)},onPointerMove:h=>{d.current&&x(h.clientX)},onPointerUp:h=>{d.current=!1,h.currentTarget.releasePointerCapture?.(h.pointerId)},children:p.jsx("div",{className:"absolute pointer-events-none rounded-full border-2 border-white",style:{width:14,height:14,top:-1,left:`calc(${g*100}% - 7px)`,backgroundColor:k,boxShadow:"0 0 0 1px rgba(0,0,0,0.4)"}})})]})},xv=e=>{const{className:t,label:n,description:i,error:r,buttonTray:o,size:s="md",value:a,defaultValue:l,onChange:u,onBlur:c,onFocus:d,...f}=e,[m,x]=S.useState(a!=null?String(a):l!=null?String(l):""),[y,w]=S.useState(!1),g=S.useRef(null),T=a!=null?String(a):m,b=T||"white";Lt(y,()=>w(!1));const{anchorRef:k,Popover:h}=gt({placement:"bottom-start",onOutsideClick:()=>w(!1)}),C=O=>{x(O.target.value),u?.(O)},j=O=>{w(!0),d?.(O)},A=O=>{const J=O.target.value,Y=gv(J);Y&&Y!==J&&g.current&&kc(g.current,Y),w(!1),c?.(O)},M=O=>{g.current&&kc(g.current,O)},W=!!r||!!o;return p.jsx(Ke.Provider,{value:s,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"flex flex-col relative",ref:k,children:[p.jsx("div",{className:N("absolute top-1/2 -translate-y-1/2 rounded-md border color-swatch",pt[s],Il[s]),style:{backgroundColor:b}}),p.jsx("input",{ref:g,className:N("border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",Qe[s],Ue[s],Ol[s],W?dt[s]:jr[s],r&&"input-error"),value:a??m,onChange:C,onFocus:j,onBlur:A,onClick:()=>w(!0),...f}),p.jsxs(et,{children:[r&&p.jsx(qe,{}),o]}),p.jsx(h,{open:y,children:p.jsx(mt,{children:p.jsx(vv,{value:T,onChange:M})})})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:r})]})})},He=e=>{const{onClick:t,Icon:n}=e;return p.jsx("div",{onClick:t,className:N("h-6 w-6 select-none rounded-full p-0.5",t&&"ring-0 transition-all duration-150 input-icon-button-interactive active:ring-2 cursor-pointer hover:ring-4 group"),children:p.jsx(n,{className:N("h-5 w-5 input-icon-button-icon",t&&"group-active:scale-[0.8] transition-transform origin-center")})})},yv=e=>{const{type:t="password",enableShowPasswordToggle:n=!0,...i}=e,[r,o]=S.useState(!1),s=()=>{o(!r)};return p.jsx(Dr,{type:r?"text":t,buttonTray:n?p.jsx(He,{Icon:r?jh:Eh,onClick:s}):void 0,...i})};function bv(e){return t=>{for(const n of e)Hr(n,t)}}function wv(e){return t=>{const n=[];for(const i of e){const r=Hr(i,t),o=typeof r=="function";n.push(o?r:()=>Hr(i,null))}return()=>{for(const i of n)i()}}}function Hr(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Tv=parseInt(S.version.split(".")[0],10)>=19?wv:bv;const Sv=e=>{const{className:t,label:n,description:i,error:r,size:o="md",autogrow:s=!1,ref:a,onChange:l,...u}=e,c=P.useRef(null),d=P.useCallback(()=>{const m=c.current;m&&(m.style.height="auto",m.style.height=`${m.scrollHeight}px`)},[]);P.useLayoutEffect(()=>{if(!s){c.current&&(c.current.style.height="");return}d()},[s,d,e.value,e.defaultValue,o]);const f=m=>{l?.(m),s&&d()};return p.jsx(Ke.Provider,{value:o,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"flex flex-col relative",children:[p.jsx("textarea",{ref:a?Tv([a,c]):c,onChange:f,className:N("py-2.5 border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",uh[o],Ue[o],ut[o],r?dt[o]:jr[o],r&&"input-error",s&&"resize-none overflow-hidden"),...u}),p.jsx(et,{className:"top-3.5 translate-y-0",children:r&&p.jsx(qe,{})})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:r})]})})},kv=e=>{const{className:t,label:n,description:i,error:r,...o}=e;return p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsxs("div",{className:"flex flex-row gap-3",children:[p.jsx("input",{type:"radio",className:"h-6 w-6 shrink-0 rounded-full border check-base shadow-sm ring-0 hover:ring-4 focus:ring-4 ring-offset-0 focus:outline-0 transition-all duration-150",...o}),n&&p.jsx("label",{htmlFor:e.id,className:N("input-label font-medium mb-1",e.id&&"cursor-pointer"),children:n})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:r})]})},jv=e=>{const{className:t,label:n,description:i,error:r,...o}=e;return p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsxs("div",{className:"flex flex-row gap-3",children:[p.jsxs("div",{className:"relative shrink-0 h-6 w-10",children:[p.jsx("input",{type:"checkbox",className:"appearance-none h-6 w-10 rounded-full checked:bg-transparent border toggle-input ring-0 hover:ring-4 focus:ring-4 ring-offset-0 focus:outline-0 transition-all duration-150",...o}),p.jsx("div",{className:N("rounded-full absolute border inset-0 mt-[2px] pointer-events-none transition-colors duration-150 ",e.checked?"toggle-track-on":"toggle-track-off"),children:p.jsx("div",{className:N("absolute top-1/2 -translate-y-1/2 left-1 h-4 w-4 rounded-full toggle-thumb shadow-md transition-all duration-150",e.checked&&"translate-x-3.5 ")})})]}),n&&p.jsx("label",{htmlFor:e.id,className:N("input-label font-medium mb-1",e.id&&"cursor-pointer"),children:n})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:r})]})},Ev=e=>{const{className:t,label:n,description:i,error:r,...o}=e;return p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsxs("div",{className:"flex flex-row gap-3",children:[p.jsx("input",{type:"checkbox",className:"h-6 w-6 shrink-0 rounded-lg border check-base shadow-sm ring-0 hover:ring-4 focus:ring-4 ring-offset-0 focus:outline-0 transition-all duration-150",...o}),n&&p.jsx("label",{htmlFor:e.id,className:N("input-label font-medium mb-1",e.id&&"cursor-pointer"),children:n})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:r})]})};var Gn={exports:{}},Zn={exports:{}},te={};/** @license React v16.13.1
|
|
157
160
|
* react-is.production.min.js
|
|
158
161
|
*
|
|
159
162
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
160
163
|
*
|
|
161
164
|
* This source code is licensed under the MIT license found in the
|
|
162
165
|
* LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/var
|
|
166
|
+
*/var jc;function Cv(){if(jc)return te;jc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(h){if(typeof h=="object"&&h!==null){var C=h.$$typeof;switch(C){case t:switch(h=h.type,h){case l:case u:case i:case o:case r:case d:return h;default:switch(h=h&&h.$$typeof,h){case a:case c:case x:case m:case s:return h;default:return C}}case n:return C}}}function k(h){return b(h)===u}return te.AsyncMode=l,te.ConcurrentMode=u,te.ContextConsumer=a,te.ContextProvider=s,te.Element=t,te.ForwardRef=c,te.Fragment=i,te.Lazy=x,te.Memo=m,te.Portal=n,te.Profiler=o,te.StrictMode=r,te.Suspense=d,te.isAsyncMode=function(h){return k(h)||b(h)===l},te.isConcurrentMode=k,te.isContextConsumer=function(h){return b(h)===a},te.isContextProvider=function(h){return b(h)===s},te.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},te.isForwardRef=function(h){return b(h)===c},te.isFragment=function(h){return b(h)===i},te.isLazy=function(h){return b(h)===x},te.isMemo=function(h){return b(h)===m},te.isPortal=function(h){return b(h)===n},te.isProfiler=function(h){return b(h)===o},te.isStrictMode=function(h){return b(h)===r},te.isSuspense=function(h){return b(h)===d},te.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===o||h===r||h===d||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===x||h.$$typeof===m||h.$$typeof===s||h.$$typeof===a||h.$$typeof===c||h.$$typeof===w||h.$$typeof===g||h.$$typeof===T||h.$$typeof===y)},te.typeOf=b,te}var ne={};/** @license React v16.13.1
|
|
164
167
|
* react-is.development.js
|
|
165
168
|
*
|
|
166
169
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
167
170
|
*
|
|
168
171
|
* This source code is licensed under the MIT license found in the
|
|
169
172
|
* LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/var
|
|
173
|
+
*/var Ec;function Pv(){return Ec||(Ec=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(D){return typeof D=="string"||typeof D=="function"||D===i||D===u||D===o||D===r||D===d||D===f||typeof D=="object"&&D!==null&&(D.$$typeof===x||D.$$typeof===m||D.$$typeof===s||D.$$typeof===a||D.$$typeof===c||D.$$typeof===w||D.$$typeof===g||D.$$typeof===T||D.$$typeof===y)}function k(D){if(typeof D=="object"&&D!==null){var ve=D.$$typeof;switch(ve){case t:var yt=D.type;switch(yt){case l:case u:case i:case o:case r:case d:return yt;default:var vn=yt&&yt.$$typeof;switch(vn){case a:case c:case x:case m:case s:return vn;default:return ve}}case n:return ve}}}var h=l,C=u,j=a,A=s,M=t,W=c,O=i,J=x,Y=m,F=n,ee=o,ie=r,G=d,q=!1;function Z(D){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),v(D)||k(D)===l}function v(D){return k(D)===u}function E(D){return k(D)===a}function I(D){return k(D)===s}function V(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function L(D){return k(D)===c}function z(D){return k(D)===i}function K(D){return k(D)===x}function $(D){return k(D)===m}function _(D){return k(D)===n}function X(D){return k(D)===o}function Q(D){return k(D)===r}function de(D){return k(D)===d}ne.AsyncMode=h,ne.ConcurrentMode=C,ne.ContextConsumer=j,ne.ContextProvider=A,ne.Element=M,ne.ForwardRef=W,ne.Fragment=O,ne.Lazy=J,ne.Memo=Y,ne.Portal=F,ne.Profiler=ee,ne.StrictMode=ie,ne.Suspense=G,ne.isAsyncMode=Z,ne.isConcurrentMode=v,ne.isContextConsumer=E,ne.isContextProvider=I,ne.isElement=V,ne.isForwardRef=L,ne.isFragment=z,ne.isLazy=K,ne.isMemo=$,ne.isPortal=_,ne.isProfiler=X,ne.isStrictMode=Q,ne.isSuspense=de,ne.isValidElementType=b,ne.typeOf=k})()),ne}var Cc;function Pc(){return Cc||(Cc=1,process.env.NODE_ENV==="production"?Zn.exports=Cv():Zn.exports=Pv()),Zn.exports}/*
|
|
171
174
|
object-assign
|
|
172
175
|
(c) Sindre Sorhus
|
|
173
176
|
@license MIT
|
|
174
|
-
*/var
|
|
175
|
-
Valid keys: `+JSON.stringify(Object.keys(g),null," "));var D=de(B,J,L,z,K+"."+J,n);if(D)return D}return null}return w(E)}function N(g){switch(typeof g){case"number":case"string":case"undefined":return!0;case"boolean":return!g;case"object":if(Array.isArray(g))return g.every(N);if(g===null||a(g))return!0;var E=d(g);if(E){var O=E.call(g),V;if(E!==g.entries){for(;!(V=O.next()).done;)if(!N(V.value))return!1}else for(;!(V=O.next()).done;){var L=V.value;if(L&&!N(L[1]))return!1}}else return!1;return!0;default:return!1}}function ee(g,E){return g==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function ie(g){var E=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":ee(E,g)?"symbol":E}function X(g){if(typeof g>"u"||g===null)return""+g;var E=ie(g);if(E==="object"){if(g instanceof Date)return"date";if(g instanceof RegExp)return"regexp"}return E}function q(g){var E=X(g);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function Z(g){return!g.constructor||!g.constructor.name?f:g.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},Nr}var Fr,Hl;function Wh(){if(Hl)return Fr;Hl=1;var e=Or();function t(){}function n(){}return n.resetWarningCache=t,Fr=function(){function i(s,a,l,u,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}i.isRequired=i;function r(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Fr}var Gl;function Uh(){if(Gl)return Vn.exports;if(Gl=1,process.env.NODE_ENV!=="production"){var e=Bl(),t=!0;Vn.exports=$h()(e.isElement,t)}else Vn.exports=Wh()();return Vn.exports}var qh=Uh();const re=To(qh);function pt(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Kh=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Mt(e,t,n){const i=Yh(e),{webkitRelativePath:r}=e,o=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof i.path!="string"&&Xl(i,"path",o),Xl(i,"relativePath",o),i}function Yh(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),r=Kh.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Xl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Hh=[".DS_Store","Thumbs.db"];function Gh(e){return pt(this,void 0,void 0,function*(){return _n(e)&&Xh(e.dataTransfer)?eg(e.dataTransfer,e.type):Zh(e)?Jh(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Qh(e):[]})}function Xh(e){return _n(e)}function Zh(e){return _n(e)&&_n(e.target)}function _n(e){return typeof e=="object"&&e!==null}function Jh(e){return Vr(e.target.files).map(t=>Mt(t))}function Qh(e){return pt(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Mt(n))})}function eg(e,t){return pt(this,void 0,void 0,function*(){if(e.items){const n=Vr(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(tg));return Zl(Jl(i))}return Zl(Vr(e.files).map(n=>Mt(n)))})}function Zl(e){return e.filter(t=>Hh.indexOf(t.name)===-1)}function Vr(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function tg(e){if(typeof e.webkitGetAsEntry!="function")return Ql(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?ec(t):Ql(e,t)}function Jl(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?Jl(n):[n]],[])}function Ql(e,t){return pt(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const s=yield o.getFile();return s.handle=o,Mt(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return Mt(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ng(e){return pt(this,void 0,void 0,function*(){return e.isDirectory?ec(e):ig(e)})}function ec(e){const t=e.createReader();return new Promise((n,i)=>{const r=[];function o(){t.readEntries(s=>pt(this,void 0,void 0,function*(){if(s.length){const a=Promise.all(s.map(ng));r.push(a),o()}else try{const a=yield Promise.all(r);n(a)}catch(a){i(a)}}),s=>{i(s)})}o()})}function ig(e){return pt(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const r=Mt(i,e.fullPath);t(r)},i=>{n(i)})})})}var zn={},tc;function rg(){return tc||(tc=1,zn.__esModule=!0,zn.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",r=(e.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?i.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):r===a})}return!0}),zn}var og=rg();const Lr=To(og);function nc(e){return lg(e)||ag(e)||sc(e)||sg()}function sg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
176
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
177
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
178
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
179
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hc(e,t){if(e){if(typeof e=="string")return Br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Br(e,t)}}function Br(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Vg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,o=!1,s,a;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){o=!0,a=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw a}}return i}}function Lg(e){if(Array.isArray(e))return e}function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gc(Object(n),!0).forEach(function(i){$r(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){if(e==null)return{};var n=_g(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _g(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var Wr=S.forwardRef(function(e,t){var n=e.children,i=$n(e,Ag),r=qr(i),o=r.open,s=$n(r,Dg);return S.useImperativeHandle(t,function(){return{open:o}},[o]),S.createElement(S.Fragment,null,n(oe(oe({},s),{},{open:o})))});Wr.displayName="Dropzone";var vc={disabled:!1,getFilesFromEvent:Gh,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Wr.defaultProps=vc,Wr.propTypes={children:re.func,accept:re.objectOf(re.arrayOf(re.string)),multiple:re.bool,preventDropOnDocument:re.bool,noClick:re.bool,noKeyboard:re.bool,noDrag:re.bool,noDragEventsBubbling:re.bool,minSize:re.number,maxSize:re.number,maxFiles:re.number,disabled:re.bool,getFilesFromEvent:re.func,onFileDialogCancel:re.func,onFileDialogOpen:re.func,useFsAccessApi:re.bool,autoFocus:re.bool,onDragEnter:re.func,onDragLeave:re.func,onDragOver:re.func,onDrop:re.func,onDropAccepted:re.func,onDropRejected:re.func,onError:re.func,validator:re.func};var Ur={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function qr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=oe(oe({},vc),e),n=t.accept,i=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,v=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,h=t.useFsAccessApi,T=t.autoFocus,b=t.preventDropOnDocument,k=t.noClick,y=t.noKeyboard,P=t.noDrag,j=t.noDragEventsBubbling,A=t.onError,M=t.validator,U=S.useMemo(function(){return jg(n)},[n]),F=S.useMemo(function(){return Eg(n)},[n]),Q=S.useMemo(function(){return typeof w=="function"?w:xc},[w]),G=S.useMemo(function(){return typeof x=="function"?x:xc},[x]),N=S.useRef(null),ee=S.useRef(null),ie=S.useReducer(zg,Ur),X=zr(ie,2),q=X[0],Z=X[1],g=q.isFocused,E=q.isFileDialogActive,O=S.useRef(typeof window<"u"&&window.isSecureContext&&h&&kg()),V=function(){!O.current&&E&&setTimeout(function(){if(ee.current){var W=ee.current.files;W.length||(Z({type:"closeDialog"}),G())}},300)};S.useEffect(function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}},[ee,E,G,O]);var L=S.useRef([]),z=S.useRef([]),K=function(W){N.current&&N.current.contains(W.target)||(W.preventDefault(),L.current=[])};S.useEffect(function(){return b&&(document.addEventListener("dragover",dc,!1),document.addEventListener("drop",K,!1)),function(){b&&(document.removeEventListener("dragover",dc),document.removeEventListener("drop",K))}},[N,b]),S.useEffect(function(){var R=function(ze){z.current=[].concat(mc(z.current),[ze.target]),cn(ze)&&Z({isDragGlobal:!0,type:"setDragGlobal"})},W=function(ze){z.current=z.current.filter(function(qe){return qe!==ze.target&&qe!==null}),!(z.current.length>0)&&Z({isDragGlobal:!1,type:"setDragGlobal"})},ce=function(){z.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})},me=function(){z.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",R,!1),document.addEventListener("dragleave",W,!1),document.addEventListener("dragend",ce,!1),document.addEventListener("drop",me,!1),function(){document.removeEventListener("dragenter",R),document.removeEventListener("dragleave",W),document.removeEventListener("dragend",ce),document.removeEventListener("drop",me)}},[N]),S.useEffect(function(){return!i&&T&&N.current&&N.current.focus(),function(){}},[N,T,i]);var B=S.useCallback(function(R){A?A(R):console.error(R)},[A]),_=S.useCallback(function(R){R.preventDefault(),R.persist(),ni(R),L.current=[].concat(mc(L.current),[R.target]),cn(R)&&Promise.resolve(r(R)).then(function(W){if(!(Bn(R)&&!j)){var ce=W.length,me=ce>0&&bg({files:W,accept:U,minSize:s,maxSize:o,multiple:a,maxFiles:l,validator:M}),xe=ce>0&&!me;Z({isDragAccept:me,isDragReject:xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(R)}}).catch(function(W){return B(W)})},[r,u,B,j,U,s,o,a,l,M]),H=S.useCallback(function(R){R.preventDefault(),R.persist(),ni(R);var W=cn(R);if(W&&R.dataTransfer)try{R.dataTransfer.dropEffect="copy"}catch{}return W&&d&&d(R),!1},[d,j]),J=S.useCallback(function(R){R.preventDefault(),R.persist(),ni(R);var W=L.current.filter(function(me){return N.current&&N.current.contains(me)}),ce=W.indexOf(R.target);ce!==-1&&W.splice(ce,1),L.current=W,!(W.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),cn(R)&&c&&c(R))},[N,c,j]),de=S.useCallback(function(R,W){var ce=[],me=[];R.forEach(function(xe){var ze=cc(xe,U),qe=zr(ze,2),fo=qe[0],mo=qe[1],ho=uc(xe,s,o),ii=zr(ho,2),go=ii[0],vo=ii[1],xo=M?M(xe):null;if(fo&&go&&!xo)ce.push(xe);else{var yo=[mo,vo];xo&&(yo=yo.concat(xo)),me.push({file:xe,errors:yo.filter(function(ey){return ey})})}}),(!a&&ce.length>1||a&&l>=1&&ce.length>l)&&(ce.forEach(function(xe){me.push({file:xe,errors:[xg]})}),ce.splice(0)),Z({acceptedFiles:ce,fileRejections:me,type:"setFiles"}),f&&f(ce,me,W),me.length>0&&v&&v(me,W),ce.length>0&&m&&m(ce,W)},[Z,a,U,s,o,l,f,m,v,M]),D=S.useCallback(function(R){R.preventDefault(),R.persist(),ni(R),L.current=[],cn(R)&&Promise.resolve(r(R)).then(function(W){Bn(R)&&!j||de(W,R)}).catch(function(W){return B(W)}),Z({type:"reset"})},[r,de,B,j]),ve=S.useCallback(function(){if(O.current){Z({type:"openDialog"}),Q();var R={multiple:a,types:F};window.showOpenFilePicker(R).then(function(W){return r(W)}).then(function(W){de(W,null),Z({type:"closeDialog"})}).catch(function(W){Cg(W)?(G(W),Z({type:"closeDialog"})):Pg(W)?(O.current=!1,ee.current?(ee.current.value=null,ee.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(W)});return}ee.current&&(Z({type:"openDialog"}),Q(),ee.current.value=null,ee.current.click())},[Z,Q,G,h,de,B,F,a]),ht=S.useCallback(function(R){!N.current||!N.current.isEqualNode(R.target)||(R.key===" "||R.key==="Enter"||R.keyCode===32||R.keyCode===13)&&(R.preventDefault(),ve())},[N,ve]),gn=S.useCallback(function(){Z({type:"focus"})},[]),uu=S.useCallback(function(){Z({type:"blur"})},[]),du=S.useCallback(function(){k||(Sg()?setTimeout(ve,0):ve())},[k,ve]),zt=function(W){return i?null:W},po=function(W){return y?null:zt(W)},ti=function(W){return P?null:zt(W)},ni=function(W){j&&W.stopPropagation()},Zx=S.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=R.refKey,ce=W===void 0?"ref":W,me=R.role,xe=R.onKeyDown,ze=R.onFocus,qe=R.onBlur,fo=R.onClick,mo=R.onDragEnter,ho=R.onDragOver,ii=R.onDragLeave,go=R.onDrop,vo=$n(R,Rg);return oe(oe($r({onKeyDown:po(Fe(xe,ht)),onFocus:po(Fe(ze,gn)),onBlur:po(Fe(qe,uu)),onClick:zt(Fe(fo,du)),onDragEnter:ti(Fe(mo,_)),onDragOver:ti(Fe(ho,H)),onDragLeave:ti(Fe(ii,J)),onDrop:ti(Fe(go,D)),role:typeof me=="string"&&me!==""?me:"presentation"},ce,N),!i&&!y?{tabIndex:0}:{}),vo)}},[N,ht,gn,uu,du,_,H,J,D,y,P,i]),Jx=S.useCallback(function(R){R.stopPropagation()},[]),Qx=S.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=R.refKey,ce=W===void 0?"ref":W,me=R.onChange,xe=R.onClick,ze=$n(R,Og),qe=$r({accept:U,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:zt(Fe(me,D)),onClick:zt(Fe(xe,Jx)),tabIndex:-1},ce,ee);return oe(oe({},qe),ze)}},[ee,n,a,D,i]);return oe(oe({},q),{},{isFocused:g&&!i,getRootProps:Zx,getInputProps:Qx,rootRef:N,inputRef:ee,open:zt(ve)})}function zg(e,t){switch(t.type){case"focus":return oe(oe({},e),{},{isFocused:!0});case"blur":return oe(oe({},e),{},{isFocused:!1});case"openDialog":return oe(oe({},Ur),{},{isFileDialogActive:!0});case"closeDialog":return oe(oe({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return oe(oe({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return oe(oe({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return oe(oe({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return oe({},Ur);default:return e}}function xc(){}const Bg={sm:"h-7",md:"h-8",lg:"h-10"},$g={sm:"px-2.5",md:"px-3",lg:"px-4"},Wg={sm:"text-xs",md:"text-sm",lg:"text-sm"},Ug=e=>{const{label:t,description:n,error:i,placeholder:r="No file chosen",buttonText:o="Choose",Icon:s=kh,size:a="md",value:l,isUploaded:u=!1,isUploading:c=!1,onChange:d,onDropRejected:f,accept:m,maxSize:v,minSize:x,disabled:w=!1,className:h}=e,T=async M=>{const[U]=M;U&&await d?.(U)},{getRootProps:b,getInputProps:k,open:y,isDragActive:P,isFocused:j}=qr({multiple:!1,accept:m,maxSize:v,minSize:x,disabled:w,onDrop:T,onDropRejected:f}),A=l?.name;return p.jsx(Je.Provider,{value:a,children:p.jsxs("div",{className:I("flex flex-col",h),children:[p.jsx(We,{children:t}),p.jsxs("div",{...b({className:I("flex flex-row items-center","border input-base rounded-xl shadow-sm transition-all duration-150","ring-0 focus:outline-none",(j||P)&&"ring-4",i&&"input-error",w&&"opacity-60 cursor-not-allowed",lt[a],ct[a],"gap-3")}),children:[p.jsx("input",{...k()}),p.jsx(s,{className:I("input-icon shrink-0",Ot[a])}),p.jsx("span",{className:I("flex-1 truncate",Xe[a],!A&&"text-[var(--color-input-placeholder)]"),children:A??r}),i&&p.jsx(Ze,{}),c&&!i&&p.jsx("div",{className:"h-5 w-5 flex items-center justify-center",children:p.jsx(Dt,{className:"h-4 w-4 text-[var(--color-input-icon)]"})}),u&&!c&&!i&&p.jsx("div",{className:"h-5 w-5",children:p.jsx(jr,{className:"h-5 w-5 text-[var(--color-status-success)]"})}),p.jsx("button",{type:"button",disabled:w,onClick:M=>{M.stopPropagation(),y()},className:I("inline-flex flex-row items-center justify-center shrink-0","border button-white shadow-sm rounded-[calc(var(--border-radius-input)-0.25rem)]","font-semibold cursor-pointer select-none transition-all duration-150","button-ring ring-0 hover:ring-4 active:ring-1 focus:outline-none focus:ring-4","disabled:cursor-default","mr-1.5",Bg[a],$g[a],Wg[a]),children:o})]}),p.jsx(Ae,{children:n}),p.jsx(De,{children:i})]})})},qg=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(1)} GB`,yc=e=>{const{file:t,isUploaded:n=!1,isUploading:i=!1,error:r,onRemove:o,className:s}=e,a=i||n||!!r;return p.jsxs("div",{className:I("flex flex-row items-center gap-3","border input-base rounded-xl shadow-sm","pl-4 pr-1 py-1",r&&"input-error",s),children:[a&&p.jsx("div",{className:"shrink-0 h-5 w-5 flex items-center justify-center",children:r?p.jsx(Cr,{className:"h-5 w-5 input-error-icon"}):i?p.jsx(Dt,{className:"h-4 w-4 text-[var(--color-input-icon)]"}):p.jsx(jr,{className:"h-5 w-5 text-[var(--color-status-success)]"})}),p.jsx("div",{className:"flex-1 min-w-0 font-medium truncate",children:t.name}),p.jsx("div",{className:"shrink-0 text-sm text-[var(--color-input-description-text)]",children:qg(t.size)}),o&&p.jsx(Fn,{variant:"transparent",size:"sm",Icon:ut,onClick:o,"aria-label":"Remove file",className:"shrink-0"})]})},Kg=e=>{const{label:t,description:n,error:i,title:r="Drop files here",hint:o,Icon:s=wh,onUpload:a,onFileRemoved:l,onDropRejected:u,renderFileTile:c,accept:d,maxSize:f,minSize:m,maxFiles:v,disabled:x=!1,className:w}=e,[h,T]=S.useState([]),b=S.useRef(0),k=(F,Q)=>{T(G=>G.map(N=>N.id===F?{...N,...Q}:N))},y=F=>{if(F.length===0)return;const Q=F.map(G=>({id:String(++b.current),file:G,status:a?"uploading":"idle"}));if(T(G=>[...G,...Q]),!!a)for(const G of Q)Promise.resolve().then(()=>a(G.file)).then(()=>k(G.id,{status:"uploaded"})).catch(N=>{k(G.id,{status:"error",error:N instanceof Error?N:new Error(String(N))})})},P=F=>{const Q=h.find(G=>G.id===F);T(G=>G.filter(N=>N.id!==F)),Q&&l?.(Q.file)},{getRootProps:j,getInputProps:A,isDragActive:M,isFocused:U}=qr({multiple:!0,accept:d,maxSize:f,minSize:m,maxFiles:v,disabled:x,onDrop:y,onDropRejected:u});return p.jsxs("div",{className:I("flex flex-col",w),children:[p.jsx(We,{children:t}),p.jsxs("div",{...j({className:I("flex flex-col items-center justify-center gap-1","border-2 border-dashed input-base rounded-xl bg-transparent!","py-10 px-6 cursor-pointer transition-all duration-150","ring-0 focus:outline-none",(U||M)&&"ring-4",i&&"input-error",x&&"opacity-60 cursor-not-allowed")}),children:[p.jsx("input",{...A()}),p.jsx("div",{className:"h-14 w-14 rounded-xl flex items-center justify-center bg-[var(--color-input-file-icon-bg)] mb-2",children:p.jsx(s,{className:"h-7 w-7 input-icon"})}),p.jsx("div",{className:"text-base font-semibold",children:r}),o&&p.jsx("div",{className:"text-sm text-[var(--color-input-description-text)] ",children:o})]}),h.length>0&&p.jsx("div",{className:"flex flex-col gap-2 mt-3",children:h.map(F=>{const Q={file:F.file,isUploading:F.status==="uploading",isUploaded:F.status==="uploaded",error:F.status==="error"?F.error?.message:void 0,onRemove:()=>P(F.id)};return p.jsx(C.Fragment,{children:c?c(F.file,Q):p.jsx(yc,{...Q})},F.id)})}),p.jsx(Ae,{children:n}),p.jsx(De,{children:i})]})},Yg=e=>{const{className:t,label:n,description:i,options:r,error:o,size:s="md",...a}=e;return p.jsx(Je.Provider,{value:s,children:p.jsxs("div",{className:I("flex flex-col",t),children:[p.jsx(We,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",children:[p.jsx("select",{className:I("appearance-none border input-base bg-none transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",lt[s],Xe[s],ct[s],Rt[s]),...a,children:r&&r.map((l,u)=>p.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},u))}),p.jsxs(dt,{children:[o&&p.jsx(Ze,{}),p.jsx(Ue,{Icon:an})]})]}),p.jsx(Ae,{children:i}),p.jsx(De,{children:o})]})})},un=e=>{const{children:t,onClick:n,selected:i,disabled:r=!1}=e;return p.jsxs("div",{onClick:()=>!r&&n&&n(),className:I("option-base px-4 py-2 rounded-xl cursor-pointer transition-all duration-150 select-none flex flex-row gap-3 items-center",i&&!r&&"option-selected",r&&"option-disabled cursor-not-allowed hover:bg-transparent active:bg-transparent"),children:[p.jsx("div",{className:"flex-1",children:t}),i&&!r&&p.jsx("div",{className:"shrink-0",children:p.jsx(xh,{className:"h-5 w-5"})})]})};function Wn(){return typeof window<"u"}function It(e){return Kr(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=(Kr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kr(e){return Wn()?e instanceof Node||e instanceof Se(e).Node:!1}function ye(e){return Wn()?e instanceof Element||e instanceof Se(e).Element:!1}function Le(e){return Wn()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Yr(e){return!Wn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Hg=new Set(["inline","contents"]);function dn(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Hg.has(r)}const Gg=new Set(["table","td","th"]);function Xg(e){return Gg.has(It(e))}const Zg=[":popover-open",":modal"];function Un(e){return Zg.some(t=>{try{return e.matches(t)}catch{return!1}})}const Jg=["transform","translate","scale","rotate","perspective"],Qg=["transform","translate","scale","rotate","perspective","filter"],ev=["paint","layout","strict","content"];function Hr(e){const t=Gr(),n=ye(e)?Me(e):e;return Jg.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Qg.some(i=>(n.willChange||"").includes(i))||ev.some(i=>(n.contain||"").includes(i))}function tv(e){let t=Qe(e);for(;Le(t)&&!Nt(t);){if(Hr(t))return t;if(Un(t))return null;t=Qe(t)}return null}function Gr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nv=new Set(["html","body","#document"]);function Nt(e){return nv.has(It(e))}function Me(e){return Se(e).getComputedStyle(e)}function qn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qe(e){if(It(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yr(e)&&e.host||Ve(e);return Yr(t)?t.host:t}function bc(e){const t=Qe(e);return Nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&dn(t)?t:bc(t)}function pn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=bc(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=Se(r);if(o){const a=Xr(s);return t.concat(s,s.visualViewport||[],dn(r)?r:[],a&&n?pn(a):[])}return t.concat(r,pn(r,[],n))}function Xr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const fn=Math.min,Re=Math.max,Kn=Math.round,Yn=Math.floor,_e=e=>({x:e,y:e});function wc(e,t){return typeof e=="function"?e(t):e}function Zr(e){return e.split("-")[0]}function Tc(e){return e.split("-")[1]}function iv(e){return e==="x"?"y":"x"}function rv(e){return e==="y"?"height":"width"}const ov=new Set(["top","bottom"]);function Jr(e){return ov.has(Zr(e))?"y":"x"}function sv(e){return iv(Jr(e))}function av(e){return{top:0,right:0,bottom:0,left:0,...e}}function lv(e){return typeof e!="number"?av(e):{top:e,right:e,bottom:e,left:e}}function Hn(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}/*!
|
|
180
|
-
* tabbable 6.2.0
|
|
181
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
182
|
-
*/var cv=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Qr=cv.join(","),Sc=typeof Element>"u",mn=Sc?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gn=!Sc&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Xn=function e(t,n){var i;n===void 0&&(n=!0);var r=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),o=r===""||r==="true",s=o||n&&t&&e(t.parentNode);return s},uv=function(t){var n,i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return i===""||i==="true"},dv=function(t,n,i){if(Xn(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Qr));return n&&mn.call(t,Qr)&&r.unshift(t),r=r.filter(i),r},pv=function e(t,n,i){for(var r=[],o=Array.from(t);o.length;){var s=o.shift();if(!Xn(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,i);i.flatten?r.push.apply(r,u):r.push({scopeParent:s,candidates:u})}else{var c=mn.call(s,Qr);c&&i.filter(s)&&(n||!t.includes(s))&&r.push(s);var d=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),f=!Xn(d,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(d&&f){var m=e(d===!0?s.children:d.children,!0,i);i.flatten?r.push.apply(r,m):r.push({scopeParent:s,candidates:m})}else o.unshift.apply(o,s.children)}}return r},kc=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ec=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||uv(t))&&!kc(t)?0:t.tabIndex},fv=function(t,n){var i=Ec(t);return i<0&&n&&!kc(t)?0:i},mv=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},jc=function(t){return t.tagName==="INPUT"},hv=function(t){return jc(t)&&t.type==="hidden"},gv=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return n},vv=function(t,n){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===n)return t[i]},xv=function(t){if(!t.name)return!0;var n=t.form||Gn(t),i=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(t.name));else try{r=i(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=vv(r,t.form);return!o||o===t},yv=function(t){return jc(t)&&t.type==="radio"},bv=function(t){return yv(t)&&!xv(t)},wv=function(t){var n,i=t&&Gn(t),r=(n=i)===null||n===void 0?void 0:n.host,o=!1;if(i&&i!==t){var s,a,l;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&r;){var u,c,d;i=Gn(r),r=(u=i)===null||u===void 0?void 0:u.host,o=!!((c=r)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(r))}}return o},Cc=function(t){var n=t.getBoundingClientRect(),i=n.width,r=n.height;return i===0&&r===0},Tv=function(t,n){var i=n.displayCheck,r=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=mn.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(mn.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=t;t;){var l=t.parentElement,u=Gn(t);if(l&&!l.shadowRoot&&r(l)===!0)return Cc(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=a}if(wv(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Cc(t);return!1},Sv=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var i=0;i<n.children.length;i++){var r=n.children.item(i);if(r.tagName==="LEGEND")return mn.call(n,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}n=n.parentElement}return!1},kv=function(t,n){return!(n.disabled||Xn(n)||hv(n)||Tv(n,t)||gv(n)||Sv(n))},Pc=function(t,n){return!(bv(n)||Ec(n)<0||!kv(t,n))},Ev=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},jv=function e(t){var n=[],i=[];return t.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,l=fv(a,s),u=s?e(r.candidates):a;l===0?s?n.push.apply(n,u):n.push(a):i.push({documentOrder:o,tabIndex:l,item:r,isScope:s,content:u})}),i.sort(mv).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),r},[]).concat(n)},Ac=function(t,n){n=n||{};var i;return n.getShadowRoot?i=pv([t],n.includeContainer,{filter:Pc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ev}):i=dv(t,n.includeContainer,Pc.bind(null,n)),jv(i)};function Cv(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Pv(){return/apple/i.test(navigator.vendor)}function Av(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Dv(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Yr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function eo(e){return e?.ownerDocument||document}var Rv=typeof document<"u",Ov=function(){},et=Rv?S.useLayoutEffect:Ov;const Mv={...C}.useInsertionEffect||(e=>e());function Iv(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Mv(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}const Dc=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Rc(e,t){const n=Ac(e,Dc()),i=n.length;if(i===0)return;const r=Av(eo(e)),o=n.indexOf(r),s=o===-1?t===1?0:i-1:o+t;return n[s]}function Nv(e){return Rc(eo(e).body,1)||e}function Fv(e){return Rc(eo(e).body,-1)||e}function to(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!Dv(n,i)}function Vv(e){Ac(e,Dc()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Oc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const i=n.dataset.tabindex;delete n.dataset.tabindex,i?n.setAttribute("tabindex",i):n.removeAttribute("tabindex")})}function Mc(e,t,n){let{reference:i,floating:r}=e;const o=Jr(t),s=sv(t),a=rv(s),l=Zr(t),u=o==="y",c=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let m;switch(l){case"top":m={x:c,y:i.y-r.height};break;case"bottom":m={x:c,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:d};break;case"left":m={x:i.x-r.width,y:d};break;default:m={x:i.x,y:i.y}}switch(Tc(t)){case"start":m[s]-=f*(n&&u?-1:1);break;case"end":m[s]+=f*(n&&u?-1:1);break}return m}const Lv=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=Mc(u,i,l),f=i,m={},v=0;for(let x=0;x<a.length;x++){const{name:w,fn:h}=a[x],{x:T,y:b,data:k,reset:y}=await h({x:c,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=T??c,d=b??d,m={...m,[w]:{...m[w],...k}},y&&v<=50&&(v++,typeof y=="object"&&(y.placement&&(f=y.placement),y.rects&&(u=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:c,y:d}=Mc(u,f,l)),x=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:m}};async function _v(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=wc(t,e),v=lv(m),w=a[f?d==="floating"?"reference":"floating":d],h=Hn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),T=d==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),k=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},y=Hn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:T,offsetParent:b,strategy:l}):T);return{top:(h.top-y.top+v.top)/k.y,bottom:(y.bottom-h.bottom+v.bottom)/k.y,left:(h.left-y.left+v.left)/k.x,right:(y.right-h.right+v.right)/k.x}}const zv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=wc(e,t),c=await _v(t,u),d=Zr(r),f=Tc(r),m=Jr(r)==="y",{width:v,height:x}=o.floating;let w,h;d==="top"||d==="bottom"?(w=d,h=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(h=d,w=f==="end"?"top":"bottom");const T=x-c.top-c.bottom,b=v-c.left-c.right,k=fn(x-c[w],T),y=fn(v-c[h],b),P=!t.middlewareData.shift;let j=k,A=y;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(j=T),P&&!f){const U=Re(c.left,0),F=Re(c.right,0),Q=Re(c.top,0),G=Re(c.bottom,0);m?A=v-2*(U!==0||F!==0?U+F:Re(c.left,c.right)):j=x-2*(Q!==0||G!==0?Q+G:Re(c.top,c.bottom))}await l({...t,availableWidth:A,availableHeight:j});const M=await s.getDimensions(a.floating);return v!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}};function Ic(e){const t=Me(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Le(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Kn(n)!==o||Kn(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function no(e){return ye(e)?e:e.contextElement}function Ft(e){const t=no(e);if(!Le(t))return _e(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=Ic(t);let s=(o?Kn(n.width):n.width)/i,a=(o?Kn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Bv=_e(0);function Nc(e){const t=Se(e);return!Gr()||!t.visualViewport?Bv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $v(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function mt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=no(e);let s=_e(1);t&&(i?ye(i)&&(s=Ft(i)):s=Ft(e));const a=$v(o,n,i)?Nc(o):_e(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o){const f=Se(o),m=i&&ye(i)?Se(i):i;let v=f,x=Xr(v);for(;x&&i&&m!==v;){const w=Ft(x),h=x.getBoundingClientRect(),T=Me(x),b=h.left+(x.clientLeft+parseFloat(T.paddingLeft))*w.x,k=h.top+(x.clientTop+parseFloat(T.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=b,u+=k,v=Se(x),x=Xr(v)}}return Hn({width:c,height:d,x:l,y:u})}function Zn(e,t){const n=qn(e).scrollLeft;return t?t.left+n:mt(Ve(e)).left+n}function Fc(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Zn(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function Wv(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=r==="fixed",s=Ve(i),a=t?Un(t.floating):!1;if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=_e(1);const c=_e(0),d=Le(i);if((d||!d&&!o)&&((It(i)!=="body"||dn(s))&&(l=qn(i)),Le(i))){const m=mt(i);u=Ft(i),c.x=m.x+i.clientLeft,c.y=m.y+i.clientTop}const f=s&&!d&&!o?Fc(s,l):_e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function Uv(e){return Array.from(e.getClientRects())}function qv(e){const t=Ve(e),n=qn(e),i=e.ownerDocument.body,r=Re(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Re(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Zn(e);const a=-n.scrollTop;return Me(i).direction==="rtl"&&(s+=Re(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}const Vc=25;function Kv(e,t){const n=Se(e),i=Ve(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const c=Gr();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=Zn(i);if(u<=0){const c=i.ownerDocument,d=c.body,f=getComputedStyle(d),m=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(i.clientWidth-d.clientWidth-m);v<=Vc&&(o-=v)}else u<=Vc&&(o+=u);return{width:o,height:s,x:a,y:l}}const Yv=new Set(["absolute","fixed"]);function Hv(e,t){const n=mt(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=Le(e)?Ft(e):_e(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:s,height:a,x:l,y:u}}function Lc(e,t,n){let i;if(t==="viewport")i=Kv(e,n);else if(t==="document")i=qv(Ve(e));else if(ye(t))i=Hv(t,n);else{const r=Nc(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Hn(i)}function _c(e,t){const n=Qe(e);return n===t||!ye(n)||Nt(n)?!1:Me(n).position==="fixed"||_c(n,t)}function Gv(e,t){const n=t.get(e);if(n)return n;let i=pn(e,[],!1).filter(a=>ye(a)&&It(a)!=="body"),r=null;const o=Me(e).position==="fixed";let s=o?Qe(e):e;for(;ye(s)&&!Nt(s);){const a=Me(s),l=Hr(s);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&!!r&&Yv.has(r.position)||dn(s)&&!l&&_c(e,s))?i=i.filter(c=>c!==s):r=a,s=Qe(s)}return t.set(e,i),i}function Xv(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?Un(t)?[]:Gv(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((u,c)=>{const d=Lc(t,c,r);return u.top=Re(d.top,u.top),u.right=fn(d.right,u.right),u.bottom=fn(d.bottom,u.bottom),u.left=Re(d.left,u.left),u},Lc(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zv(e){const{width:t,height:n}=Ic(e);return{width:t,height:n}}function Jv(e,t,n){const i=Le(t),r=Ve(t),o=n==="fixed",s=mt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=_e(0);function u(){l.x=Zn(r)}if(i||!i&&!o)if((It(t)!=="body"||dn(r))&&(a=qn(t)),i){const m=mt(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&u();o&&!i&&r&&u();const c=r&&!i&&!o?Fc(r,a):_e(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function io(e){return Me(e).position==="static"}function zc(e,t){if(!Le(e)||Me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ve(e)===n&&(n=n.ownerDocument.body),n}function Bc(e,t){const n=Se(e);if(Un(e))return n;if(!Le(e)){let r=Qe(e);for(;r&&!Nt(r);){if(ye(r)&&!io(r))return r;r=Qe(r)}return n}let i=zc(e,t);for(;i&&Xg(i)&&io(i);)i=zc(i,t);return i&&Nt(i)&&io(i)&&!Hr(i)?n:i||tv(e)||n}const Qv=async function(e){const t=this.getOffsetParent||Bc,n=this.getDimensions,i=await n(e.floating);return{reference:Jv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ex(e){return Me(e).direction==="rtl"}const tx={convertOffsetParentRelativeRectToViewportRelativeRect:Wv,getDocumentElement:Ve,getClippingRect:Xv,getOffsetParent:Bc,getElementRects:Qv,getClientRects:Uv,getDimensions:Zv,getScale:Ft,isElement:ye,isRTL:ex};function $c(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nx(e,t){let n=null,i;const r=Ve(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:m}=u;if(a||t(),!f||!m)return;const v=Yn(d),x=Yn(r.clientWidth-(c+f)),w=Yn(r.clientHeight-(d+m)),h=Yn(c),b={rootMargin:-v+"px "+-x+"px "+-w+"px "+-h+"px",threshold:Re(0,fn(1,l))||1};let k=!0;function y(P){const j=P[0].intersectionRatio;if(j!==l){if(!k)return s();j?s(!1,j):i=setTimeout(()=>{s(!1,1e-7)},1e3)}j===1&&!$c(u,e.getBoundingClientRect())&&s(),k=!1}try{n=new IntersectionObserver(y,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return s(!0),o}function ix(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=no(e),c=r||o?[...u?pn(u):[],...pn(t)]:[];c.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const d=u&&a?nx(u,n):null;let f=-1,m=null;s&&(m=new ResizeObserver(h=>{let[T]=h;T&&T.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let v,x=l?mt(e):null;l&&w();function w(){const h=mt(e);x&&!$c(x,h)&&n(),x=h,v=requestAnimationFrame(w)}return n(),()=>{var h;c.forEach(T=>{r&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),d?.(),(h=m)==null||h.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const rx=zv,ox=(e,t,n)=>{const i=new Map,r={platform:tx,...n},o={...r.platform,_c:i};return Lv(e,t,{...r,platform:o})};var sx=typeof document<"u",ax=function(){},Jn=sx?S.useLayoutEffect:ax;function Qn(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,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Qn(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!Qn(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uc(e,t){const n=Wc(e);return Math.round(t*n)/n}function ro(e){const t=C.useRef(e);return Jn(()=>{t.current=e}),t}function lx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=C.useState(i);Qn(f,i)||m(i);const[v,x]=C.useState(null),[w,h]=C.useState(null),T=C.useCallback(q=>{q!==P.current&&(P.current=q,x(q))},[]),b=C.useCallback(q=>{q!==j.current&&(j.current=q,h(q))},[]),k=o||v,y=s||w,P=C.useRef(null),j=C.useRef(null),A=C.useRef(c),M=l!=null,U=ro(l),F=ro(r),Q=ro(u),G=C.useCallback(()=>{if(!P.current||!j.current)return;const q={placement:t,strategy:n,middleware:f};F.current&&(q.platform=F.current),ox(P.current,j.current,q).then(Z=>{const g={...Z,isPositioned:Q.current!==!1};N.current&&!Qn(A.current,g)&&(A.current=g,wo.flushSync(()=>{d(g)}))})},[f,t,n,F,Q]);Jn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[u]);const N=C.useRef(!1);Jn(()=>(N.current=!0,()=>{N.current=!1}),[]),Jn(()=>{if(k&&(P.current=k),y&&(j.current=y),k&&y){if(U.current)return U.current(k,y,G);G()}},[k,y,G,U,M]);const ee=C.useMemo(()=>({reference:P,floating:j,setReference:T,setFloating:b}),[T,b]),ie=C.useMemo(()=>({reference:k,floating:y}),[k,y]),X=C.useMemo(()=>{const q={position:n,left:0,top:0};if(!ie.floating)return q;const Z=Uc(ie.floating,c.x),g=Uc(ie.floating,c.y);return a?{...q,transform:"translate("+Z+"px, "+g+"px)",...Wc(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:g}},[n,a,ie.floating,c.x,c.y]);return C.useMemo(()=>({...c,update:G,refs:ee,elements:ie,floatingStyles:X}),[c,G,ee,ie,X])}const cx=(e,t)=>({...rx(e),options:[e,t]}),ux={...C};let qc=!1,dx=0;const Kc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dx++;function px(){const[e,t]=C.useState(()=>qc?Kc():void 0);return et(()=>{e==null&&t(Kc())},[]),C.useEffect(()=>{qc=!0},[]),e}const Yc=ux.useId||px;let oo;process.env.NODE_ENV!=="production"&&(oo=new Set);function fx(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r="Floating UI: "+n.join(" ");if(!((e=oo)!=null&&e.has(r))){var o;(o=oo)==null||o.add(r),console.error(r)}}function mx(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var i;(i=e.get(t))==null||i.delete(n)}}}const hx=C.createContext(null),gx=C.createContext(null),vx=()=>{var e;return((e=C.useContext(hx))==null?void 0:e.id)||null},xx=()=>C.useContext(gx);function Hc(e){return"data-floating-ui-"+e}const Gc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Xc=C.forwardRef(function(t,n){const[i,r]=C.useState();et(()=>{Pv()&&r("button")},[]);const o={ref:n,tabIndex:0,role:i,"aria-hidden":i?void 0:!0,[Hc("focus-guard")]:"",style:Gc};return p.jsx("span",{...t,...o})}),Zc=C.createContext(null),Jc=Hc("portal");function yx(e){e===void 0&&(e={});const{id:t,root:n}=e,i=Yc(),r=bx(),[o,s]=C.useState(null),a=C.useRef(null);return et(()=>()=>{o?.remove(),queueMicrotask(()=>{a.current=null})},[o]),et(()=>{if(!i||a.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=i,u.setAttribute(Jc,""),l.appendChild(u),a.current=u,s(u)},[t,i]),et(()=>{if(n===null||!i||a.current)return;let l=n||r?.portalNode;l&&!Kr(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=i,c.setAttribute(Jc,""),l=u||l,l.appendChild(c),a.current=c,s(c)},[t,n,i,r]),o}function so(e){const{children:t,id:n,root:i,preserveTabOrder:r=!0}=e,o=yx({id:n,root:i}),[s,a]=C.useState(null),l=C.useRef(null),u=C.useRef(null),c=C.useRef(null),d=C.useRef(null),f=s?.modal,m=s?.open,v=!!s&&!s.modal&&s.open&&r&&!!(i||o);return C.useEffect(()=>{if(!o||!r||f)return;function x(w){o&&to(w)&&(w.type==="focusin"?Oc:Vv)(o)}return o.addEventListener("focusin",x,!0),o.addEventListener("focusout",x,!0),()=>{o.removeEventListener("focusin",x,!0),o.removeEventListener("focusout",x,!0)}},[o,r,f]),C.useEffect(()=>{o&&(m||Oc(o))},[m,o]),p.jsxs(Zc.Provider,{value:C.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:a}),[r,o]),children:[v&&o&&p.jsx(Xc,{"data-type":"outside",ref:l,onFocus:x=>{if(to(x,o)){var w;(w=c.current)==null||w.focus()}else{const h=s?s.domReference:null,T=Fv(h);T?.focus()}}}),v&&o&&p.jsx("span",{"aria-owns":o.id,style:Gc}),o&&wo.createPortal(t,o),v&&o&&p.jsx(Xc,{"data-type":"outside",ref:u,onFocus:x=>{if(to(x,o)){var w;(w=d.current)==null||w.focus()}else{const h=s?s.domReference:null,T=Nv(h);T?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,x.nativeEvent,"focus-out")}}})]})}const bx=()=>C.useContext(Zc);let ei=0;const Qc="--floating-ui-scrollbar-width";function wx(){const e=Cv(),t=/iP(hone|ad|od)|iOS/.test(e)||e==="MacIntel"&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,s=n.left?parseFloat(n.left):window.scrollX,a=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(Qc,o+"px"),o&&(n[r]=o+"px"),t){var l,u;const c=((l=window.visualViewport)==null?void 0:l.offsetLeft)||0,d=((u=window.visualViewport)==null?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(a-Math.floor(d))+"px",left:-(s-Math.floor(c))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(Qc),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(s,a))}}let eu=()=>{};const ao=C.forwardRef(function(t,n){const{lockScroll:i=!1,...r}=t;return et(()=>{if(i)return ei++,ei===1&&(eu=wx()),()=>{ei--,ei===0&&eu()}},[i]),p.jsx("div",{ref:n,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function Tx(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=Yc(),o=C.useRef({}),[s]=C.useState(()=>mx()),a=vx()!=null;if(process.env.NODE_ENV!=="production"){const m=i.reference;m&&!ye(m)&&fx("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=C.useState(i.reference),c=Iv((m,v,x)=>{o.current.openEvent=m?v:void 0,s.emit("openchange",{open:m,event:v,reason:x,nested:a}),n?.(m,v,x)}),d=C.useMemo(()=>({setPositionReference:u}),[]),f=C.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return C.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:s,floatingId:r,refs:d}),[t,c,f,s,r,d])}function Sx(e){e===void 0&&(e={});const{nodeId:t}=e,n=Tx({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[o,s]=C.useState(null),[a,l]=C.useState(null),c=r?.domReference||o,d=C.useRef(null),f=xx();et(()=>{c&&(d.current=c)},[c]);const m=lx({...e,elements:{...r,...a&&{reference:a}}}),v=C.useCallback(b=>{const k=ye(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;l(k),m.refs.setReference(k)},[m.refs]),x=C.useCallback(b=>{(ye(b)||b===null)&&(d.current=b,s(b)),(ye(m.refs.reference.current)||m.refs.reference.current===null||b!==null&&!ye(b))&&m.refs.setReference(b)},[m.refs]),w=C.useMemo(()=>({...m.refs,setReference:x,setPositionReference:v,domReference:d}),[m.refs,x,v]),h=C.useMemo(()=>({...m.elements,domReference:c}),[m.elements,c]),T=C.useMemo(()=>({...m,...i,refs:w,elements:h,nodeId:t}),[m,w,h,t,i]);return et(()=>{i.dataRef.current.floatingContext=T;const b=f?.nodesRef.current.find(k=>k.id===t);b&&(b.context=T)}),C.useMemo(()=>({...m,context:T,refs:w,elements:h}),[m,w,h,T])}const kx={top:"bottom center","top-start":"bottom left","top-end":"bottom right",right:"left center","right-start":"top left","right-end":"bottom left",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"top right","left-end":"bottom right"},tu=C.memo(({open:e,children:t,className:n,onOutsideClick:i,floatingStyles:r,setFloating:o,placement:s})=>p.jsx(so,{children:p.jsx(Cn,{children:e&&p.jsxs(p.Fragment,{children:[i&&p.jsx(ao,{onClick:i}),p.jsx("div",{ref:o,style:r,className:"z-50",children:p.jsx(at.div,{className:n,style:{transformOrigin:kx[s]},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeInOut"},children:t})})]})})})),Vt=e=>{const{placement:t="bottom",onOutsideClick:n,fullWidth:i,minWidth:r,maxWidth:o}=e,s=C.useMemo(()=>[cx({apply({rects:d,elements:f}){i&&(f.floating.style.width=`${d.reference.width}px`),r&&(f.floating.style.minWidth=`${r}px`),o&&(f.floating.style.maxWidth=`${o}px`)}})],[i,o,r]),{refs:a,floatingStyles:l}=Sx({placement:t,middleware:s,whileElementsMounted:ix}),u=C.useRef({onOutsideClick:n,floatingStyles:l,setFloating:a.setFloating,placement:t});u.current={onOutsideClick:n,floatingStyles:l,setFloating:a.setFloating,placement:t};const c=C.useMemo(()=>{const d=f=>{const{floatingStyles:m,setFloating:v,onOutsideClick:x,placement:w}=u.current,{className:h,open:T,children:b}=f;return p.jsx(tu,{open:T,className:h,onOutsideClick:x,floatingStyles:m,setFloating:v,placement:w,children:b})};return C.memo(d)},[]);return{anchorRef:a.setReference,Popover:c}},Ex="flex flex-col dropdown-panel border mt-1 rounded-xl shadow-lg overflow-y-auto relative space-y-1",jx={sm:"p-2",md:"p-3",lg:"p-4"},Lt=e=>{const{className:t,children:n,padding:i="md",...r}=e;return p.jsx("div",{className:I(Ex,jx[i],t),...r,children:n})},hn=(e,t)=>{S.useEffect(()=>{if(!e)return;const n=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e,t])},nu=e=>{const{className:t,label:n,description:i,options:r,onChange:o,value:s,placeholder:a,maxHeight:l=300,error:u,size:c="md"}=e,[d,f]=S.useState(!1),m=C.useRef(null),v=r?.find(h=>h.value===s);hn(d,()=>f(!1)),S.useEffect(()=>{d&&m.current?.focus({preventScroll:!0})},[d]);const{anchorRef:x,Popover:w}=Vt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>f(!1)});return p.jsx(Je.Provider,{value:c,children:p.jsxs("div",{className:I("flex flex-col",t),children:[p.jsx(We,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:x,children:[p.jsxs("div",{ref:m,role:"button",tabIndex:0,className:I("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",lt[c],Xe[c],ct[c],Rt[c],u&&"select-trigger-error",d&&"ring-4"),onKeyDown:h=>h.key===" "&&f(T=>!T),onClick:()=>f(!d),children:[v&&p.jsx("span",{children:v.label}),!v&&a&&p.jsx("span",{className:"select-placeholder",children:a})]}),p.jsxs(dt,{children:[u&&p.jsx(Ze,{}),!!s&&p.jsx(Ue,{Icon:ut,onClick:()=>o(null)}),p.jsx(Ue,{Icon:an})]}),p.jsx(w,{open:d,children:p.jsx(Lt,{className:"!p-0",style:{maxHeight:l},children:p.jsx("div",{className:"flex flex-col p-2 gap-1",children:r.map(h=>{const T=h.value===s;return p.jsx(un,{onClick:()=>{!h.disabled&&o&&(o(h.value),f(!1))},selected:T,disabled:h.disabled,children:h.label},String(h.value))})})})})]}),p.jsx(Ae,{children:i}),p.jsx(De,{children:u})]})})},Cx=e=>{const{className:t,label:n,description:i,options:r,onChange:o,onSearch:s,value:a,placeholder:l,maxHeight:u=300,error:c,size:d="md"}=e,[f,m]=S.useState(!1),[v,x]=S.useState(r),[w,h]=S.useState(""),T=C.useRef(null),b=C.useRef(null),k=r?.find(j=>j.value===a);hn(f,()=>m(!1)),S.useEffect(()=>{x(s(w))},[w,r,s]),S.useEffect(()=>{f&&setTimeout(()=>b.current?.focus(),100)},[f]);const{anchorRef:y,Popover:P}=Vt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>m(!1)});return p.jsx(Je.Provider,{value:d,children:p.jsxs("div",{className:I("flex flex-col",t),children:[p.jsx(We,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:y,children:[p.jsxs("div",{ref:T,role:"button",tabIndex:0,className:I("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",lt[d],Xe[d],ct[d],Rt[d],c&&"select-trigger-error",f&&"ring-4"),onKeyDown:j=>j.key===" "&&m(A=>!A),onClick:()=>m(!f),children:[k&&p.jsx("span",{children:k.label}),!k&&l&&p.jsx("span",{className:"select-placeholder",children:l})]}),p.jsxs(dt,{children:[c&&p.jsx(Ze,{}),!!a&&p.jsx(Ue,{Icon:ut,onClick:()=>o(null)}),p.jsx(Ue,{Icon:an})]}),p.jsx(P,{open:f,children:p.jsxs(Lt,{className:"gap-0 !p-0",style:{maxHeight:u},children:[p.jsxs("div",{className:"sticky top-0 border-b select-search-bar py-1 backdrop-blur-sm",children:[p.jsx("input",{ref:b,type:"text",placeholder:"Search",value:w,className:"appearance-none border-none w-full bg-transparent rounded- pl-10 transition-all duration-150 focus:outline-none ring-0 placeholder:text-[var(--color-input-placeholder)]",onChange:j=>h(j.target.value)}),p.jsx(Er,{className:"absolute select-search-icon left-4 top-4 h-4 w-4"})]}),p.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[w!==""&&p.jsxs(p.Fragment,{children:[v.length===0&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(Fl,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),v.map(j=>{const A=j.value===a;return p.jsx(un,{onClick:()=>{!j.disabled&&o&&(o(j.value),m(!1))},selected:A,disabled:j.disabled,children:j.label},String(j.value))})]}),w===""&&p.jsx(p.Fragment,{children:r.map(j=>{const A=j.value===a;return p.jsx(un,{onClick:()=>{!j.disabled&&o&&(o(j.value),m(!1))},selected:A,disabled:j.disabled,children:j.label},String(j.value))})})]})]})})]}),p.jsx(Ae,{children:i}),p.jsx(De,{children:c})]})})},Px=(e,t)=>{const[n,i]=S.useState(e);return S.useEffect(()=>{const r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e,t]),n},Ax=e=>{const{className:t,label:n,description:i,onChange:r,fetchOptionsByQuery:o,fetchOptionByValue:s,onSearchDebounceMs:a=300,value:l,placeholder:u,maxHeight:c=300,error:d,size:f="md"}=e,[m,v]=S.useState(!1),x=C.useRef(null),[w,h]=S.useState(""),[T,b]=S.useState([]),[k,y]=S.useState(null),P=C.useRef(null),[j,A]=S.useState(!1),[M,U]=S.useState(!1);hn(m,()=>v(!1));const F=Px(w,a);S.useEffect(()=>{(async()=>{A(!0);const ee=await o(F);b(ee),A(!1)})()},[F,o]),S.useEffect(()=>{if(l==null){y(null);return}const N=T?.find(ee=>ee.value===l);N?y(N):(async()=>{U(!0);const ie=await s(l);y(ie),U(!1)})()},[s,T,l]),S.useEffect(()=>{m&&setTimeout(()=>P.current?.focus(),100)},[m]);const{anchorRef:Q,Popover:G}=Vt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>v(!1)});return p.jsx(Je.Provider,{value:f,children:p.jsxs("div",{className:I("flex flex-col",t),children:[p.jsx(We,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:Q,children:[p.jsxs("div",{ref:x,role:"button",tabIndex:0,className:I("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",lt[f],Xe[f],ct[f],Rt[f],d&&"select-trigger-error",m&&"ring-4"),onKeyDown:N=>N.key===" "&&v(ee=>!ee),onClick:()=>v(!m),children:[!M&&k&&p.jsx("span",{children:k.label}),!M&&!k&&u&&p.jsx("span",{className:"select-placeholder",children:u}),M&&p.jsx(Dt,{className:"h-4 w-4 text-[var(--color-input-text)]"})]}),p.jsxs(dt,{children:[d&&p.jsx(Ze,{}),!!l&&p.jsx(Ue,{Icon:ut,onClick:()=>r(null)}),p.jsx(Ue,{Icon:an})]}),p.jsx(G,{open:m,children:p.jsxs(Lt,{className:"gap-0 !p-0",style:{maxHeight:c},children:[p.jsxs("div",{className:"sticky top-0 border-b select-search-bar py-1 backdrop-blur-sm",children:[p.jsx("input",{ref:P,type:"text",placeholder:"Search",value:w,className:"appearance-none border-none w-full bg-transparent rounded- pl-10 transition-all duration-150 focus:outline-none ring-0 placeholder:text-[var(--color-input-placeholder)]",onChange:N=>h(N.target.value)}),p.jsx(Er,{className:"absolute select-search-icon left-4 top-4 h-4 w-4"})]}),p.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[!j&&T.length===0&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(Fl,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),j&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(Dt,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),!j&&p.jsx(p.Fragment,{children:T.map(N=>{const ee=N.value===l;return p.jsx(un,{onClick:()=>{!N.disabled&&r&&(r(N.value),v(!1))},selected:ee,disabled:N.disabled,children:N.label},String(N.value))})})]})]})})]}),p.jsx(Ae,{children:i}),p.jsx(De,{children:d})]})})},Dx=C.forwardRef((e,t)=>{const{className:n,children:i,...r}=e;return p.jsx("div",{ref:t,className:I("flex flex-col gap-6 border panel-base rounded-2xl shadow-sm px-6 py-6",n),...r,children:i})}),Rx=C.forwardRef((e,t)=>{const{className:n,children:i,...r}=e;return p.jsx("div",{ref:t,className:I("flex flex-col gap-1 border panel-base rounded-2xl shadow-sm p-2",n),...r,children:i})}),iu="input-description text-sm font-medium",Ox=e=>{const{className:t,label:n,children:i,orientation:r="vertical",...o}=e;return r==="horizontal"?p.jsxs("div",{className:I("flex flex-row items-center gap-3 px-3 py-2",t),...o,children:[p.jsx("div",{className:I(iu,"w-1/2 line-clamp-1 break-all"),children:n}),p.jsx("div",{className:"w-1/2 line-clamp-1 break-all",children:i})]}):p.jsxs("div",{className:I("flex flex-col gap-1 px-3 py-2",t),...o,children:[n&&p.jsx("div",{className:iu,children:n}),p.jsx("div",{children:i})]})},Mx={error:Cr,warning:jh,success:jr,info:Ch},Ix={error:"text-[var(--color-status-error)]",warning:"text-[var(--color-status-warning)]",success:"text-[var(--color-status-success)]",info:"text-[var(--color-status-info)]"},ru="inline-flex flex-row gap-3 items-center justify-between h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent",Nx=e=>{const{className:t,children:n,Icon:i,status:r,...o}=e,s=r?Mx[r]:null,a=p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"inline-flex flex-row items-center gap-3 min-w-0",children:[i&&p.jsx(i,{className:"h-5 w-5 shrink-0"}),p.jsx("span",{className:"truncate",children:n})]}),p.jsxs("span",{className:"inline-flex flex-row items-center gap-2 shrink-0",children:[s&&r&&p.jsx(s,{className:I("h-5 w-5",Ix[r])}),p.jsx(yh,{className:"h-5 w-5 text-[var(--color-input-icon-button-icon)]"})]})]});if(o.href!==void 0){const{href:l,...u}=o;return p.jsx("a",{href:l,className:I(ru,t),...u,children:a})}return p.jsx("button",{className:I(ru,t),...o,children:a})},Fx=e=>{const{className:t,vertical:n=!1,...i}=e;return p.jsx("div",{className:I(n?"w-px h-full bg-[var(--color-divider)]":"w-full h-px bg-[var(--color-divider)]",t),...i})},Vx=e=>{const{children:t,content:n,className:i,placement:r="top",minWidth:o=100,maxWidth:s=200}=e,[a,l]=S.useState(!1),{anchorRef:u,Popover:c}=Vt({placement:r,minWidth:o,maxWidth:s});return p.jsxs("span",{ref:u,className:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t,p.jsx(c,{open:a,children:p.jsx(Lt,{children:n})})]})},Lx=e=>{const{open:t,onDismiss:n,enableDismissOnOutsideClick:i,enableDismissOnEscKey:r,enableDismissButton:o,className:s,children:a,maxWidth:l=600}=e;return hn(!!r&&t,n||(()=>{})),p.jsx(Cn,{children:t&&p.jsxs(so,{children:[p.jsx(at.div,{style:{transformOrigin:"center"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeInOut"},children:p.jsx(ao,{className:"modal-overlay backdrop-blur-[1px] z-10",onClick:i?n:void 0,lockScroll:!0})}),p.jsx("div",{className:"fixed inset-0 flex flex-col items-center pointer-events-none p-4 lg:p-12 overflow-y-auto z-20",children:p.jsxs(at.div,{className:I("flex flex-col modal-content rounded-2xl shadow-xl p-6 lg:p-12 pointer-events-auto w-full relative",s),style:{transformOrigin:"bottom",maxWidth:l},initial:{opacity:0,scale:.98,translateY:10},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:10},transition:{duration:.15,ease:"easeInOut"},children:[o&&p.jsx(kr,{Icon:ut,className:"absolute top-4 right-4",variant:"transparent",size:"sm",onClick:n}),a]})})]})})},_x=e=>{const{open:t,onDismiss:n,enableDismissOnOutsideClick:i,enableDismissOnEscKey:r,enableDismissButton:o,className:s,children:a,maxWidth:l=480}=e;return hn(!!r&&t,n||(()=>{})),p.jsx(Cn,{children:t&&p.jsxs(so,{children:[p.jsx(at.div,{style:{transformOrigin:"center"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeInOut"},children:p.jsx(ao,{className:"modal-overlay backdrop-blur-[1px] z-10",onClick:i?n:void 0,lockScroll:!0})}),p.jsx("div",{className:"fixed inset-0 flex flex-row justify-end pointer-events-none z-20",children:p.jsxs(at.div,{className:I("flex flex-col modal-content shadow-xl p-6 lg:p-12 pointer-events-auto h-full w-full overflow-y-auto relative",s),style:{maxWidth:l},initial:{translateX:"100%"},animate:{translateX:0},exit:{translateX:"100%"},transition:{duration:.25,ease:[.32,.72,0,1]},children:[o&&p.jsx(kr,{Icon:ut,className:"absolute top-4 right-4",variant:"transparent",size:"sm",onClick:n}),a]})})]})})},ou={red:"bg-red-100 text-red-700 ring-red-200 dark:bg-red-950 dark:text-red-300 dark:ring-red-800",orange:"bg-orange-100 text-orange-700 ring-orange-200 dark:bg-orange-950 dark:text-orange-300 dark:ring-orange-800",amber:"bg-amber-100 text-amber-700 ring-amber-200 dark:bg-amber-950 dark:text-amber-300 dark:ring-amber-800",yellow:"bg-yellow-100 text-yellow-700 ring-yellow-200 dark:bg-yellow-950 dark:text-yellow-300 dark:ring-yellow-800",lime:"bg-lime-100 text-lime-700 ring-lime-200 dark:bg-lime-950 dark:text-lime-300 dark:ring-lime-800",green:"bg-green-100 text-green-700 ring-green-200 dark:bg-green-950 dark:text-green-300 dark:ring-green-800",emerald:"bg-emerald-100 text-emerald-700 ring-emerald-200 dark:bg-emerald-950 dark:text-emerald-300 dark:ring-emerald-800",teal:"bg-teal-100 text-teal-700 ring-teal-200 dark:bg-teal-950 dark:text-teal-300 dark:ring-teal-800",cyan:"bg-cyan-100 text-cyan-700 ring-cyan-200 dark:bg-cyan-950 dark:text-cyan-300 dark:ring-cyan-800",sky:"bg-sky-100 text-sky-700 ring-sky-200 dark:bg-sky-950 dark:text-sky-300 dark:ring-sky-800",blue:"bg-blue-100 text-blue-700 ring-blue-200 dark:bg-blue-950 dark:text-blue-300 dark:ring-blue-800",indigo:"bg-indigo-100 text-indigo-700 ring-indigo-200 dark:bg-indigo-950 dark:text-indigo-300 dark:ring-indigo-800",violet:"bg-violet-100 text-violet-700 ring-violet-200 dark:bg-violet-950 dark:text-violet-300 dark:ring-violet-800",purple:"bg-purple-100 text-purple-700 ring-purple-200 dark:bg-purple-950 dark:text-purple-300 dark:ring-purple-800",fuchsia:"bg-fuchsia-100 text-fuchsia-700 ring-fuchsia-200 dark:bg-fuchsia-950 dark:text-fuchsia-300 dark:ring-fuchsia-800",pink:"bg-pink-100 text-pink-700 ring-pink-200 dark:bg-pink-950 dark:text-pink-300 dark:ring-pink-800",rose:"bg-rose-100 text-rose-700 ring-rose-200 dark:bg-rose-950 dark:text-rose-300 dark:ring-rose-800",slate:"bg-slate-100 text-slate-700 ring-slate-200 dark:bg-slate-950 dark:text-slate-300 dark:ring-slate-800",gray:"bg-gray-100 text-gray-700 ring-gray-200 dark:bg-gray-950 dark:text-gray-300 dark:ring-gray-800",zinc:"bg-zinc-100 text-zinc-700 ring-zinc-200 dark:bg-zinc-950 dark:text-zinc-300 dark:ring-zinc-800",neutral:"bg-neutral-100 text-neutral-700 ring-neutral-200 dark:bg-neutral-950 dark:text-neutral-300 dark:ring-neutral-800",stone:"bg-stone-100 text-stone-700 ring-stone-200 dark:bg-stone-950 dark:text-stone-300 dark:ring-stone-800",white:"bg-[var(--color-badge-white-bg)] text-[var(--color-badge-white-text)] ring-[var(--color-badge-white-ring)]",black:"bg-[var(--color-badge-black-bg)] text-[var(--color-badge-black-text)] ring-[var(--color-badge-black-ring)]"},lo=C.forwardRef((e,t)=>{const{className:n,children:i,onClick:r,showCloseIcon:o,Icon:s,color:a="gray"}=e,l=I("inline-flex align-top items-center gap-2 px-3 h-7 rounded-lg font-semibold",ou[a],n);return r?p.jsx("div",{ref:t,children:p.jsxs("button",{className:I("cursor-pointer ring-0 hover:ring-4 active:ring-1 transition-all duration-100 select-none focus:outline-none focus:ring-4",l),onClick:r,children:[s&&p.jsx(s,{className:"h-4 w-4 shrink-0"}),p.jsx("div",{className:"break-all line-clamp-1 text-left",children:i}),o&&p.jsx(ut,{className:"h-4 w-4 shrink-0"})]})}):p.jsxs("div",{className:l,ref:t,children:[s&&p.jsx(s,{className:"h-4 w-4 shrink-0"}),p.jsx("div",{className:"break-all line-clamp-1 text-left",children:i})]})}),su=e=>{const{className:t,tabs:n}=e;return p.jsx("div",{className:I("h-12 tab-container p-1 rounded-xl inline-flex flex-row space-x-1 overflow-x-auto mat-ui-hide-scrollbars",t),children:n.map((i,r)=>{const o=I("shrink-0 px-4 h-full inline-flex flex-row items-center font-semibold rounded-xl cursor-pointer border border-transparent ing-0 tab-button transition-all duration-150 select-none focus:outline-none focus:ring-0",i.active&&"tab-button-active shadow-sm");return i.href?p.jsxs("a",{href:i.href,className:o,children:[i.Icon&&p.jsx(i.Icon,{className:"h-5 w-5 shrink-0 mr-2 -ml-1"}),i.label]},r):p.jsxs("button",{className:o,onClick:i.onClick,children:[i.Icon&&p.jsx(i.Icon,{className:"h-5 w-5 shrink-0 mr-2 -ml-1"}),i.label]},r)})})},zx=e=>{const{duration:t=.3,ease:n="easeInOut",horizontal:i=!1,children:r,className:o,...s}=e,a=C.useRef(null),l=C.useRef(null),u=C.useRef(null);return C.useEffect(()=>{const c=a.current,d=l.current;if(!c||!d)return;let f=!0;const m=()=>{const x=i?c.scrollWidth-c.clientWidth:c.scrollHeight-c.clientHeight,w=i?c.scrollLeft:c.scrollTop;if(!(x<=0||Math.abs(x-w)<1)){if(f){f=!1,i?c.scrollLeft=x:c.scrollTop=x;return}u.current?.stop(),u.current=ih(w,x,{duration:t,ease:n,onUpdate:h=>{i?c.scrollLeft=h:c.scrollTop=h}})}},v=new ResizeObserver(m);return v.observe(d),()=>{v.disconnect(),u.current?.stop()}},[t,n,i]),p.jsx("div",{ref:a,className:I("min-h-0 min-w-0",i?"overflow-x-auto":"overflow-y-auto",o),...s,children:p.jsx("div",{ref:l,children:r})})};function Bx(e){const{onDelta:t,onDragStart:n,onDragEnd:i,disabled:r=!1,primaryButtonOnly:o=!0,preventScrollOnMove:s=!0}=e,[a,l]=C.useState(!1),u=C.useRef(!1),c=C.useRef(0),d=C.useRef(0),f=C.useRef(0),m=C.useRef(null),v=C.useRef(null),x=C.useRef({onDelta:t,onDragStart:n,onDragEnd:i,preventScrollOnMove:s});C.useEffect(()=>{x.current={onDelta:t,onDragStart:n,onDragEnd:i,preventScrollOnMove:s}});const w=C.useRef({}),h=C.useCallback(b=>{if(!u.current)return;const k={clientX:b??d.current,startX:c.current,totalDeltaX:f.current,target:m.current};u.current=!1,l(!1);const{move:y,up:P,keydown:j}=w.current;y&&window.removeEventListener("pointermove",y,!0),P&&(window.removeEventListener("pointerup",P,!0),window.removeEventListener("pointercancel",P,!0)),j&&window.removeEventListener("keydown",j,!0),w.current={},v.current!=null&&(cancelAnimationFrame(v.current),v.current=null),x.current.onDragEnd?.(k),m.current=null,f.current=0},[]),T=C.useCallback(b=>{if(r||o&&b.button!==0)return;b.target.setPointerCapture?.(b.pointerId),c.current=b.clientX,d.current=b.clientX,f.current=0,m.current=b.target,u.current=!0,l(!0);const k={clientX:b.clientX,startX:b.clientX,totalDeltaX:0,target:b.target};x.current.onDragStart?.(k);const y=A=>{u.current&&v.current==null&&(v.current=requestAnimationFrame(()=>{v.current=null;const M=A.clientX,U=M-d.current;if(U===0)return;d.current=M,f.current+=U;const F={clientX:M,startX:c.current,totalDeltaX:f.current,target:m.current};x.current.preventScrollOnMove&&A.preventDefault(),x.current.onDelta(U,F)}))},P=A=>{h(A.clientX)},j=A=>{A.key==="Escape"&&(A.preventDefault(),h())};w.current={move:y,up:P,keydown:j},window.addEventListener("pointermove",y,{passive:!s,capture:!0}),window.addEventListener("pointerup",P,{capture:!0}),window.addEventListener("pointercancel",P,{capture:!0}),window.addEventListener("keydown",j,!0)},[h,r,s,o]);return C.useEffect(()=>()=>{u.current&&h()},[h]),{isDragging:a,bind:{onPointerDown:T,role:"separator",style:{touchAction:"none",cursor:"col-resize",userSelect:"none"}}}}const au=e=>{const{column:t,width:n,height:i,onResize:r,sortDirection:o,onSortClick:s}=e,a=!!t.sortable,{bind:l}=Bx({onDelta:u=>r(u)});return p.jsxs("div",{style:{width:n,height:i},className:"flex flex-row items-stretch select-none shrink-0",children:[p.jsxs("div",{className:I("flex-1 min-w-0 px-4 table-header-cell transition-colors duration-100 flex flex-row items-center gap-2",a&&"cursor-pointer"),onClick:a?s:void 0,children:[p.jsx("span",{className:"truncate",children:t.header}),a&&o==="asc"&&p.jsx(bh,{className:"h-4 w-4 shrink-0"}),a&&o==="desc"&&p.jsx(an,{className:"h-4 w-4 shrink-0"})]}),p.jsx("div",{...l,className:"cursor-ew-resize group py-4 table-resize-handle w-[8px]",children:p.jsx("div",{className:"w-0.5 h-full mx-auto table-resize-divider table-resize-divider-hover pointer-events-none"})})]})},_t=200,$x=60,Wx=e=>{const t={};for(const n of e)t[n.id]=n.defaultWidth??_t;return t},lu=e=>{const{columns:t,rows:n,getRowId:i,onRowClick:r,sort:o,onSortChange:s,className:a,rowHeight:l=44,headerHeight:u=44}=e,[c,d]=S.useState(()=>Wx(t));S.useEffect(()=>{d(h=>{const T={};let b=Object.keys(h).length!==t.length;for(const k of t)k.id in h?T[k.id]=h[k.id]:(T[k.id]=k.defaultWidth??_t,b=!0);return b?T:h})},[t]);const f=S.useCallback((h,T,b)=>{d(k=>{const y=k[h]??_t,P=Math.max(b,y+T);return P===y?k:{...k,[h]:P}})},[]),m=S.useCallback(h=>{if(s){if(!o||o.columnId!==h){s({columnId:h,direction:"asc"});return}if(o.direction==="asc"){s({columnId:h,direction:"desc"});return}s(null)}},[o,s]),v=t.reduce((h,T)=>h+(c[T.id]??T.defaultWidth??_t),0),x=S.useRef(null),w=h=>{x.current&&(x.current.scrollLeft=h.currentTarget.scrollLeft)};return p.jsxs("div",{className:I("flex flex-col h-full w-full",a),children:[p.jsx("div",{ref:x,className:"overflow-hidden shrink-0",style:{height:u},children:p.jsx("div",{className:"flex flex-row table-header font-medium",style:{width:v,minWidth:"100%"},children:t.map(h=>p.jsx(au,{column:h,width:c[h.id]??h.defaultWidth??_t,height:u,onResize:T=>f(h.id,T,h.minWidth??$x),sortDirection:o?.columnId===h.id?o.direction:null,onSortClick:()=>m(h.id)},h.id))})}),p.jsx("div",{className:"flex-1 overflow-auto",onScroll:w,children:p.jsx("div",{className:"flex flex-col",style:{width:v,minWidth:"100%"},children:n.map((h,T)=>p.jsx("div",{className:I("flex flex-row table-body-row transition-colors duration-100",r&&"cursor-pointer"),onClick:r?()=>r(h,T):void 0,children:t.map(b=>p.jsx("div",{className:"shrink-0 content-center px-4 relative",style:{width:c[b.id]??b.defaultWidth??_t,height:l},children:p.jsx("div",{className:"break-all line-clamp-1",children:b.renderCell(h,T)})},b.id))},i(h,T)))})})]})},cu=S.createContext(void 0),Ux=()=>({dismiss:S.useContext(cu)||(()=>{})}),qx="inline-flex flex-row items-center gap-3 h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent",Te=C.forwardRef((e,t)=>{const{className:n,children:i,Icon:r,onClick:o,dismissOnClick:s=!0,...a}=e,{dismiss:l}=Ux(),u=c=>{o&&o(c),s&&l()};return p.jsxs("button",{ref:t,className:I(qx,n),onClick:u,...a,children:[r&&p.jsx(r,{className:"h-5 w-5"}),i]})}),co=e=>{const{label:t,children:n,className:i}=e;return p.jsxs("div",{className:I("flex flex-col dropdown-button-group",i),children:[t&&p.jsx("div",{className:"mb-2 text-sm dropdown-group-label font-semibold px-3",children:t}),n]})},uo=e=>{const{trigger:t,children:n,placement:i="bottom-end",minWidth:r=200,className:o}=e,[s,a]=S.useState(!1),{Popover:l,anchorRef:u}=Vt({placement:i,onOutsideClick:()=>a(!1),minWidth:r});return p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:u,className:o,onClick:()=>a(!s),children:t}),p.jsx(l,{open:s,children:p.jsx(Lt,{padding:"sm",children:p.jsx(cu.Provider,{value:()=>a(!1),children:n})})})]})},Kx=()=>p.jsx("div",{}),Yx=[{id:1,email:"sarah.jennings@example.com",firstname:"Sarah",lastname:"Jennings",status:"active"},{id:2,email:"liam.patel@outlook.com",firstname:"Liam",lastname:"Patel",status:"inactive"},{id:3,email:"emily.wong@gmail.com",firstname:"Emily",lastname:"Wong",status:"active"},{id:4,email:"noah.thompson@yahoo.com",firstname:"Noah",lastname:"Thompson",status:"active"},{id:5,email:"isabella.martin@protonmail.com",firstname:"Isabella",lastname:"Martin",status:"active"},{id:6,email:"ethan.ross@company.io",firstname:"Ethan",lastname:"Ross",status:"inactive"},{id:7,email:"olivia.nguyen@example.org",firstname:"Olivia",lastname:"Nguyen",status:"active"},{id:8,email:"lucas.henderson@gmail.com",firstname:"Lucas",lastname:"Henderson",status:"inactive"},{id:9,email:"mia.johnson@workmail.com",firstname:"Mia",lastname:"Johnson",status:"active"},{id:10,email:"jackson.rivera@outlook.com",firstname:"Jackson",lastname:"Rivera",status:"active"},{id:11,email:"ava.sanders@example.com",firstname:"Ava",lastname:"Sanders",status:"active"},{id:12,email:"logan.bennett@company.io",firstname:"Logan",lastname:"Bennett",status:"inactive"}],Hx=[{id:"id",header:"ID",renderCell:e=>e.id},{id:"email",header:"Email",renderCell:e=>p.jsx(lo,{Icon:Ph,onClick:()=>{},children:e.email})},{id:"firstname",header:"First Name",renderCell:e=>e.firstname},{id:"lastname",header:"Last Name",renderCell:e=>e.lastname},{id:"status",header:"Status",renderCell:()=>p.jsx(Xx,{})}],Gx=()=>p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-row items-center justify-start gap-3",children:[p.jsx(Pr,{Icon:Er,placeholder:"Search..."}),p.jsx(Fn,{Icon:Vl}),p.jsx(Ml,{Icon:Nl,children:"New"}),p.jsxs(uo,{trigger:p.jsx(Fn,{Icon:Vl}),children:[p.jsx(Te,{dismissOnClick:!1,Icon:Nl,children:"Add new"}),p.jsx(Te,{Icon:Eh,children:"Remove"}),p.jsxs(co,{label:"Test",className:"mt-2",children:[p.jsx(Te,{children:"Item 1"}),p.jsx(Te,{children:"Item 2"}),p.jsx(Te,{children:"Item 3"}),p.jsx(Te,{children:"Item 4"})]}),p.jsxs(co,{label:"Test",className:"mt-2",children:[p.jsx(Te,{children:"Item 1"}),p.jsx(Te,{children:"Item 2"}),p.jsx(Te,{children:"Item 3"}),p.jsx(Te,{children:"Item 4"})]})]}),p.jsx(su,{tabs:[{label:"Tab 1",Icon:Il,active:!0,onClick:()=>{}},{label:"Tab 2",active:!1,onClick:()=>{}},{label:"Tab 3",Icon:Il,active:!1,onClick:()=>{}}]})]}),p.jsx(nu,{options:[{label:"Option 1",value:1},{label:"Option 2",value:2},{label:"Option 3",value:3}],value:null,onChange:()=>{}}),p.jsx(lu,{className:"h-[300px] w-[300px]",columns:Hx,rows:Yx,getRowId:e=>e.id}),p.jsx(Kx,{})]}),Xx=()=>p.jsx(p.Fragment,{children:p.jsxs(uo,{placement:"bottom-end",className:"inline-block",trigger:p.jsx(lo,{onClick:()=>{},children:"Test"}),children:[p.jsx(Te,{children:"Option 1"}),p.jsx(Te,{children:"Option 2"}),p.jsx(Te,{children:"Option 3"})]})});$.AutoScroll=zx,$.Badge=lo,$.BadgeColor=ou,$.Button=Ml,$.ButtonIconRound=kr,$.ButtonIconSquare=Fn,$.Divider=Fx,$.DropdownButton=Te,$.DropdownButtonGroup=co,$.DropdownMenu=uo,$.DropdownPanel=Lt,$.Input=Pr,$.InputCheck=Vh,$.InputDescription=Ae,$.InputError=De,$.InputErrorIcon=Ze,$.InputFileMultiple=Kg,$.InputFileSingle=Ug,$.InputIconButton=Ue,$.InputIconButtonTray=dt,$.InputLabel=We,$.InputPassword=Dh,$.InputRadio=Nh,$.InputSelect=nu,$.InputSelectNative=Yg,$.InputSelectOption=un,$.InputSelectSearchable=Cx,$.InputSelectSearchableAsync=Ax,$.InputTextArea=Ih,$.InputToggle=Fh,$.Modal=Lx,$.Panel=Dx,$.PanelField=Ox,$.PanelLink=Nx,$.PanelStack=Rx,$.PopoverBase=tu,$.SidebarModal=_x,$.Spinner=Dt,$.TabButtons=su,$.Table=lu,$.TableColumnHead=au,$.Test=Gx,$.Tooltip=Vx,$.UploadFileTile=yc,$.usePopover=Vt,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
|
177
|
+
*/var Yr,Ac;function Av(){if(Ac)return Yr;Ac=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yr=r()?Object.assign:function(o,s){for(var a,l=i(o),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){u=e(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},Yr}var Xr,Dc;function Gr(){if(Dc)return Xr;Dc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xr=e,Xr}var Zr,Rc;function Mc(){return Rc||(Rc=1,Zr=Function.call.bind(Object.prototype.hasOwnProperty)),Zr}var Jr,Oc;function Dv(){if(Oc)return Jr;Oc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Gr(),n={},i=Mc();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function r(o,s,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(i(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](s,c,l,a,null,t)}catch(x){d=x}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=u?u():"";e("Failed "+a+" type: "+d.message+(m??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Jr=r,Jr}var Qr,Ic;function Rv(){if(Ic)return Qr;Ic=1;var e=Pc(),t=Av(),n=Gr(),i=Mc(),r=Dv(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Qr=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(v){var E=v&&(u&&v[u]||v[c]);if(typeof E=="function")return E}var f="<<anonymous>>",m={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:T(),arrayOf:b,element:k(),elementType:h(),instanceOf:C,node:W(),objectOf:A,oneOf:j,oneOfType:M,shape:J,exact:Y};function x(v,E){return v===E?v!==0||1/v===1/E:v!==v&&E!==E}function y(v,E){this.message=v,this.data=E&&typeof E=="object"?E:{},this.stack=""}y.prototype=Error.prototype;function w(v){if(process.env.NODE_ENV!=="production")var E={},I=0;function V(z,K,$,_,X,Q,de){if(_=_||f,Q=Q||$,de!==n){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=_+":"+$;!E[ve]&&I<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+_+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[ve]=!0,I++)}}return K[$]==null?z?K[$]===null?new y("The "+X+" `"+Q+"` is marked as required "+("in `"+_+"`, but its value is `null`.")):new y("The "+X+" `"+Q+"` is marked as required in "+("`"+_+"`, but its value is `undefined`.")):null:v(K,$,_,X,Q)}var L=V.bind(null,!1);return L.isRequired=V.bind(null,!0),L}function g(v){function E(I,V,L,z,K,$){var _=I[V],X=ie(_);if(X!==v){var Q=G(_);return new y("Invalid "+z+" `"+K+"` of type "+("`"+Q+"` supplied to `"+L+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return w(E)}function T(){return w(s)}function b(v){function E(I,V,L,z,K){if(typeof v!="function")return new y("Property `"+K+"` of component `"+L+"` has invalid PropType notation inside arrayOf.");var $=I[V];if(!Array.isArray($)){var _=ie($);return new y("Invalid "+z+" `"+K+"` of type "+("`"+_+"` supplied to `"+L+"`, expected an array."))}for(var X=0;X<$.length;X++){var Q=v($,X,L,z,K+"["+X+"]",n);if(Q instanceof Error)return Q}return null}return w(E)}function k(){function v(E,I,V,L,z){var K=E[I];if(!a(K)){var $=ie(K);return new y("Invalid "+L+" `"+z+"` of type "+("`"+$+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return w(v)}function h(){function v(E,I,V,L,z){var K=E[I];if(!e.isValidElementType(K)){var $=ie(K);return new y("Invalid "+L+" `"+z+"` of type "+("`"+$+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return w(v)}function C(v){function E(I,V,L,z,K){if(!(I[V]instanceof v)){var $=v.name||f,_=Z(I[V]);return new y("Invalid "+z+" `"+K+"` of type "+("`"+_+"` supplied to `"+L+"`, expected ")+("instance of `"+$+"`."))}return null}return w(E)}function j(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function E(I,V,L,z,K){for(var $=I[V],_=0;_<v.length;_++)if(x($,v[_]))return null;var X=JSON.stringify(v,function(de,D){var ve=G(D);return ve==="symbol"?String(D):D});return new y("Invalid "+z+" `"+K+"` of value `"+String($)+"` "+("supplied to `"+L+"`, expected one of "+X+"."))}return w(E)}function A(v){function E(I,V,L,z,K){if(typeof v!="function")return new y("Property `"+K+"` of component `"+L+"` has invalid PropType notation inside objectOf.");var $=I[V],_=ie($);if(_!=="object")return new y("Invalid "+z+" `"+K+"` of type "+("`"+_+"` supplied to `"+L+"`, expected an object."));for(var X in $)if(i($,X)){var Q=v($,X,L,z,K+"."+X,n);if(Q instanceof Error)return Q}return null}return w(E)}function M(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var E=0;E<v.length;E++){var I=v[E];if(typeof I!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(I)+" at index "+E+"."),s}function V(L,z,K,$,_){for(var X=[],Q=0;Q<v.length;Q++){var de=v[Q],D=de(L,z,K,$,_,n);if(D==null)return null;D.data&&i(D.data,"expectedType")&&X.push(D.data.expectedType)}var ve=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new y("Invalid "+$+" `"+_+"` supplied to "+("`"+K+"`"+ve+"."))}return w(V)}function W(){function v(E,I,V,L,z){return F(E[I])?null:new y("Invalid "+L+" `"+z+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return w(v)}function O(v,E,I,V,L){return new y((v||"React class")+": "+E+" type `"+I+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+L+"`.")}function J(v){function E(I,V,L,z,K){var $=I[V],_=ie($);if(_!=="object")return new y("Invalid "+z+" `"+K+"` of type `"+_+"` "+("supplied to `"+L+"`, expected `object`."));for(var X in v){var Q=v[X];if(typeof Q!="function")return O(L,z,K,X,G(Q));var de=Q($,X,L,z,K+"."+X,n);if(de)return de}return null}return w(E)}function Y(v){function E(I,V,L,z,K){var $=I[V],_=ie($);if(_!=="object")return new y("Invalid "+z+" `"+K+"` of type `"+_+"` "+("supplied to `"+L+"`, expected `object`."));var X=t({},I[V],v);for(var Q in X){var de=v[Q];if(i(v,Q)&&typeof de!="function")return O(L,z,K,Q,G(de));if(!de)return new y("Invalid "+z+" `"+K+"` key `"+Q+"` supplied to `"+L+"`.\nBad object: "+JSON.stringify(I[V],null," ")+`
|
|
178
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var D=de($,Q,L,z,K+"."+Q,n);if(D)return D}return null}return w(E)}function F(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(F);if(v===null||a(v))return!0;var E=d(v);if(E){var I=E.call(v),V;if(E!==v.entries){for(;!(V=I.next()).done;)if(!F(V.value))return!1}else for(;!(V=I.next()).done;){var L=V.value;if(L&&!F(L[1]))return!1}}else return!1;return!0;default:return!1}}function ee(v,E){return v==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function ie(v){var E=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":ee(E,v)?"symbol":E}function G(v){if(typeof v>"u"||v===null)return""+v;var E=ie(v);if(E==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return E}function q(v){var E=G(v);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function Z(v){return!v.constructor||!v.constructor.name?f:v.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},Qr}var eo,Nc;function Mv(){if(Nc)return eo;Nc=1;var e=Gr();function t(){}function n(){}return n.resetWarningCache=t,eo=function(){function i(s,a,l,u,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}i.isRequired=i;function r(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},eo}var Fc;function Ov(){if(Fc)return Gn.exports;if(Fc=1,process.env.NODE_ENV!=="production"){var e=Pc(),t=!0;Gn.exports=Rv()(e.isElement,t)}else Gn.exports=Mv()();return Gn.exports}var Iv=Ov();const re=ko(Iv);function vt(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Nv=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function _t(e,t,n){const i=Fv(e),{webkitRelativePath:r}=e,o=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof i.path!="string"&&Vc(i,"path",o),Vc(i,"relativePath",o),i}function Fv(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),r=Nv.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Vc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Vv=[".DS_Store","Thumbs.db"];function Lv(e){return vt(this,void 0,void 0,function*(){return Jn(e)&&_v(e.dataTransfer)?Wv(e.dataTransfer,e.type):zv(e)?Bv(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?$v(e):[]})}function _v(e){return Jn(e)}function zv(e){return Jn(e)&&Jn(e.target)}function Jn(e){return typeof e=="object"&&e!==null}function Bv(e){return to(e.target.files).map(t=>_t(t))}function $v(e){return vt(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>_t(n))})}function Wv(e,t){return vt(this,void 0,void 0,function*(){if(e.items){const n=to(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(Uv));return Lc(_c(i))}return Lc(to(e.files).map(n=>_t(n)))})}function Lc(e){return e.filter(t=>Vv.indexOf(t.name)===-1)}function to(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function Uv(e){if(typeof e.webkitGetAsEntry!="function")return zc(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Bc(t):zc(e,t)}function _c(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?_c(n):[n]],[])}function zc(e,t){return vt(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const s=yield o.getFile();return s.handle=o,_t(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return _t(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function qv(e){return vt(this,void 0,void 0,function*(){return e.isDirectory?Bc(e):Kv(e)})}function Bc(e){const t=e.createReader();return new Promise((n,i)=>{const r=[];function o(){t.readEntries(s=>vt(this,void 0,void 0,function*(){if(s.length){const a=Promise.all(s.map(qv));r.push(a),o()}else try{const a=yield Promise.all(r);n(a)}catch(a){i(a)}}),s=>{i(s)})}o()})}function Kv(e){return vt(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const r=_t(i,e.fullPath);t(r)},i=>{n(i)})})})}var Qn={},$c;function Hv(){return $c||($c=1,Qn.__esModule=!0,Qn.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",r=(e.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?i.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):r===a})}return!0}),Qn}var Yv=Hv();const no=ko(Yv);function Wc(e){return Zv(e)||Gv(e)||Hc(e)||Xv()}function Xv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zv(e){if(Array.isArray(e))return io(e)}function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(i){Kc(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){return ex(e)||Qv(e,t)||Hc(e,t)||Jv()}function Jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
180
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hc(e,t){if(e){if(typeof e=="string")return io(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return io(e,t)}}function io(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Qv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,o=!1,s,a;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){o=!0,a=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw a}}return i}}function ex(e){if(Array.isArray(e))return e}var tx=typeof no=="function"?no:no.default,nx="file-invalid-type",ix="file-too-large",rx="file-too-small",ox="too-many-files",sx=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:nx,message:"File type must be ".concat(i)}},Yc=function(t){return{code:ix,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Xc=function(t){return{code:rx,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},ax={code:ox,message:"Too many files"};function lx(e){return e.type===""&&typeof e.getAsFile=="function"}function Gc(e,t){var n=e.type==="application/x-moz-file"||tx(e,t)||lx(e);return[n,n?null:sx(t)]}function Zc(e,t,n){if(xt(e.size))if(xt(t)&&xt(n)){if(e.size>n)return[!1,Yc(n)];if(e.size<t)return[!1,Xc(t)]}else{if(xt(t)&&e.size<t)return[!1,Xc(t)];if(xt(n)&&e.size>n)return[!1,Yc(n)]}return[!0,null]}function xt(e){return e!=null}function cx(e){var t=e.files,n=e.accept,i=e.minSize,r=e.maxSize,o=e.multiple,s=e.maxFiles,a=e.validator;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(l){var u=Gc(l,n),c=mn(u,1),d=c[0],f=Zc(l,i,r),m=mn(f,1),x=m[0],y=a?a(l):null;return d&&x&&!y})}function ei(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function hn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Jc(e){e.preventDefault()}function ux(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dx(e){return e.indexOf("Edge/")!==-1}function px(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ux(e)||dx(e)}function ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return t.some(function(a){return!ei(i)&&a&&a.apply(void 0,[i].concat(o)),ei(i)})}}function fx(){return"showOpenFilePicker"in window}function mx(e){if(xt(e)){var t=Object.entries(e).filter(function(n){var i=mn(n,2),r=i[0],o=i[1],s=!0;return Qc(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(o)||!o.every(eu))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,i){var r=mn(i,2),o=r[0],s=r[1];return qc(qc({},n),{},Kc({},o,s))},{});return[{description:"Files",accept:t}]}return e}function hx(e){if(xt(e))return Object.entries(e).reduce(function(t,n){var i=mn(n,2),r=i[0],o=i[1];return[].concat(Wc(t),[r],Wc(o))},[]).filter(function(t){return Qc(t)||eu(t)}).join(",")}function gx(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function vx(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Qc(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function eu(e){return/^.*\.[\w]+$/.test(e)}var xx=["children"],yx=["open"],bx=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],wx=["refKey","onChange","onClick"];function tu(e){return kx(e)||Sx(e)||nu(e)||Tx()}function Tx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
181
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kx(e){if(Array.isArray(e))return oo(e)}function ro(e,t){return Cx(e)||Ex(e,t)||nu(e,t)||jx()}function jx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
182
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nu(e,t){if(e){if(typeof e=="string")return oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oo(e,t)}}function oo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ex(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,o=!1,s,a;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){o=!0,a=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw a}}return i}}function Cx(e){if(Array.isArray(e))return e}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(i){so(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function so(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e,t){if(e==null)return{};var n=Px(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Px(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var ao=S.forwardRef(function(e,t){var n=e.children,i=ti(e,xx),r=co(i),o=r.open,s=ti(r,yx);return S.useImperativeHandle(t,function(){return{open:o}},[o]),S.createElement(S.Fragment,null,n(oe(oe({},s),{},{open:o})))});ao.displayName="Dropzone";var ru={disabled:!1,getFilesFromEvent:Lv,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ao.defaultProps=ru,ao.propTypes={children:re.func,accept:re.objectOf(re.arrayOf(re.string)),multiple:re.bool,preventDropOnDocument:re.bool,noClick:re.bool,noKeyboard:re.bool,noDrag:re.bool,noDragEventsBubbling:re.bool,minSize:re.number,maxSize:re.number,maxFiles:re.number,disabled:re.bool,getFilesFromEvent:re.func,onFileDialogCancel:re.func,onFileDialogOpen:re.func,useFsAccessApi:re.bool,autoFocus:re.bool,onDragEnter:re.func,onDragLeave:re.func,onDragOver:re.func,onDrop:re.func,onDropAccepted:re.func,onDropRejected:re.func,onError:re.func,validator:re.func};var lo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function co(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=oe(oe({},ru),e),n=t.accept,i=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,x=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,g=t.useFsAccessApi,T=t.autoFocus,b=t.preventDropOnDocument,k=t.noClick,h=t.noKeyboard,C=t.noDrag,j=t.noDragEventsBubbling,A=t.onError,M=t.validator,W=S.useMemo(function(){return hx(n)},[n]),O=S.useMemo(function(){return mx(n)},[n]),J=S.useMemo(function(){return typeof w=="function"?w:ou},[w]),Y=S.useMemo(function(){return typeof y=="function"?y:ou},[y]),F=S.useRef(null),ee=S.useRef(null),ie=S.useReducer(Ax,lo),G=ro(ie,2),q=G[0],Z=G[1],v=q.isFocused,E=q.isFileDialogActive,I=S.useRef(typeof window<"u"&&window.isSecureContext&&g&&fx()),V=function(){!I.current&&E&&setTimeout(function(){if(ee.current){var U=ee.current.files;U.length||(Z({type:"closeDialog"}),Y())}},300)};S.useEffect(function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}},[ee,E,Y,I]);var L=S.useRef([]),z=S.useRef([]),K=function(U){F.current&&F.current.contains(U.target)||(U.preventDefault(),L.current=[])};S.useEffect(function(){return b&&(document.addEventListener("dragover",Jc,!1),document.addEventListener("drop",K,!1)),function(){b&&(document.removeEventListener("dragover",Jc),document.removeEventListener("drop",K))}},[F,b]),S.useEffect(function(){var R=function(Be){z.current=[].concat(tu(z.current),[Be.target]),hn(Be)&&Z({isDragGlobal:!0,type:"setDragGlobal"})},U=function(Be){z.current=z.current.filter(function(Ye){return Ye!==Be.target&&Ye!==null}),!(z.current.length>0)&&Z({isDragGlobal:!1,type:"setDragGlobal"})},ce=function(){z.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})},me=function(){z.current=[],Z({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",R,!1),document.addEventListener("dragleave",U,!1),document.addEventListener("dragend",ce,!1),document.addEventListener("drop",me,!1),function(){document.removeEventListener("dragenter",R),document.removeEventListener("dragleave",U),document.removeEventListener("dragend",ce),document.removeEventListener("drop",me)}},[F]),S.useEffect(function(){return!i&&T&&F.current&&F.current.focus(),function(){}},[F,T,i]);var $=S.useCallback(function(R){A?A(R):console.error(R)},[A]),_=S.useCallback(function(R){R.preventDefault(),R.persist(),ii(R),L.current=[].concat(tu(L.current),[R.target]),hn(R)&&Promise.resolve(r(R)).then(function(U){if(!(ei(R)&&!j)){var ce=U.length,me=ce>0&&cx({files:U,accept:W,minSize:s,maxSize:o,multiple:a,maxFiles:l,validator:M}),xe=ce>0&&!me;Z({isDragAccept:me,isDragReject:xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(R)}}).catch(function(U){return $(U)})},[r,u,$,j,W,s,o,a,l,M]),X=S.useCallback(function(R){R.preventDefault(),R.persist(),ii(R);var U=hn(R);if(U&&R.dataTransfer)try{R.dataTransfer.dropEffect="copy"}catch{}return U&&d&&d(R),!1},[d,j]),Q=S.useCallback(function(R){R.preventDefault(),R.persist(),ii(R);var U=L.current.filter(function(me){return F.current&&F.current.contains(me)}),ce=U.indexOf(R.target);ce!==-1&&U.splice(ce,1),L.current=U,!(U.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hn(R)&&c&&c(R))},[F,c,j]),de=S.useCallback(function(R,U){var ce=[],me=[];R.forEach(function(xe){var Be=Gc(xe,W),Ye=ro(Be,2),ho=Ye[0],go=Ye[1],vo=Zc(xe,s,o),ri=ro(vo,2),xo=ri[0],yo=ri[1],bo=M?M(xe):null;if(ho&&xo&&!bo)ce.push(xe);else{var wo=[go,yo];bo&&(wo=wo.concat(bo)),me.push({file:xe,errors:wo.filter(function(uy){return uy})})}}),(!a&&ce.length>1||a&&l>=1&&ce.length>l)&&(ce.forEach(function(xe){me.push({file:xe,errors:[ax]})}),ce.splice(0)),Z({acceptedFiles:ce,fileRejections:me,type:"setFiles"}),f&&f(ce,me,U),me.length>0&&x&&x(me,U),ce.length>0&&m&&m(ce,U)},[Z,a,W,s,o,l,f,m,x,M]),D=S.useCallback(function(R){R.preventDefault(),R.persist(),ii(R),L.current=[],hn(R)&&Promise.resolve(r(R)).then(function(U){ei(R)&&!j||de(U,R)}).catch(function(U){return $(U)}),Z({type:"reset"})},[r,de,$,j]),ve=S.useCallback(function(){if(I.current){Z({type:"openDialog"}),J();var R={multiple:a,types:O};window.showOpenFilePicker(R).then(function(U){return r(U)}).then(function(U){de(U,null),Z({type:"closeDialog"})}).catch(function(U){gx(U)?(Y(U),Z({type:"closeDialog"})):vx(U)?(I.current=!1,ee.current?(ee.current.value=null,ee.current.click()):$(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):$(U)});return}ee.current&&(Z({type:"openDialog"}),J(),ee.current.value=null,ee.current.click())},[Z,J,Y,g,de,$,O,a]),yt=S.useCallback(function(R){!F.current||!F.current.isEqualNode(R.target)||(R.key===" "||R.key==="Enter"||R.keyCode===32||R.keyCode===13)&&(R.preventDefault(),ve())},[F,ve]),vn=S.useCallback(function(){Z({type:"focus"})},[]),hu=S.useCallback(function(){Z({type:"blur"})},[]),gu=S.useCallback(function(){k||(px()?setTimeout(ve,0):ve())},[k,ve]),Bt=function(U){return i?null:U},mo=function(U){return h?null:Bt(U)},ni=function(U){return C?null:Bt(U)},ii=function(U){j&&U.stopPropagation()},ay=S.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=R.refKey,ce=U===void 0?"ref":U,me=R.role,xe=R.onKeyDown,Be=R.onFocus,Ye=R.onBlur,ho=R.onClick,go=R.onDragEnter,vo=R.onDragOver,ri=R.onDragLeave,xo=R.onDrop,yo=ti(R,bx);return oe(oe(so({onKeyDown:mo(ze(xe,yt)),onFocus:mo(ze(Be,vn)),onBlur:mo(ze(Ye,hu)),onClick:Bt(ze(ho,gu)),onDragEnter:ni(ze(go,_)),onDragOver:ni(ze(vo,X)),onDragLeave:ni(ze(ri,Q)),onDrop:ni(ze(xo,D)),role:typeof me=="string"&&me!==""?me:"presentation"},ce,F),!i&&!h?{tabIndex:0}:{}),yo)}},[F,yt,vn,hu,gu,_,X,Q,D,h,C,i]),ly=S.useCallback(function(R){R.stopPropagation()},[]),cy=S.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=R.refKey,ce=U===void 0?"ref":U,me=R.onChange,xe=R.onClick,Be=ti(R,wx),Ye=so({accept:W,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Bt(ze(me,D)),onClick:Bt(ze(xe,ly)),tabIndex:-1},ce,ee);return oe(oe({},Ye),Be)}},[ee,n,a,D,i]);return oe(oe({},q),{},{isFocused:v&&!i,getRootProps:ay,getInputProps:cy,rootRef:F,inputRef:ee,open:Bt(ve)})}function Ax(e,t){switch(t.type){case"focus":return oe(oe({},e),{},{isFocused:!0});case"blur":return oe(oe({},e),{},{isFocused:!1});case"openDialog":return oe(oe({},lo),{},{isFileDialogActive:!0});case"closeDialog":return oe(oe({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return oe(oe({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return oe(oe({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return oe(oe({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return oe({},lo);default:return e}}function ou(){}const Dx={sm:"h-7",md:"h-8",lg:"h-10"},Rx={sm:"px-2.5",md:"px-3",lg:"px-4"},Mx={sm:"text-xs",md:"text-sm",lg:"text-sm"},Ox=e=>{const{label:t,description:n,error:i,placeholder:r="No file chosen",buttonText:o="Choose",Icon:s=Ch,size:a="md",value:l,isUploaded:u=!1,isUploading:c=!1,onChange:d,onDropRejected:f,accept:m,maxSize:x,minSize:y,disabled:w=!1,className:g}=e,T=async M=>{const[W]=M;W&&await d?.(W)},{getRootProps:b,getInputProps:k,open:h,isDragActive:C,isFocused:j}=co({multiple:!1,accept:m,maxSize:x,minSize:y,disabled:w,onDrop:T,onDropRejected:f}),A=l?.name;return p.jsx(Ke.Provider,{value:a,children:p.jsxs("div",{className:N("flex flex-col",g),children:[p.jsx(Fe,{children:t}),p.jsxs("div",{...b({className:N("flex flex-row items-center","border input-base rounded-xl shadow-sm transition-all duration-150","ring-0 focus:outline-none",(j||C)&&"ring-4",i&&"input-error",w&&"opacity-60 cursor-not-allowed",Qe[a],ut[a],"gap-3")}),children:[p.jsx("input",{...k()}),p.jsx(s,{className:N("input-icon shrink-0",pt[a])}),p.jsx("span",{className:N("flex-1 truncate",Ue[a],!A&&"text-[var(--color-input-placeholder)]"),children:A??r}),i&&p.jsx(qe,{}),c&&!i&&p.jsx("div",{className:"h-5 w-5 flex items-center justify-center",children:p.jsx(It,{className:"h-4 w-4 text-[var(--color-input-icon)]"})}),u&&!c&&!i&&p.jsx("div",{className:"h-5 w-5",children:p.jsx(Pr,{className:"h-5 w-5 text-[var(--color-status-success)]"})}),p.jsx("button",{type:"button",disabled:w,onClick:M=>{M.stopPropagation(),h()},className:N("inline-flex flex-row items-center justify-center shrink-0","border button-white shadow-sm rounded-[calc(var(--border-radius-input)-0.25rem)]","font-semibold cursor-pointer select-none transition-all duration-150","button-ring ring-0 hover:ring-4 active:ring-1 focus:outline-none focus:ring-4","disabled:cursor-default","mr-1.5",Dx[a],Rx[a],Mx[a]),children:o})]}),p.jsx(Se,{children:n}),p.jsx(ke,{children:i})]})})},Ix=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(1)} GB`,su=e=>{const{file:t,isUploaded:n=!1,isUploading:i=!1,error:r,onRemove:o,className:s}=e,a=i||n||!!r;return p.jsxs("div",{className:N("flex flex-row items-center gap-3","border input-base rounded-xl shadow-sm","pl-4 pr-1 py-1",r&&"input-error",s),children:[a&&p.jsx("div",{className:"shrink-0 h-5 w-5 flex items-center justify-center",children:r?p.jsx(Ar,{className:"h-5 w-5 input-error-icon"}):i?p.jsx(It,{className:"h-4 w-4 text-[var(--color-input-icon)]"}):p.jsx(Pr,{className:"h-5 w-5 text-[var(--color-status-success)]"})}),p.jsx("div",{className:"flex-1 min-w-0 font-medium truncate",children:t.name}),p.jsx("div",{className:"shrink-0 text-sm text-[var(--color-input-description-text)]",children:Ix(t.size)}),o&&p.jsx(Vn,{variant:"transparent",size:"sm",Icon:ft,onClick:o,"aria-label":"Remove file",className:"shrink-0"})]})},Nx=e=>{const{label:t,description:n,error:i,title:r="Drop files here",hint:o,Icon:s=kh,onUpload:a,onFileRemoved:l,onDropRejected:u,renderFileTile:c,accept:d,maxSize:f,minSize:m,maxFiles:x,disabled:y=!1,className:w}=e,[g,T]=S.useState([]),b=S.useRef(0),k=(O,J)=>{T(Y=>Y.map(F=>F.id===O?{...F,...J}:F))},h=O=>{if(O.length===0)return;const J=O.map(Y=>({id:String(++b.current),file:Y,status:a?"uploading":"idle"}));if(T(Y=>[...Y,...J]),!!a)for(const Y of J)Promise.resolve().then(()=>a(Y.file)).then(()=>k(Y.id,{status:"uploaded"})).catch(F=>{k(Y.id,{status:"error",error:F instanceof Error?F:new Error(String(F))})})},C=O=>{const J=g.find(Y=>Y.id===O);T(Y=>Y.filter(F=>F.id!==O)),J&&l?.(J.file)},{getRootProps:j,getInputProps:A,isDragActive:M,isFocused:W}=co({multiple:!0,accept:d,maxSize:f,minSize:m,maxFiles:x,disabled:y,onDrop:h,onDropRejected:u});return p.jsxs("div",{className:N("flex flex-col",w),children:[p.jsx(Fe,{children:t}),p.jsxs("div",{...j({className:N("flex flex-col items-center justify-center gap-1","border-2 border-dashed input-base rounded-xl bg-transparent!","py-10 px-6 cursor-pointer transition-all duration-150","ring-0 focus:outline-none",(W||M)&&"ring-4",i&&"input-error",y&&"opacity-60 cursor-not-allowed")}),children:[p.jsx("input",{...A()}),p.jsx("div",{className:"h-14 w-14 rounded-xl flex items-center justify-center bg-[var(--color-input-file-icon-bg)] mb-2",children:p.jsx(s,{className:"h-7 w-7 input-icon"})}),p.jsx("div",{className:"text-base font-semibold",children:r}),o&&p.jsx("div",{className:"text-sm text-[var(--color-input-description-text)] ",children:o})]}),g.length>0&&p.jsx("div",{className:"flex flex-col gap-2 mt-3",children:g.map(O=>{const J={file:O.file,isUploading:O.status==="uploading",isUploaded:O.status==="uploaded",error:O.status==="error"?O.error?.message:void 0,onRemove:()=>C(O.id)};return p.jsx(P.Fragment,{children:c?c(O.file,J):p.jsx(su,{...J})},O.id)})}),p.jsx(Se,{children:n}),p.jsx(ke,{children:i})]})},Fx=e=>{const{className:t,label:n,description:i,options:r,error:o,size:s="md",...a}=e;return p.jsx(Ke.Provider,{value:s,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",children:[p.jsx("select",{className:N("appearance-none border input-base bg-none transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",Qe[s],Ue[s],ut[s],dt[s]),...a,children:r&&r.map((l,u)=>p.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},u))}),p.jsxs(et,{children:[o&&p.jsx(qe,{}),p.jsx(He,{Icon:ln})]})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:o})]})})},gn=e=>{const{children:t,onClick:n,selected:i,disabled:r=!1}=e;return p.jsxs("div",{onClick:()=>!r&&n&&n(),className:N("option-base px-4 py-2 rounded-xl cursor-pointer transition-all duration-150 select-none flex flex-row gap-3 items-center",i&&!r&&"option-selected",r&&"option-disabled cursor-not-allowed hover:bg-transparent active:bg-transparent"),children:[p.jsx("div",{className:"flex-1",children:t}),i&&!r&&p.jsx("div",{className:"shrink-0",children:p.jsx(wh,{className:"h-5 w-5"})})]})},au=e=>{const{className:t,label:n,description:i,options:r,onChange:o,value:s,placeholder:a,maxHeight:l=300,error:u,size:c="md"}=e,[d,f]=S.useState(!1),m=P.useRef(null),x=r?.find(g=>g.value===s);Lt(d,()=>f(!1)),S.useEffect(()=>{d&&m.current?.focus({preventScroll:!0})},[d]);const{anchorRef:y,Popover:w}=gt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>f(!1)});return p.jsx(Ke.Provider,{value:c,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:y,children:[p.jsxs("div",{ref:m,role:"button",tabIndex:0,className:N("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",Qe[c],Ue[c],ut[c],dt[c],u&&"select-trigger-error",d&&"ring-4"),onKeyDown:g=>g.key===" "&&f(T=>!T),onClick:()=>f(!d),children:[x&&p.jsx("span",{children:x.label}),!x&&a&&p.jsx("span",{className:"select-placeholder",children:a})]}),p.jsxs(et,{children:[u&&p.jsx(qe,{}),!!s&&p.jsx(He,{Icon:ft,onClick:()=>o(null)}),p.jsx(He,{Icon:ln})]}),p.jsx(w,{open:d,children:p.jsx(mt,{className:"!p-0",style:{maxHeight:l},children:p.jsx("div",{className:"flex flex-col p-2 gap-1",children:r.map(g=>{const T=g.value===s;return p.jsx(gn,{onClick:()=>{!g.disabled&&o&&(o(g.value),f(!1))},selected:T,disabled:g.disabled,children:g.label},String(g.value))})})})})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:u})]})})},Vx=e=>{const{className:t,label:n,description:i,options:r,onChange:o,onSearch:s,value:a,placeholder:l,maxHeight:u=300,error:c,size:d="md"}=e,[f,m]=S.useState(!1),[x,y]=S.useState(r),[w,g]=S.useState(""),T=P.useRef(null),b=P.useRef(null),k=r?.find(j=>j.value===a);Lt(f,()=>m(!1)),S.useEffect(()=>{y(s(w))},[w,r,s]),S.useEffect(()=>{f&&setTimeout(()=>b.current?.focus(),100)},[f]);const{anchorRef:h,Popover:C}=gt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>m(!1)});return p.jsx(Ke.Provider,{value:d,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:h,children:[p.jsxs("div",{ref:T,role:"button",tabIndex:0,className:N("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",Qe[d],Ue[d],ut[d],dt[d],c&&"select-trigger-error",f&&"ring-4"),onKeyDown:j=>j.key===" "&&m(A=>!A),onClick:()=>m(!f),children:[k&&p.jsx("span",{children:k.label}),!k&&l&&p.jsx("span",{className:"select-placeholder",children:l})]}),p.jsxs(et,{children:[c&&p.jsx(qe,{}),!!a&&p.jsx(He,{Icon:ft,onClick:()=>o(null)}),p.jsx(He,{Icon:ln})]}),p.jsx(C,{open:f,children:p.jsxs(mt,{className:"gap-0 !p-0",style:{maxHeight:u},children:[p.jsxs("div",{className:"sticky top-0 border-b select-search-bar py-1 backdrop-blur-sm",children:[p.jsx("input",{ref:b,type:"text",placeholder:"Search",value:w,className:"appearance-none border-none w-full bg-transparent rounded- pl-10 transition-all duration-150 focus:outline-none ring-0 placeholder:text-[var(--color-input-placeholder)]",onChange:j=>g(j.target.value)}),p.jsx(Cr,{className:"absolute select-search-icon left-4 top-4 h-4 w-4"})]}),p.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[w!==""&&p.jsxs(p.Fragment,{children:[x.length===0&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(_l,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),x.map(j=>{const A=j.value===a;return p.jsx(gn,{onClick:()=>{!j.disabled&&o&&(o(j.value),m(!1))},selected:A,disabled:j.disabled,children:j.label},String(j.value))})]}),w===""&&p.jsx(p.Fragment,{children:r.map(j=>{const A=j.value===a;return p.jsx(gn,{onClick:()=>{!j.disabled&&o&&(o(j.value),m(!1))},selected:A,disabled:j.disabled,children:j.label},String(j.value))})})]})]})})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:c})]})})},Lx=(e,t)=>{const[n,i]=S.useState(e);return S.useEffect(()=>{const r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e,t]),n},_x=e=>{const{className:t,label:n,description:i,onChange:r,fetchOptionsByQuery:o,fetchOptionByValue:s,onSearchDebounceMs:a=300,value:l,placeholder:u,maxHeight:c=300,error:d,size:f="md"}=e,[m,x]=S.useState(!1),y=P.useRef(null),[w,g]=S.useState(""),[T,b]=S.useState([]),[k,h]=S.useState(null),C=P.useRef(null),[j,A]=S.useState(!1),[M,W]=S.useState(!1);Lt(m,()=>x(!1));const O=Lx(w,a);S.useEffect(()=>{(async()=>{A(!0);const ee=await o(O);b(ee),A(!1)})()},[O,o]),S.useEffect(()=>{if(l==null){h(null);return}const F=T?.find(ee=>ee.value===l);F?h(F):(async()=>{W(!0);const ie=await s(l);h(ie),W(!1)})()},[s,T,l]),S.useEffect(()=>{m&&setTimeout(()=>C.current?.focus(),100)},[m]);const{anchorRef:J,Popover:Y}=gt({placement:"bottom",fullWidth:!0,onOutsideClick:()=>x(!1)});return p.jsx(Ke.Provider,{value:f,children:p.jsxs("div",{className:N("flex flex-col",t),children:[p.jsx(Fe,{children:n}),p.jsxs("div",{className:"relative flex w-full flex-col",ref:J,children:[p.jsxs("div",{ref:y,role:"button",tabIndex:0,className:N("flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",Qe[f],Ue[f],ut[f],dt[f],d&&"select-trigger-error",m&&"ring-4"),onKeyDown:F=>F.key===" "&&x(ee=>!ee),onClick:()=>x(!m),children:[!M&&k&&p.jsx("span",{children:k.label}),!M&&!k&&u&&p.jsx("span",{className:"select-placeholder",children:u}),M&&p.jsx(It,{className:"h-4 w-4 text-[var(--color-input-text)]"})]}),p.jsxs(et,{children:[d&&p.jsx(qe,{}),!!l&&p.jsx(He,{Icon:ft,onClick:()=>r(null)}),p.jsx(He,{Icon:ln})]}),p.jsx(Y,{open:m,children:p.jsxs(mt,{className:"gap-0 !p-0",style:{maxHeight:c},children:[p.jsxs("div",{className:"sticky top-0 border-b select-search-bar py-1 backdrop-blur-sm",children:[p.jsx("input",{ref:C,type:"text",placeholder:"Search",value:w,className:"appearance-none border-none w-full bg-transparent rounded- pl-10 transition-all duration-150 focus:outline-none ring-0 placeholder:text-[var(--color-input-placeholder)]",onChange:F=>g(F.target.value)}),p.jsx(Cr,{className:"absolute select-search-icon left-4 top-4 h-4 w-4"})]}),p.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[!j&&T.length===0&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(_l,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),j&&p.jsx("div",{className:"flex flex-col items-center justify-center py-6",children:p.jsx(It,{className:"h-6 w-6 text-[var(--color-input-text)]"})}),!j&&p.jsx(p.Fragment,{children:T.map(F=>{const ee=F.value===l;return p.jsx(gn,{onClick:()=>{!F.disabled&&r&&(r(F.value),x(!1))},selected:ee,disabled:F.disabled,children:F.label},String(F.value))})})]})]})})]}),p.jsx(Se,{children:i}),p.jsx(ke,{children:d})]})})},zx=P.forwardRef((e,t)=>{const{className:n,children:i,...r}=e;return p.jsx("div",{ref:t,className:N("flex flex-col gap-6 border panel-base rounded-2xl shadow-sm px-6 py-6",n),...r,children:i})}),Bx=P.forwardRef((e,t)=>{const{className:n,children:i,...r}=e;return p.jsx("div",{ref:t,className:N("flex flex-col gap-1 border panel-base rounded-2xl shadow-sm p-2",n),...r,children:i})}),lu="input-description text-sm font-medium",$x=e=>{const{className:t,label:n,children:i,orientation:r="vertical",...o}=e;return r==="horizontal"?p.jsxs("div",{className:N("flex flex-row items-center gap-3 px-3 py-2",t),...o,children:[p.jsx("div",{className:N(lu,"w-1/2 line-clamp-1 break-all"),children:n}),p.jsx("div",{className:"w-1/2 line-clamp-1 break-all",children:i})]}):p.jsxs("div",{className:N("flex flex-col gap-1 px-3 py-2",t),...o,children:[n&&p.jsx("div",{className:lu,children:n}),p.jsx("div",{children:i})]})},Wx={error:Ar,warning:Ah,success:Pr,info:Dh},Ux={error:"text-[var(--color-status-error)]",warning:"text-[var(--color-status-warning)]",success:"text-[var(--color-status-success)]",info:"text-[var(--color-status-info)]"},cu="inline-flex flex-row gap-3 items-center justify-between h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent",qx=e=>{const{className:t,children:n,Icon:i,status:r,...o}=e,s=r?Wx[r]:null,a=p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"inline-flex flex-row items-center gap-3 min-w-0",children:[i&&p.jsx(i,{className:"h-5 w-5 shrink-0"}),p.jsx("span",{className:"truncate",children:n})]}),p.jsxs("span",{className:"inline-flex flex-row items-center gap-2 shrink-0",children:[s&&r&&p.jsx(s,{className:N("h-5 w-5",Ux[r])}),p.jsx(Th,{className:"h-5 w-5 text-[var(--color-input-icon-button-icon)]"})]})]});if(o.href!==void 0){const{href:l,...u}=o;return p.jsx("a",{href:l,className:N(cu,t),...u,children:a})}return p.jsx("button",{className:N(cu,t),...o,children:a})},Kx=e=>{const{className:t,vertical:n=!1,...i}=e;return p.jsx("div",{className:N(n?"w-px h-full bg-[var(--color-divider)]":"w-full h-px bg-[var(--color-divider)]",t),...i})},Hx=e=>{const{children:t,content:n,className:i,placement:r="top",minWidth:o=100,maxWidth:s=200}=e,[a,l]=S.useState(!1),{anchorRef:u,Popover:c}=gt({placement:r,minWidth:o,maxWidth:s});return p.jsxs("span",{ref:u,className:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t,p.jsx(c,{open:a,children:p.jsx(mt,{children:n})})]})},Yx=e=>{const{open:t,onDismiss:n,enableDismissOnOutsideClick:i,enableDismissOnEscKey:r,enableDismissButton:o,className:s,children:a,maxWidth:l=600}=e;return Lt(!!r&&t,n||(()=>{})),p.jsx(Pn,{children:t&&p.jsxs(qr,{children:[p.jsx(ct.div,{style:{transformOrigin:"center"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeInOut"},children:p.jsx(Kr,{className:"modal-overlay backdrop-blur-[1px] z-10",onClick:i?n:void 0,lockScroll:!0})}),p.jsx("div",{className:"fixed inset-0 flex flex-col items-center pointer-events-none p-4 lg:p-12 overflow-y-auto z-20",children:p.jsxs(ct.div,{className:N("flex flex-col modal-content rounded-2xl shadow-xl p-6 lg:p-12 pointer-events-auto w-full relative",s),style:{transformOrigin:"bottom",maxWidth:l},initial:{opacity:0,scale:.98,translateY:10},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:10},transition:{duration:.15,ease:"easeInOut"},children:[o&&p.jsx(Er,{Icon:ft,className:"absolute top-4 right-4",variant:"transparent",size:"sm",onClick:n}),a]})})]})})},Xx=e=>{const{open:t,onDismiss:n,enableDismissOnOutsideClick:i,enableDismissOnEscKey:r,enableDismissButton:o,className:s,children:a,maxWidth:l=480}=e;return Lt(!!r&&t,n||(()=>{})),p.jsx(Pn,{children:t&&p.jsxs(qr,{children:[p.jsx(ct.div,{style:{transformOrigin:"center"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeInOut"},children:p.jsx(Kr,{className:"modal-overlay backdrop-blur-[1px] z-10",onClick:i?n:void 0,lockScroll:!0})}),p.jsx("div",{className:"fixed inset-0 flex flex-row justify-end pointer-events-none z-20",children:p.jsxs(ct.div,{className:N("flex flex-col modal-content shadow-xl p-6 lg:p-12 pointer-events-auto h-full w-full overflow-y-auto relative",s),style:{maxWidth:l},initial:{translateX:"100%"},animate:{translateX:0},exit:{translateX:"100%"},transition:{duration:.25,ease:[.32,.72,0,1]},children:[o&&p.jsx(Er,{Icon:ft,className:"absolute top-4 right-4",variant:"transparent",size:"sm",onClick:n}),a]})})]})})},uu={red:"bg-red-100 text-red-700 ring-red-200 dark:bg-red-950 dark:text-red-300 dark:ring-red-800",orange:"bg-orange-100 text-orange-700 ring-orange-200 dark:bg-orange-950 dark:text-orange-300 dark:ring-orange-800",amber:"bg-amber-100 text-amber-700 ring-amber-200 dark:bg-amber-950 dark:text-amber-300 dark:ring-amber-800",yellow:"bg-yellow-100 text-yellow-700 ring-yellow-200 dark:bg-yellow-950 dark:text-yellow-300 dark:ring-yellow-800",lime:"bg-lime-100 text-lime-700 ring-lime-200 dark:bg-lime-950 dark:text-lime-300 dark:ring-lime-800",green:"bg-green-100 text-green-700 ring-green-200 dark:bg-green-950 dark:text-green-300 dark:ring-green-800",emerald:"bg-emerald-100 text-emerald-700 ring-emerald-200 dark:bg-emerald-950 dark:text-emerald-300 dark:ring-emerald-800",teal:"bg-teal-100 text-teal-700 ring-teal-200 dark:bg-teal-950 dark:text-teal-300 dark:ring-teal-800",cyan:"bg-cyan-100 text-cyan-700 ring-cyan-200 dark:bg-cyan-950 dark:text-cyan-300 dark:ring-cyan-800",sky:"bg-sky-100 text-sky-700 ring-sky-200 dark:bg-sky-950 dark:text-sky-300 dark:ring-sky-800",blue:"bg-blue-100 text-blue-700 ring-blue-200 dark:bg-blue-950 dark:text-blue-300 dark:ring-blue-800",indigo:"bg-indigo-100 text-indigo-700 ring-indigo-200 dark:bg-indigo-950 dark:text-indigo-300 dark:ring-indigo-800",violet:"bg-violet-100 text-violet-700 ring-violet-200 dark:bg-violet-950 dark:text-violet-300 dark:ring-violet-800",purple:"bg-purple-100 text-purple-700 ring-purple-200 dark:bg-purple-950 dark:text-purple-300 dark:ring-purple-800",fuchsia:"bg-fuchsia-100 text-fuchsia-700 ring-fuchsia-200 dark:bg-fuchsia-950 dark:text-fuchsia-300 dark:ring-fuchsia-800",pink:"bg-pink-100 text-pink-700 ring-pink-200 dark:bg-pink-950 dark:text-pink-300 dark:ring-pink-800",rose:"bg-rose-100 text-rose-700 ring-rose-200 dark:bg-rose-950 dark:text-rose-300 dark:ring-rose-800",slate:"bg-slate-100 text-slate-700 ring-slate-200 dark:bg-slate-950 dark:text-slate-300 dark:ring-slate-800",gray:"bg-gray-100 text-gray-700 ring-gray-200 dark:bg-gray-950 dark:text-gray-300 dark:ring-gray-800",zinc:"bg-zinc-100 text-zinc-700 ring-zinc-200 dark:bg-zinc-950 dark:text-zinc-300 dark:ring-zinc-800",neutral:"bg-neutral-100 text-neutral-700 ring-neutral-200 dark:bg-neutral-950 dark:text-neutral-300 dark:ring-neutral-800",stone:"bg-stone-100 text-stone-700 ring-stone-200 dark:bg-stone-950 dark:text-stone-300 dark:ring-stone-800",white:"bg-[var(--color-badge-white-bg)] text-[var(--color-badge-white-text)] ring-[var(--color-badge-white-ring)]",black:"bg-[var(--color-badge-black-bg)] text-[var(--color-badge-black-text)] ring-[var(--color-badge-black-ring)]"},uo=P.forwardRef((e,t)=>{const{className:n,children:i,onClick:r,showCloseIcon:o,Icon:s,color:a="gray"}=e,l=N("inline-flex align-top items-center gap-2 px-3 h-7 rounded-lg font-semibold",uu[a],n);return r?p.jsx("div",{ref:t,children:p.jsxs("button",{className:N("cursor-pointer ring-0 hover:ring-4 active:ring-1 transition-all duration-100 select-none focus:outline-none focus:ring-4",l),onClick:r,children:[s&&p.jsx(s,{className:"h-4 w-4 shrink-0"}),p.jsx("div",{className:"break-all line-clamp-1 text-left",children:i}),o&&p.jsx(ft,{className:"h-4 w-4 shrink-0"})]})}):p.jsxs("div",{className:l,ref:t,children:[s&&p.jsx(s,{className:"h-4 w-4 shrink-0"}),p.jsx("div",{className:"break-all line-clamp-1 text-left",children:i})]})}),du=e=>{const{className:t,tabs:n}=e;return p.jsx("div",{className:N("h-12 tab-container p-1 rounded-xl inline-flex flex-row space-x-1 overflow-x-auto mat-ui-hide-scrollbars",t),children:n.map((i,r)=>{const o=N("shrink-0 px-4 h-full inline-flex flex-row items-center font-semibold rounded-xl cursor-pointer border border-transparent ing-0 tab-button transition-all duration-150 select-none focus:outline-none focus:ring-0",i.active&&"tab-button-active shadow-sm");return i.href?p.jsxs("a",{href:i.href,className:o,children:[i.Icon&&p.jsx(i.Icon,{className:"h-5 w-5 shrink-0 mr-2 -ml-1"}),i.label]},r):p.jsxs("button",{className:o,onClick:i.onClick,children:[i.Icon&&p.jsx(i.Icon,{className:"h-5 w-5 shrink-0 mr-2 -ml-1"}),i.label]},r)})})},Gx=e=>{const{duration:t=.3,ease:n="easeInOut",horizontal:i=!1,children:r,className:o,...s}=e,a=P.useRef(null),l=P.useRef(null),u=P.useRef(null);return P.useEffect(()=>{const c=a.current,d=l.current;if(!c||!d)return;let f=!0;const m=()=>{const y=i?c.scrollWidth-c.clientWidth:c.scrollHeight-c.clientHeight,w=i?c.scrollLeft:c.scrollTop;if(!(y<=0||Math.abs(y-w)<1)){if(f){f=!1,i?c.scrollLeft=y:c.scrollTop=y;return}u.current?.stop(),u.current=lh(w,y,{duration:t,ease:n,onUpdate:g=>{i?c.scrollLeft=g:c.scrollTop=g}})}},x=new ResizeObserver(m);return x.observe(d),()=>{x.disconnect(),u.current?.stop()}},[t,n,i]),p.jsx("div",{ref:a,className:N("min-h-0 min-w-0",i?"overflow-x-auto":"overflow-y-auto",o),...s,children:p.jsx("div",{ref:l,children:r})})};function Zx(e){const{onDelta:t,onDragStart:n,onDragEnd:i,disabled:r=!1,primaryButtonOnly:o=!0,preventScrollOnMove:s=!0}=e,[a,l]=P.useState(!1),u=P.useRef(!1),c=P.useRef(0),d=P.useRef(0),f=P.useRef(0),m=P.useRef(null),x=P.useRef(null),y=P.useRef({onDelta:t,onDragStart:n,onDragEnd:i,preventScrollOnMove:s});P.useEffect(()=>{y.current={onDelta:t,onDragStart:n,onDragEnd:i,preventScrollOnMove:s}});const w=P.useRef({}),g=P.useCallback(b=>{if(!u.current)return;const k={clientX:b??d.current,startX:c.current,totalDeltaX:f.current,target:m.current};u.current=!1,l(!1);const{move:h,up:C,keydown:j}=w.current;h&&window.removeEventListener("pointermove",h,!0),C&&(window.removeEventListener("pointerup",C,!0),window.removeEventListener("pointercancel",C,!0)),j&&window.removeEventListener("keydown",j,!0),w.current={},x.current!=null&&(cancelAnimationFrame(x.current),x.current=null),y.current.onDragEnd?.(k),m.current=null,f.current=0},[]),T=P.useCallback(b=>{if(r||o&&b.button!==0)return;b.target.setPointerCapture?.(b.pointerId),c.current=b.clientX,d.current=b.clientX,f.current=0,m.current=b.target,u.current=!0,l(!0);const k={clientX:b.clientX,startX:b.clientX,totalDeltaX:0,target:b.target};y.current.onDragStart?.(k);const h=A=>{u.current&&x.current==null&&(x.current=requestAnimationFrame(()=>{x.current=null;const M=A.clientX,W=M-d.current;if(W===0)return;d.current=M,f.current+=W;const O={clientX:M,startX:c.current,totalDeltaX:f.current,target:m.current};y.current.preventScrollOnMove&&A.preventDefault(),y.current.onDelta(W,O)}))},C=A=>{g(A.clientX)},j=A=>{A.key==="Escape"&&(A.preventDefault(),g())};w.current={move:h,up:C,keydown:j},window.addEventListener("pointermove",h,{passive:!s,capture:!0}),window.addEventListener("pointerup",C,{capture:!0}),window.addEventListener("pointercancel",C,{capture:!0}),window.addEventListener("keydown",j,!0)},[g,r,s,o]);return P.useEffect(()=>()=>{u.current&&g()},[g]),{isDragging:a,bind:{onPointerDown:T,role:"separator",style:{touchAction:"none",cursor:"col-resize",userSelect:"none"}}}}const pu=e=>{const{column:t,width:n,height:i,onResize:r,sortDirection:o,onSortClick:s}=e,a=!!t.sortable,{bind:l}=Zx({onDelta:u=>r(u)});return p.jsxs("div",{style:{width:n,height:i},className:"flex flex-row items-stretch select-none shrink-0",children:[p.jsxs("div",{className:N("flex-1 min-w-0 px-4 table-header-cell transition-colors duration-100 flex flex-row items-center gap-2",a&&"cursor-pointer"),onClick:a?s:void 0,children:[p.jsx("span",{className:"truncate",children:t.header}),a&&o==="asc"&&p.jsx(Sh,{className:"h-4 w-4 shrink-0"}),a&&o==="desc"&&p.jsx(ln,{className:"h-4 w-4 shrink-0"})]}),p.jsx("div",{...l,className:"cursor-ew-resize group py-4 table-resize-handle w-[8px]",children:p.jsx("div",{className:"w-0.5 h-full mx-auto table-resize-divider table-resize-divider-hover pointer-events-none"})})]})},zt=200,Jx=60,Qx=e=>{const t={};for(const n of e)t[n.id]=n.defaultWidth??zt;return t},fu=e=>{const{columns:t,rows:n,getRowId:i,onRowClick:r,sort:o,onSortChange:s,className:a,rowHeight:l=44,headerHeight:u=44}=e,[c,d]=S.useState(()=>Qx(t));S.useEffect(()=>{d(g=>{const T={};let b=Object.keys(g).length!==t.length;for(const k of t)k.id in g?T[k.id]=g[k.id]:(T[k.id]=k.defaultWidth??zt,b=!0);return b?T:g})},[t]);const f=S.useCallback((g,T,b)=>{d(k=>{const h=k[g]??zt,C=Math.max(b,h+T);return C===h?k:{...k,[g]:C}})},[]),m=S.useCallback(g=>{if(s){if(!o||o.columnId!==g){s({columnId:g,direction:"asc"});return}if(o.direction==="asc"){s({columnId:g,direction:"desc"});return}s(null)}},[o,s]),x=t.reduce((g,T)=>g+(c[T.id]??T.defaultWidth??zt),0),y=S.useRef(null),w=g=>{y.current&&(y.current.scrollLeft=g.currentTarget.scrollLeft)};return p.jsxs("div",{className:N("flex flex-col h-full w-full",a),children:[p.jsx("div",{ref:y,className:"overflow-hidden shrink-0",style:{height:u},children:p.jsx("div",{className:"flex flex-row table-header font-medium",style:{width:x,minWidth:"100%"},children:t.map(g=>p.jsx(pu,{column:g,width:c[g.id]??g.defaultWidth??zt,height:u,onResize:T=>f(g.id,T,g.minWidth??Jx),sortDirection:o?.columnId===g.id?o.direction:null,onSortClick:()=>m(g.id)},g.id))})}),p.jsx("div",{className:"flex-1 overflow-auto",onScroll:w,children:p.jsx("div",{className:"flex flex-col",style:{width:x,minWidth:"100%"},children:n.map((g,T)=>p.jsx("div",{className:N("flex flex-row table-body-row transition-colors duration-100",r&&"cursor-pointer"),onClick:r?()=>r(g,T):void 0,children:t.map(b=>p.jsx("div",{className:"shrink-0 content-center px-4 relative",style:{width:c[b.id]??b.defaultWidth??zt,height:l},children:p.jsx("div",{className:"break-all line-clamp-1",children:b.renderCell(g,T)})},b.id))},i(g,T)))})})]})},mu=S.createContext(void 0),ey=()=>({dismiss:S.useContext(mu)||(()=>{})}),ty="inline-flex flex-row items-center gap-3 h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent",Te=P.forwardRef((e,t)=>{const{className:n,children:i,Icon:r,onClick:o,dismissOnClick:s=!0,...a}=e,{dismiss:l}=ey(),u=c=>{o&&o(c),s&&l()};return p.jsxs("button",{ref:t,className:N(ty,n),onClick:u,...a,children:[r&&p.jsx(r,{className:"h-5 w-5"}),i]})}),po=e=>{const{label:t,children:n,className:i}=e;return p.jsxs("div",{className:N("flex flex-col dropdown-button-group",i),children:[t&&p.jsx("div",{className:"mb-2 text-sm dropdown-group-label font-semibold px-3",children:t}),n]})},fo=e=>{const{trigger:t,children:n,placement:i="bottom-end",minWidth:r=200,className:o}=e,[s,a]=S.useState(!1),{Popover:l,anchorRef:u}=gt({placement:i,onOutsideClick:()=>a(!1),minWidth:r});return p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:u,className:o,onClick:()=>a(!s),children:t}),p.jsx(l,{open:s,children:p.jsx(mt,{padding:"sm",children:p.jsx(mu.Provider,{value:()=>a(!1),children:n})})})]})},ny=()=>p.jsx("div",{}),iy=[{id:1,email:"sarah.jennings@example.com",firstname:"Sarah",lastname:"Jennings",status:"active"},{id:2,email:"liam.patel@outlook.com",firstname:"Liam",lastname:"Patel",status:"inactive"},{id:3,email:"emily.wong@gmail.com",firstname:"Emily",lastname:"Wong",status:"active"},{id:4,email:"noah.thompson@yahoo.com",firstname:"Noah",lastname:"Thompson",status:"active"},{id:5,email:"isabella.martin@protonmail.com",firstname:"Isabella",lastname:"Martin",status:"active"},{id:6,email:"ethan.ross@company.io",firstname:"Ethan",lastname:"Ross",status:"inactive"},{id:7,email:"olivia.nguyen@example.org",firstname:"Olivia",lastname:"Nguyen",status:"active"},{id:8,email:"lucas.henderson@gmail.com",firstname:"Lucas",lastname:"Henderson",status:"inactive"},{id:9,email:"mia.johnson@workmail.com",firstname:"Mia",lastname:"Johnson",status:"active"},{id:10,email:"jackson.rivera@outlook.com",firstname:"Jackson",lastname:"Rivera",status:"active"},{id:11,email:"ava.sanders@example.com",firstname:"Ava",lastname:"Sanders",status:"active"},{id:12,email:"logan.bennett@company.io",firstname:"Logan",lastname:"Bennett",status:"inactive"}],ry=[{id:"id",header:"ID",renderCell:e=>e.id},{id:"email",header:"Email",renderCell:e=>p.jsx(uo,{Icon:Rh,onClick:()=>{},children:e.email})},{id:"firstname",header:"First Name",renderCell:e=>e.firstname},{id:"lastname",header:"Last Name",renderCell:e=>e.lastname},{id:"status",header:"Status",renderCell:()=>p.jsx(sy,{})}],oy=()=>p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-row items-center justify-start gap-3",children:[p.jsx(Dr,{Icon:Cr,placeholder:"Search..."}),p.jsx(Vn,{Icon:zl}),p.jsx(Fl,{Icon:Ll,children:"New"}),p.jsxs(fo,{trigger:p.jsx(Vn,{Icon:zl}),children:[p.jsx(Te,{dismissOnClick:!1,Icon:Ll,children:"Add new"}),p.jsx(Te,{Icon:Ph,children:"Remove"}),p.jsxs(po,{label:"Test",className:"mt-2",children:[p.jsx(Te,{children:"Item 1"}),p.jsx(Te,{children:"Item 2"}),p.jsx(Te,{children:"Item 3"}),p.jsx(Te,{children:"Item 4"})]}),p.jsxs(po,{label:"Test",className:"mt-2",children:[p.jsx(Te,{children:"Item 1"}),p.jsx(Te,{children:"Item 2"}),p.jsx(Te,{children:"Item 3"}),p.jsx(Te,{children:"Item 4"})]})]}),p.jsx(du,{tabs:[{label:"Tab 1",Icon:Vl,active:!0,onClick:()=>{}},{label:"Tab 2",active:!1,onClick:()=>{}},{label:"Tab 3",Icon:Vl,active:!1,onClick:()=>{}}]})]}),p.jsx(au,{options:[{label:"Option 1",value:1},{label:"Option 2",value:2},{label:"Option 3",value:3}],value:null,onChange:()=>{}}),p.jsx(fu,{className:"h-[300px] w-[300px]",columns:ry,rows:iy,getRowId:e=>e.id}),p.jsx(ny,{})]}),sy=()=>p.jsx(p.Fragment,{children:p.jsxs(fo,{placement:"bottom-end",className:"inline-block",trigger:p.jsx(uo,{onClick:()=>{},children:"Test"}),children:[p.jsx(Te,{children:"Option 1"}),p.jsx(Te,{children:"Option 2"}),p.jsx(Te,{children:"Option 3"})]})});B.AutoScroll=Gx,B.Badge=uo,B.BadgeColor=uu,B.Button=Fl,B.ButtonIconRound=Er,B.ButtonIconSquare=Vn,B.Divider=Kx,B.DropdownButton=Te,B.DropdownButtonGroup=po,B.DropdownMenu=fo,B.DropdownPanel=mt,B.Input=Dr,B.InputCheck=Ev,B.InputColor=xv,B.InputDescription=Se,B.InputError=ke,B.InputErrorIcon=qe,B.InputFileMultiple=Nx,B.InputFileSingle=Ox,B.InputIconButton=He,B.InputIconButtonTray=et,B.InputLabel=Fe,B.InputPassword=yv,B.InputRadio=kv,B.InputSelect=au,B.InputSelectNative=Fx,B.InputSelectOption=gn,B.InputSelectSearchable=Vx,B.InputSelectSearchableAsync=_x,B.InputTextArea=Sv,B.InputToggle=jv,B.Modal=Yx,B.Panel=zx,B.PanelField=$x,B.PanelLink=qx,B.PanelStack=Bx,B.PopoverBase=Tc,B.SidebarModal=Xx,B.Spinner=It,B.TabButtons=du,B.Table=fu,B.TableColumnHead=pu,B.Test=oy,B.Tooltip=Hx,B.UploadFileTile=su,B.usePopover=gt,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
183
183
|
//# sourceMappingURL=index.umd.cjs.map
|