@biznext-ui/react 0.1.0 → 0.1.1
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/dist/favicon.ico +0 -0
- package/dist/index.es.d.ts +94 -0
- package/dist/index.es.js +6792 -0
- package/dist/index.umd.js +34 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function(ut,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],w):(ut=typeof globalThis<"u"?globalThis:ut||self,w(ut["biznext-ui-react"]={},ut["react/jsx-runtime"],ut.React,ut.ReactDOM))})(this,function(ut,w,x,St){"use strict";function Ho(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const nn=Ho(x),Si=x.createContext({}),Xo=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.payload,...t.toasts]};case"DELETE_TOAST":return{...t,toasts:t.toasts.filter(n=>n.id!==e.payload.id)};default:console.error(`Biznext-UI-Toast: Unhandled action type: ${e.type}`)}},wi=()=>x.useContext(Si),vt={"toasts-container":"biznext-ui-Voj91bwiOQ0-5","top-left":"biznext-ui-r8K3Yfg1a0k-a","top-center":"biznext-ui-hLBI-yY3XZg-8","top-right":"biznext-ui-McMmb-sS6LE-3","bottom-left":"biznext-ui-lX4jcK0Szv4-9","bottom-center":"biznext-ui-Ee7khmzQluU-1","bottom-right":"biznext-ui-8KE-IEqqaMQ-f",toast:"biznext-ui-HNUcjKVTeyM-1",fadein:"biznext-ui-HDMPjvBSEyg-1","toast-icon":"biznext-ui--tFdGazkGSA-f","toast-content":"biznext-ui-ymhtH9nUp6I-c","toast-title":"biznext-ui-KpFZjCXKdcg-2","toast-close":"biznext-ui-BzxmwExZEIc-0","toast-close-btn":"biznext-ui-2vYXLFQRSLY-d","toast-close-btn-icon":"biznext-ui-fnjPMKE33W8-7",success:"biznext-ui-gWJh5oSUaH4-8",info:"biznext-ui-KprtriQR6do-2",warning:"biznext-ui-u0IYuYPu1og-b",error:"biznext-ui-DMi33WPhK2I-0"};function Ci(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Go(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Di={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Di);var qo=Di.exports;const we=Ci(qo);var Ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ai=x.createContext&&x.createContext(Ei),$o=["attr","size","title"];function Zo(t,e){if(t==null)return{};var n=Qo(t,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function Qo(t,e){if(t==null)return{};var n={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ce.apply(this,arguments)}function Mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function De(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mi(Object(n),!0).forEach(function(i){Jo(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Jo(t,e,n){return e=ta(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ta(t){var e=ea(t,"string");return typeof e=="symbol"?e:e+""}function ea(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vi(t){return t&&t.map((e,n)=>x.createElement(e.tag,De({key:n},e.attr),Vi(e.child)))}function Ut(t){return e=>x.createElement(na,Ce({attr:De({},t.attr)},e),Vi(t.child))}function na(t){var e=n=>{var{attr:i,size:r,title:o}=t,s=Zo(t,$o),a=r||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),x.createElement("svg",Ce({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:l,style:De(De({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&x.createElement("title",null,o),t.children)};return Ai!==void 0?x.createElement(Ai.Consumer,null,n=>e(n)):e(Ei)}function ia(t){return Ut({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z"},child:[]}]})(t)}function ra(t){return Ut({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor"},child:[]}]})(t)}function sa(t){return Ut({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},child:[]}]})(t)}function oa(t){return Ut({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},child:[]}]})(t)}function aa(t){return Ut({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z"},child:[]}]})(t)}const rn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ee=x.createContext({}),Ae=x.createContext(null),sn=typeof document<"u",on=sn?x.useLayoutEffect:x.useEffect,Oi=x.createContext({strict:!1}),Me=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Li="data-"+Me("framerAppearId"),la={skipAnimations:!1,useManualTiming:!1};function ca(t){let e=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){o.has(c)&&(l.schedule(c),t()),c(s)}const l={schedule:(c,u=!1,f=!1)=>{const m=f&&i?e:n;return u&&o.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,i){r=!0;return}i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,r&&(r=!1,l.process(c))}};return l}const Ve=["read","resolveKeyframes","update","preRender","render","postRender"],ua=40;function Ii(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ve.reduce((P,g)=>(P[g]=ca(o),P),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,m=()=>{const P=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(P-r.timestamp,ua),1),r.timestamp=P,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))},y=()=>{n=!0,i=!0,r.isProcessing||t(m)};return{schedule:Ve.reduce((P,g)=>{const h=s[g];return P[g]=(v,p=!1,E=!1)=>(n||y(),h.schedule(v,p,E)),P},{}),cancel:P=>{for(let g=0;g<Ve.length;g++)s[Ve[g]].cancel(P)},state:r,steps:s}}const{schedule:an,cancel:eh}=Ii(queueMicrotask,!1);function $t(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const _i=x.createContext({});let Ri=!1;function fa(t,e,n,i,r){const{visualElement:o}=x.useContext(Ee),s=x.useContext(Oi),a=x.useContext(Ae),l=x.useContext(rn).reducedMotion,c=x.useRef();i=i||s.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,f=x.useContext(_i);u&&!u.projection&&r&&(u.type==="html"||u.type==="svg")&&ha(c.current,n,r,f),x.useInsertionEffect(()=>{u&&u.update(n,a)});const d=x.useRef(!!(n[Li]&&!window.HandoffComplete));return on(()=>{u&&(u.updateFeatures(),an.render(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,Ri||(Ri=!0,queueMicrotask(da))))}),u}function da(){window.HandoffComplete=!0}function ha(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ji(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&$t(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function ji(t){if(t)return t.options.allowProjection!==!1?t.projection:ji(t.parent)}function pa(t,e,n){return x.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):$t(n)&&(n.current=i))},[e])}function ae(t){return typeof t=="string"||Array.isArray(t)}function le(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ln=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cn=["initial",...ln];function Oe(t){return le(t.animate)||cn.some(e=>ae(t[e]))}function Fi(t){return!!(Oe(t)||t.variants)}function ma(t,e){if(Oe(t)){const{initial:n,animate:i}=t;return{initial:n===!1||ae(n)?n:void 0,animate:ae(i)?i:void 0}}return t.inherit!==!1?e:{}}function ga(t){const{initial:e,animate:n}=ma(t,x.useContext(Ee));return x.useMemo(()=>({initial:e,animate:n}),[Ni(e),Ni(n)])}function Ni(t){return Array.isArray(t)?t.join(" "):t}const ki={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"]},Zt={};for(const t in ki)Zt[t]={isEnabled:e=>ki[t].some(n=>!!e[n])};function ya(t){for(const e in t)Zt[e]={...Zt[e],...t[e]}}const un=x.createContext({}),va=Symbol.for("motionComponentSymbol"),$=t=>t;let Qt=$,wt=$;process.env.NODE_ENV!=="production"&&(Qt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},wt=(t,e)=>{if(!t)throw new Error(e)});function ba({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){t&&ya(t);function o(a,l){let c;const u={...x.useContext(rn),...a,layoutId:xa(a)},{isStatic:f}=u,d=ga(a),m=i(a,f);if(!f&&sn){Ta(u,t);const y=Pa(u);c=y.MeasureLayout,d.visualElement=fa(r,m,u,e,y.ProjectionNode)}return w.jsxs(Ee.Provider,{value:d,children:[c&&d.visualElement?w.jsx(c,{visualElement:d.visualElement,...u}):null,n(r,a,pa(m,d.visualElement,l),m,f,d.visualElement)]})}const s=x.forwardRef(o);return s[va]=r,s}function xa({layoutId:t}){const e=x.useContext(un).id;return e&&t!==void 0?e+"-"+t:t}function Ta(t,e){const n=x.useContext(Oi).strict;if(process.env.NODE_ENV!=="production"&&e&&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.";t.ignoreStrict?Qt(!1,i):wt(!1,i)}}function Pa(t){const{drag:e,layout:n}=Zt;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Sa(t){function e(i,r={}){return ba(t(i,r))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const wa=["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 fn(t){return typeof t!="string"||t.includes("-")?!1:!!(wa.indexOf(t)>-1||/[A-Z]/u.test(t))}const Le={};function Ca(t){Object.assign(Le,t)}const ce=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(ce);function Bi(t,{layout:e,layoutId:n}){return Lt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Le[t]||t==="opacity")}const J=t=>!!(t&&t.getVelocity),Da={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ea=ce.length;function Aa(t,e,n){let i="";for(let r=0;r<Ea;r++){const o=ce[r];if(t[o]!==void 0){const s=Da[o]||o;i+=`${s}(${t[o]}) `}}return i=i.trim(),n?i=n(t,e?"":i):e&&(i="none"),i}const Ui=t=>e=>typeof e=="string"&&e.startsWith(t),zi=Ui("--"),Ma=Ui("var(--"),dn=t=>Ma(t)?Va.test(t.split("/*")[0].trim()):!1,Va=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oa=(t,e)=>e&&typeof t=="number"?e.transform(t):t,It=(t,e,n)=>n>e?e:n<t?t:n,Jt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ue={...Jt,transform:t=>It(0,1,t)},Ie={...Jt,default:1},fe=t=>Math.round(t*1e5)/1e5,hn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,La=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ia=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function de(t){return typeof t=="string"}function _a(t){return t==null}const he=t=>({test:e=>de(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_t=he("deg"),bt=he("%"),A=he("px"),Ra=he("vh"),ja=he("vw"),Wi={...bt,parse:t=>bt.parse(t)/100,transform:t=>bt.transform(t*100)},Yi={...Jt,transform:Math.round},Ki={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:_t,rotateX:_t,rotateY:_t,rotateZ:_t,scale:Ie,scaleX:Ie,scaleY:Ie,scaleZ:Ie,skew:_t,skewX:_t,skewY:_t,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:ue,originX:Wi,originY:Wi,originZ:A,zIndex:Yi,backgroundPositionX:A,backgroundPositionY:A,fillOpacity:ue,strokeOpacity:ue,numOctaves:Yi};function pn(t,e,n){const{style:i,vars:r,transform:o,transformOrigin:s}=t;let a=!1,l=!1,c=!0;for(const u in e){const f=e[u];if(zi(u)){r[u]=f;continue}const d=Ki[u],m=Oa(f,d);if(Lt.has(u)){if(a=!0,o[u]=m,!c)continue;f!==(d.default||0)&&(c=!1)}else u.startsWith("origin")?(l=!0,s[u]=m):i[u]=m}if(e.transform||(a||n?i.transform=Aa(t.transform,c,n):i.transform&&(i.transform="none")),l){const{originX:u="50%",originY:f="50%",originZ:d=0}=s;i.transformOrigin=`${u} ${f} ${d}`}}const mn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hi(t,e,n){for(const i in e)!J(e[i])&&!Bi(i,n)&&(t[i]=e[i])}function Fa({transformTemplate:t},e){return x.useMemo(()=>{const n=mn();return pn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Na(t,e){const n=t.style||{},i={};return Hi(i,n,t),Object.assign(i,Fa(t,e)),i}function ka(t,e){const n={},i=Na(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Ba=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 _e(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ba.has(t)}let Xi=t=>!_e(t);function Ua(t){t&&(Xi=e=>e.startsWith("on")?!_e(e):t(e))}try{Ua(require("@emotion/is-prop-valid").default)}catch{}function za(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Xi(r)||n===!0&&_e(r)||!e&&!_e(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}function Gi(t,e,n){return typeof t=="string"?t:A.transform(e+n*t)}function Wa(t,e,n){const i=Gi(e,t.x,t.width),r=Gi(n,t.y,t.height);return`${i} ${r}`}const Ya={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ka={offset:"strokeDashoffset",array:"strokeDasharray"};function Ha(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?Ya:Ka;t[o.offset]=A.transform(-i);const s=A.transform(e),a=A.transform(n);t[o.array]=`${s} ${a}`}function gn(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(pn(t,c,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:y}=t;d.transform&&(y&&(m.transform=d.transform),delete d.transform),y&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=Wa(y,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),s!==void 0&&Ha(d,s,a,l,!1)}const qi=()=>({...mn(),attrs:{}}),yn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Xa(t,e,n,i){const r=x.useMemo(()=>{const o=qi();return gn(o,e,yn(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Hi(o,t.style,t),r.style={...o,...r.style}}return r}function Ga(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(fn(n)?Xa:ka)(i,o,s,n),c=za(i,typeof n=="string",t),u=n!==x.Fragment?{...c,...l,ref:r}:{},{children:f}=i,d=x.useMemo(()=>J(f)?f.get():f,[f]);return x.createElement(n,{...u,children:d})}}function $i(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const Zi=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 Qi(t,e,n,i){$i(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(Zi.has(r)?r:Me(r),e.attrs[r])}function vn(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(J(r[s])||e.style&&J(e.style[s])||Bi(s,t)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return n&&r&&typeof r.willChange=="string"&&(n.applyWillChange=!1),o}function Ji(t,e,n){const i=vn(t,e,n);for(const r in t)if(J(t[r])||J(e[r])){const o=ce.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=t[r]}return i}function tr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function bn(t,e,n,i){if(typeof e=="function"){const[r,o]=tr(i);e=e(n!==void 0?n:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=tr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}function er(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const xn=t=>Array.isArray(t),qa=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$a=t=>xn(t)?t[t.length-1]||0:t;function Re(t){const e=J(t)?t.get():t;return qa(e)?e.toValue():e}const nr=new Set(["opacity","clipPath","filter","transform"]);function ir(t){if(Lt.has(t))return"transform";if(nr.has(t))return Me(t)}function je(t,e){t.indexOf(e)===-1&&t.push(e)}function Fe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Za({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:i},r,o,s,a){const l={latestValues:Ja(r,o,s,a?!1:t,e),renderState:n()};return i&&(l.mount=c=>i(r,c,l)),l}const rr=t=>(e,n)=>{const i=x.useContext(Ee),r=x.useContext(Ae),o=()=>Za(t,e,i,r,n);return n?o():er(o)};function Qa(t,e){const n=ir(e);n&&je(t,n)}function sr(t,e,n){const i=Array.isArray(e)?e:[e];for(let r=0;r<i.length;r++){const o=bn(t,i[r]);if(o){const{transitionEnd:s,transition:a,...l}=o;n(l,s)}}}function Ja(t,e,n,i,r){var o;const s={},a=[],l=i&&((o=t.style)===null||o===void 0?void 0:o.willChange)===void 0,c=r(t,{});for(const S in c)s[S]=Re(c[S]);let{initial:u,animate:f}=t;const d=Oe(t),m=Fi(t);e&&m&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),f===void 0&&(f=e.animate));let y=n?n.initial===!1:!1;y=y||u===!1;const b=y?f:u;return b&&typeof b!="boolean"&&!le(b)&&sr(t,b,(S,P)=>{for(const g in S){let h=S[g];if(Array.isArray(h)){const v=y?h.length-1:0;h=h[v]}h!==null&&(s[g]=h)}for(const g in P)s[g]=P[g]}),l&&(f&&u!==!1&&!le(f)&&sr(t,f,S=>{for(const P in S)Qa(a,P)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:k,cancel:Ct,state:Z,steps:Tn}=Ii(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0),tl={useVisualState:rr({scrapeMotionValuesFromProps:Ji,createRenderState:qi,onMount:(t,e,{renderState:n,latestValues:i})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{gn(n,i,yn(e.tagName),t.transformTemplate),Qi(e,n)})}})},el={useVisualState:rr({applyWillChange:!0,scrapeMotionValuesFromProps:vn,createRenderState:mn})};function nl(t,{forwardMotionProps:e=!1},n,i){return{...fn(t)?tl:el,preloadedFeatures:n,useRender:Ga(e),createVisualElement:i,Component:t}}function Dt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const or=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ne(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const il=t=>e=>or(e)&&t(e,Ne(e));function Et(t,e,n,i){return Dt(t,e,il(n),i)}const rl=(t,e)=>n=>e(t(n)),At=(...t)=>t.reduce(rl);function ar(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const lr=ar("dragHorizontal"),cr=ar("dragVertical");function ur(t){let e=!1;if(t==="y")e=cr();else if(t==="x")e=lr();else{const n=lr(),i=cr();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function fr(){const t=ur(!0);return t?(t(),!1):!0}class Rt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dr(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||fr())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[i];l&&k.postRender(()=>l(o,s))};return Et(t.current,n,r,{passive:!t.getProps()[i]})}class sl extends Rt{mount(){this.unmount=At(dr(this.node,!0),dr(this.node,!1))}unmount(){}}class ol extends Rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=At(Dt(this.node.current,"focus",()=>this.onFocus()),Dt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hr=(t,e)=>e?t===e?!0:hr(t,e.parentElement):!1;function Pn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ne(n))}class al extends Rt{constructor(){super(...arguments),this.removeStartListeners=$,this.removeEndListeners=$,this.removeAccessibleListeners=$,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Et(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps(),d=!f&&!hr(this.node.current,a.target)?u:c;d&&k.update(()=>d(a,l))},{passive:!(i.onTap||i.onPointerUp)}),s=Et(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=At(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Pn("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&k.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Dt(this.node.current,"keyup",s),Pn("down",(a,l)=>{this.startPress(a,l)})},n=Dt(this.node.current,"keydown",e),i=()=>{this.isPressing&&Pn("cancel",(o,s)=>this.cancelPress(o,s))},r=Dt(this.node.current,"blur",i);this.removeAccessibleListeners=At(n,r)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&k.postRender(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!fr()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&k.postRender(()=>i(e,n))}mount(){const e=this.node.getProps(),n=Et(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Dt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=At(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sn=new WeakMap,wn=new WeakMap,ll=t=>{const e=Sn.get(t.target);e&&e(t)},cl=t=>{t.forEach(ll)};function ul({root:t,...e}){const n=t||document;wn.has(n)||wn.set(n,{});const i=wn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(cl,{root:t,...e})),i[r]}function fl(t,e,n){const i=ul(e);return Sn.set(t,n),i.observe(t),()=>{Sn.delete(t),i.unobserve(t)}}const dl={some:0,all:1};class hl extends Rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:dl[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return fl(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(pl(e,n))&&this.startObserver()}unmount(){}}function pl({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ml={inView:{Feature:hl},tap:{Feature:al},focus:{Feature:ol},hover:{Feature:sl}};function pr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ke(t,e,n){const i=t.getProps();return bn(i,e,n!==void 0?n:i.custom,t)}const Mt=t=>t*1e3,Vt=t=>t/1e3,gl={type:"spring",stiffness:500,damping:25,restSpeed:10},yl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),vl={type:"keyframes",duration:.8},bl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xl=(t,{keyframes:e})=>e.length>2?vl:Lt.has(t)?t.startsWith("scale")?yl(e[1]):gl:bl;function Tl({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Cn(t,e){return t[e]||t.default||t}const Pl=t=>t!==null;function Be(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(Pl),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}let Ue;function Sl(){Ue=void 0}const jt={now:()=>(Ue===void 0&&jt.set(Z.isProcessing||la.useManualTiming?Z.timestamp:performance.now()),Ue),set:t=>{Ue=t,queueMicrotask(Sl)}},mr=t=>/^0[^.\s]+$/u.test(t);function wl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||mr(t):!0}const gr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Cl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Dl(t){const e=Cl.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const El=4;function yr(t,e,n=1){wt(n<=El,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=Dl(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return gr(s)?parseFloat(s):s}return dn(r)?yr(r,e,n+1):r}const Al=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vr=t=>t===Jt||t===A,br=(t,e)=>parseFloat(t.split(", ")[e]),xr=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return br(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?br(o[1],t):0}},Ml=new Set(["x","y","z"]),Vl=ce.filter(t=>!Ml.has(t));function Ol(t){const e=[];return Vl.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const te={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:xr(4,13),y:xr(5,14)};te.translateX=te.x,te.translateY=te.y;const Tr=t=>e=>e.test(t),Pr=[Jt,A,bt,_t,ja,Ra,{test:t=>t==="auto",parse:t=>t}],Sr=t=>Pr.find(Tr(t)),zt=new Set;let Dn=!1,En=!1;function wr(){if(En){const t=Array.from(zt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=Ol(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}En=!1,Dn=!1,zt.forEach(t=>t.complete()),zt.clear()}function Cr(){zt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(En=!0)})}function Ll(){Cr(),wr()}class An{constructor(e,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(zt.add(this),Dn||(Dn=!0,k.read(Cr),k.resolveKeyframes(wr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=r==null?void 0:r.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),zt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,zt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mn=(t,e)=>n=>!!(de(n)&&Ia.test(n)&&n.startsWith(t)||e&&!_a(n)&&Object.prototype.hasOwnProperty.call(n,e)),Dr=(t,e,n)=>i=>{if(!de(i))return i;const[r,o,s,a]=i.match(hn);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Il=t=>It(0,255,t),Vn={...Jt,transform:t=>Math.round(Il(t))},Wt={test:Mn("rgb","red"),parse:Dr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Vn.transform(t)+", "+Vn.transform(e)+", "+Vn.transform(n)+", "+fe(ue.transform(i))+")"};function _l(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const On={test:Mn("#"),parse:_l,transform:Wt.transform},ee={test:Mn("hsl","hue"),parse:Dr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+bt.transform(fe(e))+", "+bt.transform(fe(n))+", "+fe(ue.transform(i))+")"},tt={test:t=>Wt.test(t)||On.test(t)||ee.test(t),parse:t=>Wt.test(t)?Wt.parse(t):ee.test(t)?ee.parse(t):On.parse(t),transform:t=>de(t)?t:t.hasOwnProperty("red")?Wt.transform(t):ee.transform(t)};function Rl(t){var e,n;return isNaN(t)&&de(t)&&(((e=t.match(hn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(La))===null||n===void 0?void 0:n.length)||0)>0}const Er="number",Ar="color",jl="var",Fl="var(",Mr="${}",Nl=/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 pe(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(Nl,l=>(tt.test(l)?(i.color.push(o),r.push(Ar),n.push(tt.parse(l))):l.startsWith(Fl)?(i.var.push(o),r.push(jl),n.push(l)):(i.number.push(o),r.push(Er),n.push(parseFloat(l))),++o,Mr)).split(Mr);return{values:n,split:a,indexes:i,types:r}}function Vr(t){return pe(t).values}function Or(t){const{split:e,types:n}=pe(t),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=n[s];a===Er?o+=fe(r[s]):a===Ar?o+=tt.transform(r[s]):o+=r[s]}return o}}const kl=t=>typeof t=="number"?0:t;function Bl(t){const e=Vr(t);return Or(t)(e.map(kl))}const Ft={test:Rl,parse:Vr,createTransformer:Or,getAnimatableNone:Bl},Ul=new Set(["brightness","contrast","saturate","opacity"]);function zl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(hn)||[];if(!i)return t;const r=n.replace(i,"");let o=Ul.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const Wl=/\b([a-z-]*)\(.*?\)/gu,Ln={...Ft,getAnimatableNone:t=>{const e=t.match(Wl);return e?e.map(zl).join(" "):t}},Yl={...Ki,color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:Ln,WebkitFilter:Ln},In=t=>Yl[t];function Lr(t,e){let n=In(t);return n!==Ln&&(n=Ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Kl=new Set(["auto","none","0"]);function Hl(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!Kl.has(o)&&pe(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Lr(n,r)}class Ir extends An{constructor(e,n,i,r){super(e,n,i,r,r==null?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),dn(c))){const u=yr(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Al.has(i)||e.length!==2)return;const[r,o]=e,s=Sr(r),a=Sr(o);if(s!==a)if(vr(s)&&vr(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let r=0;r<e.length;r++)wl(e[r])&&i.push(r);i.length&&Hl(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=te[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=te[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function _r(t){let e;return()=>(e===void 0&&(e=t()),e)}const Rr=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ft.test(t)||t==="0")&&!t.startsWith("url("));function Xl(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Gl(t,e,n,i){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Rr(r,e),a=Rr(o,e);return Qt(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:Xl(t)||n==="spring"&&i}class jr{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ll(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Gl(e,i,r,o))if(s)this.options.duration=0;else{l==null||l(Be(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function Fr(t,e){return e?t*(1e3/e):0}const ql=5;function Nr(t,e,n){const i=Math.max(e-ql,0);return Fr(n-t(i),e-i)}const _n=.001,$l=.01,kr=10,Zl=.05,Ql=1;function Jl({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,o;Qt(t<=Mt(kr),"Spring duration must be 10 seconds or less");let s=1-e;s=It(Zl,Ql,s),t=It($l,kr,Vt(t)),s<1?(r=c=>{const u=c*s,f=u*t,d=u-n,m=Rn(c,s),y=Math.exp(-f);return _n-d/m*y},o=c=>{const f=c*s*t,d=f*n+n,m=Math.pow(s,2)*Math.pow(c,2)*t,y=Math.exp(-f),b=Rn(Math.pow(c,2),s);return(-r(c)+_n>0?-1:1)*((d-m)*y)/b}):(r=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-_n+u*f},o=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=ec(r,o,a);if(t=Mt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const tc=12;function ec(t,e,n){let i=n;for(let r=1;r<tc;r++)i=i-t(i)/e(i);return i}function Rn(t,e){return t*Math.sqrt(1-e*e)}const nc=["duration","bounce"],ic=["stiffness","damping","mass"];function Br(t,e){return e.some(n=>t[n]!==void 0)}function rc(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Br(t,ic)&&Br(t,nc)){const n=Jl(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ur({keyframes:t,restDelta:e,restSpeed:n,...i}){const r=t[0],o=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=rc({...i,velocity:-Vt(i.velocity||0)}),m=f||0,y=l/(2*Math.sqrt(a*c)),b=o-r,S=Vt(Math.sqrt(a/c)),P=Math.abs(b)<5;n||(n=P?.01:2),e||(e=P?.005:.5);let g;if(y<1){const h=Rn(S,y);g=v=>{const p=Math.exp(-y*S*v);return o-p*((m+y*S*b)/h*Math.sin(h*v)+b*Math.cos(h*v))}}else if(y===1)g=h=>o-Math.exp(-S*h)*(b+(m+S*b)*h);else{const h=S*Math.sqrt(y*y-1);g=v=>{const p=Math.exp(-y*S*v),E=Math.min(h*v,300);return o-p*((m+y*S*b)*Math.sinh(E)+h*b*Math.cosh(E))/h}}return{calculatedDuration:d&&u||null,next:h=>{const v=g(h);if(d)s.done=h>=u;else{let p=m;h!==0&&(y<1?p=Nr(g,h,v):p=0);const E=Math.abs(p)<=n,V=Math.abs(o-v)<=e;s.done=E&&V}return s.value=s.done?o:v,s}}}function zr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},m=M=>a!==void 0&&M<a||l!==void 0&&M>l,y=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let b=n*e;const S=f+b,P=s===void 0?S:s(S);P!==S&&(b=P-f);const g=M=>-b*Math.exp(-M/i),h=M=>P+g(M),v=M=>{const W=g(M),Y=h(M);d.done=Math.abs(W)<=c,d.value=d.done?P:Y};let p,E;const V=M=>{m(d.value)&&(p=M,E=Ur({keyframes:[d.value,y(d.value)],velocity:Nr(h,M,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:M=>{let W=!1;return!E&&p===void 0&&(W=!0,v(M),V(M)),p!==void 0&&M>=p?E.next(M-p):(!W&&v(M),d)}}}const Wr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,sc=1e-7,oc=12;function ac(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=Wr(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>sc&&++a<oc);return s}function me(t,e,n,i){if(t===e&&n===i)return $;const r=o=>ac(o,0,1,t,n);return o=>o===0||o===1?o:Wr(r(o),e,i)}const lc=me(.42,0,1,1),cc=me(0,0,.58,1),Yr=me(.42,0,.58,1),uc=t=>Array.isArray(t)&&typeof t[0]!="number",Kr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Hr=t=>e=>1-t(1-e),jn=t=>1-Math.sin(Math.acos(t)),Xr=Hr(jn),fc=Kr(jn),Gr=me(.33,1.53,.69,.99),Fn=Hr(Gr),dc=Kr(Fn),qr={linear:$,easeIn:lc,easeInOut:Yr,easeOut:cc,circIn:jn,circInOut:fc,circOut:Xr,backIn:Fn,backInOut:dc,backOut:Gr,anticipate:t=>(t*=2)<1?.5*Fn(t):.5*(2-Math.pow(2,-10*(t-1)))},$r=t=>{if(Array.isArray(t)){wt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return me(e,n,i,r)}else if(typeof t=="string")return wt(qr[t]!==void 0,`Invalid easing type '${t}'`),qr[t];return t},ge=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},K=(t,e,n)=>t+(e-t)*n;function Nn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hc({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Nn(l,a,t+1/3),o=Nn(l,a,t),s=Nn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function ze(t,e){return n=>n>0?e:t}const kn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},pc=[On,Wt,ee],mc=t=>pc.find(e=>e.test(t));function Zr(t){const e=mc(t);if(Qt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ee&&(n=hc(n)),n}const Qr=(t,e)=>{const n=Zr(t),i=Zr(e);if(!n||!i)return ze(t,e);const r={...n};return o=>(r.red=kn(n.red,i.red,o),r.green=kn(n.green,i.green,o),r.blue=kn(n.blue,i.blue,o),r.alpha=K(n.alpha,i.alpha,o),Wt.transform(r))},Bn=new Set(["none","hidden"]);function gc(t,e){return Bn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function yc(t,e){return n=>K(t,e,n)}function Un(t){return typeof t=="number"?yc:typeof t=="string"?dn(t)?ze:tt.test(t)?Qr:xc:Array.isArray(t)?Jr:typeof t=="object"?tt.test(t)?Qr:vc:ze}function Jr(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>Un(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function vc(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Un(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function bc(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=l,r[s]++}return i}const xc=(t,e)=>{const n=Ft.createTransformer(e),i=pe(t),r=pe(e);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?Bn.has(t)&&!r.values.length||Bn.has(e)&&!i.values.length?gc(t,e):At(Jr(bc(i,r),r.values),n):(Qt(!0,`Complex values '${t}' and '${e}' 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.`),ze(t,e))};function ts(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?K(t,e,n):Un(t)(t,e)}function Tc(t,e,n){const i=[],r=n||ts,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||$:e;a=At(l,a)}i.push(a)}return i}function Pc(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(wt(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=Tc(e,i,r),a=s.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const f=ge(t[u],t[u+1],c);return s[u](f)};return n?c=>l(It(t[0],t[o-1],c)):l}function Sc(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=ge(0,e,i);t.push(K(n,1,r))}}function wc(t){const e=[0];return Sc(e,t.length-1),e}function Cc(t,e){return t.map(n=>n*e)}function Dc(t,e){return t.map(()=>e||Yr).splice(0,t.length-1)}function We({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=uc(i)?i.map($r):$r(i),o={done:!1,value:e[0]},s=Cc(n&&n.length===e.length?n:wc(e),t),a=Pc(s,e,{ease:Array.isArray(r)?r:Dc(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const es=2e4;function Ec(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<es;)e+=n,i=t.next(e);return e>=es?1/0:e}const Ac=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>Ct(e),now:()=>Z.isProcessing?Z.timestamp:jt.now()}},Mc={decay:zr,inertia:zr,tween:We,keyframes:We,spring:Ur},Vc=t=>t/100;class zn extends jr{constructor({KeyframeResolver:e=An,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:i,motionValue:r,keyframes:o}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);i&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,s,i,r):this.resolver=new e(o,s,i,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Mc[n]||We;let l,c;a!==We&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&wt(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=At(Vc,ts(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ec(u));const{calculatedDuration:f}=u,d=f+r,m=d*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:m}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:m,repeatType:y,repeatDelay:b,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const P=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?P<0:P>u;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let h=this.currentTime,v=o;if(m){const M=Math.min(this.currentTime,u)/f;let W=Math.floor(M),Y=M%1;!Y&&M>=1&&(Y=1),Y===1&&W--,W=Math.min(W,m+1),!!(W%2)&&(y==="reverse"?(Y=1-Y,b&&(Y-=b/f)):y==="mirror"&&(v=s)),h=It(0,1,Y)*f}const p=g?{done:!1,value:l[0]}:v.next(h);a&&(p.value=a(p.value));let{done:E}=p;!g&&c!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return V&&r!==void 0&&(p.value=Be(l,this.options,r)),S&&S(p.value),V&&this.finish(),p}get duration(){const{resolved:e}=this;return e?Vt(e.calculatedDuration):0}get time(){return Vt(this.currentTime)}set time(e){e=Mt(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Vt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ac,onPlay:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=i),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const ns=t=>Array.isArray(t)&&typeof t[0]=="number";function is(t){return!!(!t||typeof t=="string"&&t in Wn||ns(t)||Array.isArray(t)&&t.every(is))}const ye=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Wn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ye([0,.65,.55,1]),circOut:ye([.55,0,1,.45]),backIn:ye([.31,.01,.66,-.59]),backOut:ye([.33,1.53,.69,.99])};function Oc(t){return rs(t)||Wn.easeOut}function rs(t){if(t)return ns(t)?ye(t):Array.isArray(t)?t.map(Oc):Wn[t]}function Lc(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=rs(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Ic=_r(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ye=10,_c=2e4;function Rc(t){return t.type==="spring"||!is(t.ease)}function jc(t,e){const n=new zn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<_c;)i=n.sample(o),r.push(i.value),o+=Ye;return{times:void 0,keyframes:r,duration:o-Ye,ease:"linear"}}class ss extends jr{constructor(e){super(e);const{name:n,motionValue:i,keyframes:r}=this.options;this.resolver=new Ir(r,(o,s)=>this.onKeyframesResolved(o,s),n,i),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:c}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(Rc(this.options)){const{onComplete:f,onUpdate:d,motionValue:m,...y}=this.options,b=jc(e,y);e=b.keyframes,e.length===1&&(e[1]=e[0]),r=b.duration,o=b.times,s=b.ease,a="keyframes"}const u=Lc(l.owner.current,c,e,{...this.options,duration:r,times:o,ease:s});return u.startTime=jt.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;l.set(Be(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:o,type:a,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Vt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Vt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Mt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return $;const{animation:i}=n;i.timeline=e,i.onfinish=null}return $}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,...d}=this.options,m=new zn({...d,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),y=Mt(this.time);c.setWithVelocity(m.sample(y-Ye).value,m.sample(y).value,Ye)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=e;return Ic()&&i&&nr.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}function Fc(t,e){let n;const i=()=>{const{currentTime:r}=e,s=(r===null?0:r.value)/100;n!==s&&t(s),n=s};return k.update(i,!0),()=>Ct(i)}const Nc=_r(()=>window.ScrollTimeline!==void 0);class kc{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e){const n=this.animations.map(i=>{if(Nc()&&i.attachTimeline)i.attachTimeline(e);else return i.pause(),Fc(r=>{i.time=i.duration*r},e)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Yn=(t,e,n,i={},r,o,s)=>a=>{const l=Cn(i,t)||{},c=l.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Mt(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:m=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:t,motionValue:e,element:o?void 0:r};Tl(l)||(f={...f,...xl(t,f)}),f.duration&&(f.duration=Mt(f.duration)),f.repeatDelay&&(f.repeatDelay=Mt(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(d=!0)),d&&!o&&e.get()!==void 0){const m=Be(f.keyframes,l);if(m!==void 0)return k.update(()=>{f.onUpdate(m),f.onComplete()}),new kc([])}return!o&&ss.supports(f)?new ss(f):new zn(f)};class Kn{constructor(){this.subscriptions=[]}add(e){return je(this.subscriptions,e),()=>Fe(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const os=new Set;function Hn(t,e,n){t||os.has(e)||(console.warn(e),os.add(e))}const as=30,Bc=t=>!isNaN(parseFloat(t));class ls{constructor(e,n={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=jt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=jt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Bc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Hn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Kn);const i=this.events[e].add(n);return e==="change"?()=>{i(),k.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>as)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,as);return Fr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ve(t,e){return new ls(t,e)}function Uc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ve(n))}function zc(t,e){const n=ke(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=$a(o[s]);Uc(t,s,a)}}function cs(t){return t.getProps()[Li]}class Wc extends ls{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const n=ir(e);if(!n)return;const i=this.counts.get(n)||0;this.counts.set(n,i+1),i===0&&(this.output.push(n),this.update());let r=!1;return()=>{if(r)return;r=!0;const o=this.counts.get(n)-1;this.counts.set(n,o),o===0&&(Fe(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Yc(t){return!!(J(t)&&t.add)}function Xn(t,e){var n;if(!t.applyWillChange)return;let i=t.getValue("willChange");if(!i&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(i=new Wc("auto"),t.addValue("willChange",i)),Yc(i))return i.add(e)}function Kc({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function us(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),m=l[f];if(m===void 0||u&&Kc(u,f))continue;const y={delay:n,elapsed:0,...Cn(s||{},f)};let b=!1;if(window.HandoffAppearAnimations){const P=cs(t);if(P){const g=window.HandoffAppearAnimations(P,f,d,k);g!==null&&(y.elapsed=g,b=!0)}}d.start(Yn(f,d,m,t.shouldReduceMotion&&Lt.has(f)?{type:!1}:y,t,b,Xn(t,f)));const S=d.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{k.update(()=>{a&&zc(t,a)})}),c}function Gn(t,e,n={}){var i;const r=ke(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(us(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return Hc(t,e,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Hc(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(Xc).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(Gn(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function Xc(t,e){return t.sortNodePosition(e)}function Gc(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>Gn(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=Gn(t,e,n);else{const r=typeof e=="function"?ke(t,e,n.custom):e;i=Promise.all(us(t,r,n))}return i.then(()=>{k.postRender(()=>{t.notify("AnimationComplete",e)})})}const qc=[...ln].reverse(),$c=ln.length;function Zc(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Gc(t,n,i)))}function Qc(t){let e=Zc(t),n=fs(),i=!0;const r=l=>(c,u)=>{var f;const d=ke(t,u,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:m,transitionEnd:y,...b}=d;c={...c,...b,...y}}return c};function o(l){e=l(t)}function s(l){const c=t.getProps(),u=t.getVariantContext(!0)||{},f=[],d=new Set;let m={},y=1/0;for(let S=0;S<$c;S++){const P=qc[S],g=n[P],h=c[P]!==void 0?c[P]:u[P],v=ae(h),p=P===l?g.isActive:null;p===!1&&(y=S);let E=h===u[P]&&h!==c[P]&&v;if(E&&i&&t.manuallyAnimateOnMount&&(E=!1),g.protectedKeys={...m},!g.isActive&&p===null||!h&&!g.prevProp||le(h)||typeof h=="boolean")continue;let M=Jc(g.prevProp,h)||P===l&&g.isActive&&!E&&v||S>y&&v,W=!1;const Y=Array.isArray(h)?h:[h];let nt=Y.reduce(r(P),{});p===!1&&(nt={});const{prevResolvedValues:Ot={}}=g,qt={...Ot,...nt},ht=X=>{M=!0,d.has(X)&&(W=!0,d.delete(X)),g.needsAnimating[X]=!0;const q=t.getValue(X);q&&(q.liveStyle=!1)};for(const X in qt){const q=nt[X],st=Ot[X];if(m.hasOwnProperty(X))continue;let yt=!1;xn(q)&&xn(st)?yt=!pr(q,st):yt=q!==st,yt?q!=null?ht(X):d.add(X):q!==void 0&&d.has(X)?ht(X):g.protectedKeys[X]=!0}g.prevProp=h,g.prevResolvedValues=nt,g.isActive&&(m={...m,...nt}),i&&t.blockInitialAnimation&&(M=!1),M&&(!E||W)&&f.push(...Y.map(X=>({animation:X,options:{type:P}})))}if(d.size){const S={};d.forEach(P=>{const g=t.getBaseTarget(P),h=t.getValue(P);h&&(h.liveStyle=!0),S[P]=g??null}),f.push({animation:S})}let b=!!f.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=fs(),i=!0}}}function Jc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!pr(e,t):!1}function Yt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fs(){return{animate:Yt(!0),whileInView:Yt(),whileHover:Yt(),whileTap:Yt(),whileDrag:Yt(),whileFocus:Yt(),exit:Yt()}}class tu extends Rt{constructor(e){super(e),e.animationState||(e.animationState=Qc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();le(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let eu=0;class nu extends Rt{constructor(){super(...arguments),this.id=eu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const iu={animation:{Feature:tu},exit:{Feature:nu}},ds=(t,e)=>Math.abs(t-e);function ru(t,e){const n=ds(t.x,e.x),i=ds(t.y,e.y);return Math.sqrt(n**2+i**2)}class hs{constructor(e,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=$n(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=ru(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:y}=f,{timestamp:b}=Z;this.history.push({...y,timestamp:b});const{onStart:S,onMove:P}=this.handlers;d||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=qn(d,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=$n(f.type==="pointercancel"?this.lastMoveEventInfo:qn(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,S),y&&y(f,S)},!or(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=Ne(e),a=qn(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Z;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,$n(a,this.history)),this.removeListeners=At(Et(this.contextWindow,"pointermove",this.handlePointerMove),Et(this.contextWindow,"pointerup",this.handlePointerUp),Et(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ct(this.updatePoint)}}function qn(t,e){return e?{point:e(t.point)}:t}function ps(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $n({point:t},e){return{point:t,delta:ps(t,ms(e)),offset:ps(t,su(e)),velocity:ou(e,.1)}}function su(t){return t[0]}function ms(t){return t[t.length-1]}function ou(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=ms(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Mt(e)));)n--;if(!i)return{x:0,y:0};const o=Vt(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}const gs=1e-4,au=1-gs,lu=1+gs,ys=.01,cu=0-ys,uu=0+ys;function at(t){return t.max-t.min}function fu(t,e,n){return Math.abs(t-e)<=n}function vs(t,e,n,i=.5){t.origin=i,t.originPoint=K(e.min,e.max,t.origin),t.scale=at(n)/at(e),t.translate=K(n.min,n.max,t.origin)-t.originPoint,(t.scale>=au&&t.scale<=lu||isNaN(t.scale))&&(t.scale=1),(t.translate>=cu&&t.translate<=uu||isNaN(t.translate))&&(t.translate=0)}function be(t,e,n,i){vs(t.x,e.x,n.x,i?i.originX:void 0),vs(t.y,e.y,n.y,i?i.originY:void 0)}function bs(t,e,n){t.min=n.min+e.min,t.max=t.min+at(e)}function du(t,e,n){bs(t.x,e.x,n.x),bs(t.y,e.y,n.y)}function xs(t,e,n){t.min=e.min-n.min,t.max=t.min+at(e)}function xe(t,e,n){xs(t.x,e.x,n.x),xs(t.y,e.y,n.y)}function hu(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?K(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?K(n,t,i.max):Math.min(t,n)),t}function Ts(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pu(t,{top:e,left:n,bottom:i,right:r}){return{x:Ts(t.x,n,r),y:Ts(t.y,e,i)}}function Ps(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function mu(t,e){return{x:Ps(t.x,e.x),y:Ps(t.y,e.y)}}function gu(t,e){let n=.5;const i=at(t),r=at(e);return r>i?n=ge(e.min,e.max-i,t.min):i>r&&(n=ge(t.min,t.max-r,e.min)),It(0,1,n)}function yu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Zn=.35;function vu(t=Zn){return t===!1?t=0:t===!0&&(t=Zn),{x:Ss(t,"left","right"),y:Ss(t,"top","bottom")}}function Ss(t,e,n){return{min:ws(t,e),max:ws(t,n)}}function ws(t,e){return typeof t=="number"?t:t[e]||0}const Cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ne=()=>({x:Cs(),y:Cs()}),Ds=()=>({min:0,max:0}),G=()=>({x:Ds(),y:Ds()});function ft(t){return[t("x"),t("y")]}function Es({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function bu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Qn(t){return t===void 0||t===1}function Jn({scale:t,scaleX:e,scaleY:n}){return!Qn(t)||!Qn(e)||!Qn(n)}function Kt(t){return Jn(t)||As(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function As(t){return Ms(t.x)||Ms(t.y)}function Ms(t){return t&&t!=="0%"}function Ke(t,e,n){const i=t-n,r=e*i;return n+r}function Vs(t,e,n,i,r){return r!==void 0&&(t=Ke(t,r,i)),Ke(t,n,i)+e}function ti(t,e=0,n=1,i,r){t.min=Vs(t.min,e,n,i,r),t.max=Vs(t.max,e,n,i,r)}function Os(t,{x:e,y:n}){ti(t.x,e.translate,e.scale,e.originPoint),ti(t.y,n.translate,n.scale,n.originPoint)}const Ls=.999999999999,Is=1.0000000000001;function Tu(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.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&&ie(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Os(t,s)),i&&Kt(o.latestValues)&&ie(t,o.latestValues))}e.x<Is&&e.x>Ls&&(e.x=1),e.y<Is&&e.y>Ls&&(e.y=1)}function Nt(t,e){t.min=t.min+e,t.max=t.max+e}function _s(t,e,n,i,r=.5){const o=K(t.min,t.max,r);ti(t,e,n,o,i)}function ie(t,e){_s(t.x,e.x,e.scaleX,e.scale,e.originX),_s(t.y,e.y,e.scaleY,e.scale,e.originY)}function Rs(t,e){return Es(xu(t.getBoundingClientRect(),e))}function Pu(t,e,n){const i=Rs(t,n),{scroll:r}=e;return r&&(Nt(i.x,r.offset.x),Nt(i.y,r.offset.y)),i}const js=({current:t})=>t?t.ownerDocument.defaultView:null,Su=new WeakMap;class wu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ne(u,"page").point)},o=(u,f)=>{var d;const{drag:m,dragPropagation:y,onDragStart:b}=this.getProps();if(m&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ur(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ft(P=>{let g=this.getAxisMotionValue(P).get()||0;if(bt.test(g)){const{projection:h}=this.visualElement;if(h&&h.layout){const v=h.layout.layoutBox[P];v&&(g=at(v)*(parseFloat(g)/100))}}this.originPoint[P]=g}),b&&k.postRender(()=>b(u,f)),(d=this.removeWillChange)===null||d===void 0||d.call(this),this.removeWillChange=Xn(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:b}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:S}=f;if(m&&this.currentDirection===null){this.currentDirection=Cu(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),b&&b(u,f)},a=(u,f)=>this.stop(u,f),l=()=>ft(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new hs(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:js(this.visualElement)})}stop(e,n){var i;(i=this.removeWillChange)===null||i===void 0||i.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&k.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!He(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=hu(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&$t(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=pu(r.layoutBox,n):this.constraints=!1,this.elastic=vu(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ft(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=yu(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!$t(e))return!1;const i=e.current;wt(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=Pu(i,r.root,this.visualElement.getTransformPagePoint());let s=mu(r.layout.layoutBox,o);if(n){const a=n(bu(s));this.hasMutatedConstraints=!!a,a&&(s=Es(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ft(u=>{if(!He(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,m=r?40:1e7,y={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(Yn(e,i,0,n,this.visualElement,!1,Xn(this.visualElement,e)))}stopAnimation(){ft(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ft(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){ft(n=>{const{drag:i}=this.getProps();if(!He(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(e[n]-K(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!$t(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ft(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=gu({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(),ft(s=>{if(!He(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(K(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;Su.set(this.visualElement,this);const e=this.visualElement.current,n=Et(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();$t(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()),k.read(i);const s=Dt(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ft(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Zn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function He(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Cu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Du extends Rt{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new wu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fs=t=>(e,n)=>{t&&k.postRender(()=>t(e,n))};class Eu extends Rt{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new hs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:js(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Fs(e),onStart:Fs(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&k.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Et(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Au(){const t=x.useContext(Ae);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,r=x.useId();return x.useEffect(()=>i(r),[]),!e&&n?[!1,()=>n&&n(r)]:[!0]}const Xe={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=Ns(t,e.target.x),i=Ns(t,e.target.y);return`${n}% ${i}%`}},Mu={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Ft.parse(t);if(r.length>5)return i;const o=Ft.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=K(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}};class Vu extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;Ca(Ou),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Xe.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||k.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),an.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ks(t){const[e,n]=Au(),i=x.useContext(un);return w.jsx(Vu,{...t,layoutGroup:i,switchLayoutGroup:x.useContext(_i),isPresent:e,safeToRemove:n})}const Ou={borderRadius:{...Te,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomLeftRadius:Te,borderBottomRightRadius:Te,boxShadow:Mu},Bs=["TopLeft","TopRight","BottomLeft","BottomRight"],Lu=Bs.length,Us=t=>typeof t=="string"?parseFloat(t):t,zs=t=>typeof t=="number"||A.test(t);function Iu(t,e,n,i,r,o){r?(t.opacity=K(0,n.opacity!==void 0?n.opacity:1,_u(i)),t.opacityExit=K(e.opacity!==void 0?e.opacity:1,0,Ru(i))):o&&(t.opacity=K(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<Lu;s++){const a=`border${Bs[s]}Radius`;let l=Ws(e,a),c=Ws(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||zs(l)===zs(c)?(t[a]=Math.max(K(Us(l),Us(c),i),0),(bt.test(c)||bt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=K(e.rotate||0,n.rotate||0,i))}function Ws(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const _u=Ys(0,.5,Xr),Ru=Ys(.5,.95,$);function Ys(t,e,n){return i=>i<t?0:i>e?1:n(ge(t,e,i))}function Ks(t,e){t.min=e.min,t.max=e.max}function dt(t,e){Ks(t.x,e.x),Ks(t.y,e.y)}function Hs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Xs(t,e,n,i,r){return t-=e,t=Ke(t,1/n,i),r!==void 0&&(t=Ke(t,1/r,i)),t}function ju(t,e=0,n=1,i=.5,r,o=t,s=t){if(bt.test(e)&&(e=parseFloat(e),e=K(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=K(o.min,o.max,i);t===o&&(a-=e),t.min=Xs(t.min,e,n,a,r),t.max=Xs(t.max,e,n,a,r)}function Gs(t,e,[n,i,r],o,s){ju(t,e[n],e[i],e[r],e.scale,o,s)}const Fu=["x","scaleX","originX"],Nu=["y","scaleY","originY"];function qs(t,e,n,i){Gs(t.x,e,Fu,n?n.x:void 0,i?i.x:void 0),Gs(t.y,e,Nu,n?n.y:void 0,i?i.y:void 0)}function $s(t){return t.translate===0&&t.scale===1}function Zs(t){return $s(t.x)&&$s(t.y)}function ku(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Qs(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Js(t){return at(t.x)/at(t.y)}function to(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Bu{constructor(){this.members=[]}add(e){je(this.members,e),e.scheduleRender()}remove(e){if(Fe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===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(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Uu(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:m,skewY:y}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),m&&(i+=`skewX(${m}deg) `),y&&(i+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const zu=(t,e)=>t.depth-e.depth;class Wu{constructor(){this.children=[],this.isDirty=!1}add(e){je(this.children,e),this.isDirty=!0}remove(e){Fe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zu),this.isDirty=!1,this.children.forEach(e)}}function Yu(t,e){const n=jt.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&(Ct(i),t(o-e))};return k.read(i,!0),()=>Ct(i)}function Ku(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Hu(t,e,n){const i=J(t)?t:ve(t);return i.start(Yn("",i,e,n)),i.animation}const Ht={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ei=["","X","Y","Z"],Xu={visibility:"hidden"},eo=1e3;let Gu=0;function ni(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function no(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?cs(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?no(t.parent):!1:!1}function io({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=Gu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(Ht.totalNodes=Ht.resolvedTargetDeltas=Ht.recalculatedProjection=0),this.nodes.forEach(Zu),this.nodes.forEach(nf),this.nodes.forEach(rf),this.nodes.forEach(Qu),window.MotionDebug&&window.MotionDebug.record(Ht)},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 Wu)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Kn),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,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ku(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Yu(d,250),Xe.hasAnimatedSinceResize&&(Xe.hasAnimatedSinceResize=!1,this.nodes.forEach(so))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||cf,{onLayoutAnimationStart:S,onLayoutAnimationComplete:P}=u.getProps(),g=!this.targetLayout||!Qs(this.targetLayout,y)||m,h=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,h);const v={...Cn(b,"layout"),onPlay:S,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||so(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,Ct(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(sf),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.HandoffCancelAllAnimations&&no(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ro);return}this.isUpdating||this.nodes.forEach(tf),this.isUpdating=!1,this.nodes.forEach(ef),this.nodes.forEach(qu),this.nodes.forEach($u),this.clearAllSnapshots();const a=jt.now();Z.delta=It(0,1e3/60,a-Z.timestamp),Z.timestamp=a,Z.isProcessing=!0,Tn.update.process(Z),Tn.preRender.process(Z),Tn.render.process(Z),Z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,an.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ju),this.sharedNodes.forEach(of)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=G(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zs(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Kt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),uf(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return G();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Nt(a.x,l.offset.x),Nt(a.y,l.offset.y)),a}removeElementScroll(s){const a=G();dt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){dt(a,s);const{scroll:d}=this.root;d&&(Nt(a.x,-d.offset.x),Nt(a.y,-d.offset.y))}Nt(a.x,u.offset.x),Nt(a.y,u.offset.y)}}return a}applyTransform(s,a=!1){const l=G();dt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ie(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Kt(u.latestValues)&&ie(l,u.latestValues)}return Kt(this.latestValues)&&ie(l,this.latestValues),l}removeTransform(s){const a=G();dt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Kt(c.latestValues))continue;Jn(c.latestValues)&&c.updateSnapshot();const u=G(),f=c.measurePageBox();dt(u,f),qs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Kt(this.latestValues)&&qs(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!==Z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Z.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),xe(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),du(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dt(this.target,this.layout.layoutBox),Os(this.target,this.targetDelta)):dt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),xe(this.relativeTargetOrigin,this.target,m.target),dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}window.MotionDebug&&Ht.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Jn(this.parent.latestValues)||As(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Z.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=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||f))return;dt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;Tu(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=G());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hs(this.prevProjectionDelta.x,this.projectionDelta.x),Hs(this.prevProjectionDelta.y,this.projectionDelta.y)),be(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==m||!to(this.projectionDelta.x,this.prevProjectionDelta.x)||!to(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),window.MotionDebug&&Ht.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ne(),this.projectionDelta=ne(),this.projectionDeltaWithTransform=ne()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=ne();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=G(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,b=m!==y,S=this.getStack(),P=!S||S.members.length<=1,g=!!(b&&!P&&this.options.crossfade===!0&&!this.path.some(lf));this.animationProgress=0;let h;this.mixTargetDelta=v=>{const p=v/1e3;oo(f.x,s.x,p),oo(f.y,s.y,p),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xe(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),af(this.relativeTarget,this.relativeTargetOrigin,d,p),h&&ku(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=G()),dt(h,this.relativeTarget)),b&&(this.animationValues=u,Iu(u,c,this.latestValues,p,g,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=p},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Xe.hasAnimatedSinceResize=!0,this.currentAnimation=Hu(0,eo,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eo),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&fo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||G();const f=at(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=at(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}dt(a,l),ie(a,u),be(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Bu),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.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 c={};l.z&&ni("z",s,c,this.animationValues);for(let u=0;u<ei.length;u++)ni(`rotate${ei[u]}`,s,c,this.animationValues),ni(`skew${ei[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Xu;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Re(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Re(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Kt(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Uu(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:m,y}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in Le){if(d[b]===void 0)continue;const{correct:S,applyTo:P}=Le[b],g=c.transform==="none"?d[b]:S(d[b],f);if(P){const h=P.length;for(let v=0;v<h;v++)c[P[v]]=g}else c[b]=g}return this.options.layoutId&&(c.pointerEvents=f===this?Re(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ro),this.root.sharedNodes.clear()}}}function qu(t){t.updateLayout()}function $u(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=at(d);d.min=i[f].min,d.max=d.min+m}):fo(o,n.layoutBox,i)&&ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=at(i[f]);d.max=d.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+m)});const a=ne();be(a,i,n.layoutBox);const l=ne();s?be(l,t.applyTransform(r,!0),n.measuredBox):be(l,i,n.layoutBox);const c=!Zs(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const y=G();xe(y,n.layoutBox,d.layoutBox);const b=G();xe(b,i,m.layoutBox),Qs(y,b)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Zu(t){window.MotionDebug&&Ht.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ju(t){t.clearSnapshot()}function ro(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!1}function ef(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function so(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nf(t){t.resolveTargetDelta()}function rf(t){t.calcProjection()}function sf(t){t.resetSkewAndRotation()}function of(t){t.removeLeadSnapshot()}function oo(t,e,n){t.translate=K(e.translate,0,n),t.scale=K(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ao(t,e,n,i){t.min=K(e.min,n.min,i),t.max=K(e.max,n.max,i)}function af(t,e,n,i){ao(t.x,e.x,n.x,i),ao(t.y,e.y,n.y,i)}function lf(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const cf={duration:.45,ease:[.4,0,.1,1]},lo=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),co=lo("applewebkit/")&&!lo("chrome/")?Math.round:$;function uo(t){t.min=co(t.min),t.max=co(t.max)}function uf(t){uo(t.x),uo(t.y)}function fo(t,e,n){return t==="position"||t==="preserve-aspect"&&!fu(Js(e),Js(n),.2)}const ff=io({attachResizeListener:(t,e)=>Dt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ii={current:void 0},ho=io({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ii.current){const t=new ff({});t.mount(window),t.setOptions({layoutScroll:!0}),ii.current=t}return ii.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),df={pan:{Feature:Eu},drag:{Feature:Du,ProjectionNode:ho,MeasureLayout:ks}},ri={current:null},po={current:!1};function hf(){if(po.current=!0,!!sn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ri.current=t.matches;t.addListener(e),e()}else ri.current=!1}function pf(t,e,n){for(const i in e){const r=e[i],o=n[i];if(J(r))t.addValue(i,r),process.env.NODE_ENV==="development"&&Hn(r.version==="11.3.8",`Attempting to mix Framer Motion versions ${r.version} with 11.3.8 may not work as expected.`);else if(J(o))t.addValue(i,ve(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(i);t.addValue(i,ve(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const mo=new WeakMap,mf=[...Pr,tt,Ft],gf=t=>mf.find(Tr(t)),go=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yf=cn.length;class vf{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(d,m,y,b)=>new this.KeyframeResolver(d,m,y,b,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=An,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,k.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Oe(n),this.isVariantNode=Fi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];l[d]!==void 0&&J(m)&&m.set(l[d],!1)}}mount(e){this.current=e,mo.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),po.current||hf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ri.current,process.env.NODE_ENV!=="production"&&Hn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mo.delete(this.current),this.projection&&this.projection.unmount(),Ct(this.notifyUpdate),Ct(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const i=Lt.has(e),r=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&k.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Zt){const n=Zt[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];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):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<go.length;i++){const r=go[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=pf(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<yf;i++){const r=cn[i],o=this.props[r];(ae(o)||o===!1)&&(n[r]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=ve(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(gr(r)||mr(r))?r=parseFloat(r):!gf(r)&&Ft.test(n)&&(r=Lr(e,n)),this.setBaseTarget(e,J(r)?r.get():r)),J(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=bn(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!J(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Kn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class yo extends vf{constructor(){super(...arguments),this.KeyframeResolver=Ir}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}}function bf(t){return window.getComputedStyle(t)}class xf extends yo{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=$i}readValueFromInstance(e,n){if(Lt.has(n)){const i=In(n);return i&&i.default||0}else{const i=bf(e),r=(zi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Rs(e,n)}build(e,n,i){pn(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return vn(e,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Tf extends yo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Lt.has(n)){const i=In(n);return i&&i.default||0}return n=Zi.has(n)?n:Me(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Ji(e,n,i)}build(e,n,i){gn(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){Qi(e,n,i,r)}mount(e){this.isSVGTag=yn(e.tagName),super.mount(e)}}const Pf=(t,e)=>fn(t)?new Tf(e):new xf(e,{allowProjection:t!==x.Fragment}),Sf={...iu,...ml,...df,...{layout:{ProjectionNode:ho,MeasureLayout:ks}}},Pe=Sa((t,e)=>nl(t,e,Sf,Pf));function vo(){const t=x.useRef(!1);return on(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function wf(){const t=vo(),[e,n]=x.useState(0),i=x.useCallback(()=>{t.current&&n(e+1)},[e]);return[x.useCallback(()=>k.postRender(i),[i]),e]}class Cf extends nn.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Df({children:t,isPresent:e}){const n=x.useId(),i=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(rn);return x.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=r.current;if(e||!i.current||!s||!a)return;i.current.dataset.motionPopId=n;const u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
6
|
+
[data-motion-pop-id="${n}"] {
|
|
7
|
+
position: absolute !important;
|
|
8
|
+
width: ${s}px !important;
|
|
9
|
+
height: ${a}px !important;
|
|
10
|
+
top: ${l}px !important;
|
|
11
|
+
left: ${c}px !important;
|
|
12
|
+
}
|
|
13
|
+
`),()=>{document.head.removeChild(u)}},[e]),w.jsx(Cf,{isPresent:e,childRef:i,sizeRef:r,children:nn.cloneElement(t,{ref:i})})}const si=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s})=>{const a=er(Ef),l=x.useId(),c=x.useMemo(()=>({id:l,initial:e,isPresent:n,custom:r,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;i&&i()},register:u=>(a.set(u,!1),()=>a.delete(u))}),o?[Math.random()]:[n]);return x.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[n]),nn.useEffect(()=>{!n&&!a.size&&i&&i()},[n]),s==="popLayout"&&(t=w.jsx(Df,{isPresent:n,children:t})),w.jsx(Ae.Provider,{value:c,children:t})};function Ef(){return new Map}function Af(t){return x.useEffect(()=>()=>t(),[])}const Xt=t=>t.key||"";function Mf(t,e){t.forEach(n=>{const i=Xt(n);e.set(i,n)})}function Vf(t){const e=[];return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const oi=({children:t,custom:e,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:o=!0,mode:s="sync"})=>{wt(!r,"Replace exitBeforeEnter with mode='wait'");const a=x.useContext(un).forceRender||wf()[0],l=vo(),c=Vf(t);let u=c;const f=x.useRef(new Map).current,d=x.useRef(u),m=x.useRef(new Map).current,y=x.useRef(!0);if(on(()=>{y.current=!1,Mf(c,m),d.current=u}),Af(()=>{y.current=!0,m.clear(),f.clear()}),y.current)return w.jsx(w.Fragment,{children:u.map(g=>w.jsx(si,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s,children:g},Xt(g)))});u=[...u];const b=d.current.map(Xt),S=c.map(Xt),P=b.length;for(let g=0;g<P;g++){const h=b[g];S.indexOf(h)===-1&&!f.has(h)&&f.set(h,void 0)}return s==="wait"&&f.size&&(u=[]),f.forEach((g,h)=>{if(S.indexOf(h)!==-1)return;const v=m.get(h);if(!v)return;const p=b.indexOf(h);let E=g;if(!E){const V=()=>{f.delete(h);const M=Array.from(m.keys()).filter(W=>!S.includes(W));if(M.forEach(W=>m.delete(W)),d.current=c.filter(W=>{const Y=Xt(W);return Y===h||M.includes(Y)}),!f.size){if(l.current===!1)return;a(),i&&i()}};E=w.jsx(si,{isPresent:!1,onExitComplete:V,custom:e,presenceAffectsLayout:o,mode:s,children:v},Xt(v)),f.set(h,E)}u.splice(p,0,E)}),u=u.map(g=>{const h=g.key;return f.has(h)?g:w.jsx(si,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:g},Xt(g))}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.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.`),w.jsx(w.Fragment,{children:f.size?u:u.map(g=>x.cloneElement(g))})},Of=t=>{let e=w.jsx(w.Fragment,{});switch(t){case"success":e=w.jsx(ia,{});break;case"info":e=w.jsx(sa,{});break;case"warning":e=w.jsx(oa,{});break;case"error":e=w.jsx(ra,{});break}return{icon:e}},Lf=t=>{const{id:e,type:n,title:i}=t,{icon:r}=Of(n),o=4e3,s=wi(),a=x.useCallback(()=>{s.removeToast(e)},[e,s]);return x.useEffect(()=>{const l=setTimeout(()=>{setTimeout(()=>{a()},1e3)},o);return()=>{clearTimeout(l)}},[]),w.jsx(Pe.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:w.jsxs("div",{className:we(vt.toast,vt[n]),children:[w.jsx("div",{className:vt["toast-icon"],children:r}),w.jsx("div",{className:vt["toast-content"],children:w.jsx("p",{className:vt["toast-title"],children:i})}),w.jsx("div",{className:vt["toast-close"],children:w.jsx("button",{type:"button",className:vt["toast-close-btn"],onClick:a,children:w.jsx("span",{className:vt["toast-close-btn-icon"],children:w.jsx(aa,{})})})})]})},e)};function If(t){const{children:e}=t,[n,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?St.createPortal(e,r):St.createPortal(e,document.body)}const _f=t=>{const{toasts:e,toastPosition:n="top-center"}=t;return w.jsx(If,{children:w.jsx("div",{className:we(vt["toasts-container"],vt[n]),children:w.jsx(oi,{children:e.map(i=>w.jsx(Lf,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var Q=[],ai=0;ai<256;++ai)Q.push((ai+256).toString(16).slice(1));function Rf(t,e=0){return(Q[t[e+0]]+Q[t[e+1]]+Q[t[e+2]]+Q[t[e+3]]+"-"+Q[t[e+4]]+Q[t[e+5]]+"-"+Q[t[e+6]]+Q[t[e+7]]+"-"+Q[t[e+8]]+Q[t[e+9]]+"-"+Q[t[e+10]]+Q[t[e+11]]+Q[t[e+12]]+Q[t[e+13]]+Q[t[e+14]]+Q[t[e+15]]).toLowerCase()}var Ge,jf=new Uint8Array(16);function Ff(){if(!Ge&&(Ge=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ge))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ge(jf)}var Nf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const bo={randomUUID:Nf};function kf(t,e,n){if(bo.randomUUID&&!e&&!t)return bo.randomUUID();t=t||{};var i=t.random||(t.rng||Ff)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Rf(i)}function Bf(){return St.createPortal(w.jsxs("div",{id:"biznext-ui-portal",children:[w.jsx("div",{id:"biznext-ui-modal-portal"}),w.jsx("div",{id:"biznext-ui-toast-portal"}),w.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function Uf(t){return Ut({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(t)}const pt={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function zf(t){const{children:e}=t,[n,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?St.createPortal(e,r):St.createPortal(e,document.body)}const Wf=t=>{const{isOpen:e,onClose:n,config:i}=t,{type:r,title:o,description:s,icon:a,onConfirm:l,buttonContent:c}=i,u=()=>{n()},f=()=>{l(),n()};return w.jsx(zf,{children:w.jsx("div",{className:pt["confirm-dialog-wrapper"],children:w.jsx(oi,{children:e&&w.jsx(Pe.div,{className:pt["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:w.jsx(Pe.div,{className:we(pt["confirm-dialog"],pt[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:w.jsxs("div",{className:pt["confirm-dialog-content"],children:[w.jsxs("div",{className:pt["confirm-dialog-body"],children:[w.jsx("div",{className:pt["confirm-dialog-icon-container"],children:w.jsx("div",{className:pt["confirm-dialog-icon"],children:a||w.jsx(Uf,{})})}),w.jsxs("div",{children:[w.jsx("h2",{children:o}),w.jsx("p",{children:s})]})]}),w.jsxs("div",{className:pt["confirm-dialog-footer"],children:[w.jsx("button",{type:"button",className:pt["confirm-dialog-footer-close-btn"],onClick:u,children:c&&c.onCloseTitle?c.onCloseTitle:"Cancel"}),w.jsx("button",{type:"button",className:pt["confirm-dialog-footer-confirm-btn"],onClick:f,children:c&&c.onConfirmTitle?c.onConfirmTitle:"Confirm"})]})]})})})})})})},xo=x.createContext({}),Yf=({children:t,toastPosition:e})=>{const n={toasts:[]},[i,r]=x.useReducer(Xo,n),o=(h,v,p)=>{const E=kf();r({type:"ADD_TOAST",payload:{id:E,title:v,type:h,config:p}})},f={success:(h,v)=>{o("success",h,v)},warning:(h,v)=>{o("warning",h,v)},info:(h,v)=>{o("info",h,v)},error:(h,v)=>{o("error",h,v)},removeToast:h=>{r({type:"DELETE_TOAST",payload:{id:h,title:"",type:""}})}},[d,m]=x.useState({}),[y,b]=x.useState(!1),S=h=>{m(h),b(!0)},P=()=>{b(!1)},g=S;return w.jsx(Si.Provider,{value:f,children:w.jsxs(xo.Provider,{value:g,children:[w.jsx(Bf,{}),w.jsx(_f,{toasts:i.toasts,toastPosition:e}),w.jsx(Wf,{isOpen:y,onClose:P,config:d}),t]})})},mt={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function Kf(t){return Ut({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(t)}var qe={exports:{}},To={},li={exports:{}},$e={exports:{}},B={};/** @license React v16.13.1
|
|
14
|
+
* react-is.production.min.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/var Po;function Hf(){if(Po)return B;Po=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function h(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case e:switch(p=p.type,p){case l:case c:case i:case o:case r:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case u:case y:case m:case s:return p;default:return E}}case n:return E}}}function v(p){return h(p)===c}return B.AsyncMode=l,B.ConcurrentMode=c,B.ContextConsumer=a,B.ContextProvider=s,B.Element=e,B.ForwardRef=u,B.Fragment=i,B.Lazy=y,B.Memo=m,B.Portal=n,B.Profiler=o,B.StrictMode=r,B.Suspense=f,B.isAsyncMode=function(p){return v(p)||h(p)===l},B.isConcurrentMode=v,B.isContextConsumer=function(p){return h(p)===a},B.isContextProvider=function(p){return h(p)===s},B.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},B.isForwardRef=function(p){return h(p)===u},B.isFragment=function(p){return h(p)===i},B.isLazy=function(p){return h(p)===y},B.isMemo=function(p){return h(p)===m},B.isPortal=function(p){return h(p)===n},B.isProfiler=function(p){return h(p)===o},B.isStrictMode=function(p){return h(p)===r},B.isSuspense=function(p){return h(p)===f},B.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===i||p===c||p===o||p===r||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===y||p.$$typeof===m||p.$$typeof===s||p.$$typeof===a||p.$$typeof===u||p.$$typeof===S||p.$$typeof===P||p.$$typeof===g||p.$$typeof===b)},B.typeOf=h,B}var U={};/** @license React v16.13.1
|
|
21
|
+
* react-is.development.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var So;function Xf(){return So||(So=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function h(C){return typeof C=="string"||typeof C=="function"||C===i||C===c||C===o||C===r||C===f||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===m||C.$$typeof===s||C.$$typeof===a||C.$$typeof===u||C.$$typeof===S||C.$$typeof===P||C.$$typeof===g||C.$$typeof===b)}function v(C){if(typeof C=="object"&&C!==null){var Pt=C.$$typeof;switch(Pt){case e:var en=C.type;switch(en){case l:case c:case i:case o:case r:case f:return en;default:var Ko=en&&en.$$typeof;switch(Ko){case a:case u:case y:case m:case s:return Ko;default:return Pt}}case n:return Pt}}}var p=l,E=c,V=a,M=s,W=e,Y=u,nt=i,Ot=y,qt=m,ht=n,X=o,q=r,st=f,yt=!1;function oe(C){return yt||(yt=!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.")),T(C)||v(C)===l}function T(C){return v(C)===c}function D(C){return v(C)===a}function R(C){return v(C)===s}function I(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function O(C){return v(C)===u}function j(C){return v(C)===i}function L(C){return v(C)===y}function _(C){return v(C)===m}function F(C){return v(C)===n}function z(C){return v(C)===o}function N(C){return v(C)===r}function ot(C){return v(C)===f}U.AsyncMode=p,U.ConcurrentMode=E,U.ContextConsumer=V,U.ContextProvider=M,U.Element=W,U.ForwardRef=Y,U.Fragment=nt,U.Lazy=Ot,U.Memo=qt,U.Portal=ht,U.Profiler=X,U.StrictMode=q,U.Suspense=st,U.isAsyncMode=oe,U.isConcurrentMode=T,U.isContextConsumer=D,U.isContextProvider=R,U.isElement=I,U.isForwardRef=O,U.isFragment=j,U.isLazy=L,U.isMemo=_,U.isPortal=F,U.isProfiler=z,U.isStrictMode=N,U.isSuspense=ot,U.isValidElementType=h,U.typeOf=v}()),U}var wo;function Co(){return wo||(wo=1,process.env.NODE_ENV==="production"?$e.exports=Hf():$e.exports=Xf()),$e.exports}/*
|
|
28
|
+
object-assign
|
|
29
|
+
(c) Sindre Sorhus
|
|
30
|
+
@license MIT
|
|
31
|
+
*/var ci,Do;function Gf(){if(Do)return ci;Do=1;var t=Object.getOwnPropertySymbols,e=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(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ci=r()?Object.assign:function(o,s){for(var a,l=i(o),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)e.call(a,f)&&(l[f]=a[f]);if(t){c=t(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(l[c[d]]=a[c[d]])}}return l},ci}var ui,Eo;function fi(){if(Eo)return ui;Eo=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ui=t,ui}var di,Ao;function Mo(){return Ao||(Ao=1,di=Function.call.bind(Object.prototype.hasOwnProperty)),di}var hi,Vo;function qf(){if(Vo)return hi;Vo=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=fi(),n={},i=Mo();t=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function r(o,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(i(o,u)){var f;try{if(typeof o[u]!="function"){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=o[u](s,u,l,a,null,e)}catch(y){f=y}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var m=c?c():"";t("Failed "+a+" type: "+f.message+(m??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hi=r,hi}var pi,Oo;function $f(){if(Oo)return pi;Oo=1;var t=Co(),e=Gf(),n=fi(),i=Mo(),r=qf(),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 pi=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(T){var D=T&&(c&&T[c]||T[u]);if(typeof D=="function")return D}var d="<<anonymous>>",m={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:g(),arrayOf:h,element:v(),elementType:p(),instanceOf:E,node:Y(),objectOf:M,oneOf:V,oneOfType:W,shape:Ot,exact:qt};function y(T,D){return T===D?T!==0||1/T===1/D:T!==T&&D!==D}function b(T,D){this.message=T,this.data=D&&typeof D=="object"?D:{},this.stack=""}b.prototype=Error.prototype;function S(T){if(process.env.NODE_ENV!=="production")var D={},R=0;function I(j,L,_,F,z,N,ot){if(F=F||d,N=N||_,ot!==n){if(l){var C=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 C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pt=F+":"+_;!D[Pt]&&R<3&&(o("You are manually calling a React.PropTypes validation function for the `"+N+"` prop on `"+F+"`. 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."),D[Pt]=!0,R++)}}return L[_]==null?j?L[_]===null?new b("The "+z+" `"+N+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new b("The "+z+" `"+N+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:T(L,_,F,z,N)}var O=I.bind(null,!1);return O.isRequired=I.bind(null,!0),O}function P(T){function D(R,I,O,j,L,_){var F=R[I],z=q(F);if(z!==T){var N=st(F);return new b("Invalid "+j+" `"+L+"` of type "+("`"+N+"` supplied to `"+O+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return S(D)}function g(){return S(s)}function h(T){function D(R,I,O,j,L){if(typeof T!="function")return new b("Property `"+L+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var _=R[I];if(!Array.isArray(_)){var F=q(_);return new b("Invalid "+j+" `"+L+"` of type "+("`"+F+"` supplied to `"+O+"`, expected an array."))}for(var z=0;z<_.length;z++){var N=T(_,z,O,j,L+"["+z+"]",n);if(N instanceof Error)return N}return null}return S(D)}function v(){function T(D,R,I,O,j){var L=D[R];if(!a(L)){var _=q(L);return new b("Invalid "+O+" `"+j+"` of type "+("`"+_+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return S(T)}function p(){function T(D,R,I,O,j){var L=D[R];if(!t.isValidElementType(L)){var _=q(L);return new b("Invalid "+O+" `"+j+"` of type "+("`"+_+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return S(T)}function E(T){function D(R,I,O,j,L){if(!(R[I]instanceof T)){var _=T.name||d,F=oe(R[I]);return new b("Invalid "+j+" `"+L+"` of type "+("`"+F+"` supplied to `"+O+"`, expected ")+("instance of `"+_+"`."))}return null}return S(D)}function V(T){if(!Array.isArray(T))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 D(R,I,O,j,L){for(var _=R[I],F=0;F<T.length;F++)if(y(_,T[F]))return null;var z=JSON.stringify(T,function(ot,C){var Pt=st(C);return Pt==="symbol"?String(C):C});return new b("Invalid "+j+" `"+L+"` of value `"+String(_)+"` "+("supplied to `"+O+"`, expected one of "+z+"."))}return S(D)}function M(T){function D(R,I,O,j,L){if(typeof T!="function")return new b("Property `"+L+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var _=R[I],F=q(_);if(F!=="object")return new b("Invalid "+j+" `"+L+"` of type "+("`"+F+"` supplied to `"+O+"`, expected an object."));for(var z in _)if(i(_,z)){var N=T(_,z,O,j,L+"."+z,n);if(N instanceof Error)return N}return null}return S(D)}function W(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<T.length;D++){var R=T[D];if(typeof R!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+yt(R)+" at index "+D+"."),s}function I(O,j,L,_,F){for(var z=[],N=0;N<T.length;N++){var ot=T[N],C=ot(O,j,L,_,F,n);if(C==null)return null;C.data&&i(C.data,"expectedType")&&z.push(C.data.expectedType)}var Pt=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new b("Invalid "+_+" `"+F+"` supplied to "+("`"+L+"`"+Pt+"."))}return S(I)}function Y(){function T(D,R,I,O,j){return ht(D[R])?null:new b("Invalid "+O+" `"+j+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return S(T)}function nt(T,D,R,I,O){return new b((T||"React class")+": "+D+" type `"+R+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function Ot(T){function D(R,I,O,j,L){var _=R[I],F=q(_);if(F!=="object")return new b("Invalid "+j+" `"+L+"` of type `"+F+"` "+("supplied to `"+O+"`, expected `object`."));for(var z in T){var N=T[z];if(typeof N!="function")return nt(O,j,L,z,st(N));var ot=N(_,z,O,j,L+"."+z,n);if(ot)return ot}return null}return S(D)}function qt(T){function D(R,I,O,j,L){var _=R[I],F=q(_);if(F!=="object")return new b("Invalid "+j+" `"+L+"` of type `"+F+"` "+("supplied to `"+O+"`, expected `object`."));var z=e({},R[I],T);for(var N in z){var ot=T[N];if(i(T,N)&&typeof ot!="function")return nt(O,j,L,N,st(ot));if(!ot)return new b("Invalid "+j+" `"+L+"` key `"+N+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(R[I],null," ")+`
|
|
32
|
+
Valid keys: `+JSON.stringify(Object.keys(T),null," "));var C=ot(_,N,O,j,L+"."+N,n);if(C)return C}return null}return S(D)}function ht(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(ht);if(T===null||a(T))return!0;var D=f(T);if(D){var R=D.call(T),I;if(D!==T.entries){for(;!(I=R.next()).done;)if(!ht(I.value))return!1}else for(;!(I=R.next()).done;){var O=I.value;if(O&&!ht(O[1]))return!1}}else return!1;return!0;default:return!1}}function X(T,D){return T==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function q(T){var D=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":X(D,T)?"symbol":D}function st(T){if(typeof T>"u"||T===null)return""+T;var D=q(T);if(D==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return D}function yt(T){var D=st(T);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function oe(T){return!T.constructor||!T.constructor.name?d:T.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},pi}var mi,Lo;function Zf(){if(Lo)return mi;Lo=1;var t=fi();function e(){}function n(){}return n.resetWarningCache=e,mi=function(){function i(s,a,l,c,u,f){if(f!==t){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}}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:e};return o.PropTypes=o,o},mi}if(process.env.NODE_ENV!=="production"){var Qf=Co(),Jf=!0;li.exports=$f()(Qf.isElement,Jf)}else li.exports=Zf()();var Io=li.exports;function _o(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=_o(t[e]))&&(i&&(i+=" "),i+=n);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}function Ro(){for(var t,e,n=0,i="";n<arguments.length;)(t=arguments[n++])&&(e=_o(t))&&(i&&(i+=" "),i+=e);return i}const td=Go(Object.freeze(Object.defineProperty({__proto__:null,clsx:Ro,default:Ro},Symbol.toStringTag,{value:"Module"})));var H={},xt={};Object.defineProperty(xt,"__esModule",{value:!0}),xt.dontSetMe=sd,xt.findInArray=ed,xt.int=rd,xt.isFunction=nd,xt.isNum=id;function ed(t,e){for(let n=0,i=t.length;n<i;n++)if(e.apply(e,[t[n],n,t]))return t[n]}function nd(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Function]"}function id(t){return typeof t=="number"&&!isNaN(t)}function rd(t){return parseInt(t,10)}function sd(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))}var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.browserPrefixToKey=Fo,Gt.browserPrefixToStyle=od,Gt.default=void 0,Gt.getPrefix=jo;const gi=["Moz","Webkit","O","ms"];function jo(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(t=window.document)===null||t===void 0||(t=t.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(let i=0;i<gi.length;i++)if(Fo(e,gi[i])in n)return gi[i];return""}function Fo(t,e){return e?"".concat(e).concat(ad(t)):t}function od(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t}function ad(t){let e="",n=!0;for(let i=0;i<t.length;i++)n?(e+=t[i].toUpperCase(),n=!1):t[i]==="-"?n=!0:e+=t[i];return e}Gt.default=jo(),Object.defineProperty(H,"__esModule",{value:!0}),H.addClassName=Uo,H.addEvent=ud,H.addUserSelectStyles=Td,H.createCSSTransform=yd,H.createSVGTransform=vd,H.getTouch=bd,H.getTouchIdentifier=xd,H.getTranslation=yi,H.innerHeight=pd,H.innerWidth=md,H.matchesSelector=Bo,H.matchesSelectorAndParentsTo=cd,H.offsetXYFromParent=gd,H.outerHeight=dd,H.outerWidth=hd,H.removeClassName=zo,H.removeEvent=fd,H.removeUserSelectStyles=Pd;var lt=xt,No=ld(Gt);function ko(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ko=function(i){return i?n:e})(t)}function ld(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ko(e);if(n&&n.has(t))return n.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}let Ze="";function Bo(t,e){return Ze||(Ze=(0,lt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,lt.isFunction)(t[n])})),(0,lt.isFunction)(t[Ze])?t[Ze](e):!1}function cd(t,e,n){let i=t;do{if(Bo(i,e))return!0;if(i===n)return!1;i=i.parentNode}while(i);return!1}function ud(t,e,n,i){if(!t)return;const r={capture:!0,...i};t.addEventListener?t.addEventListener(e,n,r):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function fd(t,e,n,i){if(!t)return;const r={capture:!0,...i};t.removeEventListener?t.removeEventListener(e,n,r):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function dd(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,lt.int)(n.borderTopWidth),e+=(0,lt.int)(n.borderBottomWidth),e}function hd(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,lt.int)(n.borderLeftWidth),e+=(0,lt.int)(n.borderRightWidth),e}function pd(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,lt.int)(n.paddingTop),e-=(0,lt.int)(n.paddingBottom),e}function md(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,lt.int)(n.paddingLeft),e-=(0,lt.int)(n.paddingRight),e}function gd(t,e,n){const r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),o=(t.clientX+e.scrollLeft-r.left)/n,s=(t.clientY+e.scrollTop-r.top)/n;return{x:o,y:s}}function yd(t,e){const n=yi(t,e,"px");return{[(0,No.browserPrefixToKey)("transform",No.default)]:n}}function vd(t,e){return yi(t,e,"")}function yi(t,e,n){let{x:i,y:r}=t,o="translate(".concat(i).concat(n,",").concat(r).concat(n,")");if(e){const s="".concat(typeof e.x=="string"?e.x:e.x+n),a="".concat(typeof e.y=="string"?e.y:e.y+n);o="translate(".concat(s,", ").concat(a,")")+o}return o}function bd(t,e){return t.targetTouches&&(0,lt.findInArray)(t.targetTouches,n=>e===n.identifier)||t.changedTouches&&(0,lt.findInArray)(t.changedTouches,n=>e===n.identifier)}function xd(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}function Td(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
33
|
+
`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
34
|
+
`,t.getElementsByTagName("head")[0].appendChild(e)),t.body&&Uo(t.body,"react-draggable-transparent-selection")}function Pd(t){if(t)try{if(t.body&&zo(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function Uo(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function zo(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var Tt={};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.canDragX=Cd,Tt.canDragY=Dd,Tt.createCoreData=Ad,Tt.createDraggableData=Md,Tt.getBoundPosition=Sd,Tt.getControlPosition=Ed,Tt.snapToGrid=wd;var ct=xt,re=H;function Sd(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:i}=t.props;i=typeof i=="string"?i:Vd(i);const r=vi(t);if(typeof i=="string"){const{ownerDocument:o}=r,s=o.defaultView;let a;if(i==="parent"?a=r.parentNode:a=o.querySelector(i),!(a instanceof s.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const l=a,c=s.getComputedStyle(r),u=s.getComputedStyle(l);i={left:-r.offsetLeft+(0,ct.int)(u.paddingLeft)+(0,ct.int)(c.marginLeft),top:-r.offsetTop+(0,ct.int)(u.paddingTop)+(0,ct.int)(c.marginTop),right:(0,re.innerWidth)(l)-(0,re.outerWidth)(r)-r.offsetLeft+(0,ct.int)(u.paddingRight)-(0,ct.int)(c.marginRight),bottom:(0,re.innerHeight)(l)-(0,re.outerHeight)(r)-r.offsetTop+(0,ct.int)(u.paddingBottom)-(0,ct.int)(c.marginBottom)}}return(0,ct.isNum)(i.right)&&(e=Math.min(e,i.right)),(0,ct.isNum)(i.bottom)&&(n=Math.min(n,i.bottom)),(0,ct.isNum)(i.left)&&(e=Math.max(e,i.left)),(0,ct.isNum)(i.top)&&(n=Math.max(n,i.top)),[e,n]}function wd(t,e,n){const i=Math.round(e/t[0])*t[0],r=Math.round(n/t[1])*t[1];return[i,r]}function Cd(t){return t.props.axis==="both"||t.props.axis==="x"}function Dd(t){return t.props.axis==="both"||t.props.axis==="y"}function Ed(t,e,n){const i=typeof e=="number"?(0,re.getTouch)(t,e):null;if(typeof e=="number"&&!i)return null;const r=vi(n),o=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return(0,re.offsetXYFromParent)(i||t,o,n.props.scale)}function Ad(t,e,n){const i=!(0,ct.isNum)(t.lastX),r=vi(t);return i?{node:r,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:r,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}}function Md(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}function Vd(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}function vi(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}var Qe={},Je={};Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=Od;function Od(){}Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=void 0;var bi=Id(x),rt=Ti(Io),Ld=Ti(St),et=H,kt=Tt,xi=xt,Se=Ti(Je);function Ti(t){return t&&t.__esModule?t:{default:t}}function Wo(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Wo=function(i){return i?n:e})(t)}function Id(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Wo(e);if(n&&n.has(t))return n.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}function it(t,e,n){return e=_d(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _d(t){var e=Rd(t,"string");return typeof e=="symbol"?e:String(e)}function Rd(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const gt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Bt=gt.mouse,tn=class extends bi.Component{constructor(){super(...arguments),it(this,"dragging",!1),it(this,"lastX",NaN),it(this,"lastY",NaN),it(this,"touchIdentifier",null),it(this,"mounted",!1),it(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=n;if(this.props.disabled||!(e.target instanceof i.defaultView.Node)||this.props.handle&&!(0,et.matchesSelectorAndParentsTo)(e.target,this.props.handle,n)||this.props.cancel&&(0,et.matchesSelectorAndParentsTo)(e.target,this.props.cancel,n))return;e.type==="touchstart"&&e.preventDefault();const r=(0,et.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,kt.getControlPosition)(e,r,this);if(o==null)return;const{x:s,y:a}=o,l=(0,kt.createCoreData)(this,s,a);(0,Se.default)("DraggableCore: handleDragStart: %j",l),(0,Se.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,et.addUserSelectStyles)(i),this.dragging=!0,this.lastX=s,this.lastY=a,(0,et.addEvent)(i,Bt.move,this.handleDrag),(0,et.addEvent)(i,Bt.stop,this.handleDragStop))}),it(this,"handleDrag",e=>{const n=(0,kt.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:i,y:r}=n;if(Array.isArray(this.props.grid)){let a=i-this.lastX,l=r-this.lastY;if([a,l]=(0,kt.snapToGrid)(this.props.grid,a,l),!a&&!l)return;i=this.lastX+a,r=this.lastY+l}const o=(0,kt.createCoreData)(this,i,r);if((0,Se.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(e,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=i,this.lastY=r}),it(this,"handleDragStop",e=>{if(!this.dragging)return;const n=(0,kt.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:i,y:r}=n;if(Array.isArray(this.props.grid)){let l=i-this.lastX||0,c=r-this.lastY||0;[l,c]=(0,kt.snapToGrid)(this.props.grid,l,c),i=this.lastX+l,r=this.lastY+c}const o=(0,kt.createCoreData)(this,i,r);if(this.props.onStop(e,o)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,et.removeUserSelectStyles)(a.ownerDocument),(0,Se.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,Se.default)("DraggableCore: Removing handlers"),(0,et.removeEvent)(a.ownerDocument,Bt.move,this.handleDrag),(0,et.removeEvent)(a.ownerDocument,Bt.stop,this.handleDragStop))}),it(this,"onMouseDown",e=>(Bt=gt.mouse,this.handleDragStart(e))),it(this,"onMouseUp",e=>(Bt=gt.mouse,this.handleDragStop(e))),it(this,"onTouchStart",e=>(Bt=gt.touch,this.handleDragStart(e))),it(this,"onTouchEnd",e=>(Bt=gt.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,et.addEvent)(e,gt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:n}=e;(0,et.removeEvent)(n,gt.mouse.move,this.handleDrag),(0,et.removeEvent)(n,gt.touch.move,this.handleDrag),(0,et.removeEvent)(n,gt.mouse.stop,this.handleDragStop),(0,et.removeEvent)(n,gt.touch.stop,this.handleDragStop),(0,et.removeEvent)(e,gt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,et.removeUserSelectStyles)(n)}}findDOMNode(){var e,n;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:Ld.default.findDOMNode(this)}render(){return bi.cloneElement(bi.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Qe.default=tn,it(tn,"displayName","DraggableCore"),it(tn,"propTypes",{allowAnyClick:rt.default.bool,children:rt.default.node.isRequired,disabled:rt.default.bool,enableUserSelectHack:rt.default.bool,offsetParent:function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:rt.default.arrayOf(rt.default.number),handle:rt.default.string,cancel:rt.default.string,nodeRef:rt.default.object,onStart:rt.default.func,onDrag:rt.default.func,onStop:rt.default.func,onMouseDown:rt.default.func,scale:rt.default.number,className:xi.dontSetMe,style:xi.dontSetMe,transform:xi.dontSetMe}),it(tn,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var e=d(x),n=u(Io),i=u(St),r=u(td),o=H,s=Tt,a=xt,l=u(Qe),c=u(Je);function u(g){return g&&g.__esModule?g:{default:g}}function f(g){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(f=function(p){return p?v:h})(g)}function d(g,h){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=f(h);if(v&&v.has(g))return v.get(g);var p={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in g)if(V!=="default"&&Object.prototype.hasOwnProperty.call(g,V)){var M=E?Object.getOwnPropertyDescriptor(g,V):null;M&&(M.get||M.set)?Object.defineProperty(p,V,M):p[V]=g[V]}return p.default=g,v&&v.set(g,p),p}function m(){return m=Object.assign?Object.assign.bind():function(g){for(var h=1;h<arguments.length;h++){var v=arguments[h];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(g[p]=v[p])}return g},m.apply(this,arguments)}function y(g,h,v){return h=b(h),h in g?Object.defineProperty(g,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[h]=v,g}function b(g){var h=S(g,"string");return typeof h=="symbol"?h:String(h)}function S(g,h){if(typeof g!="object"||g===null)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var p=v.call(g,h||"default");if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(g)}class P extends e.Component{static getDerivedStateFromProps(h,v){let{position:p}=h,{prevPropsPosition:E}=v;return p&&(!E||p.x!==E.x||p.y!==E.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:p,prevPropsPosition:E}),{x:p.x,y:p.y,prevPropsPosition:{...p}}):null}constructor(h){super(h),y(this,"onDragStart",(v,p)=>{if((0,c.default)("Draggable: onDragStart: %j",p),this.props.onStart(v,(0,s.createDraggableData)(this,p))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(v,p)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",p);const E=(0,s.createDraggableData)(this,p),V={x:E.x,y:E.y,slackX:0,slackY:0};if(this.props.bounds){const{x:W,y:Y}=V;V.x+=this.state.slackX,V.y+=this.state.slackY;const[nt,Ot]=(0,s.getBoundPosition)(this,V.x,V.y);V.x=nt,V.y=Ot,V.slackX=this.state.slackX+(W-V.x),V.slackY=this.state.slackY+(Y-V.y),E.x=V.x,E.y=V.y,E.deltaX=V.x-this.state.x,E.deltaY=V.y-this.state.y}if(this.props.onDrag(v,E)===!1)return!1;this.setState(V)}),y(this,"onDragStop",(v,p)=>{if(!this.state.dragging||this.props.onStop(v,(0,s.createDraggableData)(this,p))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",p);const V={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:W,y:Y}=this.props.position;V.x=W,V.y=Y}this.setState(V)}),this.state={dragging:!1,dragged:!1,x:h.position?h.position.x:h.defaultPosition.x,y:h.position?h.position.y:h.defaultPosition.y,prevPropsPosition:{...h.position},slackX:0,slackY:0,isElementSVG:!1},h.position&&!(h.onDrag||h.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var h,v;return(h=(v=this.props)===null||v===void 0||(v=v.nodeRef)===null||v===void 0?void 0:v.current)!==null&&h!==void 0?h:i.default.findDOMNode(this)}render(){const{axis:h,bounds:v,children:p,defaultPosition:E,defaultClassName:V,defaultClassNameDragging:M,defaultClassNameDragged:W,position:Y,positionOffset:nt,scale:Ot,...qt}=this.props;let ht={},X=null;const st=!!!Y||this.state.dragging,yt=Y||E,oe={x:(0,s.canDragX)(this)&&st?this.state.x:yt.x,y:(0,s.canDragY)(this)&&st?this.state.y:yt.y};this.state.isElementSVG?X=(0,o.createSVGTransform)(oe,nt):ht=(0,o.createCSSTransform)(oe,nt);const T=(0,r.default)(p.props.className||"",V,{[M]:this.state.dragging,[W]:this.state.dragged});return e.createElement(l.default,m({},qt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(p),{className:T,style:{...p.props.style,...ht},transform:X}))}}t.default=P,y(P,"displayName","Draggable"),y(P,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),y(P,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(To);const{default:Yo,DraggableCore:jd}=To;qe.exports=Yo,qe.exports.default=Yo,qe.exports.DraggableCore=jd;var Fd=qe.exports;const Nd=Ci(Fd);function kd(t){const{children:e}=t,[n,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?St.createPortal(e,r):St.createPortal(e,document.body)}const Pi=x.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),se=t=>{const{type:e,index:n,height:i,width:r,draggable:o,sx:s,isOpen:a,onClose:l,children:c}=t,u=!o;return w.jsx(Pi.Provider,{value:{onClose:l},children:w.jsx(kd,{children:w.jsx(oi,{children:a&&w.jsxs("div",{className:mt["modal-wrapper"],children:[w.jsx(Pe.div,{className:mt["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:l,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),w.jsx(Nd,{handle:"#handle",disabled:u,children:w.jsx(Pe.div,{initial:{opacity:0,scale:.95},className:we(mt.modal,mt[e]),style:{height:i,width:r,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:c})})]})})})})},Bd=se,Ud=({children:t})=>w.jsx("div",{className:mt["modal-content"],children:t}),zd=({children:t})=>{const{onClose:e}=x.useContext(Pi);return w.jsxs("header",{id:"handle",className:mt["modal-header"],children:[t,w.jsx("button",{type:"button",className:mt["module-header-close-btn"],onClick:e,children:w.jsx(Kf,{})})]})},Wd=({children:t})=>w.jsx("h2",{className:mt["modal-title"],children:t}),Yd=({children:t})=>w.jsx("div",{className:mt["modal-body"],children:t}),Kd=t=>{const{children:e,closeTitle:n}=t,{onClose:i}=x.useContext(Pi);return w.jsxs("footer",{className:mt["modal-footer"],children:[e,w.jsx("button",{type:"button",className:mt["modal-footer-close-btn"],onClick:i,children:n||"Close"})]})};se.Content=Ud,se.Header=zd,se.Title=Wd,se.Body=Yd,se.Footer=Kd;const Hd=()=>x.useContext(xo);ut.BiznextUIProvider=Yf,ut.Modal=Bd,ut.useConfirmDialog=Hd,ut.useToast=wi,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap";@import"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";.biznext-ui-Voj91bwiOQ0-5{visibility:hidden;position:fixed;z-index:9999999999}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-r8K3Yfg1a0k-a{visibility:visible;top:0;left:0}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-hLBI-yY3XZg-8{visibility:visible;top:0;left:50%;transform:translate(-50%)}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-McMmb-sS6LE-3{visibility:visible;top:0;right:0}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-lX4jcK0Szv4-9{visibility:visible;bottom:0;left:0}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-Ee7khmzQluU-1{visibility:visible;bottom:0;left:50%;transform:translate(-50%)}.biznext-ui-Voj91bwiOQ0-5.biznext-ui-8KE-IEqqaMQ-f{visibility:visible;bottom:0;right:0}.biznext-ui-HNUcjKVTeyM-1{background:#fff;border-radius:4px;border-top:4px solid #cfd7df;padding:10px 16px;box-shadow:0 2px 18px #12344d33;width:400px;margin:16px;display:flex;align-items:flex-start;position:relative;animation:biznext-ui-HDMPjvBSEyg-1 .5s}.biznext-ui--tFdGazkGSA-f{margin-right:16px;margin-top:2px;color:#cfd7df}.biznext-ui--tFdGazkGSA-f>svg{width:16px;height:16px}.biznext-ui-ymhtH9nUp6I-c{font-size:14px;font-weight:600;padding-right:16px;flex-grow:2;font-family:Nunito Sans,sans-serif}.biznext-ui-KpFZjCXKdcg-2{margin:0}.biznext-ui-BzxmwExZEIc-0{display:inline-flex;margin-top:4px}.biznext-ui-2vYXLFQRSLY-d{border-radius:4px;padding:0 2px;font-size:10px;min-width:16px;line-height:1;height:16px;background-color:transparent;border:1px solid transparent;cursor:pointer}.biznext-ui-fnjPMKE33W8-7{display:inline-flex;color:#264966}.biznext-ui-fnjPMKE33W8-7>svg{width:9px;height:9px}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-gWJh5oSUaH4-8{border-top-color:#00795b}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-KprtriQR6do-2{border-top-color:#2c5cc5}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-u0IYuYPu1og-b{border-top-color:#ea7630}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-DMi33WPhK2I-0{border-top-color:#d72d30}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-gWJh5oSUaH4-8>.biznext-ui--tFdGazkGSA-f{color:#00795b}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-KprtriQR6do-2>.biznext-ui--tFdGazkGSA-f{color:#2c5cc5}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-u0IYuYPu1og-b>.biznext-ui--tFdGazkGSA-f{color:#ea7630}.biznext-ui-HNUcjKVTeyM-1.biznext-ui-DMi33WPhK2I-0>.biznext-ui--tFdGazkGSA-f{color:#d72d30}@keyframes biznext-ui-HDMPjvBSEyg-1{0%{top:-100px;opacity:0}to{top:0;opacity:1}}.biznext-ui-4yyscqDACxw-e *{margin:0;padding:0;font-family:Nunito Sans,sans-serif}.biznext-ui-ylpaWxEFaTU-c{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:99999999;display:flex;background-color:#0000001a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#18324799}.biznext-ui-4yyscqDACxw-e{display:grid;width:440px;opacity:1;transform:translateY(0);border-radius:8px;background:#fff;margin:auto;border:1px solid #cfd7df;box-shadow:0 25px 50px -12px #00000040}.biznext-ui-xwshXokj5ZA-c{height:100%}.biznext-ui-K3-i0eWEQi8-2{display:grid;grid-template-columns:80px auto;align-items:center;padding:24px}.biznext-ui-W86o6InrK1E-5{border:1px solid #34495e;border-radius:12px;height:max-content;width:max-content}.biznext-ui-PSIKxZhvjyo-3{border:2px solid #ffffff;background:#ebebeb;height:100%;border-radius:12px;display:flex;align-items:center;justify-content:center;height:42px;width:42px}.biznext-ui-PSIKxZhvjyo-3 svg{color:#34495e;font-size:22px}.biznext-ui-K3-i0eWEQi8-2 h2{font-size:18px;color:#2a2e34}.biznext-ui-K3-i0eWEQi8-2 p{font-weight:400;font-size:13px;color:#4f5762;margin-top:4px}.biznext-ui-ffcW632vEe0-7{display:flex;gap:12px;padding:16px 24px;border-top:1px solid #cfd7df;background:#f7f8f9;border-radius:0 0 8px 8px}.biznext-ui-ffcW632vEe0-7>button{height:40px;padding-inline:15px;border-radius:8px;gap:6px;width:100%;font-weight:500;border-width:1px;border-style:solid;cursor:pointer}.biznext-ui-hDNTUYM-ra0-8{color:#4f5762;background-color:#fff;border-color:#cfd7df}.biznext-ui-hDNTUYM-ra0-8:hover{background:#f0f1f3}.biznext-ui-bFmcSx3W8Rs-6{color:#fff;background:#34495e;border-color:#34495e}.biznext-ui-bFmcSx3W8Rs-6:hover{opacity:.7}.biznext-ui-4yyscqDACxw-e.biznext-ui-wec4qWkj9NU-c .biznext-ui-bFmcSx3W8Rs-6{background:#2c5cc5!important;border-color:#2c5cc5!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-wec4qWkj9NU-c .biznext-ui-W86o6InrK1E-5{border-color:#2c5cc5!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-wec4qWkj9NU-c .biznext-ui-PSIKxZhvjyo-3{background:#d7eafe!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-wec4qWkj9NU-c .biznext-ui-PSIKxZhvjyo-3 svg{color:#2c5cc5}.biznext-ui-4yyscqDACxw-e.biznext-ui-mcehjNn9Nl0-9 .biznext-ui-bFmcSx3W8Rs-6{background:#ea7630!important;border-color:#ea7630!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-mcehjNn9Nl0-9 .biznext-ui-W86o6InrK1E-5{border-color:#ea7630!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-mcehjNn9Nl0-9 .biznext-ui-PSIKxZhvjyo-3{background:#fee2d0!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-mcehjNn9Nl0-9 .biznext-ui-PSIKxZhvjyo-3 svg{color:#ea7630}.biznext-ui-4yyscqDACxw-e.biznext-ui-pYq-UQoFMHM-a .biznext-ui-bFmcSx3W8Rs-6{background:#d33d44!important;border-color:#d33d44!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-pYq-UQoFMHM-a .biznext-ui-W86o6InrK1E-5{border-color:#eeb0b3!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-pYq-UQoFMHM-a .biznext-ui-PSIKxZhvjyo-3{background:#f8e2e4!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-pYq-UQoFMHM-a .biznext-ui-PSIKxZhvjyo-3 svg{color:#b13a41}.biznext-ui-4yyscqDACxw-e.biznext-ui-bgVORylkzc0-6 .biznext-ui-bFmcSx3W8Rs-6{background:#319795!important;border-color:#319795!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-bgVORylkzc0-6 .biznext-ui-W86o6InrK1E-5{border-color:#319795!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-bgVORylkzc0-6 .biznext-ui-PSIKxZhvjyo-3{background:#d0ece7!important}.biznext-ui-4yyscqDACxw-e.biznext-ui-bgVORylkzc0-6 .biznext-ui-PSIKxZhvjyo-3 svg{color:#319795}*{font-family:Poppins,sans-serif}.biznext-ui-n2Vjx4mdikE-9{position:relative}.biznext-ui-6sKjk6L11EQ-e{background-color:#091e427a;width:100%;height:100%;position:fixed;top:0;bottom:0;left:0;right:0}.biznext-ui-Mao59ye15po-3{background:#fff;box-shadow:0 12px 32px #001b471f;position:fixed;border-radius:2px;margin:auto;padding:2px;display:flex}.biznext-ui-Mao59ye15po-3.biznext-ui-5bDq6-PrHF4-e{top:0;bottom:0;left:0;right:right}.biznext-ui-Mao59ye15po-3.biznext-ui-dhv7A0opLyg-7{top:0;bottom:0;left:0;right:auto;border-radius:0;margin:0!important}.biznext-ui-Mao59ye15po-3.biznext-ui-X9XXG3R3kc4-5{top:0;bottom:0;left:auto;right:0}.biznext-ui-Mao59ye15po-3.biznext-ui-EXk9iqQoKIU-1{top:0;bottom:0;left:auto;right:0;border-radius:0;margin:0!important}.biznext-ui-Mao59ye15po-3.biznext-ui-agEjPkJufuY-6{top:0;bottom:auto;left:0;right:auto}.biznext-ui-Mao59ye15po-3.biznext-ui-CzoFpYQH5r0-0{top:0;bottom:auto;left:0;right:0}.biznext-ui-Mao59ye15po-3.biznext-ui-e0SRVasbx2Q-7{top:0;bottom:auto;left:auto;right:0}.biznext-ui-Mao59ye15po-3.biznext-ui-jMdhucf3jH4-8{top:auto;bottom:0;left:0;right:auto}.biznext-ui-Mao59ye15po-3.biznext-ui-1ruLnzU-7Mg-d{top:auto;bottom:0;left:0;right:0}.biznext-ui-Mao59ye15po-3.biznext-ui-IBxY5gMZXAs-2{top:auto;bottom:0;left:auto;right:0}.biznext-ui-Mao59ye15po-3.biznext-ui-g7IKSnXitqg-8{top:0;bottom:0;left:0;right:0;margin:auto!important}.biznext-ui-Mao59ye15po-3.biznext-ui-T4NhvYHqFMo-4{top:0;bottom:0;left:0;right:0;border-radius:0;margin:0!important;height:100vh!important;width:100vw!important}.biznext-ui-1F-uEUK7Izg-d{position:relative;background:#fff;display:flex;flex-direction:column;width:100%;height:100%}.biznext-ui-nWO9WSw4Ix8-9{cursor:move;padding:13px 22px;position:relative;background-color:#f3f5f7;display:flex;justify-content:space-between;border-bottom:1px solid #cfd7df}.biznext-ui-kCEeyonkTlE-9{display:flex;align-items:center;justify-content:center;background-color:#d72d30;border:1px solid #c82124;background-image:linear-gradient(to bottom,#d72d30,#c82124);width:30px;height:28px;border-radius:4px;cursor:pointer}.biznext-ui-kCEeyonkTlE-9>svg{font-size:20px;color:#fff}.biznext-ui-r-WKlIAFS20-a{font-size:18px;font-weight:600;color:#3d4852;margin:0}.biznext-ui-7AJhK9Yn-KQ-e{padding:16px 22px;font-size:14px;position:relative;flex:1 1 auto;overflow-y:auto}.biznext-ui-lUyv0bpMUw4-9{padding:13px 22px;background-color:#f3f5f7;border-top:1px solid #cfd7df;display:flex;justify-content:flex-end}.biznext-ui-acScPNehEic-6{background-color:#f3f5f7;color:#12344d;border:1px solid #cfd7df;background-image:linear-gradient(to bottom,#fff,#f3f5f7);font-size:14px;vertical-align:middle;line-height:1.2;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;outline:0;cursor:pointer;transition:all .2s linear;letter-spacing:.3px;font-weight:500;height:32px;min-width:80px}
|