@dev-blinq/ui-systems 1.0.126 → 1.0.127

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.
@@ -12,6 +12,8 @@ export declare const StyledParamList: import('@emotion/styled').StyledComponent<
12
12
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
13
13
  }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & {
14
14
  theme?: import('@emotion/react').Theme;
15
+ } & {
16
+ isMainApp?: boolean;
15
17
  }, {}, {}>;
16
18
  export declare const StyledJsonContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
19
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
package/dist/index.js CHANGED
@@ -176,7 +176,7 @@ React keys must be passed directly to JSX without using spread:
176
176
  border: 1px solid var(--color-grey-40);
177
177
  background: var(--color-white);
178
178
  box-shadow: var(--shadow-lg);
179
- width: ${({width:e})=>e||"inherit"};;
179
+ width: ${({width:e})=>e||"inherit"};
180
180
  min-width: ${({minWidth:e})=>e||"100px"};
181
181
  .MuiMenu-list {
182
182
  padding: 0;
@@ -207,6 +207,9 @@ React keys must be passed directly to JSX without using spread:
207
207
  pointer-events: none;
208
208
  }
209
209
  }
210
+ &:hover {
211
+ background: var(--color-grey-20);
212
+ }
210
213
  `;function Jl({items:e,anchorEl:t,handleClose:n,onClick:r,minWidth:i,width:a,id:o}){return A.jsx(Wp,{anchorEl:t,keepMounted:!0,open:!!t,onClose:n,"data-no-dnd":"true",minWidth:i,width:a,id:o,children:e.map(({title:s,value:l,disabled:c,divider:u,onClickItem:f},d)=>A.jsxs(A.Fragment,{children:[A.jsx(Kp,{className:"menu-item",onClick:p=>f?f(p,l):r==null?void 0:r(p,l),disabled:c,"data-no-dnd":"true",children:s},d),u&&A.jsx($.Divider,{})]}))})}function $t(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const rn="$$material",Gp=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Yp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=Gp(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,p){const x=o.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(x!==-1&&typeof t[o[x]]=="number"?t[o[x]]:p)-r/100}${n})`}function u(d){return o.indexOf(d)+1<o.length?c(d,o[o.indexOf(d)+1]):s(d)}function f(d){const p=o.indexOf(d);return p===0?s(o[1]):p===o.length-1?l(o[p]):c(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:s,down:l,between:c,only:u,not:f,unit:n,...i}}var io={exports:{}},xe={};/**
211
214
  * @license React
212
215
  * react-is.production.js
@@ -417,14 +420,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
417
420
  }
418
421
  `;function vu({expanded:e,title:t,onChange:n,details:r}){return A.jsxs(Dm,{expanded:e,onChange:n,children:[A.jsx($.AccordionSummary,{"aria-controls":"panel2-content",id:"panel2-header",children:A.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,width:"100%",children:[e?A.jsx(yr,{size:14}):A.jsx(Lo,{size:14}),t]})}),A.jsx($.AccordionDetails,{children:r})]})}const Tm=Y.div`
419
422
  border-radius: 0 0 10px 10px;
420
- border-top: ${({isMainApp:e})=>e?"0":"1px"} solid var(--color-grey-60);
423
+ border-top: ${({isMainApp:e})=>e?"0":"1px"} solid
424
+ var(--color-grey-60);
421
425
  display: flex;
422
426
  flex-direction: column;
423
427
  width: 100%;
424
428
  padding: 0px;
425
429
  justify-content: space-between;
426
430
  .MuiPaper-root {
427
- height: 100%;
431
+ height: ${({isMainApp:e})=>e?"100%":"30px"};
428
432
  &.Mui-expanded {
429
433
  margin: 0;
430
434
  .MuiCollapse-root {
@@ -445,7 +449,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
445
449
  `,Pm=Y($.Box)`
446
450
  display: flex;
447
451
  flex-direction: column;
448
- max-height: calc(100% - 60px);
452
+ max-height: ${({isMainApp:e})=>e?"calc(100% - 60px)":"calc(100% - 30px)"};
449
453
  overflow: auto;
450
454
  gap: 6px;
451
455
  padding: 4px;
@@ -496,7 +500,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
496
500
  align-items: center;
497
501
  justify-content: center;
498
502
  margin-bottom: 8px;
499
- `,Om=({onClick:e,params:t,handleUpdateParam:n,ParamErrors:r,removeParameter:i,dataSet:a,disabledEdit:o,isMainApp:s})=>A.jsxs($.Box,{width:"100%",display:"flex",flexDirection:"column",p:1,children:[a&&A.jsx($.Box,{mb:"8px",mt:"4px",children:A.jsx(yu,{noInlineAction:!0,addOptionLabel:"Add Data Set",showDeleteIcon:!o,showAddOption:!o,width:"180px",...a,disabled:o,id:"data-set-select-scenario"})}),A.jsx($.Box,{display:"flex",width:"100%",flexDirection:"column",children:A.jsxs($.Grid2,{sx:{flexGrow:1},container:!0,spacing:1,children:[A.jsx($.Grid2,{size:6,children:A.jsx(be,{value:"Parameters",size:"xs",color:"var(--color-grey-90)"})}),A.jsx($.Grid2,{size:6,children:A.jsx(be,{value:"Values",size:"xs",color:"var(--color-grey-90)"})})]})}),A.jsx(Pm,{children:t.map((l,c)=>A.jsx(A.Fragment,{children:A.jsx(Nm,{...l,index:c,onChangeValue:n,ParamErrors:r,onDelete:i,disabledEdit:o,isMainApp:s,isLastIndex:c===t.length-1,handleAddParam:e})},c))})]}),Nm=e=>{const{keyName:t,onChangeValue:n,index:r,error:i,value:a,onDelete:o,mask:s,disabled:l,ParamErrors:c,disabledEdit:u,isMainApp:f,isLastIndex:d,handleAddParam:p}=e,x=V.useRef(null),[h,v]=V.useState(!1);V.useEffect(()=>{var C;!f&&((C=x.current)==null||C.scrollIntoView({behavior:"smooth",block:"nearest"}))},[]);const b=()=>{v(!h)},y=V.useRef(null),g=V.useRef(null);return A.jsxs($.Box,{ref:x,display:"flex",width:"100%",flexDirection:"column",children:[A.jsxs($.Grid2,{sx:{flexGrow:1},container:!0,spacing:1,children:[A.jsx($.Grid2,{size:6,children:A.jsxs($.Box,{display:"flex",alignItems:"center",children:[d?A.jsx(it,{onClick:p,size:"small",disabled:u,children:A.jsx(Oo,{size:14})}):A.jsx($.Box,{width:"24px"}),A.jsx(Pn,{ref:y,value:t,onChange:C=>n==null?void 0:n(r,C.target.value,a||""),size:"small",noBorder:!0,error:i,placeholder:"parameter_name",disabled:u,autoFocus:!0})]})}),A.jsx($.Grid2,{size:6,children:A.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,children:[A.jsx(Pn,{ref:g,value:a,size:"small",type:s&&!h?"password":"text",onChange:C=>n==null?void 0:n(r,t,C.target.value,s),noBorder:!0,placeholder:"{{value}}",endIcon:s?h?A.jsx(Nl,{onClick:b,size:12}):A.jsx(Ol,{onClick:b,size:12}):"",disabled:u}),A.jsx(it,{size:"small",children:A.jsx(No,{onClick:()=>!l&&(o==null?void 0:o(r)),size:16,color:l?"var(--color-grey-50)":"var(--color-error-100)"})})]})})]}),i&&A.jsx(be,{weight:"medium",value:"Parameter is not used in the scenario",color:"var(--color-error-100)",mt:.5}),c&&A.jsx(c,{index:r})]})},bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cu="ARRAYBUFFER not supported by this environment",Au="UINT8ARRAY not supported by this environment";function A0(e,t,n,r){let i,a,o;const s=t||[0],l=(n=n||0)>>>3,c=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+l,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(c+r*(o%4));return{value:s,binLen:8*e.length+n}}function Mn(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(r,i,a){return function(o,s,l,c){let u,f,d,p;if(o.length%2!=0)throw new Error("String of HEX type must be in byte increments");const x=s||[0],h=(l=l||0)>>>3,v=c===-1?3:0;for(u=0;u<o.length;u+=2){if(f=parseInt(o.substr(u,2),16),isNaN(f))throw new Error("String of HEX type contains invalid characters");for(p=(u>>>1)+h,d=p>>>2;x.length<=d;)x.push(0);x[d]|=f<<8*(v+c*(p%4))}return{value:x,binLen:4*o.length+l}}(r,i,a,n)};case"TEXT":return function(r,i,a){return function(o,s,l,c,u){let f,d,p,x,h,v,b,y,g=0;const C=l||[0],E=(c=c||0)>>>3;if(s==="UTF8")for(b=u===-1?3:0,p=0;p<o.length;p+=1)for(f=o.charCodeAt(p),d=[],128>f?d.push(f):2048>f?(d.push(192|f>>>6),d.push(128|63&f)):55296>f||57344<=f?d.push(224|f>>>12,128|f>>>6&63,128|63&f):(p+=1,f=65536+((1023&f)<<10|1023&o.charCodeAt(p)),d.push(240|f>>>18,128|f>>>12&63,128|f>>>6&63,128|63&f)),x=0;x<d.length;x+=1){for(v=g+E,h=v>>>2;C.length<=h;)C.push(0);C[h]|=d[x]<<8*(b+u*(v%4)),g+=1}else for(b=u===-1?2:0,y=s==="UTF16LE"&&u!==1||s!=="UTF16LE"&&u===1,p=0;p<o.length;p+=1){for(f=o.charCodeAt(p),y===!0&&(x=255&f,f=x<<8|f>>>8),v=g+E,h=v>>>2;C.length<=h;)C.push(0);C[h]|=f<<8*(b+u*(v%4)),g+=2}return{value:C,binLen:8*g+c}}(r,t,i,a,n)};case"B64":return function(r,i,a){return function(o,s,l,c){let u,f,d,p,x,h,v,b=0;const y=s||[0],g=(l=l||0)>>>3,C=c===-1?3:0,E=o.indexOf("=");if(o.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(o=o.replace(/=/g,""),E!==-1&&E<o.length)throw new Error("Invalid '=' found in base-64 string");for(f=0;f<o.length;f+=4){for(x=o.substr(f,4),p=0,d=0;d<x.length;d+=1)u=bu.indexOf(x.charAt(d)),p|=u<<18-6*d;for(d=0;d<x.length-1;d+=1){for(v=b+g,h=v>>>2;y.length<=h;)y.push(0);y[h]|=(p>>>16-8*d&255)<<8*(C+c*(v%4)),b+=1}}return{value:y,binLen:8*b+l}}(r,i,a,n)};case"BYTES":return function(r,i,a){return function(o,s,l,c){let u,f,d,p;const x=s||[0],h=(l=l||0)>>>3,v=c===-1?3:0;for(f=0;f<o.length;f+=1)u=o.charCodeAt(f),p=f+h,d=p>>>2,x.length<=d&&x.push(0),x[d]|=u<<8*(v+c*(p%4));return{value:x,binLen:8*o.length+l}}(r,i,a,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(Cu)}return function(r,i,a){return function(o,s,l,c){return A0(new Uint8Array(o),s,l,c)}(r,i,a,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(Au)}return function(r,i,a){return A0(r,i,a,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function E0(e,t,n,r){switch(e){case"HEX":return function(i){return function(a,o,s,l){const c="0123456789abcdef";let u,f,d="";const p=o/8,x=s===-1?3:0;for(u=0;u<p;u+=1)f=a[u>>>2]>>>8*(x+s*(u%4)),d+=c.charAt(f>>>4&15)+c.charAt(15&f);return l.outputUpper?d.toUpperCase():d}(i,t,n,r)};case"B64":return function(i){return function(a,o,s,l){let c,u,f,d,p,x="";const h=o/8,v=s===-1?3:0;for(c=0;c<h;c+=3)for(d=c+1<h?a[c+1>>>2]:0,p=c+2<h?a[c+2>>>2]:0,f=(a[c>>>2]>>>8*(v+s*(c%4))&255)<<16|(d>>>8*(v+s*((c+1)%4))&255)<<8|p>>>8*(v+s*((c+2)%4))&255,u=0;u<4;u+=1)x+=8*c+6*u<=o?bu.charAt(f>>>6*(3-u)&63):l.b64Pad;return x}(i,t,n,r)};case"BYTES":return function(i){return function(a,o,s){let l,c,u="";const f=o/8,d=s===-1?3:0;for(l=0;l<f;l+=1)c=a[l>>>2]>>>8*(d+s*(l%4))&255,u+=String.fromCharCode(c);return u}(i,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(Cu)}return function(i){return function(a,o,s){let l;const c=o/8,u=new ArrayBuffer(c),f=new Uint8Array(u),d=s===-1?3:0;for(l=0;l<c;l+=1)f[l]=a[l>>>2]>>>8*(d+s*(l%4))&255;return u}(i,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(Au)}return function(i){return function(a,o,s){let l;const c=o/8,u=s===-1?3:0,f=new Uint8Array(c);for(l=0;l<c;l+=1)f[l]=a[l>>>2]>>>8*(u+s*(l%4))&255;return f}(i,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const Ar=4294967296,X=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Tt=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],Ft=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Er="Chosen SHA variant is not supported",Eu="Cannot set numRounds with MAC";function ci(e,t){let n,r;const i=e.binLen>>>3,a=t.binLen>>>3,o=i<<3,s=4-i<<3;if(i%4!=0){for(n=0;n<a;n+=4)r=i+n>>>2,e.value[r]|=t.value[n>>>2]<<o,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=a+i&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function S0(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof t.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return t}function Vt(e,t,n,r){const i=e+" must include a value and format";if(!t){if(!r)throw new Error(i);return r}if(t.value===void 0||!t.format)throw new Error(i);return Mn(t.format,t.encoding||"UTF8",n)(t.value)}class Fi{constructor(t,n,r){const i=r||{};if(this.t=n,this.i=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=t,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(t){let n,r=0;const i=this.m>>>5,a=this.C(t,this.h,this.u),o=a.binLen,s=a.value,l=o>>>5;for(n=0;n<l;n+=i)r+this.m<=o&&(this.U=this.v(s.slice(n,n+i),this.U),r+=this.m);return this.A+=r,this.h=s.slice(r>>>5),this.u=o%this.m,this.l=!0,this}getHash(t,n){let r,i,a=this.R;const o=S0(n);if(this.K){if(o.outputLen===-1)throw new Error("Output length must be specified in options");a=o.outputLen}const s=E0(t,a,this.T,o);if(this.H&&this.g)return s(this.g(o));for(i=this.F(this.h.slice(),this.u,this.A,this.L(this.U),a),r=1;r<this.numRounds;r+=1)this.K&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.F(i,a,0,this.B(this.o),a);return s(i)}setHMACKey(t,n,r){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const i=Mn(n,(r||{}).encoding||"UTF8",this.T);this.k(i(t))}k(t){const n=this.m>>>3,r=n/4-1;let i;if(this.numRounds!==1)throw new Error(Eu);if(this.H)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.F(t.value,t.binLen,0,this.B(this.o),this.R));t.value.length<=r;)t.value.push(0);for(i=0;i<=r;i+=1)this.S[i]=909522486^t.value[i],this.p[i]=1549556828^t.value[i];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(t,n){const r=S0(n);return E0(t,this.R,this.T,r)(this.Y())}Y(){let t;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const n=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return t=this.v(this.p,this.B(this.o)),t=this.F(n,this.R,this.m,t,this.R),t}}function vn(e,t){return e<<t|e>>>32-t}function Et(e,t){return e>>>t|e<<32-t}function Su(e,t){return e>>>t}function w0(e,t,n){return e^t^n}function wu(e,t,n){return e&t^~e&n}function Bu(e,t,n){return e&t^e&n^t&n}function jm(e){return Et(e,2)^Et(e,13)^Et(e,22)}function He(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Lm(e,t,n,r){const i=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16))<<16|65535&i}function tr(e,t,n,r,i){const a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function Vm(e){return Et(e,7)^Et(e,18)^Su(e,3)}function $m(e){return Et(e,6)^Et(e,11)^Et(e,25)}function Um(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Du(e,t){let n,r,i,a,o,s,l;const c=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],l=0;l<80;l+=1)c[l]=l<16?e[l]:vn(c[l-3]^c[l-8]^c[l-14]^c[l-16],1),s=l<20?tr(vn(n,5),wu(r,i,a),o,1518500249,c[l]):l<40?tr(vn(n,5),w0(r,i,a),o,1859775393,c[l]):l<60?tr(vn(n,5),Bu(r,i,a),o,2400959708,c[l]):tr(vn(n,5),w0(r,i,a),o,3395469782,c[l]),o=a,a=i,i=vn(r,30),r=n,n=s;return t[0]=He(n,t[0]),t[1]=He(r,t[1]),t[2]=He(i,t[2]),t[3]=He(a,t[3]),t[4]=He(o,t[4]),t}function Hm(e,t,n,r){let i;const a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/Ar|0,i=0;i<e.length;i+=16)r=Du(e.slice(i,i+16),r);return r}let zm=class extends Fi{constructor(e,t,n){if(e!=="SHA-1")throw new Error(Er);super(e,t,n);const r=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=Du,this.L=function(i){return i.slice()},this.B=Um,this.F=Hm,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};function B0(e){let t;return t=e=="SHA-224"?Tt.slice():Ft.slice(),t}function D0(e,t){let n,r,i,a,o,s,l,c,u,f,d;const p=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],d=0;d<64;d+=1)p[d]=d<16?e[d]:Lm(Et(x=p[d-2],17)^Et(x,19)^Su(x,10),p[d-7],Vm(p[d-15]),p[d-16]),u=tr(c,$m(o),wu(o,s,l),X[d],p[d]),f=He(jm(n),Bu(n,r,i)),c=l,l=s,s=o,o=He(a,u),a=i,i=r,r=n,n=He(u,f);var x;return t[0]=He(n,t[0]),t[1]=He(r,t[1]),t[2]=He(i,t[2]),t[3]=He(a,t[3]),t[4]=He(o,t[4]),t[5]=He(s,t[5]),t[6]=He(l,t[6]),t[7]=He(c,t[7]),t}let Wm=class extends Fi{constructor(e,t,n){if(e!=="SHA-224"&&e!=="SHA-256")throw new Error(Er);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=D0,this.L=function(i){return i.slice()},this.B=B0,this.F=function(i,a,o,s){return function(l,c,u,f,d){let p,x;const h=15+(c+65>>>9<<4),v=c+u;for(;l.length<=h;)l.push(0);for(l[c>>>5]|=128<<24-c%32,l[h]=4294967295&v,l[h-1]=v/Ar|0,p=0;p<l.length;p+=16)f=D0(l.slice(p,p+16),f);return x=d==="SHA-224"?[f[0],f[1],f[2],f[3],f[4],f[5],f[6]]:f,x}(i,a,o,s,e)},this.U=B0(e),this.m=512,this.R=e==="SHA-224"?224:256,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};class _{constructor(t,n){this.N=t,this.I=n}}function T0(e,t){let n;return t>32?(n=64-t,new _(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):t!==0?(n=32-t,new _(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function St(e,t){let n;return t<32?(n=32-t,new _(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new _(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Tu(e,t){return new _(e.N>>>t,e.I>>>t|e.N<<32-t)}function Km(e,t,n){return new _(e.N&t.N^e.N&n.N^t.N&n.N,e.I&t.I^e.I&n.I^t.I&n.I)}function Gm(e){const t=St(e,28),n=St(e,34),r=St(e,39);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function dt(e,t){let n,r;n=(65535&e.I)+(65535&t.I),r=(e.I>>>16)+(t.I>>>16)+(n>>>16);const i=(65535&r)<<16|65535&n;return n=(65535&e.N)+(65535&t.N)+(r>>>16),r=(e.N>>>16)+(t.N>>>16)+(n>>>16),new _((65535&r)<<16|65535&n,i)}function Ym(e,t,n,r){let i,a;i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I),a=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i>>>16);const o=(65535&a)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(a>>>16),a=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(i>>>16),new _((65535&a)<<16|65535&i,o)}function qm(e,t,n,r,i){let a,o;a=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&i.I),o=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i.I>>>16)+(a>>>16);const s=(65535&o)<<16|65535&a;return a=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(65535&i.N)+(o>>>16),o=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(i.N>>>16)+(a>>>16),new _((65535&o)<<16|65535&a,s)}function Zn(e,t){return new _(e.N^t.N,e.I^t.I)}function Xm(e){const t=St(e,19),n=St(e,61),r=Tu(e,6);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function Zm(e){const t=St(e,1),n=St(e,8),r=Tu(e,7);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function Jm(e){const t=St(e,14),n=St(e,18),r=St(e,41);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}const Qm=[new _(X[0],3609767458),new _(X[1],602891725),new _(X[2],3964484399),new _(X[3],2173295548),new _(X[4],4081628472),new _(X[5],3053834265),new _(X[6],2937671579),new _(X[7],3664609560),new _(X[8],2734883394),new _(X[9],1164996542),new _(X[10],1323610764),new _(X[11],3590304994),new _(X[12],4068182383),new _(X[13],991336113),new _(X[14],633803317),new _(X[15],3479774868),new _(X[16],2666613458),new _(X[17],944711139),new _(X[18],2341262773),new _(X[19],2007800933),new _(X[20],1495990901),new _(X[21],1856431235),new _(X[22],3175218132),new _(X[23],2198950837),new _(X[24],3999719339),new _(X[25],766784016),new _(X[26],2566594879),new _(X[27],3203337956),new _(X[28],1034457026),new _(X[29],2466948901),new _(X[30],3758326383),new _(X[31],168717936),new _(X[32],1188179964),new _(X[33],1546045734),new _(X[34],1522805485),new _(X[35],2643833823),new _(X[36],2343527390),new _(X[37],1014477480),new _(X[38],1206759142),new _(X[39],344077627),new _(X[40],1290863460),new _(X[41],3158454273),new _(X[42],3505952657),new _(X[43],106217008),new _(X[44],3606008344),new _(X[45],1432725776),new _(X[46],1467031594),new _(X[47],851169720),new _(X[48],3100823752),new _(X[49],1363258195),new _(X[50],3750685593),new _(X[51],3785050280),new _(X[52],3318307427),new _(X[53],3812723403),new _(X[54],2003034995),new _(X[55],3602036899),new _(X[56],1575990012),new _(X[57],1125592928),new _(X[58],2716904306),new _(X[59],442776044),new _(X[60],593698344),new _(X[61],3733110249),new _(X[62],2999351573),new _(X[63],3815920427),new _(3391569614,3928383900),new _(3515267271,566280711),new _(3940187606,3454069534),new _(4118630271,4000239992),new _(116418474,1914138554),new _(174292421,2731055270),new _(289380356,3203993006),new _(460393269,320620315),new _(685471733,587496836),new _(852142971,1086792851),new _(1017036298,365543100),new _(1126000580,2618297676),new _(1288033470,3409855158),new _(1501505948,4234509866),new _(1607167915,987167468),new _(1816402316,1246189591)];function F0(e){return e==="SHA-384"?[new _(3418070365,Tt[0]),new _(1654270250,Tt[1]),new _(2438529370,Tt[2]),new _(355462360,Tt[3]),new _(1731405415,Tt[4]),new _(41048885895,Tt[5]),new _(3675008525,Tt[6]),new _(1203062813,Tt[7])]:[new _(Ft[0],4089235720),new _(Ft[1],2227873595),new _(Ft[2],4271175723),new _(Ft[3],1595750129),new _(Ft[4],2917565137),new _(Ft[5],725511199),new _(Ft[6],4215389547),new _(Ft[7],327033209)]}function P0(e,t){let n,r,i,a,o,s,l,c,u,f,d,p;const x=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],d=0;d<80;d+=1)d<16?(p=2*d,x[d]=new _(e[p],e[p+1])):x[d]=Ym(Xm(x[d-2]),x[d-7],Zm(x[d-15]),x[d-16]),u=qm(c,Jm(o),(v=s,b=l,new _((h=o).N&v.N^~h.N&b.N,h.I&v.I^~h.I&b.I)),Qm[d],x[d]),f=dt(Gm(n),Km(n,r,i)),c=l,l=s,s=o,o=dt(a,u),a=i,i=r,r=n,n=dt(u,f);var h,v,b;return t[0]=dt(n,t[0]),t[1]=dt(r,t[1]),t[2]=dt(i,t[2]),t[3]=dt(a,t[3]),t[4]=dt(o,t[4]),t[5]=dt(s,t[5]),t[6]=dt(l,t[6]),t[7]=dt(c,t[7]),t}let eg=class extends Fi{constructor(e,t,n){if(e!=="SHA-384"&&e!=="SHA-512")throw new Error(Er);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=P0,this.L=function(i){return i.slice()},this.B=F0,this.F=function(i,a,o,s){return function(l,c,u,f,d){let p,x;const h=31+(c+129>>>10<<5),v=c+u;for(;l.length<=h;)l.push(0);for(l[c>>>5]|=128<<24-c%32,l[h]=4294967295&v,l[h-1]=v/Ar|0,p=0;p<l.length;p+=32)f=P0(l.slice(p,p+32),f);return x=d==="SHA-384"?[f[0].N,f[0].I,f[1].N,f[1].I,f[2].N,f[2].I,f[3].N,f[3].I,f[4].N,f[4].I,f[5].N,f[5].I]:[f[0].N,f[0].I,f[1].N,f[1].I,f[2].N,f[2].I,f[3].N,f[3].I,f[4].N,f[4].I,f[5].N,f[5].I,f[6].N,f[6].I,f[7].N,f[7].I],x}(i,a,o,s,e)},this.U=F0(e),this.m=1024,this.R=e==="SHA-384"?384:512,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};const tg=[new _(0,1),new _(0,32898),new _(2147483648,32906),new _(2147483648,2147516416),new _(0,32907),new _(0,2147483649),new _(2147483648,2147516545),new _(2147483648,32777),new _(0,138),new _(0,136),new _(0,2147516425),new _(0,2147483658),new _(0,2147516555),new _(2147483648,139),new _(2147483648,32905),new _(2147483648,32771),new _(2147483648,32770),new _(2147483648,128),new _(0,32778),new _(2147483648,2147483658),new _(2147483648,2147516545),new _(2147483648,32896),new _(0,2147483649),new _(2147483648,2147516424)],ng=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function co(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new _(0,0),new _(0,0),new _(0,0),new _(0,0),new _(0,0)];return n}function rg(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function $r(e,t){let n,r,i,a;const o=[],s=[];if(e!==null)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=Zn(t[(r>>>1)%5][(r>>>1)/5|0],new _(e[r+1],e[r]));for(n=0;n<24;n+=1){for(a=co(),r=0;r<5;r+=1)o[r]=(l=t[r][0],c=t[r][1],u=t[r][2],f=t[r][3],d=t[r][4],new _(l.N^c.N^u.N^f.N^d.N,l.I^c.I^u.I^f.I^d.I));for(r=0;r<5;r+=1)s[r]=Zn(o[(r+4)%5],T0(o[(r+1)%5],1));for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=Zn(t[r][i],s[r]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)a[i][(2*r+3*i)%5]=T0(t[r][i],ng[r][i]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=Zn(a[r][i],new _(~a[(r+1)%5][i].N&a[(r+2)%5][i].N,~a[(r+1)%5][i].I&a[(r+2)%5][i].I));t[0][0]=Zn(t[0][0],tg[n])}var l,c,u,f,d;return t}function Fu(e){let t,n,r=0;const i=[0,0],a=[4294967295&e,e/Ar&2097151];for(t=6;t>=0;t--)n=a[t>>2]>>>8*t&255,n===0&&r===0||(i[r+1>>2]|=n<<8*(r+1),r+=1);return r=r!==0?r:1,i[0]|=r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}function na(e){return ci(Fu(e.binLen),e)}function R0(e,t){let n,r=Fu(t);r=ci(r,e);const i=t>>>2,a=(i-r.value.length%i)%i;for(n=0;n<a;n++)r.value.push(0);return r.value}let ig=class extends Fi{constructor(e,t,n){let r=6,i=0;super(e,t,n);const a=n||{};if(this.numRounds!==1){if(a.kmacKey||a.hmacKey)throw new Error(Eu);if(this.o==="CSHAKE128"||this.o==="CSHAKE256")throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=Mn(this.t,this.i,this.T),this.v=$r,this.L=rg,this.B=co,this.U=co(),this.K=!1,e){case"SHA3-224":this.m=i=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=i=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=i=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=i=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":r=31,this.m=i=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":r=31,this.m=i=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":r=4,this.m=i=1344,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":r=4,this.m=i=1088,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=i=1344,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=i=1088,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(Er)}this.F=function(o,s,l,c,u){return function(f,d,p,x,h,v,b){let y,g,C=0;const E=[],S=h>>>5,w=d>>>5;for(y=0;y<w&&d>=h;y+=S)x=$r(f.slice(y,y+S),x),d-=h;for(f=f.slice(y),d%=h;f.length<S;)f.push(0);for(y=d>>>3,f[y>>2]^=v<<y%4*8,f[S-1]^=2147483648,x=$r(f,x);32*E.length<b&&(g=x[C%5][C/5|0],E.push(g.I),!(32*E.length>=b));)E.push(g.N),C+=1,64*C%h==0&&($r(null,x),C=0);return E}(o,s,0,c,i,r,u)},a.hmacKey&&this.k(Vt("hmacKey",a.hmacKey,this.T))}O(e,t){const n=function(i){const a=i||{};return{funcName:Vt("funcName",a.funcName,1,{value:[],binLen:0}),customization:Vt("Customization",a.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const r=ci(na(n.funcName),na(n.customization));if(n.customization.binLen!==0||n.funcName.binLen!==0){const i=R0(r,this.m>>>3);for(let a=0;a<i.length;a+=this.m>>>5)this.U=this.v(i.slice(a,a+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(r){const i=r||{};return{kmacKey:Vt("kmacKey",i.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:Vt("Customization",i.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=R0(na(t.kmacKey),this.m>>>3);for(let r=0;r<n.length;r+=this.m>>>5)this.U=this.v(n.slice(r,r+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=ci({value:this.h.slice(),binLen:this.u},function(n){let r,i,a=0;const o=[0,0],s=[4294967295&n,n/Ar&2097151];for(r=6;r>=0;r--)i=s[r>>2]>>>8*r&255,i===0&&a===0||(o[a>>2]|=i<<8*a,a+=1);return a=a!==0?a:1,o[a>>2]|=a<<8*a,{value:a+1>4?o:[o[0]],binLen:8+8*a}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class ag{constructor(t,n,r){if(t=="SHA-1")this.P=new zm(t,n,r);else if(t=="SHA-224"||t=="SHA-256")this.P=new Wm(t,n,r);else if(t=="SHA-384"||t=="SHA-512")this.P=new eg(t,n,r);else{if(t!="SHA3-224"&&t!="SHA3-256"&&t!="SHA3-384"&&t!="SHA3-512"&&t!="SHAKE128"&&t!="SHAKE256"&&t!="CSHAKE128"&&t!="CSHAKE256"&&t!="KMAC128"&&t!="KMAC256")throw new Error(Er);this.P=new ig(t,n,r)}}update(t){return this.P.update(t),this}getHash(t,n){return this.P.getHash(t,n)}setHMACKey(t,n,r){this.P.setHMACKey(t,n,r)}getHMAC(t,n){return this.P.getHMAC(t,n)}}class og{static generate(t,n){const r={digits:6,algorithm:"SHA-1",period:30,timestamp:Date.now(),...n},i=Math.floor(r.timestamp/1e3),a=this.leftpad(this.dec2hex(Math.floor(i/r.period)),16,"0"),o=new ag(r.algorithm,"HEX");o.setHMACKey(this.base32tohex(t),"HEX"),o.update(a);const s=o.getHMAC("HEX"),l=this.hex2dec(s.substring(s.length-1));let c=(this.hex2dec(s.substr(l*2,8))&this.hex2dec("7fffffff"))+"";const u=Math.max(c.length-r.digits,0);c=c.substring(u,u+r.digits);const f=Math.ceil((r.timestamp+1)/(r.period*1e3))*r.period*1e3;return{otp:c,expires:f}}static hex2dec(t){return parseInt(t,16)}static dec2hex(t){return(t<15.5?"0":"")+Math.round(t).toString(16)}static base32tohex(t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let r="",i="";const a=t.replace(/=+$/,"");for(let o=0;o<a.length;o++){const s=n.indexOf(t.charAt(o).toUpperCase());if(s===-1)throw new Error("Invalid base32 character in key");r+=this.leftpad(s.toString(2),5,"0")}for(let o=0;o+8<=r.length;o+=8){const s=r.substr(o,8);i=i+this.leftpad(parseInt(s,2).toString(16),2,"0")}return i}static leftpad(t,n,r){return n+1>=t.length&&(t=Array(n+1-t.length).join(r)+t),t}}var Pu={exports:{}};function sg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ra={exports:{}};const cg={},lg=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),ug=Fd(lg);var k0;function ce(){return k0||(k0=1,function(e,t){(function(n,r){e.exports=r()})(oe,function(){var n=n||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof oe<"u"&&oe.crypto&&(a=oe.crypto),!a&&typeof sg=="function")try{a=ug}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(g){var C;return y.prototype=g,C=new y,y.prototype=null,C}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(y){var g=s(this);return y&&g.mixIn(y),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var g in y)y.hasOwnProperty(g)&&(this[g]=y[g]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(y,g){y=this.words=y||[],g!=i?this.sigBytes=g:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var g=this.words,C=y.words,E=this.sigBytes,S=y.sigBytes;if(this.clamp(),E%4)for(var w=0;w<S;w++){var T=C[w>>>2]>>>24-w%4*8&255;g[E+w>>>2]|=T<<24-(E+w)%4*8}else for(var k=0;k<S;k+=4)g[E+k>>>2]=C[k>>>2];return this.sigBytes+=S,this},clamp:function(){var y=this.words,g=this.sigBytes;y[g>>>2]&=4294967295<<32-g%4*8,y.length=r.ceil(g/4)},clone:function(){var y=u.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var g=[],C=0;C<y;C+=4)g.push(o());return new f.init(g,y)}}),d=l.enc={},p=d.Hex={stringify:function(y){for(var g=y.words,C=y.sigBytes,E=[],S=0;S<C;S++){var w=g[S>>>2]>>>24-S%4*8&255;E.push((w>>>4).toString(16)),E.push((w&15).toString(16))}return E.join("")},parse:function(y){for(var g=y.length,C=[],E=0;E<g;E+=2)C[E>>>3]|=parseInt(y.substr(E,2),16)<<24-E%8*4;return new f.init(C,g/2)}},x=d.Latin1={stringify:function(y){for(var g=y.words,C=y.sigBytes,E=[],S=0;S<C;S++){var w=g[S>>>2]>>>24-S%4*8&255;E.push(String.fromCharCode(w))}return E.join("")},parse:function(y){for(var g=y.length,C=[],E=0;E<g;E++)C[E>>>2]|=(y.charCodeAt(E)&255)<<24-E%4*8;return new f.init(C,g)}},h=d.Utf8={stringify:function(y){try{return decodeURIComponent(escape(x.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return x.parse(unescape(encodeURIComponent(y)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=h.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var g,C=this._data,E=C.words,S=C.sigBytes,w=this.blockSize,T=w*4,k=S/T;y?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var m=k*w,B=r.min(m*4,S);if(m){for(var R=0;R<m;R+=w)this._doProcessBlock(E,R);g=E.splice(0,m),C.sigBytes-=B}return new f.init(g,B)},clone:function(){var y=u.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(y){return function(g,C){return new y.init(C).finalize(g)}},_createHmacHelper:function(y){return function(g,C){return new b.HMAC.init(y,C).finalize(g)}}});var b=l.algo={};return l}(Math);return n})}(ra)),ra.exports}var ia={exports:{}},M0;function Pi(){return M0||(M0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.Base,s=a.WordArray,l=i.x64={};l.Word=o.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=o.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,f=[],d=0;d<u;d++){var p=c[d];f.push(p.high),f.push(p.low)}return s.create(f,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),u=c.words=this.words.slice(0),f=u.length,d=0;d<f;d++)u[d]=u[d].clone();return c}})}(),n})}(ia)),ia.exports}var aa={exports:{}},_0;function fg(){return _0||(_0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,a=i.WordArray,o=a.init,s=a.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],f=0;f<c;f++)u[f>>>2]|=l[f]<<24-f%4*8;o.call(this,u,c)}else o.apply(this,arguments)};s.prototype=a}}(),n.lib.WordArray})}(aa)),aa.exports}var oa={exports:{}},I0;function dg(){return I0||(I0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var p=c[d>>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(p))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=l.charCodeAt(f)<<16-f%2*16;return a.create(u,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var p=s(c[d>>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(p))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=s(l.charCodeAt(f)<<16-f%2*16);return a.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(oa)),oa.exports}var sa={exports:{}},O0;function ln(){return O0||(O0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,f=this._map;l.clamp();for(var d=[],p=0;p<u;p+=3)for(var x=c[p>>>2]>>>24-p%4*8&255,h=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,b=x<<16|h<<8|v,y=0;y<4&&p+y*.75<u;y++)d.push(f.charAt(b>>>6*(3-y)&63));var g=f.charAt(64);if(g)for(;d.length%4;)d.push(g);return d.join("")},parse:function(l){var c=l.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<u.length;d++)f[u.charCodeAt(d)]=d}var p=u.charAt(64);if(p){var x=l.indexOf(p);x!==-1&&(c=x)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var f=[],d=0,p=0;p<c;p++)if(p%4){var x=u[l.charCodeAt(p-1)]<<p%4*2,h=u[l.charCodeAt(p)]>>>6-p%4*2,v=x|h;f[d>>>2]|=v<<24-d%4*8,d++}return a.create(f,d)}}(),n.enc.Base64})}(sa)),sa.exports}var ca={exports:{}},N0;function hg(){return N0||(N0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,f=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var p=[],x=0;x<f;x+=3)for(var h=u[x>>>2]>>>24-x%4*8&255,v=u[x+1>>>2]>>>24-(x+1)%4*8&255,b=u[x+2>>>2]>>>24-(x+2)%4*8&255,y=h<<16|v<<8|b,g=0;g<4&&x+g*.75<f;g++)p.push(d.charAt(y>>>6*(3-g)&63));var C=d.charAt(64);if(C)for(;p.length%4;)p.push(C);return p.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,f=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var p=0;p<f.length;p++)d[f.charCodeAt(p)]=p}var x=f.charAt(64);if(x){var h=l.indexOf(x);h!==-1&&(u=h)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var f=[],d=0,p=0;p<c;p++)if(p%4){var x=u[l.charCodeAt(p-1)]<<p%4*2,h=u[l.charCodeAt(p)]>>>6-p%4*2,v=x|h;f[d>>>2]|=v<<24-d%4*8,d++}return a.create(f,d)}}(),n.enc.Base64url})}(ca)),ca.exports}var la={exports:{}},j0;function un(){return j0||(j0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=r.abs(r.sin(h+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var b=0;b<16;b++){var y=v+b,g=h[y];h[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var C=this._hash.words,E=h[v+0],S=h[v+1],w=h[v+2],T=h[v+3],k=h[v+4],m=h[v+5],B=h[v+6],R=h[v+7],P=h[v+8],U=h[v+9],z=h[v+10],J=h[v+11],Z=h[v+12],ee=h[v+13],ne=h[v+14],j=h[v+15],F=C[0],I=C[1],O=C[2],M=C[3];F=f(F,I,O,M,E,7,c[0]),M=f(M,F,I,O,S,12,c[1]),O=f(O,M,F,I,w,17,c[2]),I=f(I,O,M,F,T,22,c[3]),F=f(F,I,O,M,k,7,c[4]),M=f(M,F,I,O,m,12,c[5]),O=f(O,M,F,I,B,17,c[6]),I=f(I,O,M,F,R,22,c[7]),F=f(F,I,O,M,P,7,c[8]),M=f(M,F,I,O,U,12,c[9]),O=f(O,M,F,I,z,17,c[10]),I=f(I,O,M,F,J,22,c[11]),F=f(F,I,O,M,Z,7,c[12]),M=f(M,F,I,O,ee,12,c[13]),O=f(O,M,F,I,ne,17,c[14]),I=f(I,O,M,F,j,22,c[15]),F=d(F,I,O,M,S,5,c[16]),M=d(M,F,I,O,B,9,c[17]),O=d(O,M,F,I,J,14,c[18]),I=d(I,O,M,F,E,20,c[19]),F=d(F,I,O,M,m,5,c[20]),M=d(M,F,I,O,z,9,c[21]),O=d(O,M,F,I,j,14,c[22]),I=d(I,O,M,F,k,20,c[23]),F=d(F,I,O,M,U,5,c[24]),M=d(M,F,I,O,ne,9,c[25]),O=d(O,M,F,I,T,14,c[26]),I=d(I,O,M,F,P,20,c[27]),F=d(F,I,O,M,ee,5,c[28]),M=d(M,F,I,O,w,9,c[29]),O=d(O,M,F,I,R,14,c[30]),I=d(I,O,M,F,Z,20,c[31]),F=p(F,I,O,M,m,4,c[32]),M=p(M,F,I,O,P,11,c[33]),O=p(O,M,F,I,J,16,c[34]),I=p(I,O,M,F,ne,23,c[35]),F=p(F,I,O,M,S,4,c[36]),M=p(M,F,I,O,k,11,c[37]),O=p(O,M,F,I,R,16,c[38]),I=p(I,O,M,F,z,23,c[39]),F=p(F,I,O,M,ee,4,c[40]),M=p(M,F,I,O,E,11,c[41]),O=p(O,M,F,I,T,16,c[42]),I=p(I,O,M,F,B,23,c[43]),F=p(F,I,O,M,U,4,c[44]),M=p(M,F,I,O,Z,11,c[45]),O=p(O,M,F,I,j,16,c[46]),I=p(I,O,M,F,w,23,c[47]),F=x(F,I,O,M,E,6,c[48]),M=x(M,F,I,O,R,10,c[49]),O=x(O,M,F,I,ne,15,c[50]),I=x(I,O,M,F,m,21,c[51]),F=x(F,I,O,M,Z,6,c[52]),M=x(M,F,I,O,T,10,c[53]),O=x(O,M,F,I,z,15,c[54]),I=x(I,O,M,F,S,21,c[55]),F=x(F,I,O,M,P,6,c[56]),M=x(M,F,I,O,j,10,c[57]),O=x(O,M,F,I,B,15,c[58]),I=x(I,O,M,F,ee,21,c[59]),F=x(F,I,O,M,k,6,c[60]),M=x(M,F,I,O,J,10,c[61]),O=x(O,M,F,I,w,15,c[62]),I=x(I,O,M,F,U,21,c[63]),C[0]=C[0]+F|0,C[1]=C[1]+I|0,C[2]=C[2]+O|0,C[3]=C[3]+M|0},_doFinalize:function(){var h=this._data,v=h.words,b=this._nDataBytes*8,y=h.sigBytes*8;v[y>>>5]|=128<<24-y%32;var g=r.floor(b/4294967296),C=b;v[(y+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,v[(y+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(v.length+1)*4,this._process();for(var E=this._hash,S=E.words,w=0;w<4;w++){var T=S[w];S[w]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return E},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,v,b,y,g,C,E){var S=h+(v&b|~v&y)+g+E;return(S<<C|S>>>32-C)+v}function d(h,v,b,y,g,C,E){var S=h+(v&y|b&~y)+g+E;return(S<<C|S>>>32-C)+v}function p(h,v,b,y,g,C,E){var S=h+(v^b^y)+g+E;return(S<<C|S>>>32-C)+v}function x(h,v,b,y,g,C,E){var S=h+(b^(v|~y))+g+E;return(S<<C|S>>>32-C)+v}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),n.MD5})}(la)),la.exports}var ua={exports:{}},L0;function Ru(){return L0||(L0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=i.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,p=d[0],x=d[1],h=d[2],v=d[3],b=d[4],y=0;y<80;y++){if(y<16)l[y]=u[f+y]|0;else{var g=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=g<<1|g>>>31}var C=(p<<5|p>>>27)+b+l[y];y<20?C+=(x&h|~x&v)+1518500249:y<40?C+=(x^h^v)+1859775393:y<60?C+=(x&h|x&v|h&v)-1894007588:C+=(x^h^v)-899497514,b=v,v=h,h=x<<30|x>>>2,x=p,p=C}d[0]=d[0]+p|0,d[1]=d[1]+x|0,d[2]=d[2]+h|0,d[3]=d[3]+v|0,d[4]=d[4]+b|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,p=u.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(p+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),n.SHA1})}(ua)),ua.exports}var fa={exports:{}},V0;function Jo(){return V0||(V0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[],u=[];(function(){function p(b){for(var y=r.sqrt(b),g=2;g<=y;g++)if(!(b%g))return!1;return!0}function x(b){return(b-(b|0))*4294967296|0}for(var h=2,v=0;v<64;)p(h)&&(v<8&&(c[v]=x(r.pow(h,1/2))),u[v]=x(r.pow(h,1/3)),v++),h++})();var f=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(p,x){for(var h=this._hash.words,v=h[0],b=h[1],y=h[2],g=h[3],C=h[4],E=h[5],S=h[6],w=h[7],T=0;T<64;T++){if(T<16)f[T]=p[x+T]|0;else{var k=f[T-15],m=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,B=f[T-2],R=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;f[T]=m+f[T-7]+R+f[T-16]}var P=C&E^~C&S,U=v&b^v&y^b&y,z=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),J=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),Z=w+J+P+u[T]+f[T],ee=z+U;w=S,S=E,E=C,C=g+Z|0,g=y,y=b,b=v,v=Z+ee|0}h[0]=h[0]+v|0,h[1]=h[1]+b|0,h[2]=h[2]+y|0,h[3]=h[3]+g|0,h[4]=h[4]+C|0,h[5]=h[5]+E|0,h[6]=h[6]+S|0,h[7]=h[7]+w|0},_doFinalize:function(){var p=this._data,x=p.words,h=this._nDataBytes*8,v=p.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=r.floor(h/4294967296),x[(v+64>>>9<<4)+15]=h,p.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),n.SHA256})}(fa)),fa.exports}var da={exports:{}},$0;function pg(){return $0||($0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Jo())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=s._createHelper(l),r.HmacSHA224=s._createHmacHelper(l)}(),n.SHA224})}(da)),da.exports}var ha={exports:{}},U0;function ku(){return U0||(U0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.Hasher,o=r.x64,s=o.Word,l=o.WordArray,c=r.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var x=0;x<80;x++)d[x]=u()})();var p=c.SHA512=a.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(x,h){for(var v=this._hash.words,b=v[0],y=v[1],g=v[2],C=v[3],E=v[4],S=v[5],w=v[6],T=v[7],k=b.high,m=b.low,B=y.high,R=y.low,P=g.high,U=g.low,z=C.high,J=C.low,Z=E.high,ee=E.low,ne=S.high,j=S.low,F=w.high,I=w.low,O=T.high,M=T.low,Q=k,W=m,te=B,N=R,G=P,re=U,Be=z,K=J,Ce=Z,ke=ee,tt=ne,lt=j,Yt=F,Ot=I,Nt=O,qt=M,Ze=0;Ze<80;Ze++){var Ve,gt,fn=d[Ze];if(Ze<16)gt=fn.high=x[h+Ze*2]|0,Ve=fn.low=x[h+Ze*2+1]|0;else{var jn=d[Ze-15],Bt=jn.high,ut=jn.low,Ni=(Bt>>>1|ut<<31)^(Bt>>>8|ut<<24)^Bt>>>7,Ln=(ut>>>1|Bt<<31)^(ut>>>8|Bt<<24)^(ut>>>7|Bt<<25),Vn=d[Ze-2],yt=Vn.high,Xt=Vn.low,ji=(yt>>>19|Xt<<13)^(yt<<3|Xt>>>29)^yt>>>6,Tr=(Xt>>>19|yt<<13)^(Xt<<3|yt>>>29)^(Xt>>>6|yt<<26),Fr=d[Ze-7],Li=Fr.high,Vi=Fr.low,Pr=d[Ze-16],$n=Pr.high,Un=Pr.low;Ve=Ln+Vi,gt=Ni+Li+(Ve>>>0<Ln>>>0?1:0),Ve=Ve+Tr,gt=gt+ji+(Ve>>>0<Tr>>>0?1:0),Ve=Ve+Un,gt=gt+$n+(Ve>>>0<Un>>>0?1:0),fn.high=gt,fn.low=Ve}var jt=Ce&tt^~Ce&Yt,dn=ke&lt^~ke&Ot,Hn=Q&te^Q&G^te&G,Rr=W&N^W&re^N&re,$i=(Q>>>28|W<<4)^(Q<<30|W>>>2)^(Q<<25|W>>>7),zn=(W>>>28|Q<<4)^(W<<30|Q>>>2)^(W<<25|Q>>>7),Ui=(Ce>>>14|ke<<18)^(Ce>>>18|ke<<14)^(Ce<<23|ke>>>9),kr=(ke>>>14|Ce<<18)^(ke>>>18|Ce<<14)^(ke<<23|Ce>>>9),Wn=f[Ze],Hi=Wn.high,Mr=Wn.low,$e=qt+kr,ft=Nt+Ui+($e>>>0<qt>>>0?1:0),$e=$e+dn,ft=ft+jt+($e>>>0<dn>>>0?1:0),$e=$e+Mr,ft=ft+Hi+($e>>>0<Mr>>>0?1:0),$e=$e+Ve,ft=ft+gt+($e>>>0<Ve>>>0?1:0),_r=zn+Rr,zi=$i+Hn+(_r>>>0<zn>>>0?1:0);Nt=Yt,qt=Ot,Yt=tt,Ot=lt,tt=Ce,lt=ke,ke=K+$e|0,Ce=Be+ft+(ke>>>0<K>>>0?1:0)|0,Be=G,K=re,G=te,re=N,te=Q,N=W,W=$e+_r|0,Q=ft+zi+(W>>>0<$e>>>0?1:0)|0}m=b.low=m+W,b.high=k+Q+(m>>>0<W>>>0?1:0),R=y.low=R+N,y.high=B+te+(R>>>0<N>>>0?1:0),U=g.low=U+re,g.high=P+G+(U>>>0<re>>>0?1:0),J=C.low=J+K,C.high=z+Be+(J>>>0<K>>>0?1:0),ee=E.low=ee+ke,E.high=Z+Ce+(ee>>>0<ke>>>0?1:0),j=S.low=j+lt,S.high=ne+tt+(j>>>0<lt>>>0?1:0),I=w.low=I+Ot,w.high=F+Yt+(I>>>0<Ot>>>0?1:0),M=T.low=M+qt,T.high=O+Nt+(M>>>0<qt>>>0?1:0)},_doFinalize:function(){var x=this._data,h=x.words,v=this._nDataBytes*8,b=x.sigBytes*8;h[b>>>5]|=128<<24-b%32,h[(b+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(b+128>>>10<<5)+31]=v,x.sigBytes=h.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var x=a.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});r.SHA512=a._createHelper(p),r.HmacSHA512=a._createHmacHelper(p)}(),n.SHA512})}(ha)),ha.exports}var pa={exports:{}},H0;function xg(){return H0||(H0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi(),ku())})(oe,function(n){return function(){var r=n,i=r.x64,a=i.Word,o=i.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(pa)),pa.exports}var xa={exports:{}},z0;function mg(){return z0||(z0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.x64,c=l.Word,u=i.algo,f=[],d=[],p=[];(function(){for(var v=1,b=0,y=0;y<24;y++){f[v+5*b]=(y+1)*(y+2)/2%64;var g=b%5,C=(2*v+3*b)%5;v=g,b=C}for(var v=0;v<5;v++)for(var b=0;b<5;b++)d[v+5*b]=b+(2*v+3*b)%5*5;for(var E=1,S=0;S<24;S++){for(var w=0,T=0,k=0;k<7;k++){if(E&1){var m=(1<<k)-1;m<32?T^=1<<m:w^=1<<m-32}E&128?E=E<<1^113:E<<=1}p[S]=c.create(w,T)}})();var x=[];(function(){for(var v=0;v<25;v++)x[v]=c.create()})();var h=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],b=0;b<25;b++)v[b]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,b){for(var y=this._state,g=this.blockSize/2,C=0;C<g;C++){var E=v[b+2*C],S=v[b+2*C+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var w=y[C];w.high^=S,w.low^=E}for(var T=0;T<24;T++){for(var k=0;k<5;k++){for(var m=0,B=0,R=0;R<5;R++){var w=y[k+5*R];m^=w.high,B^=w.low}var P=x[k];P.high=m,P.low=B}for(var k=0;k<5;k++)for(var U=x[(k+4)%5],z=x[(k+1)%5],J=z.high,Z=z.low,m=U.high^(J<<1|Z>>>31),B=U.low^(Z<<1|J>>>31),R=0;R<5;R++){var w=y[k+5*R];w.high^=m,w.low^=B}for(var ee=1;ee<25;ee++){var m,B,w=y[ee],ne=w.high,j=w.low,F=f[ee];F<32?(m=ne<<F|j>>>32-F,B=j<<F|ne>>>32-F):(m=j<<F-32|ne>>>64-F,B=ne<<F-32|j>>>64-F);var I=x[d[ee]];I.high=m,I.low=B}var O=x[0],M=y[0];O.high=M.high,O.low=M.low;for(var k=0;k<5;k++)for(var R=0;R<5;R++){var ee=k+5*R,w=y[ee],Q=x[ee],W=x[(k+1)%5+5*R],te=x[(k+2)%5+5*R];w.high=Q.high^~W.high&te.high,w.low=Q.low^~W.low&te.low}var w=y[0],N=p[T];w.high^=N.high,w.low^=N.low}},_doFinalize:function(){var v=this._data,b=v.words;this._nDataBytes*8;var y=v.sigBytes*8,g=this.blockSize*32;b[y>>>5]|=1<<24-y%32,b[(r.ceil((y+1)/g)*g>>>5)-1]|=128,v.sigBytes=b.length*4,this._process();for(var C=this._state,E=this.cfg.outputLength/8,S=E/8,w=[],T=0;T<S;T++){var k=C[T],m=k.high,B=k.low;m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w.push(B),w.push(m)}return new o.init(w,E)},clone:function(){for(var v=s.clone.call(this),b=v._state=this._state.slice(0),y=0;y<25;y++)b[y]=b[y].clone();return v}});i.SHA3=s._createHelper(h),i.HmacSHA3=s._createHmacHelper(h)}(Math),n.SHA3})}(xa)),xa.exports}var ma={exports:{}},W0;function gg(){return W0||(W0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){/** @preserve
503
+ `,Om=({onClick:e,params:t,handleUpdateParam:n,ParamErrors:r,removeParameter:i,dataSet:a,disabledEdit:o,isMainApp:s})=>A.jsxs($.Box,{width:"100%",display:"flex",flexDirection:"column",p:1,children:[a&&A.jsx($.Box,{mb:"8px",mt:"4px",children:A.jsx(yu,{noInlineAction:!0,addOptionLabel:"Add Data Set",showDeleteIcon:!o,showAddOption:!o,width:"200px",...a,disabled:o,id:"data-set-select-scenario"})}),A.jsx($.Box,{display:"flex",width:"100%",flexDirection:"column",children:A.jsxs($.Grid2,{sx:{flexGrow:1},container:!0,spacing:1,children:[A.jsx($.Grid2,{size:6,children:A.jsx(be,{value:"Parameters",size:"xs",color:"var(--color-grey-90)"})}),A.jsx($.Grid2,{size:6,children:A.jsx(be,{value:"Values",size:"xs",color:"var(--color-grey-90)"})})]})}),A.jsx(Pm,{isMainApp:s,children:t.map((l,c)=>A.jsx(A.Fragment,{children:A.jsx(Nm,{...l,index:c,onChangeValue:n,ParamErrors:r,onDelete:i,disabledEdit:o,isMainApp:s,isLastIndex:c===t.length-1,handleAddParam:e})},c))})]}),Nm=e=>{const{keyName:t,onChangeValue:n,index:r,error:i,value:a,onDelete:o,mask:s,disabled:l,ParamErrors:c,disabledEdit:u,isMainApp:f,isLastIndex:d,handleAddParam:p}=e,x=V.useRef(null),[h,v]=V.useState(!1);V.useEffect(()=>{var C;!f&&((C=x.current)==null||C.scrollIntoView({behavior:"smooth",block:"nearest"}))},[]);const b=()=>{v(!h)},y=V.useRef(null),g=V.useRef(null);return A.jsxs($.Box,{ref:x,display:"flex",width:"100%",flexDirection:"column",children:[A.jsxs($.Grid2,{sx:{flexGrow:1},container:!0,spacing:1,children:[A.jsx($.Grid2,{size:6,children:A.jsxs($.Box,{display:"flex",alignItems:"center",children:[d?A.jsx(it,{onClick:p,size:"small",disabled:u,children:A.jsx(Oo,{size:14})}):A.jsx($.Box,{width:"24px"}),A.jsx(Pn,{ref:y,value:t,onChange:C=>n==null?void 0:n(r,C.target.value,a||""),size:"small",noBorder:!0,error:i,placeholder:"parameter_name",disabled:u,autoFocus:!0})]})}),A.jsx($.Grid2,{size:6,children:A.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,children:[A.jsx(Pn,{ref:g,value:a,size:"small",type:s&&!h?"password":"text",onChange:C=>n==null?void 0:n(r,t,C.target.value,s),noBorder:!0,placeholder:"{{value}}",endIcon:s?h?A.jsx(Nl,{onClick:b,size:12}):A.jsx(Ol,{onClick:b,size:12}):"",disabled:u}),A.jsx(it,{size:"small",children:A.jsx(No,{onClick:()=>!l&&(o==null?void 0:o(r)),size:16,color:l?"var(--color-grey-50)":"var(--color-error-100)"})})]})})]}),i&&A.jsx(be,{weight:"medium",value:"Parameter is not used in the scenario",color:"var(--color-error-100)",mt:.5}),c&&A.jsx(c,{index:r})]})},bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cu="ARRAYBUFFER not supported by this environment",Au="UINT8ARRAY not supported by this environment";function A0(e,t,n,r){let i,a,o;const s=t||[0],l=(n=n||0)>>>3,c=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+l,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(c+r*(o%4));return{value:s,binLen:8*e.length+n}}function Mn(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(r,i,a){return function(o,s,l,c){let u,f,d,p;if(o.length%2!=0)throw new Error("String of HEX type must be in byte increments");const x=s||[0],h=(l=l||0)>>>3,v=c===-1?3:0;for(u=0;u<o.length;u+=2){if(f=parseInt(o.substr(u,2),16),isNaN(f))throw new Error("String of HEX type contains invalid characters");for(p=(u>>>1)+h,d=p>>>2;x.length<=d;)x.push(0);x[d]|=f<<8*(v+c*(p%4))}return{value:x,binLen:4*o.length+l}}(r,i,a,n)};case"TEXT":return function(r,i,a){return function(o,s,l,c,u){let f,d,p,x,h,v,b,y,g=0;const C=l||[0],E=(c=c||0)>>>3;if(s==="UTF8")for(b=u===-1?3:0,p=0;p<o.length;p+=1)for(f=o.charCodeAt(p),d=[],128>f?d.push(f):2048>f?(d.push(192|f>>>6),d.push(128|63&f)):55296>f||57344<=f?d.push(224|f>>>12,128|f>>>6&63,128|63&f):(p+=1,f=65536+((1023&f)<<10|1023&o.charCodeAt(p)),d.push(240|f>>>18,128|f>>>12&63,128|f>>>6&63,128|63&f)),x=0;x<d.length;x+=1){for(v=g+E,h=v>>>2;C.length<=h;)C.push(0);C[h]|=d[x]<<8*(b+u*(v%4)),g+=1}else for(b=u===-1?2:0,y=s==="UTF16LE"&&u!==1||s!=="UTF16LE"&&u===1,p=0;p<o.length;p+=1){for(f=o.charCodeAt(p),y===!0&&(x=255&f,f=x<<8|f>>>8),v=g+E,h=v>>>2;C.length<=h;)C.push(0);C[h]|=f<<8*(b+u*(v%4)),g+=2}return{value:C,binLen:8*g+c}}(r,t,i,a,n)};case"B64":return function(r,i,a){return function(o,s,l,c){let u,f,d,p,x,h,v,b=0;const y=s||[0],g=(l=l||0)>>>3,C=c===-1?3:0,E=o.indexOf("=");if(o.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(o=o.replace(/=/g,""),E!==-1&&E<o.length)throw new Error("Invalid '=' found in base-64 string");for(f=0;f<o.length;f+=4){for(x=o.substr(f,4),p=0,d=0;d<x.length;d+=1)u=bu.indexOf(x.charAt(d)),p|=u<<18-6*d;for(d=0;d<x.length-1;d+=1){for(v=b+g,h=v>>>2;y.length<=h;)y.push(0);y[h]|=(p>>>16-8*d&255)<<8*(C+c*(v%4)),b+=1}}return{value:y,binLen:8*b+l}}(r,i,a,n)};case"BYTES":return function(r,i,a){return function(o,s,l,c){let u,f,d,p;const x=s||[0],h=(l=l||0)>>>3,v=c===-1?3:0;for(f=0;f<o.length;f+=1)u=o.charCodeAt(f),p=f+h,d=p>>>2,x.length<=d&&x.push(0),x[d]|=u<<8*(v+c*(p%4));return{value:x,binLen:8*o.length+l}}(r,i,a,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(Cu)}return function(r,i,a){return function(o,s,l,c){return A0(new Uint8Array(o),s,l,c)}(r,i,a,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(Au)}return function(r,i,a){return A0(r,i,a,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function E0(e,t,n,r){switch(e){case"HEX":return function(i){return function(a,o,s,l){const c="0123456789abcdef";let u,f,d="";const p=o/8,x=s===-1?3:0;for(u=0;u<p;u+=1)f=a[u>>>2]>>>8*(x+s*(u%4)),d+=c.charAt(f>>>4&15)+c.charAt(15&f);return l.outputUpper?d.toUpperCase():d}(i,t,n,r)};case"B64":return function(i){return function(a,o,s,l){let c,u,f,d,p,x="";const h=o/8,v=s===-1?3:0;for(c=0;c<h;c+=3)for(d=c+1<h?a[c+1>>>2]:0,p=c+2<h?a[c+2>>>2]:0,f=(a[c>>>2]>>>8*(v+s*(c%4))&255)<<16|(d>>>8*(v+s*((c+1)%4))&255)<<8|p>>>8*(v+s*((c+2)%4))&255,u=0;u<4;u+=1)x+=8*c+6*u<=o?bu.charAt(f>>>6*(3-u)&63):l.b64Pad;return x}(i,t,n,r)};case"BYTES":return function(i){return function(a,o,s){let l,c,u="";const f=o/8,d=s===-1?3:0;for(l=0;l<f;l+=1)c=a[l>>>2]>>>8*(d+s*(l%4))&255,u+=String.fromCharCode(c);return u}(i,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error(Cu)}return function(i){return function(a,o,s){let l;const c=o/8,u=new ArrayBuffer(c),f=new Uint8Array(u),d=s===-1?3:0;for(l=0;l<c;l+=1)f[l]=a[l>>>2]>>>8*(d+s*(l%4))&255;return u}(i,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error(Au)}return function(i){return function(a,o,s){let l;const c=o/8,u=s===-1?3:0,f=new Uint8Array(c);for(l=0;l<c;l+=1)f[l]=a[l>>>2]>>>8*(u+s*(l%4))&255;return f}(i,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const Ar=4294967296,X=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Tt=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],Ft=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Er="Chosen SHA variant is not supported",Eu="Cannot set numRounds with MAC";function ci(e,t){let n,r;const i=e.binLen>>>3,a=t.binLen>>>3,o=i<<3,s=4-i<<3;if(i%4!=0){for(n=0;n<a;n+=4)r=i+n>>>2,e.value[r]|=t.value[n>>>2]<<o,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=a+i&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function S0(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof t.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return t}function Vt(e,t,n,r){const i=e+" must include a value and format";if(!t){if(!r)throw new Error(i);return r}if(t.value===void 0||!t.format)throw new Error(i);return Mn(t.format,t.encoding||"UTF8",n)(t.value)}class Fi{constructor(t,n,r){const i=r||{};if(this.t=n,this.i=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=t,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(t){let n,r=0;const i=this.m>>>5,a=this.C(t,this.h,this.u),o=a.binLen,s=a.value,l=o>>>5;for(n=0;n<l;n+=i)r+this.m<=o&&(this.U=this.v(s.slice(n,n+i),this.U),r+=this.m);return this.A+=r,this.h=s.slice(r>>>5),this.u=o%this.m,this.l=!0,this}getHash(t,n){let r,i,a=this.R;const o=S0(n);if(this.K){if(o.outputLen===-1)throw new Error("Output length must be specified in options");a=o.outputLen}const s=E0(t,a,this.T,o);if(this.H&&this.g)return s(this.g(o));for(i=this.F(this.h.slice(),this.u,this.A,this.L(this.U),a),r=1;r<this.numRounds;r+=1)this.K&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.F(i,a,0,this.B(this.o),a);return s(i)}setHMACKey(t,n,r){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const i=Mn(n,(r||{}).encoding||"UTF8",this.T);this.k(i(t))}k(t){const n=this.m>>>3,r=n/4-1;let i;if(this.numRounds!==1)throw new Error(Eu);if(this.H)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.F(t.value,t.binLen,0,this.B(this.o),this.R));t.value.length<=r;)t.value.push(0);for(i=0;i<=r;i+=1)this.S[i]=909522486^t.value[i],this.p[i]=1549556828^t.value[i];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(t,n){const r=S0(n);return E0(t,this.R,this.T,r)(this.Y())}Y(){let t;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const n=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return t=this.v(this.p,this.B(this.o)),t=this.F(n,this.R,this.m,t,this.R),t}}function vn(e,t){return e<<t|e>>>32-t}function Et(e,t){return e>>>t|e<<32-t}function Su(e,t){return e>>>t}function w0(e,t,n){return e^t^n}function wu(e,t,n){return e&t^~e&n}function Bu(e,t,n){return e&t^e&n^t&n}function jm(e){return Et(e,2)^Et(e,13)^Et(e,22)}function He(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Lm(e,t,n,r){const i=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16))<<16|65535&i}function tr(e,t,n,r,i){const a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function Vm(e){return Et(e,7)^Et(e,18)^Su(e,3)}function $m(e){return Et(e,6)^Et(e,11)^Et(e,25)}function Um(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Du(e,t){let n,r,i,a,o,s,l;const c=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],l=0;l<80;l+=1)c[l]=l<16?e[l]:vn(c[l-3]^c[l-8]^c[l-14]^c[l-16],1),s=l<20?tr(vn(n,5),wu(r,i,a),o,1518500249,c[l]):l<40?tr(vn(n,5),w0(r,i,a),o,1859775393,c[l]):l<60?tr(vn(n,5),Bu(r,i,a),o,2400959708,c[l]):tr(vn(n,5),w0(r,i,a),o,3395469782,c[l]),o=a,a=i,i=vn(r,30),r=n,n=s;return t[0]=He(n,t[0]),t[1]=He(r,t[1]),t[2]=He(i,t[2]),t[3]=He(a,t[3]),t[4]=He(o,t[4]),t}function Hm(e,t,n,r){let i;const a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/Ar|0,i=0;i<e.length;i+=16)r=Du(e.slice(i,i+16),r);return r}let zm=class extends Fi{constructor(e,t,n){if(e!=="SHA-1")throw new Error(Er);super(e,t,n);const r=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=Du,this.L=function(i){return i.slice()},this.B=Um,this.F=Hm,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};function B0(e){let t;return t=e=="SHA-224"?Tt.slice():Ft.slice(),t}function D0(e,t){let n,r,i,a,o,s,l,c,u,f,d;const p=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],d=0;d<64;d+=1)p[d]=d<16?e[d]:Lm(Et(x=p[d-2],17)^Et(x,19)^Su(x,10),p[d-7],Vm(p[d-15]),p[d-16]),u=tr(c,$m(o),wu(o,s,l),X[d],p[d]),f=He(jm(n),Bu(n,r,i)),c=l,l=s,s=o,o=He(a,u),a=i,i=r,r=n,n=He(u,f);var x;return t[0]=He(n,t[0]),t[1]=He(r,t[1]),t[2]=He(i,t[2]),t[3]=He(a,t[3]),t[4]=He(o,t[4]),t[5]=He(s,t[5]),t[6]=He(l,t[6]),t[7]=He(c,t[7]),t}let Wm=class extends Fi{constructor(e,t,n){if(e!=="SHA-224"&&e!=="SHA-256")throw new Error(Er);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=D0,this.L=function(i){return i.slice()},this.B=B0,this.F=function(i,a,o,s){return function(l,c,u,f,d){let p,x;const h=15+(c+65>>>9<<4),v=c+u;for(;l.length<=h;)l.push(0);for(l[c>>>5]|=128<<24-c%32,l[h]=4294967295&v,l[h-1]=v/Ar|0,p=0;p<l.length;p+=16)f=D0(l.slice(p,p+16),f);return x=d==="SHA-224"?[f[0],f[1],f[2],f[3],f[4],f[5],f[6]]:f,x}(i,a,o,s,e)},this.U=B0(e),this.m=512,this.R=e==="SHA-224"?224:256,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};class _{constructor(t,n){this.N=t,this.I=n}}function T0(e,t){let n;return t>32?(n=64-t,new _(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):t!==0?(n=32-t,new _(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function St(e,t){let n;return t<32?(n=32-t,new _(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new _(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Tu(e,t){return new _(e.N>>>t,e.I>>>t|e.N<<32-t)}function Km(e,t,n){return new _(e.N&t.N^e.N&n.N^t.N&n.N,e.I&t.I^e.I&n.I^t.I&n.I)}function Gm(e){const t=St(e,28),n=St(e,34),r=St(e,39);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function dt(e,t){let n,r;n=(65535&e.I)+(65535&t.I),r=(e.I>>>16)+(t.I>>>16)+(n>>>16);const i=(65535&r)<<16|65535&n;return n=(65535&e.N)+(65535&t.N)+(r>>>16),r=(e.N>>>16)+(t.N>>>16)+(n>>>16),new _((65535&r)<<16|65535&n,i)}function Ym(e,t,n,r){let i,a;i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I),a=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i>>>16);const o=(65535&a)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(a>>>16),a=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(i>>>16),new _((65535&a)<<16|65535&i,o)}function qm(e,t,n,r,i){let a,o;a=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&i.I),o=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i.I>>>16)+(a>>>16);const s=(65535&o)<<16|65535&a;return a=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(65535&i.N)+(o>>>16),o=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(i.N>>>16)+(a>>>16),new _((65535&o)<<16|65535&a,s)}function Zn(e,t){return new _(e.N^t.N,e.I^t.I)}function Xm(e){const t=St(e,19),n=St(e,61),r=Tu(e,6);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function Zm(e){const t=St(e,1),n=St(e,8),r=Tu(e,7);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}function Jm(e){const t=St(e,14),n=St(e,18),r=St(e,41);return new _(t.N^n.N^r.N,t.I^n.I^r.I)}const Qm=[new _(X[0],3609767458),new _(X[1],602891725),new _(X[2],3964484399),new _(X[3],2173295548),new _(X[4],4081628472),new _(X[5],3053834265),new _(X[6],2937671579),new _(X[7],3664609560),new _(X[8],2734883394),new _(X[9],1164996542),new _(X[10],1323610764),new _(X[11],3590304994),new _(X[12],4068182383),new _(X[13],991336113),new _(X[14],633803317),new _(X[15],3479774868),new _(X[16],2666613458),new _(X[17],944711139),new _(X[18],2341262773),new _(X[19],2007800933),new _(X[20],1495990901),new _(X[21],1856431235),new _(X[22],3175218132),new _(X[23],2198950837),new _(X[24],3999719339),new _(X[25],766784016),new _(X[26],2566594879),new _(X[27],3203337956),new _(X[28],1034457026),new _(X[29],2466948901),new _(X[30],3758326383),new _(X[31],168717936),new _(X[32],1188179964),new _(X[33],1546045734),new _(X[34],1522805485),new _(X[35],2643833823),new _(X[36],2343527390),new _(X[37],1014477480),new _(X[38],1206759142),new _(X[39],344077627),new _(X[40],1290863460),new _(X[41],3158454273),new _(X[42],3505952657),new _(X[43],106217008),new _(X[44],3606008344),new _(X[45],1432725776),new _(X[46],1467031594),new _(X[47],851169720),new _(X[48],3100823752),new _(X[49],1363258195),new _(X[50],3750685593),new _(X[51],3785050280),new _(X[52],3318307427),new _(X[53],3812723403),new _(X[54],2003034995),new _(X[55],3602036899),new _(X[56],1575990012),new _(X[57],1125592928),new _(X[58],2716904306),new _(X[59],442776044),new _(X[60],593698344),new _(X[61],3733110249),new _(X[62],2999351573),new _(X[63],3815920427),new _(3391569614,3928383900),new _(3515267271,566280711),new _(3940187606,3454069534),new _(4118630271,4000239992),new _(116418474,1914138554),new _(174292421,2731055270),new _(289380356,3203993006),new _(460393269,320620315),new _(685471733,587496836),new _(852142971,1086792851),new _(1017036298,365543100),new _(1126000580,2618297676),new _(1288033470,3409855158),new _(1501505948,4234509866),new _(1607167915,987167468),new _(1816402316,1246189591)];function F0(e){return e==="SHA-384"?[new _(3418070365,Tt[0]),new _(1654270250,Tt[1]),new _(2438529370,Tt[2]),new _(355462360,Tt[3]),new _(1731405415,Tt[4]),new _(41048885895,Tt[5]),new _(3675008525,Tt[6]),new _(1203062813,Tt[7])]:[new _(Ft[0],4089235720),new _(Ft[1],2227873595),new _(Ft[2],4271175723),new _(Ft[3],1595750129),new _(Ft[4],2917565137),new _(Ft[5],725511199),new _(Ft[6],4215389547),new _(Ft[7],327033209)]}function P0(e,t){let n,r,i,a,o,s,l,c,u,f,d,p;const x=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],d=0;d<80;d+=1)d<16?(p=2*d,x[d]=new _(e[p],e[p+1])):x[d]=Ym(Xm(x[d-2]),x[d-7],Zm(x[d-15]),x[d-16]),u=qm(c,Jm(o),(v=s,b=l,new _((h=o).N&v.N^~h.N&b.N,h.I&v.I^~h.I&b.I)),Qm[d],x[d]),f=dt(Gm(n),Km(n,r,i)),c=l,l=s,s=o,o=dt(a,u),a=i,i=r,r=n,n=dt(u,f);var h,v,b;return t[0]=dt(n,t[0]),t[1]=dt(r,t[1]),t[2]=dt(i,t[2]),t[3]=dt(a,t[3]),t[4]=dt(o,t[4]),t[5]=dt(s,t[5]),t[6]=dt(l,t[6]),t[7]=dt(c,t[7]),t}let eg=class extends Fi{constructor(e,t,n){if(e!=="SHA-384"&&e!=="SHA-512")throw new Error(Er);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Mn(this.t,this.i,this.T),this.v=P0,this.L=function(i){return i.slice()},this.B=F0,this.F=function(i,a,o,s){return function(l,c,u,f,d){let p,x;const h=31+(c+129>>>10<<5),v=c+u;for(;l.length<=h;)l.push(0);for(l[c>>>5]|=128<<24-c%32,l[h]=4294967295&v,l[h-1]=v/Ar|0,p=0;p<l.length;p+=32)f=P0(l.slice(p,p+32),f);return x=d==="SHA-384"?[f[0].N,f[0].I,f[1].N,f[1].I,f[2].N,f[2].I,f[3].N,f[3].I,f[4].N,f[4].I,f[5].N,f[5].I]:[f[0].N,f[0].I,f[1].N,f[1].I,f[2].N,f[2].I,f[3].N,f[3].I,f[4].N,f[4].I,f[5].N,f[5].I,f[6].N,f[6].I,f[7].N,f[7].I],x}(i,a,o,s,e)},this.U=F0(e),this.m=1024,this.R=e==="SHA-384"?384:512,this.K=!1,r.hmacKey&&this.k(Vt("hmacKey",r.hmacKey,this.T))}};const tg=[new _(0,1),new _(0,32898),new _(2147483648,32906),new _(2147483648,2147516416),new _(0,32907),new _(0,2147483649),new _(2147483648,2147516545),new _(2147483648,32777),new _(0,138),new _(0,136),new _(0,2147516425),new _(0,2147483658),new _(0,2147516555),new _(2147483648,139),new _(2147483648,32905),new _(2147483648,32771),new _(2147483648,32770),new _(2147483648,128),new _(0,32778),new _(2147483648,2147483658),new _(2147483648,2147516545),new _(2147483648,32896),new _(0,2147483649),new _(2147483648,2147516424)],ng=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function co(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new _(0,0),new _(0,0),new _(0,0),new _(0,0),new _(0,0)];return n}function rg(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function $r(e,t){let n,r,i,a;const o=[],s=[];if(e!==null)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=Zn(t[(r>>>1)%5][(r>>>1)/5|0],new _(e[r+1],e[r]));for(n=0;n<24;n+=1){for(a=co(),r=0;r<5;r+=1)o[r]=(l=t[r][0],c=t[r][1],u=t[r][2],f=t[r][3],d=t[r][4],new _(l.N^c.N^u.N^f.N^d.N,l.I^c.I^u.I^f.I^d.I));for(r=0;r<5;r+=1)s[r]=Zn(o[(r+4)%5],T0(o[(r+1)%5],1));for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=Zn(t[r][i],s[r]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)a[i][(2*r+3*i)%5]=T0(t[r][i],ng[r][i]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=Zn(a[r][i],new _(~a[(r+1)%5][i].N&a[(r+2)%5][i].N,~a[(r+1)%5][i].I&a[(r+2)%5][i].I));t[0][0]=Zn(t[0][0],tg[n])}var l,c,u,f,d;return t}function Fu(e){let t,n,r=0;const i=[0,0],a=[4294967295&e,e/Ar&2097151];for(t=6;t>=0;t--)n=a[t>>2]>>>8*t&255,n===0&&r===0||(i[r+1>>2]|=n<<8*(r+1),r+=1);return r=r!==0?r:1,i[0]|=r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}function na(e){return ci(Fu(e.binLen),e)}function R0(e,t){let n,r=Fu(t);r=ci(r,e);const i=t>>>2,a=(i-r.value.length%i)%i;for(n=0;n<a;n++)r.value.push(0);return r.value}let ig=class extends Fi{constructor(e,t,n){let r=6,i=0;super(e,t,n);const a=n||{};if(this.numRounds!==1){if(a.kmacKey||a.hmacKey)throw new Error(Eu);if(this.o==="CSHAKE128"||this.o==="CSHAKE256")throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=Mn(this.t,this.i,this.T),this.v=$r,this.L=rg,this.B=co,this.U=co(),this.K=!1,e){case"SHA3-224":this.m=i=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=i=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=i=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=i=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":r=31,this.m=i=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":r=31,this.m=i=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":r=4,this.m=i=1344,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":r=4,this.m=i=1088,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=i=1344,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=i=1088,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(Er)}this.F=function(o,s,l,c,u){return function(f,d,p,x,h,v,b){let y,g,C=0;const E=[],S=h>>>5,w=d>>>5;for(y=0;y<w&&d>=h;y+=S)x=$r(f.slice(y,y+S),x),d-=h;for(f=f.slice(y),d%=h;f.length<S;)f.push(0);for(y=d>>>3,f[y>>2]^=v<<y%4*8,f[S-1]^=2147483648,x=$r(f,x);32*E.length<b&&(g=x[C%5][C/5|0],E.push(g.I),!(32*E.length>=b));)E.push(g.N),C+=1,64*C%h==0&&($r(null,x),C=0);return E}(o,s,0,c,i,r,u)},a.hmacKey&&this.k(Vt("hmacKey",a.hmacKey,this.T))}O(e,t){const n=function(i){const a=i||{};return{funcName:Vt("funcName",a.funcName,1,{value:[],binLen:0}),customization:Vt("Customization",a.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const r=ci(na(n.funcName),na(n.customization));if(n.customization.binLen!==0||n.funcName.binLen!==0){const i=R0(r,this.m>>>3);for(let a=0;a<i.length;a+=this.m>>>5)this.U=this.v(i.slice(a,a+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(r){const i=r||{};return{kmacKey:Vt("kmacKey",i.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:Vt("Customization",i.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=R0(na(t.kmacKey),this.m>>>3);for(let r=0;r<n.length;r+=this.m>>>5)this.U=this.v(n.slice(r,r+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=ci({value:this.h.slice(),binLen:this.u},function(n){let r,i,a=0;const o=[0,0],s=[4294967295&n,n/Ar&2097151];for(r=6;r>=0;r--)i=s[r>>2]>>>8*r&255,i===0&&a===0||(o[a>>2]|=i<<8*a,a+=1);return a=a!==0?a:1,o[a>>2]|=a<<8*a,{value:a+1>4?o:[o[0]],binLen:8+8*a}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class ag{constructor(t,n,r){if(t=="SHA-1")this.P=new zm(t,n,r);else if(t=="SHA-224"||t=="SHA-256")this.P=new Wm(t,n,r);else if(t=="SHA-384"||t=="SHA-512")this.P=new eg(t,n,r);else{if(t!="SHA3-224"&&t!="SHA3-256"&&t!="SHA3-384"&&t!="SHA3-512"&&t!="SHAKE128"&&t!="SHAKE256"&&t!="CSHAKE128"&&t!="CSHAKE256"&&t!="KMAC128"&&t!="KMAC256")throw new Error(Er);this.P=new ig(t,n,r)}}update(t){return this.P.update(t),this}getHash(t,n){return this.P.getHash(t,n)}setHMACKey(t,n,r){this.P.setHMACKey(t,n,r)}getHMAC(t,n){return this.P.getHMAC(t,n)}}class og{static generate(t,n){const r={digits:6,algorithm:"SHA-1",period:30,timestamp:Date.now(),...n},i=Math.floor(r.timestamp/1e3),a=this.leftpad(this.dec2hex(Math.floor(i/r.period)),16,"0"),o=new ag(r.algorithm,"HEX");o.setHMACKey(this.base32tohex(t),"HEX"),o.update(a);const s=o.getHMAC("HEX"),l=this.hex2dec(s.substring(s.length-1));let c=(this.hex2dec(s.substr(l*2,8))&this.hex2dec("7fffffff"))+"";const u=Math.max(c.length-r.digits,0);c=c.substring(u,u+r.digits);const f=Math.ceil((r.timestamp+1)/(r.period*1e3))*r.period*1e3;return{otp:c,expires:f}}static hex2dec(t){return parseInt(t,16)}static dec2hex(t){return(t<15.5?"0":"")+Math.round(t).toString(16)}static base32tohex(t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let r="",i="";const a=t.replace(/=+$/,"");for(let o=0;o<a.length;o++){const s=n.indexOf(t.charAt(o).toUpperCase());if(s===-1)throw new Error("Invalid base32 character in key");r+=this.leftpad(s.toString(2),5,"0")}for(let o=0;o+8<=r.length;o+=8){const s=r.substr(o,8);i=i+this.leftpad(parseInt(s,2).toString(16),2,"0")}return i}static leftpad(t,n,r){return n+1>=t.length&&(t=Array(n+1-t.length).join(r)+t),t}}var Pu={exports:{}};function sg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ra={exports:{}};const cg={},lg=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),ug=Fd(lg);var k0;function ce(){return k0||(k0=1,function(e,t){(function(n,r){e.exports=r()})(oe,function(){var n=n||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof oe<"u"&&oe.crypto&&(a=oe.crypto),!a&&typeof sg=="function")try{a=ug}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(g){var C;return y.prototype=g,C=new y,y.prototype=null,C}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(y){var g=s(this);return y&&g.mixIn(y),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var g in y)y.hasOwnProperty(g)&&(this[g]=y[g]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(y,g){y=this.words=y||[],g!=i?this.sigBytes=g:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var g=this.words,C=y.words,E=this.sigBytes,S=y.sigBytes;if(this.clamp(),E%4)for(var w=0;w<S;w++){var T=C[w>>>2]>>>24-w%4*8&255;g[E+w>>>2]|=T<<24-(E+w)%4*8}else for(var k=0;k<S;k+=4)g[E+k>>>2]=C[k>>>2];return this.sigBytes+=S,this},clamp:function(){var y=this.words,g=this.sigBytes;y[g>>>2]&=4294967295<<32-g%4*8,y.length=r.ceil(g/4)},clone:function(){var y=u.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var g=[],C=0;C<y;C+=4)g.push(o());return new f.init(g,y)}}),d=l.enc={},p=d.Hex={stringify:function(y){for(var g=y.words,C=y.sigBytes,E=[],S=0;S<C;S++){var w=g[S>>>2]>>>24-S%4*8&255;E.push((w>>>4).toString(16)),E.push((w&15).toString(16))}return E.join("")},parse:function(y){for(var g=y.length,C=[],E=0;E<g;E+=2)C[E>>>3]|=parseInt(y.substr(E,2),16)<<24-E%8*4;return new f.init(C,g/2)}},x=d.Latin1={stringify:function(y){for(var g=y.words,C=y.sigBytes,E=[],S=0;S<C;S++){var w=g[S>>>2]>>>24-S%4*8&255;E.push(String.fromCharCode(w))}return E.join("")},parse:function(y){for(var g=y.length,C=[],E=0;E<g;E++)C[E>>>2]|=(y.charCodeAt(E)&255)<<24-E%4*8;return new f.init(C,g)}},h=d.Utf8={stringify:function(y){try{return decodeURIComponent(escape(x.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return x.parse(unescape(encodeURIComponent(y)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=h.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var g,C=this._data,E=C.words,S=C.sigBytes,w=this.blockSize,T=w*4,k=S/T;y?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var m=k*w,B=r.min(m*4,S);if(m){for(var R=0;R<m;R+=w)this._doProcessBlock(E,R);g=E.splice(0,m),C.sigBytes-=B}return new f.init(g,B)},clone:function(){var y=u.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(y){return function(g,C){return new y.init(C).finalize(g)}},_createHmacHelper:function(y){return function(g,C){return new b.HMAC.init(y,C).finalize(g)}}});var b=l.algo={};return l}(Math);return n})}(ra)),ra.exports}var ia={exports:{}},M0;function Pi(){return M0||(M0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.Base,s=a.WordArray,l=i.x64={};l.Word=o.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=o.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,f=[],d=0;d<u;d++){var p=c[d];f.push(p.high),f.push(p.low)}return s.create(f,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),u=c.words=this.words.slice(0),f=u.length,d=0;d<f;d++)u[d]=u[d].clone();return c}})}(),n})}(ia)),ia.exports}var aa={exports:{}},_0;function fg(){return _0||(_0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,a=i.WordArray,o=a.init,s=a.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],f=0;f<c;f++)u[f>>>2]|=l[f]<<24-f%4*8;o.call(this,u,c)}else o.apply(this,arguments)};s.prototype=a}}(),n.lib.WordArray})}(aa)),aa.exports}var oa={exports:{}},I0;function dg(){return I0||(I0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var p=c[d>>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(p))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=l.charCodeAt(f)<<16-f%2*16;return a.create(u,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var p=s(c[d>>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(p))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=s(l.charCodeAt(f)<<16-f%2*16);return a.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(oa)),oa.exports}var sa={exports:{}},O0;function ln(){return O0||(O0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,f=this._map;l.clamp();for(var d=[],p=0;p<u;p+=3)for(var x=c[p>>>2]>>>24-p%4*8&255,h=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,b=x<<16|h<<8|v,y=0;y<4&&p+y*.75<u;y++)d.push(f.charAt(b>>>6*(3-y)&63));var g=f.charAt(64);if(g)for(;d.length%4;)d.push(g);return d.join("")},parse:function(l){var c=l.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<u.length;d++)f[u.charCodeAt(d)]=d}var p=u.charAt(64);if(p){var x=l.indexOf(p);x!==-1&&(c=x)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var f=[],d=0,p=0;p<c;p++)if(p%4){var x=u[l.charCodeAt(p-1)]<<p%4*2,h=u[l.charCodeAt(p)]>>>6-p%4*2,v=x|h;f[d>>>2]|=v<<24-d%4*8,d++}return a.create(f,d)}}(),n.enc.Base64})}(sa)),sa.exports}var ca={exports:{}},N0;function hg(){return N0||(N0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,f=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var p=[],x=0;x<f;x+=3)for(var h=u[x>>>2]>>>24-x%4*8&255,v=u[x+1>>>2]>>>24-(x+1)%4*8&255,b=u[x+2>>>2]>>>24-(x+2)%4*8&255,y=h<<16|v<<8|b,g=0;g<4&&x+g*.75<f;g++)p.push(d.charAt(y>>>6*(3-g)&63));var C=d.charAt(64);if(C)for(;p.length%4;)p.push(C);return p.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,f=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var p=0;p<f.length;p++)d[f.charCodeAt(p)]=p}var x=f.charAt(64);if(x){var h=l.indexOf(x);h!==-1&&(u=h)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var f=[],d=0,p=0;p<c;p++)if(p%4){var x=u[l.charCodeAt(p-1)]<<p%4*2,h=u[l.charCodeAt(p)]>>>6-p%4*2,v=x|h;f[d>>>2]|=v<<24-d%4*8,d++}return a.create(f,d)}}(),n.enc.Base64url})}(ca)),ca.exports}var la={exports:{}},j0;function un(){return j0||(j0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=r.abs(r.sin(h+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var b=0;b<16;b++){var y=v+b,g=h[y];h[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var C=this._hash.words,E=h[v+0],S=h[v+1],w=h[v+2],T=h[v+3],k=h[v+4],m=h[v+5],B=h[v+6],R=h[v+7],P=h[v+8],U=h[v+9],z=h[v+10],J=h[v+11],Z=h[v+12],ee=h[v+13],ne=h[v+14],j=h[v+15],F=C[0],I=C[1],O=C[2],M=C[3];F=f(F,I,O,M,E,7,c[0]),M=f(M,F,I,O,S,12,c[1]),O=f(O,M,F,I,w,17,c[2]),I=f(I,O,M,F,T,22,c[3]),F=f(F,I,O,M,k,7,c[4]),M=f(M,F,I,O,m,12,c[5]),O=f(O,M,F,I,B,17,c[6]),I=f(I,O,M,F,R,22,c[7]),F=f(F,I,O,M,P,7,c[8]),M=f(M,F,I,O,U,12,c[9]),O=f(O,M,F,I,z,17,c[10]),I=f(I,O,M,F,J,22,c[11]),F=f(F,I,O,M,Z,7,c[12]),M=f(M,F,I,O,ee,12,c[13]),O=f(O,M,F,I,ne,17,c[14]),I=f(I,O,M,F,j,22,c[15]),F=d(F,I,O,M,S,5,c[16]),M=d(M,F,I,O,B,9,c[17]),O=d(O,M,F,I,J,14,c[18]),I=d(I,O,M,F,E,20,c[19]),F=d(F,I,O,M,m,5,c[20]),M=d(M,F,I,O,z,9,c[21]),O=d(O,M,F,I,j,14,c[22]),I=d(I,O,M,F,k,20,c[23]),F=d(F,I,O,M,U,5,c[24]),M=d(M,F,I,O,ne,9,c[25]),O=d(O,M,F,I,T,14,c[26]),I=d(I,O,M,F,P,20,c[27]),F=d(F,I,O,M,ee,5,c[28]),M=d(M,F,I,O,w,9,c[29]),O=d(O,M,F,I,R,14,c[30]),I=d(I,O,M,F,Z,20,c[31]),F=p(F,I,O,M,m,4,c[32]),M=p(M,F,I,O,P,11,c[33]),O=p(O,M,F,I,J,16,c[34]),I=p(I,O,M,F,ne,23,c[35]),F=p(F,I,O,M,S,4,c[36]),M=p(M,F,I,O,k,11,c[37]),O=p(O,M,F,I,R,16,c[38]),I=p(I,O,M,F,z,23,c[39]),F=p(F,I,O,M,ee,4,c[40]),M=p(M,F,I,O,E,11,c[41]),O=p(O,M,F,I,T,16,c[42]),I=p(I,O,M,F,B,23,c[43]),F=p(F,I,O,M,U,4,c[44]),M=p(M,F,I,O,Z,11,c[45]),O=p(O,M,F,I,j,16,c[46]),I=p(I,O,M,F,w,23,c[47]),F=x(F,I,O,M,E,6,c[48]),M=x(M,F,I,O,R,10,c[49]),O=x(O,M,F,I,ne,15,c[50]),I=x(I,O,M,F,m,21,c[51]),F=x(F,I,O,M,Z,6,c[52]),M=x(M,F,I,O,T,10,c[53]),O=x(O,M,F,I,z,15,c[54]),I=x(I,O,M,F,S,21,c[55]),F=x(F,I,O,M,P,6,c[56]),M=x(M,F,I,O,j,10,c[57]),O=x(O,M,F,I,B,15,c[58]),I=x(I,O,M,F,ee,21,c[59]),F=x(F,I,O,M,k,6,c[60]),M=x(M,F,I,O,J,10,c[61]),O=x(O,M,F,I,w,15,c[62]),I=x(I,O,M,F,U,21,c[63]),C[0]=C[0]+F|0,C[1]=C[1]+I|0,C[2]=C[2]+O|0,C[3]=C[3]+M|0},_doFinalize:function(){var h=this._data,v=h.words,b=this._nDataBytes*8,y=h.sigBytes*8;v[y>>>5]|=128<<24-y%32;var g=r.floor(b/4294967296),C=b;v[(y+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,v[(y+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(v.length+1)*4,this._process();for(var E=this._hash,S=E.words,w=0;w<4;w++){var T=S[w];S[w]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return E},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,v,b,y,g,C,E){var S=h+(v&b|~v&y)+g+E;return(S<<C|S>>>32-C)+v}function d(h,v,b,y,g,C,E){var S=h+(v&y|b&~y)+g+E;return(S<<C|S>>>32-C)+v}function p(h,v,b,y,g,C,E){var S=h+(v^b^y)+g+E;return(S<<C|S>>>32-C)+v}function x(h,v,b,y,g,C,E){var S=h+(b^(v|~y))+g+E;return(S<<C|S>>>32-C)+v}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),n.MD5})}(la)),la.exports}var ua={exports:{}},L0;function Ru(){return L0||(L0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=i.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,p=d[0],x=d[1],h=d[2],v=d[3],b=d[4],y=0;y<80;y++){if(y<16)l[y]=u[f+y]|0;else{var g=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=g<<1|g>>>31}var C=(p<<5|p>>>27)+b+l[y];y<20?C+=(x&h|~x&v)+1518500249:y<40?C+=(x^h^v)+1859775393:y<60?C+=(x&h|x&v|h&v)-1894007588:C+=(x^h^v)-899497514,b=v,v=h,h=x<<30|x>>>2,x=p,p=C}d[0]=d[0]+p|0,d[1]=d[1]+x|0,d[2]=d[2]+h|0,d[3]=d[3]+v|0,d[4]=d[4]+b|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,p=u.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(p+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),n.SHA1})}(ua)),ua.exports}var fa={exports:{}},V0;function Jo(){return V0||(V0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[],u=[];(function(){function p(b){for(var y=r.sqrt(b),g=2;g<=y;g++)if(!(b%g))return!1;return!0}function x(b){return(b-(b|0))*4294967296|0}for(var h=2,v=0;v<64;)p(h)&&(v<8&&(c[v]=x(r.pow(h,1/2))),u[v]=x(r.pow(h,1/3)),v++),h++})();var f=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(p,x){for(var h=this._hash.words,v=h[0],b=h[1],y=h[2],g=h[3],C=h[4],E=h[5],S=h[6],w=h[7],T=0;T<64;T++){if(T<16)f[T]=p[x+T]|0;else{var k=f[T-15],m=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,B=f[T-2],R=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;f[T]=m+f[T-7]+R+f[T-16]}var P=C&E^~C&S,U=v&b^v&y^b&y,z=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),J=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),Z=w+J+P+u[T]+f[T],ee=z+U;w=S,S=E,E=C,C=g+Z|0,g=y,y=b,b=v,v=Z+ee|0}h[0]=h[0]+v|0,h[1]=h[1]+b|0,h[2]=h[2]+y|0,h[3]=h[3]+g|0,h[4]=h[4]+C|0,h[5]=h[5]+E|0,h[6]=h[6]+S|0,h[7]=h[7]+w|0},_doFinalize:function(){var p=this._data,x=p.words,h=this._nDataBytes*8,v=p.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=r.floor(h/4294967296),x[(v+64>>>9<<4)+15]=h,p.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),n.SHA256})}(fa)),fa.exports}var da={exports:{}},$0;function pg(){return $0||($0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Jo())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,o=r.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=s._createHelper(l),r.HmacSHA224=s._createHmacHelper(l)}(),n.SHA224})}(da)),da.exports}var ha={exports:{}},U0;function ku(){return U0||(U0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi())})(oe,function(n){return function(){var r=n,i=r.lib,a=i.Hasher,o=r.x64,s=o.Word,l=o.WordArray,c=r.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var x=0;x<80;x++)d[x]=u()})();var p=c.SHA512=a.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(x,h){for(var v=this._hash.words,b=v[0],y=v[1],g=v[2],C=v[3],E=v[4],S=v[5],w=v[6],T=v[7],k=b.high,m=b.low,B=y.high,R=y.low,P=g.high,U=g.low,z=C.high,J=C.low,Z=E.high,ee=E.low,ne=S.high,j=S.low,F=w.high,I=w.low,O=T.high,M=T.low,Q=k,W=m,te=B,N=R,G=P,re=U,Be=z,K=J,Ce=Z,ke=ee,tt=ne,lt=j,Yt=F,Ot=I,Nt=O,qt=M,Ze=0;Ze<80;Ze++){var Ve,gt,fn=d[Ze];if(Ze<16)gt=fn.high=x[h+Ze*2]|0,Ve=fn.low=x[h+Ze*2+1]|0;else{var jn=d[Ze-15],Bt=jn.high,ut=jn.low,Ni=(Bt>>>1|ut<<31)^(Bt>>>8|ut<<24)^Bt>>>7,Ln=(ut>>>1|Bt<<31)^(ut>>>8|Bt<<24)^(ut>>>7|Bt<<25),Vn=d[Ze-2],yt=Vn.high,Xt=Vn.low,ji=(yt>>>19|Xt<<13)^(yt<<3|Xt>>>29)^yt>>>6,Tr=(Xt>>>19|yt<<13)^(Xt<<3|yt>>>29)^(Xt>>>6|yt<<26),Fr=d[Ze-7],Li=Fr.high,Vi=Fr.low,Pr=d[Ze-16],$n=Pr.high,Un=Pr.low;Ve=Ln+Vi,gt=Ni+Li+(Ve>>>0<Ln>>>0?1:0),Ve=Ve+Tr,gt=gt+ji+(Ve>>>0<Tr>>>0?1:0),Ve=Ve+Un,gt=gt+$n+(Ve>>>0<Un>>>0?1:0),fn.high=gt,fn.low=Ve}var jt=Ce&tt^~Ce&Yt,dn=ke&lt^~ke&Ot,Hn=Q&te^Q&G^te&G,Rr=W&N^W&re^N&re,$i=(Q>>>28|W<<4)^(Q<<30|W>>>2)^(Q<<25|W>>>7),zn=(W>>>28|Q<<4)^(W<<30|Q>>>2)^(W<<25|Q>>>7),Ui=(Ce>>>14|ke<<18)^(Ce>>>18|ke<<14)^(Ce<<23|ke>>>9),kr=(ke>>>14|Ce<<18)^(ke>>>18|Ce<<14)^(ke<<23|Ce>>>9),Wn=f[Ze],Hi=Wn.high,Mr=Wn.low,$e=qt+kr,ft=Nt+Ui+($e>>>0<qt>>>0?1:0),$e=$e+dn,ft=ft+jt+($e>>>0<dn>>>0?1:0),$e=$e+Mr,ft=ft+Hi+($e>>>0<Mr>>>0?1:0),$e=$e+Ve,ft=ft+gt+($e>>>0<Ve>>>0?1:0),_r=zn+Rr,zi=$i+Hn+(_r>>>0<zn>>>0?1:0);Nt=Yt,qt=Ot,Yt=tt,Ot=lt,tt=Ce,lt=ke,ke=K+$e|0,Ce=Be+ft+(ke>>>0<K>>>0?1:0)|0,Be=G,K=re,G=te,re=N,te=Q,N=W,W=$e+_r|0,Q=ft+zi+(W>>>0<$e>>>0?1:0)|0}m=b.low=m+W,b.high=k+Q+(m>>>0<W>>>0?1:0),R=y.low=R+N,y.high=B+te+(R>>>0<N>>>0?1:0),U=g.low=U+re,g.high=P+G+(U>>>0<re>>>0?1:0),J=C.low=J+K,C.high=z+Be+(J>>>0<K>>>0?1:0),ee=E.low=ee+ke,E.high=Z+Ce+(ee>>>0<ke>>>0?1:0),j=S.low=j+lt,S.high=ne+tt+(j>>>0<lt>>>0?1:0),I=w.low=I+Ot,w.high=F+Yt+(I>>>0<Ot>>>0?1:0),M=T.low=M+qt,T.high=O+Nt+(M>>>0<qt>>>0?1:0)},_doFinalize:function(){var x=this._data,h=x.words,v=this._nDataBytes*8,b=x.sigBytes*8;h[b>>>5]|=128<<24-b%32,h[(b+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(b+128>>>10<<5)+31]=v,x.sigBytes=h.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var x=a.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});r.SHA512=a._createHelper(p),r.HmacSHA512=a._createHmacHelper(p)}(),n.SHA512})}(ha)),ha.exports}var pa={exports:{}},H0;function xg(){return H0||(H0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi(),ku())})(oe,function(n){return function(){var r=n,i=r.x64,a=i.Word,o=i.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(pa)),pa.exports}var xa={exports:{}},z0;function mg(){return z0||(z0=1,function(e,t){(function(n,r,i){e.exports=r(ce(),Pi())})(oe,function(n){return function(r){var i=n,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.x64,c=l.Word,u=i.algo,f=[],d=[],p=[];(function(){for(var v=1,b=0,y=0;y<24;y++){f[v+5*b]=(y+1)*(y+2)/2%64;var g=b%5,C=(2*v+3*b)%5;v=g,b=C}for(var v=0;v<5;v++)for(var b=0;b<5;b++)d[v+5*b]=b+(2*v+3*b)%5*5;for(var E=1,S=0;S<24;S++){for(var w=0,T=0,k=0;k<7;k++){if(E&1){var m=(1<<k)-1;m<32?T^=1<<m:w^=1<<m-32}E&128?E=E<<1^113:E<<=1}p[S]=c.create(w,T)}})();var x=[];(function(){for(var v=0;v<25;v++)x[v]=c.create()})();var h=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],b=0;b<25;b++)v[b]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,b){for(var y=this._state,g=this.blockSize/2,C=0;C<g;C++){var E=v[b+2*C],S=v[b+2*C+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var w=y[C];w.high^=S,w.low^=E}for(var T=0;T<24;T++){for(var k=0;k<5;k++){for(var m=0,B=0,R=0;R<5;R++){var w=y[k+5*R];m^=w.high,B^=w.low}var P=x[k];P.high=m,P.low=B}for(var k=0;k<5;k++)for(var U=x[(k+4)%5],z=x[(k+1)%5],J=z.high,Z=z.low,m=U.high^(J<<1|Z>>>31),B=U.low^(Z<<1|J>>>31),R=0;R<5;R++){var w=y[k+5*R];w.high^=m,w.low^=B}for(var ee=1;ee<25;ee++){var m,B,w=y[ee],ne=w.high,j=w.low,F=f[ee];F<32?(m=ne<<F|j>>>32-F,B=j<<F|ne>>>32-F):(m=j<<F-32|ne>>>64-F,B=ne<<F-32|j>>>64-F);var I=x[d[ee]];I.high=m,I.low=B}var O=x[0],M=y[0];O.high=M.high,O.low=M.low;for(var k=0;k<5;k++)for(var R=0;R<5;R++){var ee=k+5*R,w=y[ee],Q=x[ee],W=x[(k+1)%5+5*R],te=x[(k+2)%5+5*R];w.high=Q.high^~W.high&te.high,w.low=Q.low^~W.low&te.low}var w=y[0],N=p[T];w.high^=N.high,w.low^=N.low}},_doFinalize:function(){var v=this._data,b=v.words;this._nDataBytes*8;var y=v.sigBytes*8,g=this.blockSize*32;b[y>>>5]|=1<<24-y%32,b[(r.ceil((y+1)/g)*g>>>5)-1]|=128,v.sigBytes=b.length*4,this._process();for(var C=this._state,E=this.cfg.outputLength/8,S=E/8,w=[],T=0;T<S;T++){var k=C[T],m=k.high,B=k.low;m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w.push(B),w.push(m)}return new o.init(w,E)},clone:function(){for(var v=s.clone.call(this),b=v._state=this._state.slice(0),y=0;y<25;y++)b[y]=b[y].clone();return v}});i.SHA3=s._createHelper(h),i.HmacSHA3=s._createHmacHelper(h)}(Math),n.SHA3})}(xa)),xa.exports}var ma={exports:{}},W0;function gg(){return W0||(W0=1,function(e,t){(function(n,r){e.exports=r(ce())})(oe,function(n){/** @preserve
500
504
  (c) 2012 by Cédric Mesnil. All rights reserved.
501
505
 
502
506
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -548,15 +552,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
548
552
  }
549
553
  `,_u=Y.section`
550
554
  display: flex;
555
+ flex-direction: column;
551
556
  transform: ${({transform:e})=>e};
552
557
  transition: ${({transition:e})=>e};
553
- padding: 1px;
558
+ padding: 1px 4px;
554
559
  &:hover {
555
- background: var(--secondary-lightest);
560
+ background: var(--secondary-light);
556
561
  border-radius: 6px;
557
562
  }
558
563
  &.active-step {
559
- background: var(--primary-lightest);
564
+ background: var(--color-primary-20);
560
565
  border-radius: 6px;
561
566
  }
562
567
  `,Iu=Y.section`
@@ -586,7 +591,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
586
591
  display: flex;
587
592
  flex-direction: column;
588
593
  list-style: none;
589
- gap: 4px;
594
+ gap: 2px;
590
595
  margin-top: 4px;
591
596
  `,Gg=Y($.Box)`
592
597
  --opacity: 0;
@@ -594,17 +599,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
594
599
  --dots-display: none;
595
600
  transition: all 0.2s ease;
596
601
  opacity: ${({isDragging:e})=>e?.4:1};
597
- background-color: ${({isDragging:e})=>e?"var(--secondary-light)":""};
598
- padding: 2px;
602
+ background-color: ${({isDragging:e})=>e?"var(--secondary-light)":"var(--color-grey-30)"};
603
+ padding: 0px;
599
604
  &:hover {
600
605
  --opacity: 1;
601
606
  --badge-display: none;
602
607
  --dots-display: flex;
603
608
  }
604
609
  border-radius: 10px;
605
- &:hover {
606
- background-color: var(--secondary-lightest);
607
- }
610
+
608
611
  `,Yg=Y.section`
609
612
  display: flex;
610
613
  align-items: center;
@@ -623,7 +626,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
623
626
  padding-left: 5px;
624
627
  `,ju=Y($.Box)`
625
628
  display: flex;
626
- padding: 0 4px 0px 8px;
629
+ padding: 0px 4px;
627
630
  justify-content: flex-start;
628
631
  align-items: center;
629
632
  gap: 4px;
@@ -661,7 +664,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
661
664
  overflow: hidden;
662
665
  text-overflow: ellipsis;
663
666
  cursor: pointer;
664
- line-height: 20px;
667
+ line-height: 16px;
665
668
  span {
666
669
  display: inline;
667
670
  margin: 0;
@@ -779,7 +782,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
779
782
  background: var(--color-primary-100); /* dot color */
780
783
  }
781
784
  `,Hu=Y($.Box)`
782
- width: 100%;
785
+ width: 100%;
786
+ display:flex;
787
+ align-items: baseline;
783
788
  .menu-icon {
784
789
  padding: 0;
785
790
  opacity: 0;
@@ -789,7 +794,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
789
794
  opacity: 1;
790
795
  }
791
796
  }
792
- `,c2=({isRec:e,stepCount:t,isMainApp:n})=>A.jsxs(Mu,{isMainApp:n,children:[A.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,children:[A.jsx(be,{value:"Steps",weight:"semi",size:"lg"}),e&&t>=1&&A.jsx(Uu,{icon:A.jsx(Io,{size:14}),severity:"warning",children:"Reuse existing steps by clicking Add Step button"})]}),A.jsx(be,{size:"xs",value:`${t} step${t>1?"s":""}`,color:"var(--color-grey-70)"})]}),zu=({openCollapse:e,arrowColor:t,...n})=>A.jsx(Iu,{children:n.noCollpase?A.jsx(Io,{color:t,width:14}):A.jsx(Ou,{...n,children:A.jsx(yr,{cursor:"pointer",color:t,size:10,style:{transform:e?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.125s ease-in-out"}})})}),l2=({showInfoIcon:e=!1,stepType:t,isActive:n=!1,color:r,handleTextClick:i,anchorEl:a,handleMenuClick:o,handleMenuClose:s,menuItems:l,hasInterceptRouteItems:c=!1})=>A.jsxs(ju,{children:[e&&A.jsx(Il,{size:12}),A.jsx(be,{"data-no-dnd":"true",value:t,color:r,weight:"semi",onClick:i,sx:{wordBreak:"initial !important",cursor:"pointer"}}),n&&A.jsxs("span",{className:"rec-indicator",children:[A.jsx("span",{className:"dot"})," Rec"]}),s&&l&&a&&A.jsx(Jl,{onClick:o,handleClose:s,anchorEl:a,items:l,id:"keyword-menu"}),c&&A.jsx("div",{children:A.jsx("img",{src:"./icons/plug_24x24.svg",width:"14px",height:"14px",alt:""})})]}),u2=({splits:e,text:t,setIsVisible:n,showCursor:r})=>A.jsx(Ho,{title:t,enterNextDelay:0,enterDelay:0,children:A.jsx(Vu,{className:"title-text",children:e.map((i,a)=>i.isVariable?A.jsxs(A.Fragment,{children:[A.jsx(be,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."}),A.jsx(be,{value:i.text,className:"title-text",component:"span",color:"var(--color-success-100)",weight:"medium",sx:{cursor:r?"pointer":"inherit"},onMouseDown:o=>{r||o.stopPropagation()},onClick:o=>{r||(o.stopPropagation(),n==null||n(s=>{const l=s.map(c=>!1);return l[a]=!s[a],l}))}}),A.jsx(be,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."})]}):A.jsx(be,{className:"title-text",value:i.text,component:"span",color:"var(--color-grey-80)",weight:"medium"}))})}),f2=({onCancel:e,value:t,preventedKeys:n,onSave:r,setValue:i})=>A.jsx($.ClickAwayListener,{"data-no-dnd":"true",onClickAway:e,children:A.jsxs($u,{"data-no-dnd":"true",children:[A.jsx(Pn,{value:t,name:"",onKeyDown:a=>{a.stopPropagation(),n!=null&&n.includes(a.key)&&a.preventDefault()},onChange:a=>{a.stopPropagation(),i(a.target.value)},fullWidth:!0,minRows:1,multiline:!0,maxRows:5,autoFocus:!0}),A.jsxs($.Box,{display:"flex",gap:.2,mt:.5,children:[A.jsx(it,{onClick:a=>{a.stopPropagation(),r(t)},size:"small",children:A.jsx(ni,{color:"var(--color-success-100)",size:14})}),A.jsx(it,{onClick:e,size:"small",children:A.jsx(ti,{color:"var(--color-error-100)",size:14})})]})]})}),d2=e=>{e.stopPropagation()},h2=({wrapperProps:e,iconProps:t,dndProps:n,openCollapse:r,KeywordComponent:i,isEditing:a,SplitTextComponent:o,EditingTextViewComponent:s,ActionComponent:l,warning:c,CollapseContent:u})=>A.jsxs(_u,{...e,children:[A.jsx(zu,{...t}),A.jsxs(Hu,{children:[A.jsxs(Nu,{...n,children:[A.jsxs(Lu,{className:r?"open":"",children:[i,a?s:o]}),A.jsx($.Box,{onClick:d2,"data-no-dnd":"true",display:"flex",alignItems:"start",children:l})]}),c,A.jsx($.Collapse,{in:r,children:u})]})]});function p2(e){if(typeof e!="string")return[];const t=[];let n="",r=!1,i=!1,a=0,o=0;for(let s=0;s<e.length;s++){const l=e[s];if(i){n+=l,i=!1,o++;continue}if(l==="\\"){i=!0,n+=l,o++;continue}if(l==='"'){r?(n+=l,t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),n="",r=!1,o++,a=s+1):(n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),n=l,r=!0,a=s+1,o++);continue}n+=l,o++}return n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),t}const Xr=e=>e.startsWith('"')&&e.endsWith('"'),x2=["Enter","/","{","}","(",")"],m2=["Given","When","Then"],g2=["Given","When","Then","And","But"];function y2(e){const t=e.split(`
797
+ `,c2=({isRec:e,stepCount:t,isMainApp:n})=>A.jsxs(Mu,{isMainApp:n,children:[A.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,children:[A.jsx(be,{value:"Steps",weight:"semi",size:"lg"}),e&&t>=1&&A.jsx(Uu,{icon:A.jsx(Io,{size:14}),severity:"warning",children:"Reuse existing steps by clicking Add Step button"})]}),A.jsx(be,{size:"xs",value:`${t} step${t>1?"s":""}`,color:"var(--color-grey-70)"})]}),zu=({openCollapse:e,arrowColor:t,...n})=>A.jsx(Iu,{children:n.noCollpase?A.jsx(Io,{color:t,width:14}):A.jsx(Ou,{...n,children:A.jsx(yr,{cursor:"pointer",color:t,size:10,style:{transform:e?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.125s ease-in-out"}})})}),l2=({showInfoIcon:e=!1,stepType:t,isActive:n=!1,color:r,handleTextClick:i,anchorEl:a,handleMenuClick:o,handleMenuClose:s,menuItems:l,hasInterceptRouteItems:c=!1})=>A.jsxs(ju,{children:[e&&A.jsx(Il,{size:12}),A.jsx(be,{"data-no-dnd":"true",value:t,color:r,weight:"semi",onClick:i,sx:{wordBreak:"initial !important",cursor:"pointer"}}),n&&A.jsxs("span",{className:"rec-indicator",children:[A.jsx("span",{className:"dot"})," Rec"]}),s&&l&&a&&A.jsx(Jl,{onClick:o,handleClose:s,anchorEl:a,items:l,id:"keyword-menu"}),c&&A.jsx("div",{children:A.jsx("img",{src:"./icons/plug_24x24.svg",width:"14px",height:"14px",alt:""})})]}),u2=({splits:e,text:t,setIsVisible:n,showCursor:r})=>A.jsx(Ho,{title:t,enterNextDelay:0,enterDelay:0,children:A.jsx(Vu,{className:"title-text",children:e.map((i,a)=>i.isVariable?A.jsxs(A.Fragment,{children:[A.jsx(be,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."}),A.jsx(be,{value:i.text,className:"title-text",component:"span",color:"var(--color-success-100)",weight:"medium",sx:{cursor:r?"pointer":"inherit"},onMouseDown:o=>{r||o.stopPropagation()},onClick:o=>{r||(o.stopPropagation(),n==null||n(s=>{const l=s.map(c=>!1);return l[a]=!s[a],l}))}}),A.jsx(be,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."})]}):A.jsx(be,{className:"title-text",value:i.text,component:"span",color:"var(--color-grey-80)",weight:"medium"}))})}),f2=({onCancel:e,value:t,preventedKeys:n,onSave:r,setValue:i})=>A.jsx($.ClickAwayListener,{"data-no-dnd":"true",onClickAway:e,children:A.jsxs($u,{"data-no-dnd":"true",children:[A.jsx(Pn,{value:t,name:"",onKeyDown:a=>{a.stopPropagation(),n!=null&&n.includes(a.key)&&a.preventDefault()},onChange:a=>{a.stopPropagation(),i(a.target.value)},fullWidth:!0,minRows:1,multiline:!0,maxRows:5,autoFocus:!0}),A.jsxs($.Box,{display:"flex",gap:.2,mt:.5,children:[A.jsx(it,{onClick:a=>{a.stopPropagation(),r(t)},size:"small",children:A.jsx(ni,{color:"var(--color-success-100)",size:14})}),A.jsx(it,{onClick:e,size:"small",children:A.jsx(ti,{color:"var(--color-error-100)",size:14})})]})]})}),d2=e=>{e.stopPropagation()},h2=({wrapperProps:e,iconProps:t,dndProps:n,openCollapse:r,KeywordComponent:i,isEditing:a,SplitTextComponent:o,EditingTextViewComponent:s,ActionComponent:l,warning:c,CollapseContent:u})=>A.jsxs(_u,{...e,children:[A.jsxs(Hu,{children:[A.jsx(zu,{...t}),A.jsxs(Nu,{...n,children:[A.jsxs(Lu,{className:r?"open":"",children:[i,a?s:o]}),A.jsx($.Box,{onClick:d2,"data-no-dnd":"true",display:"flex",alignItems:"center",children:l})]}),c]}),A.jsx($.Collapse,{in:r,sx:{ml:3},children:u})]});function p2(e){if(typeof e!="string")return[];const t=[];let n="",r=!1,i=!1,a=0,o=0;for(let s=0;s<e.length;s++){const l=e[s];if(i){n+=l,i=!1,o++;continue}if(l==="\\"){i=!0,n+=l,o++;continue}if(l==='"'){r?(n+=l,t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),n="",r=!1,o++,a=s+1):(n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),n=l,r=!0,a=s+1,o++);continue}n+=l,o++}return n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:Xr(n)}),t}const Xr=e=>e.startsWith('"')&&e.endsWith('"'),x2=["Enter","/","{","}","(",")"],m2=["Given","When","Then"],g2=["Given","When","Then","And","But"];function y2(e){const t=e.split(`
793
798
  `).map(f=>f.trim());let n="",r="";const i=[];let a=[],o=!1;for(const f of t){if(f.startsWith("Feature:")){n=f.replace("Feature:","").trim();continue}if(f.startsWith("Scenario")){r=f.replace(/^Scenario( Outline)?:/,"").trim();continue}if(f.startsWith("#")){i.push({keyword:"#",text:f.slice(1).trim(),type:"comment"});continue}const d=f.match(/^(Given|When|Then|And|But)\s+(.*)$/);if(d){i.push({keyword:d[1],text:d[2],type:"step"});continue}if(f.startsWith("Examples:")){o=!0;continue}if(o&&f.startsWith("|")){const p=f.split("|").slice(1,-1).map(x=>x.trim());a.push(p)}}const s=a[0]??[],c=a.slice(1).map((f,d)=>({datasetId:d,data:s.map((p,x)=>({key:p,value:f[x],allowDeletion:!0,mask:!1}))})),u=i.map((f,d)=>({...f,stepId:`step-${d}`}));return{featureName:n,scenarioName:r,steps:u,params:c}}function v2(e){const{featureName:t,scenarioName:n,steps:r,params:i}=e,a=[],o=" ",s=i&&i.length>0,l=s?"Scenario Outline":"Scenario";a.push(`${l}: ${n}`),a.push("");for(const c of r){if(c.type==="comment"){a.push(`${o}# ${c.text}`);continue}if(c.type==="step"){a.push(`${o}${c.keyword} ${c.text}`);continue}}if(s&&(a.push(""),a.push(`${o}Examples:`),i.length>0)){const c=i[0].data.map(p=>p.key||""),u=i.map(p=>p.data.map(x=>x.value||"")),f=c.map((p,x)=>Math.max(p.length,...u.map(h=>h[x].length))),d=p=>`${o} | `+p.map((x,h)=>x.padEnd(f[h]," ")).join(" | ")+" |";a.push(d(c)),u.forEach(p=>a.push(d(p)))}return a.join(`
794
799
  `)}const es=V.createContext({});function Ri(e){const t=V.useRef(null);return t.current===null&&(t.current=e()),t.current}const ts=typeof window<"u",Wu=ts?V.useLayoutEffect:V.useEffect,ki=V.createContext(null);function ns(e,t){e.indexOf(t)===-1&&e.push(t)}function rs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Mt=(e,t,n)=>n>t?t:n<e?e:n;function lo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let _n=()=>{},_t=()=>{};process.env.NODE_ENV!=="production"&&(_n=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(lo(t,n))},_t=(e,t,n)=>{if(!e)throw new Error(lo(t,n))});const It={},Ku=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Gu(e){return typeof e=="object"&&e!==null}const Yu=e=>/^0[^.\s]+$/u.test(e);function is(e){let t;return()=>(t===void 0&&(t=e()),t)}const st=e=>e,b2=(e,t)=>n=>t(e(n)),Sr=(...e)=>e.reduce(b2),fr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class as{constructor(){this.subscriptions=[]}add(t){return ns(this.subscriptions,t),()=>rs(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mt=e=>e*1e3,ot=e=>e/1e3;function qu(e,t){return t?e*(1e3/t):0}const pc=new Set;function os(e,t,n){e||pc.has(t)||(console.warn(lo(t,n)),pc.add(t))}const Xu=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C2=1e-7,A2=12;function E2(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Xu(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>C2&&++s<A2);return o}function wr(e,t,n,r){if(e===t&&n===r)return st;const i=a=>E2(a,0,1,e,n);return a=>a===0||a===1?a:Xu(i(a),t,r)}const Zu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ju=e=>t=>1-e(1-t),Qu=wr(.33,1.53,.69,.99),ss=Ju(Qu),ef=Zu(ss),tf=e=>(e*=2)<1?.5*ss(e):.5*(2-Math.pow(2,-10*(e-1))),cs=e=>1-Math.sin(Math.acos(e)),nf=Ju(cs),rf=Zu(cs),S2=wr(.42,0,1,1),w2=wr(0,0,.58,1),af=wr(.42,0,.58,1),B2=e=>Array.isArray(e)&&typeof e[0]!="number",of=e=>Array.isArray(e)&&typeof e[0]=="number",xc={linear:st,easeIn:S2,easeInOut:af,easeOut:w2,circIn:cs,circInOut:rf,circOut:nf,backIn:ss,backInOut:ef,backOut:Qu,anticipate:tf},D2=e=>typeof e=="string",mc=e=>{if(of(e)){_t(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return wr(t,n,r,i)}else if(D2(e))return _t(xc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),xc[e];return e},Ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],gc={value:null,addProjectionMetrics:null};function T2(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(f){o.has(f)&&(u.schedule(f),e()),l++,f(s)}const u={schedule:(f,d=!1,p=!1)=>{const h=p&&i?n:r;return d&&o.add(f),h.has(f)||h.add(f),f},cancel:f=>{r.delete(f),o.delete(f)},process:f=>{if(s=f,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t&&gc.value&&gc.value.frameloop[t].push(l),l=0,n.clear(),i=!1,a&&(a=!1,u.process(f))}};return u}const F2=40;function sf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ur.reduce((g,C)=>(g[C]=T2(a,t?C:void 0),g),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:p,postRender:x}=o,h=()=>{const g=It.useManualTiming?i.timestamp:performance.now();n=!1,It.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,F2),1)),i.timestamp=g,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),p.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ur.reduce((g,C)=>{const E=o[C];return g[C]=(S,w=!1,T=!1)=>(n||v(),E.schedule(S,w,T)),g},{}),cancel:g=>{for(let C=0;C<Ur.length;C++)o[Ur[C]].cancel(g)},state:i,steps:o}}const{schedule:Ee,cancel:Ht,state:je,steps:ja}=sf(typeof requestAnimationFrame<"u"?requestAnimationFrame:st,!0);let Zr;function P2(){Zr=void 0}const qe={now:()=>(Zr===void 0&&qe.set(je.isProcessing||It.useManualTiming?je.timestamp:performance.now()),Zr),set:e=>{Zr=e,queueMicrotask(P2)}},cf=e=>t=>typeof t=="string"&&t.startsWith(e),ls=cf("--"),R2=cf("var(--"),us=e=>R2(e)?k2.test(e.split("/*")[0].trim()):!1,k2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,In={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dr={...In,transform:e=>Mt(0,1,e)},Hr={...In,default:1},ir=e=>Math.round(e*1e5)/1e5,fs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function M2(e){return e==null}const _2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ds=(e,t)=>n=>!!(typeof n=="string"&&_2.test(n)&&n.startsWith(e)||t&&!M2(n)&&Object.prototype.hasOwnProperty.call(n,t)),lf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(fs);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},I2=e=>Mt(0,255,e),La={...In,transform:e=>Math.round(I2(e))},tn={test:ds("rgb","red"),parse:lf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+La.transform(e)+", "+La.transform(t)+", "+La.transform(n)+", "+ir(dr.transform(r))+")"};function O2(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const uo={test:ds("#"),parse:O2,transform:tn.transform},Br=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=Br("deg"),wt=Br("%"),ie=Br("px"),N2=Br("vh"),j2=Br("vw"),yc={...wt,parse:e=>wt.parse(e)/100,transform:e=>wt.transform(e*100)},bn={test:ds("hsl","hue"),parse:lf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+wt.transform(ir(t))+", "+wt.transform(ir(n))+", "+ir(dr.transform(r))+")"},_e={test:e=>tn.test(e)||uo.test(e)||bn.test(e),parse:e=>tn.test(e)?tn.parse(e):bn.test(e)?bn.parse(e):uo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tn.transform(e):bn.transform(e),getAnimatableNone:e=>{const t=_e.parse(e);return t.alpha=0,_e.transform(t)}},L2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(fs))==null?void 0:t.length)||0)+(((n=e.match(L2))==null?void 0:n.length)||0)>0}const uf="number",ff="color",$2="var",U2="var(",vc="${}",H2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(H2,l=>(_e.test(l)?(r.color.push(a),i.push(ff),n.push(_e.parse(l))):l.startsWith(U2)?(r.var.push(a),i.push($2),n.push(l)):(r.number.push(a),i.push(uf),n.push(parseFloat(l))),++a,vc)).split(vc);return{values:n,split:s,indexes:r,types:i}}function df(e){return hr(e).values}function hf(e){const{split:t,types:n}=hr(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===uf?a+=ir(i[o]):s===ff?a+=_e.transform(i[o]):a+=i[o]}return a}}const z2=e=>typeof e=="number"?0:_e.test(e)?_e.getAnimatableNone(e):e;function W2(e){const t=df(e);return hf(e)(t.map(z2))}const zt={test:V2,parse:df,createTransformer:hf,getAnimatableNone:W2};function Va(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function K2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Va(l,s,e+1/3),a=Va(l,s,e),o=Va(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function li(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,$a=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},G2=[uo,tn,bn],Y2=e=>G2.find(t=>t.test(e));function bc(e){const t=Y2(e);if(_n(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===bn&&(n=K2(n)),n}const Cc=(e,t)=>{const n=bc(e),r=bc(t);if(!n||!r)return li(e,t);const i={...n};return a=>(i.red=$a(n.red,r.red,a),i.green=$a(n.green,r.green,a),i.blue=$a(n.blue,r.blue,a),i.alpha=we(n.alpha,r.alpha,a),tn.transform(i))},fo=new Set(["none","hidden"]);function q2(e,t){return fo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function X2(e,t){return n=>we(e,t,n)}function hs(e){return typeof e=="number"?X2:typeof e=="string"?us(e)?li:_e.test(e)?Cc:Q2:Array.isArray(e)?pf:typeof e=="object"?_e.test(e)?Cc:Z2:li}function pf(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>hs(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Z2(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=hs(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function J2(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const Q2=(e,t)=>{const n=zt.createTransformer(t),r=hr(e),i=hr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fo.has(e)&&!i.values.length||fo.has(t)&&!r.values.length?q2(e,t):Sr(pf(J2(r,i),i.values),n):(_n(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),li(e,t))};function xf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):hs(e)(e,t)}const ey=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ee.update(t,n),stop:()=>Ht(t),now:()=>je.isProcessing?je.timestamp:qe.now()}},mf=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ui=2e4;function ps(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ui;)t+=n,r=e.next(t);return t>=ui?1/0:t}function ty(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ps(r),ui);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:ot(i)}}const ny=5;function gf(e,t,n){const r=Math.max(t-ny,0);return qu(n-e(r),t-r)}const Se={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ua=.001;function ry({duration:e=Se.duration,bounce:t=Se.bounce,velocity:n=Se.velocity,mass:r=Se.mass}){let i,a;_n(e<=mt(Se.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Mt(Se.minDamping,Se.maxDamping,o),e=Mt(Se.minDuration,Se.maxDuration,ot(e)),o<1?(i=c=>{const u=c*o,f=u*e,d=u-n,p=ho(c,o),x=Math.exp(-f);return Ua-d/p*x},a=c=>{const f=c*o*e,d=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-f),h=ho(Math.pow(c,2),o);return(-i(c)+Ua>0?-1:1)*((d-p)*x)/h}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-Ua+u*f},a=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=ay(i,a,s);if(e=mt(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const iy=12;function ay(e,t,n){let r=n;for(let i=1;i<iy;i++)r=r-e(r)/t(r);return r}function ho(e,t){return e*Math.sqrt(1-t*t)}const oy=["duration","bounce"],sy=["stiffness","damping","mass"];function Ac(e,t){return t.some(n=>e[n]!==void 0)}function cy(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Ac(e,sy)&&Ac(e,oy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Mt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Se.mass,stiffness:i,damping:a}}else{const n=ry(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function fi(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:p}=cy({...n,velocity:-ot(n.velocity||0)}),x=d||0,h=c/(2*Math.sqrt(l*u)),v=o-a,b=ot(Math.sqrt(l/u)),y=Math.abs(v)<5;r||(r=y?Se.restSpeed.granular:Se.restSpeed.default),i||(i=y?Se.restDelta.granular:Se.restDelta.default);let g;if(h<1){const E=ho(b,h);g=S=>{const w=Math.exp(-h*b*S);return o-w*((x+h*b*v)/E*Math.sin(E*S)+v*Math.cos(E*S))}}else if(h===1)g=E=>o-Math.exp(-b*E)*(v+(x+b*v)*E);else{const E=b*Math.sqrt(h*h-1);g=S=>{const w=Math.exp(-h*b*S),T=Math.min(E*S,300);return o-w*((x+h*b*v)*Math.sinh(T)+E*v*Math.cosh(T))/E}}const C={calculatedDuration:p&&f||null,next:E=>{const S=g(E);if(p)s.done=E>=f;else{let w=E===0?x:0;h<1&&(w=E===0?mt(x):gf(g,E,S));const T=Math.abs(w)<=r,k=Math.abs(o-S)<=i;s.done=T&&k}return s.value=s.done?o:S,s},toString:()=>{const E=Math.min(ps(C),ui),S=mf(w=>C.next(E*w).value,E,30);return E+"ms "+S},toTransition:()=>{}};return C}fi.applyToOptions=e=>{const t=ty(e,100,fi);return e.ease=t.ease,e.duration=mt(t.duration),e.type="keyframes",e};function po({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},p=T=>s!==void 0&&T<s||l!==void 0&&T>l,x=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l;let h=n*t;const v=f+h,b=o===void 0?v:o(v);b!==v&&(h=b-f);const y=T=>-h*Math.exp(-T/r),g=T=>b+y(T),C=T=>{const k=y(T),m=g(T);d.done=Math.abs(k)<=c,d.value=d.done?b:m};let E,S;const w=T=>{p(d.value)&&(E=T,S=fi({keyframes:[d.value,x(d.value)],velocity:gf(g,T,d.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:T=>{let k=!1;return!S&&E===void 0&&(k=!0,C(T),w(T)),E!==void 0&&T>=E?S.next(T-E):(!k&&C(T),d)}}}function ly(e,t,n){const r=[],i=n||It.mix||xf,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||st:t;s=Sr(l,s)}r.push(s)}return r}function uy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(_t(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ly(t,r,i),l=s.length,c=u=>{if(o&&u<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=fr(e[f],e[f+1],u);return s[f](d)};return n?u=>c(Mt(e[0],e[a-1],u)):c}function fy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=fr(0,t,r);e.push(we(n,1,i))}}function dy(e){const t=[0];return fy(t,e.length-1),t}function hy(e,t){return e.map(n=>n*t)}function py(e,t){return e.map(()=>t||af).splice(0,e.length-1)}function Cn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=B2(r)?r.map(mc):mc(r),a={done:!1,value:t[0]},o=hy(n&&n.length===t.length?n:dy(t),e),s=uy(o,t,{ease:Array.isArray(i)?i:py(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const xy=e=>e!==null;function xs(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(xy),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const my={decay:po,inertia:po,tween:Cn,keyframes:Cn,spring:fi};function yf(e){typeof e.type=="string"&&(e.type=my[e.type])}class ms{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const gy=e=>e/100;class gs extends ms{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==qe.now()&&this.tick(qe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;yf(t);const{type:n=Cn,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Cn;process.env.NODE_ENV!=="production"&&l!==Cn&&_t(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Cn&&typeof s[0]!="number"&&(this.mixKeyframes=Sr(gy,xf(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ps(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:p,type:x,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,C=r;if(f){const T=Math.min(this.currentTime,i)/s;let k=Math.floor(T),m=T%1;!m&&T>=1&&(m=1),m===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(d==="reverse"?(m=1-m,p&&(m-=p/s)):d==="mirror"&&(C=o)),g=Mt(0,1,m)*s}const E=y?{done:!1,value:u[0]}:C.next(g);a&&(E.value=a(E.value));let{done:S}=E;!y&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return w&&x!==po&&(E.value=xs(u,this.options,v,this.speed)),h&&h(E.value),w&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return ot(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ot(t)}get time(){return ot(this.currentTime)}set time(t){var n;t=mt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(qe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ot(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=ey,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(qe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function yy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nn=e=>e*180/Math.PI,xo=e=>{const t=nn(Math.atan2(e[1],e[0]));return mo(t)},vy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xo,rotateZ:xo,skewX:e=>nn(Math.atan(e[1])),skewY:e=>nn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mo=e=>(e=e%360,e<0&&(e+=360),e),Ec=xo,Sc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),by={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sc,scaleY:wc,scale:e=>(Sc(e)+wc(e))/2,rotateX:e=>mo(nn(Math.atan2(e[6],e[5]))),rotateY:e=>mo(nn(Math.atan2(-e[2],e[0]))),rotateZ:Ec,rotate:Ec,skewX:e=>nn(Math.atan(e[4])),skewY:e=>nn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function go(e){return e.includes("scale")?1:0}function yo(e,t){if(!e||e==="none")return go(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=by,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vy,i=s}if(!i)return go(t);const a=r[t],o=i[1].split(",").map(Ay);return typeof a=="function"?a(o):o[a]}const Cy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return yo(n,t)};function Ay(e){return parseFloat(e.trim())}const On=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(On),Bc=e=>e===In||e===ie,Ey=new Set(["x","y","z"]),Sy=On.filter(e=>!Ey.has(e));function wy(e){const t=[];return Sy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const an={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>yo(t,"x"),y:(e,{transform:t})=>yo(t,"y")};an.translateX=an.x;an.translateY=an.y;const on=new Set;let vo=!1,bo=!1,Co=!1;function vf(){if(bo){const e=Array.from(on).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=wy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}bo=!1,vo=!1,on.forEach(e=>e.complete(Co)),on.clear()}function bf(){on.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bo=!0)})}function By(){Co=!0,bf(),vf(),Co=!1}class ys{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(on.add(this),vo||(vo=!0,Ee.read(bf),Ee.resolveKeyframes(vf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}yy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),on.delete(this)}cancel(){this.state==="scheduled"&&(on.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Dy=e=>e.startsWith("--");function Ty(e,t,n){Dy(t)?e.style.setProperty(t,n):e.style[t]=n}const Fy=is(()=>window.ScrollTimeline!==void 0),Py={};function Ry(e,t){const n=is(e);return()=>Py[t]??n()}const Cf=Ry(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function Af(e,t){if(e)return typeof e=="function"?Cf()?mf(e,t):"ease-out":of(e)?nr(e):Array.isArray(e)?e.map(n=>Af(n,t)||Dc.easeOut):Dc[e]}function ky(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const f=Af(s,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}function Ef(e){return typeof e=="function"&&"applyToOptions"in e}function My({type:e,...t}){return Ef(e)&&Cf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _y extends ms{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,_t(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=My(t);this.animation=ky(n,r,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=xs(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ty(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ot(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ot(t)}get time(){return ot(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=mt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Fy()?(this.animation.timeline=t,st):n(this)}}const Sf={anticipate:tf,backInOut:ef,circInOut:rf};function Iy(e){return e in Sf}function Oy(e){typeof e.ease=="string"&&Iy(e.ease)&&(e.ease=Sf[e.ease])}const Tc=10;class Ny extends _y{constructor(t){Oy(t),yf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new gs({...o,autoplay:!1}),l=mt(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Tc).value,s.sample(l).value,Tc),s.stop()}}const Fc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zt.test(e)||e==="0")&&!e.startsWith("url("));function jy(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ly(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=Fc(i,t),s=Fc(a,t);return _n(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:jy(e)||(n==="spring"||Ef(n))&&r}function Ao(e){e.duration=0,e.type="keyframes"}const Vy=new Set(["opacity","clipPath","filter","transform"]),$y=is(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Uy(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return $y()&&n&&Vy.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Hy=40;class zy extends ms{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:c,element:u,...f}){var x;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=qe.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:u,...f},p=(u==null?void 0:u.KeyframeResolver)||ys;this.keyframeResolver=new p(s,(h,v,b)=>this.onKeyframesResolved(h,v,d,!b),l,c,u),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=qe.now(),Ly(t,a,o,s)||((It.instantAnimations||!l)&&(u==null||u(xs(t,r,n))),t[0]=t[t.length-1],Ao(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Hy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Uy(d)?new Ny({...d,element:d.motionValue.owner.current}):new gs(d);p.finished.then(()=>this.notifyFinished()).catch(st),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),By()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Wy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ky(e){const t=Wy.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Gy=4;function wf(e,t,n=1){_t(n<=Gy,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Ky(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return Ku(o)?parseFloat(o):o}return us(i)?wf(i,t,n+1):i}function vs(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Bf=new Set(["width","height","top","left","right","bottom",...On]),Yy={test:e=>e==="auto",parse:e=>e},Df=e=>t=>t.test(e),Tf=[In,ie,wt,Lt,j2,N2,Yy],Pc=e=>Tf.find(Df(e));function qy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Yu(e):!0}const Xy=new Set(["brightness","contrast","saturate","opacity"]);function Zy(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fs)||[];if(!r)return e;const i=n.replace(r,"");let a=Xy.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Jy=/\b([a-z-]*)\(.*?\)/gu,Eo={...zt,getAnimatableNone:e=>{const t=e.match(Jy);return t?t.map(Zy).join(" "):e}},Rc={...In,transform:Math.round},Qy={rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:Hr,scaleX:Hr,scaleY:Hr,scaleZ:Hr,skew:Lt,skewX:Lt,skewY:Lt,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:dr,originX:yc,originY:yc,originZ:ie},bs={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie,...Qy,zIndex:Rc,fillOpacity:dr,strokeOpacity:dr,numOctaves:Rc},ev={...bs,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:Eo,WebkitFilter:Eo},Ff=e=>ev[e];function Pf(e,t){let n=Ff(e);return n!==Eo&&(n=zt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const tv=new Set(["auto","none","0"]);function nv(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!tv.has(a)&&hr(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Pf(n,i)}class rv extends ys{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),us(c))){const u=wf(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Bf.has(r)||t.length!==2)return;const[i,a]=t,o=Pc(i),s=Pc(a);if(o!==s)if(Bc(o)&&Bc(s))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else an[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||qy(t[i]))&&r.push(i);r.length&&nv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=an[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=an[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function iv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Rf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function kf(e){return Gu(e)&&"offsetHeight"in e}const kc=30,av=e=>!isNaN(parseFloat(e));class ov{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=qe.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=av(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&os(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new as);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=qe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>kc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,kc);return qu(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cn(e,t){return new ov(e,t)}const{schedule:Cs,cancel:b6}=sf(queueMicrotask,!1),pt={x:!1,y:!1};function Mf(){return pt.x||pt.y}function sv(e){return e==="x"||e==="y"?pt[e]?null:(pt[e]=!0,()=>{pt[e]=!1}):pt.x||pt.y?null:(pt.x=pt.y=!0,()=>{pt.x=pt.y=!1})}function _f(e,t){const n=iv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Mc(e){return!(e.pointerType==="touch"||Mf())}function cv(e,t,n={}){const[r,i,a]=_f(e,n),o=s=>{if(!Mc(s))return;const{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;const u=f=>{Mc(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const If=(e,t)=>t?e===t?!0:If(e,t.parentElement):!1,As=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uv(e){return lv.has(e.tagName)||e.tabIndex!==-1}const Jr=new WeakSet;function _c(e){return t=>{t.key==="Enter"&&e(t)}}function Ha(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_c(()=>{if(Jr.has(n))return;Ha(n,"down");const i=_c(()=>{Ha(n,"up")}),a=()=>Ha(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ic(e){return As(e)&&!Mf()}function dv(e,t,n={}){const[r,i,a]=_f(e,n),o=s=>{const l=s.currentTarget;if(!Ic(s))return;Jr.add(l);const c=t(l,s),u=(p,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Jr.has(l)&&Jr.delete(l),Ic(p)&&typeof c=="function"&&c(p,{success:x})},f=p=>{u(p,l===window||l===document||n.useGlobalTarget||If(l,p.target))},d=p=>{u(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),kf(s)&&(s.addEventListener("focus",c=>fv(c,i)),!uv(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function Of(e){return Gu(e)&&"ownerSVGElement"in e}function hv(e){return Of(e)&&e.tagName==="svg"}const ze=e=>!!(e&&e.getVelocity),pv=[...Tf,_e,zt],xv=e=>pv.find(Df(e)),Mi=V.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Oc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mv(...e){return t=>{let n=!1;const r=e.map(i=>{const a=Oc(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Oc(e[i],null)}}}}function gv(...e){return Pe.useCallback(mv(...e),e)}class yv extends Pe.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=kf(r)&&r.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function vv({children:e,isPresent:t,anchorX:n,root:r}){const i=V.useId(),a=V.useRef(null),o=V.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=V.useContext(Mi),l=gv(a,e==null?void 0:e.ref);return V.useInsertionEffect(()=>{const{width:c,height:u,top:f,left:d,right:p}=o.current;if(t||!a.current||!c||!u)return;const x=n==="left"?`left: ${d}`:`right: ${p}`;a.current.dataset.motionPopId=i;const h=document.createElement("style");s&&(h.nonce=s);const v=r??document.head;return v.appendChild(h),h.sheet&&h.sheet.insertRule(`
795
800
  [data-motion-pop-id="${i}"] {
package/dist/index.mjs CHANGED
@@ -3058,7 +3058,7 @@ const x1 = K(kd)`
3058
3058
  border: 1px solid var(--color-grey-40);
3059
3059
  background: var(--color-white);
3060
3060
  box-shadow: var(--shadow-lg);
3061
- width: ${({ width: e }) => e || "inherit"};;
3061
+ width: ${({ width: e }) => e || "inherit"};
3062
3062
  min-width: ${({ minWidth: e }) => e || "100px"};
3063
3063
  .MuiMenu-list {
3064
3064
  padding: 0;
@@ -3089,6 +3089,9 @@ const x1 = K(kd)`
3089
3089
  pointer-events: none;
3090
3090
  }
3091
3091
  }
3092
+ &:hover {
3093
+ background: var(--color-grey-20);
3094
+ }
3092
3095
  `;
3093
3096
  function g1({
3094
3097
  items: e,
@@ -7083,14 +7086,15 @@ function Zm({ expanded: e, title: t, onChange: n, details: r }) {
7083
7086
  }
7084
7087
  const Jm = K.div`
7085
7088
  border-radius: 0 0 10px 10px;
7086
- border-top: ${({ isMainApp: e }) => e ? "0" : "1px"} solid var(--color-grey-60);
7089
+ border-top: ${({ isMainApp: e }) => e ? "0" : "1px"} solid
7090
+ var(--color-grey-60);
7087
7091
  display: flex;
7088
7092
  flex-direction: column;
7089
7093
  width: 100%;
7090
7094
  padding: 0px;
7091
7095
  justify-content: space-between;
7092
7096
  .MuiPaper-root {
7093
- height: 100%;
7097
+ height: ${({ isMainApp: e }) => e ? "100%" : "30px"};
7094
7098
  &.Mui-expanded {
7095
7099
  margin: 0;
7096
7100
  .MuiCollapse-root {
@@ -7111,7 +7115,7 @@ const Jm = K.div`
7111
7115
  `, eg = K(q)`
7112
7116
  display: flex;
7113
7117
  flex-direction: column;
7114
- max-height: calc(100% - 60px);
7118
+ max-height: ${({ isMainApp: e }) => e ? "calc(100% - 60px)" : "calc(100% - 30px)"};
7115
7119
  overflow: auto;
7116
7120
  gap: 6px;
7117
7121
  padding: 4px;
@@ -7179,7 +7183,7 @@ const Jm = K.div`
7179
7183
  addOptionLabel: "Add Data Set",
7180
7184
  showDeleteIcon: !o,
7181
7185
  showAddOption: !o,
7182
- width: "180px",
7186
+ width: "200px",
7183
7187
  ...a,
7184
7188
  disabled: o,
7185
7189
  id: "data-set-select-scenario"
@@ -7189,7 +7193,7 @@ const Jm = K.div`
7189
7193
  /* @__PURE__ */ A.jsx(Rn, { size: 6, children: /* @__PURE__ */ A.jsx(ve, { value: "Parameters", size: "xs", color: "var(--color-grey-90)" }) }),
7190
7194
  /* @__PURE__ */ A.jsx(Rn, { size: 6, children: /* @__PURE__ */ A.jsx(ve, { value: "Values", size: "xs", color: "var(--color-grey-90)" }) })
7191
7195
  ] }) }),
7192
- /* @__PURE__ */ A.jsx(eg, { children: t.map((l, c) => /* @__PURE__ */ A.jsx(A.Fragment, { children: /* @__PURE__ */ A.jsx(
7196
+ /* @__PURE__ */ A.jsx(eg, { isMainApp: s, children: t.map((l, c) => /* @__PURE__ */ A.jsx(A.Fragment, { children: /* @__PURE__ */ A.jsx(
7193
7197
  sg,
7194
7198
  {
7195
7199
  ...l,
@@ -13132,15 +13136,16 @@ const N6 = K(q)`
13132
13136
  }
13133
13137
  `, f2 = K.section`
13134
13138
  display: flex;
13139
+ flex-direction: column;
13135
13140
  transform: ${({ transform: e }) => e};
13136
13141
  transition: ${({ transition: e }) => e};
13137
- padding: 1px;
13142
+ padding: 1px 4px;
13138
13143
  &:hover {
13139
- background: var(--secondary-lightest);
13144
+ background: var(--secondary-light);
13140
13145
  border-radius: 6px;
13141
13146
  }
13142
13147
  &.active-step {
13143
- background: var(--primary-lightest);
13148
+ background: var(--color-primary-20);
13144
13149
  border-radius: 6px;
13145
13150
  }
13146
13151
  `, d2 = K.section`
@@ -13170,7 +13175,7 @@ const N6 = K(q)`
13170
13175
  display: flex;
13171
13176
  flex-direction: column;
13172
13177
  list-style: none;
13173
- gap: 4px;
13178
+ gap: 2px;
13174
13179
  margin-top: 4px;
13175
13180
  `, H6 = K(q)`
13176
13181
  --opacity: 0;
@@ -13178,17 +13183,15 @@ const N6 = K(q)`
13178
13183
  --dots-display: none;
13179
13184
  transition: all 0.2s ease;
13180
13185
  opacity: ${({ isDragging: e }) => e ? 0.4 : 1};
13181
- background-color: ${({ isDragging: e }) => e ? "var(--secondary-light)" : ""};
13182
- padding: 2px;
13186
+ background-color: ${({ isDragging: e }) => e ? "var(--secondary-light)" : "var(--color-grey-30)"};
13187
+ padding: 0px;
13183
13188
  &:hover {
13184
13189
  --opacity: 1;
13185
13190
  --badge-display: none;
13186
13191
  --dots-display: flex;
13187
13192
  }
13188
13193
  border-radius: 10px;
13189
- &:hover {
13190
- background-color: var(--secondary-lightest);
13191
- }
13194
+
13192
13195
  `, z6 = K.section`
13193
13196
  display: flex;
13194
13197
  align-items: center;
@@ -13207,7 +13210,7 @@ const N6 = K(q)`
13207
13210
  padding-left: 5px;
13208
13211
  `, x2 = K(q)`
13209
13212
  display: flex;
13210
- padding: 0 4px 0px 8px;
13213
+ padding: 0px 4px;
13211
13214
  justify-content: flex-start;
13212
13215
  align-items: center;
13213
13216
  gap: 4px;
@@ -13245,7 +13248,7 @@ const N6 = K(q)`
13245
13248
  overflow: hidden;
13246
13249
  text-overflow: ellipsis;
13247
13250
  cursor: pointer;
13248
- line-height: 20px;
13251
+ line-height: 16px;
13249
13252
  span {
13250
13253
  display: inline;
13251
13254
  margin: 0;
@@ -13363,7 +13366,9 @@ const N6 = K(q)`
13363
13366
  background: var(--color-primary-100); /* dot color */
13364
13367
  }
13365
13368
  `, b2 = K(q)`
13366
- width: 100%;
13369
+ width: 100%;
13370
+ display:flex;
13371
+ align-items: baseline;
13367
13372
  .menu-icon {
13368
13373
  padding: 0;
13369
13374
  opacity: 0;
@@ -13543,18 +13548,18 @@ const N6 = K(q)`
13543
13548
  warning: c,
13544
13549
  CollapseContent: u
13545
13550
  }) => /* @__PURE__ */ A.jsxs(f2, { ...e, children: [
13546
- /* @__PURE__ */ A.jsx(C2, { ...t }),
13547
13551
  /* @__PURE__ */ A.jsxs(b2, { children: [
13552
+ /* @__PURE__ */ A.jsx(C2, { ...t }),
13548
13553
  /* @__PURE__ */ A.jsxs(p2, { ...n, children: [
13549
13554
  /* @__PURE__ */ A.jsxs(m2, { className: r ? "open" : "", children: [
13550
13555
  i,
13551
13556
  a ? s : o
13552
13557
  ] }),
13553
- /* @__PURE__ */ A.jsx(q, { onClick: A2, "data-no-dnd": "true", display: "flex", alignItems: "start", children: l })
13558
+ /* @__PURE__ */ A.jsx(q, { onClick: A2, "data-no-dnd": "true", display: "flex", alignItems: "center", children: l })
13554
13559
  ] }),
13555
- c,
13556
- /* @__PURE__ */ A.jsx(Gd, { in: r, children: u })
13557
- ] })
13560
+ c
13561
+ ] }),
13562
+ /* @__PURE__ */ A.jsx(Gd, { in: r, sx: { ml: 3 }, children: u })
13558
13563
  ] });
13559
13564
  function l3(e) {
13560
13565
  if (typeof e != "string") return [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dev-blinq/ui-systems",
3
3
  "description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
4
- "version": "1.0.126",
4
+ "version": "1.0.127",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",