@inntechcorp/it-design 2.2.35 → 2.2.37
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 +47 -39
- package/dist/index.esm.js +11 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1268,7 +1268,7 @@ import M from"i18next";import{useTranslation as b,initReactI18next as z}from"rea
|
|
|
1268
1268
|
opacity: 0;
|
|
1269
1269
|
`}
|
|
1270
1270
|
|
|
1271
|
-
`,pb="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(pb)){let M=document.createElement("div");M.id=pb,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(Mb,{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(bb,{id:M.id,className:"itd-modal",children:[p(zb,{className:"itd-modal-overlay",$show:b}),s(M)]},M.id)}))}),a):null},Ob=q({});Ob.displayName="ITDModalContext";var cb="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},eb="object"==typeof cb&&cb&&cb.Object===Object&&cb,tb="object"==typeof self&&self&&self.Object===Object&&self,nb=(eb||tb||Function("return this")()).Symbol;var Ab=Array.isArray,ab=Object.prototype,ib=ab.hasOwnProperty,rb=ab.toString,db=nb?nb.toStringTag:void 0;var qb=Object.prototype.toString;var sb=nb?nb.toStringTag:void 0;function lb(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":sb&&sb in Object(M)?function(M){var b=ib.call(M,db),z=M[db];try{M[db]=void 0;var p=!0}catch(M){}var o=rb.call(M);return p&&(b?M[db]=z:delete M[db]),o}(M):function(M){return qb.call(M)}(M)}var Wb=nb?nb.prototype:void 0,ub=Wb?Wb.toString:void 0;function fb(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,fb)+"";if(function(M){return"symbol"==typeof M||function(M){return null!=M&&"object"==typeof M}(M)&&"[object Symbol]"==lb(M)}(M))return ub?ub.call(M):"";var b=M+"";return"0"==b&&1/M==-1/0?"-0":b}var hb=0;function Rb(M){var b,z=++hb;return(null==(b=M)?"":fb(b))+z}const Lb={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},mb=({children:M})=>{const[b,z]=t([]),[o,c]=t([]),[e,n]=t({event:D.NOT_SHOW,id:""}),A=(M,b)=>{M!==D.NOT_SHOW&&n({event:M,id:b})},a=s((M=>{const p={...Lb,...M};""===p.id&&(p.id=Rb("itd-modal-")),z(p.removeOthers?[p]:[...b,p]),c(p.removeOthers?[p.id]:[...o,p.id])}),[b]),i=s((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=s((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(Ob.Provider,{value:{showModal:a,hideModal:r,removeModal:i,removeAllModals:()=>{c([]),z([]),A(D.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})]})},gb={useModal:()=>a(Ob)};var Nb=Ib(),Bb=M=>Cb(M,Nb),vb=Ib();Bb.write=M=>Cb(M,vb);var Xb=Ib();Bb.onStart=M=>Cb(M,Xb);var yb=Ib();Bb.onFrame=M=>Cb(M,yb);var xb=Ib();Bb.onFinish=M=>Cb(M,xb);var wb=[];Bb.setTimeout=(M,b)=>{const z=Bb.now()+b,p=()=>{const M=wb.findIndex((M=>M.cancel==p));~M&&wb.splice(M,1),Sb-=~M?1:0},o={time:z,handler:M,cancel:p};return wb.splice(Tb(z),0,o),Sb+=1,Db(),o};var Tb=M=>~(~wb.findIndex((b=>b.time>M))||~wb.length);Bb.cancel=M=>{Xb.delete(M),yb.delete(M),xb.delete(M),Nb.delete(M),vb.delete(M)},Bb.sync=M=>{Eb=!0,Bb.batchedUpdates(M),Eb=!1},Bb.throttle=M=>{let b;function z(){try{M(...b)}finally{b=null}}function p(...M){b=M,Bb.onStart(z)}return p.handler=M,p.cancel=()=>{Xb.delete(z),b=null},p};var _b="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Bb.use=M=>_b=M,Bb.now="undefined"!=typeof performance?()=>performance.now():Date.now,Bb.batchedUpdates=M=>M(),Bb.catch=console.error,Bb.frameLoop="always",Bb.advance=()=>{"demand"!==Bb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fb()};var kb=-1,Sb=0,Eb=!1;function Cb(M,b){Eb?(b.delete(M),M(0)):(b.add(M),Db())}function Db(){kb<0&&(kb=0,"demand"!==Bb.frameLoop&&_b(Pb))}function Pb(){~kb&&(_b(Pb),Bb.batchedUpdates(Fb))}function Fb(){const M=kb;kb=Bb.now();const b=Tb(kb);b&&($b(wb.splice(0,b),(M=>M.handler())),Sb-=b),Sb?(Xb.flush(),Nb.flush(M?Math.min(64,kb-M):16.667),yb.flush(),vb.flush(),xb.flush()):kb=-1}function Ib(){let M=new Set,b=M;return{add(z){Sb+=b!=M||M.has(z)?0:1,M.add(z)},delete:z=>(Sb-=b==M&&M.has(z)?1:0,M.delete(z)),flush(z){b.size&&(M=new Set,Sb-=b.size,$b(b,(b=>b(z)&&M.add(b))),Sb+=M.size,b=M)}}}function $b(M,b){M.forEach((M=>{try{b(M)}catch(M){Bb.catch(M)}}))}var Hb=Object.defineProperty,Ub={};function jb(){}((M,b)=>{for(var z in b)Hb(M,z,{get:b[z],enumerable:!0})})(Ub,{assign:()=>cz,colors:()=>pz,createStringInterpolator:()=>Zb,skipAnimation:()=>oz,to:()=>Mz,willAdvance:()=>Oz});var Vb={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 Yb(M,b){if(Vb.arr(M)){if(!Vb.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 Gb=(M,b)=>M.forEach(b);function Kb(M,b,z){if(Vb.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 Jb=M=>Vb.und(M)?[]:Vb.arr(M)?M:[M];function Qb(M,b){if(M.size){const z=Array.from(M);M.clear(),Gb(z,b)}}var Zb,Mz,bz=(M,...b)=>Qb(M,(M=>M(...b))),zz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),pz=null,oz=!1,Oz=jb,cz=M=>{M.to&&(Mz=M.to),M.now&&(Bb.now=M.now),void 0!==M.colors&&(pz=M.colors),null!=M.skipAnimation&&(oz=M.skipAnimation),M.createStringInterpolator&&(Zb=M.createStringInterpolator),M.requestAnimationFrame&&Bb.use(M.requestAnimationFrame),M.batchedUpdates&&(Bb.batchedUpdates=M.batchedUpdates),M.willAdvance&&(Oz=M.willAdvance),M.frameLoop&&(Bb.frameLoop=M.frameLoop)},ez=new Set,tz=[],nz=[],Az=0,az={get idle(){return!ez.size&&!tz.length},start(M){Az>M.priority?(ez.add(M),Bb.onStart(iz)):(rz(M),Bb(qz))},advance:qz,sort(M){if(Az)Bb.onFrame((()=>az.sort(M)));else{const b=tz.indexOf(M);~b&&(tz.splice(b,1),dz(M))}},clear(){tz=[],ez.clear()}};function iz(){ez.forEach(rz),ez.clear(),Bb(qz)}function rz(M){tz.includes(M)||dz(M)}function dz(M){tz.splice(function(M,b){const z=M.findIndex(b);return z<0?M.length:z}(tz,(b=>b.priority>M.priority)),0,M)}function qz(M){const b=nz;for(let z=0;z<tz.length;z++){const p=tz[z];Az=p.priority,p.idle||(Oz(p),p.advance(M),p.idle||b.push(p))}return Az=0,(nz=tz).length=0,(tz=b).length>0}var sz="[-+]?\\d*\\.?\\d+",lz=sz+"%";function Wz(...M){return"\\(\\s*("+M.join(")\\s*,\\s*(")+")\\s*\\)"}var uz=new RegExp("rgb"+Wz(sz,sz,sz)),fz=new RegExp("rgba"+Wz(sz,sz,sz,sz)),hz=new RegExp("hsl"+Wz(sz,lz,lz)),Rz=new RegExp("hsla"+Wz(sz,lz,lz,sz)),Lz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gz=/^#([0-9a-fA-F]{6})$/,Nz=/^#([0-9a-fA-F]{8})$/;function Bz(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 vz(M,b,z){const p=z<.5?z*(1+b):z+b-z*b,o=2*z-p,O=Bz(o,p,M+1/3),c=Bz(o,p,M),e=Bz(o,p,M-1/3);return Math.round(255*O)<<24|Math.round(255*c)<<16|Math.round(255*e)<<8}function Xz(M){const b=parseInt(M,10);return b<0?0:b>255?255:b}function yz(M){return(parseFloat(M)%360+360)%360/360}function xz(M){const b=parseFloat(M);return b<0?0:b>1?255:Math.round(255*b)}function wz(M){const b=parseFloat(M);return b<0?0:b>100?1:b/100}function Tz(M){let b=function(M){let b;return"number"==typeof M?M>>>0===M&&M>=0&&M<=4294967295?M:null:(b=gz.exec(M))?parseInt(b[1]+"ff",16)>>>0:pz&&void 0!==pz[M]?pz[M]:(b=uz.exec(M))?(Xz(b[1])<<24|Xz(b[2])<<16|Xz(b[3])<<8|255)>>>0:(b=fz.exec(M))?(Xz(b[1])<<24|Xz(b[2])<<16|Xz(b[3])<<8|xz(b[4]))>>>0:(b=Lz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+"ff",16)>>>0:(b=Nz.exec(M))?parseInt(b[1],16)>>>0:(b=mz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=hz.exec(M))?(255|vz(yz(b[1]),wz(b[2]),wz(b[3])))>>>0:(b=Rz.exec(M))?(vz(yz(b[1]),wz(b[2]),wz(b[3]))|xz(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 _z=(M,b,z)=>{if(Vb.fun(M))return M;if(Vb.arr(M))return _z({range:M,output:b,extrapolate:z});if(Vb.str(M.output[0]))return Zb(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 kz=Symbol.for("FluidValue.get"),Sz=Symbol.for("FluidValue.observers"),Ez=M=>Boolean(M&&M[kz]),Cz=M=>M&&M[kz]?M[kz]():M,Dz=M=>M[Sz]||null;function Pz(M,b){const z=M[Sz];z&&z.forEach((M=>{!function(M,b){M.eventObserved?M.eventObserved(b):M(b)}(M,b)}))}var Fz=class{constructor(M){if(!M&&!(M=this.get))throw Error("Unknown getter");Iz(this,M)}},Iz=(M,b)=>jz(M,kz,b);function $z(M,b){if(M[kz]){let z=M[Sz];z||jz(M,Sz,z=new Set),z.has(b)||(z.add(b),M.observerAdded&&M.observerAdded(z.size,b))}return b}function Hz(M,b){const z=M[Sz];if(z&&z.has(b)){const p=z.size-1;p?z.delete(b):M[Sz]=null,M.observerRemoved&&M.observerRemoved(p,b)}}var Uz,jz=(M,b,z)=>Object.defineProperty(M,b,{value:z,writable:!0,configurable:!0}),Vz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gz=new RegExp(`(${Vz.source})(%|[a-z]+)`,"i"),Kz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Jz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Qz=M=>{const[b,z]=Zz(M);if(!b||zz())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&&Jz.test(z)?Qz(z):z||M},Zz=M=>{const b=Jz.exec(M);if(!b)return[,];const[,z,p]=b;return[z,p]},Mp=(M,b,z,p,o)=>`rgba(${Math.round(b)}, ${Math.round(z)}, ${Math.round(p)}, ${o})`,bp=M=>{Uz||(Uz=pz?new RegExp(`(${Object.keys(pz).join("|")})(?!\\w)`,"g"):/^\b$/);const b=M.output.map((M=>Cz(M).replace(Jz,Qz).replace(Yz,Tz).replace(Uz,Tz))),z=b.map((M=>M.match(Vz).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=>_z({...M,output:b})));return M=>{const z=!Gz.test(b[0])&&b.find((M=>Gz.test(M)))?.replace(Vz,"");let p=0;return b[0].replace(Vz,(()=>`${o[p++](M)}${z||""}`)).replace(Kz,Mp)}},zp="react-spring: ",pp=M=>{const b=M;let z=!1;if("function"!=typeof b)throw new TypeError(`${zp}once requires a function parameter`);return(...M)=>{z||(b(...M),z=!0)}},op=pp(console.warn);var Op=pp(console.warn);function cp(M){return Vb.str(M)&&("#"==M[0]||/\d/.test(M)||!zz()&&Jz.test(M)||M in(pz||{}))}var ep=zz()?n:l;function tp(){const M=t()[1],b=(()=>{const M=A(!1);return ep((()=>(M.current=!0,()=>{M.current=!1})),[]),M})();return()=>{b.current&&M(Math.random())}}var np=M=>n(M,Ap),Ap=[];var ap=Symbol.for("Animated:node"),ip=M=>M&&M[ap],rp=(M,b)=>{return z=M,p=ap,o=b,Object.defineProperty(z,p,{value:o,writable:!0,configurable:!0});var z,p,o},dp=M=>M&&M[ap]&&M[ap].getPayload(),qp=class{constructor(){rp(this,this)}getPayload(){return this.payload||[]}},sp=class M extends qp{constructor(M){super(),this._value=M,this.done=!0,this.durationProgress=0,Vb.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 Vb.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,Vb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,M&&(this.lastVelocity=null),this.v0=null)}},lp=class M extends sp{constructor(M){super(0),this._string=null,this._toString=_z({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(Vb.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=_z({output:[this.getValue(),M]})),this._value=0,super.reset()}},Wp={dependencies:null},up=class extends qp{constructor(M){super(),this.source=M,this.setValue(M)}getValue(M){const b={};return Kb(this.source,((z,p)=>{var o;(o=z)&&o[ap]===o?b[p]=z.getValue(M):Ez(z)?b[p]=Cz(z):M||(b[p]=z)})),b}setValue(M){this.source=M,this.payload=this._makePayload(M)}reset(){this.payload&&Gb(this.payload,(M=>M.reset()))}_makePayload(M){if(M){const b=new Set;return Kb(M,this._addToPayload,b),Array.from(b)}}_addToPayload(M){Wp.dependencies&&Ez(M)&&Wp.dependencies.add(M);const b=dp(M);b&&Gb(b,(M=>this.add(M)))}},fp=class M extends up{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(hp)),!0)}};function hp(M){return(cp(M)?lp:sp).create(M)}function Rp(M){const b=ip(M);return b?b.constructor:Vb.arr(M)?fp:cp(M)?lp:sp}var Lp=(M,b)=>{const z=!Vb.fun(M)||M.prototype&&M.prototype.isReactComponent;return W(((p,o)=>{const O=A(null),e=z&&s((M=>{O.current=function(M,b){M&&(Vb.fun(M)?M(b):M.current=b);return b}(o,M)}),[o]),[t,a]=function(M,b){const z=new Set;Wp.dependencies=z,M.style&&(M={...M,style:b.createAnimatedStyle(M.style)});return M=new up(M),Wp.dependencies=null,[M,z]}(p,b),i=tp(),r=()=>{const M=O.current;if(z&&!M)return;!1===(!!M&&b.applyAnimatedValues(M,t.getValue(!0)))&&i()},d=new mp(r,a),q=A(void 0);ep((()=>(q.current=d,Gb(a,(M=>$z(M,d))),()=>{q.current&&(Gb(q.current.deps,(M=>Hz(M,q.current))),Bb.cancel(q.current.update))}))),n(r,[]),np((()=>()=>{const M=q.current;Gb(M.deps,(b=>Hz(b,M)))}));const l=b.getComponentProps(t.getValue());return c.createElement(M,{...l,ref:e})}))},mp=class{constructor(M,b){this.update=M,this.deps=b}eventObserved(M){"change"==M.type&&Bb.write(this.update)}};var gp=Symbol.for("AnimatedComponent"),Np=M=>Vb.str(M)?M:M&&Vb.str(M.displayName)?M.displayName:Vb.fun(M)&&M.name||null;function Bp(M,...b){return Vb.fun(M)?M(...b):M}var vp=(M,b)=>!0===M||!!(b&&M&&(Vb.fun(M)?M(b):Jb(M).includes(b))),Xp=(M,b)=>Vb.obj(M)?b&&M[b]:M,yp=(M,b)=>!0===M.default?M[b]:M.default?M.default[b]:void 0,xp=M=>M,wp=(M,b=xp)=>{let z=Tp;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);Vb.und(z)||(p[o]=z)}return p},Tp=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_p={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 kp(M){const b=function(M){const b={};let z=0;if(Kb(M,((M,p)=>{_p[p]||(b[p]=M,z++)})),z)return b}(M);if(b){const z={to:b};return Kb(M,((M,p)=>p in b||(z[p]=M))),z}return{...M}}function Sp(M){return M=Cz(M),Vb.arr(M)?M.map(Sp):cp(M)?Ub.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function Ep(M){return Vb.fun(M)||Vb.arr(M)&&Vb.obj(M[0])}function Cp(M,b){M.ref?.delete(M),b?.delete(M)}var Dp={tension:170,friction:26,mass:1,damping:1,easing:M=>M,clamp:!1},Pp=class{constructor(){this.velocity=0,Object.assign(this,Dp)}};function Fp(M,b){if(Vb.und(b.decay)){const z=!Vb.und(b.tension)||!Vb.und(b.friction);!z&&Vb.und(b.frequency)&&Vb.und(b.damping)&&Vb.und(b.mass)||(M.duration=void 0,M.decay=void 0),z&&(M.frequency=void 0)}else M.duration=void 0}var Ip=[],$p=class{constructor(){this.changed=!1,this.values=Ip,this.toValues=null,this.fromValues=Ip,this.config=new Pp,this.immediate=!1}};function Hp(M,{key:b,props:z,defaultProps:p,state:o,actions:O}){return new Promise(((c,e)=>{let t,n,A=vp(z.cancel??p?.cancel,b);if(A)r();else{Vb.und(z.pause)||(o.paused=vp(z.pause,b));let M=p?.pause;!0!==M&&(M=o.paused||vp(M,b)),t=Bp(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-Bb.now()}function i(){t>0&&!Ub.skipAnimation?(o.delayed=!0,n=Bb.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 Up=(M,b)=>1==b.length?b[0]:b.some((M=>M.cancelled))?Yp(M.get()):b.every((M=>M.noop))?jp(M.get()):Vp(M.get(),b.every((M=>M.finished))),jp=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Vp=(M,b,z=!1)=>({value:M,finished:b,cancelled:z}),Yp=M=>({value:M,cancelled:!0,finished:!1});function Gp(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=wp(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)&&Yp(p)||o!==z.asyncId&&Vp(p,!1);if(b)throw M.result=b,a(M),M},d=(M,b)=>{const O=new Jp,c=new Qp;return(async()=>{if(Ub.skipAnimation)throw Kp(z),c.result=Vp(p,!1),a(c),c;r(O);const e=Vb.obj(M)?{...M}:{...b,to:M};e.parentId=o,Kb(n,((M,b)=>{Vb.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(Ub.skipAnimation)return Kp(z),Vp(p,!1);try{let b;b=Vb.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=Vp(p.get(),!0,!1)}catch(M){if(M instanceof Jp)q=M.result;else{if(!(M instanceof Qp))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 Vb.fun(c)&&Bb.batchedUpdates((()=>{c(q,p,p.item)})),q})():t}function Kp(M,b){Qb(M.timeouts,(M=>M.cancel())),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,b&&(M.cancelId=b)}var Jp=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.")}},Qp=class extends Error{constructor(){super("SkipAnimationSignal")}},Zp=M=>M instanceof bo,Mo=1,bo=class extends Fz{constructor(){super(...arguments),this.id=Mo++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){const M=ip(this);return M&&M.getValue()}to(...M){return Ub.to(this,M)}interpolate(...M){return op(`${zp}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ub.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){Pz(this,{type:"change",parent:this,value:M,idle:b})}_onPriorityChange(M){this.idle||az.sort(this),Pz(this,{type:"priority",parent:this,priority:M})}},zo=Symbol.for("SpringPhase"),po=M=>(1&M[zo])>0,oo=M=>(2&M[zo])>0,Oo=M=>(4&M[zo])>0,co=(M,b)=>b?M[zo]|=3:M[zo]&=-3,eo=(M,b)=>b?M[zo]|=4:M[zo]&=-5,to=class extends bo{constructor(M,b){if(super(),this.animation=new $p,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,!Vb.und(M)||!Vb.und(b)){const z=Vb.obj(M)?{...M}:{...b,from:M};Vb.und(z.default)&&(z.default=!0),this.start(z)}}get idle(){return!(oo(this)||this._state.asyncTo)||Oo(this)}get goal(){return Cz(this.animation.to)}get velocity(){const M=ip(this);return M instanceof sp?M.lastVelocity||0:M.getPayload().map((M=>M.lastVelocity||0))}get hasAnimated(){return po(this)}get isAnimating(){return oo(this)}get isPaused(){return Oo(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=dp(p.to);!c&&Ez(p.to)&&(o=Jb(Cz(p.to))),p.values.forEach(((e,t)=>{if(e.done)return;const n=e.constructor==lp?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=Vb.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(Vb.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=!Vb.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=ip(this),t=e.getValue();if(b){const M=Cz(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 Bb.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;Bb.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 Vb.und(M)?(z=this.queue||[],this.queue=[]):z=[Vb.obj(M)?M:{...b,to:M}],Promise.all(z.map((M=>this._update(M)))).then((M=>Up(this,M)))}stop(M){const{to:b}=this.animation;return this._focus(this.get()),Kp(this._state,M&&this._lastCallId),Bb.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=Vb.obj(z)?z[b]:z,(null==z||Ep(z))&&(z=void 0),p=Vb.obj(p)?p[b]:p,null==p&&(p=void 0);const o={to:z,from:p};return po(this)||(M.reverse&&([z,p]=[p,z]),p=Cz(p),Vb.und(p)?ip(this)||this._set(z):this._set(p)),o}_update({...M},b){const{key:z,defaultProps:p}=this;M.default&&Object.assign(p,wp(M,((M,b)=>/^on/.test(b)?Xp(M,z):M))),qo(this,M,"onProps"),so(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 Hp(++this._lastCallId,{key:z,props:M,defaultProps:p,state:O,actions:{pause:()=>{Oo(this)||(eo(this,!0),bz(O.pauseQueue),so(this,"onPause",Vp(this,no(this,this.animation.to)),this))},resume:()=>{Oo(this)&&(eo(this,!1),oo(this)&&this._resume(),bz(O.resumeQueue),so(this,"onResume",Vp(this,no(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(Yp(this));const p=!Vb.und(M.to),o=!Vb.und(M.from);if(p||o){if(!(b.callId>this._lastToId))return z(Yp(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&&!Vb.und(A)||(A=a),b.reverse&&([A,a]=[a,A]);const i=!Yb(a,n);i&&(e.from=a),a=Cz(a);const r=!Yb(A,t);r&&this._focus(A);const d=Ep(b.to),{config:q}=e,{decay:s,velocity:l}=q;(p||o)&&(q.velocity=0),b.config&&!d&&function(M,b,z){z&&(Fp(z={...z},b),b={...z,...b}),Fp(M,b),Object.assign(M,b);for(const b in Dp)null==M[b]&&(M[b]=Dp[b]);let{frequency:p,damping:o}=M;const{mass:O}=M;Vb.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,Bp(b.config,O),b.config!==c.config?Bp(c.config,O):void 0);let W=ip(this);if(!W||Vb.und(A))return z(Vp(this,!0));const u=Vb.und(b.reset)?o&&!b.default:!Vb.und(a)&&vp(b.reset,O),f=u?a:this.get(),h=Sp(A),R=Vb.num(h)||Vb.arr(h)||cp(h),L=!d&&(!R||vp(c.immediate||b.immediate,O));if(r){const M=Rp(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=Ez(A),N=!1;if(!g){const M=u||!po(this)&&i;(r||M)&&(N=Yb(Sp(f),h),g=!N),(Yb(e.immediate,L)||L)&&Yb(q.decay,s)&&Yb(q.velocity,l)||(g=!0)}if(N&&oo(this)&&(e.changed&&!u?g=!0:g||this._stop(t)),!d&&((g||Ez(t))&&(e.values=W.getPayload(),e.toValues=Ez(A)?null:m==lp?[1]:Jb(h)),e.immediate!=L&&(e.immediate=L,L||u||this._set(t)),g)){const{onRest:M}=e;Gb(ro,(M=>qo(this,b,M)));const p=Vp(this,no(this,t));bz(this._pendingCalls,p),this._pendingCalls.add(z),e.changed&&Bb.batchedUpdates((()=>{e.changed=!u,M?.(p,this),u?Bp(c.onRest,p):e.onStart?.(p,this)}))}u&&this._set(f),d?z(Gp(b.to,b,this._state,this)):g?this._start():oo(this)&&!r?this._pendingCalls.add(z):z(jp(f))}_focus(M){const b=this.animation;M!==b.to&&(Dz(this)&&this._detach(),b.to=M,Dz(this)&&this._attach())}_attach(){let M=0;const{to:b}=this.animation;Ez(b)&&($z(b,this),Zp(b)&&(M=b.priority+1)),this.priority=M}_detach(){const{to:M}=this.animation;Ez(M)&&Hz(M,this)}_set(M,b=!0){const z=Cz(M);if(!Vb.und(z)){const M=ip(this);if(!M||!Yb(z,M.getValue())){const p=Rp(z);M&&M.constructor==p?M.setValue(z):rp(this,p.create(z)),M&&Bb.batchedUpdates((()=>{this._onChange(z,b)}))}}return ip(this)}_onStart(){const M=this.animation;M.changed||(M.changed=!0,so(this,"onStart",Vp(this,no(this,M.to)),this))}_onChange(M,b){b||(this._onStart(),Bp(this.animation.onChange,M,this)),Bp(this.defaultProps.onChange,M,this),super._onChange(M,b)}_start(){const M=this.animation;ip(this).reset(Cz(M.to)),M.immediate||(M.fromValues=M.values.map((M=>M.lastPosition))),oo(this)||(co(this,!0),Oo(this)||this._resume())}_resume(){Ub.skipAnimation?this.finish():az.start(this)}_stop(M,b){if(oo(this)){co(this,!1);const z=this.animation;Gb(z.values,(M=>{M.done=!0})),z.toValues&&(z.onChange=z.onPause=z.onResume=void 0),Pz(this,{type:"idle",parent:this});const p=b?Yp(this.get()):Vp(this.get(),no(this,M??z.to));bz(this._pendingCalls,p),z.changed&&(z.changed=!1,so(this,"onRest",p,this))}}};function no(M,b){const z=Sp(b);return Yb(Sp(M.get()),z)}function Ao(M,b=M.loop,z=M.to){const p=Bp(b);if(p){const o=!0!==p&&kp(p),O=(o||M).reverse,c=!o||o.reset;return ao({...M,loop:b,default:!1,pause:void 0,to:!O||Ep(z)?z:void 0,from:c?M.from:void 0,reset:c,...o})}}function ao(M){const{to:b,from:z}=M=kp(M),p=new Set;return Vb.obj(b)&&io(b,p),Vb.obj(z)&&io(z,p),M.keys=p.size?Array.from(p):null,M}function io(M,b){Kb(M,((M,z)=>null!=M&&b.add(z)))}var ro=["onStart","onRest","onChange","onPause","onResume"];function qo(M,b,z){M.animation[z]=b[z]!==yp(b,z)?Xp(b[z],M.key):void 0}function so(M,b,...z){M.animation[b]?.(...z),M.defaultProps[b]?.(...z)}var lo=["onStart","onChange","onRest"],Wo=1,uo=class{constructor(M,b){this.id=Wo++,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];Vb.und(z)||this.springs[b].set(z)}}update(M){return M&&this.queue.push(ao(M)),this}start(M){let{queue:b}=this;return M?b=Jb(M).map(ao):this.queue=[],this._flush?this._flush(this,b):(mo(this,b),function(M,b){return Promise.all(b.map((b=>fo(M,b)))).then((b=>Up(M,b)))}(this,b))}stop(M,b){if(M!==!!M&&(b=M),b){const z=this.springs;Gb(Jb(b),(b=>z[b].stop(!!M)))}else Kp(this._state,this._lastAsyncId),this.each((b=>b.stop(!!M)));return this}pause(M){if(Vb.und(M))this.start({pause:!0});else{const b=this.springs;Gb(Jb(M),(M=>b[M].pause()))}return this}resume(M){if(Vb.und(M))this.start({pause:!1});else{const b=this.springs;Gb(Jb(M),(M=>b[M].resume()))}return this}each(M){Kb(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,Qb(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&&Qb(b,(([M,b])=>{b.value=c,M(b,this,this._item)})),O&&(this._started=!1,Qb(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)}Bb.onFrame(this._onFrame)}};async function fo(M,b,z){const{keys:p,to:o,from:O,loop:c,onRest:e,onResolve:t}=b,n=Vb.obj(b.default)&&b.default;c&&(b.loop=!1),!1===o&&(b.to=null),!1===O&&(b.from=null);const A=Vb.arr(o)||Vb.fun(o)?o:void 0;A?(b.to=void 0,b.onRest=void 0,n&&(n.onRest=void 0)):Gb(lo,(z=>{const p=b[z];if(Vb.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,bz(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===yp(b,"cancel");(A||r&&a.asyncId)&&i.push(Hp(++M._lastAsyncId,{props:b,state:a,actions:{pause:jb,resume:jb,start(b,z){r?(Kp(a,M._lastAsyncId),z(Yp(M))):(b.onRest=e,z(Gp(A,b,a,M)))}}})),a.paused&&await new Promise((M=>{a.resumeQueue.add(M)}));const d=Up(M,await Promise.all(i));if(c&&d.finished&&(!z||!d.noop)){const z=Ao(b,c,o);if(z)return mo(M,[z]),fo(M,z,!0)}return t&&Bb.batchedUpdates((()=>t(d,M,M.item))),d}function ho(M,b){const z={...M.springs};return b&&Gb(Jb(b),(M=>{Vb.und(M.keys)&&(M=ao(M)),Vb.obj(M.to)||(M={...M,to:void 0}),Lo(z,M,(M=>Ro(M)))})),function(M,b){Kb(b,((b,z)=>{M.springs[z]||(M.springs[z]=b,$z(b,M))}))}(M,z),z}function Ro(M,b){const z=new to;return z.key=M,b&&$z(z,b),z}function Lo(M,b,z){b.keys&&Gb(b.keys,(p=>{(M[p]||(M[p]=z(p)))._prepareNode(b)}))}function mo(M,b){Gb(b,(b=>{Lo(M.springs,b,(b=>Ro(b,M)))}))}var go=c.createContext({pause:!1,immediate:!1}),No=()=>{const M=[],b=function(b){Op(`${zp}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 Gb(M,((M,o)=>{if(Vb.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 Gb(M,(M=>M.pause(...arguments))),this},b.resume=function(){return Gb(M,(M=>M.resume(...arguments))),this},b.set=function(b){Gb(M,((M,z)=>{const p=Vb.fun(b)?b(z,M):b;p&&M.set(p)}))},b.start=function(b){const z=[];return Gb(M,((M,p)=>{if(Vb.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 Gb(M,(M=>M.stop(...arguments))),this},b.update=function(b){return Gb(M,((M,z)=>M.update(this._getProps(b,M,z)))),this};const z=function(M,b,z){return Vb.fun(M)?M(z,b):M};return b._getProps=z,b};function Bo(M,b,z){const p=Vb.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?No():void 0),[]),W=Jb(M),u=[],f=A(null),h=o?null:f.current;ep((()=>{f.current=u})),np((()=>(Gb(u,(M=>{l?.add(M.ctrl),M.ctrl.ref=l})),()=>{Gb(f.current,(M=>{M.expired&&clearTimeout(M.expirationId),Cp(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):vo++}))}return Vb.und(z)?M:Vb.fun(z)?M.map(z):Jb(z)}(W,p?p():b,h),L=o&&f.current||[];ep((()=>Gb(L,(({ctrl:M,item:b,key:z})=>{Cp(M,l),Bp(d,b,z)}))));const m=[];if(h&&Gb(h,((M,b)=>{M.expired?(clearTimeout(M.expirationId),L.push(M)):~(b=m[b]=R.indexOf(M.key))&&(u[b]=M)})),Gb(W,((M,b)=>{u[b]||(u[b]={key:R[b],item:M,phase:"mount",ctrl:new uo},u[b].ctrl.item=M)})),m.length){let M=-1;const{leave:z}=p?p():b;Gb(m,((b,p)=>{const o=h[p];~b?(M=u.indexOf(o),u[M]={...o,item:W[b]}):z&&u.splice(++M,0,o)}))}Vb.fun(O)&&u.sort(((M,b)=>O(M.item,b.item)));let g=-e;const N=tp(),B=wp(b),v=new Map,X=A(new Map),y=A(!1);Gb(u,((M,z)=>{const o=M.key,O=M.phase,c=p?p():b;let n,A;const a=Bp(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=Bp(n,M.item,z),n=Vb.obj(n)?kp(n):{to:n},!n.config){const b=s||B.config;n.config=Bp(b,M.item,z,A)}g+=e;const i={...B,delay:a+g,ref:q,immediate:c.immediate,reset:!1,...n};if("enter"==A&&Vb.und(i.from)){const o=p?p():b,O=Vb.und(o.initial)||h?o.from:o.initial;i.from=Bp(O,M.item,z)}const{onResolve:d}=i;i.onResolve=M=>{Bp(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=Bp(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=ho(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(go),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);ep((()=>{T&&Gb(u,(M=>{M.ctrl.start({default:x})}))}),[x]),Gb(v,((M,b)=>{if(X.current.size){const M=u.findIndex((M=>M.key===b.key));u.splice(M,1)}})),ep((()=>{Gb(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:Vb.str(b.key)||Vb.num(b.key)?b.key:b.ctrl.id,ref:o.ref}):o})));return l?[_,l]:_}var vo=1;var Xo=class extends bo{constructor(M,b){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=_z(...b);const z=this._get(),p=Rp(z);rp(this,p.create(z))}advance(M){const b=this._get();Yb(b,this.get())||(ip(this).setValue(b),this._onChange(b,this.idle)),!this.idle&&xo(this._active)&&wo(this)}_get(){const M=Vb.arr(this.source)?this.source.map(Cz):Jb(Cz(this.source));return this.calc(...M)}_start(){this.idle&&!xo(this._active)&&(this.idle=!1,Gb(dp(this),(M=>{M.done=!1})),Ub.skipAnimation?(Bb.batchedUpdates((()=>this.advance())),wo(this)):az.start(this))}_attach(){let M=1;Gb(Jb(this.source),(b=>{Ez(b)&&$z(b,this),Zp(b)&&(b.idle||this._active.add(b),M=Math.max(M,b.priority+1))})),this.priority=M,this._start()}_detach(){Gb(Jb(this.source),(M=>{Ez(M)&&Hz(M,this)})),this._active.clear(),wo(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=Jb(this.source).reduce(((M,b)=>Math.max(M,(Zp(b)?b.priority:0)+1)),0))}};function yo(M){return!1!==M.idle}function xo(M){return!M.size||Array.from(M).every(yo)}function wo(M){M.idle||(M.idle=!0,Gb(dp(M),(M=>{M.done=!0})),Pz(M,{type:"idle",parent:M}))}Ub.assign({createStringInterpolator:bp,to:(M,b)=>new Xo(M,b)});var To=/^--/;function _o(M,b){return null==b||"boolean"==typeof b||""===b?"":"number"!=typeof b||0===b||To.test(M)||So.hasOwnProperty(M)&&So[M]?(""+b).trim():b+"px"}var ko={};var So={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},Eo=["Webkit","Ms","Moz","O"];So=Object.keys(So).reduce(((M,b)=>(Eo.forEach((z=>M[((M,b)=>M+b.charAt(0).toUpperCase()+b.substring(1))(z,b)]=M[b])),M)),So);var Co=/^(matrix|translate|scale|rotate|skew)/,Do=/^(translate)/,Po=/^(rotate|skew)/,Fo=(M,b)=>Vb.num(M)&&0!==M?M+b:M,Io=(M,b)=>Vb.arr(M)?M.every((M=>Io(M,b))):Vb.num(M)?M===b:parseFloat(M)===b,$o=class extends up{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=>Fo(M,"px"))).join(",")})`,Io(M,0)]))),Kb(p,((M,b)=>{if("transform"===b)o.push([M||""]),O.push((M=>[M,""===M]));else if(Co.test(b)){if(delete p[b],Vb.und(M))return;const z=Do.test(b)?"px":Po.test(b)?"deg":"";o.push(Jb(M)),O.push("rotate3d"===b?([M,b,p,o])=>[`rotate3d(${M},${b},${p},${Fo(o,z)})`,Io(o,0)]:M=>[`${b}(${M.map((M=>Fo(M,z))).join(",")})`,Io(M,b.startsWith("scale")?1:0)])}})),o.length&&(p.transform=new Ho(o,O)),super(p)}},Ho=class extends Fz{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 Gb(this.inputs,((z,p)=>{const o=Cz(z[0]),[O,c]=this.transforms[p](Vb.arr(o)?o:z.map(Cz));M+=" "+O,b=b&&c})),b?"none":M}observerAdded(M){1==M&&Gb(this.inputs,(M=>Gb(M,(M=>Ez(M)&&$z(M,this)))))}observerRemoved(M){0==M&&Gb(this.inputs,(M=>Gb(M,(M=>Ez(M)&&Hz(M,this)))))}eventObserved(M){"change"==M.type&&(this._value=null),Pz(this,M)}};Ub.assign({batchedUpdates:N,createStringInterpolator:bp,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 Uo=((M,{applyAnimatedValues:b=()=>!1,createAnimatedStyle:z=M=>new up(M),getComponentProps:p=M=>M}={})=>{const o={applyAnimatedValues:b,createAnimatedStyle:z,getComponentProps:p},O=M=>{const b=Np(M)||"Anonymous";return(M=Vb.str(M)?O[M]||(O[M]=Lp(M,o)):M[gp]||(M[gp]=Lp(M,o))).displayName=`Animated(${b})`,M};return Kb(M,((b,z)=>{Vb.arr(M)&&(z=Np(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:ko[b]||(ko[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=_o(b,o[b]);To.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 $o(M),getComponentProps:({scrollTop:M,scrollLeft:b,...z})=>z}),jo=Uo.animated;const Vo=k(jo.div)`
|
|
1271
|
+
`,pb="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(pb)){let M=document.createElement("div");M.id=pb,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(Mb,{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(bb,{id:M.id,className:"itd-modal",children:[p(zb,{className:"itd-modal-overlay",$show:b}),s(M)]},M.id)}))}),a):null},Ob=q({});Ob.displayName="ITDModalContext";var cb="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},eb="object"==typeof cb&&cb&&cb.Object===Object&&cb,tb="object"==typeof self&&self&&self.Object===Object&&self,nb=(eb||tb||Function("return this")()).Symbol;var Ab=Array.isArray,ab=Object.prototype,ib=ab.hasOwnProperty,rb=ab.toString,db=nb?nb.toStringTag:void 0;var qb=Object.prototype.toString;var sb=nb?nb.toStringTag:void 0;function lb(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":sb&&sb in Object(M)?function(M){var b=ib.call(M,db),z=M[db];try{M[db]=void 0;var p=!0}catch(M){}var o=rb.call(M);return p&&(b?M[db]=z:delete M[db]),o}(M):function(M){return qb.call(M)}(M)}var Wb=nb?nb.prototype:void 0,ub=Wb?Wb.toString:void 0;function fb(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,fb)+"";if(function(M){return"symbol"==typeof M||function(M){return null!=M&&"object"==typeof M}(M)&&"[object Symbol]"==lb(M)}(M))return ub?ub.call(M):"";var b=M+"";return"0"==b&&1/M==-1/0?"-0":b}var hb=0;function Rb(M){var b,z=++hb;return(null==(b=M)?"":fb(b))+z}const Lb={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,onShow:null,onExit:null,useRef:!1,checkAutoRef:!1,content:null,outerPadding:"50px",contentPadding:"30px 20px",beforeContentPadding:"30px 20px 0",afterContentPadding:"0 20px 30px",addContentAfter:null,addContentBefore:null},mb=({children:M})=>{const[b,z]=t([]),[o,c]=t([]),[e,n]=t({event:D.NOT_SHOW,id:""}),A=(M,b)=>{M!==D.NOT_SHOW&&n({event:M,id:b})},a=s((M=>{const p={...Lb,...M};""===p.id&&(p.id=Rb("itd-modal-")),z(p.removeOthers?[p]:[...b,p]),c(p.removeOthers?[p.id]:[...o,p.id])}),[b]),i=s((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=s((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(Ob.Provider,{value:{showModal:a,hideModal:r,removeModal:i,removeAllModals:()=>{c([]),z([]),A(D.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})]})},gb={useModal:()=>a(Ob)};var Nb=Ib(),Bb=M=>Cb(M,Nb),vb=Ib();Bb.write=M=>Cb(M,vb);var Xb=Ib();Bb.onStart=M=>Cb(M,Xb);var yb=Ib();Bb.onFrame=M=>Cb(M,yb);var xb=Ib();Bb.onFinish=M=>Cb(M,xb);var wb=[];Bb.setTimeout=(M,b)=>{const z=Bb.now()+b,p=()=>{const M=wb.findIndex((M=>M.cancel==p));~M&&wb.splice(M,1),Sb-=~M?1:0},o={time:z,handler:M,cancel:p};return wb.splice(Tb(z),0,o),Sb+=1,Db(),o};var Tb=M=>~(~wb.findIndex((b=>b.time>M))||~wb.length);Bb.cancel=M=>{Xb.delete(M),yb.delete(M),xb.delete(M),Nb.delete(M),vb.delete(M)},Bb.sync=M=>{Eb=!0,Bb.batchedUpdates(M),Eb=!1},Bb.throttle=M=>{let b;function z(){try{M(...b)}finally{b=null}}function p(...M){b=M,Bb.onStart(z)}return p.handler=M,p.cancel=()=>{Xb.delete(z),b=null},p};var _b="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Bb.use=M=>_b=M,Bb.now="undefined"!=typeof performance?()=>performance.now():Date.now,Bb.batchedUpdates=M=>M(),Bb.catch=console.error,Bb.frameLoop="always",Bb.advance=()=>{"demand"!==Bb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fb()};var kb=-1,Sb=0,Eb=!1;function Cb(M,b){Eb?(b.delete(M),M(0)):(b.add(M),Db())}function Db(){kb<0&&(kb=0,"demand"!==Bb.frameLoop&&_b(Pb))}function Pb(){~kb&&(_b(Pb),Bb.batchedUpdates(Fb))}function Fb(){const M=kb;kb=Bb.now();const b=Tb(kb);b&&($b(wb.splice(0,b),(M=>M.handler())),Sb-=b),Sb?(Xb.flush(),Nb.flush(M?Math.min(64,kb-M):16.667),yb.flush(),vb.flush(),xb.flush()):kb=-1}function Ib(){let M=new Set,b=M;return{add(z){Sb+=b!=M||M.has(z)?0:1,M.add(z)},delete:z=>(Sb-=b==M&&M.has(z)?1:0,M.delete(z)),flush(z){b.size&&(M=new Set,Sb-=b.size,$b(b,(b=>b(z)&&M.add(b))),Sb+=M.size,b=M)}}}function $b(M,b){M.forEach((M=>{try{b(M)}catch(M){Bb.catch(M)}}))}var Hb=Object.defineProperty,Ub={};function jb(){}((M,b)=>{for(var z in b)Hb(M,z,{get:b[z],enumerable:!0})})(Ub,{assign:()=>cz,colors:()=>pz,createStringInterpolator:()=>Zb,skipAnimation:()=>oz,to:()=>Mz,willAdvance:()=>Oz});var Vb={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 Yb(M,b){if(Vb.arr(M)){if(!Vb.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 Gb=(M,b)=>M.forEach(b);function Kb(M,b,z){if(Vb.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 Jb=M=>Vb.und(M)?[]:Vb.arr(M)?M:[M];function Qb(M,b){if(M.size){const z=Array.from(M);M.clear(),Gb(z,b)}}var Zb,Mz,bz=(M,...b)=>Qb(M,(M=>M(...b))),zz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),pz=null,oz=!1,Oz=jb,cz=M=>{M.to&&(Mz=M.to),M.now&&(Bb.now=M.now),void 0!==M.colors&&(pz=M.colors),null!=M.skipAnimation&&(oz=M.skipAnimation),M.createStringInterpolator&&(Zb=M.createStringInterpolator),M.requestAnimationFrame&&Bb.use(M.requestAnimationFrame),M.batchedUpdates&&(Bb.batchedUpdates=M.batchedUpdates),M.willAdvance&&(Oz=M.willAdvance),M.frameLoop&&(Bb.frameLoop=M.frameLoop)},ez=new Set,tz=[],nz=[],Az=0,az={get idle(){return!ez.size&&!tz.length},start(M){Az>M.priority?(ez.add(M),Bb.onStart(iz)):(rz(M),Bb(qz))},advance:qz,sort(M){if(Az)Bb.onFrame((()=>az.sort(M)));else{const b=tz.indexOf(M);~b&&(tz.splice(b,1),dz(M))}},clear(){tz=[],ez.clear()}};function iz(){ez.forEach(rz),ez.clear(),Bb(qz)}function rz(M){tz.includes(M)||dz(M)}function dz(M){tz.splice(function(M,b){const z=M.findIndex(b);return z<0?M.length:z}(tz,(b=>b.priority>M.priority)),0,M)}function qz(M){const b=nz;for(let z=0;z<tz.length;z++){const p=tz[z];Az=p.priority,p.idle||(Oz(p),p.advance(M),p.idle||b.push(p))}return Az=0,(nz=tz).length=0,(tz=b).length>0}var sz="[-+]?\\d*\\.?\\d+",lz=sz+"%";function Wz(...M){return"\\(\\s*("+M.join(")\\s*,\\s*(")+")\\s*\\)"}var uz=new RegExp("rgb"+Wz(sz,sz,sz)),fz=new RegExp("rgba"+Wz(sz,sz,sz,sz)),hz=new RegExp("hsl"+Wz(sz,lz,lz)),Rz=new RegExp("hsla"+Wz(sz,lz,lz,sz)),Lz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gz=/^#([0-9a-fA-F]{6})$/,Nz=/^#([0-9a-fA-F]{8})$/;function Bz(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 vz(M,b,z){const p=z<.5?z*(1+b):z+b-z*b,o=2*z-p,O=Bz(o,p,M+1/3),c=Bz(o,p,M),e=Bz(o,p,M-1/3);return Math.round(255*O)<<24|Math.round(255*c)<<16|Math.round(255*e)<<8}function Xz(M){const b=parseInt(M,10);return b<0?0:b>255?255:b}function yz(M){return(parseFloat(M)%360+360)%360/360}function xz(M){const b=parseFloat(M);return b<0?0:b>1?255:Math.round(255*b)}function wz(M){const b=parseFloat(M);return b<0?0:b>100?1:b/100}function Tz(M){let b=function(M){let b;return"number"==typeof M?M>>>0===M&&M>=0&&M<=4294967295?M:null:(b=gz.exec(M))?parseInt(b[1]+"ff",16)>>>0:pz&&void 0!==pz[M]?pz[M]:(b=uz.exec(M))?(Xz(b[1])<<24|Xz(b[2])<<16|Xz(b[3])<<8|255)>>>0:(b=fz.exec(M))?(Xz(b[1])<<24|Xz(b[2])<<16|Xz(b[3])<<8|xz(b[4]))>>>0:(b=Lz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+"ff",16)>>>0:(b=Nz.exec(M))?parseInt(b[1],16)>>>0:(b=mz.exec(M))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=hz.exec(M))?(255|vz(yz(b[1]),wz(b[2]),wz(b[3])))>>>0:(b=Rz.exec(M))?(vz(yz(b[1]),wz(b[2]),wz(b[3]))|xz(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 _z=(M,b,z)=>{if(Vb.fun(M))return M;if(Vb.arr(M))return _z({range:M,output:b,extrapolate:z});if(Vb.str(M.output[0]))return Zb(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 kz=Symbol.for("FluidValue.get"),Sz=Symbol.for("FluidValue.observers"),Ez=M=>Boolean(M&&M[kz]),Cz=M=>M&&M[kz]?M[kz]():M,Dz=M=>M[Sz]||null;function Pz(M,b){const z=M[Sz];z&&z.forEach((M=>{!function(M,b){M.eventObserved?M.eventObserved(b):M(b)}(M,b)}))}var Fz=class{constructor(M){if(!M&&!(M=this.get))throw Error("Unknown getter");Iz(this,M)}},Iz=(M,b)=>jz(M,kz,b);function $z(M,b){if(M[kz]){let z=M[Sz];z||jz(M,Sz,z=new Set),z.has(b)||(z.add(b),M.observerAdded&&M.observerAdded(z.size,b))}return b}function Hz(M,b){const z=M[Sz];if(z&&z.has(b)){const p=z.size-1;p?z.delete(b):M[Sz]=null,M.observerRemoved&&M.observerRemoved(p,b)}}var Uz,jz=(M,b,z)=>Object.defineProperty(M,b,{value:z,writable:!0,configurable:!0}),Vz=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gz=new RegExp(`(${Vz.source})(%|[a-z]+)`,"i"),Kz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Jz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Qz=M=>{const[b,z]=Zz(M);if(!b||zz())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&&Jz.test(z)?Qz(z):z||M},Zz=M=>{const b=Jz.exec(M);if(!b)return[,];const[,z,p]=b;return[z,p]},Mp=(M,b,z,p,o)=>`rgba(${Math.round(b)}, ${Math.round(z)}, ${Math.round(p)}, ${o})`,bp=M=>{Uz||(Uz=pz?new RegExp(`(${Object.keys(pz).join("|")})(?!\\w)`,"g"):/^\b$/);const b=M.output.map((M=>Cz(M).replace(Jz,Qz).replace(Yz,Tz).replace(Uz,Tz))),z=b.map((M=>M.match(Vz).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=>_z({...M,output:b})));return M=>{const z=!Gz.test(b[0])&&b.find((M=>Gz.test(M)))?.replace(Vz,"");let p=0;return b[0].replace(Vz,(()=>`${o[p++](M)}${z||""}`)).replace(Kz,Mp)}},zp="react-spring: ",pp=M=>{const b=M;let z=!1;if("function"!=typeof b)throw new TypeError(`${zp}once requires a function parameter`);return(...M)=>{z||(b(...M),z=!0)}},op=pp(console.warn);var Op=pp(console.warn);function cp(M){return Vb.str(M)&&("#"==M[0]||/\d/.test(M)||!zz()&&Jz.test(M)||M in(pz||{}))}var ep=zz()?n:l;function tp(){const M=t()[1],b=(()=>{const M=A(!1);return ep((()=>(M.current=!0,()=>{M.current=!1})),[]),M})();return()=>{b.current&&M(Math.random())}}var np=M=>n(M,Ap),Ap=[];var ap=Symbol.for("Animated:node"),ip=M=>M&&M[ap],rp=(M,b)=>{return z=M,p=ap,o=b,Object.defineProperty(z,p,{value:o,writable:!0,configurable:!0});var z,p,o},dp=M=>M&&M[ap]&&M[ap].getPayload(),qp=class{constructor(){rp(this,this)}getPayload(){return this.payload||[]}},sp=class M extends qp{constructor(M){super(),this._value=M,this.done=!0,this.durationProgress=0,Vb.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 Vb.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,Vb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,M&&(this.lastVelocity=null),this.v0=null)}},lp=class M extends sp{constructor(M){super(0),this._string=null,this._toString=_z({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(Vb.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=_z({output:[this.getValue(),M]})),this._value=0,super.reset()}},Wp={dependencies:null},up=class extends qp{constructor(M){super(),this.source=M,this.setValue(M)}getValue(M){const b={};return Kb(this.source,((z,p)=>{var o;(o=z)&&o[ap]===o?b[p]=z.getValue(M):Ez(z)?b[p]=Cz(z):M||(b[p]=z)})),b}setValue(M){this.source=M,this.payload=this._makePayload(M)}reset(){this.payload&&Gb(this.payload,(M=>M.reset()))}_makePayload(M){if(M){const b=new Set;return Kb(M,this._addToPayload,b),Array.from(b)}}_addToPayload(M){Wp.dependencies&&Ez(M)&&Wp.dependencies.add(M);const b=dp(M);b&&Gb(b,(M=>this.add(M)))}},fp=class M extends up{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(hp)),!0)}};function hp(M){return(cp(M)?lp:sp).create(M)}function Rp(M){const b=ip(M);return b?b.constructor:Vb.arr(M)?fp:cp(M)?lp:sp}var Lp=(M,b)=>{const z=!Vb.fun(M)||M.prototype&&M.prototype.isReactComponent;return W(((p,o)=>{const O=A(null),e=z&&s((M=>{O.current=function(M,b){M&&(Vb.fun(M)?M(b):M.current=b);return b}(o,M)}),[o]),[t,a]=function(M,b){const z=new Set;Wp.dependencies=z,M.style&&(M={...M,style:b.createAnimatedStyle(M.style)});return M=new up(M),Wp.dependencies=null,[M,z]}(p,b),i=tp(),r=()=>{const M=O.current;if(z&&!M)return;!1===(!!M&&b.applyAnimatedValues(M,t.getValue(!0)))&&i()},d=new mp(r,a),q=A(void 0);ep((()=>(q.current=d,Gb(a,(M=>$z(M,d))),()=>{q.current&&(Gb(q.current.deps,(M=>Hz(M,q.current))),Bb.cancel(q.current.update))}))),n(r,[]),np((()=>()=>{const M=q.current;Gb(M.deps,(b=>Hz(b,M)))}));const l=b.getComponentProps(t.getValue());return c.createElement(M,{...l,ref:e})}))},mp=class{constructor(M,b){this.update=M,this.deps=b}eventObserved(M){"change"==M.type&&Bb.write(this.update)}};var gp=Symbol.for("AnimatedComponent"),Np=M=>Vb.str(M)?M:M&&Vb.str(M.displayName)?M.displayName:Vb.fun(M)&&M.name||null;function Bp(M,...b){return Vb.fun(M)?M(...b):M}var vp=(M,b)=>!0===M||!!(b&&M&&(Vb.fun(M)?M(b):Jb(M).includes(b))),Xp=(M,b)=>Vb.obj(M)?b&&M[b]:M,yp=(M,b)=>!0===M.default?M[b]:M.default?M.default[b]:void 0,xp=M=>M,wp=(M,b=xp)=>{let z=Tp;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);Vb.und(z)||(p[o]=z)}return p},Tp=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_p={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 kp(M){const b=function(M){const b={};let z=0;if(Kb(M,((M,p)=>{_p[p]||(b[p]=M,z++)})),z)return b}(M);if(b){const z={to:b};return Kb(M,((M,p)=>p in b||(z[p]=M))),z}return{...M}}function Sp(M){return M=Cz(M),Vb.arr(M)?M.map(Sp):cp(M)?Ub.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function Ep(M){return Vb.fun(M)||Vb.arr(M)&&Vb.obj(M[0])}function Cp(M,b){M.ref?.delete(M),b?.delete(M)}var Dp={tension:170,friction:26,mass:1,damping:1,easing:M=>M,clamp:!1},Pp=class{constructor(){this.velocity=0,Object.assign(this,Dp)}};function Fp(M,b){if(Vb.und(b.decay)){const z=!Vb.und(b.tension)||!Vb.und(b.friction);!z&&Vb.und(b.frequency)&&Vb.und(b.damping)&&Vb.und(b.mass)||(M.duration=void 0,M.decay=void 0),z&&(M.frequency=void 0)}else M.duration=void 0}var Ip=[],$p=class{constructor(){this.changed=!1,this.values=Ip,this.toValues=null,this.fromValues=Ip,this.config=new Pp,this.immediate=!1}};function Hp(M,{key:b,props:z,defaultProps:p,state:o,actions:O}){return new Promise(((c,e)=>{let t,n,A=vp(z.cancel??p?.cancel,b);if(A)r();else{Vb.und(z.pause)||(o.paused=vp(z.pause,b));let M=p?.pause;!0!==M&&(M=o.paused||vp(M,b)),t=Bp(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-Bb.now()}function i(){t>0&&!Ub.skipAnimation?(o.delayed=!0,n=Bb.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 Up=(M,b)=>1==b.length?b[0]:b.some((M=>M.cancelled))?Yp(M.get()):b.every((M=>M.noop))?jp(M.get()):Vp(M.get(),b.every((M=>M.finished))),jp=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Vp=(M,b,z=!1)=>({value:M,finished:b,cancelled:z}),Yp=M=>({value:M,cancelled:!0,finished:!1});function Gp(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=wp(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)&&Yp(p)||o!==z.asyncId&&Vp(p,!1);if(b)throw M.result=b,a(M),M},d=(M,b)=>{const O=new Jp,c=new Qp;return(async()=>{if(Ub.skipAnimation)throw Kp(z),c.result=Vp(p,!1),a(c),c;r(O);const e=Vb.obj(M)?{...M}:{...b,to:M};e.parentId=o,Kb(n,((M,b)=>{Vb.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(Ub.skipAnimation)return Kp(z),Vp(p,!1);try{let b;b=Vb.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=Vp(p.get(),!0,!1)}catch(M){if(M instanceof Jp)q=M.result;else{if(!(M instanceof Qp))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 Vb.fun(c)&&Bb.batchedUpdates((()=>{c(q,p,p.item)})),q})():t}function Kp(M,b){Qb(M.timeouts,(M=>M.cancel())),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,b&&(M.cancelId=b)}var Jp=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.")}},Qp=class extends Error{constructor(){super("SkipAnimationSignal")}},Zp=M=>M instanceof bo,Mo=1,bo=class extends Fz{constructor(){super(...arguments),this.id=Mo++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){const M=ip(this);return M&&M.getValue()}to(...M){return Ub.to(this,M)}interpolate(...M){return op(`${zp}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ub.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){Pz(this,{type:"change",parent:this,value:M,idle:b})}_onPriorityChange(M){this.idle||az.sort(this),Pz(this,{type:"priority",parent:this,priority:M})}},zo=Symbol.for("SpringPhase"),po=M=>(1&M[zo])>0,oo=M=>(2&M[zo])>0,Oo=M=>(4&M[zo])>0,co=(M,b)=>b?M[zo]|=3:M[zo]&=-3,eo=(M,b)=>b?M[zo]|=4:M[zo]&=-5,to=class extends bo{constructor(M,b){if(super(),this.animation=new $p,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,!Vb.und(M)||!Vb.und(b)){const z=Vb.obj(M)?{...M}:{...b,from:M};Vb.und(z.default)&&(z.default=!0),this.start(z)}}get idle(){return!(oo(this)||this._state.asyncTo)||Oo(this)}get goal(){return Cz(this.animation.to)}get velocity(){const M=ip(this);return M instanceof sp?M.lastVelocity||0:M.getPayload().map((M=>M.lastVelocity||0))}get hasAnimated(){return po(this)}get isAnimating(){return oo(this)}get isPaused(){return Oo(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=dp(p.to);!c&&Ez(p.to)&&(o=Jb(Cz(p.to))),p.values.forEach(((e,t)=>{if(e.done)return;const n=e.constructor==lp?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=Vb.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(Vb.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=!Vb.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=ip(this),t=e.getValue();if(b){const M=Cz(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 Bb.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;Bb.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 Vb.und(M)?(z=this.queue||[],this.queue=[]):z=[Vb.obj(M)?M:{...b,to:M}],Promise.all(z.map((M=>this._update(M)))).then((M=>Up(this,M)))}stop(M){const{to:b}=this.animation;return this._focus(this.get()),Kp(this._state,M&&this._lastCallId),Bb.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=Vb.obj(z)?z[b]:z,(null==z||Ep(z))&&(z=void 0),p=Vb.obj(p)?p[b]:p,null==p&&(p=void 0);const o={to:z,from:p};return po(this)||(M.reverse&&([z,p]=[p,z]),p=Cz(p),Vb.und(p)?ip(this)||this._set(z):this._set(p)),o}_update({...M},b){const{key:z,defaultProps:p}=this;M.default&&Object.assign(p,wp(M,((M,b)=>/^on/.test(b)?Xp(M,z):M))),qo(this,M,"onProps"),so(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 Hp(++this._lastCallId,{key:z,props:M,defaultProps:p,state:O,actions:{pause:()=>{Oo(this)||(eo(this,!0),bz(O.pauseQueue),so(this,"onPause",Vp(this,no(this,this.animation.to)),this))},resume:()=>{Oo(this)&&(eo(this,!1),oo(this)&&this._resume(),bz(O.resumeQueue),so(this,"onResume",Vp(this,no(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(Yp(this));const p=!Vb.und(M.to),o=!Vb.und(M.from);if(p||o){if(!(b.callId>this._lastToId))return z(Yp(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&&!Vb.und(A)||(A=a),b.reverse&&([A,a]=[a,A]);const i=!Yb(a,n);i&&(e.from=a),a=Cz(a);const r=!Yb(A,t);r&&this._focus(A);const d=Ep(b.to),{config:q}=e,{decay:s,velocity:l}=q;(p||o)&&(q.velocity=0),b.config&&!d&&function(M,b,z){z&&(Fp(z={...z},b),b={...z,...b}),Fp(M,b),Object.assign(M,b);for(const b in Dp)null==M[b]&&(M[b]=Dp[b]);let{frequency:p,damping:o}=M;const{mass:O}=M;Vb.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,Bp(b.config,O),b.config!==c.config?Bp(c.config,O):void 0);let W=ip(this);if(!W||Vb.und(A))return z(Vp(this,!0));const u=Vb.und(b.reset)?o&&!b.default:!Vb.und(a)&&vp(b.reset,O),f=u?a:this.get(),h=Sp(A),R=Vb.num(h)||Vb.arr(h)||cp(h),L=!d&&(!R||vp(c.immediate||b.immediate,O));if(r){const M=Rp(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=Ez(A),N=!1;if(!g){const M=u||!po(this)&&i;(r||M)&&(N=Yb(Sp(f),h),g=!N),(Yb(e.immediate,L)||L)&&Yb(q.decay,s)&&Yb(q.velocity,l)||(g=!0)}if(N&&oo(this)&&(e.changed&&!u?g=!0:g||this._stop(t)),!d&&((g||Ez(t))&&(e.values=W.getPayload(),e.toValues=Ez(A)?null:m==lp?[1]:Jb(h)),e.immediate!=L&&(e.immediate=L,L||u||this._set(t)),g)){const{onRest:M}=e;Gb(ro,(M=>qo(this,b,M)));const p=Vp(this,no(this,t));bz(this._pendingCalls,p),this._pendingCalls.add(z),e.changed&&Bb.batchedUpdates((()=>{e.changed=!u,M?.(p,this),u?Bp(c.onRest,p):e.onStart?.(p,this)}))}u&&this._set(f),d?z(Gp(b.to,b,this._state,this)):g?this._start():oo(this)&&!r?this._pendingCalls.add(z):z(jp(f))}_focus(M){const b=this.animation;M!==b.to&&(Dz(this)&&this._detach(),b.to=M,Dz(this)&&this._attach())}_attach(){let M=0;const{to:b}=this.animation;Ez(b)&&($z(b,this),Zp(b)&&(M=b.priority+1)),this.priority=M}_detach(){const{to:M}=this.animation;Ez(M)&&Hz(M,this)}_set(M,b=!0){const z=Cz(M);if(!Vb.und(z)){const M=ip(this);if(!M||!Yb(z,M.getValue())){const p=Rp(z);M&&M.constructor==p?M.setValue(z):rp(this,p.create(z)),M&&Bb.batchedUpdates((()=>{this._onChange(z,b)}))}}return ip(this)}_onStart(){const M=this.animation;M.changed||(M.changed=!0,so(this,"onStart",Vp(this,no(this,M.to)),this))}_onChange(M,b){b||(this._onStart(),Bp(this.animation.onChange,M,this)),Bp(this.defaultProps.onChange,M,this),super._onChange(M,b)}_start(){const M=this.animation;ip(this).reset(Cz(M.to)),M.immediate||(M.fromValues=M.values.map((M=>M.lastPosition))),oo(this)||(co(this,!0),Oo(this)||this._resume())}_resume(){Ub.skipAnimation?this.finish():az.start(this)}_stop(M,b){if(oo(this)){co(this,!1);const z=this.animation;Gb(z.values,(M=>{M.done=!0})),z.toValues&&(z.onChange=z.onPause=z.onResume=void 0),Pz(this,{type:"idle",parent:this});const p=b?Yp(this.get()):Vp(this.get(),no(this,M??z.to));bz(this._pendingCalls,p),z.changed&&(z.changed=!1,so(this,"onRest",p,this))}}};function no(M,b){const z=Sp(b);return Yb(Sp(M.get()),z)}function Ao(M,b=M.loop,z=M.to){const p=Bp(b);if(p){const o=!0!==p&&kp(p),O=(o||M).reverse,c=!o||o.reset;return ao({...M,loop:b,default:!1,pause:void 0,to:!O||Ep(z)?z:void 0,from:c?M.from:void 0,reset:c,...o})}}function ao(M){const{to:b,from:z}=M=kp(M),p=new Set;return Vb.obj(b)&&io(b,p),Vb.obj(z)&&io(z,p),M.keys=p.size?Array.from(p):null,M}function io(M,b){Kb(M,((M,z)=>null!=M&&b.add(z)))}var ro=["onStart","onRest","onChange","onPause","onResume"];function qo(M,b,z){M.animation[z]=b[z]!==yp(b,z)?Xp(b[z],M.key):void 0}function so(M,b,...z){M.animation[b]?.(...z),M.defaultProps[b]?.(...z)}var lo=["onStart","onChange","onRest"],Wo=1,uo=class{constructor(M,b){this.id=Wo++,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];Vb.und(z)||this.springs[b].set(z)}}update(M){return M&&this.queue.push(ao(M)),this}start(M){let{queue:b}=this;return M?b=Jb(M).map(ao):this.queue=[],this._flush?this._flush(this,b):(mo(this,b),function(M,b){return Promise.all(b.map((b=>fo(M,b)))).then((b=>Up(M,b)))}(this,b))}stop(M,b){if(M!==!!M&&(b=M),b){const z=this.springs;Gb(Jb(b),(b=>z[b].stop(!!M)))}else Kp(this._state,this._lastAsyncId),this.each((b=>b.stop(!!M)));return this}pause(M){if(Vb.und(M))this.start({pause:!0});else{const b=this.springs;Gb(Jb(M),(M=>b[M].pause()))}return this}resume(M){if(Vb.und(M))this.start({pause:!1});else{const b=this.springs;Gb(Jb(M),(M=>b[M].resume()))}return this}each(M){Kb(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,Qb(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&&Qb(b,(([M,b])=>{b.value=c,M(b,this,this._item)})),O&&(this._started=!1,Qb(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)}Bb.onFrame(this._onFrame)}};async function fo(M,b,z){const{keys:p,to:o,from:O,loop:c,onRest:e,onResolve:t}=b,n=Vb.obj(b.default)&&b.default;c&&(b.loop=!1),!1===o&&(b.to=null),!1===O&&(b.from=null);const A=Vb.arr(o)||Vb.fun(o)?o:void 0;A?(b.to=void 0,b.onRest=void 0,n&&(n.onRest=void 0)):Gb(lo,(z=>{const p=b[z];if(Vb.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,bz(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===yp(b,"cancel");(A||r&&a.asyncId)&&i.push(Hp(++M._lastAsyncId,{props:b,state:a,actions:{pause:jb,resume:jb,start(b,z){r?(Kp(a,M._lastAsyncId),z(Yp(M))):(b.onRest=e,z(Gp(A,b,a,M)))}}})),a.paused&&await new Promise((M=>{a.resumeQueue.add(M)}));const d=Up(M,await Promise.all(i));if(c&&d.finished&&(!z||!d.noop)){const z=Ao(b,c,o);if(z)return mo(M,[z]),fo(M,z,!0)}return t&&Bb.batchedUpdates((()=>t(d,M,M.item))),d}function ho(M,b){const z={...M.springs};return b&&Gb(Jb(b),(M=>{Vb.und(M.keys)&&(M=ao(M)),Vb.obj(M.to)||(M={...M,to:void 0}),Lo(z,M,(M=>Ro(M)))})),function(M,b){Kb(b,((b,z)=>{M.springs[z]||(M.springs[z]=b,$z(b,M))}))}(M,z),z}function Ro(M,b){const z=new to;return z.key=M,b&&$z(z,b),z}function Lo(M,b,z){b.keys&&Gb(b.keys,(p=>{(M[p]||(M[p]=z(p)))._prepareNode(b)}))}function mo(M,b){Gb(b,(b=>{Lo(M.springs,b,(b=>Ro(b,M)))}))}var go=c.createContext({pause:!1,immediate:!1}),No=()=>{const M=[],b=function(b){Op(`${zp}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 Gb(M,((M,o)=>{if(Vb.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 Gb(M,(M=>M.pause(...arguments))),this},b.resume=function(){return Gb(M,(M=>M.resume(...arguments))),this},b.set=function(b){Gb(M,((M,z)=>{const p=Vb.fun(b)?b(z,M):b;p&&M.set(p)}))},b.start=function(b){const z=[];return Gb(M,((M,p)=>{if(Vb.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 Gb(M,(M=>M.stop(...arguments))),this},b.update=function(b){return Gb(M,((M,z)=>M.update(this._getProps(b,M,z)))),this};const z=function(M,b,z){return Vb.fun(M)?M(z,b):M};return b._getProps=z,b};function Bo(M,b,z){const p=Vb.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?No():void 0),[]),W=Jb(M),u=[],f=A(null),h=o?null:f.current;ep((()=>{f.current=u})),np((()=>(Gb(u,(M=>{l?.add(M.ctrl),M.ctrl.ref=l})),()=>{Gb(f.current,(M=>{M.expired&&clearTimeout(M.expirationId),Cp(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):vo++}))}return Vb.und(z)?M:Vb.fun(z)?M.map(z):Jb(z)}(W,p?p():b,h),L=o&&f.current||[];ep((()=>Gb(L,(({ctrl:M,item:b,key:z})=>{Cp(M,l),Bp(d,b,z)}))));const m=[];if(h&&Gb(h,((M,b)=>{M.expired?(clearTimeout(M.expirationId),L.push(M)):~(b=m[b]=R.indexOf(M.key))&&(u[b]=M)})),Gb(W,((M,b)=>{u[b]||(u[b]={key:R[b],item:M,phase:"mount",ctrl:new uo},u[b].ctrl.item=M)})),m.length){let M=-1;const{leave:z}=p?p():b;Gb(m,((b,p)=>{const o=h[p];~b?(M=u.indexOf(o),u[M]={...o,item:W[b]}):z&&u.splice(++M,0,o)}))}Vb.fun(O)&&u.sort(((M,b)=>O(M.item,b.item)));let g=-e;const N=tp(),B=wp(b),v=new Map,X=A(new Map),y=A(!1);Gb(u,((M,z)=>{const o=M.key,O=M.phase,c=p?p():b;let n,A;const a=Bp(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=Bp(n,M.item,z),n=Vb.obj(n)?kp(n):{to:n},!n.config){const b=s||B.config;n.config=Bp(b,M.item,z,A)}g+=e;const i={...B,delay:a+g,ref:q,immediate:c.immediate,reset:!1,...n};if("enter"==A&&Vb.und(i.from)){const o=p?p():b,O=Vb.und(o.initial)||h?o.from:o.initial;i.from=Bp(O,M.item,z)}const{onResolve:d}=i;i.onResolve=M=>{Bp(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=Bp(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=ho(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(go),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);ep((()=>{T&&Gb(u,(M=>{M.ctrl.start({default:x})}))}),[x]),Gb(v,((M,b)=>{if(X.current.size){const M=u.findIndex((M=>M.key===b.key));u.splice(M,1)}})),ep((()=>{Gb(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:Vb.str(b.key)||Vb.num(b.key)?b.key:b.ctrl.id,ref:o.ref}):o})));return l?[_,l]:_}var vo=1;var Xo=class extends bo{constructor(M,b){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=_z(...b);const z=this._get(),p=Rp(z);rp(this,p.create(z))}advance(M){const b=this._get();Yb(b,this.get())||(ip(this).setValue(b),this._onChange(b,this.idle)),!this.idle&&xo(this._active)&&wo(this)}_get(){const M=Vb.arr(this.source)?this.source.map(Cz):Jb(Cz(this.source));return this.calc(...M)}_start(){this.idle&&!xo(this._active)&&(this.idle=!1,Gb(dp(this),(M=>{M.done=!1})),Ub.skipAnimation?(Bb.batchedUpdates((()=>this.advance())),wo(this)):az.start(this))}_attach(){let M=1;Gb(Jb(this.source),(b=>{Ez(b)&&$z(b,this),Zp(b)&&(b.idle||this._active.add(b),M=Math.max(M,b.priority+1))})),this.priority=M,this._start()}_detach(){Gb(Jb(this.source),(M=>{Ez(M)&&Hz(M,this)})),this._active.clear(),wo(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=Jb(this.source).reduce(((M,b)=>Math.max(M,(Zp(b)?b.priority:0)+1)),0))}};function yo(M){return!1!==M.idle}function xo(M){return!M.size||Array.from(M).every(yo)}function wo(M){M.idle||(M.idle=!0,Gb(dp(M),(M=>{M.done=!0})),Pz(M,{type:"idle",parent:M}))}Ub.assign({createStringInterpolator:bp,to:(M,b)=>new Xo(M,b)});var To=/^--/;function _o(M,b){return null==b||"boolean"==typeof b||""===b?"":"number"!=typeof b||0===b||To.test(M)||So.hasOwnProperty(M)&&So[M]?(""+b).trim():b+"px"}var ko={};var So={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},Eo=["Webkit","Ms","Moz","O"];So=Object.keys(So).reduce(((M,b)=>(Eo.forEach((z=>M[((M,b)=>M+b.charAt(0).toUpperCase()+b.substring(1))(z,b)]=M[b])),M)),So);var Co=/^(matrix|translate|scale|rotate|skew)/,Do=/^(translate)/,Po=/^(rotate|skew)/,Fo=(M,b)=>Vb.num(M)&&0!==M?M+b:M,Io=(M,b)=>Vb.arr(M)?M.every((M=>Io(M,b))):Vb.num(M)?M===b:parseFloat(M)===b,$o=class extends up{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=>Fo(M,"px"))).join(",")})`,Io(M,0)]))),Kb(p,((M,b)=>{if("transform"===b)o.push([M||""]),O.push((M=>[M,""===M]));else if(Co.test(b)){if(delete p[b],Vb.und(M))return;const z=Do.test(b)?"px":Po.test(b)?"deg":"";o.push(Jb(M)),O.push("rotate3d"===b?([M,b,p,o])=>[`rotate3d(${M},${b},${p},${Fo(o,z)})`,Io(o,0)]:M=>[`${b}(${M.map((M=>Fo(M,z))).join(",")})`,Io(M,b.startsWith("scale")?1:0)])}})),o.length&&(p.transform=new Ho(o,O)),super(p)}},Ho=class extends Fz{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 Gb(this.inputs,((z,p)=>{const o=Cz(z[0]),[O,c]=this.transforms[p](Vb.arr(o)?o:z.map(Cz));M+=" "+O,b=b&&c})),b?"none":M}observerAdded(M){1==M&&Gb(this.inputs,(M=>Gb(M,(M=>Ez(M)&&$z(M,this)))))}observerRemoved(M){0==M&&Gb(this.inputs,(M=>Gb(M,(M=>Ez(M)&&Hz(M,this)))))}eventObserved(M){"change"==M.type&&(this._value=null),Pz(this,M)}};Ub.assign({batchedUpdates:N,createStringInterpolator:bp,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 Uo=((M,{applyAnimatedValues:b=()=>!1,createAnimatedStyle:z=M=>new up(M),getComponentProps:p=M=>M}={})=>{const o={applyAnimatedValues:b,createAnimatedStyle:z,getComponentProps:p},O=M=>{const b=Np(M)||"Anonymous";return(M=Vb.str(M)?O[M]||(O[M]=Lp(M,o)):M[gp]||(M[gp]=Lp(M,o))).displayName=`Animated(${b})`,M};return Kb(M,((b,z)=>{Vb.arr(M)&&(z=Np(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:ko[b]||(ko[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=_o(b,o[b]);To.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 $o(M),getComponentProps:({scrollTop:M,scrollLeft:b,...z})=>z}),jo=Uo.animated;const Vo=k(jo.div)`
|
|
1272
1272
|
|
|
1273
1273
|
margin-bottom: 10px;
|
|
1274
1274
|
max-width: 300px;
|
|
@@ -1928,7 +1928,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
1930
|
|
|
1931
|
-
`;function EA({className:M="",children:b,style:z}){const o=A(null);return n((()=>{if(o.current){const M=wA(o.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]}});return()=>{M.destroy()}}}),[]),p(SA,{style:z,children:p("div",{ref:o,className:`os-viewport ${M}`,style:{width:"100%",overflow:"auto"},children:b})})}const CA=k.div`
|
|
1931
|
+
`;function EA({className:M="",children:b,style:z}){const o=A(null);return n((()=>{if(o.current){const M=wA(o.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]},update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null}});return()=>{M.destroy()}}}),[]),p(SA,{style:z,children:p("div",{ref:o,className:`os-viewport ${M}`,style:{width:"100%",overflow:"auto"},children:b})})}const CA=k.div`
|
|
1932
1932
|
|
|
1933
1933
|
min-width: 100%;
|
|
1934
1934
|
min-height: 40px;
|
|
@@ -1938,6 +1938,14 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
1938
1938
|
transform-box: fill-box;
|
|
1939
1939
|
transform-origin: 50% 1%;
|
|
1940
1940
|
|
|
1941
|
+
/* iOS Safari için layout shift önleme */
|
|
1942
|
+
-webkit-transform: translate3d(0, 0, 0);
|
|
1943
|
+
transform: translate3d(0, 0, 0);
|
|
1944
|
+
-webkit-backface-visibility: hidden;
|
|
1945
|
+
backface-visibility: hidden;
|
|
1946
|
+
-webkit-perspective: 1000;
|
|
1947
|
+
perspective: 1000;
|
|
1948
|
+
|
|
1941
1949
|
ul {
|
|
1942
1950
|
min-width: max-content;
|
|
1943
1951
|
}
|
|
@@ -2386,7 +2394,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
2386
2394
|
}
|
|
2387
2395
|
`}
|
|
2388
2396
|
|
|
2389
|
-
`,VA=W((({id:M="itd-select-"+IM(),position:z="bottom",direction:o="right",size:c="default",variant:e="default",placeholder:a="Please Select",className:i="",multi:r=!1,disabled:d=!1,showSearch:q=!1,locked:s=!1,floating:l=!1,options:W=[],value:f,defaultValue:h,label:R,prefix:L,suffix:g,icon:N,image:B,style:v,onChange:X,onUpdate:y},x)=>{const{t:w}=b("itd"),T=A(null),[_,k]=t(!1),[S,E]=t(""),[C,D]=t(void 0),[P,F]=t("");n((()=>{_||setTimeout((()=>{E("")}),300)}),[_]),n((()=>{void 0!==h&&D(h)}),[h]),n((()=>{void 0!==f&&D(f)}),[f]),tM(T,(()=>{_&&k(!1)})),nM((()=>{_&&k(!1)}));const I=(M,b=!0,z=!0)=>{y&&y(M,b,z)};u(x,(()=>({reset(M=!0,b=!0){const z=h||(r?[]:void 0);D(z),F(""),I(z,M,b)},setValue(M,b=!0,z=!0){D(M),I(M,b,z)},getValue:()=>C||(r?[]:""),setError(M){F(M||"")},clear(){}})));const $=()=>"x-small"===c?"xs":"small"===c?"sm":"medium"===c?"md":"default"===c?"df":"large"===c?"lg":"x-large"===c?"xlg":"df";return n((()=>{if(_&&r&&C&&Array.isArray(C)&&C.length>0){const M=W.find((M=>C.includes(M.value.toString())));if(M){const b=document.querySelector(`[data-value="${M.value}"]`);b&&setTimeout((()=>{b.scrollIntoView({behavior:"instant",block:"nearest",inline:"start"})}),50)}}}),[_]),O(jA,{ref:T,className:(()=>{let M="itd-select";return M+=" itd-select-"+e,M+=" itd-select-"+(r?"multi":"single"),M+=" itd-select-"+o,M+=" itd-select-"+$(),_&&(M+=" itd-select-open"),P&&(M+=" itd-select-status-error"),d&&(M+=" itd-select-disabled"),q&&(M+=" itd-select-search"),N&&(M+=" itd-icon"),B&&(M+=" itd-image"),""!==i&&(M+=" "+i),M})(),...(()=>{let M={style:void 0,disabled:!1,$hasImage:null!=B,$hasIcon:null!=N,$size:$(),$filled:void 0!==C};return d&&(M.disabled=!0),v&&(M.style=v),M})(),children:[p(pe,{id:M,labelType:l?"floating":"single",value:C,placeholder:W.length>0?a:"",onChange:M=>{k(M)},onFocus:()=>{k(!0)},onBlur:()=>{k(!1)},onShow:M=>{k(M)},onFilter:M=>{_&&E(M)},errorMessage:P,size:c,icon:N,prefix:L,suffix:g,image:B,label:(()=>{if(R)return R;if(void 0===C)return;let M="";if(r){const b=W.filter((M=>M.value===C[0]))[0];Array.isArray(C)&&(1===C.length?b&&(M=b.label):C.length>1&&(M=w("placeholders.multipleSelection",{count:C.length})))}else{const b=W.filter((M=>M.value===C))[0];b&&(M=b.label)}return M})(),disabled:d,isOpen:_,multi:r,locked:s,showSearch:q}),p(PA,{onClose:()=>{k(!1)},onChange:M=>{F(""),I(M),D(M),r||k(!1),X&&X(M)},defaultValue:C,position:z,direction:o,isOpen:_,multi:r,children:(()=>{let M=[];return W.map((b=>{if(""!==S&&"string"==typeof b.value&&("searchText"in b&&"string"==typeof b.searchText?!b.searchText.toLocaleLowerCase().includes(S.toLocaleLowerCase()):!b.value.toLocaleLowerCase().includes(S.toLocaleLowerCase())&&!(M=>{if("string"==typeof M)return M.toLocaleLowerCase();if(Array.isArray(M)){let b="";return M.forEach((M=>{"string"==typeof M&&(b+=M.toLocaleLowerCase())})),b}return""})(b.label).includes(S.toLocaleLowerCase())))return;let z={value:b.value,label:b.label};b.icon&&(z={...z,icon:b.icon}),b.image&&(z={...z,image:b.image}),b.key&&(z={...z,customKey:b.key}),r&&C&&Array.isArray(C)&&(z={...z,multi:!0,checked:C.includes(b.value.toString())}),M.push(m(kc,{...z,key:b.key?b.key:b.value.toString()}))})),0===M.length&&M.push(p("div",{className:"itd-select-not-found",style:{padding:"20px",textAlign:"center"},children:"Not Found"},"not-found")),M})()})]})}));VA.displayName="Select";const YA=k.div`
|
|
2397
|
+
`,VA=W((({id:M="itd-select-"+IM(),position:z="bottom",direction:o="right",size:c="default",variant:e="default",placeholder:a="Please Select",className:i="",multi:r=!1,disabled:d=!1,showSearch:q=!1,locked:s=!1,floating:l=!1,options:W=[],value:f,defaultValue:h,label:R,prefix:L,suffix:g,icon:N,image:B,style:v,onChange:X,onUpdate:y},x)=>{const{t:w}=b("itd"),T=A(null),[_,k]=t(!1),[S,E]=t(""),[C,D]=t(void 0),[P,F]=t("");n((()=>{_||setTimeout((()=>{E("")}),300)}),[_]),n((()=>{if(_){const M=window.innerWidth-document.documentElement.clientWidth,b=/iPad|iPhone|iPod/.test(navigator.userAgent),z=/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent);if(document.body.style.overflow="hidden",M>0&&(document.body.style.paddingRight=`${M}px`),b&&z){const M=document.querySelector("meta[name=viewport]"),b=M?.getAttribute("content")||"";M&&M.setAttribute("content","width=device-width, initial-scale=1.0, user-scalable=no"),document.body.style.position="fixed",document.body.style.top="0",document.body.style.left="0",document.body.style.width="100%",document.body.style.height="100%",document.body.__originalViewport=b}}else{document.body.style.paddingRight="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.width="",document.body.style.height="";const M=document.body.__originalViewport;if(void 0!==M){const b=document.querySelector("meta[name=viewport]");b&&b.setAttribute("content",M),delete document.body.__originalViewport}}return()=>{document.body.style.paddingRight="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.width="",document.body.style.height="";const M=document.body.__originalViewport;if(void 0!==M){const b=document.querySelector("meta[name=viewport]");b&&b.setAttribute("content",M),delete document.body.__originalViewport}}}),[_]),n((()=>{void 0!==h&&D(h)}),[h]),n((()=>{void 0!==f&&D(f)}),[f]),tM(T,(()=>{_&&k(!1)})),nM((()=>{_&&k(!1)}));const I=(M,b=!0,z=!0)=>{y&&y(M,b,z)};u(x,(()=>({reset(M=!0,b=!0){const z=h||(r?[]:void 0);D(z),F(""),I(z,M,b)},setValue(M,b=!0,z=!0){D(M),I(M,b,z)},getValue:()=>C||(r?[]:""),setError(M){F(M||"")},clear(){}})));const $=()=>"x-small"===c?"xs":"small"===c?"sm":"medium"===c?"md":"default"===c?"df":"large"===c?"lg":"x-large"===c?"xlg":"df";return n((()=>{if(_&&r&&C&&Array.isArray(C)&&C.length>0){const M=W.find((M=>C.includes(M.value.toString())));if(M){const b=document.querySelector(`[data-value="${M.value}"]`);b&&setTimeout((()=>{b.scrollIntoView({behavior:"instant",block:"nearest",inline:"start"})}),50)}}}),[_]),O(jA,{ref:T,className:(()=>{let M="itd-select";return M+=" itd-select-"+e,M+=" itd-select-"+(r?"multi":"single"),M+=" itd-select-"+o,M+=" itd-select-"+$(),_&&(M+=" itd-select-open"),P&&(M+=" itd-select-status-error"),d&&(M+=" itd-select-disabled"),q&&(M+=" itd-select-search"),N&&(M+=" itd-icon"),B&&(M+=" itd-image"),""!==i&&(M+=" "+i),M})(),...(()=>{let M={style:void 0,disabled:!1,$hasImage:null!=B,$hasIcon:null!=N,$size:$(),$filled:void 0!==C};return d&&(M.disabled=!0),v&&(M.style=v),M})(),children:[p(pe,{id:M,labelType:l?"floating":"single",value:C,placeholder:W.length>0?a:"",onChange:M=>{k(M)},onFocus:()=>{k(!0)},onBlur:()=>{k(!1)},onShow:M=>{k(M)},onFilter:M=>{_&&E(M)},errorMessage:P,size:c,icon:N,prefix:L,suffix:g,image:B,label:(()=>{if(R)return R;if(void 0===C)return;let M="";if(r){const b=W.filter((M=>M.value===C[0]))[0];Array.isArray(C)&&(1===C.length?b&&(M=b.label):C.length>1&&(M=w("placeholders.multipleSelection",{count:C.length})))}else{const b=W.filter((M=>M.value===C))[0];b&&(M=b.label)}return M})(),disabled:d,isOpen:_,multi:r,locked:s,showSearch:q}),p(PA,{onClose:()=>{k(!1)},onChange:M=>{F(""),I(M),D(M),r||k(!1),X&&X(M)},defaultValue:C,position:z,direction:o,isOpen:_,multi:r,children:(()=>{let M=[];return W.map((b=>{if(""!==S&&"string"==typeof b.value&&("searchText"in b&&"string"==typeof b.searchText?!b.searchText.toLocaleLowerCase().includes(S.toLocaleLowerCase()):!b.value.toLocaleLowerCase().includes(S.toLocaleLowerCase())&&!(M=>{if("string"==typeof M)return M.toLocaleLowerCase();if(Array.isArray(M)){let b="";return M.forEach((M=>{"string"==typeof M&&(b+=M.toLocaleLowerCase())})),b}return""})(b.label).includes(S.toLocaleLowerCase())))return;let z={value:b.value,label:b.label};b.icon&&(z={...z,icon:b.icon}),b.image&&(z={...z,image:b.image}),b.key&&(z={...z,customKey:b.key}),r&&C&&Array.isArray(C)&&(z={...z,multi:!0,checked:C.includes(b.value.toString())}),M.push(m(kc,{...z,key:b.key?b.key:b.value.toString()}))})),0===M.length&&M.push(p("div",{className:"itd-select-not-found",style:{padding:"20px",textAlign:"center"},children:"Not Found"},"not-found")),M})()})]})}));VA.displayName="Select";const YA=k.div`
|
|
2390
2398
|
|
|
2391
2399
|
display : flex;
|
|
2392
2400
|
flex-direction : ${M=>M.$horizontal?"row":"column"};
|