1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2269],{35:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82626);function i(e){return function t(r){return 0==arguments.length||(0,n.A)(r)?t:e.apply(this,arguments)}}},148:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixBeetFromValue=t.fixBeetFromData=void 0;let n=r(5162),i=r(21838);t.fixBeetFromData=function(e,t,r){if((0,n.isFixedSizeBeet)(e))return e;if((0,n.isFixableBeet)(e))return e.toFixedFromData(t,r);throw new i.UnreachableCaseError(e)},t.fixBeetFromValue=function(e,t){if((0,n.isFixedSizeBeet)(e))return e;if((0,n.isFixableBeet)(e))return e.toFixedFromValue(t);throw new i.UnreachableCaseError(e)}},150:(e,t,r)=>{"use strict";r.d(t,{c:()=>k});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=(e,t,r)=>{let i,o=n[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i};var o=r(73904);let a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,o.k)({formats:a,defaultWidth:"full"}),time:(0,o.k)({formats:s,defaultWidth:"full"}),dateTime:(0,o.k)({formats:l,defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d=(e,t,r,n)=>c[e];var f=r(71102);let h={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},g={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},m={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},y={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},E={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},b={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,f.o)({values:h,defaultWidth:"wide"}),quarter:(0,f.o)({values:p,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,f.o)({values:g,defaultWidth:"wide"}),day:(0,f.o)({values:m,defaultWidth:"wide"}),dayPeriod:(0,f.o)({values:y,defaultWidth:"wide",formattingValues:E,defaultFormattingWidth:"wide"})};var v=r(2932),T=r(87680);let w=/^(\d+)(th|st|nd|rd)?/i,A=/\d+/i,N={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},S={any:[/^b/i,/^(a|c)/i]},_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x={any:[/1/i,/2/i,/3/i,/4/i]},I={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},O={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},R={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},P={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},M={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},k={code:"en-US",formatDistance:i,formatLong:u,formatRelative:d,localize:b,match:{ordinalNumber:(0,T.K)({matchPattern:w,parsePattern:A,valueCallback:e=>parseInt(e,10)}),era:(0,v.A)({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),quarter:(0,v.A)({matchPatterns:_,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,v.A)({matchPatterns:I,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"any"}),day:(0,v.A)({matchPatterns:R,defaultMatchWidth:"wide",parsePatterns:P,defaultParseWidth:"any"}),dayPeriod:(0,v.A)({matchPatterns:M,defaultMatchWidth:"any",parsePatterns:C,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},782:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(6816);function i(e,t){return+(0,n.a)(e)<+(0,n.a)(t)}},1481:(e,t,r)=>{"use strict";r.d(t,{CC:()=>Q,Q6:()=>Z,bL:()=>J,zi:()=>ee});var n=r(13741),i=r(8486),o=r(17980),a=r(85207),s=r(25721),l=r(18296),u=r(34864),c=r(96456),d=r(55848),f=r(9227),h=r(13050),p=r(42073),g=["PageUp","PageDown"],m=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]}
1,E="Slider",[b,v,T]=(0,h.N)(E),[w,A]=(0,s.A)(E,[T]),[N,S]=w(E),_=n.forwardRef((e,t)=>{let{name:r,min:a=0,max:s=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:h=[a],value:y,onValueChange:E=()=>{},onValueCommit:v=()=>{},inverted:T=!1,form:w,...A}=e,S=n.useRef(new Set),_=n.useRef(0),x="horizontal"===c?O:R,[I=[],P]=(0,l.i)({prop:y,defaultProp:h,onChange:e=>{var t;null==(t=[...S.current][_.current])||t.focus(),E(e)}}),M=n.useRef(I);function C(e){let t=K(I,e);D(e,t)}function k(e){D(e,_.current)}function L(){let e=M.current[_.current];I[_.current]!==e&&v(I)}function D(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=$(u),o=X(Math.round((e-a)/u)*u+a,n),l=(0,i.q)(o,[a,s]);P(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=j(e,l,t);if(!q(n,f*u))return e;{_.current=n.indexOf(l);let t=String(n)!==String(e);return t&&r&&v(n),t?n:e}})}return(0,p.jsx)(N,{scope:e.__scopeSlider,name:r,disabled:d,min:a,max:s,valueIndexToChangeRef:_,thumbs:S.current,values:I,orientation:c,form:w,children:(0,p.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(x,{"aria-disabled":d,"data-disabled":d?"":void 0,...A,ref:t,onPointerDown:(0,o.mK)(A.onPointerDown,()=>{d||(M.current=I)}),min:a,max:s,inverted:T,onSlideStart:d?void 0:C,onSlideMove:d?void 0:k,onSlideEnd:d?void 0:L,onHomeKeyDown:()=>!d&&D(a,0,{commit:!0}),onEndKeyDown:()=>!d&&D(s,I.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!d){let e=g.includes(t.key)||t.shiftKey&&m.includes(t.key)?10:1,n=_.current;D(I[n]+u*e*r,n,{commit:!0})}}})})})})});_.displayName=E;var[x,I]=w(E,{startEdge:"left",endEdge:"right",size:"width",direction:1}),O=n.forwardRef((e,t)=>{let{min:r,max:i,dir:o,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...h}=e,[g,m]=n.useState(null),E=(0,a.s)(t,e=>m(e)),b=n.useRef(void 0),v=(0,u.jH)(o),T="ltr"===v,w=T&&!s||!T&&s;function A(e){let t=b.current||g.getBoundingClientRect(),n=Y([0,t.width],w?[r,i]:[i,r]);return b.current=t,n(e-t.left)}return(0,p.jsx)(x,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:(0,p.jsx)(P,{dir:v,"data-orientation":"horizontal",...h,ref:E,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=A(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=A(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=y[w?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),R=n.forwardRef((e,t)=>{let{min:r,max:i,inverted:o,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=n.useRef(null),h=(0,a.s)(t,f),g=n.useRef(void 0),m=!o;function E(e){let t=g.current||f.current.getBoundingClientRect(),n=Y([0,t.height],m?[i,r]:[r,i]);return g.current=t,n(e-t.top)}return(0,p.jsx)(x,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,p.jsx)(P,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=E(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=E(e.clientY);null==l||l(t)},onSlideEnd:()=>{g.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=y[m?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),P=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...c}=e,d=S(E,r);return(0,p.jsx)(f.sG.span,{...c,ref:t,onKeyDown:(0,o.mK)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):g.concat(m).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,o.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),M="SliderTrack",C=n.forwardRef((e,t)=>
1{let{__scopeSlider:r,...n}=e,i=S(M,r);return(0,p.jsx)(f.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:t})});C.displayName=M;var k="SliderRange",L=n.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,o=S(k,r),s=I(k,r),l=n.useRef(null),u=(0,a.s)(t,l),c=o.values.length,d=o.values.map(e=>H(e,o.min,o.max)),h=c>1?Math.min(...d):0,g=100-Math.max(...d);return(0,p.jsx)(f.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:u,style:{...e.style,[s.startEdge]:h+"%",[s.endEdge]:g+"%"}})});L.displayName=k;var D="SliderThumb",B=n.forwardRef((e,t)=>{let r=v(e.__scopeSlider),[i,o]=n.useState(null),s=(0,a.s)(t,e=>o(e)),l=n.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,p.jsx)(V,{...e,ref:s,index:l})}),V=n.forwardRef((e,t)=>{let{__scopeSlider:r,index:i,name:s,...l}=e,u=S(D,r),c=I(D,r),[h,g]=n.useState(null),m=(0,a.s)(t,e=>g(e)),y=!h||u.form||!!h.closest("form"),E=(0,d.X)(h),v=u.values[i],T=void 0===v?0:H(v,u.min,u.max),w=G(i,u.values.length),A=null==E?void 0:E[c.size],N=A?z(A,T,c.direction):0;return n.useEffect(()=>{if(h)return u.thumbs.add(h),()=>{u.thumbs.delete(h)}},[h,u.thumbs]),(0,p.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(T,"% + ").concat(N,"px)")},children:[(0,p.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,p.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||w,"aria-valuemin":u.min,"aria-valuenow":v,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...l,ref:m,style:void 0===v?{display:"none"}:e.style,onFocus:(0,o.mK)(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),y&&(0,p.jsx)(U,{name:null!=s?s:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:v},i)]})});B.displayName=D;var F="RadioBubbleInput",U=n.forwardRef((e,t)=>{let{__scopeSlider:r,value:i,...o}=e,s=n.useRef(null),l=(0,a.s)(s,t),u=(0,c.Z)(i);return n.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==i&&t){let r=new Event("input",{bubbles:!0});t.call(e,i),e.dispatchEvent(r)}},[u,i]),(0,p.jsx)(f.sG.input,{style:{display:"none"},...o,ref:l,defaultValue:i})});function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}function H(e,t,r){let n=100/(r-t)*(e-t);return(0,i.q)(n,[0,100])}function G(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}function K(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}function z(e,t,r){let n=e/2,i=Y([0,50],[0,n]);return(n-i(t)*r)*r}function W(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function q(e,t){return!(t>0)||Math.min(...W(e))>=t}function Y(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function $(e){return(String(e).split(".")[1]||"").length}function X(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}U.displayName=F;var J=_,Q=C,Z=L,ee=B},1561:e=>{"use strict";e.exports=Math.round},1766:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},1784:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(19260).A)(0)},1819:(e,t,r)=>{var n=r(68910);e.exports=function(){return n.Date.now()}},2001:(e,t,r)=>{"use strict";var n=r(49524).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},2932:(e,t,r)=>{"use strict";function n(e){return function(t){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=t.match(s);if(!l)return null;let u=l[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?o(c,e=>e.test(u)):i(c,e=>e.test(u));return r=e.valueCallback?e.valueCallback(d):d,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(u.length)}}}function i(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function o(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}r.d(t,{A:()=>n})},2937:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(6816);function i(e,t){let r=(0,n.a)(e),i=(0,n.a)(t);return r.getTime()>i.getTime()}},3014:(e,t,r)=>{"use strict";var n=r(69606),i=r(88819),o=r(79509),a=r(39515);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function E(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function v(e){return"[object WeakSet]"===c(e)}function T(e){return"[object ArrayBuffer]"===c(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(T.working?T(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===c(e)}
1function N(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||N(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},E.working="undefined"!=typeof Set&&E(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(E.working?E(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(e){return v(e)},T.working="undefined"!=typeof ArrayBuffer&&T(new ArrayBuffer),t.isArrayBuffer=w,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=N;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===c(e)}function x(e){return void 0!==S&&(void 0===_.working&&(_.working=_(new S)),_.working?_(e):e instanceof S)}function I(e){return m(e,d)}function O(e){return m(e,f)}function R(e){return m(e,h)}function P(e){return l&&m(e,p)}function M(e){return u&&m(e,g)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=I,t.isStringObject=O,t.isBooleanObject=R,t.isBigIntObject=P,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return I(e)||O(e)||R(e)||P(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},3697:(e,t,r)=>{"use strict";r.d(t,{$:()=>s});var n=r(20441),i=r(60133),o=r(7160);function a(e,t){return{address:(0,n.b)(e),storageKeys:t.map((e,t)=>((0,i.MR)((0,o.Lo)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}function s(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,i.MR)(2===t.length,"invalid slot set",`value[${r}]`,t),a(t[0],t[1])):((0,i.MR)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),a(t.address,t.storageKeys)));(0,i.MR)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return a(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},3797:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},4006:(e,t,r)=>{"use strict";var n=r(52877),i=r(55106),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},4222:(e,t,r)=>{"use strict";var n=r(78487);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},4952:(e,t,r)=>{"use strict";var n=r(3797);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},5003:(e,t,r)=>{var n=r(32095),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},5162:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isElementCollectionFixedSizeBeet=t.isFixableBeet=t.assertFixedSizeBeet=t.isFixedSizeBeet=t.BEET_TYPE_ARG_INNER=t.BEET_TYPE_ARG_LEN=t.BEET_PACKAGE=void 0;let n=r(95585);function i(e){return Object.keys(e).includes("byteSize")}t.BEET_PACKAGE="@metaplex-foundation/beet",t.BEET_TYPE_ARG_LEN="len",t.BEET_TYPE_ARG_INNER="Beet<{innner}>",t.isFixedSizeBeet=i,t.assertFixedSizeBeet=function(e,t=`${e} should have been a fixed beet`){(0,n.strict)(i(e),t)},t.isFixableBeet=function(e){return"function"==typeof e.toFixedFromData&&"function"==typeof e.toFixedFromValue},t.isElementCollectionFixedSizeBeet=function(e){let t=Object.keys(e);return t.includes("length")&&t.includes("elementByteSize")&&t.includes("lenPrefixByteSize")}},5207:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(8766),i=r(92725),o=r(19260);let a=(0,n.A)(function(e,t){if(null!=t)return(0,i.A)(e)?(0,o.A)(e,t):t[e]})},5243:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(8766).A)(function(e,t){for(var r={},n={},i=0,o=e.length;i<o;)n[e[i]]=1,i+=1;for(var a in t)n.hasOwnProperty(a)||(r[a]=t[a]);return r})},5521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unitTypeMap=t.unit=void 0;let n=r(5162);t.unit={write:function(e,t,r){},read:function(e,t){},byteSize:0,description:"unit"},t.unitTypeMap={unit:{beet:"unit",isFixable:!1,sourcePack:n.BEET_PACKAGE,ts:"void"}}},6061:(e,t,r)=>{"use strict";r.d(t,{H4:()=>x,_V:()=>_,bL:()=>S});var n=r(13741),i=r(42073);function o(e,t=[]){let r=[];function s(t,o){let a=n.createContext(o);a.displayName=t+"Context";let s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]}let l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[s,a(l,...t)]}function a(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var s=r(73456),l=r(5772),u=r(58476),c=r(54911);function d(){return(0,c.useSyncExternalStore)(f,()=>!0,()=>!1)}function f(){return()=>{}}var h="Avatar",[p,g]=o(h),[m,y]=p(h),E=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...o}=e,[a,s]=n.useState("idle");return(0,i.jsx)(m,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:(0,i.jsx)(u.sG.span,{...o,ref:t})})});E.displayName=h;var b="AvatarImage",v=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,c=y(b,r),d=N(n,a),f=(0,s.c)(e=>{o(e),c.onImageLoadingStatusChange(e)});return(0,l.N)(()=>{"idle"!==d&&f(d)},[d,f]),"loaded"===d?(0,i.jsx)(u.sG.img,{...a,ref:t,src:n}):null});v.displayName=b;var T="AvatarFallback",w=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:o,...a}=e,s=y(T,r),[l,c]=n.useState(void 0===o);return n.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(e)}},[o]),l&&"loaded"!==s.imageLoadingStatus?(0,i.jsx)(u.sG.span,{...a,ref:t}):null});function A(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function N(e,t){let{referrerPolicy:r,crossOrigin:i}=t,o=d(),a=n.useRef(null),s=o?(a.current||(a.current=new window.Image),a.current):null,[u,c]=n.useState(()=>A(s,e));return(0,l.N)(()=>{c(A(s,e))},[s,e]),(0,l.N)(()=>{let e=e=>()=>{c(e)};if(!s)return;let t=e("loaded"),n=e("error");return s.addEventListener("load",t),s.addEventListener("error",n),r&&(s.referrerPolicy=r),"string"==typeof i&&(s.crossOrigin=i),()=>{s.removeEventListener("load",t),s.removeEventListener("error",n)}},[s,i,r]),u}w.displayName=T;var S=E,_=v,x=w},6407:(e,t,r)=>{"use strict";r.d(t,{In:()=>ej,JU:()=>eW,LM:()=>eK,PP:()=>eX,UC:()=>eG,VF:()=>e$,WT:()=>eU,YJ:()=>ez,ZL:()=>eH,bL:()=>eV,eb:()=>eb,h:()=>eT,l9:()=>eF,p4:()=>eY,q7:()=>eq,wn:()=>eJ,wv:()=>eQ});var n=r(13741),i=r(93088),o=r(8486),a=r(17980),s=r(13050),l=r(85207),u=r(25721),c=r(34864),d=r(63466),f=r(88686),h=r(2528),p=r(99652),g=r(59022),m=r(73258),y=r(9227),E=r(82959),b=r(73456),v=r(18296),T=r(5772),w=r(96456),A=r(68800),N=r(42432),S=r(25906),_=r(42073),x=[" ","Enter","ArrowUp","ArrowDown"],I=[" ","Enter"],O="Select",[R,P,M]=(0,s.N)(O),[C,
1k]=(0,u.A)(O,[M,g.Bk]),L=(0,g.Bk)(),[D,B]=C(O),[V,F]=C(O),U=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:m,required:y,form:E}=e,b=L(t),[T,w]=n.useState(null),[A,N]=n.useState(null),[S,x]=n.useState(!1),I=(0,c.jH)(d),[P,M]=(0,v.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:O}),[C,k]=(0,v.i)({prop:s,defaultProp:l,onChange:u,caller:O}),B=n.useRef(null),F=!T||E||!!T.closest("form"),[U,j]=n.useState(new Set),H=Array.from(U).map(e=>e.props.value).join(";");return(0,_.jsx)(g.bL,{...b,children:(0,_.jsxs)(D,{required:y,scope:t,trigger:T,onTriggerChange:w,valueNode:A,onValueNodeChange:N,valueNodeHasChildren:S,onValueNodeHasChildrenChange:x,contentId:(0,p.B)(),value:C,onValueChange:k,open:P,onOpenChange:M,dir:I,triggerPointerDownPosRef:B,disabled:m,children:[(0,_.jsx)(R.Provider,{scope:t,children:(0,_.jsx)(V,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{j(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{j(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),F?(0,_.jsxs)(eC,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:h,value:C,onChange:e=>k(e.target.value),disabled:m,form:E,children:[void 0===C?(0,_.jsx)("option",{value:""}):null,Array.from(U)]},H):null]})})};U.displayName=O;var j="SelectTrigger",H=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:i=!1,...o}=e,s=L(r),u=B(j,r),c=u.disabled||i,d=(0,l.s)(t,u.onTriggerChange),f=P(r),h=n.useRef("touch"),[p,m,E]=eL(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eD(t,e,r);void 0!==n&&u.onValueChange(n.value)}),b=e=>{c||(u.onOpenChange(!0),E()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,_.jsx)(g.Mz,{asChild:!0,...s,children:(0,_.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ek(u.value)?"":void 0,...o,ref:d,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&b(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&x.includes(e.key)&&(b(),e.preventDefault())})})})});H.displayName=j;var G="SelectValue",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,u=B(G,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,f=(0,l.s)(t,u.onValueNodeChange);return(0,T.N)(()=>{c(d)},[c,d]),(0,_.jsx)(y.sG.span,{...s,ref:f,style:{pointerEvents:"none"},children:ek(u.value)?(0,_.jsx)(_.Fragment,{children:a}):o})});K.displayName=G;var z="SelectIcon",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,_.jsx)(y.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});W.displayName=z;var q=e=>(0,_.jsx)(m.Z,{asChild:!0,...e});q.displayName="SelectPortal";var Y="SelectContent",$=n.forwardRef((e,t)=>{let r=B(Y,e.__scopeSelect),[o,a]=n.useState();if((0,T.N)(()=>{a(new DocumentFragment)},[]),!r.open){let t=o;return t?i.createPortal((0,_.jsx)(J,{scope:e.__scopeSelect,children:(0,_.jsx)(R.Slot,{scope:e.__scopeSelect,children:(0,_.jsx)("div",{children:e.children})})}),t):null}return(0,_.jsx)(et,{...e,ref:t})});$.displayName=Y;var X=10,[J,Q]=C(Y),Z="SelectContentImpl",ee=(0,E.TL)("SelectContent.RemoveScroll"),et=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:p,align:g,alignOffset:m,arrowPadding:y,collisionBoundary:E,collisionPadding:b,sticky:v,hideWhenDetached:T,avoidCollisions:w,...A}=e,x=B(Y,r),[I,O]=n.useState(null),[R,M]=n.useState(null),C=(0,l.s)(t,e=>O(e)),[k,L]=n.useState(null),[D,V]=n.useState(null),F=P(r),[U,j]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(I)return(0,N.Eq)(I)},[I]),(0,f.Oh)();let G=n.useCallback(e=>{let[t,...r]=F().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}
1),r===t&&R&&(R.scrollTop=0),r===n&&R&&(R.scrollTop=R.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[F,R]),K=n.useCallback(()=>G([k,I]),[G,k,I]);n.useEffect(()=>{U&&K()},[U,K]);let{onOpenChange:z,triggerPointerDownPosRef:W}=x;n.useEffect(()=>{if(I){let e={x:0,y:0},t=t=>{var r,n,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(r=W.current)?void 0:r.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(n=W.current)?void 0:n.y)?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():I.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),W.current=null};return null!==W.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[I,z,W]),n.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[q,$]=eL(e=>{let t=F().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eD(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),X=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==x.value&&x.value===t||n)&&(L(e),n&&(H.current=!0))},[x.value]),Q=n.useCallback(()=>null==I?void 0:I.focus(),[I]),Z=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==x.value&&x.value===t||n)&&V(e)},[x.value]),et="popper"===i?eo:en,er=et===eo?{side:c,sideOffset:p,align:g,alignOffset:m,arrowPadding:y,collisionBoundary:E,collisionPadding:b,sticky:v,hideWhenDetached:T,avoidCollisions:w}:{};return(0,_.jsx)(J,{scope:r,content:I,viewport:R,onViewportChange:M,itemRefCallback:X,selectedItem:k,onItemLeave:Q,itemTextRefCallback:Z,focusSelectedItem:K,selectedItemText:D,position:i,isPositioned:U,searchRef:q,children:(0,_.jsx)(S.A,{as:ee,allowPinchZoom:!0,children:(0,_.jsx)(h.n,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{var t;null==(t=x.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,_.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,_.jsx)(et,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...A,...er,onPlaced:()=>j(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:(0,a.mK)(A.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>G(t)),e.preventDefault()}})})})})})})});et.displayName=Z;var er="SelectItemAlignedPosition",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...a}=e,s=B(Y,r),u=Q(Y,r),[c,d]=n.useState(null),[f,h]=n.useState(null),p=(0,l.s)(t,e=>h(e)),g=P(r),m=n.useRef(!1),E=n.useRef(!0),{viewport:b,selectedItem:v,selectedItemText:w,focusSelectedItem:A}=u,N=n.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&f&&b&&v&&w){let e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=w.getBoundingClientRect();if("rtl"!==s.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-X,f=(0,o.q)(a,[X,Math.max(X,d-u)]);c.style.minWidth=l+"px",c.style.left=f+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-X,f=(0,o.q)(a,[X,Math.max(X,d-u)]);c.style.minWidth=l+"px",c.style.right=f+"px"}let a=g(),l=window.innerHeight-2*X,u=b.scrollHeight,d=window.getComputedStyle(f),h=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),E=h+p+u+parseInt(d.paddingBottom,10)+y,T=Math.min(5*v.offsetHeight,E),A=window.getComputedStyle(b),N=parseInt(A.paddingTop,10),S=parseInt(A.paddingBottom,10),_=e.top+e.height/2-X,x=l-_,I=v.offsetHeight/2,O=h+p+(v.offsetTop+I),R=E-O;if(O<=_){let e=a.length>0&&v===a[a.length-1].ref.current;c.style.bottom="0px";let t=O+Math.max(x,I+(e?S:0)+(f.clientHeight-b.offsetTop-b.offsetHeight)+y);c.style.height=t+"px"}else{let e=a.length>0&&v===a[0].ref.current;c.style.top="0px";let t=Math.max(_,h+b.offsetTop+(e?N:0)+I)+R;c.style.height=t+"px",b.scrollTop=O-_+b.offsetTop}c.style.margin="".concat(X,"px 0"),c.style.minHeight=T+"px",c.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>m.current=!0)}},[g,s.trigger,s.valueNode,c,f,b,v,w,s.dir,i]);(0,T.N)(()=>N(),[N]);let[S,x]=n.useState();(0,T.N)(()=>{f&&x(window.getComputedStyle(f).zIndex)},[f]);let I=n.useCallback(e=>{e&&!0===E.current&&(N(),null==A||A(),E.current=!1)},[N,A]);return(0,_.jsx)(ea,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:I,children:(0,_.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,_.jsx)(y.sG.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});en.displayName=er;var ei="SelectPopperPosition",eo=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,align:n="start",collisionPadding:i=X,...o}=e,a=L(r);return(0,_.jsx)(g.UC,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eo.displayName=ei;var[ea,es]=C(Y,{}),el="SelectViewport",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,s=Q(el,r),u=es(el,r),c=(0,l.s)(t,s.onViewportChange),d=n.useRef(0);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,_.jsx)(R.Slot,{scope:r,children:(0,_.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-2*X,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eu.displayName=el;var ec="SelectGroup",[ed,ef]=C(ec),eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=(0,p.B)();return(0,_.jsx)(ed,{scope:r,id:i,children:(0,_.jsx)(y.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});eh.displayName=ec;var ep="SelectLabel",eg=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=ef(ep,r);return(0,_.jsx)(y.sG.div,{id:i.id,...n,ref:t})});eg.displayName=ep;var em="SelectItem",[ey,eE]=C(em),eb=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...u}=e,c=B(em,r),d=Q(em,r),f=c.value===i,[h,g]=n.useState(null!=s?s:""),[m,E]=n.useState(!1),b=(0,l.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,i,o)}),v=(0,p.B)(),T=n.useRef("touch"),w=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,_.jsx)(ey,{scope:r,value:i,disabled:o,textId:v,isSelected:f,onItemTextChange:n.useCallback(e=>{g(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,_.jsx)(R.ItemSlot,{scope:r,value:i,disabled:o,textValue:h,children:(0,_.jsx)(y.sG.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:b,onFocus:(0,a.mK)(u.onFocus,()=>E(!0)),onBlur:(0,a.mK)(u.onBlur,()=>E(!1)),onClick:(0,a.mK)(u.onClick,()=>{"mouse"!==T.current&&w()}),onPointerUp:(0,a.mK)(u.onPointerUp,()=>{"mouse"===T.current&&w()}),onPointerDown:(0,a.mK)(u.onPointerDown,e=>{T.current=e.pointerType}),onPointerMove:(0,a.mK)(u.onPointerMove,e=>{if(T.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===T.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.mK)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(I.includes(e.key)&&w()," "===e.key&&e.preventDefault())})})})})});eb.displayName=em;var ev="SelectItemText",eT=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...s}=e,u=B(ev,r),c=Q(ev,r),d=eE(ev,r),f=F(ev,r),[h,p]=n.useState(null),g=(0,l.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),m=null==h?void 0:h.textContent,E=n.useMemo(()=>(0,_.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:b,onNativeOptionRemove:v}=f;return(0,T.N)(()=>(b(E),()=>v(E)),[b,v,E]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y.sG.span,{id:d.textId,...s,ref:g}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(s.children,u.valueNode):null]})});eT.displayName=ev;var ew="SelectItemIndicator",eA=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return eE(ew,r).isSelected?(0,_.jsx)(y.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eA.displayName=ew;var eN="SelectScrollUpButton",eS=n.forwardRef((e,t)=>{let r=Q(eN,e.__scopeSelect),i=es(eN,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,T.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,_.jsx)(eI,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eS.displayName=eN;var e_="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=Q(e_,e.__scopeSelect),i=es(e_,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,T.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,_.jsx)(eI,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=e_;var eI=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...o}=e,s=Q("SelectScrollButton",r),l=n.useRef(null),u=P(r),c=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,T.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,_.jsx)(y.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{c()})})}),eO="SelectSeparator",eR=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,_.jsx)(y.sG.div,{"aria-hidden":!0,...n,ref:t})});eR.displayName=eO;var eP="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=L(r),o=B(eP,r),a=Q(eP,r);return o.open&&"popper"===a.position?(0,_.jsx)(g.i3,{...i,...n,ref:t}):null}).displayName=eP;var eM="SelectBubbleInput",eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,...o}=e,a=n.useRef(null),s=(0,l.s)(t,a),u=(0,w.Z)(i);return n.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==i&&t){let r=new Event("change",{bubbles:!0});t.call(e,i),e.dispatchEvent(r)}},[u,i]),(0,_.jsx)(y.sG.select,{...o,style:{...A.Qg,...o.style},ref:s,defaultValue:i})});function ek(e){return""===e||void 0===e}function eL(e){let t=(0,b.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,a]}function eD(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=eB(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function eB(e,t){return e.map((r,n)=>e[(t+n)%e.length])}eC.displayName=eM;var eV=U,eF=H,eU=K,ej=W,eH=q,eG=$,eK=eu,ez=eh,eW=eg,eq=eb,eY=eT,e$=eA,eX=eS,eJ=ex,eQ=eR},6687:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(40869);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6816:(e,t,r)=>{"use strict";function n(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}r.d(t,{a:()=>n})},7160:(e,t,r)=>{"use strict";r.d(t,{Lm:()=>a,Lo:()=>s,X_:()=>m,ZG:()=>h,c$:()=>c,f:()=>l,nx:()=>g,pO:()=>f,q5:()=>o,xW:()=>d});var n=r(60133);function i(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n<t.length;n++)t[n]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,n.MR)(!1,"invalid BytesLike value",t||"value",e)}function o(e,t){return i(e,t,!1)}function a(e,t){return i(e,t,!0)}function s(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}function l(e){return s(e,!0)||e instanceof Uint8Array}let u="0123456789abcdef";function c(e){let t=o(e),r="0x";for(let e=0;e<t.length;e++){let n=t[e];r+=u[(240&n)>>4]+u[15&n]}return r}function d(e){return"0x"+e.map(e=>c(e).substring(2)).join("")}function f(e){return s(e,!0)?(e.length-2)/2:o(e).length}function h(e,t,r){let i=o(e);return null!=r&&r>i.length&&(0,n.vA)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:r}),c(i.slice(null==t?0:t,null==r?i.length:r))}function p(e,t,r){let i=o(e);(0,n.vA)(t>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:t,offset:t+1});let a=new Uint8Array(t);return a.fill(0),r?a.set(i,t-i.length):a.set(i,0),c(a)}function g(e,t){return p(e,t,!0)}function m(e,t){return p(e,t,!1)}},7336:(e,t,r)=>{"use strict";r.d(t,{DX:()=>f,TL:()=>d});var n,i=r(13741),o=r(85207),a=r(42073),s=Symbol.for("react.lazy"),l=(n||(n=r.t(i,2)))[" use ".trim().toString()];function u(e){return"object"==typeof e&&null!==e&&"then"in e}function c(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&u(e._payload)}function d(e){let t=h(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;c(n)&&"function"==typeof l&&(n=l(n._payload));let s=i.Children.toArray(n),u=s.find(g);
1if(u){let e=u.props.children,n=s.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,a.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var f=d("Slot");function h(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(c(r)&&"function"==typeof l&&(r=l(r._payload)),i.isValidElement(r)){let e=y(r),a=m(n,r.props);return r.type!==i.Fragment&&(a.ref=t?(0,o.t)(t,e):e),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}function m(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}},7593:e=>{"use strict";e.exports=EvalError},7879:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(14080),i=r(18897),o=r(6816);function a(e){let t=(0,o.a)(e),r=t.getFullYear(),a=(0,n.w)(e,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);let s=(0,i.b)(a),l=(0,n.w)(e,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);let u=(0,i.b)(l);return t.getTime()>=s.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}},8304:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n="0x0000000000000000000000000000000000000000"},8766:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(35),i=r(82626);function o(e){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return(0,i.A)(r)?t:(0,n.A)(function(t){return e(r,t)});default:return(0,i.A)(r)&&(0,i.A)(o)?t:(0,i.A)(r)?(0,n.A)(function(t){return e(t,o)}):(0,i.A)(o)?(0,n.A)(function(t){return e(r,t)}):e(r,o)}}}},9288:e=>{"use strict";e.exports=RangeError},9682:e=>{"use strict";e.exports=Function.prototype.call},9738:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(49977),i=r(59150),o=r(5207);let a=(0,n.A)(function(e,t,r){return(0,i.A)(e,(0,o.A)(t,r))})},9905:(e,t,r)=>{"use strict";r.d(t,{B8:()=>O,UC:()=>P,bL:()=>I,l9:()=>R});var n=r(13741),i=r(17980),o=r(25721),a=r(43169),s=r(94222),l=r(9227),u=r(34864),c=r(18296),d=r(99652),f=r(42073),h="Tabs",[p,g]=(0,o.A)(h,[a.RG]),m=(0,a.RG)(),[y,E]=p(h),b=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:p="automatic",...g}=e,m=(0,u.jH)(s),[E,b]=(0,c.i)({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:h});return(0,f.jsx)(y,{scope:r,baseId:(0,d.B)(),value:E,onValueChange:b,orientation:a,dir:m,activationMode:p,children:(0,f.jsx)(l.sG.div,{dir:m,"data-orientation":a,...g,ref:t})})});b.displayName=h;var v="TabsList",T=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=E(v,r),s=m(r);return(0,f.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,f.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});T.displayName=v;var w="TabsTrigger",A=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,u=E(w,r),c=m(r),d=_(u.baseId,n),h=x(u.baseId,n),p=n===u.value;return(0,f.jsx)(a.q7,{asChild:!0,...c,focusable:!o,active:p,children:(0,f.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==u.activationMode;p||o||!e||u.onValueChange(n)})})})});A.displayName=w;var N="TabsContent",S=n.forwardRef((e,t)=>
1{let{__scopeTabs:r,value:i,forceMount:o,children:a,...u}=e,c=E(N,r),d=_(c.baseId,i),h=x(c.baseId,i),p=i===c.value,g=n.useRef(p);return n.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(s.C,{present:o||p,children:r=>{let{present:n}=r;return(0,f.jsx)(l.sG.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:h,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:n&&a})}})});function _(e,t){return"".concat(e,"-trigger-").concat(t)}function x(e,t){return"".concat(e,"-content-").concat(t)}S.displayName=N;var I=b,O=T,R=A,P=S},10840:(e,t,r)=>{"use strict";r.d(t,{Kv:()=>o,N4:()=>u});var n=r(13741),i=r(86503);function o(e,t){return e?a(e)?n.createElement(e,t):e:null}function a(e){return s(e)||"function"==typeof e||l(e)}function s(e){return"function"==typeof e&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function l(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function u(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=n.useState(()=>({current:(0,i.ZR)(t)})),[o,a]=n.useState(()=>r.current.initialState);return r.current.setOptions(t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),r.current}},11082:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},12265:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},12434:(e,t,r)=>{"use strict";var n=r(42564);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},12723:e=>{"use strict";var t={white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97},r={bgBlack:40,bgRed:41,bgGreen:42,bgYellow:43,bgBlue:44,bgMagenta:45,bgCyan:46,bgWhite:47,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107},n={},i={},o={};Object.keys(t).forEach(function(e){var r=n[e]="\x1b["+t[e]+"m",a=i[e]="\x1b[39m";o[e]=function(e){return r+e+a}}),Object.keys(r).forEach(function(e){var t=n[e]="\x1b["+r[e]+"m",a=i[e]="\x1b[49m";o[e]=function(e){return t+e+a}}),e.exports=o,o.open=n,o.close=i},12972:(e,t,r)=>{"use strict";r.d(t,{sc:()=>l});var n=r(66082),i=r.n(n),o=r(58854),a=r(70214);let s="sha2/5.8.0";function l(e){return"0x"+i().sha256().update((0,o.k9)(e)).digest("hex")}new a.Vy(s)},13040:(e,t,r)=>{e.exports=r(58153).Observable},13261:(e,t,r)=>{"use strict";var n=r(49524),i=r(39228);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},13630:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(14080),i=r(6816);function o(e){let t=(0,i.a)(e),r=t.getFullYear(),o=t.getMonth(),a=(0,n.w)(e,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function a(e,t){let r=(0,i.a)(e),a=r.getFullYear(),s=r.getDate(),l=(0,n.w)(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);let u=o(l);return r.setMonth(t,Math.min(s,u)),r}},13942:(e,t,r)=>{"use strict";r.d(t,{FK:()=>G,Pw:()=>Y,Zp:()=>q,aX:()=>H,bp:()=>W,hc:()=>X});var n=r(70407),i=r(60133),o=r(93713),a=r(96670);function s(e){let t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}let l=s("external public payable override".split(" ")),u="constant external internal payable private public pure view override",c=s(u.split(" ")),d="constructor error event fallback function receive struct",f=s(d.split(" ")),h="calldata memory storage payable indexed",p=s(h.split(" ")),g=s([d,h,"tuple returns",u].join(" ").split(" ")),m={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},y=RegExp("^(\\s*)"),E=RegExp("^([0-9]+)"),b=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),v=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),T=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#e;#t;get offset(){return this.#e}get length(){return this.#t.length-this.#e}constructor(e){this.#e=0,this.#t=e.slice()}clone(){return new w(this.#t)}reset(){this.#e=0}#r(e=0,t=0){return new w(this.#t.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#r(this.#e+1,e.match+1);return this.#e=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#e<e.match-1;){let e=this.peek().linkNext;t.push(this.#r(this.#e+1,e)),this.#e=e}return this.#e=e.match+1,t}peek(){if(this.#e>=this.#t.length)throw Error("out-of-bounds");return this.#t[this.#e]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#e++,e}toString(){let e=[];for(let t=this.#e;t<this.#t.length;t++){let r=this.#t[t];e.push(`${r.type}:${r.text}`)}return`<TokenString ${e.join(" ")}>`}}function A(e){let t=[],r=t=>{let r=a<e.length?JSON.stringify(e[a]):"$EOI";throw Error(`invalid token ${r} at ${a}: ${t}`)},i=[],o=[],a=0;for(;a<e.length;){let s=e.substring(a),l=s.match(y);l&&(a+=l[1].length,s=e.substring(a));let u={depth:i.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:a,value:-1};t.push(u);let c=m[s[0]]||"";if(c){if(u.type=c,u.text=s[0],a++,"OPEN_PAREN"===c)i.push(t.length-1),o.push(t.length-1);else if("CLOSE_PAREN"==c)0===i.length&&r("no matching open bracket"),u.match=i.pop(),t[u.match].match=t.length-1,u.depth--,u.linkBack=o.pop(),t[u.linkBack].linkNext=t.length-1;else if("COMMA"===c)u.linkBack=o.pop(),t[u.linkBack].linkNext=t.length-1,o.push(t.length-1);else if("OPEN_BRACKET"===c)u.type="BRACKET";else if("CLOSE_BRACKET"===c){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,n.WZ)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}if(l=s.match(b)){if(u.text=l[1],a+=u.text.length,g.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(T)){u.type="TYPE";continue}u.type="ID";continue}if(l=s.match(E)){u.text=l[1],u.type="NUMBER",a+=u.text.length;continue}throw Error(`unexpected token ${JSON.stringify(s[0])} at position ${a}`)}return new w(t.map(e=>Object.freeze(e)))}function N(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function S(e,t){if(t.peekKeyword(f)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function _(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function x(e){let t=_(e,c);return(N(t,s("constant payable nonpayable".split(" "))),N(t,s("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function I(e,t){return e.popParams().map(e=>H.from(e,t))}
1function O(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,n.Ab)(e.pop().text);throw Error("invalid gas")}return null}function R(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let P=new RegExp(/^(.*)\[([0-9]*)\]$/);function M(e){let t=e.match(T);if((0,i.MR)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,i.MR)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,i.MR)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let C={},k=Symbol.for("_ethers_internal"),L="_ParamTypeInternal",D="_ErrorInternal",B="_EventInternal",V="_ConstructorInternal",F="_FallbackInternal",U="_FunctionInternal",j="_StructInternal";class H{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,n,a,s,l,u){if((0,i.gk)(e,C,"ParamType"),Object.defineProperty(this,k,{value:L}),s&&(s=Object.freeze(s.slice())),"array"===n){if(null==l||null==u)throw Error("")}else if(null!=l||null!=u)throw Error("");if("tuple"===n){if(null==s)throw Error("")}else if(null!=s)throw Error("");(0,o.n)(this,{name:t,type:r,baseType:n,indexed:a,components:s,arrayLength:l,arrayChildren:u})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#n(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let i=this.arrayChildren,o=t.slice();o.forEach((t,n)=>{i.#n(e,t,r,e=>{o[n]=e})}),n(o);return}if(this.isTuple()){let i,o=this.components;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");i=o.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(i.length!==this.components.length)throw Error("array is wrong length");i.forEach((t,n)=>{o[n].#n(e,t,r,e=>{i[n]=e})}),n(i);return}let i=r(this.type,t);i.then?e.push(async function(){n(await i)}()):n(i)}async walkAsync(e,t){let r=[],n=[e];return this.#n(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(H.isParamType(e))return e;if("string"==typeof e)try{return H.from(A(e),t)}catch(t){(0,i.MR)(!1,"invalid param type","obj",e)}else if(e instanceof w){let r="",n="",i=null;_(e,s(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",i=e.popParams().map(e=>H.from(e)),r=`tuple(${i.map(e=>e.format()).join(",")})`):n=r=M(e.popType("TYPE"));let o=null,a=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();o=new H(C,"",r,n,null,i,a,o),a=t.value,r+=t.text,n="array",i=null}let l=null;if(_(e,p).has("indexed")){if(!t)throw Error("");l=!0}let u=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new H(C,u,r,n,l,i,a,o)}let r=e.name;(0,i.MR)(!r||"string"==typeof r&&r.match(v),"invalid name","obj.name",r);let n=e.indexed;null!=n&&((0,i.MR)(t,"parameter cannot be indexed","obj.indexed",e.indexed),n=!!n);let o=e.type,a=o.match(P);if(a){let t=parseInt(a[2]||"-1"),i=H.from({type:a[1],components:e.components});return new H(C,r||"",o,"array",n,null,t,i)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){let t=null!=e.components?e.components.map(e=>H.from(e)):null;return new H(C,r||"",o,"tuple",n,t,null,null)}return new H(C,r||"",o=M(e.type),o,n,null,null,null)}static isParamType(e){return e&&e[k]===L}}class G{type;inputs;constructor(e,t,r){(0,i.gk)(e,C,"Fragment"),r=Object.freeze(r.slice()),(0,o.n)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{G.from(JSON.parse(e))}catch(e){}return G.from(A(e))}if(e instanceof w)switch(e.peekKeyword(f)){case"constructor":return Y.from(e);case"error":return W.from(e);case"event":return q.from(e);case"fallback":case"receive":return $.from(e);case"function":return X.from(e);case"struct":return J.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return Y.from(e);case"error":return W.from(e);case"event":return q.from(e);case"fallback":case"receive":return $.from(e);case"function":return X.from(e);case"struct":return J.from(e)}(0,i.vA)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,i.MR)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Y.isFragment(e)}static isError(e){return W.isFragment(e)}static isEvent(e){return q.isFragment(e)}static isFunction(e){return X.isFragment(e)}static isStruct(e){return J.isFragment(e)}}class K extends G{name;
1constructor(e,t,r,n){super(e,t,n),(0,i.MR)("string"==typeof r&&r.match(v),"invalid identifier","name",r),n=Object.freeze(n.slice()),(0,o.n)(this,{name:r})}}function z(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}class W extends K{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,k,{value:D})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+z(e,this.inputs)),t.join(" ")}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)return W.from(A(e));if(e instanceof w){let t=S("error",e),r=I(e);return R(e),new W(C,t,r)}return new W(C,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[k]===D}}class q extends K{anonymous;constructor(e,t,r,n){super(e,"event",t,r),Object.defineProperty(this,k,{value:B}),(0,o.n)(this,{anonymous:n})}get topicHash(){return(0,a.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new q(C,e,t=(t||[]).map(e=>H.from(e)),!1).topicHash}static from(e){if(q.isFragment(e))return e;if("string"==typeof e)try{return q.from(A(e))}catch(t){(0,i.MR)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){let t=S("event",e),r=I(e,!0),n=!!_(e,s(["anonymous"])).has("anonymous");return R(e),new q(C,t,r,n)}return new q(C,e.name,e.inputs?e.inputs.map(e=>H.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[k]===B}}class Y extends G{payable;gas;constructor(e,t,r,n,i){super(e,t,r),Object.defineProperty(this,k,{value:V}),(0,o.n)(this,{payable:n,gas:i})}format(e){if((0,i.vA)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${z(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(Y.isFragment(e))return e;if("string"==typeof e)try{return Y.from(A(e))}catch(t){(0,i.MR)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){_(e,s(["constructor"]));let t=I(e),r=!!_(e,l).has("payable"),n=O(e);return R(e),new Y(C,"constructor",t,r,n)}return new Y(C,"constructor",e.inputs?e.inputs.map(H.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[k]===V}}class $ extends G{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,k,{value:F}),(0,o.n)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if($.isFragment(e))return e;if("string"==typeof e)try{return $.from(A(e))}catch(t){(0,i.MR)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){let t=e.toString(),r=e.peekKeyword(s(["fallback","receive"]));if((0,i.MR)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(s(["fallback","receive"]))){let t=I(e);return(0,i.MR)(0===t.length,"receive cannot have arguments","obj.inputs",t),_(e,s(["payable"])),R(e),new $(C,[],!0)}let n=I(e);n.length?(0,i.MR)(1===n.length&&"bytes"===n[0].type,"invalid fallback inputs","obj.inputs",n.map(e=>e.format("minimal")).join(", ")):n=[H.from("bytes")];let o=x(e);if((0,i.MR)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),_(e,s(["returns"])).has("returns")){let t=I(e);
1(0,i.MR)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return R(e),new $(C,n,"payable"===o)}return"receive"===e.type?new $(C,[],!0):"fallback"===e.type?new $(C,[H.from("bytes")],"payable"===e.stateMutability):void(0,i.MR)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[k]===F}}class X extends K{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,n,i,a){super(e,"function",t,n),Object.defineProperty(this,k,{value:U}),i=Object.freeze(i.slice());let s="view"===r||"pure"===r,l="payable"===r;(0,o.n)(this,{constant:s,gas:a,outputs:i,payable:l,stateMutability:r})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(z(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new X(C,e,"view",t=(t||[]).map(e=>H.from(e)),[],null).selector}static from(e){if(X.isFragment(e))return e;if("string"==typeof e)try{return X.from(A(e))}catch(t){(0,i.MR)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){let t=S("function",e),r=I(e),n=x(e),i=[];_(e,s(["returns"])).has("returns")&&(i=I(e));let o=O(e);return R(e),new X(C,t,n,r,i,o)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",!e.constant&&(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new X(C,e.name,t,e.inputs?e.inputs.map(H.from):[],e.outputs?e.outputs.map(H.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[k]===U}}class J extends K{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,k,{value:j})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return J.from(A(e))}catch(t){(0,i.MR)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){let t=S("struct",e),r=I(e);return R(e),new J(C,t,r)}return new J(C,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[k]===j}}},14080:(e,t,r)=>{"use strict";function n(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}r.d(t,{w:()=>n})},14771:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(76438);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=r(49977),a=r(35),s=r(11082),l=r(31780);let u=(0,a.A)(function(e){return!!(0,s.A)(e)||!(!e||"object"!=typeof e||(0,l.A)(e))&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))});var c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function d(e,t,r){return function(n,i,o){if(u(o))return e(n,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(n,i,o,"fantasy-land/reduce");if(null!=o[c])return r(n,i,o[c]());if("function"==typeof o.next)return r(n,i,o);if("function"==typeof o.reduce)return t(n,i,o,"reduce");throw TypeError("reduce: list must be array or iterable")}}function f(e,t,r){for(var n=0,i=r.length;n<i;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}let h=(0,r(8766).A)(function(e,t){return(0,n.A)(e.length,function(){return e.apply(t,arguments)})}),p=d(f,function(e,t,r,n){return e["@@transducer/result"](r[n](h(e["@@transducer/step"],e),t))},function(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)});var g=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function m(e){return new g(e)}let y=(0,o.A)(function(e,t,r){return p("function"==typeof e?m(e):e,t,r)});function E(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return(0,s.A)(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}let b=(0,o.A)(E("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)})),v=(0,a.A)(E("tail",b(1,1/0)));function T(){if(0==arguments.length)throw Error("pipe requires at least one argument");return(0,n.A)(arguments[0].length,y(i,arguments[0],v(arguments)))}let w=(0,a.A)(function(e){return(0,l.A)(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function A(){if(0==arguments.length)throw Error("compose requires at least one argument");return T.apply(this,w(arguments))}},15424:(e,t,r)=>{"use strict";var n=r(86175),i=r(4222);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},16472:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},16605:(e,t,r)=>{"use strict";e.exports=r(91860).getPrototypeOf||null},16653:(e,t,r)=>{"use strict";var n=r(30585),i=r(23742),o=r(47532);e.exports=function(){return o(n,i,arguments)}},16705:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.supportedTypeMap=void 0;let o=r(86350);i(r(86350),t),i(r(77347),t),t.supportedTypeMap=o.keysTypeMap},17027:(e,t,r)=>{"use strict";r.d(t,{NZ:()=>W});var n=r(27543),i=r(75468),o=r(80002),a=r(43184),s=r(93713),l=r(60133),u=r(70407),c=r(7160),d=r(94401);class f extends a.tG{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,s.n)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class h extends a.tG{error;constructor(e,t){super(e,e.provider),(0,s.n)(this,{error:t})}}class p extends a.z5{#i;constructor(e,t,r){super(r,t),this.#i=e}get logs(){return super.logs.map(e=>{let t=e.topics.length?this.#i.getEvent(e.topics[0]):null;if(t)try{return new f(e,this.#i,t)}catch(t){return new h(e,t)}return e})}}class g extends a.uI{#i;constructor(e,t,r){super(r,t),this.#i=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new p(this.#i,this.provider,r)}}class m extends d.z{log;constructor(e,t,r,n){super(e,t,r),(0,s.n)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class y extends m{constructor(e,t,r,n,i){super(e,t,r,new f(i,e.interface,n));let o=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,s.n)(this,{args:o,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}let E=BigInt(0);function b(e){return e&&"function"==typeof e.call}function v(e){return e&&"function"==typeof e.estimateGas}function T(e){return e&&"function"==typeof e.resolveName}function w(e){return e&&"function"==typeof e.sendTransaction}function A(e){if(null!=e){if(T(e))return e;if(e.provider)return e.provider}}class N{#o;fragment;constructor(e,t,r){if((0,s.n)(this,{fragment:t}),t.inputs.length<r.length)throw Error("too many arguments");let n=S(e.runner,"resolveName"),i=T(n)?n:null;this.#o=async function(){let n=await Promise.all(t.inputs.map((e,t)=>null==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>(0,o.tG)(e,i))):(0,o.tG)(t,i):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#o}}function S(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function _(e){return null==e?null:e.provider||null}async function x(e,t){let r=n.V.dereference(e,"overrides");(0,l.MR)("object"==typeof r,"invalid overrides parameter","overrides",e);let i=(0,a.VS)(r);return(0,l.MR)(null==i.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",i.to),(0,l.MR)(null==i.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",i.data),i.from&&(i.from=i.from),i}async function I(e,t,r){let i=S(e,"resolveName"),a=T(i)?i:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=n.V.dereference(t,e),"address"===e)?(0,o.tG)(t,a):t)))}function O(e){let t=async function(t){let r=await x(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await (0,o.tG)(r.from,A(e.runner)));let n=e.interface,i=(0,u.Ab)(r.value||E,"overrides.value")===E,a="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||a||i||(0,l.MR)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,l.MR)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data);let s=n.receive||n.fallback&&n.fallback.payable;return(0,l.MR)(s||i,"cannot send value to non-payable fallback","overrides.value",r.value),(0,l.MR)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=S(e.runner,"call");(0,l.vA)(b(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await t(r);try{return await n.call(i)}catch(t){if((0,l.E)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}},n=async function(r){let n=e.runner;(0,l.vA)(w(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let i=await n.sendTransaction(await t(r)),o=_(e.runner);return new g(e.interface,o,i)},i=async function(r){let n=S(e.runner,"estimateGas");return(0,l.vA)(v(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},a=async e=>await n(e);return(0,s.n)(a,{_contract:e,estimateGas:i,populateTransaction:t,send:n,staticCall:r}),a}function R(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,l.vA)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),i={};
1if(n.inputs.length+1===t.length&&(i=await x(t.pop())).from&&(i.from=await (0,o.tG)(i.from,A(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let a=await I(e.runner,n.inputs,t);return Object.assign({},i,await (0,s.k)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,a)}))},i=async function(...e){let t=await c(...e);return 1===t.length?t[0]:t},a=async function(...t){let r=e.runner;(0,l.vA)(w(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let i=await r.sendTransaction(await n(...t)),o=_(e.runner);return new g(e.interface,o,i)},u=async function(...t){let r=S(e.runner,"estimateGas");return(0,l.vA)(v(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},c=async function(...t){let i=S(e.runner,"call");(0,l.vA)(b(i),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let o=await n(...t),a="0x";try{a=await i.call(o)}catch(t){if((0,l.E)(t)&&t.data)throw e.interface.makeError(t.data,o);throw t}let s=r(...t);return e.interface.decodeFunctionResult(s,a)},d=async(...e)=>r(...e).constant?await i(...e):await a(...e);return(0,s.n)(d,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:u,populateTransaction:n,send:a,staticCall:i,staticCallResult:c}),Object.defineProperty(d,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,l.vA)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),d}function P(e,t){let r=function(...r){let n=e.interface.getEvent(t,r);return(0,l.vA)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=function(...t){return new N(e,r(...t),t)};return(0,s.n)(n,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getEvent(t);return(0,l.vA)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),n}let M=Symbol.for("_ethersInternal_contract"),C=new WeakMap;function k(e,t){C.set(e[M],t)}function L(e){return C.get(e[M])}function D(e){return e&&"object"==typeof e&&"getTopicFilter"in e&&"function"==typeof e.getTopicFilter&&e.fragment}async function B(e,t){let r,n=null;if(Array.isArray(t)){let n=function(t){if((0,c.Lo)(t,32))return t;let r=e.interface.getEvent(t);return(0,l.MR)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else"*"===t?r=[null]:"string"==typeof t?(0,c.Lo)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,l.MR)(n,"unknown fragment","event",t),r=[n.topicHash]):D(t)?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,l.MR)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function V(e,t){let{subs:r}=L(e);return r.get((await B(e,t)).tag)||null}async function F(e,t,r){let n=_(e.runner);(0,l.vA)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:i,tag:o,topics:a}=await B(e,r),{addr:s,subs:u}=L(e),c=u.get(o);if(!c){let t={address:s||e,topics:a},l=t=>{let n=i;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let o=n,a=i?e.interface.decodeEventLog(i,t.data,t.topics):[];H(e,r,a,n=>new y(e,n,r,o,t))}else H(e,r,[],n=>new m(e,n,r,t))},d=[];c={tag:o,listeners:[],start:()=>{d.length||d.push(n.on(t,l))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),n.off(t,l)}},u.set(o,c)}return c}let U=Promise.resolve();async function j(e,t,r,n){await U;let i=await V(e,t);if(!i)return!1;let o=i.listeners.length;return i.listeners=i.listeners.filter(({listener:t,once:i})=>{let o=Array.from(r);n&&o.push(n(i?null:t));try{t.call(e,...o)}catch(e){}return!i}),0===i.listeners.length&&(i.stop(),L(e).subs.delete(i.tag)),o>0}async function H(e,t,r,n){try{await U}catch(e){}let i=j(e,t,r,n);return U=i,await i}let G=["then"];class K{target;interface;runner;filters;[M];fallback;constructor(e,t,r,n){let a;
1(0,l.MR)("string"==typeof e||(0,o.$C)(e),"invalid value for Contract target","target",e),null==r&&(r=null);let u=i.KA.from(t);(0,s.n)(this,{target:e,runner:r,interface:u}),Object.defineProperty(this,M,{value:{}});let d=null,f=null;if(n){let e=_(r);f=new g(this.interface,e,n)}let h=new Map;if("string"==typeof e)if((0,c.Lo)(e))d=e,a=Promise.resolve(e);else{let t=S(r,"resolveName");if(!T(t))throw(0,l.xz)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=t.resolveName(e).then(t=>{if(null==t)throw(0,l.xz)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return L(this).addr=t,t})}else a=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return L(this).addr=e,e});k(this,{addrPromise:a,addr:d,deployTx:f,subs:h});let p=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||G.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,l.bJ)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>G.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,s.n)(this,{filters:p}),(0,s.n)(this,{fallback:u.receive||u.fallback?O(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||G.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,l.bJ)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||G.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new K(this.target,this.interface,e)}attach(e){return new K(e,this.interface,this.runner)}async getAddress(){return await L(this).addrPromise}async getDeployedCode(){let e=_(this.runner);(0,l.vA)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();
1if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=_(this.runner);return(0,l.vA)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return L(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),R(this,e)}getEvent(e){return"string"!=typeof e&&(e=e.format()),P(this,e)}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:i}=L(this),o=n||await i,{fragment:s,topics:u}=await B(this,e),c={address:o,topics:u,fromBlock:t,toBlock:r},d=_(this.runner);return(0,l.vA)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(c)).map(e=>{let t=s;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new f(e,this.interface,t)}catch(t){return new h(e,t)}return new a.tG(e,d)})}async on(e,t){let r=await F(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await F(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await H(this,e,t,null)}async listenerCount(e){if(e){let t=await V(this,e);return t?t.listeners.length:0}let{subs:t}=L(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await V(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=L(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await V(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),L(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await V(this,e);if(!t)return this;t.stop(),L(this).subs.delete(t.tag)}else{let{subs:e}=L(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends K{constructor(t,r=null){super(t,e,r)}}return t}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function z(){return K}class W extends z(){}},17650:(e,t,r)=>{"use strict";r.d(t,{C1:()=>A,bL:()=>T});var n=r(13741),i=r(85207),o=r(25721),a=r(17980),s=r(18296),l=r(96456),u=r(55848),c=r(94222),d=r(9227),f=r(42073),h="Checkbox",[p,g]=(0,o.A)(h),[m,y]=p(h);function E(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:a,form:l,name:u,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:g}=e,[y,E]=(0,s.i)({prop:r,defaultProp:null!=o&&o,onChange:c,caller:h}),[b,v]=n.useState(null),[T,w]=n.useState(null),A=n.useRef(!1),N=!b||!!l||!!b.closest("form"),S={checked:y,disabled:a,setChecked:E,control:b,setControl:v,name:u,form:l,value:p,hasConsumerStoppedPropagationRef:A,required:d,defaultChecked:!x(o)&&o,isFormControl:N,bubbleInput:T,setBubbleInput:w};return(0,f.jsx)(m,{scope:t,...S,children:_(g)?g(S):i})}var b="CheckboxTrigger",v=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:o,onClick:s,...l}=e,{control:u,value:c,disabled:h,checked:p,required:g,setControl:m,setChecked:E,hasConsumerStoppedPropagationRef:v,isFormControl:T,bubbleInput:w}=y(b,r),A=(0,i.s)(t,m),N=n.useRef(p);return n.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>E(N.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,E]),(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":x(p)?"mixed":p,"aria-required":g,"data-state":I(p),"data-disabled":h?"":void 0,disabled:h,value:c,...l,ref:A,onKeyDown:(0,a.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(s,e=>{E(e=>!!x(e)||!e),w&&T&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});v.displayName=b;var T=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,f.jsx)(E,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(v,{...d,ref:t,__scopeCheckbox:r}),n&&(0,f.jsx)(S,{__scopeCheckbox:r})]})}})});T.displayName=h;var w="CheckboxIndicator",A=n.forwardRef((e,t)=>
1{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=y(w,r);return(0,f.jsx)(c.C,{present:n||x(o.checked)||!0===o.checked,children:(0,f.jsx)(d.sG.span,{"data-state":I(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});A.displayName=w;var N="CheckboxBubbleInput",S=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,...o}=e,{control:a,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:h,required:p,disabled:g,name:m,value:E,form:b,bubbleInput:v,setBubbleInput:T}=y(N,r),w=(0,i.s)(t,T),A=(0,l.Z)(c),S=(0,u.X)(a);n.useEffect(()=>{let e=v;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,r=!s.current;if(A!==c&&t){let n=new Event("click",{bubbles:r});e.indeterminate=x(c),t.call(e,!x(c)&&c),e.dispatchEvent(n)}},[v,A,c,s]);let _=n.useRef(!x(c)&&c);return(0,f.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:_.current,required:p,disabled:g,name:m,value:E,form:b,...o,tabIndex:-1,ref:w,style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function _(e){return"function"==typeof e}function x(e){return"indeterminate"===e}function I(e){return x(e)?"indeterminate":e?"checked":"unchecked"}S.displayName=N},18791:(e,t,r)=>{var n=r(49938),i=r(95844),o=r(75401),a="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},18868:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(14080),i=r(58456),o=r(6816),a=r(98043);function s(e,t){var r,s,l,u,c,d,f,h;let p=(0,o.a)(e),g=p.getFullYear(),m=(0,a.q)(),y=null!=(h=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(s=t.locale)||null==(r=s.options)?void 0:r.firstWeekContainsDate)?d:m.firstWeekContainsDate)?f:null==(u=m.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?h:1,E=(0,n.w)(e,0);E.setFullYear(g+1,0,y),E.setHours(0,0,0,0);let b=(0,i.k)(E,t),v=(0,n.w)(e,0);v.setFullYear(g,0,y),v.setHours(0,0,0,0);let T=(0,i.k)(v,t);return p.getTime()>=b.getTime()?g+1:p.getTime()>=T.getTime()?g:g-1}},18897:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(58456);function i(e){return(0,n.k)(e,{weekStartsOn:1})}},19260:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8766),i=r(31780);let o=(0,n.A)(function(e,t){var r=e<0?t.length+e:e;return(0,i.A)(t)?t.charAt(r):t[r]})},19437:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},19799:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,B4:()=>l,P5:()=>s,WM:()=>u,im:()=>c,lD:()=>a});let n=BigInt(0x100000000-1),i=BigInt(32);function o(e,t=!1){return t?{h:Number(e&n),l:Number(e>>i&n)}:{h:0|Number(e>>i&n),l:0|Number(e&n)}}function a(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:s}=o(e[i],t);[r[i],n[i]]=[a,s]}return[r,n]}let s=(e,t,r)=>e<<r|t>>>32-r,l=(e,t,r)=>t<<r|e>>>32-r,u=(e,t,r)=>t<<r-32|e>>>64-r,c=(e,t,r)=>e<<r-32|t>>>64-r,d={fromBig:o,split:a,toBig:(e,t)=>BigInt(e>>>0)<<i|BigInt(t>>>0),shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:s,rotlSL:l,rotlBH:u,rotlBL:c,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)}},20400:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(6816);function i(e){let t=(0,n.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},20441:(e,t,r)=>{"use strict";r.d(t,{b:()=>p});var n=r(26272),i=r(7160),o=r(60133);let a=BigInt(0),s=BigInt(36);function l(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let o=(0,i.q5)((0,n.S)(r));for(let e=0;e<40;e+=2)o[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&o[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let u={};for(let e=0;e<10;e++)u[String(e)]=String(e);for(let e=0;e<26;e++)u[String.fromCharCode(65+e)]=String(10+e);let c=15;function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>u[e]).join("");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let f=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function h(e){e=e.toLowerCase();let t=a;for(let r=0;r<e.length;r++)t=t*s+f[e[r]];return t}
1function p(e){if((0,o.MR)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=l(e);return(0,o.MR)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,o.MR)(e.substring(2,4)===d(e),"bad icap checksum","address",e);let t=h(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return l("0x"+t)}(0,o.MR)(!1,"invalid address","address",e)}},20539:e=>{"use strict";e.exports=Math.max},20598:(e,t,r)=>{"use strict";r.d(t,{bv:()=>g});var n=r(58854),i=r(99308),o=r(41117),a=r(70214);let s="address/5.8.0",l=new a.Vy(s);function u(e){(0,n.Lo)(e,20)||l.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.k9)((0,o.S)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let c=0x1fffffffffffff;function d(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}let f={};for(let e=0;e<10;e++)f[String(e)]=String(e);for(let e=0;e<26;e++)f[String.fromCharCode(65+e)]=String(10+e);let h=Math.floor(d(c));function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>f[e]).join("");for(;t.length>=h;){let e=t.substring(0,h);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function g(e){let t=null;if("string"!=typeof e&&l.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&l.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&l.throwArgumentError("bad icap checksum","address",e),t=(0,i.Os)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else l.throwArgumentError("invalid address","address",e);return t}},21441:(e,t,r)=>{"use strict";r.d(t,{ls:()=>iL,Ts:()=>iD,do:()=>iB,u4:()=>iV});var n,i,o,a,s,l,u,c,d,f,h,p,g,m,y,E=r(39195);!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(n||(n={}));var b=function(e){return void 0===e&&(e=0),(Error().stack||"").split("\n").slice(2+e).map(function(e){return e.trim()})},v=function(e){return function(){var t=(0,E.Cl)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},T=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,E.Ju)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},w=function(e,t){return function(){var r,n,i={};try{for(var o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=T(e,s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},A=function(e,t,r,i,o){return void 0===o&&(o=null),function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=r(),u=l.logger,c=l.logLevel;if(c&&c<n.Debug||!c||!u)return e.apply(o,a);var d={type:"invoke public method",name:t,args:a,stacktrace:b(1),time:{start:new Date().toISOString()},states:{}};i&&d.states&&(d.states.before=i());var f=e.apply(o,a);return f&&f.promise?f.promise.then(function(){i&&d.states&&(d.states.after=i()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))}):(i&&d.states&&(d.states.after=i()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))),f}},N=function(e){return{promise:e||Promise.resolve()}};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(i||(i={}));var S="Event tracked successfully",_="Unexpected error occurred",x="Event rejected due to exceeded retry count",I="Event skipped due to optOut config",O="Event rejected due to missing API key",R="Invalid API key",P="Client not initialized",M=r(96431),C=function(e,t){var r=Math.max(t,1);return e.reduce(function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e},[])},k=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=i.Unknown),{event:e,code:t,message:r}},L="Amplitude Logger ",D=function(){function e(){this.logLevel=n.None}return e.prototype.disable=function(){this.logLevel=n.None},e.prototype.enable=function(e){void 0===e&&(e=n.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<n.Verbose||console.log("".concat(L,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<n.Warn||console.warn("".concat(L,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<n.Error||console.error("".concat(L,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<n.Debug||console.log("".concat(L,"[Debug]: ").concat(e.join(" ")))},e}(),B=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:M.e5,logLevel:n.Warn,loggerProvider:new D,offline:!1,optOut:!1,serverUrl:M.mJ,serverZone:"US",useBatch:!1}},V=function(){function e(e){this._optOut=!1;var t,r,n,i,o=B();this.apiKey=e.apiKey,this.flushIntervalMillis=null!=(t=e.flushIntervalMillis)?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!=(r=e.logLevel)?r:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!=(n=e.optOut)?n:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!=(i=e.useBatch)?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=U(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),e}(),F=function(e,t){return"EU"===e?t?M.OP:M.bu:t?M.pL:M.mJ},U=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=B().serverZone),void 0===r&&(r=B().useBatch),e)return{serverUrl:e,serverZone:void 0};var n=["US","EU"].includes(t)?t:B().serverZone;return{serverZone:n,serverUrl:F(n,r)}},j=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),H=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},G=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,z)},K=(0,E.fX)([],(0,E.zs)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),z=function(e){var t,r=H();if(!(null==(t=null==r?void 0:r.crypto)?void 0:t.getRandomValues))return G(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(0,E.fX)([],(0,E.zs)(n.entries()),!1).map(function(e){var t=(0,E.zs)(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(K[n]):K[n]}).join("")};function W(e){return e>=200&&e<300}var q=new Set([M.mJ,M.bu,M.pL,M.OP]),Y=function(e,t){return void 0===t&&(t=!1),!!q.has(e)||t};function $(e){return e instanceof Error?e.message:String(e)}function X(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var J=function(){function e(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return e.prototype.setup=function(e){var t;return(0,E.sH)(this,void 0,void 0,function(){var r,n=this;return(0,E.YH)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(M.fS,"_").concat(this.config.apiKey.substring(0,10)),[4,null==(t=this.config.storageProvider)?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=z()),new Promise(function(r){var n={event:e,attempts:0,callback:function(e){return r(e)},timeout:0};t.queue.push(n),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,x),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,E.sH)(this,void 0,void 0,function(){var t,r,n=this;return(0,E.YH)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),[4,C(t,this.config.flushQueueSize).reduce(function(t,r){return(0,E.sH)(n,void 0,void 0,function(){return(0,E.YH)(this,function(n){switch(n.label){case 0:return[4,t];case 1:return n.sent(),[4,this.send(r,e)];case 2:return[2,n.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){var r;return void 0===t&&(t=!0),(0,E.sH)(this,void 0,void 0,function(){var n,o,a,s,l;return(0,E.YH)(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,O)];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,E.Tt)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new j,u.label=1;case 1:return u.trys.push([1,3,,4]),a=Y(o=U(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,this.config.enableRequestBodyCompression),[4,this.config.transportProvider.send(o,n,a)];case 2:if(null===(s=u.sent()))return this.fulfillRequest(e,0,_),[2];if(!t)return"body"in s?this.fulfillRequest(e,s.statusCode,"".concat(s.status,": ").concat(X(s))):this.fulfillRequest(e,s.statusCode,s.status),[2];return this.handleResponse(s,e),[3,4];case 3:return l=$(u.sent()),this.config.loggerProvider.error(l),null==(r=this.diagnosticsClient)||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:e.map(function(e){return e.event.event_type}),message:l,stack_trace:b()}),this.handleResponse({status:i.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){W(e.statusCode)||null==(r=this.diagnosticsClient)||r.recordEvent("analytics.events.unsuccessful",{events:t.map(function(e){return e.event.event_type}),code:e.statusCode,status:e.status,body:X(e),stack_trace:b()});var r,n=e.status;switch(n){case i.Success:this.handleSuccessResponse(e,t);break;case i.Invalid:this.handleInvalidResponse(e,t);break;case i.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case i.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,S)},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith(R))return void this.fulfillRequest(t,e.statusCode,e.body.error);var n=new Set((0,E.fX)((0,E.fX)((0,E.fX)((0,E.fX)([],(0,E.zs)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,E.zs)(Object.values(e.body.eventsWithMissingFields)),!1),(0,E.zs)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,E.zs)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){return!n.has(i)||void r.fulfillRequest([t],e.statusCode,e.body.error)});i.length>0&&this.config.loggerProvider.warn(X(e));
1var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length)return void this.fulfillRequest(t,e.statusCode,e.body.error);this.config.loggerProvider.warn(X(e)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(n),s=new Set(i),l=new Set(o),u=t.filter(function(t,n){return t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)?void r.fulfillRequest([t],e.statusCode,e.body.error):(l.has(n)&&(t.timeout=r.throttleTimeout),!0)});u.length>0&&this.config.loggerProvider.warn(X(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.fulfillRequest=function(e,t,r){var n,i,o;W(t)?null==(o=this.diagnosticsClient)||o.increment("analytics.events.sent",e.length):(null==(n=this.diagnosticsClient)||n.increment("analytics.events.dropped",e.length),null==(i=this.diagnosticsClient)||i.recordEvent("analytics.events.dropped",{events:e.map(function(e){return e.event.event_type}),code:t,message:r,stack_trace:b()})),this.removeEvents(e),e.forEach(function(e){return e.callback(k(e.event,t,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),Q=r(87820),Z=r(85246),ee=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){try{var t=JSON.parse(JSON.stringify(e));(0,Z.a)(t)&&(this.properties=t)}catch(e){}return this},e.prototype.getEventProperties=function(){var e=this.properties?(0,E.Cl)({},this.properties):{};return e[o.REVENUE_PRODUCT_ID]=this.productId,e[o.REVENUE_QUANTITY]=this.quantity,e[o.REVENUE_PRICE]=this.price,e[o.REVENUE_TYPE]=this.revenueType,e[o.REVENUE_CURRENCY]=this.currency,e[o.REVENUE]=this.revenue,e[o.RECEIPT]=this.receipt,e[o.RECEIPT_SIG]=this.receiptSig,e},e}();!function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"}(o||(o={})),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(a||(a={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(s||(s={}));var et=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[],this.pluginStatus=new Map,this._optOutListeners=[]}return e.prototype.register=function(e,t){var r,n;return(0,E.sH)(this,void 0,void 0,function(){var i;return(0,E.YH)(this,function(o){switch(o.label){case 0:if(void 0===e.name&&(e.name=z(),this.loggerProvider.warn("Plugin name is undefined.\n Generating a random UUID for plugin name: ".concat(e.name,".\n Set a name for the plugin to prevent it from being added multiple times."))),i=e.name,this.pluginStatus.has(i))return this.loggerProvider.warn("Plugin with name ".concat(i," already exists, skipping registration")),[2];return e.type=null!=(r=e.type)?r:"enrichment",this.pluginStatus.set(i,"locked"),[4,null==(n=e.setup)?void 0:n.call(e,t,this.client)];case 1:if(o.sent(),"locked"!==this.pluginStatus.get(i))return[2];return this.plugins.push(e),this.pluginStatus.set(i,"installed"),[2]}})})},e.prototype.deregister=function(e,t){var r;return(0,E.sH)(this,void 0,void 0,function(){var n,i;return(0,E.YH)(this,function(o){switch(o.label){case 0:if(this.pluginStatus.delete(e),-1===(n=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[n],this.plugins.splice(n,1),[4,null==(r=i.teardown)?void 0:r.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this._clearOptOutListeners(),this.applying=!1,this.plugins.map(function(e){var t;return null==(t=e.teardown)?void 0:t.call(e)}),this.plugins=[],this.pluginStatus.clear(),this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(r){t.queue.push([e,r]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,g;return(0,E.YH)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,E.zs)(e,1)[0],r=(0,E.zs)(e,2)[1],this.loggerProvider.log("Timeline.apply: Initial event",t),n=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,E.Ju)(n)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,E.Cl)({},t))];case 3:if(null===(s=m.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return f={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(f)throw f.error}
1return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,E.Ju)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,E.Cl)({},t))];case 11:if(null===(s=m.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return p={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(p)throw p.error}return[7];case 16:return d=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(t))),Promise.all(d.map(function(e){var r=(0,E.Cl)({},t);return e.execute(r).catch(function(e){return k(r,0,String(e))})})).then(function(e){var n=(0,E.zs)(e,1)[0]||k(t,100,"Event not tracked, no destination plugins on the instance");r(n)}),[2]}})})},e.prototype.flush=function(){return(0,E.sH)(this,void 0,void 0,function(){var e,t=this;return(0,E.YH)(this,function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return r.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return r.sent(),[2]}})})},e.prototype.addOptOutListener=function(e){this._optOutListeners.push(e)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onIdentityChanged)||r.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onSessionIdChanged)||r.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onOptOutChanged)||r.call(t,e)}),this._callOptOutListeners(e)},e.prototype._callOptOutListeners=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i,o,a;return(0,E.YH)(this,function(s){switch(s.label){case 0:s.trys.push([0,7,8,9]),r=(t=(0,E.Ju)(this._optOutListeners)).next(),s.label=1;case 1:if(r.done)return[3,6];n=r.value,s.label=2;case 2:return s.trys.push([2,4,,5]),[4,n(e)];case 3:return s.sent(),[3,5];case 4:return i=s.sent(),this.loggerProvider.error("Error calling optOut listener",i),[3,5];case 5:return r=t.next(),[3,1];case 6:return[3,9];case 7:return o={error:s.sent()},[3,9];case 8:try{r&&!r.done&&(a=t.return)&&a.call(t)}finally{if(o)throw o.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(e){var t;null==(t=e.onReset)||t.call(e)})},e}(),er=function(e,t,r){var n="string"==typeof e?{event_type:e}:e;return(0,E.Cl)((0,E.Cl)((0,E.Cl)({},n),r),t&&{event_properties:t})},en=function(e,t){return(0,E.Cl)((0,E.Cl)({},t),{event_type:s.IDENTIFY,user_properties:e.getUserProperties()})},ei=function(e,t,r,n){var i;return(0,E.Cl)((0,E.Cl)({},n),{event_type:s.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:((i={})[e]=t,i)})},eo=function(e,t,r){var n,i=new Q.T$;return i.set(e,t),(0,E.Cl)((0,E.Cl)({},r),{event_type:s.IDENTIFY,user_properties:i.getUserProperties(),groups:((n={})[e]=t,n)})},ea=function(e,t){return(0,E.Cl)((0,E.Cl)({},t),{event_type:s.REVENUE,event_properties:e.getEventProperties()})},es=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new et(this),this.name=e}return e.prototype._init=function(e){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i,o,a;return(0,E.YH)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),n=(r=(0,E.Ju)(t)).next(),s.label=2;case 2:if(n.done)return[3,7];if(!((i=(0,n.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}
1return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,r){var n=er(e,t,r);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),N(this.dispatch(n))},e.prototype.identify=function(e,t){var r=en(e,t);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),N(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=ei(e,t,r,n);return N(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=eo(e,t,r);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),N(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=ea(e,t);return N(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),N())},e.prototype._addPlugin=function(e){return N(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),N())},e.prototype._removePlugin=function(e){return N(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(k(e,0,P));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t=this;return(0,E.YH)(this,function(r){return this.isReady?[2,this.process(e)]:[2,new Promise(function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t,r=null!=(t=this.userProperties)?t:{},n=(0,E.Cl)({},r);if(void 0===e)return n;var i={};return Object.keys(e).forEach(function(t){Object.values(a).includes(t)||(i[t]=e[t])}),Q.Se.forEach(function(t){if(Object.keys(e).includes(t)){var r=e[t];switch(t){case a.CLEAR_ALL:Object.keys(n).forEach(function(e){delete n[e]});break;case a.UNSET:Object.keys(r).forEach(function(e){delete n[e]});break;case a.SET:Object.assign(n,r)}}}),Object.assign(n,i),n},e.prototype.process=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r;return(0,E.YH)(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),this.config.optOut)return[2,k(e,0,I)];return e.event_type===s.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(e)];case 1:return 200===(t=n.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return r=String(n.sent()),this.config.loggerProvider.error(r),[2,t=k(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady)return void this.q.push(this._setOptOut.bind(this,!!e));this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.config.optOut=!!e,this.timeline.onOptOutChanged(e))},e.prototype.flush=function(){return N(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});return void 0===t?void this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e)):t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),el=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},eu=function(e){return el(e,"attribution")},ec=function(e){return el(e,"fileDownloads")},ed=function(e){return el(e,"formInteractions")},ef=function(e){return el(e,"pageViews")},eh=function(e){return el(e,"sessions")},ep=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eg=function(e){if(ep(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},em=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return ef(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},ey=function(e){return eu(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?(0,E.Cl)({},e.defaultTracking.attribution):{}},eE="-",eb="AMP",ev="utm_campaign",eT="utm_content",ew="utm_id",eA="utm_medium",eN="utm_source",eS="utm_term",e_="dclid",ex="fbclid",eI="gbraid",eO="gclid",eR="ko_click_id",eP="li_fat_id",eM="msclkid",eC="rdt_cid",ek="ttclid",eL="twclid",eD="wbraid",eB={utm_campaign:void 0,utm_c
1ontent:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eV=1e3,eF=function(e){if(Object.keys(e).length>eV)return!1;for(var t in e){var r=e[t];if(!eU(t,r))return!1}return!0},eU=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&eF(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return eF(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},ej=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,E.Cl)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(l.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(l.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(l.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(l.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(l.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(l.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(l.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(l.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(l.UNSET,e,eE),this},e.prototype.clearAll=function(){return this._properties={},this._properties[l.CLEAR_ALL]=eE,this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[l.CLEAR_ALL]||this._propertySet.has(t))&&(e===l.ADD?"number"==typeof r:e===l.UNSET||e===l.REMOVE||eU(t,r))},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(l||(l={})),l.CLEAR_ALL,l.UNSET,l.SET,l.SET_ONCE,l.ADD,l.APPEND,l.PREPEND,l.PREINSERT,l.POSTINSERT,l.REMOVE,function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(u||(u={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(c||(c={}));var eH=function(e,t){return(0,E.Cl)((0,E.Cl)({},t),{event_type:c.IDENTIFY,user_properties:e.getUserProperties()})},eG="utm_campaign",eK="utm_content",ez="utm_id",eW="utm_medium",eq="utm_source",eY="utm_term",e$="dclid",eX="fbclid",eJ="gbraid",eQ="gclid",eZ="ko_click_id",e0="li_fat_id",e1="msclkid",e2="rdt_cid",e3="ttclid",e4="twclid",e5="wbraid",e6={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},e8=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},e7=function(e){return Object.values(e).every(function(e){return!e})},e9=function(e,t,r,n,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,E.Tt)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,E.Tt)(s,["referrer","referring_domain"]);if(te(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&e7(e)&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=e8(o||"")!==e8(l||""),f=!t||c||d;return f?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),f},te=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},tt=function(e,t){return eH(Object.entries((0,E.Cl)((0,E.Cl)({},e6),e)).reduce(function(e,r){var n,i=(0,E.zs)(r,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!=(n=null!=a?a:t.initialEmptyValue)?n:"EMPTY"),a)?e.set(o,a):e.unset(o)},new ej))},tr=function(e){var t=e;
1return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},tn=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),[eb,t,e.substring(0,r)].filter(Boolean).join("_")},ti=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},to=function(){var e,t=ti();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=ta(r[0]),i=ta(r[1]);return i&&(e[n]=i),e},{}):{}},ta=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ts=function(){function e(){}return e.prototype.parse=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){return[2,(0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)({},e6),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=to();return{utm_campaign:e[eG],utm_content:e[eK],utm_id:e[ez],utm_medium:e[eW],utm_source:e[eq],utm_term:e[eY]}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=to();return(e={})[e$]=t[e$],e[eX]=t[eX],e[eJ]=t[eJ],e[eQ]=t[eQ],e[eZ]=t[eZ],e[e0]=t[e0],e[e1]=t[e1],e[e2]=t[e2],e[e3]=t[e3],e[e4]=t[e4],e[e5]=t[e5],e},e}(),tl=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},tu=function(){function e(e,t){var r;this.shouldTrackNewCampaign=!1,this.options=(0,E.Cl)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:tr(null==(r=t.cookieOptions)?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=tn(t.apiKey,"MKTG"),this.currentCampaign=e6,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,E.sH)(this,void 0,void 0,function(){var e,t;return(0,E.YH)(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=E.zs.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||tl(this.sessionTimeout,this.lastEventTime),!e9(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ts().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=tt(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),tc=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:td(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),td=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},tf=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),th=function(){return(th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function tp(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tg(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var tm=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e;if(o!==typeof t)return!1;try{for(var a=tp(i),s=a.next();!s.done;s=a.next())if(s.value===o)return e===t}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var l=Array.isArray(e),u=Array.isArray(t);if(l!==u)return!1;if(l&&u){for(var c=0;c<e.length;c++)if(!tm(e[c],t[c]))return!1}else{if(!tm(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var d=!0;return Object.keys(e).forEach(function(r){tm(e[r],t[r])||(d=!1)}),d}return!0},ty="$set",tE="$unset",tb="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var tv=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=th({},this.identity.userProperties),r=th(th({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,o,a,s,l=r.userProperties||{};try{for(var u=tp(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=tg(c.value,2),f=d[0],h=d[1];switch(f){case ty:try{for(var p=(i=void 0,tp(Object.entries(h))),g=p.next();!g.done;g=p.next()){var m=tg(g.value,2),y=m[0],E=m[1];l[y]=E}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case tE:try{for(var b=(a=void 0,tp(Object.keys(h))),v=b.next();!v.done;v=b.next()){var y=v.value;delete l[y]}}catch(e){a={error:e}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case tb:l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return r.userProperties=l,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return th({},this.identity)},e.prototype.setIdentity=function(e){var t=th({},this.identity);this.identity=th({},e),tm(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),tT="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:self,tw=function(){function e(){this.identityStore=new tv,this.eventBridge=new tf,this.applicationContextProvider=new tc}return e.getInstance=function(t){return tT.analyticsConnectorInstances||(tT.analyticsConnectorInstances={}),tT.analyticsConnectorInstances[t]||(tT.analyticsConnectorInstances[t]=new e),tT.analyticsConnectorInstances[t]},e}(),tA=function(e){return void 0===e&&(e="$default_instance"),tw.getInstance(e)},tN=function(e,t){tA(t).identityStore.editIdentity().setUserId(e).commit()},tS=function(e,t){tA(t).identityStore.editIdentity().setDeviceId(e).commit()},t_=function(){function e(){this.name="identity",this.type="before",this.identityStore=tA().identityStore}return e.prototype.execute=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){return e.instanceName&&(this.identityStore=tA(e.instanceName).identityStore),[2]})})},e}(),tx=null,tI=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,a=n.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},tO=function(e){var t=e;return t&&void 0!==t._q},tR=function(){if("undefined"==typeof navigator)return"";var e,t,r,n,i=navigator.userLanguage;return null!=(n=null!=(r=null!=(t=null==(e=navigator.languages)?void 0:e[0])?t:navigator.language)?r:i)?n:""},tP="2.11.13",tM="amplitude-ts",tC="Web",tk="$remote",tL=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(tM,"/").concat(tP),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i,o;return(0,E.YH)(this,function(a){return t=new Date().getTime(),r=null!=(i=this.config.lastEventId)?i:-1,n=null!=(o=e.event_id)?o:r+1,this.config.lastEventId=n,e.time||(this.config.lastEventTime=t),[2,(0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:tC}),this.config.trackingOptions.language&&{language:tR()}),this.config.trackingOptions.ipAddress&&{ip:tk}),{insert_id:z(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:n,library:this.library,user_agent:this.userAgent})]})})},e}();!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(d||(d={}));var tD=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return[2,(t=r.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(r){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),tB=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),[eb,t,e.substring(0,r)].filter(
1Boolean).join("_")},tV=function(e){return"".concat(eb.toLowerCase(),"_").concat(e.substring(0,6))},tF=function(){function e(e){this.options=(0,E.Cl)({},e)}return e.prototype.isEnabled=function(){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:if(!ti())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,t.set(r,e.testValue)];case 2:return i.sent(),[4,t.get(r)];case 3:return[2,i.sent()===e.testValue];case 4:return n=i.sent(),[2,!1];case 5:return[4,t.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,E.sH)(this,void 0,void 0,function(){var r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(r=i.sent()))return[2,void 0];try{if(n=null!=(t=tU(r))?t:tj(r),void 0===n)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0];return[2,JSON.parse(n)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0]}}})})},e.prototype.getRaw=function(e){var t,r;return(0,E.sH)(this,void 0,void 0,function(){var n,i;return(0,E.YH)(this,function(o){return(i=(null!=(r=null==(t=null==(n=ti())?void 0:n.document)?void 0:t.cookie.split("; "))?r:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var r;return(0,E.sH)(this,void 0,void 0,function(){var n,i,o,a,s,l,u;return(0,E.YH)(this,function(c){try{n=null!=(r=this.options.expirationDays)?r:0,i=null!==t?n:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+24*i*36e5),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=ti())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){return[2]})})},e}(),tU=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},tj=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}};function tH(e){return e>=200&&e<300}!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(f||(f={}));var tG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,E.C6)(t,e),t.prototype.send=function(e,t){return(0,E.sH)(this,void 0,void 0,function(){var r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(r=i.sent()).text()];case 2:n=i.sent();try{return[2,this.buildResponse(JSON.parse(n))]}catch(e){return[2,this.buildResponse({code:r.status})]}}})})},t}(function(){function e(){}return e.prototype.send=function(e,t,r){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,a,s,l,u,c,d,h,p,g,m,y,E,b,v,T,w,A,N=e.code||0,S=this.buildStatus(N);switch(S){case f.Success:return{status:S,statusCode:N,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case f.Invalid:return{status:S,statusCode:N,body:{error:null!=(i=e.error)?i:"",missingField:null!=(o=e.missing_field)?o:"",eventsWithInvalidFields:null!=(a=e.events_with_invali
1d_fields)?a:{},eventsWithMissingFields:null!=(s=e.events_with_missing_fields)?s:{},eventsWithInvalidIdLengths:null!=(l=e.events_with_invalid_id_lengths)?l:{},epsThreshold:null!=(u=e.eps_threshold)?u:0,exceededDailyQuotaDevices:null!=(c=e.exceeded_daily_quota_devices)?c:{},silencedDevices:null!=(d=e.silenced_devices)?d:[],silencedEvents:null!=(h=e.silenced_events)?h:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(g=e.throttled_events)?g:[]}};case f.PayloadTooLarge:return{status:S,statusCode:N,body:{error:null!=(m=e.error)?m:""}};case f.RateLimit:return{status:S,statusCode:N,body:{error:null!=(y=e.error)?y:"",epsThreshold:null!=(E=e.eps_threshold)?E:0,throttledDevices:null!=(b=e.throttled_devices)?b:{},throttledUsers:null!=(v=e.throttled_users)?v:{},exceededDailyQuotaDevices:null!=(T=e.exceeded_daily_quota_devices)?T:{},exceededDailyQuotaUsers:null!=(w=e.exceeded_daily_quota_users)?w:{},throttledEvents:null!=(A=e.throttled_events)?A:[]}};case f.Timeout:default:return{status:S,statusCode:N}}},e.prototype.buildStatus=function(e){return tH(e)?f.Success:429===e?f.RateLimit:413===e?f.PayloadTooLarge:408===e?f.Timeout:e>=400&&e<500?f.Invalid:e>=500?f.Failed:f.Unknown},e}()),tK=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i;return(0,E.YH)(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return[2,o.sent()===t];case 4:return i=o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r;return(0,E.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return r=n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){return[2,(null==(t=this.storage)?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){return(0,E.sH)(this,void 0,void 0,function(){var r;return(0,E.YH)(this,function(n){try{null==(r=this.storage)||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){try{null==(t=this.storage)||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){return(0,E.sH)(this,void 0,void 0,function(){var e;return(0,E.YH)(this,function(t){try{null==(e=this.storage)||e.clear()}catch(e){}return[2]})})},e}(),tz=1e3,tW=function(e){function t(t){var r,n=e.call(this,null==(r=ti())?void 0:r.localStorage)||this;return n.loggerProvider=null==t?void 0:t.loggerProvider,n}return(0,E.C6)(t,e),t.prototype.set=function(t,r){return(0,E.sH)(this,void 0,void 0,function(){var n,i;return(0,E.YH)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(r)&&r.length>tz))return[3,2];return n=r.length-tz,[4,e.prototype.set.call(this,t,r.slice(0,tz))];case 1:return o.sent(),null==(i=this.loggerProvider)||i.error("Failed to save ".concat(n," events because the queue length exceeded ").concat(tz,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(tK),tq=function(e){function t(){var t;return e.call(this,null==(t=ti())?void 0:t.sessionStorage)||this}return(0,E.C6)(t,e),t}(tK),tY=function(){function e(){}return e.prototype.send=function(e,t,r){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,o,a,s,l,u,c,d,f,h,p,g,m,y,E,b,v,T,w,A,N=e.code||0,S=this.buildStatus(N);switch(S){case i.Success:return{status:S,statusCode:N,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case i.Invalid:return{status:S,statusCode:N,body:{error:null!=(o=e.error)?o:"",missingField:null!=(a=e.missing_field)?a:"",eventsWithInvalidFields:null!=(s=e.events_with_invali
1d_fields)?s:{},eventsWithMissingFields:null!=(l=e.events_with_missing_fields)?l:{},eventsWithInvalidIdLengths:null!=(u=e.events_with_invalid_id_lengths)?u:{},epsThreshold:null!=(c=e.eps_threshold)?c:0,exceededDailyQuotaDevices:null!=(d=e.exceeded_daily_quota_devices)?d:{},silencedDevices:null!=(f=e.silenced_devices)?f:[],silencedEvents:null!=(h=e.silenced_events)?h:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(g=e.throttled_events)?g:[]}};case i.PayloadTooLarge:return{status:S,statusCode:N,body:{error:null!=(m=e.error)?m:""}};case i.RateLimit:return{status:S,statusCode:N,body:{error:null!=(y=e.error)?y:"",epsThreshold:null!=(E=e.eps_threshold)?E:0,throttledDevices:null!=(b=e.throttled_devices)?b:{},throttledUsers:null!=(v=e.throttled_users)?v:{},exceededDailyQuotaDevices:null!=(T=e.exceeded_daily_quota_devices)?T:{},exceededDailyQuotaUsers:null!=(w=e.exceeded_daily_quota_users)?w:{},throttledEvents:null!=(A=e.throttled_events)?A:[]}};case i.Timeout:default:return{status:S,statusCode:N}}},e.prototype.buildStatus=function(e){return W(e)?i.Success:429===e?i.RateLimit:413===e?i.PayloadTooLarge:408===e?i.Timeout:e>=400&&e<500?i.Invalid:e>=500?i.Failed:i.Unknown},e}(),t$=function(e){function t(){var t=e.apply(this,(0,E.fX)([],(0,E.zs)(arguments),!1))||this;return t.state={done:4},t}return(0,E.C6)(t,e),t.prototype.send=function(e,t){return(0,E.sH)(this,void 0,void 0,function(){var r=this;return(0,E.YH)(this,function(n){return[2,new Promise(function(n,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===r.state.done){var e=o.responseText;try{n(r.buildResponse(JSON.parse(e)))}catch(e){n(r.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(tY),tX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,E.C6)(t,e),t.prototype.send=function(e,t){return(0,E.sH)(this,void 0,void 0,function(){var r=this;return(0,E.YH)(this,function(n){return[2,new Promise(function(n,i){var o=ti();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return n(r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return n(r.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(tY),tJ=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return(0,E.sH)(void 0,(0,E.fX)([e,t],(0,E.zs)(r),!1),void 0,function(e,t,r){var n,i,o,a,s,l,u,c,d;return void 0===r&&(r=!0),(0,E.YH)(this,function(f){switch(f.label){case 0:return n=tV(e),[4,t.getRaw(n)];case 1:if(!(i=f.sent()))return[2,{optOut:!1}];if(!r)return[3,3];return[4,t.remove(n)];case 2:f.sent(),f.label=3;case 3:return a=(o=(0,E.zs)(i.split("."),6))[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:a,userId:tZ(s),sessionId:tQ(u),lastEventId:tQ(d),lastEventTime:tQ(c),optOut:!!l}]}})})},tQ=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},tZ=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},t0="[Amplitude]",t1="".concat(t0," Form Started"),t2="".concat(t0," Form Submitted"),t3="".concat(t0," File Downloaded"),t4="session_start",t5="session_end",t6="".concat(t0," File Extension"),t8="".concat(t0," File Name"),t7="".concat(t0," Link ID"),t9="".concat(t0," Link Text"),re="".concat(t0," Link URL"),rt="".concat(t0," Form ID"),rr="".concat(t0," Form Name"),rn="".concat(t0," Form Destination"),ri="cookie",ro="US",ra=function(e){function t(t,r,n,i,o,a,s,l,u,c,f,h,p,g,m,y,E,b,v,T,w,A,N,S,_,x,I,O,R,P,M,C,k,L){void 0===n&&(n=new tD),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===f&&(f=ri),void 0===y&&(y=new D),void 0===E&&(E=d.Warn),void 0===v&&(v=!1),void 0===T&&(T=!1),void 0===N&&(N=""),void 0===S&&(S=ro),void 0===x&&(x=18e5),void 0===I&&(I=new tW({loggerProvider:y})),void 0===O&&(O={ipAddress:!0,language:!0,platform:!0}),void 0===R&&(R="fetch"),void 0===P&&(P=!1),void 0===M&&(M=!1);var B=e.call(this,{apiKey:t,storageProvider:I,transportProvider:ru(R)})||this;return B.apiKey=t,B.appVersion=r,B.cookieOptions=i,B.defaultTracking=o,B.autocapture=a,B.flushIntervalMillis=l,B.flushMaxRetries=u,B.flushQueueSize=c,B.identityStorage=f,B.ingestionMetadata=h,B.instanceName=p,B.loggerProvider=y,B.logLevel=E,B.minIdLength=b,B.offline=v,B.partnerId=w,B.plan=A,B.serverUrl=N,B.serverZone=S,B.sessionTimeout=x,B.storageProvider=I,B.trackingOptions=O,B.transport=R,B.useBatch=P,B.fetchRemoteConfig=M,B._optOut=!1,B._cookieStorage=n,B.deviceId=s,B.lastEventId=g,B.lastEventTime=m,B.optOut=T,B.sessionId=_,B.pageCounter=k,B.userId=C,B.debugLogsEnabled=L,B.loggerProvider.enable(L?d.Debug:B.logLevel),B}return(0,E.C6)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(tB(this.apiKey),e)},t}(V),rs=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return(0,E.sH)(void 0,(0,E.fX)([e],(0,E.zs)(t),!1),void 0,function(e,t,r){var n,i,o,a,s,l,u,c,d,f,h,p,g,m,y,b,v,T,w,A,N,S,_,x,I,O,R,P,M,C,k,L,D,B,V,F,U,j,H,G,K,W,q;return void 0===t&&(t={}),(0,E.YH)(this,function(Y){switch(Y.label){case 0:if(n=t.identityStorage||ri,w={},n===ri)return[3,1];return o="",[3,5];case 1:if(null==(N=null==(A=t.cookieOptions)?void 0:A.domain))return[3,2];return a=N,[3,4];case 2:return[4,rc()];case 3:a=Y.sent(),Y.label=4;case 4:o=a,Y.label=5;case 5:return i=E.Cl.apply(void 0,[(w.domain=o,w.expiration=365,w.sameSite="Lax",w.secure=!1,w.upgrade=!0,w),t.cookieOptions]),[4,tJ(e,s=rl(t.identityStorage,i),null==(_=null==(S=t.cookieOptions)?void 0:S.upgrade)||_)];case 6:return l=Y.sent(),[4,s.get(tB(e))];case 7:return u=Y.sent(),c=to(),d=null!=(P=null!=(R=null!=(O=null!=(I=null!=(x=t.deviceId)?x:c.ampDeviceId)?I:c.deviceId)?O:null==u?void 0:u.deviceId)?R:l.deviceId)?P:z(),f=null!=(M=null==u?void 0:u.lastEventId)?M:l.lastEventId,h=null!=(C=null==u?void 0:u.lastEventTime)?C:l.lastEventTime,p=null!=(L=null!=(k=t.optOut)?k:null==u?void 0:u.optOut)?L:l.optOut,g=null!=(D=null==u?void 0:u.sessionId)?D:l.sessionId,m=null!=(V=null!=(B=t.userId)?B:null==u?void 0:u.userId)?V:l.userId,r.previousSessionDeviceId=null!=(F=null==u?void 0:u.deviceId)?F:l.deviceId,r.previousSessionUserId=null!=(U=null==u?void 0:u.userId)?U:l.userId,y={ipAddress:null==(H=null==(j=t.trackingOptions)?void 0:j.ipAddress)||H,language:null==(K=null==(G=t.trackingOptions)?void 0:G.language)||K,platform:null==(q=null==(W=t.trackingOptions)?void 0:W.platform)||q},b=null==u?void 0:u.pageCounter,v=null==u?void 0:u.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(T=new ra(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,d,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,p,t.partnerId,t.plan,t.serverUrl,t.serverZone,g,t.sessionTimeout,t.storageProvider,y,t.transport,t.useBatch,t.fetchRemoteConfig,m,b,v)).storageProvider.isEnabled()];case 8:return Y.sent()||(T.loggerProvider.warn("Storage provider ".concat(T.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),T.storageProvider=new tD),[2,T]}})})},rl=function(e,t){switch(void 0===e&&(e=ri),void 0===t&&(t={}),e){case"localStorage":return new tW;case"sessionStorage":return new tq;case"none":return new tD;default:return new tF((0,E.Cl)((0,E.Cl)({},t),{expirationDays:t.expiration}))}},ru=function(e){return"xhr"===e?new t$:"beacon"===e?new tX:new tG},rc=function(e){return(0,E.sH)(void 0,void 0,void 0,function(){var t,r,n,i,o,a;return(0,E.YH)(this,function(s){switch(s.label){case 0:return[4,new tF().isEnabled()];case 1:if(!s.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=(null!=e?e:location.hostname).split("."),r=[],n="AMP_TLDTEST",i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));i=0,s.label=2;case 2:if(!(i<r.length))return[3,7];return[4,(a=new tF({domain:"."+(o=r[i])})).set(n,1)];case 3:return s.sent(),[4,a.get(n)];case 4:if(!s.sent())return[3,6];return[4,a.remove(n)];case 5:return s.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}})})},rd=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},rf="data-amp-mask",rh="*****",rp=/\b(?:\d[ -]*?){13,16}\b/,rg=/(\d{3}-?\d{2}-?\d{4})/g,rm=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,ry=function(e,t){if(void 0===t&&(t=[]),"string"!=typeof e)return"";var r,n,i=e;i=(i=(i=i.replace(rp,rh)).replace(rg,rh)).replace(rm,rh);try{for(var o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;try{i=i.replace(s,rh)}catch(e){}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},rE=function(e){if("undefined"==typeof document||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(rf)?rh:e?e(document.title):document.title},rb=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,rT)},rv=(0,E.fX)([],(0,E.zs)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),rT=function(e){var t,r=rd();if(!(null==(t=null==r?void 0:r.crypto)?void 0:t.getRandomValues))return rb(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(0,E.fX)([],(0,E.zs)(n.entries()),!1).map(function(e){var t=(0,E.zs)(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(rv[n]):rv[n]}).join("")},rw=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n,i;return(0,E.YH)(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return[2,o.sent()===t];case 4:return i=o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r;return(0,E.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return r=n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(r){return[2,(null==(t=this.storage)?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var r;return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(n){try{null==(r=this.storage)||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(r){try{null==(t=this.storage)||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(t){try{null==(e=this.storage)||e.clear()}catch(e){}return[2]})})},e}(),rA=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},rN=function(){var e,t=rd();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(
1Boolean).reduce(function(e,t){var r=t.split("=",2),n=rS(r[0]),i=rS(r[1]);return i&&(e[n]=i),e},{}):{}},rS=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},r_=function(){function e(){}return e.prototype.parse=function(){return(0,E.sH)(this,void 0,void 0,function(){return(0,E.YH)(this,function(e){return[2,(0,E.Cl)((0,E.Cl)((0,E.Cl)((0,E.Cl)({},eB),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=rN();return{utm_campaign:e[ev],utm_content:e[eT],utm_id:e[ew],utm_medium:e[eA],utm_source:e[eN],utm_term:e[eS]}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=rN();return(e={})[e_]=t[e_],e[ex]=t[ex],e[eI]=t[eI],e[eO]=t[eO],e[eR]=t[eR],e[eP]=t[eP],e[eM]=t[eM],e[eC]=t[eC],e[ek]=t[ek],e[eL]=t[eL],e[eD]=t[eD],e},e}(),rx="[Amplitude] Page Viewed",rI="AMP_PAGE_VIEW",rO=function(e){void 0===e&&(e={});var t,r,n,i=rd(),o=void 0,a=!1,s=e.trackOn,l=e.trackHistoryChanges,u=e.eventType,c=void 0===u?rx:u,d=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},f=function(e){return(0,E.sH)(void 0,void 0,void 0,function(){var t,r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:return t=d("undefined"!=typeof location&&location.href||""),n={event_type:c},r=[{}],[4,rR()];case 1:return[2,(n.event_properties=E.Cl.apply(void 0,[E.Cl.apply(void 0,r.concat([i.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":t,"[Amplitude] Page Path":"undefined"!=typeof location&&d(location.pathname)||"","[Amplitude] Page Title":rE(ry),"[Amplitude] Page URL":t.split("?")[0],"[Amplitude] Page View ID":e}]),n)]}})})},h=function(){return void 0===s||"function"==typeof s&&s()},p="undefined"!=typeof location?location.href:null,g=function(){return(0,E.sH)(void 0,void 0,void 0,function(){var e,r,i,a,s,u;return(0,E.YH)(this,function(c){switch(c.label){case 0:if(r=rM(l,e=location.href,p||"")&&h(),p=e,!r)return[3,4];if(i=void 0,n&&(i=rT(),n.set(rI,{pageViewId:i})),null==o||o.log("Tracking page view event"),null!=t)return[3,1];return a=void 0,[3,3];case 1:return u=(s=t).track,[4,f(i)];case 2:a=u.apply(s,[c.sent()]),c.label=3;case 3:c.label=4;case 4:return[2]}})})},m=function(){g()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,s){return(0,E.sH)(void 0,void 0,void 0,function(){var l,u,c;return(0,E.YH)(this,function(d){switch(d.label){case 0:if(t=s,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),a=!0,i){try{n=new rw(i.sessionStorage)}catch(e){null==o||o.debug("sessionStorage is not available in this environment.")}i.addEventListener("popstate",m),i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,r){var n=(0,E.zs)(r,3),i=n[0],o=n[1],s=n[2];e.apply(t,[i,o,s]),a&&m()}})}if(!h())return[3,2];return o.log("Tracking page view event"),l=void 0,n&&(l=rT(),n.set(rI,{pageViewId:l})),c=(u=t).track,[4,f(l)];case 1:c.apply(u,[d.sent()]),d.label=2;case 2:return[2]}})})},execute:function(e){return(0,E.sH)(void 0,void 0,void 0,function(){var t,i,a;return(0,E.YH)(this,function(l){switch(l.label){case 0:if(!("attribution"===s&&rP(e)))return[3,4];if(null==o||o.log("Enriching campaign event to page view event with campaign parameters"),t=void 0,!n)return[3,2];return[4,n.get(rI)];case 1:t=null==(i=l.sent())?void 0:i.pageViewId,l.label=2;case 2:return[4,f(t)];case 3:e.event_type=(a=l.sent()).event_type,e.event_properties=(0,E.Cl)((0,E.Cl)({},e.event_properties),a.event_properties),l.label=4;case 4:return r&&e.event_type===c&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,E.Cl)((0,E.Cl)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(e){return i&&(i.removeEventListener("popstate",m),a=!1),[2]})})}}},rR=function(){return(0,E.sH)(void 0,void 0,void 0,function(){var e;return(0,E.YH)(this,function(t){switch(t.label){case 0:return e=rA,[4,new r_().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},rP=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,r=t[u.SET]||{},n=t[u.UNSET]||{},i=(0,E.fX)((0,E.fX)([],(0,E.zs)(Object.keys(r)),!1),(0,E.zs)(Object.keys(n)),!1);return Object.keys(eB).every(function(e){return i.includes(e)})}return!1},rM=function(e,t,r){if("pathOnly"!==e)return t!==r;if(""==r)return!0;var n=new URL(t),i=new URL(r);return n.origin+n.pathname!==i.origin+i.pathname},rC=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,n){return(0,E.sH)(void 0,void 0,void 0,function(){var i;return(0,E.YH)(this,function(o){return null==(i=ti())||i.addEventListener("load",function(){if(!n)return void t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");if("undefined"!=typeof document){var i=function(e){var t=!1;r(e,"change",function(){var r,i=rL(e);t||n.track(t1,((r={})[rt]=rk(e.id),r[rr]=rk(e.name),r[rn]=i,r)),t=!0}),r(e,"submit",function(){var r,i,o=rL(e);t||n.track(t1,((r={})[rt]=rk(e.id),r[rr]=rk(e.name),r[rn]=o,r)),n.track(t2,((i={})[rt]=rk(e.id),i[rr]=rk(e.name),i[rn]=o,i)),t=!1})},o=Array.from(document.getElementsByTagName("form"));o.forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
1h(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},rk=function(e){if("string"==typeof e)return e},rL=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},rD=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,n){return(0,E.sH)(void 0,void 0,void 0,function(){var i;return(0,E.YH)(this,function(o){return null==(i=ti())||i.addEventListener("load",function(){if(!n)return void t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&r(e,"click",function(){var r;a&&n.track(t3,((r={})[t6]=a,r[t8]=t.pathname,r[t7]=e.id,r[t9]=e.text,r[re]=e.href,r))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,a=Array.from(document.getElementsByTagName("a"));a.forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},rB=!1,rV=function(e){if(!rB&&void 0===e.defaultTracking){var t="`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.";e.loggerProvider.warn(t),rB=!0}},rF=function(){var e="@amplitude/plugin-network-checker-browser",t="before",r=ti(),n=[],i=function(e,t){r&&(r.addEventListener(e,t),n.push({type:e,handler:t}))},o=function(){n.forEach(function(e){var t=e.type,n=e.handler;r&&r.removeEventListener(t,n)}),n=[]};return{name:e,type:t,setup:function(e,t){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,i("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),i("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(e){return o(),[2]})})}}};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(h||(h={})),function(e){e.US="US",e.EU="EU"}
1(p||(p={}));var rU="Network error occurred, remote config fetch failed",rj="Remote config successfully fetched",rH="Remote config fetch rejected due to exceeded retry count",rG="Remote config fetch rejected due to timeout after 5 seconds",rK="Unexpected error occurred",rz="https://sr-client-cfg.amplitude.com/config",rW="https://sr-client-cfg.stag2.amplitude.com/config",rq="https://sr-client-cfg.eu.amplitude.com/config",rY=function(){function e(e){var t=e.localConfig,r=e.configKeys,n=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,r){return(0,E.sH)(n,void 0,void 0,function(){var n,i,o;return(0,E.YH)(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,this.fetchWithTimeout(r)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-n,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-n,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,E.sH)(n,void 0,void 0,function(){var t,r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:return t=new AbortController,r=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return n=i.sent(),clearTimeout(r),[2,n]}})})},this.fetchRemoteConfig=function(e,t){return(0,E.sH)(n,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c,d,f;return(0,E.YH)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:rH})];if(e.aborted)return[2,this.completeRequest({err:rG})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);p.label=1;
1case 1:p.trys.push([1,3,,4]),r=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(n=(0,E.Ju)(this.configKeys)).next();!i.done;i=n.next())o=i.value,r.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return t&&r.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(r.toString()),this.attempts+=1,[4,fetch(s,(0,E.Cl)((0,E.Cl)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:rK})];switch(new tY().buildStatus(l.status)){case h.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case h.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:rU})]}case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:rG})];return[2,this.completeRequest({err:null!=(f=u.message)?f:rK})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,E.sH)(n,void 0,void 0,function(){var r=this;return(0,E.YH)(this,function(n){switch(n.label){case 0:return[4,new Promise(function(e){return setTimeout(e,r.attempts*r.retryTimeout)})];case 1:return n.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,E.sH)(n,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return t=r.sent(),this.completeRequest({success:rj}),[2,t]}})})},this.localConfig=t,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===p.STAGING?rW:this.localConfig.serverZone===p.EU?rq:rz},e.prototype.completeRequest=function(e){var t=e.err,r=e.success;if(t)throw Error(t);r&&this.localConfig.loggerProvider.log(r)},e}(),r$=function(e){var t=e.localConfig,r=e.configKeys;return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(e){return[2,new rY({localConfig:t,configKeys:r})]})})},rX=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,E.sH)(this,void 0,void 0,function(){var e;return(0,E.YH)(this,function(t){switch(t.label){case 0:return e=this,[4,r$({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){return(0,E.sH)(this,void 0,void 0,function(){var e,t,r,n,i,o,a;return(0,E.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),!(t=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:t=s.sent(),s.label=2;case 2:return e=t,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(e,null,2)),e&&"autocapture"in e&&("boolean"==typeof e.autocapture&&(this.config.autocapture=e.autocapture),"object"==typeof e.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=e.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,E.Cl)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},e.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,E.Cl)((0,E.Cl)({},this.config.autocapture),e.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!=(n=(a=this.config).requestMetadata)||(a.requestMetadata=new j),(null==(i=this.remoteConfigFetch)?void 0:i.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null==(o=this.remoteConfigFetch)?void 0:o.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return r=s.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",r),[3,4];case 4:return[2,this.config]}})})},e}(),rJ=function(e){return(0,E.sH)(void 0,void 0,void 0,function(){var t;return(0,E.YH)(this,function(r){switch(r.label){case 0:return[4,(t=new rX(e)).initialize()];case 1:return r.sent(),[2,t]}})})},rQ=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],rZ="data-amp-track-",r0=["div","span","h1","h2","h3","h4","h5","h6"],r1=150,r2=r(13040),r3=r.n(r2);function r4(e,t){return new(r3())(function(r){e.subscribe({next:function(e){t(e).then(function(e){return r.next(e)}).catch(function(e){return r.error(e)})},error:function(e){r.error(e)},complete:function(){r.complete()}})})}function r5(e,t){return new(r3())(function(r){var n=!1,i=new Set,o=function(){var e,t;n=!0;try{for(var r=(0,E.Ju)(i),o=r.next();!o.done;o=r.next()){var a=o.value;try{a.unsubscribe()}catch(e){}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.clear()},a=function(e){var t=e.subscribe({next:function(e){n||r.next(e)},error:function(e){n||(n=!0,r.error(e),o())},complete:function(){i.delete(t),n||0!==i.size||(r.complete(),o(),n=!0)}});i.add(t)};return a(e),a(t),o})}function r6(e){var t=new Set,r=null;function n(){null==r||r.unsubscribe(),r=null,t.clear()}return new(r3())(function(i){return t.add(i),null===r&&(r=e.subscribe({next:function(e){try{for(var r,n,i,o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;null==(i=s.next)||i.call(s,e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},error:function(e){try{for(var r,i,o,a=(0,E.Ju)(t),s=a.next();!s.done;s=a.next()){var l=s.value;null==(o=l.error)||o.call(l,e)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}n()},complete:function(){try{for(var e,r,i,o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;null==(i=s.complete)||i.call(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n()}})),function(){t.delete(i),0===t.size&&r&&(r.unsubscribe(),r=null)}})}var r8="https://app.amplitude.com",r7={US:r8,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},r9="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.3.js.gz",ne=function(e){return document.querySelector('script[src="'.concat(CSS.escape(e),'"]'))?Promise.resolve({status:!0}):new Promise(function(t,r){var n;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),null==(n=document.head)||n.appendChild(i)}catch(e){r(e)}})};function nt(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var nr="__AMPLITUDE_MESSENGER_INSTANCE__",nn="__AMPLITUDE_MESSENGER__",ni=function(){function e(e){var t=(void 0===e?{}:e).origin,r=void 0===t?r8:t;this[g]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=r}return e.prototype.notify=function(e){var t,r,n,i;null==(r=null==(t=this.logger)?void 0:t.debug)||r.call(t,"Message sent: ",JSON.stringify(e)),null==(i=null==(n=window.opener)?void 0:n.postMessage)||i.call(n,e,this.endpoint)},e.prototype.sendRequest=function(e,t,r){var n=this;void 0===r&&(r={timeout:15e3});var i=nt(),o={id:i,action:e,args:t};return new Promise(function(t,a){n.requestCallbacks[i]={resolve:t,reject:a},n.notify(o),r.timeout>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete n.requestCallbacks[i]},r.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null==(t=this.logger)||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.registerActionHandler=function(e,t){this.actionHandlers.has(e)&&(null==(o=null==(i=this.logger)?void 0:i.warn)||o.call(i,"Overwriting existing action handler for: ".concat(e))),this.actionHandlers.set(e,t);var r,n,i,o,a=this.pendingMessages.get(e);if(a){this.pendingMessages.delete(e);try{for(var s=(0,E.Ju)(a),l=s.next();!l.done;l=s.next()){var u=l.value;t(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}},e.prototype.loadScriptOnce=function(e){return(0,E.sH)(this,void 0,void 0,function(){var t,r,n;return(0,E.YH)(this,function(i){switch(i.label){case 0:if(t=this.scriptLoadPromises.get(e))return[2,t];r=ne(e).then(function(){}),this.scriptLoadPromises.set(e,r),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r];case 2:return i.sent(),[3,4];case 3:throw n=i.sent(),this.scriptLoadPromises.delete(e),n;case 4:return[2]}})})},e.prototype.setup=function(e){var t,r,n=this,i=void 0===e?{}:e,o=i.logger,a=i.endpoint;o&&(this.logger=o),a&&this.endpoint===r8&&(this.endpoint=a),this.isSetup||(this.isSetup=!0,null==(r=null==(t=this.logger)?void 0:t.debug)||r.call(t,"Setting up messenger"),this.messageHandler=function(e){if(null==(r=null==(t=n.logger)?void 0:t.debug)||r.call(t,"Message received: ",JSON.stringify(e)),n.endpoint===e.origin){var t,r,i,o,a,s=e.data,l=null==s?void 0:s.action;if(l)if("id"in s&&s.id)null==(o=null==(i=n.logger)?void 0:i.debug)||o.call(i,"Received Response to previous request: ",JSON.stringify(e)),n.handleResponse(s);else{if("ping"===l)return void n.notify({action:"pong"});var u=n.actionHandlers.get(l);if(u)u(s.data);else{var c=null!=(a=n.pendingMessages.get(l))?a:[];c.push(s.data),n.pendingMessages.set(l,c)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var e=H();(null==e?void 0:e[nn])===this&&delete e[nn]},e}();function no(e){return"object"==typeof e&&null!==e&&nr in e&&!0===e[nr]}function na(e){var t=H(),r=null==t?void 0:t[nn];if(no(r))return r;var n=new ni(e);return t&&(t[nn]=n),n}g=nr;var ns="__AMPLITUDE_BACKGROUND_CAPTURE__";function nl(e,t){var r,n=e;
1if(!0!==n[ns]){n[ns]=!0;var i=null!=(r=null==t?void 0:t.scriptUrl)?r:r9,o=null,a=function(t,r){var n,i;"background-capture-complete"===t&&(null==(i=null==(n=e.logger)?void 0:n.debug)||i.call(n,"Background capture complete"),e.notify({action:"background-capture-complete",data:r}))};e.registerActionHandler("initialize-background-capture",function(){null==(r=null==(t=e.logger)?void 0:t.debug)||r.call(t,"Initializing background capture (external script)");var t,r,n=new URL(i,e.endpoint).toString();e.loadScriptOnce(n).then(function(){var t,r,n;null==(r=null==(t=e.logger)?void 0:t.debug)||r.call(t,"Background capture script loaded (external)"),o=null==(n=null==window?void 0:window.amplitudeBackgroundCapture)?void 0:n.call(window,{messenger:e,onBackgroundCapture:a}),e.notify({action:"background-capture-loaded"})}).catch(function(){var t;null==(t=e.logger)||t.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var e;null==(e=null==o?void 0:o.close)||e.call(o),o=null})}}var nu="1.27.1",nc="@amplitude/plugin-autocapture-browser",nd="[Amplitude] Element Clicked",nf="[Amplitude] Element Changed",nh="[Amplitude] Element ID",np="[Amplitude] Element Class",ng="[Amplitude] Element Tag",nm="[Amplitude] Element Text",ny="[Amplitude] Element Hierarchy",nE="[Amplitude] Element Href",nb="[Amplitude] Element Position Left",nv="[Amplitude] Element Position Top",nT="[Amplitude] Element Aria Label",nw="[Amplitude] Element Attributes",nA="[Amplitude] Element Path",nN="[Amplitude] Element Parent Label",nS="[Amplitude] Page URL",n_="[Amplitude] Page Title",nx="[Amplitude] Viewport Height",nI="[Amplitude] Viewport Width",nO="[Amplitude] Max Page X",nR="[Amplitude] Max Page Y",nP="[Amplitude] Page View ID",nM="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",nC="amp-visual-tagging-selector-highlight",nk="data-amp-mask-attributes",nL=25,nD=128,nB="AMP_PAGE_VIEW",nV=18e3,nF=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},nU=function(e,t){var r=e;try{r=decodeURI(e)}catch(e){null==t||t.error("Malformed URI sequence: ",e)}return r},nj=["input","select","textarea"],nH=function(e,t){var r,n=null==(r=null==window?void 0:window.getComputedStyle)?void 0:r.call(window,e);return(null==n?void 0:n.getPropertyValue("cursor"))==="pointer"&&"click"===t},nG=function(e){var t=e.pageUrlAllowlist,r=e.pageUrlExcludelist;return!(r&&r.length>0&&nF(window.location.href,r))&&!!nF(window.location.href,t)},nK=function(e,t,r){return void 0===r&&(r=!1),function(n,i){var o,a,s=e.shouldTrackEventResolver,l=null==(a=null==(o=null==i?void 0:i.tagName)?void 0:o.toLowerCase)?void 0:a.call(o);if(!l)return!1;if(s)return s(n,i);if(!nG(e))return!1;var u=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var c=nH(i,n);if(r&&c)return!0;if(t&&!t.some(function(e){var t;return!!(null==(t=null==i?void 0:i.matches)?void 0:t.call(i,e))}))return!1;switch(l){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:if(c)return!0;return"click"===n}}},nz=function(e){var t,r,n,i=null==(r=null==(t=null==e?void 0:e.tagName)?void 0:t.toLowerCase)?void 0:r.call(t),o=e instanceof HTMLElement&&(null==(n=e.getAttribute("contenteditable"))?void 0:n.toLowerCase())==="true";return!nj.includes(i)&&!o},nW=function(e){return e?e.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length>0&&"id"!==e&&"class"!==e}):[]},nq=function(e,t){return Object.entries(e).reduce(function(e,r){var n=(0,E.zs)(r,2),i=n[0],o=n[1];if(i.startsWith(t)){var a=i.replace(t,"");a&&(e[a]=o||"")}return e},{})},nY=function(e){return null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},n$=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return nY(n)||(t[r]=n),t},{})},nX=function(){var e;try{var t=H(),r=null==(e=null==t?void 0:t.sessionStorage)?void 0:e.getItem(nB);if(!r)return;var n=JSON.parse(r);if("string"==typeof n.pageViewId)return n.pageViewId}catch(e){}},nJ=function(e,t){return e?t.some(function(t){var r;return null==(r=null==e?void 0:e.matches)?void 0:r.call(e,t)})?e:nJ(null==e?void 0:e.parentElement,t):null},nQ=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor};function nZ(e){return"click"===e.type||"change"===e.type}!function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"}(m||(m={}));var n0="__AMPLITUDE_VISUAL_TAGGING__";function n1(e,t){var r=e;if(!0!==r[n0]){r[n0]=!0;
1var n=t.dataExtractor,i=t.isElementSelectable,o=t.cssSelectorAllowlist,a=t.actionClickAllowlist,s=null,l=function(t){e.notify({action:"element-selected",data:t})},u=function(t,r){"selector-mode-changed"===t?e.notify({action:"track-selector-mode-changed",data:r}):"selector-moved"===t&&e.notify({action:"track-selector-moved",data:r})};e.registerActionHandler("initialize-visual-tagging-selector",function(t){e.loadScriptOnce(nM).then(function(){var r;s=null==(r=null==window?void 0:window.amplitudeVisualTaggingSelector)?void 0:r.call(window,{getEventTagProps:n.getEventTagProps,isElementSelectable:function(e){return!i||i((null==t?void 0:t.actionType)||"click",e)},onTrack:u,onSelect:l,visualHighlightClass:nC,messenger:e,cssSelectorAllowlist:o,actionClickAllowlist:a,extractDataFromDataSource:n.extractDataFromDataSource,dataExtractor:n,diagnostics:{autocapture:{version:nu}}}),e.notify({action:"selector-loaded"})}).catch(function(){var t;null==(t=e.logger)||t.warn("Failed to initialize visual tagging selector")})}),e.registerActionHandler("close-visual-tagging-selector",function(){var e;null==(e=null==s?void 0:s.close)||e.call(s)})}}function n2(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackEvent,i=e.evaluateTriggers;return r.clickObservable.filter(nQ).filter(function(e){return n("click",e.closestTrackedAncestor)}).map(function(e){return i(e)}).subscribe(function(e){null==t||t.track(nd,e.targetElementProperties)})}function n3(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackEvent,o=e.evaluateTriggers;return r.changeObservable.filter(nQ).filter(function(e){return i("change",e.closestTrackedAncestor)}).map(function(e){return o(e)}).subscribe(function(e){null==t||t.track(nf,n("change",e.closestTrackedAncestor))})}function n4(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.getEventProperties,o=e.shouldTrackEvent,a=e.shouldTrackActionClick,s=r.clickObservable,l=r.mutationObservable,u=r.navigateObservable,c=s.filter(function(e){return!o("click",e.closestTrackedAncestor)}).map(function(e){var t=nJ(e.event.target,n.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=i(e.type,e.closestTrackedAncestor)),e}).filter(nQ).filter(function(e){return a("click",e.closestTrackedAncestor)}),d=u?r5(l,u):l,f=r5(c,d),h=null,p=null;return r4(f,function(e){if(h&&(clearTimeout(h),h=null),"click"===e.type)p=e,h=setTimeout(function(){h=null,p=null},500);else if(p){var t=p;return p=null,Promise.resolve(t)}return Promise.resolve(null)}).subscribe(function(e){e&&(null==t||t.track(nd,i("click",e.closestTrackedAncestor)))})}function n5(e){e.amplitude;var t=e.allObservables.scrollObservable,r={maxX:0,maxY:0},n=t.subscribe(function(){var e,t,n,i,o=H(),a=Math.floor(null!=(t=null!=(e=null==o?void 0:o.scrollX)?e:null==o?void 0:o.pageXOffset)?t:0),s=Math.floor(null!=(i=null!=(n=null==o?void 0:o.scrollY)?n:null==o?void 0:o.pageYOffset)?i:0);r.maxX=Math.max(r.maxX,a),r.maxY=Math.max(r.maxY,s)});return{unsubscribe:function(){n.unsubscribe()},getState:function(){return r},reset:function(){r.maxX=0,r.maxY=0}}}H();var n6=function(){return new(r3())(function(e){var t=new MutationObserver(function(t){e.next(t)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},n8=function(e){return void 0===e&&(e="click"),new(r3())(function(t){var r,n=function(e){t.next(e)};return null==(r=H())||r.document.addEventListener(e,n,{capture:!0}),function(){var t;null==(t=H())||t.document.removeEventListener(e,n,{capture:!0})}})},n7=function(){return new(r3())(function(e){var t,r=function(t){e.next(t)};return null==(t=H())||t.addEventListener("scroll",r),function(){var e;null==(e=H())||e.removeEventListener("scroll",r)}})},n9=function(e,t){return new(r3())(function(r){var n,i=H();if(!(null==i?void 0:i.IntersectionObserver))return function(){};var o=new IntersectionObserver(function(e){e.forEach(function(e){r.next(e)})},{root:null,rootMargin:"0px",threshold:1}),a=t.join(",");(null!=(n=null==i?void 0:i.document.querySelectorAll(a))?n:[]).forEac
1h(function(e){o.observe(e)});var s=e.subscribe(function(e){return e.event.forEach(function(e){return e.addedNodes.forEach(function(e){e instanceof Element&&(e.matches(a)&&o.observe(e),e.querySelectorAll(a).forEach(function(e){o.observe(e)}))})})});return function(){s.unsubscribe(),o.disconnect()}})},ie=function(e,t){try{if("[Amplitude] Element Text"===t.subprop_key)return"is"===t.subprop_op&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===t.subprop_key)return"autotrack css match"===t.subprop_op&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){console.error("Error matching event to filter",e)}return!1},it=function(e,t){try{if("DOM_ELEMENT"===e.sourceType){var r=document.documentElement;if(e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector)return r.querySelector(e.selector);return r}}catch(e){}},ir=function(e,t,r){e.forEach(function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var n=r.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=n}})},ii={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},io=function(e){var t,r,n,i,o=Object.values(ii).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return o;try{for(var a=(0,E.Ju)(e),s=a.next();!s.done;s=a.next()){var l=s.value;try{try{for(var u=(n=void 0,(0,E.Ju)(l.definition)),c=u.next();!c.done;c=u.next()){var d=ii[c.value.event_type];d&&o[d].add(l.id)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(e){console.warn("Skipping Labeled Event due to malformed definition",null==l?void 0:l.id,e)}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},ia=function(e){var t,r,n,i,o=new Map;try{for(var a=(0,E.Ju)(e),s=a.next();!s.done;s=a.next()){var l=s.value;try{for(var u=(n=void 0,(0,E.Ju)(l.conditions)),c=u.next();!c.done;c=u.next()){var d=c.value;if("LABELED_EVENT"===d.type){var f=d.match.eventId,h=o.get(f);h||(h=[],o.set(f,h)),h.push(l)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},is=function(e,t){return t.filter(function(t){return t.definition.some(function(t){return ii[t.event_type]===e.type&&t.filters.every(function(t){return ie(e,t)})})})},il=function(e,t){var r,n,i,o,a=new Set;try{for(var s=(0,E.Ju)(e),l=s.next();!l.done;l=s.next()){var u=l.value,c=t.get(u.id);if(c)try{for(var d=(i=void 0,(0,E.Ju)(c)),f=d.next();!f.done;f=d.next()){var h=f.value;a.add(h)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Array.from(a)},iu=function(){function e(e,t,r,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=r,this.options=n}return e.prototype.evaluate=function(e){var t,r,n=this.options.pageActions;if(!n)return e;var i=il(is(e,Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return n.labeledEvents[e]})),this.labeledEventToTriggerMap);try{for(var o=(0,E.Ju)(i),a=o.next();!a.done;a=o.next()){var s=a.value;ir(s.actions,e,this.dataExtractor)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=r},e}(),ic=function(e,t,r,n){return new iu(e,t,r,n)},id="data-amp-mask",ih="*****",ip=/\b(?:\d[ -]*?){13,16}\b/,ig=/(\d{3}-?\d{2}-?\d{4})/g,im=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,iy=function(e,t){if(void 0===t&&(t=[]),"string"!=typeof e)return"";var r,n,i=e;i=(i=(i=i.replace(ip,ih)).replace(ig,ih)).replace(im,ih);try{for(var o=(0,E.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;try{i=i.replace(s,ih)}catch(e){}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},iE=function(e){if("undefined"==typeof document||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(id)?ih:e?e(document.title):document.title},ib=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",nk,id]),iv=["type"],iT=["svg","path","g"],iw=["password","hidden"];function iA(e,t){if(null===e)return null;var r,n,i,o,a,s,l=String(e.tagName).toLowerCase(),u={tag:l},c=Array.from(null!=(o=null==(i=e.parentElement)?void 0:i.children)?o:[]);c.length&&(u.index=c.indexOf(e),u.indexOfType=c.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var d=null==(s=null==(a=e.previousElementSibling)?void 0:a.tagName)?void 0:s.toLowerCase();d&&(u.prevSib=String(d));var f=e.getAttribute("id");f&&(u.id=String(f));var h=Array.from(e.classList);h.length&&(u.classes=h);var p={},g=Array.from(e.attributes).filter(function(e){return!ib.has(e.name)}),m=!nz(e);if(!iw.includes(String(e.getAttribute("type")))&&!iT.includes(l))try{for(var y=(0,E.Ju)(g),b=y.next();!b.done;b=y.next()){var v=b.value;if(!m||iv.includes(v.name)){if(t.has(v.name)){p[v.name]=ih;continue}p[v.name]=String(v.value).substring(0,nD)}}}catch(e){r={error:e}}finally{try{b&&!b.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}return Object.keys(p).length&&(u.attrs=p),u}function iN(e){var t=[];if(!e)return t;
1t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}var iS=function(){function e(e,t){this.value=e,this.optimized=t}return e.prototype.toString=function(){return this.value},e}(),i_=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var r=[],n=e;n;){var i=ix(n,!!t,n===e);if(!i||(r.push(i),i.optimized))break;n=n.parentElement}return r.reverse(),r.join(" > ")},ix=function(e,t,r){if(e.nodeType!==Node.ELEMENT_NODE)return null;var n,i,o=e.getAttribute("id");if(t){if(o)return new iS(c(o),!0);var a=e.tagName.toLowerCase();if("body"===a||"head"===a||"html"===a)return new iS(a,!0)}var s=e.tagName.toLowerCase();if(o)return new iS(s+c(o),!0);var l=e.parentNode;if(!l||l.nodeType===Node.DOCUMENT_NODE)return new iS(s,!0);function u(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map(function(e){return"$"+e}):[]}function c(e){return"#"+CSS.escape(e)}for(var d=u(e),f=!1,h=!1,p=-1,g=-1,m=l.children,y=0;m&&(-1===p||!h)&&y<m.length;++y){var b=m[y];if(b.nodeType===Node.ELEMENT_NODE){if(g+=1,b===e){p=g;continue}if(!h&&b.tagName.toLowerCase()===s){f=!0;var v=new Set(d);if(!v.size){h=!0;continue}for(var T=u(b),w=0;w<T.length;++w){var A=T[w];if(v.has(A)&&(v.delete(A),!v.size)){h=!0;break}}}}}var N=s;if(r&&"input"===s.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(N+="[type="+CSS.escape(e.getAttribute("type")||"")+"]"),h)N+=":nth-child("+String(p+1)+")";else if(f)try{for(var S=(0,E.Ju)(d),_=S.next();!_.done;_=S.next()){var x=_.value;N+="."+CSS.escape(x.slice(1))}}catch(e){n={error:e}}finally{try{_&&!_.done&&(i=S.return)&&i.call(S)}finally{if(n)throw n.error}}return new iS(N,!1)},iI=function(){return function(e,t){var r,n,i,o=this;this.replaceSensitiveString=function(e){return iy(e,o.additionalMaskTextPatterns)},this.getHierarchy=function(e){var t,r,n,i,a=performance.now(),s=[];if(!e)return[];for(var l=iN(e),u=new Map,c=l.length-1;c>=0;c--){var d=l[c];if(d){var f=nW(d.getAttribute(nk)),h=c===l.length-1?[]:null!=(n=u.get(l[c+1]))?n:new Set,p=new Set((0,E.fX)((0,E.fX)([],(0,E.zs)(h),!1),(0,E.zs)(f),!1));u.set(d,p)}}s=l.map(function(e){var t;return iA(e,null!=(t=u.get(e))?t:new Set)});var g=function(e){(null==e?void 0:e.attrs)&&Object.entries(e.attrs).forEach(function(t){var r=(0,E.zs)(t,2),n=r[0],i=r[1];e.attrs&&(e.attrs[n]=o.replaceSensitiveString(i))})};try{for(var m=(0,E.Ju)(s),y=m.next();!y.done;y=m.next()){var b=y.value;g(b)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}var v=performance.now();return null==(i=o.diagnosticsClient)||i.recordHistogram("autocapturePlugin.getHierarchy",v-a),s},this.getNearestLabel=function(e){var t,r=e.parentElement;if(!r)return"";try{t=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}return t?o.getText(t):o.getNearestLabel(r)},this.getElementPath=function(e){if(!e)return"";var t,r=performance.now(),n=i_(e),i=performance.now();return null==(t=o.diagnosticsClient)||t.recordHistogram("autocapturePlugin.getElementPath",i-r),n},this.getEventProperties=function(e,t,r){var n,i,a,s,l=null==(a=null==(i=null==t?void 0:t.tagName)?void 0:i.toLowerCase)?void 0:a.call(i),u="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},c=o.getHierarchy(t),d=null==(s=c[0])?void 0:s.attrs,f=o.getNearestLabel(t),h=nq(null!=d?d:{},r),p=((n={})[ny]=c,n[ng]=l,n[nm]=o.getText(t),n[nb]=null==u.left?null:Math.round(u.left),n[nv]=null==u.top?null:Math.round(u.top),n[nw]=h,n[nA]=o.getElementPath(t),n[nN]=f,n[nS]=nU(window.location.href.split("?")[0]),n[n_]=iE(o.replaceSensitiveString),n[nx]=window.innerHeight,n[nI]=window.innerWidth,n),g=nX();if(g&&(p[nP]=g),p[nh]=t.getAttribute("id")||"",p[np]=t.getAttribute("class"),p[nT]=null==d?void 0:d["aria-label"],"a"===l&&"click"===e&&t instanceof HTMLAnchorElement){var m=t.href.substring(0,nD);p[nE]=o.replaceSensitiveString(m)}return n$(p)},this.addTypeAndTimestamp=function(e,t){return{event:e,timestamp:Date.now(),type:t}},this.addAdditionalEventProperties=function(e,t,r,n,i){void 0===i&&(i=!1);var a=o.addTypeAndTimestamp(e,t);if(nZ(a)&&null!==a.event.target){if(i&&nH(a.event.target,a.type))return a.closestTrackedAncestor=a.event.target,a.targetElementProperties=o.getEventProperties(a.type,a.closestTrackedAncestor,n),a;var s=nJ(a.event.target,r);s&&(a.closestTrackedAncestor=s,a.targetElementProperties=o.getEventProperties(a.type,s,n))}return a},this.extractDataFromDataSource=function(e,t){if("DOM_ELEMENT"===e.sourceType){var r=it(e,t);if(r){if("TEXT"===e.elementExtractType)return o.getText(r);if("ATTRIBUTE"===e.elementExtractType&&e.attribute)return r.getAttribute(e.attribute)}}},this.getTextWithMaskedDescendants=function(e){var t,r,n="[".concat(id,"], [contenteditable]");if(!e.querySelector(n))return e.innerText;var i="",a=Array.from(e.childNodes);try{for(var s=(0,E.Ju)(a),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType===Node.TEXT_NODE){i+=u.textContent||"";continue}if(u instanceof Element){if(u.hasAttribute(id)||u.hasAttribute("contenteditable")){i+=ih;continue}i+=o.getTextWithMaskedDescendants(u)}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return i},this.getText=function(e){if(null!==e.closest("[".concat(id,"]")))return ih;var t="";return t=e.querySelector("[".concat(id,"], [contenteditable]"))?o.getTextWithMaskedDescendants(e):e.innerText||"",o.replaceSensitiveStr
1ing(t.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(e){if(!e)return{};var t,r,n,i=null==(n=null==(r=null==e?void 0:e.tagName)?void 0:r.toLowerCase)?void 0:n.call(r);return n$(((t={})[ng]=i,t[nm]=o.getText(e),t[nS]=window.location.href.split("?")[0],t))},this.diagnosticsClient=null==t?void 0:t.diagnosticsClient;var a=null!=(i=e.maskTextRegex)?i:[],s=[];try{for(var l=(0,E.Ju)(a),u=l.next();!u.done;u=l.next()){var c=u.value;if(s.length>=nL)break;if(c instanceof RegExp)s.push(c);else if("pattern"in c&&"string"==typeof c.pattern)try{s.push(RegExp(c.pattern,"i"))}catch(e){}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.additionalMaskTextPatterns=s}}();function iO(e){var t=e.allObservables,r=e.onExposure,n=e.dataExtractor,i=e.exposureDuration,o=void 0===i?r1:i,a=new Map,s=new Map,l=t.exposureObservable.subscribe(function(e){var t=e,i=t.target;if(t.isIntersecting){if(!a.get(i)){var l=setTimeout(function(){a.set(i,!0),r(n.getElementPath(i)),s.set(i,null)},o);s.set(i,l)}}else if(!t.isIntersecting&&t.intersectionRatio<1){var l=s.get(i);l&&(clearTimeout(l),s.set(i,null))}});return{unsubscribe:function(){l.unsubscribe()},reset:function(){s.forEach(function(e){e&&clearTimeout(e)}),s.clear(),a.clear()}}}function iR(e){var t,r,n,i,o,a,s=e.amplitude,l=e.scrollTracker,u=e.currentElementExposed,c=e.elementExposedForPage,d=e.exposureTracker,f=e.isPageEnd,h=e.lastScroll,p=l.getState(),g=H(),m=null!=(r=null==g?void 0:g.innerWidth)?r:0,y=null!=(n=null==g?void 0:g.innerHe
1ight)?n:0,E=((t={})[nS]=nU(null!=(a=null==(o=null==(i=null==g?void 0:g.location)?void 0:i.href)?void 0:o.split("?")[0])?a:""),t[nO]=p.maxX+m,t[nR]=p.maxY+y,t[nx]=y,t[nI]=m,t["[Amplitude] Element Exposed"]=Array.from(u),t),b=nX();if(b&&(E[nP]=b),0===u.size&&p.maxX===h.maxX&&p.maxY===h.maxY){f&&(l.reset(),c.clear(),null==d||d.reset());return}null==s||s.track("[Amplitude] Viewport Content Updated",E),h.maxX=p.maxX,h.maxY=p.maxY,u.clear(),f&&(l.reset(),c.clear(),null==d||d.reset())}function iP(e,t,r,n){if(!t.has(e)){t.add(e),r.add(e);var i=Array.from(r),o=JSON.stringify(i);o.length>=nV&&n(!1)}}!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(y||(y={}));var iM=function(e,t){void 0===e&&(e={}),null==t||t.diagnosticsClient.setTag("plugin.autocapture.version",nu);var r,n,i,o,a,s,l,u,c,d,f,h,p,g=e.dataAttributePrefix,m=void 0===g?rZ:g,b=e.visualTaggingOptions,v=void 0===b?{enabled:!0}:b;e.cssSelectorAllowlist=null!=(r=e.cssSelectorAllowlist)?r:rQ,e.actionClickAllowlist=null!=(n=e.actionClickAllowlist)?n:r0,e.debounceTime=null!=(i=e.debounceTime)?i:0;var T=(null==(o=e.viewportContentUpdated)?void 0:o.enabled)!==!1,w=null!=(l=null!=(s=null==(a=e.viewportContentUpdated)?void 0:a.exposureDuration)?s:e.exposureDuration)?l:r1;e.viewportContentUpdated=(0,E.Cl)((0,E.Cl)({},e.viewportContentUpdated),{exposureDuration:w}),e.pageUrlExcludelist=null==(u=e.pageUrlExcludelist)?void 0:u.reduce(function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(e){console.warn("Invalid regex pattern: ".concat(t.pattern),e)}return e},[]);var A=nc,N="enrichment",S=[],_=new iI(e,t),x=new Set,I=new Set,O=function(){var t,r,n=r6(n8().map(function(t){return _.addAdditionalEventProperties(t,"click",e.cssSelectorAllowlist,m)})),i=r6(new(r3())(function(t){var r,n=function(r){var n=_.addAdditionalEventProperties(r,"change",e.cssSelectorAllowlist,m);t.next(n)};return null==(r=H())||r.document.addEventListener("change",n,{capture:!0}),function(){var e;return null==(e=H())?void 0:e.document.removeEventListener("change",n)}}));window.navigation&&(r=r6(new(r3())(function(t){var r=function(r){var n=_.addAdditionalEventProperties(r,"navigate",e.cssSelectorAllowlist,m);t.next(n)};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}})));var o=r6(n6().map(function(t){return _.addAdditionalEventProperties(t,"mutation",e.cssSelectorAllowlist,m)})),a=n7(),s=n9(o,e.cssSelectorAllowlist);return(t={})[y.ChangeObservable]=i,t[y.ClickObservable]=n,t[y.MutationObservable]=o,t[y.NavigateObservable]=r,t[y.ScrollObservable]=a,t[y.ExposureObservable]=s,t},R=io(Object.values(null!=(d=null==(c=e.pageActions)?void 0:c.labeledEvents)?d:{})),P=ia(null!=(h=null==(f=e.pageActions)?void 0:f.triggers)?h:[]),M=ic(R,P,_,e),C=function(t){var r,n;t&&(e.pageActions=(0,E.Cl)((0,E.Cl)({},e.pageActions),t),R=io(Object.values(null!=(r=e.pageActions.labeledEvents)?r:{})),P=ia(null!=(n=e.pageActions.triggers)?n:[]),M.update(R,P,e))},k=function(t,r){return(0,E.sH)(void 0,void 0,void 0,function(){var n,i,o,a,s,l,u,c,d,f,h,g,b,N,R,P,k,L,D,B,V;return(0,E.YH)(this,function(F){return"undefined"==typeof document||(n=!1,i={maxX:void 0,maxY:void 0},t.fetchRemoteConfig&&(t.remoteConfigClient?t.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(e){C(e)}):t.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),o=nK(e,e.cssSelectorAllowlist),a=nK(e,e.actionClickAllowlist),l=n2({allObservables:s=O(),amplitude:r,shouldTrackEvent:o,evaluateTriggers:M.evaluate.bind(M)}),S.push(l),u=n3({allObservables:s,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _.getEventProperties.apply(_,(0,E.fX)((0,E.fX)([],(0,E.zs)(e),!1),[m],!1))},amplitude:r,shouldTrackEvent:o,evaluateTriggers:M.evaluate.bind(M)}),S.push(u),(c=n4({allObservables:s,options:e,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _.getEventProperties.apply(_,(0,E.fX)((0,E.fX)([],(0,E.zs)(e),!1),[m],!1))},amplitude:r,shouldTrackEvent:o,shouldTrackActionClick:a}))&&S.push(c),d=n5({allObservables:s,amplitude:r}),S.push(d),f={},h=H(),g=function(e){e&&n||(setTimeout(function(){n=!1},100),n=!0,iR({amplitude:r,scrollTracker:d,currentElementExposed:I,elementExposedForPage:x,exposureTracker:f.exposure,isPageEnd:e,lastScroll:i}))},b=function(e){iP(e,x,I,g)},T&&(f.exposure=iO({allObservables:s,onExposure:b,dataExtractor:_,exposureDuration:w}),f.exposure&&S.push(f.exposure),N=function(){g(!0)},null==h||h.addEventListener("beforeunload",N),p=function(){null==h||h.removeEventListener("beforeunload",N)},S.push({unsubscribe:function(){return p()}}),(R=s[y.NavigateObservable])?S.push(R.subscribe(function(){g(!0)})):h&&(P=function(){g(!0)},h.addEventListener("popstate",P),k=h.history.pushState,h.history&&k&&(h.history.pushState=new Proxy(k,{apply:function(e,t,r){var n=(0,E.zs)(r,3),i=n[0],o=n[1],a=n[2];e.apply(t,[i,o,a]),g(!0)}})),S.push({unsubscribe:function(){h.removeEventListener("popstate",P),h.history&&k&&(h.history.pushState=k)}}))),null==(V=null==t?void 0:t.loggerProvider)||V.log("".concat(A," has been successfully added.")),window.opener&&v.enabled&&(L=e.cssSelectorAllowlist,D=e.actionClickAllowlist,n1(B=na(),{dataExtractor:_,isElementSelectable:nK(e,(0,E.fX)((0,E.fX)([],(0,E.zs)(L),!1),(0,E.zs)(D),!1)),cssSelectorAllowlist:L,actionClickAllowlist:D}),nl(B),B.setup((0,E.Cl)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:r7[t.serverZone]})))),[2]})})};return{name:A,type:N,setup:k,execute:function(e){return(0,E.sH)(void 0,void 0,void 0,function(){return(0,E.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,E.sH)(void 0,void 0,void 0,function(){var e,t,r,n;return(0,E.YH)(this,function(i){try{for(t=(e=(0,E.Ju)(S)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]})})}}},iC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,E.C6)(t,e),t.prototype.init=function(e,t,r){var n,i;return void 0===e&&(e=""),arguments.length>2?(n=t,i=r):"string"==typeof t?(n=t,i=void 0):(n=null==t?void 0:t.userId,i=t),N(this._init((0,E.Cl)((0,E.Cl)({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){return(0,E.sH)(this,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c=this;return(0,E.YH)(this,function(d){switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,rs(t.apiKey,t,this)];case 1:if(r=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,rJ(r)];case 2:return[4,d.sent().generateJoinedConfig()];case 3:r=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,r)];case 5:if(d.sent(),this.logBrowserOptions(r),!eu(this.config.defaultTracking))return[3,7];return n=ey(this.config),this.webAttribution=new tu(n,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(o=Number.isNaN(Number((i=to()).ampSessionId))?void 0:Number(i.ampSessionId),this.setSessionId(null!=(u=null!=(l=null!=(s=t.sessionId)?s:o)?l:this.config.sessionId)?u:Date.now()),(a=tA(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===tx)return[3,9];return[4,this.add(rF()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new J).promise];case 10:return d.sent(),[4,this.add(new tL).promise];case 11:return d.sent(),[4,this.add(new t_).promise];case 12:if(d.sent(),rV(this.config),!ec(this.config.defaultTracking))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(rD()).promise];case 13:d.sent(),d.label=14;
1case 14:if(!ed(this.config.defaultTracking))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(rC()).promise];case 15:d.sent(),d.label=16;case 16:if(!ef(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(rO(em(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!ep(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(iM(eg(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),a.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null==(e=this.config)?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config)return void this.q.push(this.setUserId.bind(this,e));this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,tN(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null==(e=this.config)?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config)return void this.q.push(this.setDeviceId.bind(this,e));this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,tS(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(z()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null==(e=this.config)?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),N(Promise.resolve());if(e===this.config.sessionId)return N(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var n=this.getSessionId(),i=this.config.lastEventTime,o=null!=(t=this.config.lastEventId)?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,eh(this.config.defaultTracking)&&(n&&i&&r.push(this.track(t5,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,r);return eh(this.config.defaultTracking)&&r.push(this.track(t4,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,N(Promise.all(r))},t.prototype.extendSession=function(){if(!this.config)return void this.q.push(this.extendSession.bind(this));this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config)return void this.q.push(this.setTransport.bind(this,e));this.config.transportProvider=ru(e)},t.prototype.identify=function(t,r){if(tO(t)){var n=t._q;t._q=[],t=tI(new Q.T$,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(tO(n)){var o=n._q;n._q=[],n=tI(new Q.T$,o)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(tO(t)){var n=t._q;t._q=[],t=tI(new ee,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,E.sH)(this,void 0,void 0,function(){var r,n,i;return(0,E.YH)(this,function(o){return r=Date.now(),n=tl(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type!==t4&&t.event_type!==t5&&(!t.session_id||t.session_id===this.getSessionId())&&(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,E.Cl)((0,E.Cl)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(es);let ik=function(){var e=new iC;return{init:A(e.init.bind(e),"init",v(e),w(e,["config"])),add:A(e.add.bind(e),"add",v(e),w(e,["config.apiKey","timeline.plugins"])),remove:A(e.remove.bind(e),"remove",v(e),w(e,["config.apiKey","timeline.plugins"])),track:A(e.track.bind(e),"track",v(e),w(e,["config.apiKey","timeline.queue.length"])),logEvent:A(e.logEvent.bind(e),"logEvent",v(e),w(e,["config.apiKey","timeline.queue.length"])),identify:A(e.identify.bind(e),"identify",v(e),w(e,["config.apiKey","timeline.queue.length"])),groupIdentify:A(e.groupIdentify.bind(e),"groupIdentify",v(e),w(e,["config.apiKey","timeline.queue.length"])),setGroup:A(e.setGroup.bind(e),"setGroup",v(e),w(e,["config.apiKey","timeline.queue.length"])),revenue:A(e.revenue.bind(e),"revenue",v(e),w(e,["config.apiKey","timeline.queue.length"])),flush:A(e.flush.bind(e),"flush",v(e),w(e,["config.apiKey","timeline.queue.length"])),getUserId:A(e.getUserId.bind(e),"getUserId",v(e),w(e,["config","config.userId"])),setUserId:A(e.setUserId.bind(e),"setUserId",v(e),w(e,["config","config.userId"])),getDeviceId:A(e.getDeviceId.bind(e),"getDeviceId",v(e),w(e,["config","config.deviceId"])),setDeviceId:A(e.setDeviceId.bind(e),"setDeviceId",v(e),w(e,["config","config.deviceId"])),reset:A(e.reset.bind(e),"reset",v(e),w(e,["config","config.userId","config.deviceId"])),getSessionId:A(e.getSessionId.bind(e),"getSessionId",v(e),w(e,["config"])),setSessionId:A(e.setSessionId.bind(e),"setSessionId",v(e),w(e,["config"])),extendSession:A(e.extendSession.bind(e),"extendSession",v(e),w(e,["config"])),setOptOut:A(e.setOptOut.bind(e),"setOptOut",v(e),w(e,["config"])),setTransport:A(e.setTransport.bind(e),"setTransport",v(e),w(e,["config"]))}}();ik.add,ik.extendSession,ik.flush,ik.getDeviceId,ik.getSessionId,ik.getUserId,ik.groupIdentify;var iL=ik.identify,iD=ik.init,iB=(ik.logEvent,ik.remove,ik.reset,ik.revenue,ik.setDeviceId,ik.setGroup,ik.setOptOut,ik.setSessionId,ik.setTransport,ik.setUserId),iV=ik.track},21838:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnreachableCaseError=t.stringify=t.bytes=t.beetBytes=t.logTrace=t.logDebug=t.logInfo=t.logError=void 0;let i=n(r(46743)),o=n(r(12723)),a=r(5162),{brightBlack:s}=o.default;t.logError=(0,i.default)("beet:error"),t.logInfo=(0,i.default)("beet:info"),t.logDebug=(0,i.default)("beet:debug"),t.logTrace=(0,i.default)("beet:trace"),t.beetBytes=function(e,t=!1){let r;if((0,a.isFixableBeet)(e))r="? B";else if((0,a.isElementCollectionFixedSizeBeet)(e)){let n=t?"length":e.length,i=e.lenPrefixByteSize;r=i>0?`${i} + (${e.elementByteSize} * ${n}) B (${e.byteSize} B)`:`(${e.elementByteSize} * ${n}) B (${e.byteSize} B)`}else r=`${e.byteSize} B`;return s(r)},t.bytes=function(e){return s(`${e} B`)},t.stringify=function(e){return"function"===e.toString?e.toString():e};class l extends Error{constructor(e){super(`Unreachable case: ${e}`)}}t.UnreachableCaseError=l},22383:(e,t,r)=>{"use strict";var n=r(14790).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.BeetReader=t.BeetWriter=void 0;let i=r(95585);class o{constructor(e){this.buf=n.alloc(e),this._offset=0}get buffer(){return this.buf}get offset(){return this._offset}maybeResize(e){this._offset+e>this.buf.length&&i.strict.fail(`We shouldn't ever need to resize, but ${this._offset+e} > ${this.buf.length}`)}write(e,t){this.maybeResize(e.byteSize),e.write(this.buf,this._offset,t),this._offset+=e.byteSize}writeStruct(e,t){for(let[r,n]of t){let t=e[r];this.write(n,t)}}}t.BeetWriter=o;class a{constructor(e,t=0){this.buffer=e,this._offset=t}get offset(){return this._offset}read(e){let t=e.read(this.buffer,this._offset);return this._offset+=e.byteSize,t}readStruct(e){let t={};for(let[r,n]of e)t[r]=this.read(n);return t}}t.BeetReader=a},22399:(e,t,r)=>{var n,i=r(55036);!function(){"use strict";var o="input is invalid type",a="finalize already called",s="object"==typeof window,l=s?window:{};l.JS_SHA3_NO_WINDOW&&(s=!1);var u=!s&&"object"==typeof self;!l.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?l=r.g:u&&(l=self);var c=!l.JS_SHA3_NO_COMMON_JS&&e.exports,d=r.amdO,f=!l.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,h="0123456789abcdef".split(""),p=[31,7936,2031616,0x1f000000],g=[4,1024,262144,0x4000000],m=[1,256,65536,0x1000000],y=[6,1536,393216,0x6000000],E=[0,8,16,24],b=[1,0,32898,0,32906,0x80000000,0x80008000,0x80000000,32907,0,0x80000001,0,0x80008081,0x80000000,32777,0x80000000,138,0,136,0,0x80008009,0,0x8000000a,0,0x8000808b,0,139,0x80000000,32905,0x80000000,32771,0x80000000,32770,0x80000000,128,0x80000000,32778,0,0x8000000a,0x80000000,0x80008081,0x80000000,32896,0x80000000,0x80000001,0,0x80008008,0x80000000],v=[224,256,384,512],T=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};(l.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),f&&(l.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var N=function(e,t,r){return function(n){return new F(e,t,e).update(n)[r]()}},S=function(e,t,r){return function(n,i){return new F(e,t,i).update(n)[r]()}},_=function(e,t,r){return function(t,n,i,o){return P["cshake"+e].update(t,n,i,o)[r]()}},x=function(e,t,r){return function(t,n,i,o){return P["kmac"+e].update(t,n,i,o)[r]()}},I=function(e,t,r,n){for(var i=0;i<w.length;++i){var o=w[i];e[o]=t(r,n,o)}return e},O=function(e,t){var r=N(e,t,"hex");return r.create=function(){return new F(e,t,e)},r.update=function(e){return r.create().update(e)},I(r,N,e,t)},R=[{name:"keccak",padding:m,bits:v,createMethod:O},{name:"sha3",padding:y,bits:v,createMethod:O},{name:"shake",padding:p,bits:T,createMethod:function(e,t){var r=S(e,t,"hex");return r.create=function(r){return new F(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},I(r,S,e,t)}},{name:"cshake",padding:g,bits:T,createMethod:function(e,t){var r=A[e],n=_(e,t,"hex");return n.create=function(n,i,o){return i||o?new F(e,t,n).bytepad([i,o],r):P["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},I(n,_,e,t)}},{name:"kmac",padding:g,bits:T,createMethod:function(e,t){var r=A[e],n=x(e,t,"hex");return n.create=function(n,i,o){return new U(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},I(n,x,e,t)}}],P={},M=[],C=0;C<R.length;++C)for(var k=R[C],L=k.bits,D=0;D<L.length;++D){var B=k.name+"_"+L[D];if(M.push(B),P[B]=k.createMethod(L[D],k.padding),"sha3"!==k.name){var V=k.name+L[D];M.push(V),P[V]=P[B]}}function F(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function U(e,t,r){F.call(this,e,t,r)}F.prototype.update=function(e){if(this.finalized)throw Error(a);var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);
1else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}for(var n,i,s=this.blocks,l=this.byteCount,u=e.length,c=this.blockCount,d=0,h=this.s;d<u;){if(this.reset)for(n=1,this.reset=!1,s[0]=this.block;n<c+1;++n)s[n]=0;if(t)for(n=this.start;d<u&&n<l;++d)s[n>>2]|=e[d]<<E[3&n++];else for(n=this.start;d<u&&n<l;++d)(i=e.charCodeAt(d))<128?s[n>>2]|=i<<E[3&n++]:(i<2048?s[n>>2]|=(192|i>>6)<<E[3&n++]:(i<55296||i>=57344?s[n>>2]|=(224|i>>12)<<E[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++d)),s[n>>2]|=(240|i>>18)<<E[3&n++],s[n>>2]|=(128|i>>12&63)<<E[3&n++]),s[n>>2]|=(128|i>>6&63)<<E[3&n++]),s[n>>2]|=(128|63&i)<<E[3&n++]);if(this.lastByteIndex=n,n>=l){for(this.start=n-l,this.block=s[c],n=0;n<c;++n)h[n]^=s[n];j(h),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},F.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=[];return i.length=t-r%t,this.update(i),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=0x80000000,t=0;t<r;++t)n[t]^=e[t];j(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)s+=h[(e=r[o])>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];a%t==0&&(j(r),o=0)}return i&&(s+=h[(e=r[o])>>4&15]+h[15&e],i>1&&(s+=h[e>>12&15]+h[e>>8&15]),i>2&&(s+=h[e>>20&15]+h[e>>16&15])),s},F.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:s));a<n;){for(o=0;o<t&&a<n;++o,++a)l[a]=r[o];a%t==0&&j(r)}return i&&(l[o]=r[o],e=e.slice(0,s)),e},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%r==0&&j(n)}return o&&(e=s<<2,t=n[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},U.prototype=new F,U.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var j=function(e){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,g,m,y,E,v,T,w,A,N,S,_,x,I,O,R,P,M,C,k,L,D,B,V,F,U,j,H,G,K,z,W,q,Y,$,X,J,Q,Z,ee,et,er,en,ei,eo,ea,es,el,eu,ec;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(a<<1|s>>>31),r=h^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(c<<1|d>>>31),r=s^(d<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],g=e[1],q=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,R=e[21]<<3|e[20]>>>29,es=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,V=e[15]<<6|e[14]>>>26,E=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>
117,C=e[45]<<29|e[44]>>>3,k=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,_=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,T=e[36]<<21|e[37]>>>11,w=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,ea=e[28]<<7|e[29]>>>25,j=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,N=e[49]<<14|e[48]>>>18,e[0]=p^~m&E,e[1]=g^~y&v,e[10]=S^~x&O,e[11]=_^~I&R,e[20]=L^~B&F,e[21]=D^~V&U,e[30]=z^~q&$,e[31]=W^~Y&X,e[40]=et^~en&eo,e[41]=er^~ei&ea,e[2]=m^~E&T,e[3]=y^~v&w,e[12]=x^~O&P,e[13]=I^~R&M,e[22]=B^~F&j,e[23]=V^~U&H,e[32]=q^~$&J,e[33]=Y^~X&Q,e[42]=en^~eo&es,e[43]=ei^~ea&el,e[4]=E^~T&A,e[5]=v^~w&N,e[14]=O^~P&C,e[15]=R^~M&k,e[24]=F^~j&G,e[25]=U^~H&K,e[34]=$^~J&Z,e[35]=X^~Q&ee,e[44]=eo^~es&eu,e[45]=ea^~el&ec,e[6]=T^~A&p,e[7]=w^~N&g,e[16]=P^~C&S,e[17]=M^~k&_,e[26]=j^~G&L,e[27]=H^~K&D,e[36]=J^~Z&z,e[37]=Q^~ee&W,e[46]=es^~eu&et,e[47]=el^~ec&er,e[8]=A^~p&m,e[9]=N^~g&y,e[18]=C^~S&x,e[19]=k^~_&I,e[28]=G^~L&B,e[29]=K^~D&V,e[38]=Z^~z&q,e[39]=ee^~W&Y,e[48]=eu^~et&en,e[49]=ec^~er&ei,e[0]^=b[n],e[1]^=b[n+1]};if(c)e.exports=P;else{for(C=0;C<M.length;++C)l[M[C]]=P[M[C]];d&&(void 0===(n=(function(){return P}).call(t,r,t,e))||(e.exports=n))}}()},23033:e=>{"use strict";e.exports=Math.abs},23443:e=>{"use strict";e.exports=TypeError},23742:e=>{"use strict";e.exports=Function.prototype.apply},24205:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},24255:(e,t,r)=>{var n="/",i=r(55036);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(709),a=r(337);r(782)(c,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=O,O.ReadableState=I,n(361).EventEmitter;var o,a,s,l,u,c=function(e,t){return e.listeners(t).length},d=n(678),f=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return f.from(e)}function g(e){return f.isBuffer(e)||e instanceof h}var m=n(837);a=m&&m.debuglog?m.debuglog("stream"):function(){};var y=n(379),E=n(25),b=n(776).getHighWaterMark,v=n(646).q,T=v.ERR_INVALID_ARG_TYPE,w=v.ERR_STREAM_PUSH_AFTER_EOF,A=v.ER
vendor: 22,739 bytes, line 1
1R_METHOD_NOT_IMPLEMENTED,N=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(O,d);var S=E.errorOrDestroy,_=["error","close","destroy","pause","resume"];function x(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function I(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||n(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=M(s,t)),o)S(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?S(e,new N):P(e,s,t,!0);else if(s.ended)S(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):F(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,F(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&B(e)),F(e,t)}function M(e,t){var r;return g(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new T("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=E.destroy,O.prototype._undestroy=E.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=f.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},O.prototype.unshift=function(e){return R(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=0x40000000;function k(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=k(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,V(e)))}}function B(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(V,e))}function V(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function j(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function H(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function G(e){a("readable nexttick read 0"),e.read(0)}function K(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(z,e,t))}function z(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function Y(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick($,t,e))}function $(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}O.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?Y(this):B(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&Y(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=L(n,r))),null===(t=e>0?q(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&Y(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new A("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=j(r);e.on("drain",u);var d=!1;function f(){a("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==X(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&S(e,t)}function g(){e.removeListener("finish",m),y()}function m(){a("onfinish"),e.removeListener("close",g),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),x(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?B(this):n.reading||i.nextTick(G,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},O.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,K(this,e)),e.paused=!1,this},O.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=q,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===u&&(u=n(727)),u(O,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(t,r){f(e,t,r)})}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}e.exports=I,I.WritableState=x;var a,s,l={deprecate:n(769)},u=n(678),c=n(300).Buffer,d=r.g.Uint8Array||function(){};function f(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof d}var p=n(25),g=n(776).getHighWaterMark,m=n(646).q,y=m.ERR_INVALID_ARG_TYPE,E=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_MULTIPLE_CALLBACK,v=m.ERR_STREAM_CANNOT_PIPE,T=m.ERR_STREAM_DESTROYED,w=m.ERR_STREAM_NULL_VALUES,A=m.ERR_STREAM_WRITE_AFTER_END,N=m.ERR_UNKNOWN_ENCODING,S=p.errorOrDestroy;function _(){}function x(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(I,this))return new I(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function O(e,t){var r=new A;S(e,r),i.nextTick(t,r)}function R(e,t,r,n){var o;return null===r?o=new w:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(S(e,o),i.nextTick(n,o),!1)}function P(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function M(e,t,r,n,i,o){if(!r){var a=P(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,n,i,o);return l}function C(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new T("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function k(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(G,e,t),e._writableState.errorEmitted=!0,S(e,n)):(o(n),e._writableState.errorEmitted=!0,S(e,n),G(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(L(r),t)k(e,r,n,t,o);else{var a=U(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(B,e,r,a,o):B(e,r,a,o)}}function B(e,t,r,n){r||V(e,t),t.pendingcb--,n(),G(e,t)}function V(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,C(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,d=t.objectMode?1:l.length;if(C(e,t,!1,d,l,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),G(e,t)})}function H(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(j,e,t)))}function G(e,t){var r=U(t);if(r&&(H(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function K(e,t,r){t.ending=!0,G(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function z(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(I,u),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===I&&e&&e._writableState instanceof x}})):s=function(e){return e instanceof this},I.prototype.pipe=function(){S(this,new v)},I.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!c.isBuffer(e)&&(e=f(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=_),n.ending?O(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=M(this,n,o,e,t,r)),i},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new N(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,r){r(new E("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||K(this,n,r),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=p.destroy,I.prototype._undestroy=p.undestroy,I.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(p(r,!1)))}}function m(e){i.nextTick(g,e)}function y(e,t){return function(r,n){e.then(function(){if(t[c])return void r(p(void 0,!0));t[f](r,n)},n)}}var E=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),o),E);e.exports=function(e){var t,r=Object.create(b,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[l]=null,e(p(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 1
1t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var u=r(300).Buffer,c=r(837).inspect,d=c&&c.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
vendor: 2,421 bytes, line 1
1var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){u=!1,d=!0,l||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,h=!0,u||r.call(e)},g=function(t){r.call(e,t)},m=function(){var t;return l&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):u&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return a(e)?(e.on("complete",f),e.on("abort",m),e.req?y():e.on("request",y)):u&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",f),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",f),e.removeListener("abort",m),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",f),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
1var l=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function u(){return c.apply(this,arguments)}function c(){return(c=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?u():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,u())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function u(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var c=!1;return function(t){if(!l&&!c){if(c=!0,u(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function f(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return c(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=E,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function E(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=f,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(14790)},361:function(e){"use strict";e.exports=r(86896)},781:function(e){"use strict";e.exports=r(86896).EventEmitter},837:function(e){"use strict";e.exports=r(63445)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},24307:(e,t,r)=>{"use strict";r.d(t,{UC:()=>V,ZL:()=>B,bL:()=>L,i3:()=>F,l9:()=>D});var n,i=r(13741),o=r(17980),a=r(25721),s=r(18296),l=r(85207),u=r(59022),c=r(73258),d=r(94222),f=r(9227),h=r(63466),p=r(42073),g="HoverCard",[m,y]=(0,a.A)(g,[u.Bk]),E=(0,u.Bk)(),[b,v]=m(g),T=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:a,openDelay:l=700,closeDelay:c=300}=e,d=E(t),f=i.useRef(0),h=i.useRef(0),m=i.useRef(!1),y=i.useRef(!1),[v,T]=(0,s.i)({prop:n,defaultProp:null!=o&&o,onChange:a,caller:g}),w=i.useCallback(()=>{clearTimeout(h.current),f.current=window.setTimeout(()=>T(!0),l)},[l,T]),A=i.useCallback(()=>{clearTimeout(f.current),m.current||y.current||(h.current=window.setTimeout(()=>T(!1),c))},[c,T]),N=i.useCallback(()=>T(!1),[T]);return i.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(h.current)},[]),(0,p.jsx)(b,{scope:t,open:v,onOpenChange:T,onOpen:w,onClose:A,onDismiss:N,hasSelectionRef:m,isPointerDownOnContentRef:y,children:(0,p.jsx)(u.bL,{...d,children:r})})};T.displayName=g;var w="HoverCardTrigger",A=i.forwardRef((e,t)=>
1{let{__scopeHoverCard:r,...n}=e,i=v(w,r),a=E(r);return(0,p.jsx)(u.Mz,{asChild:!0,...a,children:(0,p.jsx)(f.sG.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:(0,o.mK)(e.onPointerEnter,C(i.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,C(i.onClose)),onFocus:(0,o.mK)(e.onFocus,i.onOpen),onBlur:(0,o.mK)(e.onBlur,i.onClose),onTouchStart:(0,o.mK)(e.onTouchStart,e=>e.preventDefault())})})});A.displayName=w;var N="HoverCardPortal",[S,_]=m(N,{forceMount:void 0}),x=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,o=v(N,t);return(0,p.jsx)(S,{scope:t,forceMount:r,children:(0,p.jsx)(d.C,{present:r||o.open,children:(0,p.jsx)(c.Z,{asChild:!0,container:i,children:n})})})};x.displayName=N;var I="HoverCardContent",O=i.forwardRef((e,t)=>{let r=_(I,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,a=v(I,e.__scopeHoverCard);return(0,p.jsx)(d.C,{present:n||a.open,children:(0,p.jsx)(R,{"data-state":a.open?"open":"closed",...i,onPointerEnter:(0,o.mK)(e.onPointerEnter,C(a.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,C(a.onClose)),ref:t})})});O.displayName=I;var R=i.forwardRef((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...f}=e,g=v(I,r),m=E(r),y=i.useRef(null),b=(0,l.s)(t,y),[T,w]=i.useState(!1);return i.useEffect(()=>{if(T){let e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}},[T]),i.useEffect(()=>{if(y.current){let e=()=>{w(!1),g.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;
1(null==(e=document.getSelection())?void 0:e.toString())!==""&&(g.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),g.hasSelectionRef.current=!1,g.isPointerDownOnContentRef.current=!1}}},[g.isPointerDownOnContentRef,g.hasSelectionRef]),i.useEffect(()=>{y.current&&k(y.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,p.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:(0,o.mK)(c,e=>{e.preventDefault()}),onDismiss:g.onDismiss,children:(0,p.jsx)(u.UC,{...m,...f,onPointerDown:(0,o.mK)(f.onPointerDown,e=>{e.currentTarget.contains(e.target)&&w(!0),g.hasSelectionRef.current=!1,g.isPointerDownOnContentRef.current=!0}),ref:b,style:{...f.style,userSelect:T?"text":void 0,WebkitUserSelect:T?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),P="HoverCardArrow",M=i.forwardRef((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=E(r);return(0,p.jsx)(u.i3,{...i,...n,ref:t})});function C(e){return t=>"touch"===t.pointerType?void 0:e()}function k(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}M.displayName=P;var L=T,D=A,B=x,V=O,F=M},24382:(e,t,r)=>{"use strict";r.d(t,{cn:()=>eb,$f:()=>eg,N1:()=>ew,tv:()=>eT});var n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=e=>!e||"object"!=typeof e||0===Object.keys(e).length,o=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function a(e,t){e.forEach(function(e){Array.isArray(e)?a(e,t):t.push(e)})}function s(e){let t=[];return a(e,t),t}var l=(...e)=>s(e).filter(Boolean),u=(e,t)=>{let r={},n=Object.keys(e),i=Object.keys(t);for(let o of n)if(i.includes(o)){let n=e[o],i=t[o];"object"==typeof n&&"object"==typeof i?r[o]=u(n,i):Array.isArray(n)||Array.isArray(i)?r[o]=l(i,n):r[o]=i+" "+n}else r[o]=e[o];for(let e of i)n.includes(e)||(r[e]=t[e]);return r},c=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;let d="-",f=e=>{let t=m(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split(d);return""===r[0]&&1!==r.length&&r.shift(),h(r,t)||g(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i}}},h=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?h(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;let o=e.join(d);return t.validators.find(({validator:e})=>e(o))?.classGroupId},p=/^\[(.+)\]$/,g=e=>{if(p.test(e)){let t=p.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},m=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return v(Object.entries(e.classGroups),r).forEach(([e,r])=>{y(r,n,e,t)}),n},y=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:E(t,e)).classGroupId=r;return}if("function"==typeof e)return b(e)?void y(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,i])=>{y(i,E(t,e),r,n)})})},E=(e,t)=>{let r=e;return t.split(d).forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},b=e=>e.isThemeGetter,v=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,T=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,o)=>{r.set(i,o),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}},w="!",A=e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],o=t.length,a=e=>{let r,a=[],s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];
1if(0===s){if(c===i&&(n||e.slice(u,u+o)===t)){a.push(e.slice(l,u)),l=u+o;continue}if("/"===c){r=u;continue}}"["===c?s++:"]"===c&&s--}let u=0===a.length?e:e.substring(l),c=u.startsWith(w),d=c?u.substring(1):u;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},N=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},S=e=>({cache:T(e.cacheSize),parseClassName:A(e),...f(e)}),_=/\s+/,x=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(_),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:l,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:d}=r(t),f=!!d,h=n(f?c.substring(0,d):c);if(!h){if(!f||!(h=n(c))){s=t+(s.length>0?" "+s:s);continue}f=!1}let p=N(l).join(":"),g=u?p+w:p,m=g+h;if(o.includes(m))continue;o.push(m);let y=i(h,f);for(let e=0;e<y.length;++e){let t=y[e];o.push(g+t)}s=t+(s.length>0?" "+s:s)}return s};function I(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=O(e))&&(n&&(n+=" "),n+=t);return n}let O=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=O(e[n]))&&(r&&(r+=" "),r+=t);return r};function R(e,...t){let r,n,i,o=a;function a(a){return n=(r=S(t.reduce((e,t)=>t(e),e()))).cache.get,i=r.cache.set,o=s,s(a)}function s(e){let t=n(e);if(t)return t;let o=x(e,r);return i(e,o),o}return function(){return o(I.apply(null,arguments))}}let P=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},M=/^\[(?:([a-z-]+):)?(.+)\]$/i,C=/^\d+\/\d+$/,k=new Set(["px","full","screen"]),L=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,B=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>H(e)||k.has(e)||C.test(e),j=e=>et(e,"length",er),H=e=>!!e&&!Number.isNaN(Number(e)),G=e=>et(e,"number",H),K=e=>!!e&&Number.isInteger(Number(e)),z=e=>e.endsWith("%")&&H(e.slice(0,-1)),W=e=>M.test(e),q=e=>L.test(e),Y=new Set(["length","size","percentage"]),$=e=>et(e,Y,en),X=e=>et(e,"position",en),J=new Set(["image","url"]),Q=e=>et(e,J,eo),Z=e=>et(e,"",ei),ee=()=>!0,et=(e,t,r)=>{let n=M.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},er=e=>D.test(e)&&!B.test(e),en=()=>!1,ei=e=>V.test(e),eo=e=>F.test(e);Symbol.toStringTag;let ea=()=>{let e=P("colors"),t=P("spacing"),r=P("blur"),n=P("brightness"),i=P("borderColor"),o=P("borderRadius"),a=P("borderSpacing"),s=P("borderWidth"),l=P("contrast"),u=P("grayscale"),c=P("hueRotate"),d=P("invert"),f=P("gap"),h=P("gradientColorStops"),p=P("gradientColorStopPositions"),g=P("inset"),m=P("margin"),y=P("opacity"),E=P("padding"),b=P("saturate"),v=P("scale"),T=P("sepia"),w=P("skew"),A=P("space"),N=P("translate"),S=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto",W,t],I=()=>[W,t],O=()=>["",U,j],R=()=>["auto",H,W],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],C=()=>["solid","dashed","dotted","double","none"],k=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",W],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[H,W];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[U,j],blur:["none","",q,W],brightness:V(),borderColor:[e],borderRadius:["none","","full",q,W],borderSpacing:I(),borderWidth:O(),contrast:V(),grayscale:D(),hueRotate:V(),invert:D(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[z,j],inset:x(),margin:x(),opacity:V(),padding:I(),saturate:V(),scale:V(),sepia:D(),skew:V(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",W]}
vendor: 5,956 bytes, line 1
1],container:["container"],columns:[{columns:[q]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),W]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",K,W]}],basis:[{basis:x()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",K,W]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",K,W]},W]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[K,W]},W]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[q]},q]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",q,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",G]}],"font-family":[{font:[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",H,G]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,j]}],"underline-offset":[{"underline-offset":["auto",U,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),X]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
1],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...C(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,446 bytes, line 1
1],"divide-style":[{divide:C()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...C()]}],"outline-offset":[{"outline-offset":[U,W]}],"outline-w":[{outline:[U,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[U,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",q,Z]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...k(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",q,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[K,W]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,j,G]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
1none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},es=(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:i,extend:o={},override:a={}})=>{for(let o in el(e,"cacheSize",t),el(e,"prefix",r),el(e,"separator",n),el(e,"experimentalParseClassName",i),a)eu(e[o],a[o]);for(let t in o)ec(e[t],o[t]);return e},el=(e,t,r)=>{void 0!==r&&(e[t]=r)},eu=(e,t)=>{if(t)for(let r in t)el(e,r,t[r])},ec=(e,t)=>{if(t)for(let r in t){let n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}},ed=(e,...t)=>"function"==typeof e?R(ea,e,...t):R(()=>es(ea(),e),...t),ef=R(ea);var eh={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},ep=e=>e||void 0,eg=(...e)=>ep(s(e).filter(Boolean).join(" ")),em=null,ey={},eE=!1,eb=(...e)=>t=>t.twMerge?((!em||eE)&&(eE=!1,em=i(ey)?ef:ed({...ey,extend:{theme:ey.theme,classGroups:ey.classGroups,conflictingClassGroupModifiers:ey.conflictingClassGroupModifiers,conflictingClassGroups:ey.conflictingClassGroups,...ey.extend}})),ep(em(eg(e)))):eg(e),ev=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=eg(e[r],t[r]):e[r]=t[r];return e},eT=(e,t)=>{let{extend:r=null,slots:a={},variants:s={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:h={}}=e,p={...eh,...t},g=null!=r&&r.base?eg(r.base,null==e?void 0:e.base):null==e?void 0:e.base,m=null!=r&&r.variants&&!i(r.variants)?u(s,r.variants):s,y=null!=r&&r.defaultVariants&&!i(r.defaultVariants)?{...r.defaultVariants,...h}:h;i(p.twMergeConfig)||o(p.twMergeConfig,ey)||(eE=!0,ey=p.twMergeConfig);let E=i(null==r?void 0:r.slots),b=i(a)?{}:{base:eg(null==e?void 0:e.base,E&&(null==r?void 0:r.base)),...a},v=E?b:ev({...null==r?void 0:r.slots},i(b)?{base:null==e?void 0:e.base}:b),T=i(null==r?void 0:r.compoundVariants)?d:l(null==r?void 0:r.compoundVariants,d),w=e=>{if(i(m)&&i(a)&&E)return eb(g,null==e?void 0:e.class,null==e?void 0:e.className)(p);if(T&&!Array.isArray(T))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof T}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],n)=>{let i=r;if("string"==typeof t)i=i.concat(c(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))i=i.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof n){for(let r in t)if(t.hasOwnProperty(r)&&r===n){let o=t[r];if(o&&"string"==typeof o){let t=c(o);i[n]?i[n]=i[n].concat(t.split(" ").map(t=>`${e}:${t}`)):i[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(o)&&o.length>0&&(i[n]=o.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return i},r=(r,o=m,a=null,s=null)=>{var l;let u=o[r];if(!u||i(u))return null;
1let c=null!=(l=null==s?void 0:s[r])?l:null==e?void 0:e[r];if(null===c)return null;let d=n(c),f=Array.isArray(p.responsiveVariants)&&p.responsiveVariants.length>0||!0===p.responsiveVariants,h=null==y?void 0:y[r],g=[];if("object"==typeof d&&f)for(let[e,r]of Object.entries(d)){let n=u[r];if("initial"===e){h=r;continue}Array.isArray(p.responsiveVariants)&&!p.responsiveVariants.includes(e)||(g=t(e,n,g,a))}let E=u[(null!=d&&"object"!=typeof d?d:n(h))||"false"];return"object"==typeof g&&"string"==typeof a&&g[a]?ev(g,E):g.length>0?(g.push(E),g):E},o=()=>m?Object.keys(m).map(e=>r(e,m)):null,s=(e,t)=>{if(!m||"object"!=typeof m)return null;let n=[];for(let i in m){let o=r(i,m,e,t),a="base"===e&&"string"==typeof o?o:o&&o[e];a&&(n[n.length]=a)}return n},l={};for(let t in e)void 0!==e[t]&&(l[t]=e[t]);let u=(t,r)=>{var n;let i="object"==typeof(null==e?void 0:e[t])?{[t]:null==(n=e[t])?void 0:n.initial}:{};return{...y,...l,...i,...r}},d=(e=[],t)=>{let r=[];for(let{class:n,className:i,...o}of e){let e=!0;for(let[r,n]of Object.entries(o)){let i=u(r,t);if(Array.isArray(n)){if(!n.includes(i[r])){e=!1;break}}else if(i[r]!==n){e=!1;break}}e&&(n&&r.push(n),i&&r.push(i))}return r},h=e=>{let t=d(T,e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=eb(r.base,e)(p)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=eb(r[t],n)(p);return r},b=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:o,...a}of f){if(!i(a)){let t=!0;for(let r of Object.keys(a)){let n=u(r,e)[r];if(void 0===n||(Array.isArray(a[r])?!a[r].includes(n):a[r]!==n)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([n,o])}return t};if(!i(a)||!E){let e={};if("object"==typeof v&&!i(v))for(let t of Object.keys(v))e[t]=e=>{var r,n;return eb(v[t],s(t,e),(null!=(r=h(e))?r:[])[t],(null!=(n=b(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(p)};return e}return eb(g,o(),d(T),null==e?void 0:e.class,null==e?void 0:e.className)(p)};return w.variantKeys=(()=>{if(!(!m||"object"!=typeof m))return Object.keys(m)})(),w.extend=r,w.base=g,w.slots=v,w.variants=m,w.defaultVariants=y,w.compoundSlots=f,w.compoundVariants=T,w},ew=e=>(t,r)=>eT(t,r?u(e,r):e)},24993:(e,t,r)=>{"use strict";var n=r(24205),i=r(16605),o=r(39491);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},25047:e=>{"use strict";e.exports=Math.floor},25245:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l,u=this;if("function"!=typeof u||r.apply(u)!==i)throw TypeError(t+u);for(var c=a(arguments,1),d=function(){if(this instanceof l){var t=u.apply(this,o(c,arguments));return Object(t)===t?t:this}return u.apply(e,o(c,arguments))},f=n(0,u.length-c.length),h=[],p=0;p<f;p++)h[p]="$"+p;if(l=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,l.prototype=new g,g.prototype=null}return l}},25804:(e,t,r)=>{e.exports=r(46381)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},26272:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{S:()=>O});var a=r(37740),s=r(19799),l=r(44735);let[u,c,d]=[[],[],[]],f=BigInt(0),h=BigInt(1),p=BigInt(2),g=BigInt(7),m=BigInt(256),y=BigInt(113);for(let e=0,t=h,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],u.push(2*(5*n+r)),c.push((e+1)*(e+2)/2%64);let i=f;for(let e=0;e<7;e++)(t=(t<<h^(t>>g)*y)%m)&p&&(i^=h<<(h<<BigInt(e))-h);d.push(i)}let[E,b]=(0,s.lD)(d,!0),v=(e,t,r)=>r>32?(0,s.WM)(e,t,r):(0,s.P5)(e,t,r),T=(e,t,r)=>r>32?(0,s.im)(e,t,r):(0,s.B4)(e,t,r);function w(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=v(o,a,1)^r[n],l=T(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=c[r],o=v(t,i,n),a=T(t,i,n),s=u[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=E[n],e[1]^=b[n]}r.fill(0)}class A extends l.Vw{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.ai)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,l.DH)(this.state)}keccak(){w(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,a.t2)(this);let{blockLen:t,state:r}=this,n=(e=(0,l.ZJ)(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,a.t2)(this,!1),(0,a.ee)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,a.ai)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,a.CG)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new A(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let N=(n=1,i=136,o=32,(0,l.ld)(()=>new A(i,n,o)));var S=r(7160);let _=!1,x=function(e){return N(e)},I=x;function O(e){let t=(0,S.q5)(e,"data");return(0,S.c$)(I(t))}O._=x,O.lock=function(){_=!0},O.register=function(e){if(_)throw TypeError("keccak256 is locked");I=e},Object.freeze(O)},26273:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(85667),i=r(6816);function o(e){return(!!(0,n.$)(e)||"number"==typeof e)&&!isNaN(Number((0,i.a)(e)))}},26432:(e,t,r)=>{"use strict";var n=r(49524),i=r(68705);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},26515:(e,t,r)=>{"use strict";t.sha1=r(28675),t.sha224=r(26432),t.sha256=r(68705),t.sha384=r(13261),t.sha512=r(39228)},26653:(e,t,r)=>{"use strict";r.d(t,{EK:()=>o,FX:()=>a,x5:()=>i});var n=r(95431);let i=new n.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");new n.PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=new n.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),a=new n.PublicKey("So11111111111111111111111111111111111111112");new n.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP")},26667:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(57498);let i=e=>(t,r,i)=>(i.setState=(e,r,...i)=>t("function"==typeof e?(0,n.jM)(e):e,r,...i),e(i.setState,r,i))},26853:(e,t,r)=>{"use strict";r.d(t,{ul:()=>tZ,rD:()=>tT,Us:()=>tW,Wk:()=>t2,rZ:()=>t0,TX:()=>t1});var n=r(13741),i=r(93568),o=r(94483),a=r(55481),s=r(33410),l=r(52561),u=r(42073),c=r(150);let d={lessThanXSeconds:{one:"Ø£ÙÙ Ù
٠ثاÙÙØ© ÙØ§ØØ¯Ø©",two:"Ø£ÙÙ Ù
Ù Ø«Ø§ÙØªÙÙ",threeToTen:"Ø£ÙÙ Ù
Ù {{count}} Ø«ÙØ§ÙÙ",other:"Ø£ÙÙ Ù
Ù {{count}} ثاÙÙØ©"},xSeconds:{one:"ثاÙÙØ© ÙØ§ØØ¯Ø©",two:"Ø«Ø§ÙØªÙÙ",threeToTen:"{{count}} Ø«ÙØ§ÙÙ",other:"{{count}} ثاÙÙØ©"},halfAMinute:"ÙØµÙ دÙÙÙØ©",lessThanXMinutes:{one:"Ø£ÙÙ Ù
٠دÙÙÙØ©",two:"Ø£ÙÙ Ù
٠دÙÙÙØªÙÙ",threeToTen:"Ø£ÙÙ Ù
Ù {{count}} Ø¯ÙØ§Ø¦Ù",other:"Ø£ÙÙ Ù
Ù {{count}} دÙÙÙØ©"},xMinutes:{one:"دÙÙÙØ© ÙØ§ØØ¯Ø©",two:"دÙÙÙØªÙÙ",threeToTen:"{{count}} Ø¯ÙØ§Ø¦Ù",other:"{{count}} دÙÙÙØ©"},aboutXHours:{one:"ساعة ÙØ§ØØ¯Ø© ØªÙØ±ÙباÙ",two:"ساعتÙÙ ØªÙØ±ÙباÙ",threeToTen:"{{count}} ساعات ØªÙØ±ÙباÙ",other:"{{count}} ساعة ØªÙØ±ÙباÙ"},xHours:{one:"ساعة ÙØ§ØØ¯Ø©",two:"ساعتÙÙ",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"ÙÙÙ
ÙØ§ØØ¯",two:"ÙÙÙ
ÙÙ",threeToTen:"{{count}} Ø£ÙØ§Ù
",other:"{{count}} ÙÙÙ
"},aboutXWeeks:{one:"Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯ ØªÙØ±ÙباÙ",two:"Ø£Ø³Ø¨ÙØ¹ÙÙ ØªÙØ±ÙباÙ",threeToTen:"{{count}} Ø£Ø³Ø§Ø¨ÙØ¹ ØªÙØ±ÙباÙ",other:"{{count}} Ø£Ø³Ø¨ÙØ¹ ØªÙØ±ÙباÙ"},xWeeks:{one:"Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯",two:"Ø£Ø³Ø¨ÙØ¹ÙÙ",threeToTen:"{{count}} Ø£Ø³Ø§Ø¨ÙØ¹",other:"{{count}} Ø£Ø³Ø¨ÙØ¹"},aboutXMonths:{one:"Ø´ÙØ± ÙØ§ØØ¯ ØªÙØ±ÙباÙ",two:"Ø´ÙØ±ÙÙ ØªÙØ±ÙباÙ",threeToTen:"{{count}} Ø£Ø´ÙØ± ØªÙØ±ÙباÙ",other:"{{count}} Ø´ÙØ± ØªÙØ±ÙباÙ"},xMonths:{one:"Ø´ÙØ± ÙØ§ØØ¯",two:"Ø´ÙØ±ÙÙ",threeToTen:"{{count}} Ø£Ø´ÙØ±",other:"{{count}} Ø´ÙØ±"},aboutXYears:{one:"عاÙ
ÙØ§ØØ¯ ØªÙØ±ÙباÙ",two:"عاÙ
ÙÙ ØªÙØ±ÙباÙ",threeToTen:"{{count}} Ø£Ø¹ÙØ§Ù
ØªÙØ±ÙباÙ",other:"{{count}} عاÙ
ØªÙØ±ÙباÙ"},xYears:{one:"عاÙ
ÙØ§ØØ¯",two:"عاÙ
ÙÙ",threeToTen:"{{count}} Ø£Ø¹ÙØ§Ù
",other:"{{count}} عاÙ
"},overXYears:{one:"Ø£ÙØ«Ø± Ù
٠عاÙ
",two:"Ø£ÙØ«Ø± Ù
٠عاÙ
ÙÙ",threeToTen:"Ø£ÙØ«Ø± Ù
Ù {{count}} Ø£Ø¹ÙØ§Ù
",other:"Ø£ÙØ«Ø± Ù
Ù {{count}} عاÙ
"},almostXYears:{one:"عاÙ
ÙØ§ØØ¯ ØªÙØ±ÙباÙ",two:"عاÙ
ÙÙ ØªÙØ±ÙباÙ",threeToTen:"{{count}} Ø£Ø¹ÙØ§Ù
ØªÙØ±ÙباÙ",other:"{{count}} عاÙ
ØªÙØ±ÙباÙ"}},f=(e,t,r)=>{let n,i=d[e];if(n="string"==typeof i?i:1===t?i.one:2===t?i.two:t<=10?i.threeToTen.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"ÙÙ Ø®ÙØ§Ù "+n;else return"Ù
ÙØ° "+n;return n};var h=r(73904);let p={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},g={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},m={full:"{{date}} 'Ø¹ÙØ¯' {{time}}",long:"{{date}} 'Ø¹ÙØ¯' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y={date:(0,h.k)({formats:p,defaultWidth:"full"}),time:(0,h.k)({formats:g,defaultWidth:"full"}),dateTime:(0,h.k)({formats:m,defaultWidth:"full"})},E={lastWeek:"'أخر' eeee 'Ø¹ÙØ¯' p",yesterday:"'Ø£Ù
س Ø¹ÙØ¯' p",today:"'اÙÙÙÙ
Ø¹ÙØ¯' p",tomorrow:"'ØºØ¯Ø§Ù Ø¹ÙØ¯' p",nextWeek:"eeee 'Ø¹ÙØ¯' p",other:"P"},b=(e,t,r,n)=>E[e];var v=r(71102);let T={narrow:["Ù","ب"],abbreviated:["Ù.Ù
.","ب.Ù
."],wide:["ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯","بعد اÙÙ
ÙÙØ§Ø¯"]},w={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ£ÙÙ","Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙÙ","Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙØ«","Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ±Ø§Ø¨Ø¹"]},A={narrow:["Ù","Ù","Ù
","Ø£","Ù
","Ù","Ù","Ø£","س","Ø£","Ù","د"],abbreviated:["ÙÙØ§","ÙØ¨Ø±","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙ","ÙÙÙÙ","أغسÙ","سبتÙ","Ø£ÙØªÙ","ÙÙ
1ÙÙ","Ø¯ÙØ³Ù"],wide:["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"]},N={narrow:["Ø","Ù","Ø«","ر","Ø®","ج","س"],short:["Ø£ØØ¯","اثÙÙÙ","Ø«ÙØ§Ø«Ø§Ø¡","أربعاء","Ø®Ù
ÙØ³","جÙ
عة","سبت"],abbreviated:["Ø£ØØ¯","اثÙÙ","Ø«ÙØ§","أربÙ","Ø®Ù
ÙÙ","جÙ
عة","سبت"],wide:["Ø§ÙØ£ØØ¯","Ø§ÙØ§Ø«ÙÙÙ","Ø§ÙØ«Ùاثاء","Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡","Ø§ÙØ®Ù
ÙØ³","Ø§ÙØ¬Ù
عة","Ø§ÙØ³Ø¨Øª"]},S={narrow:{am:"ص",pm:"Ù
",midnight:"Ù",noon:"ظ",morning:"ØµØ¨Ø§ØØ§Ù",afternoon:"بعد Ø§ÙØ¸Ùر",evening:"Ù
ساءاÙ",night:"ÙÙÙØ§Ù"},abbreviated:{am:"ص",pm:"Ù
",midnight:"ÙØµÙ اÙÙÙÙ",noon:"Ø¸ÙØ±",morning:"ØµØ¨Ø§ØØ§Ù",afternoon:"بعد Ø§ÙØ¸Ùر",evening:"Ù
ساءاÙ",night:"ÙÙÙØ§Ù"},wide:{am:"ص",pm:"Ù
",midnight:"ÙØµÙ اÙÙÙÙ",noon:"Ø¸ÙØ±",morning:"ØµØ¨Ø§ØØ§Ù",afternoon:"بعد Ø§ÙØ¸Ùر",evening:"Ù
ساءاÙ",night:"ÙÙÙØ§Ù"}},_={narrow:{am:"ص",pm:"Ù
",midnight:"Ù",noon:"ظ",morning:"ÙÙ Ø§ÙØµØ¨Ø§Ø",afternoon:"بعد Ø§ÙØ¸ÙÙØ±",evening:"Ù٠اÙÙ
ساء",night:"Ù٠اÙÙÙÙ"},abbreviated:{am:"ص",pm:"Ù
",midnight:"ÙØµÙ اÙÙÙÙ",noon:"Ø¸ÙØ±",morning:"ÙÙ Ø§ÙØµØ¨Ø§Ø",afternoon:"بعد Ø§ÙØ¸Ùر",evening:"Ù٠اÙÙ
ساء",night:"Ù٠اÙÙÙÙ"},wide:{am:"ص",pm:"Ù
",midnight:"ÙØµÙ اÙÙÙÙ",noon:"Ø¸ÙØ±",morning:"ØµØ¨Ø§ØØ§Ù",afternoon:"بعد Ø§ÙØ¸ÙÙØ±",evening:"Ù٠اÙÙ
ساء",night:"Ù٠اÙÙÙÙ"}},x={ordinalNumber:e=>String(e),era:(0,v.o)({values:T,defaultWidth:"wide"}),quarter:(0,v.o)({values:w,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,v.o)({values:A,defaultWidth:"wide"}),day:(0,v.o)({values:N,defaultWidth:"wide"}),dayPeriod:(0,v.o)({values:S,defaultWidth:"wide",formattingValues:_,defaultFormattingWidth:"wide"})};var I=r(2932),O=r(87680);let R=/^(\d+)(th|st|nd|rd)?/i,P=/\d+/i,M={narrow:/^(Ù|ب)/i,abbreviated:/^(Ù\.?\s?Ù
\.?|Ù\.?\s?Ù
\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯|ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯|بعد اÙÙ
ÙÙØ§Ø¯|بعد اÙÙ
ÙÙØ§Ø¯)/i},C={any:[/^ÙØ¨Ù/i,/^بعد/i]},k={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^Ø§ÙØ±Ø¨Ø¹ [1234]/i},L={any:[/1/i,/2/i,/3/i,/4/i]},D={narrow:/^[ÙÙÙ
Ø£Ù
Ø³ÙØ¯]/i,abbreviated:/^(ÙÙ|Ù|Ù
ار|أب|Ù
اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i,wide:/^(ÙÙ|Ù|Ù
ار|أب|Ù
اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i},B={narrow:[/^Ù/i,/^Ù/i,/^Ù
/i,/^Ø£/i,/^Ù
/i,/^Ù/i,/^Ù/i,/^Ø£/i,/^س/i,/^Ø£/i,/^Ù/i,/^د/i],any:[/^ÙÙ/i,/^Ù/i,/^Ù
ار/i,/^أب/i,/^Ù
اÙ/i,/^ÙÙÙ/i,/^ÙÙÙ/i,/^أغ/i,/^س/i,/^Ø£Ù/i,/^Ù/i,/^د/i]},V={narrow:/^[ØÙثرخجس]/i,short:/^(Ø£ØØ¯|اثÙÙÙ|Ø«ÙØ§Ø«Ø§Ø¡|أربعاء|Ø®Ù
ÙØ³|جÙ
عة|سبت)/i,abbreviated:/^(Ø£ØØ¯|اثÙ|Ø«ÙØ§|أرب|Ø®Ù
Ù|جÙ
عة|سبت)/i,wide:/^(Ø§ÙØ£ØØ¯|Ø§ÙØ§Ø«ÙÙÙ|Ø§ÙØ«Ùاثاء|Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡|Ø§ÙØ®Ù
ÙØ³|Ø§ÙØ¬Ù
عة|Ø§ÙØ³Ø¨Øª)/i},F={narrow:[/^Ø/i,/^Ù/i,/^Ø«/i,/^ر/i,/^Ø®/i,/^ج/i,/^س/i],wide:[/^Ø§ÙØ£ØØ¯/i,/^Ø§ÙØ§Ø«ÙÙÙ/i,/^Ø§ÙØ«Ùاثاء/i,/^Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡/i,/^Ø§ÙØ®Ù
ÙØ³/i,/^Ø§ÙØ¬Ù
عة/i,/^Ø§ÙØ³Ø¨Øª/i],any:[/^Ø£Ø/i,/^اث/i,/^Ø«/i,/^أر/i,/^Ø®/i,/^ج/i,/^س/i]},U={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},j={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H={code:"ar-SA",formatDistance:f,formatLong:y,formatRelative:b,localize:x,match:{ordinalNumber:(0,O.K)({matchPattern:R,parsePattern:P,valueCallback:e=>parseInt(e,10)}),era:(0,I.A)({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:C,defaultParseWidth:"any"}),quarter:(0,I.A)({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,I.A)({matchPatterns:D,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),day:(0,I.A)({matchPatterns:V,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"any"}),dayPeriod:(0,I.A)({matchPatterns:U,defaultMatchWidth:"any",parsePatterns:j,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},G={lessThanXSeconds:{one:"Ú©Ù
تر از ÛÚ© ثاÙÛÙ",other:"Ú©Ù
تر از {{count}} ثاÙÛÙ"},xSeconds:{one:"1 ثاÙÛÙ",other:"{{count}} ثاÙÛÙ"},halfAMinute:"ÙÛÙ
دÙÛÙÙ",lessThanXMinutes:{one:"Ú©Ù
تر از ÛÚ© دÙÛÙÙ",other:"Ú©Ù
تر از {{count}} دÙÛÙÙ"},xMinutes:{one:"1 دÙÛÙÙ",other:"{{count}} دÙÛÙÙ"},aboutXHours:{one:"ØØ¯Ùد 1 ساعت",other:"ØØ¯Ùد {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 Ø±ÙØ²",other:"{{count}} Ø±ÙØ²"},aboutXWeeks:{one:"ØØ¯Ùد 1 ÙÙØªÙ",other:"ØØ¯Ùد {{count}} ÙÙØªÙ"},xWeeks:{one:"1 ÙÙØªÙ",other:"{{count}} ÙÙØªÙ"},aboutXMonths:{one:"ØØ¯Ùد 1 Ù
اÙ",other:"ØØ¯Ùد {{count}} Ù
اÙ"},xMonths:{one:"1 Ù
اÙ",other:"{{count}} Ù
اÙ"},aboutXYears:{one:"ØØ¯Ùد 1 ساÙ",other:"ØØ¯Ùد {{count}} ساÙ"},xYears:{one:"1 ساÙ",other:"{{count}} ساÙ"},overXYears:{one:"Ø¨ÛØ´ØªØ± از 1 ساÙ",other:"Ø¨ÛØ´ØªØ± از {{count}} ساÙ"},almostXYears:{one:"ÙØ²Ø¯ÛÚ© 1 ساÙ",other:"ÙØ²Ø¯ÛÚ© {{count}} ساÙ"}},K=(e,t,r)=>{let n,i=G[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"در "+n;else return n+" ÙØ¨Ù";return n},z={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},W={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},q={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y={date:(0,h.k)({formats:z,defaultWidth:"full"}),time:(0,h.k)({formats:W,defaultWidth:"full"}),dateTime:(0,h.k)({formats:q,defaultWidth:"full"})},$={lastWeek:"eeee 'گذشت٠در' p",yesterday:"'Ø¯ÛØ±Ùز در' p",today:"'اÙ
Ø±ÙØ² در' p",tomorrow:"'ÙØ±Ø¯Ø§ در' p",nextWeek:"eeee 'در' p",other:"P"},X=(e,t,r,n)=>$[e],J={narrow:["Ù","ب"],abbreviated:["Ù.Ù
.","ب.Ù
."],wide:["ÙØ¨Ù از Ù
ÛÙØ§Ø¯","بعد از Ù
ÛÙØ§Ø¯"]},Q={narrow:["1","2","3","4"],abbreviated:["سâÙ
1","سâÙ
2","سâÙ
3","سâÙ
4"],wide:["سÙâÙ
اÙÙ 1","سÙâÙ
اÙÙ 2","سÙâÙ
اÙÙ 3","سÙâÙ
اÙÙ 4"]}
1,Z={narrow:["Ú","Ù","Ù
","Ø¢","Ù
","ج","ج","Ø¢","س","ا","Ù","د"],abbreviated:["ÚØ§ÙÙ","ÙÙØ±","Ù
ارس","آپر","Ù
Û","جÙÙ","جÙÙÙ","Ø¢Ú¯Ù","سپتÙ","اکتÙ","ÙÙØ§Ù
Ù","دساÙ
Ù"],wide:["ÚØ§ÙÙÛÙ","ÙÙØ±ÛÙ","Ù
ارس","آپرÛÙ","Ù
Û","جÙÙ","جÙÙØ§Û","Ø¢Ú¯ÙØ³Øª","سپتاÙ
بر","اکتبر","ÙÙØ§Ù
بر","دساÙ
بر"]},ee={narrow:["Û","د","س","Ú","Ù¾","ج","Ø´"],short:["1Ø´","2Ø´","3Ø´","4Ø´","5Ø´","ج","Ø´"],abbreviated:["ÛÚ©Ø´ÙØ¨Ù","Ø¯ÙØ´ÙبÙ","سÙâØ´ÙØ¨Ù","ÚÙØ§Ø±Ø´ÙبÙ","Ù¾ÙØ¬Ø´ÙبÙ","جÙ
عÙ","Ø´ÙØ¨Ù"],wide:["ÛÚ©Ø´ÙØ¨Ù","Ø¯ÙØ´ÙبÙ","سÙâØ´ÙØ¨Ù","ÚÙØ§Ø±Ø´ÙبÙ","Ù¾ÙØ¬Ø´ÙبÙ","جÙ
عÙ","Ø´ÙØ¨Ù"]},et={narrow:{am:"Ù",pm:"ب",midnight:"Ù",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"Ø´"},abbreviated:{am:"Ù.ظ.",pm:"ب.ظ.",midnight:"ÙÛÙ
ÙâØ´Ø¨",noon:"Ø¸ÙØ±",morning:"صبØ",afternoon:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",evening:"عصر",night:"شب"},wide:{am:"ÙØ¨ÙâØ§Ø²Ø¸ÙØ±",pm:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",midnight:"ÙÛÙ
ÙâØ´Ø¨",noon:"Ø¸ÙØ±",morning:"صبØ",afternoon:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",evening:"عصر",night:"شب"}},er={narrow:{am:"Ù",pm:"ب",midnight:"Ù",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"Ø´"},abbreviated:{am:"Ù.ظ.",pm:"ب.ظ.",midnight:"ÙÛÙ
ÙâØ´Ø¨",noon:"Ø¸ÙØ±",morning:"صبØ",afternoon:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",evening:"عصر",night:"شب"},wide:{am:"ÙØ¨ÙâØ§Ø²Ø¸ÙØ±",pm:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",midnight:"ÙÛÙ
ÙâØ´Ø¨",noon:"Ø¸ÙØ±",morning:"صبØ",afternoon:"Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±",evening:"عصر",night:"شب"}},en={ordinalNumber:(e,t)=>String(e),era:(0,v.o)({values:J,defaultWidth:"wide"}),quarter:(0,v.o)({values:Q,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,v.o)({values:Z,defaultWidth:"wide"}),day:(0,v.o)({values:ee,defaultWidth:"wide"}),dayPeriod:(0,v.o)({values:et,defaultWidth:"wide",formattingValues:er,defaultFormattingWidth:"wide"})},ei=/^(\d+)(th|st|nd|rd)?/i,eo=/\d+/i,ea={narrow:/^(Ù|ب)/i,abbreviated:/^(Ù\.?\s?Ù
\.?|Ù\.?\s?د\.?\s?Ù
\.?|Ù
\.?\s?|د\.?\s?Ù
\.?)/i,wide:/^(ÙØ¨Ù از Ù
ÛÙØ§Ø¯|ÙØ¨Ù از Ø¯ÙØ±Ø§Ù Ù
شترک|Ù
ÛÙØ§Ø¯Û|Ø¯ÙØ±Ø§Ù Ù
شترک|بعد از Ù
ÛÙØ§Ø¯)/i},es={any:[/^ÙØ¨Ù/i,/^بعد/i]},el={narrow:/^[1234]/i,abbreviated:/^سâÙ
[1234]/i,wide:/^سÙâÙ
اÙÙ [1234]/i},eu={any:[/1/i,/2/i,/3/i,/4/i]},ec={narrow:/^[جÚÙÙ
آاÙ
Ø§Ø³ÙØ¯]/i,abbreviated:/^(جÙÙ|ÚØ§ÙÙ|ÚØ§ÙÙÛÙ|ÙÙØ±ÛÙ|ÙÙØ±|Ù
ارس|Ø¢ÙØ±ÛÙ|آپر|Ù
Ù|Ù
Û|ÚÙØ¦Ù|جÙÙ|جÙÙ|جÙÙÙ|ÚÙØ¦ÛÙ|Ø§ÙØª|Ø¢Ú¯Ù|سپتÙ
بر|سپتاÙ
بر|اکتبر|Ø§Ú©ØªÙØ¨Ø±|ÙÙØ§Ù
بر|ÙÙØ§Ù
Ù|دساÙ
بر|دساÙ
Ù|دسÙ
)/i,wide:/^(ÚØ§ÙÙÛÙ|جÙÙØ±Û|ÙØ¨Ø±ÙرÛ|ÙÙØ±ÛÙ|Ù
ارÚ|Ù
ارس|آپرÛÙ|اپرÛÙ|اÛپرÛÙ|Ø¢ÙØ±ÛÙ|Ù
Ù|Ù
Û|ÚÙØ¦Ù|جÙÙ|جÙÙØ§Û|ÚÙØ¦ÛÙ|آگست|اگست|Ø¢Ú¯ÙØ³Øª|Ø§ÙØª|سپتÙ
بر|سپتاÙ
بر|اکتبر|Ø§Ú©ØªÙØ¨Ø±|ÙÙØ§Ù
بر|ÙÙÙ
بر|دساÙ
بر|دسÙ
بر)/i},ed={narrow:[/^(Ú|ج)/i,/^Ù/i,/^Ù
/i,/^(Ø¢|ا)/i,/^Ù
/i,/^(Ú|ج)/i,/^(ج|Ú)/i,/^(Ø¢|ا)/i,/^س/i,/^ا/i,/^Ù/i,/^د/i],any:[/^ÚØ§/i,/^Ù/i,/^Ù
ا/i,/^آپ/i,/^(Ù
Û|Ù
Ù)/i,/^(ÚÙØ¦Ù|جÙÙ)/i,/^(ÚÙØ¦Û|جÙÙ)/i,/^(Ø§ÙØª|Ø¢Ú¯)/i,/^س/i,/^(اÙÚ©|اک)/i,/^Ù/i,/^د/i]},ef={narrow:/^[Ø´ÛØ¯Ø³Úپج]/i,short:/^(Ø´|ج|1Ø´|2Ø´|3Ø´|4Ø´|5Ø´)/i,abbreviated:/^(ÛÚ©Ø´ÙØ¨Ù|Ø¯ÙØ´ÙبÙ|سÙâØ´ÙØ¨Ù|ÚÙØ§Ø±Ø´ÙبÙ|Ù¾ÙØ¬âØ´ÙØ¨Ù|جÙ
عÙ|Ø´ÙØ¨Ù)/i,wide:/^(ÛÚ©Ø´ÙØ¨Ù|Ø¯ÙØ´ÙبÙ|سÙâØ´ÙØ¨Ù|ÚÙØ§Ø±Ø´ÙبÙ|Ù¾ÙØ¬âØ´ÙØ¨Ù|جÙ
عÙ|Ø´ÙØ¨Ù)/i},eh={narrow:[/^Û/i,/^دÙ/i,/^س/i,/^Ú/i,/^Ù¾/i,/^ج/i,/^Ø´/i],any:[/^(Û|1Ø´|ÛÚ©Ø´ÙØ¨Ù)/i,/^(د|2Ø´|Ø¯ÙØ´ÙبÙ)/i,/^(س|3Ø´|سÙâØ´ÙØ¨Ù)/i,/^(Ú|4Ø´|ÚÙØ§Ø±Ø´ÙبÙ)/i,/^(Ù¾|5Ø´|Ù¾ÙØ¬Ø´ÙبÙ)/i,/^(ج|جÙ
عÙ)/i,/^(Ø´|Ø´ÙØ¨Ù)/i]},ep={narrow:/^(ب|Ù|Ù|ظ|ص|ب.ظ.|ع|Ø´)/i,abbreviated:/^(Ù.ظ.|ب.ظ.|ÙÛÙ
ÙâØ´Ø¨|Ø¸ÙØ±|صبØ|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±|عصر|شب)/i,wide:/^(ÙØ¨ÙâØ§Ø²Ø¸ÙØ±|ÙÛÙ
ÙâØ´Ø¨|Ø¸ÙØ±|صبØ|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±|عصر|شب)/i},eg={any:{am:/^(Ù|Ù.ظ.|ÙØ¨ÙâØ§Ø²Ø¸ÙØ±)/i,pm:/^(ب|ب.ظ.|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±)/i,midnight:/^(âÙÛÙ
ÙâØ´Ø¨|Ù)/i,noon:/^(ظ|Ø¸ÙØ±)/i,morning:/(ص|صبØ)/i,afternoon:/(ب|ب.ظ.|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±)/i,evening:/(ع|عصر)/i,night:/(Ø´|شب)/i}},em={code:"fa-IR",formatDistance:K,formatLong:Y,formatRelative:X,localize:en,match:{ordinalNumber:(0,O.K)({matchPattern:ei,parsePattern:eo,valueCallback:e=>parseInt(e,10)}),era:(0,I.A)({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any"}),quarter:(0,I.A)({matchPatterns:el,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,I.A)({matchPatterns:ec,defaultMatchWidth:"wide",parsePatterns:ed,defaultParseWidth:"any"}),day:(0,I.A)({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),dayPeriod:(0,I.A)({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:eg,defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}},ey={lessThanXSeconds:{one:"פ××ת ××©× ×××",two:"פ××ת ××©×ª× ×©× ××ת",other:"פ××ת ×Ö¾{{count}} ×©× ××ת"},xSeconds:{one:"×©× ×××",two:"×©×ª× ×©× ××ת",other:"{{count}} ×©× ××ת"},halfAMinute:"××¦× ××§×",lessThanXMinutes:{one:"פ××ת ×××§×",two:"פ××ת ××©×ª× ××§×ת",other:"פ××ת ×Ö¾{{count}} ××§×ת"},xMinutes:{one:"××§×",two:"×©×ª× ××§×ת",other:"{{count}} ××§×ת"},aboutXHours:{one:"×שע×",two:"×שעת×××",other:"×Ö¾{{count}} שע×ת"},xHours:{one:"שע×",two:"שעת×××",other:"{{count}} שע×ת"},xDays:{one:"×××",two:"××××××",other:"{{count}} ××××"},aboutXWeeks:{one:"×ש×××¢",two:"×ש×××¢×××",other:"×Ö¾{{count}} ש×××¢×ת"},xWeeks:{one:"ש×××¢",two:"ש×××¢×××",other:"{{count}} ש×××¢×ת"},aboutXMonths:{one:"××××ש",two:"××××ש×××",other:"×Ö¾{{count}} ×××ש××"},xMonths:{one:"×××ש",two:"×××ש×××",other:"{{count}} ×××ש××"},aboutXYears:{one:"××©× ×",two:"××©× ×ª×××",other:"×Ö¾{{count}} ×©× ××"},xYears:{one:"×©× ×",two:"×©× ×ª×××",other:"{{count}} ×©× ××"},overXYears:{one:"××תר ××©× ×",two:"××תר ××©× ×ª×××",other:"××תר ×Ö¾{{count}} ×©× ××"},almostXYears:{one:"×××¢× ×©× ×",two:"×××¢× ×©× ×ª×××",other:"×××¢× {{count}} ×©× ××"}},eE=(e,t,r)=>{let n;if("xDays"===e&&(null==r?void 0:r.addSuffix)&&t<=2)return r.comparison&&r.comparison>0?1===t?"××ר":"××רת×××":1===t?"×ת×××":"ש×ש××";let i=ey[e];if(n="string"==typeof i?i:1===t?i.one:2===t?i.two:i.other.replace("{{count}}",String(t)),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"××¢×× "+n;else return"××¤× × "+n;return n},eb={full:"EEEE, d ×MMMM y",long:"d ×MMMM y",medium:"d ×MMM y",short:"d.M.y"},ev={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},eT={full:"{{date}} '×שע×' {{time}}",long:"{{date}} '×שע×' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ew={date:(0,h.k)({formats:eb,defaultWidth:"full"}),time:(0,h.k)({formats:ev,defaultWidth:"full"}),dateTime:(0,h.k)({formats:eT,defaultWidth:"full"})},eA={lastWeek:"eeee 'שע×ר ×שע×' p",yesterday:"'×ת××× ×שע×' p",today:"'×××× ×שע×' p",tomorrow:"'××ר ×שע×' p",nextWeek:"eeee '×שע×' p",other:"P"},eN=(e,t,r,n)=>eA[e],eS={narrow:["××¤× ×״ס","×ספ×ר×"],abbreviated:["××¤× ×״ס","×ספ×ר×"],wide:["××¤× × ×ספ×ר×","×ספ×ר×"]},e_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ר××¢×× 1","ר××¢×× 2","ר××¢×× 3","ר××¢×× 4"]},ex={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["×× ×׳","פ×ר׳","×רץ","×פר׳","×××","××× ×","××××","×××׳","ספ×׳","××ק׳","× ××׳","×צ×׳"],wide:["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"]},eI={narrow:["×׳","×׳","×׳","×׳","×׳","×׳","ש׳"],short:["×׳","×׳","×׳","×׳","×׳","×׳","ש׳"],abbreviated:["××× ×׳","××× ×׳","××× ×׳","××× ×׳","××× ×׳","××× ×׳","ש×ת"],wide:["××× ×¨×ש××","××× ×©× ×","××× ×©××ש×","××× ×¨×××¢×","××× ×××ש×","××× ×©×ש×","××× ×©×ת"]}
1,eO={narrow:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"},abbreviated:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"},wide:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"}},eR={narrow:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"×צ×ר×××",evening:"×ער×",night:"×××××"},abbreviated:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"××ר ×צ×ר×××",evening:"×ער×",night:"×××××"},wide:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"××ר ×צ×ר×××",evening:"×ער×",night:"×××××"}},eP={ordinalNumber:(e,t)=>{let r=Number(e);if(r<=0||r>10)return String(r);let n=["year","hour","minute","second"].indexOf(String(null==t?void 0:t.unit))>=0,i=["ר×ש××","×©× ×","ש××ש×","ר×××¢×","×××ש×","ש×ש×","ש×××¢×","ש××× ×","תש××¢×","עש×ר×"],o=["ר×ש×× ×","×©× ×××","ש××ש×ת","ר×××¢×ת","×××ש×ת","ש×ש×ת","ש×××¢×ת","ש××× ×ת","תש××¢×ת","עש×ר×ת"],a=r-1;return n?o[a]:i[a]},era:(0,v.o)({values:eS,defaultWidth:"wide"}),quarter:(0,v.o)({values:e_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,v.o)({values:ex,defaultWidth:"wide"}),day:(0,v.o)({values:eI,defaultWidth:"wide"}),dayPeriod:(0,v.o)({values:eO,defaultWidth:"wide",formattingValues:eR,defaultFormattingWidth:"wide"})},eM=/^(\d+|(ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×××¢×|ש××× ×|תש××¢×|עש×ר×|ר×ש×× ×|×©× ×××|ש××ש×ת|ר×××¢×ת|×××ש×ת|ש×ש×ת|ש×××¢×ת|ש××× ×ת|תש××¢×ת|עש×ר×ת))/i,eC=/^(\d+|ר×|×©× |ש×|ר×|×|ש×|ש×|ש×|ת|×¢)/i,ek={narrow:/^×(ספ×ר×|×¤× ×״ס)/i,abbreviated:/^×(ספ×ר×|×¤× ×״ס)/i,wide:/^×(×¤× × ×)?ספ×ר×/i},eL={any:[/^×פ/i,/^×ס/i]},eD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ר××¢×× [1234]/i},eB={any:[/1/i,/2/i,/3/i,/4/i]},eV={narrow:/^\d+/i,abbreviated:/^(×× ×|פ×ר|×רץ|×פר|×××|××× ×|××××|×××|ספ×|×××§|× ××|×צ×)׳?/i,wide:/^(×× ××ר|פ×ר××ר|×רץ|×פר××|×××|××× ×|××××|××××ס×|ספ×××ר|×××§×××ר|× ××××ר|×צ××ר)/i},eF={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^×× /i,/^פ/i,/^×ר/i,/^×פ/i,/^××/i,/^××× /i,/^×××/i,/^×××/i,/^ס/i,/^×××§/i,/^× /i,/^×/i]},eU={narrow:/^[××××××ש]׳/i,short:/^[××××××ש]׳/i,abbreviated:/^(ש×ת|××× (×|×|×|×|×|×)׳)/i,wide:/^××× (ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×ת)/i},ej={abbreviated:[/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/^ש/i],wide:[/×$/i,/× ×$/i,/××ש×$/i,/×¢×$/i,/××ש×$/i,/ש×ש×$/i,/ת$/i],any:[/^×/i,/^×/i,/^×/i,/^×/i,/^×/i,/^×/i,/^ש/i]},eH={any:/^(××ר ×|×)?(×צ×ת|צ×ר×××|××קר|ער×|××××|×××״צ|××¤× ×״צ)/i},eG={any:{am:/^×פ/i,pm:/^×××/i,midnight:/^×/i,noon:/^צ/i,morning:/××קר/i,afternoon:/×צ|××ר/i,evening:/ער×/i,night:/××××/i}},eK=["ר×","×©× ","ש×","ר×","×","ש×","ש×","ש×","ת","×¢"],ez={code:"he",formatDistance:eE,formatLong:ew,formatRelative:eN,localize:eP,match:{ordinalNumber:(0,O.K)({matchPattern:eM,parsePattern:eC,valueCallback:e=>{let t=parseInt(e,10);return isNaN(t)?eK.indexOf(e)+1:t}}),era:(0,I.A)({matchPatterns:ek,defaultMatchWidth:"wide",parsePatterns:eL,defaultParseWidth:"any"}),quarter:(0,I.A)({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:eB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,I.A)({matchPatterns:eV,defaultMatchWidth:"wide",parsePatterns:eF,defaultParseWidth:"any"}),day:(0,I.A)({matchPatterns:eU,defaultMatchWidth:"wide",parsePatterns:ej,defaultParseWidth:"any"}),dayPeriod:(0,I.A)({matchPatterns:eH,defaultMatchWidth:"any",parsePatterns:eG,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},eW={lessThanXSeconds:{one:"ä¸å° 1 ç§",other:"ä¸å° {{count}} ç§"},xSeconds:{one:"1 ç§",other:"{{count}} ç§"},halfAMinute:"ååé",lessThanXMinutes:{one:"ä¸å° 1 åé",other:"ä¸å° {{count}} åé"},xMinutes:{one:"1 åé",other:"{{count}} åé"},xHours:{one:"1 å°æ¶",other:"{{count}} å°æ¶"},aboutXHours:{one:"大约 1 å°æ¶",other:"大约 {{count}} å°æ¶"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个ææ",other:"大约 {{count}} 个ææ"},xWeeks:{one:"1 个ææ",other:"{{count}} 个ææ"},aboutXMonths:{one:"大约 1 个æ",other:"大约 {{count}} 个æ"},xMonths:{one:"1 个æ",other:"{{count}} 个æ"},aboutXYears:{one:"大约 1 å¹´",other:"大约 {{count}} å¹´"},xYears:{one:"1 å¹´",other:"{{count}} å¹´"},overXYears:{one:"è¶
è¿ 1 å¹´",other:"è¶
è¿ {{count}} å¹´"},almostXYears:{one:"å°è¿ 1 å¹´",other:"å°è¿ {{count}} å¹´"}},eq=(e,t,r)=>{let n,i=eW[e];
1if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return n+"å
";else return n+"å";return n},eY={full:"y'å¹´'M'æ'd'æ¥' EEEE",long:"y'å¹´'M'æ'd'æ¥'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},e$={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},eX={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},eJ={date:(0,h.k)({formats:eY,defaultWidth:"full"}),time:(0,h.k)({formats:e$,defaultWidth:"full"}),dateTime:(0,h.k)({formats:eX,defaultWidth:"full"})};var eQ=r(58456);function eZ(e,t,r){return+(0,eQ.k)(e,r)==+(0,eQ.k)(t,r)}function e0(e,t,r){let n="eeee p";return eZ(e,t,r)?n:e.getTime()>t.getTime()?"'ä¸ä¸ª'"+n:"'ä¸ä¸ª'"+n}let e1={lastWeek:e0,yesterday:"'æ¨å¤©' p",today:"'ä»å¤©' p",tomorrow:"'æå¤©' p",nextWeek:e0,other:"PP p"},e2=(e,t,r,n)=>{let i=e1[e];return"function"==typeof i?i(t,r,n):i},e3={narrow:["å","å
Œ
"],abbreviated:["å","å
Œ
"],wide:["å
Œ
å","å
Œ
"]},e4={narrow:["1","2","3","4"],abbreviated:["第ä¸å£","第äºå£","第ä¸å£","第åå£"],wide:["第ä¸å£åº¦","第äºå£åº¦","第ä¸å£åº¦","第åå£åº¦"]},e5={narrow:["ä¸","äº","ä¸","å","äº","å
","ä¸","å
«","ä¹","å","åä¸","åäº"],abbreviated:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],wide:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"]},e6={narrow:["æ¥","ä¸","äº","ä¸","å","äº","å
"],short:["æ¥","ä¸","äº","ä¸","å","äº","å
"],abbreviated:["卿¥","å¨ä¸","å¨äº","å¨ä¸","å¨å","å¨äº","å¨å
"],wide:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"]},e8={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},e7={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},e9={ordinalNumber:(e,t)=>{let r=Number(e);switch(null==t?void 0:t.unit){case"date":return r.toString()+"æ¥";case"hour":return r.toString()+"æ¶";case"minute":return r.toString()+"å";case"second":return r.toString()+"ç§";default:return"第 "+r.toString()}},era:(0,v.o)({values:e3,defaultWidth:"wide"}),quarter:(0,v.o)({values:e4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,v.o)({values:e5,defaultWidth:"wide"}),day:(0,v.o)({values:e6,defaultWidth:"wide"}),dayPeriod:(0,v.o)({values:e8,defaultWidth:"wide",formattingValues:e7,defaultFormattingWidth:"wide"})},te=/^(第\s*)?\d+(æ¥|æ¶|å|ç§)?/i,tt=/\d+/i,tr={narrow:/^(å)/i,abbreviated:/^(å)/i,wide:/^(å
Œ
å|å
Œ
)/i},tn={any:[/^(å)/i,/^(å
Œ
)/i]},ti={narrow:/^[1234]/i,abbreviated:/^第[ä¸äºä¸å]å»/i,wide:/^第[ä¸äºä¸å]å»é/i},to={any:[/(1|ä¸)/i,/(2|äº)/i,/(3|ä¸)/i,/(4|å)/i]},ta={narrow:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸])/i,abbreviated:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]|\d|1[12])æ/i,wide:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸])æ/i},ts={narrow:[/^ä¸/i,/^äº/i,/^ä¸/i,/^å/i,/^äº/i,/^å
/i,/^ä¸/i,/^å
«/i,/^ä¹/i,/^å(?!(ä¸|äº))/i,/^åä¸/i,/^åäº/i],any:[/^ä¸|1/i,/^äº|2/i,/^ä¸|3/i,/^å|4/i,/^äº|5/i,/^å
|6/i,/^ä¸|7/i,/^å
«|8/i,/^ä¹|9/i,/^å(?!(ä¸|äº))|10/i,/^åä¸|11/i,/^åäº|12/i]},tl={narrow:/^[ä¸äºä¸åäºå
æ¥]/i,short:/^[ä¸äºä¸åäºå
æ¥]/i,abbreviated:/^å¨[ä¸äºä¸åäºå
æ¥]/i,wide:/^ææ[ä¸äºä¸åäºå
æ¥]/i},tu={any:[/æ¥/i,/ä¸/i,/äº/i,/ä¸/i,/å/i,/äº/i,/å
/i]},tc={any:/^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍|)/i},td={any:{am:/^ä¸å?/i,pm:/^ä¸å?/i,midnight:/^åå¤/i,noon:/^[䏿£]å/i,morning:/^æ©ä¸/i,afternoon:/^ä¸å/i,evening:/^æä¸?/i,night:/^忍/i}},tf={code:"zh-CN",formatDistance:eq,formatLong:eJ,formatRelative:e2,localize:e9,match:{ordinalNumber:(0,O.K)({matchPattern:te,parsePattern:tt,valueCallback:e=>parseInt(e,10)}),era:(0,I.A)({matchPatterns:tr,defaultMatchWidth:"wide",parsePatterns:tn,defaultParseWidth:"any"}),quarter:(0,I.A)({matchPatterns:ti,defaultMatchWidth:"wide",parsePatterns:to,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,I.A)({matchPatterns:ta,defaultMatchWidth:"wide",parsePatterns:ts,defaultParseWidth:"any"}),day:(0,I.A)({matchPatterns:tl,defaultMatchWidth:"wide",parsePatterns:tu,defaultParseWidth:"any"}),dayPeriod:(0,I.A)({matchPatterns:tc,defaultMatchWidth:"any",parsePatterns:td,defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var th=()=>{(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("ref");e&&localStorage.setItem("referral_code",e)},[])};function tp(e){return"BUY"===e?s.Ru.t("common.buy"):"SELL"===e?s.Ru.t("common.sell"):(0,l.c)(e)}function tg(e,t,r){let{symbol:n,side:i,quantity:l,client_order_id:u,fieldChanges:c}=e,d="total_executed_quantity"in e?e.total_executed_quantity:0,f="status"in e?e.status:e.algo_status,h=t[n],p=h("base_dp");h("quote_dp");let g=tp(i),m="algo_type"in e&&e.algo_type===a.yL.POSITIONAL_TP_SL?s.Ru.t("tpsl.entirePosition"):void 0===p?l:(0,o.$Jr)(l,{dp:p}),y="",E="";
1switch(f){case a.Re.NEW:y=u?.startsWith("scaled_")?s.Ru.t("orders.status.scaledSubOrderOpened.toast.title"):s.Ru.t("orders.status.opened.toast.title"),E=`${g} ${r} ${m}`;break;case a.Re.FILLED:case a.Re.PARTIAL_FILLED:let b=void 0===p?d:(0,o.$Jr)(d,{dp:p});y=s.Ru.t("orders.status.filled.toast.title"),E=`${g} ${r} ${b} / ${m}`;break;case a.Re.CANCELLED:y=s.Ru.t("orders.status.canceled.toast.title"),E=`${g} ${r} ${m}`;break;case a.Re.REJECTED:y=s.Ru.t("orders.status.rejected.toast.title"),E=`${g} ${r} ${m}`;break;case a.Re.REPLACED:let{algo_type:v,activated_price:T}=e;if(v===a.yL.TRAILING_STOP){let e=c?.[a.yL.TRAILING_STOP]||{};e.is_activated&&e.extreme_price&&T?(y=s.Ru.t("orders.trailingStop.activated"),E=`${r} @${T}`):e.extreme_price&&(y="",E="")}else y=s.Ru.t("orders.status.replaced.toast.title"),E=`${i} ${r} ${d} / ${m}`}return{title:y,msg:E,status:f}}var tm="orderly_order_sound_alert",ty="orderly_order_sound_option",tE=()=>{let e=(0,i.mld)(),t=(0,i.RKu)(),r=(0,n.useRef)({}),{notification:s}=(0,i.oCS)(),[l]=(0,i.d9L)(),c=(0,n.useRef)(void 0);(0,n.useEffect)(()=>{r.current=t},[t]),(0,n.useEffect)(()=>{c.current=l},[l]);let d=s?.orderFilled,f=d?.soundOptions,h=d?.defaultSoundValue??f?.[0]?.value,[p]=(0,i.Mjh)(ty,h??null),g=f?.find(e=>e.value===p)??f?.[0],m=(f&&f.length?g?.media:void 0)??d?.media??"",[y]=(0,i.Mjh)(tm,d?.defaultOpen??!1),{play:E}=(0,i.RNl)(m,{enabled:y,volume:1}),b=(0,i.YQI)(e=>{(e=>{let t=(0,i.wGq)(e.symbol,r.current,c.current),{title:n,msg:s,status:l}=tg(e,r.current,t);(l===a.Re.FILLED||l===a.Re.PARTIAL_FILLED)&&E();let d=e.algo_type||e.type;n&&s&&o.oRP.success((0,u.jsxs)("div",{children:[n,(0,u.jsx)("br",{}),(0,u.jsx)("div",{className:"orderly-text-white/[0.54] orderly-text-xs",children:s})]}),{id:d})})(e)},100);(0,n.useEffect)(()=>(e.on("orders:changed",b),()=>{e.off("orders:changed",b),b.cancel()}),[e,b])};function tb(){let{t:e}=(0,s.Bd)(),t=(0,s.XC)();return(0,n.useMemo)(()=>{let r={[s.K5.en]:c.c,[s.K5.ar]:H,[s.K5.fa]:em,[s.K5.he]:ez,[s.K5.zh]:tf};return{locale:t,dialog:{ok:e("common.ok"),cancel:e("common.cancel")},modal:{confirm:e("common.confirm"),cancel:e("common.cancel")},pagination:{morePages:e("ui.pagination.morePages"),rowsPerPage:e("ui.pagination.rowsPerPage")},picker:{selectDate:e("ui.picker.selectDate"),dayPicker:r[t]},empty:{description:e("ui.empty.description")}}},[e,t])}var tv=(0,n.createContext)({}),tT=()=>(0,n.useContext)(tv),tw=e=>(0,u.jsx)(tv.Provider,{value:e,children:e.children}),tA=()=>{let e=(0,i.SDg)(),t=(0,i.mld)();(0,n.useEffect)(()=>{let r=e.privateSubscribe({id:"assetconvert",event:"subscribe",topic:"assetconvert",ts:(0,l.lg)()},{onMessage(e){e.convertId&&(0===e.convertedQty?o.oRP.error(s.Ru.t("transfer.convert.failed")):e.convertedQty>0&&o.oRP.success(s.Ru.t("transfer.convert.completed")),t.emit("assetconvert:changed",e))}});return()=>r()},[t,e])};function tN(e){let{storageChain:t,setStorageChain:r}=(0,i.Yue)(),[o,a]=(0,n.useState)(),[s]=(0,i.Qgd)(),l=(0,i.UKg)("networkId"),{connectedChain:u}=(0,i.akX)();return(0,n.useEffect)(()=>{if(u)a?.("number"==typeof u.id?u.id:parseInt(u.id));else{let n;if(o)return;let i="mainnet"===l?s.mainnet?.[0]:s.testnet?.[0];"function"==typeof e?n=e(l,s):"object"==typeof e&&(n="mainnet"===l?e?.mainnet:e?.testnet);let u=n?.id||i?.network_infos?.chain_id;if(!u)return;t?a?.(t.chainId):(r(u),a?.(u))}},[u,s,o,l,a,e]),[o,a]}var tS="orderly:wallet-info";function t_(){let{connectedChain:e,disconnect:t}=(0,i.akX)(),[r,a]=(0,i.Mjh)("orderly_link_device",{}),{account:s}=(0,i.F7A)(),{isMobile:l}=(0,o.UJP)(),u=(0,i.UKg)(),c=async e=>{localStorage.removeItem(tS),await s.disconnect(),await t({label:e})};(0,n.useEffect)(()=>{let e=tI(),t=JSON.parse(localStorage.getItem(tS)??"{}");e&&t&&c(t.label)},[]);let d=async()=>{let e=tI();if(!e)return;let{address:t,secretKey:r,chainId:n,chainNamespace:i}=e;if(!await s.importOrderlyKey({address:t,secretKey:r,chainNamespace:i}))return;a({chainId:n,chainNamespace:i});let o=new URL(window.location.href);o.searchParams.delete("link"),o.searchParams.set("utm_medium","qrcode");let l=decodeURIComponent(o.toString());history.replaceState(null,"",l)};(0,n.useEffect)(()=>{l&&!e&&d()},[s,e,l]);let f=async()=>{let{chainId:t,chainNamespace:r}=tx()||{};if(l&&!e&&t&&r){let e=s.keyStore.getAddress(),t=s.keyStore.getOrderlyKey(),n=s.keyStore.getAccountId(e);await s.checkOrderlyKey(e,t,n)&&u.set("chainNamespace",r)}};return(0,n.useEffect)(()=>{f()},[s,l,e]),{linkDevice:d}}function tx(){try{let e=localStorage.getItem("orderly_link_device");return e?(0,i.OlY)(e):null}catch(e){}}function tI(){let e=new URL(window.location.href).searchParams.get("link");if(!e)return;let{a:t,k:r,i:n,n:i}=tO(e)||{};if(t&&r&&n&&i)return{address:t,secretKey:r,chainId:n,chainNamespace:i}}function tO(e){try{let t=JSON.parse(window.atob(e)),r=Math.floor(Date.now()/1e3),n=t.t;if(!n||r>n)return;return t}catch(e){}}function tR(){let{t:e}=(0,s.Bd)();(0,i.kad)({onMessage:t=>{let{status:r}=t;switch(r){case"COMPLETED":o.oRP.success(e("settle.settlement.completed"));break;case"FAILED":o.oRP.error(e("settle.settlement.failed"))}}})}function tP(){let{t:e}=(0,s.Bd)(),t=(0,i.mld)(),{state:r}=(0,i.F7A)(),{wallet:l,namespace:u}=(0,i.akX)(),{setManualLedgerAddress:c}=(0,i.K0w)(),d=l?.label??r.connectWallet?.name;return(0,n.useEffect)(()=>{let r=e=>{o.oRP.error(e.message)},n=t=>{if(u===a.Lx.solana){if(!d)return void o.oRP.error(t.message);window.setTimeout(()=>{o.modal.confirm({title:e("connector.ledger.signMessageFailed"),content:e("connector.ledger.signMessageFailed.description"),size:"sm",onOk:async()=>(c(t.userAddress,d),Promise.resolve()),okLabel:e("common.ok"),onCancel:async()=>(o.oRP.error(t.message),Promise.resolve()),cancelLabel:e("common.no")}).then(e=>{})})}};return t.on("wallet:connect-error",r),t.on("wallet:sign-message-with-ledger-error",n),()=>{t.off("wallet:connect-error",r),t.off("wallet:sign-message-with-ledger-error",n)}},[d,t,u,c,e]),{}}function tM(){let{t:e}=(0,s.Bd)(),t=(0,i.mld)(),r=(0,n.useRef)({}),[a,u]=(0,i.Fo2)("orderly_wallet_change_id",{});r.current=a,(0,i.El9)({onMessage:n=>{let{id:i,side:a,transStatus:s}=n,c=!0;if(["DEPOSIT","WITHDRAW"].includes(a)&&["COMPLETED","FAILED"].includes(s)){let e=!!r.current[i];e||(r.current[i]=!0,u(e=>({...e,[i]:!0}))),c=!e}if("COMPLETED"===s&&c){let t=`${(0,l.c)(a)} completed`;"DEPOSIT"===a?t=e("transfer.deposit.completed"):"WITHDRAW"===a&&(t=e("transfer.withdraw.completed")),o.oRP.success(t)}else if("FAILED"===s&&c){let t=`${(0,l.c)(a)} failed`;"DEPOSIT"===a?t=e("transfer.deposit.failed"):"WITHDRAW"===a&&(t=e("transfer.withdraw.failed")),o.oRP.error(t)}t.emit("wallet:changed",n)}})}var tC="orderly:privy-oauth-connect-intent",tk="wallet:connect-oauth-resume",tL="wallet:connect-oauth-returned",tD="wallet:connect-oauth-resume-result",tB=()=>{try{window.sessionStorage.removeItem(tC)}catch{}},tV=()=>
1{if("undefined"==typeof window)return null;try{let e=window.sessionStorage.getItem(tC);if(!e)return null;let t=JSON.parse(e);if("string"!=typeof t.id||"number"!=typeof t.expiresAt||t.expiresAt<=Date.now()||"redirecting"!==t.phase&&"returned"!==t.phase)return tB(),null;return t}catch{return tB(),null}},tF=()=>null!==tV(),tU=()=>{let e=tV();return e?.phase==="returned"?e:null},tj=e=>{let t=tV();return t?.id===e&&"returned"===t.phase},tH=e=>{if("undefined"!=typeof window)try{tV()?.id===e&&tB()}catch{}},tG="orderly:wallet-info",tK=e=>{let{wallet:t,connect:r,connectedChain:o,disconnect:s,namespace:u}=(0,i.akX)();if("function"!=typeof r)throw new a.JP("Please provide a wallet connector provider");let c=(0,i.mld)(),d=(0,n.useRef)(!1),f=(0,n.useRef)();(0,i.UKg)("brokerId");let{account:h,state:p}=(0,i.F7A)(),g=(0,i.UPS)(),m=(0,i.UKg)("networkId"),[y,{checkChainSupport:E}]=(0,i.Qgd)(),{storageChain:b,setStorageChain:v}=(0,i.Yue)(),[T,w]=(0,n.useState)(!1),{track:A,setTrackUserId:N}=(0,i.nET)(),S=(0,n.useMemo)(()=>t?.accounts?.[0]?.address,[t]),_=(0,n.useMemo)(()=>{let e=t?.chains?.[0]?.id,r=t?.chains?.[0]?.namespace;if(void 0!==e)return{id:(0,l.OU)(e),namespace:r}},[t]),x=(0,n.useCallback)(async e=>{let t=(0,l.GJ)(e.chains[0].id);if(!E(t,m)||a.aH.has(t)&&"AGW"!==e.label)return{wrongNetwork:!0};p.status===a.RN.EnableTradingWithoutConnected&&(localStorage.removeItem("orderly_link_device"),await h.disconnect());let r=await h.setAddress(e.accounts[0].address,{provider:e.provider,chain:{id:t,namespace:e.chains[0].namespace.toUpperCase()},wallet:{name:e.label},additionalInfo:e.additionalInfo??{}});return A(a.wy.walletConnect,{wallet:e.label,network:e.chains[0].namespace.toUpperCase()}),{wallet:e,status:r,wrongNetwork:!1}},[h,p.status,E,m,A]),I=(0,n.useCallback)(async e=>{if(e?.intentId&&e.wallet&&f.current!==e.intentId&&tj(e.intentId)){f.current=e.intentId,d.current=!0;try{let t=await x(e.wallet);tH(e.intentId),c.emit(tD,{...t,intentId:e.intentId,handled:!1})}catch(t){tH(e.intentId)}finally{d.current=!1,f.current===e.intentId&&(f.current=void 0)}}},[x,c]);return(0,n.useEffect)(()=>(c.on(tk,I),()=>{c.off(tk,I)}),[c,I]),(0,n.useEffect)(()=>{let e=e=>{e?.intentId&&t?.label==="privy"&&I({intentId:e.intentId,wallet:t})};return c.on(tL,e),()=>{c.off(tL,e)}},[t,c,I]),(0,n.useEffect)(()=>{let e=tU();e&&t?.label==="privy"&&I({intentId:e.id,wallet:t})},[t,I]),(0,n.useEffect)(()=>{p.status>=a.RN.EnableTrading&&h.accountId&&N(h.accountId)},[h,p]),(0,n.useEffect)(()=>{if(!o)return void w(!1);let e=E(o.id,m);a.aH.has(parseInt(o.id))&&t?.label!=="AGW"&&(e=!1),w(!e)},[o,y,E,m,t]),(0,n.useEffect)(()=>{(0,l.Qm)(()=>{let e=g.getAddress(),t=JSON.parse(localStorage.getItem(tG)??"{}");o?.namespace!==a.Lx.solana&&b?.namespace!==a.Lx.solana&&e&&h.address!==e&&t.label&&r({autoSelect:{label:t.label,disableModals:!0}}).then(e=>{},e=>void 0)})},[t,h.address,b?.namespace]),(0,n.useEffect)(()=>{if(null===t&&p.status>a.RN.NotConnected&&!p.validating)return void h.disconnect();if(tF()||T||!o||d.current)return;let e=tI();S&&S!==h.address&&!e&&(h.setAddress(S,{provider:t?.provider,chain:{id:(0,l.GJ)(_.id),namespace:_.namespace.toUpperCase()},wallet:{name:t?.label??""},additionalInfo:t?.additionalInfo??{}}),A(a.wy.walletConnect,{wallet:t?.label??"",network:_.namespace.toUpperCase()}),(0,l.Qm)(()=>{localStorage.setItem(tG,JSON.stringify({label:t?.label??""})),v(_.id)})),_?.id!==h.chainId&&h.switchChainId(_?.id)},[t,o,S,_,h.address,p,h.chainId,T]),{connectWallet:async()=>(d.current=!0,r({chainId:e.currentChainId}).then(async e=>Array.isArray(e)&&e.length>0&&e[0]&&e[0].accounts.length>0?x(e[0]):null).finally(()=>{d.current=!1})),wrongNetwork:T}},tz=(0,n.createContext)({setCurrentChainId:e=>{},restrictedInfo:{},setShowAnnouncement:e=>{}}),tW=()=>(0,n.useContext)(tz),tq=e=>{let[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[s,l]=tN(e.defaultChain);t_(),(0,i.QMI)();let{connectWallet:c,wrongNetwork:d}=tK({currentChainId:s});tM(),tR(),tA(),tP();let f=(0,i.H9Z)(e.restrictedInfo),h=f.restrictedOpen;(0,n.useEffect)(()=>{a(!0)},[]);let p=(0,n.useMemo)(()=>({connectWallet:c,wrongNetwork:d,currentChainId:s,setCurrentChainId:l,onChainChanged:e.onChainChanged,disabledConnect:h,restrictedInfo:f,showAnnouncement:t,setShowAnnouncement:r,onRouteChange:e.onRouteChange,widgetConfigs:e.widgetConfigs,initialized:o}),[c,s,h,e.onChainChanged,f,l,t,d,e.onRouteChange,e.widgetConfigs,o]);return(0,u.jsx)(tz.Provider,{value:p,children:(0,u.jsx)(i.MaU,{value:e.widgetConfigs?.marketTabs,children:e.children})})},tY="orderly_theme_id",t$="undefined"==typeof window?n.useEffect:n.useLayoutEffect,tX=e=>{let{children:t,themes:r,...a}=e,s=(0,n.useMemo)(()=>r?.find(e=>e.isDefault)??r?.[0],[r]),[l,c]=(0,i.Mjh)(tY,void 0),d=(0,n.useMemo)(()=>r?.find(e=>e.id===l)??s,[r,l,s]),f=d?.id;return(0,n.useEffect)(()=>{f&&f!==l&&c(f)},[f,l,c]),t$(()=>{if("undefined"==typeof document)return;let e=document.documentElement;if(!f)return void e.removeAttribute("data-oui-theme");e.setAttribute("data-oui-theme",f),Object.entries(d?.mode==="light"?o.SUt:o.oon).forEac
1h(([t,r])=>{let n=d?.cssVars?.[t]??r;e.style.setProperty(t,n)})},[f,d]),(0,u.jsx)(o.IFq,{themes:r,currentThemeId:f,currentTheme:d,setCurrentThemeId:c,...a,children:t})},tJ=[],tQ=()=>(tE(),null),tZ=e=>{let{components:t,appIcons:r,plugins:a,themes:s,onChainChanged:l,defaultChain:c,widgetConfigs:d,...f}=e,h=f.configStore,p=e.brokerName??h?.get("brokerName")??"Orderly",g=f.networkId??h?.get("networkId")??"testnet";(0,i.nET)(),th();let m=tb(),y=(0,n.useMemo)(()=>({config:{appIcons:r,brokerName:p},networkId:g}),[r,p,g]),E=a??tJ;return(0,u.jsx)(tw,{appIcons:r,brokerName:p,children:(0,u.jsx)(tX,{components:t,themes:s,overrides:e.overrides,children:(0,u.jsxs)(i.xlF,{...f,children:[(0,u.jsxs)(o.QoU,{plugins:E,pluginState:y,children:[(0,u.jsx)(tQ,{}),(0,u.jsx)(tq,{onChainChanged:l,defaultChain:c,restrictedInfo:e.restrictedInfo,onRouteChange:e.onRouteChange,widgetConfigs:d,children:(0,u.jsx)(o.YOI,{locale:m,children:(0,u.jsx)(o.Bcw,{delayDuration:300,children:(0,u.jsx)(o.Znq,{children:e.children})})})})]}),(0,u.jsx)(o.l$l,{})]})})})},t0=(e,t)=>{let{wrongNetwork:r,disabledConnect:n}=tW(),{state:o}=(0,i.F7A)();return t?.skip?e:r||n||void 0!==t?.accountStatus&&o.status<t.accountStatus?void 0!==t?.fallbackData?t.fallbackData:null:e};function t1(e){let{t}=(0,s.Bd)(),r=(e,r,n,o=!1)=>{let{value:a,min:s,max:l}=n||{},u=o?t("orderEntry.orderQuantity.error.insufficientBalance"):t("orderEntry.orderQuantity.error.max",{value:a}),c={quantity:{required:t("orderEntry.orderQuantity.error.required"),min:t("orderEntry.orderQuantity.error.min",{value:a}),max:u},order_quantity:{required:t("orderEntry.orderQuantity.error.required"),min:t("orderEntry.orderQuantity.error.min",{value:a}),max:u},order_price:{required:t("orderEntry.orderPrice.error.required"),min:t("orderEntry.orderPrice.error.min",{value:a}),max:t("orderEntry.orderPrice.error.max",{value:a})},trigger_price:{required:t("orderEntry.triggerPrice.error.required"),min:t("orderEntry.triggerPrice.error.min",{value:a}),max:t("orderEntry.triggerPrice.error.max",{value:a})},tp_trigger_price:{required:t("tpsl.validate.tpTriggerPrice.error.required"),min:t("orderEntry.tpTriggerPrice.error.min",{value:a}),max:t("orderEntry.tpTriggerPrice.error.max",{value:a}),priceErrorMin:t("tpsl.validate.tpTriggerPrice.error.priceErrorMin"),priceErrorMax:t("tpsl.validate.tpTriggerPrice.error.priceErrorMax")},sl_trigger_price:{required:t("tpsl.validate.slTriggerPrice.error.required"),min:t("orderEntry.slTriggerPrice.error.min",{value:a}),max:t("orderEntry.slTriggerPrice.error.max",{value:a}),priceErrorMin:t("tpsl.validate.slTriggerPrice.error.priceErrorMin"),priceErrorMax:t("tpsl.validate.slTriggerPrice.error.priceErrorMax"),[i.oe_.SL_PRICE_WARNING]:t("tpsl.validate.slTriggerPrice.warning.closeToLiqPrice"),[i.oe_.SL_PRICE_ERROR]:t("tpsl.validate.slTriggerPrice.error.crossLiqPrice")},tp_order_price:{required:t("tpsl.validate.tpOrderPrice.error.required"),min:t("tpsl.validate.tpOrderPrice.error.min",{value:a}),max:t("tpsl.validate.tpOrderPrice.error.max",{value:a})},sl_order_price:{required:t("tpsl.validate.slOrderPrice.error.required"),min:t("tpsl.validate.slOrderPrice.error.min",{value:a}),max:t("tpsl.validate.slOrderPrice.error.max",{value:a})},total:{min:t("orderEntry.total.error.min",{value:a})},start_price:{required:t("orderEntry.startPrice.error.required"),min:t("orderEntry.startPrice.error.min",{value:a}),max:t("orderEntry.startPrice.error.max",{value:a})},end_price:{required:t("orderEntry.endPrice.error.required"),min:t("orderEntry.endPrice.error.min",{value:a}),max:t("orderEntry.endPrice.error.max",{value:a})},total_orders:{required:t("orderEntry.totalOrders.error.required"),range:t("orderEntry.totalOrders.error.range")},skew:{required:t("orderEntry.skew.error.required"),min:t("orderEntry.skew.error.min",{value:a}),max:t("orderEntry.skew.error.max",{value:a})},activated_price:{min:t("orderEntry.triggerPrice.error.min",{value:a}),max:t("orderEntry.triggerPrice.error.max",{value:a})},callback_value:{required:t("orderEntry.callbackValue.error.required"),min:t("orderEntry.callbackValue.error.min",{value:a}),range:t("orderEntry.callbackValue.error.range",{min:s,max:l})},callback_rate:{required:t("orderEntry.callbackRate.error.required"),range:t("orderEntry.callbackRate.error.range",{min:s,max:l})}};return c[e]?.[r]||""};return{getErrorMsg:(0,n.useCallback)((t,n)=>{let{type:i,value:o,min:a,max:s}=e?.[t]||{};if(i){let e=!1;try{e=void 0!==o&&""!==o&&new l.Ww(o).eq(0)}catch{e=!1}return r(t,i,{value:n||o,min:a,max:s},e)}return""},[e])}}n.Component;function t2(){let{state:e}=(0,i.F7A)(),{wrongNetwork:t,disabledConnect:r}=tW();return(0,n.useMemo)(()=>!t&&!r&&(e.status===a.RN.EnableTrading||e.status===a.RN.EnableTradingWithoutConnected),[e.status,t,r])}},27440:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(93224),i=r(58456),o=r(14080),a=r(18868),s=r(98043);function l(e,t){var r,n,l,u,c,d,f,h;let p=(0,s.q)(),g=null!=(h=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?d:p.firstWeekContainsDate)?f:null==(u=p.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?h:1,m=(0,a.h)(e,t),y=(0,o.w)(e,0);return y.setFullYear(m,0,g),y.setHours(0,0,0,0),(0,i.k)(y,t)}var u=r(6816);function c(e,t){let r=(0,u.a)(e);return Math.round(((0,i.k)(r,t)-l(r,t))/n.my)+1}},27543:(e,t,r)=>{"use strict";r.d(t,{V:()=>u});var n=r(60133),i=r(93713);let o={};function a(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new u(o,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function s(e,t){return new u(o,`bytes${t||""}`,e,{size:t})}let l=Symbol.for("_ethers_typed");class u{type;value;#a;_typedSymbol;constructor(e,t,r,a){null==a&&(a=null),(0,n.gk)(o,e,"Typed"),(0,i.n)(this,{_typedSymbol:l,type:t,value:r}),this.#a=a,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.format()).join(",")}
1)`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#a}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#a?-1:!1===this.#a?this.value.length:null}static from(e,t){return new u(o,e,t)}static uint8(e){return a(e,8)}static uint16(e){return a(e,16)}static uint24(e){return a(e,24)}static uint32(e){return a(e,32)}static uint40(e){return a(e,40)}static uint48(e){return a(e,48)}static uint56(e){return a(e,56)}static uint64(e){return a(e,64)}static uint72(e){return a(e,72)}static uint80(e){return a(e,80)}static uint88(e){return a(e,88)}static uint96(e){return a(e,96)}static uint104(e){return a(e,104)}static uint112(e){return a(e,112)}static uint120(e){return a(e,120)}static uint128(e){return a(e,128)}static uint136(e){return a(e,136)}static uint144(e){return a(e,144)}static uint152(e){return a(e,152)}static uint160(e){return a(e,160)}static uint168(e){return a(e,168)}static uint176(e){return a(e,176)}static uint184(e){return a(e,184)}static uint192(e){return a(e,192)}static uint200(e){return a(e,200)}static uint208(e){return a(e,208)}static uint216(e){return a(e,216)}static uint224(e){return a(e,224)}static uint232(e){return a(e,232)}static uint240(e){return a(e,240)}static uint248(e){return a(e,248)}static uint256(e){return a(e,256)}static uint(e){return a(e,256)}static int8(e){return a(e,-8)}static int16(e){return a(e,-16)}static int24(e){return a(e,-24)}static int32(e){return a(e,-32)}static int40(e){return a(e,-40)}static int48(e){return a(e,-48)}static int56(e){return a(e,-56)}static int64(e){return a(e,-64)}static int72(e){return a(e,-72)}static int80(e){return a(e,-80)}static int88(e){return a(e,-88)}static int96(e){return a(e,-96)}static int104(e){return a(e,-104)}static int112(e){return a(e,-112)}static int120(e){return a(e,-120)}static int128(e){return a(e,-128)}static int136(e){return a(e,-136)}static int144(e){return a(e,-144)}static int152(e){return a(e,-152)}static int160(e){return a(e,-160)}static int168(e){return a(e,-168)}static int176(e){return a(e,-176)}static int184(e){return a(e,-184)}static int192(e){return a(e,-192)}static int200(e){return a(e,-200)}static int208(e){return a(e,-208)}static int216(e){return a(e,-216)}static int224(e){return a(e,-224)}static int232(e){return a(e,-232)}static int240(e){return a(e,-240)}static int248(e){return a(e,-248)}static int256(e){return a(e,-256)}static int(e){return a(e,-256)}static bytes1(e){return s(e,1)}static bytes2(e){return s(e,2)}static bytes3(e){return s(e,3)}static bytes4(e){return s(e,4)}static bytes5(e){return s(e,5)}static bytes6(e){return s(e,6)}static bytes7(e){return s(e,7)}static bytes8(e){return s(e,8)}static bytes9(e){return s(e,9)}static bytes10(e){return s(e,10)}static bytes11(e){return s(e,11)}static bytes12(e){return s(e,12)}static bytes13(e){return s(e,13)}static bytes14(e){return s(e,14)}static bytes15(e){return s(e,15)}static bytes16(e){return s(e,16)}static bytes17(e){return s(e,17)}static bytes18(e){return s(e,18)}static bytes19(e){return s(e,19)}static bytes20(e){return s(e,20)}static bytes21(e){return s(e,21)}static bytes22(e){return s(e,22)}static bytes23(e){return s(e,23)}static bytes24(e){return s(e,24)}static bytes25(e){return s(e,25)}static bytes26(e){return s(e,26)}static bytes27(e){return s(e,27)}static bytes28(e){return s(e,28)}static bytes29(e){return s(e,29)}static bytes30(e){return s(e,30)}static bytes31(e){return s(e,31)}static bytes32(e){return s(e,32)}static address(e){return new u(o,"address",e)}static bool(e){return new u(o,"bool",!!e)}static bytes(e){return new u(o,"bytes",e)}static string(e){return new u(o,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new u(o,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===l}static dereference(e,t){if(u.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}},28070:(e,t,r)=>{"use strict";var n=r(4952),i=r(86175);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},28675:(e,t,r)=>{"use strict";var n=r(49524),i=r(93422),o=r(2001),a=n.rotl32,s=n.sum32,l=n.sum32_5,u=o.ft_1,c=i.BlockHash,d=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function f(){if(!(this instanceof f))return new f;
1c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(f,c),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],f=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=l(a(i,5),u(p,o,c,f),h,r[n],d[p]);h=f,f=c,c=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],h)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},30585:(e,t,r)=>{"use strict";var n=r(25245);e.exports=Function.prototype.bind||n},31780:(e,t,r)=>{"use strict";function n(e){return"[object String]"===Object.prototype.toString.call(e)}r.d(t,{A:()=>n})},32095:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},32786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setsTypeMap=t.set=void 0;let n=r(5162),i=r(45423),o=r(21838),a=r(95585);function s(e,t,r){let s=(0,n.isFixedSizeBeet)(e),{elementByteSize:l,byteSize:u}=function(){if(s){let t=e.byteSize;return{elementByteSize:t,byteSize:4+r*t}}{let e=0;for(let r of t.values())e+=r.byteSize;return{elementByteSize:Math.ceil(e/r),byteSize:4+e}}}();return{write:function(n,l,u){let c=l+4,d=0;for(let r of u.keys()){let i=s?e:null;if(null==i){let e=t.get(r);(0,a.strict)(null!=e,`Should be able to find beet el for ${(0,o.stringify)(r)}, but could not`),null!=i||(i=e)}i.write(n,c,r),c+=i.byteSize,d++}i.u32.write(n,l,d),a.strict.equal(d,r,`Expected set to have size ${r}, but has ${d}.`)},read:function(t,n){let o=i.u32.read(t,n);a.strict.equal(o,r,`Expected set to have size ${r}, but has ${o}.`);let l=n+4,u=new Set;for(let r=0;r<o;r++){let r=s?e:e.toFixedFromData(t,l),n=r.read(t,l);l+=r.byteSize,u.add(n)}return u},elementByteSize:l,byteSize:u,length:r,lenPrefixByteSize:4,description:`Set<${e.description}>`}}t.set=function(e){let t=(0,n.isFixedSizeBeet)(e);return{toFixedFromData(r,n){let o=i.u32.read(r,n),a=n+4;if(t)return s(e,new Map,o);let l=new Map;for(let n=0;n<o;n++){let n=t?e:e.toFixedFromData(r,a),i=n.read(r,a);a+=n.byteSize,l.set(i,n)}return s(e,l,o)},toFixedFromValue(r){let n=r.size;if(t)return s(e,new Map,n);let i=new Map;for(let n of r){let r=t?e:e.toFixedFromValue(n);i.set(n,r)}return s(e,i,n)},description:`FixableSet<${e.description}>`}},t.setsTypeMap={Set:{beet:"set",isFixable:!0,sourcePack:n.BEET_PACKAGE,ts:"Set"}}},33361:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(35).A)(function(e){return null==e})},33410:(e,t,r)=>{"use strict";let n;r.d(t,{K5:()=>to,x6:()=>eF,wD:()=>eK,Ru:()=>tF,p8:()=>tH,Dn:()=>tj,XC:()=>tK,Bd:()=>tz});let i=e=>"string"==typeof e,o=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},a=e=>null==e?"":""+e,s=(e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})},l=/###/g,u=e=>e&&e.indexOf("###")>-1?e.replace(l,"."):e,c=e=>!e||i(e),d=(e,t,r)=>{let n=i(t)?t.split("."):t,o=0;for(;o<n.length-1;){if(c(e))return{};let t=u(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return c(e)?{}:{obj:e,k:u(n[o])}},f=(e,t,r)=>{let{obj:n,k:i}=d(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=d(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,s=d(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=r},h=(e,t,r,n)=>{let{obj:i,k:o}=d(e,t,Object);i[o]=i[o]||[],i[o].push(r)},p=(e,t)=>{let{obj:r,k:n}=d(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},g=(e,t,r)=>{let n=p(e,r);return void 0!==n?n:p(t,r)},m=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?i(e[n])||e[n]instanceof String||i(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):m(e[n],t[n],r):e[n]=t[n]);return e},y=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var E={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let b=e=>i(e)?e.replace(/[&<>
1"'\/]/g,e=>E[e]):e;class v{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let T=[" ",",","?","!",";"],w=new v(20),A=(e,t,r)=>{t=t||"",r=r||"";let n=T.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=w.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o},N=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let o="";for(let a=e;a<n.length;++a)if(a!==e&&(o+=r),o+=n[a],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}i=t}return i},S=e=>e?.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(i(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new x(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new x(this.logger,e)}}var I=new x;class O{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,i]=t;for(let t=0;t<i;t++)n.apply(n,[e,...r])})}}class R extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):i(r)&&a?n.push(...r.split(a)):n.push(r)));let l=p(this.data,n);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),!l&&s&&i(r))?N(this.data?.[e]?.[t],r,a):l}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),f(this.data,a,n),i.silent||this.emit
1("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)(i(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=p(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?m(s,r,i):s={...s,...r},f(this.data,a,s),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};let M={},C=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class k extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),s(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=I.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r?.res!==void 0}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!A(e,r,n);if(a&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(o)?[o]:o};let a=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(n)}return{key:e,namespaces:i(o)?[o]:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],t),l=s[s.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode"){if(c){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${a}`}return n?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}let d=this.resolve(e,t),f=d?.res,h=d?.usedKey||a,p=d?.exactUsedKey||a,g=["[object Number]","[object Function]","[object RegExp]"],m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,E=void 0!==t.count&&!i(t.count),b=k.hasDefaultValue(t),v=E?this.pluralResolver.getSuffix(u,t.count,t):"",T=t.ordinal&&E?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",w=E&&!t.ordinal&&0===t.count,A=w&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${v}`]||t[`defaultValue${T}`]||t.defaultValue,N=f;y&&!f&&b&&(N=A);let S=C(N),_=Object.prototype.toString.apply(N);if(y&&N&&S&&0>g.indexOf(_)&&!(i(m)&&Array.isArray(N))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,N,{...t,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return n?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(o){let e=Array.isArray(N),r=e?[]:{},n=e?p:h;for(let e in N)if(Object.prototype.hasOwnProperty.call(N,e)){let i=`${n}${o}${e}`;b&&!f?r[e]=this.translate(i,{...t,defaultValue:C(A)?A[e]:void 0,...{joinArrays:!1,ns:s}}):r[e]=this.translate(i,{...t,joinArrays:!1,ns:s}),r[e]===i&&(r[e]=N[e])}f=r}}else if(y&&i(m)&&Array.isArray(f))(f=f.join(m))&&(f=this.extendTranslation(f,e,t,r));else{let n=!1,i=!1;!this.isValidLookup(f)&&b&&(n=!0,f=A),this.isValidLookup(f)||(i=!0,f=a);let s=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,c=b&&A!==f&&this.options.updateMissing;if(i||n||c){if(this.logger.log(c?"updateKey":"missingKey",u,l,a,c?A:f),o){let e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=b&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,i,c,t):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,r,i,c,t),this.emit
1("missingKey",e,l,r,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);w&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],a+r,t[`defaultValue${r}`]||A)})}):n(e,a,A))}f=this.extendTranslation(f,e,t,d,r),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(i||n)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,n?f:void 0))}return n?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,r,n,o){var a=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let l=i(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=r.replace&&!i(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||n.usedLng,r),l){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return o?.[0]!==n[0]||r.context?a.translate(...n,t):(a.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null)},r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,l=i(s)?[s]:s;return null!=e&&l?.length&&!1!==r.applyPostProcessor&&(e=P.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,s),u=l.key;r=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==s.count&&!i(s.count),f=d&&!s.ordinal&&0===s.count,h=void 0!==s.context&&(i(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);
1c.forEach(e=>{this.isValidLookup(t)||(a=e,!M[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(M[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{let i;if(this.isValidLookup(t))return;o=r;let a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,r,e,s);else{let e;d&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(a.push(u+e),s.ordinal&&0===e.indexOf(n)&&a.push(u+e.replace(n,this.options.pluralSeparator)),f&&a.push(u+t)),h){let r=`${u}${this.options.contextSeparator}${s.context}`;a.push(r),d&&(a.push(r+e),s.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),f&&a.push(r+t))}}for(;i=a.pop();)this.isValidLookup(t)||(n=i,t=this.getResource(r,e,i,s))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!i(e.replace),n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r)for(let e of(n={...n},t))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}class L{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=I.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=S(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):i(e)&&o(this.formatLanguageCode(e)),r.forEach(e
1=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let D={zero:0,one:1,two:2,few:3,many:4,other:5},B={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class V{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=I.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=S("dev"===e?"en":e),i=r.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{t=new Intl.PluralRules(n,{type:i})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),B;if(!e.match(/-|_/))return B;let n=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(n,r)}return this.pluralRulesCache[o]=t,t}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>D[e]-D[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let F=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=g(e,t,r);return!a&&o&&i(r)&&void 0===(a=N(e,r,n))&&(a=N(t,r,n)),a},U=e=>e.replace(/\$/g,"$$$$");class j{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=I.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:E}=e.interpolation;this.escape=void 0!==t?t:b,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?y(i):o||"{{",this.suffix=a?y(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?y(d):f||y("$t("),this.nestingSuffix=h?y(h):p||y(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==E&&E,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let i=F(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(F(t,u,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:o})};this.resetRegExp();let d=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n?.interpolation?.ski
1pOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>U(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?U(this.escape(e)):U(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(s=c(r)))if("function"==typeof d){let t=d(e,o,n);s=i(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))s="";else if(f){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),s="";else i(s)||this.useRawValueToEscape||(s=a(s));let u=t.safeValue(s);if(e=e.replace(o[0],u),f?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&s.length%2==0||(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(o=(o={...s}).replace&&!i(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),u=e,c=!0}if((n=t(l.call(this,r[1].trim(),o),o))&&r[0]===e&&!i(n))return n;i(n)||(n=a(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),c&&(n=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}let H=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}},G=e=>{let t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});let a=n+JSON.stringify(o),s=t[a];return s||(s=e(S(n),i),t[a]=s),s(r)}};class K{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=I.create("formatter"),this.options=e,this.formats={number:G((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:G((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:G((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:G((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:G((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=G(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:o}=H(t);if(this.formats[i]){let t=e;try{let a=n?.formatParams?.[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[i](e,s,{...o,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}let z=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class W extends O{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=I.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){let i={},o={},a={},s={};
1return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,n=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){let n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let a={};this.queue.forEach(r=>{h(r.loaded,[i],o),z(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&s&&n<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,o)},i);o(a,s)},s=this.backend[r].bind(this.backend);if(2===s.length){try{let r=s(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend?.create){let s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let q=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
1Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),$=()=>{},X=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class J extends O{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y(e),this.services={},this.logger=I,this.modules={external:[]},X(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),null==t.defaultNS&&t.ns&&(i(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=q();this.options={...n,...this.options,...Y(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?I.init(a(this.modules.logger),this.options):I.init(null,this.options),t=this.modules.formatter?this.modules.formatter:K;let r=new L(this.options);this.store=new R(this.options.resources,this.options);let i=this.services;i.logger=I,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new V(r,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=a(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new j(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new W(a(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(i.languageDetector=a(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=a(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=$),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=o(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
1("initialized",this.options),s.resolve(t),r(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,r=t,n=i(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=o();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=$),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=o();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,i)=>{i?(a(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let r=i(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{s(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var s=arguments.length,l=Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);let c=n.options.keySeparator||".";return a=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${c}${e}`):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,n.t(a,i)};return i(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.translator?.translate(...t)}exists(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.translator?.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(i,e)))}loadNamespaces(e,t){let r=o();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=o();i(e)&&(e=[e]);let n=this.options.preload||[],a=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services?.languageUtils||new L(q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new J(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new J(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new R(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),{})),{}),n),i.services.resourceStore=i.store),i.translator=new k(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let Q=J.createInstance();Q.createInstance=J.createInstance;let Z=Q.createInstance;Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;var ee=r(13741),et=r(82445),er=r.n(et),en=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ei(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(er()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(en),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var eo=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ea=/^\s*$/,es=Object.create(null);let el={parse:function(e,t){t||(t={}),t.components||(t.components=es);var r,n=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(eo,function(s,l){if(a){if(s!=="</"+r.name+">")return;a=!1}var u,c="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),f=l+s.length,h=e.charAt(f);if(d){var p=ei(s);return o<0?n.push(p):(u=i[o]).children.push(p),n}if(c&&(o++,"tag"===(r=ei(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!h||"<"===h||r.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===o&&n.push(r),(u=i[o-1])&&u.children.push(r),i[o]=r),(!c||r.voidElement)&&(o>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(r=-1==--o?n:i[o]),!a&&"<"!==h&&h)){u=-1===o?n:i[o].children;var g=e.indexOf("<",f),m=e.slice(f,-1===g?void 0:g);ea.test(m)&&(m=" "),(g>-1&&o+u.length>=0||" "!==m)&&u.push({type:"text",content:m})}}),n}},eu=(e,t,r,n)=>{let i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);em(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},ec={},ed=(e,t,r,n)=>{em(r)&&ec[r]||(em(r)&&(ec[r]=new Date),eu(e,t,r,n))},ef=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},eh=(e,t,r)=>{e.loadNamespaces(t,ef(e,r))},ep=(e,t,r,n)=>{if(em(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return eh(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,ef(e,n))},eg=(e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
1isLanguageChangingTo,e))return!1}}):(ed(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),em=e=>"string"==typeof e,ey=e=>"object"==typeof e&&null!==e,eE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},ev=e=>eb[e],eT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(eE,ev)},ew=()=>eT,eA=()=>n,eN=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},eS=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?ex(t):t},e_=e=>Array.isArray(e)&&e.every(ee.isValidElement),ex=e=>Array.isArray(e)?e:[e],eI=(e,t)=>{let r={...t};return r.props=Object.assign(e.props,t.props),r},eO=(e,t,r,n)=>{if(!e)return"";let i="",o=ex(e),a=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(em(e)){i+=`${e}`;return}if((0,ee.isValidElement)(e)){let{props:s,type:l}=e,u=Object.keys(s).length,c=a.indexOf(l)>-1,d=s.children;if(!d&&c&&!u){i+=`<${l}/>`;return}if(!d&&(!c||u)||s.i18nIsDynamicList){i+=`<${o}></${o}>`;return}if(c&&1===u&&em(d)){i+=`<${l}>${d}</${l}>`;return}let f=eO(d,t,r,n);i+=`<${o}>${f}</${o}>`;return}if(null===e)return void eu(r,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});if(ey(e)){let{format:t,...o}=e,a=Object.keys(o);if(1===a.length){let e=t?`${a[0]}, ${t}`:a[0];i+=`{{${e}}}`;return}eu(r,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:e});return}eu(r,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:e})}),i},eR=(e,t,r,n,i,o,a)=>{if(""===r)return[];let s=i.transKeepBasicHtmlNodesFor||[],l=r&&new RegExp(s.map(e=>`<${e}`).join("|")).test(r);if(!e&&!t&&!l&&!a)return[r];let u=t??{},c=e=>{ex(e).forEach(e=>{em(e)||(eN(e)?c(eS(e)):ey(e)&&!(0,ee.isValidElement)(e)&&Object.assign(u,e))})};c(e);let d=el.parse(`<0>${r}</0>`),f={...u,...o},h=(e,t,r)=>{let n=eS(e),i=g(n,t.children,r);return e_(n)&&0===i.length||e.props?.i18nIsDynamicList?n:i},p=(e,t,r,n,i)=>{e.dummy?(e.children=t,r.push((0,ee.cloneElement)(e,{key:n},i?void 0:t))):r.push(...ee.Children.map([e],e=>{let r={...e.props};return delete r.i18nIsDynamicList,(0,ee.createElement)(e.type,{...r,key:n,ref:e.props.ref??e.ref},i?null:t)}))},g=(e,r,o)=>{let u=ex(e);return ex(r).reduce((e,r,c)=>{let d=r.children?.[0]?.content&&n.services.interpolator.interpolate(r.children[0].content,f,n.language);if("tag"===r.type){let a=u[parseInt(r.name,10)];!a&&t&&(a=t[r.name]),1!==o.length||a||(a=o[0][r.name]),a||(a={});let m=0!==Object.keys(r.attrs).length?eI({props:r.attrs},a):a,y=(0,ee.isValidElement)(m),E=y&&eN(r,!0)&&!r.voidElement,b=l&&ey(m)&&m.dummy&&!y,v=ey(t)&&Object.hasOwnProperty.call(t,r.name);if(em(m)){let t=n.services.interpolator.interpolate(m,f,n.language);e.push(t)}else if(eN(m)||E){let t=h(m,r,o);p(m,t,e,c)}else if(b)p(m,g(u,r.children,o),e,c);else if(Number.isNaN(parseFloat(r.name)))if(v){let t=h(m,r,o);p(m,t,e,c,r.voidElement)}else if(i.transSupportBasicHtmlNodes&&s.indexOf(r.name)>-1)if(r.voidElement)e.push((0,ee.createElement)(r.name,{key:`${r.name}-${c}`}));else{let t=g(u,r.children,o);e.push((0,ee.createElement)(r.name,{key:`${r.name}-${c}`},t))}else if(r.voidElement)e.push(`<${r.name} />`);else{let t=g(u,r.children,o);e.push(`<${r.name}>${t}</${r.name}>`)}else if(ey(m)&&!y){let t=r.children[0]?d:null;t&&e.push(t)}else p(m,d,e,c,1!==r.children.length||!d)}else if("text"===r.type){let t=i.transWrapTextNodes,o=a?i.unescape(n.services.interpolator.interpolate(r.content,f,n.language)):n.services.interpolator.interpolate(r.content,f,n.language);t?e.push((0,ee.createElement)(t,{key:`${r.name}-${c}`},o)):e.push(o)}return e},[])};return eS(g([{dummy:!0,children:e||[]}],d,ex(e||[]))[0])},eP=(e,t,r)=>{let n=e.key||t,i=(0,ee.cloneElement)(e,{key:n});if(!i.props||!i.props.children||0>r.indexOf(`${t}/>`)&&0>r.indexOf(`${t} />`))return i;function o(){return(0,ee.createElement)(ee.Fragment,null,i)}return(0,ee.createElement)(o,{key:n})},eM=(e,t)=>e.map((e,r)=>eP(e,r,t)),eC=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{Object.assign(r,{[n]:eP(e[n],n,t)})}),r},ek=(e,t,r,n)=>e?Array.isArray(e)?eM(e,t):ey(e)?eC(e,t):(ed(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null,eL=e=>!(!ey(e)||Array.isArray(e))&&Object.keys(e).reduce((e,t)=>
1e&&Number.isNaN(Number.parseFloat(t)),!0);function eD({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:o={},values:a,defaults:s,components:l,ns:u,i18n:c,t:d,shouldUnescape:f,...h}){let p=c||eA();if(!p)return ed(p,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),e;let g=d||p.t.bind(p)||(e=>e),m={...ew(),...p.options?.react},y=u||g.ns||p.options?.defaultNS;y=em(y)?[y]:y||["translation"];let E=eO(e,m,p,n),b=s||E||m.transEmptyNodeValue||n,{hashTransKey:v}=m,T=n||(v?v(E||b):E||b);p.options?.interpolation?.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables});let w=!a&&(void 0===t||p.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}}:o.interpolation,A={...o,context:i||o.context,count:t,...a,...w,defaultValue:b,ns:y},N=T?g(T,A):b,S=ek(l,N,p,n),_=S||e,x=null;eL(S)&&(x=S,_=e);let I=eR(_,x,N,p,m,A,f),O=r??m.defaultTransParent;return O?(0,ee.createElement)(O,h,I):I}let eB=(0,ee.createContext)();class eV{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function eF({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:o={},values:a,defaults:s,components:l,ns:u,i18n:c,t:d,shouldUnescape:f,...h}){let{i18n:p,defaultNS:g}=(0,ee.useContext)(eB)||{},m=c||p||eA(),y=d||m?.t.bind(m);return eD({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:o,values:a,defaults:s,components:l,ns:u||y?.ns||g||m?.options?.defaultNS,i18n:m,t:d,shouldUnescape:f,...h})}let eU=(e,t)=>{let r=(0,ee.useRef)();return(0,ee.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current},ej=(e,t,r,n)=>e.getFixedT(t,r,n),eH=(e,t,r,n)=>(0,ee.useCallback)(ej(e,t,r,n),[e,t,r,n]),eG=(e,t={})=>{let{i18n:r}=t,{i18n:n,defaultNS:i}=(0,ee.useContext)(eB)||{},o=r||n||eA();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new eV),!o){ed(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>em(t)?t:ey(t)&&em(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react?.wait&&ed(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...ew(),...o.options.react,...t},{useSuspense:s,keyPrefix:l}=a,u=e||i||o.options?.defaultNS;u=em(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces?.(u);let c=(o.isInitialized||o.initializedStoreOnce)&&u.every(e=>eg(e,o,a)),d=eH(o,t.lng||null,"fallback"===a.nsMode?u:u[0],l),f=()=>d,h=()=>ej(o,t.lng||null,"fallback"===a.nsMode?u:u[0],l),[p,g]=(0,ee.useState)(f),m=u.join();t.lng&&(m=`${t.lng}${m}`);let y=eU(m),E=(0,ee.useRef)(!0);(0,ee.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=a;E.current=!0,c||s||(t.lng?ep(o,t.lng,u,()=>{E.current&&g(h)}):eh(o,u,()=>{E.current&&g(h)})),c&&y&&y!==m&&E.current&&g(h);let n=()=>{E.current&&g(h)};return e&&o?.on(e,n),r&&o?.store.on(r,n),()=>{E.current=!1,o&&e&&e?.split(" ").forEach(e=>o.off(e,n)),r&&o&&r.split(" ").forEach(e=>o.store.off(e,n))}},[o,m]),(0,ee.useEffect)(()=>{E.current&&c&&g(f)},[o,l,c]);let b=[p,o,c];if(b.t=p,b.i18n=o,b.ready=c,c||!c&&!s)return b;throw new Promise(e=>{t.lng?ep(o,t.lng,u,()=>e()):eh(o,u,()=>e())})},eK=({ns:e,children:t,...r})=>{let[n,i,o]=eG(e,r);return t(n,{i18n:i,lng:i.language},o)},{slice:ez,forEach:eW}=[];function eq(e){return eW.call(ez.call(arguments,1),t=>{if(t)for(let r in t)void 0===e[r]&&(e[r]=t[r])}),e}function eY(e){return"string"==typeof e&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e))}let e$=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,eX=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},n=r,i=encodeURIComponent(t),o=`${e}=${i}`;if(n.maxAge>0){let e=n.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!e$.test(n.domain))throw TypeError("option domain is invali
1d");o+=`; Domain=${n.domain}`}if(n.path){if(!e$.test(n.path))throw TypeError("option path is invalid");o+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invalid");o+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o},eJ={create(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),n&&(i.domain=n),document.cookie=eX(e,t,i)},read(e){let t=`${e}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var eQ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return eJ.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:o}=t;r&&"undefined"!=typeof document&&eJ.create(r,e,n,i,o)}},eZ={name:"querystring",lookup(e){let t,{lookupQuerystring:r}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let n=e.substring(1).split("&");for(let e=0;e<n.length;e++){let i=n[e].indexOf("=");i>0&&n[e].substring(0,i)===r&&(t=n[e].substring(i+1))}}return t}},e0={name:"hash",lookup(e){let t,{lookupHash:r,lookupFromHashIndex:n}=e;if("undefined"!=typeof window){let{hash:e}=window.location;if(e&&e.length>2){let i=e.substring(1);if(r){let e=i.split("&");for(let n=0;n<e.length;n++){let i=e[n].indexOf("=");i>0&&e[n].substring(0,i)===r&&(t=e[n].substring(i+1))}}if(t)return t;if(!t&&n>-1){let t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;let r="number"==typeof n?n:0;return t[r]?.replace("/","")}}}return t}};let e1=null,e2=()=>{if(null!==e1)return e1;try{if(!(e1="undefined"!=typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){e1=!1}return e1};var e3={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&e2())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&e2()&&window.localStorage.setItem(r,e)}};let e4=null,e5=()=>{if(null!==e4)return e4;try{if(!(e4="undefined"!=typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){e4=!1}return e4};var e6={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&e5())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&e5()&&window.sessionStorage.setItem(r,e)}},e8={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:r,language:n}=navigator;if(e)for(let r=0;r<e.length;r++)t.push(e[r]);r&&t.push(r),n&&t.push(n)}return t.length>0?t:void 0}},e7={name:"htmlTag",lookup(e){let t,{htmlTag:r}=e,n=r||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},e9={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(r))return;let n="number"==typeof t?t:0;return r[n]?.replace("/","")}},te={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,r="number"==typeof t?t+1:1,n="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};let tt=!1;try{document.cookie,tt=!0}catch(e){}let tr=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];tt||tr.splice(1,1);let tn=()=>({order:tr,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class ti{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=eq(t,this.options||{},tn()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(eQ),this.addDetector(eZ),this.addDetector(e3),this.addDetector(e6),this.addDetector(e8),this.addDetector(e7),this.addDetector(e9),this.addDetector(te),this.addDetector(e0)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let r=this.detectors[e].lookup(this.options);r&&"string"==typeof r&&(r=[r]),r&&(t=t.concat(r))}}),t=t.filter(e=>null!=e&&!eY(e)).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}ti.type="languageDetector",r(42073);var to=(e=>(e.en="en",e.ar="ar",e.fa="fa",e.he="he",e.zh="zh",e.ja="ja",e.es="es",e.ko="ko",e.vi="vi",e.de="de",e.fr="fr",e.ru="ru",e.id="id",e.tr="tr",e.it="it",e.pt="pt",e.uk="uk",e.pl="pl",e.nl="nl",e.tc="tc",e))(to||{}),ta="en",ts="translation",tl="orderly_i18nLng",tu="orderly_i18nLng",tc={"affiliate.referral":"Referral","affiliate.trader":"Trader","affiliate.enter":"Enter","affiliate.statistics":"Statistics","affiliate.connectWallet.tooltip":"Please connect your wallet to use this function","affiliate.createAccount.tooltip":"Create your account first to bind a referral code.","affiliate.page.title":"Refer, earn, and grow - referral & affiliate program","affiliate.page.subTitle":"Earn up to 60% in commissions by sharing your referral code. Invite friends, grow your network, and earn more.","affiliate.page.learnMore":"Learn how it works","affiliate.asAffiliate.affilates":"Affiliates","affiliate.asAffiliate.title":"Referrer","affiliate.asAffiliate.description":"Earn 10% commission from friendsâ trades. Want higher commission rates? Submit an application to become an affiliate.","affiliate.asAffiliate.button":"Become an affiliate","affiliate.asTrader.title":"Referee (Trader)","affiliate.asTrader.description":"Get rebates by trading with a referral code.","affiliate.asTrader.button":"Enter code","affiliate.referralCode":"Referral code","affiliate.referralCode.dialog.title":"Bind a referral code","affiliate.referralCode.dialog.description":"Bind a referral code to earn trading fee rebates.","affiliate.referralCode.label":"Enter referral code","affiliate.referralCode.bound":"Referral code bound","affiliate.referralCode.notExist":"This referral code does not exist.","affiliate.referralCode.bind.modal.title":"Were you referred by someone?","affiliate.referralCode.bind.modal.description":"If an affiliate shared their referral code with you, enter it below to bind your account and receive affiliate benefits.","affiliate.referralCode.bind.input.placeholder":"Enter referrer's code","affiliate.referralCode.bind.skip":"No, I was not referred by anyone","affiliate.process.title":"How It Works","affiliate.process.step1.title":"Trade $10,000+ or apply","affiliate.process.step1.description":"Unlock a referral code automatically ($0 of $10,000 completed - main account only), or apply for a higher rate via the form.","affiliate.process.step1.volumeEq0.title":"Get auto referral code or apply","affiliate.process.step1.volumeEq0.description":"Your referral code is ready to use after placing your first trade. you can apply for a higher rate via form.","affiliate.process.step1.volumeGt0.title":"Trade ${{requireVolume}}+ or apply","affiliate.process.step1.volumeGt0.description":"Earn a referral code automatically (${{volume}} of ${{requireVolume}} completed), or apply for a higher rate via form.","affiliate.process.step2.title":"Share","affiliate.process.step2.description":"Share your personalized referral code with others to start earning.","affiliate.process.step3.title":"Earn","affiliate.process.step3.description":"Refer others to earn commission, or use a referral code to earn rebates on your trading","affiliate.summary":"Summary","affiliate.summary.refereesTraded":"Referees that traded","affiliate.referralLink":"Referral link","affiliate.referralLink.earn":"Earn","affiliate.referralLink.earn.tooltip":"{{brokerName}}'s net fee after deducting Orderly's fee","affiliate.referralLink.share":"Share","affiliate.referralLink.share.tooltip":"Your referees get <0>{{value}}</0> of their {{brokerName}} net fee","affiliate.referralVol":"Referral vol.","affiliate.referralCodes":"Referral codes","affiliate.referralCodes.remaining":"Remaining referral codes","affiliate.referralCodes.column.defaultSplit":"Default split","affiliate.referralCodes.column.you&Referee":"You / Referee","affiliate.referralCodes.column.you&DirectReferees":"You / Direct referees","affiliate.referralCodes.column.traders":"Traders","affiliate.referralCodes.column.referees&Traders":"Referees / Traders","affiliate.referralCodes.copyLink":"Copy link","affiliate.upTo":"Up to 60%","affiliate.commission":"Commission","affiliate.base":"Affiliate","affiliate.directBonus":"Direct bonus","affiliate.commission.30d":"30d commission","affiliate.commission.column.activeUsers":"New traders","affiliate.myReferees":"My referees","affiliate.referees":"Referees","affiliate.referees.column.refereeAddress":"Referee address","affiliate.referees.column.totalCommission":"Total commission","affiliate.referees.column.totalVol":"Total vol.","affiliate.referees.column.invitationTime":"Invitation time","affiliate.trader.yourReferrer":"Your referrer","affiliate.trader.rebate":"Rebate","affiliate.trader.rebates":"Rebates","affiliate.trader.rebate.30d":"30d trading rebates","affiliate.trader.tradingRebates":"Trading rebates","affiliate.trader.myRebates":"My rebates","affiliate.trader.tradingVol":"Trading vol.","affiliate.referralCode.editCodeModal.title":"Settings","affiliate.referralCode.editCodeModal.description":"Edit your referral code","affiliate.referralCode.editCodeModal.label":"Referral code","affiliate.referralCode.editCodeModal.helpText.length":"Must be 4â15 characters long","affiliate.referralCode.editCodeModal.helpText.format":"Only uppercase letters (AâZ) and numbers (0â9) are allowed","affiliate.referralCode.editCodeModal.success":"Referral code updated successfully","affiliate.referralRate.editRateModal.title":"Settings","affiliate.referralRate.editRateModal.description":"Set the ratio of referral rate shared with your referees","affiliate.referralRate.editRateModal.label":"Your max commission rate:","affiliate.referralRate.editRateModal.label.you":"You receive","affiliate.referralRate.editRateModal.label.referee":"Referee receives","affiliate.referralRate.editRateModal.helpText.max":"The total commission rate must equal to your maximum commission rate limit","affiliate.referralRate.editRateModal.success":"Referral rate updated successfully","affiliate.direct":"Direct","affiliate.indirect":"Indirect","affiliate.referredBy":"Referred by {{name}}","affiliate.referrals":"Referrals","affiliate.referralCode.edit.modal.title":"Configure your referral settings","affiliate.referralCode.review.modal.title":"Save changes?","affiliate.referralCode.create":"Create referral code","affiliate.referralCode.create.modal.title":"Create new referral code","affiliate.referralCode.create.input.placeholder":"Input code (e.g., A1B2C3D4)","affiliate.referralCode.create.success":"Referral code created!","affiliate.referralCode.create.
1warning":"You are creating your referral code. Note that referee allocations can be increased later, but once a code has active referrals, its allocation cannot be decreased.","affiliate.rebateRate.edit.warning":"To protect existing users, once there are active referrals bound to this code, default commission split for referees can only be adjusted upward.","affiliate.rebateRate.review.warning":"Please review your settings. Note that once there are active referrals bound to this code, you can only increase the default commission split for referees.","affiliate.refereeRebateRate.edit.warning":"To protect existing users, you can only increase a referee's commission split.","affiliate.refereeRebateRate.review.warning":"Please review your settings. The commission split cannot be decreased later.","affiliate.refereeRebateRate.modal.title":"Edit commission for {{accountId}}","affiliate.noCommissionCard.title":"Extra bonus on direct referrals","affiliate.noCommissionCard.content":"You still earn rewards! You will receive a {{amount}}% direct referral bonus on every trade made by your direct referees.","affiliate.rebateRate.noCommissionAvailable":"Note: No commission available (0%), so configuration is disabled. However, this code is still active and can be shared to establish your referral base.","affiliate.rebateRate.noCommissionRate":"Note: Although the commission rate is currently 0%, you can still share this code to establish your referral base.","affiliate.resetRebateRate.modal.title":"Reset to default commission rate","affiliate.resetRebateRate.modal.description":"This action will remove custom settings for {{accountId}} and apply the default configuration.","affiliate.resetRebateRate.rateAfterReset":"Rate after reset","affiliate.youKeep":"You keep","affiliate.refereesGet":"Referees get","affiliate.directReferee":"Direct referee","affiliate.directRefereesGet":"Direct referees get","affiliate.affiliateGet":"Affiliate get","affiliate.totalToSplit":"Total to split","affiliate.atLeastPassesDown":"At least {{amount}} passes down to your direct referees.","affiliate.yourCommissionRates":"Your commission rates","affiliate.directTrades":"Direct trades","affiliate.indirectTrades":"Indirect trades","affiliate.directTradesDescription":"When your direct referee trades.","affiliate.indirectTradesDescription":"When your referee's recruits (or deeper) trade.","affiliate.extraBonusOnDirectReferrals":"<0>+ {{amount}}%</0> extra bonus on direct referrals","affiliate.earnReferralCommissions":"Earn referral commissions","affiliate.earnReferralCommissions.description":"Invite traders and earn passive commissions from trades made throughout your entire referral network","affiliate.newReferralProgram.title":"Introducing the new referral program","affiliate.newReferralProgram.description":"Give your sub-affiliates the power to customize their earnings, while you unlock an endless stream of passive income from every trader in your growing network.","affiliate.newReferralProgram.tradeUnlock":"Trade to unlock","affiliate.newReferralProgram.tradeUnlock.description":"Trade {{volume}} USDC volume to unlock the ability to invite friends and earn commissions.","affiliate.newReferralProgram.wereYouReferred":"Were you referred by someone?","affiliate.newReferralProgram.referredBy":"You were referred by {{code}}.","affiliate.commissionConfiguration":"Commission configuration","affiliate.totalCommissionAvailable":"Total commission available","affiliate.configure":"Configure","affiliate.accountNotEligible":"Account not eligible","affiliate.confirmAndGenerate":"Confirm & Generate","affiliate.confirmChanges":"Confirm changes","affiliate.confirmChanges.success":"Changes saved","affiliate.review":"Review","affiliate.networkSize":"Network size","affiliate.boundAt":"Bound at","affiliate.customized":"Customized","affiliate.note":"Note","affiliate.editNote":"Edit Note","affiliate.remark":"Remark","affiliate.userAddress":"User address","affiliate.refereeNote":"Referee note","affiliate.refereeNote.placeholder":"Add a remark","affiliate.refereeNote.helpText":"Remark must be 50 characters or less and include only letters, numbers, @, commas, spaces, hyphens, and underscores.","affiliate.refereeNote.helpText.short":"Use up to 50 characters: letters, numbers, @, commas, spaces, hyphens, and underscores.","affiliate.refereeNote.save.success":"Referee note saved.","affiliate.multiLevel":"Multilevel","affiliate.multiLevel.tooltip":"Earn commissions from your direct invitees and their sub-affiliate.","affiliate.singleLevelLegacy":"Single-level (legacy)","affiliate.singleLevelLegacy.tooltip":"Earn commissions from direct invitees only (legacy)","affiliate.wrongNetwork.description":"Please switch your wallet to the supported networks to proceed.","affiliate.setUpAccount.de
1scription":"Unlock your unique referral link and start earning rewards. Set up an account and enable trading to get started.","affiliate.connectWallet":"Connect wallet now","affiliate.setUpAccount":"Set up account","affiliate.landing.title":"Build your revenue network, earn lifetime commissions","affiliate.howItWorks.title":"How it works","affiliate.howItWorks.description":"Start your affiliate journey and build your revenue network in 3 simple steps.","affiliate.howItWorks.step1.title":"Connect wallet","affiliate.howItWorks.step1.description":"Set up your account by connecting your Web3 wallet.","affiliate.howItWorks.step2.title":"Configure your strategy","affiliate.howItWorks.step2.description":"Configure the commission split: secure your profit margin while allocating competitive incentives to empower your sub-affiliates.","affiliate.howItWorks.step3.title":"Share & earn","affiliate.howItWorks.step3.description":"Copy your link to invite partners and traders. Earn passive commissions from trades made throughout your entire referral network.","affiliate.faq.title":"FAQ","affiliate.faq.question1":"What about this referral program?","affiliate.faq.answer1":"This is a multilevel referral system that rewards you, the affiliate for growing the network. You earn a continuous share of the DEX revenue generated by every trader in your referral chain - not just those you invite directly.","affiliate.faq.question2":"How are my commissions calculated?\xa0","affiliate.faq.answer2":"Your commissions are the difference between your assigned commission rate and the percentage you choose to pass on to your sub-affiliates. Importantly, your commission rate remains consistent regardless of how deep the referral chain goes.","affiliate.faq.question3":"How much commission can I share with my direct sub-affiliates?","affiliate.faq.answer3":"The decision is entirely yours. You can assign any percentage, from 0% up to your maximum available commission rate, to your direct sub-affiliates to encourage their growth.","affiliate.faq.question4":"Where does the revenue come from?","affiliate.faq.answer4":"Revenue comes from the trading fees generated by traders on the DEX. Whenever a trader in your chain makes a transaction, a portion of the fee is distributed from the top of the chain downwards based on the configured allocation.","affiliate.faq.question5":"How do I get my commissions?","affiliate.faq.answer5":"Commissions are settled daily directly into your main trading account. You can view your overall commission earnings as an affiliate on the referral dashboard."},td={"chart.now":"Now"},tf={"connector.testnet":"Testnet","connector.mainnet":"Mainnet","connector.connect":"Connect","connector.disconnect":"Disconnect","connector.connectWallet":"Connect wallet","connector.createAccount":"Create account","connector.createAccountWithLedger":"Create account with ledger","connector.enableTradingWithLedger":"Enable trading with ledger","connector.disconnectWallet":"Disconnect wallet","connector.createAccount.description":"Confirm wallet ownership to create an account","connector.enableTrading":"Enable trading","connector.enableTrading.description":"Enable secure access to our API for lightning fast trading","connector.switchNetwork":"Switch Network","connector.wrongNetwork":"Wrong network","connector.wrongNetwork.tooltip":"Please switch to a supported network to continue.","connector.expired":"Your previous access has expired, you will receive a signature request to enable trading. Signing is free and will not send a transaction.","connector.rememberMe":"Remember me","connector.rememberMe.description":"Toggle this option to skip these steps next time you want to trade.","connector.referralCode.placeholder":"Referral code (Optional)","connector.referralCode.invalid":"The referral_code must be 4 to 15 characters long, only accept upper case roman characters and numbers","connector.referralCode.notExist":"This referral code does not exist.","connector.somethingWentWrong":"Something went wrong","connector.userRejected":"User rejected the request.","connector.walletConnected":"Wallet connected","connector.networkSwitched":"Network switched","connector.switchChain.failed":"Switch chain failed","connector.trade.connectWallet.tooltip":"Please connect wallet before starting to trade","connector.trade.createAccount.tooltip":"Please create account before starting to trade","connector.trade.enableTrading.tooltip":"Please enable trading before starting to trade","connector.setUp.connectWallet.tooltip":"Please connect wallet before set up","connector.setUp.createAccount.tooltip":"Please create account before set up","connector.setUp.enableTrading.tooltip":"Please enable trading before set up","connector.ledger.signMessageFailed":"Sign Message Failed","connector.ledger.signMessageFailed.description":"Are you using Ledger Wallet?","connector.privy.loginIn":"Login in","connector.privy.logout":"Log out","connector.privy.email":"Email","connector.privy.google":"Google","connector.privy.twitter":"X / Twitter","connector.privy.telegram":"Telegram","connector.privy.myWallet":"My wallet","connector.privy.addEvmWallet":"Add Evm wallet","connector.privy.addSolanaWallet":"Add Solana wallet","connector.privy.addAbstractWallet":"Add Abstract wallet","connector.privy.createEvmWallet":"Create Evm wallet","connector.privy.createSolanaWallet":"Create Solana wallet","connector.privy.termsOfUse":"By connecting your wallet, you acknowledge and agree to the <0>terms of use</0>.","connector.privy.supportedEvmChain":"Supported Evm chain","connector.privy.supportedSolanaChain":"Supported Solana chain","connector.privy.noWallet":"No wallet","connector.privy.noWallet.description":"Please create a wallet to proceed. Only you can access the private key. You can export the private key and import your wallet into another wallet client, such as MetaMask or Phantom, at any time.","connector.privy.switchNetwork.tips":"Switch to {{chainName}} to continue.","connector.privy.addEvmWallet.tips":"Connect an EVM-compatible wallet to continue using the EVM network.","connector.privy.addSolanaWallet.tips":"Connect an Solana-compatible wallet to continue using the Solana network.","connector.privy.addAbstractWallet.tips":"Connect an Abstract-compatible wallet to continue using the Abstract network.","connector.privy.pwa.title":"Prefer an app-like experience? Try the PWA","connector.privy.pwa.sheetTitle":"Add as App","connector.privy.pwa.description":"For a better mobile experience, add this website to your home screen as an app from Safari or Chrome.","connector.privy.pwa.step1":"Click the share icon in the browser menu.","connector.privy.pwa.step2":"Choose Add to Home Screen in the options.","connector.privy.pwa.findOnPage":"Find on Page","connector.privy.pwa.addToHomeScreen":"Add to Home Screen"},th={"leverage.maxAccountLeverage":"Max account leverage","leverage.accountLeverage":"Account leverage","leverage.currentLeverage":"Current leverage","leverage.maxLeverage":"Max leverage","leverage.updated":"Leverage updated","leverage.adjustedLeverage":"Adjust leverage","leverage.maxPositionLeverage.tips":"* Maximum position at current leverage: <0>{{amount}}</0> USDC","leverage.maxAvailableLeverage.tips":"* Highest available leverage <0>
1{{leverage}}</0>. Selecting higher leverage increases your liquidation risk.","leverage.overRequiredMargin.tips":"Margin is not enough. Please try adjusting to another leverage level.","leverage.overMaxPositionLeverage.tips":"Current highest available leverage is <0>{{leverage}}</0>. Please try adjusting to another leverage level.","leverage.confirm":"Leverage confirm","leverage.confirm.content":"If you modify the leverage, it will also affect your ongoing positions on this symbol.","leverage.confirm.disable.confirmation":"Disable confirmation","leverage.actualPositionLeverage.tips":"* Actual position leverage adjusts with notional changes and may fall below your selected leverage."},tp={"tradingPoints.points":"Points"},tg={"notification.campaign":"Campaign announcement","notification.delisting":"Token delisting","notification.general":"General update","notification.joinNow":"Join now","notification.listing":"New token listing","notification.vote":"Community vote","notification.maintenance":"System maintenance","notification.maintenanceDuration.hours":"{{hours}} HRs at {{startTimeFormatted}} - {{endTimeFormatted}} (UTC)","notification.maintenanceDuration.minutes":"{{minutes}} MINs at {{startTimeFormatted}} - {{endTimeFormatted}} (UTC)","notification.recentlyUpdated":"Recently updated","notification.title":"Announcement","notification.centerTitle":"Announcement center","notification.closeAll":"Close all ({{total}})","notification.delistingTitle":"Token Delisting Notice","notification.generalTitle":"General Update","notification.maintenanceTitle":"System Maintenance","notification.empty":"No announcements"},tm={"orderEntry.buyLong":"Buy / Long","orderEntry.sellShort":"Sell / Short","orderEntry.reduceOnly":"Reduce only","orderEntry.orderType.limit":"Limit","orderEntry.orderType.market":"Market","orderEntry.orderType.limitOrder":"Limit","orderEntry.orderType.marketOrder":"Market","orderEntry.orderType.stopLimit":"Stop limit","orderEntry.orderType.stopMarket":"Stop market","orderEntry.orderType.postOnly":"Post only","orderEntry.orderType.postOnly.tooltip":"Ensures your order is maker-only; cancels if it would execute immediately.","orderEntry.orderType.ioc":"IOC","orderEntry.orderType.ioc.tooltip":"Executes immediately; any unfilled amount is canceled.","orderEntry.orderType.fok":"FOK","orderEntry.orderType.fok.tooltip":"Executes immediately in full, or is canceled entirely.","orderEntry.orderType.symbolPostOnly.tooltip":"This symbol is in POST_ONLY mode. Only limit orders are accepted until the order book is ready.","orderEntry.orderType.scaledOrder":"Scaled","orderEntry.orderType.trailingStop":"Trailing stop","orderEntry.orderSize":"Order size","orderEntry.initialMargin":"Initial margin","orderEntry.startPrice":"Start price","orderEntry.endPrice":"End price","orderEntry.skew":"Skew","orderEntry.totalOrders":"Total orders","orderEntry.totalQuantity":"Total quantity","orderEntry.trailingRate":"Trailing rate","orderEntry.trailingValue":"Trailing value","orderEntry.trailing":"Trailing","orderEntry.quantityDistribution":"Qty distribution","orderEntry.quantityDistribution.description":"Controls how order size is distributed across price levels. ","orderEntry.quantityDistribution.formula":"Size Skew = (Size at end price) \xf7 (Size at start price)","orderEntry.distributionType.flat":"Flat","orderEntry.distributionType.ascending":"Ascending","orderEntry.distributionType.ascending.abbr":"Asc.","orderEntry.distributionType.descending":"Descending","orderEntry.distributionType.descending.abbr":"Desc.","orderEntry.distributionType.custom":"Custom","orderEntry.distributionType.flat.description":"Uniform order allocation across the range.","orderEntry.distributionType.ascending.description":"Larger order sizes toward the end of the price range","orderEntry.distributionType.descending.description":"Larger order sizes near the start of the price range","orderEntry.bbo":"BBO","orderEntry.bbo.counterparty1":"Counterparty 1","orderEntry.bbo.counterparty5":"Counterparty 5","orderEntry.bbo.queue1":"Queue 1","orderEntry.bbo.queue5":"Queue 5","orderEntry.bbo.disabled.tips":"BBO is not supported when TP/SL, Post-Only, IOC, or FOK is selected.","orderEntry.estLiqPrice":"Est. liq. price","orderEntry.disableOrderConfirm":"Disable order confirmation","orderEntry.orderConfirm":"Order confirm","orderEntry.confirmScaledOrder":"Confirm scaled order","orderEntry.hidden":"Hidden","orderEntry.hidden.tooltip":"Hidden orders provide trading privacy by concealing your order size from other market participants while still executing normally.","orderEntry.keepVisible":"Keep visible","orderEntry.maxBuy":"Max buy","orderEntry.maxSell":"Max sell","orderEntry.tpMarkPrice":"TP price (Mark)","orderEntry.slMarkPrice":"SL price (Mark)","orderEntry.tpsl.trigger.description":"TP/SL triggers at the specified mark price and executes as a market order.","orderEntry.estRoi":"Est.ROI","orderEntry.estPnL":"Est.PnL","orderEntry.tpsl.tips":"TP/SL triggers at the specified mark price and executes as a market order. By default, it applies to the entire position. Adjust settings in open positions for partial TP/SL.","orderEntry.orderQuantity.error.required":"Quantity is required","orderEntry.orderQuantity.error.min":"Quantity must be greater than {{value}}","orderEntry.orderQuantity.error.max":"Quantity must be less than {{value}}","orderEntry.orderQuantity.error.insufficientBalance":"Insufficient balance to place this order","orderEntry.orderPrice.error.required":"Price is required","orderEntry.orderPrice.error.min":"Price must be greater than {{value}}","orderEntry.orderPrice.error.max":"Price must be less than {{value}}","orderEntry.triggerPrice.error.required":"Trigger price is required","orderEntry.triggerPrice.error.min":"Trigger price must be greater than {{value}}","orderEntry.triggerPrice.error.max":"Trigger price must be less than {{value}}","orderEntry.tpTriggerPrice.error.min":"TP Price must be greater than {{value}}","orderEntry.tpTriggerPrice.error.max":"TP Price must be less than {{value}}","orderEntry.slTriggerPrice.error.min":"SL Price must be greater than {{value}}","orderEntry.slTriggerPrice.error.max":"SL Price must be less than {{value}}","orderEntry.total.error.min":"The order value should be greater or equal to {{value}} USDC","orderEntry.initialMarginTotal.error.min":"The initial margin should be greater or equal to {{value}} USDC","marginMode.switchMarginMode":"Switch Margin Mode","marginMode.cross":"Cross","marginMode.isolated":"Isolated","marginMode.crossMargin":"Cross Margin","marginMode.isolatedMargin":"Isolated Margin","marginMode.crossMarginDescription":"Margin and PnL are shared across positions. You may lose all positions if liquidation occurs.","marginMode.isolatedMarginDescription":"Margin and PnL are independent for each position. You'll only lose the current position if liquidation occurs. Isolated margin is denominated in USDC, and eligible collateral assets can back the required USDC balance. <0>Learn more</0>","marginMode.current":"Current","marginMode.marginModeSettings":"Margin mode settings","marginMode.updatedSuccessfully":"Updated successfully","marginMode.noEditableSymbolsSelected":"No editable symbols selected","marginMode.failedToUpdateMarginMode":"Failed to update margin mode","marginMode.perpetualFutures":"Perpetual futures","marginMode.searchPlaceholder":"Search","marginMode.selectAll":"Select all","marginMode.setAs":"Set as","marginMode.disabledSymbolTooltip":"This symbol is independently operated by a third party. Isolated Margin is enforced to prevent risk from affecting your other positions.","orderEntry.startPrice.error.required":"Start price is required","orderEntry.startPrice.error.min":"Start price must be greater than {{value}}","orderEntry.startPrice.error.max":"Start price must be less than {{value}}","orderEntry.endPrice.error.required":"End price is required","orderEntry.endPrice.error.min":"End price must be greater than {{value}}","orderEntry.endPrice.error.max":"End price must be less than {{value}}","orderEntry.totalOrders.error.required":"Total orders is required","orderEntry.totalOrders.error.range":"Total orders must be in the range of 2 to 20.","orderEntry.skew.error.required":"Skew is required","orderEntry.skew.error.min":"Skew must be greater than {{value}}","orderEntry.skew.error.max":"Skew must be less than {{value}}","orderEntry.callbackValue.error.min":"Trailing value must be greater than {{value}}","orderEntry.callbackValue.error.range":"Trailing value needs to be greater than {{min}} and less than {{max}}","orderEntry.callbackRate.error.range":"Trailing rate needs to be greater than or equal to {{min}} and less than or equal to {{max}}","orderEntry.callbackValue.error.required":"Trailing value is required","orderEntry.callbackRate.error.required":"Trailing rate is required","orderEntry.slippage":"Slippage","orderEntry.slippage.est":"Est","orderEntry.slippage.tips":"Your transaction will revert if the price changs unfavorably by more than this percentage.","orderEntry.slippage.error.exceed":"The current input value cannot exceed 3%","orderEntry.slippage.error.max":"Estimated slippage exceeds your maximum allowed slippage.","orderEntry.confirmScaledOrder.orderPrice.warning":"This order will be filled
1immediately based on the current market price.","orderEntry.scaledOrder.fullySuccessful":"Scaled order placed: {{total}} orders submitted successfully.","orderEntry.scaledOrder.partiallySuccessful":"Scaled order partially submitted: {{successCount}} of {{total}} orders placed.","orderEntry.scaledOrder.allFailed":"Scaled order failed. No orders were placed.","orderEntry.reduceOnly.reminder":"Reduce-only reminder","orderEntry.reduceOnly.reminder.content":"Your account is in reduce-only and cannot open new positions. Would you like to turn off reduce-only mode and proceed with the\xa0order?","orderEntry.placeOrderNow":"Place order now","orderEntry.maxQty.reminder.content":"Order qty reduced to max available: {{maxQty}}","orderEntry.usdcBorrowLimit.title":"Unable to open position","orderEntry.usdcBorrowLimit.content":"This order would cause your USDC borrowing to exceed the {{limit}} USDC limit. Reduce your order size, or deposit/transfer more USDC and try again.","orderEntry.permissionlessNotice.title":"Community-Listed Market Notice","orderEntry.permissionlessNotice.content1":"This market was listed by a third-party deployer through the permissionless listing system.","orderEntry.permissionlessNotice.content2":"It is not created, reviewed, or endorsed by Orderly. Such markets may involve low liquidity, high volatility, incomplete information, or increased liquidation risk.","orderEntry.permissionlessNotice.content3":"Please review the deployer's documentation and trade at your own risk.","orderEntry.permissionlessNotice.checkbox":"I understand this is a community-listed market and accept the risks."},ty={"orders.orderHistory":"Order history","orders.status.pending":"Pending","orders.status.filled":"Filled","orders.status.partialFilled":"Partial filled","orders.status.canceled":"Canceled","orders.status.rejected":"Rejected","orders.status.incomplete":"Incomplete","orders.status.completed":"Completed","orders.status.opened.toast.title":"Order opened","orders.status.filled.toast.title":"Order filled","orders.status.canceled.toast.title":"Order canceled","orders.status.rejected.toast.title":"Order rejected","orders.status.replaced.toast.title":"Order edited","orders.status.scaledSubOrderOpened.toast.title":"Scale order: sub-order opened","orders.trailingStop.activated":"Trailing order activated","orders.column.fill&Quantity":"Filled / Quantity","orders.column.orderTime":"Order time","orders.column.hidden":"Hidden","orders.editOrder":"Edit order","order.edit.confirm.quantity":"You agree changing the quantity of {{base}}-PERP order to <0>{{value}}</0>.","order.edit.confirm.price":"You agree changing the price of {{base}}-PERP order to <0>{{value}}</0>.","order.edit.confirm.triggerPrice":"You agree changing the trigger price of {{base}}-PERP order to <0>{{value}}</0>.","order.edit.confirm.callbackValue":"You agree changing the callback value of {{base}}-PERP order to <0>{{value}}</0>.","order.edit.confirm.callbackRate":"You agree changing the callback rate of {{base}}-PERP order to <0>{{value}}</0>.","orders.cancelOrder":"Cancel order","orders.cancelOrder.description":"Are you sure you want to cancel your pending order.","orders.cancelAll":"Cancel all","orders.pending.cancelAll":"Cancel all pending orders","orders.pending.cancelAll.description":"Are you sure you want to cancel all of your pending orders?","orders.tpsl.cancelAll":"Cancel all TP/SL orders","orders.tpsl.cancelAll.description":"Are you sure you want to cancel all of your TP/SL orders?","orders.cancelAll.ofSymbol":"Cancel all of {{symbol}}","orders.pending.cancelAll.forSymbol":"Cancel all pending orders for {{symbol}}","orders.pending.cancelAll.forSymbol.description":"Are you sure you want to cancel all pending orders for {{symbol}}?","orders.tpsl.cancelAll.forSymbol":"Cancel all TP/SL orders for {{symbol}}","orders.tpsl.cancelAll.forSymbol.description":"Are you sure you want to cancel all TP/SL orders for {{symbol}}?","orders.price.greaterThan":"Price can not be greater than {{max}} USDC.","orders.price.lessThan":"Price can not be less than {{min}} USDC.","orders.quantity.lessThan":"Quantity should be less than {{quantity}}","orders.quantity.lessThanPosition":"Quantity should be less than position quantity : {{quantity}}","orders.history.renew":"Renew","orders.download.tooltip":"The downloaded data will reflect only the applied filters (e.g., status, time, side, and pagination) and may not include all records."},tE={"portfolio.feeTier":"Fee tier","portfolio.apiKeys":"API Keys","portfolio.setting":"Settings","portfolio.overview.availableWithdraw":"Available to withdraw","portfolio.overview.handle.title":"Portfolio value","portfolio.overview.performance":"Performance","portfolio.overview.performance.roi":"{{period}} ROI","portfolio.overview.performance.roi.tooltip":"ROI = PnL / (Start account value + Total deposits + Total transfer-in)","portfolio.overview.performance.pnl":"{{period}} PnL","portfolio.overview.performance.pnl.tooltip":"PnL = Current account value â Start account value â Total deposits + Total withdrawals â Total transfer-in + Total transfer-out","portfolio.overview.performance.volume":"{{period}} Volume (USDC)","portfolio.overview.performance.volume.tooltip":"Trading volume over the selected period.","portfolio.overview.performance.dailyPnl":"Daily PnL","portfolio.overview.performance.cumulativePnl":"Cumulative PnL","portfolio.overview.performance.dailyVolume":"Daily Volume","portfolio.overview.performance.cumulativeVolume":"Cumulative Volume","portfolio.overview.todaysPnl":"Today's PnL","portfolio.overview.todaysVol":"Today's Vol","portfolio.overview.distribution":"Distribution","portfolio.overview.transferHistory":"Transfer history","portfolio.overview.vaults":"Vaults","portfolio.overview.vaultName":"Vault name","portfolio.overview.column.txId":"TxID","portfolio.overview.column.token":"Token","portfolio.overview.column.qty":"Qty.","portfolio.overview.column.indexPrice":"Index price","portfolio.overview.column.assetValue":"Asset value","portfolio.overview.column.collateralRatio":"Collateral ratio","portfolio.overview.column.collateralRatio.explain":"Collateral ratio shows how much of an assetâs value can be used as margin","portfolio.overview.column.assetContribution":"Asset contribution","portfolio.overview.column.form":"Form","portfolio.overview.column.to":"To","portfolio.overview.column.convert.convertedAsset":"Converted asset","portfolio.overview.column.convert.receivedAmount":"Received amount","portfolio.overview.column.convert.convertId":"Convert ID","portfolio.overview.column.convert.details":"Details","portfolio.overview.tab.convert.history":"Convert history","portfolio.overview.convert.dialog.title.details":"Convert details","portfolio.overview.distribution.type.referralCommission":"Referral commission","portfolio.overview.distribution.type.refereeRebate":"Referee rebate","portfolio.overview.distribution.type.brokerFee":"Broker fee","portfolio.feeTier.updatedDailyBy":"Updated daily by","portfolio.feeTier.header.yourTier":"Your tier","portfolio.feeTier.header.30dVolume":"30D trading volume","portfolio.feeTier.header.takerFeeRate":"Taker fee rate","portfolio.feeTier.header.makerFeeRate":"Maker fee rate","portfolio.feeTier.header.myStake":"My stake","portfolio.feeTier.column.tier":"Tier","portfolio.feeTier.column.30dVolume":"30 day volume","portfolio.feeTier.column.30dVolume.above":"Above {{volume}}","portfolio.feeTier.column.stakingLevel":"Staking Level","portfolio.feeTier.column.or":"or","portfolio.feeTier.column.maker":"Maker / RWA Maker","portfolio.feeTier.column.taker":"Taker / RWA Taker","portfolio.apiKey.accountId.copied":"Account id copied","portfolio.apiKey.uid":"UID","portfolio.apiKey.secretKey":"Secret key","portfolio.apiKey.secretKey.copied":"Secret key copied","portfolio.apiKey.ip":"IP","portfolio.apiKey.permissions":"Permissions","portfolio.apiKey.permissions.read":"Read","portfolio.apiKey.permissions.trading":"Trading","portfolio.apiKey.description":"Create API keys to suit your trading needs. For your security, don't share your API keys with anyone.","portfolio.apiKey.readApiGuide":"Read API guide","portfolio.apiKey.column.apiKey":"API key","portfolio.apiKey.column.apiKey.copy":"API key copied","portfolio.apiKey.column.permissionType":"Permission type","portfolio.apiKey.column.restrictedIP":"Restricted IP","portfolio.apiKey.column.restrictedIP.copy":"Restricted IP copied","portfolio.apiKey.column.expirationDate":"Expiration date","portfolio.apiKey.create.dialog.title":"Create API key","portfolio.apiKey.create.connectWallet.tooltip":"Please connect wallet before create API key","portfolio.apiKey.create.createAccount.tooltip":"Please create account before create API key","portfolio.apiKey.create.enableTrading.tooltip":"Please enable trading before create API key","portfolio.apiKey.create.wrongNetwork.tooltip":"Please switch to a supported network to create API key","portfolio.apiKey.create.ipRestriction":"IP restriction (optional)","portfolio.apiKey.create.ipRestriction.placeholder":"Add IP addresses, separated by commas.","portfolio.apiKey.created.warning":"Please copy the API secret. Once you close this pop-up, the API secret will be encrypted.","portfolio.apiKey.created.button.copyApiInfo":"Copy API info","portfolio.apiKey.apiInfo.copied":"API info copied","portfolio.apiKey.created":"API key created","portfolio.apiKey.deleted":"API key deleted","portfolio.apiKey.updated":"API key updated","portfolio.apiKey.edit.dialog.title":"Edit API key","portfolio.apiKey.delete.dialog.title":"Delete API key","portfolio.apiKey.delete.dialog.description":"Delete your API key <0>{{apiKey}}</0>?","portfolio.setting.systemUpgrade":"System upgrade","portfolio.setting.cancelOpenOrders":"Cancel open orders during system upgrade","portfolio.setting.cancelOpenOrders.description":"During the upgrade period, all open orders will be cancelled to manage your risk in case of high market volatility.","portfolio.setting.soundAlerts":"Sound notification","portfolio.setting.soundAlerts.description":"Play a notification sound when an order is filled or canceled.","portfolio.setting.theme":"Theme"},tb={"positions.closePosition":"Close Position","positions.fundingFee.title":"Funding Fee","positions.fundingFee.tooltip":"Total funding fees from closed positions only, including partially closed portions.","positions.unsettledFundingFee":"Unsettled funding fee","positions.unsettledFundingFee.tooltip":"Fun
1ding fees accrued since the most recent settlement or position cost update. After settlement or position adjustments, the amount is incorporated into the position cost and starts accruing again. It does not represent the total funding fees since the position was opened.","positions.fundingRate.tooltip":"Funding fee amount for each funding interval during the time the position was open. Records may include funding fees from both closed positions and currently open positions.","positions.liquidation":"Liquidation","positions.positionHistory":"Position history","positions.closeAll":"Close all","positions.closeAll.ofSymbol":"Close all of {{symbol}}","positions.closeAll.description":"Are you sure you want to close all of your positions? They will be closed using market orders.","positions.closeAll.success":"All positions closed successfully","positions.closeAll.optionAll":"Close all positions","positions.closeAll.optionProfit":"Close profitable positions","positions.closeAll.optionLoss":"Close loss-making positions","positions.closeAll.noPositions.profit":"No profitable positions to close.","positions.closeAll.noPositions.loss":"No loss-making positions to close.","positions.closeAll.popover.desc":"Select which positions you want to close. They will be closed at the market price of the corresponding market.","positions.column.liqPrice":"Liq. price","positions.column.unrealPnl.tooltip":"Current unrealized profit or loss on your open positions across all widgets calculated using Mark Price.","positions.column.unrealPnl.priceBasis":"Unrealized PnL Price Basis","positions.column.margin":"Margin","positions.column.margin.tooltip":"Isolated margin locked in the position","positions.column.margin.formula":"Margin = Position size * Open price * IMR","positions.column.close":"Close","positions.limitClose":"Limit close","positions.limitClose.description":"You agree closing {{quantity}} {{base}} position at limit price.","positions.marketClose":"Market close","positions.marketClose.description":"You agree closing {{quantity}} {{base}} position at market price.","positions.limitClose.errors.exceed.title":"Close size limit exceeded","positions.limitClose.errors.exceed.description":"Cannot close {{quantity}} {{symbol}} position. Max allowed per close is {{maxQuantity}} {{symbol}}.","positions.history.status.closed":"Closed","positions.history.status.partialClosed":"Partially closed","positions.history.type.adl":"Adl","positions.history.type.liquidated":"Liquidated","positions.history.liquidated.liquidationId":"Liquidation id","positions.history.liquidated.liquidatorFee":"Liquidator fee","positions.history.liquidated.insFundFee":"Ins. Fund fee","positions.history.column.closed":"Closed","positions.history.column.maxClosed":"Max closed","positions.history.column.closed&maxClosed":"Closed / Max closed","positions.history.column.netPnl":"Net PnL","positions.history.column.timeOpened":"Time opened","positions.history.column.timeClosed":"Time closed","positions.history.column.updatedTime":"Updated time","positions.history.netPnl.tradingFee":"Trading fee","positions.Liquidation.column.liquidationId":"Liquidation id","positions.Liquidation.column.insFundTransfer":"Ins. fund transfer","positions.Liquidation.column.liquidationFee":"Liquidation fee","positions.Liquidation.column.liquidationFeeRate":"Liquidation fee rate","positions.Liquidation.column.markPrice":"Liq. mark price","positions.Liquidation.tooltip.liquidation":"An account is subject to liquidation if its Account Margin Ratio falls below its Maintenance Margin Ratio.","positions.Liquidation.tooltip.viewMore":"View more","positions.Liquidation.col.tooltip.feeRate":"The percentage charged for this liquidation, covering both the liquidatorâs fee and the insurance fund contribution. This rate varies by symbol.","positions.Liquidation.col.tooltip.fee":"The total fee charged for this liquidation, including both the liquidatorâs fee and the insurance fund contribution.","positions.Liquidation.expand.label.mr":"Margin ratio","positions.Liquidation.expand.label.mmr":"Maint. margin ratio","positions.Liquidation.expand.label.collateral":"Collateral value","positions.Liquidation.expand.label.notional":"Position notional","positions.Liquidation.expand.tooltip.mr":"The ratio of collateral to position size at the time of liquidation.","positions.Liquidation.expand.tooltip.mmr":"The minimum margin required to keep the position open.","positions.Liquidation.expand.tooltip.collateral":"Total collateral value in the account when liquidation occurred.","positions.Liquidation.expand.tooltip.notional":"The total notional value of positions in the account at liquidation.","positions.reverse.title":"Reverse Position","positions.reverse.description":"Close your current position and open the opposite at market price. If your account balance isn't enough, the reverse order will fail. Orders exceeding the maximum quantity will be automatically split into multiple smaller orders.","positions.reverse.error.belowMin":"The reverse order quantity is below the minimum allowed. Please close your position and place a new order manually.","positions.reverse.marketCloseLong":"Market Close Long","positions.reverse.marketCloseShort":"Market Close Short","positions.reverse.marketOpenLong":"Market Open Long","positions.reverse.marketOpenShort":"Market Open Short","positions.reverse.reverseToLong":"Reverse to Long","positions.reverse.reverseToShort":"Reverse to Short","positions.adjustMargin.title":"Adjust Margin","positions.adjustMargin.add":"Add Margin","positions.adjustMargin.reduce":"Reduce Margin","positions.adjustMargin.quantity":"Quantity","positions.adjustMargin.max":"Max","positions.adjustMargin.currentMargin":"Current margin:","positions.adjustMargin.liqPriceAfter":"Liquidation price after adjustment:","positions.adjustMargin.leverageAfter":"Effective leverage after adjustment:","positions.adjustMargin.success":"Margin adjusted successfully","positions.adjustMargin.failed":"Failed to adjust margin","positions.adjustMargin.marginCannotMoreThanMax":"Margin cannot be more than max"},tv={"scaffold.announcement.campaign":"Latest Campaign is coming","scaffold.footer.joinCommunity":"Join our community","scaffold.footer.operational":"Operational","scaffold.footer.poweredBy":"Powered by"},tT={"share.pnl.sharePnl":"Share PnL","share.pnl.share.long":"LONG","share.pnl.share.short":"SHORT","share.pnl.displayFormat":"PnL display format","share.pnl.displayFormat.roi&Pnl":"ROI & PnL","share.pnl.displayFormat.roi":"ROI","share.pnl.displayFormat.pnl":"PnL","share.pnl.optionalInfo":"Optional information to share","share.pnl.optionalInfo.openPrice":"Open price","share.pnl.optionalInfo.closePrice":"Close price","share.pnl.optionalInfo.openTime":"Opened at","share.pnl.optionalInfo.closeTime":"Closed at","share.pnl.optionalInfo.message":"Your message","share.pnl.optionalInfo.message.placeholder":"Max 25 characters","share.pnl.optionalInfo.message.maxLength":"Maximum support of 25 characters","share.pnl.image.copied":"Image copied","share.pnl.copy.failed.description":"Browser version outdated, please update in order to copy image to clipboard."},tw={"tpsl.tp":"TP","tpsl.sl":"SL","tpsl.mode":"Mode","tpsl.fullPosition":"Full position","tpsl.partialPosition":"Partial position","tpsl.tpPrice"
1:"TP Price","tpsl.slPrice":"SL Price","tpsl.tpPnl":"TP PnL","tpsl.slPnl":"SL PnL","tpsl.tpTrigger":"TP trigger","tpsl.slTrigger":"SL trigger","tpsl.pnl":"PnL","tpsl.offsetHolder":"Offset","tpsl.offset":"Offset (From entry)","tpsl.offsetPercent":"Offset% (From entry)","tpsl.add":"Add","tpsl.cancelAll":"Cancel all","tpsl.dragToSet":"Drag to set TP/SL","tpsl.tpOrderPrice":"TP order price","tpsl.slOrderPrice":"SL order price","tpsl.tpTriggerPrice":"TP trigger price","tpsl.slTriggerPrice":"SL trigger price","tpsl.positionTpsl":"Position TP/SL","tpsl.entirePosition":"Entire position","tpsl.estPnl":"Est. PNL","tpsl.takeProfit":"Take profit","tpsl.stopLoss":"Stop loss","tpsl.cancelOrder.description":"Are you sure you want to cancel this TP/SL order?","tpsl.confirmOrder":"Confirm Order","tpsl.advanced":"Advanced","tpsl.advancedSetting":"Advanced setting","tpsl.TPOrderConfirm":"TP order confirm","tpsl.SLOrderConfirm":"SL order confirm","tpsl.positionType.full":"TP/SL: Full position","tpsl.positionType.partial":"TP/SL: Partial position","tpsl.positionType.full.tips":"Full-position TP/SL closes the position using a market or limit order. Its quantity is determined when triggered. A triggered limit order keeps that quantity even if the position changes, and may not fill immediately.","tpsl.positionType.partial.tips":"Partial TP/SL closes the specified quantity using a market or limit order when the mark price reaches the trigger price.","tpsl.advanced.ROI":"When the mark price reaches <0/>, it will trigger a <1/> order, and estimated PnL will be <2/> and ROI is <3/>.","tpsl.advanced.submit":"Submit","tpsl.totalEstTpPnl":"Total est. TP PnL","tpsl.totalEstSlPnl":"Total est. SL PnL","tpsl.riskRewardRatio":"Risk reward ratio","tpsl.validate.tpOrderPrice.error.required":"TP order price is required","tpsl.validate.tpOrderPrice.error.min":"TP order price must be greater than {{value}}","tpsl.validate.tpOrderPrice.error.max":"TP order price must be less than {{value}}","tpsl.validate.slOrderPrice.error.required":"SL order price is required","tpsl.validate.slOrderPrice.error.min":"SL order price must be greater than {{value}}","tpsl.validate.slOrderPrice.error.max":"SL order price must be less than {{value}}","tpsl.validate.tpTriggerPrice.error.priceErrorMin":"Your TP trigger price should be set lower than your order price.","tpsl.validate.tpTriggerPrice.error.priceErrorMax":"Your TP trigger price should be set higher than your order price.","tpsl.validate.slTriggerPrice.error.priceErrorMin":"Your SL trigger price should be set lower than your order price.","tpsl.validate.slTriggerPrice.error.priceErrorMax":"Your SL trigger price should be set higher than your order price.","tpsl.validate.tpTriggerPrice.error.required":"TP trigger price is required","tpsl.validate.slTriggerPrice.error.required":"SL trigger price is required","tpsl.validate.slTriggerPrice.warning.closeToLiqPrice":"Stop losses set near the liq. price may not trigger. Note: the liq. price can change with position notional.","tpsl.validate.slTriggerPrice.error.crossLiqPrice":"Stop loss crosses the liq. price. Please adjust your SL.","tpsl.tpslDetail.qty":"Qty.","tpsl.tpslDetail.estPnl":"Est. PnL","tpsl.tpslDetail.estPnl.tooltip":"The actual value may differ based on the actual trading price. This value is only for reference.","tpsl.agreement":"You agree to edit your {{symbol}} order.","tpsl.offsetMark":"Offset (From mark)","tpsl.offsetPercentMark":"Offset% (From mark)"},tA={"trading.layout":"Layout","trading.layout.advanced":"Advanced","trading.layout.advanced.right":"Right","trading.layout.advanced.left":"Left","trading.layout.markets":"Markets","trading.layout.markets.left":"Left","trading.layout.markets.top":"Top","trading.layout.markets.bottom":"Bottom","trading.layout.markets.hide":"Hide","trading.orders.closeAll":"Close All","trading.hideOtherSymbols":"Hide other symbols","trading.history":"History","trading.portfolioSettings":"Preference","trading.portfolioSettings.decimalPrecision":"Decimal Precision for PnL & Notional","trading.portfolioSettings.unrealPnlPriceBasis":"Unrealized PnL Price Basis","trading.portfolioSettings.reversePosition":"Reverse button","trading.portfolioSettings.reversePosition.tooltip":"Close your current position and open the opposite at market price. If your account balance isn't enough, the reverse order will fail. Orders exceeding the maximum quantity will be automatically split into multiple smaller orders.","trading.orderBook":"Order book","trading.lastTrades":"Last trades","trading.orderBook.column.value":"Value","trading.orderBook.settings":"Settings","trading.orderBook.showBuySellRatio":"Show buy/sell ratio","trading.tabs.chart":"Chart","trading.tabs.trades":"Trades","trading.tabs.data":"Data","trading.column.24High":"24h high","trading.column.24Low":"24h low","trading.orderBook.sum":"Sum","trading.orderBook.markPrice.tooltip":"Obtained from a third-party oracle, the mark price is calculated as the median of three prices: the last price, the fair price based on the funding rate basis, and the fair price based on the order books.","trading.orderBook.spreadRatio.tooltip":"Spread Ratio of the ask1 and bid1.","trading.orderBook.middlePrice.tooltip":"A stabilized reference price calculated as the median of the best bid, best ask, and 24-hour closing price.","trading.faucet.getTestUSDC":"Get test USDC","trading.faucet.getTestUSDC.success":"{{quantity}} USDC will be added to your balance. Please note this may take up to 3 minutes. Please check back later.","trading.asset.startTrading":"Start trading","trading.asset.startTrading.description":"You can deposit assets from various networks","trading.asset.myAssets":"My Assets","trading.asset.freeCollateral":"Free collateral","trading.asset.freeCollateral.tooltip":"Free collateral for placing new orders.","trading.asset.freeCollateral.formula":"Free collateral = Total balance + Total unsettlement PnL - Total position initial margin","trading.asset.marginRatio":"Margin ratio","trading.asset.marginRatio.tooltip":"The margin ratio represents the proportion of collateral relative to the total position value.","trading.asset.marginRatio.formula":"Account margin ratio = (Total collateral value / Total position notional) * 100%","trading.asset.unsettledPnl":"Unsettled PnL","trading.asset.free&TotalCollateral":"Free / Total Collateral","trading.asset.availableBalance":"Available Balance","trading.asset.maintenanceMarginRatio":"Maintenance margin ratio","trading.asset.maintenanceMarginRatio.tooltip":"The minimum margin ratio required to protect your positions from being liquidated. If the Margin ratio falls below the Maintenance margin ratio, the account will be liquidated.","trading.asset.maintenanceMarginRatio.formula":"Account maintenance margin ratio = Sum(Position notional * Symbol maintenance Margin Ratio) / Total position notional * 100%","trading.asset.maintenanceMargin":"Maintenance margin","trading.asset.maintenanceMargin.tooltip":"Maintenance margin is the minimum amount of margin required to keep all your open positions alive. If your account equity falls below the maintenance margin, the account will be liquidated.","trading.asset.maintenanceMargin.formula":"Maintenance margin = Sum(Position notional * Symbol maintenance margin ratio)","trading.asset.currentLeverage":"Current leverage","trading.asset.currentLeverage.tooltip":"Current Account Leverage shows how much leverage you are currently using based on your open positions.","trading.asset.currentLeverage.formula":"Current leverage = (Total position notional / Total collateral value)","trading.riskRate":"Risk rate","trading.riskRate.tooltip":"The Risk rate is used to assess the risk level of an account. When the Risk rate reaches 100%, the account will be liquidated","trading.riskRate.formula":"Risk rate = Maintenance margin ratio / Margin ratio * 100%","trading.asset&Margin":"Asset & Margin","trading.fundingRate.predFundingRate":"Est. funding rate","trading.fundingRate.estFundingRateWithTimeframe":"Est. funding rate ({{timeframe}})","trading.fundingRate.predFundingRate.interval":"Interval","trading.fundingRate.predFundingRate.cap":"Fun
1ding cap","trading.fundingRate.predFundingRate.floor":"floor","trading.fundingRate.lastFundingRate":"Last funding rate","trading.fundingRate.estimatedFundingRate":"Estimated funding rate","trading.fundingRate.estimatedFundingFee":"Estimated funding fee","trading.fundingRate.annualized":"Annualized","trading.rwa.marketHours":"Market on","trading.rwa.outsideMarketHours":"Market off","trading.rwa.tooltip.description.open":"Trading aligns with the underlying market - higher liquidity, normal price movements.","trading.rwa.tooltip.description.close":"Trading is available, but liquidity may be lower and price movement slower.","trading.rwa.tooltip.closeIn":"Regular trading hours will close in <0>{{timeFormat}}</0>","trading.rwa.tooltip.openIn":"Regular trading hours will open in <0>{{timeFormat}}</0>","trading.rwa.tooltip.checkDetailRules":"Check detail rules","trading.rwa.countdown.title":"US markets are closing soon, volatility may be lower.","trading.symbolDelisting":"{{symbol}} has entered forced deleveraging mode (insufficient liquidity depth / insufficient IF balance). Your position on this symbol only allows closing operations.","trading.rwa.outsideMarketHours.notify":"This market is currently outside regular trading hours. You can still place a trade, but please be aware of reduced liquidity and potential risks.","trading.rwa.mWeb.outsideMarketHours.desc":"Regular trading hours are about to close - 24/7 trading continues; price may slow and liquidity may be lower.","trading.rwa.mWeb.insideMarketHours.desc":"Regular trading hours are about to open - get ready."},tN={"tradingLeaderboard.leaderboard":"Leaderboard","tradingLeaderboard.campaigns":"Campaigns","tradingLeaderboard.ongoing":"Ongoing","tradingLeaderboard.past":"Past","tradingLeaderboard.future":"Future","tradingLeaderboard.learnMore":"Learn more","tradingLeaderboard.tradeNow":"Trade now","tradingLeaderboard.joinNow":"Join now","tradingLeaderboard.tradingVolume":"Trading volume","tradingLeaderboard.rank":"Rank","tradingLeaderboard.estimatedRewards":"Estimated rewards","tradingLeaderboard.lastUpdate":"Last update","tradingLeaderboard.estimatedTicketsEarned":"Estimated tickets earned","tradingLeaderboard.ticketPrizePool":"Ticket prize pool","tradingLeaderboard.viewRules":"View rules","tradingLeaderboard.prizePool":"Prize pool","tradingLeaderboard.participants":"Participants","tradingLeaderboard.battleStartsIn":"Battle starts in","tradingLeaderboard.battleEndsIn":"Battle ends in","tradingLeaderboard.battleStarts":"Battle starts","tradingLeaderboard.battleEnds":"Battle ends","tradingLeaderboard.rewardDistribution":"Reward distribution","tradingLeaderboard.batteleHasEnded":"Battle has ended","tradingLeaderboard.tradeForMoreTickets":"Trade <0/> more to get next tickets","tradingLeaderboard.earnTickets":"Earn {{ticket}} ticket every {{amount}} trading volume.","tradingLeaderboard.arena":"Arena","tradingLeaderboard.generalLeaderboard":"General leaderboard","tradingLeaderboard.maxTicketsAchieved":"Max tickets achieved","tradingLeaderboard.termsAndConditions":"Terms and Conditions","tradingLeaderboard.rules":"Rules","tradingLeaderboard.pnl.tooltip":"Real-time PnL including both realized and unrealized gains. Existing positions and collateral price changes may affect PnL even with zero volume. Updated every 60 mins.","tradingLeaderboard.realizedPnl.tooltip":"Displays realized PnL from closed positions in the selected period.","tradingLeaderboard.tradingVolume.tooltip":"Total trading volume generated during the campaign period. Updated every 30 seconds."},tS={"tradingRewards.rewards":"Rewards","tradingRewards.subtitle":"Trade with {{brokerName}} to earn esORDER.","tradingRewards.subtitle.mm":"Trade to earn $ORDER","tradingRewards.learnMore":"Learn more here","tradingRewards.myEstRewards":"My est. rewards","tradingRewards.epoch":"Epoch","tradingRewards.epochRewards":"Epoch rewards","tradingRewards.otherOrderlyDex":"Other Orderly DEX","tradingRewards.claim":"Claim","tradingRewards.availableClaim":"Available to claim","tradingRewards.stake":"Stake","tradingRewards.booster":"Booster","tradingRewards.stakeBooster":"Stake booster","tradingRewards.avgStakedAmount":"Avg. staked amount","tradingRewards.rewardHistory":"Reward history","tradingRewards.rewardsEarned":"Rewards earned","tradingRewards.rewardHistory.column.start&EndDate":"Start /
1End date","tradingRewards.rewardHistory.column.startDate":"Start","tradingRewards.rewardHistory.column.endDate":"End date","tradingRewards.epochPauseCountdown.title":"Trading rewards will resume in","tradingRewards.eopchStatus.pause":"Trading rewards are on pause as we build a better program. Past rewards remain claimable.","tradingRewards.eopchStatus.ended":"Trading rewards has ended. You may continue to claim your past rewards.","tradingRewards.eopchStatus.linkDescription":"Stay tuned for more updates."},t_={"tradingView.timeInterval.1m":"1m","tradingView.timeInterval.3m":"3m","tradingView.timeInterval.5m":"5m","tradingView.timeInterval.15m":"15m","tradingView.timeInterval.30m":"30m","tradingView.timeInterval.1h":"1h","tradingView.timeInterval.2h":"2h","tradingView.timeInterval.4h":"4h","tradingView.timeInterval.6h":"6h","tradingView.timeInterval.12h":"12h","tradingView.timeInterval.1d":"1D","tradingView.timeInterval.3d":"3D","tradingView.timeInterval.1w":"1W","tradingView.timeInterval.1M":"1M","tradingView.timeInterval.more":"More","tradingView.lineType.bars":"Bars","tradingView.lineType.candles":"Candles","tradingView.lineType.hollowCandles":"Hollow candles","tradingView.lineType.line":"Line","tradingView.lineType.area":"Area","tradingView.lineType.baseline":"Baseline","tradingView.displayControl.buySell":"Buy/Sell","tradingView.displayControl.limitOrders":"Limit orders","tradingView.displayControl.stopOrders":"Stop orders","tradingView.displayControl.liquidationPrice":"Liquidation Price","tradingView.noScriptSrc":"Due to TradingView's policy, you will need to apply for your own license.","tradingView.noScriptSrc.1":"1. Please apply for your TradingView Advanced Chart license <0>here</0>","tradingView.noScriptSrc.2":"2. Follow the instructions on <0>orderly.network</0>
1 to set up."},tx={"transfer.reverseConvert.available":"You have <0>{{amount}}</0> USDC available.","transfer.reverseConvert.action":"Convert to USDG","transfer.reverseConvert.estimate":"Estimated amount. Final received amount depends on execution.","transfer.reverseConvert.unavailable":"USDC to USDG conversion is unavailable on this network or token data is not ready.","transfer.network":"Network","transfer.lowestFee":"lowest fee","transfer.web3Wallet.your":"Your Web3 Wallet","transfer.web3Wallet.my":"My Web3 wallet","transfer.brokerAccount":"Your {{brokerName}} account","transfer.quantity.invalid":"Please input a valid number","transfer.insufficientBalance":"Insufficient balance","transfer.insufficientAllowance":"Insufficient allowance","transfer.rejectTransaction":"Rejected transaction","transfer.deposit.approve":"Approve","transfer.deposit.approve.success":"Approve success","transfer.deposit.approve.failed":"Approve failed","transfer.deposit.requested":"Deposit requested","transfer.deposit.completed":"Deposit completed","transfer.deposit.failed":"Deposit failed","transfer.exclusiveDeposit.warning":"Only send {{token}} on {{network}} to this address. Sending other tokens, using other chains, or amounts below the minimum deposit will result in permanent loss of funds.","transfer.exclusiveDeposit.selectFirst":"Select your network and token first","transfer.exclusiveDeposit.selectNetwork":"Select network","transfer.exclusiveDeposit.selectToken":"Select token","transfer.exclusiveDeposit.minDeposit":"Min. deposit","transfer.exclusiveDeposit.estimatedTime":"Estimated time","transfer.exclusiveDeposit.estimatedTime.default":"~ 5 min","transfer.exclusiveDeposit.depositPending":"Deposit pending: {{amount}} {{symbol}}","transfer.deposit.feeUnavailable":"Fee data is currently unavailable. Please try again later.","transfer.deposit.notEnoughGas":"Not enough gas. Add some {{token}} to your wallet to continue.","transfer.deposit.exceedCap":"Amount exceeds user deposit cap","transfer.deposit.closeToMaxLimit":"Deposit amount too close to maximum limit. To ensure your transaction succeeds, please reduce the amount","transfer.deposit.tab.connectedWallet":"From connected wallet","transfer.deposit.tab.exchangeOrOtherWallet":"From exchange / other wallet","transfer.deposit.estGasFee":"Est. gas fee","transfer.deposit.estGasFee.tooltip":"Estimated gas fee includes: transaction execution cost on this chain, and destination chain operation fee for Orderly deposit. Please prepare extra to ensure sufficient coverage.","transfer.deposit.destinationGasFee":"Destination gas fee","transfer.deposit.destinationGasFee.description":"Additional gas tokens are required to cover operations on the destination chain. The amount shown is an estimate - please prepare extra to ensure sufficient coverage.","transfer.withdraw.unsupported.chain":"Withdrawals are not supported on this chain. Please switch to any of the bridgeless networks.","transfer.withdraw.unsupported.networkName":"Withdrawals are not supported on {{networkName}}. Please switch to any of the bridgeless networks.","transfer.withdraw.unsupported.token":"{{token}} withdrawals are unavailable on this network","transfer.withdraw.crossChain.confirmWithdraw":"Confirm to withdraw","transfer.withdraw.crossChain.recipientAddress":"Recipient address","transfer.withdraw.crossChain.recipientNetwork":"Recipient network","transfer.withdraw.crossChain.withdrawAmount":"Withdraw amount","transfer.withdraw.crossChain.process":"Your cross-chain withdrawal is being processed...","transfer.withdraw.crossChain.warning":"Withdrawals that require cross-chain rebalancing can't be cancelled or followed up with more withdrawals until they've been processed.","transfer.withdraw.crossChain.vaultWarning":"Withdrawal exceeds the balance of the {{networkName}} vault ( {{chainVaultBalance}} USDC ). Cross-chain rebalancing fee will be charged for withdrawal to {{networkName}}.","transfer.withdraw.vaultWarning":"The balance of {{tokenName}} on the {{chainName}} is {{balance}}, which is insufficient to meet your withdrawal request. Please try again later or switch to another chain for withdrawal.","transfer.withdraw.minAmount.error":"You can't withdraw less than {{minAmount}} {{currency}}. Please adjust your amount.","transfer.withdraw.LTV.error":"This withdrawal may push your LTV over {{threshold}}%, immediately triggering an auto-convert.","transfer.withdraw.requested":"Withdraw requested","transfer.withdraw.completed":"Withdraw completed","transfer.withdraw.failed":"Withdraw failed","transfer.withdraw.otherAccount":"Other {{brokerName}} account","transfer.withdraw.accountId.tips":"Please enter an Account ID instead of a wallet address.","transfer.withdraw.accountId.invalid":"No account found","transfer.withdraw.available.tooltip":"Available to withdraw equals your free collateral. If you have unsettled PnL, please settle first in the withdraw modal to increase available amount. Current maximum withdrawal per request is {{amount}} USDC. To withdraw more, please submit multiple requests.","transfer.withdraw.accountIdOrAddress.placeholder":"Account ID or address","transfer.withdraw.accountIdOrAddress.hint":"Enter an account ID or address to find the account","transfer.withdraw.addExternalWallet":"Add external wallet","transfer.withdraw.addExternalWallet.addressDescription":"Fill in and confirm the address to receive the funds on the destination chain.","transfer.withdraw.addExternalWallet.addressWarning":"Please do not enter any address other than the {{networkLabel}} address.","transfer.withdraw.addExternalWallet.label":"Enter external wallet","transfer.withdraw.addExternalWallet.networkMismatch":"This address doesn't match the selected network. Please enter a valid {{networkLabel}} address.","transfer.internalTransfer.from":"From","transfer.internalTransfer.to":"To","transfer.internalTransfer.currentAssetValue":"Current asset value","transfer.internalTransfer.success":"Success! Funds will be available in 15 seconds.","transfer.internalTransfer.unsettled.tooltip":"Unsettled balance can not be transferred. In order to transfer, please settle your balance first.","transfer.internalTransfer.settlePnl.description":"Are you sure you want to settle your PnL? <br/> Settlement will take up to 1 minute before you can transfer your available balance.","transfer.internalTransfer.error.default":"Unable to complete transfer. Please try again later.","transfer.internalTransfer.error.transferInProgress":"An internal transfer is currently in progress.","transfer.internalTransfer.error.withdrawalInProgress":"There is a withdrawal in progress.","transfer.internalTransfer.error.transferToSelf":"Transfers to your own account are not allowed","transfer.internalTransfer.error.accountIdNotExist":"Receiver account ID does not exist.","transfer.internalTransfer.error.transferToSubAccount":"Transfers to sub-accounts under different main accounts are not permitted.","transfer.swapDeposit.crossSwap.notice":"Cross-chain transaction fees will be charged. To avoid these, use our supported <0>Bridgeless networks</0>","transfer.swapDeposit.swap.notice":"Please note that swap fees will be charged.","transfer.swapDeposit.bridging":"Bridging","transfer.swapDeposit.bridge":"Bridge","transfer.swapDeposit.bridge.description":"Bridge to Arbirtum via Stargate","transfer.swapDeposit.depositing":"Depositing","transfer.swapDeposit.deposit":"Deposit","transfer.swapDeposit.deposit.description":"Deposit to {{brokerName}}","transfer.swapDeposit.viewStatus":"View status","transfer.swapDeposit.depositFailed":"Deposit failed, please try again later.","transfer.slippage":"Slippage","transfer.slippage.slippageTolerance":"Slippage tolerance","transfer.slippage.slippageTolerance.description":"Your transaction will revert if the price changes unfavorably by more than this percentage.","transfer.slippage.error.high":"High slippage may result in significant loss","transfer.swapDeposit.swapFee":"Swap fee","transfer.swapDeposit.swapFee.de
1scription":"WOOFi charges a 0.025% on each swap.","transfer.swapDeposit.bridgeFee":"Bridge fee","transfer.swapDeposit.bridgeFee.description":"Stargate charges a fee to bridge your assets.","transfer.swapDeposit.minimumReceived":"Minimum received","transfer.swapDeposit.confirmSwap":"Confirm to swap","transfer.swapDeposit.averageSwapTime":"Average swap time <0>~ {{time}} mins</0>","transfer.swapDeposit.swapDialog.title":"Review swap details","transfer.swapDeposit.viewFAQs":"Need help? <0>View FAQs</0>","transfer.swapDeposit.notEnoughLiquidity":"Not enough liquidity. Please try again later or use another chain to deposit.","transfer.convert.completed":"Conversion complete","transfer.convert.succeeded":"Succeeded","transfer.convert.request":"Conversion request submitted","transfer.convert.request.description":"Your request to convert {{fromAmount}} {{fromToken}} to approximately {{toAmount}} {{toToken}} has been submitted. You can track its status below.","transfer.convert.pending":"Conversion in progress","transfer.convert.pending.description":"Converting {{fromAmount}} {{fromToken}} to approximately {{toAmount}} {{toToken}}.","transfer.convert.pending.descriptionWithoutAmount":"Converting {{fromAmount}} {{fromToken}} to {{toToken}}.","transfer.convert.statusChecking":"Checking status...","transfer.convert.delayed":"Your conversion ({{fromToken}} â {{toToken}}) is still in progress.","transfer.convert.delayed.description":"Network activity may cause delays. If the market moves beyond your slippage tolerance, the conversion may fail.","transfer.convert.completed.description":"You converted {{fromAmount}} {{fromToken}} to {{receivedAmount}} {{toToken}}.","transfer.convert.completed.descriptionWithoutAmount":"You converted {{fromAmount}} {{fromToken}} to {{toToken}}.","transfer.convert.failed.description":"Your conversion could not be completed. Please try again.","transfer.convert.statusCheckFailed":"Unable to check your latest convert status.","transfer.convert.slippage.tooltip":"Slippage tolerance is the maximum price change you are willing to accept while your conversion is processed.","transfer.convert.slippage.helper":"Minimum 0.2%. Recommended 0.5%.","transfer.convert.slippage.minimumError":"Slippage tolerance must be at least 0.2%.","transfer.convert.slippage.lowWarning":"Lower slippage tolerance increases the risk of delays or failure. For larger amounts, split your conversion into smaller transactions.","transfer.convert.slippage.highWarning":"A high slippage tolerance may result in a less favorable conversion rate. Consider using the recommended 0.5%.","transfer.convert.failed":"Conversion failed","transfer.depositCap":"Deposit cap","transfer.depositCap.tooltip":"Max deposit amount for ","transfer.deposit.convertRate":"Convert rate","transfer.convert.convertAssets":"Convert assets to USDC","transfer.deposit.collateralContribution":"Collateral contribution","transfer.withdraw.InsufficientVaultBalance":"Insufficient vault balance","transfer.LTV":"LTV","transfer.LTV.description":"LTV (Loan-to-Value) is the ratio between your negative USDC and the current value of your collateral. If your LTV exceeds {{threshold}}, your collateral will be automatically converted to USDC.","transfer.LTV.tooltip":"If your LTV exceeds {{threshold}}% or your USDC balance plus Unsettled PnL falls below {{usdcThreshold}}, your collateral will be automatically converted with a haircut. To avoid this, you can manually convert assets to USDC.","transfer.LTV.currentLTV":"Current LTV","transfer.LTV.isolatedModeUsdcOnly":"Isolated margin is denominated in USDC. Eligible collateral assets can back the required USDC balance.","transfer.LTV.availableCrossMarginHint":"Available balance = USDC balance + Unsettled PnL. All collateral assets contribute to your available margin.","transfer.LTV.isolatedMarginOrderHint":"Isolated margin is denominated in USDC. Eligible collateral assets can back the required USDC balance. A negative USDC balance contributes to LTV and may trigger automatic conversion.","transfer.convert":"Convert","transfer.deposit.globalMaxQty.error":"Your deposit couldn't be processed because the global deposit cap for {{token}} on {{chain}} has been reached. This is typically resolved after rebalancing, which takes around 1 hour. Please try again later, or use a smaller amount or a different chain. <0>Learn more</0>","transfer.deposit.gasFee.error":"Please ensure you have enough {{token}} for gas fees.","transfer.deposit.status.pending.one":"You have a pending transaction","transfer.deposit.status.pending.multiple":"You have pending transactions","transfer.deposit.status.completed.one":"You have a successful transaction","transfer.deposit.status.completed.multiple":"You have successful transactions","transfer.deposit.yieldReminder.earnAPY":"<0>Earn {{apy}}% APY</0> while you trade.","transfer.deposit.yieldReminder.earnRewards":"Earn rewards while you trade.","transfer.deposit.yieldReminder.distribution":"The yield will be distributed to your account weekly.","transfer.deposit.yieldReminder.disclaimer":"APY is estimated; actual returns may vary."},tI={"ui.empty.description":"No results found.","ui.messageCenter.tooltip":"Check recent announcements","ui.pagination.morePages":"More pages","ui.pagination.rowsPerPage":"Rows per page","ui.picker.selectDate":"Select Date","ui.dialog.srOnly.title":"Dialog","ui.sheet.srOnly.title":"Sheet"},tO={"vaults.availableOn":"Available on","vaults.header.title":"Earn passive yield with vault strategies","vaults.header.description":"Put your idle or extra assets to work effortlessly. Deposit into curated vault strategies directly from {{brokerName}}
1 - using USDC from any supported blockchain or your {{brokerName}} account, with no gas fees.","vaults.introduction.tvl":"Vault TVL","vaults.introduction.depositors":"Depositors","vaults.allVaults":"All vaults","vaults.list.poolName":"Pool Name","vaults.list.myDeposits":"My deposits","vaults.list.allTimePnl":"All-time pnl","vaults.list.operate":"Operate","vaults.card.orderly.title":"Orderly OmniVault","vaults.card.orderly.description":"Earn passive yields effortlessly, no trading expertise required. OmniVault deploys market-making strategies, taking on liquidations, and accrue platform fees.","vaults.card.tvl":"TVL","vaults.card.apy":"30D APY","vaults.card.allTimeReturn":"All-time return","vaults.card.allTimeReturnTooltip":"Annualized returns using all historical data since vault inception. Available after the vault is 7 days old.","vaults.card.myDeposits":"My deposits","vaults.card.myEarnings":"My earnings","vaults.card.accountBalance":"Account balance","vaults.card.more":"More","vaults.card.less":"Less","vaults.card.launchingSoon":"lau
1nching Soon","vaults.card.viewMore":"View more","vaults.card.status.active":"Active","vaults.card.status.closing":"Closing","vaults.card.status.closed":"Closed","vaults.deposit.estShares":"Est. shares","vaults.deposit.shares":"Shares","vaults.deposit.lockupDuration":"Lock up duration","vaults.deposit.latestDeposit":"Latest deposit","vaults.withdraw.estPricePerShare":"Est. price per share","vaults.withdraw.estReceivingAmount":"Est. receiving amount","vaults.withdraw.latestWithdraw":"Latest withdrawal request","vaults.withdraw.dialog.title":"Confirm withdrawal details","vaults.withdraw.dialog.withdrawalAmount":"Withdrawal amount","vaults.withdraw.dialog.estimatedReceiving":"Estimated receiving","vaults.withdraw.dialog.note":"Please note that the estimated USDC is based on the current price per share, and the final amount you receive will be determined at the end of the vault period.","vaults.withdraw.dialog.initiateWithdrawal":"Initiate withdrawal","vaults.withdraw.process.withdrawProcess":"Withdraw process","vaults.withdraw.process.vaultProcess":"Vault process","vaults.withdraw.process.transferred":"Transferred","vaults.withdraw.process.initiate":"Initiate","vaults.withdraw.process.upTo":"Up to 6 hours","vaults.operation.error.switchAccount":"Please switch to your main account to continue.","vaults.operation.error.minDeposit":"Deposit amount is less than the minimum {{amount}} USDC.","vaults.operation.error.minWithdrawal":"Withdraw amount is less than the minimum {{amount}} USDC."},tR={"assetHistory.status.pending":"Pending","assetHistory.status.confirm":"Confirm","assetHistory.status.processing":"Processing","assetHistory.status.completed":"Completed","assetHistory.status.failed":"Failed","assetHistory.status.pendingRebalance":"Pending rebalance","linkDevice.createQRCode.loading.description":"Approve QR code with wallet...","linkDevice.createQRCode.linkMobileDevice":"Link Mobile Device","linkDevice.createQRCode.linkMobileDevice.description":"Open {{hostname}} on your mobile device and scan the QR code to link this wallet. For security, the QR code will expire in 60 seconds. <br/> The QR code allows mobile trading but does not enable withdrawals. Ensure you are not sharing your screen or any screenshots of the QR code.","linkDevice.createQRCode.success.description":"Scan the QR code or paste the URL into another browser/<br/>device to continue.","linkDevice.createQRCode.success.copyUrl":"Copy URL","linkDevice.scanQRCode":"Scan QR Code","linkDevice.scanQRCode.description":"Click the <0/> icon in the top right corner on desktop to generate a QR code to scan.","linkDevice.scanQRCode.tooltip":"Link to Desktop via QR Code","linkDevice.scanQRCode.connected.description":"You are connected via another device. This mode is for trading only. To switch networks, deposit or withdraw assets, please disconnect and reconnect your wallet on this device.","linkDevice.tooltip":"Link mobile device","settle.settlePnl":"Settle PnL","settle.settlePnl.warning":"Please settle your balance","settle.settlePnl.description":"Are you sure you want to settle your PnL? <br/> Settlement will take up to 1 minute before you can withdraw your available balance.","settle.unsettled":"Unsettled","settle.unsettled.tooltip":"Unsettled balance can not be withdrawn. In order to withdraw, please settle your balance first.","settle.settlement.requested":"Settlement requested","settle.settlement.completed":"Settlement completed","settle.settlement.failed":"Settlement failed","settle.settlement.error":"Settlement is only allowed once every 10 minutes. Please try again later.","languageSwitcher.language":"Language","languageSwitcher.tooltip":"Switch language","languageSwitcher.tips":"AI-generated translations may not be fully accurate.","announcement.type.listing":"Listing","announcement.type.maintenance":"Maintenance","announcement.type.delisting":"Delisting","maintenance.dialog.title":"System upgrade in progress","maintenance.dialog.description":"Sorry, {{brokerName}} is temporarily unavailable due to a scheduled upgrade. The service is expected to be back by {{endDate}}.","maintenance.tips.description":"{{brokerName}} will be temporarily unavailable for a scheduled upgrade from {{startDate}} to {{endDate}}.","restrictedInfo.description.default":" You are accessing {{brokerName}} from an IP address ({{ip}}) associated with a restricted country.","restrictedInfo.accessRestricted":"Access Restricted","restrictedInfo.accessRestricted.description":"Due to laws and regulations, we currently do not operate in the United States. By continuing to use our platform, you represent and warrant at all times that you are not a resident of the United States throughout the peri
1od of such use.","restrictedInfo.accessRestricted.agree":"I understand and agree","subAccount.modal.title":"Switch account","subAccount.modal.switch.success.description":"Account switched","subAccount.modal.mainAccount.title":"Main account","subAccount.modal.subAccounts.title":"Sub-accounts","subAccount.modal.current":"Current","subAccount.modal.noAccount.description":"Create a sub-account now to explore different trading strategies.","subAccount.modal.create.max.description":"You have reached the maximum limit of 10 sub-accounts.","subAccount.modal.create.title":"Create sub-account","subAccount.modal.create.description":"You have {{subAccountCount}} sub-accounts. {{remainingCount}} more can be created.","subAccount.modal.create.nickname.role":"1-20 characters. Only letters, numbers, and @ , _ - (space) allowed.","subAccount.modal.create.success.description":"Sub-account created successfully.","subAccount.modal.create.failed.description":"Failed to create sub-account.","subAccount.modal.edit.title":"Edit nickname","subAccount.modal.nickName.label":"Sub-account nickname","subAccount.modal.edit.success.description":"Nickname updated successfully.","subAccount.modal.edit.failed.description":"Failed to update nickname.","funding.fundingFee":"Funding fee","funding.fundingRate":"Funding rate","funding.annualRate":"Annual rate","funding.paymentType":"Payment type","funding.paymentType.paid":"Paid","funding.paymentType.received":"Received","leftNav.feedback":"Share your feedback","errorBoundary.title":"Page Crashed","errorBoundary.description":"The page is currently unavailable. Please refresh and try again.","errorBoundary.refresh":"Refresh","dmm.maker":"Maker","dmm.taker":"Taker"},tP={"common.cancel":"Cancel","common.close":"Close","common.confirm":"Confirm","common.ok":"OK","common.yes":"Yes","common.no":"No","common.all":"All","common.buy":"Buy","common.sell":"Sell","common.long":"Long","common.short":"Short","common.edit":"Edit","common.save":"Save","common.add":"Add","common.delete":"Delete","common.action":"Action","common.code":"Code","common.reset":"Reset","common.tips":"Tips","common.max":"Max","common.download":"Download","common.copy":"Copy","common.copy.failed":"Copy failed","common.copy.copied":"Copied","common.share":"Share","common.export":"Export","common.select.1d":"1D","common.select.3d":"3D","common.select.7d":"7D","common.select.14d":"14D","common.select.30d":"30D","common.select.90d":"90D","common.price":"Price","common.quantity":"Quantity","common.qty":"Qty","common.status":"Status","common.status.all":"All status","common.date":"Date","common.time":"Time","common.volume":"Volume","common.total":"Total","common.symbol":"Symbol","common.token":"Token","common.amount":"Amount","common.side":"Side","common.side.all":"All sides","common.type":"Type","common.notional":"Notional","common.fee":"Fee","common.fees":"Fees","common.orderPrice":"Order price","common.avgPrice":"Avg. price","common.avgOpen":"Avg. open","common.avgClose":"Avg. close","common.trigger":"Trigger","common.lastPrice":"Last price","common.indexPrice":"Index price","common.markPrice":"Mark price","common.limitPrice":"Limit price","common.marketPrice":"Market","common.market":"Market","common.limit":"Limit","common.triggerPrice":"Trigger price","common.unrealizedPnl":"Unrealized PnL","common.realizedPnl":"Realized PnL","common.pnl":"PnL","common.totalValue":"Total value","common.address":"Address","common.address.search.placeholder":"Search address","common.available":"Available","common.overview":"Overview","common.funding":"Funding","common.assets":"Assets","common.allAssets":"All assets","common.countdown":"Countdown","common.current":"Current","common.account":"Account","common.deposit":"Deposit","common.withdraw":"Withdraw","common.deposits":"Deposits","common.withdrawals":"Withdrawals","common.transfer":"Transfer","common.inflow":"Inflow","common.outflow":"Outflow","common.settle":"Settle","common.markets":"Markets","common.portfolio":"Portfolio","common.positions":"Positions","common.position":"Position","common.orders":"Orders","common.tpsl":"TP/SL","common.leverage":"Leverage","common.affiliate":"Affiliate","common.tradingRewards":"Trading rewards","common.trading":"Trade","common.spot":"Spot","common.earn":"Earn","common.stake":"Stake","common.perps":"Perps","common.allAccount":"All accounts","common.mainAccount":"Main account","common.subAccount":"Sub account","common.settings":"Settings","common.accountId":"Account ID","common.web3Wallet":"Web3 wallet","common.wallet":"Wallet","common.myWallet":"My wallet","common.externalWallet":"External wallet","common.invalid":"Invalid","common.network":"Network","common.txId":"TxID","common.result":"Result","common.orderQty":"Order Qty.","common.positionQty":"Position Qty.","common.estTotal":"Est. Total","common.fullTPSL":"Full TP/SL","common.partialTPSL":"Partial TP/SL","common.vaults":"Vaults","common.optional":"Optional","common.learnMore":"Learn more","common.liquidationPrice.tooltip":"Estimated price at which your position will be liquidated. Prices are estimated and depend on multiple factors across all positions.","common.liquidationPrice.tooltip.learnMore":"Learn more about liquidation","common.switch":"Switch","common.notSupported":"Not supported","common.details":"Details","common.somethingWentWrong":"Something went wrong. Please try again later.","common.rwa":"RWA","common.new":"New","common.dayShort":"D","common.hourShort":"H","common.minuteShort":"M","common.secondShort":"S","common.offlineDescription":"Currently disconnected, please refresh the page","common.refresh":"Refresh","markets.favorites":"Favorites","markets.recent":"Recent","markets.newListings":"New listings","markets.community":"Community","markets.crypto":"Crypto","markets.tradFi":"TradFi","markets.preTge":"Pre-launch","markets.allMarkets":"All markets","markets.openInterest":"Open interest","markets.openInterest.tooltip":"Total size of positions per side.","markets.topGainers":"Top gainers","markets.topLosers":"Top losers","markets.search.placeholder":"Search market","markets.showLowVolume":"Show low vol.","markets.showLowVolume.tooltip":"Include markets with less than $1,000
1in 24h trading volume.","markets.showLowVolume.empty":"Matching markets are hidden by the 24h volume filter.","markets.showLowVolume.action":"Show low-volume markets","markets.dataList.favorites.empty":"Click on the <0/> icon next to a market to add it to your list.","markets.dataList.column.8hFunding":"8h funding","markets.dataList.column.moveTop":"Move to top","markets.favorites.dropdown.title":"Select lists for","markets.favorites.dropdown.addPlaceholder":"Add a new watchlist","markets.favorites.tabs.maxList":"Maximum 10 groups in the favorite list","markets.favorites.tabs.maxName":"List name cannot exceed 15 characters","markets.favorites.tabs.delete.dialog.title":"Delete list","markets.favorites.tabs.delete.dialog.description":"Are you sure you want to delete {{name}}?","markets.favorites.addFavorites":"Add favorites","markets.column.market":"Market","markets.column.24hChange":"24h%","markets.column.24hVolume":"24h volume","markets.column.market&Volume":"Market / Volume","markets.column.price&Change":"Price / Change","markets.column.last":"Last","markets.column.24hPercentage":"24h %","markets.column.24hVol":"24h Vol","markets.column.OI":"OI","markets.column.last&24hPercentage":"Last/24h %","markets.column.mark":"Mark","markets.column.index":"Index","markets.column.mark&Index":"Mark / Index","markets.funding.comparison":"Comparison","markets.funding.column.estFunding":"Est. funding","markets.funding.column.lastFunding":"Last funding","markets.funding.column.1dAvg":"1D avg.","markets.funding.column.3dAvg":"3D avg.","markets.funding.column.7dAvg":"7D avg.","markets.funding.column.14dAvg":"14D avg.","markets.funding.column.30dAvg":"30D avg.","markets.funding.column.90dAvg":"90D avg.","markets.funding.column.positiveRate":"Positive rate","markets.symbolInfoBar.lastPrice.tooltip":"The price of the most recent executed trade on this symbol.","markets.symbolInfoBar.Mark":"Mark","markets.symbolInfoBar.Mark.tooltip":"Price for the computation of unrealized PnL and liquidation.","markets.symbolInfoBar.Index":"Index","markets.symbolInfoBar.Index.tooltip":"Average of the last prices across other exchanges.","markets.symbolInfoBar.24hVolume":"24h volume","markets.symbolInfoBar.24hVolume.tooltip":"24 hour total trading volume on the Orderly Network.","markets.symbolInfoBar.predFundingRate":"Est. funding rate","markets.symbolInfoBar.predFundingRate.tooltip":"Funding rates are payments between traders who are long and short. When positive, long positions pay short positions funding. When negative, short positions pay long positions.","markets.symbolInfoBar.riskNotice.content":"{{symbolWithBroker}} is a permissionless listing supported on Isolated Margin only, deployed and operated independently by {{brokerName}}. Please be aware of elevated risks, including low liquidity, high volatility, and increased liquidation risk.","markets.symbolInfoBar.riskNotice.preLaunch.content":"{{symbolWithBroker}} is a Pre-launch permissionless listing supported on Isolated Margin only, deployed and operated independently by {{brokerName}}. The underlying token has not yet launched. Please be aware of elevated risks, including low liquidity, high volatility, and increased liquidation risk. No funding fee is charged during the pre-launch phase.",...tE,...tA,...td,...tb,...ty,...tw,...tT,...tm,...th,...tv,...tS,...t_,...tf,...tx,...tc,...tI,...tN,...tR,...tO,...tg,...tp},tM=new Set;async function tC(e){await Promise.all(Array.from(tM).map(async t=>{try{await t(e)}catch(e){}}))}var tk={[ta]:{[ts]:tP}},tL=new ti(null,{lookupLocalStorage:tl,lookupCookie:tu,caches:["localStorage","cookie"]}),tD=function(e){return Z({fallbackLng:ta,interpolation:{escapeValue:!1},...e}).use(tL)}({resources:tk}),tB=e=>{if(!e)return;let t=Object.values(to);if(t.includes(e))return e;let r=e.match(/^([a-z]{2})/i);return r&&t.includes(r[1])?r[1]:e},tV=tD.changeLanguage.bind(tD);tD.changeLanguage=async(e,t)=>{let r=tB(e);return r&&await tC(r),tV(e,t)},tD.init();var tF=tD,tU=(0,ee.createContext)({languages:[],onLanguageBeforeChanged:()=>Promise.resolve(),onLanguageChanged:()=>Promise.resolve()}),tj=()=>(0,ee.useContext)(tU),tH=e=>{tF.addResourceBundle(ta,ts,e,!0,!0)};function tG(e,t,r){t=t||Object.values(to),r=r||"en";let n=/^([a-z]{2})/i,i=e?.match(n);if(!i)return r;let o=i[1];return t.includes(e)?e:t.includes(o)?o:r}function tK(){let[e,t]=(0,ee.useState)(tG(tF.language));return(0,ee.useEffect)(()=>{let e=e=>{t(e)};return tF.on("languageChanged",e),()=>{tF.off("languageChanged",e)}},[tF]),e}function tz(e,t){let r=(0,ee.useContext)(eB);return eG(e,{i18n:r?.i18n||tF,bindI18nStore:"added",...t})}},33507:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(30585).call(n,i)},33872:(e,t,r)=>{"use strict";r.d(t,{tJ:()=>g});var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i=class{mode;data;constructor(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}getLength(){return this.data.length}write(e){for(let t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},o={L:1,M:0,Q:3,H:2},a=class e{totalCount;dataCount;constructor(e,t){this.totalCount=e,this.dataCount=t}static RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
1],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];static getRSBlocks(t,r){let n=e.getRsBlockTable(t,r);if(void 0==n)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+r);let i=n.length/3,o=[];for(let t=0;t<i;t++){let r=n[3*t+0],i=n[3*t+1],a=n[3*t+2];for(let t=0;t<r;t++)o.push(new e(i,a))}return o}static getRsBlockTable(t,r){switch(r){case o.L:return e.RS_BLOCK_TABLE[(t-1)*4+0];case o.M:return e.RS_BLOCK_TABLE[(t-1)*4+1];case o.Q:return e.RS_BLOCK_TABLE[(t-1)*4+2];case o.H:return e.RS_BLOCK_TABLE[(t-1)*4+3];default:return}}},s=class{buffer;length;constructor(){this.buffer=[],this.length=0}get(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1}put(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)}getLengthInBits(){return this.length}putBit(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},l={glog:function(e){if(e<1)throw Error("glog("+e+")");return l.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return l.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)};for(let e=0;e<8;e++)l.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)l.EXP_TABLE[e]=l.EXP_TABLE[e-4]^l.EXP_TABLE[e-5]^l.EXP_TABLE[e-6]^l.EXP_TABLE[e-8];for(let e=0;e<255;e++)l.LOG_TABLE[l.EXP_TABLE[e]]=e;var u=l,c=class e{num;constructor(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);let r=0;for(;r<e.length&&0==e[r];)r++;this.num=Array(e.length-r+t);for(let t=0;t<e.length-r;t++)this.num[t]=e[t+r]}get(e){return this.num[e]}getLength(){return this.num.length}multiply(t){let r=Array(this.getLength()+t.getLength()-1);for(let e=0;e<this.getLength();e++)for(let n=0;n<t.getLength();n++)r[e+n]^=u.gexp(u.glog(this.get(e))+u.glog(t.get(n)));return new e(r,0)}mod(t){if(this.getLength()-t.getLength()<0)return this;let r=u.glog(this.get(0))-u.glog(t.get(0)),n=Array(this.getLength());for(let e=0;e<this.getLength();e++)n[e]=this.get(e);for(let e=0;e<t.getLength();e++)n[e]^=u.gexp(u.glog(t.get(e))+r);return new e(n,0).mod(t)}},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){let t=e<<10;for(;
1f.getBCHDigit(t)-f.getBCHDigit(f.G15)>=0;)t^=f.G15<<f.getBCHDigit(t)-f.getBCHDigit(f.G15);return(e<<10|t)^f.G15_MASK},getBCHTypeNumber:function(e){let t=e<<12;for(;f.getBCHDigit(t)-f.getBCHDigit(f.G18)>=0;)t^=f.G18<<f.getBCHDigit(t)-f.getBCHDigit(f.G18);return e<<12|t},getBCHDigit:function(e){let t=0;for(;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case d.PATTERN000:return(t+r)%2==0;case d.PATTERN001:return t%2==0;case d.PATTERN010:return r%3==0;case d.PATTERN011:return(t+r)%3==0;case d.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case d.PATTERN101:return t*r%2+t*r%3==0;case d.PATTERN110:return(t*r%2+t*r%3)%2==0;case d.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){let t=new c([1],0);for(let r=0;r<e;r++)t=t.multiply(new c([1,u.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw Error("mode:"+e)}if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw Error("mode:"+e)}if(t<41)switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw Error("mode:"+e)}throw Error("type:"+t)},getLostPoint:function(e){let t=e.getModuleCount(),r=0;for(let n=0;n<t;n++)for(let i=0;i<t;i++){let o=0,a=e.isDark(n,i);for(let r=-1;r<=1;r++)if(!(n+r<0)&&!(t<=n+r))for(let s=-1;s<=1;s++)!(i+s<0)&&!(t<=i+s)&&(0!=r||0!=s)&&a==e.isDark(n+r,i+s)&&o++;o>5&&(r+=3+o-5)}for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){let t=0;e.isDark(n,i)&&t++,e.isDark(n+1,i)&&t++,e.isDark(n,i+1)&&t++,e.isDark(n+1,i+1)&&t++,(0==t||4==t)&&(r+=3)}for(let n=0;n<t;n++)for(let i=0;i<t-6;i++)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(let n=0;n<t;n++)for(let i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(r+=40);let n=0;for(let r=0;r<t;r++)for(let i=0;i<t;i++)e.isDark(i,r)&&n++;return r+10*(Math.abs(100*n/t/t-50)/5)}},h=f,p=class e{typeNumber;errorCorrectLevel;modules;moduleCount;dataCache;dataList;constructor(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}addData(e){let t=new i(e);this.dataList.push(t),this.dataCache=null}isDark(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);if(null===this.modules)throw Error("this.modules is null");return this.modules[e][t]}getModuleCount(){return this.moduleCount}make(){if(this.typeNumber<1){let e=1;for(e=1;e<40;e++){let t=a.getRSBlocks(e,this.errorCorrectLevel),r=new s,n=0;for(let e=0;e<t.length;e++)n+=t[e].dataCount;for(let t=0;t<this.dataList.length;t++){let n=this.dataList[t];r.put(n.mode,4),r.put(n.getLength(),h.getLengthInBits(n.mode,e)),n.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,r){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(let e=0;e<this.moduleCount;e++){this.modules[e]=Array(this.moduleCount);for(let t=0;t<this.moduleCount;t++)this.modules[e][t]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,r),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}setupPositionProbePattern(e,t){for(let r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r)){for(let n=-1;n<=7;n++)if(!(t+n<=-1)&&!(this.moduleCount<=t+n))if(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4){if(null===this.modules)throw Error("this.modules is null");this.modules[e+r][t+n]=!0}else{if(null===this.modules)throw Error("this.modules is null");this.modules[e+r][t+n]=!1}}}getBestMaskPattern(){let e=0,t=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);let n=h.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t}setupTimingPattern(){if(null===this.modules)throw Error("this.modules is null");for(let e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(let e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}setupPositionAdjustPattern(){if(null===this.modules)throw Error("this.modules is null");let e=h.getPatternPosition(this.typeNumber);for(let t=0;t<e.length;t++)for(let r=0;r<e.length;r++){let n=e[t],i=e[r];if(null==this.modules[n][i])for(let e=-2;e<=2;e++)for(let t=-2;t<=2;t++)-2==e||2==e||-2==t||2==t||0==e&&0==t?this.modules[n+e][i+t]=!0:this.modules[n+e][i+t]=!1}
1}setupTypeNumber(e){if(null===this.modules)throw Error("this.modules is null");let t=h.getBCHTypeNumber(this.typeNumber);for(let r=0;r<18;r++){let n=!e&&(t>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(let r=0;r<18;r++){let n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}}setupTypeInfo(e,t){if(null===this.modules)throw Error("this.modules is null");let r=this.errorCorrectLevel<<3|t,n=h.getBCHTypeInfo(r);for(let t=0;t<15;t++){let r=!e&&(n>>t&1)==1;t<6?this.modules[t][8]=r:t<8?this.modules[t+1][8]=r:this.modules[this.moduleCount-15+t][8]=r}for(let t=0;t<15;t++){let r=!e&&(n>>t&1)==1;t<8?this.modules[8][this.moduleCount-t-1]=r:t<9?this.modules[8][15-t-1+1]=r:this.modules[8][15-t-1]=r}this.modules[this.moduleCount-8][8]=!e}mapData(e,t){if(null===this.modules)throw Error("this.modules is null");let r=-1,n=this.moduleCount-1,i=7,o=0;for(let a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(let r=0;r<2;r++)if(null==this.modules[n][a-r]){let s=!1;o<e.length&&(s=(e[o]>>>i&1)==1),h.getMask(t,n,a-r)&&(s=!s),this.modules[n][a-r]=s,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}static PAD0=236;static PAD1=17;static createData(t,r,n){let i=a.getRSBlocks(t,r),o=new s;for(let e=0;e<n.length;e++){let r=n[e];o.put(r.mode,4),o.put(r.getLength(),h.getLengthInBits(r.mode,t)),r.write(o)}let l=0;for(let e=0;e<i.length;e++)l+=i[e].dataCount;if(o.getLengthInBits()>8*l)throw Error("code length overflow. ("+o.getLengthInBits()+">"+8*l+")");for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*l)&&(o.put(e.PAD0,8),!(o.getLengthInBits()>=8*l));){;o.put(e.PAD1,8)}return e.createBytes(o,i)}static createBytes(e,t){let r=0,n=0,i=0,o=Array(t.length),a=Array(t.length);for(let s=0;s<t.length;s++){let l=t[s].dataCount,u=t[s].totalCount-l;n=Math.max(n,l),i=Math.max(i,u),o[s]=Array(l);for(let t=0;t<o[s].length;t++)o[s][t]=255&e.buffer[t+r];r+=l;let d=h.getErrorCorrectPolynomial(u),f=new c(o[s],d.getLength()-1).mod(d);a[s]=Array(d.getLength()-1);for(let e=0;e<a[s].length;e++){let t=e+f.getLength()-a[s].length;a[s][e]=t>=0?f.get(t):0}}let s=0;for(let e=0;e<t.length;e++)s+=t[e].totalCount;let l=Array(s),u=0;for(let e=0;e<n;e++)for(let r=0;r<t.length;r++)e<o[r].length&&(l[u++]=o[r][e]);for(let e=0;e<i;e++)for(let r=0;r<t.length;r++)e<a[r].length&&(l[u++]=a[r][e]);return l}},g=(e,t)=>{let r=new p((t=t||{}).typeNumber||-1,t.errorCorrectLevel||o.H);return r.addData(e),r.make(),r}},33969:(e,t,r)=>{"use strict";var n=r(89889),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function u(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),u(e)?a(e,t,i):"string"==typeof e?s(e,t,i):l(e,t,i)}},34275:e=>{"use strict";e.exports=URIError},34864:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(13741);r(42073);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},34902:(e,t,r)=>{"use strict";let n;r.d(t,{Wp:()=>Q});let{p:i,n:o,Gx:a,Gy:s,a:l,d:u}={p:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,n:0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3edn,h:8n,a:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecn,d:0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3n,Gx:0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51an,Gy:0x6666666666666666666666666666666666666666666666666666666666666658n},c=8n,d=32,f=64,h=(e="")=>{throw Error(e)},p=e=>"bigint"==typeof e,g=e=>"string"==typeof e,m=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name,y=(e,t)=>!m(e)||"number"==typeof t&&t>0&&e.length!==t?h("Uint8Array expected"):e,E=e=>
1new Uint8Array(e),b=e=>Uint8Array.from(e),v=(e,t)=>e.toString(16).padStart(t,"0"),T=e=>Array.from(y(e)).map(e=>v(e,2)).join(""),w={_0:48,_9:57,A:65,F:70,a:97,f:102},A=e=>e>=w._0&&e<=w._9?e-w._0:e>=w.A&&e<=w.F?e-(w.A-10):e>=w.a&&e<=w.f?e-(w.a-10):void 0,N=e=>{let t="hex invalid";if(!g(e))return h(t);let r=e.length,n=r/2;if(r%2)return h(t);let i=E(n);for(let r=0,o=0;r<n;r++,o+=2){let n=A(e.charCodeAt(o)),a=A(e.charCodeAt(o+1));if(void 0===n||void 0===a)return h(t);i[r]=16*n+a}return i},S=(e,t)=>y(g(e)?N(e):b(y(e)),t),_=()=>globalThis?.crypto,x=()=>_()?.subtle??h("crypto.subtle must be defined"),I=(...e)=>{let t=E(e.reduce((e,t)=>e+y(t).length,0)),r=0;return e.forEach(e=>{t.set(e,r),r+=e.length}),t},O=(e=d)=>_().getRandomValues(E(e)),R=BigInt,P=(e,t,r,n="bad number: out of range")=>p(e)&&t<=e&&e<r?e:h(n),M=(e,t=i)=>{let r=e%t;return r>=0n?r:t+r},C=e=>M(e,o),k=(e,t)=>{(0n===e||t<=0n)&&h("no inverse n="+e+" mod="+t);let r=M(e,t),n=t,i=0n,o=1n,a=1n,s=0n;for(;0n!==r;){let e=n/r,t=n%r,l=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=l,s=u}return 1n===n?M(i,t):h("no inverse")},L=e=>{let t=J[e];return"function"!=typeof t&&h("hashes."+e+" not set"),t},D=e=>e instanceof V?e:h("Point expected"),B=2n**256n;class V{static BASE;static ZERO;ex;ey;ez;et;constructor(e,t,r,n){let i=B;this.ex=P(e,0n,i),this.ey=P(t,0n,i),this.ez=P(r,1n,i),this.et=P(n,0n,i),Object.freeze(this)}static fromAffine(e){return new V(e.x,e.y,1n,M(e.x*e.y))}static fromBytes(e,t=!1){let r=u,n=b(y(e,d)),o=e[31];n[31]=-129&o;let a=H(n);P(a,0n,t?B:i);let s=M(a*a),{isValid:l,value:c}=W(M(s-1n),M(r*s+1n));l||h("bad point: y not sqrt");let f=(1n&c)===1n,p=(128&o)!=0;return!t&&0n===c&&p&&h("bad point: x==0, isLastByteOdd"),p!==f&&(c=M(-c)),new V(c,a,1n,M(c*a))}assertValidity(){let e=l,t=u,r=this;if(r.is0())throw Error("bad point: ZERO");let{ex:n,ey:i,ez:o,et:a}=r,s=M(n*n),c=M(i*i),d=M(o*o),f=M(d*d),h=M(s*e);if(M(d*M(h+c))!==M(f+M(t*M(s*c))))throw Error("bad point: equation left != right (1)");if(M(n*i)!==M(o*a))throw Error("bad point: equation left != right (2)");return this}equals(e){let{ex:t,ey:r,ez:n}=this,{ex:i,ey:o,ez:a}=D(e),s=M(t*a),l=M(i*n),u=M(r*a),c=M(o*n);return s===l&&u===c}is0(){return this.equals(U)}negate(){return new V(M(-this.ex),this.ey,this.ez,M(-this.et))}double(){let{ex:e,ey:t,ez:r}=this,n=l,i=M(e*e),o=M(t*t),a=M(2n*M(r*r)),s=M(n*i),u=e+t,c=M(M(u*u)-i-o),d=s+o,f=d-a,h=s-o,p=M(c*f),g=M(d*h),m=M(c*h);return new V(p,g,M(f*d),m)}add(e){let{ex:t,ey:r,ez:n,et:i}=this,{ex:o,ey:a,ez:s,et:c}=D(e),d=l,f=u,h=M(t*o),p=M(r*a),g=M(i*f*c),m=M(n*s),y=M((t+r)*(o+a)-h-p),E=M(m-g),b=M(m+g),v=M(p-d*h),T=M(y*E),w=M(b*v),A=M(y*v);return new V(T,w,M(E*b),A)}multiply(e,t=!0){if(!t&&(0n===e||this.is0()))return U;if(P(e,1n,o),1n===e)return this;if(this.equals(F))return ei(e).p;let r=U,n=F;for(let i=this;e>0n;i=i.double(),e>>=1n)1n&e?r=r.add(i):t&&(n=n.add(i));return r}toAffine(){let{ex:e,ey:t,ez:r}=this;if(this.equals(U))return{x:0n,y:1n};let n=k(r,i);return 1n!==M(r*n)&&h("invalid inverse"),{x:M(e*n),y:M(t*n)}}toBytes(){let{x:e,y:t}=this.assertValidity().toAffine(),r=j(t);return r[31]|=1n&e?128:0,r}toHex(){return T(this.toBytes())}clearCofactor(){return this.multiply(R(c),!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){let e=this.multiply(o/2n,!1).double();return o%2n&&(e=e.add(this)),e.is0()}static fromHex(e,t){return V.fromBytes(S(e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}toRawBytes(){return this.toBytes()}}let F=new V(a,s,1n,M(a*s)),U=new V(0n,1n,1n,0n);V.BASE=F,V.ZERO=U;let j=e=>N(v(P(e,0n,B),f)).reverse(),H=e=>R("0x"+T(b(y(e)).reverse())),G=(e,t)=>{let r=e;for(;t-- >0n;)r*=r,r%=i;return r},K=e=>{let t=e*e%i*e%i,r=G(t,2n)*t%i,n=G(r,1n)*e%i,o=G(n,5n)*n%i,a=G(o,10n)*o%i,s=G(a,20n)*a%i,l=G(s,40n)*s%i,u=G(l,80n)*l%i,c=G(u,80n)*l%i,d=G(c,10n)*o%i;return{pow_p_5_8:G(d,2n)*e%i,b2:t}},z=0x2b8324804fc1df0b2b4d00993dfbd7a72f431806ad2fe478c4ee1b274a0ea0b0n,W=(e,t)=>{let r=M(t*t*t),n=K(e*M(r*r*t)).pow_p_5_8,i=M(e*r*n),o=M(t*i*i),a=i,s=M(i*z),l=o===e,u=o===M(-e),c=o===M(-e*z);return l&&(i=a),(u||c)&&(i=s),(1n&M(i))===1n&&(i=M(-i)),{isValid:l||u,value:i}},q=e=>C(H(e)),Y=(...e)=>J.sha512Async(...e),$=(...e)=>L("sha512Sync")(...e),X=e=>{let t=e.slice(0,d);t[0]&=248,t[31]&=127,t[31]|=64;let r=e.slice(d,f),n=q(t),i=F.multiply(n),o=i.toBytes();return{head:t,prefix:r,scalar:n,point:i,pointBytes:o}},J={sha512Async:async(...e)=>{let t=x(),r=I(...e);return E(await t.digest("SHA-512",r.buffer))},sha512Sync:void 0,bytesToHex:T,hexToBytes:N,concatBytes:I,mod:M,invert:k,randomBytes:O},Q={getExtendedPublicKeyAsync:e=>Y(S(e,d)).then(X),getExtendedPublicKey:e=>X($(S(e,d))),randomPrivateKey:()=>O(d),precompute:(e=8,t=F)=>(t.multiply(3n),t)},Z=8,ee=Math.ceil(32)+1,et=2**(Z-1),er=()=>{let e=[],t=F,r=t;for(let n=0;n<ee;n++){r=t,e.push(r);for(let n=1;n<et;n++)r=r.add(t),e.push(r);t=r.double()}return e},en=(e,t)=>{let r=t.negate();return e?r:t},ei=e=>{let t=n||(n=er()),r=U,i=F,o=2**Z,a=o,s=R(o-1),l=R(Z);for(let n=0;n<ee;n++){let o=Number(e&s);e>>=l,o>et&&(o-=a,e+=1n);let u=n*et,c=u,d=u+Math.abs(o)-1,f=n%2!=0,h=o<0;0===o?i=i.add(en(f,t[c])):r=r.add(en(h,t[d]))}return{p:r,f:i}}},36077:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.supportedTypeMap=void 0;let o=r(64756),a=r(81731),s=r(45423),l=r(97842),u=r(61647),c=r(77609),d=r(93412),f=r(86924),h=r(5521),p=r(32786);i(r(77609),t),i(r(64756),t),i(r(81731),t),i(r(61647),t),i(r(86924),t),i(r(45423),t),i(r(32786),t),i(r(97842),t),i(r(93412),t),i(r(5521),t),i(r(148),t),i(r(22383),t),i(r(39232),t),i(r(69933),t),i(r(5162),t),t.supportedTypeMap={...o.collectionsTypeMap,...l.stringTypeMap,...a.compositesTypeMap,...u.enumsTypeMap,...s.numbersTypeMap,...c.aliasesTypeMap,...d.tuplesTypeMap,...f.mapsTypeMap,...p.setsTypeMap,...h.unitTypeMap}},36171:(e,t,r)=>{"use strict";var n=r(55036);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=d(e,"string");return"symbol"===w(t)?t:String(t)}function d(e,t){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==w(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function h(e){var t=E();return function(){var r,n=T(e);return r=t?Reflect.construct(n,arguments,T(this).constructor):n.apply(this,arguments),p(this,r)}}function p(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||!b(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function y(e,t,r){return(y=E()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&v(i,r.prototype),i}).apply(null,arguments)}function E(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function b(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var A=r(63445).inspect,N=r(65736).codes.ERR_INVALID_ARG_TYPE;function S(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function _(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var x="",I="",O="",R="",P={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},M=10;function C(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function k(e){return A(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function L(e,t,r){var i="",o="",a=0,s="",l=!1,u=k(e),c=u.split("\n"),d=k(t).split("\n"),f=0,h="";if("strictEqual"===r&&"object"===w(e)&&"object"===w(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===d.length&&c[0]!==d[0]){var p=c[0].length+d[0].length;if(p<=M){if(("object"!==w(e)||null===e)&&("object"!==w(t)||null===t)&&(0!==e||0!==t))return"".concat(P[r],"\n\n")+"".concat(c[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][f]===d[0][f];)f++;f>2&&(h="\n ".concat(_(" ",f),"^"),f=0)}}for(var g=c[c.length-1],m=d[d.length-1];g===m&&(f++<2?s="\n ".concat(g).concat(s):i=g,c.pop(),d.pop(),0!==c.length&&0!==d.length);)g=c[c.length-1],m=d[d.length-1];var y=Math.max(c.length,d.length);if(0===y){var E=u.split("\n");if(E.length>30)for(E[26]="".concat(x,"...").concat(R);E.length>27;)E.pop();return"".concat(P.notIdentical,"\n\n").concat(E.join("\n"),"\n")}f>3&&(s="\n".concat(x,"...").concat(R).concat(s),l=!0),""!==i&&(s="\n ".concat(i).c
1oncat(s),i="");var b=0,v=P[r]+"\n".concat(I,"+ actual").concat(R," ").concat(O,"- expected").concat(R),T=" ".concat(x,"...").concat(R," Lines skipped");for(f=0;f<y;f++){var A=f-a;if(c.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(x,"...").concat(R),l=!0):A>3&&(o+="\n ".concat(d[f-2]),b++),o+="\n ".concat(d[f-1]),b++),a=f,i+="\n".concat(O,"-").concat(R," ").concat(d[f]),b++;else if(d.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(x,"...").concat(R),l=!0):A>3&&(o+="\n ".concat(c[f-2]),b++),o+="\n ".concat(c[f-1]),b++),a=f,o+="\n".concat(I,"+").concat(R," ").concat(c[f]),b++;else{var N=d[f],C=c[f],L=C!==N&&(!S(C,",")||C.slice(0,-1)!==N);L&&S(N,",")&&N.slice(0,-1)===C&&(L=!1,C+=","),L?(A>1&&f>2&&(A>4?(o+="\n".concat(x,"...").concat(R),l=!0):A>3&&(o+="\n ".concat(c[f-2]),b++),o+="\n ".concat(c[f-1]),b++),a=f,o+="\n".concat(I,"+").concat(R," ").concat(C),i+="\n".concat(O,"-").concat(R," ").concat(N),b+=2):(o+=i,i="",(1===A||0===f)&&(o+="\n ".concat(C),b++))}if(b>20&&f<y-2)return"".concat(v).concat(T,"\n").concat(o,"\n").concat(x,"...").concat(R).concat(i,"\n")+"".concat(x,"...").concat(R)}return"".concat(v).concat(l?T:"","\n").concat(o).concat(i).concat(s).concat(h)}e.exports=function(e,t){f(i,e);var r=h(i);function i(e){if(s(this,i),"object"!==w(e)||null===e)throw new N("options","Object",e);var t,o=e.message,a=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)t=r.call(this,String(o));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(x="\x1b[34m",I="\x1b[32m",R="\x1b[39m",O="\x1b[31m"):(x="",I="",R="",O="")),"object"===w(u)&&null!==u&&"object"===w(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=C(u),c=C(c)),"deepStrictEqual"===a||"strictEqual"===a)t=r.call(this,L(u,c,a));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var f=P[a],h=k(u).split("\n");if("notStrictEqual"===a&&"object"===w(u)&&null!==u&&(f=P.notStrictEqualObject),h.length>30)for(h[26]="".concat(x,"...").concat(R);h.length>27;)h.pop();t=1===h.length?r.call(this,"".concat(f," ").concat(h[0])):r.call(this,"".concat(f,"\n\n").concat(h.join("\n"),"\n"))}else{var m=k(u),y="",E=P[a];"notDeepEqual"===a||"notEqual"===a?(m="".concat(P[a],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(y="".concat(k(c)),m.length>512&&(m="".concat(m.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===a||"equal"===a?m="".concat(E,"\n\n").concat(m,"\n\nshould equal\n\n"):y=" ".concat(a," ").concat(y)),t=r.call(this,"".concat(m).concat(y))}return Error.stackTraceLimit=d,t.generatedMessage=!o,Object.defineProperty(g(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=u,t.expected=c,t.operator=a,Error.captureStackTrace&&Error.captureStackTrace(g(t),l),t.stack,t.name="AssertionError",p(t)}return u(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return A(this,o(o({},t),{},{customInspect:!1,depth:0}))}}]),i}(m(Error),A.custom)},36704:(e,t,r)=>{e.exports=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o,a=null;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if("%%"===t)return"%";o++;let a=n.formatters[i];if("function"==typeof a){let n=e[o];t=a.call(r,n),e.splice(o,1),o--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=i,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function i(e,t){let r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){for(let t of(n.save(e),n.namespaces=e,n.names=[],n.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
1Boolean)))"-"===t[0]?n.skips.push(t.slice(1)):n.names.push(t)}function a(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}function s(){let e=[...n.names,...n.skips.map(e=>"-"+e)].join(",");return n.enable(""),e}function l(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.debug=n,n.default=n,n.coerce=u,n.disable=s,n.enable=o,n.enabled=l,n.humanize=r(68831),n.destroy=c,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}},37740:(e,t,r)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{CG:()=>s,ai:()=>n,ee:()=>i,t2:()=>a,tW:()=>o})},37934:(e,t,r)=>{"use strict";r.d(t,{x9:()=>p});var n=r(20441),i=r(26272),o=r(7160),a=r(60259),s=r(60133),l=r(70407);let u=RegExp("^bytes([0-9]+)$"),c=RegExp("^(u?int)([0-9]*)$"),d=RegExp("^(.*)\\[([0-9]*)\\]$");function f(e,t,r){switch(e){case"address":if(r)return(0,o.q5)((0,o.nx)(t,32));return(0,o.q5)((0,n.b)(t));case"string":return(0,a.YW)(t);case"bytes":return(0,o.q5)(t);case"bool":if(t=t?"0x01":"0x00",r)return(0,o.q5)((0,o.nx)(t,32));return(0,o.q5)(t)}let i=e.match(c);if(i){let n="int"===i[1],a=parseInt(i[2]||"256");return(0,s.MR)((!i[2]||i[2]===String(a))&&a%8==0&&0!==a&&a<=256,"invalid number type","type",e),r&&(a=256),n&&(t=(0,l.JJ)(t,a)),(0,o.q5)((0,o.nx)((0,l.c4)(t),a/8))}if(i=e.match(u)){let n=parseInt(i[1]);
1return((0,s.MR)(String(n)===i[1]&&0!==n&&n<=32,"invalid bytes type","type",e),(0,s.MR)((0,o.pO)(t)===n,`invalid value for ${e}`,"value",t),r)?(0,o.q5)((0,o.X_)(t,32)):t}if((i=e.match(d))&&Array.isArray(t)){let r=i[1],n=parseInt(i[2]||String(t.length));(0,s.MR)(n===t.length,`invalid array length for ${e}`,"value",t);let a=[];return t.forEach(function(e){a.push(f(r,e,!0))}),(0,o.q5)((0,o.xW)(a))}(0,s.MR)(!1,"invalid type","type",e)}function h(e,t){(0,s.MR)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(f(e,t[n]))}),(0,o.c$)((0,o.xW)(r))}function p(e,t){return(0,i.S)(h(e,t))}},38868:(e,t,r)=>{"use strict";var n=r(40869);e.exports=function(){return n()&&!!Symbol.toStringTag}},39228:(e,t,r)=>{"use strict";var n=r(49524),i=r(93422),o=r(64143),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,u=n.shr64_lo,c=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,E=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=E,this.W=Array(160)}function v(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function T(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function w(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function A(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function N(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function _(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function x(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function I(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function R(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(b,y),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=R(r[n-4],r[n-3]),o=P(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=I(r[n-30],r[n-29]),u=O(r[n-30],r[n-29]),c=r[n-32],d=r[n-31];r[n]=h(i,o,a,s,l,u,c,d),r[n+1]=p(i,o,a,s,l,u,c,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],y=this.h[8],E=this.h[9],b=this.h[10],I=this.h[11],O=this.h[12],R=this.h[13],P=this.h[14],M=this.h[15];o(this.k.length===r.length);for(var C=0;C<r.length;C+=2){var k=P,L=M,D=_(y,E),B=x(y,E),V=v(y,E,b,I,O,R),F=T(y,E,b,I,O,R),U=this.k[C],j=this.k[C+1],H=r[C],G=r[C+1],K=g(k,L,D,B,V,F,U,j,H,G),z=m(k,L,D,B,V,F,U,j,H,G);k=N(n,i),L=S(n,i);var W=d(k,L,D=w(n,i,a,s,l,u),B=A(n,i,a,s,l,u)),q=f(k,L,D,B);P=O,M=R,O=b,R=I,b=y,I=E,y=d(h,p,K,z),E=f(p,p,K,z),h=l,p=u,l=a,u=s,a=n,s=i,n=d(K,z,W,q),i=f(K,z,W,q)}c(this.h,0,n,i),c(this.h,2,a,s),c(this.h,4,l,u),c(this.h,6,h,p),c(this.h,8,y,E),c(this.h,10,b,I),c(this.h,12,O,R),c(this.h,14,P,M)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},39232:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.BeetArgsStruct=t.isBeetStruct=t.BeetStruct=void 0;let n=r(22383),i=r(21838);class o{constructor(e,t,r=o.description){if(this.fields=e,this.construct=t,this.description=r,this.byteSize=this.getByteSize(),i.logDebug.enabled){let t=e.map(([e,t])=>`${String(e)}: ${t.description} ${(0,i.beetBytes)(t)}`).join("\n ");(0,i.logDebug)(`struct ${r} { 2 ${t} 3} ${(0,i.beetBytes)(this)}`)}}read(e,t){let[r]=this.deserialize(e,t);return r}write(e,t,r){let[n,i]=this.serialize(r);n.copy(e,t,0,i)}deserialize(e,t=0){i.logTrace.enabled&&((0,i.logTrace)("deserializing [%s] from %d bytes buffer",this.description,e.byteLength),(0,i.logTrace)(e),(0,i.logTrace)(e.toJSON().data));let r=new n.BeetReader(e,t),o=r.readStruct(this.fields);return[this.construct(o),r.offset]}serialize(e,t=this.byteSize){(0,i.logTrace)("serializing [%s] %o to %d bytes buffer",this.description,e,t);let r=new n.BeetWriter(t);return r.writeStruct(e,this.fields),[r.buffer,r.offset]}getByteSize(){return this.fields.reduce((e,[t,r])=>e+r.byteSize,0)}get type(){return o.TYPE}}t.BeetStruct=o,o.description="BeetStruct",o.TYPE="BeetStruct",t.isBeetStruct=function(e){return e.type===o.TYPE};class a extends o{constructor(e,t=a.description){super(e,e=>e,t)}}t.BeetArgsStruct=a,a.description="BeetArgsStruct"},39491:(e,t,r)=>{"use strict";var n,i=r(93758),o=r(85974);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},39515:(e,t,r)=>{"use strict";var n=r(79509);e.exports=function(e){return!!n(e)}},39720:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(27754),i=r(42401);let o=new WeakMap,a="$sub$",s=e=>(t,r,n)=>{let[s]=(0,i.lK)(t),l=t,u=s?a+s:void 0,c=e(u,null,n),{cache:d}=n;o.has(d)||o.set(d,[new Map,new Map]);let[f,h]=o.get(d);return(0,i.Es)(()=>{if(!u)return;let[,e]=(0,i.r9)(d,u),t=f.get(u)||0,n=(t,r)=>{null!=t?e({error:t}):(e({error:void 0}),c.mutate(r,!1))};if(f.set(u,t+1),!t){let e=r(l,{next:n});if("function"!=typeof e)throw Error("The `subscribe` function must return a function to unsubscribe.");h.set(u,e)}return()=>{setTimeout(()=>{let e=f.get(u)-1;if(f.set(u,e),!e){let e=h.get(u);null==e||e()}})}},[u]),{get data(){return c.data},get error(){return c.error}}},l=(0,i.Ht)(n.Ay,s)},40869:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},41117:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(22399),i=r.n(n),o=r(58854);function a(e){return"0x"+i().keccak_256((0,o.k9)(e))}},41157:e=>{"use strict";e.exports=Error},41182:(e,t,r)=>{"use strict";r.d(t,{bL:()=>A,zi:()=>N});var n=r(13741),i=r(17980),o=r(85207),a=r(25721),s=r(18296),l=r(96456),u=r(55848),c=r(9227),d=r(42073),f="Switch",[h,p]=(0,a.A)(f),[g,m]=h(f),y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:a,checked:l,defaultChecked:u,required:h,disabled:p,value:m="on",onCheckedChange:y,form:E,...b}=e,[v,A]=n.useState(null),N=(0,o.s)(t,e=>A(e)),S=n.useRef(!1),_=!v||E||!!v.closest("form"),[x,I]=(0,s.i)({prop:l,defaultProp:null!=u&&u,onChange:y,caller:f});return(0,d.jsxs)(g,{scope:r,checked:x,disabled:p,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":x,"aria-required":h,"data-state":w(x),"data-disabled":p?"":void 0,disabled:p,value:m,...b,ref:N,onClick:(0,i.mK)(e.onClick,e=>{I(e=>!e),_&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),_&&(0,d.jsx)(T,{control:v,bubbles:!S.current,name:a,value:m,checked:x,required:h,disabled:p,form:E,style:{transform:"translateX(-100%)"}})]})});y.displayName=f;var E="SwitchThumb",b=n.forwardRef((e,t)=>
3{let{__scopeSwitch:r,...n}=e,i=m(E,r);return(0,d.jsx)(c.sG.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});b.displayName=E;var v="SwitchBubbleInput",T=n.forwardRef((e,t)=>{let{__scopeSwitch:r,control:i,checked:a,bubbles:s=!0,...c}=e,f=n.useRef(null),h=(0,o.s)(f,t),p=(0,l.Z)(a),g=(0,u.X)(i);return n.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==a&&t){let r=new Event("click",{bubbles:s});t.call(e,a),e.dispatchEvent(r)}},[p,a,s]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...c,tabIndex:-1,ref:h,style:{...c.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function w(e){return e?"checked":"unchecked"}T.displayName=v;var A=y,N=b},42085:(e,t,r)=>{"use strict";var n=r(33045).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=E,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function E(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=f,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},42564:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},42621:(e,t,r)=>{var n=r(5003),i=r(82782),o=r(69889),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;
3if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},43169:(e,t,r)=>{"use strict";r.d(t,{RG:()=>T,bL:()=>C,q7:()=>k});var n=r(13741),i=r(17980),o=r(13050),a=r(85207),s=r(25721),l=r(99652),u=r(9227),c=r(73456),d=r(18296),f=r(34864),h=r(42073),p="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[y,E,b]=(0,o.N)(m),[v,T]=(0,s.A)(m,[b]),[w,A]=v(m),N=n.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(S,{...e,ref:t})})}));N.displayName=m;var S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:l,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:v,onEntryFocus:T,preventScrollOnEntryFocus:A=!1,...N}=e,S=n.useRef(null),_=(0,a.s)(t,S),x=(0,f.jH)(l),[I,O]=(0,d.i)({prop:y,defaultProp:null!=b?b:null,onChange:v,caller:m}),[R,M]=n.useState(!1),C=(0,c.c)(T),k=E(r),L=n.useRef(!1),[D,B]=n.useState(0);return n.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(p,C),()=>e.removeEventListener(p,C)},[C]),(0,h.jsx)(w,{scope:r,orientation:o,dir:x,loop:s,currentTabStopId:I,onItemFocus:n.useCallback(e=>O(e),[O]),onItemShiftTab:n.useCallback(()=>M(!0),[]),onFocusableItemAdd:n.useCallback(()=>B(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>B(e=>e-1),[]),children:(0,h.jsx)(u.sG.div,{tabIndex:R||0===D?-1:0,"data-orientation":o,...N,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(p,g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),A)}}L.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>M(!1))})})}),_="RovingFocusGroupItem",x=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,children:c,...d}=e,f=(0,l.B)(),p=s||f,g=A(_,r),m=g.currentTabStopId===p,b=E(r),{onFocusableItemAdd:v,onFocusableItemRemove:T,currentTabStopId:w}=g;return n.useEffect(()=>{if(o)return v(),()=>T()},[o,v,T]),(0,h.jsx)(y.ItemSlot,{scope:r,id:p,focusable:o,active:a,children:(0,h.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=R(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=g.loop?M(r,n+1):r.slice(n+1)}setTimeout(()=>P(r))}}),children:"function"==typeof c?c({isCurrentTabStop:m,hasTabStop:null!=w}):c})})});x.displayName=_;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function R(e,t,r){let n=O(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return I[n]}function P(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function M(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var C=N,k=x},43184:(e,t,r)=>{"use strict";r.d(t,{J9:()=>d,VS:()=>f,eB:()=>h,tG:()=>p,uI:()=>m,z5:()=>g});var n=r(93713),i=r(7160),o=r(70407),a=r(60133),s=r(3697);let l=BigInt(0);function u(e){return null==e?null:e}function c(e){return null==e?null:e.toString()}class d{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,n.n)(this,{gasPrice:u(e),maxFeePerGas:u(t),maxPriorityFeePerGas:u(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:c(e),maxFeePerGas:c(t),maxPriorityFeePerGas:c(r)}}}function f(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,i.c$)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,o.Ab)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,o.WZ)(e[r],`request.${r}`));return e.accessList&&(t.accessList=(0,s.$)(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>(0,i.f)(e)?(0,i.c$)(e):Object.assign({},e))),t}class h{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;
3gasLimit;gasUsed;stateRoot;receiptsRoot;transactionsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#s;constructor(e,t){this.#s=e.transactions.map(e=>"string"!=typeof e?new m(e,t):e),(0,n.n)(this,{provider:t,hash:u(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:u(e.prevRandao),extraData:e.extraData,baseFeePerGas:u(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot,transactionsRoot:e.transactionsRoot})}get transactions(){return this.#s.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#s.slice();return 0===e.length?[]:((0,a.vA)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:i,hash:o,miner:a,prevRandao:s,nonce:l,number:u,parentHash:d,parentBeaconBlockRoot:f,stateRoot:h,receiptsRoot:p,transactionsRoot:g,timestamp:m,transactions:y}=this;return{_type:"Block",baseFeePerGas:c(e),difficulty:c(t),extraData:r,gasLimit:c(n),gasUsed:c(i),blobGasUsed:c(this.blobGasUsed),excessBlobGas:c(this.excessBlobGas),hash:o,miner:a,prevRandao:s,nonce:l,number:u,parentHash:d,timestamp:m,parentBeaconBlockRoot:f,stateRoot:h,receiptsRoot:p,transactionsRoot:g,transactions:y}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#s.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"==typeof e)t=this.#s[e];else{let r=e.toLowerCase();for(let e of this.#s)if("string"==typeof e){if(e!==r)continue;t=e;break}else{if(e.hash!==r)continue;t=e;break}}if(null==t)throw Error("no such tx");return"string"==typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){let t=this.prefetchedTransactions;if("number"==typeof e)return t[e];for(let r of(e=e.toLowerCase(),t))if(r.hash===e)return r;(0,a.MR)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw Error("");return y(this)}}class p{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;let r=Object.freeze(e.topics.slice());(0,n.n)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:r,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){let{address:e,blockHash:t,blockNumber:r,data:n,index:i,removed:o,topics:a,transactionHash:s,transactionIndex:l}=this;return{_type:"log",address:e,blockHash:t,blockNumber:r,data:n,index:i,removed:o,topics:a,transactionHash:s,transactionIndex:l}}async getBlock(){let e=await this.provider.getBlock(this.blockHash);return(0,a.vA)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){let e=await this.provider.getTransaction(this.transactionHash);return(0,a.vA)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){let e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,a.vA)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return v(this)}}class g{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#l;constructor(e,t){this.#l=Object.freeze(e.logs.map(e=>new p(e,t)));let r=l;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,n.n)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#l}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:i,blockHash:o,blockNumber:a,logsBloom:s,logs:l,status:u,root:d}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:r,cumulativeGasUsed:c(this.cumulativeGasUsed),from:t,gasPrice:c(this.gasPrice),blobGasUsed:c(this.blobGasUsed),blobGasPrice:c(this.blobGasPrice),gasUsed:c(this.gasUsed),hash:n,index:i,logs:l,logsBloom:s,root:d,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){let e=await this.provider.getBlock(this.blockHash);if(null==e)throw Error("TODO");return e}async getTransaction(){let e=await this.provider.getTransaction(this.hash);if(null==e)throw Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return b(this)}reorderedEvent(e){return(0,a.vA)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),E(this,e)}}class m{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;authorizationList;#u;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLim
3it,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.authorizationList=null!=e.authorizationList?e.authorizationList:null,this.#u=-1}toJSON(){let{blockNumber:e,blockHash:t,index:r,hash:n,type:i,to:o,from:a,nonce:s,data:l,signature:u,accessList:d,blobVersionedHashes:f}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:t,blobVersionedHashes:f,chainId:c(this.chainId),data:l,from:a,gasLimit:c(this.gasLimit),gasPrice:c(this.gasPrice),hash:n,maxFeePerGas:c(this.maxFeePerGas),maxPriorityFeePerGas:c(this.maxPriorityFeePerGas),maxFeePerBlobGas:c(this.maxFeePerBlobGas),nonce:s,signature:u,to:o,index:r,type:i,value:c(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){let t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;let t=this.provider.getBlock(e);if(null==t)throw Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){let{tx:e,blockNumber:t}=await (0,n.k)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){let r=null==e?1:e,i=null==t?0:t,o=this.#u,s=-1,u=-1===o,c=async()=>{if(u)return null;let{blockNumber:e,nonce:t}=await (0,n.k)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce){o=e;return}if(u)return null;let i=await this.getTransaction();if(!i||null==i.blockNumber)for(-1===s&&(s=o-3)<this.#u&&(s=this.#u);s<=e;){if(u)return null;let t=await this.provider.getBlock(s,!0);if(null==t)break;for(let e of t)if(e===this.hash)return;for(let n=0;n<t.length;n++){let i=await t.getTransaction(n);if(i.from===this.from&&i.nonce===this.nonce){if(u)return null;let t=await this.provider.getTransactionReceipt(i.hash);if(null==t||e-t.blockNumber+1<r)return;let n="replaced";i.data===this.data&&i.to===this.to&&i.value===this.value?n="repriced":"0x"===i.data&&i.from===i.to&&i.value===l&&(n="cancelled"),(0,a.vA)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===n||"cancelled"===n,reason:n,replacement:i.replaceableTransaction(o),hash:i.hash,receipt:t})}}s++}},d=e=>{if(null==e||0!==e.status)return e;(0,a.vA)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},f=await this.provider.getTransactionReceipt(this.hash);if(0===r)return d(f);if(f){if(1===r||await f.confirmations()>=r)return d(f)}else if(await c(),0===r)return null;let h=new Promise((e,t)=>{let n=[],s=()=>{n.forEach(e=>e())};if(n.push(()=>{u=!0}),i>0){let e=setTimeout(()=>{s(),t((0,a.xz)("wait for transaction timeout","TIMEOUT"))},i);n.push(()=>{clearTimeout(e)})}let l=async n=>{if(await n.confirmations()>=r){s();try{e(d(n))}catch(e){t(e)}}};if(n.push(()=>{this.provider.off(this.hash,l)}),this.provider.on(this.hash,l),o>=0){let e=async()=>{try{await c()}catch(e){if((0,a.bJ)(e,"TRANSACTION_REPLACED")){s(),t(e);return}}u||this.provider.once("block",e)};n.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await h}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,a.vA)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),b(this)}reorderedEvent(e){return(0,a.vA)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,a.vA)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),E(this,e)}replaceableTransaction(e){(0,a.MR)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new m(this,this.provider);return t.#u=e,t}}function y(e){return{orphan:"drop-block",hash:e.hash,number:e.number}}function E(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function b(e){return{orphan:"drop-transaction",tx:e}}function v(e){return{orphan:"drop-log",log:{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}}}},43496:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>J,UC:()=>et,ZL:()=>ee,bL:()=>Q,i3:()=>er,l9:()=>Z});var n=r(13741),i=r(17980),o=r(85207),a=r(25721),s=r(63466),l=r(99652),u=r(59022),c=r(73258),d=r(94222),f=r(9227),h=r(82959),p=r(18296),g=r(68800),m=r(42073),[y,E]=(0,a.A)("Tooltip",[u.Bk]),b=(0,u.Bk)(),v="TooltipProvider",T=700,w="tooltip.open",[A,N]=y(v),S=e=>{let{__scopeTooltip:t,delayDuration:r=T,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,s=n.useRef(!0),l=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(A,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:n.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:a})};S.displayName=v;var _="Tooltip",[x,I]=y(_),O=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=N(_,e.__scopeTooltip),f=b(t),[h,g]=n.useState(null),y=(0,l.B)(),E=n.useRef(0),v=null!=s?s:d.disableHoverableContent,T=null!=c?c:d.delayDuration,A=n.useRef(!1),[S,I]=(0,p.i)({prop:i,defaultProp:null!=o&&o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==a||a(e)},caller:_}),O=n.useMemo(()=>S?A.current?"delayed-open":"instant-open":"closed",[S]),R=n.useCallback(()=>{window.clearTimeout(E.current),E.current=0,A.current=!1,I(!0)},[I]),P=n.useCallback(()=>{window.clearTimeout(E.current),E.current=0,I(!1)},[I]),M=n.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{A.current=!0,I(!0),E.current=0},T)},[T,I]);return n.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),(0,m.jsx)(u.bL,{...f,children:(0,m.jsx)(x,{scope:t,contentId:y,open:S,stateAttribute:O,trigger:h,onTriggerChange:g,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayedRef.current?M():R()},[d.isOpenDelayedRef,M,R]),onTriggerLeave:n.useCallback(()=>{v?P():(window.clearTimeout(E.current),E.current=0)},[P,v]),onOpen:R,onClose:P,disableHoverableContent:v,children:r})})};O.displayName=_;var R="TooltipTrigger",P=n.forwardRef((e,t)=>
3{let{__scopeTooltip:r,...a}=e,s=I(R,r),l=N(R,r),c=b(r),d=n.useRef(null),h=(0,o.s)(t,d,s.onTriggerChange),p=n.useRef(!1),g=n.useRef(!1),y=n.useCallback(()=>p.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,m.jsx)(u.Mz,{asChild:!0,...c,children:(0,m.jsx)(f.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:h,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.mK)(e.onBlur,s.onClose),onClick:(0,i.mK)(e.onClick,s.onClose)})})});P.displayName=R;var M="TooltipPortal",[C,k]=y(M,{forceMount:void 0}),L=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=I(M,t);return(0,m.jsx)(C,{scope:t,forceMount:r,children:(0,m.jsx)(d.C,{present:r||o.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:i,children:n})})})};L.displayName=M;var D="TooltipContent",B=n.forwardRef((e,t)=>{let r=k(D,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=I(D,e.__scopeTooltip);return(0,m.jsx)(d.C,{present:n||a.open,children:a.disableHoverableContent?(0,m.jsx)(H,{side:i,...o,ref:t}):(0,m.jsx)(V,{side:i,...o,ref:t})})}),V=n.forwardRef((e,t)=>{let r=I(D,e.__scopeTooltip),i=N(D,e.__scopeTooltip),a=n.useRef(null),s=(0,o.s)(t,a),[l,u]=n.useState(null),{trigger:c,onClose:d}=r,f=a.current,{onPointerInTransitChange:h}=i,p=n.useCallback(()=>{u(null),h(!1)},[h]),g=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=z(n,r.getBoundingClientRect());u($([...W(n,i),...q(t.getBoundingClientRect())])),h(!0)},[h]);return n.useEffect(()=>()=>p(),[p]),n.useEffect(()=>{if(c&&f){let e=e=>g(e,f),t=e=>g(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,g,p]),n.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),i=!Y(r,l);n?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,l,d,p]),(0,m.jsx)(H,{...e,ref:s})}),[F,U]=y(_,{isInside:!1}),j=(0,h.Dc)("TooltipContent"),H=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=I(D,r),f=b(r),{onClose:h}=d;return n.useEffect(()=>(document.addEventListener(w,h),()=>document.removeEventListener(w,h)),[h]),n.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,m.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,m.jsxs)(u.UC,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(j,{children:i}),(0,m.jsx)(F,{scope:r,isInside:!0,children:(0,m.jsx)(g.bL,{id:d.contentId,role:"tooltip",children:o||i})})]})})});B.displayName=D;var G="TooltipArrow",K=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=b(r);return U(G,r).isInside?null:(0,m.jsx)(u.i3,{...i,...n,ref:t})});function z(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}function W(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}function q(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function Y(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}function $(e){let t=e.slice();return t.sort((e,t)=>
3e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),X(t)}function X(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}K.displayName=G;var J=S,Q=O,Z=P,ee=L,et=B,er=K},44735:(e,t,r)=>{"use strict";r.d(t,{Vw:()=>d,Id:()=>c,O8:()=>a,po:()=>h,Ow:()=>s,ZJ:()=>u,DH:()=>o,ld:()=>f});let n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,i=e=>e instanceof Uint8Array,o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([0x11223344]).buffer)[0])throw Error("Non little-endian hardware is not supported");function l(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function u(e){if("string"==typeof e&&(e=l(e)),!i(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function c(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}class d{clone(){return this._cloneInto()}}function f(e){let t=t=>e().update(u(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function h(e=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},45102:(e,t,r)=>{"use strict";r.d(t,{I:()=>N});var n=r(34902),i=r(25804),o=r(71558),a=r(55481),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&h(e,r,t[r]);if(c)for(var r of c(t))f.call(t,r)&&h(e,r,t[r]);return e},g=(e,t)=>l(e,u(t)),m=(e,t,r)=>h(e,"symbol"!=typeof t?t+"":t,r),y=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())});function E(e){return y(this,null,function*(){let{chainId:t,receiver:r,token:n,amount:i,nonce:o,brokerId:s,domain:l}=e,u="Withdraw",c=Date.now(),d={EIP712Domain:a.Rv.EIP712Domain,[u]:a.Rv[u]},f={brokerId:s,chainId:t,receiver:r,token:n,amount:i,timestamp:c,withdrawNonce:o},h={domain:l,message:f,primaryType:u,types:d};return[f,h]})}function b(e){return y(this,null,function*(){let{chainId:t,receiver:r,token:n,amount:i,nonce:o,domain:s}=e,l="InternalTransfer",u={EIP712Domain:a.Rv.EIP712Domain,[l]:a.Rv[l]},c={chainId:t,receiver:r,token:n,amount:i,transferNonce:o},d={domain:s,message:c,primaryType:l,types:u};return[c,d]})}function v(e){return y(this,null,function*(){let{publicKey:t,chainId:r,brokerId:n,expiration:i=365,timestamp:o=Date.now(),scope:s,tag:l,domain:u,subAccountId:c}=e,d="AddOrderlyKey",f=p(p({brokerId:n,orderlyKey:t,scope:s||a.dI,chainId:r,timestamp:o,expiration:o+864e5*i},void 0!==l?{tag:l}:{}),void 0!==c?{subAccountId:c}:{}),h={EIP712Domain:a.Rv.EIP712Domain,[d]:a.Rv[d]},g={domain:u,message:f,primaryType:d,types:h};return[f,g]})}function T(e){return y(this,null,function*(){let{chainId:t,domain:r,registrationNonce:n,brokerId:i,timestamp:o}=e,s="Registration",l={brokerId:i,chainId:t,timestamp:o,registrationNonce:n},u={EIP712Domain:a.Rv.EIP712Domain,[s]:a.Rv[s]},c={domain:r,message:l,primaryType:s,types:u};return[l,c]})}function w(e){return y(this,null,function*(){let{settlePnlNonce:t,brokerId:r,chainId:n,timestamp:i,domain:o}=e,s="SettlePnl",l={EIP712Domain:a.Rv.EIP712Domain,[s]:a.Rv[s]},u={brokerId:r,chainId:n,timestamp:i,settleNonce:t},c={domain:o,message:u,primaryType:s,types:l};return[u,c]})}function A(e){return y(this,null,function*(){let{payloadType:t,nonce:r,receiver:n,amount:i,vaultId:o,token:s,dexBrokerId:l,domain:u}=e,c="DexRequest",d={EIP712Domain:a.Rv.EIP712Domain,[c]:a.Rv[c]},f={payloadType:t,nonce:r,receiver:n,amount:i,vaultId:o,token:s,dexBrokerId:l},h={domain:u,message:f,primaryType:c,types:d};return[f,h]})}"undefined"!=typeof window&&(window.__ORDERLY_VERSION__=window.__ORDERLY_VERSION__||{},window.__ORDERLY_VERSION__["@orderly.network/default-evm-adapter"]="3.2.1");var N=class extends o.Ce{constructor(e){super(),this.web3Provider=e,m(this,"chainNamespace",a.Lx.evm),m(this,"_address"),m(this,"_chainId"),m(this,"contractManager")}get address(){return this._address}get chainId(){return this._chainId}set chainId(e){this._chainId=e}setConfig(e){if(this._address=e.address,this._chainId=e.chain.id,e.provider&&(this.web3Provider.provider=e.provider),e.contractManager)this.contractManager=e.contractManager;else throw Error("Please provide contract manager class")}active(e){this.setConfig(e),this.lifecycleName("active",e)}deactivate(){this.lifecycleName("deactivate",{})}update(e){this.lifecycleName("update",e),this.setConfig(e)}generateSecretKey(){let e,t;do e=n.Wp.randomPrivateKey(),t=(0,i.encode)(e);while(44!==t.length);return t}lifecycleName(e,t){console.log("lifecycle",e,t)}signTypedData(e){return y(this,null,function*(){return console.log("toSignatureMessage",this.address),yield this.web3Provider.signTypedData(this.address,JSON.stringify(e))})}generateRegisterAccountMessage(e){return y(this,null,function*(){let[t,r]=yield T(g(p({},e),{chainId:this.chainId,domain:this.getDomain()})),n=yield this.signTypedData(r);return{message:g(p({},t),{chainType:"EVM"}),signatured:n}})}generateAddOrderlyKeyMessage(e){return y(this,null,function*(){let[t,r]=yield v(g(p({},e),{chainId:this.chainId,domain:this.getDomain()})),n=yield this.signTypedData(r);return{message:g(p({},t),{chainType:"EVM"}),signatured:n}})}generateWithdrawMessage(e){return y(this,null,function*(){let t=this.getDomain(!0),[r,n]=yield E(g(p({},e),{chainId:this.chainId,domain:t})),i=yield this.signTypedData(n);return{message:g(p({},r),{chainType:"EVM"}),signatured:i,domain:t}})}generateInternalTransferMessage(e){return y(this,null,function*(){let t=this.getDomain(!0),[r,n]=yield b(g(p({},e),{chainId:this.chainId,domain:t})),i=yield this.signTypedData(n);return{message:g(p({},r),{chainType:"EVM"}),signatured:i,domain:t}})}generateSettleMessage(e){return y(this,null,function*(){let t=this.getDomain(!0),[r,n]=yield w(g(p({},e),{chainId:this.chainId,domain:t})),i=yield this.signTypedData(n);return{message:g(p({},r),{chainType:"EVM"}),signatured:i,domain:t}})}generateDexRequestMessage(e){return y(this,null,function*(){let[t,r]=yield A(g(p({},e),{chainId:this.chainId})),n=yield this.signTypedData(r);return{message:g(p({},t),{chainType:"EVM"}),signatured:n,domain:e.domain}})}call(e,t,r,n){return this.web3Provider.call(e,t,r,n)}sendTransaction(e,t,r,n){return this.web3Provider.sendTransaction(e,t,r,n)}callOnChain(e,t,r,n,i){return this.web3Provider.callOnChain(e,t,r,n,i)}getDomain(e){if(!this.web3Provider)throw Error("web3Provider is undefined");return{name:"Orderly",version:"1",chainId:this.chainId,verifyingContract:e?this.contractManager.getContractInfoByEnv().verifyContractAddress:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"}}pollTransactionReceiptWithBackoff(e,t,r,n){return this.web3Provider.pollTransactionReceiptWithBackoff(e,t,r,n)}getBalance(){return this.web3Provider.getBalance(this.address)}getBalances(e){return this.web3Provider.getBalances(e)}estimateGasFee(e,t,r,n){return this.web3Provider.estimateGasFee(e,t,r,n)}}},45348:(e,t,r)=>{"use strict";r.d(t,{y:()=>L});var n=r(60133),i=r(50746),o=r(20441),a=r(70407),s=r(27543);class l extends i.Ue{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=s.V.dereference(t,"string");try{r=(0,o.b)(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return(0,o.b)((0,a.up)(e.readValue(),20))}}var u=r(93713);class c extends i.Ue{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}
3defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}function d(e,t,r){let o=[];if(Array.isArray(r))o=r;else if(r&&"object"==typeof r){let e={};o=t.map(t=>{let i=t.localName;return(0,n.vA)(i,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,n.vA)(!e[i],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[i]=!0,r[i]})}else(0,n.MR)(!1,"invalid tuple value","tuple",r);(0,n.MR)(t.length===o.length,"types/value length mismatch","tuple",r);let a=new i.AU,s=new i.AU,l=[];t.forEach((e,t)=>{let r=o[t];if(e.dynamic){let t=s.length;e.encode(s,r);let n=a.writeUpdatableValue();l.push(e=>{n(e+t)})}else e.encode(a,r)}),l.forEach(e=>{e(a.length)});let u=e.appendWriter(a);return u+e.appendWriter(s)}function f(e,t){let r=[],o=[],a=e.subReader(0);return t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readIndex(),o=a.subReader(r);try{i=t.decode(o)}catch(e){if((0,n.bJ)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if((0,n.bJ)(e,"BUFFER_OVERRUN"))throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}if(void 0==i)throw Error("investigate");r.push(i),o.push(t.localName||null)}),i.Q7.fromItems(r,o)}class h extends i.Ue{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,u.n)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){let r=s.V.dereference(t,"array");Array.isArray(r)||this._throwError("expected array value",r);let i=this.length;-1===i&&(i=r.length,e.writeValue(r.length)),(0,n.dd)(r.length,i,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let e=0;e<r.length;e++)o.push(this.coder);return d(e,o,r)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,n.vA)(t*i.Yx<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*i.Yx,length:e.dataLength}));let r=[];for(let e=0;e<t;e++)r.push(new c(this.coder));return f(e,r)}}class p extends i.Ue{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=s.V.dereference(t,"bool");return e.writeValue(+!!r)}decode(e){return!!e.readValue()}}var g=r(7160);class m extends i.Ue{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,g.Lm)(t);let r=e.writeValue(t.length);return r+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}class y extends m{constructor(e){super("bytes",e)}decode(e){return(0,g.c$)(super.decode(e))}}class E extends i.Ue{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,u.n)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,g.Lm)(s.V.dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,g.c$)(e.readBytes(this.size))}}let b=new Uint8Array([]);class v extends i.Ue{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(b)}decode(e){return e.readBytes(0),null}}let T=BigInt(0),w=BigInt(1),A=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class N extends i.Ue{size;signed;constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),(0,u.n)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,a.Ab)(s.V.dereference(t,this.type)),n=(0,a.dK)(A,8*i.Yx);if(this.signed){let e=(0,a.dK)(n,8*this.size-1);(r>e||r<-(e+w))&&this._throwError("value out-of-bounds",t),r=(0,a.JJ)(r,8*i.Yx)}else(r<T||r>(0,a.dK)(n,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,a.dK)(e.readValue(),8*this.size);return this.signed&&(t=(0,a.ST)(t,8*this.size)),t}}var S=r(60259);class _ extends m{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,S.YW)(s.V.dereference(t,"string")))}decode(e){return(0,S._v)(super.decode(e))}}class x extends i.Ue{coders;constructor(e,t){let r=!1,n=[];
3e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),(0,u.n)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){let r=s.V.dereference(t,"tuple");return d(e,this.coders,r)}decode(e){return f(e,this.coders)}}var I=r(13942);let O=new Map;O.set(0,"GENERIC_PANIC"),O.set(1,"ASSERT_FALSE"),O.set(17,"OVERFLOW"),O.set(18,"DIVIDE_BY_ZERO"),O.set(33,"ENUM_RANGE_ERROR"),O.set(34,"BAD_STORAGE_DATA"),O.set(49,"STACK_UNDERFLOW"),O.set(50,"ARRAY_RANGE_ERROR"),O.set(65,"OUT_OF_MEMORY"),O.set(81,"UNINITIALIZED_FUNCTION_CALL");let R=new RegExp(/^bytes([0-9]*)$/),P=new RegExp(/^(u?int)([0-9]*)$/),M=null,C=1024;function k(e,t,r,i){let a="missing revert data",s=null,l=null,u=null;if(r){a="execution reverted";let e=(0,g.q5)(r);if(r=(0,g.c$)(r),0===e.length)a+=" (no data present; likely require(false) occurred",s="require(false)";else if(e.length%32!=4)a+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,g.c$)(e.slice(0,4)))try{s=i.decode(["string"],e.slice(4))[0],u={signature:"Error(string)",name:"Error",args:[s]},a+=`: ${JSON.stringify(s)}`}catch(e){a+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,g.c$)(e.slice(0,4)))try{let t=Number(i.decode(["uint256"],e.slice(4))[0]);u={signature:"Panic(uint256)",name:"Panic",args:[t]},s=`Panic due to ${O.get(t)||"UNKNOWN"}(${t})`,a+=`: ${s}`}catch(e){a+=" (could not decode panic code)"}else a+=" (unknown custom error)"}let c={to:t.to?(0,o.b)(t.to):null,data:t.data||"0x"};return t.from&&(c.from=(0,o.b)(t.from)),(0,n.xz)(a,"CALL_EXCEPTION",{action:e,data:r,reason:s,transaction:c,invocation:l,revert:u})}class L{#c(e){if(e.isArray())return new h(this.#c(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new x(e.components.map(e=>this.#c(e)),e.name);switch(e.baseType){case"address":return new l(e.name);case"bool":return new p(e.name);case"string":return new _(e.name);case"bytes":return new y(e.name);case"":return new v(e.name)}let t=e.type.match(P);if(t){let r=parseInt(t[2]||"256");return(0,n.MR)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new N(r/8,"int"===t[1],e.name)}if(t=e.type.match(R)){let r=parseInt(t[1]);return(0,n.MR)(0!==r&&r<=32,"invalid bytes length","param",e),new E(r,e.name)}(0,n.MR)(!1,"invalid type","type",e.type)}getDefaultValue(e){return new x(e.map(e=>this.#c(I.aX.from(e))),"_").defaultValue()}encode(e,t){(0,n.dd)(t.length,e.length,"types/values length mismatch");let r=new x(e.map(e=>this.#c(I.aX.from(e))),"_"),o=new i.AU;return r.encode(o,t),o.data}decode(e,t,r){return new x(e.map(e=>this.#c(I.aX.from(e))),"_").decode(new i.mP(t,r,C))}static _setDefaultMaxInflation(e){(0,n.MR)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),C=e}static defaultAbiCoder(){return null==M&&(M=new L),M}static getBuiltinCallException(e,t,r){return k(e,t,r,L.defaultAbiCoder())}}},45423:function(e,t,r){"use strict";var n=r(14790).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numbersTypeMap=t.bool=t.i512=t.i256=t.i128=t.i64=t.i32=t.i16=t.i8=t.u512=t.u256=t.u128=t.u64=t.u32=t.u16=t.u8=void 0;let o=i(r(56875)),a=r(5162);function s(e,t){return{write:function(e,t,r){let i=(o.default.isBN(r)?r:new o.default(r)).toArray("le",this.byteSize);n.from(i).copy(e,t,0,this.byteSize)},read:function(e,t){let r=e.slice(t,t+this.byteSize);return new o.default(r,"le")},byteSize:e,description:t}}function l(e,t){let r=8*e;return{write:function(e,t,i){let a=(o.default.isBN(i)?i:new o.default(i)).toTwos(r).toArray("le",this.byteSize);n.from(a).copy(e,t,0,this.byteSize)},read:function(e,t){let n=e.slice(t,t+this.byteSize);return new o.default(n,"le").fromTwos(r)},byteSize:e,description:t}}t.u8={write:function(e,t,r){e.writeUInt8(r,t)},read:function(e,t){return e.readUInt8(t)},byteSize:1,description:"u8"},t.u16={write:function(e,t,r){e.writeUInt16LE(r,t)},read:function(e,t){return e.readUInt16LE(t)},byteSize:2,description:"u16"},t.u32={write:function(e,t,r){e.writeUInt32LE(r,t)},read:function(e,t){return e.readUInt32LE(t)},byteSize:4,description:"u32"},t.u64=s(8,"u64"),t.u128=s(16,"u128"),t.u256=s(32,"u256"),t.u512=s(64,"u512"),t.i8={write:function(e,t,r){e.writeInt8(r,t)},read:function(e,t){return e.readInt8(t)},byteSize:1,description:"i8"},t.i16={write:function(e,t,r){e.writeInt16LE(r,t)},read:function(e,t){return e.readInt16LE(t)},byteSize:2,description:"i16"},t.i32={write:function(e,t,r){e.writeInt32LE(r,t)},read:function(e,t){return e.readInt32LE(t)},byteSize:4,description:"i32"},t.i64=l(8,"i64"),t.i128=l(16,"i128"),t.i256=l(32,"i256"),t.i512=l(64,"i512"),t.bool={write:function(e,r,n){let i=+!!n;t.u8.write(e,r,i)},read:function(e,r){return 1===t.u8.read(e,r)},byteSize:1,description:"bool"},t.numbersTypeMap={u8:{beet:"u8",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"},u16:{beet:"u16",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"},u32:{beet:"u32",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"},i8:{beet:"i8",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"}
3,i16:{beet:"i16",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"},i32:{beet:"i32",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"number"},bool:{beet:"bool",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"boolean"},u64:{beet:"u64",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},u128:{beet:"u128",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},u256:{beet:"u256",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},u512:{beet:"u512",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},i64:{beet:"i64",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},i128:{beet:"i128",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},i256:{beet:"i256",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE},i512:{beet:"i512",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"bignum",pack:a.BEET_PACKAGE}}},45923:(e,t,r)=>{"use strict";r.d(t,{s:()=>u});var n=r(93224),i=r(18897),o=r(7879),a=r(14080);function s(e){let t=(0,o.p)(e),r=(0,a.w)(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),(0,i.b)(r)}var l=r(6816);function u(e){let t=(0,l.a)(e);return Math.round(((0,i.b)(t)-s(t))/n.my)+1}},46381:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<e.length;n++){var i=e.charAt(n),o=i.charCodeAt(0);if(255!==t[o])throw TypeError(i+" is ambiguous");t[o]=n}var a=e.length,s=e.charAt(0),l=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,n=0,i=0;e[r]===s;)n++,r++;for(var o=(e.length-r)*l+1>>>0,u=new Uint8Array(o);e[r];){var c=e.charCodeAt(r);if(c>255)return;var d=t[c];if(255===d)return;for(var f=0,h=o-1;(0!==d||f<i)&&-1!==h;h--,f++)d+=a*u[h]>>>0,u[h]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");i=f,r++}for(var p=o-i;p!==o&&0===u[p];)p++;for(var g=new Uint8Array(n+(o-p)),m=n;p!==o;)g[m++]=u[p++];return g}function d(e){var t=c(e);if(t)return t;throw Error("Non-base"+a+" character")}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var l=(o-i)*u+1>>>0,c=new Uint8Array(l);i!==o;){for(var d=t[i],f=0,h=l-1;(0!==d||f<n)&&-1!==h;h--,f++)d+=256*c[h]>>>0,c[h]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error("Non-zero carry");n=f,i++}for(var p=l-n;p!==l&&0===c[p];)p++;for(var g=s.repeat(r);p<l;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:c,decode:d}}},46743:(e,t,r)=>{var n=r(55036);function i(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function a(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}function s(){try{return localStorage}catch(e){}}t.formatArgs=function t(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=o,t.load=a,t.useColors=i,t.storage=s(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
3CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(36704)(t);let{formatters:l}=e.exports;l.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},47532:(e,t,r)=>{"use strict";var n=r(30585),i=r(23742),o=r(9682);e.exports=r(19437)||n.call(o,i)},48832:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(6816);function i(e){let t=(0,n.a)(e);return t.setHours(0,0,0,0),t}},49054:function(e){!function(t,r){e.exports=r()}(0,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){let n=r(1),i=r(2),o=[,,,,];function a(e){for(let e=0;e<o.length;e++)o[e]=0;for(let t=0;t<e.length;t++)o[t%4]=(o[t%4]<<5)-o[t%4]+e.charCodeAt(t)}function s(){let e=o[0]^o[0]<<11;return o[0]=o[1],o[1]=o[2],o[2]=o[3],o[3]=o[3]^o[3]>>19^e^e>>8,(o[3]>>>0)/0x80000000}function l(){let e=Math.floor(360*s());return[e/360,(60*s()+40)/100,(s()+s()+s()+s())*25/100]}function u(e){let t=e,r=e,n=Math.ceil(t/2),i=t-n,o=[];for(let e=0;e<r;e++){let e=[];for(let t=0;t<n;t++)e[t]=Math.floor(2.3*s());let t=e.slice(0,i).reverse();e=e.concat(t);for(let t=0;t<e.length;t++)o.push(e[t])}return o}function c(e,t,r,n,i,o){for(let a=0;a<n;a++)for(let n=0;n<i;n++)e.buffer[e.index(t+a,r+n)]=o}function d(e){if(!e.seed)throw Error("No seed provided");return a(e.seed),Object.assign({size:8,scale:16,color:l(),bgcolor:l(),spotcolor:l()},e)}e.exports=function(e){let t=d({seed:e.toLowerCase()}),r=u(t.size),o=Math.sqrt(r.length),a=new n(t.size*t.scale,t.size*t.scale,3);a.color(...i(...t.bgcolor));let s=a.color(...i(...t.color)),l=a.color(...i(...t.spotcolor));for(let e=0;e<r.length;e++){let n=Math.floor(e/o),i=e%o;if(r[e]){let o=1==r[e]?s:l;c(a,i*t.scale,n*t.scale,t.scale,t.scale,o)}}return`data:image/png;base64,${a.getBase64()}`}},function(e,t){e.exports=function(e,t,r){function n(e,t){for(var r=2;r<arguments.length;r++)for(var n=0;n<arguments[r].length;n++)e[t++]=arguments[r].charAt(n)}function i(e){return String.fromCharCode(e>>8&255,255&e)}function o(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function a(e){return String.fromCharCode(255&e,e>>8&255)}this.width=e,this.height=t,this.depth=r,this.pix_size=t*(e+1),this.data_size=2+this.pix_size+5*Math.floor((65534+this.pix_size)/65535)+4,this.ihdr_offs=0,this.ihdr_size=25,this.plte_offs=this.ihdr_offs+this.ihdr_size,this.plte_size=8+3*r+4,this.trns_offs=this.plte_offs+this.plte_size,this.trns_size=8+r+4,this.idat_offs=this.trns_offs+this.trns_size,this.idat_size=8+this.data_size+4,this.iend_offs=this.idat_offs+this.idat_size,this.iend_size=12,this.buffer_size=this.iend_offs+this.iend_size,this.buffer=[],this.palette={},this.pindex=0;for(var s,l,u=[],c=0;c<this.buffer_size;c++)this.buffer[c]="\0";n(this.buffer,this.ihdr_offs,o(this.ihdr_size-12),"IHDR",o(e),o(t),"\b\x03"),n(this.buffer,this.plte_offs,o(this.plte_size-12),"PLTE"),n(this.buffer,this.trns_offs,o(this.trns_size-12),"tRNS"),n(this.buffer,this.idat_offs,o(this.idat_size-12),"IDAT"),n(this.buffer,this.iend_offs,o(this.iend_size-12),"IEND");var d=30912;d+=31-d%31,n(this.buffer,this.idat_offs+8,i(d));for(var c=0;(c<<16)-1<this.pix_size;c++)c+65535<this.pix_size?(s=65535,l="\0"):(s=this.pix_size-(c<<16)-c,l="\x01"),n(this.buffer,this.idat_offs+8+2+(c<<16)+(c<<2),l,a(s),a(~s));for(var c=0;c<256;c++){for(var f=c,h=0;h<8;h++)f=1&f?-0x12477ce0^f>>1&0x7fffffff:f>>1&0x7fffffff;u[c]=f}this.index=function(e,t){var r=t*(this.width+1)+e+1;return this.idat_offs+8+2+5*Math.floor(r/65535+1)+r},this.color=function(e,t,r,n){var i=(((n=n>=0?n:255)<<8|e)<<8|t)<<8|r;if(void 0===this.palette[i]){if(this.pindex==this.depth)return"\0";var o=this.plte_offs+8+3*this.pindex;this.buffer[o+0]=String.fromCharCode(e),this.buffer[o+1]=String.fromCharCode(t),this.buffer[o+2]=String.fromCharCode(r),this.buffer[this.trns_offs+8+this.pindex]=String.fromCharCode(n),this.palette[i]=String.fromCharCode(this.pindex++)}return this.palette[i]},this.getBase64=function(){var e,t,r,n,i,o,a,s=this.getDump(),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
3+/=",u=s.length,c=0,d="";do n=(e=s.charCodeAt(c))>>2,i=(3&e)<<4|(t=s.charCodeAt(c+1))>>4,r=s.charCodeAt(c+2),o=u<c+2?64:(15&t)<<2|r>>6,a=u<c+3?64:63&r,d+=l.charAt(n)+l.charAt(i)+l.charAt(o)+l.charAt(a);while((c+=3)<u);return d},this.getDump=function(){for(var e=65521,t=5552,r=1,i=0,a=5552,s=0;s<this.height;s++)for(var l=-1;l<this.width;l++)r+=this.buffer[this.index(l,s)].charCodeAt(0),i+=r,0==(a-=1)&&(r%=e,i%=e,a=t);function c(e,t,r){for(var i=-1,a=4;a<r-4;a+=1)i=u[(i^e[t+a].charCodeAt(0))&255]^i>>8&0xffffff;n(e,t+r-4,o(-1^i))}return r%=e,i%=e,n(this.buffer,this.idat_offs+this.idat_size-8,o(i<<16|r)),c(this.buffer,this.ihdr_offs,this.ihdr_size),c(this.buffer,this.plte_offs,this.plte_size),c(this.buffer,this.trns_offs,this.trns_size),c(this.buffer,this.idat_offs,this.idat_size),c(this.buffer,this.iend_offs,this.iend_size),"\x89PNG\r\n\x1a\n"+this.buffer.join("")}}},function(e,t){function r(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}e.exports=function(e,t,n){let i,o,a;if(0==t)i=o=a=n;else{let s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=r(l,s,e+1/3),o=r(l,s,e),a=r(l,s,e-1/3)}return[Math.round(255*i),Math.round(255*o),Math.round(255*a),255]}}])})},49252:(e,t,r)=>{"use strict";var n=r(52877),i=r(93758),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},49524:(e,t,r)=>{"use strict";var n=r(64143);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(89932),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),l=0,u=t;l<s.length;l++,u+=4)o="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[l]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l,u=t;return e+r+i+a+(l=0+ +((u=u+n>>>0)<t)+ +((u=u+o>>>0)<o)+ +((u=u+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,u){var c,d=t;return e+r+i+a+l+(c=0+ +((d=d+n>>>0)<t)+ +((d=d+o>>>0)<o)+ +((d=d+s>>>0)<s)+ +((d=d+u>>>0)<u))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},49938:(e,t,r)=>{e.exports=r(68910).Symbol},49977:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});
3var n=r(35),i=r(8766),o=r(82626);function a(e){return function t(r,a,s){switch(arguments.length){case 0:return t;case 1:return(0,o.A)(r)?t:(0,i.A)(function(t,n){return e(r,t,n)});case 2:return(0,o.A)(r)&&(0,o.A)(a)?t:(0,o.A)(r)?(0,i.A)(function(t,r){return e(t,a,r)}):(0,o.A)(a)?(0,i.A)(function(t,n){return e(r,t,n)}):(0,n.A)(function(t){return e(r,a,t)});default:return(0,o.A)(r)&&(0,o.A)(a)&&(0,o.A)(s)?t:(0,o.A)(r)&&(0,o.A)(a)?(0,i.A)(function(t,r){return e(t,r,s)}):(0,o.A)(r)&&(0,o.A)(s)?(0,i.A)(function(t,r){return e(t,a,r)}):(0,o.A)(a)&&(0,o.A)(s)?(0,i.A)(function(t,n){return e(r,t,n)}):(0,o.A)(r)?(0,n.A)(function(t){return e(t,a,s)}):(0,o.A)(a)?(0,n.A)(function(t){return e(r,t,s)}):(0,o.A)(s)?(0,n.A)(function(t){return e(r,a,t)}):e(r,a,s)}}}},50515:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(11082);function i(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function o(e,t,r){return function(){if(0==arguments.length)return r();var o=arguments[arguments.length-1];if(!(0,n.A)(o)){for(var a=0;a<e.length;){if("function"==typeof o[e[a]])return o[e[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(i(o)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return r.apply(this,arguments)}}},50682:(e,t,r)=>{"use strict";r.d(t,{k:()=>rw});var n,i,o,a=r(34902),s=r(46452),l=r(37877);let u=e=>({decode:e.decode.bind(e),encode:e.encode.bind(e)});var c=r(14790).Buffer;let d=e=>t=>{let r=(0,s.blob)(e,t),{encode:n,decode:i}=u(r),o=r;return o.decode=(e,t)=>{let r=i(e,t);return(0,l.toBigIntLE)(c.from(r))},o.encode=(t,r,i)=>n((0,l.toBufferLE)(t,e),r,i),o},f=e=>t=>{let r=(0,s.blob)(e,t),{encode:n,decode:i}=u(r),o=r;return o.decode=(e,t)=>{let r=i(e,t);return(0,l.toBigIntBE)(c.from(r))},o.encode=(t,r,i)=>n((0,l.toBufferBE)(t,e),r,i),o},h=d(8);f(8),d(16),f(16),d(24),f(24),d(32),f(32);var p=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,g=Math.ceil,m=Math.floor,y="[BigNumber Error] ",E=y+"Number primitive has more than 15 significant digits: ",b=1e14,v=14,T=0x1fffffffffffff,w=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,N=1e9;function S(e){var t,r,n,i=B.prototype={constructor:B,toString:null,valueOf:null},o=new B(1),a=20,s=4,l=-7,u=21,c=-1e7,d=1e7,f=!1,h=1,C=0,k={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz",D=!0;function B(e,t){var i,o,l,u,f,h,g,y,b=this;if(!(b instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){b.s=e.s,!e.c||e.e>d?b.c=b.e=null:e.e<c?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice());return}if((h="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);u>d?b.c=b.e=null:(b.e=u,b.c=[e]);return}y=String(e)}else{if(!p.test(y=String(e)))return n(b,y,h);b.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(f=y.search(/e/i))>0?(u<0&&(u=f),u+=+y.slice(f+1),y=y.substring(0,f)):u<0&&(u=y.length)}else{if(O(t,2,L.length,"Base"),10==t&&D)return j(b=new B(e),a+b.e+1,s);if(y=String(e),h="number"==typeof e){if(0*e!=0)return n(b,y,h,t);if(b.s=1/e<0?(y=y.slice(1),-1):1,B.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(E+e)}else b.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(i=L.slice(0,t),u=f=0,g=y.length;f<g;f++)if(0>i.indexOf(o=y.charAt(f))){if("."==o){if(f>u){u=g;continue}}else if(!l&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){l=!0,f=-1,u=0;continue}return n(b,String(e),h,t)}h=!1,(u=(y=r(y,t,10,b.s)).indexOf("."))>-1?y=y.replace(".",""):u=y.length}for(f=0;48===y.charCodeAt(f);f++);for(g=y.length;48===y.charCodeAt(--g););if(y=y.slice(f,++g)){if(g-=f,h&&B.DEBUG&&g>15&&(e>T||e!==m(e)))throw Error(E+b.s*e);if((u=u-f-1)>d)b.c=b.e=null;else if(u<c)b.c=[b.e=0];else{if(b.e=u,b.c=[],f=(u+1)%v,u<0&&(f+=v),f<g){for(f&&b.c.push(+y.slice(0,f)),g-=v;f<g;)b.c.push(+y.slice(f,f+=v));f=v-(y=y.slice(f)).length}else f-=g;for(;f--;y+="0");b.c.push(+y)}}else b.c=[b.e=0]}function V(e,t,r,n){var i,o,a,c,d;if(null==r?r=s:O(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)d=x(e.c),d=1==n||2==n&&(a<=l||a>=u)?P(d,a):M(d,a,"0");else if(o=(e=j(new B(e),t,r)).e,c=(d=x(e.c)).length,1==n||2==n&&(t<=o||o<=l)){for(;c<t;d+="0",c++);d=P(d,o)}else if(t-=a+(2===n&&o>a),d=M(d,o,"0"),o+1>c){if(--t>0)for(d+=".";t--;d+="0");}else if((t+=o-c)>
30)for(o+1==c&&(d+=".");t--;d+="0");return e.s<0&&i?"-"+d:d}function F(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(n=new B(e[i])).s&&(r=I(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function U(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*v-1)>d?e.c=e.e=null:r<c?e.c=[e.e=0]:(e.e=r,e.c=t),e}function j(e,t,r,n){var i,o,a,s,l,u,f,h=e.c,p=w;if(h){e:{for(i=1,s=h[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=v,a=t,f=m((l=h[u=0])/p[i-a-1]%10);else if((u=g((o+1)/v))>=h.length)if(n){for(;h.length<=u;h.push(0));l=f=0,i=1,o%=v,a=o-v+1}else break e;else{for(i=1,l=s=h[u];s>=10;s/=10,i++);o%=v,f=(a=o-v+i)<0?0:m(l/p[i-a-1]%10)}if(n=n||t<0||null!=h[u+1]||(a<0?l:l%p[i-a-1]),n=r<4?(f||n)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||n||6==r&&(o>0?a>0?l/p[i-a]:0:h[u-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,n?(t-=e.e+1,h[0]=p[(v-t%v)%v],e.e=-t||0):h[0]=e.e=0,e;if(0==o?(h.length=u,s=1,u--):(h.length=u+1,s=p[v-o],h[u]=a>0?m(l/p[i-a]%p[a])*s:0),n)for(;;)if(0==u){for(o=1,a=h[0];a>=10;a/=10,o++);for(a=h[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,h[0]==b&&(h[0]=1));break}else{if(h[u]+=s,h[u]!=b)break;h[u--]=0,s=1}for(o=h.length;0===h[--o];h.pop());}e.e>d?e.c=e.e=null:e.e<c&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=x(e.c),t=r<=l||r>=u?P(t,r):M(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=S,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(O(r=e[t],0,N,t),a=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(O(r=e[t],0,8,t),s=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(O(r[0],-N,0,t),O(r[1],0,N,t),l=r[0],u=r[1]):(O(r,-N,N,t),l=-(u=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)O(r[0],-N,-1,t),O(r[1],1,N,t),c=r[0],d=r[1];else if(O(r,-N,N,t),r)c=-(d=r<0?-r:r);else throw Error(y+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=r;else throw f=!r,Error(y+"crypto unavailable");else f=r;else throw Error(y+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(O(r=e[t],0,9,t),h=r),e.hasOwnProperty(t="POW_PRECISION")&&(O(r=e[t],0,N,t),C=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))k=r;else throw Error(y+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(y+t+" invalid: "+r);D="0123456789"==r.slice(0,10),L=r}}else throw Error(y+"Object expected: "+e);return{DECIMAL_PLACES:a,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:f,MODULO_MODE:h,POW_PRECISION:C,FORMAT:k,ALPHABET:L}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}
vendor: 6,449 bytes, line 3
3).toString.call(n)){if((1===o||-1===o)&&i>=-N&&i<=N&&i===m(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%v)<1&&(t+=v),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=b||r!==m(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(y+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return F(arguments,-1)},B.minimum=B.min=function(){return F(arguments,1)},B.random=function(){var e=0x20000000000000,t=0x20000000000000*Math.random()&2097151?function(){return m(Math.random()*e)}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)};return function(e){var r,n,i,s,l,u=0,c=[],d=new B(o);if(null==e?e=a:O(e,0,N),s=g(e/v),f)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(s*=2));u<s;)(l=131072*r[u]+(r[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[u]=n[0],r[u+1]=n[1]):(c.push(l%1e14),u+=2);u=s/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(s*=7);u<s;)(l=(31&r[u])*0x1000000000000+0x10000000000*r[u+1]+0x100000000*r[u+2]+0x1000000*r[u+3]+(r[u+4]<<16)+(r[u+5]<<8)+r[u+6])>=9e15?crypto.randomBytes(7).copy(r,u):(c.push(l%1e14),u+=7);u=s/7}else throw f=!1,Error(y+"crypto unavailable");if(!f)for(;u<s;)(l=t())<9e15&&(c[u++]=l%1e14);for(s=c[--u],e%=v,s&&e&&(l=w[v-e],c[u]=m(s/l)*l);0===c[u];c.pop(),u--);if(u<0)c=[i=0];else{for(i=-1;0===c[0];c.splice(0,1),i-=v);for(u=1,l=c[0];l>=10;l/=10,u++);u<v&&(i-=v-u)}return d.e=i,d.c=c,d}}(),B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},r=function(){var e="0123456789";function r(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,l,u){var c,d,f,h,p,g,m,y,E=n.indexOf("."),b=a,v=s;for(E>=0&&(h=C,C=0,n=n.replace(".",""),g=(y=new B(i)).pow(n.length-E),C=h,y.c=r(M(x(g.c),g.e,"0"),10,o,e),y.e=y.c.length),f=h=(m=r(n,i,o,u?(c=L,e):(c=e,L))).length;0==m[--h];m.pop());if(!m[0])return c.charAt(0);if(E<0?--f:(g.c=m,g.e=f,g.s=l,m=(g=t(g,y,b,v,o)).c,p=g.r,f=g.e),E=m[d=f+b+1],h=o/2,p=p||d<0||null!=m[d+1],p=v<4?(null!=E||p)&&(0==v||v==(g.s<0?3:2)):E>h||E==h&&(4==v||p||6==v&&1&m[d-1]||v==(g.s<0?8:7)),d<1||!m[0])n=p?M(c.charAt(1),-b,c.charAt(0)):c.charAt(0);else{if(m.length=d,p)for(--o;++m[--d]>o;)m[d]=0,d||(++f,m=[1].concat(m));for(h=m.length;!m[--h];);for(E=0,n="";E<=h;n+=c.charAt(m[E++]));n=M(n,f,c.charAt(0))}return n}}(),t=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%A,c=t/A|0;for(e=e.slice();l--;)n=c*(o=e[l]%A)+(a=e[l]/A|0)*u,s=((i=u*o+n%A*A+s)/r|0)+(n/A|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,u,c,d,f,h,p,g,y,E,T,w,A,N,S,x,I,O=n.s==i.s?1:-1,R=n.c,P=i.c;if(!R||!R[0]||!P||!P[0])return new B(!n.s||!i.s||(R?P&&R[0]==P[0]:!P)?NaN:R&&0==R[0]||!P?0*O:O/0);for(y=(g=new B(O)).c=[],O=o+(u=n.e-i.e)+1,s||(s=b,u=_(n.e/v)-_(i.e/v),O=O/v|0),c=0;P[c]==(R[c]||0);c++);if(P[c]>(R[c]||0)&&u--,O<0)y.push(1),d=!0;else{for(N=R.length,x=P.length,c=0,O+=2,(f=m(s/(P[0]+1)))>1&&(P=e(P,f,s),R=e(R,f,s),x=P.length,N=R.length),A=x,T=(E=R.slice(0,x)).length;T<x;E[T++]=0);I=[0].concat(I=P.slice()),S=P[0],P[1]>=s/2&&S++;do{if(f=0,(l=t(P,E,x,T))<0){if(w=E[0],x!=T&&(w=w*s+(E[1]||0)),(f=m(w/S))>1)for(f>=s&&(f=s-1),p=(h=e(P,f,s)).length,T=E.length;1==t(h,E,p,T);)f--,r(h,x<p?I:P,p,s),p=h.length,l=1;else 0==f&&(l=f=1),p=(h=P.slice()).length;if(p<T&&(h=[0].concat(h)),r(E,h,T,s),T=E.length,-1==l)for(;1>t(P,E,x,T);)f++,r(E,x<T?I:P,T,s),T=E.length}else 0===l&&(f++,E=[0]);y[c++]=f,E[0]?E[T++]=R[A]||0:(E=[R[A]],T=1)}while((A++<N||null!=E[0])&&O--);d=null!=E[0],y[0]||y.splice(0,1)}if(s==b){for(c=1,O=y[0];O>=10;O/=10,c++);j(g,o+(g.e=c+u*v-1)+1,a,d)}else g.e=u,g.r=+d;return g}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,l){var u,c=s?a:a.replace(i,"");if(n.test(c))o.s=isNaN(c)?null:c<0?-1:1;else{if(!s&&(c=c.replace(e,function(e,t,r){return u="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=u?e:t}),l&&(u=l,c=c.replace(t,"$1").replace(r,"0.$1")),a!=c))return new B(c,u);if(B.DEBUG)throw Error(y+"Not a"+(l?" base "+l:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),i.absoluteValue=i.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return I(this,new B(e,t))},i.decimalPlaces=i.dp=function(e,t){var r,n,i,o=this;if(null!=e)return O(e,0,N),null==t?t=s:O(t,0,8),j(new B(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-_(this.e/v))*v,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},i.dividedBy=i.div=function(e,r){return t(this,new B(e,r),a,s)},i.dividedToIntegerBy=i.idiv=function(e,r){return t(this,new B(e,r),0,1)},i.exponentiatedBy=i.pow=function(e,t){var r,n,i,a,l,u,c,d,f,h=this;if((e=new B(e)).c&&!e.isInteger())throw Error(y+"Exponent not an integer: "+H(e));if(null!=t&&(t=new B(t)),u=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new B(Math.pow(+H(h),u?e.s*(2-R(e)):+H(e))),t?f.mod(t):f;if(c=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(n=!c&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||u&&h.c[1]>=24e7:h.c[0]<8e13||u&&h.c[0]<=9999975e7)))return a=h.s<0&&R(e)?-0:0,h.e>-1&&(a=1/a),new B(c?1/a:a);C&&(a=g(C/v+2))}for(u?(r=new B(.5),c&&(e.s=1),d=R(e)):d=(i=Math.abs(+H(e)))%2,f=new B(o);;){if(d){if(!(f=f.times(h)).c)break;a?f.c.length>a&&(f.c.length=a):n&&(f=f.mod(t))}if(i){if(0===(i=m(i/2)))break;d=i%2}else if(j(e=e.times(r),e.e+1,1),e.e>14)d=R(e);else{if(0==(i=+H(e)))break;d=i%2}h=h.times(h),a?h.c&&h.c.length>a&&(h.c.length=a):n&&(h=h.mod(t))}return n?f:(c&&(f=o.div(f)),t?f.mod(t):a?j(f,C,s,l):f)},i.integerValue=function(e){var t=new B(this);return null==e?e=s:O(e,0,8),j(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===I(this,new B(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return I(this,new B(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=I(this,new B(e,t)))||0===t},i.isInteger=function(){return!!this.c&&_(this.e/v)>
vendor: 4,765 bytes, line 3
3this.c.length-2},i.isLessThan=i.lt=function(e,t){return 0>I(this,new B(e,t))},i.isLessThanOrEqualTo=i.lte=function(e,t){return -1===(t=I(this,new B(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var r,n,i,o,a=this,l=a.s;if(t=(e=new B(e,t)).s,!l||!t)return new B(NaN);if(l!=t)return e.s=-t,a.plus(e);var u=a.e/v,c=e.e/v,d=a.c,f=e.c;if(!u||!c){if(!d||!f)return d?(e.s=-t,e):new B(f?a:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new B(d[0]?a:3==s?-0:0)}if(u=_(u),c=_(c),d=d.slice(),l=u-c){for((o=l<0)?(l=-l,i=d):(c=u,i=f),i.reverse(),t=l;t--;i.push(0));i.reverse()}else for(n=(o=(l=d.length)<(t=f.length))?l:t,l=t=0;t<n;t++)if(d[t]!=f[t]){o=d[t]<f[t];break}if(o&&(i=d,d=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=d.length))>0)for(;t--;d[r++]=0);for(t=b-1;n>l;){if(d[--n]<f[n]){for(r=n;r&&!d[--r];d[r]=t);--d[r],d[n]+=b}d[n]-=f[n]}for(;0==d[0];d.splice(0,1),--c);return d[0]?U(e,d,c):(e.s=3==s?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,r){var n,i,o=this;return(e=new B(e,r),o.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!o.c||o.c[0])?(9==h?(i=e.s,e.s=1,n=t(o,e,0,3),e.s=i,n.s*=i):n=t(o,e,0,h),(e=o.minus(n.times(e))).c[0]||1!=h||(e.s=o.s),e):new B(o):new B(NaN)},i.multipliedBy=i.times=function(e,t){var r,n,i,o,a,s,l,u,c,d,f,h,p,g,m,y=this,E=y.c,T=(e=new B(e,t)).c;if(!E||!T||!E[0]||!T[0])return y.s&&e.s&&(!E||E[0]||T)&&(!T||T[0]||E)?(e.s*=y.s,E&&T?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=_(y.e/v)+_(e.e/v),e.s*=y.s,(l=E.length)<(d=T.length)&&(p=E,E=T,T=p,i=l,l=d,d=i),i=l+d,p=[];i--;p.push(0));for(g=b,m=A,i=d;--i>=0;){for(r=0,f=T[i]%m,h=T[i]/m|0,o=i+(a=l);o>i;)s=h*(u=E[--a]%m)+(c=E[a]/m|0)*f,r=((u=f*u+s%m*m+p[o]+r)/g|0)+(s/m|0)+h*c,p[o--]=u%g;p[o]=r}return r?++n:p.splice(0,1),U(e,p,n)},i.negated=function(){var e=new B(this);return e.s=-e.s||null,e},i.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new B(e,t)).s,!i||!t)return new B(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/v,a=e.e/v,s=n.c,l=e.c;if(!o||!a){if(!s||!l)return new B(i/0);if(!s[0]||!l[0])return l[0]?e:new B(s[0]?n:0*i)}if(o=_(o),a=_(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=l):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=l.length)<0&&(r=l,l=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+l[t]+i)/b|0,s[t]=b===s[t]?0:s[t]%b;return i&&(s=[i].concat(s),++a),U(e,s,a)},i.precision=i.sd=function(e,t){var r,n,i,o=this;if(null!=e&&!!e!==e)return O(e,1,N),null==t?t=s:O(t,0,8),j(new B(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*v+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},i.shiftedBy=function(e){return O(e,-T,T),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,r,n,i,o,l=this,u=l.c,c=l.s,d=l.e,f=a+4,h=new B("0.5");if(1!==c||!u||!u[0])return new B(!c||c<0&&(!u||u[0])?NaN:u?l:1/0);if(0==(c=Math.sqrt(+H(l)))||c==1/0?(((r=x(u)).length+d)%2==0&&(r+="0"),c=Math.sqrt(+r),d=_((d+1)/2)-(d<0||d%2),n=new B(r=c==1/0?"5e"+d:(r=c.toExponential()).slice(0,r.indexOf("e")+1)+d)):n=new B(c+""),n.c[0]){for((c=(d=n.e)+f)<3&&(c=0);;)if(o=n,n=h.times(o.plus(t(l,o,f,1))),x(o.c).slice(0,c)===(r=x(n.c)).slice(0,c)){if(n.e<d&&--c,"9999"!=(r=r.slice(c-3,c+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(j(n,n.e+a+2,1),e=!n.times(n).eq(l));break}if(!i&&(j(o,o.e+a+2,0),o.times(o).eq(l))){n=o;break}f+=4,c+=4,i=1}}return j(n,n.e+a+1,s,e)},i.toExponential=function(e,t){return null!=e&&(O(e,0,N),e++),V(this,e,t,1)},i.toFixed=function(e,t){return null!=e&&(O(e,0,N),e=e+this.e+1),V(this,e,t)},i.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=k;else if("object"!=typeof r)throw Error(y+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=a[0],d=a[1],f=i.s<0,h=f?c.slice(1):c,p=h.length;if(l&&(o=s,s=l,l=o,p-=o),s>0&&p>0){for(o=p%s||s,c=h.substr(0,o);o<p;o+=s)c+=u+h.substr(o,s);l>0&&(c+=u+h.slice(o)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},i.toFraction=function(e){var r,n,i,a,l,u,c,f,h,p,g,m,E=this,b=E.c;if(null!=e&&(!(c=new B(e)).isInteger()&&(c.c||1!==c.s)||c.lt(o)))throw Error(y+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+H(c));if(!b)return new B(E);for(r=new B(o),h=n=new B(o),i=f=new B(o),m=x(b),l=r.e=m.length-E.e-1,r.c[0]=w[(u=l%v)<0?v+u:u],e=!e||c.comparedTo(r)>0?l>0?r:h:c,u=d,d=1/0,c=new B(m),f.c[0]=0;p=t(c,r,0,1),1!=(a=n.plus(p.times(i))).comparedTo(e);)n=i,i=a,h=f.plus(p.times(a=h)),f=a,r=c.minus(p.times(a=r)),c=a;
3return a=t(e.minus(n),i,0,1),f=f.plus(a.times(h)),n=n.plus(a.times(i)),f.s=h.s=E.s,l*=2,g=1>t(h,i,l,s).minus(E).abs().comparedTo(t(f,n,l,s).minus(E).abs())?[h,i]:[f,n],d=u,g},i.toNumber=function(){return+H(this)},i.toPrecision=function(e,t){return null!=e&&O(e,1,N),V(this,e,t,2)},i.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=l||o>=u?P(x(n.c),o):M(x(n.c),o,"0"):10===e&&D?t=M(x((n=j(new B(n),a+o+1,s)).c),n.e,"0"):(O(e,2,L.length,"Base"),t=r(M(x(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return H(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,null!=e&&B.set(e),B}function _(e){var t=0|e;return e>0||e===t?t:t-1}function x(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=v-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function I(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function O(e,t,r,n){if(e<t||e>r||e!==m(e))throw Error(y+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function R(e){var t=e.c.length-1;return _(e.e/v)==t&&e.c[t]%2!=0}function P(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function M(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}new(S())("1e+18");let C=e=>{let t=(0,s.u8)(e),{encode:r,decode:n}=u(t),i=t;return i.decode=(e,t)=>!!n(e,t),i.encode=(e,t,n)=>r(Number(e),t,n),i};var k=r(95431);let L=e=>{let t=(0,s.blob)(32,e),{encode:r,decode:n}=u(t),i=t;return i.decode=(e,t)=>{let r=n(e,t);return new k.PublicKey(r)},i.encode=(e,t,n)=>r(e.toBuffer(),t,n),i};var D=r(26653);class B extends Error{constructor(e){super(e)}}class V extends B{constructor(){super(...arguments),this.name="TokenAccountNotFoundError"}}class F extends B{constructor(){super(...arguments),this.name="TokenInvalidAccountError"}}class U extends B{constructor(){super(...arguments),this.name="TokenInvalidAccountOwnerError"}}class j extends B{constructor(){super(...arguments),this.name="TokenInvalidAccountSizeError"}}class H extends B{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Mint=1]="Mint",e[e.Account=2]="Account"}(n||(n={}));let G=1,K=(0,s.struct)([(0,s.u8)("m"),(0,s.u8)("n"),C("isInitialized"),L("signer1"),L("signer2"),L("signer3"),L("signer4"),L("signer5"),L("signer6"),L("signer7"),L("signer8"),L("signer9"),L("signer10"),L("signer11")]).span;var z=r(9832).Buffer;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen"}(i||(i={}));let W=(0,s.struct)([L("mint"),L("owner"),h("amount"),(0,s.u32)("delegateOption"),L("delegate"),(0,s.u8)("state"),(0,s.u32)("isNativeOption"),h("isNative"),h("delegatedAmount"),(0,s.u32)("closeAuthorityOption"),L("closeAuthority")]),q=W.span;async function Y(e,t,r,n=D.x5){let i=await e.getAccountInfo(t,r);return $(t,i,n)}function $(e,t,r=D.x5){if(!t)throw new V;if(!t.owner.equals(r))throw new U;if(t.data.length<q)throw new j;let o=W.decode(t.data.slice(0,q)),a=z.alloc(0);if(t.data.length>q){if(t.data.length===K)throw new j;if(t.data[q]!=n.Account)throw new F;a=t.data.slice(q+G)}return{address:e,mint:o.mint,owner:o.owner,amount:o.amount,delegate:o.delegateOption?o.delegate:null,delegatedAmount:o.delegatedAmount,isInitialized:o.state!==i.Uninitialized,isFrozen:o.state===i.Frozen,isNative:!!o.isNativeOption,rentExemptReserve:o.isNativeOption?o.isNative:null,closeAuthority:o.closeAuthorityOption?o.closeAuthority:null,tlvData:a}}!function(e){e.Mainnet="mainnet-beta",e.Testnet="testnet",e.Devnet="devnet"}(o||(o={}));var X=r(25804);function J(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function Q(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function Z(e,...t){if(!Q(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function ee(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function et(e,t){Z(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}let er={bool:function(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)},bytes:Z},en=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),ei=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],eo=e=>e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255;function ea(e){for(let t=0;t<e.length;t++)e[t]=eo(e[t])}let es=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function el(e){Z(e);let t="";for(let r=0;r<e.length;r++)t+=es[e[r]];return t}let eu={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function ec(e){return e>=eu._0&&e<=eu._9?e-eu._0:e>=eu._A&&e<=eu._F?e-(eu._A-10):e>=eu._a&&e<=eu._f?e-(eu._a-10):void 0}function ed(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=ec(e.charCodeAt(i)),o=ec(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function ef(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function eh(e){return"string"==typeof e&&(e=ef(e)),Z(e),e}class ep{clone(){return this._cloneInto()}}function eg(e){let t=t=>e().update(eh(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function em(e){return ed(e.startsWith("0x")?e.substring(2):e)}function ey(e){return t=>(er.bytes(t),e(t))}er.bool,er.bytes,(()=>{let e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,t="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);return t&&!e&&t("crypto")})();var eE=r(71558),eb=r(55481),ev=r(32187);let eT=BigInt(0x100000000-1),ew=BigInt(32);function eA(e,t=!1){return t?{h:Number(e&eT),l:Number(e>>ew&eT)}:{h:0|Number(e>>ew&eT),l:0|Number(e&eT)}}function eN(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=eA(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}let eS=(e,t,r)=>e<<r|t>>>32-r,e_=(e,t,r)=>t<<r|e>>>32-r,ex=(e,t,r)=>t<<r-32|e>>>64-r,eI=(e,t,r)=>e<<r-32|t>>>64-r,eO=[],eR=[],eP=[],eM=BigInt(0),eC=BigInt(1),ek=BigInt(2),eL=BigInt(7),eD=BigInt(256),eB=BigInt(113);for(let e=0,t=eC,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],eO.push(2*(5*n+r)),eR.push((e+1)*(e+2)/2%64);let i=eM;for(let e=0;e<7;e++)(t=(t<<eC^(t>>eL)*eB)%eD)&ek&&(i^=eC<<(eC<<BigInt(e))-eC);eP.push(i)}let[eV,eF]=eN(eP,!0),eU=(e,t,r)=>r>32?ex(e,t,r):eS(e,t,r),ej=(e,t,r)=>r>32?eI(e,t,r):e_(e,t,r);function eH(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=eU(o,a,1)^r[n],l=ej(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=eR[r],o=eU(t,i,n),a=ej(t,i,n),s=eO[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=eV[n],e[1]^=eF[n]}r.fill(0)}class eG extends ep{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,J(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=en(this.state)}keccak(){ei||ea(this.state32),eH(this.state32,this.rounds),ei||ea(this.state32),this.posOut=0,this.pos=0}update(e){ee(this);let{blockLen:t,state:r}=this,n=(e=eh(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){ee(this,!1),Z(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return J(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(et(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new eG(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let eK=(e,t,r)=>eg(()=>new eG(t,e,r)),ez=eK(1,144,28),eW=eK(1,136,32),eq=eK(1,104,48),eY=eK(1,72,64);ey(ez);let e$=(()=>{let e=ey(eW);return e.create=eW.create,e})();ey(eq),ey(eY);var eX=r(37934),eJ=r(45348),eQ=r(58854),eZ=r(99308);function e0(e){return(0,eQ.bj)(e,32)}function e1(e){if(e3(e))return X.decode(e);if(e.startsWith("0x")&&e.length<=66)return(0,eQ.k9)(e0(e));throw Error("Invalid address")}r(14790).Buffer;var e2=/^([1-9A-HJ-NP-Za-km-z]{32,44})$/;function e3(e){return e2.test(e)}var e4=(e=>(e[e.TYPE_1=1]="TYPE_1",e[e.TYPE_2=2]="TYPE_2",e[e.TYPE_3=3]="TYPE_3",e))(e4||{});eZ.gH.from("0xffffffffffffffffffffffffffffffff");var e5=(e=>(e[e.EXECUTOR=1]="EXECUTOR",e[e.VERIFIER=2]="VERIFIER",e[e.TREASURY=255]="TREASURY",e))(e5||{}),e6=(e=>(e[e.LZ_RECEIVE=1]="LZ_RECEIVE",e[e.NATIVE_DROP=2]="NATIVE_DROP",e[e.COMPOSE=3]="COMPOSE",e[e.ORDERED=4]="ORDERED",e))(e6||{}),e8=(e=>(e[e.PRECRIME=1]="PRECRIME",e))(e8||{}),e7=r(86481);function e9(e,t,r=!1,n=D.x5,i=D.EK){if(!r&&!k.PublicKey.isOnCurve(t.toBuffer()))throw new H;let[o]=k.PublicKey.findProgramAddressSync([t.toBuffer(),n.toBuffer(),e.toBuffer()],i);return o}r(9832).Buffer,(0,s.struct)([(0,s.u32)("mintAuthorityOption"),L("mintAuthority"),h("supply"),(0,s.u8)("decimals"),C("isInitialized"),(0,s.u32)("freezeAuthorityOption"),L("freezeAuthority")]).span;var te=r(14790).Buffer,tt=Object.defineProperty,tr=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,ts=(e,t,r)=>t in e?tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tl=(e,t)=>
3{for(var r in t||(t={}))to.call(t,r)&&ts(e,r,t[r]);if(ti)for(var r of ti(t))ta.call(t,r)&&ts(e,r,t[r]);return e},tu=(e,t)=>tr(e,tn(t)),tc=(e,t,r)=>ts(e,"symbol"!=typeof t?t+"":t,r),td=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())});"undefined"!=typeof window&&(window.__ORDERLY_VERSION__=window.__ORDERLY_VERSION__||{},window.__ORDERLY_VERSION__["@orderly.network/default-solana-adapter"]="3.2.1");var tf=new k.PublicKey("76y77prsiCMvXMjuoZ5VRrhG5qYBrUMYTE5WgHqgjEn6"),th=new k.PublicKey("7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH"),tp=new k.PublicKey("6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"),tg=new k.PublicKey("8ahPGPjEbpgGaZx2NV1iG5Shj7TDwvsjkEDcGWjt94TP"),tm=th,ty=th,tE=new k.PublicKey("HtEYV4xB4wvsj5fgTkcfuChYpvGYzgzwvNhgDZQNh7wW"),tb=new k.PublicKey("5KAALa8AEEKnW6p6AacdnqNDmGMpfhwR7AEyWs1gUvsT"),tv=new k.PublicKey("4fs6aL12L18K5giDy9Dgxgrb3aNRYiuRV2a7JPPj3e7F"),tT=new k.PublicKey("4VDjp6XQaxoZf5RGwiPU9NR1EXSZn2TP4ATMmiSzLfhb"),tw=new k.PublicKey("7jMeX5mzXnSSKYd8DxBDP4xMnkNFZZZm5W28FWUTbwU3"),tA=new k.PublicKey("GPjyWr8vCotGuFubDpTxDxy9Vj1ZeEN4F2dwRmFiaGab"),tN="VaultAuthority",tS="Broker",t_="Token",tx="SolVault",tI=e1("0x9Dc724b24146BeDD2dA28b8C4B74126169B8f312"),tO=e1("0x45b6C6266A7A2170617d8A27A50C642fd68b91c4"),tR=e1("0x5Bf771A65d057e778C5f0Ed52A0003316f94322D"),tP=e1("0xCecAe061aa078e13b5e70D5F9eCee90a3F2B6AeA"),tM=40200,tC=30213,tk=new k.PublicKey("BWp8HaYYhiNHekt3zgQhqoCrRftneGxxfgKmCZ6svHN"),tL=new k.PublicKey("BswrQQoPKAFojTuJutZcBMtigAgTghEH4M8ofn3EG2X2"),tD=new k.PublicKey("BbGKfxuPwDmu58BjPpd7PMG69TqnZjSpKaLDMgf9E9Dr"),tB=new k.PublicKey("8iq7xCQt3bLdRRn4A46d5GuaXYinBoiAhbe2sUmZVzwg"),tV=new k.PublicKey("EYJq9eU4GMRUriUJBgGoZ8YLQBXcWaciXuSsEXE7ieQS"),tF=new k.PublicKey("5zBjLor7vEraAt4zp2H82sy9MSqFoDnNa1Lx6EYKTYRZ"),tU=new k.PublicKey("9shwxWDUNhtwkHocsUAmrNAQfBH2DHh4njdAEdHZZkF2"),tj=new k.PublicKey("ErBmAD61mGFKvrFNaTJuxoPwqrS8GgtwtqJTJVjFWx9Q"),tH={version:"0.1.0",name:"solana_vault",instructions:[{name:"setVault",accounts:[{name:"admin",isMut:!0,isSigner:!0},{name:"vaultAuthority",isMut:!0,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetVaultParams"}}]},{name:"deposit",accounts:[{name:"user",isMut:!0,isSigner:!0},{name:"userTokenAccount",isMut:!0,isSigner:!1},{name:"vaultAuthority",isMut:!0,isSigner:!1},{name:"vaultTokenAccount",isMut:!0,isSigner:!1},{name:"depositToken",isMut:!1,isSigner:!1},{name:"peer",isMut:!1,isSigner:!1},{name:"enforcedOptions",isMut:!1,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"allowedBroker",isMut:!1,isSigner:!1},{name:"allowedToken",isMut:!1,isSigner:!1},{name:"tokenProgram",isMut:!1,isSigner:!1},{name:"associatedTokenProgram",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"depositParams",type:{defined:"DepositParams"}},{name:"oappParams",type:{defined:"OAppSendParams"}}],returns:{defined:"MessagingReceipt"}},{name:"depositSol",accounts:[{name:"user",isMut:!0,isSigner:!0},{name:"vaultAuthority",isMut:!0,isSigner:!1},{name:"solVault",isMut:!0,isSigner:!1,docs:["CHECKED: sol_vault is used for SOL deposit"]},{name:"peer",isMut:!1,isSigner:!1},{name:"enforcedOptions",isMut:!1,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"allowedBroker",isMut:!1,isSigner:!1},{name:"allowedToken",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"depositParams",type:{defined:"DepositParams"}},{name:"oappParams",type:{defined:"OAppSendParams"}}],returns:{defined:"MessagingReceipt"}},{name:"initOapp",accounts:[{name:"payer",isMut:!0,isSigner:!0},{name:"oappConfig",isMut:!0,isSigner:!1},{name:"lzReceiveTypes",isMut:!0,isSigner:!1},{name:"accountList",isMut:!0,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"InitOAppParams"}}]},{name:"setAccountList",accounts:[{name:"admin",isMut:!0,isSigner:!0},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"lzReceiveTypes",isMut:!0,isSigner:!1},{name:"accountsList",isMut:!0,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetAccountListParams"}}]},{name:"setManagerRole",accounts:[{name:"owner",isMut:!0,isSigner:!0},{name:"vaultAuthority",isMut:!0,isSigner:!1},{name:"managerRole",isMut:!0,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetManagerRoleParams"}}]},{name:"setBroker",accounts:[{name:"brokerManager",isMut:!0,isSigner:!0},{name:"allowedBroker",isMut:!0,isSigner:!1},{name:"managerRole",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetBrokerParams"}}]},{name:"setWithdrawBroker",accounts:[{name:"brokerManager",isMut:!0,isSigner:!0},{name:"withdrawBroker",isMut:!0,isSigner:!1},{name:"managerRole",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetWithdrawBrokerParams"}}]},{name:"setToken",accounts:[{name:"tokenManager",isMut:!0,isSigner:!0},{name:"allowedToken",isMut:!0,isSigner:!1},{name:"managerRole",isMut:!1,isSigner:!1},{name:"mintAccount",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetTokenParams"}}]},{name:"setWithdrawToken",accounts:[{name:"tokenManager",isMut:!0,isSigner:!0},{name:"withdrawToken",isMut:!0,isSigner:!1},{name:"managerRole",isMut:!1,isSigner:!1},{name:"mintAccount",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetWithdrawTokenParams"}}]},{name:"setOrderDelivery",accounts:[{name:"owner",isMut:!0,isSigner:!0},{name:"vaultAuthority",isMut:!0,isSigner:!1}],args:[{name:"params",type:{defined:"SetOrderDeliveryParams"}}]},{name:"oappQuote",accounts:[{name:"oappConfig",isMut:!1,isSigner:!1},{name:"peer",isMut:!1,isSigner:!1},{name:"enforcedOptions",isMut:!1,isSigner:!1},{name:"vaultAuthority",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"DepositParams"}}],returns:{defined:"MessagingFee"}},{name:"lzReceive",accounts:[{name:"payer",isMut:!0,isSigner:!0},{name:"peer",isMut:!1,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"withdrawBrokerPda",isMut:!1,isSigner:!1},{name:"withdrawTokenPda",isMut:!1,isSigner:!1,docs:["CHECK"]},{name:"tokenMint",isMut:!1,isSigner:!1,docs:["CHECK"]},{name:"receiver",isMut:!0,isSigner:!1,docs:["CHECK"]},{name:"receiverTokenAccount",isMut:!0,isSigner:!1,docs:["UNCHECKED"]},{name:"vaultAuthority",isMut:!0,isSigner:!1},{name:"vaultTokenAccount",isMut:!0,isSigner:!1},{name:"tokenProgram",isMut:!1,isSigner:!1,docs:["CHECKED: sol_vault is used for SOL withdrawal"]},{name:"associatedTokenProgram",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1},{name:"eventAuthority",isMut:!1,isSigner:!1},{name:"program",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"OAppLzReceiveParams"}}]},{name:"lzReceiveTypes",accounts:[{name:"oappConfig",isMut:!1,isSigner:!1},{name:"accountList",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"OAppLzReceiveParams"}}],returns:{vec:{defined:"oapp::endpoint_cpi::LzAccount"}}},{name:"setRateLimit",accounts:[{name:"admin",isMut:!1,isSigner:!0},{name:"peer",isMut:!0,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetRateLimitParams"}}]},{name:"setDelegate",accounts:[{name:"admin",isMut:!1,isSigner:!0},{name:"oappConfig",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetDelegateParams"}}]},{name:"transferAdmin",accounts:[{name:"admin",isMut:!1,isSigner:!0},{name:"oappConfig",isMut:!0,isSigner:!1}],args:[{name:"params",type:{defined:"TransferAdminParams"}}]},{name:"setPeer",accounts:[{name:"admin",isMut:!0,isSigner:!0},{name:"peer",isMut:!0,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetPeerParams"}}]},{name:"setEnforcedOptions",accounts:[{name:"admin",isMut:!0,isSigner:!0},{name:"enforcedOptions",isMut:!0,isSigner:!1},{name:"oappConfig",isMut:!1,isSigner:!1},{name:"systemProgram",isMut:!1,isSigner:!1}],args:[{name:"params",type:{defined:"SetEnforcedOptionsParams"}}]}],accounts:[{name:"enforcedOptions",type:{kind:"struct",fields:[{name:"send",type:"bytes"},{name:"sendAndCall",type:"bytes"},{name:"bump",type:"u8"}]}},{name:"oAppConfig",type:{kind:"struct",fields:[{name:"endpointProgram",type:"publicKey"},{name:"bump",type:"u8"},{name:"admin",type:"publicKey"}]}},{name:"oAppLzReceiveTypesAccounts",type:{kind:"struct",fields:[{name:"oappConfig",type:"publicKey"},{name:"accountList",type:"publicKey"}]}},{name:"accountList",type:{kind:"struct",fields:[{name:"bump",type:"u8"},{name:"woofiProPda",type:"publicKey"},{name:"withdrawUsdcPda",type:"publicKey"},{name:"usdcMint",type:"publicKey"},{name:"withdrawUsdtPda",type:"publicKey"},{name:"usdtMint",type:"publicKey"},{name:"withdrawWsolPda",type:"publicKey"},{name:"wsolMint",type:"publicKey"}]}},{name:"peer",type:{kind:"struct",fields:[{name:"address",type:{array:["u8",32]}},{name:"rateLimiter",type:{option:{defined:"RateLimiter"}}},{name:"bump",type:"u8"}]}},{name:"allowedBroker",type:{kind:"struct",fields:[{name:"brokerHash",type:{array:["u8",32]}},{name:"allowed",type:"bool"},{name:"bump",type:"u8"}]}},{name:"allowedToken",type:{kind:"struct",fields:[{name:"mintAccount",type:"publicKey"},{name:"tokenHash",type:{array:["u8",32]}},{name:"tokenDecimals",type:"u8"},{name:"allowed",type:"bool"},{name:"bump",type:"u8"}]}},{name:"managerRole",type:{kind:"struct",fields:[{name:"roleHash",type:{array:["u8",32]}},{name:"allowed",type:"bool"},{name:"bump",type:"u8"}]}},{name:"vaultAuthority",type:{kind:"struct",fields:[{name:"bump",docs:["Bump seed for the vault authority PDA"],type:"u8"},{name:"owner",type:"publicKey"},{name:"depositNonce",type:"u64"},{name:"orderDelivery",type:"bool"},{name:"inboundNonce",type:"u64"},{name:"dstEid",type:"u32"},{name:"solChainId",type:"u128"}]}},{name:"withdrawBroker",type:{kind:"struct",fields:[{name:"brokerHash",type:{array:["u8",32]}},{name:"brokerIndex",type:"u16"},{name:"allowed",type:"bool"},{name:"bump",type:"u8"}]}},{name:"withdrawToken",type:{kind:"struct",fields:[{name:"mintAccount",type:"publicKey"},{name:"tokenHash",type:{array:["u8",32]}},{name:"tokenDecimals",type:"u8"},{name:"tokenIndex",type:"u8"},{name:"allowed",type:"bool"},{name:"bump",type:"u8"}]}}],types:[{name:"VaultDepositParams",type:{kind:"struct",fields:[{name:"accountId",type:{array:["u8",32]}},{name:"brokerHash",type:{array:["u8",32]}},{name:"userAddress",type:{array:["u8",32]}},{name:"tokenHash",type:{array:["u8",32]}},{name:"srcChainId",type:"u128"},{name:"tokenAmount",type:"u128"},{name:"srcChainDepositNonce",type:"u64"}]}},{name:"LzMessage",type:{kind:"struct",fields:[{name:"msgType",type:"u8"},{name:"payload",type:"bytes"}]}},{name:"AccountWithdrawSol",type:{kind:"struct",fields:[{name:"sender",type:{array:["u8",32]}},{name:"receiver",type:{array:["u8",32]}},{name:"brokerIndex",type:"u16"},{name:"tokenIndex",type:"u8"},{name:"tokenAmount",type:"u64"},{name:"fee",type:"u64"},{name:"chainId",type:"u64"},{name:"withdrawNonce",type:"u64"}]}},{name:"VaultWithdrawParams",type:{kind:"struct",fields:[{name:"accountId",type:{array:["u8",32]}},{name:"sender",type:{array:["u8",32]}},{name:"receiver",type:{array:["u8",32]}},{name:"brokerHash",type:{array:["u8",32]}},{name:"tokenHash",type:{array:["u8",32]}},{name:"tokenAmount",type:"u64"},{name:"fee",type:"u128"},{name:"chainId",type:"u128"},{name:"withdrawNonce",type:"u64"}]}},{name:"InitOAppParams",type:{kind:"struct",fields:[{name:"admin",type:"publicKey"},{name:"accountList",type:"publicKey"},{name:"endpointProgram",type:{option:"publicKey"}}]}},{name:"OAppLzReceiveParams",type:{kind:"struct",fields:[{name:"srcEid",type:"u32"},{name:"sender",type:{array:["u8",32]}},{name:"nonce",type:"u64"},{name:"guid",type:{array:["u8",32]}},{name:"message",type:"bytes"},{name:"extraData",type:"bytes"}]}},{name:"MessagingFee",type:{kind:"struct",fields:[{name:"nativeFee",type:"u64"},{name:"lzTokenFee",type:"u64"}]}},{name:"SetAccountListParams",type:{kind:"struct",fields:[{name:"woofiProPda",type:"publicKey"},{name:"withdrawUsdcPda",type:"publicKey"},{name:"usdcMint",type:"publicKey"},{name:"withdrawUsdtPda",type:"publicKey"},{name:"usdtMint",type:"publicKey"},{name:"withdrawWsolPda",type:"publicKey"},{name:"wsolMint",type:"publicKey"}]}},{name:"SetDelegateParams",type:{kind:"struct",fields:[{name:"delegate",type:"publicKey"}]}},{name:"SetEnforcedOptionsParams",type:{kind:"struct",fields:[{name:"dstEid",type:"u32"},{name:"send",type:"bytes"},{name:"sendAndCall",type:"bytes"}]}},{name:"SetPeerParams",type:{kind:"struct",fields:[{name:"dstEid",type:"u32"},{name:"peer",type:{array:["u8",32]}}]}},{name:"SetRateLimitParams",type:{kind:"struct",fields:[{name:"dstEid",type:"u32"},{name:"refillPerSecond",type:{option:"u64"}},{name:"capacity",type:{option:"u64"}},{name:"enabled",type:"bool"}]}},{name:"TransferAdminParams",type:{kind:"struct",fields:[{name:"admin",type:"publicKey"}]}},{name:"DepositParams",type:{kind:"struct",fields:[{name:"accountId",type:{array:["u8",32]}},{name:"brokerHash",type:{array:["u8",32]}},{name:"tokenHash",type:{array:["u8",32]}},{name:"userAddress",type:{array:["u8",32]}},{name:"tokenAmount",type:"u64"}]}},{name:"OAppSendParams",type:{kind:"struct",fields:[{name:"nativeFee",type:"u64"},{name:"lzTokenFee",type:"u64"}]}},{name:"SetBrokerParams",type:{kind:"struct",fields:[{name:"brokerManagerRole",type:{array:["u8",32]}},{name:"brokerHash",type:{array:["u8",32]}},{name:"allowed",type:"bool"}]}},{name:"SetManagerRoleParams",type:{kind:"struct",fields:[{name:"roleHash",type:{array:["u8",32]}},{name:"managerAddress",type:"publicKey"},{name:"allowed",type:"bool"}]}},{name:"SetOrderDeliveryParams",type:{kind:"struct",fields:[{name:"orderDelivery",type:"bool"},{name:"nonce",type:"u64"}]}},{name:"SetTokenParams",type:{kind:"struct",fields:[{name:"tokenManagerRole",type:{array:["u8",32]}},{name:"mintAccount",type:"publicKey"},{name:"tokenHash",type:{array:["u8",32]}},{name:"allowed",type:"bool"}]}},{name:"SetVaultParams",type:{kind:"struct",fields:[{name:"owner",type:"publicKey"},{name:"depositNonce",type:"u64"},{name:"orderDelivery",type:"bool"},{name:"inboundNonce",type:"u64"},{name:"dstEid",type:"u32"},{name:"solChainId",type:"u128"}]}},{name:"SetWithdrawBrokerParams",type:{kind:"struct",fields:[{name:"brokerManagerRole",type:{array:["u8",32]}},{name:"brokerHash",type:{array:["u8",32]}},{name:"brokerIndex",type:"u16"},{name:"allowed",type:"bool"}]}},{name:"SetWithdrawTokenParams",type:{kind:"struct",fields:[{name:"tokenManagerRole",type:{array:["u8",32]}},{name:"tokenHash",type:{array:["u8",32]}},{name:"tokenIndex",type:"u8"},{name:"allowed",type:"bool"}]}},{name:"RateLimiter",type:{kind:"struct",fields:[{name:"capacity",type:"u64"},{name:"tokens",type:"u64"},{name:"refillPerSecond",type:"u64"},{name:"lastRefillTime",type:"u64"}]}},{name:"OAppError",type:{kind:"enum",variants:[{name:"Unauthorized"},{name:"InvalidSender"},{name:"InvalidReceiver"},{name:"InvalidOptions"},{name:"InvalidEndpointProgram"},{name:"RateLimitExceeded"},{name:"WithdrawFailed"},{name:"InvalidInboundNonce"},{name:"InvalidReceiverTokenAccount"},{name:"InvalidAdminTokenAccount"},{name:"InvalidMessageType"},{name:"InvalidTokenIndex"}]}},{name:"MsgType",type:{kind:"enum",variants:[{name:"Deposit"},{name:"Withdraw"},{name:"RebalanceBurn"},{name:"RebalanceMint"}]}}],events:[{name:"SetAllowedBroker",fields:[{name:"brokerHash",type:{array:["u8",32]},index:!1}
3]},{name:"ResetAllowedBroker",fields:[{name:"brokerHash",type:{array:["u8",32]},index:!1}]},{name:"SetAllowedToken",fields:[{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"mintAccount",type:"publicKey",index:!1}]},{name:"ResetAllowedToken",fields:[{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"mintAccount",type:"publicKey",index:!1}]},{name:"SetWithdrawTokenIndex",fields:[{name:"tokenIndex",type:"u8",index:!1},{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"mintAccount",type:"publicKey",index:!1}]},{name:"ResetWithdrawTokenIndex",fields:[{name:"tokenIndex",type:"u8",index:!1},{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"mintAccount",type:"publicKey",index:!1}]},{name:"SetWithdrawBrokerEvent",fields:[{name:"brokerHash",type:{array:["u8",32]},index:!1},{name:"brokerIndex",type:"u16",index:!1}]},{name:"ResetWithdrawBrokerEvent",fields:[{name:"brokerHash",type:{array:["u8",32]},index:!1},{name:"brokerIndex",type:"u16",index:!1}]},{name:"SetManager",fields:[{name:"roleHash",type:{array:["u8",32]},index:!1},{name:"managerAddress",type:"publicKey",index:!1},{name:"allowed",type:"bool",index:!1}]},{name:"Deposited",fields:[{name:"user",type:"publicKey",index:!1},{name:"amount",type:"u64",index:!1}]},{name:"Withdrawn",fields:[{name:"user",type:"publicKey",index:!1},{name:"amount",type:"u64",index:!1}]},{name:"CreatedATA",fields:[{name:"accountId",type:{array:["u8",32]},index:!1},{name:"receiver",type:{array:["u8",32]},index:!1},{name:"receiverTokenAccount",type:{array:["u8",32]},index:!1},{name:"withdrawNonce",type:"u64",index:!1}]},{name:"VaultDeposited",fields:[{name:"accountId",type:{array:["u8",32]},index:!1},{name:"brokerHash",type:{array:["u8",32]},index:!1},{name:"userAddress",type:{array:["u8",32]},index:!1},{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"srcChainId",type:"u128",index:!1},{name:"tokenAmount",type:"u64",index:!1},{name:"srcChainDepositNonce",type:"u64",index:!1}]},{name:"VaultWithdrawn",fields:[{name:"accountId",type:{array:["u8",32]},index:!1},{name:"sender",type:{array:["u8",32]},index:!1},{name:"receiver",type:{array:["u8",32]},index:!1},{name:"brokerHash",type:{array:["u8",32]},index:!1},{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"tokenAmount",type:"u64",index:!1},{name:"fee",type:"u128",index:!1},{name:"chainId",type:"u128",index:!1},{name:"withdrawNonce",type:"u64",index:!1}]},{name:"FrozenWithdrawn",fields:[{name:"accountId",type:{array:["u8",32]},index:!1},{name:"sender",type:{array:["u8",32]},index:!1},{name:"receiver",type:{array:["u8",32]},index:!1},{name:"brokerHash",type:{array:["u8",32]},index:!1},{name:"tokenHash",type:{array:["u8",32]},index:!1},{name:"tokenAmount",type:"u64",index:!1},{name:"fee",type:"u128",index:!1},{name:"chainId",type:"u128",index:!1},{name:"withdrawNonce",type:"u64",index:!1}]},{name:"OAppSent",fields:[{name:"guid",type:{array:["u8",32]},index:!1},{name:"dstEid",type:"u32",index:!1}]},{name:"OAppReceived",fields:[{name:"guid",type:{array:["u8",32]},index:!1},{name:"srcEid",type:"u32",index:!1}]}],errors:[{code:6e3,name:"InsufficientFunds",msg:"Deposited funds are insufficient for withdrawal"},{code:6001,name:"UserInfoBelongsToAnotherUser",msg:"User info pda belongs to another user"},{code:6002,name:"BrokerNotAllowed",msg:"Broker is not allowed"},{code:6003,name:"TokenNotAllowed",msg:"Token is not allowed"}
3,{code:6004,name:"InvalidAccountId",msg:"AccountId is invalid"},{code:6005,name:"InvalidVaultOwner",msg:"Vault owner is not the same as the payer"},{code:6006,name:"ManagerRoleNotAllowed",msg:"Manager role is not allowed"}]},tG=(e,t)=>e9(e,t,!0);function tK(e){return k.PublicKey.findProgramAddressSync([te.from(tN,"utf8")],e)[0]}function tz(e){return k.PublicKey.findProgramAddressSync([te.from(tx,"utf8")],e)[0]}function tW(e,t){let r=Array.from(te.from(t.slice(2),"hex"));return k.PublicKey.findProgramAddressSync([te.from(tS,"utf8"),te.from(r)],e)[0]}function tq(e,t){let r=Array.from(te.from(t.slice(2),"hex"));return k.PublicKey.findProgramAddressSync([te.from(t_,"utf8"),te.from(r)],e)[0]}function tY(e){return k.PublicKey.findProgramAddressSync([te.from(e7.ND,"utf8")],e)[0]}function t$(e,t,r){let n=te.alloc(4);return n.writeUInt32BE(r),k.PublicKey.findProgramAddressSync([te.from(e7.zy,"utf8"),t.toBuffer(),n],e)[0]}function tX(e,t,r){let n=te.alloc(4);return n.writeUInt32BE(r),k.PublicKey.findProgramAddressSync([te.from(e7.Ek,"utf8"),t.toBuffer(),n],e)[0]}function tJ(){return k.PublicKey.findProgramAddressSync([te.from(e7.WU,"utf8")],th)[0]}function tQ(e,t){let r=te.alloc(4);return r.writeUInt32BE(t),k.PublicKey.findProgramAddressSync([te.from(e7.Yw,"utf8"),e.toBuffer(),r],tf)[0]}function tZ(e){let t=te.alloc(4);return t.writeUInt32BE(e),k.PublicKey.findProgramAddressSync([te.from(e7.Yw,"utf8"),t],tf)[0]}function t0(e){return k.PublicKey.findProgramAddressSync([te.from(e7.WU,"utf8"),e.toBuffer()],tf)[0]}function t1(){return k.PublicKey.findProgramAddressSync([te.from(e7._2,"utf8")],tf)[0]}function t2(e){let t=tI;return e.toBase58()===tV.toBase58()&&(t=tI),e.toBase58()===tF.toBase58()&&(t=tO),e.toBase58()===tU.toBase58()&&(t=tR),e.toBase58()===tj.toBase58()&&(t=tP),t}function t3(e,t,r){let n=te.alloc(4),i=t2(e);return n.writeUInt32BE(r),k.PublicKey.findProgramAddressSync([te.from(e7.Ah,"utf8"),t.toBuffer(),n,i],tf)[0]}function t4(){return k.PublicKey.findProgramAddressSync([te.from(e7.bn,"utf8")],tf)[0]}function t5(){return k.PublicKey.findProgramAddressSync([te.from(e7.Sf,"utf8")],th)[0]}function t6(e,t){let r=te.alloc(4);return r.writeUInt32BE(t),k.PublicKey.findProgramAddressSync([te.from(e7.s0,"utf8"),r,e.toBuffer()],th)[0]}function t8(e){let t=te.alloc(4);return t.writeUInt32BE(e),k.PublicKey.findProgramAddressSync([te.from(e7.s0,"utf8"),t],tm)[0]}function t7(){return k.PublicKey.findProgramAddressSync([te.from(e7.bn,"utf8")],th)[0]}function t9(){return k.PublicKey.findProgramAddressSync([te.from(e7.fX,"utf8")],tp)[0]}function re(){return k.PublicKey.findProgramAddressSync([te.from(e7.fP,"utf8")],tg)[0]}function rt(e){let t=()=>[{pubkey:tg,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}];return[{pubkey:tE,isWritable:!1,isSigner:!1},{pubkey:tT,isWritable:!1,isSigner:!1},...t(),{pubkey:tb,isWritable:!1,isSigner:!1},{pubkey:tw,isWritable:!1,isSigner:!1},...t(),{pubkey:tv,isWritable:!1,isSigner:!1},{pubkey:tA,isWritable:!1,isSigner:!1},...t()]}function rr(e){return[{pubkey:tE,isWritable:!1,isSigner:!1},{pubkey:tT,isWritable:!1,isSigner:!1},{pubkey:tg,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}]}function rn(e){let t=()=>[{pubkey:tg,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}];return[{pubkey:tE,isWritable:!1,isSigner:!1},{pubkey:tT,isWritable:!0,isSigner:!1},...t(),{pubkey:tb,isWritable:!1,isSigner:!1},{pubkey:tw,isWritable:!0,isSigner:!1},...t(),{pubkey:tv,isWritable:!1,isSigner:!1},{pubkey:tA,isWritable:!0,isSigner:!1},...t()]}function ri(e){return[{pubkey:tE,isWritable:!1,isSigner:!1},{pubkey:tT,isWritable:!0,isSigner:!1},{pubkey:tg,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}]}function ro(e,t){return e.toBase58()===tj.toBase58()?rt(t):rr(t)}function ra(e,t){return e.toBase58()===tj.toBase58()?rn(t):ri(t)}function rs(e){return e.toBase58()===tj.toBase58()?tC:tM}function rl(e){return e.toBase58()===tV.toBase58()?(console.log("DEV_LOOKUP_TABLE_ADDRESS: ",tk.toBase58()),tk):e.toBase58()===tF.toBase58()?tL:e.toBase58()===tU.toBase58()?tD:e.toBase58()===tj.toBase58()?tB:tk}function ru(e){return k.PublicKey.findProgramAddressSync([te.from(e7.WU,"utf8")],e||th)[0]}function rc(e,t){return k.PublicKey.findProgramAddressSync([te.from(e7.WU,"utf8"),e.toBytes()],t||tf)[0]}function rd(e,t){return td(this,null,function*(){return(yield e.getAddressLookupTable(t)).value})}function rf(e){let{publicKey:t,brokerId:r,expiration:n=365,timestamp:i=Date.now(),scope:o,tag:a,chainId:s,subAccountId:l}=e,u=tl(tl({brokerId:r,chainType:"SOL",orderlyKey:t,scope:o||eb.dI,chainId:s,timestamp:i,expiration:i+864e5*n},void 0!==a?{tag:a}:{}),void 0!==l?{subAccountId:l}:{}),c=(0,eX.x9)(["string"],[u.brokerId]),d=(0,eX.x9)(["string"],[u.orderlyKey]),f=(0,eX.x9)(["string"],[u.scope]),h=el(e$(em(eJ.y.defaultAbiCoder().encode(["bytes32","bytes32","bytes32","uint256","uint256","uint256"],[c,d,f,u.chainId,u.timestamp,u.expiration]))));return[u,new TextEncoder().encode(h)]}function rh(e){let{chainId:t,registrationNonce:r,brokerId:n,timestamp:i}=e,o={brokerId:n,chainId:t,timestamp:i,registrationNonce:r},a=(0,eX.x9)(["string"],[o.brokerId]),s=el(e$(em(eJ.y.defaultAbiCoder().encode(["bytes32","uint256","uint256","uint256"],[a,o.chainId,o.timestamp,o.registrationNonce]))));return[o,new TextEncoder().encode(s)]}
3function rp(e){let{chainId:t,receiver:r,token:n,amount:i,nonce:o}=e,a={chainId:t,receiver:r,token:n,amount:i,transferNonce:o,chainType:"SOL"},s=(0,eX.x9)(["string"],[a.token]),l=el(e$(em(eJ.y.defaultAbiCoder().encode(["bytes32","bytes32","uint256","uint64","uint256"],[a.receiver,s,a.amount,a.transferNonce,t]))));return[a,new TextEncoder().encode(l)]}function rg(e){return td(this,null,function*(){let t,{payloadType:r,nonce:n,receiver:i,amount:o,vaultId:a,token:s,dexBrokerId:l,chainId:u}=e,c={payloadType:r,nonce:n,receiver:i,amount:o,vaultId:a,token:s,dexBrokerId:l,chainId:u};t=(0,X.decode)(i),new Uint8Array(32).set(t);let d=em(a),f=e$(new TextEncoder().encode(s)),h=e$(new TextEncoder().encode(l)),p=el(e$(em(eJ.y.defaultAbiCoder().encode(["uint8","uint256","bytes32","uint256","bytes32","bytes32","bytes32","uint256"],[r,n,t,o,d,f,h,u]))));return[c,new TextEncoder().encode(p)]})}function rm(e){let{chainId:t,receiver:r,token:n,amount:i,nonce:o,brokerId:a}=e,s=Date.now(),l={brokerId:a,chainId:t,receiver:r,token:n,amount:i,withdrawNonce:o,timestamp:s,chainType:"SOL"},u=(0,eX.x9)(["string"],[l.brokerId]),c=(0,eX.x9)(["string"],[l.token]),d=e$(te.from("Orderly Network")),f=el(e$(em(eJ.y.defaultAbiCoder().encode(["bytes32","bytes32","uint256","bytes32","uint256","uint64","uint64","bytes32"],[u,c,t,(0,X.decode)(l.receiver),l.amount,l.withdrawNonce,s,d]))));return[l,new TextEncoder().encode(f)]}function ry(e){let{settlePnlNonce:t,brokerId:r,chainId:n,timestamp:i}=e,o={brokerId:r,chainId:n,timestamp:i,chainType:"SOL",settleNonce:t},a=(0,eX.x9)(["string"],[r]),s=el(e$(em(eJ.y.defaultAbiCoder().encode(["bytes32","uint256","uint64","uint64"],[a,o.chainId,o.settleNonce,o.timestamp]))));return[o,new TextEncoder().encode(s)]}function rE(e){return td(this,arguments,function*({vaultAddress:e,userAddress:t,connection:r,depositData:n}){console.log("-- vaultAddress",e);let i=new k.PublicKey(e),o=rs(i),a=new ev.Program(tH,i,{connection:r}),s=new k.PublicKey(t),l=tY(i),u=t$(i,l,o),c=tX(i,l,o),d=tQ(l,o),f=tZ(o),h=t1(),p=t3(i,l,o),g=t6(l,o),m=t8(o),y=t9(),E=re(),b=ru(th),v=rc(b),T=tK(i),w=rb(t,n),A=yield a.methods.oappQuote(w).accounts({oappConfig:l,peer:u,enforcedOptions:c,vaultAuthority:T}).remainingAccounts([{pubkey:tf,isWritable:!1,isSigner:!1},{pubkey:th,isWritable:!1,isSigner:!1},{pubkey:d,isWritable:!1,isSigner:!1},{pubkey:f,isWritable:!1,isSigner:!1},{pubkey:v,isWritable:!1,isSigner:!1},{pubkey:h,isWritable:!1,isSigner:!1},{pubkey:p,isWritable:!1,isSigner:!1},{pubkey:b,isWritable:!1,isSigner:!1},{pubkey:g,isWritable:!1,isSigner:!1},{pubkey:m,isWritable:!1,isSigner:!1},{pubkey:tp,isWritable:!1,isSigner:!1},{pubkey:y,isWritable:!1,isSigner:!1},{pubkey:tg,isWritable:!1,isSigner:!1},{pubkey:E,isWritable:!1,isSigner:!1},...ro(i,E)]).instruction(),N=yield r.getLatestBlockhash(),S=rl(i),_=yield rd(r,S);if(!_)throw console.log("-- lookup table account error"),Error("-- lookup table account error");let x=k.ComputeBudgetProgram.setComputeUnitLimit({units:6e5}),I=new k.TransactionMessage({payerKey:s,recentBlockhash:N.blockhash,instructions:[x,A]}).compileToV0Message([_]),O=new k.VersionedTransaction(I),R=yield r.simulateTransaction(O);if(console.log("-- feeRes",R),R.value.err){let e="object"==typeof R.value.err?JSON.stringify(R.value.err):R.value.err;if(e.toString().includes("AccountNotFound"))throw Error("Error: Account gas is insufficient.");throw Error(`Error: ${e}`)}let P=`Program return: ${a.programId} `,M=R.value.logs.find(e=>e.startsWith(P));if(!M)throw Error("Error: get deposit fee error");let C=M.slice(P.length);return te.from(C,"base64").readBigUInt64LE(0)})}var rb=(e,t)=>{let r=t.brokerHash,n=Array.from(te.from(r.slice(2),"hex")),i=t.tokenHash,o=Array.from(te.from(i.slice(2),"hex")),a=t.accountId;return{accountId:Array.from(te.from(a.slice(2),"hex")),brokerHash:n,tokenHash:o,userAddress:Array.from(new k.PublicKey(e).toBuffer()),tokenAmount:new ev.BN(t.tokenAmount)}};function rv(e){return td(this,arguments,function*({vaultAddress:e,userAddress:t,connection:r,sendTransaction:n,depositData:i}){let o=i.brokerHash,a=i.tokenHash,s=eE.Wp.parseTokenHash("SOL"),l=a.toLowerCase()===s.toLowerCase();console.log("-- vault address",e);let u=new k.PublicKey(e),c=new ev.Program(tH,u,{connection:r}),d=new k.PublicKey(i.tokenAddress),f=new k.PublicKey(t),h=tG(d,f),p=tK(u),g=tG(d,p),m=tW(u,o),y=tq(u,a),E=tY(u);
3console.log("-- oappconfig pda",E.toBase58());let b=rs(u),v=t$(u,E,b),T=tX(u,E,b),w=tJ(),A=tQ(E,b),N=tZ(b),S=t0(w),_=t1(),x=t3(u,E,b),I=t4(),O=t5(),R=t6(E,b),P=t8(b),M=t7(),C=t9(),L=re(),D=rb(t,i),B=()=>[{isSigner:!1,isWritable:!1,pubkey:tf},{isSigner:!1,isWritable:!1,pubkey:E},{isSigner:!1,isWritable:!1,pubkey:th},{isSigner:!1,isWritable:!1,pubkey:A},{isSigner:!1,isWritable:!1,pubkey:N},{isSigner:!1,isWritable:!1,pubkey:S},{isSigner:!1,isWritable:!1,pubkey:_},{isSigner:!1,isWritable:!0,pubkey:x},{isSigner:!1,isWritable:!1,pubkey:I},{isSigner:!1,isWritable:!1,pubkey:tf},{isSigner:!1,isWritable:!1,pubkey:O},{isSigner:!1,isWritable:!1,pubkey:R},{isSigner:!1,isWritable:!1,pubkey:P},{isSigner:!0,isWritable:!1,pubkey:f},{isSigner:!1,isWritable:!1,pubkey:ty},{isSigner:!1,isWritable:!1,pubkey:k.SystemProgram.programId},{isSigner:!1,isWritable:!1,pubkey:M},{isSigner:!1,isWritable:!1,pubkey:th},{isSigner:!1,isWritable:!1,pubkey:tp},{isSigner:!1,isWritable:!0,pubkey:C},{isSigner:!1,isWritable:!1,pubkey:tg},{isSigner:!1,isWritable:!1,pubkey:L},...ra(u,L)],V=yield rE({vaultAddress:e,userAddress:t,connection:r,depositData:i}),F={nativeFee:new ev.BN(V.toString()),lzTokenFee:new ev.BN(0)};console.log("--- value params",{vaultDepositParams:D,sendParam:F});let U=l?yield c.methods.depositSol(D,F).accounts({solVault:tz(u),vaultAuthority:p,user:f,peer:v,enforcedOptions:T,oappConfig:E,allowedBroker:m,allowedToken:y}).remainingAccounts(B()).instruction():yield c.methods.deposit(D,F).accounts({userTokenAccount:h,vaultAuthority:p,vaultTokenAccount:g,depositToken:d,user:f,peer:v,enforcedOptions:T,oappConfig:E,allowedBroker:m,allowedToken:y}).remainingAccounts(B()).instruction(),j=rl(u),H=yield rd(r,j);if(!H)return void console.log("-- lookup table account error");let G=k.ComputeBudgetProgram.setComputeUnitLimit({units:8e5}),K=yield r.getLatestBlockhash(),z=new k.TransactionMessage({payerKey:f,recentBlockhash:K.blockhash,instructions:[U,G]}).compileToV0Message([H]),W=new k.VersionedTransaction(z),q=yield n(W,r);return console.log("res",q),q})}function rT(e){let t=window.localStorage.getItem(eb.KY);if(!t)return!1;let r=JSON.parse(null!=t?t:"[]");return console.log("-- addressArr",r),!!r.includes(e)}var rw=class extends eE.Ce{constructor(){super(),tc(this,"chainNamespace",eb.Lx.solana),tc(this,"_address"),tc(this,"_chainId"),tc(this,"_provider"),tc(this,"_connection")}get address(){return this._address}get chainId(){return this._chainId}set chainId(e){this._chainId=e}get connection(){if(this._connection)return this._connection;if(this._provider.rpcUrl)return this._connection=new k.Connection(this._provider.rpcUrl,{commitment:"confirmed"}),this._connection;if(this._provider.network===o.Devnet)return this._connection=new k.Connection((0,k.clusterApiUrl)(this._provider.network),{commitment:"confirmed"}),this._connection;let e=eE.Ex.get("account"),t="/v1/solana-rpc-proxy";return this._connection=new k.Connection(`${e.apiBaseUrl}${t}`,{commitment:"confirmed",fetchMiddleware:(e,r,n)=>td(this,null,function*(){let i={url:t,method:null==r?void 0:r.method,data:JSON.parse(null==r?void 0:r.body)},o=yield this.signMessageByOrderlyKey(i);for(let e of Object.keys(o))(null==r?void 0:r.headers)[e]=o[e];return n(e,r)})}),this._connection}setConfig(e){this._address=e.address,this._chainId=e.chain.id,e.provider&&(this._provider=e.provider)}lifecycleName(e,t){console.log("lifecycle",e,t)}active(e){this.setConfig(e),this.lifecycleName("active",e)}deactivate(){this.lifecycleName("deactivate",{})}update(e){this.lifecycleName("update",e),this.setConfig(e)}generateSecretKey(){let e,t;do e=a.Wp.randomPrivateKey(),t=(0,X.encode)(e);while(44!==t.length);return t}uint8ArrayToHexString(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}signMessage(e){return td(this,null,function*(){if(rT(this._address)){let t=new k.Transaction;t.add(new k.TransactionInstruction({keys:[],programId:new k.PublicKey("ComputeBudget111111111111111111111111111111"),data:new Uint8Array([3,0,0,0,0,0,0,0,0])})),t.add(new k.TransactionInstruction({keys:[],programId:new k.PublicKey("ComputeBudget111111111111111111111111111111"),data:new Uint8Array([2,0,0,0,0])})),t.add(new k.TransactionInstruction({keys:[],programId:new k.PublicKey("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),data:e})),t.feePayer=new k.PublicKey(this.address);let r=new Uint8Array(32).fill(0);t.recentBlockhash=new k.PublicKey(r).toString();let n=(yield this._provider.signTransaction(t)).signatures[0].signature;if(n)return this.uint8ArrayToHexString(n);throw console.log("-- sign message error",n),Error("Unsupported signature")}
3return"0x"+el((yield this._provider.signMessage(e)))})}generateRegisterAccountMessage(e){return td(this,null,function*(){let[t,r]=rh(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},t),{chainType:"SOL"}),signatured:n}})}generateWithdrawMessage(e){return td(this,null,function*(){let[t,r]=rm(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},t),{chainType:"SOL"}),domain:{name:"",version:"",chainId:this.chainId,verifyingContract:e.verifyContract},signatured:n}})}generateInternalTransferMessage(e){return td(this,null,function*(){let[t,r]=rp(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},t),{chainType:"SOL"}),domain:{name:"",version:"",chainId:this.chainId,verifyingContract:e.verifyContract},signatured:n}})}generateAddOrderlyKeyMessage(e){return td(this,null,function*(){let[t,r]=rf(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},t),{chainType:"SOL"}),signatured:n}})}generateSettleMessage(e){return td(this,null,function*(){let[t,r]=ry(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},t),{chainType:"SOL"}),domain:{name:"",version:"",chainId:this.chainId,verifyingContract:e.verifyContract},signatured:n}})}generateDexRequestMessage(e){return td(this,null,function*(){let[t,r]=yield rg(tu(tl({},e),{chainId:this.chainId})),n=yield this.signMessage(r);return{message:tu(tl({},e),{chainType:"SOL"}),signatured:n,domain:e.domain}})}getBalance(){return td(this,null,function*(){let e=new k.PublicKey(this.address);return BigInt((yield this.connection.getBalance(e)))})}getBalances(e){return td(this,null,function*(){let t=new k.PublicKey(this._address),r=this.connection,n=e.map(e=>(0,eb.wS)(e)),i=e.some(e=>(0,eb.wS)(e)),o=null;i&&(o=yield this.getBalance());let a=e.filter(e=>!(0,eb.wS)(e)),s=[];if(a.length>0){let e=a.map(e=>new k.PublicKey(e)).map(e=>tG(e,t));s=yield Promise.all(e.map(e=>td(this,null,function*(){try{return(yield Y(r,e,"confirmed")).amount}catch(e){if((null==e?void 0:e.name)==="TokenAccountNotFoundError")return BigInt("0");throw e}})))}let l=[],u=0;for(let t=0;t<e.length;t++)n[t]?l.push(o):(l.push(s[u]),u++);return l})}getBalanceByAddress(e){return td(this,null,function*(){let t=tG(new k.PublicKey(e),new k.PublicKey(this._address)),r=this.connection;return(yield Y(r,t,"confirmed")).amount})}call(e,t,r,n){return td(this,null,function*(){return"balanceOf"===t?this.getBalanceByAddress(e):"allowance"===t?eb.Is:BigInt(0)})}sendTransaction(e,t,r,n){return td(this,null,function*(){if(console.log("-- solanan sendTransaction",{contractAddress:e,method:t,payload:r,options:n}),"deposit"===t)return rv({vaultAddress:e,userAddress:this._address,connection:this.connection,depositData:r.data[0],sendTransaction:this._provider.sendTransaction})})}callOnChain(e,t,r,n,i){return td(this,null,function*(){return(console.log("-- params ",{chain:e,address:t,method:r,params:n}),"getDepositFee"===r)?rE({vaultAddress:t,userAddress:this._address,connection:this.connection,depositData:n[1]}):0})}estimateGasFee(e,t,r){return td(this,null,function*(){return BigInt(0)})}pollTransactionReceiptWithBackoff(e,t,r,n){return td(this,null,function*(){return Promise.resolve({status:1})})}}},50746:(e,t,r)=>{"use strict";r.d(t,{AU:()=>b,Q7:()=>m,Ue:()=>E,Yx:()=>s,mP:()=>v});var n=r(70407),i=r(60133),o=r(7160),a=r(93713);let s=32,l=new Uint8Array(32),u=["then"],c={},d=new WeakMap;function f(e){return d.get(e)}function h(e,t){d.set(e,t)}function p(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}function g(e,t,r){return e.indexOf(null)>=0?t.map((e,t)=>e instanceof m?g(f(e),e,r):e):e.reduce((e,n,i)=>{let o=t.getValue(n);return n in e||(r&&o instanceof m&&(o=g(f(o),o,r)),e[n]=o),e},{})}class m extends Array{#d;constructor(...e){let t=e[0],r=e[1],i=(e[2]||[]).slice(),o=!0;t!==c&&(r=e,i=[],o=!1),super(r.length),r.forEach((e,t)=>{this[t]=e});let a=i.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(h(this,Object.freeze(r.map((e,t)=>{let r=i[t];return null!=r&&1===a.get(r)?r:null}
3))),this.#d=[],null==this.#d&&this.#d,!o)return;Object.freeze(this);let s=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,n.WZ)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let i=e[r];return i instanceof Error&&p(`index ${r}`,i),i}if(u.indexOf(t)>=0)return Reflect.get(e,t,r);let i=e[t];if(i instanceof Function)return function(...t){return i.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}});return h(s,f(this)),s}toArray(e){let t=[];return this.forEach((r,n)=>{r instanceof Error&&p(`index ${n}`,r),e&&r instanceof m&&(r=r.toArray(e)),t.push(r)}),t}toObject(e){let t=f(this);return t.reduce((r,n,o)=>((0,i.vA)(null!=n,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),g(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=f(this),n=[],i=[];for(let o=e;o<t;o++)n.push(this[o]),i.push(r[o]);return new m(c,n,i)}filter(e,t){let r=f(this),n=[],i=[];for(let o=0;o<this.length;o++){let a=this[o];a instanceof Error&&p(`index ${o}`,a),e.call(t,a,o,this)&&(n.push(a),i.push(r[o]))}return new m(c,n,i)}map(e,t){let r=[];for(let n=0;n<this.length;n++){let i=this[n];i instanceof Error&&p(`index ${n}`,i),r.push(e.call(t,i,n,this))}return r}getValue(e){let t=f(this).indexOf(e);if(-1===t)return;let r=this[t];return r instanceof Error&&p(`property ${JSON.stringify(e)}`,r.error),r}static fromItems(e,t){return new m(c,e,t)}}function y(e){let t=(0,n.c4)(e);return(0,i.vA)(t.length<=s,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:s,offset:t.length}),t.length!==s&&(t=(0,o.Lm)((0,o.xW)([l.slice(t.length%s),t]))),t}class E{name;type;localName;dynamic;constructor(e,t,r,n){(0,a.n)(this,{name:e,type:t,localName:r,dynamic:n},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,i.MR)(!1,e,this.localName,t)}}class b{#f;#h;constructor(){this.#f=[],this.#h=0}get data(){return(0,o.xW)(this.#f)}get length(){return this.#h}#p(e){return this.#f.push(e),this.#h+=e.length,e.length}appendWriter(e){return this.#p((0,o.Lm)(e.data))}writeBytes(e){let t=(0,o.Lm)(e),r=t.length%s;return r&&(t=(0,o.Lm)((0,o.xW)([t,l.slice(r)]))),this.#p(t)}writeValue(e){return this.#p(y(e))}writeUpdatableValue(){let e=this.#f.length;return this.#f.push(l),this.#h+=s,t=>{this.#f[e]=y(t)}}}class v{allowLoose;#f;#e;#g;#m;#y;constructor(e,t,r){(0,a.n)(this,{allowLoose:!!t}),this.#f=(0,o.Lm)(e),this.#g=0,this.#m=null,this.#y=null!=r?r:1024,this.#e=0}get data(){return(0,o.c$)(this.#f)}get dataLength(){return this.#f.length}get consumed(){return this.#e}get bytes(){return new Uint8Array(this.#f)}#E(e){if(this.#m)return this.#m.#E(e);this.#g+=e,(0,i.vA)(this.#y<1||this.#g<=this.#y*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#y} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,o.Lm)(this.#f),offset:this.#e,length:e,info:{bytesRead:this.#g,dataLength:this.dataLength}})}#b(e,t,r){let n=Math.ceil(t/s)*s;return this.#e+n>this.#f.length&&(this.allowLoose&&r&&this.#e+t<=this.#f.length?n=t:(0,i.vA)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,o.Lm)(this.#f),length:this.#f.length,offset:this.#e+n})),this.#f.slice(this.#e,this.#e+n)}subReader(e){let t=new v(this.#f.slice(this.#e+e),this.allowLoose,this.#y);return t.#m=this,t}readBytes(e,t){let r=this.#b(0,e,!!t);return this.#E(e),this.#e+=r.length,r.slice(0,e)}readValue(){return(0,n.Dg)(this.readBytes(s))}readIndex(){return(0,n.Ro)(this.readBytes(s))}}},52169:(e,t,r)=>{"use strict";e.exports=r(89497)},52543:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},52561:(e,t,r)=>{"use strict";r.d(t,{$d:()=>er,DV:()=>m,Eu:()=>H,GJ:()=>C,Gd:()=>O,Hl:()=>M,KM:()=>S,K_:()=>B,OU:()=>k,Pp:()=>Z,Q$:()=>K,Qm:()=>F,SJ:()=>Q,Sc:()=>q,Sw:()=>Y,VZ:()=>U,Vd:()=>ee,Ww:()=>p,XG:()=>_,YJ:()=>$,aC:()=>et,aT:()=>ea,ac:()=>G,c:()=>D,cU:()=>I,fT:()=>L,fX:()=>T,gC:()=>v,hy:()=>W,ic:()=>x,l8:()=>E,lg:()=>j,m2:()=>V,nq:()=>R,of:()=>J,sD:()=>z,v_:()=>g,zG:()=>w,zM:()=>X});var n=r(65202),i=r(55481);r(42163);var o=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))c.call(t,r)&&d(e,r,t[r]);return e},h=(e,t)=>a(e,s(t));n.set({rounding:n.ROUND_DOWN});var p=n,g=new n(0),m=(e,t)=>
3{if("string"==typeof e&&Number.isNaN(Number(e)))return(null==t?void 0:t.fallback)||"--";let r=(null==t?void 0:t.prefix)||"";if(void 0===e)return r+((null==t?void 0:t.fallback)||"--");let n=E(e,null==t?void 0:t.fix);if(t&&t.padEnd&&t.fix){let e=(null==t?void 0:t.fillString)||"0",i=n.includes("."),o=n.split(".");return i?r+o[0]+"."+o[1].padEnd(t.fix,e):r+o[0]+"."+"".padEnd(t.fix,e)}return r+n},y=/\B(?=(\d{3})+(?!\d))/g,E=(e,t)=>{let r=`${e}`,n=r.split("."),i=n[0],o=n[1],a=r.endsWith(".")&&r.length>1,s=i.replace(y,",")+(o?"."+o.substring(0,t||o.length):a?".":"");return 0===t&&s.includes(".")?s.substring(0,s.indexOf(".")):s},b=/\d(?:\.(\d*))?e([+-]\d+)/,v=e=>{let t=e.toExponential().match(b);return Array.isArray(t)?e.toFixed(Math.max(0,(t[1]||"").length-t[2])):e},T=e=>{let t=(e=v(Number(e))).toString().split(".");return t[1]?t[1].length:0};function w(e,t=2,r){let{padding:i}=r||{},o=["","K","M","B","T"],a=0;for(;e>=1e3&&a<o.length-1;)e/=1e3,a++;let s=new n(e).toFixed(t,n.ROUND_DOWN).toString().replace(/\.0+$/,"");return`${s}${o[a]}`}var A=/^[-+]?[0-9]+(\.[0-9]+)?[eE][-+]?[0-9]+$/,N=/(\.[0-9]*[1-9])0+$/,S=(e,t=16)=>{let r=`${e}`,i=A.test(r);return e.toString().includes(".")||i?new n(e).toFixed(t).replace(N,"$1"):`${e}`},_=(e,t)=>{if(void 0===e||""===e||("number"==typeof e&&(e=e.toString()),e.endsWith(".")))return e;let r=e.split(".");return 1===r.length||r[1].length<=t||!r[1]?e:`${r[0]}.${r[1].substring(0,t)}`},x=e=>void 0===e||""===e||null===e||Number.isNaN(Number(e)),I=(e,t=2)=>{let r=new n(e||0);return r.gte(1)?r.todp(t,n.ROUND_DOWN).toNumber():r.toSignificantDigits(t,n.ROUND_DOWN).toFixed()},O=e=>[Math.floor((e/=1e3)/3600),Math.floor(e/60%60),Math.floor(e%60)];function R(e,t){let r=t||new Date,n=new Date(r);return n.setDate(r.getDate()-e),n}var P=e=>parseInt(e),M=e=>`0x${e.toString(16)}`,C=e=>"string"==typeof e&&e.startsWith("0x")&&/^[a-f0-9]+$/iu.test(e.slice(2))?P(e):e,k=C,L=e=>[i.EQ,i.lY].includes(e);function D(e){let t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function B(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}var V=(e,t)=>{for(let r=0;r<e.length;r++)if(e.at(r)!==t.at(r))return r;return -1},F=e=>{"undefined"!=typeof window&&e()},U=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("cannot find the global object")},j=()=>{var e;if("undefined"!=typeof window){let t=null==(e=U())?void 0:e.__ORDERLY_timestamp_offset;if("number"==typeof t)return Date.now()+(t||0)}return Date.now()};function H(e,t="base-type"){if(!e)return"";let r=e.split("_"),n=r[0],i=r[1],o=r[2];return t.replace("type",n).replace("base",i).replace("quote",o)}function G(e,t=0){if(!e)return"";let r=/^(\d+(?:\.\d+)?)/,n=e.match(r);if(!n)return e;let i=n[1],o=e.slice(i.length),a=parseFloat(i);return a<1e3?e:w(a,t)+o}function K(e){let{side:t,extreme_price:r,callback_value:n,callback_rate:o}=e,a=t===i.Mf.BUY;return r?n?a?new p(r).plus(n).toNumber():new p(r).minus(n).toNumber():o?a?new p(r).mul(new p(1).plus(o)).toNumber():new p(r).mul(new p(1).minus(o)).toNumber():0:0}function z(e){let{type:t,side:r,level:n}=e;if(t===i.ZN.ASK){if(n===i.H_.ONE)return r===i.Mf.BUY?i.M6.COUNTERPARTY1:i.M6.QUEUE1;if(n===i.H_.FIVE)return r===i.Mf.BUY?i.M6.COUNTERPARTY5:i.M6.QUEUE5}if(t===i.ZN.BID){if(n===i.H_.ONE)return r===i.Mf.BUY?i.M6.QUEUE1:i.M6.COUNTERPARTY1;if(n===i.H_.FIVE)return r===i.Mf.BUY?i.M6.QUEUE5:i.M6.COUNTERPARTY5}}function W(e){let{side:t,type:r,closePrice:n,orderPrice:o}=e,a=1;return t===i.Mf.BUY&&(a="tp"===r?n>=o?1:-1:n<o?-1:1),t===i.Mf.SELL&&(a="tp"===r?n<=o?1:-1:n>o?-1:1),a}function q(e,t,r=!1){return(null!=e?e===i.ZN.LIMIT:null!=t&&""!==t)?i.ZN.LIMIT:r?i.ZN.CLOSE_POSITION:i.ZN.MARKET}function Y(e){return!!e&&!1!==e.is_activated&&Number.isFinite(Number(e.trigger_price))&&Number(e.trigger_price)>0}function $(e){return"POSITIONAL_TP_SL"===e.algo_type||"POSITIONAL_TP_SL"===e.parent_algo_type||"POSITIONAL_TP_SL"===e.root_algo_order_algo_type||"CLOSE_POSITION"===e.type}function X(e){var t,r,n,i,o,a,s,l;return!0===e.is_triggered||!0===e.triggered||(null!=(t=e.trigger_time)?t:0)>0||["TRIGGERING","SUCCESS","FAILED"].includes(null!=(r=e.trigger_status)?r:"")||["PARTIAL_FILLED","FILLED"].includes(null!=(i=null!=(n=e.algo_status)?n:e.status)?i:"")||(null!=(a=null!=(o=e.total_executed_quantity)?o:e.executed)?a:0)>0||null!=(l=null==(s=e.child_orders)?void 0:s.some(X))&&l}function J(e){return $(e)&&!X(e)}function Q(e,t){return e.symbol===t.symbol&&(e.margin_mode||"CROSS")===(t.margin_mode||t.marginMode||"CROSS")}function Z(e,t,r=!1){var n,i,o;let a=["CANCELLED","CANCELED","FILLED","REJECTED","EXPIRED"].includes(null!=(o=null!=(i=null!=(n=e.algo_status)?n:e.status)?i:e.root_algo_status)?o:""),s=J(e)?r||a?void 0:t:e.quantity;return null!=s&&Number.isFinite(s)&&0!==s?Math.abs(s):void 0}function ee(e){var t;return null!=(t="LIMIT"===e.type?e.price:e.trigger_price)?t:void 0}function et(e,t){var r,n,i;let o=null==(r=e.child_orders)?void 0:r.find(e=>e.algo_type===("tp"===t?"TAKE_PROFIT":"STOP_LOSS"));return o?h(f({},o),{symbol:null!=(n=o.symbol)?n:e.symbol,margin_mode:null!=(i=o.margin_mode)?i:e.margin_mode,parent_algo_type:e.algo_type,quantity:o.quantity||($(e)?void 0:e.quantity),root_algo_status:e.root_algo_status}):void 0}function er(e){var t,r;return h(f({},e),{is_triggered:null!=(t=e.is_triggered)?t:e.triggered,child_orders:null==(r=e.child_orders)?void 0:r.map(t=>{var r;return er(h(f({},t),{symbol:null!=(r=t.symbol)?r:e.symbol,parent_algo_type:e.algo_type,margin_mode:t.margin_mode||e.margin_mode||"CROSS"}))})})}function en(e,t=2,r,n){let i=eo(r);if(!i)return;let o=i.greaterThan(0);switch(e){case 0:case 2:return ei(i,t,null!=n?n:o?p.ROUND_DOWN:p.ROUND_UP);case 1:case 3:case 4:return ei(i,t,null!=n?n:p.ROUND_DOWN)}}function ei(e,t,r){return e.toDecimalPlaces(t,r)}function eo(e){try{if(e instanceof p)return e;if(!e)return;if("number"==typeof e)return new p(e);if("string"==typeof e){if(!e.trim())return;return new p(e)}return e}catch(e){return}}var ea=en;ea.pnl=e=>en(0,2,e),ea.notional=e=>en(1,2,e),ea.roi=(e,t)=>en(2,null!=t?t:4,e),ea.assetValue=e=>en(3,2,e),ea.collateral=e=>en(4,2,e)},52877:(e,t,r)=>{"use strict";var n,i=r(91860),o=r(41157),a=r(7593),s=r(9288),l=r(57216),u=r(97720),c=r(23443),d=r(34275),f=r(23033),h=r(25047),p=r(20539),g=r(57677),m=r(79631),y=r(1561),E=r(12434),b=Function,v=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},T=r(85974),w=r(91555),A=function(){throw new c},N=T?function(){try{return arguments.callee,A}catch(e){try{return T(arguments,"callee").get}catch(e){return A}}}():A,S=r(6687)(),_=r(24993),x=r(16605),I=r(24205),O=r(23742),R=r(9682),P={},M="undefined"!=typeof Uint8Array&&_?_(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&_?_([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
3IteratorPrototype%":S&&_?_(_([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&_?_(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":T,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&_?_(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&_?_(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":N,"%TypedArray%":M,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":x,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":E,"%Reflect.getPrototypeOf%":I};if(_)try{null.error}catch(e){var k=_(_(e));C["%Error.prototype%"]=k}var L=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&_&&(r=_(i.prototype))}return C[t]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(30585),V=r(33507),F=B.call(R,Array.prototype.concat),U=B.call(O,Array.prototype.splice),j=B.call(R,String.prototype.replace),H=B.call(R,String.prototype.slice),G=B.call(R,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,W=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,K,function(e,t,r,i){n[n.length]=r?j(i,z,"$1"):t||e}),n},q=function(e,t){var r,n=e;if(V(D,n)&&(n="%"+(r=D[n])[0]+"%"),V(C,n)){var i=C[n];if(i===P&&(i=L(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),n=r.length>0?r[0]:"",i=q("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],U(r,F([0,1],l)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],p=H(h,0,1),g=H(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),n+="."+h,V(C,o="%"+n+"%"))a=C[o];
3else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(T&&d+1>=r.length){var m=T(a,h);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else f=V(a,h),a=a[h];f&&!s&&(C[o]=a)}}return a}},53010:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(13741),i=r(27754),o=r(42401);let a=()=>(e,t,r={})=>{let{mutate:a}=(0,i.iX)(),s=(0,n.useRef)(e),l=(0,n.useRef)(t),u=(0,n.useRef)(r),c=(0,n.useRef)(0),[d,f,h]=(0,o.vO)({data:o.ZH,error:o.ZH,isMutating:!1}),p=d.current,g=(0,n.useCallback)(async(e,t)=>{let[r,n]=(0,o.lK)(s.current);if(!l.current)throw Error("Canât trigger the mutation: missing fetcher.");if(!r)throw Error("Canât trigger the mutation: missing key.");let i=(0,o.rL)((0,o.rL)({populateCache:!1,throwOnError:!0},u.current),t),d=(0,o.lg)();c.current=d,h({isMutating:!0});try{let t=await a(r,l.current(n,{arg:e}),(0,o.rL)(i,{throwOnError:!0}));return c.current<=d&&(h({data:t,isMutating:!1,error:void 0}),null==i.onSuccess||i.onSuccess(t,r,i)),t}catch(e){if(c.current<=d&&(h({error:e,isMutating:!1}),null==i.onError||i.onError(e,r,i),i.throwOnError))throw e}},[]),m=(0,n.useCallback)(()=>{c.current=(0,o.lg)(),h({data:o.ZH,error:o.ZH,isMutating:!1})},[]);return(0,o.Es)(()=>{s.current=e,l.current=t,u.current=r}),{trigger:g,reset:m,get data(){return f.data=!0,p.data},get error(){return f.error=!0,p.error},get isMutating(){return f.isMutating=!0,p.isMutating}}},s=(0,o.Ht)(i.Ay,a)},53288:(e,t,r)=>{"use strict";var n=r(49524),i=r(93422),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],E=r,b=n,v=i,T=u,w=c,A=0;A<80;A++){var N=a(o(l(r,d(A,n,i,u),e[p[A]+t],f(A)),m[A]),c);r=c,c=u,u=o(i,10),i=n,n=N,N=a(o(l(E,d(79-A,b,v,T),e[g[A]+t],h(A)),y[A]),w),E=w,w=T,T=o(v,10),v=b,b=N}N=s(this.h[1],i,T),this.h[1]=s(this.h[2],u,w),this.h[2]=s(this.h[3],c,E),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,v),this.h[0]=N},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},53291:(e,t,r)=>{"use strict";var n=r(91555),i=r(97720),o=r(23443),a=r(85974);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},53611:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},53757:(e,t,r)=>{"use strict";r.d(t,{hv:()=>tP});var n,i=r(42073),o=r(13741),a=r(75256),s=r(20400),l=r(6816);function u(e){let t=(0,l.a)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}var c=r(48832);function d(e,t){let r=(0,l.a)(e),n=(0,l.a)(t);return r.getFullYear()===n.getFullYear()}var f=r(13630),h=r(14080);function p(e,t){let r=(0,l.a)(e);return isNaN(+r)?(0,h.w)(e,NaN):(r.setFullYear(t),r)}
3var g=r(66355);function m(e,t){let r=(0,l.a)(e),n=(0,l.a)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}function y(e,t){let r=(0,l.a)(e);if(isNaN(t))return(0,h.w)(e,NaN);if(!t)return r;let n=r.getDate(),i=(0,h.w)(e,r.getTime());return(i.setMonth(r.getMonth()+t+1,0),n>=i.getDate())?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function E(e,t){let r=(0,l.a)(e),n=(0,l.a)(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}var b=r(782),v=r(18897),T=r(58456),w=r(92419);function A(e,t){return+(0,c.o)(e)==+(0,c.o)(t)}var N=r(2937),S=r(79772),_=r(86272),x=r(85667);function I(e,t){let r=7*t;return(0,w.f)(e,r)}function O(e,t){return y(e,12*t)}var R=r(98043);function P(e,t){var r,n,i,o,a,s,u,c;let d=(0,R.q)(),f=null!=(c=null!=(u=null!=(s=null!=(a=null==t?void 0:t.weekStartsOn)?a:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.weekStartsOn)?s:d.weekStartsOn)?u:null==(o=d.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?c:0,h=(0,l.a)(e),p=h.getDay(),g=(p<f?-7:0)+6-(p-f);return h.setDate(h.getDate()+g),h.setHours(23,59,59,999),h}function M(e){return P(e,{weekStartsOn:1})}function C(e){let t;return e.forEach(function(e){let r=(0,l.a)(e);(void 0===t||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function k(e){let t;return e.forEach(e=>{let r=(0,l.a)(e);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function L(e){return Math.trunc((0,l.a)(e)/1e3)}var D=r(45923),B=r(27440),V=r(93224),F=r(64177);function U(e,t,r){let n=(0,T.k)(e,r),i=(0,T.k)(t,r);return Math.round((n-(0,F.G)(n)-(i-(0,F.G)(i)))/V.my)}function j(e){let t=(0,l.a)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function H(e,t){return U(j(e),(0,s.w)(e),t)+1}var G=r(150),K=function(){return(K=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function z(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function W(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function q(e){return"multiple"===e.mode}function Y(e){return"range"===e.mode}function $(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var X={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"},J=Object.freeze({__proto__:null,formatCaption:function(e,t){return(0,a.GP)(e,"LLLL y",t)},formatDay:function(e,t){return(0,a.GP)(e,"d",t)},formatMonthCaption:function(e,t){return(0,a.GP)(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return(0,a.GP)(e,"cccccc",t)}
3,formatYearCaption:function(e,t){return(0,a.GP)(e,"yyyy",t)}}),Q=Object.freeze({__proto__:null,labelDay:function(e,t,r){return(0,a.GP)(e,"do MMMM (EEEE)",r)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return(0,a.GP)(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});function Z(){return{captionLayout:"buttons",classNames:X,formatters:J,labels:Q,locale:G.c,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"}}function ee(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,i=e.toMonth,o=e.fromDate,a=e.toDate;return n?o=(0,s.w)(n):t&&(o=new Date(t,0,1)),i?a=u(i):r&&(a=new Date(r,11,31)),{fromDate:o?(0,c.o)(o):void 0,toDate:a?(0,c.o)(a):void 0}}var et=(0,o.createContext)(void 0);function er(e){var t,r,n=e.initialProps,o=Z(),a=ee(n),s=a.fromDate,l=a.toDate,u=null!=(t=n.captionLayout)?t:o.captionLayout;"buttons"===u||s&&l||(u="buttons"),($(n)||q(n)||Y(n))&&(r=n.onSelect);var c=K(K(K({},o),n),{captionLayout:u,classNames:K(K({},o.classNames),n.classNames),components:K({},n.components),formatters:K(K({},o.formatters),n.formatters),fromDate:s,labels:K(K({},o.labels),n.labels),mode:n.mode||o.mode,modifiers:K(K({},o.modifiers),n.modifiers),modifiersClassNames:K(K({},o.modifiersClassNames),n.modifiersClassNames),onSelect:r,styles:K(K({},o.styles),n.styles),toDate:l});return(0,i.jsx)(et.Provider,{value:c,children:e.children})}function en(){var e=(0,o.useContext)(et);if(!e)throw Error("useDayPicker must be used within a DayPickerProvider.");return e}function ei(e){var t=en(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return(0,i.jsx)("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function eo(e){return(0,i.jsx)("svg",K({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:(0,i.jsx)("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ea(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,l=e.className,u=e.style,c=en(),d=null!=(r=null==(t=c.components)?void 0:t.IconDropdown)?r:eo;return(0,i.jsxs)("div",{className:l,style:u,children:[(0,i.jsx)("span",{className:c.classNames.vhidden,children:e["aria-label"]}),(0,i.jsx)("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),(0,i.jsxs)("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,(0,i.jsx)(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function es(e){var t,r=en(),n=r.fromDate,o=r.toDate,a=r.styles,l=r.locale,u=r.formatters.formatMonthCaption,c=r.classNames,h=r.components,p=r.labels.labelMonthDropdown;if(!n||!o)return(0,i.jsx)(i.Fragment,{});var g=[];if(d(n,o))for(var m=(0,s.w)(n),y=n.getMonth();y<=o.getMonth();y++)g.push((0,f.Z)(m,y));else for(var m=(0,s.w)(new Date),y=0;y<=11;y++)g.push((0,f.Z)(m,y));var E=function(t){var r=Number(t.target.value),n=(0,f.Z)((0,s.w)(e.displayMonth),r);e.onChange(n)},b=null!=(t=null==h?void 0:h.Dropdown)?t:ea;return(0,i.jsx)(b,{name:"months","aria-label":p(),className:c.dropdown_month,style:a.dropdown_month,onChange:E,value:e.displayMonth.getMonth(),caption:u(e.displayMonth,{locale:l}),children:g.map(function(e){return(0,i.jsx)("option",{value:e.getMonth(),children:u(e,{locale:l})},e.getMonth())})})}
3function el(e){var t,r=e.displayMonth,n=en(),o=n.fromDate,a=n.toDate,l=n.locale,u=n.styles,c=n.classNames,d=n.components,f=n.formatters.formatYearCaption,h=n.labels.labelYearDropdown,m=[];if(!o||!a)return(0,i.jsx)(i.Fragment,{});for(var y=o.getFullYear(),E=a.getFullYear(),b=y;b<=E;b++)m.push(p((0,g.D)(new Date),b));var v=function(t){var n=p((0,s.w)(r),Number(t.target.value));e.onChange(n)},T=null!=(t=null==d?void 0:d.Dropdown)?t:ea;return(0,i.jsx)(T,{name:"years","aria-label":h(),className:c.dropdown_year,style:u.dropdown_year,onChange:v,value:r.getFullYear(),caption:f(r,{locale:l}),children:m.map(function(e){return(0,i.jsx)("option",{value:e.getFullYear(),children:f(e,{locale:l})},e.getFullYear())})})}function eu(e,t){var r=(0,o.useState)(e),n=r[0];return[void 0===t?n:t,r[1]]}function ec(e){var t=e.month,r=e.defaultMonth,n=e.today,i=t||r||n||new Date,o=e.toDate,a=e.fromDate,l=e.numberOfMonths,u=void 0===l?1:l;return o&&0>m(o,i)&&(i=y(o,-1*(u-1))),a&&0>m(i,a)&&(i=a),(0,s.w)(i)}function ed(){var e=en(),t=eu(ec(e),e.month),r=t[0],n=t[1];return[r,function(t){if(!e.disableNavigation){var r,i=(0,s.w)(t);n(i),null==(r=e.onMonthChange)||r.call(e,i)}}]}function ef(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,i=(0,s.w)(e),o=m((0,s.w)(y(i,n)),i),a=[],l=0;l<o;l++){var u=y(i,l);a.push(u)}return r&&(a=a.reverse()),a}function eh(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,i=t.numberOfMonths,o=void 0===i?1:i,a=n?o:1,l=(0,s.w)(e);if(!r||!(m(r,e)<o))return y(l,a)}}function ep(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,i=t.numberOfMonths,o=void 0===i?1:i,a=n?o:1,l=(0,s.w)(e);if(!r||!(0>=m(l,r)))return y(l,-a)}}var eg=(0,o.createContext)(void 0);function em(e){var t=en(),r=ed(),n=r[0],o=r[1],a=ef(n,t),s=eh(n,t),l=ep(n,t),u=function(e){return a.some(function(t){return E(e,t)})},c=function(e,r){u(e)||(r&&(0,b.Y)(e,r)?o(y(e,1+-1*t.numberOfMonths)):o(e))},d={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:l,nextMonth:s,isDateDisplayed:u};return(0,i.jsx)(eg.Provider,{value:d,children:e.children})}function ey(){var e=(0,o.useContext)(eg);if(!e)throw Error("useNavigation must be used within a NavigationProvider");return e}function eE(e){var t,r=en(),n=r.classNames,o=r.styles,a=r.components,s=ey().goToMonth,l=function(t){s(y(t,e.displayIndex?-e.dis
3playIndex:0))},u=null!=(t=null==a?void 0:a.CaptionLabel)?t:ei,c=(0,i.jsx)(u,{id:e.id,displayMonth:e.displayMonth});return(0,i.jsxs)("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[(0,i.jsx)("div",{className:n.vhidden,children:c}),(0,i.jsx)(es,{onChange:l,displayMonth:e.displayMonth}),(0,i.jsx)(el,{onChange:l,displayMonth:e.displayMonth})]})}function eb(e){return(0,i.jsx)("svg",K({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,i.jsx)("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ev(e){return(0,i.jsx)("svg",K({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,i.jsx)("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var eT=(0,o.forwardRef)(function(e,t){var r=en(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),l=K(K({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),(0,i.jsx)("button",K({},e,{ref:t,type:"button",className:s,style:l}))});function ew(e){var t,r,n=en(),o=n.dir,a=n.locale,s=n.classNames,l=n.styles,u=n.labels,c=u.labelPrevious,d=u.labelNext,f=n.components;if(!e.nextMonth&&!e.previousMonth)return(0,i.jsx)(i.Fragment,{});var h=c(e.previousMonth,{locale:a}),p=[s.nav_button,s.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[s.nav_button,s.nav_button_next].join(" "),y=null!=(t=null==f?void 0:f.IconRight)?t:ev,E=null!=(r=null==f?void 0:f.IconLeft)?r:eb;return(0,i.jsxs)("div",{className:s.nav,style:l.nav,children:[!e.hidePrevious&&(0,i.jsx)(eT,{name:"previous-month","aria-label":h,className:p,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?(0,i.jsx)(y,{className:s.nav_icon,style:l.nav_icon}):(0,i.jsx)(E,{className:s.nav_icon,style:l.nav_icon})}),!e.hideNext&&(0,i.jsx)(eT,{name:"next-month","aria-label":g,className:m,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?(0,i.jsx)(E,{className:s.nav_icon,style:l.nav_icon}):(0,i.jsx)(y,{className:s.nav_icon,style:l.nav_icon})})]})}function eA(e){var t=en().numberOfMonths,r=ey(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,l=s.findIndex(function(t){return E(e.displayMonth,t)}),u=0===l,c=l===s.length-1,d=t>1&&(u||!c),f=t>1&&(c||!u),h=function(){n&&a(n)},p=function(){o&&a(o)};return(0,i.jsx)(ew,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:p})}function eN(e){var t,r,n=en(),o=n.classNames,a=n.disableNavigation,s=n.styles,l=n.captionLayout,u=n.components,c=null!=(t=null==u?void 0:u.CaptionLabel)?t:ei;return r=a?(0,i.jsx)(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===l?(0,i.jsx)(eE,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eE,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,i.jsx)(eA,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,i.jsx)(eA,{displayMonth:e.displayMonth,id:e.id})]}),(0,i.jsx)("div",{className:o.caption,style:s.caption,children:r})}function eS(e){var t=en(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?(0,i.jsx)("tfoot",{className:o,style:n.tfoot,children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:8,children:r})})}):(0,i.jsx)(i.Fragment,{})}function e_(e,t,r){for(var n=r?(0,v.b)(new Date):(0,T.k)(new Date,{locale:e,weekStartsOn:t}),i=[],o=0;o<7;o++){var a=(0,w.f)(n,o);i.push(a)}return i}function ex(){var e=en(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=e_(o,a,s);return(0,i.jsxs)("tr",{style:r.head_row,className:t.head_row,children:[n&&(0,i.jsx)("td",{style:r.head_cell,className:t.head_cell}),c.map(function(e,n){return(0,i.jsx)("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":u(e,{locale:o}),children:l(e,{locale:o})},n)})]})}function eI(){var e,t=en(),r=t.classNames,n=t.styles,o=t.components,a=null!=(e=null==o?void 0:o.HeadRow)?e:ex;return(0,i.jsx)("thead",{style:n.head,className:r.head,children:(0,i.jsx)(a,{})})}function eO(e){var t=en(),r=t.locale,n=t.formatters.formatDay;return(0,i.jsx)(i.Fragment,{children:n(e.date,{locale:r})})}var eR=(0,o.createContext)(void 0);function eP(e){if(!q(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return(0,i.jsx)(eR.Provider,{value:t,children:e.children})}return(0,i.jsx)(eM,{initialProps:e.initialProps,children:e.children})}function eM(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(e,r,i){var s,l;if((null==(s=t.onDayClick)||s.call(t,e,r,i),!r.selected||!o||(null==n?void 0:n.length)!==o)&&!(!r.selected&&a&&(null==n?void 0:n.length)===a)){var u=n?W([],n,!0):[];if(r.selected){var c=u.findIndex(function(t){return A(e,t)});u.splice(c,1)}else u.push(e);null==(l=t.onSelect)||l.call(t,u,e,r,i)}},l={disabled:[]};n&&l.disabled.push(function(e){var t=a&&n.length>a-1,r=n.some(function(t){return A(t,e)});return!!(t&&!r)});
3var u={selected:n,onDayClick:s,modifiers:l};return(0,i.jsx)(eR.Provider,{value:u,children:r})}function eC(){var e=(0,o.useContext)(eR);if(!e)throw Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function ek(e,t){var r=t||{},n=r.from,i=r.to;return n&&i?A(i,e)&&A(n,e)?void 0:A(i,e)?{from:i,to:void 0}:A(n,e)?void 0:(0,N.d)(n,e)?{from:e,to:i}:{from:n,to:e}:i?(0,N.d)(e,i)?{from:i,to:e}:{from:e,to:i}:n?(0,b.Y)(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var eL=(0,o.createContext)(void 0);function eD(e){if(!Y(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return(0,i.jsx)(eL.Provider,{value:t,children:e.children})}return(0,i.jsx)(eB,{initialProps:e.initialProps,children:e.children})}function eB(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,l=t.min,u=t.max,c=function(e,r,i){null==(o=t.onDayClick)||o.call(t,e,r,i);var o,a,s=ek(e,n);null==(a=t.onSelect)||a.call(t,s,e,r,i)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(d.range_start=[a],s?(d.range_end=[s],A(a,s)||(d.range_middle=[{after:a,before:s}])):d.range_end=[a]):s&&(d.range_start=[s],d.range_end=[s]),l&&(a&&!s&&d.disabled.push({after:(0,S.e)(a,l-1),before:(0,w.f)(a,l-1)}),a&&s&&d.disabled.push({after:a,before:(0,w.f)(a,l-1)}),!a&&s&&d.disabled.push({after:(0,S.e)(s,l-1),before:(0,w.f)(s,l-1)})),u){if(a&&!s&&(d.disabled.push({before:(0,w.f)(a,-u+1)}),d.disabled.push({after:(0,w.f)(a,u-1)})),a&&s){var f=u-((0,_.m)(s,a)+1);d.disabled.push({before:(0,S.e)(a,f)}),d.disabled.push({after:(0,w.f)(s,f)})}!a&&s&&(d.disabled.push({before:(0,w.f)(s,-u+1)}),d.disabled.push({after:(0,w.f)(s,u-1)}))}return(0,i.jsx)(eL.Provider,{value:{selected:n,onDayClick:c,modifiers:d},children:r})}function eV(){var e=(0,o.useContext)(eL);if(!e)throw Error("useSelectRange must be used within a SelectRangeProvider");return e}function eF(e){return Array.isArray(e)?W([],e,!0):void 0!==e?[e]:[]}function eU(e){var t={};return Object.entries(e).forEach(function(e){var r=e[0],n=e[1];t[r]=eF(n)}),t}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(n||(n={}));var ej=n.Selected,eH=n.Disabled,eG=n.Hidden,eK=n.Today,ez=n.RangeEnd,eW=n.RangeMiddle,eq=n.RangeStart,eY=n.Outside;function e$(e,t,r){var n,i=((n={})[ej]=eF(e.selected),n[eH]=eF(e.disabled),n[eG]=eF(e.hidden),n[eK]=[e.today],n[ez]=[],n[eW]=[],n[eq]=[],n[eY]=[],n);return e.fromDate&&i[eH].push({before:e.fromDate}),e.toDate&&i[eH].push({after:e.toDate}),q(e)?i[eH]=i[eH].concat(t.modifiers[eH]):Y(e)&&(i[eH]=i[eH].concat(r.modifiers[eH]),i[eq]=r.modifiers[eq],i[eW]=r.modifiers[eW],i[ez]=r.modifiers[ez]),i}var eX=(0,o.createContext)(void 0);function eJ(e){var t=en(),r=e$(t,eC(),eV()),n=eU(t.modifiers),o=K(K({},r),n);return(0,i.jsx)(eX.Provider,{value:o,children:e.children})}function eQ(){var e=(0,o.useContext)(eX);if(!e)throw Error("useModifiers must be used within a ModifiersProvider");return e}function eZ(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}function e0(e){return!!(e&&"object"==typeof e&&"from"in e)}function e1(e){return!!(e&&"object"==typeof e&&"after"in e)}function e2(e){return!!(e&&"object"==typeof e&&"before"in e)}function e3(e){return!!(e&&"object"==typeof e&&"dayOfWeek"in e)}function e4(e,t){var r,n=t.from,i=t.to;return n&&i?(0>(0,_.m)(i,n)&&(n=(r=[i,n])[0],i=r[1]),(0,_.m)(e,n)>=0&&(0,_.m)(i,e)>=0):i?A(i,e):!!n&&A(n,e)}function e5(e){return(0,x.$)(e)}function e6(e){return Array.isArray(e)&&e.every(x.$)}function e8(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(e5(t))return A(e,t);if(e6(t))return t.includes(e);if(e0(t))return e4(e,t);if(e3(t))return t.dayOfWeek.includes(e.getDay());if(eZ(t)){var r=(0,_.m)(t.before,e),n=(0,_.m)(t.after,e),i=r>0,o=n<0;return(0,N.d)(t.before,t.after)?o&&i:i||o}return e1(t)?(0,_.m)(e,t.after)>0:e2(t)?(0,_.m)(t.before,e)>0:"function"==typeof t&&t(e)})}function e7(e,t,r){var n=Object.keys(t).reduce(function(r,n){return e8(e,t[n])&&r.push(n),r},[]),i={};
3return n.forEach(function(e){return i[e]=!0}),r&&!E(e,r)&&(i.outside=!0),i}function e9(e,t){for(var r,n,i=(0,s.w)(e[0]),o=u(e[e.length-1]),a=i;a<=o;){var l=e7(a,t);if(!(!l.disabled&&!l.hidden)){a=(0,w.f)(a,1);continue}if(l.selected)return a;l.today&&!n&&(n=a),r||(r=a),a=(0,w.f)(a,1)}return n||r}var te=365;function tt(e,t){var r=t.moveBy,n=t.direction,i=t.context,o=t.modifiers,a=t.retry,s=void 0===a?{count:0,lastFocused:e}:a,l=i.weekStartsOn,u=i.fromDate,c=i.toDate,d=i.locale,f=({day:w.f,week:I,month:y,year:O,startOfWeek:function(e){return i.ISOWeek?(0,v.b)(e):(0,T.k)(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return i.ISOWeek?M(e):P(e,{locale:d,weekStartsOn:l})}})[r](e,"after"===n?1:-1);"before"===n&&u?f=C([u,f]):"after"===n&&c&&(f=k([c,f]));var h=!0;if(o){var p=e7(f,o);h=!p.disabled&&!p.hidden}return h?f:s.count>te?s.lastFocused:tt(f,{moveBy:r,direction:n,context:i,modifiers:o,retry:K(K({},s),{count:s.count+1})})}var tr=(0,o.createContext)(void 0);function tn(e){var t=ey(),r=eQ(),n=(0,o.useState)(),a=n[0],s=n[1],l=(0,o.useState)(),u=l[0],c=l[1],d=e9(t.displayMonths,r),f=(null!=a?a:u&&t.isDateDisplayed(u))?u:d,h=function(){c(a),s(void 0)},p=function(e){s(e)},g=en(),m=function(e,n){if(a){var i=tt(a,{moveBy:e,direction:n,context:g,modifiers:r});A(a,i)||(t.goToDate(i,a),p(i))}},y={focusedDay:a,focusTarget:f,blur:h,focus:p,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return(0,i.jsx)(tr.Provider,{value:y,children:e.children})}function ti(){var e=(0,o.useContext)(tr);if(!e)throw Error("useFocusContext must be used within a FocusProvider");return e}function to(e,t){return e7(e,eQ(),t)}var ta=(0,o.createContext)(void 0);function ts(e){if(!$(e.initialProps)){var t={selected:void 0};return(0,i.jsx)(ta.Provider,{value:t,children:e.children})}return(0,i.jsx)(tl,{initialProps:e.initialProps,children:e.children})}function tl(e){var t=e.initialProps,r=e.children,n=function(e,r,n){var i,o,a;if(null==(i=t.onDayClick)||i.call(t,e,r,n),r.selected&&!t.required){null==(o=t.onSelect)||o.call(t,void 0,e,r,n);return}null==(a=t.onSelect)||a.call(t,e,e,r,n)},o={selected:t.selected,onDayClick:n};return(0,i.jsx)(ta.Provider,{value:o,children:r})}function tu(){var e=(0,o.useContext)(ta);if(!e)throw Error("useSelectSingle must be used within a SelectSingleProvider");return e}function tc(e,t){var r=en(),n=tu(),i=eC(),o=eV(),a=ti(),s=a.focusDayAfter,l=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,h=a.focusMonthBefore,p=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,y=a.focusStartOfWeek,E=a.focusEndOfWeek;return{onClick:function(a){var s,l,u,c;$(r)?null==(s=n.onDayClick)||s.call(n,e,t,a):q(r)?null==(l=i.onDayClick)||l.call(i,e,t,a):Y(r)?null==(u=o.onDayClick)||u.call(o,e,t,a):null==(c=r.onDayClick)||c.call(r,e,t,a)},onFocus:function(n){var i;f(e),null==(i=r.onDayFocus)||i.call(r,e,t,n)},onBlur:function(n){var i;d(),null==(i=r.onDayBlur)||i.call(r,e,t,n)},onKeyDown:function(n){var i;switch(n.key){case"ArrowLeft":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?s():l();break;case"ArrowRight":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?l():s();break;case"ArrowDown":n.preventDefault(),n.stopPropagation(),u();break;case"ArrowUp":n.preventDefault(),n.stopPropagation(),c();break;case"PageUp":n.preventDefault(),n.stopPropagation(),n.shiftKey?g():h();break;case"PageDown":n.preventDefault(),n.stopPropagation(),n.shiftKey?m():p();break;case"Home":n.preventDefault(),n.stopPropagation(),y();break;case"End":n.preventDefault(),n.stopPropagation(),E()}null==(i=r.onDayKeyDown)||i.call(r,e,t,n)},onKeyUp:function(n){var i;null==(i=r.onDayKeyUp)||i.call(r,e,t,n)},onMouseEnter:function(n){var i;null==(i=r.onDayMouseEnter)||i.call(r,e,t,n)},onMouseLeave:function(n){var i;null==(i=r.onDayMouseLeave)||i.call(r,e,t,n)},onPointerEnter:function(n){var i;null==(i=r.onDayPointerEnter)||i.call(r,e,t,n)},onPointerLeave:function(n){var i;null==(i=r.onDayPointerLeave)||i.call(r,e,t,n)},onTouchCancel:function(n){var i;null==(i=r.onDayTouchCancel)||i.call(r,e,t,n)},onTouchEnd:function(n){var i;null==(i=r.onDayTouchEnd)||i.call(r,e,t,n)},onTouchMove:function(n){var i;null==(i=r.onDayTouchMove)||i.call(r,e,t,n)},onTouchStart:function(n){var i;null==(i=r.onDayTouchStart)||i.call(r,e,t,n)}}}function td(){var e=en(),t=tu(),r=eC(),n=eV();return $(e)?t.selected:q(e)?r.selected:Y(e)?n.selected:void 0}function tf(e){return Object.values(n).includes(e)}function th(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(t){var n=e.modifiersClassNames[t];if(n)r.push(n);else if(tf(t)){var i=e.classNames["day_".concat(t)];i&&r.push(i)}}),r}function tp(e,t){var r=K({},e.styles.day);return Object.keys(t).forEach(function(t){var n;r=K(K({},r),null==(n=e.modifiersStyles)?void 0:n[t])}),r}function tg(e,t,r){var n,a,s,l=en(),u=ti(),c=to(e,t),d=tc(e,c),f=td(),h=!!(l.onDayClick||"default"!==l.mode);(0,o.useEffect)(function(){var t;
3!c.outside&&u.focusedDay&&h&&A(u.focusedDay,e)&&(null==(t=r.current)||t.focus())},[u.focusedDay,e,r,h,c.outside]);var p=th(l,c).join(" "),g=tp(l,c),m=!!(c.outside&&!l.showOutsideDays||c.hidden),y=null!=(s=null==(a=l.components)?void 0:a.DayContent)?s:eO,E={style:g,className:p,children:(0,i.jsx)(y,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&A(u.focusTarget,e)&&!c.outside,v=u.focusedDay&&A(u.focusedDay,e),T=K(K(K({},E),((n={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,n.tabIndex=v||b?0:-1,n)),d);return{isButton:h,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:T,divProps:E}}function tm(e){var t=(0,o.useRef)(null),r=tg(e.date,e.displayMonth,t);return r.isHidden?(0,i.jsx)("div",{role:"gridcell"}):r.isButton?(0,i.jsx)(eT,K({name:"day",ref:t},r.buttonProps)):(0,i.jsx)("div",K({},r.divProps))}function ty(e){var t=e.number,r=e.dates,n=en(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,l=n.locale,u=n.labels.labelWeekNumber,c=(0,n.formatters.formatWeekNumber)(Number(t),{locale:l});if(!o)return(0,i.jsx)("span",{className:s.weeknumber,style:a.weeknumber,children:c});var d=u(Number(t),{locale:l}),f=function(e){o(t,r,e)};return(0,i.jsx)(eT,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f,children:c})}function tE(e){var t,r,n,o=en(),a=o.styles,s=o.classNames,l=o.showWeekNumber,u=o.components,c=null!=(t=null==u?void 0:u.Day)?t:tm,d=null!=(r=null==u?void 0:u.WeekNumber)?r:ty;return l&&(n=(0,i.jsx)("td",{className:s.cell,style:a.cell,children:(0,i.jsx)(d,{number:e.weekNumber,dates:e.dates})})),(0,i.jsxs)("tr",{className:s.row,style:a.row,children:[n,e.dates.map(function(t){return(0,i.jsx)("td",{className:s.cell,style:a.cell,role:"presentation",children:(0,i.jsx)(c,{displayMonth:e.displayMonth,date:t})},L(t))})]})}function tb(e,t,r){for(var n=(null==r?void 0:r.ISOWeek)?M(t):P(t,r),i=(null==r?void 0:r.ISOWeek)?(0,v.b)(e):(0,T.k)(e,r),o=(0,_.m)(n,i),a=[],s=0;s<=o;s++)a.push((0,w.f)(i,s));return a.reduce(function(e,t){var n=(null==r?void 0:r.ISOWeek)?(0,D.s)(t):(0,B.N)(t,r),i=e.find(function(e){return e.weekNumber===n});return i?i.dates.push(t):e.push({weekNumber:n,dates:[t]}),e},[])}function tv(e,t){var r=tb((0,s.w)(e),u(e),t);if(null==t?void 0:t.useFixedWeeks){var n=H(e,t);if(n<6){var i=r[r.length-1],o=i.dates[i.dates.length-1],a=I(o,6-n),l=tb(I(o,1),a,t);r.push.apply(r,l)}}return r}function tT(e){var t,r,n,o=en(),a=o.locale,s=o.classNames,l=o.styles,u=o.hideHead,c=o.fixedWeeks,d=o.components,f=o.weekStartsOn,h=o.firstWeekContainsDate,p=o.ISOWeek,g=tv(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:p,locale:a,weekStartsOn:f,firstWeekContainsDate:h}),m=null!=(t=null==d?void 0:d.Head)?t:eI,y=null!=(r=null==d?void 0:d.Row)?r:tE,E=null!=(n=null==d?void 0:d.Footer)?n:eS;return(0,i.jsxs)("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!u&&(0,i.jsx)(m,{}),(0,i.jsx)("tbody",{className:s.tbody,style:l.tbody,children:g.map(function(t){return(0,i.jsx)(y,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),(0,i.jsx)(E,{displayMonth:e.displayMonth})]})}var tw=!function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}()?o.useEffect:o.useLayoutEffect,tA=!1,tN=0;function tS(){return"react-day-picker-".concat(++tN)}function t_(e){var t,r=null!=e?e:tA?tS():null,n=(0,o.useState)(r),i=n[0],a=n[1];return tw(function(){null===i&&a(tS())},[]),(0,o.useEffect)(function(){!1===tA&&(tA=!0)},[]),null!=(t=null!=e?e:i)?t:void 0}function tx(e){var t,r,n=en(),o=n.dir,a=n.classNames,s=n.styles,l=n.components,u=ey().displayMonths,c=t_(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],h=s.month,p=0===e.displayIndex,g=e.displayIndex===u.length-1,m=!p&&!g;"rtl"===o&&(g=(t=[p,g])[0],p=t[1]),p&&(f.push(a.caption_start),h=K(K({},h),s.caption_start)),g&&(f.push(a.caption_end),h=K(K({},h),s.caption_end)),m&&(f.push(a.caption_between),h=K(K({},h),s.caption_between));var y=null!=(r=null==l?void 0:l.Caption)?r:eN;return(0,i.jsxs)("div",{className:f.join(" "),style:h,children:[(0,i.jsx)(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,i.jsx)(tT,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function tI(e){var t=en(),r=t.classNames,n=t.styles;return(0,i.jsx)("div",{className:r.months,style:n.months,children:e.children})}function tO(e){var t,r,n=e.initialProps,a=en(),s=ti(),l=ey(),u=(0,o.useState)(!1),c=u[0],d=u[1];(0,o.useEffect)(function(){a.initialFocus&&s.focusTarget&&(c||(s.focus(s.focusTarget),d(!0)))},[a.initialFocus,c,s.focus,s.focusTarget,s]);var f=[a.classNames.root,a.className];a.numberOfMonths>1&&f.push(a.classNames.multiple_months),a.showWeekNumber&&f.push(a.classNames.with_weeknumber);var h=K(K({},a.styles.root),a.style),p=Object.keys(n).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var r;return K(K({},e),((r={})[t]=n[t],r))},{}),g=null!=(r=null==(t=n.components)?void 0:t.Months)?r:tI;return(0,i.jsx)("div",K({className:f.join(" "),style:h,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},p,{children:(0,i.jsx)(g,{children:l.displayMonths.map(function(e,t){return(0,i.jsx)(tx,{displayIndex:t,displayMonth:e},t)})})}))}function tR(e){var t=e.children,r=z(e,["children"]);return(0,i.jsx)(er,{initialProps:r,children:(0,i.jsx)(em,{children:(0,i.jsx)(ts,{initialProps:r,children:(0,i.jsx)(eP,{initialProps:r,children:(0,i.jsx)(eD,{initialProps:r,children:(0,i.jsx)(eJ,{children:(0,i.jsx)(tn,{children:t})})})})})})})}function tP(e){return(0,i.jsx)(tR,K({},e,{children:(0,i.jsx)(tO,{initialProps:e})}))}},54234:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(35),i=r(74259),o=Object.prototype.toString;let a=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return(0,i.A)("callee",e)}}();var s=!({toString:null}).propertyIsEnumerable("toString"),l=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
3ing"],u=function(){return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};let d="function"!=typeof Object.keys||u?(0,n.A)(function(e){if(Object(e)!==e)return[];var t,r,n=[],o=u&&a(e);for(t in e)(0,i.A)(t,e)&&(!o||"length"!==t)&&(n[n.length]=t);if(s)for(r=l.length-1;r>=0;)t=l[r],(0,i.A)(t,e)&&!c(n,t)&&(n[n.length]=t),r-=1;return n}):(0,n.A)(function(e){return Object(e)!==e?[]:Object.keys(e)})},55106:(e,t,r)=>{"use strict";var n=r(59518),i=r(91555),o=r(93758),a=r(16653);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},55481:(e,t,r)=>{"use strict";r.d(t,{BA:()=>c,Bb:()=>m,CR:()=>U,D4:()=>d,EQ:()=>l,H_:()=>B,Is:()=>b,J2:()=>ev,JP:()=>eI,JX:()=>z,JY:()=>p,KY:()=>ew,Lx:()=>em,M6:()=>D,Mf:()=>H,Ml:()=>P,Nj:()=>eP,Ox:()=>j,PN:()=>M,RA:()=>eN,RN:()=>n,Re:()=>G,Rv:()=>eO,SG:()=>_,SP:()=>eR,Tj:()=>E,Xd:()=>N,ZN:()=>k,a5:()=>A,a9:()=>C,aH:()=>h,dI:()=>eM,en:()=>g,f$:()=>e_,f5:()=>O,gJ:()=>S,hD:()=>ex,iA:()=>x,iU:()=>L,j1:()=>v,jl:()=>eS,lT:()=>ey,lY:()=>u,nB:()=>I,o1:()=>s,qF:()=>eA,qc:()=>F,qq:()=>y,v:()=>K,wN:()=>f,wS:()=>w,wy:()=>eE,xF:()=>R,yL:()=>V}),"undefined"!=typeof window&&(window.__ORDERLY_VERSION__=window.__ORDERLY_VERSION__||{},window.__ORDERLY_VERSION__["@orderly.network/types"]="3.2.1");var n=(e=>(e[e.EnableTradingWithoutConnected=-1]="EnableTradingWithoutConnected",e[e.NotConnected=0]="NotConnected",e[e.Connected=1]="Connected",e[e.NotSignedIn=2]="NotSignedIn",e[e.SignedIn=3]="SignedIn",e[e.DisabledTrading=4]="DisabledTrading",e[e.EnableTrading=5]="EnableTrading",e))(n||{}),i=(e=>(e[e.Loading=0]="Loading",e[e.Error=1]="Error",e[e.Ready=10]="Ready",e))(i||{}),o=(e=>(e[e.Normal=0]="Normal",e[e.Maintain=1]="Maintain",e))(o||{}),a=(e=>(e[e.unknown=0]="unknown",e[e.unsupported=1]="unsupported",e[e.supported=2]="supported",e))(a||{}),s=421614,l=0x35c1ee4d,u=0x35b2a824,c=1516,d=10143,f=97,h=new Set([11124,2741]),p=4663,g=46630,m=42161,y=1,E=1.05,b=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),v="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",T="0x0000000000000000000000000000000000000000",w=e=>!!e&&((null==e?void 0:e.toLowerCase())===v.toLowerCase()||e===T),A={name:"Arbitrum",public_rpc_url:"https://arb1.arbitrum.io/rpc",chain_id:"42161",currency_symbol:"ETH",currency_decimal:18,explorer_base_url:"https://arbiscan.io",vault_address:"0x816f722424B49Cf1275cc86DA9840Fbd5a6167e9"},N={name:"Arbitrum Sepolia",public_rpc_url:"https://arbitrum-sepolia.gateway.tenderly.co",chain_id:"421614",currency_symbol:"ETH",currency_decimal:18,explorer_base_url:"https://sepolia.arbiscan.io",vault_address:"0x0EaC556c0C2321BA25b9DC01e4e3c95aD5CDCd2f"},S={chain_id:"900900900",currency_decimal:9,currency_symbol:"SOL",explorer_base_url:"https://explorer.solana.com",name:"Solana",public_rpc_url:"https://api.mainnet-beta.solana.com",vault_address:"ErBmAD61mGFKvrFNaTJuxoPwqrS8GgtwtqJTJVjFWx9Q"},_={chain_id:"901901901",currency_decimal:9,currency_symbol:"SOL",explorer_base_url:"https://explorer.solana.com/?cluster=devnet",n
3ame:"Solana-Devnet",public_rpc_url:"https://api.devnet.solana.com",vault_address:"9shwxWDUNhtwkHocsUAmrNAQfBH2DHh4njdAEdHZZkF2"},x={chain_id:"901901901",contract_address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",decimals:6,withdrawal_fee:1,cross_chain_withdrawal_fee:5,display_name:"USDC"},I={chain_id:"421614",contract_address:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",decimals:6,withdrawal_fee:1,cross_chain_withdrawal_fee:2,display_name:"USDC"},O=e=>[{token:"USDC",token_hash:"0xd6aca1be9729c13d677335161321649cccae6a591554772516700f986f942eaa",decimals:6,minimum_withdraw_amount:1e-6,chain_details:e}],R=[],P={},M="orderEntry:estLiqPriceChange",C=(e=>(e.Listing="LISTING",e.Maintenance="MAINTENANCE",e.Delisting="DELISTING",e.Campaign="CAMPAIGN",e.Vote="VOTE",e))(C||{}),k=(e=>(e.LIMIT="LIMIT",e.MARKET="MARKET",e.IOC="IOC",e.FOK="FOK",e.POST_ONLY="POST_ONLY",e.ASK="ASK",e.BID="BID",e.STOP_LIMIT="STOP_LIMIT",e.STOP_MARKET="STOP_MARKET",e.CLOSE_POSITION="CLOSE_POSITION",e.SCALED="SCALED",e.TRAILING_STOP="TRAILING_STOP",e))(k||{}),L=(e=>(e.ISOLATED="ISOLATED",e.CROSS="CROSS",e))(L||{}),D=(e=>(e.COUNTERPARTY1="counterparty1",e.COUNTERPARTY5="counterparty5",e.QUEUE1="queue1",e.QUEUE5="queue5",e))(D||{}),B=(e=>(e[e.ONE=0]="ONE",e[e.TWO=1]="TWO",e[e.THREE=2]="THREE",e[e.FOUR=3]="FOUR",e[e.FIVE=4]="FIVE",e))(B||{}),V=(e=>(e.TP_SL="TP_SL",e.POSITIONAL_TP_SL="POSITIONAL_TP_SL",e.STOP="STOP",e.BRACKET="BRACKET",e.TRAILING_STOP="TRAILING_STOP",e))(V||{}),F=(e=>(e.MARK_PRICE="MARK_PRICE",e))(F||{}),U=(e=>(e.FULL="FULL",e.PARTIAL="PARTIAL",e))(U||{}),j=(e=>(e.TAKE_PROFIT="TAKE_PROFIT",e.STOP_LOSS="STOP_LOSS",e))(j||{}),H=(e=>(e.BUY="BUY",e.SELL="SELL",e))(H||{}),G=(e=>(e.OPEN="OPEN",e.NEW="NEW",e.FILLED="FILLED",e.PARTIAL_FILLED="PARTIAL_FILLED",e.CANCELLED="CANCELLED",e.REPLACED="REPLACED",e.COMPLETED="COMPLETED",e.INCOMPLETE="INCOMPLETE",e.REJECTED="REJECTED",e))(G||{}),K=(e=>(e.VALUE="value",e.RATE="rate",e))(K||{}),z=(e=>(e.FLAT="flat",e.ASCENDING="ascending",e.DESCENDING="descending",e.CUSTOM="custom",e))(z||{}),W=(e=>(e.NotSupported="NotSupported",e.NotConnected="NotConnected",e.Unsettle="Unsettle",e.InsufficientBalance="InsufficientBalance",e.Normal="Normal",e))(W||{}),q={id:1},Y={id:43114},$={id:43113},X={id:56},J={id:250},Q={id:137},Z={id:42161},ee={id:10},et={id:324},er={id:1101},en={id:59144},ei={id:8453},eo={id:5e3},ea={id:421613},es={id:421614},el={id:420},eu={id:0xaa37dc},ec={id:84532},ed={id:5003},ef={id:80002},eh={id:1329},ep={name:"Story Odyssey Testnet",public_rpc_url:"https://rpc.odyssey.storyrpc.io/",chain_id:1516},eg={id:1329,chainInfo:{chainId:`0x${ep.chain_id.toString(16)}`,chainName:ep.name,nativeCurrency:{name:"IP",symbol:"IP",decimals:18,fix:4},rpcUrls:[ep.public_rpc_url],blockExplorerUrls:[]},minGasBalance:2e-4,minCrossGasBalance:.002,maxPrepayCrossGas:.03,blockExplorerName:"SEI",chainName:"Sei Network",chainNameShort:"SEI",requestRpc:"https://evm-rpc.sei-apis.com",chainLogo:""};q.id,Y.id,$.id,X.id,J.id,Q.id,Z.id,ee.id,et.id,er.id,en.id,ei.id,eo.id,ea.id,es.id,el.id,eu.id,ec.id,ed.id,ef.id,eh.id,eg.id;var em=(e=>(e.evm="EVM",e.solana="SOL",e))(em||{}),ey=new Set([0x35c1ee4d,0x35b2a824]),eE=(e=>(e.trackIdentifyUserId="track_identify_user_id",e.trackIdentify="track_identify",e.trackCustomEvent="track_custom_event",e.withdrawSuccess="withdraw_request_success",e.withdrawFailed="withdraw_request_failure",e.depositSuccess="deposit_request_success",e.depositFailed="deposit_request_failure",e.signinSuccess="sign_message_success",e.placeOrderSuccess="place_order_success",e.walletConnect="connect_wallet_success",e.clickLinkDeviceButton="click_link_device_button",e.signLinkDeviceMessageSuccess="sign_link_device_message_success",e.linkDeviceModalClickConfirm="link_device_modal_click_confirm",e.socialLoginSuccess="social_login_success",e.clickSwitchNetwork="click_switch_network",e.clickSwitchWallet="click_switch_wallet",e.switchNetworkSuccess="switch_network_success",e.clickExportPrivateKey="click_export_private_key",e.switchLanguage="switch_language",e.leaderboardCampaignClickTradeNow="leaderboard_campaign_click_trade_now",e.leaderboardCampaignClickLearnMore="leaderboard_campaign_click_learn_more",e.vaultDepositSuccess="vault_deposit_success",e.vaultDepositFailed="vault_deposit_failed",e.vaultW
3ithdrawSuccess="vault_withdraw_success",e.vaultWithdrawFailed="vault_withdraw_failed",e.clickBBOButton="click_bbo_button",e.confirmCloseAllPositions="confirm_close_all_positions",e))(eE||{}),eb="wallet:chain-change-pending";function ev(e){return"object"==typeof e&&null!==e&&"status"in e&&e.status===eb}Object.freeze({status:eb});var eT=(e=>(e.NO="NO",e.FAILED="FAILED",e.PENDING="PENDING",e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e))(eT||{}),ew="orderly:ledger-wallet",eA="orderly:ledger-wallet-manual-override",eN="order:chain",eS="orderly:tradingview-fullscreen",e_="orderly:order_entry_sort_keys",ex=class extends Error{constructor(e,t){super(e),this.code=t,this.name="ApiError"}},eI=class extends Error{constructor(e){super(`[ORDERLY SDK ERROR]:${e}`),this.name="SDKError"}},eO={EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Registration:[{name:"brokerId",type:"string"},{name:"chainId",type:"uint256"},{name:"timestamp",type:"uint64"},{name:"registrationNonce",type:"uint256"}],Withdraw:[{name:"brokerId",type:"string"},{name:"chainId",type:"uint256"},{name:"receiver",type:"address"},{name:"token",type:"string"},{name:"amount",type:"uint256"},{name:"withdrawNonce",type:"uint64"},{name:"timestamp",type:"uint64"}],AddOrderlyKey:[{name:"brokerId",type:"string"},{name:"chainId",type:"uint256"},{name:"orderlyKey",type:"string"},{name:"scope",type:"string"},{name:"timestamp",type:"uint64"},{name:"expiration",type:"uint64"}],SettlePnl:[{name:"brokerId",type:"string"},{name:"chainId",type:"uint256"},{name:"settleNonce",type:"uint64"},{name:"timestamp",type:"uint64"}],DexRequest:[{name:"payloadType",type:"uint8"},{name:"nonce",type:"uint256"},{name:"receiver",type:"address"},{name:"amount",type:"uint256"},{name:"vaultId",type:"bytes32"},{name:"token",type:"string"},{name:"dexBrokerId",type:"string"}],InternalTransfer:[{name:"receiver",type:"bytes32"},{name:"token",type:"string"},{name:"amount",type:"uint256"},{name:"transferNonce",type:"uint64"}]},eR=(e=>(e.NEW="NEW",e.PENDING="PENDING",e.CONFIRM="CONFIRM",e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING_REBALANCE="PENDING_REBALANCE",e))(eR||{}),eP=(e=>(e.DEPOSIT="DEPOSIT",e.WITHDRAW="WITHDRAW",e))(eP||{}),eM="read,trading"},57216:e=>{"use strict";e.exports=ReferenceError},57361:(e,t,r)=>{"use strict";var n=r(86175),i=r(55106),o=r(3797),a=r(4952),s=r(28070),l=i(a(),Object);n(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},57498:(e,t,r)=>{"use strict";r.d(t,{jM:()=>X});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function c(e){return!!e&&(h(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||b(e)||v(e))}var d=Object.prototype.constructor.toString(),f=new WeakMap;function h(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=f.get(r);return void 0===n&&(n=Function.toString.call(r),f.set(r,n)),n===d}function p(e,t,r=!0){0===g(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function g(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:b(e)?2:3*!!v(e)}function m(e,t){return 2===g(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,r){let n=g(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function b(e){return e instanceof Map}function v(e){return e instanceof Set}function T(e){return e.copy_||e.base_}function w(e,t){if(b(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=h(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function A(e,t=!1){return S(e)||u(e)||!c(e)||(g(e)>
31&&Object.defineProperties(e,{set:N,add:N,clear:N,delete:N}),Object.freeze(e),t&&Object.values(e).forEach(e=>A(e,!0))),e}var N={value:function(){s(2)}};function S(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var _={};function x(e){let t=_[e];return t||s(0,e),t}function I(){return n}function O(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e,t){t&&(x("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){M(e),e.drafts_.forEach(k),e.drafts_=null}function M(e){e===n&&(n=e.parent_)}function C(e){return n=O(n,e)}function k(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[a].modified_&&(P(t),s(4)),c(e)&&(e=D(t,e),t.parent_||V(t,e)),t.patches_&&x("Patches").generateReplacementPatches_(r[a].base_,e,t.patches_,t.inversePatches_)):e=D(t,r,[]),P(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function D(e,t,r){if(S(t))return t;let n=e.immer_.shouldUseStrictIteration(),i=t[a];if(!i)return p(t,(n,o)=>B(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return V(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),p(o,(n,o)=>B(e,i,t,n,o,r,a),n),V(e,t,!1),r&&e.patches_&&x("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function B(e,t,r,n,i,o,a){if(null==i||"object"!=typeof i&&!a)return;let s=S(i);if(!s||a){if(u(i)){let a=D(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,n)?o.concat(n):void 0);if(y(r,n,a),!u(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(c(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&s)return;D(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(b(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&V(e,i)}}}function V(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&A(t,r)}function F(e,t){let r=Array.isArray(e),n={type_:+!!r,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,o=U;r&&(i=[n],o=j);let{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var U={get(e,t){if(t===a)return e;let r=T(e);if(!m(r,t))return G(e,r,t);let n=r[t];return e.finalized_||!c(n)?n:n===H(e.base_,t)?(W(e),e.copy_[t]=q(n,e)):n},has:(e,t)=>t in T(e),ownKeys:e=>Reflect.ownKeys(T(e)),set(e,t,r){let n=K(T(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=H(T(e),t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(E(r,n)&&(void 0!==r||m(e.base_,t)))return!0;W(e),z(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==H(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,W(e),z(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=T(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){s(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){s(12)}},j={};function H(e,t){let r=e[a];return(r?T(r):e)[t]}function G(e,t,r){let n=K(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function K(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function z(e){!e.modified_&&(e.modified_=!0,e.parent_&&z(e.parent_))}function W(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}
3function q(e,t){let r=b(e)?x("MapSet").proxyMap_(e,t):v(e)?x("MapSet").proxySet_(e,t):F(e,t);return(t?t.scope_:I()).drafts_.push(r),r}function Y(e){return u(e)||s(10,e),$(e)}function $(e){let t;if(!c(e)||S(e))return e;let r=e[a],n=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=w(e,r.scope_.immer_.useStrictShallowCopy_),n=r.scope_.immer_.shouldUseStrictIteration()}else t=w(e,!0);return p(t,(e,r)=>{y(t,e,$(r))},n),r&&(r.finalized_=!1),t}p(U,(e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)},j.set=function(e,t,r){return U.set.call(this,e[0],t,r,e[0])};var X=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==r&&"function"!=typeof r&&s(7),c(e)){let i=C(this),o=q(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?P(i):M(i)}return R(i,r),L(n,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&A(n,!0),r){let t=[],i=[];x("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){c(e)||s(8),u(e)&&(e=Y(e));let t=C(this),r=q(e,void 0);return r[a].isManual_=!0,M(t),r}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||s(9);let{scope_:n}=r;return R(n,t),L(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=x("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce},57677:e=>{"use strict";e.exports=Math.min},58153:(e,t)=>{"use strict";var r;r={value:!0},t.Observable=void 0;let n=e=>!!Symbol[e],i=e=>n(e)?Symbol[e]:"@@"+e,o=i("iterator"),a=i("observable"),s=i("species");function l(e,t){let r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function u(e){let t=e.constructor;return void 0!==t&&null===(t=t[s])&&(t=void 0),void 0!==t?t:b}function c(e){return e instanceof b}function d(e){d.log?d.log(e):setTimeout(()=>{throw e})}function f(e){Promise.resolve().then(()=>{try{e()}catch(e){d(e)}})}function h(e){let t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{let e=l(t,"unsubscribe");e&&e.call(t)}}catch(e){d(e)}}function p(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e){let t=e._queue;if(t){e._queue=void 0,e._state="ready";for(let r=0;r<t.length&&(m(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}function m(e,t,r){e._state="running";let n=e._observer;try{let i=l(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(p(e),i)i.call(n,r);else throw r;break;case"complete":p(e),i&&i.call(n)}}catch(e){d(e)}"closed"===e._state?h(e):"running"===e._state&&(e._state="ready")}function y(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],f(()=>g(e));return}m(e,t,r)}}class E{constructor(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";let r=this,n={get closed(){return"closed"===r._state},next(e){y(r,"next",e)},error(e){y(r,"error",e)},complete(){y(r,"complete")}};try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}get closed(){return"closed"===this._state}
3unsubscribe(){"closed"!==this._state&&(p(this),h(this))}}class b{constructor(e){if(!(this instanceof b))throw TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw TypeError("Observable initializer must be a function");this._subscriber=e}subscribe(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)}forEach(e){return new Promise((t,r)=>{if("function"!=typeof e)return void r(TypeError(e+" is not a function"));function n(){i.unsubscribe(),t()}let i=this.subscribe({next(t){try{e(t,n)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t})})}map(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return new(u(this))(t=>this.subscribe({next(r){try{r=e(r)}catch(e){return t.error(e)}t.next(r)},error(e){t.error(e)},complete(){t.complete()}}))}filter(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return new(u(this))(t=>this.subscribe({next(r){try{if(!e(r))return}catch(e){return t.error(e)}t.next(r)},error(e){t.error(e)},complete(){t.complete()}}))}reduce(e){if("function"!=typeof e)throw TypeError(e+" is not a function");let t=u(this),r=arguments.length>1,n=!1,i=arguments[1],o=i;return new t(t=>this.subscribe({next(i){let a=!n;if(n=!0,!a||r)try{o=e(o,i)}catch(e){return t.error(e)}else o=i},error(e){t.error(e)},complete(){if(!n&&!r)return t.error(TypeError("Cannot reduce an empty sequence"));t.next(o),t.complete()}}))}async all(){let e=[];return await this.forEach(t=>e.push(t)),e}concat(...e){let t=u(this);return new t(r=>{let n,i=0;function o(a){n=a.subscribe({next(e){r.next(e)},error(e){r.error(e)},complete(){i===e.length?(n=void 0,r.complete()):o(t.from(e[i++]))}})}return o(this),()=>{n&&(n.unsubscribe(),n=void 0)}})}flatMap(e){if("function"!=typeof e)throw TypeError(e+" is not a function");let t=u(this);return new t(r=>{let n=[],i=this.subscribe({next(i){if(e)try{i=e(i)}catch(e){return r.error(e)}let a=t.from(i).subscribe({next(e){r.next(e)},error(e){r.error(e)},complete(){let e=n.indexOf(a);e>=0&&n.splice(e,1),o()}});n.push(a)},error(e){r.error(e)},complete(){o()}});function o(){i.closed&&0===n.length&&r.complete()}return()=>{n.forEach(e=>e.unsubscribe()),i.unsubscribe()}})}[a](){return this}static from(e){let t="function"==typeof this?this:b;if(null==e)throw TypeError(e+" is not an object");let r=l(e,a);if(r){let n=r.call(e);if(Object(n)!==n)throw TypeError(n+" is not an object");return c(n)&&n.constructor===t?n:new t(e=>n.subscribe(e))}if(n("iterator")&&(r=l(e,o)))return new t(t=>{f(()=>{if(!t.closed){for(let n of r.call(e))if(t.next(n),t.closed)return;t.complete()}})});if(Array.isArray(e))return new t(t=>{f(()=>{if(!t.closed){for(let r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}})});throw TypeError(e+" is not observable")}static of(...e){return new("function"==typeof this?this:b)(t=>{f(()=>{if(!t.closed){for(let r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}})})}static get[s](){return this}}t.Observable=b,Object.defineProperty(b,Symbol("extensions"),{value:{symbol:a,hostReportError:d},configurable:!0})},58456:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(6816),i=r(98043);function o(e,t){var r,o,a,s,l,u,c,d;let f=(0,i.q)(),h=null!=(d=null!=(c=null!=(u=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(o=t.locale)||null==(r=o.options)?void 0:r.weekStartsOn)?u:f.weekStartsOn)?c:null==(s=f.locale)||null==(a=s.options)?void 0:a.weekStartsOn)?d:0,p=(0,n.a)(e),g=p.getDay(),m=7*(g<h)+g-h;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}},58476:(e,t,r)=>{"use strict";r.d(t,{sG:()=>a});var n=r(13741);r(93088);var i=r(7336),o=r(42073),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{})},58854:(e,t,r)=>{"use strict";r.d(t,{k9:()=>c,bj:()=>p,c$:()=>h,aY:()=>u,Lo:()=>d});var n=r(70214);let i="bytes/5.8.0",o=new n.Vy(i);function a(e){return!!e.toHexString}function s(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function l(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;
3if("string"==typeof e||!l(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!l(r)||r<0||r>=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){o.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),s(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),d(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":o.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return s(new Uint8Array(n))}return u(e)?s(new Uint8Array(e)):o.throwArgumentError("invalid arrayify value","value",e)}function d(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let f="0123456789abcdef";function h(e,t){if(t||(t={}),"number"==typeof e){o.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=f[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":o.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(u(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=f[(240&n)>>4]+f[15&n]}return t}return o.throwArgumentError("invalid hexlify value","value",e)}function p(e,t){for("string"!=typeof e?e=h(e):d(e)||o.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&o.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}},59150:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(8766).A)(function(e,t){return null==t||t!=t?e:t})},59518:(e,t,r)=>{"use strict";var n=r(52877),i=r(53291),o=r(69342)(),a=r(85974),s=r(23443),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},60133:(e,t,r)=>{"use strict";r.d(t,{vA:()=>u,MR:()=>c,dd:()=>d,SP:()=>h,gk:()=>p,E:()=>s,bJ:()=>a,xz:()=>l});let n="6.17.0";var i=r(93713);function o(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>o(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return o(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${o(r,t)}: ${o(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function a(e,t){return e&&e.code===t}function s(e){return a(e,"CALL_EXCEPTION")}function l(e,t,r){let a,s=e;{let i=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${o(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];i.push(e+"="+o(t))}}i.push(`code=${t}`),i.push(`version=${n}`),i.length&&(e+=" ("+i.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":a=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=RangeError(e);break;default:a=Error(e)}return(0,i.n)(a,{code:t}),r&&Object.assign(a,r),null==a.shortMessage&&(0,i.n)(a,{shortMessage:s}),a}function u(e,t,r,n){if(!e)throw l(t,r,n)}function c(e,t,r,n){u(e,t,"INVALID_ARGUMENT",{argument:r,value:n})}function d(e,t,r){null==r&&(r=""),r&&(r=": "+r),u(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),u(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}
3let f=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function h(e){u(f.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function p(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),u(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},60259:(e,t,r)=>{"use strict";r.d(t,{YW:()=>u,_v:()=>d});var n=r(7160),i=r(60133);function o(e,t,r,n,i){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function a(e,t,r,n,a){return"OVERLONG"===e?((0,i.MR)("number"==typeof a,"invalid bad code point for replacement","badCodepoint",a),n.push(a),0):(n.push(65533),o(e,t,r,n,a))}let s=Object.freeze({error:function(e,t,r,n,o){(0,i.MR)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:o,replace:a});function l(e,t){null==t&&(t=s.error);let r=(0,n.q5)(e,"bytes"),i=[],o=0;for(;o<r.length;){let e=r[o++];if(e>>7==0){i.push(e);continue}let n=null,a=null;if((224&e)==192)n=1,a=127;else if((240&e)==224)n=2,a=2047;else if((248&e)==240)n=3,a=65535;else{(192&e)==128?o+=t("UNEXPECTED_CONTINUE",o-1,r,i):o+=t("BAD_PREFIX",o-1,r,i);continue}if(o-1+n>=r.length){o+=t("OVERRUN",o-1,r,i);continue}let s=e&(1<<8-n-1)-1;for(let e=0;e<n;e++){let e=r[o];if((192&e)!=128){o+=t("MISSING_CONTINUE",o,r,i),s=null;break}s=s<<6|63&e,o++}if(null!==s){if(s>1114111){o+=t("OUT_OF_RANGE",o-1-n,r,i,s);continue}if(s>=55296&&s<=57343){o+=t("UTF16_SURROGATE",o-1-n,r,i,s);continue}if(s<=a){o+=t("OVERLONG",o-1-n,r,i,s);continue}i.push(s)}}return i}function u(e,t){(0,i.MR)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,i.SP)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let o=e.charCodeAt(t);(0,i.MR)(t<e.length&&(64512&o)==56320,"invalid surrogate pair","str",e);let a=65536+((1023&n)<<10)+(1023&o);
3r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}function c(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function d(e,t){return c(l(e,t))}},61647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enumsTypeMap=t.dataEnum=t.uniformDataEnum=t.fixedScalarEnum=void 0;let n=r(5162),i=r(45423),o=r(95585),a=r(39232),s=r(69933),l=r(5521);function u(e,t){return t?`${e}`:e}function c(e,t,r){return{write(r,n,o){i.u8.write(r,n,t),e.write(r,n+i.u8.byteSize,o)},read:(t,n)=>({__kind:r,...e.read(t,n+i.u8.byteSize)}),byteSize:e.byteSize+i.u8.byteSize,description:`EnumData<${e.description}>`}}t.fixedScalarEnum=function(e){let t=Object.keys(e);return{write(r,n,a){let s="number"==typeof a,l=u(a,s);if(t.includes(l)||o.strict.fail(`${a} should be a variant of the provided enum type, i.e. [ ${Object.values(e).join(", ")} ], but isn't`),s)i.u8.write(r,n,a);else{let t=e[l];i.u8.write(r,n,t)}},read(r,n){let a=i.u8.read(r,n),s="number"==typeof a,l=u(a,s);return t.includes(l)||o.strict.fail(`${a} should be a of a variant of the provided enum type, i.e. [ ${Object.values(e).join(", ")} ], but isn't`),s?a:e[l]},byteSize:i.u8.byteSize,description:"Enum"}},t.uniformDataEnum=function(e){return{write:function(t,r,n){i.u8.write(t,r,n.kind),e.write(t,r+1,n.data)},read:function(t,r){return{kind:i.u8.read(t,r),data:e.read(t,r+1)}},byteSize:1+e.byteSize,description:`UniformDataEnum<${e.description}>`}},t.dataEnum=function(e){for(let[t,r]of e)(0,o.strict)((0,a.isBeetStruct)(r)||(0,s.isFixableBeetStruct)(r)||r===l.unit,"dataEnum: variants must be a data beet struct or a scalar unit");return{toFixedFromData(t,r){let a=i.u8.read(t,r),s=e[a];(0,o.strict)(null!=s,`Discriminant ${a} out of range for ${e.length} variants`);let[l,u]=s;return c((0,n.isFixedSizeBeet)(u)?u:u.toFixedFromData(t,r+1),a,l)},toFixedFromValue(t){if(null==t.__kind){let r=Object.keys(t).join(", "),n=e.map(([e])=>e).join(", ");o.strict.fail(`Value with fields [ ${r} ] is missing __kind, which needs to be set to one of [ ${n} ]`)}let r=e.findIndex(([e])=>e===t.__kind);if(r<0){let r=e.map(([e])=>e).join(", ");o.strict.fail(`${t.__kind} is not a valid kind, needs to be one of [ ${r} ]`)}let i=e[r],{__kind:a,...s}=t,[l,u]=i;return c((0,n.isFixedSizeBeet)(u)?u:u.toFixedFromValue(s),r,l)},description:`DataEnum<${e.length} variants>`}},t.enumsTypeMap={fixedScalarEnum:{beet:"fixedScalarEnum",isFixable:!1,sourcePack:n.BEET_PACKAGE,ts:"<TypeName>",arg:n.BEET_TYPE_ARG_INNER,pack:n.BEET_PACKAGE},dataEnum:{beet:"dataEnum",isFixable:!1,sourcePack:n.BEET_PACKAGE,ts:"DataEnum<Kind, Inner>",arg:n.BEET_TYPE_ARG_INNER,pack:n.BEET_PACKAGE}}},62375:(e,t,r)=>{"use strict";var n=r(49252),i=r(97473),o=n("RegExp.prototype.exec"),a=r(23443);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},63445:(e,t,r)=>{var n=r(55036),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!A(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])T(s)||!_(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&t._extend(n,r),N(n.showHidden)&&(n.showHidden=!1),N(n.depth)&&(n.depth=2),N(n.colors)&&(n.colors=!1),N(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return A(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),l=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return g(r);
3if(0===s.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return g(r)}var c="",d=!1,v=["{","}"];if(b(r)&&(d=!0,v=["[","]"]),O(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(c=" "+RegExp.prototype.toString.call(r)),x(r)&&(c=" "+Date.prototype.toUTCString.call(r)),I(r)&&(c=" "+g(r)),0===s.length&&(!d||0==r.length))return v[0]+c+v[1];if(n<0)if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=d?m(e,r,n,l,s):s.map(function(t){return y(e,r,n,l,t,d)}),e.seen.pop(),E(i,c,v)}function p(e,t){if(N(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):T(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)k(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=T(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),N(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function E(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function T(e){return null===e}function w(e){return"number"==typeof e}function A(e){return"string"==typeof e}function N(e){return void 0===e}function S(e){return _(e)&&"[object RegExp]"===R(e)}function _(e){return"object"==typeof e&&null!==e}function x(e){return _(e)&&"[object Date]"===R(e)}function I(e){return _(e)&&("[object Error]"===R(e)||e instanceof Error)}function O(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(3014),t.isArray=b,t.isBoolean=v,t.isNull=T,t.isNullOrUndefined=function(e){return null==e},t.isNumber=w,t.isString=A,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=N,t.isRegExp=S,t.types.isRegExp=S,t.isObject=_,t.isDate=x,t.types.isDate=x,t.isError=I,t.types.isNativeError=I,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(98037);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=r(89932),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(L&&e[L]){var t=e[L];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,L,{value:t,enumerable:!1,writable:!1,
3configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),L&&Object.defineProperty(t,L,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=L,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(D.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},63517:e=>{"use strict";e.exports=function(){return Object.assign}},64143:e=>{function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},64177:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(6816);function i(e){let t=(0,n.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}},64383:(e,t,r)=>{"use strict";var n=r(55106),i=r(86175),o=r(78487),a=r(4222),s=r(15424),l=n(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},64514:(e,t,r)=>{var n=r(82782),i=r(1819),o=r(42621),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,r){var u,c,d,f,h,p,g=0,m=!1,y=!1,E=!0;if("function"!=typeof e)throw TypeError(a);function b(t){var r=u,n=c;return u=c=void 0,g=t,f=e.apply(n,r)}function v(e){return g=e,h=setTimeout(A,t),m?b(e):f}function T(e){var r=e-p,n=e-g,i=t-r;return y?l(i,d-n):i}function w(e){var r=e-p,n=e-g;return void 0===p||r>=t||r<0||y&&n>=d}function A(){var e=i();if(w(e))return N(e);h=setTimeout(A,T(e))}function N(e){return(h=void 0,E&&u)?b(e):(u=c=void 0,f)}function S(){return void 0===h?f:N(i())}function _(){var e=i(),r=w(e);if(u=arguments,c=this,p=e,r){if(void 0===h)return v(p);if(y)return clearTimeout(h),h=setTimeout(A,t),b(p)}return void 0===h&&(h=setTimeout(A,t)),f}return t=o(t)||0,n(r)&&(m=!!r.leading,d=(y="maxWait"in r)?s(o(r.maxWait)||0,t):d,E="trailing"in r?!!r.trailing:E),_.cancel=function(){void 0!==h&&clearTimeout(h),g=0,u=p=c=h=void 0},_.flush=S,_}},64756:(e,t,r)=>{"use strict";var n=r(14790).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.collectionsTypeMap=t.uint8Array=t.fixedSizeUint8Array=t.fixedSizeBuffer=t.array=t.fixedSizeArray=t.uniformFixedSizeArray=void 0;let i=r(5162),o=r(95585),a=r(45423),s=r(5162),l=r(21838),u=r(148);function c(e,t){let r=e.length,n=0===r?"<EMPTY>":e[0].description;return{write:function(t,n,i){o.strict.equal(i.length,r,`array length ${i.length} should match len ${r}`),a.u32.write(t,n,r);let s=n+4;for(let n=0;n<r;n++){let r=e[n];r.write(t,s,i[n]),s+=r.byteSize}},read:function(t,n){let i=a.u32.read(t,n);o.strict.equal(i,r,"invalid byte size");let s=n+4,l=Array(r);for(let n=0;n<r;n++){let r=e[n];l[n]=r.read(t,s),s+=r.byteSize}return l},byteSize:4+t,length:r,description:`Array<${n}>(${r})[ 4 + ${t} ]`}}function d(e){return{write:function(t,r,n){n.copy(t,r,0,e)},read:function(t,r){return t.slice(r,r+e)},byteSize:e,description:`Buffer(${e})`}}function f(e,t=!1){let r=d(e);return{write:function(i,s,l){o.strict.equal(l.byteLength,e,`Uint8Array length ${l.byteLength} should match len ${e}`),t&&(a.u32.write(i,s,e),s+=4);let u=n.from(l);r.write(i,s,u)},read:function(n,i){if(t){let t=a.u32.read(n,i);o.strict.equal(t,e,"invalid byte size"),i+=4}let s=r.read(n,i);return Uint8Array.from(s)},byteSize:t?e+4:e,description:`Uint8Array(${e})`}}t.uniformFixedSizeArray=function(e,t,r=!1){let n=e.byteSize*t;return{write:function(n,i,s){o.strict.equal(s.length,t,`array length ${s.length} should match len ${t}`),r&&(a.u32.write(n,i,t),i+=4);for(let r=0;r<t;r++)e.write(n,i+r*e.byteSize,s[r])}
3,read:function(n,i){if(r){let e=a.u32.read(n,i);o.strict.equal(e,t,"invalid byte size"),i+=4}let s=Array(t);for(let r=0;r<t;r++)s[r]=e.read(n,i+r*e.byteSize);return s},byteSize:r?4+n:n,length:t,elementByteSize:e.byteSize,lenPrefixByteSize:4,description:`Array<${e.description}>(${t})`}},t.fixedSizeArray=c,t.array=function(e){return{toFixedFromData(t,r){let n=a.u32.read(t,r);(0,l.logTrace)(`${this.description}[${n}]`);let i=r+4,o=i,s=Array(n);for(let r=0;r<n;r++){let n=(0,u.fixBeetFromData)(e,t,o);s[r]=n,o+=n.byteSize}return c(s,o-i)},toFixedFromValue(t){(0,o.strict)(Array.isArray(t),`${t} should be an array`);let r=0,n=Array(t.length);for(let i=0;i<t.length;i++){let o=(0,u.fixBeetFromValue)(e,t[i]);n[i]=o,r+=o.byteSize}return c(n,r)},description:"array"}},t.fixedSizeBuffer=d,t.fixedSizeUint8Array=f,t.uint8Array={toFixedFromData(e,t){let r=a.u32.read(e,t);return(0,l.logTrace)(`${this.description}[${r}]`),f(r,!0)},toFixedFromValue:e=>f(e.byteLength,!0),description:"Uint8Array"},t.collectionsTypeMap={Array:{beet:"array",isFixable:!0,sourcePack:s.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},FixedSizeArray:{beet:"fixedSizeArray",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},UniformFixedSizeArray:{beet:"uniformFixedSizeArray",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},Buffer:{beet:"fixedSizeBuffer",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"Buffer",arg:i.BEET_TYPE_ARG_LEN},FixedSizeUint8Array:{beet:"fixedSizeUint8Array",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN},Uint8Array:{beet:"uint8Array",isFixable:!0,sourcePack:s.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN}}},65260:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(8766),i=r(49977);function o(e){return"[object Object]"===Object.prototype.toString.call(e)}var a=r(74259);let s=(0,i.A)(function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})(0,a.A)(n,t)&&(i[n]=(0,a.A)(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)(0,a.A)(n,r)&&!(0,a.A)(n,i)&&(i[n]=r[n]);return i}),l=(0,i.A)(function e(t,r,n){return s(function(r,n,i){return o(n)&&o(i)?e(t,n,i):t(r,n,i)},r,n)}),u=(0,n.A)(function(e,t){return l(function(e,t,r){return r},e,t)})},65611:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(13741);let i=function(e){var t=(0,n.useRef)();return t.current||(t.current={v:e()}),t.current.v}},65696:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}
3),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},65736:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=s(e,"string");return"symbol"===n(t)?t:String(t)}function s(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=p();return function(){var r,n=g(e);return r=t?Reflect.construct(n,arguments,g(this).constructor):n.apply(this,arguments),f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m,y,E={};function b(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var i=function(t){u(i,t);var r=d(i);function i(t,o,a){var s;return l(this,i),(s=r.call(this,n(t,o,a))).code=e,s}return o(i)}(r);E[e]=i}function v(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function T(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function w(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function A(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===m&&(m=r(95585)),m("string"==typeof e,"'name' must be a string"),"string"==typeof t&&T(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",w(e," argument"))a="The ".concat(e," ").concat(o," ").concat(v(t,"type"));else{var o,a,s=A(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(v(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),b("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>
32&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===y&&(y=r(63445));var i=y.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),b("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===m&&(m=r(95585)),m(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=E},66082:(e,t,r)=>{var n=t;n.utils=r(49524),n.common=r(93422),n.sha=r(26515),n.ripemd=r(53288),n.hmac=r(66944),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},66355:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(6816),i=r(14080);function o(e){let t=(0,n.a)(e),r=(0,i.w)(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}},66633:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f,WI:()=>c});var n=r(13741),i=r(27754),o=r(42401),a=r(54911);let s="$inf$",l=Promise.resolve(),u=e=>(0,o.lK)(e?e(0,null):null)[0],c=e=>s+u(e),d=e=>(t,r,i)=>{let c,d=(0,n.useRef)(!1),{cache:f,initialSize:h=1,revalidateAll:p=!1,persistSize:g=!1,revalidateFirstPage:m=!0,revalidateOnMount:y=!1,parallel:E=!1}=i;try{(c=u(t))&&(c=s+c)}catch(e){}let[b,v,T]=(0,o.r9)(f,c),w=(0,n.useCallback)(()=>(0,o.b0)(b()._l)?h:b()._l,[f,c,h]);(0,a.useSyncExternalStore)((0,n.useCallback)(e=>c?T(c,()=>{e()}):()=>{},[f,c]),w,w);let A=(0,n.useCallback)(()=>{let e=b()._l;return(0,o.b0)(e)?h:e},[c,h]),N=(0,n.useRef)(A());(0,o.Es)(()=>{if(!d.current){d.current=!0;return}c&&v({_l:g?N.current:A()})},[c,f]);let S=y&&!d.current,_=e(c,async e=>{let n=b()._i,a=[],s=A(),[l]=(0,o.r9)(f,e),u=l().data,c=[],d=null;for(let e=0;e<s;++e){let[s,l]=(0,o.lK)(t(e,E?null:d));if(!s)break;let[h,g]=(0,o.r9)(f,s),y=h().data,b=p||n||(0,o.b0)(y)||m&&!e&&!(0,o.b0)(u)||S||u&&!(0,o.b0)(u[e])&&!i.compare(u[e],y);if(r&&b){let t=async()=>{g({data:y=await r(l),_k:l}),a[e]=y};E?c.push(t):await t()}else a[e]=y;E||(d=y)}return E&&await Promise.all(c.map(e=>e())),v({_i:o.ZH}),a},i),x=(0,n.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return c?(n&&((0,o.b0)(e)?v({_i:!0}):v({_i:!1})),arguments.length?_.mutate(e,{...r,revalidate:n}):_.mutate()):l},[c,f]),I=(0,n.useCallback)(e=>{let r;if(!c)return l;let[,n]=(0,o.r9)(f,c);if((0,o.Tn)(e)?r=e(A()):"number"==typeof e&&(r=e),"number"!=typeof r)return l;n({_l:r}),N.current=r;let i=[],[a]=(0,o.r9)(f,c),s=null;for(let e=0;e<r;++e){let[r]=(0,o.lK)(t(e,s)),[n]=(0,o.r9)(f,r),l=r?n().data:o.ZH;if((0,o.b0)(l))return x(a().data);i.push(l),s=l}return x(i)},[c,f,x,A]);return{size:A(),setSize:I,mutate:x,get data(){return _.data},get error(){return _.error},get isValidating(){return _.isValidating},get isLoading(){return _.isLoading}}},f=(0,o.Ht)(i.Ay,d)},66944:(e,t,r)=>{"use strict";var n=r(49524),i=r(64143);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},68705:(e,t,r)=>{"use strict";var n=r(49524),i=r(93422),o=r(2001),a=r(64143),s=n.sum32,l=n.sum32_4,u=n.sum32_5,c=o.ch32,d=o.maj32,f=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,m=i.BlockHash,y=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
376c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function E(){if(!(this instanceof E))return new E;m.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=y,this.W=Array(64)}n.inherits(E,m),e.exports=E,E.blockSize=512,E.outSize=256,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],m=this.h[2],y=this.h[3],E=this.h[4],b=this.h[5],v=this.h[6],T=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var w=u(T,h(E),c(E,b,v),this.k[n],r[n]),A=s(f(i),d(i,o,m));T=v,v=b,b=E,E=s(y,w),y=m,m=o,o=i,i=s(w,A)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],E),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],v),this.h[7]=s(this.h[7],T)},E.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},68831:e=>{var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,a=315576e5;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var l=parseFloat(s[1]),u=(s[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function u(e){var o=Math.abs(e);return o>=i?c(e,o,i,"day"):o>=n?c(e,o,n,"hour"):o>=r?c(e,o,r,"minute"):o>=t?c(e,o,t,"second"):e+" ms"}function c(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return s(e);if("number"===r&&isFinite(e))return t.long?u(e):l(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},68910:(e,t,r)=>{var n=r(53611),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},69342:(e,t,r)=>{"use strict";var n=r(91555),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},69606:(e,t,r)=>{"use strict";var n=r(38868)(),i=r(49252)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},69744:(e,t,r)=>{"use strict";function n(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}r.d(t,{KU:()=>n,Zr:()=>s});let i=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>i(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>i(t)(e)}}},o=(e,t)=>(r,n,o)=>{let a,s,l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,d=new Set;try{a=l.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),r(...e)},n,o);let f=i(l.serialize),h=()=>{let e,t=f({state:l.partialize({...n()}),version:l.version}).then(e=>a.setItem(l.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=o.setState;o.setState=(e,t)=>
3{p(e,t),h()};let g=e((...e)=>{r(...e),h()},n,o),m=()=>{var e;if(!a)return;u=!1,c.forEach(e=>e(n()));let t=(null==(e=l.onRehydrateStorage)?void 0:e.call(l,n()))||void 0;return i(a.getItem.bind(a))(l.name).then(e=>{if(e)return l.deserialize(e)}).then(e=>{if(e)if("number"!=typeof e.version||e.version===l.version)return e.state;else{if(l.migrate)return l.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(s=l.merge(e,null!=(t=n())?t:g),!0),h()}).then(()=>{null==t||t(s,void 0),u=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return o.persist={setOptions:e=>{l={...l,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),s||g},a=(e,t)=>(r,o,a)=>{let s,l={storage:n(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,d=new Set,f=l.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),r(...e)},o,a);let h=()=>{let e=l.partialize({...o()});return f.setItem(l.name,{state:e,version:l.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),h()};let g=e((...e)=>{r(...e),h()},o,a);a.getInitialState=()=>g;let m=()=>{var e,t;if(!f)return;u=!1,c.forEach(e=>{var t;return e(null!=(t=o())?t:g)});let n=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,null!=(e=o())?e:g))||void 0;return i(f.getItem.bind(f))(l.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];else{if(l.migrate)return[!0,l.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[n,i]=e;if(r(s=l.merge(i,null!=(t=o())?t:g),!0),n)return h()}).then(()=>{null==n||n(s,void 0),s=o(),u=!0,d.forEach(e=>e(s))}).catch(e=>{null==n||n(void 0,e)})};return a.persist={setOptions:e=>{l={...l,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},l.skipHydration||m(),s||g},s=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):a(e,t)},69889:(e,t,r)=>{var n=r(18791),i=r(12265),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==o}},69933:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FixableBeetArgsStruct=t.isFixableBeetStruct=t.FixableBeetStruct=void 0;let i=r(148),o=r(39232),a=r(5162),s=r(95585),l=r(21838),{brightBlack:u}=n(r(12723)).default;class c{constructor(e,t,r=c.description){this.fields=e,this.construct=t,this.description=r;let n=0;if(l.logDebug.enabled){let t=e.map(([e,t])=>((0,a.isFixedSizeBeet)(t)&&(n+=t.byteSize),`${e}: ${t.description} ${(0,l.beetBytes)(t)}`)).join("\n "),i=`> ${n} B`;(0,l.logDebug)(`struct ${r} { 4 ${t} 5} ${u(i)}`)}}deserialize(e,t=0){return this.toFixedFromData(e,t).deserialize(e,t)}serialize(e,t){return this.toFixedFromValue(e).serialize(e,t)}toFixedFromData(e,t){let r=t,n=Array(this.fields.length);for(let t=0;t<this.fields.length;t++){let[o,a]=this.fields[t],s=(0,i.fixBeetFromData)(a,e,r);n[t]=[o,s],r+=s.byteSize}return this.description!==c.description?new o.BeetStruct(n,this.construct,this.description):new o.BeetStruct(n,this.construct)}toFixedFromValue(e){let t=Object.keys(e),r=Array(this.fields.length);for(let n=0;n<this.fields.length;n++){let[o,a]=this.fields[n];(0,s.strict)(t.includes(o),`Value with keys [ ${t} ] should include struct key '${o}' but doesn't.`);let l=e[o],u=(0,i.fixBeetFromValue)(a,l);r[n]=[o,u]}return this.description!==c.description?new o.BeetStruct(r,this.construct,this.description):new o.BeetStruct(r,this.construct)}get type(){return c.TYPE}}t.FixableBeetStruct=c,c.description="FixableBeetStruct",c.TYPE="FixableBeetStruct",t.isFixableBeetStruct=function(e){return e.type===c.TYPE};class d extends c{constructor(e,t=d.description){super(e,e=>e,t)}}t.FixableBeetArgsStruct=d,d.description="FixableBeetArgsStruct"},70214:(e,t,r)=>{"use strict";var n,i;r.d(t,{Vy:()=>h});let o="logger/5.8.0",a=!1,s=!1,l={debug:1,default:2,info:2,warning:3,error:4,off:5},u=l.default,c=null,d=function(){try{let e=[];
5if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(n||(n={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(i||(i={}));let f="0123456789abcdef";class h{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==l[r]&&this.throwArgumentError("invalid log level name","logLevel",e),u>l[r]||console.log.apply(console,t)}debug(...e){this._log(h.levels.DEBUG,e)}info(...e){this._log(h.levels.INFO,e)}warn(...e){this._log(h.levels.WARNING,e)}makeError(e,t,r){if(s)return this.makeError("censored error",t,{});t||(t=h.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=f[t[e]>>4],r+=f[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let o=e,a="";switch(t){case i.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let l=Error(e);return l.reason=o,l.code=t,Object.keys(r).forEach(function(e){l[e]=r[e]}),l}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,h.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=0x1fffffffffffff)&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,h.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,h.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return c||(c=new h(o)),c}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!e)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!e,a=!!t}static setLogLevel(e){let t=l[e.toLowerCase()];if(null==t)return void h.globalLogger().warn("invalid log level - "+e);u=t}static from(e){return new h(e)}}h.errors=i,h.levels=n},70407:(e,t,r)=>{"use strict";r.d(t,{Ab:()=>d,Dg:()=>p,JJ:()=>u,Ro:()=>m,ST:()=>l,WZ:()=>g,c4:()=>E,dK:()=>c,nD:()=>b,up:()=>y});var n=r(7160),i=r(60133);let o=BigInt(0),a=BigInt(1),s=0x1fffffffffffff;function l(e,t){let r=f(e,"value"),n=BigInt(g(t,"width"));return((0,i.vA)(r>>n===o,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-a)?-((~r&(a<<n)-a)+a):r}function u(e,t){let r=d(e,"value"),n=BigInt(g(t,"width")),s=a<<n-a;return r<o?(r=-r,(0,i.vA)(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),(~r&(a<<n)-a)+a):((0,i.vA)(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r)}function c(e,t){return f(e,"value")&(a<<BigInt(g(t,"bits")))-a}function d(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,i.MR)(Number.isInteger(e),"underflow",t||"value",e),(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);
5case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,i.MR)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,i.MR)(!1,"invalid BigNumberish value",t||"value",e)}function f(e,t){let r=d(e,t);return(0,i.vA)(r>=o,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}let h="0123456789abcdef";function p(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=h[r>>4],t+=h[15&r];return BigInt(t)}return d(e)}function g(e,t){switch(typeof e){case"bigint":return(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,i.MR)(Number.isInteger(e),"underflow",t||"value",e),(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return g(BigInt(e),t)}catch(r){(0,i.MR)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,i.MR)(!1,"invalid numeric value",t||"value",e)}function m(e){return g(p(e))}function y(e,t){let r=f(e,"value"),n=r.toString(16);if(null==t)n.length%2&&(n="0"+n);else{let a=g(t,"width");if(0===a&&r===o)return"0x";for((0,i.vA)(2*a>=n.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*a;)n="0"+n}return"0x"+n}function E(e,t){let r=f(e,"value");if(r===o)return new Uint8Array(null!=t?g(t,"width"):0);let n=r.toString(16);if(n.length%2&&(n="0"+n),null!=t){let r=g(t,"width");for(;n.length<2*r;)n="00"+n;(0,i.vA)(2*r===n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}let a=new Uint8Array(n.length/2);for(let e=0;e<a.length;e++){let t=2*e;a[e]=parseInt(n.substring(t,t+2),16)}return a}function b(e){let t=(0,n.c$)((0,n.f)(e)?e:E(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},71051:(e,t,r)=>{"use strict";let n,i,o,a,s,l,u,c,d,f,h,p,g,m,y,E;r.d(t,{_y:()=>oh,FR:()=>op});var b={};r.r(b),r.d(b,{OG:()=>to,My:()=>e6,Ph:()=>e9,lX:()=>te,Id:()=>ti,fg:()=>tl,qj:()=>tn,aT:()=>e7,lq:()=>tt,z:()=>tr,Q5:()=>tc});var v=r(45348),T=r(20441),w=r(80002),A=r(26272),N=r(7160),S=r(70407),_=r(60133),x=r(93713),I=r(96670);let O=new Uint8Array(32);O.fill(0);let R=BigInt(-1),P=BigInt(0),M=BigInt(1),C=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function k(e){let t=(0,N.q5)(e),r=t.length%32;return r?(0,N.xW)([t,O.slice(r)]):(0,N.c$)(t)}let L=(0,S.up)(M,32),D=(0,S.up)(P,32),B={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},V=["name","version","chainId","verifyingContract","salt"];function F(e){return function(t){return(0,_.MR)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let U={name:F("name"),version:F("version"),chainId:function(e){let t=(0,S.Ab)(e,"domain.chainId");return((0,_.MR)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,S.nD)(t)},verifyingContract:function(e){try{return(0,T.b)(e).toLowerCase()}catch(e){}(0,_.MR)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,N.q5)(e,"domain.salt");return(0,_.MR)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,N.c$)(t)}};function j(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,_.MR)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let i=(0,S.dK)(C,r?n-1:n),o=r?(i+M)*R:P;return function(t){let n=(0,S.Ab)(t,"value");return(0,_.MR)(n>=o&&n<=i,`value out-of-bounds for ${e}`,"value",n),(0,S.up)(r?(0,S.JJ)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,_.MR)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,N.q5)(t);return(0,_.MR)(n.length===r,`invalid length for ${e}`,"value",t),k(t)}}}switch(e){case"address":return function(e){return(0,N.nx)((0,T.b)(e),32)};case"bool":return function(e){return e?L:D};case"bytes":return function(e){return(0,A.S)(e)};case"string":return function(e){return(0,I.id)(e)}}return null}function H(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function G(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class K{primaryType;#v;get types(){return JSON.parse(this.#v)}#T;#w;constructor(e){this.#T=new Map,this.#w=new Map;let t=new Map,r=new Map,n=new Map,i={};for(let o in Object.keys(e).forEach(o=>{i[o]=e[o].map(({name:t,type:r})=>{let{base:n,index:i}=G(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(i||"")}}),t.set(o,new Set),r.set(o,[]),n.set(o,new Set)}),this.#v=JSON.stringify(i),i){let n=new Set;for(let a of i[o]){(0,_.MR)(!n.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(o)}`,"types",e),n.add(a.name);let i=G(a.type).base;(0,_.MR)(i!==o,`circular type reference to ${JSON.stringify(i)}`,"types",e),j(i)||((0,_.MR)(r.has(i),`unknown type ${JSON.stringify(i)}`,"types",e),r.get(i).push(o),t.get(o).add(i))}}let o=Array.from(r.keys()).filter(e=>0===r.get(e).length);function a(i,o){for(let s of((0,_.MR)(!o.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),o.add(i),t.get(i)))if(r.has(s))for(let e of(a(s,o),o))n.get(e).add(s);o.delete(i)}for(let[t,r]of((0,_.MR)(0!==o.length,"missing primary type","types",e),(0,_.MR)(1===o.length,`ambiguous primary types or unused types: ${o.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,x.n)(this,{primaryType:o[0]}),a(this.primaryType,new Set),n)){let e=Array.from(r);e.sort(),this.#T.set(t,H(t,i[t])+e.map(e=>H(e,i[e])).join(""))}}getEncoder(e){let t=this.#w.get(e);return t||(t=this.#A(e),this.#w.set(e,t)),t}#A(e){{let t=j(e);if(t)return t}let t=G(e).array;
5if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,_.MR)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let i=n.map(r);return this.#T.has(e)&&(i=i.map(A.S)),(0,A.S)((0,N.xW)(i))}}let r=this.types[e];if(r){let t=(0,I.id)(this.#T.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#T.has(r)?(0,A.S)(n):n});return n.unshift(t),(0,N.xW)(n)}}(0,_.MR)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#T.get(e);return(0,_.MR)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,A.S)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(j(e))return r(e,t);let n=G(e).array;if(n)return(0,_.MR)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let i=this.types[e];if(i)return i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{});(0,_.MR)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new K(e)}static getPrimaryType(e){return K.from(e).primaryType}static hashStruct(e,t,r){return K.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=B[r];(0,_.MR)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>V.indexOf(e.name)-V.indexOf(t.name)),K.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,N.xW)(["0x1901",K.hashDomain(e),K.from(t).hash(r)])}static hash(e,t,r){return(0,A.S)(K.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let i={};e.verifyingContract&&!(0,N.Lo)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let o=K.from(t);for(let e in o.visit(r,(e,t)=>("address"!==e||(0,N.Lo)(t,20)||(i[t]="0x"),t)),i)i[e]=await n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:r}}static getPayload(e,t,r){K.hashDomain(e);let n={},i=[];V.forEach(t=>{let r=e[t];null!=r&&(n[t]=U[t](r),i.push({name:t,type:B[t]}))});let o=K.from(t),a=Object.assign({},t=o.types);return(0,_.MR)(null==a.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),a.EIP712Domain=i,o.encode(r),{types:a,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,N.c$)((0,N.q5)(t));if(e.match(/^u?int/))return(0,S.Ab)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,_.MR)("string"==typeof t,"invalid string","value",t),t}(0,_.MR)(!1,"unsupported type","type",e)})}}}var z=r(3697);let W="0x0000000000000000000000000000000000000000000000000000000000000000",q=BigInt(0),Y=BigInt(1),$=BigInt(2),X=BigInt(27),J=BigInt(28),Q=BigInt(35),Z=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ee=Z/$,et=Symbol.for("nodejs.util.inspect.custom"),er={};function en(e){return(0,N.nx)((0,S.c4)(e),32)}class ei{#N;#S;#_;#x;get r(){return this.#N}set r(e){(0,_.MR)(32===(0,N.pO)(e),"invalid r","value",e),this.#N=(0,N.c$)(e)}get s(){return(0,_.MR)(8>parseInt(this.#S.substring(0,3)),"non-canonical s; use ._s","s",this.#S),this.#S}set s(e){(0,_.MR)(32===(0,N.pO)(e),"invalid s","value",e),this.#S=(0,N.c$)(e)}get _s(){return this.#S}isValid(){return BigInt(this.#S)<=ee}get v(){return this.#_}set v(e){let t=(0,S.WZ)(e,"value");(0,_.MR)(27===t||28===t,"invalid v","v",e),this.#_=t}get networkV(){return this.#x}get legacyChainId(){let e=this.networkV;return null==e?null:ei.getChainId(e)}get yParity(){return+(27!==this.v)}get yParityAndS(){let e=(0,N.q5)(this.s);return this.yParity&&(e[0]|=128),(0,N.c$)(e)}get compactSerialized(){return(0,N.xW)([this.r,this.yParityAndS])}get serialized(){return(0,N.xW)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,_.gk)(e,er,"Signature"),this.#N=t,this.#S=r,this.#_=n,this.#x=null}
5getCanonical(){if(this.isValid())return this;let e=Z-BigInt(this._s),t=55-this.v,r=new ei(er,this.r,en(e),t);return this.networkV&&(r.#x=this.networkV),r}clone(){let e=new ei(er,this.r,this._s,this.v);return this.networkV&&(e.#x=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[et](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){let t=(0,S.Ab)(e,"v");return t==X||t==J?q:((0,_.MR)(t>=Q,"invalid EIP-155 v","v",e),(t-Q)/$)}static getChainIdV(e,t){return(0,S.Ab)(e)*$+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,S.Ab)(e);return t===q||t===X?27:t===Y||t===J?28:((0,_.MR)(t>=Q,"invalid v","v",e),t&Y?27:28)}static from(e){function t(t,r){(0,_.MR)(t,r,"signature",e)}if(null==e)return new ei(er,W,W,27);if("string"==typeof e){let r=(0,N.q5)(e,"signature");if(64===r.length){let e=(0,N.c$)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new ei(er,e,(0,N.c$)(t),n)}if(65===r.length){let e=(0,N.c$)(r.slice(0,32)),t=(0,N.c$)(r.slice(32,64)),n=ei.getNormalizedV(r[64]);return new ei(er,e,t,n)}t(!1,"invalid raw signature length")}if(e instanceof ei)return e.clone();let r=e.r;t(null!=r,"missing r");let n=en(r),i=function(e,r){if(null!=e)return en(e);if(null!=r){t((0,N.Lo)(r,32),"invalid yParityAndS");let e=(0,N.q5)(r);return e[0]&=127,(0,N.c$)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:o,v:a}=function(e,r,n){if(null!=e){let t=(0,S.Ab)(e);return{networkV:t>=Q?t:void 0,v:ei.getNormalizedV(t)}}if(null!=r)return t((0,N.Lo)(r,32),"invalid yParityAndS"),{v:128&(0,N.q5)(r)[0]?28:27};if(null!=n){switch((0,S.WZ)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new ei(er,n,i,a);return o&&(s.#x=o),t(null==e.yParity||(0,S.WZ)(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}}function eo(e){return{address:(0,T.b)(e.address),nonce:(0,S.Ab)(null!=e.nonce?e.nonce:0),chainId:(0,S.Ab)(null!=e.chainId?e.chainId:0),signature:ei.from(e.signature)}}var ea=r(60259);function es(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,N.q5)(t)}function el(e){let t=(0,N.q5)(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}function eu(e){return async function(t,r){let n;(0,_.vA)(null==r||!r.cancelled,"request cancelled before sending","CANCELLED");let i=t.url.split(":")[0].toLowerCase();(0,_.vA)("http"===i||"https"===i,`unsupported protocol ${i}`,"UNSUPPORTED_OPERATION",{info:{protocol:i},operation:"request"}),(0,_.vA)("https"===i||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let o=null,a=new AbortController,s=setTimeout(()=>{o=(0,_.xz)("request timeout","TIMEOUT"),a.abort()},t.timeout);r&&r.addListener(()=>{o=(0,_.xz)("request cancelled","CANCELLED"),a.abort()});let l=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:a.signal});try{n=await fetch(t.url,l)}catch(e){if(clearTimeout(s),o)throw o;throw e}clearTimeout(s);let u={};n.headers.forEach((e,t)=>{u[t.toLowerCase()]=e});let c=await n.arrayBuffer(),d=null==c?null:new Uint8Array(c);return{statusCode:n.status,statusMessage:n.statusText,headers:u,body:d}}}eu({});let ec=12,ed=250,ef=eu(),eh=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),ep=RegExp("^ipfs://(ipfs/)?(.*)$","i"),eg=!1;async function em(e,t){try{let t=e.match(eh);if(!t)throw Error("invalid data");return new eA(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?es(t[3]):eS(t[3]))}catch(t){return new eA(599,"BAD REQUEST (invalid data: URI)",{},null,new ew(e))}}function ey(e){return async function(t,r){try{let r=t.match(ep);if(!r)throw Error("invalid link");return new ew(`${e}${r[2]}`)}catch(e){return new eA(599,"BAD REQUEST (invalid IPFS URI)",{},null,new ew(t))}}}let eE={data:em,ipfs:ey("https://gateway.ipfs.io/ipfs/")},eb=new WeakMap;class ev{#I;#O;constructor(e){this.#I=[],this.#O=!1,eb.set(e,()=>{if(!this.#O){for(let e of(this.#O=!0,this.#I))setTimeout(()=>{e()},0);this.#I=[]}})}addListener(e){(0,_.vA)(!this.#O,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#I.push(e)}get cancelled(){return this.#O}checkSignal(){(0,_.vA)(!this.cancelled,"cancelled","CANCELLED",{})}}function eT(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}class ew{#R;#P;#M;#C;#k;#L;#D;#B;#V;#F;#U;#j;#H;#G;#K;get url(){return this.#L}set url(e){this.#L=String(e)}get body(){return null==this.#D?null:new Uint8Array(this.#D)}set body(e){if(null==e)this.#D=void 0,this.#B=void 0;else if("string"==typeof e)this.#D=(0,ea.YW)(e),this.#B="text/plain";else if(e instanceof Uint8Array)this.#D=e,this.#B="application/octet-stream";else if("object"==typeof e)this.#D=(0,ea.YW)(JSON.stringify(e)),this.#B="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#D}get method(){return this.#C?this.#C:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#C=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#M);return this.#V&&(e.authorization=`Basic ${el((0,ea.YW)(this.#V))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#B&&(e["content-type"]=this.#B),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#M[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#M={}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#V||null}setCredentials(e,t){(0,_.MR)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#V=`${e}:${t}`}get allowGzip(){return this.#P}set allowGzip(e){this.#P=!!e}get allowInsecureAuthentication(){return!!this.#R}set allowInsecureAuthentication(e){this.#R=!!e}get timeout(){return this.#k}set timeout(e){(0,_.MR)(e>=0,"timeout must be non-zero","timeout",e),this.#k=e}get preflightFunc(){return this.#F||null}set preflightFunc(e){this.#F=e}get processFunc(){return this.#U||null}set processFunc(e){this.#U=e}get retryFunc(){return this.#j||null}set retryFunc(e){this.#j=e}get getUrlFunc(){return this.#K||ef}set getUrlFunc(e){this.#K=e}constructor(e){this.#L=String(e),this.#R=!1,this.#P=!0,this.#M={},this.#C="",this.#k=3e5,this.#G={slotInterval:ed,maxAttempts:ec},this.#K=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#D?(0,N.c$)(this.#D):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#G.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#G.maxAttempts=e.maxAttempts)}async #z(e,t,r,n,i){if(e>=this.#G.maxAttempts)return i.makeServerError("exceeded maximum retry limit");(0,_.vA)(eN()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await e_(r);let o=this.clone(),a=(o.url.split(":")[0]||"").toLowerCase();if(a in eE){let e=await eE[a](o.url,eT(n.#H));if(e instanceof eA){let t=e;if(this.processFunc){eT(n.#H);try{t=await this.processFunc(o,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));let s=await this.getUrlFunc(o,eT(n.#H)),l=new eA(s.statusCode,s.statusMessage,s.headers,s.body,n);if([301,302,307,308].indexOf(l.statusCode)>=0){try{let r=l.headers.location||"";return o.redirect(r).#z(e+1,t,0,n,l)}catch(e){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(o,l,e))){let r=l.headers["retry-after"],i=this.#G.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(i=parseInt(r)),o.clone().#z(e+1,t,i,n,l)}if(this.processFunc){eT(n.#H);try{l=await this.processFunc(o,l)}catch(i){(null==i.throttle||"number"!=typeof i.stall)&&l.makeServerError("error in post-processing function",i).assertOk();let r=this.#G.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return i.stall>=0&&(r=i.stall),o.clone().#z(e+1,t,r,n,l)}}return l}send(){return(0,_.vA)(null==this.#H,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#H=new ev(this),this.#z(0,eN()+this.timeout,0,this,new eA(0,"",{},null,this))}cancel(){(0,_.vA)(null!=this.#H,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=eb.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,_.vA)(("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new ew(e);return n.method=this.method,n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#M=Object.assign({},this.#M),this.#D&&(n.#D=new Uint8Array(this.#D)),n.#B=this.#B,n}clone(){let e=new ew(this.url);return e.#C=this.#C,this.#D&&(e.#D=this.#D),e.#B=this.#B,e.#M=Object.assign({},this.#M),e.#V=this.#V,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#F=this.#F,e.#U=this.#U,e.#j=this.#j,e.#G=Object.assign({},this.#G),e.#K=this.#K,e}static lockConfig(){eg=!0}static getGateway(e){return eE[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(eg)throw Error("gateways locked");eE[e]=t}static registerGetUrl(e){if(eg)throw Error("gateways locked");ef=e}static createGetUrlFunc(e){return eu(e)}static createDataGateway(){return em}static createIpfsGatewayFunc(e){return ey(e)}}class eA{#W;#q;#M;#D;#Y;#$;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#D?(0,N.c$)(this.#D):"null"}>`}get statusCode(){return this.#W}get statusMessage(){return this.#q}get headers(){return Object.assign({},this.#M)}get body(){return null==this.#D?null:new Uint8Array(this.#D)}
5get bodyText(){try{return null==this.#D?"":(0,ea._v)(this.#D)}catch(e){(0,_.vA)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,_.vA)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,n,i){this.#W=e,this.#q=t,this.#M=Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=String(r[t]),e),{}),this.#D=null==n?null:new Uint8Array(n),this.#Y=i||null,this.#$={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new eA(599,r,this.headers,this.body,this.#Y||void 0);return n.#$={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,_.MR)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,x.n)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#D}get request(){return this.#Y}ok(){return""===this.#$.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#$;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#D&&(n=(0,ea._v)(this.#D))}catch(e){}(0,_.vA)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function eN(){return new Date().getTime()}function eS(e){return(0,ea.YW)(e.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function e_(e){return new Promise(t=>setTimeout(t,e))}var ex=r(8304),eI=r(37740),eO=r(44735);function eR(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),a=Number(r>>i&o),s=Number(r&o),l=4*!!n,u=4*!n;e.setUint32(t+l,a,n),e.setUint32(t+u,s,n)}class eP extends eO.Vw{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,eO.O8)(this.buffer)}update(e){(0,eI.t2)(this);let{view:t,buffer:r,blockLen:n}=this,i=(e=(0,eO.ZJ)(e)).length;for(let o=0;o<i;){let a=Math.min(n-this.pos,i-o);if(a===n){let t=(0,eO.O8)(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,eI.t2)(this),(0,eI.CG)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;eR(r,n-8,BigInt(8*this.length),i),this.process(r,0);let a=(0,eO.O8)(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=s/4,u=this.get();if(l>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)a.setUint32(4*e,u[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let eM=(e,t,r)=>e&t^~e&r,eC=(e,t,r)=>e&t^e&r^t&r,ek=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
576c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),eL=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),eD=new Uint32Array(64);class eB extends eP{constructor(){super(64,32,8,!1),this.A=0|eL[0],this.B=0|eL[1],this.C=0|eL[2],this.D=0|eL[3],this.E=0|eL[4],this.F=0|eL[5],this.G=0|eL[6],this.H=0|eL[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)eD[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eD[e-15],r=eD[e-2],n=(0,eO.Ow)(t,7)^(0,eO.Ow)(t,18)^t>>>3,i=(0,eO.Ow)(r,17)^(0,eO.Ow)(r,19)^r>>>10;eD[e]=i+eD[e-7]+n+eD[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:l,H:u}=this;for(let e=0;e<64;e++){let t=u+((0,eO.Ow)(a,6)^(0,eO.Ow)(a,11)^(0,eO.Ow)(a,25))+eM(a,s,l)+ek[e]+eD[e]|0,c=((0,eO.Ow)(r,2)^(0,eO.Ow)(r,13)^(0,eO.Ow)(r,22))+eC(r,n,i)|0;u=l,l=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+c|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,l,u)}roundClean(){eD.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let eV=(0,eO.ld)(()=>new eB);var eF=r(19799);let[eU,ej]=eF.Ay.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
55771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),eH=new Uint32Array(80),eG=new Uint32Array(80);class eK extends eP{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:l,El:u,Fh:c,Fl:d,Gh:f,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,n,i,o,a,s,l,u,c,d,f,h,p,g]}set(e,t,r,n,i,o,a,s,l,u,c,d,f,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)eH[r]=e.getUint32(t),eG[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|eH[e-15],r=0|eG[e-15],n=eF.Ay.rotrSH(t,r,1)^eF.Ay.rotrSH(t,r,8)^eF.Ay.shrSH(t,r,7),i=eF.Ay.rotrSL(t,r,1)^eF.Ay.rotrSL(t,r,8)^eF.Ay.shrSL(t,r,7),o=0|eH[e-2],a=0|eG[e-2],s=eF.Ay.rotrSH(o,a,19)^eF.Ay.rotrBH(o,a,61)^eF.Ay.shrSH(o,a,6),l=eF.Ay.rotrSL(o,a,19)^eF.Ay.rotrBL(o,a,61)^eF.Ay.shrSL(o,a,6),u=eF.Ay.add4L(i,l,eG[e-7],eG[e-16]),c=eF.Ay.add4H(u,n,s,eH[e-7],eH[e-16]);eH[e]=0|c,eG[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:l,Dl:u,Eh:c,El:d,Fh:f,Fl:h,Gh:p,Gl:g,Hh:m,Hl:y}=this;for(let e=0;e<80;e++){let t=eF.Ay.rotrSH(c,d,14)^eF.Ay.rotrSH(c,d,18)^eF.Ay.rotrBH(c,d,41),E=eF.Ay.rotrSL(c,d,14)^eF.Ay.rotrSL(c,d,18)^eF.Ay.rotrBL(c,d,41),b=c&f^~c&p,v=d&h^~d&g,T=eF.Ay.add5L(y,E,v,ej[e],eG[e]),w=eF.Ay.add5H(T,m,t,b,eU[e],eH[e]),A=0|T,N=eF.Ay.rotrSH(r,n,28)^eF.Ay.rotrBH(r,n,34)^eF.Ay.rotrBH(r,n,39),S=eF.Ay.rotrSL(r,n,28)^eF.Ay.rotrBL(r,n,34)^eF.Ay.rotrBL(r,n,39),_=r&i^r&a^i&a,x=n&o^n&s^o&s;m=0|p,y=0|g,p=0|f,g=0|h,f=0|c,h=0|d,({h:c,l:d}=eF.Ay.add(0|l,0|u,0|w,0|A)),l=0|a,u=0|s,a=0|i,s=0|o,i=0|r,o=0|n;let I=eF.Ay.add3L(A,S,x);r=eF.Ay.add3H(I,w,N,_),n=0|I}({h:r,l:n}=eF.Ay.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=eF.Ay.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=eF.Ay.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:l,l:u}=eF.Ay.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:c,l:d}=eF.Ay.add(0|this.Eh,0|this.El,0|c,0|d)),({h:f,l:h}=eF.Ay.add(0|this.Fh,0|this.Fl,0|f,0|h)),({h:p,l:g}=eF.Ay.add(0|this.Gh,0|this.Gl,0|p,0|g)),({h:m,l:y}=eF.Ay.add(0|this.Hh,0|this.Hl,0|m,0|y)),this.set(r,n,i,o,a,s,l,u,c,d,f,h,p,g,m,y)}roundClean(){eH.fill(0),eG.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let ez=(0,eO.ld)(()=>new eK),eW=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();function eq(e){switch(e){case"sha256":return eV.create();case"sha512":return ez.create()}(0,_.MR)(!1,"invalid hashing algorithm name","algorithm",e)}eW.crypto||eW.msCrypto;let eY=function(e){return eq("sha256").update(e).digest()},e$=function(e){return eq("sha512").update(e).digest()},eX=eY,eJ=e$,eQ=!1,eZ=!1;function e0(e){let t=(0,N.q5)(e,"data");return(0,N.c$)(eX(t))}function e1(e){let t=(0,N.q5)(e,"data");return(0,N.c$)(eJ(t))}e0._=eY,e0.lock=function(){eQ=!0},e0.register=function(e){if(eQ)throw Error("sha256 is locked");eX=e},Object.freeze(e0),e1._=e$,e1.lock=function(){eZ=!0},e1.register=function(e){if(eZ)throw Error("sha512 is locked");eJ=e},Object.freeze(e0),BigInt(0);let e2=BigInt(1),e3=BigInt(2),e4=e=>e instanceof Uint8Array,e5=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function e6(e){if(!e4(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=e5[e[r]];return t}function e8(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function e7(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,i=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");r[t]=i}return r}function e9(e){return e8(e6(e))}function te(e){if(!e4(e))throw Error("Uint8Array expected");return e8(e6(Uint8Array.from(e).reverse()))}function tt(e,t){return e7(e.toString(16).padStart(2*t,"0"))}function tr(e,t){return tt(e,t).reverse()}function tn(e,t,r){let n;if("string"==typeof t)try{n=e7(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(e4(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function ti(...e){let t=new Uint8Array(e.reduce((e,t)=>
5e+t.length,0)),r=0;return e.forEach(e=>{if(!e4(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}let to=e=>(e3<<BigInt(e-1))-e2,ta=e=>new Uint8Array(e),ts=e=>Uint8Array.from(e);function tl(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=ta(e),i=ta(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),l=(e=ta())=>{i=s(ts([0]),e),n=s(),0!==e.length&&(i=s(ts([1]),e),n=s())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return ti(...r)};return(e,t)=>{let r;for(a(),l(e);!(r=t(u()));)l();return a(),r}}let tu={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function tc(e,t,r={}){let n=(t,r,n)=>{let i=tu[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}let td=BigInt(0),tf=BigInt(1),th=BigInt(2),tp=BigInt(3),tg=BigInt(4),tm=BigInt(5),ty=BigInt(8);function tE(e,t){let r=e%t;return r>=td?r:t+r}function tb(e,t,r){if(r<=td||t<td)throw Error("Expected power/modulo > 0");if(r===tf)return td;let n=tf;for(;t>td;)t&tf&&(n=n*e%r),e=e*e%r,t>>=tf;return n}function tv(e,t,r){let n=e;for(;t-- >td;)n*=n,n%=r;return n}function tT(e,t){if(e===td||t<=td)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=tE(e,t),n=t,i=td,o=tf,a=tf,s=td;for(;r!==td;){let e=n/r,t=n%r,l=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=l,s=u}if(n!==tf)throw Error("invert: does not exist");return tE(i,t)}function tw(e){let t,r,n,i=(e-tf)/th;for(t=e-tf,r=0;t%th===td;t/=th,r++);for(n=th;n<e&&tb(n,i,e)!==e-tf;n++);if(1===r){let t=(e+tf)/tg;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let o=(t+tf)/th;return function(e,a){if(e.pow(a,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,n),t),u=e.pow(a,o),c=e.pow(a,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,tf<<BigInt(s-t-1));l=e.sqr(r),u=e.mul(u,r),c=e.mul(c,l),s=t}return u}}function tA(e){if(e%tg===tp){let t=(e+tf)/tg;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%ty===tm){let t=(e-tm)/ty;return function(e,r){let n=e.mul(r,th),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,th),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return tw(e)}BigInt(9),BigInt(16);let tN=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function tS(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"};return tc(e,tN.reduce((e,t)=>(e[t]="function",e),t))}function t_(e,t,r){if(r<td)throw Error("Expected power > 0");if(r===td)return e.ONE;if(r===tf)return t;let n=e.ONE,i=t;for(;r>td;)r&tf&&(n=e.mul(n,i)),i=e.sqr(i),r>>=tf;return n}function tx(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}function tI(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function tO(e,t,r=!1,n={}){if(e<=td)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:i,nByteLength:o}=tI(e,t);if(o>2048)throw Error("Field lengths over 2048 bytes are not supported");let a=tA(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:to(i),ZERO:td,ONE:tf,create:t=>tE(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return td<=t&&t<e},is0:e=>e===td,isOdd:e=>(e&tf)===tf,neg:t=>tE(-t,e),eql:(e,t)=>
5e===t,sqr:t=>tE(t*t,e),add:(t,r)=>tE(t+r,e),sub:(t,r)=>tE(t-r,e),mul:(t,r)=>tE(t*r,e),pow:(e,t)=>t_(s,e,t),div:(t,r)=>tE(t*tT(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>tT(t,e),sqrt:n.sqrt||(e=>a(s,e)),invertBatch:e=>tx(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?tr(e,o):tt(e,o),fromBytes:e=>{if(e.length!==o)throw Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return r?te(e):e9(e)}});return Object.freeze(s)}function tR(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function tP(e){let t=tR(e);return t+Math.ceil(t/2)}function tM(e,t,r=!1){let n=e.length,i=tR(t),o=tP(t);if(n<16||n<o||n>1024)throw Error(`expected ${o}-1024 bytes of input, got ${n}`);let a=tE(r?e9(e):te(e),t-tf)+tf;return r?tr(a,i):tt(a,i)}class tC extends eO.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,eI.tW)(e);let r=(0,eO.ZJ)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,eI.t2)(this),this.iHash.update(e),this}digestInto(e){(0,eI.t2)(this),(0,eI.ee)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let tk=(e,t,r)=>new tC(e,t).update(r).digest();tk.create=(e,t)=>new tC(e,t);let tL=BigInt(0),tD=BigInt(1);function tB(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>tL;)r&tD&&(n=n.add(i)),i=i.double(),r>>=tD;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=n(t),l=e.ZERO,u=e.BASE,c=BigInt(2**t-1),d=2**t,f=BigInt(t);for(let e=0;e<a;e++){let t=e*s,n=Number(o&c);o>>=f,n>s&&(n-=d,o+=tD);let a=t,h=t+Math.abs(n)-1,p=e%2!=0,g=n<0;0===n?u=u.add(r(p,i[a])):l=l.add(r(g,i[h]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}function tV(e){return tS(e.Fp),tc(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...tI(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function tF(e){let t=tV(e);tc(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}let{Ph:tU,aT:tj}=b,tH={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=tH;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:tU(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=tH,r="string"==typeof e?tj(e):e;if(!(r instanceof Uint8Array))throw Error("ui8a expected");let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");let{d:i,l:o}=tH._parseInt(r.subarray(2)),{d:a,l:s}=tH._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),l=r(a);return`30${r(a+o+4)}02${l}${i}02${s}${n}`}},tG=BigInt(0),tK=BigInt(1),tz=(BigInt(2),BigInt(3));function tW(e){let t=tF(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let i=t.toAffine();return ti(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function o(e){let{a:n,b:i}
5=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&tG<e&&e<t.n}function s(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){let r,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:a}=t;if(n&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=e6(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*i,"0")}try{r="bigint"==typeof e?e:e9(tn("private key",e,i))}catch(t){throw Error(`private key must be ${i} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=tE(r,a)),s(r),r}let u=new Map;function c(e){if(!(e instanceof d))throw Error("ProjectivePoint expected")}class d{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof d)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?d.ZERO:new d(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(d.fromAffine)}static fromHex(e){let t=d.fromAffine(i(tn("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),a=o(e);if(!r.eql(i,a))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){c(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return l&&u}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,tz),{px:o,py:a,pz:s}=this,l=r.ZERO,u=r.ZERO,c=r.ZERO,f=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),c=r.mul(o,s),c=r.add(c,c),l=r.mul(e,c),u=r.mul(i,p),u=r.add(l,u),l=r.sub(h,u),u=r.add(h,u),u=r.mul(l,u),l=r.mul(g,l),c=r.mul(i,c),p=r.mul(e,p),g=r.sub(f,p),g=r.mul(e,g),g=r.add(g,c),c=r.add(f,f),f=r.add(c,f),f=r.add(f,p),f=r.mul(f,g),u=r.add(u,f),p=r.mul(a,s),p=r.add(p,p),f=r.mul(p,g),l=r.sub(l,f),c=r.mul(p,h),c=r.add(c,c),new d(l,u,c=r.add(c,c))}add(e){c(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:l}=e,u=r.ZERO,f=r.ZERO,h=r.ZERO,p=t.a,g=r.mul(t.b,tz),m=r.mul(n,a),y=r.mul(i,s),E=r.mul(o,l),b=r.add(n,i),v=r.add(a,s);b=r.mul(b,v),v=r.add(m,y),b=r.sub(b,v),v=r.add(n,o);let T=r.add(a,l);return v=r.mul(v,T),T=r.add(m,E),v=r.sub(v,T),T=r.add(i,o),u=r.add(s,l),T=r.mul(T,u),u=r.add(y,E),T=r.sub(T,u),h=r.mul(p,v),u=r.mul(g,E),h=r.add(u,h),u=r.sub(y,h),h=r.add(y,h),f=r.mul(u,h),y=r.add(m,m),y=r.add(y,m),E=r.mul(p,E),v=r.mul(g,v),y=r.add(y,E),E=r.sub(m,E),E=r.mul(p,E),v=r.add(v,E),m=r.mul(y,v),f=r.add(f,m),m=r.mul(T,v),u=r.mul(b,u),u=r.sub(u,m),m=r.mul(b,y),h=r.mul(T,h),new d(u,f,h=r.add(h,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return h.wNAFCached(this,u,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(d.fromAffine)})}multiplyUnsafe(e){let n=d.ZERO;if(e===tG)return n;if(s(e),e===tK)return this;let{endo:i}=t;if(!i)return h.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:l,k2:u}=i.splitScalar(e),c=n,f=n,p=this;for(;a>tG||u>tG;)a&tK&&(c=c.add(p)),u&tK&&(f=f.add(p)),p=p.double(),a>>=tK,u>>=tK;return o&&(c=c.negate()),l&&(f=f.negate()),f=new d(r.mul(f.px,i.beta),f.py,f.pz),c.add(f)}multiply(e){let n,i;s(e);let o=e,{endo:a}=t;if(a){let{k1neg:e,k1:t,k2neg:s,k2:l}=a.splitScalar(o),{p:u,f:c}=this.wNAF(t),{p:f,f:p}=this.wNAF(l);u=h.constTimeNegate(e,u),f=h.constTimeNegate(s,f),f=new d(r.mul(f.px,a.beta),f.py,f.pz),n=u.add(f),i=c.add(p)}else{let{p:e,f:t}=this.wNAF(o);n=e,i=t}return d.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=d.BASE,i=(e,t)=>t!==tG&&t!==tK&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let a=r.mul(t,e),s=r.mul(n,e),l=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};
5if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===tK)return!0;if(r)return r(d,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===tK?this:r?r(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(d,this,e)}toHex(e=!0){return e6(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);let f=t.nBitLength,h=tB(d,t.endo?Math.ceil(f/2):f);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:o,isWithinCurveOrder:a}}function tq(e){let t=tV(e);return tc(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function tY(e){let t=tq(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return tG<e&&e<r.ORDER}function s(e){return tE(e,n)}function l(e){return tT(e,n)}let{ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:d,isWithinCurveOrder:f}=tW({...t,toBytes(e,t,n){let i=t.toAffine(),o=r.toBytes(i.x),a=ti;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],s=e.subarray(1);if(t===i&&(2===n||3===n)){let e=e9(s);if(!a(e))throw Error("Point is not on curve");let t=d(e),i=r.sqrt(t);return(1&n)==1!=((i&tK)===tK)&&(i=r.neg(i)),{x:e,y:i}}if(t===o&&4===n)return{x:r.fromBytes(s.subarray(0,r.BYTES)),y:r.fromBytes(s.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),h=e=>e6(tt(e,t.nByteLength));function p(e){return e>n>>tK}function g(e){return p(e)?s(-e):e}let m=(e,t,r)=>e9(e.slice(t,r));class y{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new y(m(e=tn("compactSignature",e,2*r),0,r),m(e,r,2*r))}static fromDER(e){let{r:t,s:r}=tH.toSig(tn("DER",e));return new y(t,r)}assertValidity(){if(!f(this.r))throw Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(e){let{r:n,s:i,recovery:o}=this,a=A(tn("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let c=2===o||3===o?n+t.n:n;if(c>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let d=(1&o)==0?"02":"03",f=u.fromHex(d+h(c)),p=l(c),g=s(-a*p),m=s(i*p),y=u.BASE.multiplyAndAddUnsafe(f,g,m);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return e7(this.toDERHex())}toDERHex(){return tH.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return e7(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}let E={isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=tP(t.n);return tM(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function b(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)}function v(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof u}function T(e,t,r=!0){if(v(e))throw Error("first arg must be private key");if(!v(t))throw Error("second arg must be public key");return u.fromHex(t).multiply(c(e)).toRawBytes(r)}let w=t.bits2int||function(e){let r=e9(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},A=t.bits2int_modN||function(e){return s(w(e))},N=to(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(tG<=e&&e<N))throw Error(`bigint expected < 2^${t.nBitLength}`);return tt(e,t.nByteLength)}function _(e,n,i=x){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:a}=t,{lowS:d,prehash:h,extraEntropy:m}=i;null==d&&(d=!0),e=tn("msgHash",e),h&&(e=tn("prehashed msgHash",o(e)));let E=A(e),b=c(n),v=[S(b),S(E)];if(null!=m){let e=!0===m?a(r.BYTES):m;v.push(tn("extraEntropy",e))}let T=ti(...v),N=E;return{seed:T,k2sig:function(e){let t=w(e);if(!f(t))return;let r=l(t),n=u.BASE.multiply(t).toAffine(),i=s(n.x);if(i===tG)return;let o=s(r*s(N+i*b));if(o===tG)return;let a=2*(n.x!==i)|Number(n.y&tK),c=o;return d&&p(o)&&(c=g(o),a^=1),new y(i,c,a)}}}let x={lowS:t.lowS,prehash:!1},I={lowS:t.lowS,prehash:!1};function O(e,r,n=x){let{seed:i,k2sig:o}=_(e,r,n),a=t;return tl(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)}function R(e,r,n,i=I){let o,a,c=e;if(r=tn("msgHash",r),n=tn("publicKey",n),"strict"in i)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:f}=i;try{if("string"==typeof c||c instanceof Uint8Array)try{a=y.fromDER(c)}catch(e){if(!(e instanceof tH.Err))throw e;a=y.fromCompact(c)}else if("object"==typeof c&&"bigint"==typeof c.r&&"bigint"==typeof c.s){let{r:e,s:t}=c;a=new y(e,t)}else throw Error("PARSE");o=u.fromHex(n)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&a.hasHighS())return!1;f&&(r=t.hash(r));let{r:h,s:p}=a,g=A(r),m=l(p),E=s(g*m),b=s(h*m),v=u.BASE.multiplyAndAddUnsafe(o,E,b)?.toAffine();return!!v&&s(v.x)===h}return u.BASE._setWindowSize(8),{CURVE:t,getPublicKey:b,getSharedSecret:T,sign:O,verify:R,ProjectivePoint:u,Signature:y,utils:E}}function t$(e){return{hash:e,hmac:(t,...r)=>tk(e,t,(0,eO.Id)(...r)),randomBytes:eO.po}}function tX(e,t){let r=t=>tY({...e,...t$(t)});return Object.freeze({...r(t),create:r})}BigInt(4);let tJ=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),tQ=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),tZ=BigInt(1),t0=BigInt(2),t1=(e,t)=>(e+t/t0)/t;function t2(e){let t=tJ,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),l=BigInt(88),u=e*e*e%t,c=u*u*e%t,d=tv(c,r,t)*c%t,f=tv(d,r,t)*c%t,h=tv(f,t0,t)*u%t,p=tv(h,i,t)*h%t,g=tv(p,o,t)*p%t,m=tv(g,s,t)*g%t,y=tv(m,l,t)*m%t,E=tv(y,s,t)*g%t,b=tv(E,r,t)*c%t,v=tv(b,a,t)*p%t,T=tv(v,n,t)*u%t,w=tv(T,t0,t);
5if(!t3.eql(t3.sqr(w),e))throw Error("Cannot find square root");return w}let t3=tO(tJ,void 0,void 0,{sqrt:t2}),t4=tX({a:BigInt(0),b:BigInt(7),Fp:t3,n:tQ,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=tQ,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-tZ*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=t1(o*e,t),l=t1(-n*e,t),u=tE(e-s*r-l*i,t),c=tE(-s*n-l*o,t),d=u>a,f=c>a;if(d&&(u=t-u),f&&(c=t-c),u>a||c>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:f,k2:c}}}},eV),t5=BigInt(0);t4.ProjectivePoint;class t6{#X;constructor(e){(0,_.MR)(32===(0,N.pO)(e),"invalid private key","privateKey","[REDACTED]"),this.#X=(0,N.c$)(e)}get privateKey(){return this.#X}get publicKey(){return t6.computePublicKey(this.#X)}get compressedPublicKey(){return t6.computePublicKey(this.#X,!0)}sign(e){(0,_.MR)(32===(0,N.pO)(e),"invalid digest length","digest",e);let t=t4.sign((0,N.Lm)(e),(0,N.Lm)(this.#X),{lowS:!0});return ei.from({r:(0,S.up)(t.r,32),s:(0,S.up)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=t6.computePublicKey(e);return(0,N.c$)(t4.getSharedSecret((0,N.Lm)(this.#X),(0,N.q5)(t),!1))}static computePublicKey(e,t){let r=(0,N.q5)(e,"key");if(32===r.length){let e=t4.getPublicKey(r,!!t);return(0,N.c$)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let n=t4.ProjectivePoint.fromHex(r);return(0,N.c$)(n.toRawBytes(t))}static recoverPublicKey(e,t){(0,_.MR)(32===(0,N.pO)(e),"invalid digest length","digest",e);let r=ei.from(t),n=t4.Signature.fromCompact((0,N.Lm)((0,N.xW)([r.r,r.s]))),i=(n=n.addRecoveryBit(r.yParity)).recoverPublicKey((0,N.Lm)(e));return(0,_.MR)(null!=i,"invalid signature for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,r){let n=t4.ProjectivePoint.fromHex(t6.computePublicKey(e).substring(2)),i=t4.ProjectivePoint.fromHex(t6.computePublicKey(t).substring(2));return"0x"+n.add(i).toHex(!!r)}}function t8(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function t7(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function t9(e,t,r,n){let i=[];for(;r<t+1+n;){let o=re(e,r);i.push(o.result),r+=o.consumed,(0,_.vA)(r<=t+1+n,"child data too short","BUFFER_OVERRUN",{buffer:e,length:n,offset:t})}return{consumed:1+n,result:i}}function re(e,t){(0,_.vA)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=t=>{(0,_.vA)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let i=t7(e,t+1,n);return r(t+1+n+i),t9(e,t,t+1+n,n+i)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),t9(e,t,t+1,n)}if(e[t]>=184){let n=e[t]-183;r(t+1+n);let i=t7(e,t+1,n);r(t+1+n+i);let o=(0,N.c$)(e.slice(t+1+n,t+1+n+i));return{consumed:1+n+i,result:o}}if(e[t]>=128){let n=e[t]-128;r(t+1+n);let i=(0,N.c$)(e.slice(t+1,t+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:t8(e[t])}}function rt(e){let t=(0,N.q5)(e,"data"),r=re(t,0);return(0,_.MR)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}function rr(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function rn(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(rn(e))}),t.length<=55)return t.unshift(192+t.length),t;let r=rr(t.length);return r.unshift(247+r.length),r.concat(t)}let t=Array.prototype.slice.call((0,N.q5)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let r=rr(t.length);return r.unshift(183+r.length),r.concat(t)}let ri="0123456789abcdef";function ro(e){let t="0x";for(let r of rn(e))t+=ri[r>>4],t+=ri[15&r];return t}function ra(e){let t;return t="string"==typeof e?t6.computePublicKey(e,!1):e.publicKey,(0,T.b)((0,A.S)("0x"+t.substring(4)).substring(26))}function rs(e,t){return ra(t6.recoverPublicKey(e,t))}let rl=BigInt(0),ru=BigInt(2),rc=BigInt(27),rd=BigInt(28),rf=BigInt(35),rh=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),rp=Symbol.for("nodejs.util.inspect.custom"),rg=131072,rm=128;function ry(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,N.q5)(e.blobToKzgCommitment((0,N.c$)(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,N.q5)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return(0,N.q5)(e.blobToKZGCommitment((0,N.c$)(t)));(0,_.MR)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?(0,N.q5)(e.computeBlobProof((0,N.c$)(t),(0,N.c$)(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?(0,N.q5)(e.computeBlobKZGProof((0,N.c$)(t),(0,N.c$)(r))):void(0,_.MR)(!1,"unsupported KZG library","kzg",e)}}function rE(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=e0(t).substring(4))}function rb(e){return"0x"===e?null:(0,T.b)(e)}function rv(e,t){try{return(0,z.$)(e)}catch(r){(0,_.MR)(!1,r.message,t,e)}}function rT(e,t){try{if(!Array.isArray(e))throw Error("authorizationList: invalid array");let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(!Array.isArray(n))throw Error(`authorization[${r}
5]: invalid array`);if(6!==n.length)throw Error(`authorization[${r}]: wrong length`);if(!n[1])throw Error(`authorization[${r}]: null address`);t.push({address:rb(n[1]),nonce:rA(n[2],"nonce"),chainId:rA(n[0],"chainId"),signature:ei.from({yParity:rw(n[3],"yParity"),r:(0,N.nx)(n[4],32),s:(0,N.nx)(n[5],32)})})}return t}catch(r){(0,_.MR)(!1,r.message,t,e)}}function rw(e,t){return"0x"===e?0:(0,S.WZ)(e,t)}function rA(e,t){if("0x"===e)return rl;let r=(0,S.Ab)(e,t);return(0,_.MR)(r<=rh,"value exceeds uint size",t,r),r}function rN(e,t){let r=(0,S.Ab)(e,"value"),n=(0,S.c4)(r);return(0,_.MR)(n.length<=32,"value too large",`tx.${t}`,r),n}function rS(e){return(0,z.$)(e).map(e=>[e.address,e.storageKeys])}function r_(e){return e.map(e=>[rN(e.chainId,"chainId"),e.address,rN(e.nonce,"nonce"),rN(e.signature.yParity,"yParity"),(0,S.c4)(e.signature.r),(0,S.c4)(e.signature._s)])}function rx(e,t){(0,_.MR)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,_.MR)((0,N.Lo)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}function rI(e){let t=rt(e);(0,_.MR)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:rw(t[0],"nonce"),gasPrice:rA(t[1],"gasPrice"),gasLimit:rA(t[2],"gasLimit"),to:rb(t[3]),value:rA(t[4],"value"),data:(0,N.c$)(t[5]),chainId:rl};if(6===t.length)return r;let n=rA(t[6],"v"),i=rA(t[7],"r"),o=rA(t[8],"s");if(i===rl&&o===rl)r.chainId=n;else{let e=(n-rf)/ru;e<rl&&(e=rl),r.chainId=e,(0,_.MR)(e!==rl||n===rc||n===rd,"non-canonical legacy v","v",t[6]),r.signature=ei.from({r:(0,N.nx)(t[7],32),s:(0,N.nx)(t[8],32),v:n})}return r}function rO(e,t){let r=[rN(e.nonce,"nonce"),rN(e.gasPrice||0,"gasPrice"),rN(e.gasLimit,"gasLimit"),e.to||"0x",rN(e.value,"value"),e.data],n=rl;if(e.chainId!=rl)n=(0,S.Ab)(e.chainId,"tx.chainId"),(0,_.MR)(!t||null==t.networkV||t.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let t=e.signature.legacyChainId;null!=t&&(n=t)}if(!t)return n!==rl&&(r.push((0,S.c4)(n)),r.push("0x"),r.push("0x")),ro(r);let i=BigInt(27+t.yParity);return n!==rl?i=ei.getChainIdV(n,t.v):BigInt(t.v)!==i&&(0,_.MR)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,S.c4)(i)),r.push((0,S.c4)(t.r)),r.push((0,S.c4)(t._s)),ro(r)}function rR(e,t){let r;try{if(r=rw(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,_.MR)(!1,"invalid yParity","yParity",t[0])}let n=(0,N.nx)(t[1],32),i=(0,N.nx)(t[2],32);e.signature=ei.from({r:n,s:i,yParity:r})}function rP(e){let t=rt((0,N.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,N.c$)(e));let r={type:2,chainId:rA(t[0],"chainId"),nonce:rw(t[1],"nonce"),maxPriorityFeePerGas:rA(t[2],"maxPriorityFeePerGas"),maxFeePerGas:rA(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:rA(t[4],"gasLimit"),to:rb(t[5]),value:rA(t[6],"value"),data:(0,N.c$)(t[7]),accessList:rv(t[8],"accessList")};return 9===t.length||rR(r,t.slice(9)),r}function rM(e,t){let r=[rN(e.chainId,"chainId"),rN(e.nonce,"nonce"),rN(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),rN(e.maxFeePerGas||0,"maxFeePerGas"),rN(e.gasLimit,"gasLimit"),e.to||"0x",rN(e.value,"value"),e.data,rS(e.accessList||[])];return t&&(r.push(rN(t.yParity,"yParity")),r.push((0,S.c4)(t.r)),r.push((0,S.c4)(t.s))),(0,N.xW)(["0x02",ro(r)])}function rC(e){let t=rt((0,N.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,N.c$)(e));let r={type:1,chainId:rA(t[0],"chainId"),nonce:rw(t[1],"nonce"),gasPrice:rA(t[2],"gasPrice"),gasLimit:rA(t[3],"gasLimit"),to:rb(t[4]),value:rA(t[5],"value"),data:(0,N.c$)(t[6]),accessList:rv(t[7],"accessList")};return 8===t.length||rR(r,t.slice(8)),r}function rk(e,t){let r=[rN(e.chainId,"chainId"),rN(e.nonce,"nonce"),rN(e.gasPrice||0,"gasPrice"),rN(e.gasLimit,"gasLimit"),e.to||"0x",rN(e.value,"value"),e.data,rS(e.accessList||[])];return t&&(r.push(rN(t.yParity,"recoveryParam")),r.push((0,S.c4)(t.r)),r.push((0,S.c4)(t.s))),(0,N.xW)(["0x01",ro(r)])}function rL(e){let t=rt((0,N.q5)(e).slice(1)),r="3",n=null,i=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";let e=t[1],n=t[2],o=t[3];(0,_.MR)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,_.MR)(Array.isArray(n),"invalid network format: commitments not an array","fields[2]",
5n),(0,_.MR)(Array.isArray(o),"invalid network format: proofs not an array","fields[3]",o),(0,_.MR)(e.length===n.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,_.MR)(e.length===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let r=0;r<t[1].length;r++)i.push({data:e[r],commitment:n[r],proof:o[r]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){r="3 (EIP-7594 network format)",n=(0,S.WZ)(t[1]);let e=t[2],o=t[3],a=t[4];(0,_.MR)(1===n,`unsupported EIP-7594 network format version: ${n}`,"fields[1]",n),(0,_.MR)(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),(0,_.MR)(Array.isArray(o),"invalid EIP-7594 network format: commitments not an array","fields[3]",o),(0,_.MR)(Array.isArray(a),"invalid EIP-7594 network format: proofs not an array","fields[4]",a),(0,_.MR)(e.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,_.MR)(e.length*rm===a.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let t=0;t<e.length;t++){let r=[];for(let e=0;e<rm;e++)r.push(a[t*rm+e]);i.push({data:e[t],commitment:o[t],proof:(0,N.xW)(r)})}t=t[0]}(0,_.MR)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,N.c$)(e));let o={type:3,chainId:rA(t[0],"chainId"),nonce:rw(t[1],"nonce"),maxPriorityFeePerGas:rA(t[2],"maxPriorityFeePerGas"),maxFeePerGas:rA(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:rA(t[4],"gasLimit"),to:rb(t[5]),value:rA(t[6],"value"),data:(0,N.c$)(t[7]),accessList:rv(t[8],"accessList"),maxFeePerBlobGas:rA(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:n};i&&(o.blobs=i),(0,_.MR)(null!=o.to,`invalid address for transaction type: ${r}`,"data",e),(0,_.MR)(Array.isArray(o.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<o.blobVersionedHashes.length;t++)(0,_.MR)((0,N.Lo)(o.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||rR(o,t.slice(11)),o}function rD(e,t,r){let n=[rN(e.chainId,"chainId"),rN(e.nonce,"nonce"),rN(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),rN(e.maxFeePerGas||0,"maxFeePerGas"),rN(e.gasLimit,"gasLimit"),e.to||ex.j,rN(e.value,"value"),e.data,rS(e.accessList||[]),rN(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),rx(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(n.push(rN(t.yParity,"yParity")),n.push((0,S.c4)(t.r)),n.push((0,S.c4)(t.s)),r)){if(null!=e.blobWrapperVersion){let t=(0,S.c4)(e.blobWrapperVersion),i=[];for(let{proof:e}of r){let t=(0,N.q5)(e),r=t.length/rm;for(let e=0;e<t.length;e+=r)i.push(t.subarray(e,e+r))}return(0,N.xW)(["0x03",ro([n,t,r.map(e=>e.data),r.map(e=>e.commitment),i])])}return(0,N.xW)(["0x03",ro([n,r.map(e=>e.data),r.map(e=>e.commitment),r.map(e=>e.proof)])])}return(0,N.xW)(["0x03",ro(n)])}function rB(e){let t=rt((0,N.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,N.c$)(e));let r={type:4,chainId:rA(t[0],"chainId"),nonce:rw(t[1],"nonce"),maxPriorityFeePerGas:rA(t[2],"maxPriorityFeePerGas"),maxFeePerGas:rA(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:rA(t[4],"gasLimit"),to:rb(t[5]),value:rA(t[6],"value"),data:(0,N.c$)(t[7]),accessList:rv(t[8],"accessList"),authorizationList:rT(t[9],"authorizationList")};return 10===t.length||rR(r,t.slice(10)),r}function rV(e,t){let r=[rN(e.chainId,"chainId"),rN(e.nonce,"nonce"),rN(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),rN(e.maxFeePerGas||0,"maxFeePerGas"),rN(e.gasLimit,"gasLimit"),e.to||"0x",rN(e.value,"value"),e.data,rS(e.accessList||[]),r_(e.authorizationList||[])];return t&&(r.push(rN(t.yParity,"yParity")),r.push((0,S.c4)(t.r)),r.push((0,S.c4)(t.s))),(0,N.xW)(["0x04",ro(r)])}class rF{#J;#Q;#f;#Z;#ee;#et;#er;#en;#ei;#eo;#ea;#es;#el;#eu;#ec;#ed;#ef;#eh;get type(){return this.#J}set type(e){switch(e){case null:this.#J=null;break;case 0:case"legacy":this.#J=0;break;case 1:case"berlin":case"eip-2930":this.#J=1;break;
5case 2:case"london":case"eip-1559":this.#J=2;break;case 3:case"cancun":case"eip-4844":this.#J=3;break;case 4:case"pectra":case"eip-7702":this.#J=4;break;default:(0,_.MR)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){let e=this.#Q;return null==e&&3===this.type?ex.j:e}set to(e){this.#Q=null==e?null:(0,T.b)(e)}get nonce(){return this.#Z}set nonce(e){this.#Z=(0,S.WZ)(e,"value")}get gasLimit(){return this.#ee}set gasLimit(e){this.#ee=(0,S.Ab)(e)}get gasPrice(){let e=this.#et;return null==e&&(0===this.type||1===this.type)?rl:e}set gasPrice(e){this.#et=null==e?null:(0,S.Ab)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#er;return null==e?2===this.type||3===this.type?rl:null:e}set maxPriorityFeePerGas(e){this.#er=null==e?null:(0,S.Ab)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#en;return null==e?2===this.type||3===this.type?rl:null:e}set maxFeePerGas(e){this.#en=null==e?null:(0,S.Ab)(e,"maxFeePerGas")}get data(){return this.#f}set data(e){this.#f=(0,N.c$)(e)}get value(){return this.#ei}set value(e){this.#ei=(0,S.Ab)(e,"value")}get chainId(){return this.#eo}set chainId(e){this.#eo=(0,S.Ab)(e)}get signature(){return this.#ea||null}set signature(e){this.#ea=null==e?null:ei.from(e)}isValid(){let e=this.signature;if(e&&!e.isValid())return!1;let t=this.authorizationList;if(t){for(let e of t)if(!e.signature.isValid())return!1}return!0}get accessList(){let e=this.#es||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#es=null==e?null:(0,z.$)(e)}get authorizationList(){let e=this.#ef||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#ef=null==e?null:e.map(e=>eo(e))}get maxFeePerBlobGas(){let e=this.#el;return null==e&&3===this.type?rl:e}set maxFeePerBlobGas(e){this.#el=null==e?null:(0,S.Ab)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#eu;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,_.MR)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,_.MR)((0,N.Lo)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#eu=e}get blobs(){return null==this.#ed?null:this.#ed.map(e=>Object.assign({},e))}set blobs(e){if(null==e){this.#ed=null;return}let t=[],r=[];for(let n=0;n<e.length;n++){let i=e[n];if((0,N.f)(i)){(0,_.vA)(this.#ec,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,N.q5)(i);if((0,_.MR)(e.length<=rg,"blob is too large",`blobs[${n}]`,i),e.length!==rg){let t=new Uint8Array(rg);t.set(e),e=t}let o=this.#ec.blobToKzgCommitment(e),a=(0,N.c$)(this.#ec.computeBlobKzgProof(e,o));t.push({data:(0,N.c$)(e),commitment:(0,N.c$)(o),proof:a}),r.push(rE(1,o))}else{let e=(0,N.c$)(i.data),n=(0,N.c$)(i.commitment),o=(0,N.c$)(i.proof);t.push({data:e,commitment:n,proof:o}),r.push(rE(1,n))}}this.#ed=t,this.#eu=r}get kzg(){return this.#ec}set kzg(e){null==e?this.#ec=null:this.#ec=ry(e)}get blobWrapperVersion(){return this.#eh}set blobWrapperVersion(e){this.#eh=e}constructor(){this.#J=null,this.#Q=null,this.#Z=0,this.#ee=rl,this.#et=null,this.#er=null,this.#en=null,this.#f="0x",this.#ei=rl,this.#eo=rl,this.#ea=null,this.#es=null,this.#el=null,this.#eu=null,this.#ec=null,this.#ed=null,this.#ef=null,this.#eh=null}get hash(){return null==this.signature?null:(0,A.S)(this.#ep(!0,!1))}get unsignedHash(){return(0,A.S)(this.unsignedSerialized)}get from(){return null==this.signature?null:rs(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:t6.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}#ep(e,t){(0,_.vA)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});let r=e?this.signature:null;switch(this.inferType()){case 0:return rO(this,r);case 1:return rk(this,r);case 2:return rM(this,r);case 3:return rD(this,r,t?this.blobs:null);case 4:return rV(this,r)}(0,_.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ep(!0,!0)}get unsignedSerialized(){return this.#ep(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#el||this.#eu;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,_.vA)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,_.vA)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,_.vA)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let i=[];return null!=this.type?i.push(this.type):this.authorizationList&&this.authorizationList.length?
5i.push(4):t?i.push(2):e?(i.push(1),r||i.push(0)):r?(i.push(1),i.push(2)):(n&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return rF.from(this)}toJSON(){let e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[rp](){return this.toString()}toString(){let e=[],t=t=>{let r=this[t];"string"==typeof r&&(r=JSON.stringify(r)),e.push(`${t}: ${r}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));let r=this.authorizationList;if(r){let t=[];for(let e of r){let r=[];r.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&r.push(`nonce: ${e.nonce}`),null!=e.chainId&&r.push(`chainId: ${e.chainId}`),e.signature&&r.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${r.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new rF;if("string"==typeof e){let t=(0,N.q5)(e);if(t[0]>=127)return rF.from(rI(t));switch(t[0]){case 1:return rF.from(rC(t));case 2:return rF.from(rP(t));case 3:return rF.from(rL(t));case 4:return rF.from(rB(t))}(0,_.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let t=new rF;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=ei.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,_.MR)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,_.MR)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,_.MR)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,_.MR)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}var rU=r(94401),rj=r(17027),rH="
vendor: 20,100 bytes, line 5
5AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI
5";let rG=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),rK=4;function rz(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[t++],l=8),u>>--l&1}let d=31,f=2**d,h=f>>>1,p=h>>1,g=f-1,m=0;for(let e=0;e<d;e++)m=m<<1|c();let y=[],E=0,b=f;for(;;){let e=Math.floor(((m-E+1)*i-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;y.push(t);let a=E+Math.floor(b*o[t]/i),s=E+Math.floor(b*o[t+1]/i)-1;for(;((a^s)&h)==0;)m=m<<1&g|c(),a=a<<1&g,s=s<<1&g|1;for(;a&~s&p;)m=m&h|m<<1&g>>>1|c(),a=a<<1^h,s=(s^h)<<1|h|1;E=a,b=1+s-a}let v=n-4;return y.map(t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}})}function rW(e){let t=0;return()=>e[t++]}function rq(e){return rW(rz(rY(e)))}function rY(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
53);for(let i=0,o=0,a=0,s=0;i<r;i++)s=s<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(n[o++]=s>>(a-=8));return n}function r$(e){return 1&e?~e>>1:e>>1}function rX(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=r$(t());return r}function rJ(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e<i;e++)r.push(t+e);t+=i+1}return r}function rQ(e){return r0(()=>{let t=rJ(e);if(t.length)return t})}function rZ(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r2(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(r3(r,e))}return t.flat()}function r0(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function r1(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)rX(e,r).forEach((e,t)=>n[t].push(e));return n}function r2(e,t){let r=1+t(),n=t(),i=r0(t);return r1(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})})}function r3(e,t){return r1(1+t(),1+e,t).map(e=>[e[0],e.slice(1)])}function r4(e){let t=[],r=rJ(e);return i(n([]),[]),t;function n(t){return{S:e(),B:r0(()=>{let t=rJ(e).map(e=>r[e]);if(t.length)return n(t)}),Q:t}}function i({S:e,B:r},n,o){if(!(4&e)||o!==n[n.length-1])for(let a of(2&e&&(o=n[n.length-1]),1&e&&t.push(n),r))for(let e of a.Q)i(a,[...n,e],o)}}function r5(e){return e.toString(16).toUpperCase().padStart(2,"0")}function r6(e){return`{${r5(e)}}`}function r8(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}function r7(e){let t=4096,r=e.length;if(r<t)return String.fromCodePoint(...e);let n=[];for(let i=0;i<r;)n.push(String.fromCodePoint(...e.slice(i,i+=t)));return n.join("")}function r9(e,t){let r=e.length,n=r-t.length;for(let i=0;0==n&&i<r;i++)n=e[i]-t[i];return n}var ne="AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLu
5iQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA";
5let nt=44032,nr=4352,nn=4449,ni=4519,no=28,na=588,ns=55204,nl=4371,nu=4470,nc=4547;function nd(e){return e>>24&255}function nf(e){return 0xffffff&e}function nh(){let e=rq(ne);for(let[t,r]of(n=new Map(rQ(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(rJ(e)),o=new Map,a=new Map,rZ(e))){if(!i.has(t)&&2==r.length){let[e,n]=r,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(n,t)}o.set(t,r.reverse())}}function np(e){return e>=nt&&e<ns}function ng(e,t){if(e>=nr&&e<nl&&t>=nn&&t<nu)return nt+(e-nr)*na+(t-nn)*no;{if(np(e)&&t>ni&&t<nc&&(e-nt)%no==0)return e+(t-ni);let r=a.get(e);return r&&(r=r.get(t))?r:-1}}function nm(e){n||nh();let t=[],r=[],i=!1;function a(e){let r=n.get(e);r&&(i=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(np(n)){let e=n-nt,t=e/na|0,r=e%na/no|0,i=e%no;a(nr+t),a(nn+r),i>0&&a(ni+i)}else{let e=o.get(n);e?r.push(...e):a(n)}if(!r.length)break;n=r.pop()}if(i&&t.length>1){let e=nd(t[0]);for(let r=1;r<t.length;r++){let n=nd(t[r]);if(0==n||e<=n){e=n;continue}let i=r-1;for(;;){let r=t[i+1];if(t[i+1]=t[i],t[i]=r,!i||(e=nd(t[--i]))<=n)break}e=nd(t[r])}}return t}function ny(e){let t=[],r=[],n=-1,i=0;for(let o of e){let e=nd(o),a=nf(o);if(-1==n)0==e?n=a:t.push(a);else if(i>0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),i=e;else{let o=ng(n,a);o>=0?n=o:0==i&&0==e?(t.push(n),n=a):(r.push(a),i=e)}}return n>=0&&t.push(n,...r),t}function nE(e){return nm(e).map(nf)}function nb(e){return ny(nm(e))}let nv=45,nT=".",nw=65039,nA=1,nN=e=>Array.from(e);function nS(e,t){return e.P.has(t)||e.Q.has(t)}class n_ extends Array{get is_emoji(){return!0}}function nx(){if(s)return;let e=rq(rH),t=()=>rJ(e),r=()=>new Set(t()),n=(e,t)=>t.forEach(t=>e.add(t));s=new Map(rZ(e)),l=r(),u=t(),c=new Set(t().map(e=>u[e])),u=new Set(u),d=r(),f=r();let i=rQ(e),o=e(),a=()=>{let e=new Set;return t().forEach(t=>n(e,i[t])),n(e,t()),e};h=r0(t=>{let r=r0(e).map(e=>e+96);if(r.length){let n=t>=o;r[0]-=32,r=r7(r),n&&(r=`Restricted[${r}]`);let i=a();return{N:r,P:i,Q:a(),M:!e(),R:n}}}),p=r(),g=new Map;let b=t().concat(nN(p)).sort((e,t)=>e-t);for(let{V:t,M:r}of(b.forEach((t,r)=>{let n=e(),i=b[r]=n?b[r-n]:{V:[],M:new Map};i.V.push(t),p.has(t)||g.set(t,i)}),new Set(g.values()))){let e=[];for(let r of t){let t=h.filter(e=>nS(e,r)),i=e.find(({G:e})=>t.some(t=>e.has(t)));i||(i={G:new Set,V:[]},e.push(i)),i.V.push(r),n(i.G,t)}let i=e.flatMap(e=>nN(e.G));for(let{G:t,V:n}of e){let e=new Set(i.filter(e=>!t.has(e)));for(let t of n)r.set(t,e)}}m=new Set;let v=new Set,T=e=>m.has(e)?v.add(e):m.add(e);for(let e of h){for(let t of e.P)T(t);for(let t of e.Q)T(t)}for(let e of m)g.has(e)||v.has(e)||g.set(e,nA);for(let t of(n(m,nE(m)),y=r4(e).map(e=>n_.from(e)).sort(r9),E=new Map,y)){let e=[E];for(let r of t){let t=e.map(e=>{let t=e.get(r);return t||(t=new Map,e.set(r,t)),t});r===nw?e.push(...t):e=t}for(let r of e)r.V=t}}function nI(e){return(nL(e)?"":`${nO(nC([e]))} `)+r6(e)}function nO(e){return`"${e}"\u200E`}function nR(e){if(e.length>=4&&e[2]==nv&&e[3]==nv)throw Error(`invalid label extension: "${r7(e.slice(0,4))}"`)}function nP(e){let t=95;for(let r=e.lastIndexOf(t);r>0;)if(e[--r]!==t)throw Error("underscore allowed only at start")}function nM(e){let t=e[0],r=rG.get(t);if(r)throw nG(`leading ${r}`);let n=e.length,i=-1;for(let o=1;o<n;o++){t=e[o];let n=rG.get(t);if(n){if(i==o)throw nG(`${r} + ${n}`);i=o+1,r=n}}if(i==n)throw nG(`trailing ${r}`)}function nC(e,t=1/0,r=r6){let n=[];nk(e[0])&&n.push("â"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let i=0,o=e.length;for(let t=0;t<o;t++){let o=e[t];
5nL(o)&&(n.push(r7(e.slice(i,t))),n.push(r(o)),i=t+1)}return n.push(r7(e.slice(i,o))),n.join("")}function nk(e,t){return nx(),t?c.has(e):u.has(e)}function nL(e){return nx(),d.has(e)}function nD(e){return nU(nB(e,nb,nW))}function nB(e,t,r){if(!e)return[];nx();let n=0;return e.split(nT).map(e=>{let i=r8(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=nz(i,t,r),a=n.length;if(!a)throw Error("empty label");let s=o.output=n.flat();if(nP(s),!(o.emoji=a>1||n[0].is_emoji)&&s.every(e=>e<128))nR(s),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(u.has(s[0]))throw nG("leading combining mark");for(let e=1;e<a;e++){let t=n[e];if(!t.is_emoji&&u.has(t[0]))throw nG(`emoji + combining mark: "${r7(n[e-1])} + ${nC([t[0]])}"`)}nM(s);let r=nN(new Set(t)),[i]=nF(r);nK(i,t),nV(i,r),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}function nV(e,t){let r,n=[];for(let e of t){let t=g.get(e);if(t===nA)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):nN(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>nS(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}function nF(e){let t=h;for(let r of e){let e=t.filter(e=>nS(e,r));if(!e.length)if(h.some(e=>nS(e,r)))throw nH(t[0],r);else throw nj(r);if(t=e,1==e.length)break}return t}function nU(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${nO(nC(t,63))}: ${n}`)}return r7(n)}).join(nT)}function nj(e){return Error(`disallowed character: ${nI(e)}`)}function nH(e,t){let r=nI(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function nG(e){return Error(`illegal placement: ${e}`)}function nK(e,t){for(let r of t)if(!nS(e,r))throw nH(e,r);if(e.M){let e=nE(t);for(let t=1,r=e.length;t<r;t++)if(c.has(e[t])){let n=t+1;for(let i;n<r&&c.has(i=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==i)throw Error(`duplicate non-spacing marks: ${nI(i)}`);if(n-t>rK)throw Error(`excessive non-spacing marks: ${nO(nC(e.slice(t-1,n)))} (${n-t}/${rK})`);t=n}}}function nz(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=nq(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(m.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!l.has(t))throw nj(t)}}}return i.length&&n.push(t(i)),n}function nW(e){return e.filter(e=>e!=nw)}function nq(e,t){let r,n=E,i=e.length;for(;i&&(n=n.get(e[--i]));){let{V:o}=n;o&&(r=o,t&&t.push(...e.slice(i).reverse()),e.length=i)}return r}let nY=new Uint8Array(32);function n$(e){return(0,_.MR)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function nX(e){let t=(0,ea.YW)(nJ(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(n$(t.slice(n,e))),n=e+1);return(0,_.MR)(n<t.length,"invalid ENS name; empty component","name",e),r.push(n$(t.slice(n))),r}function nJ(e){try{if(0===e.length)throw Error("empty label");return nD(e)}catch(t){(0,_.MR)(!1,`invalid ENS name (${t.message})`,"name",e)}}function nQ(e){try{return 0!==nX(e).length}catch(e){}return!1}function nZ(e){(0,_.MR)("string"==typeof e,"invalid ENS name; not a string","name",e),(0,_.MR)(e.length,"invalid ENS name (empty label)","name",e);let t=nY,r=nX(e);for(;r.length;)t=(0,A.S)((0,N.xW)([t,(0,A.S)(r.pop())]));return(0,N.c$)(t)}function n0(e,t){let r=null!=t?t:63;return(0,_.MR)(r<=255,"DNS encoded label cannot exceed 255","length",r),(0,N.c$)((0,N.xW)(nX(e).map(t=>{(0,_.MR)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}nY.fill(0);let n1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);let n2=BigInt(58);function n3(e){let t=(0,N.q5)(e),r=(0,S.Dg)(t),n="";for(;r;)n=n1[Number(r%n2)]+n,r/=n2;for(let e=0;e<t.length&&!t[e];e++)n=n1[0]+n;return n}let n4=BigInt(60);function n5(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,_.MR)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class n6{name;constructor(e){(0,x.n)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}let n8=RegExp("^(ipfs)://(.*)$","i"),n7=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),n8,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function n9(e){return e===n4||e>=0x80000000&&e<=0xffffffff}class ie{provider;address;name;#eg;#em;constructor(e,t,r,n){(0,x.n)(this,{provider:e,address:t,name:r}),this.#eg=null!=n?Promise.resolve(n):null,this.#em=new rj.NZ(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)","function name(bytes32) view returns (string)"],e)}async supportsWildcard(){return null==this.#eg&&(this.#eg=(async()=>{try{return await this.#em.supportsInterface("0x9061b923")}catch(e){if((0,_.bJ)(e,"CALL_EXCEPTION"))return!1;throw this.#eg=null,e}})()),await this.#eg}
5async #ey(e,t){t=(t||[]).slice();let r=this.#em.interface;t.unshift(nZ(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,_.vA)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[n0(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{let i=await this.#em[e](...t);if(n)return r.decodeFunctionResult(n,i)[0];return i}catch(e){if(!(0,_.bJ)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){let t=null==e?n4:(0,S.Ab)(e);if(t===n4)try{let e=await this.#ey("addr(bytes32)");if(null==e||e===ex.j)return null;return e}catch(e){if((0,_.bJ)(e,"CALL_EXCEPTION"))return null;throw e}if(n9(t)){let e=await this.#ey("addr(bytes32,uint)",[t]);return(0,N.Lo)(e,20)?(0,T.b)(e):null}if(t>=0&&t<0x80000000){let e=t+BigInt(0x80000000),r=await this.#ey("addr(bytes32,uint)",[e]);if((0,N.Lo)(r,20))return(0,T.b)(r)}let r=null;for(let e of this.provider.plugins)if(e instanceof n6&&t<=0x80000000&&e.supportsCoinType(Number(t))){r=e;break}if(null==r)return null;let n=await this.#ey("addr(bytes32,uint)",[t]);if(null==n||"0x"===n)return null;if(t<0x80000000){let e=await r.decodeAddress(Number(t),n);if(null!=e)return e}(0,_.vA)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:n}})}async getText(e){let t=await this.#ey("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#ey("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${n3("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,_.vA)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getName(){return await this.#ey("name(bytes32)")}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;r<n7.length;r++){let n=t.match(n7[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{let r=n5(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:r}),{linkage:e,url:r}}case"erc721":case"erc1155":{let r="erc721"===i?"tokenURI(uint256)":"uri(uint256)";e.push({type:i,value:t});let o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};let a=(n[2]||"").split("/");if(2!==a.length)return e.push({type:`!${i}caip`,value:n[2]||""}),{url:null,linkage:e};let s=a[1],l=new rj.NZ(a[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===i){let t=await l.ownerOf(s);if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===i){let t=await l.balanceOf(o,s);
5if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let u=await l[r](s);if(null==u||"0x"===u)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:u}),"erc1155"===i&&(u=u.replace("{id}",(0,S.up)(s,32).substring(2)),e.push({type:"metadata-url-expanded",value:u})),u.match(/^ipfs:/i)&&(u=n5(u)),e.push({type:"metadata-url",value:u});let c={},d=await new ew(u).send();d.assertOk();try{c=d.bodyJson}catch(t){try{e.push({type:"!metadata",value:d.bodyText})}catch(r){let t=d.body;t&&e.push({type:"!metadata",value:(0,N.c$)(t)})}return{url:null,linkage:e}}if(!c)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(c)});let f=c.image;if("string"!=typeof f)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(f.match(/^(https:\/\/|data:)/i));else{let t=f.match(n8);if(null==t)return e.push({type:"!imageUrl-ipfs",value:f}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:f}),f=n5(f)}return e.push({type:"url",value:f}),{linkage:e,url:f}}}}}catch(e){}return{linkage:e,url:null}}static async getEnsAddress(e){let t=await e.getNetwork(),r=t.getPlugin("org.ethers.plugins.network.Ens");return(0,_.vA)(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),r.address}static async getUniversalResolverAddress(e){let t=(await e.getNetwork()).getPlugin("org.ethers.plugins.network.Ens");return t&&t.universalResolver?t.universalResolver:null}static async #eE(e,t){let r=await ie.getEnsAddress(e);try{let n=new rj.NZ(r,["function resolver(bytes32) view returns (address)"],e),i=await n.resolver(nZ(t),{enableCcipRead:!0});if(i===ex.j)return null;return i}catch(e){throw e}}static async lookupAddress(e,t,r){let n=null==r?n4:(0,S.Ab)(r);n9(n)&&(t=(0,T.b)(t));let i=await it(e);if(i)try{let e=(await i.reverse(t,n,{enableCcipRead:!0})).primary;if(!nQ(e))return null;return e}catch(e){if((0,_.bJ)(e,"CALL_EXCEPTION")&&"ResolverNotFound(bytes)"===e.reason)return null;throw e}(0,_.vA)(n===n4,"lookupAddress coinType requires ENS Universal Resolver","UNSUPPORTED_OPERATION",{operation:"lookupAddress"});try{let r=await ie.fromName(e,`${t.toLowerCase().substring(2)}.addr.reverse`);if(!r)return null;let n=await r.getName();if(null==n||!nQ(n)||await e.resolveName(n)!==t)return null;return n}catch(e){if((0,_.bJ)(e,"BAD_DATA")&&"0x"===e.value||(0,_.bJ)(e,"CALL_EXCEPTION"))return null;throw e}}static async fromName(e,t){let r=await it(e);if(r){let n;try{n=n0(nJ(t),255)}catch(e){return null}let i=await r.requireResolver(n);return new ie(e,i.resolver,t,i.extended)}let n=t;for(;;){if(""===n||"."===n||"eth"!==t&&"eth"===n)return null;let r=await ie.#eE(e,n);if(null!=r){let i=new ie(e,r,t);if(n!==t&&!await i.supportsWildcard())return null;return i}n=n.split(".").slice(1).join(".")}}}async function it(e){let t=await ie.getUniversalResolverAddress(e);return t?new rj.NZ(t,["function requireResolver(bytes) view returns ((bytes name, uint256 offset, bytes32 node, address resolver, bool extended))","function findResolver(bytes) view returns (address resolver, bytes32 node, uint offset)","function resolve(bytes name, bytes data) view returns (bytes result, address resolver)","function reverse(bytes name, uint coinType) view returns (string primary, address resolver, address reverseResolver)","error ResolverNotFound(bytes name)","error ResolverNotContract(bytes name, address resolver)","error ReverseAddressMismatch(string primary, bytes primaryAddress)","error HttpError(uint16 statusCode, string statusMessage)"],e):null}function ir(e){let t=(0,T.b)(e.from),r=(0,S.Ab)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,T.b)((0,N.ZG)((0,A.S)(ro([t,r])),12))}let ii=BigInt(0);function io(e,t){return function(r){return null==r?t:e(r)}}function ia(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function is(e,t){return r=>{let n={};for(let i in e){let o=i;if(t&&i in t&&!(o in r)){for(let e of t[i])if(e in r){o=e;break}}try{let t=e[i](r[o]);void 0!==t&&(n[i]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,_.vA)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:r})}}return n}}function il(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,_.MR)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function iu(e){return(0,_.MR)((0,N.Lo)(e,!0),"invalid data","value",e),e}function ic(e){return(0,_.MR)((0,N.Lo)(e,32),"invalid hash","value",e),e}let id=is({address:T.b,blockHash:ic,blockNumber:S.WZ,data:iu,index:S.WZ,removed:io(il,!1),topics:ia(ic),transactionHash:ic,transactionIndex:S.WZ},{index:["logIndex"]});function ih(e){return id(e)}let ip=is({hash:io(ic),parentHash:ic,parentBeaconBlockRoot:io(ic,null),number:S.WZ,timestamp:S.WZ,nonce:io(iu),difficulty:S.Ab,gasLim
5it:S.Ab,gasUsed:S.Ab,stateRoot:io(ic,null),receiptsRoot:io(ic,null),transactionsRoot:io(ic,null),blobGasUsed:io(S.Ab,null),excessBlobGas:io(S.Ab,null),miner:io(T.b),prevRandao:io(ic,null),extraData:iu,baseFeePerGas:io(S.Ab)},{prevRandao:["mixHash"]});function ig(e){let t=ip(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:iv(e)),t}let im=is({transactionIndex:S.WZ,blockNumber:S.WZ,transactionHash:ic,address:T.b,topics:ia(ic),data:iu,index:S.WZ,blockHash:ic},{index:["logIndex"]});function iy(e){return im(e)}let iE=is({to:io(T.b,null),from:io(T.b,null),contractAddress:io(T.b,null),index:S.WZ,root:io(N.c$),gasUsed:S.Ab,blobGasUsed:io(S.Ab,null),logsBloom:io(iu),blockHash:ic,hash:ic,logs:ia(iy),blockNumber:S.WZ,cumulativeGasUsed:S.Ab,effectiveGasPrice:io(S.Ab),blobGasPrice:io(S.Ab,null),status:io(S.WZ),type:io(S.WZ,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function ib(e){return iE(e)}function iv(e){e.to&&(0,S.Ab)(e.to)===ii&&(e.to="0x0000000000000000000000000000000000000000");let t=is({hash:ic,index:io(S.WZ,void 0),type:e=>"0x"===e||null==e?0:(0,S.WZ)(e),accessList:io(z.$,null),blobVersionedHashes:io(ia(ic,!0),null),authorizationList:io(ia(e=>{let t;if(e.signature)t=e.signature;else{let r=e.yParity;"0x1b"===r?r=0:"0x1c"===r&&(r=1),t=Object.assign({},e,{yParity:r})}return{address:(0,T.b)(e.address),chainId:(0,S.Ab)(e.chainId),nonce:(0,S.Ab)(e.nonce),signature:ei.from(t)}},!1),null),blockHash:io(ic,null),blockNumber:io(S.WZ,null),transactionIndex:io(S.WZ,null),from:T.b,gasPrice:io(S.Ab),maxPriorityFeePerGas:io(S.Ab),maxFeePerGas:io(S.Ab),maxFeePerBlobGas:io(S.Ab,null),gasLimit:S.Ab,to:io(T.b,null),value:S.Ab,nonce:S.WZ,data:iu,creates:io(T.b,null),chainId:io(S.Ab,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=ir(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=ei.from(e.signature):t.signature=ei.from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,S.Ab)(t.blockHash)===ii&&(t.blockHash=null),t}let iT="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",iw=Symbol.for("nodejs.util.inspect.custom");class iA{name;constructor(e){(0,x.n)(this,{name:e})}[iw](){return this.toString()}toString(){return`${this.name} { }`}clone(){return new iA(this.name)}}class iN extends iA{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function n(e,n){let i=(t||{})[e];null==i&&(i=n),(0,_.MR)("number"==typeof i,`invalud value for ${e}`,"costs",t),r[e]=i}n("txBase",21e3),n("txCreate",32e3),n("txDataZero",4),n("txDataNonzero",16),n("txAccessListStorageKey",1900),n("txAccessListAddress",2400),(0,x.n)(this,r)}toString(){return`${this.name} { txBase: ${this.txBase}, txCreate: ${this.txCreate}, txDataZero: ${this.txDataZero}, txAccessListStorageKey: ${this.txAccessListStorageKey}, txAccessListAddress: ${this.txAccessListAddress} }`}clone(){return new iN(this.effectiveBlock,this)}}class iS extends iA{address;targetNetwork;universalResolver;constructor(e,t,r){super("org.ethers.plugins.network.Ens"),(0,x.n)(this,{address:e||iT,targetNetwork:null==t?1:t,universalResolver:r})}toString(){return`${this.name} { address: ${this.address}, targetNetwork: ${this.targetNetwork}, universalResolver: ${this.universalResolver} }`}clone(){return new iS(this.address,this.targetNetwork,this.universalResolver)}}class i_ extends iA{#L;#eb;get url(){return this.#L}get processFunc(){return this.#eb}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#L=e,this.#eb=t}toString(){return`${this.name} { url: ${this.url} }`}clone(){return this}}let ix=Symbol.for("nodejs.util.inspect.custom"),iI=new Map;class iO{#ev;#eo;#eT;constructor(e,t){this.#ev=e,this.#eo=(0,S.Ab)(t),this.#eT=new Map}[ix](){return this.toString()}toString(){let e=[];for(let t of this.#eT.values())e.push(t.toString());return`Network { name: ${this.name}, chainId: ${this.chainId}, plugins: [ ${e.join(", ")} ] }`}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#ev}set name(e){this.#ev=e}get chainId(){return this.#eo}set chainId(e){this.#eo=(0,S.Ab)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,S.Ab)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,S.Ab)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,S.Ab)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#eT.values())}
5attachPlugin(e){if(this.#eT.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eT.set(e.name,e.clone()),this}getPlugin(e){return this.#eT.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new iO(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new iN,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n<e.data.length;n+=2)"00"===e.data.substring(n,n+2)?r+=t.txDataZero:r+=t.txDataNonzero;if(e.accessList){let n=(0,z.$)(e.accessList);for(let e in n)r+=t.txAccessListAddress+t.txAccessListStorageKey*n[e].storageKeys.length}return r}static from(e){if(iC(),null==e)return iO.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=iI.get(e);if(t)return t();if("bigint"==typeof e)return new iO("unknown",e);(0,_.MR)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,_.MR)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new iO(e.name,e.chainId),r=e;return(r.ensAddress||null!=r.ensNetwork||r.ensUniversalResolver)&&t.attachPlugin(new iS(r.ensAddress,r.ensNetwork,r.ensUniversalResolver)),t}(0,_.MR)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=iI.get(e);r&&(0,_.MR)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),iI.set(e,t)}}function iR(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length<t;)n[1]+="0";if(n[1].length>9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function iP(e){return new i_(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,i]=await Promise.all([r.send(),e()]),o=(n=t).bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:iR(o.maxFee,9),maxPriorityFeePerGas:iR(o.maxPriorityFee,9)}}catch(e){(0,_.vA)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}let iM=!1;function iC(){if(iM)return;function e(e,t,r){let n=function(){let n=new iO(e,t);return null!=r.ensNetwork&&n.attachPlugin(new iS(null,r.ensNetwork,r.ensUniversalResolver)),n.attachPlugin(new iN),(r.plugins||[]).forEach(e=>{n.attachPlugin(e)}),n};iO.register(e,n),iO.register(t,n),r.altNames&&r.altNames.forEach(e=>{iO.register(e,n)})}iM=!0;let t="0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe";e("mainnet",1,{ensUniversalResolver:t,ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",0xaa36a7,{ensUniversalResolver:t,ensNetwork:0xaa36a7}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("filecoin",314,{}),e("filecoin-calibration",314159,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[iP("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[iP("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",0xaa37dc,{}),e("xdai",100,{ensNetwork:1})}var ik=r(43184);function iL(e){return JSON.parse(JSON.stringify(e))}class iD{#ew;#eA;#eN;#eS;constructor(e){this.#ew=e,this.#eA=null,this.#eN=4e3,this.#eS=-2}get pollingInterval(){return this.#eN}set pollingInterval(e){this.#eN=e}async #e_(){try{let e=await this.#ew.getBlockNumber();if(-2===this.#eS){this.#eS=e;return}if(e!==this.#eS){for(let t=this.#eS+1;t<=e;
5t++){if(null==this.#eA)return;await this.#ew.emit("block",t)}this.#eS=e}}catch(e){}null!=this.#eA&&(this.#eA=this.#ew._setTimeout(this.#e_.bind(this),this.#eN))}start(){this.#eA||(this.#eA=this.#ew._setTimeout(this.#e_.bind(this),this.#eN),this.#e_())}stop(){this.#eA&&(this.#ew._clearTimeout(this.#eA),this.#eA=null)}pause(e){this.stop(),e&&(this.#eS=-2)}resume(){this.start()}}class iB{#ew;#e_;#ex;constructor(e){this.#ew=e,this.#ex=!1,this.#e_=e=>{this._poll(e,this.#ew)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#ex||(this.#ex=!0,this.#e_(-2),this.#ew.on("block",this.#e_))}stop(){this.#ex&&(this.#ex=!1,this.#ew.off("block",this.#e_))}pause(e){this.stop()}resume(){this.start()}}class iV extends iB{#eI;#eO;constructor(e,t){super(e),this.#eI=t,this.#eO=-2}pause(e){e&&(this.#eO=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#eI);null!=r&&(-2===this.#eO?this.#eO=r.number:r.number>this.#eO&&(t.emit(this.#eI,r.number),this.#eO=r.number))}}class iF extends iB{#o;constructor(e,t){super(e),this.#o=iL(t)}async _poll(e,t){throw Error("@TODO")}}class iU extends iB{#eR;constructor(e,t){super(e),this.#eR=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#eR);r&&t.emit(this.#eR,r)}}class ij{#ew;#o;#eA;#ex;#eS;constructor(e,t){this.#ew=e,this.#o=iL(t),this.#eA=this.#e_.bind(this),this.#ex=!1,this.#eS=-2}async #e_(e){if(-2===this.#eS)return;let t=iL(this.#o);t.fromBlock=this.#eS+1,t.toBlock=e;let r=await this.#ew.getLogs(t);if(0===r.length){this.#eS<e-60&&(this.#eS=e-60);return}for(let e of r)this.#ew.emit(this.#o,e),this.#eS=e.blockNumber}start(){this.#ex||(this.#ex=!0,-2===this.#eS&&this.#ew.getBlockNumber().then(e=>{this.#eS=e}),this.#ew.on("block",this.#eA))}stop(){this.#ex&&(this.#ex=!1,this.#ew.off("block",this.#eA))}pause(e){this.stop(),e&&(this.#eS=-2)}resume(){this.start()}}let iH=BigInt(2),iG=10;function iK(e){return new Promise(t=>{setTimeout(t,e)})}function iz(e){return e&&"function"==typeof e.then}function iW(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class iq{name;constructor(e){(0,x.n)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function iY(e){return JSON.parse(JSON.stringify(e))}function i$(e){return(e=Array.from(new Set(e).values())).sort(),e}async function iX(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,N.Lo)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:iW("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:iW("orphan",t),filter:iY(t)}}if(e.address||e.topics){let r=e,n={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?i$(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],o=r=>{(0,N.Lo)(r)?e.push(r):i.push((async()=>{e.push(await (0,w.tG)(r,t))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=i$(e.map(e=>e.toLowerCase()))}return{filter:n,tag:iW("event",n),type:"event"}}(0,_.MR)(!1,"unknown ProviderEvent","event",e)}function iJ(){return new Date().getTime()}let iQ={cacheTimeout:250,pollingInterval:4e3};class iZ{#eP;#eT;#eM;#eC;#ek;#eL;#eD;#eB;#eV;#eF;#eU;#ej;#eH;#a;constructor(e,t){if(this.#a=Object.assign({},iQ,t||{}),"any"===e)this.#eL=!0,this.#ek=null;else if(e){let t=iO.from(e);this.#eL=!1,this.#ek=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#eL=!1,this.#ek=null;this.#eB=-1,this.#eD=new Map,this.#eP=new Map,this.#eT=new Map,this.#eM=null,this.#eC=!1,this.#eV=1,this.#eF=new Map,this.#eU=!1,this.#ej=0,this.#eH=[]}get _requestRate(){let e=this.#ej;return 0==e?null:e}set _requestRate(e){(null==e||e<0)&&(e=0),this.#ej=(0,S.WZ)(e)}get pollingInterval(){return this.#a.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#eT.values())}
5attachPlugin(e){if(this.#eT.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eT.set(e.name,e.connect(this)),this}getPlugin(e){return this.#eT.get(e)||null}get disableCcipRead(){return this.#eU}set disableCcipRead(e){this.#eU=!!e}#eG(){let e=this.#ej;if(0===e)return 0;let t=this.#eH,r=iJ();t.push(r);let n=r-1e3;for(;t.length&&t[0]<n;)t.shift();return t.length<e?0:t[0]+1e3-r}async #eK(e){let t=this.#a.cacheTimeout;if(t<0){let t=this.#eG();return t&&await iK(t),await this._perform(e)}let r=iW(e.method,e),n=this.#eD.get(r);if(!n){let i=this.#eG();i&&await iK(i),n=this._perform(e),this.#eD.set(r,n),setTimeout(()=>{this.#eD.get(r)===n&&this.#eD.delete(r)},t)}return await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let t=0;t<r.length;t++){let a,s=r[t],l=new ew(s.replace("{sender}",n).replace("{data}",i));-1===s.indexOf("{data}")&&(l.body={data:i,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:l,index:t,urls:r});let u="unknown error";try{a=await l.send()}catch(e){o.push(e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:l,result:{error:e}});continue}try{let e=a.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:l,result:e}),e.data;e.message&&(u=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:l,result:e})}catch(e){}(0,_.vA)(a.statusCode<400||a.statusCode>=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:u}}),o.push(u)}(0,_.vA)(!1,`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:o}})}_wrapBlock(e,t){return new ik.eB(ig(e),this)}_wrapLog(e,t){return new ik.tG(ih(e),this)}_wrapTransactionReceipt(e,t){return new ik.z5(ib(e),this)}_wrapTransactionResponse(e,t){return new ik.uI(iv(e),this)}_detectNetwork(){(0,_.vA)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,_.vA)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,S.WZ)(await this.#eK({method:"getBlockNumber"}),"%response");return this.#eB>=0&&(this.#eB=e),e}_getAddress(e){return(0,w.tG)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,N.Lo)(e)?(0,N.Lo)(e,32)?e:(0,S.nD)(e):("bigint"==typeof e&&(e=(0,S.WZ)(e,"blockTag")),"number"==typeof e)?e>=0?(0,S.nD)(e):this.#eB>=0?(0,S.nD)(this.#eB+e):this.getBlockNumber().then(t=>(0,S.nD)(t+e)):void(0,_.MR)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r,n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?i$(e.map(e=>e.toLowerCase())):e.toLowerCase()),i="blockHash"in e?e.blockHash:void 0,o=(e,t,r)=>{let o;switch(e.length){case 0:break;case 1:o=e[0];break;default:e.sort(),o=e}if(i&&(null!=t||null!=r))throw Error("invalid filter");let a={};return o&&(a.address=o),n.length&&(a.topics=n),t&&(a.fromBlock=t),r&&(a.toBlock=r),i&&(a.blockHash=i),a},a=[];if(e.address)if(Array.isArray(e.address))for(let t of e.address)a.push(this._getAddress(t));else a.push(this._getAddress(e.address));return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),a.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(a),t,r]).then(e=>o(e[0],e[1],e[2])):o(a,t,r)}_getTransactionRequest(e){let t=(0,ik.VS)(e),r=[];if(["to","from"].forEach(e=>{if(null==t[e])return;let n=(0,w.tG)(t[e],this);iz(n)?r.push(async function(){t[e]=await n}()):t[e]=n}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);iz(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#ek){let e=(async()=>{try{let e=await this._detectNetwork();
5return this.emit("network",e,null),e}catch(t){throw this.#ek===e&&(this.#ek=null),t}})();return this.#ek=e,(await e).clone()}let e=this.#ek,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#eL?(this.emit("network",r,t),this.#ek===e&&(this.#ek=Promise.resolve(r))):(0,_.vA)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,x.k)({_block:this.#ez("latest",!1),gasPrice:(async()=>{try{let e=await this.#eK({method:"getGasPrice"});return(0,S.Ab)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#eK({method:"getPriorityFee"});return(0,S.Ab)(e,"%response")}catch(e){}return null})()}),i=null,o=null,a=this._wrapBlock(t,e);return a&&a.baseFeePerGas&&(o=null!=n?n:BigInt("1000000000"),i=a.baseFeePerGas*iH+o),new ik.J9(r,i,o)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new ew(r.url),n=await r.processFunc(t,this,e);return new ik.J9(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return iz(t)&&(t=await t),(0,S.Ab)(await this.#eK({method:"estimateGas",transaction:t}),"%response")}async #eW(e,t,r){(0,_.vA)(r<iG,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let n=(0,ik.VS)(e);try{let e=this.#eG();return e&&await iK(e),(0,N.c$)(await this._perform({method:"call",transaction:n,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,_.E)(e)&&e.data&&r>=0&&"latest"===t&&null!=n.to&&"0x556f1830"===(0,N.ZG)(e.data,0,4)){let i,o=e.data,a=await (0,w.tG)(n.to,this);try{i=i8((0,N.ZG)(e.data,4))}catch(e){(0,_.vA)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:o}})}(0,_.vA)(i.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let s=await this.ccipReadFetch(n,i.calldata,i.urls);(0,_.vA)(null!=s,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:e.data,errorArgs:i.errorArgs}});let l={to:a,data:(0,N.xW)([i.selector,i5([s,i.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{let e=await this.#eW(l,t,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:e}),e}}throw e}}async #eq(e){let{value:t}=await (0,x.k)({network:this.getNetwork(),value:e});return t}async call(e){let{tx:t,blockTag:r}=await (0,x.k)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#eq(this.#eW(t,r,e.enableCcipRead?0:-1))}async #eY(e,t,r){let n=this._getAddress(t),i=this._getBlockTag(r);return("string"!=typeof n||"string"!=typeof i)&&([n,i]=await Promise.all([n,i])),await this.#eq(this.#eK(Object.assign(e,{address:n,blockTag:i})))}async getBalance(e,t){return(0,S.Ab)(await this.#eY({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,S.WZ)(await this.#eY({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,N.c$)(await this.#eY({method:"getCode"},e,t))}async getStorage(e,t,r){let n=(0,S.Ab)(t,"position");return(0,N.c$)(await this.#eY({method:"getStorage",position:n},e,r))}async broadcastTransaction(e){let{blockNumber:t,hash:r,network:n}=await (0,x.k)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=rF.from(e);if(i.hash!==r)throw Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,n).replaceableTransaction(t)}async #ez(e,t){if((0,N.Lo)(e,32))return await this.#eK({method:"getBlock",blockHash:e,includeTransactions:t});let r=this._getBlockTag(e);return"string"!=typeof r&&(r=await r),await this.#eK({method:"getBlock",blockTag:r,includeTransactions:t})}async getBlock(e,t){let{network:r,params:n}=await (0,x.k)({network:this.getNetwork(),params:this.#ez(e,!!t)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(e){let{network:t,params:r}=await (0,x.k)({network:this.getNetwork(),params:this.#eK({method:"getTransaction",hash:e})});return null==r?null:this._wrapTransactionResponse(r,t)}async getTransactionReceipt(e){let{network:t,params:r}=await (0,x.k)({network:this.getNetwork(),params:this.#eK({method:"getTransactionReceipt",hash:e})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){let t=await this.#eK({method:"getTransaction",hash:e});if(null==t)throw Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(r,t)}async getTransactionResult(e){let{result:t}=await (0,x.k)({network:this.getNetwork(),result:this.#eK({method:"getTransactionResult",hash:e})});return null==t?null:(0,N.c$)(t)}async getLogs(e){let t=this._getFilter(e);iz(t)&&(t=await t);let{network:r,params:n}=await (0,x.k)({network:this.getNetwork(),params:this.#eK({method:"getLogs",filter:t})});return n.map(e=>this._wrapLog(e,r))}_getProvider(e){(0,_.vA)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await ie.fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e,t){let r=await this.getResolver(e);return r?await r.getAddress(t):null}async lookupAddress(e,t){return await ie.lookupAddress(this,e,t)}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,i)=>{let o=null,a=async r=>{try{let i=await this.getTransactionReceipt(e);
5if(null!=i&&r-i.blockNumber+1>=n){t(i),o&&(clearTimeout(o),o=null);return}}catch(e){console.log("EEE",e)}this.once("block",a)};null!=r&&(o=setTimeout(()=>{null!=o&&(o=null,this.off("block",a),i((0,_.xz)("timeout","TIMEOUT",{reason:"timeout"})))},r)),a(await this.getBlockNumber())})}async waitForBlock(e){(0,_.vA)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#eF.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#eF.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#eV++,n=()=>{this.#eF.delete(r),e()};if(this.paused)this.#eF.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#eF.set(r,{timer:e,func:n,time:iJ()})}return r}_forEachSubscriber(e){for(let t of this.#eP.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new iq(e.type);case"block":{let e=new iD(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new iV(this,e.type);case"event":return new ij(this,e.filter);case"transaction":return new iU(this,e.hash);case"orphan":return new iF(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#eP.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#eM&&t.pause(this.#eM);break}}async #e$(e,t){let r=await iX(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await iX({orphan:"drop-log",log:t[0]},this)),this.#eP.get(r.tag)||null}async #eX(e){let t=await iX(e,this),r=t.tag,n=this.#eP.get(r);if(!n){let e=this._getSubscriber(t);n={subscriber:e,tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#eP.set(r,n)}return n}async on(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eM&&r.subscriber.pause(this.#eM)),this}async once(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eM&&r.subscriber.pause(this.#eM)),this}async emit(e,...t){let r=await this.#e$(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let i=new rU.z(this,n?null:r,e);try{r.call(this,...t,i)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#eP.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#e$(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#eP.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#e$(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#eP.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#e$(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#eP.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#eX(e);r&&n.stop(),this.#eP.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#eP)t&&r.stop(),this.#eP.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#eC}destroy(){for(let e of(this.removeAllListeners(),this.#eF.keys()))this._clearTimeout(e);this.#eC=!0}get paused(){return null!=this.#eM}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#eB=-1,null!=this.#eM){if(!!e==this.#eM)return;(0,_.vA)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#eM=!!e,this.#eF.values()))t.timer&&clearTimeout(t.timer),t.time=iJ()-t.time}resume(){if(null!=this.#eM)for(let e of(this._forEachSubscriber(e=>e.resume()),this.#eM=null,this.#eF.values())){let t=e.time;t<0&&(t=0),e.time=iJ(),setTimeout(e.func,t)}}}function i0(e,t){try{let r=i1(e,t);if(r)return(0,ea._v)(r)}catch(e){}return null}function i1(e,t){if("0x"===e)return null;try{let r=(0,S.WZ)((0,N.ZG)(e,t,t+32)),n=(0,S.WZ)((0,N.ZG)(e,r,r+32));return(0,N.ZG)(e,r+32,r+32+n)}catch(e){}return null}function i2(e){let t=(0,S.c4)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function i3(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}let i4=new Uint8Array([]);function i5(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(i4),r+=32;for(let n=0;n<e.length;n++){let i=(0,N.q5)(e[n]);t[n]=i2(r),t.push(i2(i.length)),t.push(i3(i)),r+=32+32*Math.ceil(i.length/32)}return(0,N.xW)(t)}let i6="0x0000000000000000000000000000000000000000000000000000000000000000";function i8(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,_.vA)((0,N.pO)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,N.ZG)(e,0,32);(0,_.vA)((0,N.ZG)(r,0,12)===(0,N.ZG)(i6,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,N.ZG)(r,12);try{let r=[],n=(0,S.WZ)((0,N.ZG)(e,32,64)),i=(0,S.WZ)((0,N.ZG)(e,n,n+32)),o=(0,N.ZG)(e,n+32);for(let e=0;e<i;e++){let t=i0(o,32*e);if(null==t)throw Error("abort");r.push(t)}t.urls=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{let r=i1(e,64);if(null==r)throw Error("abort");t.calldata=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,_.vA)((0,N.ZG)(e,100,128)===(0,N.ZG)(i6,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,N.ZG)(e,96,100);try{let r=i1(e,128);if(null==r)throw Error("abort");t.extraData=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}
5return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(e=>t[e]),t}function i7(e,t){if(e.provider)return e.provider;(0,_.vA)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function i9(e,t){let r=(0,ik.VS)(t);if(null!=r.to&&(r.to=(0,w.tG)(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),(0,w.tG)(t,e)]).then(([e,t])=>((0,_.MR)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,x.k)(r)}class oe{provider;constructor(e){(0,x.n)(this,{provider:e||null})}async getNonce(e){return i7(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await i9(this,e)}async populateTransaction(e){let t=i7(this,"populateTransaction"),r=await i9(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,S.Ab)(r.chainId);(0,_.MR)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let i=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||i)?(0,_.MR)(!1,"eip-1559 transaction do not support gasPrice","tx",e):(0===r.type||1===r.type)&&i&&(0,_.MR)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,_.vA)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(r.authorizationList&&r.authorizationList.length?r.type=4:r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,_.vA)(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,_.vA)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(2===r.type||3===r.type||4===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,x.k)(r)}async populateAuthorization(e){let t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await i7(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return i7(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return i7(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=i7(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=i7(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=rF.from(r);return await t.broadcastTransaction(await this.signTransaction(n))}authorize(e){(0,_.vA)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}function ot(e){return JSON.parse(JSON.stringify(e))}class or{#ew;#eJ;#eA;#ex;#eQ;#eZ;constructor(e){this.#ew=e,this.#eJ=null,this.#eA=this.#e_.bind(this),this.#ex=!1,this.#eQ=null,this.#eZ=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #e_(e){try{null==this.#eJ&&(this.#eJ=this._subscribe(this.#ew));let e=null;try{e=await this.#eJ}catch(e){if(!(0,_.bJ)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#eJ=null,this.#ew._recoverSubscriber(this,this._recover(this.#ew));return}let t=await this.#ew.getNetwork();if(this.#eQ||(this.#eQ=t),this.#eQ.chainId!==t.chainId)throw Error("chaid changed");if(this.#eZ)return;let r=await this.#ew.send("eth_getFilterChanges",[e]);await this._emitResults(this.#ew,r)}catch(e){console.log("@TODO",e)}this.#ew.once("block",this.#eA)}#e0(){let e=this.#eJ;e&&(this.#eJ=null,e.then(e=>{this.#ew.destroyed||this.#ew.send("eth_uninstallFilter",[e])}))}start(){this.#ex||(this.#ex=!0,this.#e_(-2))}stop(){this.#ex&&(this.#ex=!1,this.#eZ=!0,this.#e0(),this.#ew.off("block",this.#eA))}pause(e){e&&this.#e0(),this.#ew.off("block",this.#eA)}resume(){this.start()}}class on extends or{#e1;constructor(e,t){super(e),this.#e1=ot(t)}_recover(e){return new ij(e,this.#e1)}async _subscribe(e){return await e.send("eth_newFilter",[this.#e1])}async _emitResults(e,t){for(let r of t)e.emit(this.#e1,e._wrapLog(r,e._network))}}class oi extends or{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}let oo="bigint,boolean,function,number,string,symbol".split(/,/g);function oa(e){if(null==e||oo.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(oa);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function os(e){return new Promise(t=>{setTimeout(t,e)})}function ol(e){return e?e.toLowerCase():e}function ou(e){return e&&"number"==typeof e.pollingInterval}let oc={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class od extends oe{address;constructor(e,t){super(e),t=(0,T.b)(t),(0,x.n)(this,{address:t})}connect(e){(0,_.vA)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=oa(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await (0,w.tG)(n,this.provider);(0,_.MR)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>
5{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await (0,w.tG)(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let i=[1e3,100],o=0,a=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n)return void e(n.replaceableTransaction(t))}catch(e){if((0,_.bJ)(e,"CANCELLED")||(0,_.bJ)(e,"BAD_DATA")||(0,_.bJ)(e,"NETWORK_ERROR")||(0,_.bJ)(e,"UNSUPPORTED_OPERATION")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,_.bJ)(e,"INVALID_ARGUMENT")&&(o++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,o>10))return void n(e);this.provider.emit("error",(0,_.xz)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{a()},i.pop()||4e3)};a()})}async signTransaction(e){let t=oa(e);if(t.from){let r=await (0,w.tG)(t.from,this.provider);(0,_.MR)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?(0,ea.YW)(e):e;return await this.provider.send("personal_sign",[(0,N.c$)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=oa(r),i=await K.resolveNames(e,t,n,async e=>{let t=await (0,w.tG)(e);return(0,_.MR)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(K.getPayload(i.domain,t,i.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?(0,ea.YW)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,N.c$)(t)])}}class of extends iZ{#a;#e2;#e3;#e4;#e5;#eQ;#e6;#e8(){if(this.#e4)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#e4=setTimeout(()=>{this.#e4=null;let e=this.#e3;for(this.#e3=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#a.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#a.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:i}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}let t=r.filter(e=>e.id===i.id)[0];if(null==t){let e=(0,_.xz)("missing response for request","BAD_DATA",{value:r,info:{payload:i}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(i,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#e2=1,this.#a=Object.assign({},oc,t||{}),this.#e3=[],this.#e4=null,this.#eQ=null,this.#e6=null;{let e=null,t=new Promise(t=>{e=t});this.#e5={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,_.MR)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#eQ=iO.from(e))):r&&((0,_.MR)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#eQ=r)}_getOption(e){return this.#a[e]}get _network(){return(0,_.vA)(this.#eQ,"network is not available yet","NETWORK_ERROR"),this.#eQ}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,S.Ab)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;else if(this.#eQ)return this.#eQ}return this.#e6||(this.ready?this.#e6=(async()=>{try{let e=iO.from((0,S.Ab)(await this.send("eth_chainId",[])));return this.#e6=null,e}catch(e){throw this.#e6=null,e}})():this.#e6=(async()=>{let e,t={id:this.#e2++,method:"eth_chainId",params:[],jsonrpc:"2.0"};
5this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#e6=null}catch(e){throw this.#e6=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return iO.from((0,S.Ab)(e.result));throw this.getRpcError(t,e)})()),await this.#e6}_start(){null!=this.#e5&&null!=this.#e5.resolve&&(this.#e5.resolve(),this.#e5=null,(async()=>{for(;null==this.#eQ&&!this.destroyed;)try{this.#eQ=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,_.xz)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await os(1e3)}this.#e8()})())}async _waitUntilReady(){if(null!=this.#e5)return await this.#e5.promise}_getSubscriber(e){return"pending"===e.type?new oi(this):"event"===e.type?this._getOption("polling")?new ij(this,e.filter):new on(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new iq("orphan"):super._getSubscriber(e)}get ready(){return null==this.#e5}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,S.nD)((0,S.Ab)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,N.c$)(e[r]))}),e.accessList&&(t.accessList=(0,z.$)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map(e=>e.toLowerCase())),e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>{let t=eo(e);return{address:t.address,nonce:(0,S.nD)(t.nonce),chainId:(0,S.nD)(t.chainId),yParity:(0,S.nD)(t.signature.yParity),r:(0,S.nD)(t.signature.r),s:(0,S.nD)(t.signature.s)}})),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[ol(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[ol(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[ol(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[ol(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(ol):e.filter.address=ol(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:n}=t;if("eth_estimateGas"===r&&n.message){let t=n.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,_.xz)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:n}});if(t.match(/nonce/i)&&t.match(/too low/i))return(0,_.xz)("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:n}})}if("eth_call"===r||"eth_estimateGas"===r){let t=og(n),i=v.y.getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:n,payload:e},i}let i=JSON.stringify(oy(n));if("string"==typeof n.message&&n.message.match(/user denied|ethers-user-denied/i)){let t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,_.xz)("user rejected action","ACTION_REJECTED",{action:t[r]||"unknown",reason:"rejected",info:{payload:e,error:n}})}if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,_.xz)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:n}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,_.xz)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:n}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,_.xz)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:n}});if(i.match(/only replay-protected/i))return(0,_.xz)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:n}}})}let o=!!i.match(/the method .* does not exist/i);return(!o&&n&&n.details&&n.details.startsWith("Unauthorized method:")&&(o=!0),o)?(0,_.xz)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:n,payload:e}}):(0,_.xz)("could not coalesce error","UNKNOWN_ERROR",{error:n,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#e2++,n=new Promise((n,i)=>{this.#e3.push({resolve:n,reject:i,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#e8(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new od(this,r[e])}let{accounts:r}=await (0,x.k)({network:this.getNetwork(),accounts:t});for(let t of(e=(0,T.b)(e),r))if((0,T.b)(t)===e)return new od(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new od(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#e4&&(clearTimeout(this.#e4),this.#e4=null),this.#e3))t((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#e3=[],super.destroy()}}class oh extends of{#e7;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=oc.pollingInterval),this.#e7=r}_getSubscriber(e){let t=super._getSubscriber(e);return ou(t)&&(t.pollingInterval=this.#e7),t}get pollingInterval(){return this.#e7}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");
5this.#e7=e,this._forEachSubscriber(e=>{ou(e)&&(e.pollingInterval=this.#e7)})}}class op extends oh{#e9;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),"string"==typeof e?this.#e9=new ew(e):this.#e9=e.clone()}_getConnection(){return this.#e9.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){let t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");let r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}function og(e){if(null==e)return null;if("string"==typeof e.message&&e.message.match(/revert/i)&&(0,N.Lo)(e.data))return{message:e.message,data:e.data};if("object"==typeof e){for(let t in e){let r=og(e[t]);if(r)return r}return null}if("string"==typeof e)try{return og(JSON.parse(e))}catch(e){}return null}function om(e,t){if(null!=e){if("string"==typeof e.message&&t.push(e.message),"object"==typeof e)for(let r in e)om(e[r],t);if("string"==typeof e)try{return om(JSON.parse(e),t)}catch(e){}}}function oy(e){let t=[];return om(e,t),t}},71102:(e,t,r)=>{"use strict";function n(e){return(t,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{o:()=>n})},72606:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},73904:(e,t,r)=>{"use strict";function n(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{k:()=>n})},74129:(e,t,r)=>{"use strict";var n=r(52543),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},74259:(e,t,r)=>{"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(t,e)}r.d(t,{A:()=>n})},75256:(e,t,r)=>{"use strict";r.d(t,{GP:()=>B});var n=r(150),i=r(98043),o=r(86272),a=r(66355),s=r(6816);function l(e){let t=(0,s.a)(e);return(0,o.m)(t,(0,a.D)(t))+1}var u=r(45923),c=r(7879),d=r(27440),f=r(18868);function h(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}let p={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return h("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):h(r+1,2)},d:(e,t)=>h(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>h(e.getHours()%12||12,t.length),H:(e,t)=>h(e.getHours(),t.length),m:(e,t)=>h(e.getMinutes(),t.length),s:(e,t)=>h(e.getSeconds(),t.length),S(e,t){let r=t.length;return h(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},g={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return p.y(e,t)},Y:function(e,t,r,n){let i=(0,f.h)(e,n),o=i>0?i:1-i;return"YY"===t?h(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):h(o,t.length)},R:function(e,t){return h((0,c.p)(e),t.length)},u:function(e,t){return h(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i=(0,d.N)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):h(i,t.length)},I:function(e,t,r){let n=(0,u.s)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,r){let n=l(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return h(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return h(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return h(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?g.noon:0===i?g.midnight:i/12>
5=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?g.evening:i>=12?g.afternoon:i>=4?g.morning:g.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return E(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return E(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(n,":");default:return"GMT"+b(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(n,":");default:return"GMT"+b(n,":")}},t:function(e,t,r){return h(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return h(e.getTime(),t.length)}};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+h(o,2)}function E(e,t){return e%60==0?(e>0?"-":"+")+h(Math.abs(e)/60,2):b(e,t)}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e);return r+h(Math.trunc(n/60),2)+t+h(n%60,2)}let v=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},T=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},w=(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return v(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",v(i,t)).replace("{{time}}",T(o,t))},A={p:T,P:w},N=/^D+$/,S=/^Y+$/,_=["D","DD","YY","YYYY"];function x(e){return N.test(e)}function I(e){return S.test(e)}function O(e,t,r){let n=R(e,t,r);if(console.warn(n),_.includes(e))throw RangeError(n)}function R(e,t,r){let n="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(n," to the input `").
5concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}var P=r(26273);let M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k=/^'([^]*?)'?$/,L=/''/g,D=/[a-zA-Z]/;function B(e,t,r){var o,a,l,u,c,d,f,h,p,g,y,E,b,v,T,w,N,S;let _=(0,i.q)(),R=null!=(g=null!=(p=null==r?void 0:r.locale)?p:_.locale)?g:n.c,k=null!=(v=null!=(b=null!=(E=null!=(y=null==r?void 0:r.firstWeekContainsDate)?y:null==r||null==(a=r.locale)||null==(o=a.options)?void 0:o.firstWeekContainsDate)?E:_.firstWeekContainsDate)?b:null==(u=_.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?v:1,L=null!=(S=null!=(N=null!=(w=null!=(T=null==r?void 0:r.weekStartsOn)?T:null==r||null==(d=r.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?w:_.weekStartsOn)?N:null==(h=_.locale)||null==(f=h.options)?void 0:f.weekStartsOn)?S:0,B=(0,s.a)(e);if(!(0,P.f)(B))throw RangeError("Invalid time value");let F=t.match(C).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,A[t])(e,R.formatLong):e}).join("").match(M).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:V(e)};if(m[t])return{isToken:!0,value:e};if(t.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});R.localize.preprocessor&&(F=R.localize.preprocessor(B,F));let U={firstWeekContainsDate:k,weekStartsOn:L,locale:R};return F.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&I(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&x(i))&&O(i,t,String(e)),(0,m[i[0]])(B,i,R.localize,U)}).join("")}function V(e){let t=e.match(k);return t?t[1].replace(L,"'"):e}},75401:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},75468:(e,t,r)=>{"use strict";r.d(t,{KA:()=>b,fN:()=>g});var n=r(26272),i=r(96670),o=r(93713),a=r(60133),s=r(7160),l=r(70407),u=r(45348),c=r(50746),d=r(13942),f=r(27543);class h{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,i=e.format();(0,o.n)(this,{fragment:e,name:n,signature:i,topic:t,args:r})}}class p{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let i=e.name,a=e.format();(0,o.n)(this,{fragment:e,name:i,args:r,signature:a,selector:t,value:n})}}class g{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,i=e.format();(0,o.n)(this,{fragment:e,name:n,args:r,signature:i,selector:t})}}class m{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,o.n)(this,{hash:e,_isIndexed:!0})}}let y={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},E={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&y[e.toString()]&&(t=y[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class b{fragments;deploy;fallback;receive;#te;#tt;#tr;#tn;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#tr=new Map,this.#te=new Map,this.#tt=new Map;let r=[];for(let e of t)try{r.push(d.FK.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,o.n)(this,{fragments:Object.freeze(r)});let n=null,i=!1;this.#tn=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy)return void console.log("duplicate definition - constructor");(0,o.n)(this,{deploy:e});return;case"fallback":0===e.inputs.length?i=!0:((0,a.MR)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),i=(n=e).payable);return;case"function":r=this.#tr;break;case"event":r=this.#tt;break;case"error":r=this.#te;break;default:return}let s=e.format();r.has(s)||r.set(s,e)}),this.deploy||(0,o.n)(this,{deploy:d.Pw.from("constructor()")}),(0,o.n)(this,{fallback:n,receive:i})}
5format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return u.y.defaultAbiCoder()}#ti(e,t,r){if((0,s.Lo)(e)){let t=e.toLowerCase();for(let e of this.#tr.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#tr)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,i=!0;f.V.isTyped(e)&&"overrides"===e.type&&(i=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||i&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let i=0;i<t.length;i++)if(f.V.isTyped(t[i])){if(i>=r.length){if("overrides"===t[i].type)continue;n.splice(e,1);break}if(t[i].type!==r[i].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,a.MR)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#tr.get(d.hc.from(e).format());return n||null}getFunctionName(e){let t=this.#ti(e,null,!1);return(0,a.MR)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#ti(e,null,!1)}getFunction(e,t){return this.#ti(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#tr.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#tr.get(n),r)}}#to(e,t,r){if((0,s.Lo)(e)){let t=e.toLowerCase();for(let e of this.#tt.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#tt)t.split("(")[0]===e&&n.push(r);if(t){for(let e=n.length-1;e>=0;e--)n[e].inputs.length<t.length&&n.splice(e,1);for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let i=0;i<t.length;i++)if(f.V.isTyped(t[i])&&t[i].type!==r[i].baseType){n.splice(e,1);break}}}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,a.MR)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#tt.get(d.Zp.from(e).format());return n||null}getEventName(e){let t=this.#to(e,null,!1);return(0,a.MR)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#to(e,null,!1)}getEvent(e,t){return this.#to(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#tt.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#tt.get(n),r)}}getError(e,t){if((0,s.Lo)(e)){let t=e.toLowerCase();if(E[t])return d.bp.from(E[t].signature);for(let e of this.#te.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let t=[];for(let[r,n]of this.#te)r.split("(")[0]===e&&t.push(n);if(0===t.length)return"Error"===e?d.bp.from("error Error(string)"):"Panic"===e?d.bp.from("error Panic(uint256)"):null;if(t.length>1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,a.MR)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}if("Error(string)"===(e=d.bp.from(e).format()))return d.bp.from("error Error(string)");if("Panic(uint256)"===e)return d.bp.from("error Panic(uint256)");let r=this.#te.get(e);return r||null}forEachError(e){let t=Array.from(this.#te.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#te.get(n),r)}}_decodeParams(e,t){return this.#tn.decode(e,t)}_encodeParams(e,t){return this.#tn.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,a.MR)(t,"unknown error","fragment",e),e=t}return(0,a.MR)((0,s.ZG)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,s.ZG)(t,4))}encodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,a.MR)(t,"unknown error","fragment",e),e=t}return(0,s.xW)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,a.MR)(t,"unknown function","fragment",e),e=t}return(0,a.MR)((0,s.ZG)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,s.ZG)(t,4))}encodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,a.MR)(t,"unknown function","fragment",e),e=t}return(0,s.xW)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,a.MR)(t,"unknown function","fragment",e),e=t}let r="invalid length for result data",n=(0,s.Lm)(t);if(n.length%32==0)try{return this.#tn.decode(e.outputs,n)}catch(e){r="could not decode result data"}(0,a.vA)(!1,r,"BAD_DATA",{value:(0,s.c$)(n),info:{method:e.name,signature:e.format()}})}makeError(e,t){let r=(0,s.q5)(e,"data"),n=u.y.getBuiltinCallException("call",t,r),i="execution reverted (unknown custom error)";if(n.message.startsWith(i)){let e=(0,s.c$)(r.slice(0,4)),t=this.getError(e);
5if(t)try{let e=this.#tn.decode(t.inputs,r.slice(4));n.revert={name:t.name,signature:t.format(),args:e},n.reason=n.revert.signature,n.message=`execution reverted: ${n.reason}`}catch(e){n.message="execution reverted (coult not decode custom error)"}}let o=this.parseTransaction(t);return o&&(n.invocation={method:o.name,signature:o.signature,args:o.args}),n}encodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,a.MR)(t,"unknown function","fragment",e),e=t}return(0,s.c$)(this.#tn.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,a.MR)(t,"unknown event","eventFragment",e),e=t}(0,a.vA)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});let r=[];e.anonymous||r.push(e.topicHash);let o=(e,t)=>"string"===e.type?(0,i.id)(t):"bytes"===e.type?(0,n.S)((0,s.c$)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,l.up)(t):e.type.match(/^bytes/)?t=(0,s.X_)(t,32):"address"===e.type&&this.#tn.encode(["address"],[t]),(0,s.nx)((0,s.c$)(t),32));for(t.forEach((t,n)=>{let i=e.inputs[n];if(!i.indexed)return void(0,a.MR)(null==t,"cannot filter non-indexed parameters; must be null","contract."+i.name,t);null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?(0,a.MR)(!1,"filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map(e=>o(i,e))):r.push(o(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,a.MR)(t,"unknown event","eventFragment",e),e=t}let r=[],o=[],s=[];return e.anonymous||r.push(e.topicHash),(0,a.MR)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let l=t[a];if(e.indexed)if("string"===e.type)r.push((0,i.id)(l));else if("bytes"===e.type)r.push((0,n.S)(l));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#tn.encode([e.type],[l]));else o.push(e),s.push(l)}),{data:this.#tn.encode(o,s),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,a.MR)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,a.MR)((0,s.Lo)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(d.aX.from({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))});let l=null!=r?this.#tn.decode(n,(0,s.xW)(r)):null,u=this.#tn.decode(i,t,!0),f=[],h=[],p=0,g=0;return e.inputs.forEach((e,t)=>{let r=null;
5if(e.indexed)if(null==l)r=new m(null);else if(o[t])r=new m(l[g++]);else try{r=l[g++]}catch(e){r=e}else try{r=u[p++]}catch(e){r=e}f.push(r),h.push(e.name||null)}),c.Q7.fromItems(f,h)}parseTransaction(e){let t=(0,s.q5)(e.data,"tx.data"),r=(0,l.Ab)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,s.c$)(t.slice(0,4)));if(!n)return null;let i=this.#tn.decode(n.inputs,t.slice(4));return new p(n,n.selector,i,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new h(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,s.c$)(e),r=this.getError((0,s.ZG)(t,0,4));if(!r)return null;let n=this.#tn.decode(r.inputs,(0,s.ZG)(t,4));return new g(r,r.selector,n)}static from(e){return e instanceof b?e:new b("string"==typeof e?JSON.parse(e):"function"==typeof e.formatJson?e.formatJson():"function"==typeof e.format?e.format("json"):e)}}},76438:(e,t,r)=>{"use strict";function n(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,i){return t.apply(this,arguments)};case 5:return function(e,r,n,i,o){return t.apply(this,arguments)};case 6:return function(e,r,n,i,o,a){return t.apply(this,arguments)};case 7:return function(e,r,n,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,r,n,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,r,n,i,o,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,r,n,i,o,a,s,l,u,c){return t.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}r.d(t,{A:()=>n})},77347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GpaBuilder=void 0;let n=r(36077),i=r(95585),o=r(85419),a=r(91669);class s{constructor(e,t,r){this.programId=e,this.beets=t,this.accountSize=r,this.config={}}_addFilter(e){return null==this.config.filters&&(this.config.filters=[]),this.config.filters.push(e),this}_addInnerFilter(e,t,r){let s;(0,o.logTrace)(`gpa.addInnerFilter: ${e}.${t}`);let l=this.beets.get(e);(0,i.strict)(null!=l,"Outer filter key needs to be an existing field name");let u=l.beet,c=l.offset;for(let[e,i]of((0,n.isFixedSizeBeet)(u)?u:u.toFixedFromValue(r)).fields){if(e===t){s=i;break}c+=i.byteSize}(0,i.strict)(null!=s,`${t} is not a field of the ${e} struct`);let d=(0,a.encodeFixedBeet)(s,r);return this._addFilter({memcmp:{offset:c,bytes:d}}),this}addInnerFilter(e,t){let r=e.split(".");i.strict.equal(r.length,2,"inner filters can go only one level deep, i.e. 'outer.inner' is ok, but 'outer.inner.deep' is not");let[n,o]=r;return this._addInnerFilter(n,o,t)}addFilter(e,t){let r=this.beets.get(e);(0,i.strict)(null!=r,"Filter key needs to be an existing field name");let o=(0,n.isFixedSizeBeet)(r.beet)?r.beet:r.beet.toFixedFromValue(t),s=(0,a.encodeFixedBeet)(o,t);return this._addFilter({memcmp:{offset:r.offset,bytes:s}}),this}dataSize(e){return e=null!=e?e:this.accountSize,(0,i.strict)(null!=e,"for accounts of dynamic size the dataSize arg needs to be provided"),this._addFilter({dataSize:e})}run(e){return e.getProgramAccounts(this.programId,this.config)}static fromBeetFields(e,t){let r=new Map,i=0,o=!1;for(let[e,a]of t){if(r.set(e,{beet:a,offset:i}),!(0,n.isFixedSizeBeet)(a)){o=!0;break}i+=a.byteSize}return new s(e,r,o?void 0:i)}static fromStruct(e,t){return s.fromBeetFields(e,t.fields)}}t.GpaBuilder=s},77609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aliasesTypeMap=t.bytes=void 0;let n=r(64756);t.bytes=n.uint8Array,t.aliasesTypeMap={bytes:n.collectionsTypeMap.Uint8Array}},77759:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let n={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function i(e,t){let r=e.rootNode();return t&&t(r)||r}function o(e={}){let t,r,a,s,l,u=0,c=!1,d=!1;function f(u,c){r=u;let{mergeOptions:d,optionsAtMedia:f}=c,g=d(n,o.globalOptions);if(t=f(d(g,e)),r.scrollSnapList().length<=1)return;s=t.startDelay,a=!1,l=r.internalEngine().scrollBody;let{eventStore:v}=r.internalEngine(),T=!!r.internalEngine().options.watchDrag,w=i(r,t.rootNode);
5T&&r.on("pointerDown",m),T&&!t.stopOnInteraction&&r.on("pointerUp",y),t.stopOnMouseEnter&&v.add(w,"mouseenter",E),t.stopOnMouseEnter&&!t.stopOnInteraction&&v.add(w,"mouseleave",b),t.stopOnFocusIn&&r.on("slideFocusStart",p),t.stopOnFocusIn&&!t.stopOnInteraction&&v.add(r.containerNode(),"focusout",h),t.playOnInit&&h()}function h(){if(a||c)return;r.emit("autoScroll:play");let e=r.internalEngine(),{ownerWindow:t}=e;u=t.setTimeout(()=>{e.scrollBody=g(e),e.animation.start()},s),c=!0}function p(){if(a||!c)return;r.emit("autoScroll:stop");let e=r.internalEngine(),{ownerWindow:t}=e;e.scrollBody=l,t.clearTimeout(u),u=0,c=!1}function g(e){let{location:n,previousLocation:i,offsetLocation:o,target:a,scrollTarget:s,index:l,indexPrevious:u,limit:{reachedMin:c,reachedMax:d,constrain:f},options:{loop:h}}=e,g="forward"===t.direction?-1:1,m=()=>w,y=0,E=0,b=n.get(),v=0,T=!1,w={direction:()=>E,duration:()=>-1,velocity:()=>y,settled:()=>T,seek:function(){i.set(n),y=g*t.speed,b+=y,n.add(y),a.set(n),E=Math.sign(b-v),v=b;let e=s.byDistance(0,!1).index;l.get()!==e&&(u.set(l.get()),l.set(e),r.emit("select"));let m="forward"===t.direction?c(o.get()):d(o.get());if(!h&&m){T=!0;let e=f(n.get());n.set(e),a.set(n),p()}return w},useBaseFriction:m,useBaseDuration:m,useFriction:m,useDuration:m};return w}function m(){d||p()}function y(){d||T()}function E(){d=!0,p()}function b(){d=!1,h()}function v(){r.off("settle",v),h()}function T(){r.on("settle",v)}return{name:"autoScroll",options:e,init:f,destroy:function(){r.off("pointerDown",m).off("pointerUp",y).off("slideFocusStart",p).off("settle",v),p(),a=!0,c=!1},play:function(e){void 0!==e&&(s=e),h()},stop:function(){c&&p()},reset:function(){c&&(p(),T())},isPlaying:function(){return c}}}o.globalOptions=void 0},77936:(e,t,r)=>{"use strict";r.d(t,{YQ:()=>i,dh:()=>o});var n=r(13741);function i(e,t,r){var i=this,o=(0,n.useRef)(null),a=(0,n.useRef)(0),s=(0,n.useRef)(null),l=(0,n.useRef)([]),u=(0,n.useRef)(),c=(0,n.useRef)(),d=(0,n.useRef)(e),f=(0,n.useRef)(!0);(0,n.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,g=!("trailing"in r)||!!r.trailing,m="maxWait"in r,y=m?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=l.current,r=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(r,t)},r=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!f.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||m&&e-a.current>=y},E=function(t){return s.current=null,g&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(n(i))return E(i);if(f.current){var s=t-(i-o.current);r(e,m?Math.min(s,y-(i-a.current)):s)}},v=function(){var d=Date.now(),h=n(d);if(l.current=[].slice.call(arguments),u.current=i,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,r(b,t),p?e(o.current):c.current;if(m)return r(b,t),e(o.current)}return s.current||r(b,t),c.current};return v.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},v.isPending=function(){return!!s.current},v.flush=function(){return s.current?E(Date.now()):c.current},v},[p,m,t,y,g,h])}function o(e,t,r){var n=void 0===r?{}:r,o=n.leading,a=n.trailing;return i(e,t,{maxWait:t,leading:void 0===o||o,trailing:void 0===a||a})}},78487:e=>{"use strict";e.exports=function(e){return e!=e}},79505:(e,t,r)=>{"use strict";r.d(t,{Jt:()=>y,Tk:()=>E,WS:()=>_});var n=r(16567),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(s)for(var r of s(t))u.call(t,r)&&c(e,r,t[r]);return e},f=(e,t)=>o(e,a(t)),h=(e,t,r)=>new Promise((n,i)=>{var o=e=>
5{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())});"undefined"!=typeof window&&(window.__ORDERLY_VERSION__=window.__ORDERLY_VERSION__||{},window.__ORDERLY_VERSION__["@orderly.network/net"]="3.2.1");var p=class extends Error{constructor(e,t){super(e),this.code=t,this.name="ApiError"}};function g(e,t){return h(this,null,function*(){if(!e.startsWith("http"))throw Error("url must start with http(s)");let r=yield fetch(e,f(d({},t),{headers:m(t.headers,t.method)}));if(r.ok)return yield r.json();try{let e=yield r.json();if(400===r.status)throw new p(e.message||e.code||r.statusText,e.code);throw Error(e.message||e.code||r.statusText)}catch(e){throw e}})}function m(e={},t){var r;let n=new Headers(e),i=null!=(r=null==t?void 0:t.toUpperCase())?r:"GET";return n.has("Content-Type")||"GET"===i||"HEAD"===i||("DELETE"!==i?n.append("Content-Type","application/json;charset=utf-8"):n.append("Content-Type","application/x-www-form-urlencoded")),n}function y(e,t,r){return h(this,null,function*(){let n=yield g(e,d({method:"GET"},t));if(n.success)return"function"==typeof r?r(n.data):Array.isArray(n.data.rows)?n.data.rows:n.data;throw Error(n.message)})}function E(e,t){return h(this,null,function*(){return yield g(e,t)})}var b=class{handle(e,t){throw Error("Method not implemented.")}},v=new Map([["ping",new class extends b{handle(e,t){t.send(JSON.stringify({event:"pong",ts:Date.now()}))}}]]),T=(e=>(e.OPEN="open",e.CLOSE="close",e.ERROR="error",e.MESSAGE="message",e.CONNECTING="connecting",e.RECONNECTING="reconnecting",e))(T||{}),w=e=>e.data,A="OqdphuyCtYWxwzhxyLLjOWNdFP7sQt8RPWzmb5xY",N=12e4,S=5,_=class extends n.A{constructor(e){super(),this.options=e,this._eventContainer=new Map,this.publicIsReconnecting=!1,this.privateIsReconnecting=!1,this.reconnectInterval=1e3,this.authenticated=!1,this._pendingPrivateSubscribe=[],this._pendingPublicSubscribe=[],this._eventHandlers=new Map,this._eventPrivateHandlers=new Map,this._publicRetryCount=0,this._privateRetryCount=0,this.send=e=>{var t,r;"string"!=typeof e&&(e=JSON.stringify(e)),void 0!==e&&((null==(t=this._publicSocket)?void 0:t.readyState)===WebSocket.OPEN?null==(r=this._publicSocket)||r.send(e):console.warn("WebSocket connection is not open. Cannot send message."))},this.createPublicSC(e),e.accountId&&this.createPrivateSC(e),this.bindEvents()}bindEvents(){var e,t;
5"undefined"!=typeof document&&(null==(e=document.addEventListener)||e.call(document,"visibilitychange",this.onVisibilityChange.bind(this))),"undefined"!=typeof window&&(null==(t=window.addEventListener)||t.call(window,"online",this.onNetworkStatusChange.bind(this)))}onVisibilityChange(){"visible"===document.visibilityState&&this.checkSocketStatus()}onNetworkStatusChange(){navigator.onLine&&this.checkSocketStatus()}checkSocketStatus(){var e,t,r,n;let i=Date.now();"visible"===document.visibilityState&&navigator.onLine&&(!this.publicIsReconnecting&&((null==(e=this._publicSocket)?void 0:e.readyState)===WebSocket.CLOSED?this.reconnectPublic():i-this._publicHeartbeatTime>N&&(null==(t=this._publicSocket)||t.close(3888))),!this.privateIsReconnecting&&((null==(r=this.privateSocket)?void 0:r.readyState)===WebSocket.CLOSED?this.reconnectPrivate():this._privateHeartbeatTime&&i-this._privateHeartbeatTime>N&&(null==(n=this.privateSocket)||n.close(3888))))}openPrivate(e){var t;(null==(t=this.privateSocket)?void 0:t.readyState)!==WebSocket.OPEN&&this.createPrivateSC(f(d({},this.options),{accountId:e}))}closePrivate(e,t){var r,n;(null==(r=this.privateSocket)?void 0:r.readyState)===WebSocket.OPEN&&(this.authenticated=!1,this._pendingPrivateSubscribe=[],this._eventPrivateHandlers.clear(),null==(n=this.privateSocket)||n.close(e,t))}createPublicSC(e){e.publicUrl&&(this._publicSocket&&this._publicSocket.readyState===WebSocket.OPEN||(this._publicSocket=new WebSocket(`${e.publicUrl}/ws/stream/${A}`),this._publicSocket.onopen=this.onOpen.bind(this),this._publicSocket.addEventListener("message",this.onPublicMessage.bind(this)),this._publicSocket.addEventListener("close",this.onPublicClose.bind(this)),this._publicSocket.addEventListener("error",this.onPublicError.bind(this))))}createPrivateSC(e){this.privateSocket&&this.privateSocket.readyState===WebSocket.OPEN||(this.options=e,this.privateSocket=new WebSocket(`${this.options.privateUrl}/v2/ws/private/stream/${e.accountId}`),this.privateSocket.onopen=this.onPrivateOpen.bind(this),this.privateSocket.onmessage=this.onPrivateMessage.bind(this),this.privateSocket.onclose=this.onPrivateClose.bind(this),this.privateSocket.onerror=this.onPrivateError.bind(this))}onOpen(e){this._pendingPublicSubscribe.length>0&&(this._pendingPublicSubscribe.forEach(([e,t,r])=>{this.subscribe(e,t,r)}),this._pendingPublicSubscribe=[]),this.publicIsReconnecting=!1,this.emit("status:change",{type:"open",isPrivate:!1,isReconnect:this._publicRetryCount>0}),this._publicRetryCount=0}onPrivateOpen(e){this.authenticate(this.options.accountId).then(()=>{this.privateIsReconnecting=!1,this.emit("status:change",{type:"open",isPrivate:!0,isReconnect:this._privateRetryCount>0}),this._privateRetryCount=0}).catch(e=>{console.log("ws authenticate failed",e)})}onMessage(e,t,r){try{let n=JSON.parse(e.data),i=v.get(n.event);if("auth"===n.event&&n.success){this.authenticated=!0,this.handlePendingPrivateTopic();return}if(i)i.handle(n,t);else{let e=this.getTopicKeyFromMessage(n),t=r.get(e);(null==t?void 0:t.callback)&&t.callback.forEach(e=>{let t=e.formatter?e.formatter(n):w(n);t&&e.onMessage(t)}),this._eventContainer.forEach((t,r)=>{new RegExp(r).test(e)&&this.emit(r,n)})}}catch(e){}}onPublicMessage(e){this.onMessage(e,this._publicSocket,this._eventHandlers),this._publicHeartbeatTime=Date.now()}onPrivateMessage(e){this.onMessage(e,this.privateSocket,this._eventPrivateHandlers),this._privateHeartbeatTime=Date.now()}handlePendingPrivateTopic(){this._pendingPrivateSubscribe.length>0&&(this._pendingPrivateSubscribe.forEach(([e,t])=>{this.privateSubscribe(e,t)}),this._pendingPrivateSubscribe=[])}onPublicClose(e){this._eventHandlers.forEach((e,t)=>{e.callback.forEach(t=>{this._pendingPublicSubscribe.push([e.params,t,e.isOnce])}),this._eventHandlers.delete(t)}),this.emit("status:change",{type:"close",isPrivate:!1}),setTimeout(()=>this.checkSocketStatus(),0)}onPrivateClose(e){3887!==e.code&&(this.privateIsReconnecting||(this._eventPrivateHandlers.forEach((e,t)=>{e.callback.forEach(t=>{this._pendingPrivateSubscribe.push([e.params,t,e.isOnce])}),this._eventPrivateHandlers.delete(t)}
5),this.authenticated=!1,this.emit("status:change",{type:"close",isPrivate:!0,event:e}),setTimeout(()=>this.checkSocketStatus(),0)))}onPublicError(e){var t,r;if(console.error("public WebSocket error:",e),this.publicIsReconnecting=!1,(null==(t=this._publicSocket)?void 0:t.readyState)===WebSocket.OPEN)null==(r=this._publicSocket)||r.close(3888);else{if(this._publicRetryCount>S)return;setTimeout(()=>{this.reconnectPublic()},1e3*this._publicRetryCount)}this.errorBoardscast(e,this._eventHandlers),this.emit("status:change",{type:"error",isPrivate:!1})}onPrivateError(e){var t;if(console.error("Private WebSocket error:",e),this.privateIsReconnecting=!1,(null==(t=this.privateSocket)?void 0:t.readyState)===WebSocket.OPEN)this.privateSocket.close(3888);else{if(this._privateRetryCount>S)return;setTimeout(()=>{this.reconnectPrivate()},1e3*this._privateRetryCount)}this.errorBoardscast(e,this._eventPrivateHandlers),this.emit("status:change",{type:"error",isPrivate:!0})}errorBoardscast(e,t){t.forEach(t=>{t.callback.forEach(t=>{var r;null==(r=t.onError)||r.call(t,e)})})}close(){var e,t;null==(e=this._publicSocket)||e.close(),null==(t=this.privateSocket)||t.close()}set accountId(e){}authenticate(e){return h(this,null,function*(){var t,r;if(this.authenticated)return;if(!this.privateSocket)return void console.error("private ws not connected");if(this.privateSocket.readyState!==WebSocket.OPEN)return;let n=yield null==(r=(t=this.options).onSigntureRequest)?void 0:r.call(t,e);this.privateSocket.send(JSON.stringify({id:"auth",event:"auth",params:{orderly_key:n.publicKey,sign:n.signature,timestamp:n.timestamp}}))})}privateSubscribe(e,t){var r;let[n,i]=this.generateMessage(e,t.onUnsubscribe);if((null==(r=this.privateSocket)?void 0:r.readyState)!==WebSocket.OPEN)return this._pendingPrivateSubscribe.push([e,t]),()=>{this.unsubscribePrivate(n)};let o=n.topic||n.event,a=this._eventPrivateHandlers.get(o),s=f(d({},t),{onUnsubscribe:i});return a?a.callback.push(s):(this._eventPrivateHandlers.set(o,{params:e,callback:[s]}),this.privateSocket.send(JSON.stringify(n))),()=>{this.unsubscribePrivate(n)}}subscribe(e,t,r,n){if(!this._publicSocket)return;let[i,o]=this.generateMessage(e,t.onUnsubscribe,t.onMessage);if(this._publicSocket.readyState!==WebSocket.OPEN)return(this._pendingPublicSubscribe.push([e,t,r,n]),r)?void 0:()=>{this.unsubscribePublic(i)};let a=this.getTopicKeyFromParams(i),s=this._eventHandlers.get(a),l=f(d({},t),{onUnsubscribe:o});if(s?r?(s.callback=[l],this._publicSocket.send(JSON.stringify(i))):s.callback.push(l):(this._eventHandlers.set(a,{params:e,isOnce:r,callback:[l]}),this._publicSocket.send(JSON.stringify(i))),!r)return()=>{this.unsubscribePublic(i)}}getTopicKeyFromParams(e){let t;return e.topic?t=e.topic:(e.event,t=e.event,e.id&&(t+=`_${e.id}`)),t}getTopicKeyFromMessage(e){let t;return e.topic?t=e.topic:e.event&&(t=`${e.event}`,e.id&&(t+=`_${e.id}`)),t}onceSubscribe(e,t){this.subscribe(e,t,!0)}unsubscribe(e,t,r){let n=e.topic||e.event,i=r.get(n);if(i&&Array.isArray(null==i?void 0:i.callback))if(1===i.callback.length){let e=i.callback[0].onUnsubscribe(n);t.send(JSON.stringify(e)),r.delete(n)}else{let t=i.callback.findIndex(t=>t.onMessage===e.onMessage);if(-1===t)return;i.callback.splice(t,1)}}unsubscribePrivate(e){this.unsubscribe(e,this.privateSocket,this._eventPrivateHandlers)}unsubscribePublic(e){this.unsubscribe(e,this._publicSocket,this._eventHandlers)}generateMessage(e,t,r){let n;return n="string"==typeof e?{event:"subscribe",topic:e}:e,"function"!=typeof t&&(t="string"==typeof e?()=>({event:"unsubscribe",topic:e}):()=>({event:"unsubscribe",topic:e.topic})),[f(d({},n),{onMessage:r}),t]}reconnectPublic(){this.publicIsReconnecting||(this.publicIsReconnecting=!0,"undefined"!=typeof window&&window.setTimeout(()=>{this._publicRetryCount++,this.createPublicSC(this.options),this.emit("status:change",{type:"reconnecting",isPrivate:!1,count:this._publicRetryCount})},this.reconnectInterval))}reconnectPrivate(){this.options.accountId&&!this.privateIsReconnecting&&(this.privateIsReconnecting=!0,"undefined"!=typeof window&&window.setTimeout(()=>{this._privateRetryCount++,this.createPrivateSC(this.options),this.emit
5("status:change",{type:"reconnecting",isPrivate:!0,count:this._privateRetryCount})},this.reconnectInterval))}get client(){return{public:this._publicSocket,private:this.privateSocket}}}},79509:(e,t,r)=>{"use strict";var n=r(33969),i=r(74129),o=r(55106),a=r(49252),s=r(85974),l=r(24993),u=a("Object.prototype.toString"),c=r(38868)(),d="undefined"==typeof globalThis?r.g:globalThis,f=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},g={__proto__:null};c&&s&&l?n(f,function(e){var t=new d[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=s(r,Symbol.toStringTag);!n&&r&&(n=s(l(r),Symbol.toStringTag)),g["$"+e]=o(n.get)}}):n(f,function(e){var t=new d[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))});var m=function(e){var t=!1;return n(g,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t},y=function(e){var t=!1;return n(g,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=h(u(e),8,-1);return p(f,t)>-1?t:"Object"===t&&y(e)}return s?m(e):null}},79631:e=>{"use strict";e.exports=Math.pow},79704:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{bv:()=>eS,l$:()=>eR,Ay:()=>eP,oR:()=>et});var i=r(13741);let o={data:""},a=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||o},s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/| +/g,u=/\n+/g,c=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?c(a,o):o+"{"+c(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=c(a,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=c.p?c.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},d={},f=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+f(e[r]);return t}return e},h=(e,t,r,n,i)=>{let o=f(e),a=d[o]||(d[o]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(o));if(!d[a]){let t=o!==e?e:(e=>{let t,r,n=[{}];for(;t=s.exec(e.replace(l,""));)t[4]?n.shift():t[3]?(r=t[3].replace(u," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(u," ").trim();return n[0]})(e);d[a]=c(i?{["@keyframes "+a]:t}:t,r?"":"."+a)}let h=r&&d.g?d.g:null;return r&&(d.g=d[a]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(d[a],t,n,h),a},p=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function g(e){let t=this||{},r=e.call?e(t.p):e;return h(r.unshift?r.raw?p(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,a(t.target),t.g,t.o,t.k)}g.bind({g:1});let m,y,E,b=g.bind({k:1});function v(e,t,r,n){c.p=t,m=e,y=r,E=n}function T(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:y&&y()},s),r.o=/ *go\d+/.test(l),s.className=g.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),E&&u[0]&&E(s),m(u,s)}return t?t(i):i}}function w(){let e=n(["\nfrom {\n transform: scale(0) rotate(45deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);return w=function(){return e},e}function A(){let e=n(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);return A=function(){return e},e}function N(){let e=n(["\nfrom {\n transform: scale(0) rotate(90deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n opacity: 1;\n}"]);return N=function(){return e},e}
5function S(){let e=n(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);return S=function(){return e},e}function _(){let e=n(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return _=function(){return e},e}function x(){let e=n(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"]);return x=function(){return e},e}function I(){let e=n(["\nfrom {\n transform: scale(0) rotate(45deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);return I=function(){return e},e}function O(){let e=n(["\n0% {\n height: 0;\n width: 0;\n opacity: 0;\n}\n40% {\n height: 0;\n width: 6px;\n opacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]);return O=function(){return e},e}function R(){let e=n(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);return R=function(){return e},e}function P(){let e=n(["\n position: absolute;\n"]);return P=function(){return e},e}function M(){let e=n(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);return M=function(){return e},e}function C(){let e=n(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);return C=function(){return e},e}function k(){let e=n(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);return k=function(){return e},e}function L(){let e=n(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);return L=function(){return e},e}function D(){let e=n(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]);return D=function(){return e},e}function B(){let e=n(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]);return B=function(){return e},e}var V=e=>"function"==typeof e,F=(e,t)=>V(e)?e(t):e,U=(()=>{let e=0;return()=>(++e).toString()})(),j=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),H="default",G=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return G(e,{type:+!!e.toasts.find(e=>e.id===n.id),toast:n});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},K=[],z={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},W={},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H;
5W[t]=G(W[t]||z,e),K.forEach(e=>{let[r,n]=e;r===t&&n(W[t])})},Y=e=>Object.keys(W).forEach(t=>q(e,t)),$=e=>Object.keys(W).find(t=>W[t].toasts.some(t=>t.id===e)),X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H;return t=>{q(t,e)}},J={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,[r,n]=(0,i.useState)(W[t]||z),o=(0,i.useRef)(W[t]);(0,i.useEffect)(()=>(o.current!==W[t]&&n(W[t]),K.push([t,n]),()=>{let e=K.findIndex(e=>{let[r]=e;return r===t});e>-1&&K.splice(e,1)}),[t]);let a=r.toasts.map(t=>{var r,n,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||J[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...r,toasts:a}},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",r=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||U()}},ee=e=>(t,r)=>{let n=Z(t,e,r);return X(n.toasterId||$(n.id))({type:2,toast:n}),n.id},et=(e,t)=>ee("blank")(e,t);et.error=ee("error"),et.success=ee("success"),et.loading=ee("loading"),et.custom=ee("custom"),et.dismiss=(e,t)=>{let r={type:3,toastId:e};t?X(t)(r):Y(r)},et.dismissAll=e=>et.dismiss(void 0,e),et.remove=(e,t)=>{let r={type:4,toastId:e};t?X(t)(r):Y(r)},et.removeAll=e=>et.remove(void 0,e),et.promise=(e,t,r)=>{let n=et.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?F(t.success,e):void 0;return i?et.success(i,{id:n,...r,...null==r?void 0:r.success}):et.dismiss(n),e}).catch(e=>{let i=t.error?F(t.error,e):void 0;i?et.error(i,{id:n,...r,...null==r?void 0:r.error}):et.dismiss(n)}),e};var er=1e3,en=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{toasts:r,pausedAt:n}=Q(e,t),o=(0,i.useRef)(new Map).current,a=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er;if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,r)},[]);(0,i.useEffect)(()=>{if(n)return;let e=Date.now(),i=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(n<0){r.visible&&et.dismiss(r.id);return}return setTimeout(()=>et.dismiss(r.id,t),n)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,i.useCallback)(X(t),[t]),l=(0,i.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),u=(0,i.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),c=(0,i.useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,i.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:o}=t||{},a=r.filter(t=>(t.position||o)===(e.position||o)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[r]);return(0,i.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:u,startPause:l,endPause:c,calculateOffset:d}}},ei=b(w()),eo=b(A()),ea=b(N()),es=T("div")(S(),e=>e.primary||"#ff4b4b",ei,eo,e=>e.secondary||"#fff",ea),el=b(_()),eu=T("div")(x(),e=>e.secondary||"#e0e0e0",e=>e.primary||"#616161",el),ec=b(I()),ed=b(O()),ef=T("div")(R(),e=>e.primary||"#61d345",ec,ed,e=>e.secondary||"#fff"),eh=T("div")(P()),ep=T("div")(M()),eg=b(C()),em=T("div")(k(),eg),ey=e=>{let{toast:t}=e,{icon:r,type:n,iconTheme:o}=t;return void 0!==r?"string"==typeof r?i.createElement(em,null,r):r:"blank"===n?null:i.createElement(ep,null,i.createElement(eu,{...o}),"loading"!==n&&i.createElement(eh,null,"error"===n?i.createElement(es,{...o}):i.createElement(ef,{...o})))},eE=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}
5\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),eb=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),ev="0%{opacity:0;} 100%{opacity:1;}",eT="0%{opacity:1;} 100%{opacity:0;}",ew=T("div")(L()),eA=T("div")(D()),eN=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=j()?[ev,eT]:[eE(r),eb(r)];return{animation:t?"".concat(b(n)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(b(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},eS=i.memo(e=>{let{toast:t,position:r,style:n,children:o}=e,a=t.height?eN(t.position||r||"top-center",t.visible):{opacity:0},s=i.createElement(ey,{toast:t}),l=i.createElement(eA,{...t.ariaProps},F(t.message,t));return i.createElement(ew,{className:t.className,style:{...a,...n,...t.style}},"function"==typeof o?o({icon:s,message:l}):i.createElement(i.Fragment,null,s,l))});v(i.createElement);var e_=e=>{let{id:t,className:r,style:n,onHeightUpdate:o,children:a}=e,s=i.useCallback(e=>{if(e){let r=()=>{o(t,e.getBoundingClientRect().height)};r(),new MutationObserver(r).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,o]);return i.createElement("div",{ref:s,className:r,style:n},a)},ex=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:j()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(r?1:-1),"px)"),...n,...i}},eI=g(B()),eO=16,eR=e=>{let{reverseOrder:t,position:r="top-center",toastOptions:n,gutter:o,children:a,toasterId:s,containerStyle:l,containerClassName:u}=e,{toasts:c,handlers:d}=en(n,s);return i.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:eO,left:eO,right:eO,bottom:eO,pointerEvents:"none",...l},className:u,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(e=>{let n=e.position||r,s=ex(n,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r}));return i.createElement(e_,{id:e.id,key:e.id,onHeightUpdate:d.updateHeight,className:e.visible?eI:"",style:s},"custom"===e.type?F(e.message,e):a?a(e):i.createElement(eS,{toast:e,position:n}))}))},eP=et},79772:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(92419);function i(e,t){return(0,n.f)(e,-t)}},80002:(e,t,r)=>{"use strict";r.d(t,{$C:()=>o,PW:()=>a,tG:()=>l});var n=r(60133),i=r(20441);function o(e){return e&&"function"==typeof e.getAddress}function a(e){try{return(0,i.b)(e),!0}catch(e){}return!1}async function s(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,n.vA)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,n.MR)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,i.b)(r)}function l(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,i.b)(e):((0,n.vA)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),s(e,t.resolveName(e))):o(e)?s(e,e.getAddress()):e&&"function"==typeof e.then?s(e,e):void(0,n.MR)(!1,"unsupported addressable value","target",e)}},80220:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(49977),i=r(59150),o=r(91962);let a=(0,n.A)(function(e,t,r){return(0,i.A)(e,(0,o.A)(t,r))})},81731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compositesTypeMap=t.coption=t.coptionSome=t.coptionNone=t.isNoneBuffer=t.isSomeBuffer=void 0;let n=r(95585),i=r(5162),o=r(5162),a=r(21838),s=r(148),l=0,u=1;function c(e,t){return e[t]===u}function d(e,t){return e[t]===l}function f(e){return(0,a.logTrace)(`coptionNone(${e})`),{write:function(e,t,r){(0,n.strict)(null==r,"coptionNone can only handle `null` values"),e[t]=l},read:function(e,t){return(0,n.strict)(d(e,t),"coptionNone can only handle `NONE` data"),null},byteSize:1,description:`COption<None(${e})>`}}function h(e){let t=1+e.byteSize,r={write:function(t,r,o){(0,i.assertFixedSizeBeet)(e,`coption inner type ${e.description} needs to be fixed before calling write`),(0,n.strict)(null!=o,"coptionSome cannot handle `null` values"),t[r]=u,e.write(t,r+1,o)},read:function(t,r){return(0,i.assertFixedSizeBeet)(e,`coption inner type ${e.description} needs to be fixed before calling read`),(0,n.strict)(c(t,r),"coptionSome can only handle `SOME` data"),e.read(t,r+1)},description:`COption<${e.description}>[1 + ${e.byteSize}]`,byteSize:t,inner:e};return(0,a.logTrace)(r.description),r}t.isSomeBuffer=c,t.isNoneBuffer=d,t.coptionNone=f,t.coptionSome=h,t.coption=function(e){return{toFixedFromData:(t,r)=>c(t,r)?h((0,s.fixBeetFromData)(e,t,r+1)):((0,n.strict)(d(t,r),`Expected ${t} to hold a COption`),f(e.description)),toFixedFromValue:t=>null==t?f(e.description):h((0,s.fixBeetFromValue)(e,t)),description:`COption<${e.description}>`}},t.compositesTypeMap={option:{beet:"coption",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"COption<Inner>",arg:i.BEET_TYPE_ARG_INNER,pack:o.BEET_PACKAGE}}},82166:(e,t,r)=>{"use strict";function n(e,t){return l(e)||s(e,t)||o(e,t)||i()}
5function i(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function l(e){if(Array.isArray(e))return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=void 0!==/a/g.flags,d=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},f=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},h=Object.is?Object.is:r(57361),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:r(64383);function m(e){return e.call.bind(e)}var y=m(Object.prototype.hasOwnProperty),E=m(Object.prototype.propertyIsEnumerable),b=m(Object.prototype.toString),v=r(63445).types,T=v.isAnyArrayBuffer,w=v.isArrayBufferView,A=v.isDate,N=v.isMap,S=v.isRegExp,_=v.isSet,x=v.isNativeError,I=v.isBoxedPrimitive,O=v.isNumberObject,R=v.isStringObject,P=v.isBooleanObject,M=v.isBigIntObject,C=v.isSymbolObject,k=v.isFloat32Array,L=v.isFloat64Array;function D(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=0x100000000}function B(e){return Object.keys(e).filter(D).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function V(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)}var F=void 0,U=!0,j=!1,H=0,G=1,K=2,z=3;function W(e,t){return c?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function Y(e,t){return e.byteLength===t.byteLength&&0===V(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function $(e,t){return e.byteLength===t.byteLength&&0===V(new Uint8Array(e),new Uint8Array(t))}function X(e,t){return O(e)?O(t)&&h(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):P(e)?P(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):M(e)?M(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function J(e,t,r,n){if(e===t)return 0!==e||!r||h(e,t);if(r){if("object"!==u(e))return"number"==typeof e&&g(e)&&g(t);if("object"!==u(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==u(e))return(null===t||"object"!==u(t))&&e==t;if(null===t||"object"!==u(t))return!1}var i=b(e);if(i!==b(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=B(e,F),a=B(t,F);return o.length===a.length&&Z(e,t,r,n,G,o)}if("[object Object]"===i&&(!N(e)&&N(t)||!_(e)&&_(t)))return!1;if(A(e)){if(!A(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||!W(e,t))return!1}else if(x(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(w(e)){if(!r&&(k(e)||L(e))){if(!q(e,t))return!1}else if(!Y(e,t))return!1;var s=B(e,F),l=B(t,F);return s.length===l.length&&Z(e,t,r,n,H,s)}else if(_(e))return!!_(t)&&e.size===t.size&&Z(e,t,r,n,K);else if(N(e))return!!N(t)&&e.size===t.size&&Z(e,t,r,n,z);else if(T(e)){if(!$(e,t))return!1}else if(I(e)&&!X(e,t))return!1;return Z(e,t,r,n,H)}function Q(e,t){return t.filter(function(t){return E(e,t)})}function Z(e,t,r,n,i,o){if(5==arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!y(t,o[s]))return!1;if(r&&5==arguments.length){var l=p(e);if(0!==l.length){var u=0;for(s=0;s<l.length;s++){var c=l[s];if(E(e,c)){if(!E(t,c))return!1;o.push(c),u++}else if(E(t,c))return!1}var d=p(t);if(l.length!==d.length&&Q(t,d).length!==u)return!1}else{var f=p(t);if(0!==f.length&&0!==Q(t,f).length)return!1}}if(0===o.length&&(i===H||i===G&&0===e.length||0===e.size))return!0;
5if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var g=n.val2.get(t);if(void 0!==g)return h===g}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var m=es(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),m}function ee(e,t,r,n){for(var i=d(e),o=0;o<i.length;o++){var a=i[o];if(J(t,a,r,n))return e.delete(a),!0}return!1}function et(e){switch(u(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e*=1;case"number":if(g(e))return!1}return!0}function er(e,t,r){var n=et(r);return null!=n?n:t.has(n)&&!e.has(n)}function en(e,t,r,n,i){var o=et(r);if(null!=o)return o;var a=t.get(o);return(void 0!==a||!!t.has(o))&&!!J(n,a,!1,i)&&!e.has(o)&&J(n,a,!1,i)}function ei(e,t,r,n){for(var i=null,o=d(e),a=0;a<o.length;a++){var s=o[a];if("object"===u(s)&&null!==s)null===i&&(i=new Set),i.add(s);else if(!t.has(s)){if(r||!er(e,t,s))return!1;null===i&&(i=new Set),i.add(s)}}if(null!==i){for(var l=d(t),c=0;c<l.length;c++){var f=l[c];if("object"===u(f)&&null!==f){if(!ee(i,f,r,n))return!1}else if(!r&&!e.has(f)&&!ee(i,f,r,n))return!1}return 0===i.size}return!0}function eo(e,t,r,n,i,o){for(var a=d(e),s=0;s<a.length;s++){var l=a[s];if(J(r,l,i,o)&&J(n,t.get(l),i,o))return e.delete(l),!0}return!1}function ea(e,t,r,i){for(var o=null,a=f(e),s=0;s<a.length;s++){var l=n(a[s],2),c=l[0],d=l[1];if("object"===u(c)&&null!==c)null===o&&(o=new Set),o.add(c);else{var h=t.get(c);if(void 0===h&&!t.has(c)||!J(d,h,r,i)){if(r||!en(e,t,c,d,i))return!1;null===o&&(o=new Set),o.add(c)}}}if(null!==o){for(var p=f(t),g=0;g<p.length;g++){var m=n(p[g],2),y=m[0],E=m[1];if("object"===u(y)&&null!==y){if(!eo(o,e,y,E,r,i))return!1}else if(!r&&(!e.has(y)||!J(e.get(y),E,!1,i))&&!eo(o,e,y,E,!1,i))return!1}return 0===o.size}return!0}function es(e,t,r,n,i,o){var a=0;if(o===K){if(!ei(e,t,r,i))return!1}else if(o===z){if(!ea(e,t,r,i))return!1}else if(o===G)for(;a<e.length;a++)if(y(e,a)){if(!y(t,a)||!J(e[a],t[a],r,i))return!1}else{if(y(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var l=s[a];if(!y(t,l)||!J(e[l],t[l],r,i))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var u=n[a];if(!J(e[u],t[u],r,i))return!1}return!0}e.exports={isDeepEqual:function(e,t){return J(e,t,j)},isDeepStrictEqual:function(e,t){return J(e,t,U)}}},82445:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},82626:(e,t,r)=>{"use strict";function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}r.d(t,{A:()=>n})},82782:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},84583:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(8766).A)(function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})},85246:(e,t,r)=>{"use strict";r.d(t,{E:()=>a,a:()=>o});var n=r(39195),i=1e3,o=function(e){if(Object.keys(e).length>i)return!1;for(var t in e){var r=e[t];if(!a(t,r))return!1}return!0},a=function(e,t){var r,i;if("string"!=typeof e)return!1;if(Array.isArray(t)){var a=!0;try{for(var s=(0,n.Ju)(t),l=s.next();!l.done;l=s.next()){var u=l.value;if(Array.isArray(u))return!1;if("object"==typeof u)a=a&&o(u);else if(!["number","string"].includes(typeof u))return!1;if(!a)return!1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return o(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0}},85419:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.logTrace=t.logDebug=t.logInfo=t.logError=void 0;let i=n(r(46743));t.logError=(0,i.default)("beet:error"),t.logInfo=(0,i.default)("beet:info"),t.logDebug=(0,i.default)("beet:debug"),t.logTrace=(0,i.default)("beet:trace")},85667:(e,t,r)=>{"use strict";function n(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}r.d(t,{$:()=>n})},85912:(e,t,r)=>{"use strict";r.d(t,{A:()=>
5o});var n=r(49977),i=function(e){return{value:e,map:function(t){return i(t(e))}}};let o=(0,n.A)(function(e,t,r){return e(function(e){return i(t(e))})(r).value})},85974:(e,t,r)=>{"use strict";var n=r(16472);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},86175:(e,t,r)=>{"use strict";var n=r(91158),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(53291),l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},u=r(69342)(),c=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if(!l(n)||!n())return}u?s(e,t,r,!0):s(e,t,r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};d.supportsDescriptors=!!u,e.exports=d},86272:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(93224),i=r(48832),o=r(64177);function a(e,t){let r=(0,i.o)(e),a=(0,i.o)(t);return Math.round((r-(0,o.G)(r)-(a-(0,o.G)(a)))/n.w4)}},86350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keysTypeMap=t.publicKey=void 0;let n=r(95431),i=r(36077),o="@metaplex-foundation/beet-solana",a="@solana/web3.js",s=(0,i.fixedSizeUint8Array)(32);t.publicKey={write:function(e,t,r){let n=r.toBytes();s.write(e,t,n)},read:function(e,t){let r=s.read(e,t);return new n.PublicKey(r)},byteSize:s.byteSize,description:"PublicKey"},t.keysTypeMap={publicKey:{beet:"publicKey",isFixable:!1,sourcePack:o,ts:"PublicKey",pack:a}}},86503:(e,t,r)=>{"use strict";function n(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function i(e,t){return"function"==typeof e?e(t):e}function o(e,t){return r=>{t.setState(t=>({...t,[e]:i(r,t[e])}))}}function a(e){return e instanceof Function}function s(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}function l(e,t){let r=[],n=e=>{e.forEach(e=>{r.push(e);let i=t(e);null!=i&&i.length&&n(i)})};return n(e),r}function u(e,t,r){let n,i=[];return o=>{let a,s;r.key&&r.debug&&(a=Date.now());let l=e(o);if(!(l.length!==i.length||l.some((e,t)=>i[t]!==e)))return n;if(i=l,r.key&&r.debug&&(s=Date.now()),n=t(...l),null==r||null==r.onChange||r.onChange(n),r.key&&r.debug&&null!=r&&r.debug()){let e=Math.round((Date.now()-a)*100)/100,t=Math.round((Date.now()-s)*100)/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${i(t,5)} /${i(e,5)} ms`,` 6 font-size: .6rem; 7 font-weight: bold; 8 color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return n}}function c(e,t,r,n){return{debug:()=>{var r;return null!=(r=null==e?void 0:e.debugAll)?r:e[t]},key:!1,onChange:n}}function d(e,t,r,n){let i=()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:u(()=>[e,r,t,o],(e,t,r,n)=>({table:e,column:t,row:r,cell:n,getValue:n.getValue,renderValue:n.renderValue}),c(e.options,"debugCells","cell.getContext"))};return e._features.forEach(n=>{null==n.createCell||n.createCell(o,r,t,e)},{}),o}function f(e,t,r,n){var i,o;let a,s={...e._getDefaultColumnDef(),...t},l=s.accessorKey,d=null!=(i=null!=(o=s.id)?o:l?"function"==typeof String.prototype.replaceAll?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)?i:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?a=s.accessorFn:l&&(a=l.includes(".")?e=>{let t=e;for(let e of l.split(".")){var r;t=null==(r=t)?void 0:r[e]}return t}:e=>e[s.accessorKey]),!d)throw Error();let f={id:`${String(d)}`,accessorFn:a,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:u(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},c(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:u(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},c(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(f,e);return f}r.d(t,{D0:()=>en,FB:()=>n,HT:()=>er,ZR:()=>et,h5:()=>ec,hM:()=>el,kW:()=>eu});let h="debugHeaders";function p(e,t,r){var n;let i={id:null!=(n=r.id)?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=r=>{r.subHeaders&&r.subHeaders.length&&r.subHeaders.map(t),e.push(r)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};
8return e._features.forEach(t=>{null==t.createHeader||t.createHeader(i,e)}),i}let g={createTable:e=>{e.getHeaderGroups=u(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,a;let s=null!=(o=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map(e=>r.find(t=>t.id===e)).filter(Boolean))?a:[];return m(t,[...s,...r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=i&&i.includes(e.id))),...l],e)},c(e.options,h,"getHeaderGroups")),e.getCenterHeaderGroups=u(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>m(t,r=r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=i&&i.includes(e.id))),e,"center"),c(e.options,h,"getCenterHeaderGroups")),e.getLeftHeaderGroups=u(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;return m(t,null!=(i=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?i:[],e,"left")},c(e.options,h,"getLeftHeaderGroups")),e.getRightHeaderGroups=u(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;return m(t,null!=(i=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?i:[],e,"right")},c(e.options,h,"getRightHeaderGroups")),e.getFooterGroups=u(()=>[e.getHeaderGroups()],e=>[...e].reverse(),c(e.options,h,"getFooterGroups")),e.getLeftFooterGroups=u(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),c(e.options,h,"getLeftFooterGroups")),e.getCenterFooterGroups=u(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),c(e.options,h,"getCenterFooterGroups")),e.getRightFooterGroups=u(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),c(e.options,h,"getRightFooterGroups")),e.getFlatHeaders=u(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,h,"getFlatHeaders")),e.getLeftFlatHeaders=u(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,h,"getLeftFlatHeaders")),e.getCenterFlatHeaders=u(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,h,"getCenterFlatHeaders")),e.getRightFlatHeaders=u(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),c(e.options,h,"getRightFlatHeaders")),e.getCenterLeafHeaders=u(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,h,"getCenterLeafHeaders")),e.getLeftLeafHeaders=u(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,h,"getLeftLeafHeaders")),e.getRightLeafHeaders=u(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),c(e.options,h,"getRightLeafHeaders")),e.getLeafHeaders=u(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,r)=>{var n,i,o,a,s,l;return[...null!=(n=null==(i=e[0])?void 0:i.headers)?n:[],...null!=(o=null==(a=t[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=r[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},c(e.options,h,"getLeafHeaders"))}};function m(e,t,r,n){var i,o;let a=0,s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var r;null!=(r=e.columns)&&r.length&&s(e.columns,t+1)},0)};s(e);let l=[],u=(e,t)=>{let i={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{let a,s=[...o].reverse()[0],l=e.column.depth===i.depth,u=!1;if(l&&e.column.parent?a=e.column.parent:(a=e.column,u=!0),s&&(null==s?void 0:s.column)===a)s.subHeaders.push(e);else{let i=p(r,a,{id:[n,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${o.filter(e=>e.column===a).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),l.push(i),t>0&&u(o,t-1)};u(t.map((e,t)=>p(r,e,{depth:a,index:t})),a-1),l.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,r=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],c(e.subHeaders).forEach(e=>{let{colSpan:r,rowSpan:i}=e;t+=r,n.push(i)})):t=1,r+=Math.min(...n),e.colSpan=t,e.rowSpan=r,{colSpan:t,rowSpan:r}});return c(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}let y=(e,t,r,n,i,o,a)=>{let s={id:t,index:n,original:r,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return s._valuesCache[t]=r.accessorFn(s.original,n),s._valuesCache[t]}
8,getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return r.columnDef.getUniqueValues?s._uniqueValuesCache[t]=r.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var r;return null!=(r=s.getValue(t))?r:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>l(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let r=t.getParentRow();if(!r)break;e.push(r),t=r}return e.reverse()},getAllCells:u(()=>[e.getAllLeafColumns()],t=>t.map(t=>d(e,s,t,t.id)),c(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:u(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),c(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let r=e._features[t];null==r||null==r.createRow||r.createRow(s,e)}return s},E={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
8d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},b=(e,t,r)=>{var n,i;let o=null==r||null==(n=r.toString())?void 0:n.toLowerCase();return!!(null==(i=e.getValue(t))||null==(i=i.toString())||null==(i=i.toLowerCase())?void 0:i.includes(o))};b.autoRemove=e=>O(e);let v=(e,t,r)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(r))};v.autoRemove=e=>O(e);let T=(e,t,r)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==r?void 0:r.toLowerCase())};T.autoRemove=e=>O(e);let w=(e,t,r)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)};w.autoRemove=e=>O(e);let A=(e,t,r)=>!r.some(r=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(r))});A.autoRemove=e=>O(e)||!(null!=e&&e.length);let N=(e,t,r)=>r.some(r=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)});N.autoRemove=e=>O(e)||!(null!=e&&e.length);let S=(e,t,r)=>e.getValue(t)===r;S.autoRemove=e=>O(e);let _=(e,t,r)=>e.getValue(t)==r;_.autoRemove=e=>O(e);let x=(e,t,r)=>
8{let[n,i]=r,o=e.getValue(t);return o>=n&&o<=i};x.resolveFilterValue=e=>{let[t,r]=e,n="number"!=typeof t?parseFloat(t):t,i="number"!=typeof r?parseFloat(r):r,o=null===t||Number.isNaN(n)?-1/0:n,a=null===r||Number.isNaN(i)?1/0:i;if(o>a){let e=o;o=a,a=e}return[o,a]},x.autoRemove=e=>O(e)||O(e[0])&&O(e[1]);let I={includesString:b,includesStringSensitive:v,equalsString:T,arrIncludes:w,arrIncludesAll:A,arrIncludesSome:N,equals:S,weakEquals:_,inNumberRange:x};function O(e){return null==e||""===e}function R(e,t,r){return!!e&&!!e.autoRemove&&e.autoRemove(t,r)||void 0===t||"string"==typeof t&&!t}let P={sum:(e,t,r)=>r.reduce((t,r)=>{let n=r.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n>r||void 0===n&&r>=r)&&(n=r)}),n},max:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n<r||void 0===n&&r>=r)&&(n=r)}),n},extent:(e,t,r)=>{let n,i;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(void 0===n?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)))}),[n,i]},mean:(e,t)=>{let r=0,n=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i*=1)>=i&&(++r,n+=i)}),r)return n/r},median:(e,t)=>{if(!t.length)return;let r=t.map(t=>t.getValue(e));if(!s(r))return;if(1===r.length)return r[0];let n=Math.floor(r.length/2),i=r.sort((e,t)=>e-t);return r.length%2!=0?i[n]:(i[n-1]+i[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length};function M(e,t,r){if(!(null!=t&&t.length)||!r)return e;let n=e.filter(e=>!t.includes(e.id));return"remove"===r?n:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...n]}let C=()=>({left:[],right:[]});function k(e){return e||("undefined"!=typeof document?document:null)}let L={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},D=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),B=null;function V(){if("boolean"==typeof B)return B;let e=!1;try{let t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch(t){e=!1}return B=e}function F(e){return"touchstart"===e.type}function U(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let j=0,H=10,G=()=>({pageIndex:j,pageSize:H}),K=()=>({top:[],bottom:[]}),z=(e,t,r,n,i)=>{var o;let a=i.getRow(t,!0);r?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>z(e,t.id,r,n,i))};function W(e,t){let r=e.getState().rowSelection,n=[],i={},o=function(e,t){return e.map(e=>{var t;let a=q(e,r);if(a&&(n.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),a)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function q(e,t){var r;return null!=(r=t[e.id])&&r}function Y(e,t,r){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let i=!0,o=!1;return e.subRows.forEach(e=>{if((!o||i)&&(e.getCanSelect()&&(q(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){let r=Y(e,t);"all"===r?o=!0:("some"===r&&(o=!0),i=!1)}}),i?"all":!!o&&"some"}let $=/([0-9]+)/gm;function X(e,t){return e===t?0:e>t?1:-1}function J(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Q(e,t){let r=e.split($).filter(Boolean),n=t.split($).filter(Boolean);for(;r.length&&n.length;){let e=r.shift(),t=n.shift(),i=parseInt(e,10),o=parseInt(t,10),a=[i,o].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return -1}return r.length-n.length}let Z={alphanumeric:(e,t,r)=>Q(J(e.getValue(r)).toLowerCase(),J(t.getValue(r)).toLowerCase()),alphanumericCaseSensitive:(e,t,r)=>Q(J(e.getValue(r)),J(t.getValue(r))),text:(e,t,r)=>X(J(e.getValue(r)).toLowerCase(),J(t.getValue(r)).toLowerCase()),textCaseSensitive:(e,t,r)=>X(J(e.getValue(r)),J(t.getValue(r))),datetime:(e,t,r)=>{let n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},basic:(e,t,r)=>X(e.getValue(r),t.getValue(r))},ee=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(t=>
8({...t,[e.id]:null!=r?r:!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;let i=e.columns;return null==(r=i.length?i.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||r},e.getCanHide=()=>{var r,n;return(null==(r=e.columnDef.enableHiding)||r)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=u(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),c(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=u(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,r)=>[...e,...t,...r],c(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,r)=>u(()=>[r(),r().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),c(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:null!=(r=e.initialState.columnVisibility)?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=null!=(r=t)?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,r)=>({...e,[r.id]:t||!(null!=r.getCanHide&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible(null==(r=t.target)?void 0:r.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=u(e=>[U(t,e)],t=>t.findIndex(t=>t.id===e.id),c(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=r=>{var n;return(null==(n=U(t,r)[0])?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;let i=U(t,r);return(null==(n=i[i.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:null!=(r=e.initialState.columnOrder)?r:[])},e._getOrderColumnsFn=u(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,r)=>n=>{let i=[];if(null!=e&&e.length){let t=[...e],r=[...n];for(;r.length&&t.length;){let e=t.shift(),n=r.findIndex(t=>t.id===e);n>-1&&i.push(r.splice(n,1)[0])}i=[...i,...r]}else i=n;return M(i,t,r)},c(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:C(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,a,s,l;return"right"===r?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===r?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var r,n,i;return(null==(r=e.columnDef.enablePinning)||r)&&(null==(n=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let r=e.getLeafColumns().map(e=>e.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(e=>null==n?void 0:n.includes(e)),a=r.some(e=>null==i?void 0:i.includes(e));return o?"left":!!a&&"right"},e.getPinnedIndex=()=>{var r,n;let i=e.getIsPinned();return i?null!=(r=null==(n=t.getState().columnPinning)||null==(n=n[i])?void 0:n.indexOf(e.id))?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=u(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.column.id))},c(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=u(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>
8e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),c(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=u(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),c(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?C():null!=(r=null==(n=e.initialState)?void 0:n.columnPinning)?r:C())},e.getIsSomeColumnsPinned=t=>{var r,n,i;let o=e.getState().columnPinning;return t?!!(null==(r=o[t])?void 0:r.length):!!((null==(n=o.left)?void 0:n.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=u(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=u(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),c(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=u(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.id))},c(e.options,"debugColumns","getCenterLeafColumns"))}},E,{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"string"==typeof n?I.includesString:"number"==typeof n?I.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?I.equals:Array.isArray(n)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var r,n;return a(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(r=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?r:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return(null==(r=e.columnDef.enableColumnFilter)||r)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return null==(r=t.getState().columnFilters)||null==(r=r.find(t=>t.id===e.id))?void 0:r.value},e.getFilterIndex=()=>{var r,n;return null!=(r=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},e.setFilterValue=r=>{t.setColumnFilters(t=>{var n,o;let a=e.getFilterFn(),s=null==t?void 0:t.find(t=>t.id===e.id),l=i(r,s?s.value:void 0);if(R(a,l,e))return null!=(n=null==t?void 0:t.filter(t=>t.id!==e.id))?n:[];let u={id:e.id,value:l};return s?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let r=e.getAllLeafColumns(),n=e=>{var n;return null==(n=i(t,e))?void 0:n.filter(e=>{let t=r.find(t=>t.id===e.id);return!(t&&R(t.getFilterFn(),e.value,t))&&!0})};null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.columnFilters)?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>
8{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;let n=null==(r=e.getCoreRowModel().flatRows[0])||null==(r=r._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,o;return(null==(r=e.columnDef.enableGlobalFilter)||r)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,r;let{globalFilterFn:n}=e.options;return a(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(r=e.options.filterFns)?void 0:r[n])?t:I[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let r=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of r){let r=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(r))return Z.datetime;if("string"==typeof r&&(n=!0,r.split($).length>1))return Z.alphanumeric}return n?Z.text:Z.basic},e.getAutoSortDir=()=>{let r=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==r?void 0:r.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw Error();return a(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(r=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?r:Z[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{let i=e.getNextSortingOrder(),o=null!=r;t.setSorting(a=>{let s,l=null==a?void 0:a.find(t=>t.id===e.id),u=null==a?void 0:a.findIndex(t=>t.id===e.id),c=[],d=o?r:"desc"===i;if("toggle"!=(s=null!=a&&a.length&&e.getCanMultiSort()&&n?l?"toggle":"add":null!=a&&a.length&&u!==a.length-1?"replace":l?"toggle":"replace")||o||i||(s="remove"),"add"===s){var f;(c=[...a,{id:e.id,desc:d}]).splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))}else c="toggle"===s?a.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===s?a.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var r,n;return(null!=(r=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?r:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;let o=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===o||null!=(n=t.options.enableSortingRemoval)&&!n||!!r&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},e.getCanSort=()=>{var r,n;return(null==(r=e.columnDef.enableSorting)||r)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return null!=(r=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?r:!!e.accessorFn},e.getIsSorted=()=>{var r;let n=null==(r=t.getState().sorting)?void 0:r.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var r,n;return null!=(r=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let r=e.getCanSort();return n=>{r&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.sorting)?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return null!=(t=null==(r=e.getValue())||null==r.toString?void 0:r.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var r,n;return(null==(r=e.columnDef.enableGrouping)||r)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return null==(r=t.getState().grouping)?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return null==(r=t.getState().grouping)?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"number"==typeof n?P.sum:"[object Date]"===Object.prototype.toString.call(n)?P.extent:void 0},e.getAggregationFn=()=>{var r,n;if(!e)throw Error();return a(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(r=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?r:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.grouping)?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];let n=t.getColumn(r);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=r.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var r,n;e.setExpanded(t?{}:null!=(r=null==(n=e.initialState)?void 0:n.expanded)?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEac
8h(e=>{let r=e.split(".");t=Math.max(t,r.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;let o=!0===n||!!(null!=n&&n[e.id]),a={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=n,r=null!=(i=r)?i:!o,!o&&r)return{...a,[e.id]:!0};if(o&&!r){let{[e.id]:t,...r}=a;return r}return n})},e.getIsExpanded=()=>{var r;let n=t.getState().expanded;return!!(null!=(r=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?r:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var r,n,i;return null!=(r=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?r:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(i=e.subRows)&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)r=(n=t.getRow(n.parentId,!0)).getIsExpanded();return r},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...G(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=t=>{let r=e=>i(t,e);return null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(r)},e.resetPagination=t=>{var r;e.setPagination(t?G():null!=(r=e.initialState.pagination)?r:G())},e.setPageIndex=t=>{e.setPagination(r=>{let n=i(t,r.pageIndex);return n=Math.max(0,Math.min(n,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...r,pageIndex:n}})},e.resetPageIndex=t=>{var r,n;e.setPageIndex(t?j:null!=(r=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?r:j)},e.resetPageSize=t=>{var r,n;e.setPageSize(t?H:null!=(r=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?r:H)},e.setPageSize=t=>{e.setPagination(e=>{let r=Math.max(1,i(t,e.pageSize)),n=Math.floor(e.pageSize*e.pageIndex/r);return{...e,pageIndex:n,pageSize:r}})},e.setPageCount=t=>e.setPagination(r=>{var n;let o=i(t,null!=(n=e.options.pageCount)?n:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...r,pageCount:o}}),e.getPageOptions=u(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},c(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,r=e.getPageCount();return -1===r||0!==r&&t<r-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:K(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{let o=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...o]);t.setRowPinning(e=>{var t,n,i,o,s,l;return"bottom"===r?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===r?{top:[...(null!=(s=null==e?void 0:e.top)?s:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var r;let{enableRowPinning:n,enablePinning:i}=t.options;return"function"==typeof n?n(e):null==(r=null!=n?n:i)||r},e.getIsPinned=()=>{let r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,o=r.some(e=>null==n?void 0:n.includes(e)),a=r.some(e=>null==i?void 0:i.includes(e));return o?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var r,n;let i=e.getIsPinned();if(!i)return -1;let o=null==(r="top"===i?t.getTopRows():t.getBottomRows())?void 0:r.map(e=>{let{id:t}=e;return t});return null!=(n=null==o?void 0:o.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?K():null!=(r=null==(n=e.initialState)?void 0:n.rowPinning)?r:K())},e.getIsSomeRowsPinned=t=>{var r,n,i;let o=e.getState().rowPinning;return t?!!(null==(r=o[t])?void 0:r.length):!!((null==(n=o.top)?void 0:n.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=(t,r,n)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=r?r:[]).map(t=>{let r=e.getRow(t,!0);return r.getIsAllParentsExpanded()?r:null}):(null!=r?r:[]).map(e=>t.find(t=>
8t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=u(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),c(e.options,"debugRows","getTopRows")),e.getBottomRows=u(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),c(e.options,"debugRows","getBottomRows")),e.getCenterRows=u(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,r)=>{let n=new Set([...null!=t?t:[],...null!=r?r:[]]);return e.filter(e=>!n.has(e.id))},c(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:null!=(r=e.initialState.rowSelection)?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):i.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(t=>{z(i,t.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=u(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?W(e,r):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=u(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?W(e,r):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=u(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?W(e,r):{rows:[],flatRows:[],rowsById:{}},c(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState(),n=!!(t.length&&Object.keys(r).length);return n&&t.some(e=>e.getCanSelect()&&!r[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:r}=e.getState(),n=!!t.length;return n&&t.some(e=>!r[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let r=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{let i=e.getIsSelected();t.setRowSelection(o=>{var a;if(r=void 0!==r?r:!i,e.getCanSelect()&&i===r)return o;let s={...o};return z(s,e.id,r,null==(a=null==n?void 0:n.selectChildren)||a,t),s})},e.getIsSelected=()=>{let{rowSelection:r}=t.getState();return q(e,r)},e.getIsSomeSelected=()=>{let{rowSelection:r}=t.getState();return"some"===Y(e,r)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:r}=t.getState();return"all"===Y(e,r)},e.getCanSelect=()=>{var r;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(r=t.options.enableRowSelection)||r},e.getCanSelectSubRows=()=>{var r;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(r=t.options.enableSubRowSelection)||r},e.getCanMultiSelect=()=>{var r;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(r=t.options.enableMultiRowSelection)||r},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return r=>{var n;t&&e.toggleSelected(null==(n=r.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>L,getInitialState:e=>({columnSizing:{},columnSizingInfo:D(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;let o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(r=e.columnDef.minSize)?r:L.minSize,null!=(n=null!=o?o:e.columnDef.size)?n:L.size),null!=(i=e.columnDef.maxSize)?i:L.maxSize)},e.getStart=u(e=>[e,U(t,e),t.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((e,t)=>
8e+t.getSize(),0),c(t.options,"debugColumns","getStart")),e.getAfter=u(e=>[e,U(t,e),t.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),c(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:r,...n}=t;return n})},e.getCanResize=()=>{var r,n;return(null==(r=e.columnDef.enableResizing)||r)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,r=e=>{if(e.subHeaders.length)e.subHeaders.forEach(r);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return r(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=r=>{let n=t.getColumn(e.column.id),i=null==n?void 0:n.getCanResize();return o=>{if(!n||!i||(null==o.persist||o.persist(),F(o)&&o.touches&&o.touches.length>1))return;let a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],l=F(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,r)=>{"number"==typeof r&&(t.setColumnSizingInfo(e=>{var n,i;let o="rtl"===t.options.columnResizeDirection?-1:1,a=(r-(null!=(n=null==e?void 0:e.startOffset)?n:0))*o,s=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,r]=e;u[t]=Math.round(100*Math.max(r+r*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=k(r),p={moveHandler:e=>d(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",p.moveHandler),null==h||h.removeEventListener("mouseup",p.upHandler),f(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",g.moveHandler),null==h||h.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!V()&&{passive:!1};F(o)?(null==h||h.addEventListener("touchmove",g.moveHandler,m),null==h||h.addEventListener("touchend",g.upHandler,m)):(null==h||h.addEventListener("mousemove",p.moveHandler,m),null==h||h.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:null!=(r=e.initialState.columnSizing)?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?D():null!=(r=e.initialState.columnSizingInfo)?r:D())},e.getTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getLeftHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getCenterHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,r;return null!=(t=null==(r=e.getRightHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function et(e){var t,r;let n=[...ee,...null!=(t=e._features)?t:[]],o={_features:n},a=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),s=e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e},l={...null!=(r=e.initialState)?r:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});let d=[],h=!1,p={_features:n,options:{...a,...e},initialState:l,_queue:e=>{d.push(e),h||(h=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();h=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{let t=i(e,o.options);o.options=s(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,r)=>{var n;return null!=(n=null==o.options.getRowId?void 0:o.options.getRowId(e,t,r))?n:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!r&&!(r=o.getCoreRowModel().rowsById[e]))throw Error();return r},_getDefaultColumnDef:u(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,r;return null!=(t=null==(r=e.renderValue())||null==r.toString?void 0:r.toString())?t:null},...o._features.reduce((e,t)=>
8Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},c(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:u(()=>[o._getColumnDefs()],e=>{let t=function(e,r,n){return void 0===n&&(n=0),e.map(e=>{let i=f(o,e,n,r),a=e;return i.columns=a.columns?t(a.columns,i,n+1):[],i})};return t(e)},c(e,"debugColumns","getAllColumns")),getAllFlatColumns:u(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),c(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:u(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),c(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:u(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),c(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,p);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function er(){return e=>u(()=>[e.options.data],t=>{let r={rows:[],flatRows:[],rowsById:{}},n=function(t,i,o){void 0===i&&(i=0);let a=[];for(let l=0;l<t.length;l++){let u=y(e,e._getRowId(t[l],l,o),t[l],l,i,void 0,null==o?void 0:o.id);if(r.flatRows.push(u),r.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var s;u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=n(u.originalSubRows,i+1,u))}}return a};return r.rows=n(t),r},c(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function en(){return e=>u(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,r)=>t.rows.length&&(!0===e||Object.keys(null!=e?e:{}).length)&&r?ei(t):t,c(e.options,"debugTable","getExpandedRowModel"))}function ei(e){let t=[],r=e=>{var n;t.push(e),null!=(n=e.subRows)&&n.length&&e.getIsExpanded()&&e.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function eo(e,t,r){return r.options.filterFromLeafRows?ea(e,t,r):es(e,t,r)}function ea(e,t,r){var n;let i=[],o={},a=null!=(n=r.options.maxLeafRowFilterDepth)?n:100,s=function(e,n){void 0===n&&(n=0);let l=[];for(let c=0;c<e.length;c++){var u;let d=e[c],f=y(r,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&n<a){if(f.subRows=s(d.subRows,n+1),t(d=f)&&!f.subRows.length||t(d)||f.subRows.length){l.push(d),o[d.id]=d,i.push(d);continue}}else t(d=f)&&(l.push(d),o[d.id]=d,i.push(d))}return l};return{rows:s(e),flatRows:i,rowsById:o}}function es(e,t,r){var n;let i=[],o={},a=null!=(n=r.options.maxLeafRowFilterDepth)?n:100,s=function(e,n){void 0===n&&(n=0);let l=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&n<a){let e=y(r,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,n+1),d=e}l.push(d),i.push(d),o[d.id]=d}}return l};return{rows:s(e),flatRows:i,rowsById:o}}function el(){return e=>u(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{let i,o;if(!t.rows.length||!(null!=r&&r.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let a=[],s=[];(null!=r?r:[]).forEach(t=>{var r;let n=e.getColumn(t.id);if(!n)return;let i=n.getFilterFn();i&&a.push({id:t.id,filterFn:i,resolvedValue:null!=(r=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?r:t.value})});let l=(null!=r?r:[]).map(e=>e.id),u=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&u&&c.length&&(l.push("__global__"),c.forEach(e=>{var t;s.push({id:e.id,filterFn:u,resolvedValue:null!=(t=null==u.resolveFilterValue?void 0:u.resolveFilterValue(n))?t:n})}));for(let e=0;e<t.flatRows.length;e++){let r=t.flatRows[e];if(r.columnFilters={},a.length)for(let e=0;e<a.length;e++){let t=(i=a[e]).id;r.columnFilters[t]=i.filterFn(r,t,i.resolvedValue,e=>{r.columnFiltersMeta[t]=e})}if(s.length){for(let e=0;e<s.length;e++){let t=(o=s[e]).id;if(o.filterFn(r,t,o.resolvedValue,e=>{r.columnFiltersMeta[t]=e})){r.columnFilters.__global__=!0;break}}!0!==r.columnFilters.__global__&&(r.columnFilters.__global__=!1)}}let d=e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0};return eo(t.rows,d,e)},c(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function eu(e){return e=>u(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,r)=>{let n;if(!r.rows.length)return r;let{pageSize:i,pageIndex:o}=t,{rows:a,flatRows:s,rowsById:l}=r,u=i*o,c=u+i;a=a.slice(u,c),(n=e.options.paginateExpandedRows?{rows:a,flatRows:s,rowsById:l}:ei({rows:a,flatRows:s,rowsById:l})).flatRows=[];let d=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return n.rows.forEach(d),n},c(e.options,"debugTable","getPaginationRowModel"))}function ec(){return e=>u(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(null!=t&&t.length))return r;let n=e.getState().sorting,i=[],o=n.filter(t=>{var r;return null==(r=e.getColumn(t.id))?void 0:r.getCanSort()}),a={};o.forEach(t=>{let r=e.getColumn(t.id);r&&(a[t.id]={sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortingFn:r.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>
8{for(let n=0;n<o.length;n+=1){var r;let i=o[n],s=a[i.id],l=s.sortUndefined,u=null!=(r=null==i?void 0:i.desc)&&r,c=0;if(l){let r=e.getValue(i.id),n=t.getValue(i.id),o=void 0===r,a=void 0===n;if(o||a){if("first"===l)return o?-1:1;if("last"===l)return o?1:-1;c=o&&a?0:o?l:-l}}if(0===c&&(c=s.sortingFn(e,t,i.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index}),t.forEach(e=>{var t;i.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},c(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}},86573:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(35),i=r(8766);function o(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}var a=r(50515);function s(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}var l=r(1766),u=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=l.A.init,e.prototype["@@transducer/result"]=l.A.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();let c=function(e){return function(t){return new u(e,t)}};var d=r(76438),f=r(82626);function h(e,t,r){return function(){for(var n,i=[],o=0,a=e,s=0,l=!1;s<t.length||o<arguments.length;)s<t.length&&(!(0,f.A)(t[s])||o>=arguments.length)?n=t[s]:(n=arguments[o],o+=1),i[s]=n,(0,f.A)(n)?l=!0:a-=1,s+=1;return!l&&a<=0?r.apply(this,i):(0,d.A)(Math.max(0,a),h(e,i,r))}}let p=(0,i.A)(function(e,t){return 1===e?(0,n.A)(t):(0,d.A)(e,h(e,[],t))});var g=r(54234);let m=(0,i.A)((0,a.A)(["fantasy-land/map","map"],c,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return p(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return o(function(r,n){return r[n]=e(t[n]),r},{},(0,g.A)(t));default:return s(e,t)}})),y=(0,i.A)(function(e,t){return function(r){return function(n){return m(function(e){return t(e,n)},r(e(n)))}}});var E=r(19260),b=r(49977);function v(e,t){t=t||[];var r,n=(e=e||[]).length,i=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<i;)o[o.length]=t[r],r+=1;return o}let T=(0,b.A)(function(e,t,r){var n=r.length;if(e>=n||e<-n)return r;var i=(n+e)%n,o=v(r);return o[i]=t(r[i]),o}),w=(0,n.A)(function(e){return function(){return e}}),A=(0,b.A)(function(e,t,r){return T(e,w(t),r)}),N=(0,n.A)(function(e){return y((0,E.A)(e),A(e))})},86924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapsTypeMap=t.map=void 0;let n=r(5162),i=r(45423),o=r(21838),a=r(95585);function s(e,t,r,s){let l=(0,n.isFixedSizeBeet)(e),u=(0,n.isFixedSizeBeet)(t),{elementByteSize:c,byteSize:d}=function(){if(l&&u){let r=e.byteSize+t.byteSize;return{elementByteSize:r,byteSize:4+s*r}}if(l){let t=0;for(let[e,n]of r.values())t+=n.byteSize;return{elementByteSize:e.byteSize+Math.ceil(t/s),byteSize:4+e.byteSize*s+t}}if(u){let e=0;for(let[t,n]of r.values())e+=t.byteSize;return{elementByteSize:Math.ceil(e/s)+t.byteSize,byteSize:4+e+t.byteSize*s}}{let e=0,t=0;for(let[n,i]of r.values())e+=n.byteSize,t+=i.byteSize;return{elementByteSize:Math.ceil(e/s+t/s),byteSize:4+e+t}}}();return{write:function(n,c,d){let f=c+4,h=0;for(let[i,s]of d.entries()){let c=l?e:null,d=u?t:null;if(null==c||null==d){let e=r.get(i);(0,a.strict)(null!=e,`Should be able to find beet els for ${(0,o.stringify)(i)}, but could not`),null!=c||(c=e[0]),null!=d||(d=e[1])}c.write(n,f,i),f+=c.byteSize,d.write(n,f,s),f+=d.byteSize,h++}i.u32.write(n,c,h),a.strict.equal(h,s,`Expected map to have size ${s}, but has ${h}.`)},read:function(r,n){let o=i.u32.read(r,n);a.strict.equal(o,s,`Expected map to have size ${s}, but has ${o}.`);let c=n+4,d=new Map;for(let n=0;n<o;n++){let n=l?e:e.toFixedFromData(r,c),i=n.read(r,c);c+=n.byteSize;let o=u?t:t.toFixedFromData(r,c),a=o.read(r,c);c+=o.byteSize,d.set(i,a)}return d},elementByteSize:c,byteSize:d,length:s,lenPrefixByteSize:4,description:`Map<${e.description}, ${t.description}>`}}t.map=function(e,t){let r=(0,n.isFixedSizeBeet)(e),o=(0,n.isFixedSizeBeet)(t);return{toFixedFromData(n,a){let l=i.u32.read(n,a),u=a+4;if(r&&o)return s(e,t,new Map,l);let c=new Map;for(let i=0;i<l;i++){let i=r?e:e.toFixedFromData(n,u),a=i.read(n,u);u+=i.byteSize;let s=o?t:t.toFixedFromData(n,u);u+=s.byteSize,c.set(a,[i,s])}return s(e,t,c,l)},toFixedFromValue(n){let i=n.size;if(r&&o)return s(e,t,new Map,i);let a=new Map;for(let[i,s]of n){let n=r?e:e.toFixedFromValue(i),l=o?t:t.toFixedFromValue(s);a.set(i,[n,l])}return s(e,t,a,i)},description:`FixableMap<${e.description}, ${t.description}>`}},t.mapsTypeMap={Map:{beet:"map",isFixable:!0,sourcePack:n.BEET_PACKAGE,ts:"Map"}}},87680:(e,t,r)=>{"use strict";function n(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;let i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}r.d(t,{K:()=>n})},87820:(e,t,r)=>{"use strict";r.d(t,{Se:()=>l,T$:()=>s});var n,i=r(39195),o=r(96431),a=r(85246),s=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,i.Cl)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(n.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(n.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(n.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(n.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(n.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(n.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(n.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(n.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(n.UNSET,e,o.mG),this},e.prototype.clearAll=function(){return this._properties={},this._properties[n.CLEAR_ALL]=o.mG,this}
8,e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[n.CLEAR_ALL]||this._propertySet.has(t))&&(e===n.ADD?"number"==typeof r:e===n.UNSET||e===n.REMOVE||(0,a.E)(t,r))},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(n||(n={}));var l=[n.CLEAR_ALL,n.UNSET,n.SET,n.SET_ONCE,n.ADD,n.APPEND,n.PREPEND,n.PREINSERT,n.POSTINSERT,n.REMOVE]},88819:(e,t,r)=>{"use strict";var n=r(49252),i=r(62375)(/^\s*(?:function)?\*/),o=r(38868)(),a=r(24993),s=n("Object.prototype.toString"),l=n("Function.prototype.toString"),u=r(99206);e.exports=function(e){if("function"!=typeof e)return!1;if(i(l(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=u();return t&&a(e)===t.prototype}},89449:(e,t,r)=>{"use strict";r.d(t,{f:()=>G});var n,i=r(60133),o=r(99392),a=r(71051);class s extends a._y{#Y;#ta;constructor(e,t,r){let n=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,i.MR)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,n),this.#ta=null,r&&r.providerInfo&&(this.#ta=r.providerInfo),this.#Y=async(t,r)=>{let n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}get providerInfo(){return this.#ta}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,i.MR)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#Y(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#Y("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}static async discover(e){if(null==e&&(e={}),e.provider)return new s(e.provider);let t=e.window?e.window:"undefined"!=typeof window?window:null;if(null==t)return null;let r=e.anyProvider;if(r&&t.ethereum)return new s(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;let n=e.timeout?e.timeout:300;return 0===n?null:await new Promise((o,a)=>{let l=[],u=e=>{l.push(e.detail),r&&c()},c=()=>{if(clearTimeout(d),l.length)if(e&&e.filter){let t=e.filter(l.map(e=>Object.assign({},e.info)));if(null==t)o(null);else if(t instanceof s)o(t);else{let e=null;if(t.uuid&&(e=l.filter(e=>t.uuid===e.info.uuid)[0]),e){let{provider:t,info:r}=e;o(new s(t,void 0,{providerInfo:r}))}else a((0,i.xz)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:t}))}}else{let{provider:e,info:t}=l[0];o(new s(e,void 0,{providerInfo:t}))}else o(null);t.removeEventListener("eip6963:announceProvider",u)},d=setTimeout(()=>{c()},n);t.addEventListener("eip6963:announceProvider",u),t.dispatchEvent(new Event("eip6963:requestProvider"))})}}var l=r(17027),u=r(75468),c=r(55481),d=r(50746),f=r(45348),h=r(13942);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}!function(e){e.EmptyError="EmptyError",e.RevertError="RevertError",e.PanicError="PanicError",e.CustomError="CustomError",e.UserRejectError="UserRejectError",e.RpcError="RpcError",e.UnknownError="UnknownError"}(n||(n={}));var m="0x08c379a0",y="0x4e487b71",E=function(e,t){return e&&""!==e.trim()?e:t},b=function(e){var t=e.data,r=e.fragment,n=e.args,i=e.selector,o=e.name,a={type:e.type,reason:E(e.reason,null),data:null!=t?t:null,fragment:null,args:null!=n?n:new d.Q7,selector:null!=i?i:null,name:null!=o?o:null,signature:null};return r&&(a=p({},a,new u.fN(r,r.selector,n))),a},v=function(e){var t=e.data,r=e.name;return b({type:n.UnknownError,reason:E(e.reason,"Unknown error"),data:t,name:r})},T=function(){function e(){}var t=e.prototype;return t.predicate=function(e){return"0x"===e},t.handle=function(e){return b({type:n.EmptyError,data:e})},e}(),w=function(){function e(){}var t=e.prototype;return t.predicate=function(e){return null==e?void 0:e.startsWith(m)},t.handle=function(e){var t,r=e.slice(10),i=new f.y;try{var o=h.bp.from("Error(string)"),a=i.decode(o.inputs,"0x"+r);return b({type:n.RevertError,reason:(t={data:e,fragment:o,reason:a[0],args:a}).reason,data:t.data,fragment:t.fragment,args:t.args})}catch(t){return v({reason:"Unknown error returned",data:e})}},e}(),A=function(){function e(){}var t=e.prototype;return t.predicate=function(e){return null==e?void 0:e.startsWith(y)},t.handle=function(e){var t,r=e.slice(10),i=new f.y;try{var o,a=h.bp.from("Panic(uint256)"),s=i.decode(a.inputs,"0x"+r),l=null!=(o=function(e){switch(e){case 0n:return"Generic compiler inserted panic";case 1n:return"Assertion error";case 17n:return"Arithmetic operation underflowed or overflowed outside of an unchecked block";case 18n:return"Division or modulo division by zero";case 33n:return"Tried to convert a value into an enum, but the value was too big or negative";case 34n:return"Incorrectly encoded storage byte array";case 49n:return".pop() was called on an empty array";case 50n:return"Array accessed at an out-of-bounds or negative index";case 65n:return"Too much memory was allocated, or an array was created that is too large";case 81n:return"Called a zero-initialized variable of internal function type"}}(s[0]))?o:"Unknown panic code";return b({type:n.PanicError,reason:(t={data:e,fragment:a,reason:l,args:s}).reason,data:t.data,args:t.args})}catch(t){return v({reason:"Unknown panic error",data:e})}},e}(),N=function(){function e(){}var t=e.prototype;return t.predicate=function(e){return e&&"0x"!==e&&!(null!=e&&e.startsWith(m))&&!(null!=e&&e.startsWith(y))},t.handle=function(e,t){var r=t.errorInterface,i={data:e};if(r){var o=r.parseError(e);o&&(i=p({},i,{fragment:o.fragment,reason:o.name,args:o.args}))}return function(e){var t=e.data,r=e.reason,i=e.fragment,o=e.args,a=t.slice(0,10);return b({type:n.CustomError,reason:E(r,"No ABI for custom error "+a),data:t,fragment:i,args:o,selector:a,name:a})}(i)},e}(),S=function(){function e(){}var t=e.prototype;return t.predicate=function(e,t){var r;return!e&&(null==t||null==(r=t.message)?void 0:r.includes("rejected transaction"))},t.handle=function(e,t){var r,i,o,a;return a=void 0===(o=(i={data:null,reason:null!=(r=t.error.message)?r:"The transaction was rejected"}).data)?null:o,b({type:n.UserRejectError,reason:E(i.reason,"User has rejected the transaction"),data:a})},e}(),_=function(){function e(){}var t=e.prototype;return t.predicate=function(e,t){var r;return!e&&t.message&&!(null!=t&&null!=(r=t.message)&&r.includes("rejected transaction"))&&void 0!==t.code},t.handle=function(e,t){var r,i,o,a,s,l,u,c=t.error,d=null!=(r=null!=(i=null==(o=c.info)||null==(a=o.error)?void 0:a.message)?i:c.shortMessage)?r:c.message;return u=(s={data:null,name:c.code,reason:d}).name,b({type:n.RpcError,reason:E(s.reason,"Error from JSON RPC provider"),data:null,name:null!=(l=null==u?void 0:u.toString())?l:null})},e}(),x=function(){function e(e,t){this.errorInterface=void 0,this.errorHandlers=[],this.errorInterface=t,this.errorHandlers=e.map(function(e){return{predicate:e.predicate,handle:e.handle}})}var t=e.prototype;return t.getContractOrTransactionError=function(e){try{var t=e.receipt;return t?Promise.resolve(this.getTransactionError(t)).then(function(t){return t||e}):Promise.resolve(e)}catch(e){return Promise.reject(e)}},t.getTransactionError=function(e){try{if(!e||0!==e.status)return Promise.resolve(void 0);var t=e.provider;return Promise.resolve(t.getTransaction(e.hash)).then(function(e){return function(r,n){try{var i=Promise.resolve(t.call(p({},e,{maxFeePerGas:void 0,maxPriorityFeePerGas:void 0}))).then(function(){return null})}catch(e){return e}return i&&i.then?i.then(void 0,function(e){return e}):i}()})}catch(e){return Promise.reject(e)}},t.getDataFromError=function(e){var t,r,n=null!=(t=e.data)?t:null==(r=e.error)?void 0:r.data;if(void 0!==n){var i="string"==typeof n?n:n.data;if("object"==typeof i&&i.data&&(i=i.data),void 0!==i&&"string"==typeof i)return i}},t.decode=function(e){try{var t,r=this;return e instanceof Error?Promise.resolve(r.getContractOrTransactionError(e)).then(function(e){for(var t,n,i=r.getDataFromError(e),o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return g(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.errorHandlers);!(n=o()).done;){var a=n.value,s=a.handle;if((0,a.predicate)(i,e))return s(i,{errorInterface:r.errorInterface,error:e})}return v({data:i,reason:null!=(t=null==e?void 0:e.message)?t:"Unexpected error",name:null==e?void 0:e.name})}):Promise.resolve(v({data:void 0,reason:null!=(t=e.message)?t:"Invalid error"}))}catch(e){return Promise.reject(e)}},e.create=function(t,r){void 0===r&&(r={});var n,i=r.additionalErrorHandlers;if(t){var o=t.flatMap(function(e){return e instanceof u.KA?e.fragments.filter(function(e){return h.bp.isFragment(e)}):e.filter(function(e){return"error"===e.type||h.bp.isFragment(e)})});n=new u.KA(o)}return new e([new T,new w,new A,new N,new S,new _].concat(null!=i?i:[]),n)},e}(),I=Object.defineProperty,O=Object.defineProperties,R=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,k=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t||(t={}))M.call(t,r)&&k(e,r,t[r]);if(P)for(var r of P(t))C.call(t,r)&&k(e,r,t[r]);return e},D=(e,t)=>O(e,R(t)),B=(e,t,r)=>k(e,"symbol"!=typeof t?t+"":t,r),V=(e,t,r)=>new Promise((n,i)=>{var o=e=>
8{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())}),F=x.create();function U(e){return V(this,null,function*(){var t;let r=yield F.decode(e),n=null!=(t=r.reason)?t:"";return console.error("parsedError",r),D(L({},r),{message:j(n)})})}function j(e){let t=["ethers-user-denied: ","ethers-unsupported: "];if("string"!=typeof e)return e;for(let r of t)if(e.startsWith(r))return e.replace(r,"");return e}function H(e){var t;if(!i.bJ(e,"CALL_EXCEPTION"))return!1;if(null!==e.data||null!==e.reason||null!==e.revert)return!0;let r=null==(t=e.info)?void 0:t.error;return"string"==typeof(null==r?void 0:r.message)&&/execution reverted/iu.test(r.message)}var G=class{constructor(){B(this,"_provider"),B(this,"_originalProvider")}parseUnits(e,t){return o.XS(e,t).toString()}formatUnits(e,t){return o.Js(e,t)}set provider(e){this._provider=new s(e,"any"),this._originalProvider=e}get browserProvider(){if(!this._provider)throw Error("browserProvider is not initialized");return this._provider}signTypedData(e,t){return V(this,null,function*(){var r;return yield null==(r=this.browserProvider)?void 0:r.send("eth_signTypedData_v4",[e,t])})}call(e,t,r,n){return V(this,null,function*(){let i=["approve"];if(this._originalProvider.agwWallet&&i.includes(t))try{return{hash:yield this._originalProvider.writeContract({abi:n.abi,address:e,functionName:t,args:r})}}catch(e){throw yield U(e)}let o=yield this.browserProvider.getSigner();return new l.NZ(e,n.abi,o)[t].apply(null,r).catch(e=>V(this,null,function*(){throw yield U(e)}))})}send(e,t){return this.browserProvider.send(e,t)}sendTransaction(e,t,r,n){return V(this,null,function*(){var i;let o=yield null==(i=this.browserProvider)?void 0:i.getSigner();if(!o)throw Error("singer is not exist");let a=new l.NZ(e,n.abi,this.browserProvider).interface.encodeFunctionData(t,r.data),s={from:r.from,to:r.to,data:a,value:r.value};try{if("depositTo"===t)return yield this._originalProvider.sendTransaction({to:e,data:a,value:r.value});return yield o.sendTransaction(s)}catch(e){throw yield U(e)}})}pollTransactionReceiptWithBackoff(e,t=1e3,r=6e3,n=30){return V(this,null,function*(){let i=t,o=0;for(;o<n;){try{let t=yield this.browserProvider.getTransactionReceipt(e);if(t)return t}catch(e){}yield new Promise(e=>setTimeout(e,i)),i=Math.min(2*i,r),o++}throw Error("Transaction did not complete after maximum retries.")})}callOnChain(e,t,r,n,i){let o=new a.FR(e.public_rpc_url);return new l.NZ(t,i.abi,o)[r].apply(null,n).catch(e=>V(null,null,function*(){throw yield U(e)}))}getBalance(e){return this.browserProvider.getBalance(e).then(e=>e)}getBalances(e){return V(this,null,function*(){if(!e||0===e.length)return[];let t="0xcA11bde05977b3631167028862bE2a173976CA11",r=["function tryAggregate(bool requireSuccess, tuple(address target, bytes callData)[] calls) public view returns (tuple(bool success, bytes returnData)[] returnData)","function getEthBalance(address addr) view returns (uint256 balance)"],n=["function balanceOf(address account) view returns (uint256)"];try{let i=yield this.browserProvider.getSigner(),o=yield i.getAddress(),a=new u.KA(n),s=new u.KA(r),d=yield this.browserProvider.getCode(t);if("0x"===d)return Promise.all(e.map(e=>V(this,null,function*(){var t;let r;if((0,c.wS)(e))return(yield this.browserProvider.getBalance(o)).toString();try{r=yield this.browserProvider.call({to:e,data:a.encodeFunctionData("balanceOf",[o])})}catch(e){if(H(e))return console.warn("Failed to fetch token balance:",e),"0";throw e}if("0x"===r)return"0";try{let e=a.decodeFunctionResult("balanceOf",r);return(null==(t=null==e?void 0:e[0])?void 0:t.toString())||"0"}catch(e){return console.warn("Failed to decode balanceOf result:",e),"0"}})));let f=new l.NZ(t,r,this.browserProvider),h=e.map(e=>(0,c.wS)(e)?{target:t,callData:s.encodeFunctionData("getEthBalance",[o])}:{target:e,callData:a.encodeFunctionData("balanceOf",[o])});return(yield f.tryAggregate.staticCall(!1,h)).map((t,r)=>{var n;let[i,o]=t;if(!i||"0x"===o)return"0";{let t=e[r],i=(0,c.wS)(t);try{let e;return e=i?s.decodeFunctionResult("getEthBalance",o):a.decodeFunctionResult("balanceOf",o),(null==(n=null==e?void 0:e[0])?void 0:n.toString())||"0"}catch(e){return console.warn("Failed to decode balanceOf result:",e),"0"}}})}catch(e){throw console.error("getBalances error",e),yield U(e)}})}estimateGasFee(e,t,r,n){return V(this,null,function*(){var i,o;let a=new l.NZ(e,n.abi,this.browserProvider).interface.encodeFunctionData(t,r.data),s={from:r.from,to:r.to,data:a,value:r.value},u=BigInt(0),c=BigInt(8e5);try{u=yield null==(i=this.browserProvider)?void 0:i.estimateGas(s)}catch(e){u=c,console.error("estimateGasFee error",e)}let d=yield this.browserProvider.getFeeData(),f=null!=(o=d.gasPrice)?o:d.maxFeePerGas;if(!f)throw Error("gasPrice is not available");return u*f})}}},89497:(e,t,r)=>{"use strict";var n=r(13741),i=r(54911);function o(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:o,s=i.useSyncExternalStore,l=n.useRef,u=n.useEffect,c=n.useMemo,d=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=l(null);if(null===o.current){var f={hasValue:!1,value:null};o.current=f}else f=o.current;var h=s(e,(o=c(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,s=r)}var o,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],o[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),d(h),h}},89889:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="[object Object]",c="[object Function]",d="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",g="function"==typeof Symbol&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if("object"==typeof document){var E=document.all;l.call(E)===l.call(document.all)&&(y=function(e){if((m||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return(t===f||t===h||t===p||t===u)&&null==e("")}catch(e){}return!1})}
8e.exports=i?function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(g)return s(e);if(a(e))return!1;var t=l.call(e);return(t===c||t===d||!!/^\[object HTML/.test(t))&&s(e)}},89932:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},91158:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(72606),o=Object.keys,a=o?function(e){return o(e)}:r(99720),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},91555:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},91653:(e,t,r)=>{"use strict";r.d(t,{Xq:()=>s,ct:()=>L,fq:()=>eP});var n=r(52561),i=r(55481),o=Object.defineProperty,a=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})};"undefined"!=typeof window&&(window.__ORDERLY_VERSION__=window.__ORDERLY_VERSION__||{},window.__ORDERLY_VERSION__["@orderly.network/perp"]="5.2.1");var s={};function l(e,t){return new n.Ww(e).mul(t).abs().toNumber()}function u(e){return e.reduce((e,t)=>e+l(t.position_qty,t.mark_price),0)}function c(e){return new n.Ww(e.qty).mul(e.markPrice-e.openPrice).toNumber()}function d(e){let{openPrice:t,IMR:r}=e;return 0===e.unrealizedPnL||0===e.positionQty||0===t||0===r?0:new n.Ww(e.unrealizedPnL).div(new n.Ww(Math.abs(e.positionQty)).mul(t).mul(r)).toNumber()}function f(e){return e.reduce((e,t)=>e+c({qty:t.position_qty,openPrice:t.average_open_price,markPrice:t.mark_price}),0)}a(s,{MMR:()=>_,estOffsetForTP:()=>O,estPnLForSL:()=>P,estPnLForTP:()=>x,estPriceForTP:()=>I,estPriceFromOffsetForTP:()=>R,liqPrice:()=>w,liquidationPriceIsolated:()=>k,maintenanceMargin:()=>A,maxPositionLeverage:()=>C,maxPositionNotional:()=>M,notional:()=>l,totalNotional:()=>u,totalUnrealizedPnL:()=>f,totalUnsettlementPnL:()=>S,unrealizedPnL:()=>c,unrealizedPnLROI:()=>d,unsettlementPnL:()=>N});var h=.8,p=6e-4,g=.995,m=(...e)=>{if(0===e.length)throw Error("DMax requires at least one argument");let t=e.map(e=>e instanceof n.Ww?e:new n.Ww(e)),r=t[0];for(let e=1;e<t.length;e++)t[e].gte(r)&&(r=t[e]);return r},y=30,E=1e-4,b=e=>e.reduce((e,t)=>e.add(new n.Ww(t.position_qty).abs().mul(t.mark_price).mul(t.mmr)),n.v_),v=(e,t,r,i,o)=>{let a=new n.Ww(e),s=new n.Ww(t).abs(),l=s.mul(r).sub(t);return m(new n.Ww(i).sub(s.mul(a).mul(r)).sub(b(o)).div(l).add(a),n.v_)},T=e=>t=>{let{totalCollateral:r,positionQty:i,markPrice:o,baseMMR:a,baseIMR:s,IMRFactor:l,positions:u}=e,c=new n.Ww(i),d=new n.Ww(r).sub(c.mul(o)).add(c.mul(t)),f=c.abs().mul(t).mul(Math.max(a,new n.Ww(a).div(s).mul(l).mul(c.mul(t).abs().toPower(h)).toNumber())).add(b(u));return d.gte(f)};function w(e){let{positionQty:t,markPrice:r,totalCollateral:i,positions:o,MMR:a,baseMMR:s,baseIMR:l,IMRFactor:u,symbol:c}=e;if(0===t||0===i)return null;let d=t>0,f=o.filter(e=>e.symbol!==c);if(d){let e=v(r,t,s,i,f),o=v(r,t,a,i,f),c=T({totalCollateral:i,positionQty:t,markPrice:r,baseIMR:l,baseMMR:s,IMRFactor:u,positions:f});for(let t=0;t<y&&!e.gte(o);t++){let t=new n.Ww(e).add(o).div(2);if(c(t)?o=t:e=t,o.sub(e).div(e.add(o)).mul(2).lte(E))break}return o.toNumber()}{let e=v(r,t,a,i,f),o=v(r,t,Math.max(l,new n.Ww(s).div(l).mul(u).mul(new n.Ww(t).mul(e).abs().toPower(h)).toNumber()),i,f),c=T({totalCollateral:i,positionQty:t,markPrice:r,baseMMR:s,baseIMR:l,IMRFactor:u,positions:f});for(let t=0;t<y&&!o.gte(e);t++){let t=o.add(e).div(2);if(c(t)?o=t:e=t,e.sub(o).div(o.add(e)).mul(2).lte(E))break}return o.toNumber()}}function A(e){let{positionQty:t,markPrice:r,MMR:i}=e;return new n.Ww(t).mul(r).mul(i).abs().toNumber()}function N(e){let{positionQty:t,markPrice:r,costPosition:i,sumUnitaryFunding:o,lastSumUnitaryFunding:a}=e,s=new n.Ww(t);return s.mul(r).sub(i).sub(s.mul(new n.Ww(o).sub(a))).toNumber()}function S(e){return Array.isArray(e)&&0!==e.length?e.reduce((e,t)=>
8e+N({positionQty:t.position_qty,markPrice:t.mark_price,costPosition:t.cost_position,sumUnitaryFunding:t.sum_unitary_funding,lastSumUnitaryFunding:t.last_sum_unitary_funding}),0):0}function _(e){let{baseMMR:t,baseIMR:r,IMRFactor:i,positionNotional:o,IMR_factor_power:a=h}=e;return Math.max(t,new n.Ww(t).div(r).mul(i).mul(Math.pow(Math.abs(o),a)).toNumber())}function x(e){return new n.Ww(e.positionQty).mul(new n.Ww(e.price).sub(e.entryPrice)).toNumber()}function I(e){return new n.Ww(e.pnl).div(e.positionQty).add(e.entryPrice).toNumber()}function O(e){return new n.Ww(e.price).div(e.entryPrice).toNumber()}function R(e){return new n.Ww(e.offset).add(e.entryPrice).toNumber()}function P(e){return 0}function M(e){let{leverage:t,IMRFactor:r}=e;return new n.Ww(1).div(new n.Ww(t).mul(r)).pow(1.25).toNumber()}function C(e){let{IMRFactor:t,notional:r}=e;return new n.Ww(1).div(new n.Ww(t).mul(new n.Ww(r).pow(.8))).toNumber()}function k(e){let t,r,{isolatedPositionMargin:i,costPosition:o,positionQty:a,sumUnitaryFunding:s,lastSumUnitaryFunding:l,baseMMR:u,baseIMR:c,IMRFactor:d,referencePrice:f,orderSide:g,orderQty:m=0,leverage:y,isoTakerFeeBuffer:E=p}=e,b=null!=f?f:0;if(b<=0&&0!==m)return null;let v="BUY"===g?1:"SELL"===g?-1:0,T=a+v*m;if(0===T)return null;let w=()=>new n.Ww(1).div(y).add(E);0===m?(t=new n.Ww(i),r=new n.Ww(o)):0===a||v>0&&a>0||v<0&&a<0?(t=new n.Ww(i).add(new n.Ww(m).mul(b).mul(w())),r=new n.Ww(o).add(new n.Ww(v).mul(m).mul(b))):(T>0?1:-1)==(a>0?1:-1)?(t=new n.Ww(i).mul(T).div(a),r=new n.Ww(o).add(new n.Ww(v).mul(m).mul(b))):(t=new n.Ww(Math.abs(T)).mul(b).mul(w()),r=new n.Ww(T).mul(b));let A=new n.Ww(T).mul(new n.Ww(s).sub(l)),N=new n.Ww(Math.abs(T)).mul(b),S=new n.Ww(u).div(c).mul(d).mul(N.toPower(h)).toNumber(),_=Math.max(u,S),x=new n.Ww(Math.abs(T)).mul(_).sub(T);if(x.isZero())return null;let I=t.sub(r).sub(A).div(x).toNumber();return I<=0?null:I}var L={};function D(e){let{totalUnsettlementPnL:t,USDCHolding:r,nonUSDCHolding:i,totalIsolatedPositionMargin:o=0}=e;return i.reduce((e,t)=>new n.Ww(t.holding).mul(t.indexPrice).add(e),n.v_).add(r).add(o).add(t)}function B(e){let t=e.totalCollateral.sub(e.totalInitialMarginWithOrders);return t.isNegative()?n.v_:t}a(L,{IMR:()=>W,LTV:()=>eS,MMR:()=>eN,additionalIsolatedOrderFrozen:()=>em,additionalIsolatedOrderFrozenByOrders:()=>eg,availableBalance:()=>ew,availableBalanceForIsolatedMargin:()=>
8eA,buyOrdersFilter_by_symbol:()=>q,calcMinimumReceived:()=>eI,collateralContribution:()=>j,collateralRatio:()=>U,currentLeverage:()=>eT,extractSymbols:()=>ei,freeCollateral:()=>B,freeCollateralUSDCOnly:()=>H,getPositonsAndOrdersNotionalBySymbol:()=>J,getQtyFromOrdersBySide:()=>X,getQtyFromPositions:()=>$,groupOrdersBySymbol:()=>en,isolatedMarginRate:()=>ec,isolatedPendingOrdersFrozen:()=>ep,maxAdd:()=>eO,maxQty:()=>es,maxQtyByLong:()=>el,maxQtyByShort:()=>eu,maxQtyForIsolatedMargin:()=>ey,maxReduce:()=>eR,maxWithdrawalOtherCollateral:()=>ex,maxWithdrawalUSDC:()=>e_,normalizeCollateralCap:()=>V,otherIMs:()=>ea,positionNotionalWithOrder_by_symbol:()=>K,positionQtyWithOrders_by_symbol:()=>z,positiveCollateralContribution:()=>F,sellOrdersFilter_by_symbol:()=>Y,totalCollateral:()=>G,totalInitialMarginWithQty:()=>ee,totalMarginRatio:()=>eb,totalUnrealizedROI:()=>ev,totalValue:()=>D});var V=(e,t)=>-1===t?e:Math.max(t,0),F=e=>{let{collateralQty:t,collateralCap:r,collateralRatio:i,indexPrice:o}=e;if(t<=0||!Number.isFinite(o)||o<=0)return new n.Ww(0);let a=V(t,r);return new n.Ww(Math.min(t,a)).mul(i).mul(o)},U=e=>{let{baseWeight:t,discountFactor:r,collateralQty:i,collateralCap:o,indexPrice:a}=e,s=V(i,o),l=new n.Ww(1.2),u=new n.Ww(r||0),c=new n.Ww(Math.min(i,s)).mul(a).abs(),d=u.mul(c.toPower(h)),f=l.div(new n.Ww(1).add(d));return f.lt(t)?f:new n.Ww(t)},j=e=>{let{collateralQty:t,collateralCap:r,collateralRatio:n,indexPrice:i}=e;return F({collateralQty:t,collateralCap:r,collateralRatio:n,indexPrice:i}).toNumber()};function H(e){let{freeCollateral:t,nonUSDCHolding:r}=e,i=r.reduce((e,t)=>{var r;let i=new n.Ww(t.holding).add(null!=(r=t.pendingShort)?r:0).toNumber();return!1===t.isCollateral?e:e.add(F({collateralQty:i,collateralCap:t.collateralCap,collateralRatio:t.collateralRatio,indexPrice:t.indexPrice}))},n.v_),o=t.sub(i);return o.isNegative()?n.v_:o}function G(e){let{USDCHolding:t,nonUSDCHolding:r,unsettlementPnL:i,usdcBalancePendingShortQty:o=0,usdcBalanceIsolatedOrderFrozen:a=0,totalCrossUnsettledPnL:s}=e,l=new n.Ww(t).add(o).sub(Math.abs(a)),u=!1,c=r.reduce((e,t)=>{var r;let i=new n.Ww(t.holding).add(null!=(r=t.pendingShort)?r:0).toNumber();return i<0?!Number.isFinite(t.indexPrice)||t.indexPrice<=0?(u=!0,e):e.add(new n.Ww(i).mul(t.indexPrice)):!1===t.isCollateral?e:e.add(F({collateralQty:i,collateralCap:t.collateralCap,collateralRatio:t.collateralRatio,indexPrice:t.indexPrice}))},n.v_);if(u)return n.v_;let d=void 0!==s?s:i;return l.add(c).add(d)}function K(e){return new n.Ww(e.markPrice).mul(e.positionQtyWithOrders)}function z(e){let{positionQty:t,buyOrdersQty:r,sellOrdersQty:i}=e,o=new n.Ww(t);return Math.max(o.add(r).abs().toNumber(),o.sub(i).abs().toNumber())}function W(e){let{maxLeverage:t,baseIMR:r,IMR_Factor:i,positionNotional:o,ordersNotional:a,IMR_factor_power:s=h}=e;return Math.max(1/t,r,new n.Ww(i).mul(new n.Ww(o).add(a).abs().toPower(s)).toNumber())}function q(e,t){return e.filter(e=>e.symbol===t&&e.side===i.Mf.BUY)}function Y(e,t){return e.filter(e=>e.symbol===t&&e.side===i.Mf.SELL)}function $(e,t){if(!e)return 0;let r=e.find(e=>e.symbol===t);return(null==r?void 0:r.position_qty)||0}function X(e,t,r){return(r===i.Mf.SELL?Y(e,t):q(e,t)).reduce((e,t)=>e+t.quantity,0)}function J(e){let{positions:t,orders:r,symbol:o,markPrice:a}=e,s=$(t,o),l=X(r,o,i.Mf.BUY),u=X(r,o,i.Mf.SELL),c=new n.Ww(a);return c.mul(s).add(c.mul(new n.Ww(l).add(u))).abs().toNumber()}function Q(e){let{symbol:t,positionQty:r,buyOrdersQty:i,sellOrdersQty:o,markPrice:a,IMR_Factors:s,symbolInfo:l,symbolMaxLeverage:u}=e,c=K({markPrice:a,positionQtyWithOrders:z({positionQty:r,buyOrdersQty:i,sellOrdersQty:o})}),d=new n.Ww(a),f=Z({positionNotional:d.mul(r).toNumber(),ordersNotional:d.mul(new n.Ww(i).sub(o)).toNumber(),maxLeverage:u,IMR_Factor:s[t],baseIMR:l[t]("base_imr",0)});return c.mul(f).toNumber()}function Z(e){let{maxLeverage:t,baseIMR:r,IMR_Factor:i,positionNotional:o,ordersNotional:a,IMR_factor_power:s=h}=e;return Math.max(1/t,r,0===i?0:new n.Ww(i).mul(new n.Ww(o).add(a).abs().toPower(s)).toNumber())}function ee(e){let{positions:t,orders:r,markPrices:o,IMR_Factors:a,symbolInfo:s,maxLeverageBySymbol:l}=e,u=t.filter(e=>e.margin_mode!==i.iU.ISOLATED),c=(null!=r?r:[]).filter(e=>e.margin_mode!==i.iU.ISOLATED),d=void 0===r,f=u.reduce((e,t)=>
8(!e[t.symbol]&&t.leverage&&(e[t.symbol]=t.leverage),e),{});return er(u,c).map(e=>{var t,r;let n=$(u,e),h=o[e]||0,p=d?et(u,e,"pending_long_qty"):X(c,e,i.Mf.BUY),g=d?et(u,e,"pending_short_qty"):X(c,e,i.Mf.SELL),m=null!=(r=null!=(t=f[e])?t:null==l?void 0:l[e])?r:1;return Q({symbol:e,positionQty:n,buyOrdersQty:p,sellOrdersQty:g,markPrice:h,IMR_Factors:a,symbolInfo:s,symbolMaxLeverage:m})}).reduce((e,t)=>e.add(t),n.v_).toNumber()}function et(e,t,r){return e.filter(e=>e.symbol===t).reduce((e,t)=>{var n;return e.add(Math.max(null!=(n=t[r])?n:0,0))},n.v_).toNumber()}function er(e,t){let r=new Set;return e.forEach(e=>{r.add(e.symbol)}),t.forEach(e=>{r.add(e.symbol)}),Array.from(r)}function en(e){let t={};return e.forEach(e=>{t[e.symbol]||(t[e.symbol]=[]),t[e.symbol].push(e)}),t}function ei(e,t){let r=new Set;return e.forEach(e=>{r.add(e.symbol)}),t.forEach(e=>{r.add(e.symbol)}),Array.from(r)}function eo(e){let{maxLeverage:t,baseIMR:r,IMR_Factor:i,positionNotional:o,ordersNotional:a,IMR_factor_power:s=.8}=e;return Math.max(1/t,r,new n.Ww(i).mul(new n.Ww(o).add(a).abs().toPower(s)).toNumber())}function ea(e){let{positions:t,IMR_Factors:r,symbolInfo:i,markPrices:o}=e;return t.map(e=>e.symbol).reduce((e,a)=>{let s=a;if(void 0===o[s])return console.warn("markPrices[%s] is undefined",s),e;let l=new n.Ww(o[s]||0),u=t.find(e=>e.symbol===s),c=$(t,s),d=l.mul(c).toNumber(),f=u.pending_long_qty,h=u.pending_short_qty,p=l.mul(new n.Ww(f).add(h)).toNumber(),g=r[s];if(void 0===g)return console.warn("IMR_Factor is not found:",s),e;let m=eo({maxLeverage:(null==u?void 0:u.leverage)||1,IMR_Factor:g,baseIMR:i[s]("base_imr",0),positionNotional:d,ordersNotional:p}),y=z({positionQty:c,buyOrdersQty:f,sellOrdersQty:h}),E=K({markPrice:o[s]||0,positionQtyWithOrders:y});return e.add(E.mul(m))},n.v_).toNumber()}function es(e,t,r){return e===i.Mf.BUY?el(t):eu(t)}function el(e,t){try{let{baseMaxQty:t,totalCollateral:r,otherIMs:i,maxLeverage:o,baseIMR:a,markPrice:s,IMR_Factor:l,positionQty:u,buyOrdersQty:c,takerFeeRate:d}=e;if(0===r)return 0;let f=new n.Ww(r),h=f.sub(i).div(new n.Ww(d).mul(2).mul(1e-4).add(Math.max(1/o,a))).div(s).mul(.995).sub(new n.Ww(u).add(c)).toNumber();if(0===u&&0===c||0===l)return Math.min(t,h);let p=f.sub(i).div(l).toPower(1/1.8).div(s).sub(new n.Ww(u).add(c)).div(new n.Ww(d).mul(2).mul(1e-4).add(1)).mul(.995).toNumber();return Math.min(t,h,p)}catch(e){return 0}}function eu(e,t){try{let{baseMaxQty:t,totalCollateral:r,otherIMs:i,maxLeverage:o,baseIMR:a,markPrice:s,IMR_Factor:l,positionQty:u,buyOrdersQty:c,sellOrdersQty:d,takerFeeRate:f}=e,h=new n.Ww(r),p=h.sub(i).div(new n.Ww(f).mul(2).mul(1e-4).add(Math.max(1/o,a))).div(s).mul(.995).add(u).sub(Math.abs(d)).toNumber();if(0===u&&0===d||0===l)return Math.min(t,p);let g=h.sub(i).div(l).toPower(1/1.8).div(s).add(u).sub(d).div(new n.Ww(f).mul(2).mul(1e-4).add(1)).mul(.995).toNumber();return Math.min(t,p,g)}catch(e){return 0}}function ec(e){var t;return new n.Ww(1).div(e.leverage).toDecimalPlaces(10,n.Ww.ROUND_UP).add(null!=(t=e.isoTakerFeeBuffer)?t:p)}var ed=(e,t)=>{var r,n;return e.referencePrice!==t.referencePrice?e.side===i.Mf.BUY?t.referencePrice-e.referencePrice:e.referencePrice-t.referencePrice:(null!=(r=e.createdTime)?r:0)-(null!=(n=t.createdTime)?n:0)},ef=6,eh=e=>e.toDecimalPlaces(ef,n.Ww.ROUND_UP);function ep(e){let{positionQty:t,orders:r,leverage:o,isoTakerFeeBuffer:a}=e,s=ec({leverage:o,isoTakerFeeBuffer:a}),l=t>0?i.Mf.SELL:t<0?i.Mf.BUY:null,u=new n.Ww(0),c=new n.Ww(t).abs();if(null!==l)for(let e of r.filter(e=>e.side===l).sort(ed)){if(c.lte(0)){u=u.add(eh(new n.Ww(e.referencePrice).mul(e.quantity).mul(s)));continue}let t=new n.Ww(e.quantity),r=t.lt(c)?t:c,i=t.sub(r);c=c.sub(r),i.gt(0)&&(u=u.add(eh(new n.Ww(e.referencePrice).mul(i).mul(s))))}for(let e of r)(null===l||e.side!==l)&&(u=u.add(eh(new n.Ww(e.referencePrice).mul(e.quantity).mul(s))));return u}function eg(e){let{positionQty:t,newOrders:r,pendingOrders:i,leverage:o,isoTakerFeeBuffer:a}=e,s=ep({positionQty:t,orders:i,leverage:o,isoTakerFeeBuffer:a}),l=ep({positionQty:t,orders:[...i,...r],leverage:o,isoTakerFeeBuffer:a}).sub(s);return l.gt(0)?l:new n.Ww(0)}function em(e){let{newOrderNotional:t,pendingOrders:r=[],existingFrozen:i=0,leverage:o,isoTakerFeeBuffer:a=p}=e,s=r.reduce((e,t)=>
8e.add(new n.Ww(t.referencePrice).mul(t.quantity)),new n.Ww(t)).mul(ec({leverage:o,isoTakerFeeBuffer:a})).sub(i);return s.gt(0)?s:new n.Ww(0)}function ey(e){let{orderSide:t,currentOrderReferencePrice:r,availableBalance:o,leverage:a,IMR_Factor:s,markPrice:l,positionQty:u,pendingLongOrders:c,pendingSellOrders:d,symbolMaxNotional:f,epsilon:h=1,isoTakerFeeBuffer:m=p}=e,y=ec({leverage:a,isoTakerFeeBuffer:m}),E=Math.min(new n.Ww(1).div(new n.Ww(a).mul(s)).pow(5/4).toNumber(),f);if(t===i.Mf.BUY)if(!(u>=0))return eE({currentOrderReferencePrice:r,availableBalance:o,leverage:a,baseIMR:e.baseIMR,IMR_Factor:s,positionQty:u,pendingLongOrders:c,pendingSellOrders:d,isoOrderFrozenLong:e.isoOrderFrozenLong,isoOrderFrozenShort:e.isoOrderFrozenShort,isoTakerFeeBuffer:m,isolatedPendingOrders:e.isolatedPendingOrders},E,h,i.Mf.BUY);else{let e=c.reduce((e,t)=>e+new n.Ww(t.referencePrice).mul(t.quantity).toNumber(),0);return Math.max(0,Math.min(new n.Ww(o).div(y).div(r).mul(g).toNumber(),new n.Ww(E).sub(new n.Ww(l).mul(u)).sub(e).div(r).toNumber()))}if(!(u<=0))return eE({currentOrderReferencePrice:r,availableBalance:o,leverage:a,baseIMR:e.baseIMR,IMR_Factor:s,positionQty:u,pendingLongOrders:c,pendingSellOrders:d,isoOrderFrozenLong:e.isoOrderFrozenLong,isoOrderFrozenShort:e.isoOrderFrozenShort,isoTakerFeeBuffer:m,isolatedPendingOrders:e.isolatedPendingOrders},E,h,i.Mf.SELL);{let e=d.reduce((e,t)=>e+new n.Ww(t.referencePrice).mul(t.quantity).toNumber(),0);return Math.max(0,Math.min(new n.Ww(o).div(y).div(r).mul(g).toNumber(),new n.Ww(E).sub(new n.Ww(l).mul(Math.abs(u))).sub(e).div(r).toNumber()))}}function eE(e,t,r,o){let{currentOrderReferencePrice:a,availableBalance:s,leverage:l,positionQty:u,pendingLongOrders:c,pendingSellOrders:d,isoOrderFrozenLong:f,isoOrderFrozenShort:h,isoTakerFeeBuffer:p,isolatedPendingOrders:g}=e;e.baseIMR,e.IMR_Factor;let m=Math.max(0,Math.max(0,Math.abs(u))-(o===i.Mf.BUY?c.reduce((e,t)=>e+t.quantity,0):d.reduce((e,t)=>e+t.quantity,0))),y=new n.Ww(t).div(a).add(Math.abs(u)).toNumber();for(let e=0;e<30;e++){let e=(m+y)/2,E=o===i.Mf.BUY?c:d,b=o===i.Mf.BUY?f:h,v=void 0!==g?eg({positionQty:u,newOrders:[{side:o,referencePrice:a,quantity:e}],pendingOrders:g,leverage:l,isoTakerFeeBuffer:p}):em({newOrderNotional:new n.Ww(e).mul(a).toNumber(),pendingOrders:E,existingFrozen:b,leverage:l,isoTakerFeeBuffer:p}),T=o===i.Mf.BUY?u+e:u-e,w=new n.Ww(Math.abs(T)).mul(a),A=v.lte(s),N=w.lte(t);if(A&&N){if(m=e,new n.Ww(s).sub(v).lte(r))break}else y=e}return Math.max(0,m)}function eb(e,t){let{totalCollateral:r,markPrices:i,positions:o}=e;if(0===r)return 0;let a=new n.Ww(r),s=o.reduce((e,t)=>{let r=i[t.symbol]||0;return e.add(new n.Ww(t.position_qty).mul(r).abs())},n.v_);return s.eq(n.v_)?0:a.div(s).toNumber()}function ev(e){let{totalUnrealizedPnL:t,totalValue:r}=e;return new n.Ww(t).div(r-t).toNumber()}function eT(e){return 0===e?0:1/e}function ew(e){let{USDCHolding:t,unsettlementPnL:r}=e;return new n.Ww(t).add(r).toNumber()}function eA(e){return Math.max(0,Math.min(e.USDCHolding,new n.Ww(e.freeCollateral).sub(Math.max(e.totalCrossUnsettledPnL,0)).toNumber()))}function eN(e){return 0===e.positionsNotional||0===e.positionsMMR?null:new n.Ww(e.positionsMMR).div(e.positionsNotional).toNumber()}var eS=e=>{let{usdcBalance:t,upnl:r,assets:i}=e,o=new n.Ww(Math.min(t,0)).abs(),a=new n.Ww(Math.min(r,0)).abs(),s=o.add(a),l=i.reduce((e,t)=>e.add(new n.Ww(Math.max(t.qty,0)).mul(new n.Ww(t.indexPrice)).mul(new n.Ww(t.weight))),n.v_).add(new n.Ww(Math.max(r,0)));return s.isZero()||l.isZero()?0:s.div(l).toNumber()},e_=e=>{let{USDCBalance:t,freeCollateral:r,upnl:i}=e;return Math.max(0,Math.min(new n.Ww(t).toNumber(),new n.Ww(r).sub(Math.max(i,0)).toNumber()))},ex=e=>{let{USDCBalance:t,collateralQty:r,freeCollateral:i,indexPrice:o,weight:a}=e,s=new n.Ww(t).isNegative()?new n.Ww(o).mul(a).mul(new n.Ww(1).add(.002)):new n.Ww(o).mul(a);if(s.isZero())return n.v_;let l=new n.Ww(r),u=new n.Ww(i).div(s);return u.lt(l)?u:l},eI=e=>{let{amount:t,slippage:r}=e,i=new n.Ww(r).div(100);return new n.Ww(t).mul(new n.Ww(1).minus(i)).toNumber()};function eO(e){return eA(e)}function eR(e){let{isolatedPositionMargin:t,positionNotional:r,imr:n,positionUnsettledPnL:i}=e;return Math.max(0,t-r*n+Math.min(0,i))}var eP={};function eM(e,t){return e*(1+t)}function eC(e,t){return e*(1-t)}function ek(e,t,r){return"BUY"===r?e*(1-t):e*(1+t)}function eL(e){return new n.Ww(e.qty).mul(e.price).mul(e.futuresTakeFeeRate).toNumber()}function eD(e,t,r){let o=()=>{let o=a(e.markPrice)?e.markPrice:void 0,s="number"==typeof e.priceRange&&e.priceRange>0?e.priceRange:void 0;if(void 0!==o&&void 0!==s){let t=e.side===i.Mf.BUY?new n.Ww(o).mul(new n.Ww(1).add(s)):new n.Ww(o).mul(new n.Ww(1).sub(s)),r="number"==typeof e.pricePrecision&&e.pricePrecision>=0?t.toDecimalPlaces(e.pricePrecision,e.side===i.Mf.BUY?n.Ww.ROUND_FLOOR:n.Ww.ROUND_CEIL):t;return r.gt(0)?r.toNumber():null}return e.side===i.Mf.BUY?t>0?t:null:r>0?r:null},a=e=>"number"==typeof e&&Number.isFinite(e)&&e>0,{orderType:s,orderTypeExt:l,side:u}=e,c=a(e.limitPrice)?e.limitPrice:void 0,d=a(e.triggerPrice)?e.triggerPrice:void 0;if(s===i.ZN.LIMIT&&(l===i.ZN.ASK||l===i.ZN.BID))return i.Mf.BUY,l===i.ZN.ASK?a(t)?t:null:a(r)?r:null;switch(s){case i.ZN.LIMIT:case i.ZN.IOC:case i.ZN.FOK:case i.ZN.POST_ONLY:if(!c)return o();if(u===i.Mf.BUY)return c;return Math.max(c,a(r)?r:0);case i.ZN.MARKET:return o();case i.ZN.STOP_MARKET:if(d)return d;return o();case i.ZN.STOP_LIMIT:if(c)return c;return o();case i.ZN.TRAILING_STOP:if(d)return d;return o();default:return null}}function eB(e){var t,r;let i,o,{isolatedPositionMargin:a,costPosition:s,positionQty:l,sumUnitaryFunding:u,lastSumUnitaryFunding:c,markPrice:d,baseMMR:f,baseIMR:g,IMR_Factor:m,leverage:y,isoTakerFeeBuffer:E=p,newOrder:b}=e,v=null!=(t=null==b?void 0:b.qty)?t:0,T=l+v;if(0===T)return 0;let w=null!=(r=null==b?void 0:b.price)?r:d;if(d<=0||0!==v&&w<=0)return 0;let A=(e,t)=>
8e>0&&t>0||e<0&&t<0,N=()=>0===v?"NO_ORDER":0===l||A(v,l)?"OPEN_ADD":A(l,T)?"REDUCE":"FLIP",S=new n.Ww(T),_=S.abs(),x=new n.Ww(s),I=new n.Ww(a),O=new n.Ww(v).mul(w),R=()=>new n.Ww(1).div(y).add(E);switch(N()){case"NO_ORDER":i=I,o=x;break;case"OPEN_ADD":i=I.add(new n.Ww(Math.abs(v)).mul(w).mul(R())),o=x.add(O);break;case"REDUCE":i=I.mul(T).div(l),o=x.add(O);break;case"FLIP":i=_.mul(w).mul(R()),o=S.mul(w)}let P=S.mul(new n.Ww(u).sub(c)),M=_.mul(d),C=new n.Ww(f).div(g).mul(m).mul(M.toPower(h)).toNumber(),k=Math.max(f,C),L=_.mul(k).sub(S);return L.isZero()?0:Math.max(0,i.sub(o).sub(P).div(L).toNumber())}function eV(e){var t;let r,{positions:i,newOrder:o,totalCollateral:a,markPrice:s,baseIMR:l,baseMMR:u,orderFee:c,IMR_Factor:d}=e,f=n.v_,h=i.filter(e=>e.position_qty>0).length>0?s:o.price,p=new n.Ww(o.qty).mul(o.price);for(let e=0;e<i.length;e++){let t=i[e],a=new n.Ww(t.position_qty).mul(t.mark_price);o.symbol===t.symbol&&(r=t,a=a.add(p)),f=f.add(a.abs().mul(t.mmr))}r||(f=f.add(p.mul(u)));let g=Math.max(u,new n.Ww(u).div(l).mul(d).mul(p.add(r?new n.Ww(r.position_qty).mul(r.mark_price):n.v_).abs()).toPower(.8).toNumber()),m=new n.Ww(o.qty).add(null!=(t=null==r?void 0:r.position_qty)?t:0);if(m.eq(0))return 0;let y=m.abs().mul(g).sub(m);return y.eq(n.v_)?0:Math.max(0,new n.Ww(h).add(new n.Ww(a).sub(f).sub(c).div(y)).toNumber())}function eF(e){let{totalCollateral:t,positions:r,newOrder:i}=e;if(t<=0)return null;let o=!1,a=r.reduce((e,t)=>{let r=new n.Ww(t.position_qty).mul(t.mark_price);return t.symbol===i.symbol&&(o=!0,r=r.add(new n.Ww(i.qty).mul(i.price))),e.add(r.abs())},n.v_);if(o||(a=a.add(new n.Ww(i.qty).mul(i.price).abs())),a.eq(n.v_))return null;let s=new n.Ww(t).div(a);return new n.Ww(1).div(s).toDecimalPlaces(2,n.Ww.ROUND_HALF_EVEN).toNumber()}function eU(e){let t=(0,n.hy)({side:e.side,type:e.type,closePrice:e.closePrice,orderPrice:e.orderPrice}),{closePrice:r,orderPrice:i,leverage:o}=e;return new n.Ww(r).minus(i).div(i).mul(o).abs().mul(t).toNumber()}a(eP,{estLeverage:()=>eF,estLiqPrice:()=>eV,estLiqPriceIsolated:()=>eB,getOrderReferencePrice:()=>eD,maxPrice:()=>eM,minPrice:()=>eC,orderFee:()=>eL,scopePrice:()=>ek,tpslROI:()=>eU})},91669:function(e,t,r){"use strict";var n=r(14790).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFixedBeet=void 0;let o=i(r(25804));t.encodeFixedBeet=function(e,t){let r=n.alloc(e.byteSize);return e.write(r,0,t),o.default.encode(r)}},91860:e=>{"use strict";e.exports=Object},91962:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8766),i=r(92725),o=r(19260);let a=(0,n.A)(function(e,t){return e.map(function(e){for(var r,n=t,a=0;a<e.length;){if(null==n)return;r=e[a],n=(0,i.A)(r)?(0,o.A)(r,n):n[r],a+=1}return n})}),s=(0,n.A)(function(e,t){return a([e],t)[0]})},92194:(e,t,r)=>{"use strict";r.d(t,{UC:()=>tx,YJ:()=>tI,q7:()=>tR,JU:()=>tO,ZL:()=>t_,z6:()=>tP,bL:()=>tN,wv:()=>tM,Pb:()=>tC,l9:()=>tS});var n=r(13741),i=r(17980),o=r(85207),a=r(25721),s=r(18296),l=r(9227),u=r(13050),c=r(34864),d=r(63466),f=r(88686),h=r(2528),p=r(99652),g=r(59022),m=r(73258),y=r(94222),E=r(43169),b=r(82959),v=r(73456),T=r(42432),w=r(25906),A=r(42073),N=["Enter"," "],S=["ArrowUp","PageDown","End"],_=["ArrowDown","PageUp","Home",...S],x={ltr:[...N,"ArrowRight"],rtl:[...N,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},O="Menu",[R,P,M]=(0,u.N)(O),[C,k]=(0,a.A)(O,[M,g.Bk,E.RG]),L=(0,g.Bk)(),D=(0,E.RG)(),[B,V]=C(O),[F,U]=C(O),j=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=L(t),[u,d]=n.useState(null),f=n.useRef(!1),h=(0,v.c)(a),p=(0,c.jH)(o);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,A.jsx)(g.bL,{...l,children:(0,A.jsx)(B,{scope:t,open:r,onOpenChange:h,content:u,onContentChange:d,children:(0,A.jsx)(F,{scope:t,onClose:n.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:p,modal:s,children:i})})})};j.displayName=O;var H="MenuAnchor",G=n.forwardRef((e,t)=>
8{let{__scopeMenu:r,...n}=e,i=L(r);return(0,A.jsx)(g.Mz,{...i,...n,ref:t})});G.displayName=H;var K="MenuPortal",[z,W]=C(K,{forceMount:void 0}),q=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=V(K,t);return(0,A.jsx)(z,{scope:t,forceMount:r,children:(0,A.jsx)(y.C,{present:r||o.open,children:(0,A.jsx)(m.Z,{asChild:!0,container:i,children:n})})})};q.displayName=K;var Y="MenuContent",[$,X]=C(Y),J=n.forwardRef((e,t)=>{let r=W(Y,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=V(Y,e.__scopeMenu),a=U(Y,e.__scopeMenu);return(0,A.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,A.jsx)(y.C,{present:n||o.open,children:(0,A.jsx)(R.Slot,{scope:e.__scopeMenu,children:a.modal?(0,A.jsx)(Q,{...i,ref:t}):(0,A.jsx)(Z,{...i,ref:t})})})})}),Q=n.forwardRef((e,t)=>{let r=V(Y,e.__scopeMenu),a=n.useRef(null),s=(0,o.s)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,T.Eq)(e)},[]),(0,A.jsx)(et,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Z=n.forwardRef((e,t)=>{let r=V(Y,e.__scopeMenu);return(0,A.jsx)(et,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ee=(0,b.TL)("MenuContent.ScrollLock"),et=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:v,onDismiss:T,disableOutsideScroll:N,...x}=e,I=V(Y,r),O=U(Y,r),R=L(r),M=D(r),C=P(r),[k,B]=n.useState(null),F=n.useRef(null),j=(0,o.s)(t,F,I.onContentChange),H=n.useRef(0),G=n.useRef(""),K=n.useRef(0),z=n.useRef(null),W=n.useRef("right"),q=n.useRef(0),X=N?w.A:n.Fragment,J=N?{as:ee,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=G.current+e,i=C().filter(e=>!e.disabled),o=document.activeElement,a=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,s=eF(i.map(e=>e.textValue),n,a),l=null==(r=i.find(e=>e.textValue===s))?void 0:r.ref.current;!function e(t){G.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,f.Oh)();let Z=n.useCallback(e=>{var t,r;return W.current===(null==(t=z.current)?void 0:t.side)&&ej(e,null==(r=z.current)?void 0:r.area)},[]);return(0,A.jsx)($,{scope:r,searchRef:G,onItemEnter:n.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:n.useCallback(e=>{var t;Z(e)||(null==(t=F.current)||t.focus(),B(null))},[Z]),onTriggerLeave:n.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:K,onPointerGraceIntentChange:n.useCallback(e=>{z.current=e},[]),children:(0,A.jsx)(X,{...J,children:(0,A.jsx)(h.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.mK)(l,e=>{var t;e.preventDefault(),null==(t=F.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,A.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:v,onDismiss:T,children:(0,A.jsx)(E.bL,{asChild:!0,...M,dir:O.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:B,onEntryFocus:(0,i.mK)(p,e=>{O.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,A.jsx)(g.UC,{role:"menu","aria-orientation":"vertical","data-state":ek(I.open),"data-radix-menu-content":"",dir:O.dir,...R,...x,ref:j,style:{outline:"none",...x.style},onKeyDown:(0,i.mK)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Q(e.key));let i=F.current;if(e.target!==i||!_.includes(e.key))return;e.preventDefault();let o=C().filter(e=>!e.disabled).map(e=>e.ref.current);S.includes(e.key)&&o.reverse(),eB(o)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),G.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eH(e=>{let t=e.target,r=q.current!==e.clientX;e.currentTarget.contains(t)&&r&&(W.current=e.clientX>q.current?"right":"left",q.current=e.clientX)}))})})})})})})});J.displayName=Y;var er="MenuGroup",en=n.forwardRef((e,t)=>
8{let{__scopeMenu:r,...n}=e;return(0,A.jsx)(l.sG.div,{role:"group",...n,ref:t})});en.displayName=er;var ei="MenuLabel",eo=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,A.jsx)(l.sG.div,{...n,ref:t})});eo.displayName=ei;var ea="MenuItem",es="menu.itemSelect",el=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...s}=e,u=n.useRef(null),c=U(ea,e.__scopeMenu),d=X(ea,e.__scopeMenu),f=(0,o.s)(t,u),h=n.useRef(!1),p=()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(es,{bubbles:!0,cancelable:!0});e.addEventListener(es,e=>null==a?void 0:a(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}};return(0,A.jsx)(eu,{...s,ref:f,disabled:r,onClick:(0,i.mK)(e.onClick,p),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),h.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;h.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||N.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});el.displayName=ea;var eu=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...u}=e,c=X(ea,r),d=D(r),f=n.useRef(null),h=(0,o.s)(t,f),[p,g]=n.useState(!1),[m,y]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,A.jsx)(R.ItemSlot,{scope:r,disabled:a,textValue:null!=s?s:m,children:(0,A.jsx)(E.q7,{asChild:!0,...d,focusable:!a,children:(0,A.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:h,onPointerMove:(0,i.mK)(e.onPointerMove,eH(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eH(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>g(!0)),onBlur:(0,i.mK)(e.onBlur,()=>g(!1))})})})}),ec="MenuCheckboxItem",ed=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,A.jsx)(eb,{scope:e.__scopeMenu,checked:r,children:(0,A.jsx)(el,{role:"menuitemcheckbox","aria-checked":eL(r)?"mixed":r,...o,ref:t,"data-state":eD(r),onSelect:(0,i.mK)(o.onSelect,()=>null==n?void 0:n(!!eL(r)||!r),{checkForDefaultPrevented:!1})})})});ed.displayName=ec;var ef="MenuRadioGroup",[eh,ep]=C(ef,{value:void 0,onValueChange:()=>{}}),eg=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,v.c)(n);return(0,A.jsx)(eh,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,A.jsx)(en,{...i,ref:t})})});eg.displayName=ef;var em="MenuRadioItem",ey=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=ep(em,e.__scopeMenu),a=r===o.value;return(0,A.jsx)(eb,{scope:e.__scopeMenu,checked:a,children:(0,A.jsx)(el,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eD(a),onSelect:(0,i.mK)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});ey.displayName=em;var eE="MenuItemIndicator",[eb,ev]=C(eE,{checked:!1}),eT=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=ev(eE,r);return(0,A.jsx)(y.C,{present:n||eL(o.checked)||!0===o.checked,children:(0,A.jsx)(l.sG.span,{...i,ref:t,"data-state":eD(o.checked)})})});eT.displayName=eE;var ew="MenuSeparator",eA=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,A.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eA.displayName=ew;var eN="MenuArrow",eS=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=L(r);return(0,A.jsx)(g.i3,{...i,...n,ref:t})});eS.displayName=eN;var e_="MenuSub",[ex,eI]=C(e_),eO=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,a=V(e_,t),s=L(t),[l,u]=n.useState(null),[c,d]=n.useState(null),f=(0,v.c)(o);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,A.jsx)(g.bL,{...s,children:(0,A.jsx)(B,{scope:t,open:i,onOpenChange:f,content:c,onContentChange:d,children:(0,A.jsx)(ex,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:l,onTriggerChange:u,children:r})})})};eO.displayName=e_;var eR="MenuSubTrigger",eP=n.forwardRef((e,t)=>{let r=V(eR,e.__scopeMenu),a=U(eR,e.__scopeMenu),s=eI(eR,e.__scopeMenu),l=X(eR,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},h=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>h,[h]),n.useEffect(()=>
8{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,A.jsx)(G,{asChild:!0,...f,children:(0,A.jsx)(eu,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":ek(r.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eH(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eH(e=>{var t,n;h();let i=null==(t=r.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(n=r.content)?void 0:n.dataset.side,o="right"===t,a=o?-5:5,s=i[o?"left":"right"],u=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&x[a.dir].includes(t.key)){var i;r.onOpenChange(!0),null==(i=r.content)||i.focus(),t.preventDefault()}})})})});eP.displayName=eR;var eM="MenuSubContent",eC=n.forwardRef((e,t)=>{let r=W(Y,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=V(Y,e.__scopeMenu),u=U(Y,e.__scopeMenu),c=eI(eM,e.__scopeMenu),d=n.useRef(null),f=(0,o.s)(t,d);return(0,A.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,A.jsx)(y.C,{present:a||l.open,children:(0,A.jsx)(R.Slot,{scope:e.__scopeMenu,children:(0,A.jsx)(et,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=I[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function ek(e){return e?"open":"closed"}function eL(e){return"indeterminate"===e}function eD(e){return eL(e)?"indeterminate":e?"checked":"unchecked"}function eB(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function eV(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function eF(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=eV(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function eU(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}function ej(e,t){return!!t&&eU({x:e.clientX,y:e.clientY},t)}function eH(e){return t=>"mouse"===t.pointerType?e(t):void 0}eC.displayName=eM;var eG=j,eK=G,ez=q,eW=J,eq=en,eY=eo,e$=el,eX=ed,eJ=eg,eQ=ey,eZ=eT,e0=eA,e1=eS,e2=eO,e3=eP,e4=eC,e5="DropdownMenu",[e6,e8]=(0,a.A)(e5,[k]),e7=k(),[e9,te]=e6(e5),tt=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=e7(t),d=n.useRef(null),[f,h]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:l,caller:e5});return(0,A.jsx)(e9,{scope:t,triggerId:(0,p.B)(),triggerRef:d,contentId:(0,p.B)(),open:f,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:u,children:(0,A.jsx)(eG,{...c,open:f,onOpenChange:h,dir:i,modal:u,children:r})})};tt.displayName=e5;var tr="DropdownMenuTrigger",tn=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=te(tr,r),u=e7(r);return(0,A.jsx)(eK,{asChild:!0,...u,children:(0,A.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>
8{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tn.displayName=tr;var ti=e=>{let{__scopeDropdownMenu:t,...r}=e,n=e7(t);return(0,A.jsx)(ez,{...n,...r})};ti.displayName="DropdownMenuPortal";var to="DropdownMenuContent",ta=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,a=te(to,r),s=e7(r),l=n.useRef(!1);return(0,A.jsx)(eW,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=a.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ta.displayName=to;var ts="DropdownMenuGroup",tl=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eq,{...i,...n,ref:t})});tl.displayName=ts;var tu="DropdownMenuLabel",tc=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eY,{...i,...n,ref:t})});tc.displayName=tu;var td="DropdownMenuItem",tf=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(e$,{...i,...n,ref:t})});tf.displayName=td;var th="DropdownMenuCheckboxItem";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eX,{...i,...n,ref:t})}).displayName=th;var tp="DropdownMenuRadioGroup",tg=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eJ,{...i,...n,ref:t})});tg.displayName=tp;var tm="DropdownMenuRadioItem";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eQ,{...i,...n,ref:t})}).displayName=tm;var ty="DropdownMenuItemIndicator";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(eZ,{...i,...n,ref:t})}).displayName=ty;var tE="DropdownMenuSeparator",tb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(e0,{...i,...n,ref:t})});tb.displayName=tE;var tv="DropdownMenuArrow";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(e1,{...i,...n,ref:t})}).displayName=tv;var tT=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,a=e7(t),[l,u]=(0,s.i)({prop:n,defaultProp:null!=o&&o,onChange:i,caller:"DropdownMenuSub"});return(0,A.jsx)(e2,{...a,open:l,onOpenChange:u,children:r})},tw="DropdownMenuSubTrigger";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(e3,{...i,...n,ref:t})}).displayName=tw;var tA="DropdownMenuSubContent";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e7(r);return(0,A.jsx)(e4,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName=tA;var tN=tt,tS=tn,t_=ti,tx=ta,tI=tl,tO=tc,tR=tf,tP=tg,tM=tb,tC=tT},92419:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(6816),i=r(14080);function o(e,t){let r=(0,n.a)(e);return isNaN(t)?(0,i.w)(e,NaN):(t&&r.setDate(r.getDate()+t),r)}},92725:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=Number.isInteger||function(e){return(0|e)===e}},93224:(e,t,r)=>{"use strict";r.d(t,{my:()=>n,w4:()=>i});let n=6048e5,i=864e5},93412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tuplesTypeMap=t.tuple=t.fixedSizeTuple=void 0;let n=r(5162),i=r(95585),o=r(148);function a(e){let t=e.length,r=e.map(e=>e.description),n=e.map(e=>e.byteSize);
8return{write:function(r,n,o){i.strict.equal(o.length,t,`tuple value element size ${o.length} should match len ${t}`);let a=n;for(let n=0;n<t;n++){let t=o[n],i=e[n];i.write(r,a,t),a+=i.byteSize}},read:function(r,n){let i=[],o=n;for(let n=0;n<t;n++){let t=e[n];i[n]=t.read(r,o),o+=t.byteSize}return i},byteSize:n.reduce((e,t)=>e+t,0),length:t,description:`FixedSizeTuple<${r.join(",")}>[ ${n.join(", ")} ]`}}t.fixedSizeTuple=a,t.tuple=function(e){let t=e.length,r=e.map(e=>e.description);return{toFixedFromData(r,n){let i=n,s=Array(t);for(let n=0;n<t;n++){let t=(0,o.fixBeetFromData)(e[n],r,i);s[n]=t,i+=t.byteSize}return a(s)},toFixedFromValue(r){(0,i.strict)(Array.isArray(r),`${r} should be an array of tuple values`),i.strict.equal(r.length,t,`There should be ${t} tuple values, but there are ${r.length}`);let n=Array(t);for(let t=0;t<r.length;t++){let i=(0,o.fixBeetFromValue)(e[t],r[t]);n[t]=i}return a(n)},description:`Tuple<${r.join(",")}>`}},t.tuplesTypeMap={Tuple:{beet:"tuple",isFixable:!0,sourcePack:n.BEET_PACKAGE,ts:"[__tuple_elements__]"},FixedSizeTuple:{beet:"fixedSizeTuple",isFixable:!1,sourcePack:n.BEET_PACKAGE,ts:"[__tuple_elements__]"}}},93422:(e,t,r)=>{"use strict";var n=r(49524),i=r(64143);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},93713:(e,t,r)=>{"use strict";function n(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;r<n.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let i=Error(`invalid value for type ${t}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${r}`,i.value=e,i}async function i(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})}function o(e,t,r){for(let i in t){let o=t[i],a=r?r[i]:null;a&&n(o,a,i),Object.defineProperty(e,i,{enumerable:!0,value:o,writable:!1})}}r.d(t,{k:()=>i,n:()=>o})},93758:(e,t,r)=>{"use strict";var n=r(30585),i=r(23443),o=r(9682),a=r(47532);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},94401:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(93713);class i{filter;emitter;#ts;constructor(e,t,r){this.#ts=t,(0,n.n)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#ts&&await this.emitter.off(this.filter,this.#ts)}}},95585:(e,t,r)=>{"use strict";var n,i,o=r(55036);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=c(e,"string");return"symbol"===a(t)?t:String(t)}function c(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var f=r(65736).codes,h=f.ERR_AMBIGUOUS_ARGUMENT,p=f.ERR_INVALID_ARG_TYPE,g=f.ERR_INVALID_ARG_VALUE,m=f.ERR_INVALID_RETURN_VALUE,y=f.ERR_MISSING_ARGS,E=r(36171),b=r(63445).inspect,v=r(63445).types,T=v.isPromise,w=v.isRegExp,A=r(63517)(),N=r(4952)(),S=r(4006)("RegExp.prototype.test");function _(){var e=r(82166);n=e.isDeepEqual,i=e.isDeepStrictEqual}var x=!1,I=e.exports=C,O={};function R(e){if(e.message instanceof Error)throw e.message;throw new E(e)}function P(e,t,r,n,i){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===x&&(x=!0,(o.emitWarning?o.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var l={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:i||P};void 0!==r&&(l.message=r);var u=new E(l);throw a&&(u.message=a,u.generatedMessage=!0),u}function M(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new E({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function C(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[C,t.length].concat(t))}function k(e,t,r){if(arguments.length<2)throw new y("actual","expected");void 0===n&&_(),i(e,t)&&R({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:k})}I.fail=P,I.AssertionError=E,I.ok=C,I.equal=function e(t,r,n){if(arguments.length<2)throw new y("actual","expected");t!=r&&R({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},I.notEqual=function e(t,r,n){if(arguments.length<2)throw new y("actual","expected");t==r&&R({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},I.deepEqual=function e(t,r,i){if(arguments.length<2)throw new y("actual","expected");void 0===n&&_(),n(t,r)||R({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})},I.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new y("actual","expected");void 0===n&&_(),n(t,r)&&R({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})},I.deepStrictEqual=function e(t,r,o){if(arguments.length<2)throw new y("actual","expected");void 0===n&&_(),i(t,r)||R({actual:t,expected:r,message:o,operator:"deepStrictEqual",stackStartFn:e})},I.notDeepStrictEqual=k,I.strictEqual=function e(t,r,n){if(arguments.length<2)throw new y("actual","expected");N(t,r)||R({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})}
vendor: 4,457 bytes, line 8
8,I.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new y("actual","expected");N(t,r)&&R({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var L=l(function e(t,r,n){var i=this;d(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&w(t[e])&&S(t[e],n[e])?i[e]=n[e]:i[e]=t[e])})});function D(e,t,r,n,o,a){if(!(r in e)||!i(e[r],t[r])){if(!n){var s=new E({actual:new L(e,o),expected:new L(t,o,e),operator:"deepStrictEqual",stackStartFn:a});throw s.actual=e,s.expected=t,s.operator=a.name,s}R({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}function B(e,t,r,i){if("function"!=typeof t){if(w(t))return S(t,e);if(2==arguments.length)throw new p("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var o=new E({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new g("error",t,"may not be an empty object");return void 0===n&&_(),s.forEach(function(n){"string"==typeof e[n]&&w(t[n])&&S(t[n],e[n])||D(e,t,n,r,s,i)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function V(e){if("function"!=typeof e)throw new p("fn","Function",e);try{e()}catch(e){return e}return O}function F(e){return T(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function U(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!F(t=e()))throw new m("instance of Promise","promiseFn",t)}else if(F(e))t=e;else throw new p("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return O}).catch(function(e){return e})})}function j(e,t,r,n){if("string"==typeof r){if(4==arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===a(t)&&null!==t){if(t.message===r)throw new h("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new h("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==a(r)&&"function"!=typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(t===O){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var o="rejects"===e.name?"rejection":"exception";R({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(r&&!B(t,r,n,e))throw t}function H(e,t,r,n){if(t!==O){if("string"==typeof r&&(n=r,r=void 0),!r||B(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";R({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function G(e,t,r,n,i){if(!w(t))throw new p("regexp","RegExp",t);var o="match"===i;if("string"!=typeof e||S(t,e)!==o){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(b(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(b(t),". Input:\n\n").concat(b(e),"\n"));var l=new E({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw l.generatedMessage=s,l}}function K(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[K,t.length].concat(t))}I.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];j.apply(void 0,[e,V(t)].concat(n))},I.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return U(t).then(function(t){return j.apply(void 0,[e,t].concat(n))})},I.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];H.apply(void 0,[e,V(t)].concat(n))},I.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return U(t).then(function(t){return H.apply(void 0,[e,t].concat(n))})},I.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=b(t);var n=new E({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;
8if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=n.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw n}},I.match=function e(t,r,n){G(t,r,n,e,"match")},I.doesNotMatch=function e(t,r,n){G(t,r,n,e,"doesNotMatch")},I.strict=A(K,I,{equal:I.strictEqual,deepEqual:I.deepStrictEqual,notEqual:I.notStrictEqual,notDeepEqual:I.notDeepStrictEqual}),I.strict.strict=I.strict},95844:(e,t,r)=>{var n=r(49938),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},96431:(e,t,r)=>{"use strict";r.d(t,{OP:()=>c,bu:()=>l,e5:()=>a,fS:()=>o,mG:()=>n,mJ:()=>s,pL:()=>u});var n="-",i="AMP",o="".concat(i,"_unsent"),a="$default_instance",s="https://api2.amplitude.com/2/httpapi",l="https://api.eu.amplitude.com/2/httpapi",u="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},96456:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(13741);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},96670:(e,t,r)=>{"use strict";r.d(t,{id:()=>o});var n=r(26272),i=r(60259);function o(e){return(0,n.S)((0,i.YW)(e))}},97370:(e,t,r)=>{"use strict";r.d(t,{vt:()=>h});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(13741),a=r(52169);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,u=!1,c=e=>e;function d(e,t=c,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let f=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?i(e):e,r=(e,r)=>d(t,e,r);return Object.assign(r,t),r},h=e=>e?f(e):f},97473:(e,t,r)=>{"use strict";var n,i=r(49252),o=r(38868)(),a=r(33507),s=r(85974);if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},d={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,d)}catch(e){return e===u}}}else{var f=i("Object.prototype.toString"),h="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&f(e)===h}}e.exports=n},97720:e=>{"use strict";e.exports=SyntaxError},97842:(e,t,r)=>{"use strict";var n=r(14790).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.stringTypeMap=t.utf8String=t.fixedSizeUtf8String=void 0;let i=r(5162),o=r(95585),a=r(45423),s=r(21838);t.fixedSizeUtf8String=e=>({write:function(t,r,i){let s=n.from(i,"utf8");o.strict.equal(s.byteLength,e,`${i} has invalid byte size`),a.u32.write(t,r,e),s.copy(t,r+4,0,e)},read:function(t,r){let n=a.u32.read(t,r);return o.strict.equal(n,e,"invalid byte size"),t.slice(r+4,r+4+e).toString("utf8")},elementByteSize:1,length:e,lenPrefixByteSize:4,byteSize:4+e,description:`Utf8String(4 + ${e})`}),t.utf8String={toFixedFromData(e,r){let n=a.u32.read(e,r);return(0,s.logTrace)(`${this.description}[${n}]`),(0,t.fixedSizeUtf8String)(n)},toFixedFromValue(e){let r=n.from(e).byteLength;return(0,t.fixedSizeUtf8String)(r)},description:"Utf8String"},t.stringTypeMap={fixedSizeString:{beet:"fixedSizeUtf8String",isFixable:!1,sourcePack:i.BEET_PACKAGE,ts:"string",arg:i.BEET_TYPE_ARG_LEN},string:{beet:"utf8String",isFixable:!0,sourcePack:i.BEET_PACKAGE,ts:"string"}}},98037:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},98043:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let n={};function i(){return n}},98053:(e,t,r)=>{"use strict";r.d(t,{OH:()=>g,bR:()=>p});var n=(e=>(e.APTOS="aptos",e))(n||{}),i=(e=>(e.ETHEREUM="ethereum",e.BSC="bsc",e.AVALANCHE="avalanche",e.POLYGON="polygon",e.ZKPOLYGON="zkpolygon",e.ARBITRUM="arbitrum",e.OPTIMISM="optimism",e.FANTOM="fantom",e.SWIMMER="swimmer",e.DFK="dfk",e.HARMONY="harmony",e.ARCANA="arcana",e.DEXALOT="dexalot",e.CASTLECRUSH="castlecrush",e.GNOSIS="gnosis",e.CELO="celo",e.MOONBEAM="moonbeam",e.BOBA="boba",e.PORTAL="portal",e.INTAIN="intain",e.FUSE="fuse",e.ASTAR="astar",e.ZKSYNC="zksync",e.SHRAPNEL="shrapnel",e.DOS="dos",e.KLAYTN="klaytn",e.METIS="metis",e.COREDAO="coredao",e.OKX="okx",e.METER="meter",e.GOERLI="goerli",e.BASE="base",e.ZKCONSENSYS="zkconsensys",e.SEPOLIA="sepolia",e.MOONRIVER="moonriver",e.AAVEGOTCHI="aavegotchi",e.SCROLL="scroll",e.CATHAY="cathay",e.KAVA="kava",e.TENET="tenet",e.CA
8NTO="canto",e.ORDERLY="orderly",e.NOVA="nova",e.BLOCKGEN="blockgen",e.MERITCIRCLE="meritcircle",e.MANTLE="mantle",e.HUBBLE="hubble",e.ZORA="zora",e.TOMO="tomo",e.LOOT="loot",e.TELOS="telos",e.AURORA="aurora",e.OPBNB="opbnb",e.SHIMMER="shimmer",e.MONAD="monad",e.LIF3="lif3",e.SPRUCE="spruce",e.PGJJTK="pgjjtk",e.ODA="oda",e.KIWI="kiwi",e.CONFLUX="conflux",e.EON="eon",e.XPLA="xpla",e.HOLESKY="holesky",e.INJECTIVE="injective",e.IDEX="idex",e.ZKATANA="zkatana",e.MANTA="manta",e.FRAME="frame",e.PGN="pgn",e.POLYGONCDK="polygoncdk",e.ARBSEP="arbsep",e.OPTSEP="optsep",e.BERA="bera",e.VENN="venn",e.RARIBLE="rarible",e.GUNZILLA="gunzilla",e.RC1="rc1",e.ETHERLINK="etherlink",e.KIWI2="kiwi2",e.BB1="bb1",e.JOC="joc",e.BLAST="blast",e.TRON="tron",e.TRONDEV="trondev",e.XAI="xai",e.TANGIBLE="tangible",e.BASESEP="basesep",e.MANTLESEP="mantlesep",e.ZKPOLYGONSEP="zkpolygonsep",e.ZKSYNCSEP="zksyncsep",e.ZORASEP="zorasep",e.EXOCORE="exocore",e.REAL="real",e.TILTYARD="tiltyard",e.SKALE="skale",e.FRAXTAL="fraxtal",e.SEI="sei",e.MODE="mode",e.HEDERA="hedera",e.UNREAL="unreal",e.MASA="masa",e.MERLIN="merlin",e.HOMEVERSE="homeverse",e.ZKASTAR="zkastar",e.AMOY="amoy",e.DEGEN="degen",e.XLAYER="xlayer",e.FORM="form",e.LL1="ll1",e.MANTASEP="mantasep",e.TAIKO="taiko",e.ZIRCUIT="zircuit",e.CAMP="camp",e.OLIVE="olive",e.SANKO="sanko",e.BOB="bob",e.CYBER="cyber",e.BOTANIX="botanix",e.XCHAIN="xchain",e.ZKLINK="zklink",e.EBI="ebi",e.KINTO="kinto",e.LINEASEP="lineasep",e.IOTA="iota",e.BESU1="besu1",e.BOUNCEBIT="bouncebit",e.MORPH="morph",e.GRAVITY="gravity",e.BARTIO="bartio",e.METISSEP="metissep",e.FLARE="flare",e.GLUE="glue",e.OPENCAMPUS="opencampus",e.VANAR="vanar",e.PEAQ="peaq",e.FI="fi",e.PLUME="plume",e.CURTIS="curtis",e.LYRA="lyra",e.LIGHTLINK="lightlink",e.BAHAMUT="bahamut",e.CODEX="codex",e.OTHERWORLD="otherworld",e.ABSTRACT="abstract",e.ROOT="root",e.STORY="story",e.TREASURE="treasure",e.REYA="reya",e.BITLAYER="bitlayer",e.DM2VERSE="dm2verse",e.APE="ape",e.OZEAN="ozean",e.BEVM="bevm",e))(i||{}),o=(e=>(e.SOLANA="solana",e))(o||{}),a={...i,...n,...o},s=(e=>(e.UNKNOWN="unknown",e.EVM="evm",e.APTOS="aptos",e.SOLANA="solana",e))(s||{}),l=(e=>(e[e.ETHEREUM_MAINNET=101]="ETHEREUM_MAINNET",e[e.BSC_MAINNET=102]="BSC_MAINNET",e[e.AVALANCHE_MAINNET=106]="AVALANCHE_MAINNET",e[e.POLYGON_MAINNET=109]="POLYGON_MAINNET",e[e.ARBITRUM_MAINNET=110]="ARBITRUM_MAINNET",e[e.OPTIMISM_MAINNET=111]="OPTIMISM_MAINNET",e[e.FANTOM_MAINNET=112]="FANTOM_MAINNET",e[e.SWIMMER_MAINNET=114]="SWIMMER_MAINNET",e[e.DFK_MAINNET=115]="DFK_MAINNET",e[e.HARMONY_MAINNET=116]="HARMONY_MAINNET",e[e.DEXALOT_MAINNET=118]="DEXALOT_MAINNET",e[e.CELO_MAINNET=125]="CELO_MAINNET",e[e.MOONBEAM_MAINNET=126]="MOONBEAM_MAINNET",e[e.INTAIN_MAINNET=152]="INTAIN_MAINNET",e[e.FUSE_MAINNET=138]="FUSE_MAINNET",e[e.GNOSIS_MAINNET=145]="GNOSIS_MAINNET",e[e.APTOS_MAINNET=108]="APTOS_MAINNET",e[e.KLAYTN_MAINNET=150]="KLAYTN_MAINNET",e[e.METIS_MAINNET=151]="METIS_MAINNET",e[e.COREDAO_MAINNET=153]="COREDAO_MAINNET",e[e.GOERLI_MAINNET=154]="GOERLI_MAINNET",e[e.OKX_MAINNET=155]="OKX_MAINNET",e[e.CANTO_MAINNET=159]="CANTO_MAINNET",e[e.ZKSYNC_MAINNET=165]="ZKSYNC_MAINNET",e[e.SHRAPNEL_MAINNET=148]="SHRAPNEL_MAINNET",e[e.DOS_MAINNET=149]="DOS_MAINNET",e[e.ZKPOLYGON_MAINNET=158]="ZKPOLYGON_MAINNET",e[e.SEPOLIA_MAINNET=161]="SEPOLIA_MAINNET",e[e.MOONRIVER_MAINNET=167]="MOONRIVER_MAINNET",e[e.SOLANA_MAINNET=168]="SOLANA_MAINNET",e[e.TENET_MAINNET=173]="TENET_MAINNET",e[e.NOVA_MAINNET=175]="NOVA_MAINNET",e[e.METER_MAINNET=176]="METER_MAINNET",e[e.KAVA_MAINNET=177]="KAVA_MAINNET",e[e.MANTLE_MAINNET=181]="MANTLE_MAINNET",e[e.HUBBLE_MAINNET=182]="HUBBLE_MAINNET",e[e.ZKCONSENSYS_MAINNET=183]="ZKCONSENSYS_MAINNET",e[e.BASE_MAINNET=184]="BASE_MAINNET",e[e.ZORA_MAINNET=195]="ZORA_MAINNET",e[e.TOMO_MAINNET=196]="TOMO_MAINNET",e[e.LOOT_MAINNET=197]="LOOT_MAINNET",e[e.MERITCIRCLE_MAINNET=198]="MERITCIRCLE_MAINNET",e[e.TELOS_MAINNET=199]="TELOS_MAINNET",e[e.OPBNB_MAINNET=202]="OPBNB_MAINNET",e[e.LIF3_MAINNET=205]="LIF3_MAINNET",e[e.ASTAR_MAINNET=210]="ASTAR_MAINNET",e[e.AURORA_MAINNET=211]="AURORA_MAINNET",e[e.CONFLUX_MAINNET=212]="CONFLUX_MAINNET",e[e.ORDERLY_MAINNET=213]="ORDERLY_MAINNET",e[e.SCROLL_MAINNET=214]="SCROLL_MAINNET",e[e.EON_MAINNET=215]="EON_MAINNET",e[e.XPLA_MAINNET=216]="XPLA_MAINNET",e[e.MANTA_MAINNET=217]="MANTA_MAINNET",e[e.PGN_MAINNET=218]="PGN_MAINNET",e[e.SHIMMER_MAINNET=230]="SHIMMER_MAINNET",e[e.BB1_MAINNET=234]="BB1_MAINNET",e[e.RARIBLE_MAINNET=235]="RARIBLE_MAINNET",e[e.XAI_MAINNET=236]="XAI_MAINNET",e[e.REAL_MAINNET=237]="REAL_MAINNET",e[e.TILTYARD_MAINNET=238]="TILTYARD_MAINNET",e[e.FRAXTAL_MAINNET=255]="FRAXTAL_MAINNET",e[e.TRON_MAINNET=420]="TRON_MAINNET",e[e.ZKATANA_MAINNET=257]="ZKATANA_MAINNET",e[e.BLAST_MAINNET=243]="BLAST_MAINNET",e[e.MODE_MAINNET=260]="MODE_MAINNET",e[e.MASA_MAINNET=263]="MASA_MAINNET",e[e.HOMEVERSE_MAINNET=265]="HOMEVERSE_MAINNET",e[e.MERLIN_MAINNET=266]="MERLIN_MAINNET",e[e.DEGEN_MAINNET=267]="DEGEN_MAINNET",e[e.SKA
8LE_MAINNET=273]="SKALE_MAINNET",e[e.XLAYER_MAINNET=274]="XLAYER_MAINNET",e[e.SANKO_MAINNET=278]="SANKO_MAINNET",e[e.BOB_MAINNET=279]="BOB_MAINNET",e[e.SEI_MAINNET=280]="SEI_MAINNET",e[e.EBI_MAINNET=282]="EBI_MAINNET",e[e.CYBER_MAINNET=283]="CYBER_MAINNET",e[e.IOTA_MAINNET=284]="IOTA_MAINNET",e[e.KINTO_MAINNET=281]="KINTO_MAINNET",e[e.JOC_MAINNET=285]="JOC_MAINNET",e[e.TAIKO_MAINNET=290]="TAIKO_MAINNET",e[e.XCHAIN_MAINNET=291]="XCHAIN_MAINNET",e[e.ETHERLINK_MAINNET=292]="ETHERLINK_MAINNET",e[e.BOUNCEBIT_MAINNET=293]="BOUNCEBIT_MAINNET",e[e.GRAVITY_MAINNET=294]="GRAVITY_MAINNET",e[e.FLARE_MAINNET=295]="FLARE_MAINNET",e[e.ZKLINK_MAINNET=301]="ZKLINK_MAINNET",e[e.PEAQ_MAINNET=302]="PEAQ_MAINNET",e[e.ZIRCUIT_MAINNET=303]="ZIRCUIT_MAINNET",e[e.LIGHTLINK_MAINNET=309]="LIGHTLINK_MAINNET",e[e.CODEX_MAINNET=310]="CODEX_MAINNET",e[e.LYRA_MAINNET=311]="LYRA_MAINNET",e[e.APE_MAINNET=312]="APE_MAINNET",e[e.REYA_MAINNET=313]="REYA_MAINNET",e[e.BITLAYER_MAINNET=314]="BITLAYER_MAINNET",e[e.DM2VERSE_MAINNET=315]="DM2VERSE_MAINNET",e[e.HEDERA_MAINNET=316]="HEDERA_MAINNET",e))(l||{}),u=(e=>(e[e.BSC_TESTNET=10102]="BSC_TESTNET",e[e.AVALANCHE_TESTNET=10106]="AVALANCHE_TESTNET",e[e.POLYGON_TESTNET=10109]="POLYGON_TESTNET",e[e.FANTOM_TESTNET=10112]="FANTOM_TESTNET",e[e.SWIMMER_TESTNET=10130]="SWIMMER_TESTNET",e[e.DFK_TESTNET=10115]="DFK_TESTNET",e[e.HARMONY_TESTNET=10133]="HARMONY_TESTNET",e[e.DEXALOT_TESTNET=10118]="DEXALOT_TESTNET",e[e.CELO_TESTNET=10125]="CELO_TESTNET",e[e.MOONBEAM_TESTNET=10126]="MOONBEAM_TESTNET",e[e.INTAIN_TESTNET=10152]="INTAIN_TESTNET",e[e.ETHEREUM_TESTNET=10121]="ETHEREUM_TESTNET",e[e.ARBITRUM_TESTNET=10143]="ARBITRUM_TESTNET",e[e.OPTIMISM_TESTNET=10132]="OPTIMISM_TESTNET",e[e.FUSE_TESTNET=10138]="FUSE_TESTNET",e[e.GNOSIS_TESTNET=10145]="GNOSIS_TESTNET",e[e.ZKSYNC_TESTNET=10165]="ZKSYNC_TESTNET",e[e.SHRAPNEL_TESTNET=10164]="SHRAPNEL_TESTNET",e[e.DOS_TESTNET=10162]="DOS_TESTNET",e[e.APTOS_TESTNET=10108]="APTOS_TESTNET",e[e.KLAYTN_TESTNET=10150]="KLAYTN_TESTNET",e[e.METIS_TESTNET=10151]="METIS_TESTNET",e[e.COREDAO_TESTNET=10153]="COREDAO_TESTNET",e[e.OKX_TESTNET=10155]="OKX_TESTNET",e[e.METER_TESTNET=10156]="METER_TESTNET",e[e.ZKCONSENSYS_TESTNET=10157]="ZKCONSENSYS_TESTNET",e[e.ZKPOLYGON_TESTNET=10158]="ZKPOLYGON_TESTNET",e[e.CANTO_TESTNET=10159]="CANTO_TESTNET",e[e.BASE_TESTNET=10160]="BASE_TESTNET",e[e.SEPOLIA_TESTNET=10161]="SEPOLIA_TESTNET",e[e.SOLANA_TESTNET=10168]="SOLANA_TESTNET",e[e.CATHAY_TESTNET=10171]="CATHAY_TESTNET",e[e.KAVA_TESTNET=10172]="KAVA_TESTNET",e[e.TENET_TESTNET=10173]="TENET_TESTNET",e[e.BLOCKGEN_TESTNET=10177]="BLOCKGEN_TESTNET",e[e.MERITCIRCLE_TESTNET=10178]="MERITCIRCLE_TESTNET",e[e.MANTLE_TESTNET=10181]="MANTLE_TESTNET",e[e.HUBBLE_TESTNET=10182]="HUBBLE_TESTNET",e[e.AAVEGOTCHI_TESTNET=10191]="AAVEGOTCHI_TESTNET",e[e.ZORA_TESTNET=10195]="ZORA_TESTNET",e[e.TOMO_TESTNET=10196]="TOMO_TESTNET",e[e.LOOT_TESTNET=10197]="LOOT_TESTNET",e[e.TELOS_TESTNET=10199]="TELOS_TESTNET",e[e.ORDERLY_TESTNET=10200]="ORDERLY_TESTNET",e[e.AURORA_TESTNET=10201]="AURORA_TESTNET",e[e.OPBNB_TESTNET=10202]="OPBNB_TESTNET",e[e.MONAD_TESTNET=10204]="MONAD_TESTNET",e[e.SPRUCE_TESTNET=10206]="SPRUCE_TESTNET",e[e.PGJJTK_TESTNET=10207]="PGJJTK_TESTNET",e[e.ODA_TESTNET=10208]="ODA_TESTNET",e[e.KIWI_TESTNET=10209]="KIWI_TESTNET",e[e.ASTAR_TESTNET=10210]="ASTAR_TESTNET",e[e.CONFLUX_TESTNET=10211]="CONFLUX_TESTNET",e[e.SCROLL_TESTNET=10214]="SCROLL_TESTNET",e[e.EON_TESTNET=10215]="EON_TESTNET",e[e.HOLESKY_TESTNET=10217]="HOLESKY_TESTNET",e[e.INJECTIVE_TESTNET=10218]="INJECTIVE_TESTNET",e[e.IDEX_TESTNET=10219]="IDEX_TESTNET",e[e.ZKATANA_TESTNET=10220]="ZKATANA_TESTNET",e[e.MANTA_TESTNET=10221]="MANTA_TESTNET",e[e.FRAME_TESTNET=10222]="FRAME_TESTNET",e[e.PGN_TESTNET=10223]="PGN_TESTNET",e[e.POLYGONCDK_TESTNET=10224]="POLYGONCDK_TESTNET",e[e.SHIMMER_TESTNET=10230]="SHIMMER_TESTNET",e[e.ARBSEP_TESTNET=10231]="ARBSEP_TESTNET",e[e.OPTSEP_TESTNET=10232]="OPTSEP_TESTNET",e[e.VENN_TESTNET=10234]="VENN_TESTNET",e[e.RARIBLE_TESTNET=10235]="RARIBLE_TESTNET",e[e.GUNZILLA_TESTNET=10236]="GUNZILLA_TESTNET",e[e.RC1_TESTNET=10238]="RC1_TESTNET",e[e.ETHERLINK_TESTNET=10239]="ETHERLINK_TESTNET",e[e.KIWI2_TESTNET=10241]="KIWI2_TESTNET",e[e.JOC_TESTNET=10242]="JOC_TESTNET",e[e.BLAST_TESTNET=10243]="BLAST_TESTNET",e[e.BASESEP_TESTNET=10245]="BASESEP_TESTNET",e[e.MANTLESEP_TESTNET=10246]="MANTLESEP_TESTNET",e[e.ZKPOLYGONSEP_TESTNET=10247]="ZKPOLYGONSEP_TESTNET",e[e.ZKSYNCSEP_TESTNET=10248]="ZKSYNCSEP_TESTNET",e[e.ZORASEP_TESTNET=10249]="ZORASEP_TESTNET",e[e.XAI_TESTNET=10251]="XAI_TESTNET",e[e.TANGIBLE_TESTNET=10252]="TANGIBLE_TESTNET",e[e.TRON_TESTNET=10420]="TRON_TESTNET",e[e.FRAXTAL_TESTNET=10255]="FRAXTAL_TESTNET",e[e.BERA_TESTNET=10256]="BERA_TESTNET",e[e.SEI_TESTNET=10258]="SEI_TESTNET",e[e.EXOCORE_TESTNET=10259]="EXOCORE_TESTNET",e[e.MODE_TESTNET=10260]="MODE_TESTNET",e[e.UNREAL_TESTNET=10262]="UNREAL_TESTNET",e[e.MASA_TESTNET=10263]="MASA_TESTNET",e[e.MERLIN_TESTNET=10264]="MERLIN_TESTNET",e[e.HOMEVERSE_TESTNET=10265]="HOMEVERSE_TESTNET",e[e.ZKASTAR_TESTNET=10266]="ZKASTAR_TESTNET",e[e.AMOY_TESTNET=10267]="AMOY_TESTNET",e[e.DEGEN_TESTNET=10268]="DEGEN_TESTNET",e[e.XLAYER_TESTNET=10269]="XLAYER_TESTNET",e[e.FORM_TESTNET=10270]="FORM_TESTNET",e[e.LL1_TESTNET=10271]="LL1_TESTNET",e[e.MANTASEP_TESTNET=10272]="MANTASEP_TESTNET",e[e.SKA
8LE_TESTNET=10273]="SKALE_TESTNET",e[e.TAIKO_TESTNET=10274]="TAIKO_TESTNET",e[e.ZIRCUIT_TESTNET=10275]="ZIRCUIT_TESTNET",e[e.OLIVE_TESTNET=10277]="OLIVE_TESTNET",e[e.SANKO_TESTNET=10278]="SANKO_TESTNET",e[e.BOB_TESTNET=10279]="BOB_TESTNET",e[e.CYBER_TESTNET=10280]="CYBER_TESTNET",e[e.BOTANIX_TESTNET=10281]="BOTANIX_TESTNET",e[e.XCHAIN_TESTNET=10282]="XCHAIN_TESTNET",e[e.ZKLINK_TESTNET=10283]="ZKLINK_TESTNET",e[e.EBI_TESTNET=10284]="EBI_TESTNET",e[e.HEDERA_TESTNET=10285]="HEDERA_TESTNET",e[e.LINEASEP_TESTNET=10286]="LINEASEP_TESTNET",e[e.BESU1_TESTNET=10288]="BESU1_TESTNET",e[e.BOUNCEBIT_TESTNET=10289]="BOUNCEBIT_TESTNET",e[e.BARTIO_TESTNET=10291]="BARTIO_TESTNET",e[e.METISSEP_TESTNET=10292]="METISSEP_TESTNET",e[e.XPLA_TESTNET=10216]="XPLA_TESTNET",e[e.FLARE_TESTNET=10294]="FLARE_TESTNET",e[e.CAMP_TESTNET=10295]="CAMP_TESTNET",e[e.GLUE_TESTNET=10296]="GLUE_TESTNET",e[e.OPENCAMPUS_TESTNET=10297]="OPENCAMPUS_TESTNET",e[e.VANAR_TESTNET=10298]="VANAR_TESTNET",e[e.PEAQ_TESTNET=10299]="PEAQ_TESTNET",e[e.FI_TESTNET=10301]="FI_TESTNET",e[e.PLUME_TESTNET=10304]="PLUME_TESTNET",e[e.CURTIS_TESTNET=10306]="CURTIS_TESTNET",e[e.LIF3_TESTNET=10300]="LIF3_TESTNET",e[e.IOTA_TESTNET=10307]="IOTA_TESTNET",e[e.LYRA_TESTNET=10308]="LYRA_TESTNET",e[e.LIGHTLINK_TESTNET=10309]="LIGHTLINK_TESTNET",e[e.BAHAMUT_TESTNET=10310]="BAHAMUT_TESTNET",e[e.CODEX_TESTNET=10311]="CODEX_TESTNET",e[e.OTHERWORLD_TESTNET=10312]="OTHERWORLD_TESTNET",e[e.ABSTRACT_TESTNET=10313]="ABSTRACT_TESTNET",e[e.STORY_TESTNET=10315]="STORY_TESTNET",e[e.TREASURE_TESTNET=10316]="TREASURE_TESTNET",e[e.ROOT_TESTNET=10318]="ROOT_TESTNET",e[e.REYA_TESTNET=10319]="REYA_TESTNET",e[e.BITLAYER_TESTNET=10320]="BITLAYER_TESTNET",e[e.DM2VERSE_TESTNET=10321]="DM2VERSE_TESTNET",e[e.MORPH_TESTNET=10322]="MORPH_TESTNET",e[e.OZEAN_TESTNET=10323]="OZEAN_TESTNET",e[e.BEVM_TESTNET=10324]="BEVM_TESTNET",e))(u||{}),c=(e=>(e[e.BSC_SANDBOX=20102]="BSC_SANDBOX",e[e.AVALANCHE_SANDBOX=20106]="AVALANCHE_SANDBOX",e[e.POLYGON_SANDBOX=20109]="POLYGON_SANDBOX",e[e.ETHEREUM_SANDBOX=20121]="ETHEREUM_SANDBOX",e[e.APTOS_SANDBOX=20008]="APTOS_SANDBOX",e[e.OPTIMISM_SANDBOX=20132]="OPTIMISM_SANDBOX",e[e.TRON_SANDBOX=20420]="TRON_SANDBOX",e[e.TRONDEV_SANDBOX=20421]="TRONDEV_SANDBOX",e[e.ARBITRUM_SANDBOX=20231]="ARBITRUM_SANDBOX",e[e.FANTOM_SANDBOX=20112]="FANTOM_SANDBOX",e[e.METIS_SANDBOX=20151]="METIS_SANDBOX",e))(c||{}),d=(e=>(e[e.ETHEREUM_V2_MAINNET=30101]="ETHEREUM_V2_MAINNET",e[e.BSC_V2_MAINNET=30102]="BSC_V2_MAINNET",e[e.AVALANCHE_V2_MAINNET=30106]="AVALANCHE_V2_MAINNET",e[e.POLYGON_V2_MAINNET=30109]="POLYGON_V2_MAINNET",e[e.ARBITRUM_V2_MAINNET=30110]="ARBITRUM_V2_MAINNET",e[e.OPTIMISM_V2_MAINNET=30111]="OPTIMISM_V2_MAINNET",e[e.FANTOM_V2_MAINNET=30112]="FANTOM_V2_MAINNET",e[e.SWIMMER_V2_MAINNET=30114]="SWIMMER_V2_MAINNET",e[e.DFK_V2_MAINNET=30115]="DFK_V2_MAINNET",e[e.HARMONY_V2_MAINNET=30116]="HARMONY_V2_MAINNET",e[e.DEXALOT_V2_MAINNET=30118]="DEXALOT_V2_MAINNET",e[e.CELO_V2_MAINNET=30125]="CELO_V2_MAINNET",e[e.MOONBEAM_V2_MAINNET=30126]="MOONBEAM_V2_MAINNET",e[e.INTAIN_V2_MAINNET=30152]="INTAIN_V2_MAINNET",e[e.FUSE_V2_MAINNET=30138]="FUSE_V2_MAINNET",e[e.GNOSIS_V2_MAINNET=30145]="GNOSIS_V2_MAINNET",e[e.KLAYTN_V2_MAINNET=30150]="KLAYTN_V2_MAINNET",e[e.METIS_V2_MAINNET=30151]="METIS_V2_MAINNET",e[e.COREDAO_V2_MAINNET=30153]="COREDAO_V2_MAINNET",e[e.GOERLI_V2_MAINNET=30154]="GOERLI_V2_MAINNET",e[e.OKX_V2_MAINNET=30155]="OKX_V2_MAINNET",e[e.CANTO_V2_MAINNET=30159]="CANTO_V2_MAINNET",e[e.ZKSYNC_V2_MAINNET=30165]="ZKSYNC_V2_MAINNET",e[e.SHRAPNEL_V2_MAINNET=30148]="SHRAPNEL_V2_MAINNET",e[e.DOS_V2_MAINNET=30149]="DOS_V2_MAINNET",e[e.ZKPOLYGON_V2_MAINNET=30158]="ZKPOLYGON_V2_MAINNET",e[e.SEPOLIA_V2_MAINNET=30161]="SEPOLIA_V2_MAINNET",e[e.MOONRIVER_V2_MAINNET=30167]="MOONRIVER_V2_MAINNET",e[e.TENET_V2_MAINNET=30173]="TENET_V2_MAINNET",e[e.NOVA_V2_MAINNET=30175]="NOVA_V2_MAINNET",e[e.METER_V2_MAINNET=30176]="METER_V2_MAINNET",e[e.KAVA_V2_MAINNET=30177]="KAVA_V2_MAINNET",e[e.MANTLE_V2_MAINNET=30181]="MANTLE_V2_MAINNET",e[e.HUBBLE_V2_MAINNET=30182]="HUBBLE_V2_MAINNET",e[e.ZKCONSENSYS_V2_MAINNET=30183]="ZKCONSENSYS_V2_MAINNET",e[e.BASE_V2_MAINNET=30184]="BASE_V2_MAINNET",e[e.ZORA_V2_MAINNET=30195]="ZORA_
8V2_MAINNET",e[e.TOMO_V2_MAINNET=30196]="TOMO_V2_MAINNET",e[e.LOOT_V2_MAINNET=30197]="LOOT_V2_MAINNET",e[e.MERITCIRCLE_V2_MAINNET=30198]="MERITCIRCLE_V2_MAINNET",e[e.TELOS_V2_MAINNET=30199]="TELOS_V2_MAINNET",e[e.OPBNB_V2_MAINNET=30202]="OPBNB_V2_MAINNET",e[e.LIF3_V2_MAINNET=30205]="LIF3_V2_MAINNET",e[e.ASTAR_V2_MAINNET=30210]="ASTAR_V2_MAINNET",e[e.AURORA_V2_MAINNET=30211]="AURORA_V2_MAINNET",e[e.CONFLUX_V2_MAINNET=30212]="CONFLUX_V2_MAINNET",e[e.ORDERLY_V2_MAINNET=30213]="ORDERLY_V2_MAINNET",e[e.SCROLL_V2_MAINNET=30214]="SCROLL_V2_MAINNET",e[e.EON_V2_MAINNET=30215]="EON_V2_MAINNET",e[e.XPLA_V2_MAINNET=30216]="XPLA_V2_MAINNET",e[e.MANTA_V2_MAINNET=30217]="MANTA_V2_MAINNET",e[e.PGN_V2_MAINNET=30218]="PGN_V2_MAINNET",e[e.SHIMMER_V2_MAINNET=30230]="SHIMMER_V2_MAINNET",e[e.BB1_V2_MAINNET=30234]="BB1_V2_MAINNET",e[e.RARIBLE_V2_MAINNET=30235]="RARIBLE_V2_MAINNET",e[e.XAI_V2_MAINNET=30236]="XAI_V2_MAINNET",e[e.REAL_V2_MAINNET=30237]="REAL_V2_MAINNET",e[e.TILTYARD_V2_MAINNET=30238]="TILTYARD_V2_MAINNET",e[e.FRAXTAL_V2_MAINNET=30255]="FRAXTAL_V2_MAINNET",e[e.TRON_V2_MAINNET=30420]="TRON_V2_MAINNET",e[e.ZKATANA_V2_MAINNET=30257]="ZKATANA_V2_MAINNET",e[e.BLAST_V2_MAINNET=30243]="BLAST_V2_MAINNET",e[e.MODE_V2_MAINNET=30260]="MODE_V2_MAINNET",e[e.MASA_V2_MAINNET=30263]="MASA_V2_MAINNET",e[e.HOMEVERSE_V2_MAINNET=30265]="HOMEVERSE_V2_MAINNET",e[e.MERLIN_V2_MAINNET=30266]="MERLIN_V2_MAINNET",e[e.DEGEN_V2_MAINNET=30267]="DEGEN_V2_MAINNET",e[e.SKALE_V2_MAINNET=30273]="SKALE_V2_MAINNET",e[e.XLAYER_V2_MAINNET=30274]="XLAYER_V2_MAINNET",e[e.SANKO_V2_MAINNET=30278]="SANKO_V2_MAINNET",e[e.BOB_V2_MAINNET=30279]="BOB_V2_MAINNET",e[e.SEI_V2_MAINNET=30280]="SEI_V2_MAINNET",e[e.EBI_V2_MAINNET=30282]="EBI_V2_MAINNET",e[e.CYBER_V2_MAINNET=30283]="CYBER_V2_MAINNET",e[e.IOTA_V2_MAINNET=30284]="IOTA_V2_MAINNET",e[e.SOLANA_V2_MAINNET=30168]="SOLANA_V2_MAINNET",e[e.KINTO_V2_MAINNET=30281]="KINTO_V2_MAINNET",e[e.JOC_V2_MAINNET=30285]="JOC_V2_MAINNET",e[e.TAIKO_V2_MAINNET=30290]="TAIKO_V2_MAINNET",e[e.XCHAIN_V2_MAINNET=30291]="XCHAIN_V2_MAINNET",e[e.ETHERLINK_V2_MAINNET=30292]="ETHERLINK_V2_MAINNET",e[e.BOUNCEBIT_V2_MAINNET=30293]="BOUNCEBIT_V2_MAINNET",e[e.GRAVITY_V2_MAINNET=30294]="GRAVITY_V2_MAINNET",e[e.FLARE_V2_MAINNET=30295]="FLARE_V2_MAINNET",e[e.ZKLINK_V2_MAINNET=30301]="ZKLINK_V2_MAINNET",e[e.PEAQ_V2_MAINNET=30302]="PEAQ_V2_MAINNET",e[e.ZIRCUIT_V2_MAINNET=30303]="ZIRCUIT_V2_MAINNET",e[e.LIGHTLINK_V2_MAINNET=30309]="LIGHTLINK_V2_MAINNET",e[e.CODEX_V2_MAINNET=30310]="CODEX_V2_MAINNET",e[e.LYRA_V2_MAINNET=30311]="LYRA_V2_MAINNET",e[e.APE_V2_MAINNET=30312]="APE_V2_MAINNET",e[e.REYA_V2_MAINNET=30313]="REYA_V2_MAINNET",e[e.BITLAYER_V2_MAINNET=30314]="BITLAYER_V2_MAINNET",e[e.DM2VERSE_V2_MAINNET=30315]="DM2VERSE_V2_MAINNET",e[e.HEDERA_V2_MAINNET=30316]="HEDERA_V2_MAINNET",e))(d||{}),f=(e=>(e[e.AVALANCHE_V2_TESTNET=40106]="AVALANCHE_V2_TESTNET",e[e.POLYGON_V2_TESTNET=40109]="POLYGON_V2_TESTNET",e[e.ETHEREUM_V2_TESTNET=40121]="ETHEREUM_V2_TESTNET",e[e.OPTIMISM_V2_TESTNET=40132]="OPTIMISM_V2_TESTNET",e[e.ARBITRUM_V2_TESTNET=40143]="ARBITRUM_V2_TESTNET",e[e.BSC_V2_TESTNET=40102]="BSC_V2_TESTNET",e[e.FANTOM_V2_TESTNET=40112]="FANTOM_V2_TESTNET",e[e.DFK_V2_TESTNET=40115]="DFK_V2_TESTNET",e[e.HARMONY_V2_TESTNET=40133]="HARMONY_V2_TESTNET",e[e.DEXALOT_V2_TESTNET=40118]="DEXALOT_V2_TESTNET",e[e.CELO_V2_TESTNET=40125]="CELO_V2_TESTNET",e[e.MOONBEAM_V2_TESTNET=40126]="MOONBEAM_V2_TESTNET",e[e.FUSE_V2_TESTNET=40138]="FUSE_V2_TESTNET",e[e.GNOSIS_V2_TESTNET=40145]="GNOSIS_V2_TESTNET",e[e.ZKSYNC_V2_TESTNET=40165]="ZKSYNC_V2_TESTNET",e[e.SHRAPNEL_V2_TESTNET=40164]="SHRAPNEL_V2_TESTNET",e[e.KLAYTN_V2_TESTNET=40150]="KLAYTN_V2_TESTNET",e[e.METIS_V2_TESTNET=40151]="METIS_V2_TESTNET",e[e.COREDAO_V2_TESTNET=40153]="COREDAO_V2_TESTNET",e[e.OKX_V2_TESTNET=40155]="OKX_V2_TESTNET",e[e.METER_V2_TESTNET=40156]="METER_V2_TESTNET",e[e.ZKCONSENSYS_V2_TESTNET=40157]="ZKCONSENSYS_V2_TESTNET",e[e.ZKPOLYGON_V2_TESTNET=40158]="ZKPOLYGON_V2_TESTNET",e[e.CANTO_V2_TESTNET=40159]="CANTO_V2_TESTNET",e[e.BASE_V2_TESTNET=40160]="BASE_V2_TESTNET",e[e.SEPOLIA_V2_TESTNET=40161]="SEPOLIA_V2_TESTNET",e[e.AAVEGOTCHI_V2_TESTNET=40179]="AAVEGOTCHI_V2_TESTNET",e[e.SCROLL_V2_TESTNET=40170]="SCROLL_V2_TESTNET",e[e.CATHAY_V2_TESTNET=40171]="CATHAY_V2_TESTNET",e[e.KAVA_V2_TESTNET=40172]="KAVA_V2_TESTNET",e[e.TENET_V2_TESTNET=40173]="TENET_V2_TESTNET",e[e.BLOCKGEN_V2_TESTNET=40177]="BLOCKGEN_V2_TESTNET",e[e.MERITCIRCLE_V2_TESTNET=40178]="MERITCIRCLE_V2_TESTNET",e[e.MANTLE_V2_TESTNET=40181]="MANTLE_V2_TESTNET",e[e.HUBBLE_V2_TESTNET=40182]="HUBBLE_V2_TESTNET",e[e.ZORA_V2_TESTNET=40195]="ZORA_
8V2_TESTNET",e[e.TOMO_V2_TESTNET=40196]="TOMO_V2_TESTNET",e[e.LOOT_V2_TESTNET=40197]="LOOT_V2_TESTNET",e[e.TELOS_V2_TESTNET=40199]="TELOS_V2_TESTNET",e[e.ORDERLY_V2_TESTNET=40200]="ORDERLY_V2_TESTNET",e[e.AURORA_V2_TESTNET=40201]="AURORA_V2_TESTNET",e[e.OPBNB_V2_TESTNET=40202]="OPBNB_V2_TESTNET",e[e.SHIMMER_V2_TESTNET=40203]="SHIMMER_V2_TESTNET",e[e.MONAD_V2_TESTNET=40204]="MONAD_V2_TESTNET",e[e.SPRUCE_V2_TESTNET=40206]="SPRUCE_V2_TESTNET",e[e.PGJJTK_V2_TESTNET=40207]="PGJJTK_V2_TESTNET",e[e.ODA_V2_TESTNET=40208]="ODA_V2_TESTNET",e[e.KIWI_V2_TESTNET=40209]="KIWI_V2_TESTNET",e[e.ASTAR_V2_TESTNET=40210]="ASTAR_V2_TESTNET",e[e.CONFLUX_V2_TESTNET=40211]="CONFLUX_V2_TESTNET",e[e.EON_V2_TESTNET=40215]="EON_V2_TESTNET",e[e.HOLESKY_V2_TESTNET=40217]="HOLESKY_V2_TESTNET",e[e.INJECTIVE_V2_TESTNET=40218]="INJECTIVE_V2_TESTNET",e[e.IDEX_V2_TESTNET=40219]="IDEX_V2_TESTNET",e[e.ZKATANA_V2_TESTNET=40220]="ZKATANA_V2_TESTNET",e[e.MANTA_V2_TESTNET=40221]="MANTA_V2_TESTNET",e[e.FRAME_V2_TESTNET=40222]="FRAME_V2_TESTNET",e[e.PGN_V2_TESTNET=40223]="PGN_V2_TESTNET",e[e.POLYGONCDK_V2_TESTNET=40224]="POLYGONCDK_V2_TESTNET",e[e.ARBSEP_V2_TESTNET=40231]="ARBSEP_V2_TESTNET",e[e.OPTSEP_V2_TESTNET=40232]="OPTSEP_V2_TESTNET",e[e.VENN_V2_TESTNET=40234]="VENN_V2_TESTNET",e[e.RARIBLE_V2_TESTNET=40235]="RARIBLE_V2_TESTNET",e[e.GUNZILLA_V2_TESTNET=40236]="GUNZILLA_V2_TESTNET",e[e.RC1_V2_TESTNET=40238]="RC1_V2_TESTNET",e[e.ETHERLINK_V2_TESTNET=40239]="ETHERLINK_V2_TESTNET",e[e.KIWI2_V2_TESTNET=40241]="KIWI2_V2_TESTNET",e[e.JOC_V2_TESTNET=40242]="JOC_V2_TESTNET",e[e.BLAST_V2_TESTNET=40243]="BLAST_V2_TESTNET",e[e.BASESEP_V2_TESTNET=40245]="BASESEP_V2_TESTNET",e[e.MANTLESEP_V2_TESTNET=40246]="MANTLESEP_V2_TESTNET",e[e.ZKPOLYGONSEP_V2_TESTNET=40247]="ZKPOLYGONSEP_V2_TESTNET",e[e.ZORASEP_V2_TESTNET=40249]="ZORASEP_V2_TESTNET",e[e.XAI_V2_TESTNET=40251]="XAI_V2_TESTNET",e[e.TANGIBLE_V2_TESTNET=40252]="TANGIBLE_V2_TESTNET",e[e.EXOCORE_V2_TESTNET=40259]="EXOCORE_V2_TESTNET",e[e.TRON_V2_TESTNET=40420]="TRON_V2_TESTNET",e[e.FRAXTAL_V2_TESTNET=40255]="FRAXTAL_V2_TESTNET",e[e.BERA_V2_TESTNET=40256]="BERA_V2_TESTNET",e[e.SEI_V2_TESTNET=40258]="SEI_V2_TESTNET",e[e.MODE_V2_TESTNET=40260]="MODE_V2_TESTNET",e[e.UNREAL_V2_TESTNET=40262]="UNREAL_V2_TESTNET",e[e.MASA_V2_TESTNET=40263]="MASA_V2_TESTNET",e[e.MERLIN_V2_TESTNET=40264]="MERLIN_V2_TESTNET",e[e.HOMEVERSE_V2_TESTNET=40265]="HOMEVERSE_V2_TESTNET",e[e.ZKASTAR_V2_TESTNET=40266]="ZKASTAR_V2_TESTNET",e[e.AMOY_V2_TESTNET=40267]="AMOY_V2_TESTNET",e[e.DEGEN_V2_TESTNET=40268]="DEGEN_V2_TESTNET",e[e.XLAYER_V2_TESTNET=40269]="XLAYER_V2_TESTNET",e[e.FORM_V2_TESTNET=40270]="FORM_V2_TESTNET",e[e.LL1_V2_TESTNET=40271]="LL1_V2_TESTNET",e[e.MANTASEP_V2_TESTNET=40272]="MANTASEP_V2_TESTNET",e[e.SKALE_V2_TESTNET=40273]="SKALE_V2_TESTNET",e[e.TAIKO_V2_TESTNET=40274]="TAIKO_V2_TESTNET",e[e.ZIRCUIT_V2_TESTNET=40275]="ZIRCUIT_V2_TESTNET",e[e.OLIVE_V2_TESTNET=40277]="OLIVE_V2_TESTNET",e[e.SANKO_V2_TESTNET=40278]="SANKO_V2_TESTNET",e[e.BOB_V2_TESTNET=40279]="BOB_V2_TESTNET",e[e.CYBER_V2_TESTNET=40280]="CYBER_V2_TESTNET",e[e.BOTANIX_V2_TESTNET=40281]="BOTANIX_V2_TESTNET",e[e.XCHAIN_V2_TESTNET=40282]="XCHAIN_V2_TESTNET",e[e.ZKLINK_V2_TESTNET=40283]="ZKLINK_V2_TESTNET",e[e.EBI_V2_TESTNET=40284]="EBI_V2_TESTNET",e[e.HEDERA_V2_TESTNET=40285]="HEDERA_V2_TESTNET",e[e.DOS_V2_TESTNET=40286]="DOS_V2_TESTNET",e[e.LINEASEP_V2_TESTNET=40287]="LINEASEP_V2_TESTNET",e[e.BESU1_V2_TESTNET=40288]="BESU1_V2_TESTNET",e[e.BOUNCEBIT_V2_TESTNET=40289]="BOUNCEBIT_V2_TESTNET",e[e.SOLANA_V2_TESTNET=40168]="SOLANA_V2_TESTNET",e[e.BARTIO_V2_TESTNET=40291]="BARTIO_V2_TESTNET",e[e.METISSEP_V2_TESTNET=40292]="METISSEP_V2_TESTNET",e[e.XPLA_V2_TESTNET=40216]="XPLA_V2_TESTNET",e[e.FLARE_V2_TESTNET=40294]="FLARE_V2_TESTNET",e[e.CAMP_V2_TESTNET=40295]="CAMP_V2_TESTNET",e[e.GLUE_V2_TESTNET=40296]="GLUE_V2_TESTNET",e[e.OPENCAMPUS_V2_TESTNET=40297]="OPENCAMPUS_V2_TESTNET",e[e.VANAR_V2_TESTNET=40298]="VANAR_V2_TESTNET",e[e.PEAQ_V2_TESTNET=40299]="PEAQ_V2_TESTNET",e[e.FI_V2_TESTNET=40301]="FI_V2_TESTNET",e[e.PLUME_V2_TESTNET=40304]="PLUME_V2_TESTNET",e[e.ZKSYNCSEP_V2_TESTNET=40305]="ZKSYNCSEP_V2_TESTNET",e[e.CURTIS_V2_TESTNET=40306]="CURTIS_V2_TESTNET",e[e.LIF3_V2_TESTNET=40300]="LIF3_V2_TESTNET",e[e.IOTA_V2_TESTNET=40307]="IOTA_V2_TESTNET",e[e.LYRA_V2_TESTNET=40308]="LYRA_V2_TESTNET",e[e.LIGHTLINK_V2_TESTNET=40309]="LIGHTLINK_V2_TESTNET",e[e.BAHAMUT_V2_TESTNET=40310]="BAHAMUT_V2_TESTNET",e[e.CODEX_V2_TESTNET=40311]="CODEX_V2_TESTNET",e[e.OTHERWORLD_V2_TESTNET=40312]="OTHERWORLD_V2_TESTNET",e[e.ABSTRACT_V2_TESTNET=40313]="ABSTRACT_V2_TESTNET",e[e.STORY_V2_TESTNET=40315]="STORY_V2_TESTNET",e[e.TREASURE_V2_TESTNET=40316]="TREASURE_V2_TESTNET",e[e.ROOT_V2_TESTNET=40318]="ROOT_V2_TESTNET",e[e.REYA_V2_TESTNET=40319]="REYA_V2_TESTNET",e[e.BITLAYER_V2_TESTNET=40320]="BITLAYER_V2_TESTNET",e[e.DM2VERSE_V2_TESTNET=40321]="DM2VERSE_V2_TESTNET",e[e.MORPH_V2_TESTNET=40322]="MORPH_V2_TESTNET",e[e.OZEAN_V2_TESTNET=40323]="OZEAN_V2_TESTNET",e[e.BEVM_V2_TESTNET=40324]="BEVM_V2_TESTNET",e))(f||{}),h=(e=>(e[e.ETHEREUM_V2_SANDBOX=50121]="ETHEREUM_V2_SANDBOX",e[e.POLYGON_V2_SANDBOX=50109]="POLYGON_V2_SANDBOX",e[e.SOLANA_V2_SA
8NDBOX=50168]="SOLANA_V2_SANDBOX",e[e.BSC_V2_SANDBOX=50102]="BSC_V2_SANDBOX",e[e.AVALANCHE_V2_SANDBOX=50106]="AVALANCHE_V2_SANDBOX",e[e.OPTIMISM_V2_SANDBOX=50132]="OPTIMISM_V2_SANDBOX",e[e.METIS_V2_SANDBOX=50151]="METIS_V2_SANDBOX",e))(h||{}),p={...l,...u,...c,...d,...f,...h},g=(e=>(e.LOCAL="local",e.DEVNET="devnet",e.TESTNET="testnet",e.MAINNET="mainnet",e))(g||{}),m=(e=>(e.MAINNET="mainnet",e.TESTNET="testnet",e.SANDBOX="sandbox",e))(m||{}),y=(e=>(e.V1="v1",e.V2="v2",e))(y||{}),E=(e=>(e.SIMPLE="0.0.2",e.ULTRA_LIGHT_NODE_302="3.0.2",e))(E||{}),b=(e=>(e.ULTRA_LIGHT_NODE_301="3.0.1",e.ULTRA_LIGHT_NODE_201="2.0.1",e))(b||{}),v=(e=>(e.ETHEREUM="ethereum",e.GOERLI="goerli",e.SEPOLIA="sepolia",e.BSC="bsc",e.BSC_TESTNET="bsc-testnet",e.AVALANCHE="avalanche",e.FUJI="fuji",e.POLYGON="polygon",e.MUMBAI="mumbai",e.ARBITRUM="arbitrum",e.ARBITURM_GOERLI="arbitrum-goerli",e.OPTIMISM="optimism",e.OPTIMISM_GOERLI="optimism-goerli",e.FANTOM="fantom",e.FANTOM_TESTNET="fantom-testnet",e.SWIMMER="swimmer",e.SWIMMER_TESTNET="swimmer-testnet",e.DFK="dfk",e.DFK_TESTNET="dfk-testnet",e.HARMONY="harmony",e.HARMONY_TESTNET="harmony-testnet",e.DEXALOT="dexalot",e.DEVALOT_TESTNET="dexalot-testnet",e.CELO="celo",e.ALFAJORES="alfajores",e.MOONBEAM="moonbeam",e.MOONBASE="moonbase",e.MOONRIVER="moonriver",e.INTAIN="intain",e.INTAIN_TESTNET="intain-testnet",e.FUSE="fuse",e.FUSESPARK="fusespark",e.GNOSIS="gnosis",e.CHIADO="chiado",e.APTOS="aptos",e.APTOS_TESTNET="aptos-testnet",e.KLAYTN="klaytn",e.KLAYTN_BAOBAB="klaytn-baobab",e.METIS="metis",e.METIS_GOERLI="metis-goerli",e.COREDAO="coredao",e.COREDAO_TESTNET="coredao-testnet",e.METER="meter",e.METER_TESTNET="meter-testnet",e.OKX="okx",e.OKX_TESTNET="okx-testnet",e.ZKSYNC="zksync",e.ZKSYNC_TESTNET="zksync-testnet",e.SHRAPNEL="shrapnel",e.SHRAPNEL_TESTNET="shrapnel-testnet",e.DOS="dos",e.DOS_TESTNET="dos-testnet",e.ZKEVM="zkevm",e.ZKEVM_TESTNET="zkevm-testnet",e.NOVA="nova",e.TENET="tenet",e.TENET_TESTNET="tenet-testnet",e.CANTO="canto",e.CANTO_TESTNET="canto-testnet",e.KAVA="kava",e.KAVA_TESTNET="kava-testnet",e.SOLANA="solana",e.SOLANA_TESTNET="solana-testnet",e.LINEA_GOERLI="linea-goerli",e.BASE_GOERLI="base-goerli",e.AAVEGOTCHI_TESTNET="aavegotchi-testnet",e.SCROLL="scroll",e.SCROLL_TESTNET="scroll-testnet",e.CATHAY_TESTNET="cathay-testnet",e.ORDERLY="orderly",e.ORDERLY_TESTNET="orderly-testnet",e.BLOCKGEN_TESTNET="blockgen-testnet",e.BEAM_TESTNET="beam-testnet",e.BEAM="beam",e.MANTLE="mantle",e.MANTLE_TESTNET="mantle-testnet",e.HUBBLE="hubble",e.HUBBLE_TESTNET="hubble-testnet",e.LINEA="linea",e.BASE="base",e.ZORA_TESTNET="zora-testnet",e.ZORA="zora",e.TOMO_TESTNET="tomo-testnet",e.TOMO="tomo",e.LOOT_TESTNET="loot-testnet",e.LOOT="loot",e.TELOS_TESTNET="telos-testnet",e.TELOS="telos",e.AURORA="aurora",e.AURORA_TESTNET="aurora-testnet",e.OPBNB="opbnb",e.OPBNB_TESTNET="opbnb-testnet",e.SHIMMER="shimmer",e.SHIMMER_TESTNET="shimmer-testnet",e.MONAD_TESTNET="monad-testnet",e.LIF3="lif3",e.LIF3_TESTNET="lif3-testnet",e.SPRUCE_TESTNET="spruce-testnet",e.PGJJTK_TESTNET="pgjjtk-testnet",e.ODA_TESTNET="oda-testnet",e.KIWI_TESTNET="kiwi-testnet",e.ASTAR="astar",e.ASTAR_TESTNET="astar-testnet",e.CONFLUX="conflux",e.CONFLUX_TESTNET="conflux-testnet",e.EON="eon",e.EON_TESTNET="eon-testnet",e.XPLA="xpla",e.XPLA_TESTNET="xpla-testnet",e.HOLESKY="holesky",e.INJECTIVE_TESTNET="injective-testnet",e.IDEX_TESTNET="idex-testnet",e.ZKATANA_TESTNET="zkatana-testnet",e.ZKATANA="zkatana",e.MANTA="manta",e.MANTA_TESTNET="manta-testnet",e.FRAME_TESTNET="frame-testnet",e.PGN="pgn",e.PGN_TESTNET="pgn-testnet",e.POLYGONCDK_TESTNET="polygoncdk-testnet",e.ARBITRUM_SEPOLIA="arbitrum-sepolia",e.OPTIMISM_SEPOLIA="optimism-sepolia",e.BERA_TESTNET="bera-testnet",e.VENN_TESTNET="venn-testnet",e.RARIBLE_TESTNET="rarible-testnet",e.GUNZILLA_TESTNET="gunzilla-testnet",e.RC1_TESTNET="rc1-testnet",e.KIWI2_TESTNET="kiwi2-testnet",e.BB1="bb1",e.RARIBLE="rarible",e.BLAST_TESTNET="blast-testnet",e.BLAST="blast",e.XAI_TESTNET="xai-testnet",e.XAI="xai",e.TANGIBLE_TESTNET="tangible-testnet",e.BASE_SEPOLIA="base-sepolia",e.MANTLE_SEPOLIA="mantle-sepolia",e.ZKPOLYGON_SEPOLIA="zkpolygon-sepolia",e.ZKSYNC_SEPOLIA="zksync-sepolia",e.ZORA_SEPOLIA="zora-sepolia",e.EXOCORE_TESTNET="exocore-testnet",e.TILTYARD="tiltyard",e.FRAXTAL_TESTNET="fraxtal-testnet",e.FRAXTAL="fraxtal",e.MODE_TESTNET="mode-testnet",e.MODE="mode",e.REAL="real",e.UNREAL_TESTNET="unreal-testnet",e.MASA="masa",e.MASA_TESTNET="masa-testnet",e.MERLIN_TESTNET="merlin-testnet",e.MERLIN="merlin",e.HOMEVERSE="homeverse",e.HOMEVERSE_TESTNET="homeverse-testnet",e.ZKASTAR_TESTNET="zkastar-testnet",e.AMOY_TESTNET="amoy-testnet",e.DEGEN_TESTNET="degen-testnet",e.DEGEN="degen",e.XLAYER_TESTNET="xlayer-testnet",e.XLAYER="xlayer",e.FORM_TESTNET="form-testnet",e.LL1_TESTNET="ll1-testnet",e.MANTASEP_TESTNET="mantasep-testnet",e.SKALE_TESTNET="skale-testnet",e.SKALE="skale",e.CAMP_TESTNET="camp-testnet",e.OLIVE_TESTNET="olive-testnet",e.SANKO_TESTNET="sanko-testnet",e.SANKO="sanko",e.BOB_TESTNET="bob-testnet",e.BOB="bob",e.ETHEREUM_SANDBOX="ethereum-sandbox",e.BSC_SANDBOX="bsc-sandbox",e.AVALANCHE_SANDBOX="avalanche-sandbox",e.POLYGON_SANDBOX="polygon-sandbox",e.APTOS_SANDBOX="aptos-sandbox",e.OPTIMISM_SANDBOX="optimism-sandbox",e.TRON_SANDBOX="tron-sandbox",e.ARBITRUM_SANDBOX="arbitrum-sandbox",e.FANTOM_SANDBOX="fantom-sandbox",e.METIS_SANDBOX="metis-sandbox",e.SOLANA_SANDBOX="solana-sandbox",e.BOTANIX_TESTNET="botanix-testnet",e.EBI_TESTNET="ebi-testnet",e.TRONDEV="tron-dev",e.TRON_TESTNET="tron-testnet",e.TRON="tron",e.SEI="sei",e.SEI_TESTNET="sei-testnet",e.EBI="ebi",e.LINEASEP_TESTNET="lineasep-testnet",e.IOTA="iota",e.IOTA_TESTNET="iota-testnet",e.CYBER="cyber",e.CYBER_TESTNET="cyber-testnet",e.JOC="joc",e.JOC_TESTNET="joc-testnet",e.BESU1_TESTNET="besu1-testnet",e.MORPH_TESTNET="morph-testnet",e.XCHAIN_TESTNET="xchain-testnet",e.XCHAIN="xchain",e.TAIKO_TESTNET="taiko-testnet",e.TAIKO="taiko",e.KINTO="kinto",e.ETHERLINK_TESTNET="etherlink-testnet",e.ETHERLINK="etherlink",e.BOUNCEBIT_TESTNET="bouncebit-testnet",e.BOUNCEBIT="bouncebit",e.GRAVITY="gravity",e.BARTIO_TESTNET="bartio",e.METISSEP_TESTNET="metissep-testnet",e.FLARE_TESTNET="flare-testnet",e.FLARE="flare",e.GLUE_TESTNET="glue-testnet",e.OPENCAMPUS_TESTNET="opencampus-testnet",e.VANAR_TESTNET="vanguard-testnet",e.PEAQ_TESTNET="peaq-testnet",e.PEAQ="peaq",e.ZIRCUIT_TESTNET="zircuit-testnet",e.ZIRCUIT="zircuit",e.ZKLINK_TESTNET="zklink-testnet",e.ZKLINK="zklink",e.FI_TESTNET="fi-testnet",e.PLUME_TESTNET="plume-testnet",e.CURTIS_TESTNET="curtis-testnet",e.LYRA="lyra",e.LYRA_TESTNET="lyra-testnet",e.BAHAMUT_TESTNET="bahamut-testnet",e.CODEX="codex",e.CODEX_TESTNET="codex-testnet",e.OTHERWORLD_TESTNET="otherworld-testnet",e.ABSTRACT_TESTNET="abstract-testnet",e.ROOT_TESTNET="root-testnet",e.STORY_TESTNET="story-testnet",e.LIGHTLINK="lightlink",e.LIGHTLINK_TESTNET="lightlink-testnet",e.TREASURE_TESTNET="treasure-testnet",e.REYA_TESTNET="reya-testnet",e.APE="ape",e.REYA="reya",e.OZEAN_TESTNET="ozean-testnet",e.BITLAYER="bitlayer",e.BITLAYER_TESTNET="bitlayer-testnet",e.DM2VERSE="dm2verse",e.DM2VERSE_TESTNET="dm2ver
8se-testnet",e.BEVM_TESTNET="bevm-testnet",e.HEDERA_TESTNET="hedera-testnet",e.HEDERA="hedera",e))(v||{});p.ETHEREUM_MAINNET,p.BSC_MAINNET,p.AVALANCHE_MAINNET,p.POLYGON_MAINNET,p.ARBITRUM_MAINNET,p.OPTIMISM_MAINNET,p.FANTOM_MAINNET,p.SWIMMER_MAINNET,p.DFK_MAINNET,p.HARMONY_MAINNET,p.DEXALOT_MAINNET,p.CELO_MAINNET,p.MOONBEAM_MAINNET,p.INTAIN_MAINNET,p.FUSE_MAINNET,p.GNOSIS_MAINNET,p.APTOS_MAINNET,p.KLAYTN_MAINNET,p.METIS_MAINNET,p.COREDAO_MAINNET,p.METER_MAINNET,p.OKX_MAINNET,p.GOERLI_MAINNET,p.ZKSYNC_MAINNET,p.SHRAPNEL_MAINNET,p.DOS_MAINNET,p.ZKPOLYGON_MAINNET,p.SEPOLIA_MAINNET,p.MOONRIVER_MAINNET,p.NOVA_MAINNET,p.TENET_MAINNET,p.CANTO_MAINNET,p.KAVA_MAINNET,p.MANTLE_MAINNET,p.HUBBLE_MAINNET,p.ZKCONSENSYS_MAINNET,p.BASE_MAINNET,p.ZORA_MAINNET,p.TOMO_MAINNET,p.LOOT_MAINNET,p.TELOS_MAINNET,p.MERITCIRCLE_MAINNET,p.OPBNB_MAINNET,p.LIF3_MAINNET,p.ASTAR_MAINNET,p.AURORA_MAINNET,p.CONFLUX_MAINNET,p.ORDERLY_MAINNET,p.SCROLL_MAINNET,p.EON_MAINNET,p.XPLA_MAINNET,p.MANTA_MAINNET,p.PGN_MAINNET,p.SHIMMER_MAINNET,p.BB1_MAINNET,p.RARIBLE_MAINNET,p.XAI_MAINNET,p.REAL_MAINNET,p.TILTYARD_MAINNET,p.FRAXTAL_MAINNET,p.TRON_MAINNET,p.ZKATANA_MAINNET,p.MODE_MAINNET,p.BLAST_MAINNET,p.MASA_MAINNET,p.HOMEVERSE_MAINNET,p.MERLIN_MAINNET,p.DEGEN_MAINNET,p.SKALE_MAINNET,p.XLAYER_MAINNET,p.BOB_MAINNET,p.SANKO_MAINNET,p.SEI_MAINNET,p.KINTO_MAINNET,p.EBI_MAINNET,p.IOTA_MAINNET,p.CYBER_MAINNET,p.JOC_MAINNET,p.SOLANA_MAINNET,p.TAIKO_MAINNET,p.XCHAIN_MAINNET,p.ETHERLINK_MAINNET,p.BOUNCEBIT_MAINNET,p.GRAVITY_MAINNET,p.FLARE_MAINNET,p.ZKLINK_MAINNET,p.PEAQ_MAINNET,p.ZIRCUIT_MAINNET,p.LIGHTLINK_MAINNET,p.CODEX_MAINNET,p.LYRA_MAINNET,p.APE_MAINNET,p.REYA_MAINNET,p.BITLAYER_MAINNET,p.DM2VERSE_MAINNET,p.HEDERA_MAINNET,p.ETHEREUM_V2_MAINNET,p.BSC_V2_MAINNET,p.AVALANCHE_V2_MAINNET,p.POLYGON_V2_MAINNET,p.ARBITRUM_V2_MAINNET,p.OPTIMISM_V2_MAINNET,p.FANTOM_V2_MAINNET,p.SWIMMER_V2_MAINNET,p.DFK_V2_MAINNET,p.HARMONY_V2_MAINNET,p.DEXALOT_V2_MAINNET,p.CELO_V2_MAINNET,p.MOONBEAM_V2_MAINNET,p.INTAIN_V2_MAINNET,p.FUSE_V2_MAINNET,p.GNOSIS_V2_MAINNET,p.KLAYTN_V2_MAINNET,p.METIS_V2_MAINNET,p.COREDAO_V2_MAINNET,p.GOERLI_V2_MAINNET,p.OKX_V2_MAINNET,p.CANTO_V2_MAINNET,p.ZKSYNC_V2_MAINNET,p.SHRAPNEL_V2_MAINNET,p.DOS_V2_MAINNET,p.ZKPOLYGON_V2_MAINNET,p.SEPOLIA_V2_MAINNET,p.MOONRIVER_V2_MAINNET,p.TENET_V2_MAINNET,p.NOVA_V2_MAINNET,p.METER_V2_MAINNET,p.KAVA_V2_MAINNET,p.MANTLE_V2_MAINNET,p.HUBBLE_V2_MAINNET,p.ZKCONSENSYS_V2_MAINNET,p.BASE_V2_MAINNET,p.ZORA_V2_MAINNET,p.TOMO_V2_MAINNET,p.LOOT_V2_MAINNET,p.TELOS_V2_MAINNET,p.MERITCIRCLE_V2_MAINNET,p.OPBNB_V2_MAINNET,p.LIF3_V2_MAINNET,p.ASTAR_V2_MAINNET,p.AURORA_V2_MAINNET,p.CONFLUX_V2_MAINNET,p.ORDERLY_V2_MAINNET,p.SCROLL_V2_MAINNET,p.EON_V2_MAINNET,p.XPLA_V2_MAINNET,p.MANTA_V2_MAINNET,p.PGN_V2_MAINNET,p.SHIMMER_V2_MAINNET,p.BB1_V2_MAINNET,p.RARIBLE_V2_MAINNET,p.XAI_V2_MAINNET,p.REAL_V2_MAINNET,p.TILTYARD_V2_MAINNET,p.FRAXTAL_V2_MAINNET,p.MODE_V2_MAINNET,p.TRON_V2_MAINNET,p.BLAST_V2_MAINNET,p.ZKATANA_V2_MAINNET,p.MASA_V2_MAINNET,p.HOMEVERSE_V2_MAINNET,p.MERLIN_V2_MAINNET,p.DEGEN_V2_MAINNET,p.SKALE_V2_MAINNET,p.XLAYER_V2_MAINNET,p.BOB_V2_MAINNET,p.SANKO_V2_MAINNET,p.SEI_V2_MAINNET,p.KINTO_V2_MAINNET,p.EBI_V2_MAINNET,p.IOTA_V2_MAINNET,p.CYBER_V2_MAINNET,p.JOC_V2_MAINNET,p.SOLANA_V2_MAINNET,p.TAIKO_V2_MAINNET,p.XCHAIN_V2_MAINNET,p.ETHERLINK_V2_MAINNET,p.BOUNCEBIT_V2_MAINNET,p.GRAVITY_V2_MAINNET,p.FLARE_V2_MAINNET,p.ZKLINK_V2_MAINNET,p.PEAQ_V2_MAINNET,p.ZIRCUIT_V2_MAINNET,p.LIGHTLINK_V2_MAINNET,p.CODEX_V2_MAINNET,p.LYRA_V2_MAINNET,p.APE_V2_MAINNET,p.REYA_V2_MAINNET,p.BITLAYER_V2_MAINNET,p.DM2VERSE_V2_MAINNET,p.HEDERA_V2_MAINNET,p.ETHEREUM_TESTNET,p.BSC_TESTNET,p.POLYGON_TESTNET,p.FANTOM_TESTNET,p.HARMONY_TESTNET,p.AVALANCHE_TESTNET,p.ARBITRUM_TESTNET,p.OPTIMISM_TESTNET,p.DFK_TESTNET,p.SWIMMER_TESTNET,p.DEXALOT_TESTNET,p.GNOSIS_TESTNET,p.CELO_TESTNET,p.APTOS_TESTNET,p.MOONBEAM_TESTNET,p.FUSE_TESTNET,p.ZKSYNC_TESTNET,p.SHRAPNEL_TESTNET,p.DOS_TESTNET,p.KLAYTN_TESTNET,p.METIS_TESTNET,p.INTAIN_TESTNET,p.COREDAO_TESTNET,p.ZKPOLYGON_TESTNET,p.OKX_TESTNET,p.SOLANA_TESTNET,p.METER_TESTNET,p.ZKCONSENSYS_TESTNET,p.SEPOLIA_TESTNET,p.BASE_TESTNET,p.AAVEGOTCHI_TESTNET,p.SCROLL_TESTNET,p.CATHAY_TESTNET,p.KAVA_TESTNET,p.TENET_TESTNET,p.CANTO_TESTNET,p.ORDERLY_TESTNET,p.BLOCKGEN_TESTNET,p.MER
8ITCIRCLE_TESTNET,p.MANTLE_TESTNET,p.HUBBLE_TESTNET,p.ZORA_TESTNET,p.TOMO_TESTNET,p.LOOT_TESTNET,p.TELOS_TESTNET,p.AURORA_TESTNET,p.OPBNB_TESTNET,p.SHIMMER_TESTNET,p.MONAD_TESTNET,p.SPRUCE_TESTNET,p.PGJJTK_TESTNET,p.ODA_TESTNET,p.KIWI_TESTNET,p.ASTAR_TESTNET,p.CONFLUX_TESTNET,p.EON_TESTNET,p.XPLA_TESTNET,p.HOLESKY_TESTNET,p.INJECTIVE_TESTNET,p.IDEX_TESTNET,p.ZKATANA_TESTNET,p.MANTA_TESTNET,p.FRAME_TESTNET,p.PGN_TESTNET,p.POLYGONCDK_TESTNET,p.ARBSEP_TESTNET,p.OPTSEP_TESTNET,p.BERA_TESTNET,p.VENN_TESTNET,p.RARIBLE_TESTNET,p.GUNZILLA_TESTNET,p.RC1_TESTNET,p.ETHERLINK_TESTNET,p.KIWI2_TESTNET,p.JOC_TESTNET,p.BLAST_TESTNET,p.TRON_TESTNET,p.XAI_TESTNET,p.TANGIBLE_TESTNET,p.BASESEP_TESTNET,p.MANTLESEP_TESTNET,p.ZKPOLYGONSEP_TESTNET,p.ZKSYNCSEP_TESTNET,p.ZORASEP_TESTNET,p.EXOCORE_TESTNET,p.FRAXTAL_TESTNET,p.SEI_TESTNET,p.MODE_TESTNET,p.HEDERA_TESTNET,p.UNREAL_TESTNET,p.MASA_TESTNET,p.MERLIN_TESTNET,p.HOMEVERSE_TESTNET,p.ZKASTAR_TESTNET,p.AMOY_TESTNET,p.DEGEN_TESTNET,p.XLAYER_TESTNET,p.FORM_TESTNET,p.LL1_TESTNET,p.MANTASEP_TESTNET,p.SKALE_TESTNET,p.TAIKO_TESTNET,p.ZIRCUIT_TESTNET,p.CAMP_TESTNET,p.OLIVE_TESTNET,p.SANKO_TESTNET,p.BOB_TESTNET,p.CYBER_TESTNET,p.BOTANIX_TESTNET,p.XCHAIN_TESTNET,p.ZKLINK_TESTNET,p.EBI_TESTNET,p.LINEASEP_TESTNET,p.BESU1_TESTNET,p.BOUNCEBIT_TESTNET,p.MORPH_TESTNET,p.BARTIO_TESTNET,p.METISSEP_TESTNET,p.FLARE_TESTNET,p.GLUE_TESTNET,p.OPENCAMPUS_TESTNET,p.VANAR_TESTNET,p.PEAQ_TESTNET,p.FI_TESTNET,p.PLUME_TESTNET,p.CURTIS_TESTNET,p.LIF3_TESTNET,p.IOTA_TESTNET,p.LYRA_TESTNET,p.LIGHTLINK_TESTNET,p.BAHAMUT_TESTNET,p.CODEX_TESTNET,p.OTHERWORLD_TESTNET,p.ABSTRACT_TESTNET,p.ROOT_TESTNET,p.STORY_TESTNET,p.TREASURE_TESTNET,p.REYA_TESTNET,p.BITLAYER_TESTNET,p.DM2VERSE_TESTNET,p.OZEAN_TESTNET,p.BEVM_TESTNET,p.ETHEREUM_V2_TESTNET,p.POLYGON_V2_TESTNET,p.ARBITRUM_V2_TESTNET,p.OPTIMISM_V2_TESTNET,p.AVALANCHE_V2_TESTNET,p.BSC_V2_TESTNET,p.FANTOM_V2_TESTNET,p.DFK_V2_TESTNET,p.HARMONY_V2_TESTNET,p.DEXALOT_V2_TESTNET,p.CELO_V2_TESTNET,p.MOONBEAM_V2_TESTNET,p.FUSE_V2_TESTNET,p.GNOSIS_V2_TESTNET,p.ZKSYNC_V2_TESTNET,p.SHRAPNEL_V2_TESTNET,p.DOS_V2_TESTNET,p.KLAYTN_V2_TESTNET,p.METIS_V2_TESTNET,p.COREDAO_V2_TESTNET,p.OKX_V2_TESTNET,p.METER_V2_TESTNET,p.ZKCONSENSYS_V2_TESTNET,p.ZKPOLYGON_V2_TESTNET,p.CANTO_V2_TESTNET,p.BASE_V2_TESTNET,p.SEPOLIA_V2_TESTNET,p.AAVEGOTCHI_V2_TESTNET,p.SCROLL_V2_TESTNET,p.CATHAY_V2_TESTNET,p.KAVA_V2_TESTNET,p.TENET_V2_TESTNET,p.ORDERLY_V2_TESTNET,p.BLOCKGEN_V2_TESTNET,p.MERITCIRCLE_V2_TESTNET,p.MANTLE_V2_TESTNET,p.HUBBLE_V2_TESTNET,p.ZORA_V2_TESTNET,p.TOMO_V2_TESTNET,p.LOOT_V2_TESTNET,p.TELOS_V2_TESTNET,p.AURORA_V2_TESTNET,p.OPBNB_V2_TESTNET,p.SHIMMER_V2_TESTNET,p.MONAD_V2_TESTNET,p.SPRUCE_V2_TESTNET,p.PGJJTK_V2_TESTNET,p.ODA_V2_TESTNET,p.KIWI_V2_TESTNET,p.ASTAR_V2_TESTNET,p.CONFLUX_V2_TESTNET,p.EON_V2_TESTNET,p.XPLA_V2_TESTNET,p.HOLESKY_V2_TESTNET,p.INJECTIVE_V2_TESTNET,p.IDEX_V2_TESTNET,p.ZKATANA_V2_TESTNET,p.MANTA_V2_TESTNET,p.FRAME_V2_TESTNET,p.PGN_V2_TESTNET,p.POLYGONCDK_V2_TESTNET,p.ARBSEP_V2_TESTNET,p.OPTSEP_V2_TESTNET,p.BERA_V2_TESTNET,p.VENN_V2_TESTNET,p.RARIBLE_V2_TESTNET,p.GUNZILLA_V2_TESTNET,p.RC1_V2_TESTNET,p.ETHERLINK_V2_TESTNET,p.KIWI2_V2_TESTNET,p.JOC_V2_TESTNET,p.BLAST_V2_TESTNET,p.XAI_V2_TESTNET,p.TANGIBLE_V2_TESTNET,p.BASESEP_V2_TESTNET,p.MANTLESEP_V2_TESTNET,p.ZKPOLYGONSEP_V2_TESTNET,p.ZKSYNCSEP_V2_TESTNET,p.ZORASEP_V2_TESTNET,p.TRON_V2_TESTNET,p.EXOCORE_V2_TESTNET,p.FRAXTAL_V2_TESTNET,p.SEI_V2_TESTNET,p.MODE_V2_TESTNET,p.HEDERA_V2_TESTNET,p.UNREAL_V2_TESTNET,p.MASA_V2_TESTNET,p.MERLIN_V2_TESTNET,p.HOMEVERSE_V2_TESTNET,p.ZKASTAR_V2_TESTNET,p.AMOY_V2_TESTNET,p.DEGEN_V2_TESTNET,p.XLAYER_V2_TESTNET,p.FORM_V2_TESTNET,p.LL1_V2_TESTNET,p.MANTASEP_V2_TESTNET,p.SKALE_V2_TESTNET,p.TAIKO_V2_TESTNET,p.ZIRCUIT_V2_TESTNET,p.CAMP_V2_TESTNET,p.OLIVE_V2_TESTNET,p.SANKO_V2_TESTNET,p.BOB_V2_TESTNET,p.CYBER_V2_TESTNET,p.BOTANIX_V2_TESTNET,p.XCHAIN_V2_TESTNET,p.ZKLINK_V2_TESTNET,p.EBI_V2_TESTNET,p.LINEASEP_V2_TESTNET,p.BESU1_V2_TESTNET,p.BOUNCEBIT_V2_TESTNET,p.MORPH_V2_TESTNET,p.BARTIO_V2_TESTNET,p.METISSEP_V2_TESTNET,p.FLARE_V2_TESTNET,p.GLUE_V2_TESTNET,p.OPENCAMPUS_V2_TESTNET,p.VANAR_V2_TESTNET,p.PEAQ_V2_TESTNET,p.FI_V2_TESTNET,p.PLUME_V2_TESTNET,p.CURTIS_V2_TESTNET,p.LIF3_V2_TESTNET,p.IOTA_V2_TESTNET,p.LYRA_V2_TESTNET,p.LIGHTLINK_V2_TESTNET,p.BAHAMUT_V2_TESTNET,p.CODEX_V2_TESTNET,p.OTHERWORLD_V2_TESTNET,p.ABSTRACT_V2_TESTNET,p.ROOT_V2_TESTNET,p.STORY_V2_TESTNET,p.TREASURE_V2_TESTNET,p.REYA_V2_TESTNET,p.BITLAYER_V2_TESTNET,p.DM2VERSE_V2_TESTNET,p.OZEAN_V2_TESTNET,p.BEVM_V2_TESTNET,p.SOLANA_V2_TESTNET,p.ETHEREUM_SANDBOX,p.BSC_SANDBOX,p.AVALANCHE_SANDBOX,p.POLYGON_SANDBOX,p.APTOS_SANDBOX,p.OPTIMISM_SANDBOX,p.TRON_SANDBOX,p.TRONDEV_SANDBOX,p.ARBITRUM_SANDBOX,p.FANTOM_SANDBOX,p.METIS_SANDBOX,p.ETHEREUM_V2_SANDBOX,p.POLYGON_V2_SANDBOX,p.SOLANA_V2_SA
8NDBOX,p.BSC_V2_SANDBOX,p.AVALANCHE_V2_SANDBOX,p.OPTIMISM_V2_SANDBOX,p.METIS_V2_SANDBOX,p.ETHEREUM_MAINNET,p.BSC_MAINNET,p.AVALANCHE_MAINNET,p.POLYGON_MAINNET,p.ARBITRUM_MAINNET,p.OPTIMISM_MAINNET,p.FANTOM_MAINNET,p.SWIMMER_MAINNET,p.DFK_MAINNET,p.HARMONY_MAINNET,p.DEXALOT_MAINNET,p.CELO_MAINNET,p.MOONBEAM_MAINNET,p.INTAIN_MAINNET,p.FUSE_MAINNET,p.GNOSIS_MAINNET,p.APTOS_MAINNET,p.KLAYTN_MAINNET,p.METIS_MAINNET,p.COREDAO_MAINNET,p.METER_MAINNET,p.OKX_MAINNET,p.GOERLI_MAINNET,p.ZKSYNC_MAINNET,p.SHRAPNEL_MAINNET,p.DOS_MAINNET,p.ZKPOLYGON_MAINNET,p.SEPOLIA_MAINNET,p.MOONRIVER_MAINNET,p.NOVA_MAINNET,p.TENET_MAINNET,p.CANTO_MAINNET,p.KAVA_MAINNET,p.MANTLE_MAINNET,p.HUBBLE_MAINNET,p.ZKCONSENSYS_MAINNET,p.BASE_MAINNET,p.ZORA_MAINNET,p.TOMO_MAINNET,p.LOOT_MAINNET,p.TELOS_MAINNET,p.MERITCIRCLE_MAINNET,p.OPBNB_MAINNET,p.LIF3_MAINNET,p.ASTAR_MAINNET,p.AURORA_MAINNET,p.CONFLUX_MAINNET,p.ORDERLY_MAINNET,p.SCROLL_MAINNET,p.EON_MAINNET,p.XPLA_MAINNET,p.MANTA_MAINNET,p.PGN_MAINNET,p.SHIMMER_MAINNET,p.BB1_MAINNET,p.RARIBLE_MAINNET,p.XAI_MAINNET,p.REAL_MAINNET,p.TILTYARD_MAINNET,p.FRAXTAL_MAINNET,p.TRON_MAINNET,p.ZKATANA_MAINNET,p.MODE_MAINNET,p.BLAST_MAINNET,p.MASA_MAINNET,p.HOMEVERSE_MAINNET,p.MERLIN_MAINNET,p.DEGEN_MAINNET,p.SKALE_MAINNET,p.XLAYER_MAINNET,p.BOB_MAINNET,p.SANKO_MAINNET,p.SEI_MAINNET,p.KINTO_MAINNET,p.EBI_MAINNET,p.IOTA_MAINNET,p.CYBER_MAINNET,p.JOC_MAINNET,p.SOLANA_MAINNET,p.TAIKO_MAINNET,p.XCHAIN_MAINNET,p.ETHERLINK_MAINNET,p.BOUNCEBIT_MAINNET,p.GRAVITY_MAINNET,p.FLARE_MAINNET,p.ZKLINK_MAINNET,p.PEAQ_MAINNET,p.ZIRCUIT_MAINNET,p.LIGHTLINK_MAINNET,p.CODEX_MAINNET,p.LYRA_MAINNET,p.APE_MAINNET,p.REYA_MAINNET,p.BITLAYER_MAINNET,p.DM2VERSE_MAINNET,p.HEDERA_MAINNET,p.ETHEREUM_V2_MAINNET,p.BSC_V2_MAINNET,p.AVALANCHE_V2_MAINNET,p.POLYGON_V2_MAINNET,p.ARBITRUM_V2_MAINNET,p.OPTIMISM_V2_MAINNET,p.FANTOM_V2_MAINNET,p.SWIMMER_V2_MAINNET,p.DFK_V2_MAINNET,p.HARMONY_V2_MAINNET,p.DEXALOT_V2_MAINNET,p.CELO_V2_MAINNET,p.MOONBEAM_V2_MAINNET,p.INTAIN_V2_MAINNET,p.FUSE_V2_MAINNET,p.GNOSIS_V2_MAINNET,p.KLAYTN_V2_MAINNET,p.METIS_V2_MAINNET,p.COREDAO_V2_MAINNET,p.GOERLI_V2_MAINNET,p.OKX_V2_MAINNET,p.CANTO_V2_MAINNET,p.ZKSYNC_V2_MAINNET,p.SHRAPNEL_V2_MAINNET,p.DOS_V2_MAINNET,p.ZKPOLYGON_V2_MAINNET,p.SEPOLIA_V2_MAINNET,p.MOONRIVER_V2_MAINNET,p.TENET_V2_MAINNET,p.NOVA_V2_MAINNET,p.METER_V2_MAINNET,p.KAVA_V2_MAINNET,p.MANTLE_V2_MAINNET,p.HUBBLE_V2_MAINNET,p.ZKCONSENSYS_V2_MAINNET,p.BASE_V2_MAINNET,p.ZORA_V2_MAINNET,p.TOMO_V2_MAINNET,p.LOOT_V2_MAINNET,p.TELOS_V2_MAINNET,p.MERITCIRCLE_V2_MAINNET,p.OPBNB_V2_MAINNET,p.LIF3_V2_MAINNET,p.ASTAR_V2_MAINNET,p.AURORA_V2_MAINNET,p.CONFLUX_V2_MAINNET,p.ORDERLY_V2_MAINNET,p.SCROLL_V2_MAINNET,p.EON_V2_MAINNET,p.XPLA_V2_MAINNET,p.MANTA_V2_MAINNET,p.PGN_V2_MAINNET,p.SHIMMER_V2_MAINNET,p.BB1_V2_MAINNET,p.RARIBLE_V2_MAINNET,p.XAI_V2_MAINNET,p.REAL_V2_MAINNET,p.TILTYARD_V2_MAINNET,p.FRAXTAL_V2_MAINNET,p.MODE_V2_MAINNET,p.TRON_V2_MAINNET,p.ZKATANA_V2_MAINNET,p.BLAST_V2_MAINNET,p.MASA_V2_MAINNET,p.HOMEVERSE_V2_MAINNET,p.MERLIN_V2_MAINNET,p.DEGEN_V2_MAINNET,p.SKALE_V2_MAINNET,p.XLAYER_V2_MAINNET,p.BOB_V2_MAINNET,p.SANKO_V2_MAINNET,p.SEI_V2_MAINNET,p.KINTO_V2_MAINNET,p.EBI_V2_MAINNET,p.IOTA_V2_MAINNET,p.CYBER_V2_MAINNET,p.JOC_V2_MAINNET,p.SOLANA_V2_MAINNET,p.TAIKO_V2_MAINNET,p.XCHAIN_V2_MAINNET,p.ETHERLINK_V2_MAINNET,p.BOUNCEBIT_V2_MAINNET,p.GRAVITY_V2_MAINNET,p.FLARE_V2_MAINNET,p.ZKLINK_V2_MAINNET,p.PEAQ_V2_MAINNET,p.ZIRCUIT_V2_MAINNET,p.LIGHTLINK_V2_MAINNET,p.CODEX_V2_MAINNET,p.LYRA_V2_MAINNET,p.APE_V2_MAINNET,p.REYA_V2_MAINNET,p.BITLAYER_V2_MAINNET,p.DM2VERSE_V2_MAINNET,p.HEDERA_V2_MAINNET,p.ETHEREUM_TESTNET,p.BSC_TESTNET,p.POLYGON_TESTNET,p.FANTOM_TESTNET,p.HARMONY_TESTNET,p.AVALANCHE_TESTNET,p.ARBITRUM_TESTNET,p.OPTIMISM_TESTNET,p.DFK_TESTNET,p.SWIMMER_TESTNET,p.DEXALOT_TESTNET,p.GNOSIS_TESTNET,p.CELO_TESTNET,p.APTOS_TESTNET,p.MOONBEAM_TESTNET,p.FUSE_TESTNET,p.ZKSYNC_TESTNET,p.SHRAPNEL_TESTNET,p.DOS_TESTNET,p.KLAYTN_TESTNET,p.METIS_TESTNET,p.INTAIN_TESTNET,p.COREDAO_TESTNET,p.ZKPOLYGON_TESTNET,p.OKX_TESTNET,p.SOLANA_TESTNET,p.METER_TESTNET,p.ZKCONSENSYS_TESTNET,p.SEPOLIA_TESTNET,p.BASE_TESTNET,p.AAVEGOTCHI_TESTNET,p.SCROLL_TESTNET,p.CATHAY_TESTNET,p.KAVA_TESTNET,p.TENET_TESTNET,p.CANTO_TESTNET,p.ORDERLY_TESTNET,p.BLOCKGEN_TESTNET,p.MER
8ITCIRCLE_TESTNET,p.MANTLE_TESTNET,p.HUBBLE_TESTNET,p.ZORA_TESTNET,p.TOMO_TESTNET,p.LOOT_TESTNET,p.TELOS_TESTNET,p.AURORA_TESTNET,p.OPBNB_TESTNET,p.SHIMMER_TESTNET,p.MONAD_TESTNET,p.LIF3_TESTNET,p.SPRUCE_TESTNET,p.PGJJTK_TESTNET,p.ODA_TESTNET,p.KIWI_TESTNET,p.ASTAR_TESTNET,p.CONFLUX_TESTNET,p.EON_TESTNET,p.XPLA_TESTNET,p.HOLESKY_TESTNET,p.INJECTIVE_TESTNET,p.IDEX_TESTNET,p.ZKATANA_TESTNET,p.MANTA_TESTNET,p.FRAME_TESTNET,p.PGN_TESTNET,p.POLYGONCDK_TESTNET,p.ARBSEP_TESTNET,p.OPTSEP_TESTNET,p.BERA_TESTNET,p.VENN_TESTNET,p.RARIBLE_TESTNET,p.GUNZILLA_TESTNET,p.RC1_TESTNET,p.ETHERLINK_TESTNET,p.KIWI2_TESTNET,p.JOC_TESTNET,p.BLAST_TESTNET,p.TRON_TESTNET,p.BASESEP_TESTNET,p.MANTLESEP_TESTNET,p.ZKPOLYGONSEP_TESTNET,p.ZKSYNCSEP_TESTNET,p.ZORASEP_TESTNET,p.XAI_TESTNET,p.TANGIBLE_TESTNET,p.EXOCORE_TESTNET,p.FRAXTAL_TESTNET,p.SEI_TESTNET,p.MODE_TESTNET,p.HEDERA_TESTNET,p.SEI_TESTNET,p.UNREAL_TESTNET,p.MASA_TESTNET,p.MERLIN_TESTNET,p.HOMEVERSE_TESTNET,p.ZKASTAR_TESTNET,p.AMOY_TESTNET,p.DEGEN_TESTNET,p.XLAYER_TESTNET,p.FORM_TESTNET,p.LL1_TESTNET,p.MANTASEP_TESTNET,p.SKALE_TESTNET,p.TAIKO_TESTNET,p.ZIRCUIT_TESTNET,p.CAMP_TESTNET,p.OLIVE_TESTNET,p.SANKO_TESTNET,p.BOB_TESTNET,p.CYBER_TESTNET,p.BOTANIX_TESTNET,p.XCHAIN_TESTNET,p.ZKLINK_TESTNET,p.EBI_TESTNET,p.LINEASEP_TESTNET,p.BESU1_TESTNET,p.BOUNCEBIT_TESTNET,p.MORPH_TESTNET,p.BARTIO_TESTNET,p.METISSEP_TESTNET,p.FLARE_TESTNET,p.GLUE_TESTNET,p.OPENCAMPUS_TESTNET,p.VANAR_TESTNET,p.PEAQ_TESTNET,p.FI_TESTNET,p.PLUME_TESTNET,p.CURTIS_TESTNET,p.IOTA_TESTNET,p.LYRA_TESTNET,p.LIGHTLINK_TESTNET,p.BAHAMUT_TESTNET,p.CODEX_TESTNET,p.OTHERWORLD_TESTNET,p.ABSTRACT_TESTNET,p.ROOT_TESTNET,p.STORY_TESTNET,p.TREASURE_TESTNET,p.REYA_TESTNET,p.BITLAYER_TESTNET,p.DM2VERSE_TESTNET,p.OZEAN_TESTNET,p.BEVM_TESTNET,p.ETHEREUM_V2_TESTNET,p.POLYGON_V2_TESTNET,p.ARBITRUM_V2_TESTNET,p.OPTIMISM_V2_TESTNET,p.AVALANCHE_V2_TESTNET,p.BSC_V2_TESTNET,p.FANTOM_V2_TESTNET,p.DFK_V2_TESTNET,p.HARMONY_V2_TESTNET,p.DEXALOT_V2_TESTNET,p.CELO_V2_TESTNET,p.MOONBEAM_V2_TESTNET,p.FUSE_V2_TESTNET,p.GNOSIS_V2_TESTNET,p.ZKSYNC_V2_TESTNET,p.SHRAPNEL_V2_TESTNET,p.DOS_V2_TESTNET,p.KLAYTN_V2_TESTNET,p.METIS_V2_TESTNET,p.COREDAO_V2_TESTNET,p.OKX_V2_TESTNET,p.METER_V2_TESTNET,p.ZKCONSENSYS_V2_TESTNET,p.ZKPOLYGON_V2_TESTNET,p.CANTO_V2_TESTNET,p.BASE_V2_TESTNET,p.SEPOLIA_V2_TESTNET,p.AAVEGOTCHI_V2_TESTNET,p.SCROLL_V2_TESTNET,p.CATHAY_V2_TESTNET,p.KAVA_V2_TESTNET,p.TENET_V2_TESTNET,p.ORDERLY_V2_TESTNET,p.BLOCKGEN_V2_TESTNET,p.MERITCIRCLE_V2_TESTNET,p.MANTLE_V2_TESTNET,p.HUBBLE_V2_TESTNET,p.ZORA_V2_TESTNET,p.TOMO_V2_TESTNET,p.LOOT_V2_TESTNET,p.TELOS_V2_TESTNET,p.AURORA_V2_TESTNET,p.OPBNB_V2_TESTNET,p.SHIMMER_V2_TESTNET,p.MONAD_V2_TESTNET,p.LIF3_V2_TESTNET,p.SPRUCE_V2_TESTNET,p.PGJJTK_V2_TESTNET,p.ODA_V2_TESTNET,p.KIWI_V2_TESTNET,p.ASTAR_V2_TESTNET,p.CONFLUX_V2_TESTNET,p.EON_V2_TESTNET,p.XPLA_V2_TESTNET,p.HOLESKY_V2_TESTNET,p.INJECTIVE_V2_TESTNET,p.IDEX_V2_TESTNET,p.ZKATANA_V2_TESTNET,p.MANTA_V2_TESTNET,p.FRAME_V2_TESTNET,p.PGN_V2_TESTNET,p.POLYGONCDK_V2_TESTNET,p.ARBSEP_V2_TESTNET,p.OPTSEP_V2_TESTNET,p.BERA_V2_TESTNET,p.VENN_V2_TESTNET,p.RARIBLE_V2_TESTNET,p.GUNZILLA_V2_TESTNET,p.RC1_V2_TESTNET,p.ETHERLINK_V2_TESTNET,p.KIWI2_V2_TESTNET,p.JOC_V2_TESTNET,p.BLAST_V2_TESTNET,p.BASESEP_V2_TESTNET,p.MANTLESEP_V2_TESTNET,p.ZKPOLYGONSEP_V2_TESTNET,p.ZKSYNCSEP_V2_TESTNET,p.ZORASEP_V2_TESTNET,p.XAI_V2_TESTNET,p.TANGIBLE_V2_TESTNET,p.TRON_V2_TESTNET,p.EXOCORE_V2_TESTNET,p.FRAXTAL_V2_TESTNET,p.SEI_V2_TESTNET,p.MODE_V2_TESTNET,p.HEDERA_V2_TESTNET,p.SEI_V2_TESTNET,p.UNREAL_V2_TESTNET,p.MASA_V2_TESTNET,p.MERLIN_V2_TESTNET,p.HOMEVERSE_V2_TESTNET,p.ZKASTAR_V2_TESTNET,p.AMOY_V2_TESTNET,p.DEGEN_V2_TESTNET,p.XLAYER_V2_TESTNET,p.FORM_V2_TESTNET,p.LL1_V2_TESTNET,p.MANTASEP_V2_TESTNET,p.SKALE_V2_TESTNET,p.TAIKO_V2_TESTNET,p.ZIRCUIT_V2_TESTNET,p.CAMP_V2_TESTNET,p.OLIVE_V2_TESTNET,p.SANKO_V2_TESTNET,p.BOB_V2_TESTNET,p.CYBER_V2_TESTNET,p.BOTANIX_V2_TESTNET,p.XCHAIN_V2_TESTNET,p.ZKLINK_V2_TESTNET,p.EBI_V2_TESTNET,p.LINEASEP_V2_TESTNET,p.BESU1_V2_TESTNET,p.BOUNCEBIT_V2_TESTNET,p.MORPH_V2_TESTNET,p.BARTIO_V2_TESTNET,p.METISSEP_V2_TESTNET,p.FLARE_V2_TESTNET,p.GLUE_V2_TESTNET,p.OPENCAMPUS_V2_TESTNET,p.VANAR_V2_TESTNET,p.PEAQ_V2_TESTNET,p.FI_V2_TESTNET,p.PLUME_V2_TESTNET,p.CURTIS_V2_TESTNET,p.IOTA_V2_TESTNET,p.LYRA_V2_TESTNET,p.LIGHTLINK_V2_TESTNET,p.BAHAMUT_V2_TESTNET,p.CODEX_V2_TESTNET,p.OTHERWORLD_V2_TESTNET,p.ABSTRACT_V2_TESTNET,p.ROOT_V2_TESTNET,p.STORY_V2_TESTNET,p.TREASURE_V2_TESTNET,p.REYA_V2_TESTNET,p.BITLAYER_V2_TESTNET,p.DM2VERSE_V2_TESTNET,p.OZEAN_V2_TESTNET,p.BEVM_V2_TESTNET,p.SOLANA_V2_TESTNET,p.ETHEREUM_SANDBOX,p.BSC_SANDBOX,p.POLYGON_SANDBOX,p.AVALANCHE_SANDBOX,p.APTOS_SANDBOX,p.OPTIMISM_SANDBOX,p.TRON_SANDBOX,p.TRONDEV_SANDBOX,p.ARBITRUM_SANDBOX,p.FANTOM_SANDBOX,p.METIS_SANDBOX,p.ETHEREUM_V2_SANDBOX,p.POLYGON_V2_SANDBOX,p.SOLANA_V2_SA
8NDBOX,p.BSC_V2_SANDBOX,p.AVALANCHE_V2_SANDBOX,p.OPTIMISM_V2_SANDBOX,p.METIS_V2_SANDBOX,p.ETHEREUM_MAINNET,p.ETHEREUM_TESTNET,p.ETHEREUM_SANDBOX,p.BSC_MAINNET,p.BSC_TESTNET,p.BSC_SANDBOX,p.AVALANCHE_MAINNET,p.AVALANCHE_TESTNET,p.AVALANCHE_SANDBOX,p.POLYGON_MAINNET,p.POLYGON_TESTNET,p.POLYGON_SANDBOX,p.ARBITRUM_MAINNET,p.OPTIMISM_MAINNET,p.FANTOM_MAINNET,p.FANTOM_TESTNET,p.SWIMMER_MAINNET,p.SWIMMER_TESTNET,p.DFK_MAINNET,p.DFK_TESTNET,p.HARMONY_MAINNET,p.HARMONY_TESTNET,p.MOONBEAM_MAINNET,p.MOONBEAM_TESTNET,p.DEXALOT_TESTNET,p.CELO_TESTNET,p.INTAIN_TESTNET;var T=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e))(T||{});a.TRON},98376:(e,t,r)=>{"use strict";r.d(t,{CE:()=>V,W3:()=>X,Qo:()=>B,IB:()=>R,_G:()=>J,__:()=>U,HT:()=>w});var n=r(13741),i=r(42073),o=r(52561),a=r(71558);let s=(0,n.createContext)(null),l={didCatch:!1,error:null};class u extends n.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];null==(t=(r=this.props).onReset)||t.call(r,{args:i,reason:"imperative-api"}),this.setState(l)}}componentDidCatch(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:n}=this.props;if(r&&null!==t.error&&c(e.resetKeys,n)){var i,o;null==(i=(o=this.props).onReset)||i.call(o,{next:n,prev:e.resetKeys,reason:"keys"}),this.setState(l)}}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:i}=this.props,{didCatch:o,error:a}=this.state,l=e;if(o){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)l=t(e);else if(r)l=(0,n.createElement)(r,e);else if(void 0!==i)l=i;else throw a}return(0,n.createElement)(s.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=l}}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}var d=Object.defineProperty,f=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,y=(e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))g.call(t,r)&&y(e,r,t[r]);if(p)for(var r of p(t))m.call(t,r)&&y(e,r,t[r]);return e},b=(e,t)=>f(e,h(t)),v=(e,t)=>{var r={};for(var n in e)g.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&p)for(var n of p(e))0>t.indexOf(n)&&m.call(e,n)&&(r[n]=e[n]);return r},T=(0,n.createContext)(null),w=()=>(0,n.useContext)(T),A=({pluginId:e,pluginName:t,pluginVersion:r,children:o})=>{let a=(0,n.useMemo)(()=>({pluginId:e,pluginName:t,pluginVersion:r}),[e,t,r]);return(0,i.jsx)(T.Provider,{value:a,children:o})},N={on:()=>{},off:()=>{}};function S(){let e=a.Ex.get("EE");return e?{on:e.on.bind(e),off:e.off.bind(e)}:N}var _=new Set;function x(e){_.add(e)}function I(){return Array.from(_)}var O=[],R={register(e){O.push(e)},getPlugins:()=>[...O],clear(){O.length=0}},P="__ORDERLY_INTERCEPTOR_TARGETS_REGISTRY__";function M(e){var t;let r=new Set,n=[];for(let i of e)for(let e of null!=(t=i.interceptors)?t:[])e.target&&!r.has(e.target)&&(r.add(e.target),n.push({path:e.target}));return n}function C(e){let t=new Map;for(let r of e)t.set(r.path,r);for(let e of I())t.has(e)||t.set(e,{path:e});return Array.from(t.values())}(0,n.createContext)({});var k={plugins:[],apiFacade:{events:N},interceptorTargets:[]},L=(0,n.createContext)(null),D=()=>{let e=(0,n.useContext)(L);return null!=e?e:k},B=({plugins:e,pluginState:t,children:r})=>{let a=(0,n.useRef)([]),s=(0,n.useMemo)(()=>{let r=[],n={registerPlugin:e=>r.push(e)};return e.forEach(e=>{"function"==typeof e?e(n,t):r.push(e)}),[...r,...R.getPlugins()]},[e,t]),l=(0,n.useMemo)(()=>({events:S()}),[]);(0,n.useEffect)(()=>{s.forEach(e=>{if("function"==typeof e.setup)try{e.setup(l)}catch(t){console.error(`[Plugin ${e.id}] setup failed:`,t)}})},[s,l]),a.current=s,(0,n.useEffect)(()=>((0,o.VZ)()[P]=()=>C(M(a.current)),()=>{delete(0,o.VZ)()[P]}),[]);let u=(0,n.useMemo)(()=>C(M(s)),[s]),c=(0,n.useMemo)(()=>({plugins:s,apiFacade:l,interceptorTargets:u}),[s,l,u]);return(0,i.jsx)(L.Provider,{value:c,children:r})},V=(e=>(e.DepositForm="depositForm",e.WithdrawForm="withdrawForm",e.AccountMenu="accountMenu",e.MobileAccountMenu="mobileAccountMenu",e.MainMenus="mainMenus",e.EmptyDataIdentifier="emptyDataIdentifier",e.EmptyDataState="empty
8DataIdentifier",e))(V||{}),F={depositForm:"Deposit.DepositForm",withdrawForm:"Deposit.WithdrawForm",accountMenu:"Account.AccountMenu",mobileAccountMenu:"Account.MobileAccountMenu",mainMenus:"Layout.MainMenus",emptyDataIdentifier:"Table.EmptyDataIdentifier"};function U(e){var t;return"string"==typeof e&&e.includes(".")?e:null!=(t=F[e])?t:String(e)}var j=e=>(0,i.jsxs)("div",{style:{color:"#ef4444",fontSize:"12px"},children:["[Plugin ",e," error]"]}),H=({children:e,fallback:t,pluginId:r,onError:n,onFallback:o})=>{let a=null!=t?t:o?o():j(null!=r?r:"unknown");return(0,i.jsx)(u,{fallback:a,onError:e=>null==n?void 0:n(e),children:e})},G=e=>{let{position:t}=e;return(0,i.jsxs)("div",{style:{color:"#ef4444"},children:[(0,i.jsx)("strong",{children:`[${t}] `}),(0,i.jsx)("span",{children:"Not found!"})]})},K=(0,n.createContext)(null),z=e=>{let t=(0,n.useContext)(K);return t?(0,i.jsx)(q,b(E({},t),{componentProps:e})):null},W=({interceptor:e,componentProps:t,apiFacade:r})=>(0,i.jsx)(i.Fragment,{children:e.component(z,t,r)}),q=({interceptors:e,index:t,DefaultComponent:r,componentProps:n,apiFacade:o})=>{if(t<0)return(0,i.jsx)(r,E({},n));let a=e[t],s={interceptors:e,index:t-1,DefaultComponent:r,componentProps:n,apiFacade:o};return(0,i.jsx)(A,{pluginId:a.pluginId,pluginName:a.pluginName,pluginVersion:a.pluginVersion,children:(0,i.jsx)(H,{pluginId:a.pluginId,onError:a.onError,onFallback:a.onFallback,children:(0,i.jsx)(K.Provider,{value:s,children:(0,i.jsx)(W,{interceptor:a,componentProps:n,apiFacade:o})})})},a.identity)},Y=({name:e,DefaultComponent:t,componentProps:r})=>{let{plugins:o,apiFacade:a}=D(),s=(0,n.useMemo)(()=>o.flatMap(t=>{var r;return(null!=(r=t.interceptors)?r:[]).filter(t=>t.target===e).map((r,n)=>({identity:`${t.id}:${e}:${n}`,pluginId:t.id,pluginName:t.name,pluginVersion:t.version,component:r.component,onError:t.onError,onFallback:t.onFallback}))}),[o,e]);return(0,i.jsx)(q,{interceptors:s,index:s.length-1,DefaultComponent:t,componentProps:r,apiFacade:a})};function $(e,t){return(0,n.useMemo)(()=>{let r=r=>(0,i.jsx)(Y,{name:e,DefaultComponent:t,componentProps:r});return r.displayName=`Injected(${e})`,r},[e,t])}var X=e=>{let t=e,{position:r,defaultWidget:n}=t,o=v(t,["position","defaultWidget"]),a=U(r),s=$(a,null!=n?n:()=>(0,i.jsx)(G,{position:String(r)}));return(0,i.jsx)(H,{pluginId:a,children:(0,i.jsx)(s,E({},o))})};function J(e,t){x(t);let r=r=>{let n=$(t,e);return(0,i.jsx)(n,E({},r))};return r.displayName=`injectable(${t})`,r}},98785:(e,t,r)=>{"use strict";r.d(t,{A:()=>el});var n=r(13741);function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){return i(e)||Array.isArray(e)}function a(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function s(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],i=t[r];return"function"==typeof n?`${n}`==`${i}`:o(n)&&o(i)?s(n,i):n===i})}function l(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function u(e,t){if(e.length!==t.length)return!1;let r=l(e),n=l(t);return r.every((e,t)=>s(e,n[t]))}function c(e){return"number"==typeof e}function d(e){return"string"==typeof e}function f(e){return"boolean"==typeof e}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return Math.abs(e)}function g(e){return Math.sign(e)}function m(e,t){return p(e-t)}function y(e,t){if(0===e||0===t||p(e)<=p(t))return 0;let r=m(p(e),p(t));return p(r/e)}function E(e){return Math.round(100*e)/100}function b(e){return N(e).map(Number)}function v(e){return e[T(e)]}function T(e){return Math.max(0,e.length-1)}function w(e,t){return t===T(e)}function A(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function N(e){return Object.keys(e)}function S(e,t){return[e,t].reduce((e,t)=>(N(t).forEach(r=>{let n=e[r],i=t[r],o=h(n)&&h(i);e[r]=o?S(n,i):i}),e),{})}function _(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function x(e,t){let r={start:n,center:i,end:o};function n(){return 0}function i(e){return o(e)/2}function o(e){return t-e}return{measure:function(n,i){return d(e)?r[e](n):e(t,n,i)}}}function I(){let e=[],t={add:function(r,n,i,o={passive:!0}){let a;if("addEventListener"in r)r.addEventListener(n,i,o),a=()=>r.removeEventListener(n,i,o);else{let e=r;e.addListener(i),a=()=>e.removeListener(i)}return e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function O(e,t,r,n){let i=I(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e,r(),r());let i=e-a;for(a=e,s+=i;
8s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),a=null,s=0,l=0}function d(){a=null,s=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&d()})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}function R(e,t){let r="rtl"===t,n="y"===e,i=n?"y":"x",o=n?"x":"y",a=!n&&r?-1:1;function s(e){let{height:t,width:r}=e;return n?t:r}function l(e){return e*a}return{scroll:i,cross:o,startEdge:function e(){return n?"top":r?"right":"left"}(),endEdge:n?"bottom":r?"left":"right",measureSize:s,direction:l}}function P(e=0,t=0){let r=p(e-t);function n(t){return t<e}function i(e){return e>t}function o(e){return n(e)||i(e)}function a(r){return o(r)?n(r)?e:t:r}function s(e){return r?e-r*Math.ceil((e-t)/r):e}return{length:r,max:t,min:e,constrain:a,reachedAny:o,reachedMax:i,reachedMin:n,removeOffset:s}}function M(e,t,r){let{constrain:n}=P(0,e),i=e+1,o=a(t);function a(e){return r?p((i+e)%i):n(e)}function s(){return o}function l(e){return u().set(s()+e)}function u(){return M(e,s(),r)}let c={get:s,set:function(e){return o=a(e),c},add:l,clone:u};return c}function C(e,t,r,n,i,o,a,s,l,u,c,d,h,E,b,v,T,w,A){let{cross:N,direction:S}=e,x=["INPUT","SELECT","TEXTAREA"],O={passive:!1},R=I(),M=I(),C=P(50,225).constrain(E.measure(20)),k={mouse:300,touch:400},L={mouse:500,touch:600},D=b?43:25,B=!1,V=0,F=0,U=!1,j=!1,H=!1,G=!1;function K(){let e=G?r:t;M.add(e,"touchmove",$,O).add(e,"touchend",X).add(e,"mousemove",$,O).add(e,"mouseup",X)}function z(e){let t=e.nodeName||"";return x.includes(t)}function W(){return(b?L:k)[G?"mouse":"touch"]}function q(e,t){let r=d.add(-1*g(e)),n=c.byDistance(e,!b).distance;return b||p(e)<C?n:T&&t?.5*n:c.byIndex(r.get(),0).distance}function Y(e){let t=_(e,n);G=t,H=b&&t&&!e.buttons&&B,B=m(i.get(),a.get())>=2,(!t||0===e.button)&&(z(e.target)||(U=!0,o.pointerDown(e),u.useFriction(0).useDuration(0),i.set(a),K(),V=o.readPoint(e),F=o.readPoint(e,N),h.emit("pointerDown")))}function $(e){if(!_(e,n)&&e.touches.length>=2)return X(e);let t=o.readPoint(e),r=o.readPoint(e,N),a=m(t,V),l=m(r,F);if(!j&&!G&&(!e.cancelable||!(j=a>l)))return X(e);let c=o.pointerMove(e);a>v&&(H=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(S(c)),e.preventDefault()}function X(e){let t=c.byDistance(0,!1).index!==d.get(),r=o.pointerUp(e)*W(),n=q(S(r),t),i=y(r,n),a=D-10*i,s=w+i/50;j=!1,U=!1,M.clear(),u.useDuration(a).useFriction(s),l.distance(n,!b),G=!1,h.emit("pointerUp")}function J(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){if(!A)return;function r(t){(f(A)||A(e,t))&&Y(t)}let n=t;R.add(n,"dragstart",e=>e.preventDefault(),O).add(n,"touchmove",()=>void 0,O).add(n,"touchend",()=>void 0).add(n,"touchstart",r).add(n,"mousedown",r).add(n,"touchcancel",X).add(n,"contextmenu",X).add(n,"click",J,!0)},destroy:function(){R.clear(),M.clear()},pointerDown:function(){return U}}}function k(e,t){let r,n,i=170;function o(e){return e.timeStamp}function a(r,n){let i=n||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(_(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){let t=a(e)-a(n),s=o(e)-o(r)>i;return n=e,s&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=a(n)-a(r),s=o(e)-o(r),l=o(e)-o(n)>i,u=t/s;return s&&!l&&p(u)>.1?u:0},readPoint:a}}function L(){return{measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}}}function D(e){return{measure:function(t){return t/100*e}}}function B(e,t,r,n,i,o,a){let s,l,u=[e].concat(n),c=[],d=!1;function h(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=h(e),c=n.map(h),s=new ResizeObserver(e=>{(f(o)||o(i,e))&&a(e)}),r.requestAnimationFrame(()=>{u.forEach(e=>s.observe(e))}));function a(r){for(let o of r){if(d)return;let r=o.target===e,a=n.indexOf(o.target),s=r?l:c[a];if(p(h(r?e:n[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}},destroy:function(){d=!0,s&&s.disconnect()}}}function V(e,t,r,n,i,o){let a=0,s=0,l=i,u=o,c=e.get(),d=0;function f(e){return l=e,m}function h(e){return u=e,m}let m={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),a+=t/l,a*=u,c+=a,e.add(a),i=c-d):(a=0,r.set(n),e.set(n),i=t),s=g(i),d=c,m},settled:function(){return .001>p(n.get()-t.get())},useBaseFriction:function(){return h(o)},useBaseDuration:function(){return f(i)},useFriction:h,useDuration:f};return m}function F(e,t,r,n,i){let o=i.measure(10),a=i.measure(50),s=P(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}
8function c(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=p(e[l]-t.get()),d=r.get()-t.get(),f=s.constrain(c/a);r.subtract(d*f),!i&&p(d)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}return{shouldConstrain:u,constrain:c,toggleActive:function(e){l=!e}}}function U(e,t,r,n,i){let o=P(-t+e,0),a=c(),s=u();function l(e,t){return 1>=m(e,t)}function u(){let e=a[0],t=v(a);return P(a.lastIndexOf(e),a.indexOf(t)+1)}function c(){return r.map((e,t)=>{let{min:n,max:i}=o,a=o.constrain(e),s=!t,u=w(r,t);return s?i:u||l(n,a)?n:l(i,a)?i:a}).map(e=>parseFloat(e.toFixed(3)))}return{snapsContained:function(){if(t<=e+i)return[o.max];if("keepSnaps"===n)return a;let{min:r,max:l}=s;return a.slice(r,l)}(),scrollContainLimit:s}}function j(e,t,r){let n=t[0];return{limit:P(r?n-e:v(t),n)}}function H(e,t,r,n){let i=.1,{reachedMin:o,reachedMax:a}=P(t.min+i,t.max+i);function s(e){return 1===e?a(r.get()):-1===e&&o(r.get())}return{loop:function(t){if(!s(t))return;let r=-1*t*e;n.forEach(e=>e.add(r))}}}function G(e){let{max:t,length:r}=e;return{get:function(e){let n=e-t;return r?-(n/r):0}}}function K(e,t,r,n,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=c().map(t.measure),u=d();function c(){return s(n).map(e=>v(e)[a]-e[0][o]).map(p)}function d(){return n.map(e=>r[o]-e[o]).map(e=>-p(e))}function f(){return s(u).map(e=>e[0]).map((e,t)=>e+l[t])}return{snaps:u,snapsAligned:f()}}function z(e,t,r,n,i,o){let{groupSlides:a}=i,{min:s,max:l}=n;return{slideRegistry:function(){let n=a(o),i=!e||"keepSnaps"===t;return 1===r.length?[o]:i?n:n.slice(s,l).map((e,t,r)=>{let n=!t,i=w(r,t);return n?A(v(r[0])+1):i?A(T(o)-v(r)[0]+1,v(r)[0]):e})}()}}function W(e,t,r,n,i){let{reachedAny:o,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>p(e)-p(t))[0]}function u(r){let n=e?a(r):s(r),{index:i}=t.map((e,t)=>({diff:c(e-n,0),index:t})).sort((e,t)=>p(e.diff)-p(t.diff))[0];return{index:i,distance:n}}function c(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let o=i.filter(e=>g(e)===n);return o.length?l(o):v(i)-r}return{byDistance:function(r,n){let a=i.get()+r,{index:s,distance:l}=u(a),d=!e&&o(a);if(!n||d)return{index:s,distance:r};let f=r+c(t[s]-l,0);return{index:s,distance:f}},byIndex:function(e,r){let n=c(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:c}}function q(e,t,r,n,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();
8o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}function Y(e,t,r,n,i,o,a,s){let l={passive:!0,capture:!0},u=0;function d(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(h){s&&(o.add(document,"keydown",d,!1),t.forEach((e,t)=>{o.add(e,"focus",e=>{(f(s)||s(h,e))&&p(t)},l)}));function p(t){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=r.findIndex(e=>e.includes(t));c(o)&&(i.useDuration(0),n.index(o,0),a.emit("slideFocus"))}}}}function $(e){let t=e;function r(e){return c(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function X(e,t){let r="x"===e.scroll?a:s,n=t.style,i=null,o=!1;function a(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}return{clear:function(){!o&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let a=E(e.direction(t));a!==i&&(n.transform=r(a),i=a)},toggleActive:function(e){o=!e}}}function J(e,t,r,n,i,o,a,s,l){let u=.5,c=b(i),d=b(i).reverse(),f=y().concat(E());function h(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,r)=>h(e,t)>0?e.concat([r]):e,[])}function g(e){return o.map((r,i)=>({start:r-n[i]+u+e,end:r+t-u+e}))}function m(t,n,i){let o=g(n);return t.map(t=>{let n=i?0:-r,a=i?r:0,u=i?"end":"start",c=o[t][u];return{index:t,loopPoint:c,slideLocation:$(-1),translate:X(e,l[t]),target:()=>s.get()>c?n:a}})}function y(){return m(p(d,a[0]),r,!1)}function E(){return m(p(c,t-a[0]-1),-r,!0)}return{canLoop:function(){return f.every(({index:e})=>.1>=h(c.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:f}}function Q(e,t,r){let n,i=!1;return{init:function(o){r&&(n=new MutationObserver(e=>{!i&&(f(r)||r(o,e))&&a(e)})).observe(e,{childList:!0});function a(e){for(let r of e)if("childList"===r.type){o.reInit(),t.emit("slidesChanged");break}}},destroy:function(){n&&n.disconnect(),i=!0}}}function Z(e,t,r,n){let i,o={},a=null,s=null,l=!1;function u(e){return N(o).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=o[n],a=e&&i,s=!e&&!i;return(a||s)&&t.push(n),t},[])}return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=u(e);return e&&(a=t),e||(s=t),t}}}function ee(e,t,r,n,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=r[0]&&i,c=h(),d=g(),f=r.map(a);function h(){if(!u)return 0;let e=r[0];return p(t[s]-e[s])}function g(){return u?parseFloat(o.getComputedStyle(v(n)).getPropertyValue(`margin-${l}`)):0}function m(){return r.map((e,t,r)=>{let n=!t,i=w(r,t);return n?f[t]+c:i?f[t]+d:r[t+1][s]-e[s]}).map(p)}return{slideSizes:f,slideSizesWithGaps:m(),startGap:c,endGap:d}}function et(e,t,r,n,i,o,a,s,l){let{startEdge:u,endEdge:d,direction:f}=e,h=c(r);function g(e,t){return b(e).filter(e=>e%t==0).map(r=>e.slice(r,r+t))}function m(e){return e.length?b(e).reduce((r,c,h)=>{let g=v(r)||0,m=0===g,y=c===T(e),E=i[u]-o[g][u],b=i[u]-o[c][d],w=!n&&m?f(a):0,A=p(b-(!n&&y?f(s):0)-(E+w));return h&&A>t+l&&r.push(c),y&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}return{groupSlides:function(e){return h?g(e,r):m(e)}}}function er(e,t,r,n,i,o,a){let{align:s,axis:l,direction:u,startIndex:c,loop:d,duration:f,dragFree:h,dragThreshold:p,inViewThreshold:g,slidesToScroll:m,skipSnaps:y,containScroll:E,watchResize:w,watchSlides:A,watchDrag:N,watchFocus:S}=o,_=2,P=L(),er=P.measure(t),en=r.map(P.measure),ei=R(l,u),eo=ei.measureSize(er),ea=D(eo),es=x(s,eo),el=!d&&!!E,{slideSizes:eu,slideSizesWithGaps:ec,startGap:ed,endGap:ef}=ee(ei,er,en,r,d||!!E,i),eh=et(ei,eo,m,d,er,en,ed,ef,_),{snaps:ep,snapsAligned:eg}=K(ei,es,er,en,eh),em=-v(ep)+v(ec),{snapsContained:ey,scrollContainLimit:eE}=U(eo,em,eg,E,_),eb=el?ey:eg,{limit:ev}=j(em,eb,d),eT=M(T(eb),c,d),ew=eT.clone(),eA=b(r),eN=({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()},eS=({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},f)=>{let h=e.settled(),p=!c.shouldConstrain(),g=d?h:h&&p,m=g&&!s.pointerDown();m&&l.stop();let y=r.get()*f+i.get()*(1-f);n.set(y),d&&(o.loop(e.direction()),a.loop()),t.to(n.get()),m&&u.emit("settle"),g||u.emit("scroll")},e_=O(n,i,()=>eN(ej),e=>eS(ej,e)),ex=.68,eI=eb[eT.get()],eO=$(eI),eR=$(eI),eP=$(eI),eM=$(eI),eC=V(eO,eP,eR,eM,f,ex),ek=W(d,eb,em,ev,eM),eL=q(e_,eT,ew,eC,ek,eM,a),eD=G(ev),eB=I(),eV=Z(t,r,a,g),{slideRegistry:eF}
8=z(el,E,eb,eE,eh,eA),eU=Y(e,r,eF,eL,eC,eB,a,S),ej={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:er,slideRects:en,animation:e_,axis:ei,dragHandler:C(ei,e,n,i,eM,k(ei,i),eO,e_,eL,eC,ek,eT,a,ea,h,p,y,ex,N),eventStore:eB,percentOfView:ea,index:eT,indexPrevious:ew,limit:ev,location:eO,offsetLocation:eP,previousLocation:eR,options:o,resizeHandler:B(t,a,i,r,ei,w,P),scrollBody:eC,scrollBounds:F(ev,eP,eM,eC,ea),scrollLooper:H(em,ev,eP,[eO,eP,eR,eM]),scrollProgress:eD,scrollSnapList:eb.map(eD.get),scrollSnaps:eb,scrollTarget:ek,scrollTo:eL,slideLooper:J(ei,eo,em,eu,ec,ep,eb,eP,r),slideFocus:eU,slidesHandler:Q(t,a,A),slidesInView:eV,slideIndexes:eA,slideRegistry:eF,slidesToScroll:eh,target:eM,translate:X(ei,t)};return ej}function en(){let e,t={};function r(e){return t[e]||[]}let n={init:function(t){e=t},emit:function(t){return r(t).forEach(r=>r(e,t)),n},off:function(e,i){return t[e]=r(e).filter(e=>e!==i),n},on:function(e,i){return t[e]=r(e).concat([i]),n},clear:function(){t={}}};return n}let ei={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function eo(e){function t(e,t){return S(e,t||{})}function r(r){let n=r.breakpoints||{},i=N(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:function(t){return t.map(e=>N(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}function ea(e){let t=[];return{init:function(r,n){return(t=n.filter(({options:t})=>!1!==e.optionsAtMedia(t).active)).forEach(t=>t.init(r,e)),n.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}function es(e,t,r){let n,i,o,a,s=e.ownerDocument,l=s.defaultView,u=eo(l),c=ea(u),f=I(),h=en(),{mergeOptions:p,optionsAtMedia:g,optionsMediaQueries:m}=u,{on:y,off:E,emit:b}=h,v=O,T=!1,w=p(ei,es.globalOptions),A=p(w),N=[];function S(){let{container:t,slides:r}=A;o=(d(t)?e.querySelector(t):t)||e.children[0];let n=d(r)?o.querySelectorAll(r):r;a=[].slice.call(n||o.children)}function _(t){let r=er(e,o,a,s,l,t,h);return t.loop&&!r.slideLooper.canLoop()?_(Object.assign({},t,{loop:!1})):r}function x(e,t){!T&&(A=g(w=p(w,e)),N=t||N,S(),n=_(A),m([w,...N.map(({options:e})=>e)]).forEach(e=>f.add(e,"change",O)),A.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(C),n.eventHandler.init(C),n.resizeHandler.init(C),n.slidesHandler.init(C),n.options.loop&&n.slideLooper.loop(),o.offsetParent&&a.length&&n.dragHandler.init(C),i=c.init(C,N)))}function O(e,t){let r=M();R(),x(p({startIndex:r},e),t),h.emit("reInit")}function R(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),c.destroy(),f.clear()}function P(e,t,r){A.active&&!T&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:A.duration),n.scrollTo.index(e,r||0))}function M(){return n.index.get()}let C={canScrollNext:function(){return n.index.add(1).get()!==M()},canScrollPrev:function(){return n.index.add(-1).get()!==M()},containerNode:function(){return o},internalEngine:function(){return n},destroy:function(){T||(T=!0,f.clear(),R(),h.emit("destroy"),h.clear())},off:E,on:y,emit:b,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:v,rootNode:function(){return e},scrollNext:function(e){P(n.index.add(1).get(),e,-1)},scrollPrev:function(e){P(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:P,selectedScrollSnap:M,slideNodes:function(){return a},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return x(t,r),setTimeout(()=>h.emit("init"),0),C}function el(e={}
8,t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[o,l]=(0,n.useState)(),[c,d]=(0,n.useState)(),f=(0,n.useCallback)(()=>{o&&o.reInit(r.current,i.current)},[o]);return(0,n.useEffect)(()=>{s(r.current,e)||(r.current=e,f())},[e,f]),(0,n.useEffect)(()=>{u(i.current,t)||(i.current=t,f())},[t,f]),(0,n.useEffect)(()=>{if(a()&&c){es.globalOptions=el.globalOptions;let e=es(c,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[d,o]}es.globalOptions=void 0,el.globalOptions=void 0},99206:e=>{"use strict";let t=(function*(){}).constructor;e.exports=()=>t},99308:(e,t,r)=>{"use strict";r.d(t,{gH:()=>h,Os:()=>E});var n=r(56875),i=r.n(n),o=r(58854),a=r(70214);let s="bignumber/5.8.0";var l=i().BN;let u=new a.Vy(s),c={},d=0x1fffffffffffff,f=!1;class h{constructor(e,t){e!==c&&u.throwError("cannot call constructor directly; use BigNumber.from",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return g(m(this).fromTwos(e))}toTwos(e){return g(m(this).toTwos(e))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(e){return g(m(this).add(m(e)))}sub(e){return g(m(this).sub(m(e)))}div(e){return h.from(e).isZero()&&y("division-by-zero","div"),g(m(this).div(m(e)))}mul(e){return g(m(this).mul(m(e)))}mod(e){let t=m(e);return t.isNeg()&&y("division-by-zero","mod"),g(m(this).umod(t))}pow(e){let t=m(e);return t.isNeg()&&y("negative-power","pow"),g(m(this).pow(t))}and(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),g(m(this).and(t))}or(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),g(m(this).or(t))}xor(e){let t=m(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),g(m(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),g(m(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),g(m(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),g(m(this).shrn(e))}eq(e){return m(this).eq(m(e))}lt(e){return m(this).lt(m(e))}lte(e){return m(this).lte(m(e))}gt(e){return m(this).gt(m(e))}gte(e){return m(this).gte(m(e))}isNegative(){return"-"===this._hex[0]}isZero(){return m(this).isZero()}toNumber(){try{return m(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",a.Vy.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?f||(f=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Vy.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",a.Vy.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof h)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new h(c,p(e)):e.match(/^-?[0-9]+$/)?new h(c,p(new l(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=d||e<=-d)&&y("overflow","BigNumber.from",e),h.from(String(e));let t=e;if("bigint"==typeof t)return h.from(t.toString());if((0,o.aY)(t))return h.from((0,o.c$)(t));if(t)if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,o.Lo)(e)||"-"===e[0]&&(0,o.Lo)(e.substring(1))))return h.from(e)}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function p(e){if("string"!=typeof e)return p(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=p(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function g(e){return h.from(p(e))}function m(e){let t=h.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,a.Vy.errors.NUMERIC_FAULT,n)}function E(e){return new l(e,36).toString(16)}},99392:(e,t,r)=>{"use strict";r.d(t,{Js:()=>b,XS:()=>v});var n=r(60133),i=r(7160),o=r(70407),a=r(93713);let s=BigInt(-1),l=BigInt(0),u=BigInt(1),c=BigInt(5),d={},f="0000";for(;f.length<80;)f+=f;function h(e){let t=f;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function p(e,t,r){let i=BigInt(t.width);if(t.signed){let t=u<<i-u;(0,n.vA)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>l?(0,o.ST)((0,o.dK)(e,i),i):-(0,o.ST)((0,o.dK)(-e,i),i)}else{let t=u<<i;(0,n.vA)(null==r||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%t+t)%t&t-u}return e}function g(e){"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,i=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{let o=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,n.MR)(o,"invalid fixed format","format",e),t="u"!==o[1],r=parseInt(o[2]),i=parseInt(o[3])}else if(e){let o=e,a=(e,t,r)=>
8null==o[e]?r:((0,n.MR)(typeof o[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,o[e]),o[e]);t=a("signed","boolean",t),r=a("width","number",r),i=a("decimals","number",i)}(0,n.MR)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,n.MR)(i<=80,"invalid FixedNumber decimals (too large)","format.decimals",i);let o=(t?"":"u")+"fixed"+String(r)+"x"+String(i);return{signed:t,width:r,decimals:i,name:o}}function m(e,t){let r="";e<l&&(r="-",e*=s);let n=e.toString();if(0===t)return r+n;for(;n.length<=t;)n=f+n;let i=n.length-t;for(n=n.substring(0,i)+"."+n.substring(i);"0"===n[0]&&"."!==n[1];)n=n.substring(1);for(;"0"===n[n.length-1]&&"."!==n[n.length-2];)n=n.substring(0,n.length-1);return r+n}class y{format;#tl;#tu;#tc;_value;constructor(e,t,r){(0,n.gk)(e,d,"FixedNumber"),this.#tu=t,this.#tl=r;let i=m(t,r.decimals);(0,a.n)(this,{format:r.name,_value:i}),this.#tc=h(r.decimals)}get signed(){return this.#tl.signed}get width(){return this.#tl.width}get decimals(){return this.#tl.decimals}get value(){return this.#tu}#td(e){(0,n.MR)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#tf(e,t){return new y(d,e=p(e,this.#tl,t),this.#tl)}#th(e,t){return this.#td(e),this.#tf(this.#tu+e.#tu,t)}addUnsafe(e){return this.#th(e)}add(e){return this.#th(e,"add")}#tp(e,t){return this.#td(e),this.#tf(this.#tu-e.#tu,t)}subUnsafe(e){return this.#tp(e)}sub(e){return this.#tp(e,"sub")}#tg(e,t){return this.#td(e),this.#tf(this.#tu*e.#tu/this.#tc,t)}mulUnsafe(e){return this.#tg(e)}mul(e){return this.#tg(e,"mul")}mulSignal(e){this.#td(e);let t=this.#tu*e.#tu;return(0,n.vA)(t%this.#tc===l,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#tf(t/this.#tc,"mulSignal")}#tm(e,t){return(0,n.vA)(e.#tu!==l,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#td(e),this.#tf(this.#tu*this.#tc/e.#tu,t)}divUnsafe(e){return this.#tm(e)}div(e){return this.#tm(e,"div")}divSignal(e){(0,n.vA)(e.#tu!==l,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#td(e);let t=this.#tu*this.#tc;return(0,n.vA)(t%e.#tu===l,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#tf(t/e.#tu,"divSignal")}cmp(e){let t=this.value,r=e.value,n=this.decimals-e.decimals;return(n>0?r*=h(n):n<0&&(t*=h(-n)),t<r)?-1:+(t>r)}eq(e){return 0===this.cmp(e)}lt(e){return 0>this.cmp(e)}lte(e){return 0>=this.cmp(e)}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#tu;return this.#tu<l&&(e-=this.#tc-u),e=this.#tu/this.#tc*this.#tc,this.#tf(e,"floor")}ceiling(){let e=this.#tu;return this.#tu>l&&(e+=this.#tc-u),e=this.#tu/this.#tc*this.#tc,this.#tf(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;let t=this.decimals-e,r=c*h(t-1),n=this.value+r,i=h(t);return p(n=n/i*i,this.#tl,"round"),new y(d,n,this.#tl)}isZero(){return this.#tu===l}isNegative(){return this.#tu<l}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this.toString(),e)}static fromValue(e,t,r){let i=null==t?0:(0,o.WZ)(t),a=g(r),s=(0,o.Ab)(e,"value"),u=i-a.decimals;if(u>0){let t=h(u);(0,n.vA)(s%t===l,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else u<0&&(s*=h(-u));return p(s,a,"fromValue"),new y(d,s,a)}static fromString(e,t){let r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,n.MR)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);let i=g(t),o=r[2]||"0",a=r[3]||"";for(;a.length<i.decimals;)a+=f;(0,n.vA)(a.substring(i.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),a=a.substring(0,i.decimals);let s=BigInt(r[1]+o+a);return p(s,i,"fromString"),new y(d,s,i)}static fromBytes(e,t){let r=(0,o.Dg)((0,i.q5)(e,"value")),n=g(t);return n.signed&&(r=(0,o.ST)(r,n.width)),p(r,n,"fromBytes"),new y(d,r,n)}}let E=["wei","kwei","mwei","gwei","szabo","finney","ether"];function b(e,t){let r=18;if("string"==typeof t){let e=E.indexOf(t);(0,n.MR)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,o.WZ)(t,"unit"));return y.fromValue(e,r,{decimals:r,width:512}).toString()}
8function v(e,t){(0,n.MR)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){let e=E.indexOf(t);(0,n.MR)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,o.WZ)(t,"unit"));return y.fromString(e,{decimals:r,width:512}).value}},99720:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(72606),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(n&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var m in e)!(f&&"prototype"===m)&&i.call(e,m)&&d.push(String(m));if(l)for(var y=p(e),E=0;E<c.length;++E)!(y&&"constructor"===c[E])&&i.call(e,c[E])&&d.push(c[E]);return d}}e.exports=n}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.