import{R as Z,r as w,b as Or,j as C,a as ct,F as Wt}from"./index.bd3517ca.js";var ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};const En=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);En&&document.addEventListener("touchstart",()=>{},!0);var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Rf(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r`${e}/${t}`},Cascader:{placeholder:"Selecting"},Dialog:{ok:"OK"},DatePicker:{tillNow:"Till Now"},ErrorBlock:{default:{title:"Oops, something went wrong",description:"Please wait a minute and try again"},busy:{title:"Oops, not loading",description:"Try to refresh the page"},disconnected:{title:"Network is busy",description:"Try to refresh the page"},empty:{title:"Hmm, couldn't find that...",description:"Want to try a new search?"}},Form:{required:"Required",optional:"Optional",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:V,method:V,array:V,object:V,number:V,date:V,boolean:V,integer:V,float:V,regexp:V,email:V,url:V,hex:V},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},ImageUploader:{uploading:"Uploading...",upload:"Upload"},InfiniteScroll:{noMore:"No more",failedToLoad:"Failed to load",retry:"Retry"},Input:{clear:"clear"},Mask:{name:"Mask"},Modal:{ok:"OK"},PasscodeInput:{name:"Passcode Input"},PullToRefresh:{pulling:"Scroll down to refresh",canRelease:"Release to refresh immediately",complete:"Refresh successful"},SearchBar:{name:"Search Bar"},Slider:{name:"Slider"},Stepper:{decrease:"decrease",increase:"increase"},Switch:{name:"Switch"},Selector:{name:"Selector"}},N="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",jr=Rr(Er,{locale:"zh-CH",common:{confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",loading:"\u52A0\u8F7D\u4E2D",close:"\u5173\u95ED"},Calendar:{markItems:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u65E5"],renderYearAndMonth:(e,t)=>`${e}\u5E74${t}\u6708`},Cascader:{placeholder:"\u8BF7\u9009\u62E9"},Dialog:{ok:"\u6211\u77E5\u9053\u4E86"},DatePicker:{tillNow:"\u81F3\u4ECA"},ErrorBlock:{default:{title:"\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",description:"\u5F85\u4F1A\u6765\u8BD5\u8BD5"},busy:{title:"\u524D\u65B9\u62E5\u5835",description:"\u5237\u65B0\u8BD5\u8BD5"},disconnected:{title:"\u7F51\u7EDC\u6709\u70B9\u5FD9",description:"\u52A8\u52A8\u624B\u6307\u5E2E\u5FD9\u4FEE\u590D"},empty:{title:"\u6CA1\u6709\u627E\u5230\u4F60\u9700\u8981\u7684\u4E1C\u897F",description:"\u627E\u627E\u5176\u4ED6\u7684\u5427"}},Form:{required:"\u5FC5\u586B",optional:"\u9009\u586B",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:N,method:N,array:N,object:N,number:N,date:N,boolean:N,integer:N,float:N,regexp:N,email:N,url:N,hex:N},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},ImageUploader:{uploading:"\u4E0A\u4F20\u4E2D...",upload:"\u4E0A\u4F20"},InfiniteScroll:{noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",failedToLoad:"\u52A0\u8F7D\u5931\u8D25",retry:"\u91CD\u65B0\u52A0\u8F7D"},Input:{clear:"\u6E05\u9664"},Mask:{name:"\u80CC\u666F\u8499\u5C42"},Modal:{ok:"\u6211\u77E5\u9053\u4E86"},PasscodeInput:{name:"\u5BC6\u7801\u8F93\u5165\u6846"},PullToRefresh:{pulling:"\u4E0B\u62C9\u5237\u65B0",canRelease:"\u91CA\u653E\u7ACB\u5373\u5237\u65B0",complete:"\u5237\u65B0\u6210\u529F"},SearchBar:{name:"\u641C\u7D22\u6846"},Slider:{name:"\u6ED1\u52A8\u8F93\u5165\u6761"},Stepper:{decrease:"\u51CF\u5C11",increase:"\u589E\u52A0"},Switch:{name:"\u5F00\u5173"},Selector:{name:"\u9009\u62E9\u7EC4"}});var Cr=jr;const kr={current:{locale:Cr}};function Mr(){return kr.current}const Fr=Z.createContext(null);function Ef(){var e;return(e=w.exports.useContext(Fr))!==null&&e!==void 0?e:Mr()}function jf(e,t){const n=e;for(const r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}var jn={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i0){if(++t>=cs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ps=hs,ms=fs,gs=ps,vs=gs(ms),ys=vs,bs=Ln,_s=rs,ws=ys;function xs(e,t){return ws(_s(e,t,bs),e+"")}var $s=xs,Ts=9007199254740991;function Ss(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ts}var Un=Ss,Is=Fn,Os=Un;function As(e){return e!=null&&Os(e.length)&&!Is(e)}var qn=As,Ps=9007199254740991,Rs=/^(?:0|[1-9]\d*)$/;function Es(e,t){var n=typeof e;return t=t==null?Ps:t,!!t&&(n=="number"||n!="symbol"&&Rs.test(e))&&e>-1&&e%1==0&&e1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&Ds(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r0}});return}function e(a){try{return a.defaultView&&a.defaultView.frameElement||null}catch{return null}}var t=function(a){for(var u=a,l=e(u);l;)u=l.ownerDocument,l=e(u);return u}(window.document),n=[],r=null,i=null;function s(a){this.time=a.time,this.target=a.target,this.rootBounds=y(a.rootBounds),this.boundingClientRect=y(a.boundingClientRect),this.intersectionRect=y(a.intersectionRect||x()),this.isIntersecting=!!a.intersectionRect;var u=this.boundingClientRect,l=u.width*u.height,v=this.intersectionRect,_=v.width*v.height;l?this.intersectionRatio=Number((_/l).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(a,u){var l=u||{};if(typeof a!="function")throw new Error("callback must be a function");if(l.root&&l.root.nodeType!=1&&l.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=d(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=a,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(l.rootMargin),this.thresholds=this._initThresholds(l.threshold),this.root=l.root||null,this.rootMargin=this._rootMarginValues.map(function(v){return v.value+v.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(a,u){!a||!u?i=x():i=b(a,u),n.forEach(function(l){l._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(a){var u=this._observationTargets.some(function(l){return l.element==a});if(!u){if(!(a&&a.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:a,entry:null}),this._monitorIntersections(a.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(a){this._observationTargets=this._observationTargets.filter(function(u){return u.element!=a}),this._unmonitorIntersections(a.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var a=this._queuedEntries.slice();return this._queuedEntries=[],a},o.prototype._initThresholds=function(a){var u=a||[0];return Array.isArray(u)||(u=[u]),u.sort().filter(function(l,v,_){if(typeof l!="number"||isNaN(l)||l<0||l>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return l!==_[v-1]})},o.prototype._parseRootMargin=function(a){var u=a||"0px",l=u.split(/\s+/).map(function(v){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(v);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return l[1]=l[1]||l[0],l[2]=l[2]||l[0],l[3]=l[3]||l[1],l},o.prototype._monitorIntersections=function(a){var u=a.defaultView;if(!!u&&this._monitoringDocuments.indexOf(a)==-1){var l=this._checkForIntersections,v=null,_=null;this.POLL_INTERVAL?v=u.setInterval(l,this.POLL_INTERVAL):(f(u,"resize",l,!0),f(a,"scroll",l,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in u&&(_=new u.MutationObserver(l),_.observe(a,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(a),this._monitoringUnsubscribes.push(function(){var A=a.defaultView;A&&(v&&A.clearInterval(v),p(A,"resize",l,!0)),p(a,"scroll",l,!0),_&&_.disconnect()});var P=this.root&&(this.root.ownerDocument||this.root)||t;if(a!=P){var R=e(a);R&&this._monitorIntersections(R.ownerDocument)}}},o.prototype._unmonitorIntersections=function(a){var u=this._monitoringDocuments.indexOf(a);if(u!=-1){var l=this.root&&(this.root.ownerDocument||this.root)||t,v=this._observationTargets.some(function(R){var A=R.element.ownerDocument;if(A==a)return!0;for(;A&&A!=l;){var k=e(A);if(A=k&&k.ownerDocument,A==a)return!0}return!1});if(!v){var _=this._monitoringUnsubscribes[u];if(this._monitoringDocuments.splice(u,1),this._monitoringUnsubscribes.splice(u,1),_(),a!=l){var P=e(a);P&&this._unmonitorIntersections(P.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var a=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var u=0;u=0&&A>=0&&{top:l,bottom:v,left:_,right:P,width:R,height:A}||null}function m(a){var u;try{u=a.getBoundingClientRect()}catch{}return u?(u.width&&u.height||(u={top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.right-u.left,height:u.bottom-u.top}),u):x()}function x(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(a){return!a||"x"in a?a:{top:a.top,y:a.top,bottom:a.bottom,left:a.left,x:a.left,right:a.right,width:a.width,height:a.height}}function b(a,u){var l=u.top-a.top,v=u.left-a.left;return{top:l,left:v,height:u.height,width:u.width,bottom:l+u.height,right:v+u.width}}function $(a,u){for(var l=u;l;){if(l==a)return!0;l=T(l)}return!1}function T(a){var u=a.parentNode;return a.nodeType==9&&a!=t?e(a):(u&&u.assignedSlot&&(u=u.assignedSlot.parentNode),u&&u.nodeType==11&&u.host?u.host:u)}function I(a){return a&&a.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=s})();function ja(e,t){var n=Gt(w.exports.useState(),2),r=n[0],i=n[1],s=Gt(w.exports.useState(),2),o=s[0],c=s[1];return Ea(function(){var d=ht(e);if(!!d){var f=new IntersectionObserver(function(p){var g,m;try{for(var x=Pr(p),y=x.next();!y.done;y=x.next()){var b=y.value;c(b.intersectionRatio),i(b.isIntersecting)}}catch($){g={error:$}}finally{try{y&&!y.done&&(m=x.return)&&m.call(x)}finally{if(g)throw g.error}}},Ne(Ne({},t),{root:ht(t==null?void 0:t.root)}));return f.observe(d),function(){f.disconnect()}}},[t==null?void 0:t.rootMargin,t==null?void 0:t.threshold],e),[r,o]}var Ca=Wn?w.exports.useLayoutEffect:w.exports.useEffect,ka=Ca;let Pt=Ee();const S=e=>Re(e,Pt);let Rt=Ee();S.write=e=>Re(e,Rt);let Ke=Ee();S.onStart=e=>Re(e,Ke);let Et=Ee();S.onFrame=e=>Re(e,Et);let jt=Ee();S.onFinish=e=>Re(e,jt);let ue=[];S.setTimeout=(e,t)=>{let n=S.now()+t,r=()=>{let s=ue.findIndex(o=>o.cancel==r);~s&&ue.splice(s,1),Y-=~s?1:0},i={time:n,handler:e,cancel:r};return ue.splice(Gn(n),0,i),Y+=1,Hn(),i};let Gn=e=>~(~ue.findIndex(t=>t.time>e)||~ue.length);S.cancel=e=>{Ke.delete(e),Et.delete(e),jt.delete(e),Pt.delete(e),Rt.delete(e)};S.sync=e=>{pt=!0,S.batchedUpdates(e),pt=!1};S.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,S.onStart(n)}return r.handler=e,r.cancel=()=>{Ke.delete(n),t=null},r};let Ct=typeof window!="undefined"?window.requestAnimationFrame:()=>{};S.use=e=>Ct=e;S.now=typeof performance!="undefined"?()=>performance.now():Date.now;S.batchedUpdates=e=>e();S.catch=console.error;S.frameLoop="always";S.advance=()=>{S.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Zn()};let X=-1,Y=0,pt=!1;function Re(e,t){pt?(t.delete(e),e(0)):(t.add(e),Hn())}function Hn(){X<0&&(X=0,S.frameLoop!=="demand"&&Ct(Kn))}function Ma(){X=-1}function Kn(){~X&&(Ct(Kn),S.batchedUpdates(Zn))}function Zn(){let e=X;X=S.now();let t=Gn(X);if(t&&(Jn(ue.splice(0,t),n=>n.handler()),Y-=t),!Y){Ma();return}Ke.flush(),Pt.flush(e?Math.min(64,X-e):16.667),Et.flush(),Rt.flush(),jt.flush()}function Ee(){let e=new Set,t=e;return{add(n){Y+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Y-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Y-=t.size,Jn(t,r=>r(n)&&e.add(r)),Y+=e.size,t=e)}}}function Jn(e,t){e.forEach(n=>{try{t(n)}catch(r){S.catch(r)}})}function mt(){}const Fa=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),h={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function K(e,t){if(h.arr(e)){if(!h.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function W(e,t,n){if(h.arr(e)){for(let r=0;rh.und(e)?[]:h.arr(e)?e:[e];function be(e,t){if(e.size){const n=Array.from(e);e.clear(),O(n,t)}}const ye=(e,...t)=>be(e,n=>n(...t)),kt=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Mt,Xn,ee=null,Yn=!1,Ft=mt;const Va=e=>{e.to&&(Xn=e.to),e.now&&(S.now=e.now),e.colors!==void 0&&(ee=e.colors),e.skipAnimation!=null&&(Yn=e.skipAnimation),e.createStringInterpolator&&(Mt=e.createStringInterpolator),e.requestAnimationFrame&&S.use(e.requestAnimationFrame),e.batchedUpdates&&(S.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ft=e.willAdvance),e.frameLoop&&(S.frameLoop=e.frameLoop)};var G=Object.freeze({__proto__:null,get createStringInterpolator(){return Mt},get to(){return Xn},get colors(){return ee},get skipAnimation(){return Yn},get willAdvance(){return Ft},assign:Va});const _e=new Set;let q=[],it=[],De=0;const Ze={get idle(){return!_e.size&&!q.length},start(e){De>e.priority?(_e.add(e),S.onStart(Na)):(er(e),S(gt))},advance:gt,sort(e){if(De)S.onFrame(()=>Ze.sort(e));else{const t=q.indexOf(e);~t&&(q.splice(t,1),tr(e))}},clear(){q=[],_e.clear()}};function Na(){_e.forEach(er),_e.clear(),S(gt)}function er(e){q.includes(e)||tr(e)}function tr(e){q.splice(Da(q,t=>t.priority>e.priority),0,e)}function gt(e){const t=it;for(let n=0;n0}function Da(e,t){const n=e.findIndex(t);return n<0?e.length:n}const La=(e,t,n)=>Math.min(Math.max(n,e),t),Ua={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},z="[-+]?\\d*\\.?\\d+",Le=z+"%";function Je(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const qa=new RegExp("rgb"+Je(z,z,z)),Ba=new RegExp("rgba"+Je(z,z,z,z)),za=new RegExp("hsl"+Je(z,Le,Le)),Qa=new RegExp("hsla"+Je(z,Le,Le,z)),Wa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ga=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ha=/^#([0-9a-fA-F]{6})$/,Ka=/^#([0-9a-fA-F]{8})$/;function Za(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ha.exec(e))?parseInt(t[1]+"ff",16)>>>0:ee&&ee[e]!==void 0?ee[e]:(t=qa.exec(e))?(oe(t[1])<<24|oe(t[2])<<16|oe(t[3])<<8|255)>>>0:(t=Ba.exec(e))?(oe(t[1])<<24|oe(t[2])<<16|oe(t[3])<<8|un(t[4]))>>>0:(t=Wa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ka.exec(e))?parseInt(t[1],16)>>>0:(t=Ga.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=za.exec(e))?(on(an(t[1]),je(t[2]),je(t[3]))|255)>>>0:(t=Qa.exec(e))?(on(an(t[1]),je(t[2]),je(t[3]))|un(t[4]))>>>0:null}function st(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function on(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=st(i,r,e+1/3),o=st(i,r,e),c=st(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(c*255)<<8}function oe(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function an(e){return(parseFloat(e)%360+360)%360/360}function un(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function je(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fn(e){let t=Za(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}const $e=(e,t,n)=>{if(h.fun(e))return e;if(h.arr(e))return $e({range:e,output:t,extrapolate:n});if(h.str(e.output[0]))return Mt(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=Xa(f,s);return Ja(f,s[p],s[p+1],i[p],i[p+1],d,o,c,r.map)}};function Ja(e,t,n,r,i,s,o,c,d){let f=d?d(e):e;if(fn){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=s(f),r===-1/0?f=-f:i===1/0?f=f+r:f=f*(i-r)+r,f)}function Xa(e,t){for(var n=1;n=e);++n);return n-1}const Ya=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return La(0,1,i/e)},Ue=1.70158,Ce=Ue*1.525,cn=Ue+1,ln=2*Math.PI/3,dn=2*Math.PI/4.5,ke=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eu={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>cn*e*e*e-Ue*e*e,easeOutBack:e=>1+cn*Math.pow(e-1,3)+Ue*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Ce+1)*2*e-Ce)/2:(Math.pow(2*e-2,2)*((Ce+1)*(e*2-2)+Ce)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ln),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ln)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*dn))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*dn)/2+1,easeInBounce:e=>1-ke(1-e),easeOutBounce:ke,easeInOutBounce:e=>e<.5?(1-ke(1-2*e))/2:(1+ke(2*e-1))/2,steps:Ya};function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;tBoolean(e&&e[ce]),F=e=>e&&e[ce]?e[ce]():e,hn=e=>e[re]||null;function tu(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Te(e,t){let n=e[re];n&&n.forEach(r=>{tu(r,t)})}class nr{constructor(t){if(this[ce]=void 0,this[re]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");nu(this,t)}}const nu=(e,t)=>rr(e,ce,t);function de(e,t){if(e[ce]){let n=e[re];n||rr(e,re,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Se(e,t){let n=e[re];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[re]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const rr=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ru=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,pn=new RegExp(`(${Fe.source})(%|[a-z]+)`,"i"),iu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xe=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ir=e=>{const[t,n]=su(e);if(!t||kt())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Xe.test(n))return ir(n);if(n)return n}return e},su=e=>{const t=Xe.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let ot;const ou=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,sr=e=>{ot||(ot=ee?new RegExp(`(${Object.keys(ee).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>F(s).replace(Xe,ir).replace(ru,fn).replace(ot,fn)),n=t.map(s=>s.match(Fe).map(Number)),i=n[0].map((s,o)=>n.map(c=>{if(!(o in c))throw Error('The arity of each "output" value must be equal');return c[o]})).map(s=>$e(vt({},e,{output:s})));return s=>{var o;const c=!pn.test(t[0])&&((o=t.find(f=>pn.test(f)))==null?void 0:o.replace(Fe,""));let d=0;return t[0].replace(Fe,()=>`${i[d++](s)}${c||""}`).replace(iu,ou)}},Vt="react-spring: ",or=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Vt}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},au=or(console.warn);function uu(){au(`${Vt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const fu=or(console.warn);function cu(){fu(`${Vt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ye(e){return h.str(e)&&(e[0]=="#"||/\d/.test(e)||!kt()&&Xe.test(e)||e in(ee||{}))}const Nt=kt()?w.exports.useEffect:w.exports.useLayoutEffect,lu=()=>{const e=w.exports.useRef(!1);return Nt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ar(){const e=w.exports.useState()[1],t=lu();return()=>{t.current&&e(Math.random())}}function du(e,t){const[n]=w.exports.useState(()=>({inputs:t,result:e()})),r=w.exports.useRef(),i=r.current;let s=i;return s?Boolean(t&&s.inputs&&hu(t,s.inputs))||(s={inputs:t,result:e()}):s=n,w.exports.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function hu(e,t){if(e.length!==t.length)return!1;for(let n=0;nw.exports.useEffect(e,pu),pu=[];function mn(e){const t=w.exports.useRef();return w.exports.useEffect(()=>{t.current=e}),t.current}const Ie=Symbol.for("Animated:node"),mu=e=>!!e&&e[Ie]===e,Q=e=>e&&e[Ie],Dt=(e,t)=>Fa(e,Ie,t),et=e=>e&&e[Ie]&&e[Ie].getPayload();class fr{constructor(){this.payload=void 0,Dt(this,this)}getPayload(){return this.payload||[]}}class he extends fr{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,h.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new he(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return h.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,h.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class le extends he{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=$e({output:[t,t]})}static create(t){return new le(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(h.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=$e({output:[this.getValue(),t]})),this._value=0,super.reset()}}const qe={dependencies:null};class tt extends fr{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return W(this.source,(r,i)=>{mu(r)?n[i]=r.getValue(t):U(r)?n[i]=F(r):t||(n[i]=r)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&O(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return W(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){qe.dependencies&&U(t)&&qe.dependencies.add(t);const n=et(t);n&&O(n,r=>this.add(r))}}class Lt extends tt{constructor(t){super(t)}static create(t){return new Lt(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(gu)),!0)}}function gu(e){return(Ye(e)?le:he).create(e)}function yt(e){const t=Q(e);return t?t.constructor:h.arr(e)?Lt:Ye(e)?le:he}function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const n=!h.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.exports.forwardRef((r,i)=>{const s=w.exports.useRef(null),o=n&&w.exports.useCallback(y=>{s.current=bu(i,y)},[i]),[c,d]=yu(r,t),f=ar(),p=()=>{const y=s.current;if(n&&!y)return;(y?t.applyAnimatedValues(y,c.getValue(!0)):!1)===!1&&f()},g=new vu(p,d),m=w.exports.useRef();Nt(()=>(m.current=g,O(d,y=>de(y,g)),()=>{m.current&&(O(m.current.deps,y=>Se(y,m.current)),S.cancel(m.current.update))})),w.exports.useEffect(p,[]),ur(()=>()=>{const y=m.current;O(y.deps,b=>Se(b,y))});const x=t.getComponentProps(c.getValue());return w.exports.createElement(e,Be({},x,{ref:o}))})};class vu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&S.write(this.update)}}function yu(e,t){const n=new Set;return qe.dependencies=n,e.style&&(e=Be({},e,{style:t.createAnimatedStyle(e.style)})),e=new tt(e),qe.dependencies=null,[e,n]}function bu(e,t){return e&&(h.fun(e)?e(t):e.current=t),t}const vn=Symbol.for("AnimatedComponent"),_u=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new tt(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const c=yn(o)||"Anonymous";return h.str(o)?o=s[o]||(s[o]=gn(o,i)):o=o[vn]||(o[vn]=gn(o,i)),o.displayName=`Animated(${c})`,o};return W(e,(o,c)=>{h.arr(e)&&(c=yn(o)),s[c]=s(o)}),{animated:s}},yn=e=>h.str(e)?e:e&&h.str(e.displayName)?e.displayName:h.fun(e)&&e.name||null;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;te===!0||!!(t&&e&&(h.fun(e)?e(t):D(e).includes(t))),cr=(e,t)=>h.obj(e)?t&&e[t]:e,lr=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,wu=e=>e,Ut=(e,t=wu)=>{let n=xu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);h.und(s)||(r[i]=s)}return r},xu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],$u={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Tu(e){const t={};let n=0;if(W(e,(r,i)=>{$u[i]||(t[i]=r,n++)}),n)return t}function dr(e){const t=Tu(e);if(t){const n={to:t};return W(e,(r,i)=>i in t||(n[i]=r)),n}return M({},e)}function Oe(e){return e=F(e),h.arr(e)?e.map(Oe):Ye(e)?G.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Su(e){for(const t in e)return!0;return!1}function bt(e){return h.fun(e)||h.arr(e)&&h.obj(e[0])}function Iu(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Ou(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const Au={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},_t=M({},Au.default,{mass:1,damping:1,easing:eu.linear,clamp:!1});class Pu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,_t)}}function Ru(e,t,n){n&&(n=M({},n),bn(n,t),t=M({},n,t)),bn(e,t),Object.assign(e,t);for(const o in _t)e[o]==null&&(e[o]=_t[o]);let{mass:r,frequency:i,damping:s}=e;return h.und(i)||(i<.01&&(i=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*s*r/i),e}function bn(e,t){if(!h.und(t.decay))e.duration=void 0;else{const n=!h.und(t.tension)||!h.und(t.friction);(n||!h.und(t.frequency)||!h.und(t.damping)||!h.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const _n=[];class Eu{constructor(){this.changed=!1,this.values=_n,this.toValues=null,this.fromValues=_n,this.to=void 0,this.from=void 0,this.config=new Pu,this.immediate=!1}}function hr(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,c)=>{var d;let f,p,g=we((d=n.cancel)!=null?d:r==null?void 0:r.cancel,t);if(g)y();else{h.und(n.pause)||(i.paused=we(n.pause,t));let b=r==null?void 0:r.pause;b!==!0&&(b=i.paused||we(b,t)),f=ne(n.delay||0,t),b?(i.resumeQueue.add(x),s.pause()):(s.resume(),x())}function m(){i.resumeQueue.add(x),i.timeouts.delete(p),p.cancel(),f=p.time-S.now()}function x(){f>0&&!G.skipAnimation?(i.delayed=!0,p=S.setTimeout(y,f),i.pauseQueue.add(m),i.timeouts.add(p)):y()}function y(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(m),i.timeouts.delete(p),e<=(i.cancelId||0)&&(g=!0);try{s.start(M({},n,{callId:e,cancel:g}),o)}catch(b){c(b)}}})}const qt=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?fe(e.get()):t.every(n=>n.noop)?pr(e.get()):B(e.get(),t.every(n=>n.finished)),pr=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),B=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),fe=e=>({value:e,cancelled:!0,finished:!1});function mr(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:c,promise:d}=n;return!s&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const f=Ut(t,($,T)=>T==="onRest"?void 0:$);let p,g;const m=new Promise(($,T)=>(p=$,g=T)),x=$=>{const T=i<=(n.cancelId||0)&&fe(r)||i!==n.asyncId&&B(r,!1);if(T)throw $.result=T,g($),$},y=($,T)=>{const I=new wn,a=new xn;return(async()=>{if(G.skipAnimation)throw Ae(n),a.result=B(r,!1),g(a),a;x(I);const u=h.obj($)?M({},$):M({},T,{to:$});u.parentId=i,W(f,(v,_)=>{h.und(u[_])&&(u[_]=v)});const l=await r.start(u);return x(I),n.paused&&await new Promise(v=>{n.resumeQueue.add(v)}),l})()};let b;if(G.skipAnimation)return Ae(n),B(r,!1);try{let $;h.arr(e)?$=(async T=>{for(const I of T)await y(I)})(e):$=Promise.resolve(e(y,r.stop.bind(r))),await Promise.all([$.then(p),m]),b=B(r.get(),!0,!1)}catch($){if($ instanceof wn)b=$.result;else if($ instanceof xn)b=$.result;else throw $}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?d:void 0)}return h.fun(o)&&S.batchedUpdates(()=>{o(b,r,r.item)}),b})()}function Ae(e,t){be(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class wn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class xn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const wt=e=>e instanceof Bt;let ju=1;class Bt extends nr{constructor(...t){super(...t),this.id=ju++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Q(this);return t&&t.getValue()}to(...t){return G.to(this,t)}interpolate(...t){return uu(),G.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Te(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||Ze.sort(this),Te(this,{type:"priority",parent:this,priority:t})}}const ie=Symbol.for("SpringPhase"),gr=1,xt=2,$t=4,at=e=>(e[ie]&gr)>0,J=e=>(e[ie]&xt)>0,me=e=>(e[ie]&$t)>0,$n=(e,t)=>t?e[ie]|=xt|gr:e[ie]&=~xt,Tn=(e,t)=>t?e[ie]|=$t:e[ie]&=~$t;class Cu extends Bt{constructor(t,n){if(super(),this.key=void 0,this.animation=new Eu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!h.und(t)||!h.und(n)){const r=h.obj(t)?M({},t):M({},n,{from:t});h.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(J(this)||this._state.asyncTo)||me(this)}get goal(){return F(this.animation.to)}get velocity(){const t=Q(this);return t instanceof he?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return at(this)}get isAnimating(){return J(this)}get isPaused(){return me(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,r=!1;const i=this.animation;let{config:s,toValues:o}=i;const c=et(i.to);!c&&U(i.to)&&(o=D(F(i.to))),i.values.forEach((p,g)=>{if(p.done)return;const m=p.constructor==le?1:c?c[g].lastPosition:o[g];let x=i.immediate,y=m;if(!x){if(y=p.lastPosition,s.tension<=0){p.done=!0;return}let b=p.elapsedTime+=t;const $=i.fromValues[g],T=p.v0!=null?p.v0:p.v0=h.arr(s.velocity)?s.velocity[g]:s.velocity;let I;const a=s.precision||($==m?.005:Math.min(1,Math.abs(m-$)*.001));if(h.und(s.duration))if(s.decay){const u=s.decay===!0?.998:s.decay,l=Math.exp(-(1-u)*b);y=$+T/(1-u)*(1-l),x=Math.abs(p.lastPosition-y)<=a,I=T*l}else{I=p.lastVelocity==null?T:p.lastVelocity;const u=s.restVelocity||a/10,l=s.clamp?0:s.bounce,v=!h.und(l),_=$==m?p.v0>0:$u,!(!P&&(x=Math.abs(m-y)<=a,x)));++j){v&&(R=y==m||y>m==_,R&&(I=-I*l,y=m));const H=-s.tension*1e-6*(y-m),se=-s.friction*.001*I,Ir=(H+se)/s.mass;I=I+Ir*A,y=y+I*A}}else{let u=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,p.durationProgress>0&&(p.elapsedTime=s.duration*p.durationProgress,b=p.elapsedTime+=t)),u=(s.progress||0)+b/this._memoizedDuration,u=u>1?1:u<0?0:u,p.durationProgress=u),y=$+s.easing(u)*(m-$),I=(y-p.lastPosition)/t,x=u==1}p.lastVelocity=I,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),x=!0)}c&&!c[g].done&&(x=!1),x?p.done=!0:n=!1,p.setValue(y,s.round)&&(r=!0)});const d=Q(this),f=d.getValue();if(n){const p=F(i.to);(f!==p||r)&&!s.decay?(d.setValue(p),this._onChange(p)):r&&s.decay&&this._onChange(f),this._stop()}else r&&this._onChange(f)}set(t){return S.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(J(this)){const{to:t,config:n}=this.animation;S.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let r;return h.und(t)?(r=this.queue||[],this.queue=[]):r=[h.obj(t)?t:M({},n,{to:t})],Promise.all(r.map(i=>this._update(i))).then(i=>qt(this,i))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),Ae(this._state,t&&this._lastCallId),S.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:r,from:i}=t;r=h.obj(r)?r[n]:r,(r==null||bt(r))&&(r=void 0),i=h.obj(i)?i[n]:i,i==null&&(i=void 0);const s={to:r,from:i};return at(this)||(t.reverse&&([r,i]=[i,r]),i=F(i),h.und(i)?Q(this)||this._set(r):this._set(i)),s}_update(t,n){let r=M({},t);const{key:i,defaultProps:s}=this;r.default&&Object.assign(s,Ut(r,(d,f)=>/^on/.test(f)?cr(d,i):d)),In(this,r,"onProps"),ve(this,"onProps",r,this);const o=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const c=this._state;return hr(++this._lastCallId,{key:i,props:r,defaultProps:s,state:c,actions:{pause:()=>{me(this)||(Tn(this,!0),ye(c.pauseQueue),ve(this,"onPause",B(this,ge(this,this.animation.to)),this))},resume:()=>{me(this)&&(Tn(this,!1),J(this)&&this._resume(),ye(c.resumeQueue),ve(this,"onResume",B(this,ge(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(d=>{if(r.loop&&d.finished&&!(n&&d.noop)){const f=vr(r);if(f)return this._update(f,!0)}return d})}_merge(t,n,r){if(n.cancel)return this.stop(!0),r(fe(this));const i=!h.und(t.to),s=!h.und(t.from);if(i||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(fe(this));const{key:o,defaultProps:c,animation:d}=this,{to:f,from:p}=d;let{to:g=f,from:m=p}=t;s&&!i&&(!n.default||h.und(g))&&(g=m),n.reverse&&([g,m]=[m,g]);const x=!K(m,p);x&&(d.from=m),m=F(m);const y=!K(g,f);y&&this._focus(g);const b=bt(n.to),{config:$}=d,{decay:T,velocity:I}=$;(i||s)&&($.velocity=0),n.config&&!b&&Ru($,ne(n.config,o),n.config!==c.config?ne(c.config,o):void 0);let a=Q(this);if(!a||h.und(g))return r(B(this,!0));const u=h.und(n.reset)?s&&!n.default:!h.und(m)&&we(n.reset,o),l=u?m:this.get(),v=Oe(g),_=h.num(v)||h.arr(v)||Ye(v),P=!b&&(!_||we(c.immediate||n.immediate,o));if(y){const j=yt(g);if(j!==a.constructor)if(P)a=this._set(v);else throw Error(`Cannot animate between ${a.constructor.name} and ${j.name}, as the "to" prop suggests`)}const R=a.constructor;let A=U(g),k=!1;if(!A){const j=u||!at(this)&&x;(y||j)&&(k=K(Oe(l),v),A=!k),(!K(d.immediate,P)&&!P||!K($.decay,T)||!K($.velocity,I))&&(A=!0)}if(k&&J(this)&&(d.changed&&!u?A=!0:A||this._stop(f)),!b&&((A||U(f))&&(d.values=a.getPayload(),d.toValues=U(g)?null:R==le?[1]:D(v)),d.immediate!=P&&(d.immediate=P,!P&&!u&&this._set(f)),A)){const{onRest:j}=d;O(Mu,se=>In(this,n,se));const H=B(this,ge(this,f));ye(this._pendingCalls,H),this._pendingCalls.add(r),d.changed&&S.batchedUpdates(()=>{d.changed=!u,j==null||j(H,this),u?ne(c.onRest,H):d.onStart==null||d.onStart(H,this)})}u&&this._set(l),b?r(mr(n.to,n,this._state,this)):A?this._start():J(this)&&!y?this._pendingCalls.add(r):r(pr(l))}_focus(t){const n=this.animation;t!==n.to&&(hn(this)&&this._detach(),n.to=t,hn(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;U(n)&&(de(n,this),wt(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;U(t)&&Se(t,this)}_set(t,n=!0){const r=F(t);if(!h.und(r)){const i=Q(this);if(!i||!K(r,i.getValue())){const s=yt(r);!i||i.constructor!=s?Dt(this,s.create(r)):i.setValue(r),i&&S.batchedUpdates(()=>{this._onChange(r,n)})}}return Q(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,ve(this,"onStart",B(this,ge(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),ne(this.animation.onChange,t,this)),ne(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Q(this).reset(F(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),J(this)||($n(this,!0),me(this)||this._resume())}_resume(){G.skipAnimation?this.finish():Ze.start(this)}_stop(t,n){if(J(this)){$n(this,!1);const r=this.animation;O(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Te(this,{type:"idle",parent:this});const i=n?fe(this.get()):B(this.get(),ge(this,t!=null?t:r.to));ye(this._pendingCalls,i),r.changed&&(r.changed=!1,ve(this,"onRest",i,this))}}}function ge(e,t){const n=Oe(t),r=Oe(e.get());return K(r,n)}function vr(e,t=e.loop,n=e.to){let r=ne(t);if(r){const i=r!==!0&&dr(r),s=(i||e).reverse,o=!i||i.reset;return Pe(M({},e,{loop:t,default:!1,pause:void 0,to:!s||bt(n)?n:void 0,from:o?e.from:void 0,reset:o},i))}}function Pe(e){const{to:t,from:n}=e=dr(e),r=new Set;return h.obj(t)&&Sn(t,r),h.obj(n)&&Sn(n,r),e.keys=r.size?Array.from(r):null,e}function ku(e){const t=Pe(e);return h.und(t.default)&&(t.default=Ut(t)),t}function Sn(e,t){W(e,(n,r)=>n!=null&&t.add(r))}const Mu=["onStart","onRest","onChange","onPause","onResume"];function In(e,t,n){e.animation[n]=t[n]!==lr(t,n)?cr(t[n],e.key):void 0}function ve(e,t,...n){var r,i,s,o;(r=(i=e.animation)[t])==null||r.call(i,...n),(s=(o=e.defaultProps)[t])==null||s.call(o,...n)}const Fu=["onStart","onChange","onRest"];let Vu=1;class Nu{constructor(t,n){this.id=Vu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(M({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,r)=>t[r]=n.get()),t}set(t){for(const n in t){const r=t[n];h.und(r)||this.springs[n].set(r)}}update(t){return t&&this.queue.push(Pe(t)),this}start(t){let{queue:n}=this;return t?n=D(t).map(Pe):this.queue=[],this._flush?this._flush(this,n):(xr(this,n),Tt(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const r=this.springs;O(D(n),i=>r[i].stop(!!t))}else Ae(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(h.und(t))this.start({pause:!0});else{const n=this.springs;O(D(t),r=>n[r].pause())}return this}resume(t){if(h.und(t))this.start({pause:!1});else{const n=this.springs;O(D(t),r=>n[r].resume())}return this}each(t){W(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:r}=this._events,i=this._active.size>0,s=this._changed.size>0;(i&&!this._started||s&&!this._started)&&(this._started=!0,be(t,([d,f])=>{f.value=this.get(),d(f,this,this._item)}));const o=!i&&this._started,c=s||o&&r.size?this.get():null;s&&n.size&&be(n,([d,f])=>{f.value=c,d(f,this,this._item)}),o&&(this._started=!1,be(r,([d,f])=>{f.value=c,d(f,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;S.onFrame(this._onFrame)}}function Tt(e,t){return Promise.all(t.map(n=>yr(e,n))).then(n=>qt(e,n))}async function yr(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:c,onResolve:d}=t,f=h.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const p=h.arr(i)||h.fun(i)?i:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):O(Fu,b=>{const $=t[b];if(h.fun($)){const T=e._events[b];t[b]=({finished:I,cancelled:a})=>{const u=T.get($);u?(I||(u.finished=!1),a&&(u.cancelled=!0)):T.set($,{value:null,finished:I||!1,cancelled:a||!1})},f&&(f[b]=t[b])}});const g=e._state;t.pause===!g.paused?(g.paused=t.pause,ye(t.pause?g.pauseQueue:g.resumeQueue)):g.paused&&(t.pause=!0);const m=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),x=t.cancel===!0||lr(t,"cancel")===!0;(p||x&&g.asyncId)&&m.push(hr(++e._lastAsyncId,{props:t,state:g,actions:{pause:mt,resume:mt,start(b,$){x?(Ae(g,e._lastAsyncId),$(fe(e))):(b.onRest=c,$(mr(p,b,g,e)))}}})),g.paused&&await new Promise(b=>{g.resumeQueue.add(b)});const y=qt(e,await Promise.all(m));if(o&&y.finished&&!(n&&y.noop)){const b=vr(t,o,i);if(b)return xr(e,[b]),yr(e,b,!0)}return d&&S.batchedUpdates(()=>d(y,e,e.item)),y}function On(e,t){const n=M({},e.springs);return t&&O(D(t),r=>{h.und(r.keys)&&(r=Pe(r)),h.obj(r.to)||(r=M({},r,{to:void 0})),wr(n,r,i=>_r(i))}),br(e,n),n}function br(e,t){W(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,de(n,e))})}function _r(e,t){const n=new Cu;return n.key=e,t&&de(n,t),n}function wr(e,t,n){t.keys&&O(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function xr(e,t){O(t,n=>{wr(e.springs,n,r=>_r(r,e))})}function Du(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const Lu=["children"],nt=e=>{let{children:t}=e,n=Du(e,Lu);const r=w.exports.useContext(ze),i=n.pause||!!r.pause,s=n.immediate||!!r.immediate;n=du(()=>({pause:i,immediate:s}),[i,s]);const{Provider:o}=ze;return w.exports.createElement(o,{value:n},t)},ze=Uu(nt,{});nt.Provider=ze.Provider;nt.Consumer=ze.Consumer;function Uu(e,t){return Object.assign(e,w.exports.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const qu=()=>{const e=[],t=function(i){cu();const s=[];return O(e,(o,c)=>{if(h.und(i))s.push(o.start());else{const d=n(i,o,c);d&&s.push(o.start(d))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return O(e,r=>r.pause(...arguments)),this},t.resume=function(){return O(e,r=>r.resume(...arguments)),this},t.set=function(r){O(e,i=>i.set(r))},t.start=function(r){const i=[];return O(e,(s,o)=>{if(h.und(r))i.push(s.start());else{const c=this._getProps(r,s,o);c&&i.push(s.start(c))}}),i},t.stop=function(){return O(e,r=>r.stop(...arguments)),this},t.update=function(r){return O(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(i,s,o){return h.fun(i)?i(o,s):i};return t._getProps=n,t};function Bu(e,t,n){const r=h.fun(t)&&t;r&&!n&&(n=[]);const i=w.exports.useMemo(()=>r||arguments.length==3?qu():void 0,[]),s=w.exports.useRef(0),o=ar(),c=w.exports.useMemo(()=>({ctrls:[],queue:[],flush(T,I){const a=On(T,I);return s.current>0&&!c.queue.length&&!Object.keys(a).some(l=>!T.springs[l])?Tt(T,I):new Promise(l=>{br(T,a),c.queue.push(()=>{l(Tt(T,I))}),o()})}}),[]),d=w.exports.useRef([...c.ctrls]),f=[],p=mn(e)||0;w.exports.useMemo(()=>{O(d.current.slice(e,p),T=>{Iu(T,i),T.stop(!0)}),d.current.length=e,g(p,e)},[e]),w.exports.useMemo(()=>{g(0,Math.min(p,e))},n);function g(T,I){for(let a=T;aOn(T,f[I])),x=w.exports.useContext(nt),y=mn(x),b=x!==y&&Su(x);Nt(()=>{s.current++,c.ctrls=d.current;const{queue:T}=c;T.length&&(c.queue=[],O(T,I=>I())),O(d.current,(I,a)=>{i==null||i.add(I),b&&I.start({default:x});const u=f[a];u&&(Ou(I,u.ref),I.ref?I.queue.push(u):I.start(u))})}),ur(()=>()=>{O(c.ctrls,T=>T.stop(!0))});const $=m.map(T=>M({},T));return i?[$,i]:$}function Cf(e,t){const n=h.fun(e),[[r],i]=Bu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}let An;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(An||(An={}));class zu extends Bt{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=$e(...n);const r=this._get(),i=yt(r);Dt(this,i.create(r))}advance(t){const n=this._get(),r=this.get();K(n,r)||(Q(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Pn(this._active)&&ut(this)}_get(){const t=h.arr(this.source)?this.source.map(F):D(F(this.source));return this.calc(...t)}_start(){this.idle&&!Pn(this._active)&&(this.idle=!1,O(et(this),t=>{t.done=!1}),G.skipAnimation?(S.batchedUpdates(()=>this.advance()),ut(this)):Ze.start(this))}_attach(){let t=1;O(D(this.source),n=>{U(n)&&de(n,this),wt(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){O(D(this.source),t=>{U(t)&&Se(t,this)}),this._active.clear(),ut(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=D(this.source).reduce((n,r)=>Math.max(n,(wt(r)?r.priority:0)+1),0))}}function Qu(e){return e.idle!==!1}function Pn(e){return!e.size||Array.from(e).every(Qu)}function ut(e){e.idle||(e.idle=!0,O(et(e),t=>{t.done=!0}),Te(e,{type:"idle",parent:e}))}G.assign({createStringInterpolator:sr,to:(e,t)=>new zu(e,t)});function zt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const Wu=["style","children","scrollTop","scrollLeft","viewBox"],$r=/^--/;function Gu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!$r.test(e)&&!(xe.hasOwnProperty(e)&&xe[e])?t+"px":(""+t).trim()}const Rn={};function Hu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:i,children:s,scrollTop:o,scrollLeft:c,viewBox:d}=r,f=zt(r,Wu),p=Object.values(f),g=Object.keys(f).map(m=>n||e.hasAttribute(m)?m:Rn[m]||(Rn[m]=m.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));s!==void 0&&(e.textContent=s);for(let m in i)if(i.hasOwnProperty(m)){const x=Gu(m,i[m]);$r.test(m)?e.style.setProperty(m,x):e.style[m]=x}g.forEach((m,x)=>{e.setAttribute(m,p[x])}),o!==void 0&&(e.scrollTop=o),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}let xe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Ku=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Zu=["Webkit","Ms","Moz","O"];xe=Object.keys(xe).reduce((e,t)=>(Zu.forEach(n=>e[Ku(n,t)]=e[t]),e),xe);const Ju=["x","y","z"],Xu=/^(matrix|translate|scale|rotate|skew)/,Yu=/^(translate)/,ef=/^(rotate|skew)/,ft=(e,t)=>h.num(e)&&e!==0?e+t:e,Ve=(e,t)=>h.arr(e)?e.every(n=>Ve(n,t)):h.num(e)?e===t:parseFloat(e)===t;class tf extends tt{constructor(t){let{x:n,y:r,z:i}=t,s=zt(t,Ju);const o=[],c=[];(n||r||i)&&(o.push([n||0,r||0,i||0]),c.push(d=>[`translate3d(${d.map(f=>ft(f,"px")).join(",")})`,Ve(d,0)])),W(s,(d,f)=>{if(f==="transform")o.push([d||""]),c.push(p=>[p,p===""]);else if(Xu.test(f)){if(delete s[f],h.und(d))return;const p=Yu.test(f)?"px":ef.test(f)?"deg":"";o.push(D(d)),c.push(f==="rotate3d"?([g,m,x,y])=>[`rotate3d(${g},${m},${x},${ft(y,p)})`,Ve(y,0)]:g=>[`${f}(${g.map(m=>ft(m,p)).join(",")})`,Ve(g,f.startsWith("scale")?1:0)])}}),o.length&&(s.transform=new nf(o,c)),super(s)}}class nf extends nr{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return O(this.inputs,(r,i)=>{const s=F(r[0]),[o,c]=this.transforms[i](h.arr(s)?s:r.map(F));t+=" "+o,n=n&&c}),n?"none":t}observerAdded(t){t==1&&O(this.inputs,n=>O(n,r=>U(r)&&de(r,this)))}observerRemoved(t){t==0&&O(this.inputs,n=>O(n,r=>U(r)&&Se(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Te(this,t)}}const rf=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],sf=["scrollTop","scrollLeft"];G.assign({batchedUpdates:Or.exports.unstable_batchedUpdates,createStringInterpolator:sr,colors:Ua});const of=_u(rf,{applyAnimatedValues:Hu,createAnimatedStyle:e=>new tf(e),getComponentProps:e=>zt(e,sf)}),kf=of.animated;function af(e){const t=w.exports.useRef(e);return e&&(t.current=!0),!!t.current}const Mf=e=>uf(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function uf(e,t,n){const r=af(e);return t||e?!0:r?!n:!1}var Qt={},ff=ae&&ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qt,"__esModule",{value:!0});var Tr=Qt.staged=void 0;const cf=ff(w.exports);function Sr(e){return typeof e=="function"?cf.default.createElement(lf,{stage:e}):e}function lf(e){const t=e.stage();return Sr(t)}function df(e){return function(n,r){const i=e(n,r);return Sr(i)}}Tr=Qt.staged=df;function Me(e){return typeof e=="number"?`${e}px`:e}const hf=e=>{const t=w.exports.useRef(null),[n]=ja(t);return w.exports.useEffect(()=>{n&&e.onActive()},[n]),C("div",{ref:t})},pf=wa(ka),mf=()=>Z.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Z.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),gf=()=>Z.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Z.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),Qe="adm-image",vf={fit:"fill",placeholder:C("div",{className:`${Qe}-tip`,children:C(mf,{})}),fallback:C("div",{className:`${Qe}-tip`,children:C(gf,{})}),lazy:!1,draggable:!1},yf=Tr(e=>{const t=He(vf,e),[n,r]=w.exports.useState(!1),[i,s]=w.exports.useState(!1),o=w.exports.useRef(null);let c=t.src,d=t.srcSet;const[f,p]=w.exports.useState(!t.lazy);c=f?t.src:void 0,d=f?t.srcSet:void 0,pf(()=>{r(!1),s(!1)},[c]);function g(){if(i)return C(Wt,{children:t.fallback});const x=C("img",{className:`${Qe}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;r(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:d,useMap:t.useMap,draggable:t.draggable});return ct(Wt,{children:[!n&&t.placeholder,x]})}const m={};return t.width&&(m["--width"]=Me(t.width),m.width=Me(t.width)),t.height&&(m["--height"]=Me(t.height),m.height=Me(t.height)),Ge(t,ct("div",{ref:o,className:Qe,style:m,onClick:t.onContainerClick,children:[t.lazy&&!f&&C(hf,{onActive:()=>{p(!0)}}),g()]}))});var Ff=yf;const bf="adm-dot-loading",_f={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},wf={color:"default"},xf=w.exports.memo(e=>{var t;const n=He(wf,e);return Ge(n,C("div",{style:{color:(t=_f[n.color])!==null&&t!==void 0?t:n.color},className:We("adm-loading",bf),children:C("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"},children:C("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:C("g",{transform:"translate(-100.000000, -71.000000)",children:C("g",{transform:"translate(95.000000, 71.000000)",children:C("g",{transform:"translate(5.000000, 0.000000)",children:[0,1,2].map(r=>C("rect",{fill:"currentColor",x:20+r*26,y:"16",width:"8",height:"8",rx:"2",children:C("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${r*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"})},r))})})})})})}))});var $f=xf;function Tf(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function Vf(){return En?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const L="adm-button",Sf={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:C($f,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},If=w.exports.forwardRef((e,t)=>{const n=He(Sf,e),[r,i]=w.exports.useState(!1),s=w.exports.useRef(null),o=n.loading==="auto"?r:n.loading,c=n.disabled||o;w.exports.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const d=f=>Ar(void 0,void 0,void 0,function*(){if(!n.onClick)return;const p=n.onClick(f);if(Tf(p))try{i(!0),yield p,i(!1)}catch(g){throw i(!1),g}});return Ge(n,C("button",{ref:s,type:n.type,onClick:d,className:We(L,n.color?`${L}-${n.color}`:null,{[`${L}-block`]:n.block,[`${L}-disabled`]:c,[`${L}-fill-outline`]:n.fill==="outline",[`${L}-fill-none`]:n.fill==="none",[`${L}-mini`]:n.size==="mini",[`${L}-small`]:n.size==="small",[`${L}-large`]:n.size==="large",[`${L}-loading`]:o},`${L}-shape-${n.shape}`),disabled:c,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd,children:o?ct("div",{className:`${L}-loading-wrapper`,children:[n.loadingIcon,n.loadingText]}):C("span",{children:n.children})}))});var Nf=If;function Df(e,t,n){let r=e;return t!==void 0&&(r=Math.max(e,t)),n!==void 0&&(r=Math.min(r,n)),r}const te="adm-space",Of={direction:"horizontal"},Af=e=>{const t=He(Of,e),{direction:n,onClick:r}=t;return Ge(t,Z.createElement("div",{className:We(te,{[`${te}-wrap`]:t.wrap,[`${te}-block`]:t.block,[`${te}-${n}`]:!0,[`${te}-align-${t.align}`]:!!t.align,[`${te}-justify-${t.justify}`]:!!t.justify}),onClick:r},Z.Children.map(t.children,i=>i!=null&&Z.createElement("div",{className:`${te}-item`},i))))};var Lf=Af;export{Ar as A,Nf as B,ae as C,Ff as I,Mf as S,St as _,Qn as a,It as b,At as c,Ot as d,Gt as e,Ia as f,Rf as g,ka as h,$a as i,Cf as j,pf as k,kf as l,He as m,We as n,Df as o,jf as p,Ef as q,Vf as r,Lf as s,Pa as t,Ta as u,Wn as v,Ge as w,Ea as x,ht as y,En as z};