@inntechcorp/it-design 2.2.60 → 2.2.61
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/index.cjs.js +23 -23
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1273,7 +1273,7 @@ import M from"i18next";import{useTranslation as b,initReactI18next as z}from"rea
|
|
|
1273
1273
|
opacity: 0;
|
|
1274
1274
|
`}
|
|
1275
1275
|
|
|
1276
|
-
`,ob="itd-modal-root",Ob=({onShowModal:M,onHideModal:b,onRemoveModal:z,onModalEvent:o,modals:c,visibleModals:e,modalEvent:A})=>{const[a,i]=t(null);n(()=>{if(c.length>0&&!a){if(!document.getElementById(ob)){let M=document.createElement("div");M.id=ob,M.style.cssText="position:absolute;z-index:5",document.body.appendChild(M),i(M)}}else if(0===c.length&&0===e.length&&a)try{document.body.removeChild(a),i(null)}catch(M){}},[c,e,a]);const r=(M,b)=>{o(M,b)},d=b=>{M(b)},q=M=>{b(M)},s=M=>p(bb,{onShowModal:d,onHideModal:()=>((M="")=>{setTimeout(()=>z(M),250)})(M.id),onRemoveModal:z,onModalEvent:r,isActive:c[c.length-1].id===M.id,modalEvent:A,hideModalFromProvider:q,isVisible:e.includes(String(M.id)),...M},M.id);return a?g(p("div",{children:c.map(M=>{const b=e.includes(String(M.id));return O(zb,{id:M.id,className:"itd-modal",children:[p(pb,{className:"itd-modal-overlay",$show:b}),s(M)]},M.id)})}),a):null},cb=s({});cb.displayName="ITDModalContext";var eb="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},tb="object"==typeof eb&&eb&&eb.Object===Object&&eb,nb="object"==typeof self&&self&&self.Object===Object&&self,Ab=(tb||nb||Function("return this")()).Symbol;var ab=Array.isArray,ib=Object.prototype,rb=ib.hasOwnProperty,db=ib.toString,qb=Ab?Ab.toStringTag:void 0;var sb=Object.prototype.toString;var lb=Ab?Ab.toStringTag:void 0;function Wb(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":lb&&lb in Object(M)?function(M){var b=rb.call(M,qb),z=M[qb];try{M[qb]=void 0;var p=!0}catch(M){}var o=db.call(M);return p&&(b?M[qb]=z:delete M[qb]),o}(M):function(M){return sb.call(M)}(M)}var ub=Ab?Ab.prototype:void 0,fb=ub?ub.toString:void 0;function hb(M){if("string"==typeof M)return M;if(ab(M))return function(M,b){for(var z=-1,p=null==M?0:M.length,o=Array(p);++z<p;)o[z]=b(M[z],z,M);return o}(M,hb)+"";if(function(M){return"symbol"==typeof M||function(M){return null!=M&&"object"==typeof M}(M)&&"[object Symbol]"==Wb(M)}(M))return fb?fb.call(M):"";var b=M+"";return"0"==b&&1/M==-1/0?"-0":b}var Rb=0;function Lb(M){var b,z=++Rb;return(null==(b=M)?"":hb(b))+z}const mb={id:"",className:"",title:null,width:"500px",closeOnClickOutside:!0,preventESC:!1,removeOthers:!1,showOkButton:!0,showCancelButton:!0,showCloseButton:!0,okButtonText:"OK",cancelButtonText:"Cancel",okButtonProps:null,cancelButtonProps:null,customProps:{},context:{},onOk:null,onCancel:null,useRef:!1,checkAutoRef:!1,content:null,outerPadding:"50px",contentPadding:"30px 20px",beforeContentPadding:"30px 20px 0",afterContentPadding:"0 20px 30px",addContentAfter:null,addContentBefore:null,onShow:null,onExit:null},gb=({children:M})=>{const[b,z]=t([]),[o,c]=t([]),[e,n]=t({event:C.NOT_SHOW,id:""}),A=(M,b)=>{M!==C.NOT_SHOW&&n({event:M,id:b})},a=l(M=>{const p={...mb,...M};""===p.id&&(p.id=Lb("itd-modal-")),z(p.removeOthers?[p]:[...b,p]),c(p.removeOthers?[p.id]:[...o,p.id])},[b]),i=l(M=>{const p=o.findIndex(b=>b===M);if(-1!==p){const M=[...o.slice(0,p),...o.slice(p+1)];c(M)}const O=b.findIndex(b=>b.id===M);if(-1!==O){const M=[...b.slice(0,O),...b.slice(O+1)];z(M)}},[b,o]),r=l(M=>{const b=o.findIndex(b=>b===M);if(-1!==b){const M=[...o.slice(0,b),...o.slice(b+1)];c(M)}},[o]);return O(cb.Provider,{value:{showModal:a,hideModal:r,removeModal:i,removeAllModals:()=>{c([]),z([]),A(C.ALL_REMOVED,"")},modalEvent:e,isVisible:M=>o.includes(M)},children:[M,p(Ob,{onShowModal:a,onHideModal:r,onRemoveModal:i,onModalEvent:A,modals:b,visibleModals:o,modalEvent:e})]})},Nb={useModal:()=>a(cb)};var Bb=$b(),vb=M=>Db(M,Bb),Xb=$b();vb.write=M=>Db(M,Xb);var yb=$b();vb.onStart=M=>Db(M,yb);var xb=$b();vb.onFrame=M=>Db(M,xb);var wb=$b();vb.onFinish=M=>Db(M,wb);var Tb=[];vb.setTimeout=(M,b)=>{const z=vb.now()+b,p=()=>{const M=Tb.findIndex(M=>M.cancel==p);~M&&Tb.splice(M,1),Eb-=~M?1:0},o={time:z,handler:M,cancel:p};return Tb.splice(_b(z),0,o),Eb+=1,Pb(),o};var _b=M=>~(~Tb.findIndex(b=>b.time>M)||~Tb.length);vb.cancel=M=>{yb.delete(M),xb.delete(M),wb.delete(M),Bb.delete(M),Xb.delete(M)},vb.sync=M=>{Cb=!0,vb.batchedUpdates(M),Cb=!1},vb.throttle=M=>{let b;function z(){try{M(...b)}finally{b=null}}function p(...M){b=M,vb.onStart(z)}return p.handler=M,p.cancel=()=>{yb.delete(z),b=null},p};var kb="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vb.use=M=>kb=M,vb.now="undefined"!=typeof performance?()=>performance.now():Date.now,vb.batchedUpdates=M=>M(),vb.catch=console.error,vb.frameLoop="always",vb.advance=()=>{"demand"!==vb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ib()};var Sb=-1,Eb=0,Cb=!1;function Db(M,b){Cb?(b.delete(M),M(0)):(b.add(M),Pb())}function Pb(){Sb<0&&(Sb=0,"demand"!==vb.frameLoop&&kb(Fb))}function Fb(){~Sb&&(kb(Fb),vb.batchedUpdates(Ib))}function Ib(){const M=Sb;Sb=vb.now();const b=_b(Sb);b&&(Hb(Tb.splice(0,b),M=>M.handler()),Eb-=b),Eb?(yb.flush(),Bb.flush(M?Math.min(64,Sb-M):16.667),xb.flush(),Xb.flush(),wb.flush()):Sb=-1}function $b(){let M=new Set,b=M;return{add(z){Eb+=b!=M||M.has(z)?0:1,M.add(z)},delete:z=>(Eb-=b==M&&M.has(z)?1:0,M.delete(z)),flush(z){b.size&&(M=new Set,Eb-=b.size,Hb(b,b=>b(z)&&M.add(b)),Eb+=M.size,b=M)}}}function Hb(M,b){M.forEach(M=>{try{b(M)}catch(M){vb.catch(M)}})}var Ub=Object.defineProperty,jb={};function Vb(){}((M,b)=>{for(var z in b)Ub(M,z,{get:b[z],enumerable:!0})})(jb,{assign:()=>ez,colors:()=>oz,createStringInterpolator:()=>Mz,skipAnimation:()=>Oz,to:()=>bz,willAdvance:()=>cz});var Yb={arr:Array.isArray,obj:M=>!!M&&"Object"===M.constructor.name,fun:M=>"function"==typeof M,str:M=>"string"==typeof M,num:M=>"number"==typeof M,und:M=>void 0===M};function Gb(M,b){if(Yb.arr(M)){if(!Yb.arr(b)||M.length!==b.length)return!1;for(let z=0;z<M.length;z++)if(M[z]!==b[z])return!1;return!0}return M===b}var Kb=(M,b)=>M.forEach(b);function Jb(M,b,z){if(Yb.arr(M))for(let p=0;p<M.length;p++)b.call(z,M[p],`${p}`);else for(const p in M)M.hasOwnProperty(p)&&b.call(z,M[p],p)}var Qb=M=>Yb.und(M)?[]:Yb.arr(M)?M:[M];function Zb(M,b){if(M.size){const z=Array.from(M);M.clear(),Kb(z,b)}}var Mz,bz,zz=(M,...b)=>Zb(M,M=>M(...b)),pz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),oz=null,Oz=!1,cz=Vb,ez=M=>{M.to&&(bz=M.to),M.now&&(vb.now=M.now),void 0!==M.colors&&(oz=M.colors),null!=M.skipAnimation&&(Oz=M.skipAnimation),M.createStringInterpolator&&(Mz=M.createStringInterpolator),M.requestAnimationFrame&&vb.use(M.requestAnimationFrame),M.batchedUpdates&&(vb.batchedUpdates=M.batchedUpdates),M.willAdvance&&(cz=M.willAdvance),M.frameLoop&&(vb.frameLoop=M.frameLoop)},tz=new Set,nz=[],Az=[],az=0,iz={get idle(){return!tz.size&&!nz.length},start(M){az>M.priority?(tz.add(M),vb.onStart(rz)):(dz(M),vb(sz))},advance:sz,sort(M){if(az)vb.onFrame(()=>iz.sort(M));else{const b=nz.indexOf(M);~b&&(nz.splice(b,1),qz(M))}},clear(){nz=[],tz.clear()}};function rz(){tz.forEach(dz),tz.clear(),vb(sz)}function dz(M){nz.includes(M)||qz(M)}function qz(M){nz.splice(function(M,b){const z=M.findIndex(b);return z<0?M.length:z}(nz,b=>b.priority>M.priority),0,M)}function sz(M){const b=Az;for(let z=0;z<nz.length;z++){const p=nz[z];az=p.priority,p.idle||(cz(p),p.advance(M),p.idle||b.push(p))}return az=0,(Az=nz).length=0,(nz=b).length>0}var lz="[-+]?\\d*\\.?\\d+",Wz=lz+"%";function uz(...M){return"\\(\\s*("+M.join(")\\s*,\\s*(")+")\\s*\\)"}var fz=new RegExp("rgb"+uz(lz,lz,lz)),hz=new RegExp("rgba"+uz(lz,lz,lz,lz)),Rz=new RegExp("hsl"+uz(lz,Wz,Wz)),Lz=new RegExp("hsla"+uz(lz,Wz,Wz,lz)),mz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nz=/^#([0-9a-fA-F]{6})$/,Bz=/^#([0-9a-fA-F]{8})$/;function vz(M,b,z){return z<0&&(z+=1),z>1&&(z-=1),z<1/6?M+6*(b-M)*z:z<.5?b:z<2/3?M+(b-M)*(2/3-z)*6:M}function Xz(M,b,z){const p=z<.5?z*(1+b):z+b-z*b,o=2*z-p,O=vz(o,p,M+1/3),c=vz(o,p,M),e=vz(o,p,M-1/3);return Math.round(255*O)<<24|Math.round(255*c)<<16|Math.round(255*e)<<8}function yz(M){const b=parseInt(M,10);return b<0?0:b>255?255:b}function xz(M){return(parseFloat(M)%360+360)%360/360}function wz(M){const b=parseFloat(M);return b<0?0:b>1?255:Math.round(255*b)}function Tz(M){const b=parseFloat(M);return b<0?0:b>100?1:b/100}function _z(M){let b=function(M){let b;return"number"==typeof M?M>>>0===M&&M>=0&&M<=4294967295?M:null:(b=Nz.exec(M))?parseInt(b[1]+"ff",16)>>>0:oz&&void 0!==oz[M]?oz[M]:(b=fz.exec(M))?(yz(b[1])<<24|yz(b[2])<<16|yz(b[3])<<8|255)>>>0:(b=hz.exec(M))?(yz(b[1])<<24|yz(b[2])<<16|yz(b[3])<<8|wz(b[4]))>>>0:(b=mz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+"ff",16)>>>0:(b=Bz.exec(M))?parseInt(b[1],16)>>>0:(b=gz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=Rz.exec(M))?(255|Xz(xz(b[1]),Tz(b[2]),Tz(b[3])))>>>0:(b=Lz.exec(M))?(Xz(xz(b[1]),Tz(b[2]),Tz(b[3]))|wz(b[4]))>>>0:null}(M);if(null===b)return M;b=b||0;return`rgba(${(4278190080&b)>>>24}, ${(16711680&b)>>>16}, ${(65280&b)>>>8}, ${(255&b)/255})`}var kz=(M,b,z)=>{if(Yb.fun(M))return M;if(Yb.arr(M))return kz({range:M,output:b,extrapolate:z});if(Yb.str(M.output[0]))return Mz(M);const p=M,o=p.output,O=p.range||[0,1],c=p.extrapolateLeft||p.extrapolate||"extend",e=p.extrapolateRight||p.extrapolate||"extend",t=p.easing||(M=>M);return M=>{const b=function(M,b){for(var z=1;z<b.length-1&&!(b[z]>=M);++z);return z-1}(M,O);return function(M,b,z,p,o,O,c,e,t){let n=t?t(M):M;if(n<b){if("identity"===c)return n;"clamp"===c&&(n=b)}if(n>z){if("identity"===e)return n;"clamp"===e&&(n=z)}if(p===o)return p;if(b===z)return M<=b?p:o;b===-1/0?n=-n:z===1/0?n-=b:n=(n-b)/(z-b);n=O(n),p===-1/0?n=-n:o===1/0?n+=p:n=n*(o-p)+p;return n}(M,O[b],O[b+1],o[b],o[b+1],t,c,e,p.map)}};var Sz=Symbol.for("FluidValue.get"),Ez=Symbol.for("FluidValue.observers"),Cz=M=>Boolean(M&&M[Sz]),Dz=M=>M&&M[Sz]?M[Sz]():M,Pz=M=>M[Ez]||null;function Fz(M,b){const z=M[Ez];z&&z.forEach(M=>{!function(M,b){M.eventObserved?M.eventObserved(b):M(b)}(M,b)})}var Iz=class{constructor(M){if(!M&&!(M=this.get))throw Error("Unknown getter");$z(this,M)}},$z=(M,b)=>Vz(M,Sz,b);function Hz(M,b){if(M[Sz]){let z=M[Ez];z||Vz(M,Ez,z=new Set),z.has(b)||(z.add(b),M.observerAdded&&M.observerAdded(z.size,b))}return b}function Uz(M,b){const z=M[Ez];if(z&&z.has(b)){const p=z.size-1;p?z.delete(b):M[Ez]=null,M.observerRemoved&&M.observerRemoved(p,b)}}var jz,Vz=(M,b,z)=>Object.defineProperty(M,b,{value:z,writable:!0,configurable:!0}),Yz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Kz=new RegExp(`(${Yz.source})(%|[a-z]+)`,"i"),Jz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Qz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Zz=M=>{const[b,z]=Mp(M);if(!b||pz())return M;const p=window.getComputedStyle(document.documentElement).getPropertyValue(b);if(p)return p.trim();if(z&&z.startsWith("--")){const b=window.getComputedStyle(document.documentElement).getPropertyValue(z);return b||M}return z&&Qz.test(z)?Zz(z):z||M},Mp=M=>{const b=Qz.exec(M);if(!b)return[,];const[,z,p]=b;return[z,p]},bp=(M,b,z,p,o)=>`rgba(${Math.round(b)}, ${Math.round(z)}, ${Math.round(p)}, ${o})`,zp=M=>{jz||(jz=oz?new RegExp(`(${Object.keys(oz).join("|")})(?!\\w)`,"g"):/^\b$/);const b=M.output.map(M=>Dz(M).replace(Qz,Zz).replace(Gz,_z).replace(jz,_z)),z=b.map(M=>M.match(Yz).map(Number)),p=z[0].map((M,b)=>z.map(M=>{if(!(b in M))throw Error('The arity of each "output" value must be equal');return M[b]})),o=p.map(b=>kz({...M,output:b}));return M=>{const z=!Kz.test(b[0])&&b.find(M=>Kz.test(M))?.replace(Yz,"");let p=0;return b[0].replace(Yz,()=>`${o[p++](M)}${z||""}`).replace(Jz,bp)}},pp="react-spring: ",op=M=>{const b=M;let z=!1;if("function"!=typeof b)throw new TypeError(`${pp}once requires a function parameter`);return(...M)=>{z||(b(...M),z=!0)}},Op=op(console.warn);var cp=op(console.warn);function ep(M){return Yb.str(M)&&("#"==M[0]||/\d/.test(M)||!pz()&&Qz.test(M)||M in(oz||{}))}var tp=pz()?n:W;function np(){const M=t()[1],b=(()=>{const M=A(!1);return tp(()=>(M.current=!0,()=>{M.current=!1}),[]),M})();return()=>{b.current&&M(Math.random())}}var Ap=M=>n(M,ap),ap=[];var ip=Symbol.for("Animated:node"),rp=M=>M&&M[ip],dp=(M,b)=>{return z=M,p=ip,o=b,Object.defineProperty(z,p,{value:o,writable:!0,configurable:!0});var z,p,o},qp=M=>M&&M[ip]&&M[ip].getPayload(),sp=class{constructor(){dp(this,this)}getPayload(){return this.payload||[]}},lp=class M extends sp{constructor(M){super(),this._value=M,this.done=!0,this.durationProgress=0,Yb.num(this._value)&&(this.lastPosition=this._value)}static create(b){return new M(b)}getPayload(){return[this]}getValue(){return this._value}setValue(M,b){return Yb.num(M)&&(this.lastPosition=M,b&&(M=Math.round(M/b)*b,this.done&&(this.lastPosition=M))),this._value!==M&&(this._value=M,!0)}reset(){const{done:M}=this;this.done=!1,Yb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,M&&(this.lastVelocity=null),this.v0=null)}},Wp=class M extends lp{constructor(M){super(0),this._string=null,this._toString=kz({output:[M,M]})}static create(b){return new M(b)}getValue(){const M=this._string;return null==M?this._string=this._toString(this._value):M}setValue(M){if(Yb.str(M)){if(M==this._string)return!1;this._string=M,this._value=1}else{if(!super.setValue(M))return!1;this._string=null}return!0}reset(M){M&&(this._toString=kz({output:[this.getValue(),M]})),this._value=0,super.reset()}},up={dependencies:null},fp=class extends sp{constructor(M){super(),this.source=M,this.setValue(M)}getValue(M){const b={};return Jb(this.source,(z,p)=>{var o;(o=z)&&o[ip]===o?b[p]=z.getValue(M):Cz(z)?b[p]=Dz(z):M||(b[p]=z)}),b}setValue(M){this.source=M,this.payload=this._makePayload(M)}reset(){this.payload&&Kb(this.payload,M=>M.reset())}_makePayload(M){if(M){const b=new Set;return Jb(M,this._addToPayload,b),Array.from(b)}}_addToPayload(M){up.dependencies&&Cz(M)&&up.dependencies.add(M);const b=qp(M);b&&Kb(b,M=>this.add(M))}},hp=class M extends fp{constructor(M){super(M)}static create(b){return new M(b)}getValue(){return this.source.map(M=>M.getValue())}setValue(M){const b=this.getPayload();return M.length==b.length?b.map((b,z)=>b.setValue(M[z])).some(Boolean):(super.setValue(M.map(Rp)),!0)}};function Rp(M){return(ep(M)?Wp:lp).create(M)}function Lp(M){const b=rp(M);return b?b.constructor:Yb.arr(M)?hp:ep(M)?Wp:lp}var mp=(M,b)=>{const z=!Yb.fun(M)||M.prototype&&M.prototype.isReactComponent;return u((p,o)=>{const O=A(null),e=z&&l(M=>{O.current=function(M,b){M&&(Yb.fun(M)?M(b):M.current=b);return b}(o,M)},[o]),[t,a]=function(M,b){const z=new Set;up.dependencies=z,M.style&&(M={...M,style:b.createAnimatedStyle(M.style)});return M=new fp(M),up.dependencies=null,[M,z]}(p,b),i=np(),r=()=>{const M=O.current;if(z&&!M)return;!1===(!!M&&b.applyAnimatedValues(M,t.getValue(!0)))&&i()},d=new gp(r,a),q=A(void 0);tp(()=>(q.current=d,Kb(a,M=>Hz(M,d)),()=>{q.current&&(Kb(q.current.deps,M=>Uz(M,q.current)),vb.cancel(q.current.update))})),n(r,[]),Ap(()=>()=>{const M=q.current;Kb(M.deps,b=>Uz(b,M))});const s=b.getComponentProps(t.getValue());return c.createElement(M,{...s,ref:e})})},gp=class{constructor(M,b){this.update=M,this.deps=b}eventObserved(M){"change"==M.type&&vb.write(this.update)}};var Np=Symbol.for("AnimatedComponent"),Bp=M=>Yb.str(M)?M:M&&Yb.str(M.displayName)?M.displayName:Yb.fun(M)&&M.name||null;function vp(M,...b){return Yb.fun(M)?M(...b):M}var Xp=(M,b)=>!0===M||!!(b&&M&&(Yb.fun(M)?M(b):Qb(M).includes(b))),yp=(M,b)=>Yb.obj(M)?b&&M[b]:M,xp=(M,b)=>!0===M.default?M[b]:M.default?M.default[b]:void 0,wp=M=>M,Tp=(M,b=wp)=>{let z=_p;M.default&&!0!==M.default&&(M=M.default,z=Object.keys(M));const p={};for(const o of z){const z=b(M[o],o);Yb.und(z)||(p[o]=z)}return p},_p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],kp={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 Sp(M){const b=function(M){const b={};let z=0;if(Jb(M,(M,p)=>{kp[p]||(b[p]=M,z++)}),z)return b}(M);if(b){const z={to:b};return Jb(M,(M,p)=>p in b||(z[p]=M)),z}return{...M}}function Ep(M){return M=Dz(M),Yb.arr(M)?M.map(Ep):ep(M)?jb.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function Cp(M){return Yb.fun(M)||Yb.arr(M)&&Yb.obj(M[0])}function Dp(M,b){M.ref?.delete(M),b?.delete(M)}var Pp={tension:170,friction:26,mass:1,damping:1,easing:M=>M,clamp:!1},Fp=class{constructor(){this.velocity=0,Object.assign(this,Pp)}};function Ip(M,b){if(Yb.und(b.decay)){const z=!Yb.und(b.tension)||!Yb.und(b.friction);!z&&Yb.und(b.frequency)&&Yb.und(b.damping)&&Yb.und(b.mass)||(M.duration=void 0,M.decay=void 0),z&&(M.frequency=void 0)}else M.duration=void 0}var $p=[],Hp=class{constructor(){this.changed=!1,this.values=$p,this.toValues=null,this.fromValues=$p,this.config=new Fp,this.immediate=!1}};function Up(M,{key:b,props:z,defaultProps:p,state:o,actions:O}){return new Promise((c,e)=>{let t,n,A=Xp(z.cancel??p?.cancel,b);if(A)r();else{Yb.und(z.pause)||(o.paused=Xp(z.pause,b));let M=p?.pause;!0!==M&&(M=o.paused||Xp(M,b)),t=vp(z.delay||0,b),M?(o.resumeQueue.add(i),O.pause()):(O.resume(),i())}function a(){o.resumeQueue.add(i),o.timeouts.delete(n),n.cancel(),t=n.time-vb.now()}function i(){t>0&&!jb.skipAnimation?(o.delayed=!0,n=vb.setTimeout(r,t),o.pauseQueue.add(a),o.timeouts.add(n)):r()}function r(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(a),o.timeouts.delete(n),M<=(o.cancelId||0)&&(A=!0);try{O.start({...z,callId:M,cancel:A},c)}catch(M){e(M)}}})}var jp=(M,b)=>1==b.length?b[0]:b.some(M=>M.cancelled)?Gp(M.get()):b.every(M=>M.noop)?Vp(M.get()):Yp(M.get(),b.every(M=>M.finished)),Vp=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Yp=(M,b,z=!1)=>({value:M,finished:b,cancelled:z}),Gp=M=>({value:M,cancelled:!0,finished:!1});function Kp(M,b,z,p){const{callId:o,parentId:O,onRest:c}=b,{asyncTo:e,promise:t}=z;return O||M!==e||b.reset?z.promise=(async()=>{z.asyncId=o,z.asyncTo=M;const n=Tp(b,(M,b)=>"onRest"===b?void 0:M);let A,a;const i=new Promise((M,b)=>(A=M,a=b)),r=M=>{const b=o<=(z.cancelId||0)&&Gp(p)||o!==z.asyncId&&Yp(p,!1);if(b)throw M.result=b,a(M),M},d=(M,b)=>{const O=new Qp,c=new Zp;return(async()=>{if(jb.skipAnimation)throw Jp(z),c.result=Yp(p,!1),a(c),c;r(O);const e=Yb.obj(M)?{...M}:{...b,to:M};e.parentId=o,Jb(n,(M,b)=>{Yb.und(e[b])&&(e[b]=M)});const t=await p.start(e);return r(O),z.paused&&await new Promise(M=>{z.resumeQueue.add(M)}),t})()};let q;if(jb.skipAnimation)return Jp(z),Yp(p,!1);try{let b;b=Yb.arr(M)?(async M=>{for(const b of M)await d(b)})(M):Promise.resolve(M(d,p.stop.bind(p))),await Promise.all([b.then(A),i]),q=Yp(p.get(),!0,!1)}catch(M){if(M instanceof Qp)q=M.result;else{if(!(M instanceof Zp))throw M;q=M.result}}finally{o==z.asyncId&&(z.asyncId=O,z.asyncTo=O?e:void 0,z.promise=O?t:void 0)}return Yb.fun(c)&&vb.batchedUpdates(()=>{c(q,p,p.item)}),q})():t}function Jp(M,b){Zb(M.timeouts,M=>M.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,b&&(M.cancelId=b)}var Qp=class 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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Mo=M=>M instanceof zo,bo=1,zo=class extends Iz{constructor(){super(...arguments),this.id=bo++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){const M=rp(this);return M&&M.getValue()}to(...M){return jb.to(this,M)}interpolate(...M){return Op(`${pp}The "interpolate" function is deprecated in v9 (use "to" instead)`),jb.to(this,M)}toJSON(){return this.get()}observerAdded(M){1==M&&this._attach()}observerRemoved(M){0==M&&this._detach()}_attach(){}_detach(){}_onChange(M,b=!1){Fz(this,{type:"change",parent:this,value:M,idle:b})}_onPriorityChange(M){this.idle||iz.sort(this),Fz(this,{type:"priority",parent:this,priority:M})}},po=Symbol.for("SpringPhase"),oo=M=>(1&M[po])>0,Oo=M=>(2&M[po])>0,co=M=>(4&M[po])>0,eo=(M,b)=>b?M[po]|=3:M[po]&=-3,to=(M,b)=>b?M[po]|=4:M[po]&=-5,no=class extends zo{constructor(M,b){if(super(),this.animation=new Hp,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,!Yb.und(M)||!Yb.und(b)){const z=Yb.obj(M)?{...M}:{...b,from:M};Yb.und(z.default)&&(z.default=!0),this.start(z)}}get idle(){return!(Oo(this)||this._state.asyncTo)||co(this)}get goal(){return Dz(this.animation.to)}get velocity(){const M=rp(this);return M instanceof lp?M.lastVelocity||0:M.getPayload().map(M=>M.lastVelocity||0)}get hasAnimated(){return oo(this)}get isAnimating(){return Oo(this)}get isPaused(){return co(this)}get isDelayed(){return this._state.delayed}advance(M){let b=!0,z=!1;const p=this.animation;let{toValues:o}=p;const{config:O}=p,c=qp(p.to);!c&&Cz(p.to)&&(o=Qb(Dz(p.to))),p.values.forEach((e,t)=>{if(e.done)return;const n=e.constructor==Wp?1:c?c[t].lastPosition:o[t];let A=p.immediate,a=n;if(!A){if(a=e.lastPosition,O.tension<=0)return void(e.done=!0);let b=e.elapsedTime+=M;const z=p.fromValues[t],o=null!=e.v0?e.v0:e.v0=Yb.arr(O.velocity)?O.velocity[t]:O.velocity;let c;const i=O.precision||(z==n?.005:Math.min(1,.001*Math.abs(n-z)));if(Yb.und(O.duration))if(O.decay){const M=!0===O.decay?.998:O.decay,p=Math.exp(-(1-M)*b);a=z+o/(1-M)*(1-p),A=Math.abs(e.lastPosition-a)<=i,c=o*p}else{c=null==e.lastVelocity?o:e.lastVelocity;const b=O.restVelocity||i/10,p=O.clamp?0:O.bounce,t=!Yb.und(p),r=z==n?e.v0>0:z<n;let d,q=!1;const s=1,l=Math.ceil(M/s);for(let M=0;M<l&&(d=Math.abs(c)>b,d||(A=Math.abs(n-a)<=i,!A));++M){t&&(q=a==n||a>n==r,q&&(c=-c*p,a=n));c+=(1e-6*-O.tension*(a-n)+.001*-O.friction*c)/O.mass*s,a+=c*s}}else{let p=1;O.duration>0&&(this._memoizedDuration!==O.duration&&(this._memoizedDuration=O.duration,e.durationProgress>0&&(e.elapsedTime=O.duration*e.durationProgress,b=e.elapsedTime+=M)),p=(O.progress||0)+b/this._memoizedDuration,p=p>1?1:p<0?0:p,e.durationProgress=p),a=z+O.easing(p)*(n-z),c=(a-e.lastPosition)/M,A=1==p}e.lastVelocity=c,Number.isNaN(a)&&(console.warn("Got NaN while animating:",this),A=!0)}c&&!c[t].done&&(A=!1),A?e.done=!0:b=!1,e.setValue(a,O.round)&&(z=!0)});const e=rp(this),t=e.getValue();if(b){const M=Dz(p.to);t===M&&!z||O.decay?z&&O.decay&&this._onChange(t):(e.setValue(M),this._onChange(M)),this._stop()}else z&&this._onChange(t)}set(M){return vb.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Oo(this)){const{to:M,config:b}=this.animation;vb.batchedUpdates(()=>{this._onStart(),b.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,b){let z;return Yb.und(M)?(z=this.queue||[],this.queue=[]):z=[Yb.obj(M)?M:{...b,to:M}],Promise.all(z.map(M=>this._update(M))).then(M=>jp(this,M))}stop(M){const{to:b}=this.animation;return this._focus(this.get()),Jp(this._state,M&&this._lastCallId),vb.batchedUpdates(()=>this._stop(b,M)),this}reset(){this._update({reset:!0})}eventObserved(M){"change"==M.type?this._start():"priority"==M.type&&(this.priority=M.priority+1)}_prepareNode(M){const b=this.key||"";let{to:z,from:p}=M;z=Yb.obj(z)?z[b]:z,(null==z||Cp(z))&&(z=void 0),p=Yb.obj(p)?p[b]:p,null==p&&(p=void 0);const o={to:z,from:p};return oo(this)||(M.reverse&&([z,p]=[p,z]),p=Dz(p),Yb.und(p)?rp(this)||this._set(z):this._set(p)),o}_update({...M},b){const{key:z,defaultProps:p}=this;M.default&&Object.assign(p,Tp(M,(M,b)=>/^on/.test(b)?yp(M,z):M)),so(this,M,"onProps"),lo(this,"onProps",M,this);const o=this._prepareNode(M);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 O=this._state;return Up(++this._lastCallId,{key:z,props:M,defaultProps:p,state:O,actions:{pause:()=>{co(this)||(to(this,!0),zz(O.pauseQueue),lo(this,"onPause",Yp(this,Ao(this,this.animation.to)),this))},resume:()=>{co(this)&&(to(this,!1),Oo(this)&&this._resume(),zz(O.resumeQueue),lo(this,"onResume",Yp(this,Ao(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(z=>{if(M.loop&&z.finished&&(!b||!z.noop)){const b=ao(M);if(b)return this._update(b,!0)}return z})}_merge(M,b,z){if(b.cancel)return this.stop(!0),z(Gp(this));const p=!Yb.und(M.to),o=!Yb.und(M.from);if(p||o){if(!(b.callId>this._lastToId))return z(Gp(this));this._lastToId=b.callId}const{key:O,defaultProps:c,animation:e}=this,{to:t,from:n}=e;let{to:A=t,from:a=n}=M;!o||p||b.default&&!Yb.und(A)||(A=a),b.reverse&&([A,a]=[a,A]);const i=!Gb(a,n);i&&(e.from=a),a=Dz(a);const r=!Gb(A,t);r&&this._focus(A);const d=Cp(b.to),{config:q}=e,{decay:s,velocity:l}=q;(p||o)&&(q.velocity=0),b.config&&!d&&function(M,b,z){z&&(Ip(z={...z},b),b={...z,...b}),Ip(M,b),Object.assign(M,b);for(const b in Pp)null==M[b]&&(M[b]=Pp[b]);let{frequency:p,damping:o}=M;const{mass:O}=M;Yb.und(p)||(p<.01&&(p=.01),o<0&&(o=0),M.tension=Math.pow(2*Math.PI/p,2)*O,M.friction=4*Math.PI*o*O/p)}(q,vp(b.config,O),b.config!==c.config?vp(c.config,O):void 0);let W=rp(this);if(!W||Yb.und(A))return z(Yp(this,!0));const u=Yb.und(b.reset)?o&&!b.default:!Yb.und(a)&&Xp(b.reset,O),f=u?a:this.get(),h=Ep(A),R=Yb.num(h)||Yb.arr(h)||ep(h),L=!d&&(!R||Xp(c.immediate||b.immediate,O));if(r){const M=Lp(A);if(M!==W.constructor){if(!L)throw Error(`Cannot animate between ${W.constructor.name} and ${M.name}, as the "to" prop suggests`);W=this._set(h)}}const m=W.constructor;let g=Cz(A),N=!1;if(!g){const M=u||!oo(this)&&i;(r||M)&&(N=Gb(Ep(f),h),g=!N),(Gb(e.immediate,L)||L)&&Gb(q.decay,s)&&Gb(q.velocity,l)||(g=!0)}if(N&&Oo(this)&&(e.changed&&!u?g=!0:g||this._stop(t)),!d&&((g||Cz(t))&&(e.values=W.getPayload(),e.toValues=Cz(A)?null:m==Wp?[1]:Qb(h)),e.immediate!=L&&(e.immediate=L,L||u||this._set(t)),g)){const{onRest:M}=e;Kb(qo,M=>so(this,b,M));const p=Yp(this,Ao(this,t));zz(this._pendingCalls,p),this._pendingCalls.add(z),e.changed&&vb.batchedUpdates(()=>{e.changed=!u,M?.(p,this),u?vp(c.onRest,p):e.onStart?.(p,this)})}u&&this._set(f),d?z(Kp(b.to,b,this._state,this)):g?this._start():Oo(this)&&!r?this._pendingCalls.add(z):z(Vp(f))}_focus(M){const b=this.animation;M!==b.to&&(Pz(this)&&this._detach(),b.to=M,Pz(this)&&this._attach())}_attach(){let M=0;const{to:b}=this.animation;Cz(b)&&(Hz(b,this),Mo(b)&&(M=b.priority+1)),this.priority=M}_detach(){const{to:M}=this.animation;Cz(M)&&Uz(M,this)}_set(M,b=!0){const z=Dz(M);if(!Yb.und(z)){const M=rp(this);if(!M||!Gb(z,M.getValue())){const p=Lp(z);M&&M.constructor==p?M.setValue(z):dp(this,p.create(z)),M&&vb.batchedUpdates(()=>{this._onChange(z,b)})}}return rp(this)}_onStart(){const M=this.animation;M.changed||(M.changed=!0,lo(this,"onStart",Yp(this,Ao(this,M.to)),this))}_onChange(M,b){b||(this._onStart(),vp(this.animation.onChange,M,this)),vp(this.defaultProps.onChange,M,this),super._onChange(M,b)}_start(){const M=this.animation;rp(this).reset(Dz(M.to)),M.immediate||(M.fromValues=M.values.map(M=>M.lastPosition)),Oo(this)||(eo(this,!0),co(this)||this._resume())}_resume(){jb.skipAnimation?this.finish():iz.start(this)}_stop(M,b){if(Oo(this)){eo(this,!1);const z=this.animation;Kb(z.values,M=>{M.done=!0}),z.toValues&&(z.onChange=z.onPause=z.onResume=void 0),Fz(this,{type:"idle",parent:this});const p=b?Gp(this.get()):Yp(this.get(),Ao(this,M??z.to));zz(this._pendingCalls,p),z.changed&&(z.changed=!1,lo(this,"onRest",p,this))}}};function Ao(M,b){const z=Ep(b);return Gb(Ep(M.get()),z)}function ao(M,b=M.loop,z=M.to){const p=vp(b);if(p){const o=!0!==p&&Sp(p),O=(o||M).reverse,c=!o||o.reset;return io({...M,loop:b,default:!1,pause:void 0,to:!O||Cp(z)?z:void 0,from:c?M.from:void 0,reset:c,...o})}}function io(M){const{to:b,from:z}=M=Sp(M),p=new Set;return Yb.obj(b)&&ro(b,p),Yb.obj(z)&&ro(z,p),M.keys=p.size?Array.from(p):null,M}function ro(M,b){Jb(M,(M,z)=>null!=M&&b.add(z))}var qo=["onStart","onRest","onChange","onPause","onResume"];function so(M,b,z){M.animation[z]=b[z]!==xp(b,z)?yp(b[z],M.key):void 0}function lo(M,b,...z){M.animation[b]?.(...z),M.defaultProps[b]?.(...z)}var Wo=["onStart","onChange","onRest"],uo=1,fo=class{constructor(M,b){this.id=uo++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),b&&(this._flush=b),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){const M={};return this.each((b,z)=>M[z]=b.get()),M}set(M){for(const b in M){const z=M[b];Yb.und(z)||this.springs[b].set(z)}}update(M){return M&&this.queue.push(io(M)),this}start(M){let{queue:b}=this;return M?b=Qb(M).map(io):this.queue=[],this._flush?this._flush(this,b):(go(this,b),function(M,b){return Promise.all(b.map(b=>ho(M,b))).then(b=>jp(M,b))}(this,b))}stop(M,b){if(M!==!!M&&(b=M),b){const z=this.springs;Kb(Qb(b),b=>z[b].stop(!!M))}else Jp(this._state,this._lastAsyncId),this.each(b=>b.stop(!!M));return this}pause(M){if(Yb.und(M))this.start({pause:!0});else{const b=this.springs;Kb(Qb(M),M=>b[M].pause())}return this}resume(M){if(Yb.und(M))this.start({pause:!1});else{const b=this.springs;Kb(Qb(M),M=>b[M].resume())}return this}each(M){Jb(this.springs,M)}_onFrame(){const{onStart:M,onChange:b,onRest:z}=this._events,p=this._active.size>0,o=this._changed.size>0;(p&&!this._started||o&&!this._started)&&(this._started=!0,Zb(M,([M,b])=>{b.value=this.get(),M(b,this,this._item)}));const O=!p&&this._started,c=o||O&&z.size?this.get():null;o&&b.size&&Zb(b,([M,b])=>{b.value=c,M(b,this,this._item)}),O&&(this._started=!1,Zb(z,([M,b])=>{b.value=c,M(b,this,this._item)}))}eventObserved(M){if("change"==M.type)this._changed.add(M.parent),M.idle||this._active.add(M.parent);else{if("idle"!=M.type)return;this._active.delete(M.parent)}vb.onFrame(this._onFrame)}};async function ho(M,b,z){const{keys:p,to:o,from:O,loop:c,onRest:e,onResolve:t}=b,n=Yb.obj(b.default)&&b.default;c&&(b.loop=!1),!1===o&&(b.to=null),!1===O&&(b.from=null);const A=Yb.arr(o)||Yb.fun(o)?o:void 0;A?(b.to=void 0,b.onRest=void 0,n&&(n.onRest=void 0)):Kb(Wo,z=>{const p=b[z];if(Yb.fun(p)){const o=M._events[z];b[z]=({finished:M,cancelled:b})=>{const z=o.get(p);z?(M||(z.finished=!1),b&&(z.cancelled=!0)):o.set(p,{value:null,finished:M||!1,cancelled:b||!1})},n&&(n[z]=b[z])}});const a=M._state;b.pause===!a.paused?(a.paused=b.pause,zz(b.pause?a.pauseQueue:a.resumeQueue)):a.paused&&(b.pause=!0);const i=(p||Object.keys(M.springs)).map(z=>M.springs[z].start(b)),r=!0===b.cancel||!0===xp(b,"cancel");(A||r&&a.asyncId)&&i.push(Up(++M._lastAsyncId,{props:b,state:a,actions:{pause:Vb,resume:Vb,start(b,z){r?(Jp(a,M._lastAsyncId),z(Gp(M))):(b.onRest=e,z(Kp(A,b,a,M)))}}})),a.paused&&await new Promise(M=>{a.resumeQueue.add(M)});const d=jp(M,await Promise.all(i));if(c&&d.finished&&(!z||!d.noop)){const z=ao(b,c,o);if(z)return go(M,[z]),ho(M,z,!0)}return t&&vb.batchedUpdates(()=>t(d,M,M.item)),d}function Ro(M,b){const z={...M.springs};return b&&Kb(Qb(b),M=>{Yb.und(M.keys)&&(M=io(M)),Yb.obj(M.to)||(M={...M,to:void 0}),mo(z,M,M=>Lo(M))}),function(M,b){Jb(b,(b,z)=>{M.springs[z]||(M.springs[z]=b,Hz(b,M))})}(M,z),z}function Lo(M,b){const z=new no;return z.key=M,b&&Hz(z,b),z}function mo(M,b,z){b.keys&&Kb(b.keys,p=>{(M[p]||(M[p]=z(p)))._prepareNode(b)})}function go(M,b){Kb(b,b=>{mo(M.springs,b,b=>Lo(b,M))})}var No=c.createContext({pause:!1,immediate:!1}),Bo=()=>{const M=[],b=function(b){cp(`${pp}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`);const p=[];return Kb(M,(M,o)=>{if(Yb.und(b))p.push(M.start());else{const O=z(b,M,o);O&&p.push(M.start(O))}}),p};b.current=M,b.add=function(b){M.includes(b)||M.push(b)},b.delete=function(b){const z=M.indexOf(b);~z&&M.splice(z,1)},b.pause=function(){return Kb(M,M=>M.pause(...arguments)),this},b.resume=function(){return Kb(M,M=>M.resume(...arguments)),this},b.set=function(b){Kb(M,(M,z)=>{const p=Yb.fun(b)?b(z,M):b;p&&M.set(p)})},b.start=function(b){const z=[];return Kb(M,(M,p)=>{if(Yb.und(b))z.push(M.start());else{const o=this._getProps(b,M,p);o&&z.push(M.start(o))}}),z},b.stop=function(){return Kb(M,M=>M.stop(...arguments)),this},b.update=function(b){return Kb(M,(M,z)=>M.update(this._getProps(b,M,z))),this};const z=function(M,b,z){return Yb.fun(M)?M(z,b):M};return b._getProps=z,b};function vo(M,b,z){const p=Yb.fun(b)&&b,{reset:o,sort:O,trail:e=0,expires:t=!0,exitBeforeEnter:r=!1,onDestroyed:d,ref:q,config:s}=p?p():b,l=i(()=>p||3==arguments.length?Bo():void 0,[]),W=Qb(M),u=[],f=A(null),h=o?null:f.current;tp(()=>{f.current=u}),Ap(()=>(Kb(u,M=>{l?.add(M.ctrl),M.ctrl.ref=l}),()=>{Kb(f.current,M=>{M.expired&&clearTimeout(M.expirationId),Dp(M.ctrl,l),M.ctrl.stop(!0)})}));const R=function(M,{key:b,keys:z=b},p){if(null===z){const b=new Set;return M.map(M=>{const z=p&&p.find(z=>z.item===M&&"leave"!==z.phase&&!b.has(z));return z?(b.add(z),z.key):Xo++})}return Yb.und(z)?M:Yb.fun(z)?M.map(z):Qb(z)}(W,p?p():b,h),L=o&&f.current||[];tp(()=>Kb(L,({ctrl:M,item:b,key:z})=>{Dp(M,l),vp(d,b,z)}));const m=[];if(h&&Kb(h,(M,b)=>{M.expired?(clearTimeout(M.expirationId),L.push(M)):~(b=m[b]=R.indexOf(M.key))&&(u[b]=M)}),Kb(W,(M,b)=>{u[b]||(u[b]={key:R[b],item:M,phase:"mount",ctrl:new fo},u[b].ctrl.item=M)}),m.length){let M=-1;const{leave:z}=p?p():b;Kb(m,(b,p)=>{const o=h[p];~b?(M=u.indexOf(o),u[M]={...o,item:W[b]}):z&&u.splice(++M,0,o)})}Yb.fun(O)&&u.sort((M,b)=>O(M.item,b.item));let g=-e;const N=np(),B=Tp(b),v=new Map,X=A(new Map),y=A(!1);Kb(u,(M,z)=>{const o=M.key,O=M.phase,c=p?p():b;let n,A;const a=vp(c.delay||0,o);if("mount"==O)n=c.enter,A="enter";else{const M=R.indexOf(o)<0;if("leave"!=O)if(M)n=c.leave,A="leave";else{if(!(n=c.update))return;A="update"}else{if(M)return;n=c.enter,A="enter"}}if(n=vp(n,M.item,z),n=Yb.obj(n)?Sp(n):{to:n},!n.config){const b=s||B.config;n.config=vp(b,M.item,z,A)}g+=e;const i={...B,delay:a+g,ref:q,immediate:c.immediate,reset:!1,...n};if("enter"==A&&Yb.und(i.from)){const o=p?p():b,O=Yb.und(o.initial)||h?o.from:o.initial;i.from=vp(O,M.item,z)}const{onResolve:d}=i;i.onResolve=M=>{vp(d,M);const b=f.current,z=b.find(M=>M.key===o);if(z&&(!M.cancelled||"update"==z.phase)&&z.ctrl.idle){const M=b.every(M=>M.ctrl.idle);if("leave"==z.phase){const b=vp(t,z.item);if(!1!==b){const p=!0===b?0:b;if(z.expired=!0,!M&&p>0)return void(p<=2147483647&&(z.expirationId=setTimeout(N,p)))}}M&&b.some(M=>M.expired)&&(X.current.delete(z),r&&(y.current=!0),N())}};const l=Ro(M.ctrl,i);"leave"===A&&r?X.current.set(M,{phase:A,springs:l,payload:i}):v.set(M,{phase:A,springs:l,payload:i})});const x=a(No),w=function(M){const b=A(void 0);return n(()=>{b.current=M}),b.current}(x),T=x!==w&&function(M){for(const b in M)return!0;return!1}(x);tp(()=>{T&&Kb(u,M=>{M.ctrl.start({default:x})})},[x]),Kb(v,(M,b)=>{if(X.current.size){const M=u.findIndex(M=>M.key===b.key);u.splice(M,1)}}),tp(()=>{Kb(X.current.size?X.current:v,({phase:M,payload:b},z)=>{const{ctrl:p}=z;z.phase=M,l?.add(p),T&&"enter"==M&&p.start({default:x}),b&&(!function(M,b){b&&M.ref!==b&&(M.ref?.delete(M),b.add(M),M.ref=b)}(p,b.ref),!p.ref&&!l||y.current?(p.start(b),y.current&&(y.current=!1)):p.update(b))})},o?void 0:z);const _=M=>c.createElement(c.Fragment,null,u.map((b,z)=>{const{springs:p}=v.get(b)||b.ctrl,o=M({...p},b.item,b,z);return o&&o.type?c.createElement(o.type,{...o.props,key:Yb.str(b.key)||Yb.num(b.key)?b.key:b.ctrl.id,ref:o.ref}):o}));return l?[_,l]:_}var Xo=1;var yo=class extends zo{constructor(M,b){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=kz(...b);const z=this._get(),p=Lp(z);dp(this,p.create(z))}advance(M){const b=this._get();Gb(b,this.get())||(rp(this).setValue(b),this._onChange(b,this.idle)),!this.idle&&wo(this._active)&&To(this)}_get(){const M=Yb.arr(this.source)?this.source.map(Dz):Qb(Dz(this.source));return this.calc(...M)}_start(){this.idle&&!wo(this._active)&&(this.idle=!1,Kb(qp(this),M=>{M.done=!1}),jb.skipAnimation?(vb.batchedUpdates(()=>this.advance()),To(this)):iz.start(this))}_attach(){let M=1;Kb(Qb(this.source),b=>{Cz(b)&&Hz(b,this),Mo(b)&&(b.idle||this._active.add(b),M=Math.max(M,b.priority+1))}),this.priority=M,this._start()}_detach(){Kb(Qb(this.source),M=>{Cz(M)&&Uz(M,this)}),this._active.clear(),To(this)}eventObserved(M){"change"==M.type?M.idle?this.advance():(this._active.add(M.parent),this._start()):"idle"==M.type?this._active.delete(M.parent):"priority"==M.type&&(this.priority=Qb(this.source).reduce((M,b)=>Math.max(M,(Mo(b)?b.priority:0)+1),0))}};function xo(M){return!1!==M.idle}function wo(M){return!M.size||Array.from(M).every(xo)}function To(M){M.idle||(M.idle=!0,Kb(qp(M),M=>{M.done=!0}),Fz(M,{type:"idle",parent:M}))}jb.assign({createStringInterpolator:zp,to:(M,b)=>new yo(M,b)});var _o=/^--/;function ko(M,b){return null==b||"boolean"==typeof b||""===b?"":"number"!=typeof b||0===b||_o.test(M)||Eo.hasOwnProperty(M)&&Eo[M]?(""+b).trim():b+"px"}var So={};var Eo={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},Co=["Webkit","Ms","Moz","O"];Eo=Object.keys(Eo).reduce((M,b)=>(Co.forEach(z=>M[((M,b)=>M+b.charAt(0).toUpperCase()+b.substring(1))(z,b)]=M[b]),M),Eo);var Do=/^(matrix|translate|scale|rotate|skew)/,Po=/^(translate)/,Fo=/^(rotate|skew)/,Io=(M,b)=>Yb.num(M)&&0!==M?M+b:M,$o=(M,b)=>Yb.arr(M)?M.every(M=>$o(M,b)):Yb.num(M)?M===b:parseFloat(M)===b,Ho=class extends fp{constructor({x:M,y:b,z:z,...p}){const o=[],O=[];(M||b||z)&&(o.push([M||0,b||0,z||0]),O.push(M=>[`translate3d(${M.map(M=>Io(M,"px")).join(",")})`,$o(M,0)])),Jb(p,(M,b)=>{if("transform"===b)o.push([M||""]),O.push(M=>[M,""===M]);else if(Do.test(b)){if(delete p[b],Yb.und(M))return;const z=Po.test(b)?"px":Fo.test(b)?"deg":"";o.push(Qb(M)),O.push("rotate3d"===b?([M,b,p,o])=>[`rotate3d(${M},${b},${p},${Io(o,z)})`,$o(o,0)]:M=>[`${b}(${M.map(M=>Io(M,z)).join(",")})`,$o(M,b.startsWith("scale")?1:0)])}}),o.length&&(p.transform=new Uo(o,O)),super(p)}},Uo=class extends Iz{constructor(M,b){super(),this.inputs=M,this.transforms=b,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let M="",b=!0;return Kb(this.inputs,(z,p)=>{const o=Dz(z[0]),[O,c]=this.transforms[p](Yb.arr(o)?o:z.map(Dz));M+=" "+O,b=b&&c}),b?"none":M}observerAdded(M){1==M&&Kb(this.inputs,M=>Kb(M,M=>Cz(M)&&Hz(M,this)))}observerRemoved(M){0==M&&Kb(this.inputs,M=>Kb(M,M=>Cz(M)&&Uz(M,this)))}eventObserved(M){"change"==M.type&&(this._value=null),Fz(this,M)}};jb.assign({batchedUpdates:N,createStringInterpolator:zp,colors:{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}});var jo=((M,{applyAnimatedValues:b=()=>!1,createAnimatedStyle:z=M=>new fp(M),getComponentProps:p=M=>M}={})=>{const o={applyAnimatedValues:b,createAnimatedStyle:z,getComponentProps:p},O=M=>{const b=Bp(M)||"Anonymous";return(M=Yb.str(M)?O[M]||(O[M]=mp(M,o)):M[Np]||(M[Np]=mp(M,o))).displayName=`Animated(${b})`,M};return Jb(M,(b,z)=>{Yb.arr(M)&&(z=Bp(b)),O[z]=O(b)}),{animated:O}})(["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"],{applyAnimatedValues:function(M,b){if(!M.nodeType||!M.setAttribute)return!1;const z="filter"===M.nodeName||M.parentNode&&"filter"===M.parentNode.nodeName,{className:p,style:o,children:O,scrollTop:c,scrollLeft:e,viewBox:t,...n}=b,A=Object.values(n),a=Object.keys(n).map(b=>z||M.hasAttribute(b)?b:So[b]||(So[b]=b.replace(/([A-Z])/g,M=>"-"+M.toLowerCase())));void 0!==O&&(M.textContent=O);for(const b in o)if(o.hasOwnProperty(b)){const z=ko(b,o[b]);_o.test(b)?M.style.setProperty(b,z):M.style[b]=z}a.forEach((b,z)=>{M.setAttribute(b,A[z])}),void 0!==p&&(M.className=p),void 0!==c&&(M.scrollTop=c),void 0!==e&&(M.scrollLeft=e),void 0!==t&&M.setAttribute("viewBox",t)},createAnimatedStyle:M=>new Ho(M),getComponentProps:({scrollTop:M,scrollLeft:b,...z})=>z}),Vo=jo.animated;const Yo=_(Vo.div)`
|
|
1276
|
+
`,ob="itd-modal-root",Ob=({onShowModal:M,onHideModal:b,onRemoveModal:z,onModalEvent:o,modals:c,visibleModals:e,modalEvent:a})=>{const[i,r]=t(null);n(()=>{if(c.length>0&&!i){if(!document.getElementById(ob)){let M=document.createElement("div");M.id=ob,M.style.cssText="position:absolute;z-index:5",document.body.appendChild(M),r(M)}}else if(0===c.length&&0===e.length&&i)try{document.body.removeChild(i),r(null)}catch(M){}},[c,e,i]);const d=A(null),q=A(null);n(()=>{const M=document.documentElement;if(e.length>0){if(null===d.current&&(d.current=M.style.overflowY||""),null===q.current){q.current=M.style.paddingRight||"";const b=window.innerWidth-M.clientWidth;if(b>0){const z=parseFloat(window.getComputedStyle(M).paddingRight||"0")||0;M.style.paddingRight=`${z+b}px`}}M.style.overflowY="hidden"}else null!==d.current&&(M.style.overflowY=d.current,d.current=null),null!==q.current?(M.style.paddingRight=q.current,q.current=null):(M.style.overflowY="",M.style.paddingRight="");return()=>{null!==d.current&&0===e.length&&(M.style.overflowY=d.current,d.current=null),null!==q.current&&0===e.length&&(M.style.paddingRight=q.current,q.current=null)}},[e.length]);const s=(M,b)=>{o(M,b)},l=b=>{M(b)},W=M=>{b(M)},u=M=>p(bb,{onShowModal:l,onHideModal:()=>((M="")=>{setTimeout(()=>z(M),250)})(M.id),onRemoveModal:z,onModalEvent:s,isActive:c[c.length-1].id===M.id,modalEvent:a,hideModalFromProvider:W,isVisible:e.includes(String(M.id)),...M},M.id);return i?g(p("div",{children:c.map(M=>{const b=e.includes(String(M.id));return O(zb,{id:M.id,className:"itd-modal",children:[p(pb,{className:"itd-modal-overlay",$show:b}),u(M)]},M.id)})}),i):null},cb=s({});cb.displayName="ITDModalContext";var eb="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},tb="object"==typeof eb&&eb&&eb.Object===Object&&eb,nb="object"==typeof self&&self&&self.Object===Object&&self,Ab=(tb||nb||Function("return this")()).Symbol;var ab=Array.isArray,ib=Object.prototype,rb=ib.hasOwnProperty,db=ib.toString,qb=Ab?Ab.toStringTag:void 0;var sb=Object.prototype.toString;var lb=Ab?Ab.toStringTag:void 0;function Wb(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":lb&&lb in Object(M)?function(M){var b=rb.call(M,qb),z=M[qb];try{M[qb]=void 0;var p=!0}catch(M){}var o=db.call(M);return p&&(b?M[qb]=z:delete M[qb]),o}(M):function(M){return sb.call(M)}(M)}var ub=Ab?Ab.prototype:void 0,fb=ub?ub.toString:void 0;function hb(M){if("string"==typeof M)return M;if(ab(M))return function(M,b){for(var z=-1,p=null==M?0:M.length,o=Array(p);++z<p;)o[z]=b(M[z],z,M);return o}(M,hb)+"";if(function(M){return"symbol"==typeof M||function(M){return null!=M&&"object"==typeof M}(M)&&"[object Symbol]"==Wb(M)}(M))return fb?fb.call(M):"";var b=M+"";return"0"==b&&1/M==-1/0?"-0":b}var Rb=0;function Lb(M){var b,z=++Rb;return(null==(b=M)?"":hb(b))+z}const mb={id:"",className:"",title:null,width:"500px",closeOnClickOutside:!0,preventESC:!1,removeOthers:!1,showOkButton:!0,showCancelButton:!0,showCloseButton:!0,okButtonText:"OK",cancelButtonText:"Cancel",okButtonProps:null,cancelButtonProps:null,customProps:{},context:{},onOk:null,onCancel:null,useRef:!1,checkAutoRef:!1,content:null,outerPadding:"50px",contentPadding:"30px 20px",beforeContentPadding:"30px 20px 0",afterContentPadding:"0 20px 30px",addContentAfter:null,addContentBefore:null,onShow:null,onExit:null},gb=({children:M})=>{const[b,z]=t([]),[o,c]=t([]),[e,n]=t({event:C.NOT_SHOW,id:""}),A=(M,b)=>{M!==C.NOT_SHOW&&n({event:M,id:b})},a=l(M=>{const p={...mb,...M};""===p.id&&(p.id=Lb("itd-modal-")),z(p.removeOthers?[p]:[...b,p]),c(p.removeOthers?[p.id]:[...o,p.id])},[b]),i=l(M=>{const p=o.findIndex(b=>b===M);if(-1!==p){const M=[...o.slice(0,p),...o.slice(p+1)];c(M)}const O=b.findIndex(b=>b.id===M);if(-1!==O){const M=[...b.slice(0,O),...b.slice(O+1)];z(M)}},[b,o]),r=l(M=>{const b=o.findIndex(b=>b===M);if(-1!==b){const M=[...o.slice(0,b),...o.slice(b+1)];c(M)}},[o]);return O(cb.Provider,{value:{showModal:a,hideModal:r,removeModal:i,removeAllModals:()=>{c([]),z([]),A(C.ALL_REMOVED,"")},modalEvent:e,isVisible:M=>o.includes(M)},children:[M,p(Ob,{onShowModal:a,onHideModal:r,onRemoveModal:i,onModalEvent:A,modals:b,visibleModals:o,modalEvent:e})]})},Nb={useModal:()=>a(cb)};var Bb=$b(),vb=M=>Db(M,Bb),Xb=$b();vb.write=M=>Db(M,Xb);var yb=$b();vb.onStart=M=>Db(M,yb);var xb=$b();vb.onFrame=M=>Db(M,xb);var wb=$b();vb.onFinish=M=>Db(M,wb);var Tb=[];vb.setTimeout=(M,b)=>{const z=vb.now()+b,p=()=>{const M=Tb.findIndex(M=>M.cancel==p);~M&&Tb.splice(M,1),Eb-=~M?1:0},o={time:z,handler:M,cancel:p};return Tb.splice(_b(z),0,o),Eb+=1,Pb(),o};var _b=M=>~(~Tb.findIndex(b=>b.time>M)||~Tb.length);vb.cancel=M=>{yb.delete(M),xb.delete(M),wb.delete(M),Bb.delete(M),Xb.delete(M)},vb.sync=M=>{Cb=!0,vb.batchedUpdates(M),Cb=!1},vb.throttle=M=>{let b;function z(){try{M(...b)}finally{b=null}}function p(...M){b=M,vb.onStart(z)}return p.handler=M,p.cancel=()=>{yb.delete(z),b=null},p};var kb="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vb.use=M=>kb=M,vb.now="undefined"!=typeof performance?()=>performance.now():Date.now,vb.batchedUpdates=M=>M(),vb.catch=console.error,vb.frameLoop="always",vb.advance=()=>{"demand"!==vb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ib()};var Sb=-1,Eb=0,Cb=!1;function Db(M,b){Cb?(b.delete(M),M(0)):(b.add(M),Pb())}function Pb(){Sb<0&&(Sb=0,"demand"!==vb.frameLoop&&kb(Fb))}function Fb(){~Sb&&(kb(Fb),vb.batchedUpdates(Ib))}function Ib(){const M=Sb;Sb=vb.now();const b=_b(Sb);b&&(Hb(Tb.splice(0,b),M=>M.handler()),Eb-=b),Eb?(yb.flush(),Bb.flush(M?Math.min(64,Sb-M):16.667),xb.flush(),Xb.flush(),wb.flush()):Sb=-1}function $b(){let M=new Set,b=M;return{add(z){Eb+=b!=M||M.has(z)?0:1,M.add(z)},delete:z=>(Eb-=b==M&&M.has(z)?1:0,M.delete(z)),flush(z){b.size&&(M=new Set,Eb-=b.size,Hb(b,b=>b(z)&&M.add(b)),Eb+=M.size,b=M)}}}function Hb(M,b){M.forEach(M=>{try{b(M)}catch(M){vb.catch(M)}})}var Ub=Object.defineProperty,jb={};function Vb(){}((M,b)=>{for(var z in b)Ub(M,z,{get:b[z],enumerable:!0})})(jb,{assign:()=>ez,colors:()=>oz,createStringInterpolator:()=>Mz,skipAnimation:()=>Oz,to:()=>bz,willAdvance:()=>cz});var Yb={arr:Array.isArray,obj:M=>!!M&&"Object"===M.constructor.name,fun:M=>"function"==typeof M,str:M=>"string"==typeof M,num:M=>"number"==typeof M,und:M=>void 0===M};function Gb(M,b){if(Yb.arr(M)){if(!Yb.arr(b)||M.length!==b.length)return!1;for(let z=0;z<M.length;z++)if(M[z]!==b[z])return!1;return!0}return M===b}var Kb=(M,b)=>M.forEach(b);function Jb(M,b,z){if(Yb.arr(M))for(let p=0;p<M.length;p++)b.call(z,M[p],`${p}`);else for(const p in M)M.hasOwnProperty(p)&&b.call(z,M[p],p)}var Qb=M=>Yb.und(M)?[]:Yb.arr(M)?M:[M];function Zb(M,b){if(M.size){const z=Array.from(M);M.clear(),Kb(z,b)}}var Mz,bz,zz=(M,...b)=>Zb(M,M=>M(...b)),pz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),oz=null,Oz=!1,cz=Vb,ez=M=>{M.to&&(bz=M.to),M.now&&(vb.now=M.now),void 0!==M.colors&&(oz=M.colors),null!=M.skipAnimation&&(Oz=M.skipAnimation),M.createStringInterpolator&&(Mz=M.createStringInterpolator),M.requestAnimationFrame&&vb.use(M.requestAnimationFrame),M.batchedUpdates&&(vb.batchedUpdates=M.batchedUpdates),M.willAdvance&&(cz=M.willAdvance),M.frameLoop&&(vb.frameLoop=M.frameLoop)},tz=new Set,nz=[],Az=[],az=0,iz={get idle(){return!tz.size&&!nz.length},start(M){az>M.priority?(tz.add(M),vb.onStart(rz)):(dz(M),vb(sz))},advance:sz,sort(M){if(az)vb.onFrame(()=>iz.sort(M));else{const b=nz.indexOf(M);~b&&(nz.splice(b,1),qz(M))}},clear(){nz=[],tz.clear()}};function rz(){tz.forEach(dz),tz.clear(),vb(sz)}function dz(M){nz.includes(M)||qz(M)}function qz(M){nz.splice(function(M,b){const z=M.findIndex(b);return z<0?M.length:z}(nz,b=>b.priority>M.priority),0,M)}function sz(M){const b=Az;for(let z=0;z<nz.length;z++){const p=nz[z];az=p.priority,p.idle||(cz(p),p.advance(M),p.idle||b.push(p))}return az=0,(Az=nz).length=0,(nz=b).length>0}var lz="[-+]?\\d*\\.?\\d+",Wz=lz+"%";function uz(...M){return"\\(\\s*("+M.join(")\\s*,\\s*(")+")\\s*\\)"}var fz=new RegExp("rgb"+uz(lz,lz,lz)),hz=new RegExp("rgba"+uz(lz,lz,lz,lz)),Rz=new RegExp("hsl"+uz(lz,Wz,Wz)),Lz=new RegExp("hsla"+uz(lz,Wz,Wz,lz)),mz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nz=/^#([0-9a-fA-F]{6})$/,Bz=/^#([0-9a-fA-F]{8})$/;function vz(M,b,z){return z<0&&(z+=1),z>1&&(z-=1),z<1/6?M+6*(b-M)*z:z<.5?b:z<2/3?M+(b-M)*(2/3-z)*6:M}function Xz(M,b,z){const p=z<.5?z*(1+b):z+b-z*b,o=2*z-p,O=vz(o,p,M+1/3),c=vz(o,p,M),e=vz(o,p,M-1/3);return Math.round(255*O)<<24|Math.round(255*c)<<16|Math.round(255*e)<<8}function yz(M){const b=parseInt(M,10);return b<0?0:b>255?255:b}function xz(M){return(parseFloat(M)%360+360)%360/360}function wz(M){const b=parseFloat(M);return b<0?0:b>1?255:Math.round(255*b)}function Tz(M){const b=parseFloat(M);return b<0?0:b>100?1:b/100}function _z(M){let b=function(M){let b;return"number"==typeof M?M>>>0===M&&M>=0&&M<=4294967295?M:null:(b=Nz.exec(M))?parseInt(b[1]+"ff",16)>>>0:oz&&void 0!==oz[M]?oz[M]:(b=fz.exec(M))?(yz(b[1])<<24|yz(b[2])<<16|yz(b[3])<<8|255)>>>0:(b=hz.exec(M))?(yz(b[1])<<24|yz(b[2])<<16|yz(b[3])<<8|wz(b[4]))>>>0:(b=mz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+"ff",16)>>>0:(b=Bz.exec(M))?parseInt(b[1],16)>>>0:(b=gz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=Rz.exec(M))?(255|Xz(xz(b[1]),Tz(b[2]),Tz(b[3])))>>>0:(b=Lz.exec(M))?(Xz(xz(b[1]),Tz(b[2]),Tz(b[3]))|wz(b[4]))>>>0:null}(M);if(null===b)return M;b=b||0;return`rgba(${(4278190080&b)>>>24}, ${(16711680&b)>>>16}, ${(65280&b)>>>8}, ${(255&b)/255})`}var kz=(M,b,z)=>{if(Yb.fun(M))return M;if(Yb.arr(M))return kz({range:M,output:b,extrapolate:z});if(Yb.str(M.output[0]))return Mz(M);const p=M,o=p.output,O=p.range||[0,1],c=p.extrapolateLeft||p.extrapolate||"extend",e=p.extrapolateRight||p.extrapolate||"extend",t=p.easing||(M=>M);return M=>{const b=function(M,b){for(var z=1;z<b.length-1&&!(b[z]>=M);++z);return z-1}(M,O);return function(M,b,z,p,o,O,c,e,t){let n=t?t(M):M;if(n<b){if("identity"===c)return n;"clamp"===c&&(n=b)}if(n>z){if("identity"===e)return n;"clamp"===e&&(n=z)}if(p===o)return p;if(b===z)return M<=b?p:o;b===-1/0?n=-n:z===1/0?n-=b:n=(n-b)/(z-b);n=O(n),p===-1/0?n=-n:o===1/0?n+=p:n=n*(o-p)+p;return n}(M,O[b],O[b+1],o[b],o[b+1],t,c,e,p.map)}};var Sz=Symbol.for("FluidValue.get"),Ez=Symbol.for("FluidValue.observers"),Cz=M=>Boolean(M&&M[Sz]),Dz=M=>M&&M[Sz]?M[Sz]():M,Pz=M=>M[Ez]||null;function Fz(M,b){const z=M[Ez];z&&z.forEach(M=>{!function(M,b){M.eventObserved?M.eventObserved(b):M(b)}(M,b)})}var Iz=class{constructor(M){if(!M&&!(M=this.get))throw Error("Unknown getter");$z(this,M)}},$z=(M,b)=>Vz(M,Sz,b);function Hz(M,b){if(M[Sz]){let z=M[Ez];z||Vz(M,Ez,z=new Set),z.has(b)||(z.add(b),M.observerAdded&&M.observerAdded(z.size,b))}return b}function Uz(M,b){const z=M[Ez];if(z&&z.has(b)){const p=z.size-1;p?z.delete(b):M[Ez]=null,M.observerRemoved&&M.observerRemoved(p,b)}}var jz,Vz=(M,b,z)=>Object.defineProperty(M,b,{value:z,writable:!0,configurable:!0}),Yz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Kz=new RegExp(`(${Yz.source})(%|[a-z]+)`,"i"),Jz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Qz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Zz=M=>{const[b,z]=Mp(M);if(!b||pz())return M;const p=window.getComputedStyle(document.documentElement).getPropertyValue(b);if(p)return p.trim();if(z&&z.startsWith("--")){const b=window.getComputedStyle(document.documentElement).getPropertyValue(z);return b||M}return z&&Qz.test(z)?Zz(z):z||M},Mp=M=>{const b=Qz.exec(M);if(!b)return[,];const[,z,p]=b;return[z,p]},bp=(M,b,z,p,o)=>`rgba(${Math.round(b)}, ${Math.round(z)}, ${Math.round(p)}, ${o})`,zp=M=>{jz||(jz=oz?new RegExp(`(${Object.keys(oz).join("|")})(?!\\w)`,"g"):/^\b$/);const b=M.output.map(M=>Dz(M).replace(Qz,Zz).replace(Gz,_z).replace(jz,_z)),z=b.map(M=>M.match(Yz).map(Number)),p=z[0].map((M,b)=>z.map(M=>{if(!(b in M))throw Error('The arity of each "output" value must be equal');return M[b]})),o=p.map(b=>kz({...M,output:b}));return M=>{const z=!Kz.test(b[0])&&b.find(M=>Kz.test(M))?.replace(Yz,"");let p=0;return b[0].replace(Yz,()=>`${o[p++](M)}${z||""}`).replace(Jz,bp)}},pp="react-spring: ",op=M=>{const b=M;let z=!1;if("function"!=typeof b)throw new TypeError(`${pp}once requires a function parameter`);return(...M)=>{z||(b(...M),z=!0)}},Op=op(console.warn);var cp=op(console.warn);function ep(M){return Yb.str(M)&&("#"==M[0]||/\d/.test(M)||!pz()&&Qz.test(M)||M in(oz||{}))}var tp=pz()?n:W;function np(){const M=t()[1],b=(()=>{const M=A(!1);return tp(()=>(M.current=!0,()=>{M.current=!1}),[]),M})();return()=>{b.current&&M(Math.random())}}var Ap=M=>n(M,ap),ap=[];var ip=Symbol.for("Animated:node"),rp=M=>M&&M[ip],dp=(M,b)=>{return z=M,p=ip,o=b,Object.defineProperty(z,p,{value:o,writable:!0,configurable:!0});var z,p,o},qp=M=>M&&M[ip]&&M[ip].getPayload(),sp=class{constructor(){dp(this,this)}getPayload(){return this.payload||[]}},lp=class M extends sp{constructor(M){super(),this._value=M,this.done=!0,this.durationProgress=0,Yb.num(this._value)&&(this.lastPosition=this._value)}static create(b){return new M(b)}getPayload(){return[this]}getValue(){return this._value}setValue(M,b){return Yb.num(M)&&(this.lastPosition=M,b&&(M=Math.round(M/b)*b,this.done&&(this.lastPosition=M))),this._value!==M&&(this._value=M,!0)}reset(){const{done:M}=this;this.done=!1,Yb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,M&&(this.lastVelocity=null),this.v0=null)}},Wp=class M extends lp{constructor(M){super(0),this._string=null,this._toString=kz({output:[M,M]})}static create(b){return new M(b)}getValue(){const M=this._string;return null==M?this._string=this._toString(this._value):M}setValue(M){if(Yb.str(M)){if(M==this._string)return!1;this._string=M,this._value=1}else{if(!super.setValue(M))return!1;this._string=null}return!0}reset(M){M&&(this._toString=kz({output:[this.getValue(),M]})),this._value=0,super.reset()}},up={dependencies:null},fp=class extends sp{constructor(M){super(),this.source=M,this.setValue(M)}getValue(M){const b={};return Jb(this.source,(z,p)=>{var o;(o=z)&&o[ip]===o?b[p]=z.getValue(M):Cz(z)?b[p]=Dz(z):M||(b[p]=z)}),b}setValue(M){this.source=M,this.payload=this._makePayload(M)}reset(){this.payload&&Kb(this.payload,M=>M.reset())}_makePayload(M){if(M){const b=new Set;return Jb(M,this._addToPayload,b),Array.from(b)}}_addToPayload(M){up.dependencies&&Cz(M)&&up.dependencies.add(M);const b=qp(M);b&&Kb(b,M=>this.add(M))}},hp=class M extends fp{constructor(M){super(M)}static create(b){return new M(b)}getValue(){return this.source.map(M=>M.getValue())}setValue(M){const b=this.getPayload();return M.length==b.length?b.map((b,z)=>b.setValue(M[z])).some(Boolean):(super.setValue(M.map(Rp)),!0)}};function Rp(M){return(ep(M)?Wp:lp).create(M)}function Lp(M){const b=rp(M);return b?b.constructor:Yb.arr(M)?hp:ep(M)?Wp:lp}var mp=(M,b)=>{const z=!Yb.fun(M)||M.prototype&&M.prototype.isReactComponent;return u((p,o)=>{const O=A(null),e=z&&l(M=>{O.current=function(M,b){M&&(Yb.fun(M)?M(b):M.current=b);return b}(o,M)},[o]),[t,a]=function(M,b){const z=new Set;up.dependencies=z,M.style&&(M={...M,style:b.createAnimatedStyle(M.style)});return M=new fp(M),up.dependencies=null,[M,z]}(p,b),i=np(),r=()=>{const M=O.current;if(z&&!M)return;!1===(!!M&&b.applyAnimatedValues(M,t.getValue(!0)))&&i()},d=new gp(r,a),q=A(void 0);tp(()=>(q.current=d,Kb(a,M=>Hz(M,d)),()=>{q.current&&(Kb(q.current.deps,M=>Uz(M,q.current)),vb.cancel(q.current.update))})),n(r,[]),Ap(()=>()=>{const M=q.current;Kb(M.deps,b=>Uz(b,M))});const s=b.getComponentProps(t.getValue());return c.createElement(M,{...s,ref:e})})},gp=class{constructor(M,b){this.update=M,this.deps=b}eventObserved(M){"change"==M.type&&vb.write(this.update)}};var Np=Symbol.for("AnimatedComponent"),Bp=M=>Yb.str(M)?M:M&&Yb.str(M.displayName)?M.displayName:Yb.fun(M)&&M.name||null;function vp(M,...b){return Yb.fun(M)?M(...b):M}var Xp=(M,b)=>!0===M||!!(b&&M&&(Yb.fun(M)?M(b):Qb(M).includes(b))),yp=(M,b)=>Yb.obj(M)?b&&M[b]:M,xp=(M,b)=>!0===M.default?M[b]:M.default?M.default[b]:void 0,wp=M=>M,Tp=(M,b=wp)=>{let z=_p;M.default&&!0!==M.default&&(M=M.default,z=Object.keys(M));const p={};for(const o of z){const z=b(M[o],o);Yb.und(z)||(p[o]=z)}return p},_p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],kp={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 Sp(M){const b=function(M){const b={};let z=0;if(Jb(M,(M,p)=>{kp[p]||(b[p]=M,z++)}),z)return b}(M);if(b){const z={to:b};return Jb(M,(M,p)=>p in b||(z[p]=M)),z}return{...M}}function Ep(M){return M=Dz(M),Yb.arr(M)?M.map(Ep):ep(M)?jb.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function Cp(M){return Yb.fun(M)||Yb.arr(M)&&Yb.obj(M[0])}function Dp(M,b){M.ref?.delete(M),b?.delete(M)}var Pp={tension:170,friction:26,mass:1,damping:1,easing:M=>M,clamp:!1},Fp=class{constructor(){this.velocity=0,Object.assign(this,Pp)}};function Ip(M,b){if(Yb.und(b.decay)){const z=!Yb.und(b.tension)||!Yb.und(b.friction);!z&&Yb.und(b.frequency)&&Yb.und(b.damping)&&Yb.und(b.mass)||(M.duration=void 0,M.decay=void 0),z&&(M.frequency=void 0)}else M.duration=void 0}var $p=[],Hp=class{constructor(){this.changed=!1,this.values=$p,this.toValues=null,this.fromValues=$p,this.config=new Fp,this.immediate=!1}};function Up(M,{key:b,props:z,defaultProps:p,state:o,actions:O}){return new Promise((c,e)=>{let t,n,A=Xp(z.cancel??p?.cancel,b);if(A)r();else{Yb.und(z.pause)||(o.paused=Xp(z.pause,b));let M=p?.pause;!0!==M&&(M=o.paused||Xp(M,b)),t=vp(z.delay||0,b),M?(o.resumeQueue.add(i),O.pause()):(O.resume(),i())}function a(){o.resumeQueue.add(i),o.timeouts.delete(n),n.cancel(),t=n.time-vb.now()}function i(){t>0&&!jb.skipAnimation?(o.delayed=!0,n=vb.setTimeout(r,t),o.pauseQueue.add(a),o.timeouts.add(n)):r()}function r(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(a),o.timeouts.delete(n),M<=(o.cancelId||0)&&(A=!0);try{O.start({...z,callId:M,cancel:A},c)}catch(M){e(M)}}})}var jp=(M,b)=>1==b.length?b[0]:b.some(M=>M.cancelled)?Gp(M.get()):b.every(M=>M.noop)?Vp(M.get()):Yp(M.get(),b.every(M=>M.finished)),Vp=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Yp=(M,b,z=!1)=>({value:M,finished:b,cancelled:z}),Gp=M=>({value:M,cancelled:!0,finished:!1});function Kp(M,b,z,p){const{callId:o,parentId:O,onRest:c}=b,{asyncTo:e,promise:t}=z;return O||M!==e||b.reset?z.promise=(async()=>{z.asyncId=o,z.asyncTo=M;const n=Tp(b,(M,b)=>"onRest"===b?void 0:M);let A,a;const i=new Promise((M,b)=>(A=M,a=b)),r=M=>{const b=o<=(z.cancelId||0)&&Gp(p)||o!==z.asyncId&&Yp(p,!1);if(b)throw M.result=b,a(M),M},d=(M,b)=>{const O=new Qp,c=new Zp;return(async()=>{if(jb.skipAnimation)throw Jp(z),c.result=Yp(p,!1),a(c),c;r(O);const e=Yb.obj(M)?{...M}:{...b,to:M};e.parentId=o,Jb(n,(M,b)=>{Yb.und(e[b])&&(e[b]=M)});const t=await p.start(e);return r(O),z.paused&&await new Promise(M=>{z.resumeQueue.add(M)}),t})()};let q;if(jb.skipAnimation)return Jp(z),Yp(p,!1);try{let b;b=Yb.arr(M)?(async M=>{for(const b of M)await d(b)})(M):Promise.resolve(M(d,p.stop.bind(p))),await Promise.all([b.then(A),i]),q=Yp(p.get(),!0,!1)}catch(M){if(M instanceof Qp)q=M.result;else{if(!(M instanceof Zp))throw M;q=M.result}}finally{o==z.asyncId&&(z.asyncId=O,z.asyncTo=O?e:void 0,z.promise=O?t:void 0)}return Yb.fun(c)&&vb.batchedUpdates(()=>{c(q,p,p.item)}),q})():t}function Jp(M,b){Zb(M.timeouts,M=>M.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,b&&(M.cancelId=b)}var Qp=class 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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Mo=M=>M instanceof zo,bo=1,zo=class extends Iz{constructor(){super(...arguments),this.id=bo++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){const M=rp(this);return M&&M.getValue()}to(...M){return jb.to(this,M)}interpolate(...M){return Op(`${pp}The "interpolate" function is deprecated in v9 (use "to" instead)`),jb.to(this,M)}toJSON(){return this.get()}observerAdded(M){1==M&&this._attach()}observerRemoved(M){0==M&&this._detach()}_attach(){}_detach(){}_onChange(M,b=!1){Fz(this,{type:"change",parent:this,value:M,idle:b})}_onPriorityChange(M){this.idle||iz.sort(this),Fz(this,{type:"priority",parent:this,priority:M})}},po=Symbol.for("SpringPhase"),oo=M=>(1&M[po])>0,Oo=M=>(2&M[po])>0,co=M=>(4&M[po])>0,eo=(M,b)=>b?M[po]|=3:M[po]&=-3,to=(M,b)=>b?M[po]|=4:M[po]&=-5,no=class extends zo{constructor(M,b){if(super(),this.animation=new Hp,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,!Yb.und(M)||!Yb.und(b)){const z=Yb.obj(M)?{...M}:{...b,from:M};Yb.und(z.default)&&(z.default=!0),this.start(z)}}get idle(){return!(Oo(this)||this._state.asyncTo)||co(this)}get goal(){return Dz(this.animation.to)}get velocity(){const M=rp(this);return M instanceof lp?M.lastVelocity||0:M.getPayload().map(M=>M.lastVelocity||0)}get hasAnimated(){return oo(this)}get isAnimating(){return Oo(this)}get isPaused(){return co(this)}get isDelayed(){return this._state.delayed}advance(M){let b=!0,z=!1;const p=this.animation;let{toValues:o}=p;const{config:O}=p,c=qp(p.to);!c&&Cz(p.to)&&(o=Qb(Dz(p.to))),p.values.forEach((e,t)=>{if(e.done)return;const n=e.constructor==Wp?1:c?c[t].lastPosition:o[t];let A=p.immediate,a=n;if(!A){if(a=e.lastPosition,O.tension<=0)return void(e.done=!0);let b=e.elapsedTime+=M;const z=p.fromValues[t],o=null!=e.v0?e.v0:e.v0=Yb.arr(O.velocity)?O.velocity[t]:O.velocity;let c;const i=O.precision||(z==n?.005:Math.min(1,.001*Math.abs(n-z)));if(Yb.und(O.duration))if(O.decay){const M=!0===O.decay?.998:O.decay,p=Math.exp(-(1-M)*b);a=z+o/(1-M)*(1-p),A=Math.abs(e.lastPosition-a)<=i,c=o*p}else{c=null==e.lastVelocity?o:e.lastVelocity;const b=O.restVelocity||i/10,p=O.clamp?0:O.bounce,t=!Yb.und(p),r=z==n?e.v0>0:z<n;let d,q=!1;const s=1,l=Math.ceil(M/s);for(let M=0;M<l&&(d=Math.abs(c)>b,d||(A=Math.abs(n-a)<=i,!A));++M){t&&(q=a==n||a>n==r,q&&(c=-c*p,a=n));c+=(1e-6*-O.tension*(a-n)+.001*-O.friction*c)/O.mass*s,a+=c*s}}else{let p=1;O.duration>0&&(this._memoizedDuration!==O.duration&&(this._memoizedDuration=O.duration,e.durationProgress>0&&(e.elapsedTime=O.duration*e.durationProgress,b=e.elapsedTime+=M)),p=(O.progress||0)+b/this._memoizedDuration,p=p>1?1:p<0?0:p,e.durationProgress=p),a=z+O.easing(p)*(n-z),c=(a-e.lastPosition)/M,A=1==p}e.lastVelocity=c,Number.isNaN(a)&&(console.warn("Got NaN while animating:",this),A=!0)}c&&!c[t].done&&(A=!1),A?e.done=!0:b=!1,e.setValue(a,O.round)&&(z=!0)});const e=rp(this),t=e.getValue();if(b){const M=Dz(p.to);t===M&&!z||O.decay?z&&O.decay&&this._onChange(t):(e.setValue(M),this._onChange(M)),this._stop()}else z&&this._onChange(t)}set(M){return vb.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Oo(this)){const{to:M,config:b}=this.animation;vb.batchedUpdates(()=>{this._onStart(),b.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,b){let z;return Yb.und(M)?(z=this.queue||[],this.queue=[]):z=[Yb.obj(M)?M:{...b,to:M}],Promise.all(z.map(M=>this._update(M))).then(M=>jp(this,M))}stop(M){const{to:b}=this.animation;return this._focus(this.get()),Jp(this._state,M&&this._lastCallId),vb.batchedUpdates(()=>this._stop(b,M)),this}reset(){this._update({reset:!0})}eventObserved(M){"change"==M.type?this._start():"priority"==M.type&&(this.priority=M.priority+1)}_prepareNode(M){const b=this.key||"";let{to:z,from:p}=M;z=Yb.obj(z)?z[b]:z,(null==z||Cp(z))&&(z=void 0),p=Yb.obj(p)?p[b]:p,null==p&&(p=void 0);const o={to:z,from:p};return oo(this)||(M.reverse&&([z,p]=[p,z]),p=Dz(p),Yb.und(p)?rp(this)||this._set(z):this._set(p)),o}_update({...M},b){const{key:z,defaultProps:p}=this;M.default&&Object.assign(p,Tp(M,(M,b)=>/^on/.test(b)?yp(M,z):M)),so(this,M,"onProps"),lo(this,"onProps",M,this);const o=this._prepareNode(M);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 O=this._state;return Up(++this._lastCallId,{key:z,props:M,defaultProps:p,state:O,actions:{pause:()=>{co(this)||(to(this,!0),zz(O.pauseQueue),lo(this,"onPause",Yp(this,Ao(this,this.animation.to)),this))},resume:()=>{co(this)&&(to(this,!1),Oo(this)&&this._resume(),zz(O.resumeQueue),lo(this,"onResume",Yp(this,Ao(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(z=>{if(M.loop&&z.finished&&(!b||!z.noop)){const b=ao(M);if(b)return this._update(b,!0)}return z})}_merge(M,b,z){if(b.cancel)return this.stop(!0),z(Gp(this));const p=!Yb.und(M.to),o=!Yb.und(M.from);if(p||o){if(!(b.callId>this._lastToId))return z(Gp(this));this._lastToId=b.callId}const{key:O,defaultProps:c,animation:e}=this,{to:t,from:n}=e;let{to:A=t,from:a=n}=M;!o||p||b.default&&!Yb.und(A)||(A=a),b.reverse&&([A,a]=[a,A]);const i=!Gb(a,n);i&&(e.from=a),a=Dz(a);const r=!Gb(A,t);r&&this._focus(A);const d=Cp(b.to),{config:q}=e,{decay:s,velocity:l}=q;(p||o)&&(q.velocity=0),b.config&&!d&&function(M,b,z){z&&(Ip(z={...z},b),b={...z,...b}),Ip(M,b),Object.assign(M,b);for(const b in Pp)null==M[b]&&(M[b]=Pp[b]);let{frequency:p,damping:o}=M;const{mass:O}=M;Yb.und(p)||(p<.01&&(p=.01),o<0&&(o=0),M.tension=Math.pow(2*Math.PI/p,2)*O,M.friction=4*Math.PI*o*O/p)}(q,vp(b.config,O),b.config!==c.config?vp(c.config,O):void 0);let W=rp(this);if(!W||Yb.und(A))return z(Yp(this,!0));const u=Yb.und(b.reset)?o&&!b.default:!Yb.und(a)&&Xp(b.reset,O),f=u?a:this.get(),h=Ep(A),R=Yb.num(h)||Yb.arr(h)||ep(h),L=!d&&(!R||Xp(c.immediate||b.immediate,O));if(r){const M=Lp(A);if(M!==W.constructor){if(!L)throw Error(`Cannot animate between ${W.constructor.name} and ${M.name}, as the "to" prop suggests`);W=this._set(h)}}const m=W.constructor;let g=Cz(A),N=!1;if(!g){const M=u||!oo(this)&&i;(r||M)&&(N=Gb(Ep(f),h),g=!N),(Gb(e.immediate,L)||L)&&Gb(q.decay,s)&&Gb(q.velocity,l)||(g=!0)}if(N&&Oo(this)&&(e.changed&&!u?g=!0:g||this._stop(t)),!d&&((g||Cz(t))&&(e.values=W.getPayload(),e.toValues=Cz(A)?null:m==Wp?[1]:Qb(h)),e.immediate!=L&&(e.immediate=L,L||u||this._set(t)),g)){const{onRest:M}=e;Kb(qo,M=>so(this,b,M));const p=Yp(this,Ao(this,t));zz(this._pendingCalls,p),this._pendingCalls.add(z),e.changed&&vb.batchedUpdates(()=>{e.changed=!u,M?.(p,this),u?vp(c.onRest,p):e.onStart?.(p,this)})}u&&this._set(f),d?z(Kp(b.to,b,this._state,this)):g?this._start():Oo(this)&&!r?this._pendingCalls.add(z):z(Vp(f))}_focus(M){const b=this.animation;M!==b.to&&(Pz(this)&&this._detach(),b.to=M,Pz(this)&&this._attach())}_attach(){let M=0;const{to:b}=this.animation;Cz(b)&&(Hz(b,this),Mo(b)&&(M=b.priority+1)),this.priority=M}_detach(){const{to:M}=this.animation;Cz(M)&&Uz(M,this)}_set(M,b=!0){const z=Dz(M);if(!Yb.und(z)){const M=rp(this);if(!M||!Gb(z,M.getValue())){const p=Lp(z);M&&M.constructor==p?M.setValue(z):dp(this,p.create(z)),M&&vb.batchedUpdates(()=>{this._onChange(z,b)})}}return rp(this)}_onStart(){const M=this.animation;M.changed||(M.changed=!0,lo(this,"onStart",Yp(this,Ao(this,M.to)),this))}_onChange(M,b){b||(this._onStart(),vp(this.animation.onChange,M,this)),vp(this.defaultProps.onChange,M,this),super._onChange(M,b)}_start(){const M=this.animation;rp(this).reset(Dz(M.to)),M.immediate||(M.fromValues=M.values.map(M=>M.lastPosition)),Oo(this)||(eo(this,!0),co(this)||this._resume())}_resume(){jb.skipAnimation?this.finish():iz.start(this)}_stop(M,b){if(Oo(this)){eo(this,!1);const z=this.animation;Kb(z.values,M=>{M.done=!0}),z.toValues&&(z.onChange=z.onPause=z.onResume=void 0),Fz(this,{type:"idle",parent:this});const p=b?Gp(this.get()):Yp(this.get(),Ao(this,M??z.to));zz(this._pendingCalls,p),z.changed&&(z.changed=!1,lo(this,"onRest",p,this))}}};function Ao(M,b){const z=Ep(b);return Gb(Ep(M.get()),z)}function ao(M,b=M.loop,z=M.to){const p=vp(b);if(p){const o=!0!==p&&Sp(p),O=(o||M).reverse,c=!o||o.reset;return io({...M,loop:b,default:!1,pause:void 0,to:!O||Cp(z)?z:void 0,from:c?M.from:void 0,reset:c,...o})}}function io(M){const{to:b,from:z}=M=Sp(M),p=new Set;return Yb.obj(b)&&ro(b,p),Yb.obj(z)&&ro(z,p),M.keys=p.size?Array.from(p):null,M}function ro(M,b){Jb(M,(M,z)=>null!=M&&b.add(z))}var qo=["onStart","onRest","onChange","onPause","onResume"];function so(M,b,z){M.animation[z]=b[z]!==xp(b,z)?yp(b[z],M.key):void 0}function lo(M,b,...z){M.animation[b]?.(...z),M.defaultProps[b]?.(...z)}var Wo=["onStart","onChange","onRest"],uo=1,fo=class{constructor(M,b){this.id=uo++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),b&&(this._flush=b),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){const M={};return this.each((b,z)=>M[z]=b.get()),M}set(M){for(const b in M){const z=M[b];Yb.und(z)||this.springs[b].set(z)}}update(M){return M&&this.queue.push(io(M)),this}start(M){let{queue:b}=this;return M?b=Qb(M).map(io):this.queue=[],this._flush?this._flush(this,b):(go(this,b),function(M,b){return Promise.all(b.map(b=>ho(M,b))).then(b=>jp(M,b))}(this,b))}stop(M,b){if(M!==!!M&&(b=M),b){const z=this.springs;Kb(Qb(b),b=>z[b].stop(!!M))}else Jp(this._state,this._lastAsyncId),this.each(b=>b.stop(!!M));return this}pause(M){if(Yb.und(M))this.start({pause:!0});else{const b=this.springs;Kb(Qb(M),M=>b[M].pause())}return this}resume(M){if(Yb.und(M))this.start({pause:!1});else{const b=this.springs;Kb(Qb(M),M=>b[M].resume())}return this}each(M){Jb(this.springs,M)}_onFrame(){const{onStart:M,onChange:b,onRest:z}=this._events,p=this._active.size>0,o=this._changed.size>0;(p&&!this._started||o&&!this._started)&&(this._started=!0,Zb(M,([M,b])=>{b.value=this.get(),M(b,this,this._item)}));const O=!p&&this._started,c=o||O&&z.size?this.get():null;o&&b.size&&Zb(b,([M,b])=>{b.value=c,M(b,this,this._item)}),O&&(this._started=!1,Zb(z,([M,b])=>{b.value=c,M(b,this,this._item)}))}eventObserved(M){if("change"==M.type)this._changed.add(M.parent),M.idle||this._active.add(M.parent);else{if("idle"!=M.type)return;this._active.delete(M.parent)}vb.onFrame(this._onFrame)}};async function ho(M,b,z){const{keys:p,to:o,from:O,loop:c,onRest:e,onResolve:t}=b,n=Yb.obj(b.default)&&b.default;c&&(b.loop=!1),!1===o&&(b.to=null),!1===O&&(b.from=null);const A=Yb.arr(o)||Yb.fun(o)?o:void 0;A?(b.to=void 0,b.onRest=void 0,n&&(n.onRest=void 0)):Kb(Wo,z=>{const p=b[z];if(Yb.fun(p)){const o=M._events[z];b[z]=({finished:M,cancelled:b})=>{const z=o.get(p);z?(M||(z.finished=!1),b&&(z.cancelled=!0)):o.set(p,{value:null,finished:M||!1,cancelled:b||!1})},n&&(n[z]=b[z])}});const a=M._state;b.pause===!a.paused?(a.paused=b.pause,zz(b.pause?a.pauseQueue:a.resumeQueue)):a.paused&&(b.pause=!0);const i=(p||Object.keys(M.springs)).map(z=>M.springs[z].start(b)),r=!0===b.cancel||!0===xp(b,"cancel");(A||r&&a.asyncId)&&i.push(Up(++M._lastAsyncId,{props:b,state:a,actions:{pause:Vb,resume:Vb,start(b,z){r?(Jp(a,M._lastAsyncId),z(Gp(M))):(b.onRest=e,z(Kp(A,b,a,M)))}}})),a.paused&&await new Promise(M=>{a.resumeQueue.add(M)});const d=jp(M,await Promise.all(i));if(c&&d.finished&&(!z||!d.noop)){const z=ao(b,c,o);if(z)return go(M,[z]),ho(M,z,!0)}return t&&vb.batchedUpdates(()=>t(d,M,M.item)),d}function Ro(M,b){const z={...M.springs};return b&&Kb(Qb(b),M=>{Yb.und(M.keys)&&(M=io(M)),Yb.obj(M.to)||(M={...M,to:void 0}),mo(z,M,M=>Lo(M))}),function(M,b){Jb(b,(b,z)=>{M.springs[z]||(M.springs[z]=b,Hz(b,M))})}(M,z),z}function Lo(M,b){const z=new no;return z.key=M,b&&Hz(z,b),z}function mo(M,b,z){b.keys&&Kb(b.keys,p=>{(M[p]||(M[p]=z(p)))._prepareNode(b)})}function go(M,b){Kb(b,b=>{mo(M.springs,b,b=>Lo(b,M))})}var No=c.createContext({pause:!1,immediate:!1}),Bo=()=>{const M=[],b=function(b){cp(`${pp}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`);const p=[];return Kb(M,(M,o)=>{if(Yb.und(b))p.push(M.start());else{const O=z(b,M,o);O&&p.push(M.start(O))}}),p};b.current=M,b.add=function(b){M.includes(b)||M.push(b)},b.delete=function(b){const z=M.indexOf(b);~z&&M.splice(z,1)},b.pause=function(){return Kb(M,M=>M.pause(...arguments)),this},b.resume=function(){return Kb(M,M=>M.resume(...arguments)),this},b.set=function(b){Kb(M,(M,z)=>{const p=Yb.fun(b)?b(z,M):b;p&&M.set(p)})},b.start=function(b){const z=[];return Kb(M,(M,p)=>{if(Yb.und(b))z.push(M.start());else{const o=this._getProps(b,M,p);o&&z.push(M.start(o))}}),z},b.stop=function(){return Kb(M,M=>M.stop(...arguments)),this},b.update=function(b){return Kb(M,(M,z)=>M.update(this._getProps(b,M,z))),this};const z=function(M,b,z){return Yb.fun(M)?M(z,b):M};return b._getProps=z,b};function vo(M,b,z){const p=Yb.fun(b)&&b,{reset:o,sort:O,trail:e=0,expires:t=!0,exitBeforeEnter:r=!1,onDestroyed:d,ref:q,config:s}=p?p():b,l=i(()=>p||3==arguments.length?Bo():void 0,[]),W=Qb(M),u=[],f=A(null),h=o?null:f.current;tp(()=>{f.current=u}),Ap(()=>(Kb(u,M=>{l?.add(M.ctrl),M.ctrl.ref=l}),()=>{Kb(f.current,M=>{M.expired&&clearTimeout(M.expirationId),Dp(M.ctrl,l),M.ctrl.stop(!0)})}));const R=function(M,{key:b,keys:z=b},p){if(null===z){const b=new Set;return M.map(M=>{const z=p&&p.find(z=>z.item===M&&"leave"!==z.phase&&!b.has(z));return z?(b.add(z),z.key):Xo++})}return Yb.und(z)?M:Yb.fun(z)?M.map(z):Qb(z)}(W,p?p():b,h),L=o&&f.current||[];tp(()=>Kb(L,({ctrl:M,item:b,key:z})=>{Dp(M,l),vp(d,b,z)}));const m=[];if(h&&Kb(h,(M,b)=>{M.expired?(clearTimeout(M.expirationId),L.push(M)):~(b=m[b]=R.indexOf(M.key))&&(u[b]=M)}),Kb(W,(M,b)=>{u[b]||(u[b]={key:R[b],item:M,phase:"mount",ctrl:new fo},u[b].ctrl.item=M)}),m.length){let M=-1;const{leave:z}=p?p():b;Kb(m,(b,p)=>{const o=h[p];~b?(M=u.indexOf(o),u[M]={...o,item:W[b]}):z&&u.splice(++M,0,o)})}Yb.fun(O)&&u.sort((M,b)=>O(M.item,b.item));let g=-e;const N=np(),B=Tp(b),v=new Map,X=A(new Map),y=A(!1);Kb(u,(M,z)=>{const o=M.key,O=M.phase,c=p?p():b;let n,A;const a=vp(c.delay||0,o);if("mount"==O)n=c.enter,A="enter";else{const M=R.indexOf(o)<0;if("leave"!=O)if(M)n=c.leave,A="leave";else{if(!(n=c.update))return;A="update"}else{if(M)return;n=c.enter,A="enter"}}if(n=vp(n,M.item,z),n=Yb.obj(n)?Sp(n):{to:n},!n.config){const b=s||B.config;n.config=vp(b,M.item,z,A)}g+=e;const i={...B,delay:a+g,ref:q,immediate:c.immediate,reset:!1,...n};if("enter"==A&&Yb.und(i.from)){const o=p?p():b,O=Yb.und(o.initial)||h?o.from:o.initial;i.from=vp(O,M.item,z)}const{onResolve:d}=i;i.onResolve=M=>{vp(d,M);const b=f.current,z=b.find(M=>M.key===o);if(z&&(!M.cancelled||"update"==z.phase)&&z.ctrl.idle){const M=b.every(M=>M.ctrl.idle);if("leave"==z.phase){const b=vp(t,z.item);if(!1!==b){const p=!0===b?0:b;if(z.expired=!0,!M&&p>0)return void(p<=2147483647&&(z.expirationId=setTimeout(N,p)))}}M&&b.some(M=>M.expired)&&(X.current.delete(z),r&&(y.current=!0),N())}};const l=Ro(M.ctrl,i);"leave"===A&&r?X.current.set(M,{phase:A,springs:l,payload:i}):v.set(M,{phase:A,springs:l,payload:i})});const x=a(No),w=function(M){const b=A(void 0);return n(()=>{b.current=M}),b.current}(x),T=x!==w&&function(M){for(const b in M)return!0;return!1}(x);tp(()=>{T&&Kb(u,M=>{M.ctrl.start({default:x})})},[x]),Kb(v,(M,b)=>{if(X.current.size){const M=u.findIndex(M=>M.key===b.key);u.splice(M,1)}}),tp(()=>{Kb(X.current.size?X.current:v,({phase:M,payload:b},z)=>{const{ctrl:p}=z;z.phase=M,l?.add(p),T&&"enter"==M&&p.start({default:x}),b&&(!function(M,b){b&&M.ref!==b&&(M.ref?.delete(M),b.add(M),M.ref=b)}(p,b.ref),!p.ref&&!l||y.current?(p.start(b),y.current&&(y.current=!1)):p.update(b))})},o?void 0:z);const _=M=>c.createElement(c.Fragment,null,u.map((b,z)=>{const{springs:p}=v.get(b)||b.ctrl,o=M({...p},b.item,b,z);return o&&o.type?c.createElement(o.type,{...o.props,key:Yb.str(b.key)||Yb.num(b.key)?b.key:b.ctrl.id,ref:o.ref}):o}));return l?[_,l]:_}var Xo=1;var yo=class extends zo{constructor(M,b){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=kz(...b);const z=this._get(),p=Lp(z);dp(this,p.create(z))}advance(M){const b=this._get();Gb(b,this.get())||(rp(this).setValue(b),this._onChange(b,this.idle)),!this.idle&&wo(this._active)&&To(this)}_get(){const M=Yb.arr(this.source)?this.source.map(Dz):Qb(Dz(this.source));return this.calc(...M)}_start(){this.idle&&!wo(this._active)&&(this.idle=!1,Kb(qp(this),M=>{M.done=!1}),jb.skipAnimation?(vb.batchedUpdates(()=>this.advance()),To(this)):iz.start(this))}_attach(){let M=1;Kb(Qb(this.source),b=>{Cz(b)&&Hz(b,this),Mo(b)&&(b.idle||this._active.add(b),M=Math.max(M,b.priority+1))}),this.priority=M,this._start()}_detach(){Kb(Qb(this.source),M=>{Cz(M)&&Uz(M,this)}),this._active.clear(),To(this)}eventObserved(M){"change"==M.type?M.idle?this.advance():(this._active.add(M.parent),this._start()):"idle"==M.type?this._active.delete(M.parent):"priority"==M.type&&(this.priority=Qb(this.source).reduce((M,b)=>Math.max(M,(Mo(b)?b.priority:0)+1),0))}};function xo(M){return!1!==M.idle}function wo(M){return!M.size||Array.from(M).every(xo)}function To(M){M.idle||(M.idle=!0,Kb(qp(M),M=>{M.done=!0}),Fz(M,{type:"idle",parent:M}))}jb.assign({createStringInterpolator:zp,to:(M,b)=>new yo(M,b)});var _o=/^--/;function ko(M,b){return null==b||"boolean"==typeof b||""===b?"":"number"!=typeof b||0===b||_o.test(M)||Eo.hasOwnProperty(M)&&Eo[M]?(""+b).trim():b+"px"}var So={};var Eo={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},Co=["Webkit","Ms","Moz","O"];Eo=Object.keys(Eo).reduce((M,b)=>(Co.forEach(z=>M[((M,b)=>M+b.charAt(0).toUpperCase()+b.substring(1))(z,b)]=M[b]),M),Eo);var Do=/^(matrix|translate|scale|rotate|skew)/,Po=/^(translate)/,Fo=/^(rotate|skew)/,Io=(M,b)=>Yb.num(M)&&0!==M?M+b:M,$o=(M,b)=>Yb.arr(M)?M.every(M=>$o(M,b)):Yb.num(M)?M===b:parseFloat(M)===b,Ho=class extends fp{constructor({x:M,y:b,z:z,...p}){const o=[],O=[];(M||b||z)&&(o.push([M||0,b||0,z||0]),O.push(M=>[`translate3d(${M.map(M=>Io(M,"px")).join(",")})`,$o(M,0)])),Jb(p,(M,b)=>{if("transform"===b)o.push([M||""]),O.push(M=>[M,""===M]);else if(Do.test(b)){if(delete p[b],Yb.und(M))return;const z=Po.test(b)?"px":Fo.test(b)?"deg":"";o.push(Qb(M)),O.push("rotate3d"===b?([M,b,p,o])=>[`rotate3d(${M},${b},${p},${Io(o,z)})`,$o(o,0)]:M=>[`${b}(${M.map(M=>Io(M,z)).join(",")})`,$o(M,b.startsWith("scale")?1:0)])}}),o.length&&(p.transform=new Uo(o,O)),super(p)}},Uo=class extends Iz{constructor(M,b){super(),this.inputs=M,this.transforms=b,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let M="",b=!0;return Kb(this.inputs,(z,p)=>{const o=Dz(z[0]),[O,c]=this.transforms[p](Yb.arr(o)?o:z.map(Dz));M+=" "+O,b=b&&c}),b?"none":M}observerAdded(M){1==M&&Kb(this.inputs,M=>Kb(M,M=>Cz(M)&&Hz(M,this)))}observerRemoved(M){0==M&&Kb(this.inputs,M=>Kb(M,M=>Cz(M)&&Uz(M,this)))}eventObserved(M){"change"==M.type&&(this._value=null),Fz(this,M)}};jb.assign({batchedUpdates:N,createStringInterpolator:zp,colors:{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}});var jo=((M,{applyAnimatedValues:b=()=>!1,createAnimatedStyle:z=M=>new fp(M),getComponentProps:p=M=>M}={})=>{const o={applyAnimatedValues:b,createAnimatedStyle:z,getComponentProps:p},O=M=>{const b=Bp(M)||"Anonymous";return(M=Yb.str(M)?O[M]||(O[M]=mp(M,o)):M[Np]||(M[Np]=mp(M,o))).displayName=`Animated(${b})`,M};return Jb(M,(b,z)=>{Yb.arr(M)&&(z=Bp(b)),O[z]=O(b)}),{animated:O}})(["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"],{applyAnimatedValues:function(M,b){if(!M.nodeType||!M.setAttribute)return!1;const z="filter"===M.nodeName||M.parentNode&&"filter"===M.parentNode.nodeName,{className:p,style:o,children:O,scrollTop:c,scrollLeft:e,viewBox:t,...n}=b,A=Object.values(n),a=Object.keys(n).map(b=>z||M.hasAttribute(b)?b:So[b]||(So[b]=b.replace(/([A-Z])/g,M=>"-"+M.toLowerCase())));void 0!==O&&(M.textContent=O);for(const b in o)if(o.hasOwnProperty(b)){const z=ko(b,o[b]);_o.test(b)?M.style.setProperty(b,z):M.style[b]=z}a.forEach((b,z)=>{M.setAttribute(b,A[z])}),void 0!==p&&(M.className=p),void 0!==c&&(M.scrollTop=c),void 0!==e&&(M.scrollLeft=e),void 0!==t&&M.setAttribute("viewBox",t)},createAnimatedStyle:M=>new Ho(M),getComponentProps:({scrollTop:M,scrollLeft:b,...z})=>z}),Vo=jo.animated;const Yo=_(Vo.div)`
|
|
1277
1277
|
|
|
1278
1278
|
margin-bottom: 10px;
|
|
1279
1279
|
max-width: 300px;
|