@volter/twin-segment 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +154 -0
  2. package/client/segment-mirror.css +45 -0
  3. package/client/segment-mirror.tsx +154 -0
  4. package/dist/client/segment-mirror.bundle.js +342 -0
  5. package/dist/client/segment-mirror.css +45 -0
  6. package/dist/client/segment-mirror.d.ts +34 -0
  7. package/dist/client/segment-mirror.js +80 -0
  8. package/dist/client/segment-mirror.tsx +154 -0
  9. package/dist/src/cli.d.ts +2 -0
  10. package/dist/src/cli.js +34 -0
  11. package/dist/src/index.d.ts +8 -0
  12. package/dist/src/index.js +53 -0
  13. package/dist/src/segment-budget.d.ts +41 -0
  14. package/dist/src/segment-budget.js +112 -0
  15. package/dist/src/segment-capabilities.d.ts +12 -0
  16. package/dist/src/segment-capabilities.gen.d.ts +3 -0
  17. package/dist/src/segment-capabilities.gen.js +22 -0
  18. package/dist/src/segment-capabilities.js +907 -0
  19. package/dist/src/segment-conformance.d.ts +8 -0
  20. package/dist/src/segment-conformance.js +106 -0
  21. package/dist/src/segment-connector.d.ts +76 -0
  22. package/dist/src/segment-connector.js +226 -0
  23. package/dist/src/segment-mirror-ui.d.ts +42 -0
  24. package/dist/src/segment-mirror-ui.js +143 -0
  25. package/dist/src/segment-server.d.ts +25 -0
  26. package/dist/src/segment-server.js +90 -0
  27. package/dist/src/segment-surface.gen.d.ts +48 -0
  28. package/dist/src/segment-surface.gen.js +267 -0
  29. package/dist/src/segment-twin.d.ts +98 -0
  30. package/dist/src/segment-twin.js +543 -0
  31. package/package.json +59 -0
  32. package/src/cli.ts +30 -0
  33. package/src/index.ts +87 -0
  34. package/src/segment-budget.ts +138 -0
  35. package/src/segment-capabilities.gen.ts +25 -0
  36. package/src/segment-capabilities.ts +988 -0
  37. package/src/segment-conformance.ts +123 -0
  38. package/src/segment-connector.ts +233 -0
  39. package/src/segment-journey.uitest.ts +116 -0
  40. package/src/segment-mirror-ui.ts +157 -0
  41. package/src/segment-server.ts +95 -0
  42. package/src/segment-surface.gen.ts +277 -0
  43. package/src/segment-twin.ts +664 -0
@@ -0,0 +1,342 @@
1
+ var bw=Object.create;var{getPrototypeOf:hw,defineProperty:H2,getOwnPropertyNames:a_,getOwnPropertyDescriptor:cw}=Object,s_=Object.prototype.hasOwnProperty;function e_(U){return this[U]}var pw,lw,e4=(U,J,Q)=>{var O=U!=null&&typeof U==="object";if(O){var X=J?pw??=new WeakMap:lw??=new WeakMap,z=X.get(U);if(z)return z}Q=U!=null?bw(hw(U)):{};let V=J||!U||!U.__esModule?H2(Q,"default",{value:U,enumerable:!0}):Q;for(let L of a_(U))if(!s_.call(V,L))H2(V,L,{get:e_.bind(U,L),enumerable:!0});if(O)X.set(U,V);return V},v$=(U)=>{var J=(t_??=new WeakMap).get(U),Q;if(J)return J;if(J=H2({},"__esModule",{value:!0}),U&&typeof U==="object"||typeof U==="function"){for(var O of a_(U))if(!s_.call(J,O))H2(J,O,{get:e_.bind(U,O),enumerable:!(Q=cw(U,O))||Q.enumerable})}return t_.set(U,J),J},t_,ZX=(U,J)=>()=>(J||U((J={exports:{}}).exports,J),J.exports);var mw=(U)=>U;function dw(U,J){this[U]=mw.bind(null,J)}var y6=(U,J)=>{for(var Q in J)H2(U,Q,{get:J[Q],enumerable:!0,configurable:!0,set:dw.bind(J,Q)})};var wQ=(U,J)=>()=>(U&&(J=U(U=0)),J);var nw=((U)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(U,{get:(J,Q)=>(typeof require<"u"?require:J)[Q]}):U)(function(U){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+U+'" is not supported')});var $S=ZX((ow)=>{(function(){function U(){if(p=!1,L0){var K=ow.unstable_now();q0=K;var F=!0;try{$:{k=!1,u&&(u=!1,a(C0),C0=-1),b=!0;var C=x;try{U:{z(K);for(f=Q(P);f!==null&&!(f.expirationTime>K&&L());){var j=f.callback;if(typeof j==="function"){f.callback=null,x=f.priorityLevel;var q=j(f.expirationTime<=K);if(K=ow.unstable_now(),typeof q==="function"){f.callback=q,z(K),F=!0;break U}f===Q(P)&&O(P),z(K)}else O(P);f=Q(P)}if(f!==null)F=!0;else{var Z=Q(v);Z!==null&&S(V,Z.startTime-K),F=!1}}break $}finally{f=null,x=C,b=!1}F=void 0}}finally{F?G():L0=!1}}}function J(K,F){var C=K.length;K.push(F);$:for(;0<C;){var j=C-1>>>1,q=K[j];if(0<X(q,F))K[j]=F,K[C]=q,C=j;else break $}}function Q(K){return K.length===0?null:K[0]}function O(K){if(K.length===0)return null;var F=K[0],C=K.pop();if(C!==F){K[0]=C;$:for(var j=0,q=K.length,Z=q>>>1;j<Z;){var T=2*(j+1)-1,w=K[T],B=T+1,h=K[B];if(0>X(w,C))B<q&&0>X(h,w)?(K[j]=h,K[B]=C,j=B):(K[j]=w,K[T]=C,j=T);else if(B<q&&0>X(h,C))K[j]=h,K[B]=C,j=B;else break $}}return F}function X(K,F){var C=K.sortIndex-F.sortIndex;return C!==0?C:K.id-F.id}function z(K){for(var F=Q(v);F!==null;){if(F.callback===null)O(v);else if(F.startTime<=K)O(v),F.sortIndex=F.expirationTime,J(P,F);else break;F=Q(v)}}function V(K){if(u=!1,z(K),!k)if(Q(P)!==null)k=!0,L0||(L0=!0,G());else{var F=Q(v);F!==null&&S(V,F.startTime-K)}}function L(){return p?!0:ow.unstable_now()-q0<o?!1:!0}function S(K,F){C0=m(function(){K(ow.unstable_now())},F)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ow.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var E=performance;ow.unstable_now=function(){return E.now()}}else{var _=Date,M=_.now();ow.unstable_now=function(){return _.now()-M}}var P=[],v=[],N=1,f=null,x=3,b=!1,k=!1,u=!1,p=!1,m=typeof setTimeout==="function"?setTimeout:null,a=typeof clearTimeout==="function"?clearTimeout:null,Z0=typeof setImmediate<"u"?setImmediate:null,L0=!1,C0=-1,o=5,q0=-1;if(typeof Z0==="function")var G=function(){Z0(U)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,H=D.port2;D.port1.onmessage=U,G=function(){H.postMessage(null)}}else G=function(){m(U,0)};ow.unstable_IdlePriority=5,ow.unstable_ImmediatePriority=1,ow.unstable_LowPriority=4,ow.unstable_NormalPriority=3,ow.unstable_Profiling=null,ow.unstable_UserBlockingPriority=2,ow.unstable_cancelCallback=function(K){K.callback=null},ow.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):o=0<K?Math.floor(1000/K):5},ow.unstable_getCurrentPriorityLevel=function(){return x},ow.unstable_next=function(K){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var C=x;x=F;try{return K()}finally{x=C}},ow.unstable_requestPaint=function(){p=!0},ow.unstable_runWithPriority=function(K,F){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var C=x;x=K;try{return F()}finally{x=C}},ow.unstable_scheduleCallback=function(K,F,C){var j=ow.unstable_now();switch(typeof C==="object"&&C!==null?(C=C.delay,C=typeof C==="number"&&0<C?j+C:j):C=j,K){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5000}return q=C+q,K={id:N++,callback:F,priorityLevel:K,startTime:C,expirationTime:q,sortIndex:-1},C>j?(K.sortIndex=C,J(v,K),Q(P)===null&&K===Q(v)&&(u?(a(C0),C0=-1):u=!0,S(V,C-j))):(K.sortIndex=q,J(P,K),k||b||(k=!0,L0||(L0=!0,G()))),K},ow.unstable_shouldYield=L,ow.unstable_wrapCallback=function(K){var F=x;return function(){var C=x;x=F;try{return K.apply(this,arguments)}finally{x=C}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L2=ZX((iw,bO)=>{(function(){function U(l,X0){Object.defineProperty(O.prototype,l,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",X0[0],X0[1])}})}function J(l){if(l===null||typeof l!=="object")return null;return l=e&&l[e]||l["@@iterator"],typeof l==="function"?l:null}function Q(l,X0){l=(l=l.constructor)&&(l.displayName||l.name)||"ReactClass";var s0=l+"."+X0;J0[s0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X0,l),J0[s0]=!0)}function O(l,X0,s0){this.props=l,this.context=X0,this.refs=$0,this.updater=s0||V0}function X(){}function z(l,X0,s0){this.props=l,this.context=X0,this.refs=$0,this.updater=s0||V0}function V(){}function L(l){return""+l}function S(l){try{L(l);var X0=!1}catch(B0){X0=!0}if(X0){X0=console;var s0=X0.error,S0=typeof Symbol==="function"&&Symbol.toStringTag&&l[Symbol.toStringTag]||l.constructor.name||"Object";return s0.call(X0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S0),L(l)}}function E(l){if(l==null)return null;if(typeof l==="function")return l.$$typeof===H0?null:l.displayName||l.name||null;if(typeof l==="string")return l;switch(l){case q:return"Fragment";case T:return"Profiler";case Z:return"StrictMode";case t:return"Suspense";case U0:return"SuspenseList";case s:return"Activity"}if(typeof l==="object")switch(typeof l.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),l.$$typeof){case j:return"Portal";case B:return l.displayName||"Context";case w:return(l._context.displayName||"Context")+".Consumer";case h:var X0=l.render;return l=l.displayName,l||(l=X0.displayName||X0.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case z0:return X0=l.displayName||null,X0!==null?X0:E(l.type)||"Memo";case Q0:X0=l._payload,l=l._init;try{return E(l(X0))}catch(s0){}}return null}function _(l){if(l===q)return"<>";if(typeof l==="object"&&l!==null&&l.$$typeof===Q0)return"<...>";try{var X0=E(l);return X0?"<"+X0+">":"<...>"}catch(s0){return"<...>"}}function M(){var l=Y0.A;return l===null?null:l.getOwner()}function P(){return Error("react-stack-top-frame")}function v(l){if(D0.call(l,"key")){var X0=Object.getOwnPropertyDescriptor(l,"key").get;if(X0&&X0.isReactWarning)return!1}return l.key!==void 0}function N(l,X0){function s0(){I0||(I0=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",X0))}s0.isReactWarning=!0,Object.defineProperty(l,"key",{get:s0,configurable:!0})}function f(){var l=E(this.type);return U$[l]||(U$[l]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),l=this.props.ref,l!==void 0?l:null}function x(l,X0,s0,S0,B0,F$){var g0=s0.ref;return l={$$typeof:C,type:l,key:X0,props:s0,_owner:S0},(g0!==void 0?g0:null)!==null?Object.defineProperty(l,"ref",{enumerable:!1,get:f}):Object.defineProperty(l,"ref",{enumerable:!1,value:null}),l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(l,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(l,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B0}),Object.defineProperty(l,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:F$}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}function b(l,X0){return X0=x(l.type,X0,l.props,l._owner,l._debugStack,l._debugTask),l._store&&(X0._store.validated=l._store.validated),X0}function k(l){u(l)?l._store&&(l._store.validated=1):typeof l==="object"&&l!==null&&l.$$typeof===Q0&&(l._payload.status==="fulfilled"?u(l._payload.value)&&l._payload.value._store&&(l._payload.value._store.validated=1):l._store&&(l._store.validated=1))}function u(l){return typeof l==="object"&&l!==null&&l.$$typeof===C}function p(l){var X0={"=":"=0",":":"=2"};return"$"+l.replace(/[=:]/g,function(s0){return X0[s0]})}function m(l,X0){return typeof l==="object"&&l!==null&&l.key!=null?(S(l.key),p(""+l.key)):X0.toString(36)}function a(l){switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:switch(typeof l.status==="string"?l.then(V,V):(l.status="pending",l.then(function(X0){l.status==="pending"&&(l.status="fulfilled",l.value=X0)},function(X0){l.status==="pending"&&(l.status="rejected",l.reason=X0)})),l.status){case"fulfilled":return l.value;case"rejected":throw l.reason}}throw l}function Z0(l,X0,s0,S0,B0){var F$=typeof l;if(F$==="undefined"||F$==="boolean")l=null;var g0=!1;if(l===null)g0=!0;else switch(F$){case"bigint":case"string":case"number":g0=!0;break;case"object":switch(l.$$typeof){case C:case j:g0=!0;break;case Q0:return g0=l._init,Z0(g0(l._payload),X0,s0,S0,B0)}}if(g0){g0=l,B0=B0(g0);var f0=S0===""?"."+m(g0,0):S0;return n(B0)?(s0="",f0!=null&&(s0=f0.replace(p0,"$&/")+"/"),Z0(B0,X0,s0,"",function(n0){return n0})):B0!=null&&(u(B0)&&(B0.key!=null&&(g0&&g0.key===B0.key||S(B0.key)),s0=b(B0,s0+(B0.key==null||g0&&g0.key===B0.key?"":(""+B0.key).replace(p0,"$&/")+"/")+f0),S0!==""&&g0!=null&&u(g0)&&g0.key==null&&g0._store&&!g0._store.validated&&(s0._store.validated=2),B0=s0),X0.push(B0)),1}if(g0=0,f0=S0===""?".":S0+":",n(l))for(var K$=0;K$<l.length;K$++)S0=l[K$],F$=f0+m(S0,K$),g0+=Z0(S0,X0,s0,F$,B0);else if(K$=J(l),typeof K$==="function")for(K$===l.entries&&(L$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),L$=!0),l=K$.call(l),K$=0;!(S0=l.next()).done;)S0=S0.value,F$=f0+m(S0,K$++),g0+=Z0(S0,X0,s0,F$,B0);else if(F$==="object"){if(typeof l.then==="function")return Z0(a(l),X0,s0,S0,B0);throw X0=String(l),Error("Objects are not valid as a React child (found: "+(X0==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":X0)+"). If you meant to render a collection of children, use an array instead.")}return g0}function L0(l,X0,s0){if(l==null)return l;var S0=[],B0=0;return Z0(l,S0,"","",function(F$){return X0.call(s0,F$,B0++)}),S0}function C0(l){if(l._status===-1){var X0=l._ioInfo;X0!=null&&(X0.start=X0.end=performance.now()),X0=l._result;var s0=X0();if(s0.then(function(B0){if(l._status===0||l._status===-1){l._status=1,l._result=B0;var F$=l._ioInfo;F$!=null&&(F$.end=performance.now()),s0.status===void 0&&(s0.status="fulfilled",s0.value=B0)}},function(B0){if(l._status===0||l._status===-1){l._status=2,l._result=B0;var F$=l._ioInfo;F$!=null&&(F$.end=performance.now()),s0.status===void 0&&(s0.status="rejected",s0.reason=B0)}}),X0=l._ioInfo,X0!=null){X0.value=s0;var S0=s0.displayName;typeof S0==="string"&&(X0.name=S0)}l._status===-1&&(l._status=0,l._result=s0)}if(l._status===1)return X0=l._result,X0===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,X0),"default"in X0||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,X0),X0.default;throw l._result}function o(){var l=Y0.H;return l===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}function q0(){Y0.asyncTransitions--}function G(l){if(b0===null)try{var X0=("require"+Math.random()).slice(0,7);b0=(bO&&bO[X0]).call(bO,"timers").setImmediate}catch(s0){b0=function(S0){t$===!1&&(t$=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var B0=new MessageChannel;B0.port1.onmessage=S0,B0.port2.postMessage(void 0)}}return b0(l)}function D(l){return 1<l.length&&typeof AggregateError==="function"?AggregateError(l):l[0]}function H(l,X0){X0!==h0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),h0=X0}function K(l,X0,s0){var S0=Y0.actQueue;if(S0!==null)if(S0.length!==0)try{F(S0),G(function(){return K(l,X0,s0)});return}catch(B0){Y0.thrownErrors.push(B0)}else Y0.actQueue=null;0<Y0.thrownErrors.length?(S0=D(Y0.thrownErrors),Y0.thrownErrors.length=0,s0(S0)):X0(l)}function F(l){if(!r0){r0=!0;var X0=0;try{for(;X0<l.length;X0++){var s0=l[X0];do{Y0.didUsePromise=!1;var S0=s0(!1);if(S0!==null){if(Y0.didUsePromise){l[X0]=s0,l.splice(0,X0);return}s0=S0}else break}while(1)}l.length=0}catch(B0){l.splice(0,X0+1),Y0.thrownErrors.push(B0)}finally{r0=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var C=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),B=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),t=Symbol.for("react.suspense"),U0=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),Q0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),e=Symbol.iterator,J0={},V0={isMounted:function(){return!1},enqueueForceUpdate:function(l){Q(l,"forceUpdate")},enqueueReplaceState:function(l){Q(l,"replaceState")},enqueueSetState:function(l){Q(l,"setState")}},A0=Object.assign,$0={};Object.freeze($0),O.prototype.isReactComponent={},O.prototype.setState=function(l,X0){if(typeof l!=="object"&&typeof l!=="function"&&l!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,X0,"setState")},O.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};var c={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(EU in c)c.hasOwnProperty(EU)&&U(EU,c[EU]);X.prototype=O.prototype,c=z.prototype=new X,c.constructor=z,A0(c,O.prototype),c.isPureReactComponent=!0;var n=Array.isArray,H0=Symbol.for("react.client.reference"),Y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D0=Object.prototype.hasOwnProperty,N0=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(l){return l()}};var I0,K0,U$={},M0=c.react_stack_bottom_frame.bind(c,P)(),v0=N0(_(P)),L$=!1,p0=/\/+/g,c0=typeof reportError==="function"?reportError:function(l){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var X0=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l==="object"&&l!==null&&typeof l.message==="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(X0))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",l);return}console.error(l)},t$=!1,b0=null,h0=0,VU=!1,r0=!1,o0=typeof queueMicrotask==="function"?function(l){queueMicrotask(function(){return queueMicrotask(l)})}:G;c=Object.freeze({__proto__:null,c:function(l){return o().useMemoCache(l)}});var EU={map:L0,forEach:function(l,X0,s0){L0(l,function(){X0.apply(this,arguments)},s0)},count:function(l){var X0=0;return L0(l,function(){X0++}),X0},toArray:function(l){return L0(l,function(X0){return X0})||[]},only:function(l){if(!u(l))throw Error("React.Children.only expected to receive a single React element child.");return l}};iw.Activity=s,iw.Children=EU,iw.Component=O,iw.Fragment=q,iw.Profiler=T,iw.PureComponent=z,iw.StrictMode=Z,iw.Suspense=t,iw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y0,iw.__COMPILER_RUNTIME=c,iw.act=function(l){var X0=Y0.actQueue,s0=h0;h0++;var S0=Y0.actQueue=X0!==null?X0:[],B0=!1;try{var F$=l()}catch(K$){Y0.thrownErrors.push(K$)}if(0<Y0.thrownErrors.length)throw H(X0,s0),l=D(Y0.thrownErrors),Y0.thrownErrors.length=0,l;if(F$!==null&&typeof F$==="object"&&typeof F$.then==="function"){var g0=F$;return o0(function(){B0||VU||(VU=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(K$,n0){B0=!0,g0.then(function(i0){if(H(X0,s0),s0===0){try{F(S0),G(function(){return K(i0,K$,n0)})}catch(a0){Y0.thrownErrors.push(a0)}if(0<Y0.thrownErrors.length){var WU=D(Y0.thrownErrors);Y0.thrownErrors.length=0,n0(WU)}}else K$(i0)},function(i0){H(X0,s0),0<Y0.thrownErrors.length?(i0=D(Y0.thrownErrors),Y0.thrownErrors.length=0,n0(i0)):n0(i0)})}}}var f0=F$;if(H(X0,s0),s0===0&&(F(S0),S0.length!==0&&o0(function(){B0||VU||(VU=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Y0.actQueue=null),0<Y0.thrownErrors.length)throw l=D(Y0.thrownErrors),Y0.thrownErrors.length=0,l;return{then:function(K$,n0){B0=!0,s0===0?(Y0.actQueue=S0,G(function(){return K(f0,K$,n0)})):K$(f0)}}},iw.cache=function(l){return function(){return l.apply(null,arguments)}},iw.cacheSignal=function(){return null},iw.captureOwnerStack=function(){var l=Y0.getCurrentStack;return l===null?null:l()},iw.cloneElement=function(l,X0,s0){if(l===null||l===void 0)throw Error("The argument must be a React element, but you passed "+l+".");var S0=A0({},l.props),B0=l.key,F$=l._owner;if(X0!=null){var g0;$:{if(D0.call(X0,"ref")&&(g0=Object.getOwnPropertyDescriptor(X0,"ref").get)&&g0.isReactWarning){g0=!1;break $}g0=X0.ref!==void 0}g0&&(F$=M()),v(X0)&&(S(X0.key),B0=""+X0.key);for(f0 in X0)!D0.call(X0,f0)||f0==="key"||f0==="__self"||f0==="__source"||f0==="ref"&&X0.ref===void 0||(S0[f0]=X0[f0])}var f0=arguments.length-2;if(f0===1)S0.children=s0;else if(1<f0){g0=Array(f0);for(var K$=0;K$<f0;K$++)g0[K$]=arguments[K$+2];S0.children=g0}S0=x(l.type,B0,S0,F$,l._debugStack,l._debugTask);for(B0=2;B0<arguments.length;B0++)k(arguments[B0]);return S0},iw.createContext=function(l){return l={$$typeof:B,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null},l.Provider=l,l.Consumer={$$typeof:w,_context:l},l._currentRenderer=null,l._currentRenderer2=null,l},iw.createElement=function(l,X0,s0){for(var S0=2;S0<arguments.length;S0++)k(arguments[S0]);S0={};var B0=null;if(X0!=null)for(K$ in K0||!("__self"in X0)||"key"in X0||(K0=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),v(X0)&&(S(X0.key),B0=""+X0.key),X0)D0.call(X0,K$)&&K$!=="key"&&K$!=="__self"&&K$!=="__source"&&(S0[K$]=X0[K$]);var F$=arguments.length-2;if(F$===1)S0.children=s0;else if(1<F$){for(var g0=Array(F$),f0=0;f0<F$;f0++)g0[f0]=arguments[f0+2];Object.freeze&&Object.freeze(g0),S0.children=g0}if(l&&l.defaultProps)for(K$ in F$=l.defaultProps,F$)S0[K$]===void 0&&(S0[K$]=F$[K$]);B0&&N(S0,typeof l==="function"?l.displayName||l.name||"Unknown":l);var K$=1e4>Y0.recentlyCreatedOwnerStacks++;return x(l,B0,S0,M(),K$?Error("react-stack-top-frame"):M0,K$?N0(_(l)):v0)},iw.createRef=function(){var l={current:null};return Object.seal(l),l},iw.forwardRef=function(l){l!=null&&l.$$typeof===z0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof l!=="function"?console.error("forwardRef requires a render function but was given %s.",l===null?"null":typeof l):l.length!==0&&l.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",l.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),l!=null&&l.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var X0={$$typeof:h,render:l},s0;return Object.defineProperty(X0,"displayName",{enumerable:!1,configurable:!0,get:function(){return s0},set:function(S0){s0=S0,l.name||l.displayName||(Object.defineProperty(l,"name",{value:S0}),l.displayName=S0)}}),X0},iw.isValidElement=u,iw.lazy=function(l){l={_status:-1,_result:l};var X0={$$typeof:Q0,_payload:l,_init:C0},s0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return l._ioInfo=s0,X0._debugInfo=[{awaited:s0}],X0},iw.memo=function(l,X0){l==null&&console.error("memo: The first argument must be a component. Instead received: %s",l===null?"null":typeof l),X0={$$typeof:z0,type:l,compare:X0===void 0?null:X0};var s0;return Object.defineProperty(X0,"displayName",{enumerable:!1,configurable:!0,get:function(){return s0},set:function(S0){s0=S0,l.name||l.displayName||(Object.defineProperty(l,"name",{value:S0}),l.displayName=S0)}}),X0},iw.startTransition=function(l){var X0=Y0.T,s0={};s0._updatedFibers=new Set,Y0.T=s0;try{var S0=l(),B0=Y0.S;B0!==null&&B0(s0,S0),typeof S0==="object"&&S0!==null&&typeof S0.then==="function"&&(Y0.asyncTransitions++,S0.then(q0,q0),S0.then(V,c0))}catch(F$){c0(F$)}finally{X0===null&&s0._updatedFibers&&(l=s0._updatedFibers.size,s0._updatedFibers.clear(),10<l&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),X0!==null&&s0.types!==null&&(X0.types!==null&&X0.types!==s0.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),X0.types=s0.types),Y0.T=X0}},iw.unstable_useCacheRefresh=function(){return o().useCacheRefresh()},iw.use=function(l){return o().use(l)},iw.useActionState=function(l,X0,s0){return o().useActionState(l,X0,s0)},iw.useCallback=function(l,X0){return o().useCallback(l,X0)},iw.useContext=function(l){var X0=o();return l.$$typeof===w&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),X0.useContext(l)},iw.useDebugValue=function(l,X0){return o().useDebugValue(l,X0)},iw.useDeferredValue=function(l,X0){return o().useDeferredValue(l,X0)},iw.useEffect=function(l,X0){return l==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),o().useEffect(l,X0)},iw.useEffectEvent=function(l){return o().useEffectEvent(l)},iw.useId=function(){return o().useId()},iw.useImperativeHandle=function(l,X0,s0){return o().useImperativeHandle(l,X0,s0)},iw.useInsertionEffect=function(l,X0){return l==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),o().useInsertionEffect(l,X0)},iw.useLayoutEffect=function(l,X0){return l==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),o().useLayoutEffect(l,X0)},iw.useMemo=function(l,X0){return o().useMemo(l,X0)},iw.useOptimistic=function(l,X0){return o().useOptimistic(l,X0)},iw.useReducer=function(l,X0,s0){return o().useReducer(l,X0,s0)},iw.useRef=function(l){return o().useRef(l)},iw.useState=function(l){return o().useState(l)},iw.useSyncExternalStore=function(l,X0,s0){return o().useSyncExternalStore(l,X0,s0)},iw.useTransition=function(){return o().useTransition()},iw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var US=ZX((rw)=>{var w9=e4(L2());(function(){function U(){}function J(_){return""+_}function Q(_,M,P){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(v);var N=!1}catch(f){N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),J(v)),{$$typeof:S,key:v==null?null:""+v,children:_,containerInfo:M,implementation:P}}function O(_,M){if(_==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function X(_){return _===null?"`null`":_===void 0?"`undefined`":_===""?"an empty string":'something with type "'+typeof _+'"'}function z(_){return _===null?"`null`":_===void 0?"`undefined`":_===""?"an empty string":typeof _==="string"?JSON.stringify(_):typeof _==="number"?"`"+_+"`":'something with type "'+typeof _+'"'}function V(){var _=E.H;return _===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),_}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={d:{f:U,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:U,C:U,L:U,m:U,X:U,S:U,M:U},p:0,findDOMNode:null},S=Symbol.for("react.portal"),E=w9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),rw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,rw.createPortal=function(_,M){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return Q(_,M,null,P)},rw.flushSync=function(_){var M=E.T,P=L.p;try{if(E.T=null,L.p=2,_)return _()}finally{E.T=M,L.p=P,L.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},rw.preconnect=function(_,M){typeof _==="string"&&_?M!=null&&typeof M!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",z(M)):M!=null&&typeof M.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",X(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(_)),typeof _==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,L.d.C(_,M))},rw.prefetchDNS=function(_){if(typeof _!=="string"||!_)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(_));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M))}typeof _==="string"&&L.d.D(_)},rw.preinit=function(_,M){if(typeof _==="string"&&_?M==null||typeof M!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",z(M)):M.as!=="style"&&M.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',z(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(_)),typeof _==="string"&&M&&typeof M.as==="string"){var P=M.as,v=O(P,M.crossOrigin),N=typeof M.integrity==="string"?M.integrity:void 0,f=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;P==="style"?L.d.S(_,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:f}):P==="script"&&L.d.X(_,{crossOrigin:v,integrity:N,fetchPriority:f,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},rw.preinitModule=function(_,M){var P="";if(typeof _==="string"&&_||(P+=" The `href` argument encountered was "+X(_)+"."),M!==void 0&&typeof M!=="object"?P+=" The `options` argument encountered was "+X(M)+".":M&&("as"in M)&&M.as!=="script"&&(P+=" The `as` option encountered was "+z(M.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=M&&typeof M.as==="string"?M.as:"script",P){case"script":break;default:P=z(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,_)}if(typeof _==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")P=O(M.as,M.crossOrigin),L.d.M(_,{crossOrigin:P,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&L.d.M(_)},rw.preload=function(_,M){var P="";if(typeof _==="string"&&_||(P+=" The `href` argument encountered was "+X(_)+"."),M==null||typeof M!=="object"?P+=" The `options` argument encountered was "+X(M)+".":typeof M.as==="string"&&M.as||(P+=" The `as` option encountered was "+X(M.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof _==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){P=M.as;var v=O(P,M.crossOrigin);L.d.L(_,P,{crossOrigin:v,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},rw.preloadModule=function(_,M){var P="";typeof _==="string"&&_||(P+=" The `href` argument encountered was "+X(_)+"."),M!==void 0&&typeof M!=="object"?P+=" The `options` argument encountered was "+X(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(P+=" The `as` option encountered was "+X(M.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof _==="string"&&(M?(P=O(M.as,M.crossOrigin),L.d.m(_,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:P,integrity:typeof M.integrity==="string"?M.integrity:void 0})):L.d.m(_))},rw.requestFormReset=function(_){L.d.r(_)},rw.unstable_batchedUpdates=function(_,M){return _(M)},rw.useFormState=function(_,M,P){return V().useFormState(_,M,P)},rw.useFormStatus=function(){return V().useHostTransitionStatus()},rw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var XS=ZX((Zo,IS)=>{var tw=e4(US());IS.exports=tw});var JS=ZX((aw)=>{var r$=e4($S()),fQ=e4(L2()),f9=e4(XS());(function(){function U($,I){for($=$.memoizedState;$!==null&&0<I;)$=$.next,I--;return $}function J($,I,Y,W){if(Y>=I.length)return W;var A=I[Y],R=V6($)?$.slice():b$({},$);return R[A]=J($[A],I,Y+1,W),R}function Q($,I,Y){if(I.length!==Y.length)console.warn("copyWithRename() expects paths of the same length");else{for(var W=0;W<Y.length-1;W++)if(I[W]!==Y[W]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return O($,I,Y,0)}}function O($,I,Y,W){var A=I[W],R=V6($)?$.slice():b$({},$);return W+1===I.length?(R[Y[W]]=R[A],V6(R)?R.splice(A,1):delete R[A]):R[A]=O($[A],I,Y,W+1),R}function X($,I,Y){var W=I[Y],A=V6($)?$.slice():b$({},$);if(Y+1===I.length)return V6(A)?A.splice(W,1):delete A[W],A;return A[W]=X($[W],I,Y+1),A}function z(){return!1}function V(){return null}function L(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function E(){}function _(){}function M($){var I=[];return $.forEach(function(Y){I.push(Y)}),I.sort().join(", ")}function P($,I,Y,W){return new jk($,I,Y,W)}function v($,I){$.context===pI&&(UW($.current,2,I,$,null,null),nJ())}function N($,I){if(j4!==null){var Y=I.staleFamilies;I=I.updatedFamilies,zG(),IT($.current,I,Y),nJ()}}function f($){j4=$}function x($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function b($){var I=$,Y=$;if($.alternate)for(;I.return;)I=I.return;else{$=I;do I=$,(I.flags&4098)!==0&&(Y=I.return),$=I.return;while($)}return I.tag===3?Y:null}function k($){if($.tag===13){var I=$.memoizedState;if(I===null&&($=$.alternate,$!==null&&(I=$.memoizedState)),I!==null)return I.dehydrated}return null}function u($){if($.tag===31){var I=$.memoizedState;if(I===null&&($=$.alternate,$!==null&&(I=$.memoizedState)),I!==null)return I.dehydrated}return null}function p($){if(b($)!==$)throw Error("Unable to find node on an unmounted component.")}function m($){var I=$.alternate;if(!I){if(I=b($),I===null)throw Error("Unable to find node on an unmounted component.");return I!==$?null:$}for(var Y=$,W=I;;){var A=Y.return;if(A===null)break;var R=A.alternate;if(R===null){if(W=A.return,W!==null){Y=W;continue}break}if(A.child===R.child){for(R=A.child;R;){if(R===Y)return p(A),$;if(R===W)return p(A),I;R=R.sibling}throw Error("Unable to find node on an unmounted component.")}if(Y.return!==W.return)Y=A,W=R;else{for(var g=!1,y=A.child;y;){if(y===Y){g=!0,Y=A,W=R;break}if(y===W){g=!0,W=A,Y=R;break}y=y.sibling}if(!g){for(y=R.child;y;){if(y===Y){g=!0,Y=R,W=A;break}if(y===W){g=!0,W=R,Y=A;break}y=y.sibling}if(!g)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(Y.alternate!==W)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(Y.tag!==3)throw Error("Unable to find node on an unmounted component.");return Y.stateNode.current===Y?$:I}function a($){var I=$.tag;if(I===5||I===26||I===27||I===6)return $;for($=$.child;$!==null;){if(I=a($),I!==null)return I;$=$.sibling}return null}function Z0($){if($===null||typeof $!=="object")return null;return $=ZP&&$[ZP]||$["@@iterator"],typeof $==="function"?$:null}function L0($){if($==null)return null;if(typeof $==="function")return $.$$typeof===rg?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case eJ:return"Fragment";case GW:return"Profiler";case gZ:return"StrictMode";case ZW:return"Suspense";case OW:return"SuspenseList";case zW:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case sJ:return"Portal";case T1:return $.displayName||"Context";case VW:return($._context.displayName||"Context")+".Consumer";case TG:var I=$.render;return $=$.displayName,$||($=I.displayName||I.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case xZ:return I=$.displayName||null,I!==null?I:L0($.type)||"Memo";case z4:I=$._payload,$=$._init;try{return L0($(I))}catch(Y){}}return null}function C0($){return typeof $.tag==="number"?o($):typeof $.name==="string"?$.name:null}function o($){var I=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(I._context.displayName||"Context")+".Consumer";case 10:return I.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=I.render,$=$.displayName||$.name||"",I.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return I;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L0(I);case 8:return I===gZ?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof I==="function")return I.displayName||I.name||null;if(typeof I==="string")return I;break;case 29:if(I=$._debugInfo,I!=null){for(var Y=I.length-1;0<=Y;Y--)if(typeof I[Y].name==="string")return I[Y].name}if($.return!==null)return o($.return)}return null}function q0($){return{current:$}}function G($,I){0>r1?console.error("Unexpected pop."):(I!==DW[r1]&&console.error("Unexpected Fiber popped."),$.current=KW[r1],KW[r1]=null,DW[r1]=null,r1--)}function D($,I,Y){r1++,KW[r1]=$.current,DW[r1]=Y,$.current=I}function H($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function K($,I){D(fI,I,$),D(CG,$,$),D(wI,null,$);var Y=I.nodeType;switch(Y){case 9:case 11:Y=Y===9?"#document":"#fragment",I=(I=I.documentElement)?(I=I.namespaceURI)?gR(I):ZI:ZI;break;default:if(Y=I.tagName,I=I.namespaceURI)I=gR(I),I=xR(I,Y);else switch(Y){case"svg":I=gQ;break;case"math":I=kO;break;default:I=ZI}}Y=Y.toLowerCase(),Y=Sq(null,Y),Y={context:I,ancestorInfo:Y},G(wI,$),D(wI,Y,$)}function F($){G(wI,$),G(CG,$),G(fI,$)}function C(){return H(wI.current)}function j($){$.memoizedState!==null&&D(wZ,$,$);var I=H(wI.current),Y=$.type,W=xR(I.context,Y);Y=Sq(I.ancestorInfo,Y),W={context:W,ancestorInfo:Y},I!==W&&(D(CG,$,$),D(wI,W,$))}function q($){CG.current===$&&(G(wI,$),G(CG,$)),wZ.current===$&&(G(wZ,$),D2._currentValue=ZJ)}function Z(){}function T(){if(RG===0){OP=console.log,zP=console.info,KP=console.warn,DP=console.error,WP=console.group,FP=console.groupCollapsed,HP=console.groupEnd;var $={configurable:!0,enumerable:!0,value:Z,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}RG++}function w(){if(RG--,RG===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:b$({},$,{value:OP}),info:b$({},$,{value:zP}),warn:b$({},$,{value:KP}),error:b$({},$,{value:DP}),group:b$({},$,{value:WP}),groupCollapsed:b$({},$,{value:FP}),groupEnd:b$({},$,{value:HP})})}0>RG&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function B($){var I=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=I,$.startsWith(`Error: react-stack-top-frame
18
+ `)&&($=$.slice(29)),I=$.indexOf(`
19
+ `),I!==-1&&($=$.slice(I+1)),I=$.indexOf("react_stack_bottom_frame"),I!==-1&&(I=$.lastIndexOf(`
20
+ `,I)),I!==-1)$=$.slice(0,I);else return"";return $}function h($){if(WW===void 0)try{throw Error()}catch(Y){var I=Y.stack.trim().match(/\n( *(at )?)/);WW=I&&I[1]||"",LP=-1<Y.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<Y.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+WW+$+LP}function t($,I){if(!$||FW)return"";var Y=HW.get($);if(Y!==void 0)return Y;FW=!0,Y=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var W=null;W=y0.H,y0.H=null,T();try{var A={DetermineComponentFrameRoot:function(){try{if(I){var W0=function(){throw Error()};if(Object.defineProperty(W0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(W0,[])}catch(O$){var k0=O$}Reflect.construct($,[],W0)}else{try{W0.call()}catch(O$){k0=O$}$.call(W0.prototype)}}else{try{throw Error()}catch(O$){k0=O$}(W0=$())&&typeof W0.catch==="function"&&W0.catch(function(){})}}catch(O$){if(O$&&k0&&typeof O$.stack==="string")return[O$.stack,k0.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=A.DetermineComponentFrameRoot(),y=g[0],d=g[1];if(y&&d){var i=y.split(`
23
+ `),R0=d.split(`
24
+ `);for(g=R=0;R<i.length&&!i[R].includes("DetermineComponentFrameRoot");)R++;for(;g<R0.length&&!R0[g].includes("DetermineComponentFrameRoot");)g++;if(R===i.length||g===R0.length)for(R=i.length-1,g=R0.length-1;1<=R&&0<=g&&i[R]!==R0[g];)g--;for(;1<=R&&0<=g;R--,g--)if(i[R]!==R0[g]){if(R!==1||g!==1)do if(R--,g--,0>g||i[R]!==R0[g]){var P0=`
25
+ `+i[R].replace(" at new "," at ");return $.displayName&&P0.includes("<anonymous>")&&(P0=P0.replace("<anonymous>",$.displayName)),typeof $==="function"&&HW.set($,P0),P0}while(1<=R&&0<=g);break}}}finally{FW=!1,y0.H=W,w(),Error.prepareStackTrace=Y}return i=(i=$?$.displayName||$.name:"")?h(i):"",typeof $==="function"&&HW.set($,i),i}function U0($,I){switch($.tag){case 26:case 27:case 5:return h($.type);case 16:return h("Lazy");case 13:return $.child!==I&&I!==null?h("Suspense Fallback"):h("Suspense");case 19:return h("SuspenseList");case 0:case 15:return t($.type,!1);case 11:return t($.type.render,!1);case 1:return t($.type,!0);case 31:return h("Activity");default:return""}}function z0($){try{var I="",Y=null;do{I+=U0($,Y);var W=$._debugInfo;if(W)for(var A=W.length-1;0<=A;A--){var R=W[A];if(typeof R.name==="string"){var g=I;$:{var{name:y,env:d,debugLocation:i}=R;if(i!=null){var R0=B(i),P0=R0.lastIndexOf(`
26
+ `),W0=P0===-1?R0:R0.slice(P0+1);if(W0.indexOf(y)!==-1){var k0=`
27
+ `+W0;break $}}k0=h(y+(d?" ["+d+"]":""))}I=g+k0}}Y=$,$=$.return}while($);return I}catch(O$){return`
28
+ Error generating stack: `+O$.message+`
29
+ `+O$.stack}}function Q0($){return($=$?$.displayName||$.name:"")?h($):""}function s(){if(K4===null)return null;var $=K4._debugOwner;return $!=null?C0($):null}function e(){if(K4===null)return"";var $=K4;try{var I="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:I+=h($.type);break;case 13:I+=h("Suspense");break;case 19:I+=h("SuspenseList");break;case 31:I+=h("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||I!==""||(I+=Q0($.type));break;case 11:$._debugOwner||I!==""||(I+=Q0($.type.render))}for(;$;)if(typeof $.tag==="number"){var Y=$;$=Y._debugOwner;var W=Y._debugStack;if($&&W){var A=B(W);A!==""&&(I+=`
30
+ `+A)}}else if($.debugStack!=null){var R=$.debugStack;($=$.owner)&&R&&(I+=`
31
+ `+B(R))}else break;var g=I}catch(y){g=`
32
+ Error generating stack: `+y.message+`
33
+ `+y.stack}return g}function J0($,I,Y,W,A,R,g){var y=K4;V0($);try{return $!==null&&$._debugTask?$._debugTask.run(I.bind(null,Y,W,A,R,g)):I(Y,W,A,R,g)}finally{V0(y)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function V0($){y0.getCurrentStack=$===null?null:e,C1=!1,K4=$}function A0($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function $0($){try{return c($),!1}catch(I){return!0}}function c($){return""+$}function n($,I){if($0($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",I,A0($)),c($)}function H0($,I){if($0($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",I,A0($)),c($)}function Y0($){if($0($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",A0($)),c($)}function D0($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var I=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(I.isDisabled)return!0;if(!I.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{UQ=I.inject($),E6=I}catch(Y){console.error("React instrumentation encountered an error: %o.",Y)}return I.checkDCE?!0:!1}function N0($){if(typeof Ix==="function"&&Xx($),E6&&typeof E6.setStrictMode==="function")try{E6.setStrictMode(UQ,$)}catch(I){R1||(R1=!0,console.error("React instrumentation encountered an error: %o",I))}}function I0($){return $>>>=0,$===0?32:31-(Jx($)/Qx|0)|0}function K0($){var I=$&42;if(I!==0)return I;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function U$($,I,Y){var W=$.pendingLanes;if(W===0)return 0;var A=0,R=$.suspendedLanes,g=$.pingedLanes;$=$.warmLanes;var y=W&134217727;return y!==0?(W=y&~R,W!==0?A=K0(W):(g&=y,g!==0?A=K0(g):Y||(Y=y&~$,Y!==0&&(A=K0(Y))))):(y=W&~R,y!==0?A=K0(y):g!==0?A=K0(g):Y||(Y=W&~$,Y!==0&&(A=K0(Y)))),A===0?0:I!==0&&I!==A&&(I&R)===0&&(R=A&-A,Y=I&-I,R>=Y||R===32&&(Y&4194048)!==0)?I:A}function M0($,I){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&I)===0}function v0($,I){switch($){case 1:case 2:case 4:case 8:case 64:return I+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return I+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function L$(){var $=uZ;return uZ<<=1,(uZ&62914560)===0&&(uZ=4194304),$}function p0($){for(var I=[],Y=0;31>Y;Y++)I.push($);return I}function c0($,I){$.pendingLanes|=I,I!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function t$($,I,Y,W,A,R){var g=$.pendingLanes;$.pendingLanes=Y,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Y,$.entangledLanes&=Y,$.errorRecoveryDisabledLanes&=Y,$.shellSuspendCounter=0;var{entanglements:y,expirationTimes:d,hiddenUpdates:i}=$;for(Y=g&~Y;0<Y;){var R0=31-v6(Y),P0=1<<R0;y[R0]=0,d[R0]=-1;var W0=i[R0];if(W0!==null)for(i[R0]=null,R0=0;R0<W0.length;R0++){var k0=W0[R0];k0!==null&&(k0.lane&=-536870913)}Y&=~P0}W!==0&&b0($,W,0),R!==0&&A===0&&$.tag!==0&&($.suspendedLanes|=R&~(g&~I))}function b0($,I,Y){$.pendingLanes|=I,$.suspendedLanes&=~I;var W=31-v6(I);$.entangledLanes|=I,$.entanglements[W]=$.entanglements[W]|1073741824|Y&261930}function h0($,I){var Y=$.entangledLanes|=I;for($=$.entanglements;Y;){var W=31-v6(Y),A=1<<W;A&I|$[W]&I&&($[W]|=I),Y&=~A}}function VU($,I){var Y=I&-I;return Y=(Y&42)!==0?1:r0(Y),(Y&($.suspendedLanes|I))!==0?0:Y}function r0($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function o0($,I,Y){if(P1)for($=$.pendingUpdatersLaneMap;0<Y;){var W=31-v6(Y),A=1<<W;$[W].add(I),Y&=~A}}function EU($,I){if(P1)for(var{pendingUpdatersLaneMap:Y,memoizedUpdaters:W}=$;0<I;){var A=31-v6(I);$=1<<A,A=Y[A],0<A.size&&(A.forEach(function(R){var g=R.alternate;g!==null&&W.has(g)||W.add(R)}),A.clear()),I&=~$}}function l($){return $&=-$,D4!==0&&D4<$?n4!==0&&n4<$?($&134217727)!==0?E1:bZ:n4:D4}function X0(){var $=UU.p;if($!==0)return $;return $=window.event,$===void 0?E1:IP($.type)}function s0($,I){var Y=UU.p;try{return UU.p=$,I()}finally{UU.p=Y}}function S0($){delete $[q6],delete $[B6],delete $[TW],delete $[Yx],delete $[Gx]}function B0($){var I=$[q6];if(I)return I;for(var Y=$.parentNode;Y;){if(I=Y[uI]||Y[q6]){if(Y=I.alternate,I.child!==null||Y!==null&&Y.child!==null)for($=pR($);$!==null;){if(Y=$[q6])return Y;$=pR($)}return I}$=Y,Y=$.parentNode}return null}function F$($){if($=$[q6]||$[uI]){var I=$.tag;if(I===5||I===6||I===13||I===31||I===26||I===27||I===3)return $}return null}function g0($){var I=$.tag;if(I===5||I===26||I===27||I===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function f0($){var I=$[MP];return I||(I=$[MP]={hoistableStyles:new Map,hoistableScripts:new Map}),I}function K$($){$[PG]=!0}function n0($,I){i0($,I),i0($+"Capture",I)}function i0($,I){cX[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),cX[$]=I;var Y=$.toLowerCase();CW[Y]=$,$==="onDoubleClick"&&(CW.ondblclick=$);for($=0;$<I.length;$++)AP.add(I[$])}function WU($,I){Vx[I.type]||I.onChange||I.onInput||I.readOnly||I.disabled||I.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),I.onChange||I.readOnly||I.disabled||I.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function a0($){if(d4.call(TP,$))return!0;if(d4.call(qP,$))return!1;if(Zx.test($))return TP[$]=!0;return qP[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function r($,I,Y){if(a0(I)){if(!$.hasAttribute(I)){switch(typeof Y){case"symbol":case"object":return Y;case"function":return Y;case"boolean":if(Y===!1)return Y}return Y===void 0?void 0:null}if($=$.getAttribute(I),$===""&&Y===!0)return!0;return n(Y,I),$===""+Y?Y:$}}function G0($,I,Y){if(a0(I))if(Y===null)$.removeAttribute(I);else{switch(typeof Y){case"undefined":case"function":case"symbol":$.removeAttribute(I);return;case"boolean":var W=I.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-"){$.removeAttribute(I);return}}n(Y,I),$.setAttribute(I,""+Y)}}function E0($,I,Y){if(Y===null)$.removeAttribute(I);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(I);return}n(Y,I),$.setAttribute(I,""+Y)}}function _0($,I,Y,W){if(W===null)$.removeAttribute(Y);else{switch(typeof W){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Y);return}n(W,Y),$.setAttributeNS(I,Y,""+W)}}function Z$($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return Y0($),$;default:return""}}function d0($){var I=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(I==="checkbox"||I==="radio")}function t0($,I,Y){var W=Object.getOwnPropertyDescriptor($.constructor.prototype,I);if(!$.hasOwnProperty(I)&&typeof W<"u"&&typeof W.get==="function"&&typeof W.set==="function"){var{get:A,set:R}=W;return Object.defineProperty($,I,{configurable:!0,get:function(){return A.call(this)},set:function(g){Y0(g),Y=""+g,R.call(this,g)}}),Object.defineProperty($,I,{enumerable:W.enumerable}),{getValue:function(){return Y},setValue:function(g){Y0(g),Y=""+g},stopTracking:function(){$._valueTracker=null,delete $[I]}}}}function AU($){if(!$._valueTracker){var I=d0($)?"checked":"value";$._valueTracker=t0($,I,""+$[I])}}function I$($){if(!$)return!1;var I=$._valueTracker;if(!I)return!0;var Y=I.getValue(),W="";return $&&(W=d0($)?$.checked?"true":"false":$.value),$=W,$!==Y?(I.setValue($),!0):!1}function $$($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(I){return $.body}}function IU($){return $.replace(Ox,function(I){return"\\"+I.charCodeAt(0).toString(16)+" "})}function X$($,I){I.checked===void 0||I.defaultChecked===void 0||RP||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component",I.type),RP=!0),I.value===void 0||I.defaultValue===void 0||CP||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component",I.type),CP=!0)}function e0($,I,Y,W,A,R,g,y){if($.name="",g!=null&&typeof g!=="function"&&typeof g!=="symbol"&&typeof g!=="boolean"?(n(g,"type"),$.type=g):$.removeAttribute("type"),I!=null)if(g==="number"){if(I===0&&$.value===""||$.value!=I)$.value=""+Z$(I)}else $.value!==""+Z$(I)&&($.value=""+Z$(I));else g!=="submit"&&g!=="reset"||$.removeAttribute("value");I!=null?B$($,g,Z$(I)):Y!=null?B$($,g,Z$(Y)):W!=null&&$.removeAttribute("value"),A==null&&R!=null&&($.defaultChecked=!!R),A!=null&&($.checked=A&&typeof A!=="function"&&typeof A!=="symbol"),y!=null&&typeof y!=="function"&&typeof y!=="symbol"&&typeof y!=="boolean"?(n(y,"name"),$.name=""+Z$(y)):$.removeAttribute("name")}function _U($,I,Y,W,A,R,g,y){if(R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"&&(n(R,"type"),$.type=R),I!=null||Y!=null){if(!(R!=="submit"&&R!=="reset"||I!==void 0&&I!==null)){AU($);return}Y=Y!=null?""+Z$(Y):"",I=I!=null?""+Z$(I):Y,y||I===$.value||($.value=I),$.defaultValue=I}W=W!=null?W:A,W=typeof W!=="function"&&typeof W!=="symbol"&&!!W,$.checked=y?$.checked:!!W,$.defaultChecked=!!W,g!=null&&typeof g!=="function"&&typeof g!=="symbol"&&typeof g!=="boolean"&&(n(g,"name"),$.name=g),AU($)}function B$($,I,Y){I==="number"&&$$($.ownerDocument)===$||$.defaultValue===""+Y||($.defaultValue=""+Y)}function j$($,I){I.value==null&&(typeof I.children==="object"&&I.children!==null?fQ.Children.forEach(I.children,function(Y){Y==null||typeof Y==="string"||typeof Y==="number"||typeof Y==="bigint"||EP||(EP=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):I.dangerouslySetInnerHTML==null||_P||(_P=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),I.selected==null||PP||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),PP=!0)}function XU(){var $=s();return $?`
34
+
35
+ Check the render method of \``+$+"`.":""}function o$($,I,Y,W){if($=$.options,I){I={};for(var A=0;A<Y.length;A++)I["$"+Y[A]]=!0;for(Y=0;Y<$.length;Y++)A=I.hasOwnProperty("$"+$[Y].value),$[Y].selected!==A&&($[Y].selected=A),A&&W&&($[Y].defaultSelected=!0)}else{Y=""+Z$(Y),I=null;for(A=0;A<$.length;A++){if($[A].value===Y){$[A].selected=!0,W&&($[A].defaultSelected=!0);return}I!==null||$[A].disabled||(I=$[A])}I!==null&&(I.selected=!0)}}function cU($,I){for($=0;$<jP.length;$++){var Y=jP[$];if(I[Y]!=null){var W=V6(I[Y]);I.multiple&&!W?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Y,XU()):!I.multiple&&W&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Y,XU())}}I.value===void 0||I.defaultValue===void 0||SP||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),SP=!0)}function pU($,I){I.value===void 0||I.defaultValue===void 0||vP||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",s()||"A component"),vP=!0),I.children!=null&&I.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function lU($,I,Y){if(I!=null&&(I=""+Z$(I),I!==$.value&&($.value=I),Y==null)){$.defaultValue!==I&&($.defaultValue=I);return}$.defaultValue=Y!=null?""+Z$(Y):""}function mU($,I,Y,W){if(I==null){if(W!=null){if(Y!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(V6(W)){if(1<W.length)throw Error("<textarea> can only have at most one child.");W=W[0]}Y=W}Y==null&&(Y=""),I=Y}Y=Z$(I),$.defaultValue=Y,W=$.textContent,W===Y&&W!==""&&W!==null&&($.value=W),AU($)}function dU($,I){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-I?dU($.children[0],I):$}function a$($){return" "+" ".repeat($)}function qU($){return"+ "+" ".repeat($)}function FU($){return"- "+" ".repeat($)}function nU($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function SU($,I){return BP.test($)?($=JSON.stringify($),$.length>I-2?8>I?'{"..."}':"{"+$.slice(0,I-7)+'..."}':"{"+$+"}"):$.length>I?5>I?'{"..."}':$.slice(0,I-3)+"...":$}function gU($,I,Y){var W=120-2*Y;if(I===null)return qU(Y)+SU($,W)+`
36
+ `;if(typeof I==="string"){for(var A=0;A<I.length&&A<$.length&&I.charCodeAt(A)===$.charCodeAt(A);A++);return A>W-8&&10<A&&($="..."+$.slice(A-8),I="..."+I.slice(A-8)),qU(Y)+SU($,W)+`
37
+ `+FU(Y)+SU(I,W)+`
38
+ `}return a$(Y)+SU($,W)+`
39
+ `}function fU($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(I,Y){return Y})}function jU($,I){switch(typeof $){case"string":return $=JSON.stringify($),$.length>I?5>I?'"..."':$.slice(0,I-4)+'..."':$;case"object":if($===null)return"null";if(V6($))return"[...]";if($.$$typeof===q1)return(I=L0($.type))?"<"+I+">":"<...>";var Y=fU($);if(Y==="Object"){Y="",I-=2;for(var W in $)if($.hasOwnProperty(W)){var A=JSON.stringify(W);if(A!=='"'+W+'"'&&(W=A),I-=W.length-2,A=jU($[W],15>I?I:15),I-=A.length,0>I){Y+=Y===""?"...":", ...";break}Y+=(Y===""?"":",")+W+":"+A}return"{"+Y+"}"}return Y;case"function":return(I=$.displayName||$.name)?"function "+I:"function";default:return String($)}}function TU($,I){return typeof $!=="string"||BP.test($)?"{"+jU($,I-2)+"}":$.length>I-2?5>I?'"..."':'"'+$.slice(0,I-5)+'..."':'"'+$+'"'}function _X($,I,Y){var W=120-Y.length-$.length,A=[],R;for(R in I)if(I.hasOwnProperty(R)&&R!=="children"){var g=TU(I[R],120-Y.length-R.length-1);W-=R.length+g.length+2,A.push(R+"="+g)}return A.length===0?Y+"<"+$+`>
40
+ `:0<W?Y+"<"+$+" "+A.join(" ")+`>
41
+ `:Y+"<"+$+`
42
+ `+Y+" "+A.join(`
43
+ `+Y+" ")+`
44
+ `+Y+`>
45
+ `}function hY($,I,Y){var W="",A=b$({},I),R;for(R in $)if($.hasOwnProperty(R)){delete A[R];var g=120-2*Y-R.length-2,y=jU($[R],g);I.hasOwnProperty(R)?(g=jU(I[R],g),W+=qU(Y)+R+": "+y+`
46
+ `,W+=FU(Y)+R+": "+g+`
47
+ `):W+=qU(Y)+R+": "+y+`
48
+ `}for(var d in A)A.hasOwnProperty(d)&&($=jU(A[d],120-2*Y-d.length-2),W+=FU(Y)+d+": "+$+`
49
+ `);return W}function cY($,I,Y,W){var A="",R=new Map;for(i in Y)Y.hasOwnProperty(i)&&R.set(i.toLowerCase(),i);if(R.size===1&&R.has("children"))A+=_X($,I,a$(W));else{for(var g in I)if(I.hasOwnProperty(g)&&g!=="children"){var y=120-2*(W+1)-g.length-1,d=R.get(g.toLowerCase());if(d!==void 0){R.delete(g.toLowerCase());var i=I[g];d=Y[d];var R0=TU(i,y);y=TU(d,y),typeof i==="object"&&i!==null&&typeof d==="object"&&d!==null&&fU(i)==="Object"&&fU(d)==="Object"&&(2<Object.keys(i).length||2<Object.keys(d).length||-1<R0.indexOf("...")||-1<y.indexOf("..."))?A+=a$(W+1)+g+`={{
50
+ `+hY(i,d,W+2)+a$(W+1)+`}}
51
+ `:(A+=qU(W+1)+g+"="+R0+`
52
+ `,A+=FU(W+1)+g+"="+y+`
53
+ `)}else A+=a$(W+1)+g+"="+TU(I[g],y)+`
54
+ `}R.forEach(function(P0){if(P0!=="children"){var W0=120-2*(W+1)-P0.length-1;A+=FU(W+1)+P0+"="+TU(Y[P0],W0)+`
55
+ `}}),A=A===""?a$(W)+"<"+$+`>
56
+ `:a$(W)+"<"+$+`
57
+ `+A+a$(W)+`>
58
+ `}if($=Y.children,I=I.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(R="",typeof I==="string"||typeof I==="number"||typeof I==="bigint")R=""+I;A+=gU(R,""+$,W+1)}else if(typeof I==="string"||typeof I==="number"||typeof I==="bigint")A=$==null?A+gU(""+I,null,W+1):A+gU(""+I,void 0,W+1);return A}function Eq($,I){var Y=nU($);if(Y===null){Y="";for($=$.child;$;)Y+=Eq($,I),$=$.sibling;return Y}return a$(I)+"<"+Y+`>
59
+ `}function GD($,I){var Y=dU($,I);if(Y!==$&&($.children.length!==1||$.children[0]!==Y))return a$(I)+`...
60
+ `+GD(Y,I+1);Y="";var W=$.fiber._debugInfo;if(W)for(var A=0;A<W.length;A++){var R=W[A].name;typeof R==="string"&&(Y+=a$(I)+"<"+R+`>
61
+ `,I++)}if(W="",A=$.fiber.pendingProps,$.fiber.tag===6)W=gU(A,$.serverProps,I),I++;else if(R=nU($.fiber),R!==null)if($.serverProps===void 0){W=I;var g=120-2*W-R.length-2,y="";for(i in A)if(A.hasOwnProperty(i)&&i!=="children"){var d=TU(A[i],15);if(g-=i.length+d.length+2,0>g){y+=" ...";break}y+=" "+i+"="+d}W=a$(W)+"<"+R+y+`>
62
+ `,I++}else $.serverProps===null?(W=_X(R,A,qU(I)),I++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(W=cY(R,A,$.serverProps,I),I++);var i="";A=$.fiber.child;for(R=0;A&&R<$.children.length;)g=$.children[R],g.fiber===A?(i+=GD(g,I),R++):i+=Eq(A,I),A=A.sibling;A&&0<$.children.length&&(i+=a$(I)+`...
63
+ `),A=$.serverTail,$.serverProps===null&&I--;for($=0;$<A.length;$++)R=A[$],i=typeof R==="string"?i+(FU(I)+SU(R,120-2*I)+`
64
+ `):i+_X(R.type,R.props,FU(I));return Y+W+i}function VD($){try{return`
65
+
66
+ `+GD($,0)}catch(I){return""}}function _q($,I,Y){for(var W=I,A=null,R=0;W;)W===$&&(R=0),A={fiber:W,children:A!==null?[A]:[],serverProps:W===I?Y:W===$?null:void 0,serverTail:[],distanceFromLeaf:R},R++,W=W.return;return A!==null?VD(A).replaceAll(/^[+-]/gm,">"):""}function Sq($,I){var Y=b$({},$||kP),W={tag:I};if(NP.indexOf(I)!==-1&&(Y.aTagInScope=null,Y.buttonTagInScope=null,Y.nobrTagInScope=null),Kx.indexOf(I)!==-1&&(Y.pTagInButtonScope=null),zx.indexOf(I)!==-1&&I!=="address"&&I!=="div"&&I!=="p"&&(Y.listItemTagAutoclosing=null,Y.dlItemTagAutoclosing=null),Y.current=W,I==="form"&&(Y.formTag=W),I==="a"&&(Y.aTagInScope=W),I==="button"&&(Y.buttonTagInScope=W),I==="nobr"&&(Y.nobrTagInScope=W),I==="p"&&(Y.pTagInButtonScope=W),I==="li"&&(Y.listItemTagAutoclosing=W),I==="dd"||I==="dt")Y.dlItemTagAutoclosing=W;return I==="#document"||I==="html"?Y.containerTagInScope=null:Y.containerTagInScope||(Y.containerTagInScope=W),$!==null||I!=="#document"&&I!=="html"&&I!=="body"?Y.implicitRootScope===!0&&(Y.implicitRootScope=!1):Y.implicitRootScope=!0,Y}function jq($,I,Y){switch(I){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(Y)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!Y)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I!=="h1"&&I!=="h2"&&I!=="h3"&&I!=="h4"&&I!=="h5"&&I!=="h6";case"rp":case"rt":return Dx.indexOf(I)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return I==null;case"head":return Y||I===null;case"html":return Y&&I==="#document"||I===null;case"body":return Y&&(I==="#document"||I==="html")||I===null}return!0}function Vk($,I){switch($){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I.pTagInButtonScope;case"form":return I.formTag||I.pTagInButtonScope;case"li":return I.listItemTagAutoclosing;case"dd":case"dt":return I.dlItemTagAutoclosing;case"button":return I.buttonTagInScope;case"a":return I.aTagInScope;case"nobr":return I.nobrTagInScope}return null}function vq($,I){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===I)return $}$=$.return}return null}function ZD($,I){I=I||kP;var Y=I.current;if(I=(Y=jq($,Y&&Y.tag,I.implicitRootScope)?null:Y)?null:Vk($,I),I=Y||I,!I)return!0;var W=I.tag;if(I=String(!!Y)+"|"+$+"|"+W,hZ[I])return!1;hZ[I]=!0;var A=(I=K4)?vq(I.return,W):null,R=I!==null&&A!==null?_q(A,I,null):"",g="<"+$+">";return Y?(Y="",W==="table"&&$==="tr"&&(Y+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,g,W,Y,R)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,g,W,R),I&&($=I.return,A===null||$===null||A===$&&$._debugOwner===I._debugOwner||J0(A,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,W,g)})),!1}function vV($,I,Y){if(Y||jq("#text",I,!1))return!0;if(Y="#text|"+I,hZ[Y])return!1;hZ[Y]=!0;var W=(Y=K4)?vq(Y,I):null;return Y=Y!==null&&W!==null?_q(W,Y,Y.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,I,Y):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,I,Y),!1}function pY($,I){if(I){var Y=$.firstChild;if(Y&&Y===$.lastChild&&Y.nodeType===3){Y.nodeValue=I;return}}$.textContent=I}function Zk($){return $.replace(Hx,function(I,Y){return Y.toUpperCase()})}function Bq($,I,Y){var W=I.indexOf("--")===0;W||(-1<I.indexOf("-")?IQ.hasOwnProperty(I)&&IQ[I]||(IQ[I]=!0,console.error("Unsupported style property %s. Did you mean %s?",I,Zk(I.replace(Fx,"ms-")))):Wx.test(I)?IQ.hasOwnProperty(I)&&IQ[I]||(IQ[I]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",I,I.charAt(0).toUpperCase()+I.slice(1))):!wP.test(Y)||PW.hasOwnProperty(Y)&&PW[Y]||(PW[Y]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,I,Y.replace(wP,""))),typeof Y==="number"&&(isNaN(Y)?fP||(fP=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",I)):isFinite(Y)||yP||(yP=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",I)))),Y==null||typeof Y==="boolean"||Y===""?W?$.setProperty(I,""):I==="float"?$.cssFloat="":$[I]="":W?$.setProperty(I,Y):typeof Y!=="number"||Y===0||uP.has(I)?I==="float"?$.cssFloat=Y:(H0(Y,I),$[I]=(""+Y).trim()):$[I]=Y+"px"}function Nq($,I,Y){if(I!=null&&typeof I!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(I&&Object.freeze(I),$=$.style,Y!=null){if(I){var W={};if(Y){for(var A in Y)if(Y.hasOwnProperty(A)&&!I.hasOwnProperty(A))for(var R=RW[A]||[A],g=0;g<R.length;g++)W[R[g]]=A}for(var y in I)if(I.hasOwnProperty(y)&&(!Y||Y[y]!==I[y]))for(A=RW[y]||[y],R=0;R<A.length;R++)W[A[R]]=y;y={};for(var d in I)for(A=RW[d]||[d],R=0;R<A.length;R++)y[A[R]]=d;d={};for(var i in W)if(A=W[i],(R=y[i])&&A!==R&&(g=A+","+R,!d[g])){d[g]=!0,g=console;var R0=I[A];g.error.call(g,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",R0==null||typeof R0==="boolean"||R0===""?"Removing":"Updating",A,R)}}for(var P0 in Y)!Y.hasOwnProperty(P0)||I!=null&&I.hasOwnProperty(P0)||(P0.indexOf("--")===0?$.setProperty(P0,""):P0==="float"?$.cssFloat="":$[P0]="");for(var W0 in I)i=I[W0],I.hasOwnProperty(W0)&&Y[W0]!==i&&Bq($,W0,i)}else for(W in I)I.hasOwnProperty(W)&&Bq($,W,I[W])}function lY($){if($.indexOf("-")===-1)return!1;switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function kq($){return Lx.get($)||$}function Ok($,I){if(d4.call(JQ,I)&&JQ[I])return!0;if(Ax.test(I)){if($="aria-"+I.slice(4).toLowerCase(),$=bP.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",I),JQ[I]=!0;if(I!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",I,$),JQ[I]=!0}if(Mx.test(I)){if($=I.toLowerCase(),$=bP.hasOwnProperty($)?$:null,$==null)return JQ[I]=!0,!1;I!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",I,$),JQ[I]=!0)}return!0}function zk($,I){var Y=[],W;for(W in I)Ok($,W)||Y.push(W);I=Y.map(function(A){return"`"+A+"`"}).join(", "),Y.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",I,$):1<Y.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",I,$)}function Kk($,I,Y,W){if(d4.call(N6,I)&&N6[I])return!0;var A=I.toLowerCase();if(A==="onfocusin"||A==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),N6[I]=!0;if(typeof Y==="function"&&($==="form"&&I==="action"||$==="input"&&I==="formAction"||$==="button"&&I==="formAction"))return!0;if(W!=null){if($=W.possibleRegistrationNames,W.registrationNameDependencies.hasOwnProperty(I))return!0;if(W=$.hasOwnProperty(A)?$[A]:null,W!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",I,W),N6[I]=!0;if(cP.test(I))return console.error("Unknown event handler property `%s`. It will be ignored.",I),N6[I]=!0}else if(cP.test(I))return qx.test(I)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",I),N6[I]=!0;if(Tx.test(I)||Cx.test(I))return!0;if(A==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),N6[I]=!0;if(A==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),N6[I]=!0;if(A==="is"&&Y!==null&&Y!==void 0&&typeof Y!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Y),N6[I]=!0;if(typeof Y==="number"&&isNaN(Y))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",I),N6[I]=!0;if(pZ.hasOwnProperty(A)){if(A=pZ[A],A!==I)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",I,A),N6[I]=!0}else if(I!==A)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",I,A),N6[I]=!0;switch(I){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof Y){case"boolean":switch(I){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(A=I.toLowerCase().slice(0,5),A==="data-"||A==="aria-")return!0;return Y?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',Y,I,I,Y,I):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',Y,I,I,Y,I,I,I),N6[I]=!0}case"function":case"symbol":return N6[I]=!0,!1;case"string":if(Y==="false"||Y==="true"){switch(I){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",Y,I,Y==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',I,Y),N6[I]=!0}}return!0}function Dk($,I,Y){var W=[],A;for(A in I)Kk($,A,I[A],Y)||W.push(A);I=W.map(function(R){return"`"+R+"`"}).join(", "),W.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",I,$):1<W.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",I,$)}function mY($){return Rx.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function c1(){}function OD($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function gq($){var I=F$($);if(I&&($=I.stateNode)){var Y=$[B6]||null;$:switch($=I.stateNode,I.type){case"input":if(e0($,Y.value,Y.defaultValue,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name),I=Y.name,Y.type==="radio"&&I!=null){for(Y=$;Y.parentNode;)Y=Y.parentNode;n(I,"name"),Y=Y.querySelectorAll('input[name="'+IU(""+I)+'"][type="radio"]');for(I=0;I<Y.length;I++){var W=Y[I];if(W!==$&&W.form===$.form){var A=W[B6]||null;if(!A)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");e0(W,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(I=0;I<Y.length;I++)W=Y[I],W.form===$.form&&I$(W)}break $;case"textarea":lU($,Y.value,Y.defaultValue);break $;case"select":I=Y.value,I!=null&&o$($,!!Y.multiple,I,!1)}}}function xq($,I,Y){if(EW)return $(I,Y);EW=!0;try{var W=$(I);return W}finally{if(EW=!1,QQ!==null||YQ!==null){if(nJ(),QQ&&(I=QQ,$=YQ,YQ=QQ=null,gq(I),$))for(I=0;I<$.length;I++)gq($[I])}}}function dY($,I){var Y=$.stateNode;if(Y===null)return null;var W=Y[B6]||null;if(W===null)return null;Y=W[I];$:switch(I){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(W=!W.disabled)||($=$.type,W=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!W;break $;default:$=!1}if($)return null;if(Y&&typeof Y!=="function")throw Error("Expected `"+I+"` listener to be a function, instead got a value of `"+typeof Y+"` type.");return Y}function wq(){if(lZ)return lZ;var $,I=SW,Y=I.length,W,A="value"in bI?bI.value:bI.textContent,R=A.length;for($=0;$<Y&&I[$]===A[$];$++);var g=Y-$;for(W=1;W<=g&&I[Y-W]===A[R-W];W++);return lZ=A.slice($,1<W?1-W:void 0)}function BV($){var I=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&I===13&&($=13)):$=I,$===10&&($=13),32<=$||$===13?$:0}function NV(){return!0}function fq(){return!1}function d6($){function I(Y,W,A,R,g){this._reactName=Y,this._targetInst=A,this.type=W,this.nativeEvent=R,this.target=g,this.currentTarget=null;for(var y in $)$.hasOwnProperty(y)&&(Y=$[y],this[y]=Y?Y(R):R[y]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?NV:fq,this.isPropagationStopped=fq,this}return b$(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Y=this.nativeEvent;Y&&(Y.preventDefault?Y.preventDefault():typeof Y.returnValue!=="unknown"&&(Y.returnValue=!1),this.isDefaultPrevented=NV)},stopPropagation:function(){var Y=this.nativeEvent;Y&&(Y.stopPropagation?Y.stopPropagation():typeof Y.cancelBubble!=="unknown"&&(Y.cancelBubble=!0),this.isPropagationStopped=NV)},persist:function(){},isPersistent:NV}),I}function Wk($){var I=this.nativeEvent;return I.getModifierState?I.getModifierState($):($=fx[$])?!!I[$]:!1}function zD(){return Wk}function yq($,I){switch($){case"keyup":return ix.indexOf(I.keyCode)!==-1;case"keydown":return I.keyCode!==dP;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uq($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function Fk($,I){switch($){case"compositionend":return uq(I);case"keypress":if(I.which!==oP)return null;return rP=!0,iP;case"textInput":return $=I.data,$===iP&&rP?null:$;default:return null}}function Hk($,I){if(GQ)return $==="compositionend"||!NW&&yq($,I)?($=wq(),lZ=SW=bI=null,GQ=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(I.ctrlKey||I.altKey||I.metaKey)||I.ctrlKey&&I.altKey){if(I.char&&1<I.char.length)return I.char;if(I.which)return String.fromCharCode(I.which)}return null;case"compositionend":return nP&&I.locale!=="ko"?null:I.data;default:return null}}function bq($){var I=$&&$.nodeName&&$.nodeName.toLowerCase();return I==="input"?!!tx[$.type]:I==="textarea"?!0:!1}function Lk($){if(!_1)return!1;$="on"+$;var I=$ in document;return I||(I=document.createElement("div"),I.setAttribute($,"return;"),I=typeof I[$]==="function"),I}function hq($,I,Y,W){QQ?YQ?YQ.push(W):YQ=[W]:QQ=W,I=RZ(I,"onChange"),0<I.length&&(Y=new mZ("onChange","change",null,Y,W),$.push({event:Y,listeners:I}))}function Mk($){CR($,0)}function kV($){var I=g0($);if(I$(I))return $}function cq($,I){if($==="change")return I}function pq(){BG&&(BG.detachEvent("onpropertychange",lq),NG=BG=null)}function lq($){if($.propertyName==="value"&&kV(NG)){var I=[];hq(I,NG,$,OD($)),xq(Mk,I)}}function Ak($,I,Y){$==="focusin"?(pq(),BG=I,NG=Y,BG.attachEvent("onpropertychange",lq)):$==="focusout"&&pq()}function qk($){if($==="selectionchange"||$==="keyup"||$==="keydown")return kV(NG)}function Tk($,I){if($==="click")return kV(I)}function Ck($,I){if($==="input"||$==="change")return kV(I)}function Rk($,I){return $===I&&($!==0||1/$===1/I)||$!==$&&I!==I}function nY($,I){if(k6($,I))return!0;if(typeof $!=="object"||$===null||typeof I!=="object"||I===null)return!1;var Y=Object.keys($),W=Object.keys(I);if(Y.length!==W.length)return!1;for(W=0;W<Y.length;W++){var A=Y[W];if(!d4.call(I,A)||!k6($[A],I[A]))return!1}return!0}function mq($){for(;$&&$.firstChild;)$=$.firstChild;return $}function dq($,I){var Y=mq($);$=0;for(var W;Y;){if(Y.nodeType===3){if(W=$+Y.textContent.length,$<=I&&W>=I)return{node:Y,offset:I-$};$=W}$:{for(;Y;){if(Y.nextSibling){Y=Y.nextSibling;break $}Y=Y.parentNode}Y=void 0}Y=mq(Y)}}function nq($,I){return $&&I?$===I?!0:$&&$.nodeType===3?!1:I&&I.nodeType===3?nq($,I.parentNode):("contains"in $)?$.contains(I):$.compareDocumentPosition?!!($.compareDocumentPosition(I)&16):!1:!1}function oq($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var I=$$($.document);I instanceof $.HTMLIFrameElement;){try{var Y=typeof I.contentWindow.location.href==="string"}catch(W){Y=!1}if(Y)$=I.contentWindow;else break;I=$$($.document)}return I}function KD($){var I=$&&$.nodeName&&$.nodeName.toLowerCase();return I&&(I==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||I==="textarea"||$.contentEditable==="true")}function iq($,I,Y){var W=Y.window===Y?Y.document:Y.nodeType===9?Y:Y.ownerDocument;gW||VQ==null||VQ!==$$(W)||(W=VQ,("selectionStart"in W)&&KD(W)?W={start:W.selectionStart,end:W.selectionEnd}:(W=(W.ownerDocument&&W.ownerDocument.defaultView||window).getSelection(),W={anchorNode:W.anchorNode,anchorOffset:W.anchorOffset,focusNode:W.focusNode,focusOffset:W.focusOffset}),kG&&nY(kG,W)||(kG=W,W=RZ(kW,"onSelect"),0<W.length&&(I=new mZ("onSelect","select",null,I,Y),$.push({event:I,listeners:W}),I.target=VQ)))}function SX($,I){var Y={};return Y[$.toLowerCase()]=I.toLowerCase(),Y["Webkit"+$]="webkit"+I,Y["Moz"+$]="moz"+I,Y}function jX($){if(xW[$])return xW[$];if(!ZQ[$])return $;var I=ZQ[$],Y;for(Y in I)if(I.hasOwnProperty(Y)&&Y in aP)return xW[$]=I[Y];return $}function p4($,I){IE.set($,I),n0(I,[$])}function Pk($){for(var I=nZ,Y=0;Y<$.length;Y++){var W=$[Y];if(typeof W==="object"&&W!==null)if(V6(W)&&W.length===2&&typeof W[0]==="string"){if(I!==nZ&&I!==bW)return yW;I=bW}else return yW;else{if(typeof W==="function"||typeof W==="string"&&50<W.length||I!==nZ&&I!==uW)return yW;I=uW}}return I}function DD($,I,Y,W){for(var A in $)d4.call($,A)&&A[0]!=="_"&&J1(A,$[A],I,Y,W)}function J1($,I,Y,W,A){switch(typeof I){case"object":if(I===null){I="null";break}else{if(I.$$typeof===q1){var R=L0(I.type)||"…",g=I.key;I=I.props;var y=Object.keys(I),d=y.length;if(g==null&&d===0){I="<"+R+" />";break}if(3>W||d===1&&y[0]==="children"&&g==null){I="<"+R+" … />";break}Y.push([A+"  ".repeat(W)+$,"<"+R]),g!==null&&J1("key",g,Y,W+1,A),$=!1;for(var i in I)i==="children"?I.children!=null&&(!V6(I.children)||0<I.children.length)&&($=!0):d4.call(I,i)&&i[0]!=="_"&&J1(i,I[i],Y,W+1,A);Y.push(["",$?">…</"+R+">":"/>"]);return}if(R=Object.prototype.toString.call(I),R=R.slice(8,R.length-1),R==="Array"){if(i=Pk(I),i===uW||i===nZ){I=JSON.stringify(I);break}else if(i===bW){Y.push([A+"  ".repeat(W)+$,""]);for($=0;$<I.length;$++)R=I[$],J1(R[0],R[1],Y,W+1,A);return}}if(R==="Promise"){if(I.status==="fulfilled"){if(R=Y.length,J1($,I.value,Y,W,A),Y.length>R){Y=Y[R],Y[1]="Promise<"+(Y[1]||"Object")+">";return}}else if(I.status==="rejected"&&(R=Y.length,J1($,I.reason,Y,W,A),Y.length>R)){Y=Y[R],Y[1]="Rejected Promise<"+Y[1]+">";return}Y.push(["  ".repeat(W)+$,"Promise"]);return}R==="Object"&&(i=Object.getPrototypeOf(I))&&typeof i.constructor==="function"&&(R=i.constructor.name),Y.push([A+"  ".repeat(W)+$,R==="Object"?3>W?"":"…":R]),3>W&&DD(I,Y,W+1,A);return}case"function":I=I.name===""?"() => {}":I.name+"() {}";break;case"string":I=I===Xw?"…":JSON.stringify(I);break;case"undefined":I="undefined";break;case"boolean":I=I?"true":"false";break;default:I=String(I)}Y.push([A+"  ".repeat(W)+$,I])}function rq($,I,Y,W){var A=!0;for(g in $)g in I||(Y.push([oZ+"  ".repeat(W)+g,"…"]),A=!1);for(var R in I)if(R in $){var g=$[R],y=I[R];if(g!==y){if(W===0&&R==="children")A="  ".repeat(W)+R,Y.push([oZ+A,"…"],[iZ+A,"…"]);else{if(!(3<=W)){if(typeof g==="object"&&typeof y==="object"&&g!==null&&y!==null&&g.$$typeof===y.$$typeof)if(y.$$typeof===q1){if(g.type===y.type&&g.key===y.key){g=L0(y.type)||"…",A="  ".repeat(W)+R,g="<"+g+" … />",Y.push([oZ+A,g],[iZ+A,g]),A=!1;continue}}else{var d=Object.prototype.toString.call(g),i=Object.prototype.toString.call(y);if(d===i&&(i==="[object Object]"||i==="[object Array]")){d=[QE+"  ".repeat(W)+R,i==="[object Array]"?"Array":""],Y.push(d),i=Y.length,rq(g,y,Y,W+1)?i===Y.length&&(d[1]="Referentially unequal but deeply equal objects. Consider memoization."):A=!1;continue}}else if(typeof g==="function"&&typeof y==="function"&&g.name===y.name&&g.length===y.length&&(d=Function.prototype.toString.call(g),i=Function.prototype.toString.call(y),d===i)){g=y.name===""?"() => {}":y.name+"() {}",Y.push([QE+"  ".repeat(W)+R,g+" Referentially unequal function closure. Consider memoization."]);continue}}J1(R,g,Y,W,oZ),J1(R,y,Y,W,iZ)}A=!1}}else Y.push([iZ+"  ".repeat(W)+R,"…"]),A=!1;return A}function J4($){c$=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function Q1($,I,Y,W){CU&&(cI.start=I,cI.end=Y,t1.color="warning",t1.tooltipText=W,t1.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,W,cI)):performance.measure(W,cI))}function gV($,I,Y){Q1($,I,Y,"Reconnect")}function xV($,I,Y,W,A){var R=o($);if(R!==null&&CU){var{alternate:g,actualDuration:y}=$;if(g===null||g.child!==$.child)for(var d=$.child;d!==null;d=d.sibling)y-=d.actualDuration;W=0.5>y?W?"tertiary-light":"primary-light":10>y?W?"tertiary":"primary":100>y?W?"tertiary-dark":"primary-dark":"error";var i=$.memoizedProps;y=$._debugTask,i!==null&&g!==null&&g.memoizedProps!==i?(d=[Jw],i=rq(g.memoizedProps,i,d,0),1<d.length&&(i&&!hI&&(g.lanes&A)===0&&100<$.actualDuration?(hI=!0,d[0]=Qw,t1.color="warning",t1.tooltipText=YE):(t1.color=W,t1.tooltipText=R),t1.properties=d,cI.start=I,cI.end=Y,y!=null?y.run(performance.measure.bind(performance,"​"+R,cI)):performance.measure("​"+R,cI))):y!=null?y.run(console.timeStamp.bind(console,R,I,Y,_4,void 0,W)):console.timeStamp(R,I,Y,_4,void 0,W)}}function WD($,I,Y,W){if(CU){var A=o($);if(A!==null){for(var R=null,g=[],y=0;y<W.length;y++){var d=W[y];R==null&&d.source!==null&&(R=d.source._debugTask),d=d.value,g.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}$.key!==null&&J1("key",$.key,g,0,""),$.memoizedProps!==null&&DD($.memoizedProps,g,0,""),R==null&&(R=$._debugTask),$={start:I,end:Y,detail:{devtools:{color:"error",track:_4,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:g}}},R?R.run(performance.measure.bind(performance,"​"+A,$)):performance.measure("​"+A,$)}}}function Y1($,I,Y,W,A){if(A!==null){if(CU){var R=o($);if(R!==null){W=[];for(var g=0;g<A.length;g++){var y=A[g].value;W.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$.key!==null&&J1("key",$.key,W,0,""),$.memoizedProps!==null&&DD($.memoizedProps,W,0,""),I={start:I,end:Y,detail:{devtools:{color:"error",track:_4,tooltipText:"A lifecycle or effect errored",properties:W}}},($=$._debugTask)?$.run(performance.measure.bind(performance,"​"+R,I)):performance.measure("​"+R,I)}}}else R=o($),R!==null&&CU&&(A=1>W?"secondary-light":100>W?"secondary":500>W?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,R,I,Y,_4,void 0,A)):console.timeStamp(R,I,Y,_4,void 0,A))}function Ek($,I,Y,W){if(CU&&!(I<=$)){var A=(Y&738197653)===Y?"tertiary-dark":"primary-dark";Y=(Y&536870912)===Y?"Prepared":(Y&201326741)===Y?"Hydrated":"Render",W?W.run(console.timeStamp.bind(console,Y,$,I,c$,h$,A)):console.timeStamp(Y,$,I,c$,h$,A)}}function tq($,I,Y,W){!CU||I<=$||(Y=(Y&738197653)===Y?"tertiary-dark":"primary-dark",W?W.run(console.timeStamp.bind(console,"Prewarm",$,I,c$,h$,Y)):console.timeStamp("Prewarm",$,I,c$,h$,Y))}function aq($,I,Y,W){!CU||I<=$||(Y=(Y&738197653)===Y?"tertiary-dark":"primary-dark",W?W.run(console.timeStamp.bind(console,"Suspended",$,I,c$,h$,Y)):console.timeStamp("Suspended",$,I,c$,h$,Y))}function _k($,I,Y,W,A,R){if(CU&&!(I<=$)){Y=[];for(var g=0;g<W.length;g++){var y=W[g].value;Y.push(["Recoverable Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$={start:$,end:I,detail:{devtools:{color:"primary-dark",track:c$,trackGroup:h$,tooltipText:A?"Hydration Failed":"Recovered after Error",properties:Y}}},R?R.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function FD($,I,Y,W){!CU||I<=$||(W?W.run(console.timeStamp.bind(console,"Errored",$,I,c$,h$,"error")):console.timeStamp("Errored",$,I,c$,h$,"error"))}function Sk($,I,Y,W){!CU||I<=$||(W?W.run(console.timeStamp.bind(console,Y,$,I,c$,h$,"secondary-light")):console.timeStamp(Y,$,I,c$,h$,"secondary-light"))}function sq($,I,Y,W,A){if(CU&&!(I<=$)){for(var R=[],g=0;g<Y.length;g++){var y=Y[g].value;R.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}$={start:$,end:I,detail:{devtools:{color:"error",track:c$,trackGroup:h$,tooltipText:W?"Remaining Effects Errored":"Commit Errored",properties:R}}},A?A.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function oY($,I,Y){!CU||I<=$||(Y?Y.run(console.timeStamp.bind(console,"Animating",$,I,c$,h$,"secondary-dark")):console.timeStamp("Animating",$,I,c$,h$,"secondary-dark"))}function wV(){for(var $=OQ,I=hW=OQ=0;I<$;){var Y=S4[I];S4[I++]=null;var W=S4[I];S4[I++]=null;var A=S4[I];S4[I++]=null;var R=S4[I];if(S4[I++]=null,W!==null&&A!==null){var g=W.pending;g===null?A.next=A:(A.next=g.next,g.next=A),W.pending=A}R!==0&&eq(Y,A,R)}}function fV($,I,Y,W){S4[OQ++]=$,S4[OQ++]=I,S4[OQ++]=Y,S4[OQ++]=W,hW|=W,$.lanes|=W,$=$.alternate,$!==null&&($.lanes|=W)}function HD($,I,Y,W){return fV($,I,Y,W),yV($)}function P6($,I){return fV($,null,null,I),yV($)}function eq($,I,Y){$.lanes|=Y;var W=$.alternate;W!==null&&(W.lanes|=Y);for(var A=!1,R=$.return;R!==null;)R.childLanes|=Y,W=R.alternate,W!==null&&(W.childLanes|=Y),R.tag===22&&($=R.stateNode,$===null||$._visibility&gG||(A=!0)),$=R,R=R.return;return $.tag===3?(R=$.stateNode,A&&I!==null&&(A=31-v6(Y),$=R.hiddenUpdates,W=$[A],W===null?$[A]=[I]:W.push(I),I.lane=Y|536870912),R):null}function yV($){if(Y2>qw)throw XJ=Y2=0,G2=A9=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");XJ>Tw&&(XJ=0,G2=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&FR($);for(var I=$,Y=I.return;Y!==null;)I.alternate===null&&(I.flags&4098)!==0&&FR($),I=Y,Y=I.return;return I.tag===3?I.stateNode:null}function vX($){if(j4===null)return $;var I=j4($);return I===void 0?$:I.current}function LD($){if(j4===null)return $;var I=j4($);return I===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(I=vX($.render),$.render!==I)?(I={$$typeof:TG,render:I},$.displayName!==void 0&&(I.displayName=$.displayName),I):$:I.current}function $T($,I){if(j4===null)return!1;var Y=$.elementType;I=I.type;var W=!1,A=typeof I==="object"&&I!==null?I.$$typeof:null;switch($.tag){case 1:typeof I==="function"&&(W=!0);break;case 0:typeof I==="function"?W=!0:A===z4&&(W=!0);break;case 11:A===TG?W=!0:A===z4&&(W=!0);break;case 14:case 15:A===xZ?W=!0:A===z4&&(W=!0);break;default:return!1}return W&&($=j4(Y),$!==void 0&&$===j4(I))?!0:!1}function UT($){j4!==null&&typeof WeakSet==="function"&&(zQ===null&&(zQ=new WeakSet),zQ.add($))}function IT($,I,Y){do{var W=$,A=W.alternate,R=W.child,g=W.sibling,y=W.tag;W=W.type;var d=null;switch(y){case 0:case 15:case 1:d=W;break;case 11:d=W.render}if(j4===null)throw Error("Expected resolveFamily to be set during hot reload.");var i=!1;if(W=!1,d!==null&&(d=j4(d),d!==void 0&&(Y.has(d)?W=!0:I.has(d)&&(y===1?W=!0:i=!0))),zQ!==null&&(zQ.has($)||A!==null&&zQ.has(A))&&(W=!0),W&&($._debugNeedsRemount=!0),W||i)A=P6($,2),A!==null&&yU(A,$,2);if(R===null||W||IT(R,I,Y),g===null)break;$=g}while(1)}function jk($,I,Y,W){this.tag=$,this.key=Y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=I,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=W,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,GE||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function MD($){return $=$.prototype,!(!$||!$.isReactComponent)}function p1($,I){var Y=$.alternate;switch(Y===null?(Y=P($.tag,I,$.key,$.mode),Y.elementType=$.elementType,Y.type=$.type,Y.stateNode=$.stateNode,Y._debugOwner=$._debugOwner,Y._debugStack=$._debugStack,Y._debugTask=$._debugTask,Y._debugHookTypes=$._debugHookTypes,Y.alternate=$,$.alternate=Y):(Y.pendingProps=I,Y.type=$.type,Y.flags=0,Y.subtreeFlags=0,Y.deletions=null,Y.actualDuration=-0,Y.actualStartTime=-1.1),Y.flags=$.flags&65011712,Y.childLanes=$.childLanes,Y.lanes=$.lanes,Y.child=$.child,Y.memoizedProps=$.memoizedProps,Y.memoizedState=$.memoizedState,Y.updateQueue=$.updateQueue,I=$.dependencies,Y.dependencies=I===null?null:{lanes:I.lanes,firstContext:I.firstContext,_debugThenableState:I._debugThenableState},Y.sibling=$.sibling,Y.index=$.index,Y.ref=$.ref,Y.refCleanup=$.refCleanup,Y.selfBaseDuration=$.selfBaseDuration,Y.treeBaseDuration=$.treeBaseDuration,Y._debugInfo=$._debugInfo,Y._debugNeedsRemount=$._debugNeedsRemount,Y.tag){case 0:case 15:Y.type=vX($.type);break;case 1:Y.type=vX($.type);break;case 11:Y.type=LD($.type)}return Y}function XT($,I){$.flags&=65011714;var Y=$.alternate;return Y===null?($.childLanes=0,$.lanes=I,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Y.childLanes,$.lanes=Y.lanes,$.child=Y.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Y.memoizedProps,$.memoizedState=Y.memoizedState,$.updateQueue=Y.updateQueue,$.type=Y.type,I=Y.dependencies,$.dependencies=I===null?null:{lanes:I.lanes,firstContext:I.firstContext,_debugThenableState:I._debugThenableState},$.selfBaseDuration=Y.selfBaseDuration,$.treeBaseDuration=Y.treeBaseDuration),$}function AD($,I,Y,W,A,R){var g=0,y=$;if(typeof $==="function")MD($)&&(g=1),y=vX(y);else if(typeof $==="string")g=C(),g=yg($,Y,g)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case zW:return I=P(31,Y,I,A),I.elementType=zW,I.lanes=R,I;case eJ:return BX(Y.children,A,R,I);case gZ:g=8,A|=_6,A|=o4;break;case GW:return $=Y,W=A,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),I=P(12,$,I,W|g$),I.elementType=GW,I.lanes=R,I.stateNode={effectDuration:0,passiveEffectDuration:0},I;case ZW:return I=P(13,Y,I,A),I.elementType=ZW,I.lanes=R,I;case OW:return I=P(19,Y,I,A),I.elementType=OW,I.lanes=R,I;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case T1:g=10;break $;case VW:g=9;break $;case TG:g=11,y=LD(y);break $;case xZ:g=14;break $;case z4:g=16,y=null;break $}if(y="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?Y="null":V6($)?Y="array":$!==void 0&&$.$$typeof===q1?(Y="<"+(L0($.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):Y=typeof $,(g=W?C0(W):null)&&(y+=`
72
+
73
+ Check the render method of \``+g+"`."),g=29,Y=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Y+"."+y)),y=null}return I=P(g,Y,I,A),I.elementType=$,I.type=y,I.lanes=R,I._debugOwner=W,I}function uV($,I,Y){return I=AD($.type,$.key,$.props,$._owner,I,Y),I._debugOwner=$._owner,I._debugStack=$._debugStack,I._debugTask=$._debugTask,I}function BX($,I,Y,W){return $=P(7,$,W,I),$.lanes=Y,$}function qD($,I,Y){return $=P(6,$,null,I),$.lanes=Y,$}function JT($){var I=P(18,null,null,R$);return I.stateNode=$,I}function TD($,I,Y){return I=P(4,$.children!==null?$.children:[],$.key,I),I.lanes=Y,I.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},I}function Q4($,I){if(typeof $==="object"&&$!==null){var Y=cW.get($);if(Y!==void 0)return Y;return I={value:$,source:I,stack:z0(I)},cW.set($,I),I}return{value:$,source:I,stack:z0(I)}}function l1($,I){RI(),KQ[DQ++]=xG,KQ[DQ++]=rZ,rZ=$,xG=I}function QT($,I,Y){RI(),v4[B4++]=s1,v4[B4++]=e1,v4[B4++]=lX,lX=$;var W=s1;$=e1;var A=32-v6(W)-1;W&=~(1<<A),Y+=1;var R=32-v6(I)+A;if(30<R){var g=A-A%5;R=(W&(1<<g)-1).toString(32),W>>=g,A-=g,s1=1<<32-v6(I)+A|Y<<A|W,e1=R+$}else s1=1<<R|Y<<A|W,e1=$}function CD($){RI(),$.return!==null&&(l1($,1),QT($,1,0))}function RD($){for(;$===rZ;)rZ=KQ[--DQ],KQ[DQ]=null,xG=KQ[--DQ],KQ[DQ]=null;for(;$===lX;)lX=v4[--B4],v4[B4]=null,e1=v4[--B4],v4[B4]=null,s1=v4[--B4],v4[B4]=null}function YT(){return RI(),lX!==null?{id:s1,overflow:e1}:null}function GT($,I){RI(),v4[B4++]=s1,v4[B4++]=e1,v4[B4++]=lX,s1=I.id,e1=I.overflow,lX=$}function RI(){m$||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function NX($,I){if($.return===null){if(W4===null)W4={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:I};else{if(W4.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");W4.distanceFromLeaf>I&&(W4.distanceFromLeaf=I)}return W4}var Y=NX($.return,I+1).children;if(0<Y.length&&Y[Y.length-1].fiber===$)return Y=Y[Y.length-1],Y.distanceFromLeaf>I&&(Y.distanceFromLeaf=I),Y;return I={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:I},Y.push(I),I}function VT(){m$&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function bV($,I){S1||($=NX($,0),$.serverProps=null,I!==null&&(I=hR(I),$.serverTail.push(I)))}function PI($){var I=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Y="",W=W4;throw W!==null&&(W4=null,Y=VD(W)),iY(Q4(Error("Hydration failed because the server rendered "+(I?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
+
75
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
76
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
77
+ - Date formatting in a user's locale which doesn't match the server.
78
+ - External changing data without sending a snapshot of it along with the HTML.
79
+ - Invalid HTML tag nesting.
80
+
81
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
+
83
+ https://react.dev/link/hydration-mismatch`+Y),$)),pW}function ZT($){var{stateNode:I,type:Y,memoizedProps:W}=$;switch(I[q6]=$,I[B6]=W,l8(Y,W),Y){case"dialog":d$("cancel",I),d$("close",I);break;case"iframe":case"object":case"embed":d$("load",I);break;case"video":case"audio":for(Y=0;Y<V2.length;Y++)d$(V2[Y],I);break;case"source":d$("error",I);break;case"img":case"image":case"link":d$("error",I),d$("load",I);break;case"details":d$("toggle",I);break;case"input":WU("input",W),d$("invalid",I),X$(I,W),_U(I,W.value,W.defaultValue,W.checked,W.defaultChecked,W.type,W.name,!0);break;case"option":j$(I,W);break;case"select":WU("select",W),d$("invalid",I),cU(I,W);break;case"textarea":WU("textarea",W),d$("invalid",I),pU(I,W),mU(I,W.value,W.defaultValue,W.children)}Y=W.children,typeof Y!=="string"&&typeof Y!=="number"&&typeof Y!=="bigint"||I.textContent===""+Y||W.suppressHydrationWarning===!0||_R(I.textContent,Y)?(W.popover!=null&&(d$("beforetoggle",I),d$("toggle",I)),W.onScroll!=null&&d$("scroll",I),W.onScrollEnd!=null&&d$("scrollend",I),W.onClick!=null&&(I.onclick=c1),I=!0):I=!1,I||PI($,!0)}function OT($){for(T6=$.return;T6;)switch(T6.tag){case 5:case 31:case 13:N4=!1;return;case 27:case 3:N4=!0;return;default:T6=T6.return}}function yJ($){if($!==T6)return!1;if(!m$)return OT($),m$=!0,!1;var I=$.tag,Y;if(Y=I!==3&&I!==27){if(Y=I===5)Y=$.type,Y=!(Y!=="form"&&Y!=="button")||i8($.type,$.memoizedProps);Y=!Y}if(Y&&RU){for(Y=RU;Y;){var W=NX($,0),A=hR(Y);W.serverTail.push(A),Y=A.type==="Suspense"?s8(Y):O4(Y.nextSibling)}PI($)}if(OT($),I===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");RU=s8($)}else if(I===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");RU=s8($)}else I===27?(I=RU,xI($.type)?($=N9,N9=null,RU=$):RU=I):RU=T6?O4($.stateNode.nextSibling):null;return!0}function kX(){RU=T6=null,S1=m$=!1}function PD(){var $=lI;return $!==null&&(f6===null?f6=$:f6.push.apply(f6,$),lI=null),$}function iY($){lI===null?lI=[$]:lI.push($)}function ED(){var $=W4;if($!==null){W4=null;for(var I=VD($);0<$.children.length;)$=$.children[0];J0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",I)})}}function hV(){WQ=tZ=null,FQ=!1}function EI($,I,Y){D(lW,I._currentValue,$),I._currentValue=Y,D(mW,I._currentRenderer,$),I._currentRenderer!==void 0&&I._currentRenderer!==null&&I._currentRenderer!==ZE&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),I._currentRenderer=ZE}function m1($,I){$._currentValue=lW.current;var Y=mW.current;G(mW,I),$._currentRenderer=Y,G(lW,I)}function _D($,I,Y){for(;$!==null;){var W=$.alternate;if(($.childLanes&I)!==I?($.childLanes|=I,W!==null&&(W.childLanes|=I)):W!==null&&(W.childLanes&I)!==I&&(W.childLanes|=I),$===Y)break;$=$.return}$!==Y&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function SD($,I,Y,W){var A=$.child;A!==null&&(A.return=$);for(;A!==null;){var R=A.dependencies;if(R!==null){var g=A.child;R=R.firstContext;$:for(;R!==null;){var y=R;R=A;for(var d=0;d<I.length;d++)if(y.context===I[d]){R.lanes|=Y,y=R.alternate,y!==null&&(y.lanes|=Y),_D(R.return,Y,$),W||(g=null);break $}R=y.next}}else if(A.tag===18){if(g=A.return,g===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");g.lanes|=Y,R=g.alternate,R!==null&&(R.lanes|=Y),_D(g,Y,$),g=null}else g=A.child;if(g!==null)g.return=A;else for(g=A;g!==null;){if(g===$){g=null;break}if(A=g.sibling,A!==null){A.return=g.return,g=A;break}g=g.return}A=g}}function uJ($,I,Y,W){$=null;for(var A=I,R=!1;A!==null;){if(!R){if((A.flags&524288)!==0)R=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var g=A.alternate;if(g===null)throw Error("Should have a current fiber. This is a bug in React.");if(g=g.memoizedProps,g!==null){var y=A.type;k6(A.pendingProps.value,g.value)||($!==null?$.push(y):$=[y])}}else if(A===wZ.current){if(g=A.alternate,g===null)throw Error("Should have a current fiber. This is a bug in React.");g.memoizedState.memoizedState!==A.memoizedState.memoizedState&&($!==null?$.push(D2):$=[D2])}A=A.return}$!==null&&SD(I,$,Y,W),I.flags|=262144}function cV($){for($=$.firstContext;$!==null;){if(!k6($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function gX($){tZ=$,WQ=null,$=$.dependencies,$!==null&&($.firstContext=null)}function vU($){return FQ&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),zT(tZ,$)}function pV($,I){return tZ===null&&gX($),zT($,I)}function zT($,I){var Y=I._currentValue;if(I={context:I,memoizedValue:Y,next:null},WQ===null){if($===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");WQ=I,$.dependencies={lanes:0,firstContext:I,_debugThenableState:null},$.flags|=524288}else WQ=WQ.next=I;return Y}function jD(){return{controller:new Vw,data:new Map,refCount:0}}function xX($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function rY($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&Zw(Ow,function(){$.controller.abort()})}function G1($,I,Y){if(($&127)!==0)0>j1&&(j1=I6(),fG=aZ(I),dW=I,Y!=null&&(nW=o(Y)),(i$&(O6|L4))!==F6&&(uU=!0,nI=wG),$=HG(),I=FG(),$!==HQ||I!==yG?HQ=-1.1:I!==null&&(nI=wG),dX=$,yG=I);else if(($&4194048)!==0&&0>k4&&(k4=I6(),uG=aZ(I),OE=I,Y!=null&&(zE=o(Y)),0>II)){if($=HG(),I=FG(),$!==iI||I!==nX)iI=-1.1;oI=$,nX=I}}function vk($){if(0>j1){j1=I6(),fG=$._debugTask!=null?$._debugTask:null,(i$&(O6|L4))!==F6&&(nI=wG);var I=HG(),Y=FG();I!==HQ||Y!==yG?HQ=-1.1:Y!==null&&(nI=wG),dX=I,yG=Y}if(0>k4&&(k4=I6(),uG=$._debugTask!=null?$._debugTask:null,0>II)){if($=HG(),I=FG(),$!==iI||I!==nX)iI=-1.1;oI=$,nX=I}}function d1(){var $=mX;return mX=0,$}function lV($){var I=mX;return mX=$,I}function tY($){var I=mX;return mX+=$,I}function mV(){C$=q$=-1.1}function Y4(){var $=q$;return q$=-1.1,$}function G4($){0<=$&&(q$=$)}function V1(){var $=xU;return xU=-0,$}function Z1($){0<=$&&(xU=$)}function O1(){var $=BU;return BU=null,$}function z1(){var $=uU;return uU=!1,$}function vD($){g6=I6(),0>$.actualStartTime&&($.actualStartTime=g6)}function BD($){if(0<=g6){var I=I6()-g6;$.actualDuration+=I,$.selfBaseDuration=I,g6=-1}}function KT($){if(0<=g6){var I=I6()-g6;$.actualDuration+=I,g6=-1}}function K1(){if(0<=g6){var $=I6(),I=$-g6;g6=-1,mX+=I,xU+=I,C$=$}}function DT($){BU===null&&(BU=[]),BU.push($),UI===null&&(UI=[]),UI.push($)}function D1(){g6=I6(),0>q$&&(q$=g6)}function aY($){for(var I=$.child;I;)$.actualDuration+=I.actualDuration,I=I.sibling}function Bk($,I){if(hG===null){var Y=hG=[];iW=0,oX=b8(),LQ={status:"pending",value:void 0,then:function(W){Y.push(W)}}}return iW++,I.then(WT,WT),I}function WT(){if(--iW===0&&(-1<k4||(II=-1.1),hG!==null)){LQ!==null&&(LQ.status="fulfilled");var $=hG;hG=null,oX=0,LQ=null;for(var I=0;I<$.length;I++)(0,$[I])()}}function Nk($,I){var Y=[],W={status:"pending",value:null,reason:null,then:function(A){Y.push(A)}};return $.then(function(){W.status="fulfilled",W.value=I;for(var A=0;A<Y.length;A++)(0,Y[A])(I)},function(A){W.status="rejected",W.reason=A;for(A=0;A<Y.length;A++)(0,Y[A])(void 0)}),W}function ND(){var $=iX.current;return $!==null?$:zU.pooledCache}function dV($,I){I===null?D(iX,iX.current,$):D(iX,I.pool,$)}function FT(){var $=ND();return $===null?null:{parent:U6._currentValue,pool:$}}function HT(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function LT($){return $=$.status,$==="fulfilled"||$==="rejected"}function MT($,I,Y){y0.actQueue!==null&&(y0.didUsePromise=!0);var W=$.thenables;if(Y=W[Y],Y===void 0?W.push(I):Y!==I&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),I.then(c1,c1),I=Y),I._debugInfo===void 0){$=performance.now(),W=I.displayName;var A={name:typeof W==="string"?W:"Promise",start:$,end:$,value:I};I._debugInfo=[{awaited:A}],I.status!=="fulfilled"&&I.status!=="rejected"&&($=function(){A.end=performance.now()},I.then($,$))}switch(I.status){case"fulfilled":return I.value;case"rejected":throw $=I.reason,qT($),$;default:if(typeof I.status==="string")I.then(c1,c1);else{if($=zU,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=I,$.status="pending",$.then(function(R){if(I.status==="pending"){var g=I;g.status="fulfilled",g.value=R}},function(R){if(I.status==="pending"){var g=I;g.status="rejected",g.reason=R}})}switch(I.status){case"fulfilled":return I.value;case"rejected":throw $=I.reason,qT($),$}throw tX=I,oG=!0,MQ}}function _I($){try{return Ww($)}catch(I){if(I!==null&&typeof I==="object"&&typeof I.then==="function")throw tX=I,oG=!0,MQ;throw I}}function AT(){if(tX===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=tX;return tX=null,oG=!1,$}function qT($){if($===MQ||$===QO)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function L6($){var I=x$;return $!=null&&(x$=I===null?$:I.concat($)),I}function kD(){var $=x$;if($!=null){for(var I=$.length-1;0<=I;I--)if($[I].name!=null){var Y=$[I].debugTask;if(Y!=null)return Y}}return null}function nV($,I,Y){for(var W=Object.keys($.props),A=0;A<W.length;A++){var R=W[A];if(R!=="children"&&R!=="key"){I===null&&(I=uV($,Y.mode,0),I._debugInfo=x$,I.return=Y),J0(I,function(g){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g)},R);break}}}function oV($){var I=iG;return iG+=1,AQ===null&&(AQ=HT()),MT(AQ,$,I)}function sY($,I){I=I.props.ref,$.ref=I!==void 0?I:null}function TT($,I){if(I.$$typeof===og)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
+ - Multiple copies of the "react" package is used.
95
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(I),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function iV($,I){var Y=kD();Y!==null?Y.run(TT.bind(null,$,I)):TT($,I)}function CT($,I){var Y=o($)||"Component";NE[Y]||(NE[Y]=!0,I=I.displayName||I.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
+ root.render(%s)`,I,I,I):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
+ <%s>{%s}</%s>`,I,I,Y,I,Y))}function rV($,I){var Y=kD();Y!==null?Y.run(CT.bind(null,$,I)):CT($,I)}function RT($,I){var Y=o($)||"Component";kE[Y]||(kE[Y]=!0,I=String(I),$.tag===3?console.error(`Symbols are not valid as a React child.
99
+ root.render(%s)`,I):console.error(`Symbols are not valid as a React child.
100
+ <%s>%s</%s>`,Y,I,Y))}function tV($,I){var Y=kD();Y!==null?Y.run(RT.bind(null,$,I)):RT($,I)}function PT($){function I(O0,F0){if($){var T0=O0.deletions;T0===null?(O0.deletions=[F0],O0.flags|=16):T0.push(F0)}}function Y(O0,F0){if(!$)return null;for(;F0!==null;)I(O0,F0),F0=F0.sibling;return null}function W(O0){for(var F0=new Map;O0!==null;)O0.key!==null?F0.set(O0.key,O0):F0.set(O0.index,O0),O0=O0.sibling;return F0}function A(O0,F0){return O0=p1(O0,F0),O0.index=0,O0.sibling=null,O0}function R(O0,F0,T0){if(O0.index=T0,!$)return O0.flags|=1048576,F0;if(T0=O0.alternate,T0!==null)return T0=T0.index,T0<F0?(O0.flags|=67108866,F0):T0;return O0.flags|=67108866,F0}function g(O0){return $&&O0.alternate===null&&(O0.flags|=67108866),O0}function y(O0,F0,T0,l0){if(F0===null||F0.tag!==6)return F0=qD(T0,O0.mode,l0),F0.return=O0,F0._debugOwner=O0,F0._debugTask=O0._debugTask,F0._debugInfo=x$,F0;return F0=A(F0,T0),F0.return=O0,F0._debugInfo=x$,F0}function d(O0,F0,T0,l0){var z$=T0.type;if(z$===eJ)return F0=R0(O0,F0,T0.props.children,l0,T0.key),nV(T0,F0,O0),F0;if(F0!==null&&(F0.elementType===z$||$T(F0,T0)||typeof z$==="object"&&z$!==null&&z$.$$typeof===z4&&_I(z$)===F0.type))return F0=A(F0,T0.props),sY(F0,T0),F0.return=O0,F0._debugOwner=T0._owner,F0._debugInfo=x$,F0;return F0=uV(T0,O0.mode,l0),sY(F0,T0),F0.return=O0,F0._debugInfo=x$,F0}function i(O0,F0,T0,l0){if(F0===null||F0.tag!==4||F0.stateNode.containerInfo!==T0.containerInfo||F0.stateNode.implementation!==T0.implementation)return F0=TD(T0,O0.mode,l0),F0.return=O0,F0._debugInfo=x$,F0;return F0=A(F0,T0.children||[]),F0.return=O0,F0._debugInfo=x$,F0}function R0(O0,F0,T0,l0,z$){if(F0===null||F0.tag!==7)return F0=BX(T0,O0.mode,l0,z$),F0.return=O0,F0._debugOwner=O0,F0._debugTask=O0._debugTask,F0._debugInfo=x$,F0;return F0=A(F0,T0),F0.return=O0,F0._debugInfo=x$,F0}function P0(O0,F0,T0){if(typeof F0==="string"&&F0!==""||typeof F0==="number"||typeof F0==="bigint")return F0=qD(""+F0,O0.mode,T0),F0.return=O0,F0._debugOwner=O0,F0._debugTask=O0._debugTask,F0._debugInfo=x$,F0;if(typeof F0==="object"&&F0!==null){switch(F0.$$typeof){case q1:return T0=uV(F0,O0.mode,T0),sY(T0,F0),T0.return=O0,O0=L6(F0._debugInfo),T0._debugInfo=x$,x$=O0,T0;case sJ:return F0=TD(F0,O0.mode,T0),F0.return=O0,F0._debugInfo=x$,F0;case z4:var l0=L6(F0._debugInfo);return F0=_I(F0),O0=P0(O0,F0,T0),x$=l0,O0}if(V6(F0)||Z0(F0))return T0=BX(F0,O0.mode,T0,null),T0.return=O0,T0._debugOwner=O0,T0._debugTask=O0._debugTask,O0=L6(F0._debugInfo),T0._debugInfo=x$,x$=O0,T0;if(typeof F0.then==="function")return l0=L6(F0._debugInfo),O0=P0(O0,oV(F0),T0),x$=l0,O0;if(F0.$$typeof===T1)return P0(O0,pV(O0,F0),T0);iV(O0,F0)}return typeof F0==="function"&&rV(O0,F0),typeof F0==="symbol"&&tV(O0,F0),null}function W0(O0,F0,T0,l0){var z$=F0!==null?F0.key:null;if(typeof T0==="string"&&T0!==""||typeof T0==="number"||typeof T0==="bigint")return z$!==null?null:y(O0,F0,""+T0,l0);if(typeof T0==="object"&&T0!==null){switch(T0.$$typeof){case q1:return T0.key===z$?(z$=L6(T0._debugInfo),O0=d(O0,F0,T0,l0),x$=z$,O0):null;case sJ:return T0.key===z$?i(O0,F0,T0,l0):null;case z4:return z$=L6(T0._debugInfo),T0=_I(T0),O0=W0(O0,F0,T0,l0),x$=z$,O0}if(V6(T0)||Z0(T0)){if(z$!==null)return null;return z$=L6(T0._debugInfo),O0=R0(O0,F0,T0,l0,null),x$=z$,O0}if(typeof T0.then==="function")return z$=L6(T0._debugInfo),O0=W0(O0,F0,oV(T0),l0),x$=z$,O0;if(T0.$$typeof===T1)return W0(O0,F0,pV(O0,T0),l0);iV(O0,T0)}return typeof T0==="function"&&rV(O0,T0),typeof T0==="symbol"&&tV(O0,T0),null}function k0(O0,F0,T0,l0,z$){if(typeof l0==="string"&&l0!==""||typeof l0==="number"||typeof l0==="bigint")return O0=O0.get(T0)||null,y(F0,O0,""+l0,z$);if(typeof l0==="object"&&l0!==null){switch(l0.$$typeof){case q1:return T0=O0.get(l0.key===null?T0:l0.key)||null,O0=L6(l0._debugInfo),F0=d(F0,T0,l0,z$),x$=O0,F0;case sJ:return O0=O0.get(l0.key===null?T0:l0.key)||null,i(F0,O0,l0,z$);case z4:var E$=L6(l0._debugInfo);return l0=_I(l0),F0=k0(O0,F0,T0,l0,z$),x$=E$,F0}if(V6(l0)||Z0(l0))return T0=O0.get(T0)||null,O0=L6(l0._debugInfo),F0=R0(F0,T0,l0,z$,null),x$=O0,F0;if(typeof l0.then==="function")return E$=L6(l0._debugInfo),F0=k0(O0,F0,T0,oV(l0),z$),x$=E$,F0;if(l0.$$typeof===T1)return k0(O0,F0,T0,pV(F0,l0),z$);iV(F0,l0)}return typeof l0==="function"&&rV(F0,l0),typeof l0==="symbol"&&tV(F0,l0),null}function O$(O0,F0,T0,l0){if(typeof T0!=="object"||T0===null)return l0;switch(T0.$$typeof){case q1:case sJ:_(O0,F0,T0);var z$=T0.key;if(typeof z$!=="string")break;if(l0===null){l0=new Set,l0.add(z$);break}if(!l0.has(z$)){l0.add(z$);break}J0(F0,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",z$)});break;case z4:T0=_I(T0),O$(O0,F0,T0,l0)}return l0}function W$(O0,F0,T0,l0){for(var z$=null,E$=null,A$=null,H$=F0,N$=F0=0,PU=null;H$!==null&&N$<T0.length;N$++){H$.index>N$?(PU=H$,H$=null):PU=H$.sibling;var eU=W0(O0,H$,T0[N$],l0);if(eU===null){H$===null&&(H$=PU);break}z$=O$(O0,eU,T0[N$],z$),$&&H$&&eU.alternate===null&&I(O0,H$),F0=R(eU,F0,N$),A$===null?E$=eU:A$.sibling=eU,A$=eU,H$=PU}if(N$===T0.length)return Y(O0,H$),m$&&l1(O0,N$),E$;if(H$===null){for(;N$<T0.length;N$++)H$=P0(O0,T0[N$],l0),H$!==null&&(z$=O$(O0,H$,T0[N$],z$),F0=R(H$,F0,N$),A$===null?E$=H$:A$.sibling=H$,A$=H$);return m$&&l1(O0,N$),E$}for(H$=W(H$);N$<T0.length;N$++)PU=k0(H$,O0,N$,T0[N$],l0),PU!==null&&(z$=O$(O0,PU,T0[N$],z$),$&&PU.alternate!==null&&H$.delete(PU.key===null?N$:PU.key),F0=R(PU,F0,N$),A$===null?E$=PU:A$.sibling=PU,A$=PU);return $&&H$.forEach(function(zI){return I(O0,zI)}),m$&&l1(O0,N$),E$}function LU(O0,F0,T0,l0){if(T0==null)throw Error("An iterable object provided no iterator.");for(var z$=null,E$=null,A$=F0,H$=F0=0,N$=null,PU=null,eU=T0.next();A$!==null&&!eU.done;H$++,eU=T0.next()){A$.index>H$?(N$=A$,A$=null):N$=A$.sibling;var zI=W0(O0,A$,eU.value,l0);if(zI===null){A$===null&&(A$=N$);break}PU=O$(O0,zI,eU.value,PU),$&&A$&&zI.alternate===null&&I(O0,A$),F0=R(zI,F0,H$),E$===null?z$=zI:E$.sibling=zI,E$=zI,A$=N$}if(eU.done)return Y(O0,A$),m$&&l1(O0,H$),z$;if(A$===null){for(;!eU.done;H$++,eU=T0.next())A$=P0(O0,eU.value,l0),A$!==null&&(PU=O$(O0,A$,eU.value,PU),F0=R(A$,F0,H$),E$===null?z$=A$:E$.sibling=A$,E$=A$);return m$&&l1(O0,H$),z$}for(A$=W(A$);!eU.done;H$++,eU=T0.next())N$=k0(A$,O0,H$,eU.value,l0),N$!==null&&(PU=O$(O0,N$,eU.value,PU),$&&N$.alternate!==null&&A$.delete(N$.key===null?H$:N$.key),F0=R(N$,F0,H$),E$===null?z$=N$:E$.sibling=N$,E$=N$);return $&&A$.forEach(function(uw){return I(O0,uw)}),m$&&l1(O0,H$),z$}function n$(O0,F0,T0,l0){if(typeof T0==="object"&&T0!==null&&T0.type===eJ&&T0.key===null&&(nV(T0,null,O0),T0=T0.props.children),typeof T0==="object"&&T0!==null){switch(T0.$$typeof){case q1:var z$=L6(T0._debugInfo);$:{for(var E$=T0.key;F0!==null;){if(F0.key===E$){if(E$=T0.type,E$===eJ){if(F0.tag===7){Y(O0,F0.sibling),l0=A(F0,T0.props.children),l0.return=O0,l0._debugOwner=T0._owner,l0._debugInfo=x$,nV(T0,l0,O0),O0=l0;break $}}else if(F0.elementType===E$||$T(F0,T0)||typeof E$==="object"&&E$!==null&&E$.$$typeof===z4&&_I(E$)===F0.type){Y(O0,F0.sibling),l0=A(F0,T0.props),sY(l0,T0),l0.return=O0,l0._debugOwner=T0._owner,l0._debugInfo=x$,O0=l0;break $}Y(O0,F0);break}else I(O0,F0);F0=F0.sibling}T0.type===eJ?(l0=BX(T0.props.children,O0.mode,l0,T0.key),l0.return=O0,l0._debugOwner=O0,l0._debugTask=O0._debugTask,l0._debugInfo=x$,nV(T0,l0,O0),O0=l0):(l0=uV(T0,O0.mode,l0),sY(l0,T0),l0.return=O0,l0._debugInfo=x$,O0=l0)}return O0=g(O0),x$=z$,O0;case sJ:$:{z$=T0;for(T0=z$.key;F0!==null;){if(F0.key===T0)if(F0.tag===4&&F0.stateNode.containerInfo===z$.containerInfo&&F0.stateNode.implementation===z$.implementation){Y(O0,F0.sibling),l0=A(F0,z$.children||[]),l0.return=O0,O0=l0;break $}else{Y(O0,F0);break}else I(O0,F0);F0=F0.sibling}l0=TD(z$,O0.mode,l0),l0.return=O0,O0=l0}return g(O0);case z4:return z$=L6(T0._debugInfo),T0=_I(T0),O0=n$(O0,F0,T0,l0),x$=z$,O0}if(V6(T0))return z$=L6(T0._debugInfo),O0=W$(O0,F0,T0,l0),x$=z$,O0;if(Z0(T0)){if(z$=L6(T0._debugInfo),E$=Z0(T0),typeof E$!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var A$=E$.call(T0);if(A$===T0){if(O0.tag!==0||Object.prototype.toString.call(O0.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(A$)!=="[object Generator]")vE||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),vE=!0}else T0.entries!==E$||sW||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sW=!0);return O0=LU(O0,F0,A$,l0),x$=z$,O0}if(typeof T0.then==="function")return z$=L6(T0._debugInfo),O0=n$(O0,F0,oV(T0),l0),x$=z$,O0;if(T0.$$typeof===T1)return n$(O0,F0,pV(O0,T0),l0);iV(O0,T0)}if(typeof T0==="string"&&T0!==""||typeof T0==="number"||typeof T0==="bigint")return z$=""+T0,F0!==null&&F0.tag===6?(Y(O0,F0.sibling),l0=A(F0,z$),l0.return=O0,O0=l0):(Y(O0,F0),l0=qD(z$,O0.mode,l0),l0.return=O0,l0._debugOwner=O0,l0._debugTask=O0._debugTask,l0._debugInfo=x$,O0=l0),g(O0);return typeof T0==="function"&&rV(O0,T0),typeof T0==="symbol"&&tV(O0,T0),Y(O0,F0)}return function(O0,F0,T0,l0){var z$=x$;x$=null;try{iG=0;var E$=n$(O0,F0,T0,l0);return AQ=null,E$}catch(PU){if(PU===MQ||PU===QO)throw PU;var A$=P(29,PU,null,O0.mode);A$.lanes=l0,A$.return=O0;var H$=A$._debugInfo=x$;if(A$._debugOwner=O0._debugOwner,A$._debugTask=O0._debugTask,H$!=null){for(var N$=H$.length-1;0<=N$;N$--)if(typeof H$[N$].stack==="string"){A$._debugOwner=H$[N$],A$._debugTask=H$[N$].debugTask;break}}return A$}finally{x$=z$}}}function ET($,I){var Y=V6($);return $=!Y&&typeof Z0($)==="function",Y||$?(Y=Y?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",Y,I,Y),!1):!0}function gD($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xD($,I){$=$.updateQueue,I.updateQueue===$&&(I.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function SI($){return{lane:$,tag:xE,payload:null,callback:null,next:null}}function jI($,I,Y){var W=$.updateQueue;if(W===null)return null;if(W=W.shared,$9===W&&!yE){var A=o($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
+
102
+ Please update the following component: %s`,A),yE=!0}if((i$&O6)!==F6)return A=W.pending,A===null?I.next=I:(I.next=A.next,A.next=I),W.pending=I,I=yV($),eq($,null,Y),I;return fV($,W,I,Y),yV($)}function eY($,I,Y){if(I=I.updateQueue,I!==null&&(I=I.shared,(Y&4194048)!==0)){var W=I.lanes;W&=$.pendingLanes,Y|=W,I.lanes=Y,h0($,Y)}}function aV($,I){var{updateQueue:Y,alternate:W}=$;if(W!==null&&(W=W.updateQueue,Y===W)){var A=null,R=null;if(Y=Y.firstBaseUpdate,Y!==null){do{var g={lane:Y.lane,tag:Y.tag,payload:Y.payload,callback:null,next:null};R===null?A=R=g:R=R.next=g,Y=Y.next}while(Y!==null);R===null?A=R=I:R=R.next=I}else A=R=I;Y={baseState:W.baseState,firstBaseUpdate:A,lastBaseUpdate:R,shared:W.shared,callbacks:W.callbacks},$.updateQueue=Y;return}$=Y.lastBaseUpdate,$===null?Y.firstBaseUpdate=I:$.next=I,Y.lastBaseUpdate=I}function $G(){if(U9){var $=LQ;if($!==null)throw $}}function UG($,I,Y,W){U9=!1;var A=$.updateQueue;rI=!1,$9=A.shared;var{firstBaseUpdate:R,lastBaseUpdate:g}=A,y=A.shared.pending;if(y!==null){A.shared.pending=null;var d=y,i=d.next;d.next=null,g===null?R=i:g.next=i,g=d;var R0=$.alternate;R0!==null&&(R0=R0.updateQueue,y=R0.lastBaseUpdate,y!==g&&(y===null?R0.firstBaseUpdate=i:y.next=i,R0.lastBaseUpdate=d))}if(R!==null){var P0=A.baseState;g=0,R0=i=d=null,y=R;do{var W0=y.lane&-536870913,k0=W0!==y.lane;if(k0?(w$&W0)===W0:(W&W0)===W0){W0!==0&&W0===oX&&(U9=!0),R0!==null&&(R0=R0.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});$:{W0=$;var O$=y,W$=I,LU=Y;switch(O$.tag){case wE:if(O$=O$.payload,typeof O$==="function"){FQ=!0;var n$=O$.call(LU,P0,W$);if(W0.mode&_6){N0(!0);try{O$.call(LU,P0,W$)}finally{N0(!1)}}FQ=!1,P0=n$;break $}P0=O$;break $;case eW:W0.flags=W0.flags&-65537|128;case xE:if(n$=O$.payload,typeof n$==="function"){if(FQ=!0,O$=n$.call(LU,P0,W$),W0.mode&_6){N0(!0);try{n$.call(LU,P0,W$)}finally{N0(!1)}}FQ=!1}else O$=n$;if(O$===null||O$===void 0)break $;P0=b$({},P0,O$);break $;case fE:rI=!0}}W0=y.callback,W0!==null&&($.flags|=64,k0&&($.flags|=8192),k0=A.callbacks,k0===null?A.callbacks=[W0]:k0.push(W0))}else k0={lane:W0,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R0===null?(i=R0=k0,d=P0):R0=R0.next=k0,g|=W0;if(y=y.next,y===null)if(y=A.shared.pending,y===null)break;else k0=y,y=k0.next,k0.next=null,A.lastBaseUpdate=k0,A.shared.pending=null}while(1);R0===null&&(d=P0),A.baseState=d,A.firstBaseUpdate=i,A.lastBaseUpdate=R0,R===null&&(A.shared.lanes=0),sI|=g,$.lanes=g,$.memoizedState=P0}$9=null}function _T($,I){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(I)}function kk($,I){var Y=$.shared.hiddenCallbacks;if(Y!==null)for($.shared.hiddenCallbacks=null,$=0;$<Y.length;$++)_T(Y[$],I)}function ST($,I){var Y=$.callbacks;if(Y!==null)for($.callbacks=null,$=0;$<Y.length;$++)_T(Y[$],I)}function jT($,I){var Y=N1;D(GO,Y,$),D(qQ,I,$),N1=Y|I.baseLanes}function wD($){D(GO,N1,$),D(qQ,qQ.current,$)}function fD($){N1=GO.current,G(qQ,$),G(GO,$)}function vI($){var I=$.alternate;D(sU,sU.current&TQ,$),D(F4,$,$),g4===null&&(I===null||qQ.current!==null?g4=$:I.memoizedState!==null&&(g4=$))}function yD($){D(sU,sU.current,$),D(F4,$,$),g4===null&&(g4=$)}function vT($){$.tag===22?(D(sU,sU.current,$),D(F4,$,$),g4===null&&(g4=$)):BI($)}function BI($){D(sU,sU.current,$),D(F4,F4.current,$)}function V4($){G(F4,$),g4===$&&(g4=null),G(sU,$)}function sV($){for(var I=$;I!==null;){if(I.tag===13){var Y=I.memoizedState;if(Y!==null&&(Y=Y.dehydrated,Y===null||t8(Y)||a8(Y)))return I}else if(I.tag===19&&(I.memoizedProps.revealOrder==="forwards"||I.memoizedProps.revealOrder==="backwards"||I.memoizedProps.revealOrder==="unstable_legacy-backwards"||I.memoizedProps.revealOrder==="together")){if((I.flags&128)!==0)return I}else if(I.child!==null){I.child.return=I,I=I.child;continue}if(I===$)break;for(;I.sibling===null;){if(I.return===null||I.return===$)return null;I=I.return}I.sibling.return=I.return,I=I.sibling}return null}function u$(){var $=w0;w4===null?w4=[$]:w4.push($)}function Y$(){var $=w0;if(w4!==null&&(YI++,w4[YI]!==$)){var I=o(P$);if(!uE.has(I)&&(uE.add(I),w4!==null)){for(var Y="",W=0;W<=YI;W++){var A=w4[W],R=W===YI?$:A;for(A=W+1+". "+A;30>A.length;)A+=" ";A+=R+`
103
+ `,Y+=A}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
+
105
+ Previous render Next render
106
+ ------------------------------------------------------
107
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+ `,I,Y)}}}function bJ($){$===void 0||$===null||V6($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",w0,typeof $)}function eV(){var $=o(P$);hE.has($)||(hE.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function oU(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
111
+ 3. You might have more than one copy of React in the same app
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function uD($,I){if(aG)return!1;if(I===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",w0),!1;$.length!==I.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
+
114
+ Previous: %s
115
+ Incoming: %s`,w0,"["+I.join(", ")+"]","["+$.join(", ")+"]");for(var Y=0;Y<I.length&&Y<$.length;Y++)if(!k6($[Y],I[Y]))return!1;return!0}function bD($,I,Y,W,A,R){if(JI=R,P$=I,w4=$!==null?$._debugHookTypes:null,YI=-1,aG=$!==null&&$.type!==I.type,Object.prototype.toString.call(Y)==="[object AsyncFunction]"||Object.prototype.toString.call(Y)==="[object AsyncGeneratorFunction]")R=o(P$),I9.has(R)||(I9.add(R),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",R===null?"An unknown Component":"<"+R+">"));I.memoizedState=null,I.updateQueue=null,I.lanes=0,y0.H=$!==null&&$.memoizedState!==null?J9:w4!==null?cE:X9,sX=R=(I.mode&_6)!==R$;var g=rW(Y,W,A);if(sX=!1,RQ&&(g=hD(I,Y,W,A)),R){N0(!0);try{g=hD(I,Y,W,A)}finally{N0(!1)}}return BT($,I),g}function BT($,I){I._debugHookTypes=w4,I.dependencies===null?QI!==null&&(I.dependencies={lanes:0,firstContext:null,_debugThenableState:QI}):I.dependencies._debugThenableState=QI,y0.H=sG;var Y=OU!==null&&OU.next!==null;if(JI=0,w4=w0=X6=OU=P$=null,YI=-1,$!==null&&($.flags&65011712)!==(I.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),ZO=!1,tG=0,QI=null,Y)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||J6||($=$.dependencies,$!==null&&cV($)&&(J6=!0)),oG?(oG=!1,$=!0):$=!1,$&&(I=o(I)||"Unknown",bE.has(I)||I9.has(I)||(bE.add(I),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function hD($,I,Y,W){P$=$;var A=0;do{if(RQ&&(QI=null),tG=0,RQ=!1,A>=Hw)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(A+=1,aG=!1,X6=OU=null,$.updateQueue!=null){var R=$.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}YI=-1,y0.H=pE,R=rW(I,Y,W)}while(RQ);return R}function gk(){var $=y0.H,I=$.useState()[0];return I=typeof I.then==="function"?IG(I):I,$=$.useState()[0],(OU!==null?OU.memoizedState:null)!==$&&(P$.flags|=1024),I}function cD(){var $=OO!==0;return OO=0,$}function pD($,I,Y){I.updateQueue=$.updateQueue,I.flags=(I.mode&o4)!==R$?I.flags&-402655237:I.flags&-2053,$.lanes&=~Y}function lD($){if(ZO){for($=$.memoizedState;$!==null;){var I=$.queue;I!==null&&(I.pending=null),$=$.next}ZO=!1}JI=0,w4=X6=OU=P$=null,YI=-1,w0=null,RQ=!1,tG=OO=0,QI=null}function j6(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return X6===null?P$.memoizedState=X6=$:X6=X6.next=$,X6}function JU(){if(OU===null){var $=P$.alternate;$=$!==null?$.memoizedState:null}else $=OU.next;var I=X6===null?P$.memoizedState:X6.next;if(I!==null)X6=I,OU=$;else{if($===null){if(P$.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}OU=$,$={memoizedState:OU.memoizedState,baseState:OU.baseState,baseQueue:OU.baseQueue,queue:OU.queue,next:null},X6===null?P$.memoizedState=X6=$:X6=X6.next=$}return X6}function $Z(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function IG($){var I=tG;return tG+=1,QI===null&&(QI=HT()),$=MT(QI,$,I),I=P$,(X6===null?I.memoizedState:X6.next)===null&&(I=I.alternate,y0.H=I!==null&&I.memoizedState!==null?J9:X9),$}function NI($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return IG($);if($.$$typeof===T1)return vU($)}throw Error("An unsupported type was passed to use(): "+String($))}function wX($){var I=null,Y=P$.updateQueue;if(Y!==null&&(I=Y.memoCache),I==null){var W=P$.alternate;W!==null&&(W=W.updateQueue,W!==null&&(W=W.memoCache,W!=null&&(I={data:W.data.map(function(A){return A.slice()}),index:0})))}if(I==null&&(I={data:[],index:0}),Y===null&&(Y=$Z(),P$.updateQueue=Y),Y.memoCache=I,Y=I.data[I.index],Y===void 0||aG)for(Y=I.data[I.index]=Array($),W=0;W<$;W++)Y[W]=ig;else Y.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",Y.length,$);return I.index++,Y}function l4($,I){return typeof I==="function"?I($):I}function mD($,I,Y){var W=j6();if(Y!==void 0){var A=Y(I);if(sX){N0(!0);try{Y(I)}finally{N0(!1)}}}else A=I;return W.memoizedState=W.baseState=A,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:A},W.queue=$,$=$.dispatch=uk.bind(null,P$,$),[W.memoizedState,$]}function hJ($){var I=JU();return dD(I,OU,$)}function dD($,I,Y){var W=$.queue;if(W===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");W.lastRenderedReducer=Y;var A=$.baseQueue,R=W.pending;if(R!==null){if(A!==null){var g=A.next;A.next=R.next,R.next=g}I.baseQueue!==A&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),I.baseQueue=A=R,W.pending=null}if(R=$.baseState,A===null)$.memoizedState=R;else{I=A.next;var y=g=null,d=null,i=I,R0=!1;do{var P0=i.lane&-536870913;if(P0!==i.lane?(w$&P0)===P0:(JI&P0)===P0){var W0=i.revertLane;if(W0===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),P0===oX&&(R0=!0);else if((JI&W0)===W0){i=i.next,W0===oX&&(R0=!0);continue}else P0={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},d===null?(y=d=P0,g=R):d=d.next=P0,P$.lanes|=W0,sI|=W0;P0=i.action,sX&&Y(R,P0),R=i.hasEagerState?i.eagerState:Y(R,P0)}else W0={lane:P0,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},d===null?(y=d=W0,g=R):d=d.next=W0,P$.lanes|=P0,sI|=P0;i=i.next}while(i!==null&&i!==I);if(d===null?g=R:d.next=y,!k6(R,$.memoizedState)&&(J6=!0,R0&&(Y=LQ,Y!==null)))throw Y;$.memoizedState=R,$.baseState=g,$.baseQueue=d,W.lastRenderedState=R}return A===null&&(W.lanes=0),[$.memoizedState,W.dispatch]}function XG($){var I=JU(),Y=I.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=$;var{dispatch:W,pending:A}=Y,R=I.memoizedState;if(A!==null){Y.pending=null;var g=A=A.next;do R=$(R,g.action),g=g.next;while(g!==A);k6(R,I.memoizedState)||(J6=!0),I.memoizedState=R,I.baseQueue===null&&(I.baseState=R),Y.lastRenderedState=R}return[R,W]}function nD($,I,Y){var W=P$,A=j6();if(m$){if(Y===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var R=Y();CQ||R===Y()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),CQ=!0)}else{if(R=I(),CQ||(Y=I(),k6(R,Y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),CQ=!0)),zU===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(w$&127)!==0||NT(W,I,R)}return A.memoizedState=R,Y={value:R,getSnapshot:I},A.queue=Y,JZ(gT.bind(null,W,Y,$),[$]),W.flags|=2048,pJ(x4|w6,{destroy:void 0},kT.bind(null,W,Y,R,I),null),R}function UZ($,I,Y){var W=P$,A=JU(),R=m$;if(R){if(Y===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Y=Y()}else if(Y=I(),!CQ){var g=I();k6(Y,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),CQ=!0)}if(g=!k6((OU||A).memoizedState,Y))A.memoizedState=Y,J6=!0;A=A.queue;var y=gT.bind(null,W,A,$);if(n6(2048,w6,y,[$]),A.getSnapshot!==I||g||X6!==null&&X6.memoizedState.tag&x4){if(W.flags|=2048,pJ(x4|w6,{destroy:void 0},kT.bind(null,W,A,Y,I),null),zU===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R||(JI&127)!==0||NT(W,I,Y)}return Y}function NT($,I,Y){$.flags|=16384,$={getSnapshot:I,value:Y},I=P$.updateQueue,I===null?(I=$Z(),P$.updateQueue=I,I.stores=[$]):(Y=I.stores,Y===null?I.stores=[$]:Y.push($))}function kT($,I,Y,W){I.value=Y,I.getSnapshot=W,xT(I)&&wT($)}function gT($,I,Y){return Y(function(){xT(I)&&(G1(2,"updateSyncExternalStore()",$),wT($))})}function xT($){var I=$.getSnapshot;$=$.value;try{var Y=I();return!k6($,Y)}catch(W){return!0}}function wT($){var I=P6($,2);I!==null&&yU(I,$,2)}function oD($){var I=j6();if(typeof $==="function"){var Y=$;if($=Y(),sX){N0(!0);try{Y()}finally{N0(!1)}}}return I.memoizedState=I.baseState=$,I.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l4,lastRenderedState:$},I}function iD($){$=oD($);var I=$.queue,Y=$C.bind(null,P$,I);return I.dispatch=Y,[$.memoizedState,Y]}function rD($){var I=j6();I.memoizedState=I.baseState=$;var Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return I.queue=Y,I=Z8.bind(null,P$,!0,Y),Y.dispatch=I,[$,I]}function fT($,I){var Y=JU();return yT(Y,OU,$,I)}function yT($,I,Y,W){return $.baseState=Y,dD($,OU,typeof W==="function"?W:l4)}function uT($,I){var Y=JU();if(OU!==null)return yT(Y,OU,$,I);return Y.baseState=$,[$,Y.queue.dispatch]}function xk($,I,Y,W,A){if(OZ($))throw Error("Cannot update form state while rendering.");if($=I.action,$!==null){var R={payload:A,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){R.listeners.push(g)}};y0.T!==null?Y(!0):R.isTransition=!1,W(R),Y=I.pending,Y===null?(R.next=I.pending=R,bT(I,R)):(R.next=Y.next,I.pending=Y.next=R)}}function bT($,I){var{action:Y,payload:W}=I,A=$.state;if(I.isTransition){var R=y0.T,g={};g._updatedFibers=new Set,y0.T=g;try{var y=Y(A,W),d=y0.S;d!==null&&d(g,y),hT($,I,y)}catch(i){tD($,I,i)}finally{R!==null&&g.types!==null&&(R.types!==null&&R.types!==g.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),R.types=g.types),y0.T=R,R===null&&g._updatedFibers&&($=g._updatedFibers.size,g._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{g=Y(A,W),hT($,I,g)}catch(i){tD($,I,i)}}function hT($,I,Y){Y!==null&&typeof Y==="object"&&typeof Y.then==="function"?(y0.asyncTransitions++,Y.then(ZZ,ZZ),Y.then(function(W){cT($,I,W)},function(W){return tD($,I,W)}),I.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):cT($,I,Y)}function cT($,I,Y){I.status="fulfilled",I.value=Y,pT(I),$.state=Y,I=$.pending,I!==null&&(Y=I.next,Y===I?$.pending=null:(Y=Y.next,I.next=Y,bT($,Y)))}function tD($,I,Y){var W=$.pending;if($.pending=null,W!==null){W=W.next;do I.status="rejected",I.reason=Y,pT(I),I=I.next;while(I!==W)}$.action=null}function pT($){$=$.listeners;for(var I=0;I<$.length;I++)(0,$[I])()}function lT($,I){return I}function cJ($,I){if(m$){var Y=zU.formState;if(Y!==null){$:{var W=P$;if(m$){if(RU){U:{var A=RU;for(var R=N4;A.nodeType!==8;){if(!R){A=null;break U}if(A=O4(A.nextSibling),A===null){A=null;break U}}R=A.data,A=R===S9||R===S_?A:null}if(A){RU=O4(A.nextSibling),W=A.data===S9;break $}}PI(W)}W=!1}W&&(I=Y[0])}}return Y=j6(),Y.memoizedState=Y.baseState=I,W={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lT,lastRenderedState:I},Y.queue=W,Y=$C.bind(null,P$,W),W.dispatch=Y,W=oD(!1),R=Z8.bind(null,P$,!1,W.queue),W=j6(),A={state:I,dispatch:null,action:$,pending:null},W.queue=A,Y=xk.bind(null,P$,A,R,Y),A.dispatch=Y,W.memoizedState=$,[I,Y,!1]}function IZ($){var I=JU();return mT(I,OU,$)}function mT($,I,Y){if(I=dD($,I,lT)[0],$=hJ(l4)[0],typeof I==="object"&&I!==null&&typeof I.then==="function")try{var W=IG(I)}catch(g){if(g===MQ)throw QO;throw g}else W=I;I=JU();var A=I.queue,R=A.dispatch;return Y!==I.memoizedState&&(P$.flags|=2048,pJ(x4|w6,{destroy:void 0},wk.bind(null,A,Y),null)),[W,R,$]}function wk($,I){$.action=I}function XZ($){var I=JU(),Y=OU;if(Y!==null)return mT(I,Y,$);JU(),I=I.memoizedState,Y=JU();var W=Y.queue.dispatch;return Y.memoizedState=$,[I,W,!1]}function pJ($,I,Y,W){return $={tag:$,create:Y,deps:W,inst:I,next:null},I=P$.updateQueue,I===null&&(I=$Z(),P$.updateQueue=I),Y=I.lastEffect,Y===null?I.lastEffect=$.next=$:(W=Y.next,Y.next=$,$.next=W,I.lastEffect=$),$}function aD($){var I=j6();return $={current:$},I.memoizedState=$}function fX($,I,Y,W){var A=j6();P$.flags|=$,A.memoizedState=pJ(x4|I,{destroy:void 0},Y,W===void 0?null:W)}function n6($,I,Y,W){var A=JU();W=W===void 0?null:W;var R=A.memoizedState.inst;OU!==null&&W!==null&&uD(W,OU.memoizedState.deps)?A.memoizedState=pJ(I,R,Y,W):(P$.flags|=$,A.memoizedState=pJ(x4|I,R,Y,W))}function JZ($,I){(P$.mode&o4)!==R$?fX(276826112,w6,$,I):fX(8390656,w6,$,I)}function fk($){P$.flags|=4;var I=P$.updateQueue;if(I===null)I=$Z(),P$.updateQueue=I,I.events=[$];else{var Y=I.events;Y===null?I.events=[$]:Y.push($)}}function sD($){var I=j6(),Y={impl:$};return I.memoizedState=Y,function(){if((i$&O6)!==F6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Y.impl.apply(void 0,arguments)}}function QZ($){var I=JU().memoizedState;return fk({ref:I,nextImpl:$}),function(){if((i$&O6)!==F6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return I.impl.apply(void 0,arguments)}}function eD($,I){var Y=4194308;return(P$.mode&o4)!==R$&&(Y|=134217728),fX(Y,H4,$,I)}function dT($,I){if(typeof I==="function"){$=$();var Y=I($);return function(){typeof Y==="function"?Y():I(null)}}if(I!==null&&I!==void 0)return I.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(I).join(", ")+"}"),$=$(),I.current=$,function(){I.current=null}}function $8($,I,Y){typeof I!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",I!==null?typeof I:"null"),Y=Y!==null&&Y!==void 0?Y.concat([$]):null;var W=4194308;(P$.mode&o4)!==R$&&(W|=134217728),fX(W,H4,dT.bind(null,I,$),Y)}function YZ($,I,Y){typeof I!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",I!==null?typeof I:"null"),Y=Y!==null&&Y!==void 0?Y.concat([$]):null,n6(4,H4,dT.bind(null,I,$),Y)}function U8($,I){return j6().memoizedState=[$,I===void 0?null:I],$}function GZ($,I){var Y=JU();I=I===void 0?null:I;var W=Y.memoizedState;if(I!==null&&uD(I,W[1]))return W[0];return Y.memoizedState=[$,I],$}function I8($,I){var Y=j6();I=I===void 0?null:I;var W=$();if(sX){N0(!0);try{$()}finally{N0(!1)}}return Y.memoizedState=[W,I],W}function VZ($,I){var Y=JU();I=I===void 0?null:I;var W=Y.memoizedState;if(I!==null&&uD(I,W[1]))return W[0];if(W=$(),sX){N0(!0);try{$()}finally{N0(!1)}}return Y.memoizedState=[W,I],W}function X8($,I){var Y=j6();return J8(Y,$,I)}function nT($,I){var Y=JU();return iT(Y,OU.memoizedState,$,I)}function oT($,I){var Y=JU();return OU===null?J8(Y,$,I):iT(Y,OU.memoizedState,$,I)}function J8($,I,Y){if(Y===void 0||(JI&1073741824)!==0&&(w$&261930)===0)return $.memoizedState=I;return $.memoizedState=Y,$=rC(),P$.lanes|=$,sI|=$,Y}function iT($,I,Y,W){if(k6(Y,I))return Y;if(qQ.current!==null)return $=J8($,Y,W),k6($,I)||(J6=!0),$;if((JI&42)===0||(JI&1073741824)!==0&&(w$&261930)===0)return J6=!0,$.memoizedState=Y;return $=rC(),P$.lanes|=$,sI|=$,I}function ZZ(){y0.asyncTransitions--}function rT($,I,Y,W,A){var R=UU.p;UU.p=R!==0&&R<n4?R:n4;var g=y0.T,y={};y._updatedFibers=new Set,y0.T=y,Z8($,!1,I,Y);try{var d=A(),i=y0.S;if(i!==null&&i(y,d),d!==null&&typeof d==="object"&&typeof d.then==="function"){y0.asyncTransitions++,d.then(ZZ,ZZ);var R0=Nk(d,W);JG($,I,R0,Z4($))}else JG($,I,W,Z4($))}catch(P0){JG($,I,{then:function(){},status:"rejected",reason:P0},Z4($))}finally{UU.p=R,g!==null&&y.types!==null&&(g.types!==null&&g.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),g.types=y.types),y0.T=g,g===null&&y._updatedFibers&&($=y._updatedFibers.size,y._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Q8($,I,Y,W){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var A=tT($).queue;vk($),rT($,A,I,ZJ,Y===null?E:function(){return aT($),Y(W)})}function tT($){var I=$.memoizedState;if(I!==null)return I;I={memoizedState:ZJ,baseState:ZJ,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:l4,lastRenderedState:ZJ},next:null};var Y={};return I.next={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:l4,lastRenderedState:Y},next:null},$.memoizedState=I,$=$.alternate,$!==null&&($.memoizedState=I),I}function aT($){y0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var I=tT($);I.next===null&&(I=$.alternate.memoizedState),JG($,I.next.queue,{},Z4($))}function Y8(){var $=oD(!1);return $=rT.bind(null,P$,$.queue,!0,!1),j6().memoizedState=$,[!1,$]}function sT(){var $=hJ(l4)[0],I=JU().memoizedState;return[typeof $==="boolean"?$:IG($),I]}function eT(){var $=XG(l4)[0],I=JU().memoizedState;return[typeof $==="boolean"?$:IG($),I]}function yX(){return vU(D2)}function G8(){var $=j6(),I=zU.identifierPrefix;if(m$){var Y=e1,W=s1;Y=(W&~(1<<32-v6(W)-1)).toString(32)+Y,I="_"+I+"R_"+Y,Y=OO++,0<Y&&(I+="H"+Y.toString(32)),I+="_"}else Y=Fw++,I="_"+I+"r_"+Y.toString(32)+"_";return $.memoizedState=I}function V8(){return j6().memoizedState=yk.bind(null,P$)}function yk($,I){for(var Y=$.return;Y!==null;){switch(Y.tag){case 24:case 3:var W=Z4(Y),A=SI(W),R=jI(Y,A,W);R!==null&&(G1(W,"refresh()",$),yU(R,Y,W),eY(R,Y,W)),$=jD(),I!==null&&I!==void 0&&R!==null&&console.error("The seed argument is not enabled outside experimental channels."),A.payload={cache:$};return}Y=Y.return}}function uk($,I,Y){var W=arguments;typeof W[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),W=Z4($);var A={lane:W,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null};OZ($)?UC(I,A):(A=HD($,I,A,W),A!==null&&(G1(W,"dispatch()",$),yU(A,$,W),IC(A,I,W)))}function $C($,I,Y){var W=arguments;typeof W[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),W=Z4($),JG($,I,Y,W)&&G1(W,"setState()",$)}function JG($,I,Y,W){var A={lane:W,revertLane:0,gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null};if(OZ($))UC(I,A);else{var R=$.alternate;if($.lanes===0&&(R===null||R.lanes===0)&&(R=I.lastRenderedReducer,R!==null)){var g=y0.H;y0.H=r4;try{var y=I.lastRenderedState,d=R(y,Y);if(A.hasEagerState=!0,A.eagerState=d,k6(d,y))return fV($,I,A,0),zU===null&&wV(),!1}catch(i){}finally{y0.H=g}}if(Y=HD($,I,A,W),Y!==null)return yU(Y,$,W),IC(Y,I,W),!0}return!1}function Z8($,I,Y,W){if(y0.T===null&&oX===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),W={lane:2,revertLane:b8(),gesture:null,action:W,hasEagerState:!1,eagerState:null,next:null},OZ($)){if(I)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else I=HD($,Y,W,2),I!==null&&(G1(2,"setOptimistic()",$),yU(I,$,2))}function OZ($){var I=$.alternate;return $===P$||I!==null&&I===P$}function UC($,I){RQ=ZO=!0;var Y=$.pending;Y===null?I.next=I:(I.next=Y.next,Y.next=I),$.pending=I}function IC($,I,Y){if((Y&4194048)!==0){var W=I.lanes;W&=$.pendingLanes,Y|=W,I.lanes=Y,h0($,Y)}}function O8($){if($!==null&&typeof $!=="function"){var I=String($);eE.has(I)||(eE.add(I),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function z8($,I,Y,W){var A=$.memoizedState,R=Y(W,A);if($.mode&_6){N0(!0);try{R=Y(W,A)}finally{N0(!1)}}R===void 0&&(I=L0(I)||"Component",rE.has(I)||(rE.add(I),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",I))),A=R===null||R===void 0?A:b$({},A,R),$.memoizedState=A,$.lanes===0&&($.updateQueue.baseState=A)}function XC($,I,Y,W,A,R,g){var y=$.stateNode;if(typeof y.shouldComponentUpdate==="function"){if(Y=y.shouldComponentUpdate(W,R,g),$.mode&_6){N0(!0);try{Y=y.shouldComponentUpdate(W,R,g)}finally{N0(!1)}}return Y===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",L0(I)||"Component"),Y}return I.prototype&&I.prototype.isPureReactComponent?!nY(Y,W)||!nY(A,R):!0}function JC($,I,Y,W){var A=I.state;typeof I.componentWillReceiveProps==="function"&&I.componentWillReceiveProps(Y,W),typeof I.UNSAFE_componentWillReceiveProps==="function"&&I.UNSAFE_componentWillReceiveProps(Y,W),I.state!==A&&($=o($)||"Component",mE.has($)||(mE.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),Q9.enqueueReplaceState(I,I.state,null))}function uX($,I){var Y=I;if("ref"in I){Y={};for(var W in I)W!=="ref"&&(Y[W]=I[W])}if($=$.defaultProps){Y===I&&(Y=b$({},Y));for(var A in $)Y[A]===void 0&&(Y[A]=$[A])}return Y}function QC($){fW($),console.warn(`%s
116
+
117
+ %s
118
+ `,PQ?"An error occurred in the <"+PQ+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function YC($){var I=PQ?"The above error occurred in the <"+PQ+"> component.":"The above error occurred in one of your React components.",Y="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Y9||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var W=$.environmentName;$=[`%o
120
+
121
+ %s
122
+
123
+ %s
124
+ `,$,I,Y].slice(0),typeof $[0]==="string"?$.splice(0,1,w_+" "+$[0],f_,wO+W+wO,y_):$.splice(0,0,w_,f_,wO+W+wO,y_),$.unshift(console),W=fw.apply(console.error,$),W()}else console.error(`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,$,I,Y)}function GC($){fW($)}function zZ($,I){try{PQ=I.source?o(I.source):null,Y9=null;var Y=I.value;if(y0.actQueue!==null)y0.thrownErrors.push(Y);else{var W=$.onUncaughtError;W(Y,{componentStack:I.stack})}}catch(A){setTimeout(function(){throw A})}}function VC($,I,Y){try{PQ=Y.source?o(Y.source):null,Y9=o(I);var W=$.onCaughtError;W(Y.value,{componentStack:Y.stack,errorBoundary:I.tag===1?I.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function K8($,I,Y){return Y=SI(Y),Y.tag=eW,Y.payload={element:null},Y.callback=function(){J0(I.source,zZ,$,I)},Y}function D8($){return $=SI($),$.tag=eW,$}function W8($,I,Y,W){var A=Y.type.getDerivedStateFromError;if(typeof A==="function"){var R=W.value;$.payload=function(){return A(R)},$.callback=function(){UT(Y),J0(W.source,VC,I,Y,W)}}var g=Y.stateNode;g!==null&&typeof g.componentDidCatch==="function"&&($.callback=function(){UT(Y),J0(W.source,VC,I,Y,W),typeof A!=="function"&&($X===null?$X=new Set([this]):$X.add(this)),zw(this,W),typeof A==="function"||(Y.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",o(Y)||"Unknown")})}function bk($,I,Y,W,A){if(Y.flags|=32768,P1&&KG($,A),W!==null&&typeof W==="object"&&typeof W.then==="function"){if(I=Y.alternate,I!==null&&uJ(I,Y,A,!0),m$&&(S1=!0),Y=F4.current,Y!==null){switch(Y.tag){case 31:case 13:return g4===null?qZ():Y.alternate===null&&wU===VI&&(wU=DO),Y.flags&=-257,Y.flags|=65536,Y.lanes=A,W===YO?Y.flags|=16384:(I=Y.updateQueue,I===null?Y.updateQueue=new Set([W]):I.add(W),w8($,W,A)),!1;case 22:return Y.flags|=65536,W===YO?Y.flags|=16384:(I=Y.updateQueue,I===null?(I={transitions:null,markerInstances:null,retryQueue:new Set([W])},Y.updateQueue=I):(Y=I.retryQueue,Y===null?I.retryQueue=new Set([W]):Y.add(W)),w8($,W,A)),!1}throw Error("Unexpected Suspense handler tag ("+Y.tag+"). This is a bug in React.")}return w8($,W,A),qZ(),!1}if(m$)return S1=!0,I=F4.current,I!==null?((I.flags&65536)===0&&(I.flags|=256),I.flags|=65536,I.lanes=A,W!==pW&&iY(Q4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:W}),Y))):(W!==pW&&iY(Q4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:W}),Y)),$=$.current.alternate,$.flags|=65536,A&=-A,$.lanes|=A,W=Q4(W,Y),A=K8($.stateNode,W,A),aV($,A),wU!==tI&&(wU=eX)),!1;var R=Q4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:W}),Y);if(J2===null?J2=[R]:J2.push(R),wU!==tI&&(wU=eX),I===null)return!0;W=Q4(W,Y),Y=I;do{switch(Y.tag){case 3:return Y.flags|=65536,$=A&-A,Y.lanes|=$,$=K8(Y.stateNode,W,$),aV(Y,$),!1;case 1:if(I=Y.type,R=Y.stateNode,(Y.flags&128)===0&&(typeof I.getDerivedStateFromError==="function"||R!==null&&typeof R.componentDidCatch==="function"&&($X===null||!$X.has(R))))return Y.flags|=65536,A&=-A,Y.lanes|=A,A=D8(A),W8(A,$,Y,W),aV(Y,A),!1}Y=Y.return}while(Y!==null);return!1}function M6($,I,Y,W){I.child=$===null?gE(I,null,Y,W):aX(I,$.child,Y,W)}function ZC($,I,Y,W,A){Y=Y.render;var R=I.ref;if("ref"in W){var g={};for(var y in W)y!=="ref"&&(g[y]=W[y])}else g=W;if(gX(I),W=bD($,I,Y,g,R,A),y=cD(),$!==null&&!J6)return pD($,I,A),n1($,I,A);return m$&&y&&CD(I),I.flags|=1,M6($,I,W,A),I.child}function OC($,I,Y,W,A){if($===null){var R=Y.type;if(typeof R==="function"&&!MD(R)&&R.defaultProps===void 0&&Y.compare===null)return Y=vX(R),I.tag=15,I.type=Y,H8(I,R),zC($,I,Y,W,A);return $=AD(Y.type,null,W,I,I.mode,A),$.ref=I.ref,$.return=I,I.child=$}if(R=$.child,!C8($,A)){var g=R.memoizedProps;if(Y=Y.compare,Y=Y!==null?Y:nY,Y(g,W)&&$.ref===I.ref)return n1($,I,A)}return I.flags|=1,$=p1(R,W),$.ref=I.ref,$.return=I,I.child=$}function zC($,I,Y,W,A){if($!==null){var R=$.memoizedProps;if(nY(R,W)&&$.ref===I.ref&&I.type===$.type)if(J6=!1,I.pendingProps=W=R,C8($,A))($.flags&131072)!==0&&(J6=!0);else return I.lanes=$.lanes,n1($,I,A)}return F8($,I,Y,W,A)}function KC($,I,Y,W){var A=W.children,R=$!==null?$.memoizedState:null;if($===null&&I.stateNode===null&&(I.stateNode={_visibility:gG,_pendingMarkers:null,_retryCache:null,_transitions:null}),W.mode==="hidden"){if((I.flags&128)!==0){if(R=R!==null?R.baseLanes|Y:Y,$!==null){W=I.child=$.child;for(A=0;W!==null;)A=A|W.lanes|W.childLanes,W=W.sibling;W=A&~R}else W=0,I.child=null;return DC($,I,R,Y,W)}if((Y&536870912)!==0)I.memoizedState={baseLanes:0,cachePool:null},$!==null&&dV(I,R!==null?R.cachePool:null),R!==null?jT(I,R):wD(I),vT(I);else return W=I.lanes=536870912,DC($,I,R!==null?R.baseLanes|Y:Y,Y,W)}else R!==null?(dV(I,R.cachePool),jT(I,R),BI(I),I.memoizedState=null):($!==null&&dV(I,null),wD(I),BI(I));return M6($,I,A,Y),I.child}function QG($,I){return $!==null&&$.tag===22||I.stateNode!==null||(I.stateNode={_visibility:gG,_pendingMarkers:null,_retryCache:null,_transitions:null}),I.sibling}function DC($,I,Y,W,A){var R=ND();return R=R===null?null:{parent:U6._currentValue,pool:R},I.memoizedState={baseLanes:Y,cachePool:R},$!==null&&dV(I,null),wD(I),vT(I),$!==null&&uJ($,I,W,!0),I.childLanes=A,null}function KZ($,I){var Y=I.hidden;return Y!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
+ - <Activity %s>
131
+ + <Activity %s>`,Y===!0?"hidden":Y===!1?"hidden={false}":"hidden={...}",Y?'mode="hidden"':'mode="visible"'),I=WZ({mode:I.mode,children:I.children},$.mode),I.ref=$.ref,$.child=I,I.return=$,I}function WC($,I,Y){return aX(I,$.child,null,Y),$=KZ(I,I.pendingProps),$.flags|=2,V4(I),I.memoizedState=null,$}function hk($,I,Y){var W=I.pendingProps,A=(I.flags&128)!==0;if(I.flags&=-129,$===null){if(m$){if(W.mode==="hidden")return $=KZ(I,W),I.lanes=536870912,QG(null,$);if(yD(I),($=RU)?(Y=bR($,N4),Y=Y!==null&&Y.data===QJ?Y:null,Y!==null&&(W={dehydrated:Y,treeContext:YT(),retryLane:536870912,hydrationErrors:null},I.memoizedState=W,W=JT(Y),W.return=I,I.child=W,T6=I,RU=null)):Y=null,Y===null)throw bV(I,$),PI(I);return I.lanes=536870912,null}return KZ(I,W)}var R=$.memoizedState;if(R!==null){var g=R.dehydrated;if(yD(I),A)if(I.flags&256)I.flags&=-257,I=WC($,I,Y);else if(I.memoizedState!==null)I.child=$.child,I.flags|=128,I=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(VT(),(Y&536870912)!==0&&AZ(I),J6||uJ($,I,Y,!1),A=(Y&$.childLanes)!==0,J6||A){if(W=zU,W!==null&&(g=VU(W,Y),g!==0&&g!==R.retryLane))throw R.retryLane=g,P6($,g),yU(W,$,g),G9;qZ(),I=WC($,I,Y)}else $=R.treeContext,RU=O4(g.nextSibling),T6=I,m$=!0,lI=null,S1=!1,W4=null,N4=!1,$!==null&&GT(I,$),I=KZ(I,W),I.flags|=4096;return I}return R=$.child,W={mode:W.mode,children:W.children},(Y&536870912)!==0&&(Y&$.lanes)!==0&&AZ(I),$=p1(R,W),$.ref=I.ref,I.child=$,$.return=I,$}function DZ($,I){var Y=I.ref;if(Y===null)$!==null&&$.ref!==null&&(I.flags|=4194816);else{if(typeof Y!=="function"&&typeof Y!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==Y)I.flags|=4194816}}function F8($,I,Y,W,A){if(Y.prototype&&typeof Y.prototype.render==="function"){var R=L0(Y)||"Unknown";$_[R]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),$_[R]=!0)}if(I.mode&_6&&i4.recordLegacyContextWarning(I,null),$===null&&(H8(I,I.type),Y.contextTypes&&(R=L0(Y)||"Unknown",I_[R]||(I_[R]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",R)))),gX(I),Y=bD($,I,Y,W,void 0,A),W=cD(),$!==null&&!J6)return pD($,I,A),n1($,I,A);return m$&&W&&CD(I),I.flags|=1,M6($,I,Y,A),I.child}function FC($,I,Y,W,A,R){if(gX(I),YI=-1,aG=$!==null&&$.type!==I.type,I.updateQueue=null,Y=hD(I,W,Y,A),BT($,I),W=cD(),$!==null&&!J6)return pD($,I,R),n1($,I,R);return m$&&W&&CD(I),I.flags|=1,M6($,I,Y,R),I.child}function HC($,I,Y,W,A){switch(V(I)){case!1:var R=I.stateNode,g=new I.type(I.memoizedProps,R.context).state;R.updater.enqueueSetState(R,g,null);break;case!0:I.flags|=128,I.flags|=65536,R=Error("Simulated error coming from DevTools");var y=A&-A;if(I.lanes|=y,g=zU,g===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y=D8(y),W8(y,g,I,Q4(R,I)),aV(I,y)}if(gX(I),I.stateNode===null){if(g=pI,R=Y.contextType,"contextType"in Y&&R!==null&&(R===void 0||R.$$typeof!==T1)&&!sE.has(Y)&&(sE.add(Y),y=R===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof R!=="object"?" However, it is set to a "+typeof R+".":R.$$typeof===VW?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(R).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",L0(Y)||"Component",y)),typeof R==="object"&&R!==null&&(g=vU(R)),R=new Y(W,g),I.mode&_6){N0(!0);try{R=new Y(W,g)}finally{N0(!1)}}if(g=I.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=Q9,I.stateNode=R,R._reactInternals=I,R._reactInternalInstance=lE,typeof Y.getDerivedStateFromProps==="function"&&g===null&&(g=L0(Y)||"Component",dE.has(g)||(dE.add(g),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",g,R.state===null?"null":"undefined",g))),typeof Y.getDerivedStateFromProps==="function"||typeof R.getSnapshotBeforeUpdate==="function"){var d=y=g=null;if(typeof R.componentWillMount==="function"&&R.componentWillMount.__suppressDeprecationWarning!==!0?g="componentWillMount":typeof R.UNSAFE_componentWillMount==="function"&&(g="UNSAFE_componentWillMount"),typeof R.componentWillReceiveProps==="function"&&R.componentWillReceiveProps.__suppressDeprecationWarning!==!0?y="componentWillReceiveProps":typeof R.UNSAFE_componentWillReceiveProps==="function"&&(y="UNSAFE_componentWillReceiveProps"),typeof R.componentWillUpdate==="function"&&R.componentWillUpdate.__suppressDeprecationWarning!==!0?d="componentWillUpdate":typeof R.UNSAFE_componentWillUpdate==="function"&&(d="UNSAFE_componentWillUpdate"),g!==null||y!==null||d!==null){R=L0(Y)||"Component";var i=typeof Y.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oE.has(R)||(oE.add(R),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
+
133
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
+
135
+ The above lifecycles should be removed. Learn more about this warning here:
136
+ https://react.dev/link/unsafe-component-lifecycles`,R,i,g!==null?`
137
+ `+g:"",y!==null?`
138
+ `+y:"",d!==null?`
139
+ `+d:""))}}R=I.stateNode,g=L0(Y)||"Component",R.render||(Y.prototype&&typeof Y.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",g):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",g)),!R.getInitialState||R.getInitialState.isReactClassApproved||R.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),R.getDefaultProps&&!R.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),R.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),Y.childContextTypes&&!aE.has(Y)&&(aE.add(Y),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",g)),Y.contextTypes&&!tE.has(Y)&&(tE.add(Y),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",g)),typeof R.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),Y.prototype&&Y.prototype.isPureReactComponent&&typeof R.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",L0(Y)||"A pure component"),typeof R.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof R.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof R.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof R.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g),y=R.props!==W,R.props!==void 0&&y&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g),R.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof R.getSnapshotBeforeUpdate!=="function"||typeof R.componentDidUpdate==="function"||nE.has(Y)||(nE.add(Y),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",L0(Y))),typeof R.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof R.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof Y.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g),(y=R.state)&&(typeof y!=="object"||V6(y))&&console.error("%s.state: must be set to an object or null",g),typeof R.getChildContext==="function"&&typeof Y.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g),R=I.stateNode,R.props=W,R.state=I.memoizedState,R.refs={},gD(I),g=Y.contextType,R.context=typeof g==="object"&&g!==null?vU(g):pI,R.state===W&&(g=L0(Y)||"Component",iE.has(g)||(iE.add(g),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",g))),I.mode&_6&&i4.recordLegacyContextWarning(I,R),i4.recordUnsafeLifecycleWarnings(I,R),R.state=I.memoizedState,g=Y.getDerivedStateFromProps,typeof g==="function"&&(z8(I,Y,g,W),R.state=I.memoizedState),typeof Y.getDerivedStateFromProps==="function"||typeof R.getSnapshotBeforeUpdate==="function"||typeof R.UNSAFE_componentWillMount!=="function"&&typeof R.componentWillMount!=="function"||(g=R.state,typeof R.componentWillMount==="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount==="function"&&R.UNSAFE_componentWillMount(),g!==R.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",o(I)||"Component"),Q9.enqueueReplaceState(R,R.state,null)),UG(I,W,R,A),$G(),R.state=I.memoizedState),typeof R.componentDidMount==="function"&&(I.flags|=4194308),(I.mode&o4)!==R$&&(I.flags|=134217728),R=!0}else if($===null){R=I.stateNode;var R0=I.memoizedProps;y=uX(Y,R0),R.props=y;var P0=R.context;d=Y.contextType,g=pI,typeof d==="object"&&d!==null&&(g=vU(d)),i=Y.getDerivedStateFromProps,d=typeof i==="function"||typeof R.getSnapshotBeforeUpdate==="function",R0=I.pendingProps!==R0,d||typeof R.UNSAFE_componentWillReceiveProps!=="function"&&typeof R.componentWillReceiveProps!=="function"||(R0||P0!==g)&&JC(I,R,W,g),rI=!1;var W0=I.memoizedState;R.state=W0,UG(I,W,R,A),$G(),P0=I.memoizedState,R0||W0!==P0||rI?(typeof i==="function"&&(z8(I,Y,i,W),P0=I.memoizedState),(y=rI||XC(I,Y,y,W,W0,P0,g))?(d||typeof R.UNSAFE_componentWillMount!=="function"&&typeof R.componentWillMount!=="function"||(typeof R.componentWillMount==="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount==="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount==="function"&&(I.flags|=4194308),(I.mode&o4)!==R$&&(I.flags|=134217728)):(typeof R.componentDidMount==="function"&&(I.flags|=4194308),(I.mode&o4)!==R$&&(I.flags|=134217728),I.memoizedProps=W,I.memoizedState=P0),R.props=W,R.state=P0,R.context=g,R=y):(typeof R.componentDidMount==="function"&&(I.flags|=4194308),(I.mode&o4)!==R$&&(I.flags|=134217728),R=!1)}else{R=I.stateNode,xD($,I),g=I.memoizedProps,d=uX(Y,g),R.props=d,i=I.pendingProps,W0=R.context,P0=Y.contextType,y=pI,typeof P0==="object"&&P0!==null&&(y=vU(P0)),R0=Y.getDerivedStateFromProps,(P0=typeof R0==="function"||typeof R.getSnapshotBeforeUpdate==="function")||typeof R.UNSAFE_componentWillReceiveProps!=="function"&&typeof R.componentWillReceiveProps!=="function"||(g!==i||W0!==y)&&JC(I,R,W,y),rI=!1,W0=I.memoizedState,R.state=W0,UG(I,W,R,A),$G();var k0=I.memoizedState;g!==i||W0!==k0||rI||$!==null&&$.dependencies!==null&&cV($.dependencies)?(typeof R0==="function"&&(z8(I,Y,R0,W),k0=I.memoizedState),(d=rI||XC(I,Y,d,W,W0,k0,y)||$!==null&&$.dependencies!==null&&cV($.dependencies))?(P0||typeof R.UNSAFE_componentWillUpdate!=="function"&&typeof R.componentWillUpdate!=="function"||(typeof R.componentWillUpdate==="function"&&R.componentWillUpdate(W,k0,y),typeof R.UNSAFE_componentWillUpdate==="function"&&R.UNSAFE_componentWillUpdate(W,k0,y)),typeof R.componentDidUpdate==="function"&&(I.flags|=4),typeof R.getSnapshotBeforeUpdate==="function"&&(I.flags|=1024)):(typeof R.componentDidUpdate!=="function"||g===$.memoizedProps&&W0===$.memoizedState||(I.flags|=4),typeof R.getSnapshotBeforeUpdate!=="function"||g===$.memoizedProps&&W0===$.memoizedState||(I.flags|=1024),I.memoizedProps=W,I.memoizedState=k0),R.props=W,R.state=k0,R.context=y,R=d):(typeof R.componentDidUpdate!=="function"||g===$.memoizedProps&&W0===$.memoizedState||(I.flags|=4),typeof R.getSnapshotBeforeUpdate!=="function"||g===$.memoizedProps&&W0===$.memoizedState||(I.flags|=1024),R=!1)}if(y=R,DZ($,I),g=(I.flags&128)!==0,y||g){if(y=I.stateNode,V0(I),g&&typeof Y.getDerivedStateFromError!=="function")Y=null,g6=-1;else if(Y=AE(y),I.mode&_6){N0(!0);try{AE(y)}finally{N0(!1)}}I.flags|=1,$!==null&&g?(I.child=aX(I,$.child,null,A),I.child=aX(I,null,Y,A)):M6($,I,Y,A),I.memoizedState=y.state,$=I.child}else $=n1($,I,A);return A=I.stateNode,R&&A.props!==W&&(EQ||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",o(I)||"a component"),EQ=!0),$}function LC($,I,Y,W){return kX(),I.flags|=256,M6($,I,Y,W),I.child}function H8($,I){I&&I.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,I.displayName||I.name||"Component"),typeof I.getDerivedStateFromProps==="function"&&($=L0(I)||"Unknown",X_[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),X_[$]=!0)),typeof I.contextType==="object"&&I.contextType!==null&&(I=L0(I)||"Unknown",U_[I]||(console.error("%s: Function components do not support contextType.",I),U_[I]=!0))}function L8($){return{baseLanes:$,cachePool:FT()}}function M8($,I,Y){return $=$!==null?$.childLanes&~Y:0,I&&($|=a6),$}function MC($,I,Y){var W,A=I.pendingProps;z(I)&&(I.flags|=128);var R=!1,g=(I.flags&128)!==0;if((W=g)||(W=$!==null&&$.memoizedState===null?!1:(sU.current&rG)!==0),W&&(R=!0,I.flags&=-129),W=(I.flags&32)!==0,I.flags&=-33,$===null){if(m$){if(R?vI(I):BI(I),($=RU)?(Y=bR($,N4),Y=Y!==null&&Y.data!==QJ?Y:null,Y!==null&&(W={dehydrated:Y,treeContext:YT(),retryLane:536870912,hydrationErrors:null},I.memoizedState=W,W=JT(Y),W.return=I,I.child=W,T6=I,RU=null)):Y=null,Y===null)throw bV(I,$),PI(I);return a8(Y)?I.lanes=32:I.lanes=536870912,null}var y=A.children;if(A=A.fallback,R){BI(I);var d=I.mode;return y=WZ({mode:"hidden",children:y},d),A=BX(A,d,Y,null),y.return=I,A.return=I,y.sibling=A,I.child=y,A=I.child,A.memoizedState=L8(Y),A.childLanes=M8($,W,Y),I.memoizedState=V9,QG(null,A)}return vI(I),A8(I,y)}var i=$.memoizedState;if(i!==null){var R0=i.dehydrated;if(R0!==null){if(g)I.flags&256?(vI(I),I.flags&=-257,I=q8($,I,Y)):I.memoizedState!==null?(BI(I),I.child=$.child,I.flags|=128,I=null):(BI(I),y=A.fallback,d=I.mode,A=WZ({mode:"visible",children:A.children},d),y=BX(y,d,Y,null),y.flags|=2,A.return=I,y.return=I,A.sibling=y,I.child=A,aX(I,$.child,null,Y),A=I.child,A.memoizedState=L8(Y),A.childLanes=M8($,W,Y),I.memoizedState=V9,I=QG(null,A));else if(vI(I),VT(),(Y&536870912)!==0&&AZ(I),a8(R0)){if(W=R0.nextSibling&&R0.nextSibling.dataset,W){y=W.dgst;var P0=W.msg;d=W.stck;var W0=W.cstck}R=P0,W=y,A=d,R0=W0,y=R,d=R0,y=y?Error(y):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),y.stack=A||"",y.digest=W,W=d===void 0?null:d,A={value:y,source:null,stack:W},typeof W==="string"&&cW.set(y,A),iY(A),I=q8($,I,Y)}else if(J6||uJ($,I,Y,!1),W=(Y&$.childLanes)!==0,J6||W){if(W=zU,W!==null&&(A=VU(W,Y),A!==0&&A!==i.retryLane))throw i.retryLane=A,P6($,A),yU(W,$,A),G9;t8(R0)||qZ(),I=q8($,I,Y)}else t8(R0)?(I.flags|=192,I.child=$.child,I=null):($=i.treeContext,RU=O4(R0.nextSibling),T6=I,m$=!0,lI=null,S1=!1,W4=null,N4=!1,$!==null&&GT(I,$),I=A8(I,A.children),I.flags|=4096);return I}}if(R)return BI(I),y=A.fallback,d=I.mode,W0=$.child,R0=W0.sibling,A=p1(W0,{mode:"hidden",children:A.children}),A.subtreeFlags=W0.subtreeFlags&65011712,R0!==null?y=p1(R0,y):(y=BX(y,d,Y,null),y.flags|=2),y.return=I,A.return=I,A.sibling=y,I.child=A,QG(null,A),A=I.child,y=$.child.memoizedState,y===null?y=L8(Y):(d=y.cachePool,d!==null?(W0=U6._currentValue,d=d.parent!==W0?{parent:W0,pool:W0}:d):d=FT(),y={baseLanes:y.baseLanes|Y,cachePool:d}),A.memoizedState=y,A.childLanes=M8($,W,Y),I.memoizedState=V9,QG($.child,A);return i!==null&&(Y&62914560)===Y&&(Y&$.lanes)!==0&&AZ(I),vI(I),Y=$.child,$=Y.sibling,Y=p1(Y,{mode:"visible",children:A.children}),Y.return=I,Y.sibling=null,$!==null&&(W=I.deletions,W===null?(I.deletions=[$],I.flags|=16):W.push($)),I.child=Y,I.memoizedState=null,Y}function A8($,I){return I=WZ({mode:"visible",children:I},$.mode),I.return=$,$.child=I}function WZ($,I){return $=P(22,$,null,I),$.lanes=0,$}function q8($,I,Y){return aX(I,$.child,null,Y),$=A8(I,I.pendingProps.children),$.flags|=2,I.memoizedState=null,$}function AC($,I,Y){$.lanes|=I;var W=$.alternate;W!==null&&(W.lanes|=I),_D($.return,I,Y)}function T8($,I,Y,W,A,R){var g=$.memoizedState;g===null?$.memoizedState={isBackwards:I,rendering:null,renderingStartTime:0,last:W,tail:Y,tailMode:A,treeForkCount:R}:(g.isBackwards=I,g.rendering=null,g.renderingStartTime=0,g.last=W,g.tail=Y,g.tailMode=A,g.treeForkCount=R)}function qC($,I,Y){var W=I.pendingProps,A=W.revealOrder,R=W.tail,g=W.children,y=sU.current;if((W=(y&rG)!==0)?(y=y&TQ|rG,I.flags|=128):y&=TQ,D(sU,y,I),y=A==null?"null":A,A!=="forwards"&&A!=="unstable_legacy-backwards"&&A!=="together"&&A!=="independent"&&!J_[y])if(J_[y]=!0,A==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(A==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof A==="string")switch(A.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',A,A.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',A,A.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',A)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',A);if(y=R==null?"null":R,!KO[y])if(R==null){if(A==="forwards"||A==="backwards"||A==="unstable_legacy-backwards")KO[y]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else R!=="visible"&&R!=="collapsed"&&R!=="hidden"?(KO[y]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',R)):A!=="forwards"&&A!=="backwards"&&A!=="unstable_legacy-backwards"&&(KO[y]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',R));$:if((A==="forwards"||A==="backwards"||A==="unstable_legacy-backwards")&&g!==void 0&&g!==null&&g!==!1)if(V6(g)){for(y=0;y<g.length;y++)if(!ET(g[y],y))break $}else if(y=Z0(g),typeof y==="function"){if(y=y.call(g))for(var d=y.next(),i=0;!d.done;d=y.next()){if(!ET(d.value,i))break $;i++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',A);if(M6($,I,g,Y),m$?(RI(),g=xG):g=0,!W&&$!==null&&($.flags&128)!==0)$:for($=I.child;$!==null;){if($.tag===13)$.memoizedState!==null&&AC($,Y,I);else if($.tag===19)AC($,Y,I);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===I)break $;for(;$.sibling===null;){if($.return===null||$.return===I)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(A){case"forwards":Y=I.child;for(A=null;Y!==null;)$=Y.alternate,$!==null&&sV($)===null&&(A=Y),Y=Y.sibling;Y=A,Y===null?(A=I.child,I.child=null):(A=Y.sibling,Y.sibling=null),T8(I,!1,A,Y,R,g);break;case"backwards":case"unstable_legacy-backwards":Y=null,A=I.child;for(I.child=null;A!==null;){if($=A.alternate,$!==null&&sV($)===null){I.child=A;break}$=A.sibling,A.sibling=Y,Y=A,A=$}T8(I,!0,Y,null,R,g);break;case"together":T8(I,!1,null,null,void 0,g);break;default:I.memoizedState=null}return I.child}function n1($,I,Y){if($!==null&&(I.dependencies=$.dependencies),g6=-1,sI|=I.lanes,(Y&I.childLanes)===0)if($!==null){if(uJ($,I,Y,!1),(Y&I.childLanes)===0)return null}else return null;if($!==null&&I.child!==$.child)throw Error("Resuming work not yet implemented.");if(I.child!==null){$=I.child,Y=p1($,$.pendingProps),I.child=Y;for(Y.return=I;$.sibling!==null;)$=$.sibling,Y=Y.sibling=p1($,$.pendingProps),Y.return=I;Y.sibling=null}return I.child}function C8($,I){if(($.lanes&I)!==0)return!0;return $=$.dependencies,$!==null&&cV($)?!0:!1}function ck($,I,Y){switch(I.tag){case 3:K(I,I.stateNode.containerInfo),EI(I,U6,$.memoizedState.cache),kX();break;case 27:case 5:j(I);break;case 4:K(I,I.stateNode.containerInfo);break;case 10:EI(I,I.type,I.memoizedProps.value);break;case 12:(Y&I.childLanes)!==0&&(I.flags|=4),I.flags|=2048;var W=I.stateNode;W.effectDuration=-0,W.passiveEffectDuration=-0;break;case 31:if(I.memoizedState!==null)return I.flags|=128,yD(I),null;break;case 13:if(W=I.memoizedState,W!==null){if(W.dehydrated!==null)return vI(I),I.flags|=128,null;if((Y&I.child.childLanes)!==0)return MC($,I,Y);return vI(I),$=n1($,I,Y),$!==null?$.sibling:null}vI(I);break;case 19:var A=($.flags&128)!==0;if(W=(Y&I.childLanes)!==0,W||(uJ($,I,Y,!1),W=(Y&I.childLanes)!==0),A){if(W)return qC($,I,Y);I.flags|=128}if(A=I.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),D(sU,sU.current,I),W)break;else return null;case 22:return I.lanes=0,KC($,I,Y,I.pendingProps);case 24:EI(I,U6,$.memoizedState.cache)}return n1($,I,Y)}function R8($,I,Y){if(I._debugNeedsRemount&&$!==null){Y=AD(I.type,I.key,I.pendingProps,I._debugOwner||null,I.mode,I.lanes),Y._debugStack=I._debugStack,Y._debugTask=I._debugTask;var W=I.return;if(W===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,I.alternate=null,Y.index=I.index,Y.sibling=I.sibling,Y.return=I.return,Y.ref=I.ref,Y._debugInfo=I._debugInfo,I===W.child)W.child=Y;else{var A=W.child;if(A===null)throw Error("Expected parent to have a child.");for(;A.sibling!==I;)if(A=A.sibling,A===null)throw Error("Expected to find the previous sibling.");A.sibling=Y}return I=W.deletions,I===null?(W.deletions=[$],W.flags|=16):I.push($),Y.flags|=2,Y}if($!==null)if($.memoizedProps!==I.pendingProps||I.type!==$.type)J6=!0;else{if(!C8($,Y)&&(I.flags&128)===0)return J6=!1,ck($,I,Y);J6=($.flags&131072)!==0?!0:!1}else{if(J6=!1,W=m$)RI(),W=(I.flags&1048576)!==0;W&&(W=I.index,RI(),QT(I,xG,W))}switch(I.lanes=0,I.tag){case 16:$:if(W=I.pendingProps,$=_I(I.elementType),I.type=$,typeof $==="function")MD($)?(W=uX($,W),I.tag=1,I.type=$=vX($),I=HC(null,I,$,W,Y)):(I.tag=0,H8(I,$),I.type=$=vX($),I=F8(null,I,$,W,Y));else{if($!==void 0&&$!==null){if(A=$.$$typeof,A===TG){I.tag=11,I.type=$=LD($),I=ZC(null,I,$,W,Y);break $}else if(A===xZ){I.tag=14,I=OC(null,I,$,W,Y);break $}}throw I="",$!==null&&typeof $==="object"&&$.$$typeof===z4&&(I=" Did you wrap a component in React.lazy() more than once?"),Y=L0($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Y+". Lazy element type must resolve to a class or function."+I)}return I;case 0:return F8($,I,I.type,I.pendingProps,Y);case 1:return W=I.type,A=uX(W,I.pendingProps),HC($,I,W,A,Y);case 3:$:{if(K(I,I.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");W=I.pendingProps;var R=I.memoizedState;A=R.element,xD($,I),UG(I,W,null,Y);var g=I.memoizedState;if(W=g.cache,EI(I,U6,W),W!==R.cache&&SD(I,[U6],Y,!0),$G(),W=g.element,R.isDehydrated)if(R={element:W,isDehydrated:!1,cache:g.cache},I.updateQueue.baseState=R,I.memoizedState=R,I.flags&256){I=LC($,I,W,Y);break $}else if(W!==A){A=Q4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),I),iY(A),I=LC($,I,W,Y);break $}else{switch($=I.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}RU=O4($.firstChild),T6=I,m$=!0,lI=null,S1=!1,W4=null,N4=!0,Y=gE(I,null,W,Y);for(I.child=Y;Y;)Y.flags=Y.flags&-3|4096,Y=Y.sibling}else{if(kX(),W===A){I=n1($,I,Y);break $}M6($,I,W,Y)}I=I.child}return I;case 26:return DZ($,I),$===null?(Y=dR(I.type,null,I.pendingProps,null))?I.memoizedState=Y:m$||(Y=I.type,$=I.pendingProps,W=H(fI.current),W=PZ(W).createElement(Y),W[q6]=I,W[B6]=$,A6(W,Y,$),K$(W),I.stateNode=W):I.memoizedState=dR(I.type,$.memoizedProps,I.pendingProps,$.memoizedState),null;case 27:return j(I),$===null&&m$&&(W=H(fI.current),A=C(),W=I.stateNode=lR(I.type,I.pendingProps,W,A,!1),S1||(A=NR(W,I.type,I.pendingProps,A),A!==null&&(NX(I,0).serverProps=A)),T6=I,N4=!0,A=RU,xI(I.type)?(N9=A,RU=O4(W.firstChild)):RU=A),M6($,I,I.pendingProps.children,Y),DZ($,I),$===null&&(I.flags|=4194304),I.child;case 5:return $===null&&m$&&(R=C(),W=ZD(I.type,R.ancestorInfo),A=RU,(g=!A)||(g=vg(A,I.type,I.pendingProps,N4),g!==null?(I.stateNode=g,S1||(R=NR(g,I.type,I.pendingProps,R),R!==null&&(NX(I,0).serverProps=R)),T6=I,RU=O4(g.firstChild),N4=!1,R=!0):R=!1,g=!R),g&&(W&&bV(I,A),PI(I))),j(I),A=I.type,R=I.pendingProps,g=$!==null?$.memoizedProps:null,W=R.children,i8(A,R)?W=null:g!==null&&i8(A,g)&&(I.flags|=32),I.memoizedState!==null&&(A=bD($,I,gk,null,null,Y),D2._currentValue=A),DZ($,I),M6($,I,W,Y),I.child;case 6:return $===null&&m$&&(Y=I.pendingProps,$=C(),W=$.ancestorInfo.current,Y=W!=null?vV(Y,W.tag,$.ancestorInfo.implicitRootScope):!0,$=RU,(W=!$)||(W=Bg($,I.pendingProps,N4),W!==null?(I.stateNode=W,T6=I,RU=null,W=!0):W=!1,W=!W),W&&(Y&&bV(I,$),PI(I))),null;case 13:return MC($,I,Y);case 4:return K(I,I.stateNode.containerInfo),W=I.pendingProps,$===null?I.child=aX(I,null,W,Y):M6($,I,W,Y),I.child;case 11:return ZC($,I,I.type,I.pendingProps,Y);case 7:return M6($,I,I.pendingProps,Y),I.child;case 8:return M6($,I,I.pendingProps.children,Y),I.child;case 12:return I.flags|=4,I.flags|=2048,W=I.stateNode,W.effectDuration=-0,W.passiveEffectDuration=-0,M6($,I,I.pendingProps.children,Y),I.child;case 10:return W=I.type,A=I.pendingProps,R=A.value,"value"in A||Q_||(Q_=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),EI(I,W,R),M6($,I,A.children,Y),I.child;case 9:return A=I.type._context,W=I.pendingProps.children,typeof W!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),gX(I),A=vU(A),W=rW(W,A,void 0),I.flags|=1,M6($,I,W,Y),I.child;case 14:return OC($,I,I.type,I.pendingProps,Y);case 15:return zC($,I,I.type,I.pendingProps,Y);case 19:return qC($,I,Y);case 31:return hk($,I,Y);case 22:return KC($,I,Y,I.pendingProps);case 24:return gX(I),W=vU(U6),$===null?(A=ND(),A===null&&(A=zU,R=jD(),A.pooledCache=R,xX(R),R!==null&&(A.pooledCacheLanes|=Y),A=R),I.memoizedState={parent:W,cache:A},gD(I),EI(I,U6,A)):(($.lanes&Y)!==0&&(xD($,I),UG(I,null,null,Y),$G()),A=$.memoizedState,R=I.memoizedState,A.parent!==W?(A={parent:W,cache:W},I.memoizedState=A,I.lanes===0&&(I.memoizedState=I.updateQueue.baseState=A),EI(I,U6,W)):(W=R.cache,EI(I,U6,W),W!==A.cache&&SD(I,[U6],Y,!0))),M6($,I,I.pendingProps.children,Y),I.child;case 29:throw I.pendingProps}throw Error("Unknown unit of work tag ("+I.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function o1($){$.flags|=4}function P8($,I,Y,W,A){if(I=($.mode&Gw)!==R$)I=!1;if(I){if($.flags|=16777216,(A&335544128)===A)if($.stateNode.complete)$.flags|=8192;else if(eC())$.flags|=8192;else throw tX=YO,aW}else $.flags&=-16777217}function TC($,I){if(I.type!=="stylesheet"||(I.state.loading&f4)!==VJ)$.flags&=-16777217;else if($.flags|=16777216,!tR(I))if(eC())$.flags|=8192;else throw tX=YO,aW}function FZ($,I){I!==null&&($.flags|=4),$.flags&16384&&(I=$.tag!==22?L$():536870912,$.lanes|=I,IJ|=I)}function YG($,I){if(!m$)switch($.tailMode){case"hidden":I=$.tail;for(var Y=null;I!==null;)I.alternate!==null&&(Y=I),I=I.sibling;Y===null?$.tail=null:Y.sibling=null;break;case"collapsed":Y=$.tail;for(var W=null;Y!==null;)Y.alternate!==null&&(W=Y),Y=Y.sibling;W===null?I||$.tail===null?$.tail=null:$.tail.sibling=null:W.sibling=null}}function HU($){var I=$.alternate!==null&&$.alternate.child===$.child,Y=0,W=0;if(I)if(($.mode&g$)!==R$){for(var{selfBaseDuration:A,child:R}=$;R!==null;)Y|=R.lanes|R.childLanes,W|=R.subtreeFlags&65011712,W|=R.flags&65011712,A+=R.treeBaseDuration,R=R.sibling;$.treeBaseDuration=A}else for(A=$.child;A!==null;)Y|=A.lanes|A.childLanes,W|=A.subtreeFlags&65011712,W|=A.flags&65011712,A.return=$,A=A.sibling;else if(($.mode&g$)!==R$){A=$.actualDuration,R=$.selfBaseDuration;for(var g=$.child;g!==null;)Y|=g.lanes|g.childLanes,W|=g.subtreeFlags,W|=g.flags,A+=g.actualDuration,R+=g.treeBaseDuration,g=g.sibling;$.actualDuration=A,$.treeBaseDuration=R}else for(A=$.child;A!==null;)Y|=A.lanes|A.childLanes,W|=A.subtreeFlags,W|=A.flags,A.return=$,A=A.sibling;return $.subtreeFlags|=W,$.childLanes=Y,I}function pk($,I,Y){var W=I.pendingProps;switch(RD(I),I.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return HU(I),null;case 1:return HU(I),null;case 3:if(Y=I.stateNode,W=null,$!==null&&(W=$.memoizedState.cache),I.memoizedState.cache!==W&&(I.flags|=2048),m1(U6,I),F(I),Y.pendingContext&&(Y.context=Y.pendingContext,Y.pendingContext=null),$===null||$.child===null)yJ(I)?(ED(),o1(I)):$===null||$.memoizedState.isDehydrated&&(I.flags&256)===0||(I.flags|=1024,PD());return HU(I),null;case 26:var{type:A,memoizedState:R}=I;return $===null?(o1(I),R!==null?(HU(I),TC(I,R)):(HU(I),P8(I,A,null,W,Y))):R?R!==$.memoizedState?(o1(I),HU(I),TC(I,R)):(HU(I),I.flags&=-16777217):($=$.memoizedProps,$!==W&&o1(I),HU(I),P8(I,A,$,W,Y)),null;case 27:if(q(I),Y=H(fI.current),A=I.type,$!==null&&I.stateNode!=null)$.memoizedProps!==W&&o1(I);else{if(!W){if(I.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return HU(I),null}$=C(),yJ(I)?ZT(I,$):($=lR(A,W,Y,$,!0),I.stateNode=$,o1(I))}return HU(I),null;case 5:if(q(I),A=I.type,$!==null&&I.stateNode!=null)$.memoizedProps!==W&&o1(I);else{if(!W){if(I.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return HU(I),null}var g=C();if(yJ(I))ZT(I,g);else{switch(R=H(fI.current),ZD(A,g.ancestorInfo),g=g.context,R=PZ(R),g){case gQ:R=R.createElementNS(XQ,A);break;case kO:R=R.createElementNS(cZ,A);break;default:switch(A){case"svg":R=R.createElementNS(XQ,A);break;case"math":R=R.createElementNS(cZ,A);break;case"script":R=R.createElement("div"),R.innerHTML="<script></script>",R=R.removeChild(R.firstChild);break;case"select":R=typeof W.is==="string"?R.createElement("select",{is:W.is}):R.createElement("select"),W.multiple?R.multiple=!0:W.size&&(R.size=W.size);break;default:R=typeof W.is==="string"?R.createElement(A,{is:W.is}):R.createElement(A),A.indexOf("-")===-1&&(A!==A.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",A),Object.prototype.toString.call(R)!=="[object HTMLUnknownElement]"||d4.call(v_,A)||(v_[A]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",A)))}}R[q6]=I,R[B6]=W;$:for(g=I.child;g!==null;){if(g.tag===5||g.tag===6)R.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===I)break $;for(;g.sibling===null;){if(g.return===null||g.return===I)break $;g=g.return}g.sibling.return=g.return,g=g.sibling}I.stateNode=R;$:switch(A6(R,A,W),A){case"button":case"input":case"select":case"textarea":W=!!W.autoFocus;break $;case"img":W=!0;break $;default:W=!1}W&&o1(I)}}return HU(I),P8(I,I.type,$===null?null:$.memoizedProps,I.pendingProps,Y),null;case 6:if($&&I.stateNode!=null)$.memoizedProps!==W&&o1(I);else{if(typeof W!=="string"&&I.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=H(fI.current),Y=C(),yJ(I)){if($=I.stateNode,Y=I.memoizedProps,A=!S1,W=null,R=T6,R!==null)switch(R.tag){case 3:A&&(A=cR($,Y,W),A!==null&&(NX(I,0).serverProps=A));break;case 27:case 5:W=R.memoizedProps,A&&(A=cR($,Y,W),A!==null&&(NX(I,0).serverProps=A))}$[q6]=I,$=$.nodeValue===Y||W!==null&&W.suppressHydrationWarning===!0||_R($.nodeValue,Y)?!0:!1,$||PI(I,!0)}else A=Y.ancestorInfo.current,A!=null&&vV(W,A.tag,Y.ancestorInfo.implicitRootScope),$=PZ($).createTextNode(W),$[q6]=I,I.stateNode=$}return HU(I),null;case 31:if(Y=I.memoizedState,$===null||$.memoizedState!==null){if(W=yJ(I),Y!==null){if($===null){if(!W)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=I.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[q6]=I,HU(I),(I.mode&g$)!==R$&&Y!==null&&($=I.child,$!==null&&(I.treeBaseDuration-=$.treeBaseDuration))}else ED(),kX(),(I.flags&128)===0&&(Y=I.memoizedState=null),I.flags|=4,HU(I),(I.mode&g$)!==R$&&Y!==null&&($=I.child,$!==null&&(I.treeBaseDuration-=$.treeBaseDuration));$=!1}else Y=PD(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Y),$=!0;if(!$){if(I.flags&256)return V4(I),I;return V4(I),null}if((I.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return HU(I),null;case 13:if(W=I.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(A=W,R=yJ(I),A!==null&&A.dehydrated!==null){if($===null){if(!R)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(R=I.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");R[q6]=I,HU(I),(I.mode&g$)!==R$&&A!==null&&(A=I.child,A!==null&&(I.treeBaseDuration-=A.treeBaseDuration))}else ED(),kX(),(I.flags&128)===0&&(A=I.memoizedState=null),I.flags|=4,HU(I),(I.mode&g$)!==R$&&A!==null&&(A=I.child,A!==null&&(I.treeBaseDuration-=A.treeBaseDuration));A=!1}else A=PD(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=A),A=!0;if(!A){if(I.flags&256)return V4(I),I;return V4(I),null}}if(V4(I),(I.flags&128)!==0)return I.lanes=Y,(I.mode&g$)!==R$&&aY(I),I;return Y=W!==null,$=$!==null&&$.memoizedState!==null,Y&&(W=I.child,A=null,W.alternate!==null&&W.alternate.memoizedState!==null&&W.alternate.memoizedState.cachePool!==null&&(A=W.alternate.memoizedState.cachePool.pool),R=null,W.memoizedState!==null&&W.memoizedState.cachePool!==null&&(R=W.memoizedState.cachePool.pool),R!==A&&(W.flags|=2048)),Y!==$&&Y&&(I.child.flags|=8192),FZ(I,I.updateQueue),HU(I),(I.mode&g$)!==R$&&Y&&($=I.child,$!==null&&(I.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return F(I),$===null&&c8(I.stateNode.containerInfo),HU(I),null;case 10:return m1(I.type,I),HU(I),null;case 19:if(G(sU,I),W=I.memoizedState,W===null)return HU(I),null;if(A=(I.flags&128)!==0,R=W.rendering,R===null)if(A)YG(W,!1);else{if(wU!==VI||$!==null&&($.flags&128)!==0)for($=I.child;$!==null;){if(R=sV($),R!==null){I.flags|=128,YG(W,!1),$=R.updateQueue,I.updateQueue=$,FZ(I,$),I.subtreeFlags=0,$=Y;for(Y=I.child;Y!==null;)XT(Y,$),Y=Y.sibling;return D(sU,sU.current&TQ|rG,I),m$&&l1(I,W.treeForkCount),I.child}$=$.sibling}W.tail!==null&&K6()>AO&&(I.flags|=128,A=!0,YG(W,!1),I.lanes=4194304)}else{if(!A)if($=sV(R),$!==null){if(I.flags|=128,A=!0,$=$.updateQueue,I.updateQueue=$,FZ(I,$),YG(W,!0),W.tail===null&&W.tailMode==="hidden"&&!R.alternate&&!m$)return HU(I),null}else 2*K6()-W.renderingStartTime>AO&&Y!==536870912&&(I.flags|=128,A=!0,YG(W,!1),I.lanes=4194304);W.isBackwards?(R.sibling=I.child,I.child=R):($=W.last,$!==null?$.sibling=R:I.child=R,W.last=R)}if(W.tail!==null)return $=W.tail,W.rendering=$,W.tail=$.sibling,W.renderingStartTime=K6(),$.sibling=null,Y=sU.current,Y=A?Y&TQ|rG:Y&TQ,D(sU,Y,I),m$&&l1(I,W.treeForkCount),$;return HU(I),null;case 22:case 23:return V4(I),fD(I),W=I.memoizedState!==null,$!==null?$.memoizedState!==null!==W&&(I.flags|=8192):W&&(I.flags|=8192),W?(Y&536870912)!==0&&(I.flags&128)===0&&(HU(I),I.subtreeFlags&6&&(I.flags|=8192)):HU(I),Y=I.updateQueue,Y!==null&&FZ(I,Y.retryQueue),Y=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Y=$.memoizedState.cachePool.pool),W=null,I.memoizedState!==null&&I.memoizedState.cachePool!==null&&(W=I.memoizedState.cachePool.pool),W!==Y&&(I.flags|=2048),$!==null&&G(iX,I),null;case 24:return Y=null,$!==null&&(Y=$.memoizedState.cache),I.memoizedState.cache!==Y&&(I.flags|=2048),m1(U6,I),HU(I),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+I.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function lk($,I){switch(RD(I),I.tag){case 1:return $=I.flags,$&65536?(I.flags=$&-65537|128,(I.mode&g$)!==R$&&aY(I),I):null;case 3:return m1(U6,I),F(I),$=I.flags,($&65536)!==0&&($&128)===0?(I.flags=$&-65537|128,I):null;case 26:case 27:case 5:return q(I),null;case 31:if(I.memoizedState!==null){if(V4(I),I.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");kX()}return $=I.flags,$&65536?(I.flags=$&-65537|128,(I.mode&g$)!==R$&&aY(I),I):null;case 13:if(V4(I),$=I.memoizedState,$!==null&&$.dehydrated!==null){if(I.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");kX()}return $=I.flags,$&65536?(I.flags=$&-65537|128,(I.mode&g$)!==R$&&aY(I),I):null;case 19:return G(sU,I),null;case 4:return F(I),null;case 10:return m1(I.type,I),null;case 22:case 23:return V4(I),fD(I),$!==null&&G(iX,I),$=I.flags,$&65536?(I.flags=$&-65537|128,(I.mode&g$)!==R$&&aY(I),I):null;case 24:return m1(U6,I),null;case 25:return null;default:return null}}function CC($,I){switch(RD(I),I.tag){case 3:m1(U6,I),F(I);break;case 26:case 27:case 5:q(I);break;case 4:F(I);break;case 31:I.memoizedState!==null&&V4(I);break;case 13:V4(I);break;case 19:G(sU,I);break;case 10:m1(I.type,I);break;case 22:case 23:V4(I),fD(I),$!==null&&G(iX,I);break;case 24:m1(U6,I)}}function W1($){return($.mode&g$)!==R$}function RC($,I){W1($)?(D1(),GG(I,$),K1()):GG(I,$)}function E8($,I,Y){W1($)?(D1(),lJ(Y,$,I),K1()):lJ(Y,$,I)}function GG($,I){try{var Y=I.updateQueue,W=Y!==null?Y.lastEffect:null;if(W!==null){var A=W.next;Y=A;do{if((Y.tag&$)===$&&(W=void 0,($&x6)!==VO&&(BQ=!0),W=J0(I,Kw,Y),($&x6)!==VO&&(BQ=!1),W!==void 0&&typeof W!=="function")){var R=void 0;R=(Y.tag&H4)!==0?"useLayoutEffect":(Y.tag&x6)!==0?"useInsertionEffect":"useEffect";var g=void 0;g=W===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof W.then==="function"?`
141
+
142
+ It looks like you wrote `+R+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
+
144
+ `+R+`(() => {
145
+ async function fetchData() {
146
+ // You can await here
147
+ const response = await MyAPI.getData(someId);
148
+ // ...
149
+ }
150
+ fetchData();
151
+ }, [someId]); // Or [] if effect doesn't need props or state
152
+
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+W,J0(I,function(y,d){console.error("%s must not return anything besides a function, which is used for clean-up.%s",y,d)},R,g)}Y=Y.next}while(Y!==A)}}catch(y){$U(I,I.return,y)}}function lJ($,I,Y){try{var W=I.updateQueue,A=W!==null?W.lastEffect:null;if(A!==null){var R=A.next;W=R;do{if((W.tag&$)===$){var g=W.inst,y=g.destroy;y!==void 0&&(g.destroy=void 0,($&x6)!==VO&&(BQ=!0),A=I,J0(A,Dw,A,Y,y),($&x6)!==VO&&(BQ=!1))}W=W.next}while(W!==R)}}catch(d){$U(I,I.return,d)}}function PC($,I){W1($)?(D1(),GG(I,$),K1()):GG(I,$)}function _8($,I,Y){W1($)?(D1(),lJ(Y,$,I),K1()):lJ(Y,$,I)}function EC($){var I=$.updateQueue;if(I!==null){var Y=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||EQ||(Y.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",o($)||"instance"),Y.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",o($)||"instance"));try{J0($,ST,I,Y)}catch(W){$U($,$.return,W)}}}function mk($,I,Y){return $.getSnapshotBeforeUpdate(I,Y)}function dk($,I){var{memoizedProps:Y,memoizedState:W}=I;I=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||EQ||(I.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",o($)||"instance"),I.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",o($)||"instance"));try{var A=uX($.type,Y),R=J0($,mk,I,A,W);Y=Y_,R!==void 0||Y.has($.type)||(Y.add($.type),J0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",o($))})),I.__reactInternalSnapshotBeforeUpdate=R}catch(g){$U($,$.return,g)}}function _C($,I,Y){Y.props=uX($.type,$.memoizedProps),Y.state=$.memoizedState,W1($)?(D1(),J0($,EE,$,I,Y),K1()):J0($,EE,$,I,Y)}function nk($){var I=$.ref;if(I!==null){switch($.tag){case 26:case 27:case 5:var Y=$.stateNode;break;case 30:Y=$.stateNode;break;default:Y=$.stateNode}if(typeof I==="function")if(W1($))try{D1(),$.refCleanup=I(Y)}finally{K1()}else $.refCleanup=I(Y);else typeof I==="string"?console.error("String refs are no longer supported."):I.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",o($)),I.current=Y}}function VG($,I){try{J0($,nk,$)}catch(Y){$U($,I,Y)}}function F1($,I){var{ref:Y,refCleanup:W}=$;if(Y!==null)if(typeof W==="function")try{if(W1($))try{D1(),J0($,W)}finally{K1($)}else J0($,W)}catch(A){$U($,I,A)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Y==="function")try{if(W1($))try{D1(),J0($,Y,null)}finally{K1($)}else J0($,Y,null)}catch(A){$U($,I,A)}else Y.current=null}function SC($,I,Y,W){var A=$.memoizedProps,R=A.id,g=A.onCommit;A=A.onRender,I=I===null?"mount":"update",IO&&(I="nested-update"),typeof A==="function"&&A(R,I,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Y),typeof g==="function"&&g(R,I,W,Y)}function ok($,I,Y,W){var A=$.memoizedProps;$=A.id,A=A.onPostCommit,I=I===null?"mount":"update",IO&&(I="nested-update"),typeof A==="function"&&A($,I,W,Y)}function jC($){var{type:I,memoizedProps:Y,stateNode:W}=$;try{J0($,Lg,W,I,Y,$)}catch(A){$U($,$.return,A)}}function S8($,I,Y){try{J0($,Ag,$.stateNode,$.type,Y,I,$)}catch(W){$U($,$.return,W)}}function vC($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&xI($.type)||$.tag===4}function j8($){$:for(;;){for(;$.sibling===null;){if($.return===null||vC($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&xI($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function v8($,I,Y){var W=$.tag;if(W===5||W===6)$=$.stateNode,I?(fR(Y),(Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y).insertBefore($,I)):(fR(Y),I=Y.nodeType===9?Y.body:Y.nodeName==="HTML"?Y.ownerDocument.body:Y,I.appendChild($),Y=Y._reactRootContainer,Y!==null&&Y!==void 0||I.onclick!==null||(I.onclick=c1));else if(W!==4&&(W===27&&xI($.type)&&(Y=$.stateNode,I=null),$=$.child,$!==null))for(v8($,I,Y),$=$.sibling;$!==null;)v8($,I,Y),$=$.sibling}function HZ($,I,Y){var W=$.tag;if(W===5||W===6)$=$.stateNode,I?Y.insertBefore($,I):Y.appendChild($);else if(W!==4&&(W===27&&xI($.type)&&(Y=$.stateNode),$=$.child,$!==null))for(HZ($,I,Y),$=$.sibling;$!==null;)HZ($,I,Y),$=$.sibling}function ik($){for(var I,Y=$.return;Y!==null;){if(vC(Y)){I=Y;break}Y=Y.return}if(I==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(I.tag){case 27:I=I.stateNode,Y=j8($),HZ($,Y,I);break;case 5:Y=I.stateNode,I.flags&32&&(wR(Y),I.flags&=-33),I=j8($),HZ($,I,Y);break;case 3:case 4:I=I.stateNode.containerInfo,Y=j8($),v8($,Y,I);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function BC($){var{stateNode:I,memoizedProps:Y}=$;try{J0($,wg,$.type,Y,I,$)}catch(W){$U($,$.return,W)}}function NC($,I){return I.tag===31?(I=I.memoizedState,$.memoizedState!==null&&I===null):I.tag===13?($=$.memoizedState,I=I.memoizedState,$!==null&&$.dehydrated!==null&&(I===null||I.dehydrated===null)):I.tag===3?$.memoizedState.isDehydrated&&(I.flags&256)===0:!1}function rk($,I){if($=$.containerInfo,j9=fO,$=oq($),KD($)){if("selectionStart"in $)var Y={start:$.selectionStart,end:$.selectionEnd};else $:{Y=(Y=$.ownerDocument)&&Y.defaultView||window;var W=Y.getSelection&&Y.getSelection();if(W&&W.rangeCount!==0){Y=W.anchorNode;var{anchorOffset:A,focusNode:R}=W;W=W.focusOffset;try{Y.nodeType,R.nodeType}catch(O$){Y=null;break $}var g=0,y=-1,d=-1,i=0,R0=0,P0=$,W0=null;U:for(;;){for(var k0;;){if(P0!==Y||A!==0&&P0.nodeType!==3||(y=g+A),P0!==R||W!==0&&P0.nodeType!==3||(d=g+W),P0.nodeType===3&&(g+=P0.nodeValue.length),(k0=P0.firstChild)===null)break;W0=P0,P0=k0}for(;;){if(P0===$)break U;if(W0===Y&&++i===A&&(y=g),W0===R&&++R0===W&&(d=g),(k0=P0.nextSibling)!==null)break;P0=W0,W0=P0.parentNode}P0=k0}Y=y===-1||d===-1?null:{start:y,end:d}}else Y=null}Y=Y||{start:0,end:0}}else Y=null;v9={focusedElem:$,selectionRange:Y},fO=!1;for(W6=I;W6!==null;)if(I=W6,$=I.child,(I.subtreeFlags&1028)!==0&&$!==null)$.return=I,W6=$;else for(;W6!==null;){switch($=I=W6,Y=$.alternate,A=$.flags,$.tag){case 0:if((A&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Y=0;Y<$.length;Y++)A=$[Y],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:(A&1024)!==0&&Y!==null&&dk($,Y);break;case 3:if((A&1024)!==0){if($=$.stateNode.containerInfo,Y=$.nodeType,Y===9)r8($);else if(Y===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":r8($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=I.sibling,$!==null){$.return=I.return,W6=$;break}W6=I.return}}function kC($,I,Y){var W=Y4(),A=V1(),R=O1(),g=z1(),y=Y.flags;switch(Y.tag){case 0:case 11:case 15:H1($,Y),y&4&&RC(Y,H4|x4);break;case 1:if(H1($,Y),y&4)if($=Y.stateNode,I===null)Y.type.defaultProps||"ref"in Y.memoizedProps||EQ||($.props!==Y.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",o(Y)||"instance"),$.state!==Y.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",o(Y)||"instance")),W1(Y)?(D1(),J0(Y,tW,Y,$),K1()):J0(Y,tW,Y,$);else{var d=uX(Y.type,I.memoizedProps);I=I.memoizedState,Y.type.defaultProps||"ref"in Y.memoizedProps||EQ||($.props!==Y.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",o(Y)||"instance"),$.state!==Y.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",o(Y)||"instance")),W1(Y)?(D1(),J0(Y,CE,Y,$,d,I,$.__reactInternalSnapshotBeforeUpdate),K1()):J0(Y,CE,Y,$,d,I,$.__reactInternalSnapshotBeforeUpdate)}y&64&&EC(Y),y&512&&VG(Y,Y.return);break;case 3:if(I=d1(),H1($,Y),y&64&&(y=Y.updateQueue,y!==null)){if(d=null,Y.child!==null)switch(Y.child.tag){case 27:case 5:d=Y.child.stateNode;break;case 1:d=Y.child.stateNode}try{J0(Y,ST,y,d)}catch(R0){$U(Y,Y.return,R0)}}$.effectDuration+=lV(I);break;case 27:I===null&&y&4&&BC(Y);case 26:case 5:if(H1($,Y),I===null){if(y&4)jC(Y);else if(y&64){$=Y.type,I=Y.memoizedProps,d=Y.stateNode;try{J0(Y,Mg,d,$,I,Y)}catch(R0){$U(Y,Y.return,R0)}}}y&512&&VG(Y,Y.return);break;case 12:if(y&4){y=d1(),H1($,Y),$=Y.stateNode,$.effectDuration+=tY(y);try{J0(Y,SC,Y,I,mI,$.effectDuration)}catch(R0){$U(Y,Y.return,R0)}}else H1($,Y);break;case 31:H1($,Y),y&4&&wC($,Y);break;case 13:H1($,Y),y&4&&fC($,Y),y&64&&($=Y.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(y=Jg.bind(null,Y),Ng($,y))));break;case 22:if(y=Y.memoizedState!==null||GI,!y){I=I!==null&&I.memoizedState!==null||Q6,d=GI;var i=Q6;GI=y,(Q6=I)&&!i?(L1($,Y,(Y.subtreeFlags&8772)!==0),(Y.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&gV(Y,q$,C$)):H1($,Y),GI=d,Q6=i}break;case 30:break;default:H1($,Y)}(Y.mode&g$)!==R$&&0<=q$&&0<=C$&&((uU||0.05<xU)&&Y1(Y,q$,C$,xU,BU),Y.alternate===null&&Y.return!==null&&Y.return.alternate!==null&&0.05<C$-q$&&(NC(Y.return.alternate,Y.return)||Q1(Y,q$,C$,"Mount"))),G4(W),Z1(A),BU=R,uU=g}function gC($){var I=$.alternate;I!==null&&($.alternate=null,gC(I)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(I=$.stateNode,I!==null&&S0(I)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function i1($,I,Y){for(Y=Y.child;Y!==null;)xC($,I,Y),Y=Y.sibling}function xC($,I,Y){if(E6&&typeof E6.onCommitFiberUnmount==="function")try{E6.onCommitFiberUnmount(UQ,Y)}catch(i){R1||(R1=!0,console.error("React instrumentation encountered an error: %o",i))}var W=Y4(),A=V1(),R=O1(),g=z1();switch(Y.tag){case 26:Q6||F1(Y,I),i1($,I,Y),Y.memoizedState?Y.memoizedState.count--:Y.stateNode&&($=Y.stateNode,$.parentNode.removeChild($));break;case 27:Q6||F1(Y,I);var y=Y6,d=r6;xI(Y.type)&&(Y6=Y.stateNode,r6=!1),i1($,I,Y),J0(Y,LG,Y.stateNode),Y6=y,r6=d;break;case 5:Q6||F1(Y,I);case 6:if(y=Y6,d=r6,Y6=null,i1($,I,Y),Y6=y,r6=d,Y6!==null)if(r6)try{J0(Y,Cg,Y6,Y.stateNode)}catch(i){$U(Y,I,i)}else try{J0(Y,Tg,Y6,Y.stateNode)}catch(i){$U(Y,I,i)}break;case 18:Y6!==null&&(r6?($=Y6,yR($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Y.stateNode),aJ($)):yR(Y6,Y.stateNode));break;case 4:y=Y6,d=r6,Y6=Y.stateNode.containerInfo,r6=!0,i1($,I,Y),Y6=y,r6=d;break;case 0:case 11:case 14:case 15:lJ(x6,Y,I),Q6||E8(Y,I,H4),i1($,I,Y);break;case 1:Q6||(F1(Y,I),y=Y.stateNode,typeof y.componentWillUnmount==="function"&&_C(Y,I,y)),i1($,I,Y);break;case 21:i1($,I,Y);break;case 22:Q6=(y=Q6)||Y.memoizedState!==null,i1($,I,Y),Q6=y;break;default:i1($,I,Y)}(Y.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1(Y,q$,C$,xU,BU),G4(W),Z1(A),BU=R,uU=g}function wC($,I){if(I.memoizedState===null&&($=I.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{J0(I,gg,$)}catch(Y){$U(I,I.return,Y)}}}function fC($,I){if(I.memoizedState===null&&($=I.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{J0(I,xg,$)}catch(Y){$U(I,I.return,Y)}}function tk($){switch($.tag){case 31:case 13:case 19:var I=$.stateNode;return I===null&&(I=$.stateNode=new G_),I;case 22:return $=$.stateNode,I=$._retryCache,I===null&&(I=$._retryCache=new G_),I;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function LZ($,I){var Y=tk($);I.forEach(function(W){if(!Y.has(W)){if(Y.add(W),P1)if(_Q!==null&&SQ!==null)KG(SQ,_Q);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var A=Qg.bind(null,$,W);W.then(A,A)}})}function o6($,I){var Y=I.deletions;if(Y!==null)for(var W=0;W<Y.length;W++){var A=$,R=I,g=Y[W],y=Y4(),d=R;$:for(;d!==null;){switch(d.tag){case 27:if(xI(d.type)){Y6=d.stateNode,r6=!1;break $}break;case 5:Y6=d.stateNode,r6=!1;break $;case 3:case 4:Y6=d.stateNode.containerInfo,r6=!0;break $}d=d.return}if(Y6===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");xC(A,R,g),Y6=null,r6=!1,(g.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&Q1(g,q$,C$,"Unmount"),G4(y),A=g,R=A.alternate,R!==null&&(R.return=null),A.return=null}if(I.subtreeFlags&13886)for(I=I.child;I!==null;)yC(I,$),I=I.sibling}function yC($,I){var Y=Y4(),W=V1(),A=O1(),R=z1(),g=$.alternate,y=$.flags;switch($.tag){case 0:case 11:case 14:case 15:o6(I,$),i6($),y&4&&(lJ(x6|x4,$,$.return),GG(x6|x4,$),E8($,$.return,H4|x4));break;case 1:if(o6(I,$),i6($),y&512&&(Q6||g===null||F1(g,g.return)),y&64&&GI&&(y=$.updateQueue,y!==null&&(g=y.callbacks,g!==null))){var d=y.shared.hiddenCallbacks;y.shared.hiddenCallbacks=d===null?g:d.concat(g)}break;case 26:if(d=t4,o6(I,$),i6($),y&512&&(Q6||g===null||F1(g,g.return)),y&4){var i=g!==null?g.memoizedState:null;if(y=$.memoizedState,g===null)if(y===null)if($.stateNode===null){$:{y=$.type,g=$.memoizedProps,d=d.ownerDocument||d;U:switch(y){case"title":if(i=d.getElementsByTagName("title")[0],!i||i[PG]||i[q6]||i.namespaceURI===XQ||i.hasAttribute("itemprop"))i=d.createElement(y),d.head.insertBefore(i,d.querySelector("head > title"));A6(i,y,g),i[q6]=$,K$(i),y=i;break $;case"link":var R0=iR("link","href",d).get(y+(g.href||""));if(R0){for(var P0=0;P0<R0.length;P0++)if(i=R0[P0],i.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&i.getAttribute("rel")===(g.rel==null?null:g.rel)&&i.getAttribute("title")===(g.title==null?null:g.title)&&i.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){R0.splice(P0,1);break U}}i=d.createElement(y),A6(i,y,g),d.head.appendChild(i);break;case"meta":if(R0=iR("meta","content",d).get(y+(g.content||""))){for(P0=0;P0<R0.length;P0++)if(i=R0[P0],n(g.content,"content"),i.getAttribute("content")===(g.content==null?null:""+g.content)&&i.getAttribute("name")===(g.name==null?null:g.name)&&i.getAttribute("property")===(g.property==null?null:g.property)&&i.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&i.getAttribute("charset")===(g.charSet==null?null:g.charSet)){R0.splice(P0,1);break U}}i=d.createElement(y),A6(i,y,g),d.head.appendChild(i);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+y+'". This is a bug in React.')}i[q6]=$,K$(i),y=i}$.stateNode=y}else rR(d,$.type,$.stateNode);else $.stateNode=oR(d,y,$.memoizedProps);else i!==y?(i===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):i.count--,y===null?rR(d,$.type,$.stateNode):oR(d,y,$.memoizedProps)):y===null&&$.stateNode!==null&&S8($,$.memoizedProps,g.memoizedProps)}break;case 27:o6(I,$),i6($),y&512&&(Q6||g===null||F1(g,g.return)),g!==null&&y&4&&S8($,$.memoizedProps,g.memoizedProps);break;case 5:if(o6(I,$),i6($),y&512&&(Q6||g===null||F1(g,g.return)),$.flags&32){d=$.stateNode;try{J0($,wR,d)}catch(W$){$U($,$.return,W$)}}y&4&&$.stateNode!=null&&(d=$.memoizedProps,S8($,d,g!==null?g.memoizedProps:d)),y&1024&&(Z9=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(o6(I,$),i6($),y&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");y=$.memoizedProps,g=g!==null?g.memoizedProps:y,d=$.stateNode;try{J0($,qg,d,g,y)}catch(W$){$U($,$.return,W$)}}break;case 3:if(d=d1(),gO=null,i=t4,t4=EZ(I.containerInfo),o6(I,$),t4=i,i6($),y&4&&g!==null&&g.memoizedState.isDehydrated)try{J0($,kg,I.containerInfo)}catch(W$){$U($,$.return,W$)}Z9&&(Z9=!1,uC($)),I.effectDuration+=lV(d);break;case 4:y=t4,t4=EZ($.stateNode.containerInfo),o6(I,$),i6($),t4=y;break;case 12:y=d1(),o6(I,$),i6($),$.stateNode.effectDuration+=tY(y);break;case 31:o6(I,$),i6($),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,LZ($,y)));break;case 13:o6(I,$),i6($),$.child.flags&8192&&$.memoizedState!==null!==(g!==null&&g.memoizedState!==null)&&(MO=K6()),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,LZ($,y)));break;case 22:d=$.memoizedState!==null;var W0=g!==null&&g.memoizedState!==null,k0=GI,O$=Q6;if(GI=k0||d,Q6=O$||W0,o6(I,$),Q6=O$,GI=k0,W0&&!d&&!k0&&!O$&&($.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&gV($,q$,C$),i6($),y&8192)$:for(I=$.stateNode,I._visibility=d?I._visibility&~gG:I._visibility|gG,!d||g===null||W0||GI||Q6||(bX($),($.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&Q1($,q$,C$,"Disconnect")),g=null,I=$;;){if(I.tag===5||I.tag===26){if(g===null){W0=g=I;try{i=W0.stateNode,d?J0(W0,Pg,i):J0(W0,Sg,W0.stateNode,W0.memoizedProps)}catch(W$){$U(W0,W0.return,W$)}}}else if(I.tag===6){if(g===null){W0=I;try{R0=W0.stateNode,d?J0(W0,Eg,R0):J0(W0,jg,R0,W0.memoizedProps)}catch(W$){$U(W0,W0.return,W$)}}}else if(I.tag===18){if(g===null){W0=I;try{P0=W0.stateNode,d?J0(W0,Rg,P0):J0(W0,_g,W0.stateNode)}catch(W$){$U(W0,W0.return,W$)}}}else if((I.tag!==22&&I.tag!==23||I.memoizedState===null||I===$)&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===$)break $;for(;I.sibling===null;){if(I.return===null||I.return===$)break $;g===I&&(g=null),I=I.return}g===I&&(g=null),I.sibling.return=I.return,I=I.sibling}y&4&&(y=$.updateQueue,y!==null&&(g=y.retryQueue,g!==null&&(y.retryQueue=null,LZ($,g))));break;case 19:o6(I,$),i6($),y&4&&(y=$.updateQueue,y!==null&&($.updateQueue=null,LZ($,y)));break;case 30:break;case 21:break;default:o6(I,$),i6($)}($.mode&g$)!==R$&&0<=q$&&0<=C$&&((uU||0.05<xU)&&Y1($,q$,C$,xU,BU),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<C$-q$&&(NC($.return.alternate,$.return)||Q1($,q$,C$,"Mount"))),G4(Y),Z1(W),BU=A,uU=R}function i6($){var I=$.flags;if(I&2){try{J0($,ik,$)}catch(Y){$U($,$.return,Y)}$.flags&=-3}I&4096&&($.flags&=-4097)}function uC($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var I=$;uC(I),I.tag===5&&I.flags&1024&&I.stateNode.reset(),$=$.sibling}}function H1($,I){if(I.subtreeFlags&8772)for(I=I.child;I!==null;)kC($,I.alternate,I),I=I.sibling}function bC($){var I=Y4(),Y=V1(),W=O1(),A=z1();switch($.tag){case 0:case 11:case 14:case 15:E8($,$.return,H4),bX($);break;case 1:F1($,$.return);var R=$.stateNode;typeof R.componentWillUnmount==="function"&&_C($,$.return,R),bX($);break;case 27:J0($,LG,$.stateNode);case 26:case 5:F1($,$.return),bX($);break;case 22:$.memoizedState===null&&bX($);break;case 30:bX($);break;default:bX($)}($.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1($,q$,C$,xU,BU),G4(I),Z1(Y),BU=W,uU=A}function bX($){for($=$.child;$!==null;)bC($),$=$.sibling}function hC($,I,Y,W){var A=Y4(),R=V1(),g=O1(),y=z1(),d=Y.flags;switch(Y.tag){case 0:case 11:case 15:L1($,Y,W),RC(Y,H4);break;case 1:if(L1($,Y,W),I=Y.stateNode,typeof I.componentDidMount==="function"&&J0(Y,tW,Y,I),I=Y.updateQueue,I!==null){$=Y.stateNode;try{J0(Y,kk,I,$)}catch(i){$U(Y,Y.return,i)}}W&&d&64&&EC(Y),VG(Y,Y.return);break;case 27:BC(Y);case 26:case 5:L1($,Y,W),W&&I===null&&d&4&&jC(Y),VG(Y,Y.return);break;case 12:if(W&&d&4){d=d1(),L1($,Y,W),W=Y.stateNode,W.effectDuration+=tY(d);try{J0(Y,SC,Y,I,mI,W.effectDuration)}catch(i){$U(Y,Y.return,i)}}else L1($,Y,W);break;case 31:L1($,Y,W),W&&d&4&&wC($,Y);break;case 13:L1($,Y,W),W&&d&4&&fC($,Y);break;case 22:Y.memoizedState===null&&L1($,Y,W),VG(Y,Y.return);break;case 30:break;default:L1($,Y,W)}(Y.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1(Y,q$,C$,xU,BU),G4(A),Z1(R),BU=g,uU=y}function L1($,I,Y){Y=Y&&(I.subtreeFlags&8772)!==0;for(I=I.child;I!==null;)hC($,I.alternate,I,Y),I=I.sibling}function B8($,I){var Y=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Y=$.memoizedState.cachePool.pool),$=null,I.memoizedState!==null&&I.memoizedState.cachePool!==null&&($=I.memoizedState.cachePool.pool),$!==Y&&($!=null&&xX($),Y!=null&&rY(Y))}function N8($,I){$=null,I.alternate!==null&&($=I.alternate.memoizedState.cache),I=I.memoizedState.cache,I!==$&&(xX(I),$!=null&&rY($))}function m4($,I,Y,W,A){if(I.subtreeFlags&10256||I.actualDuration!==0&&(I.alternate===null||I.alternate.child!==I.child))for(I=I.child;I!==null;){var R=I.sibling;cC($,I,Y,W,R!==null?R.actualStartTime:A),I=R}}function cC($,I,Y,W,A){var R=Y4(),g=V1(),y=O1(),d=z1(),i=hI,R0=I.flags;switch(I.tag){case 0:case 11:case 15:(I.mode&g$)!==R$&&0<I.actualStartTime&&(I.flags&1)!==0&&xV(I,I.actualStartTime,A,Z6,Y),m4($,I,Y,W,A),R0&2048&&PC(I,w6|x4);break;case 1:(I.mode&g$)!==R$&&0<I.actualStartTime&&((I.flags&128)!==0?WD(I,I.actualStartTime,A,[]):(I.flags&1)!==0&&xV(I,I.actualStartTime,A,Z6,Y)),m4($,I,Y,W,A);break;case 3:var P0=d1(),W0=Z6;Z6=I.alternate!==null&&I.alternate.memoizedState.isDehydrated&&(I.flags&256)===0,m4($,I,Y,W,A),Z6=W0,R0&2048&&(Y=null,I.alternate!==null&&(Y=I.alternate.memoizedState.cache),W=I.memoizedState.cache,W!==Y&&(xX(W),Y!=null&&rY(Y))),$.passiveEffectDuration+=lV(P0);break;case 12:if(R0&2048){R0=d1(),m4($,I,Y,W,A),$=I.stateNode,$.passiveEffectDuration+=tY(R0);try{J0(I,ok,I,I.alternate,mI,$.passiveEffectDuration)}catch(k0){$U(I,I.return,k0)}}else m4($,I,Y,W,A);break;case 31:R0=Z6,P0=I.alternate!==null?I.alternate.memoizedState:null,W0=I.memoizedState,P0!==null&&W0===null?(W0=I.deletions,W0!==null&&0<W0.length&&W0[0].tag===18?(Z6=!1,P0=P0.hydrationErrors,P0!==null&&WD(I,I.actualStartTime,A,P0)):Z6=!0):Z6=!1,m4($,I,Y,W,A),Z6=R0;break;case 13:R0=Z6,P0=I.alternate!==null?I.alternate.memoizedState:null,W0=I.memoizedState,P0===null||P0.dehydrated===null||W0!==null&&W0.dehydrated!==null?Z6=!1:(W0=I.deletions,W0!==null&&0<W0.length&&W0[0].tag===18?(Z6=!1,P0=P0.hydrationErrors,P0!==null&&WD(I,I.actualStartTime,A,P0)):Z6=!0),m4($,I,Y,W,A),Z6=R0;break;case 23:break;case 22:W0=I.stateNode,P0=I.alternate,I.memoizedState!==null?W0._visibility&a1?m4($,I,Y,W,A):ZG($,I,Y,W,A):W0._visibility&a1?m4($,I,Y,W,A):(W0._visibility|=a1,mJ($,I,Y,W,(I.subtreeFlags&10256)!==0||I.actualDuration!==0&&(I.alternate===null||I.alternate.child!==I.child),A),(I.mode&g$)===R$||Z6||($=I.actualStartTime,0<=$&&0.05<A-$&&gV(I,$,A),0<=q$&&0<=C$&&0.05<C$-q$&&gV(I,q$,C$))),R0&2048&&B8(P0,I);break;case 24:m4($,I,Y,W,A),R0&2048&&N8(I.alternate,I);break;default:m4($,I,Y,W,A)}if((I.mode&g$)!==R$){if($=!Z6&&I.alternate===null&&I.return!==null&&I.return.alternate!==null)Y=I.actualStartTime,0<=Y&&0.05<A-Y&&Q1(I,Y,A,"Mount");0<=q$&&0<=C$&&((uU||0.05<xU)&&Y1(I,q$,C$,xU,BU),$&&0.05<C$-q$&&Q1(I,q$,C$,"Mount"))}G4(R),Z1(g),BU=y,uU=d,hI=i}function mJ($,I,Y,W,A,R){A=A&&((I.subtreeFlags&10256)!==0||I.actualDuration!==0&&(I.alternate===null||I.alternate.child!==I.child));for(I=I.child;I!==null;){var g=I.sibling;pC($,I,Y,W,A,g!==null?g.actualStartTime:R),I=g}}function pC($,I,Y,W,A,R){var g=Y4(),y=V1(),d=O1(),i=z1(),R0=hI;A&&(I.mode&g$)!==R$&&0<I.actualStartTime&&(I.flags&1)!==0&&xV(I,I.actualStartTime,R,Z6,Y);var P0=I.flags;switch(I.tag){case 0:case 11:case 15:mJ($,I,Y,W,A,R),PC(I,w6);break;case 23:break;case 22:var W0=I.stateNode;I.memoizedState!==null?W0._visibility&a1?mJ($,I,Y,W,A,R):ZG($,I,Y,W,R):(W0._visibility|=a1,mJ($,I,Y,W,A,R)),A&&P0&2048&&B8(I.alternate,I);break;case 24:mJ($,I,Y,W,A,R),A&&P0&2048&&N8(I.alternate,I);break;default:mJ($,I,Y,W,A,R)}(I.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1(I,q$,C$,xU,BU),G4(g),Z1(y),BU=d,uU=i,hI=R0}function ZG($,I,Y,W,A){if(I.subtreeFlags&10256||I.actualDuration!==0&&(I.alternate===null||I.alternate.child!==I.child))for(var R=I.child;R!==null;){I=R.sibling;var g=$,y=Y,d=W,i=I!==null?I.actualStartTime:A,R0=hI;(R.mode&g$)!==R$&&0<R.actualStartTime&&(R.flags&1)!==0&&xV(R,R.actualStartTime,i,Z6,y);var P0=R.flags;switch(R.tag){case 22:ZG(g,R,y,d,i),P0&2048&&B8(R.alternate,R);break;case 24:ZG(g,R,y,d,i),P0&2048&&N8(R.alternate,R);break;default:ZG(g,R,y,d,i)}hI=R0,R=I}}function dJ($,I,Y){if($.subtreeFlags&eG)for($=$.child;$!==null;)lC($,I,Y),$=$.sibling}function lC($,I,Y){switch($.tag){case 26:dJ($,I,Y),$.flags&eG&&$.memoizedState!==null&&ug(Y,t4,$.memoizedState,$.memoizedProps);break;case 5:dJ($,I,Y);break;case 3:case 4:var W=t4;t4=EZ($.stateNode.containerInfo),dJ($,I,Y),t4=W;break;case 22:$.memoizedState===null&&(W=$.alternate,W!==null&&W.memoizedState!==null?(W=eG,eG=16777216,dJ($,I,Y),eG=W):dJ($,I,Y));break;default:dJ($,I,Y)}}function mC($){var I=$.alternate;if(I!==null&&($=I.child,$!==null)){I.child=null;do I=$.sibling,$.sibling=null,$=I;while($!==null)}}function OG($){var I=$.deletions;if(($.flags&16)!==0){if(I!==null)for(var Y=0;Y<I.length;Y++){var W=I[Y],A=Y4();W6=W,oC(W,$),(W.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&Q1(W,q$,C$,"Unmount"),G4(A)}mC($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)dC($),$=$.sibling}function dC($){var I=Y4(),Y=V1(),W=O1(),A=z1();switch($.tag){case 0:case 11:case 15:OG($),$.flags&2048&&_8($,$.return,w6|x4);break;case 3:var R=d1();OG($),$.stateNode.passiveEffectDuration+=lV(R);break;case 12:R=d1(),OG($),$.stateNode.passiveEffectDuration+=tY(R);break;case 22:R=$.stateNode,$.memoizedState!==null&&R._visibility&a1&&($.return===null||$.return.tag!==13)?(R._visibility&=~a1,MZ($),($.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&Q1($,q$,C$,"Disconnect")):OG($);break;default:OG($)}($.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1($,q$,C$,xU,BU),G4(I),Z1(Y),uU=A,BU=W}function MZ($){var I=$.deletions;if(($.flags&16)!==0){if(I!==null)for(var Y=0;Y<I.length;Y++){var W=I[Y],A=Y4();W6=W,oC(W,$),(W.mode&g$)!==R$&&0<=q$&&0<=C$&&0.05<C$-q$&&Q1(W,q$,C$,"Unmount"),G4(A)}mC($)}for($=$.child;$!==null;)nC($),$=$.sibling}function nC($){var I=Y4(),Y=V1(),W=O1(),A=z1();switch($.tag){case 0:case 11:case 15:_8($,$.return,w6),MZ($);break;case 22:var R=$.stateNode;R._visibility&a1&&(R._visibility&=~a1,MZ($));break;default:MZ($)}($.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1($,q$,C$,xU,BU),G4(I),Z1(Y),uU=A,BU=W}function oC($,I){for(;W6!==null;){var Y=W6,W=Y,A=I,R=Y4(),g=V1(),y=O1(),d=z1();switch(W.tag){case 0:case 11:case 15:_8(W,A,w6);break;case 23:case 22:W.memoizedState!==null&&W.memoizedState.cachePool!==null&&(A=W.memoizedState.cachePool.pool,A!=null&&xX(A));break;case 24:rY(W.memoizedState.cache)}if((W.mode&g$)!==R$&&0<=q$&&0<=C$&&(uU||0.05<xU)&&Y1(W,q$,C$,xU,BU),G4(R),Z1(g),uU=d,BU=y,W=Y.child,W!==null)W.return=Y,W6=W;else $:for(Y=$;W6!==null;){if(W=W6,R=W.sibling,g=W.return,gC(W),W===Y){W6=null;break $}if(R!==null){R.return=g,W6=R;break $}W6=g}}}function ak(){Mw.forEach(function($){return $()})}function iC(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||y0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function Z4($){if((i$&O6)!==F6&&w$!==0)return w$&-w$;var I=y0.T;return I!==null?(I._updatedFibers||(I._updatedFibers=new Set),I._updatedFibers.add($),b8()):X0()}function rC(){if(a6===0)if((w$&536870912)===0||m$){var $=yZ;yZ<<=1,(yZ&3932160)===0&&(yZ=262144),a6=$}else a6=536870912;return $=F4.current,$!==null&&($.flags|=32),a6}function yU($,I,Y){if(BQ&&console.error("useInsertionEffect must not schedule updates."),q9&&(CO=!0),$===zU&&(QU===$J||QU===UJ)||$.cancelPendingCommit!==null)oJ($,0),kI($,w$,a6,!1);if(c0($,Y),(i$&O6)!==F6&&$===zU){if(C1)switch(I.tag){case 0:case 11:case 15:$=y$&&o(y$)||"Unknown",C_.has($)||(C_.add($),I=o(I)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",I,$,$));break;case 1:T_||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),T_=!0)}}else P1&&o0($,I,Y),Gg(I),$===zU&&((i$&O6)===F6&&(eI|=Y),wU===tI&&kI($,w$,a6,!1)),M1($)}function tC($,I,Y){if((i$&(O6|L4))!==F6)throw Error("Should not already be working.");if(w$!==0&&y$!==null){var W=y$,A=K6();switch(WE){case I2:case $J:var R=bG;CU&&((W=W._debugTask)?W.run(console.timeStamp.bind(console,"Suspended",R,A,_4,void 0,"primary-light")):console.timeStamp("Suspended",R,A,_4,void 0,"primary-light"));break;case UJ:R=bG,CU&&((W=W._debugTask)?W.run(console.timeStamp.bind(console,"Action",R,A,_4,void 0,"primary-light")):console.timeStamp("Action",R,A,_4,void 0,"primary-light"));break;default:CU&&(W=A-bG,3>W||console.timeStamp("Blocked",bG,A,_4,void 0,5>W?"primary-light":10>W?"primary":100>W?"primary-dark":"error"))}}R=(Y=!Y&&(I&127)===0&&(I&$.expiredLanes)===0||M0($,I))?ek($,I):g8($,I,!0);var g=Y;do{if(R===VI){jQ&&!Y&&kI($,I,0,!1),I=QU,bG=I6(),WE=I;break}else{if(W=K6(),A=$.current.alternate,g&&!sk(A)){J4(I),A=D6,R=W,!CU||R<=A||(iU?iU.run(console.timeStamp.bind(console,"Teared Render",A,R,c$,h$,"error")):console.timeStamp("Teared Render",A,R,c$,h$,"error")),hX(I,W),R=g8($,I,!1),g=!1;continue}if(R===eX){if(g=I,$.errorRecoveryDisabledLanes&g)var y=0;else y=$.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){J4(I),FD(D6,W,I,iU),hX(I,W),I=y;$:{W=$,R=g,g=J2;var d=W.current.memoizedState.isDehydrated;if(d&&(oJ(W,y).flags|=256),y=g8(W,y,!1),y!==eX){if(K9&&!d){W.errorRecoveryDisabledLanes|=R,eI|=R,R=tI;break $}W=f6,f6=g,W!==null&&(f6===null?f6=W:f6.push.apply(f6,W))}R=y}if(g=!1,R!==eX)continue;else W=K6()}}if(R===U2){J4(I),FD(D6,W,I,iU),hX(I,W),oJ($,0),kI($,I,0,!0);break}$:{switch(Y=$,R){case VI:case U2:throw Error("Root did not complete. This is a bug in React.");case tI:if((I&4194048)!==I)break;case WO:J4(I),tq(D6,W,I,iU),hX(I,W),A=I,(A&127)!==0?eZ=W:(A&4194048)!==0&&($O=W),kI(Y,I,a6,!aI);break $;case eX:f6=null;break;case DO:case V_:break;default:throw Error("Unknown root exit status.")}if(y0.actQueue!==null)x8(Y,A,I,f6,Q2,LO,a6,eI,IJ,R,null,null,D6,W);else{if((I&62914560)===I&&(g=MO+z_-K6(),10<g)){if(kI(Y,I,a6,!aI),U$(Y,0,!0)!==0)break $;a4=I,Y.timeoutHandle=B_(aC.bind(null,Y,A,f6,Q2,LO,I,a6,eI,IJ,aI,R,"Throttled",D6,W),g);break $}aC(Y,A,f6,Q2,LO,I,a6,eI,IJ,aI,R,null,D6,W)}}}break}while(1);M1($)}function aC($,I,Y,W,A,R,g,y,d,i,R0,P0,W0,k0){$.timeoutHandle=GJ;var O$=I.subtreeFlags,W$=null;if(O$&8192||(O$&16785408)===16785408){if(W$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:c1},lC(I,R,W$),O$=(R&62914560)===R?MO-K6():(R&4194048)===R?O_-K6():0,O$=bg(W$,O$),O$!==null){a4=R,$.cancelPendingCommit=O$(x8.bind(null,$,I,R,Y,W,A,g,y,d,R0,W$,W$.waitingForViewTransition?"Waiting for the previous Animation":0<W$.count?0<W$.imgCount?"Suspended on CSS and Images":"Suspended on CSS":W$.imgCount===1?"Suspended on an Image":0<W$.imgCount?"Suspended on Images":null,W0,k0)),kI($,R,g,!i);return}}x8($,I,R,Y,W,A,g,y,d,R0,W$,P0,W0,k0)}function sk($){for(var I=$;;){var Y=I.tag;if((Y===0||Y===11||Y===15)&&I.flags&16384&&(Y=I.updateQueue,Y!==null&&(Y=Y.stores,Y!==null)))for(var W=0;W<Y.length;W++){var A=Y[W],R=A.getSnapshot;A=A.value;try{if(!k6(R(),A))return!1}catch(g){return!1}}if(Y=I.child,I.subtreeFlags&16384&&Y!==null)Y.return=I,I=Y;else{if(I===$)break;for(;I.sibling===null;){if(I.return===null||I.return===$)return!0;I=I.return}I.sibling.return=I.return,I=I.sibling}}return!0}function kI($,I,Y,W){I&=~D9,I&=~eI,$.suspendedLanes|=I,$.pingedLanes&=~I,W&&($.warmLanes|=I),W=$.expirationTimes;for(var A=I;0<A;){var R=31-v6(A),g=1<<R;W[R]=-1,A&=~g}Y!==0&&b0($,Y,I)}function nJ(){return(i$&(O6|L4))===F6?(DG(0,!1),!1):!0}function k8(){if(y$!==null){if(QU===t6)var $=y$.return;else $=y$,hV(),lD($),AQ=null,iG=0,$=y$;for(;$!==null;)CC($.alternate,$),$=$.return;y$=null}}function hX($,I){($&127)!==0&&(dI=I),($&4194048)!==0&&(v1=I),($&62914560)!==0&&(KE=I),($&2080374784)!==0&&(DE=I)}function oJ($,I){CU&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",h$,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",h$,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",h$,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",h$,"primary-light"));var Y=D6;if(D6=I6(),w$!==0&&0<Y){if(J4(w$),wU===DO||wU===tI)tq(Y,D6,I,iU);else{var W=D6,A=iU;if(CU&&!(W<=Y)){var R=(I&738197653)===I?"tertiary-dark":"primary-dark",g=(I&536870912)===I?"Prewarm":(I&201326741)===I?"Interrupted Hydration":"Interrupted Render";A?A.run(console.timeStamp.bind(console,g,Y,W,c$,h$,R)):console.timeStamp(g,Y,W,c$,h$,R)}}hX(w$,D6)}if(Y=iU,iU=null,(I&127)!==0){iU=fG,A=0<=j1&&j1<dI?dI:j1,W=0<=dX&&dX<dI?dI:dX,R=0<=W?W:0<=A?A:D6,0<=eZ?(J4(2),aq(eZ,R,I,Y)):(UO&127)!==0&&(J4(2),oY(dI,R,XI)),Y=A;var y=W,d=yG,i=0<HQ,R0=nI===wG,P0=nI===sZ;if(A=D6,W=fG,R=dW,g=nW,CU){if(c$="Blocking",0<Y?Y>A&&(Y=A):Y=A,0<y?y>Y&&(y=Y):y=Y,d!==null&&Y>y){var W0=i?"secondary-light":"warning";W?W.run(console.timeStamp.bind(console,i?"Consecutive":"Event: "+d,y,Y,c$,h$,W0)):console.timeStamp(i?"Consecutive":"Event: "+d,y,Y,c$,h$,W0)}A>Y&&(y=R0?"error":(I&738197653)===I?"tertiary-light":"primary-light",R0=P0?"Promise Resolved":R0?"Cascading Update":5<A-Y?"Update Blocked":"Update",P0=[],g!=null&&P0.push(["Component name",g]),R!=null&&P0.push(["Method name",R]),Y={start:Y,end:A,detail:{devtools:{properties:P0,track:c$,trackGroup:h$,color:y}}},W?W.run(performance.measure.bind(performance,R0,Y)):performance.measure(R0,Y))}j1=-1.1,nI=0,nW=dW=null,eZ=-1.1,HQ=dX,dX=-1.1,dI=I6()}if((I&4194048)!==0&&(iU=uG,A=0<=II&&II<v1?v1:II,Y=0<=k4&&k4<v1?v1:k4,W=0<=oI&&oI<v1?v1:oI,R=0<=W?W:0<=Y?Y:D6,0<=$O?(J4(256),aq($O,R,I,iU)):(UO&4194048)!==0&&(J4(256),oY(v1,R,XI)),P0=W,y=nX,d=0<iI,i=oW===sZ,R=D6,W=uG,g=OE,R0=zE,CU&&(c$="Transition",0<Y?Y>R&&(Y=R):Y=R,0<A?A>Y&&(A=Y):A=Y,0<P0?P0>A&&(P0=A):P0=A,A>P0&&y!==null&&(W0=d?"secondary-light":"warning",W?W.run(console.timeStamp.bind(console,d?"Consecutive":"Event: "+y,P0,A,c$,h$,W0)):console.timeStamp(d?"Consecutive":"Event: "+y,P0,A,c$,h$,W0)),Y>A&&(W?W.run(console.timeStamp.bind(console,"Action",A,Y,c$,h$,"primary-dark")):console.timeStamp("Action",A,Y,c$,h$,"primary-dark")),R>Y&&(A=i?"Promise Resolved":5<R-Y?"Update Blocked":"Update",P0=[],R0!=null&&P0.push(["Component name",R0]),g!=null&&P0.push(["Method name",g]),Y={start:Y,end:R,detail:{devtools:{properties:P0,track:c$,trackGroup:h$,color:"primary-light"}}},W?W.run(performance.measure.bind(performance,A,Y)):performance.measure(A,Y))),k4=II=-1.1,oW=0,$O=-1.1,iI=oI,oI=-1.1,v1=I6()),(I&62914560)!==0&&(UO&62914560)!==0&&(J4(4194304),oY(KE,D6,XI)),(I&2080374784)!==0&&(UO&2080374784)!==0&&(J4(268435456),oY(DE,D6,XI)),Y=$.timeoutHandle,Y!==GJ&&($.timeoutHandle=GJ,Nw(Y)),Y=$.cancelPendingCommit,Y!==null&&($.cancelPendingCommit=null,Y()),a4=0,k8(),zU=$,y$=Y=p1($.current,null),w$=I,QU=t6,M4=null,aI=!1,jQ=M0($,I),K9=!1,wU=VI,IJ=a6=D9=eI=sI=0,f6=J2=null,LO=!1,(I&8)!==0&&(I|=I&32),W=$.entangledLanes,W!==0)for($=$.entanglements,W&=I;0<W;)A=31-v6(W),R=1<<A,I|=$[A],W&=~R;return N1=I,wV(),$=JE(),1000<$-XE&&(y0.recentlyCreatedOwnerStacks=0,XE=$),i4.discardPendingWarnings(),Y}function sC($,I){P$=null,y0.H=sG,y0.getCurrentStack=null,C1=!1,K4=null,I===MQ||I===QO?(I=AT(),QU=I2):I===aW?(I=AT(),QU=Z_):QU=I===G9?z9:I!==null&&typeof I==="object"&&typeof I.then==="function"?X2:FO,M4=I;var Y=y$;Y===null?(wU=U2,zZ($,Q4(I,$.current))):Y.mode&g$&&BD(Y)}function eC(){var $=F4.current;return $===null?!0:(w$&4194048)===w$?g4===null?!0:!1:(w$&62914560)===w$||(w$&536870912)!==0?$===g4:!1}function $R(){var $=y0.H;return y0.H=sG,$===null?sG:$}function UR(){var $=y0.A;return y0.A=Lw,$}function AZ($){iU===null&&(iU=$._debugTask==null?null:$._debugTask)}function qZ(){wU=tI,aI||(w$&4194048)!==w$&&F4.current!==null||(jQ=!0),(sI&134217727)===0&&(eI&134217727)===0||zU===null||kI(zU,w$,a6,!1)}function g8($,I,Y){var W=i$;i$|=O6;var A=$R(),R=UR();if(zU!==$||w$!==I){if(P1){var g=$.memoizedUpdaters;0<g.size&&(KG($,w$),g.clear()),EU($,I)}Q2=null,oJ($,I)}I=!1,g=wU;$:do try{if(QU!==t6&&y$!==null){var y=y$,d=M4;switch(QU){case z9:k8(),g=WO;break $;case I2:case $J:case UJ:case X2:F4.current===null&&(I=!0);var i=QU;if(QU=t6,M4=null,iJ($,y,d,i),Y&&jQ){g=VI;break $}break;default:i=QU,QU=t6,M4=null,iJ($,y,d,i)}}IR(),g=wU;break}catch(R0){sC($,R0)}while(1);return I&&$.shellSuspendCounter++,hV(),i$=W,y0.H=A,y0.A=R,y$===null&&(zU=null,w$=0,wV()),g}function IR(){for(;y$!==null;)XR(y$)}function ek($,I){var Y=i$;i$|=O6;var W=$R(),A=UR();if(zU!==$||w$!==I){if(P1){var R=$.memoizedUpdaters;0<R.size&&(KG($,w$),R.clear()),EU($,I)}Q2=null,AO=K6()+K_,oJ($,I)}else jQ=M0($,I);$:do try{if(QU!==t6&&y$!==null)U:switch(I=y$,R=M4,QU){case FO:QU=t6,M4=null,iJ($,I,R,FO);break;case $J:case UJ:if(LT(R)){QU=t6,M4=null,JR(I);break}I=function(){QU!==$J&&QU!==UJ||zU!==$||(QU=HO),M1($)},R.then(I,I);break $;case I2:QU=HO;break $;case Z_:QU=O9;break $;case HO:LT(R)?(QU=t6,M4=null,JR(I)):(QU=t6,M4=null,iJ($,I,R,HO));break;case O9:var g=null;switch(y$.tag){case 26:g=y$.memoizedState;case 5:case 27:var y=y$;if(g?tR(g):y.stateNode.complete){QU=t6,M4=null;var d=y.sibling;if(d!==null)y$=d;else{var i=y.return;i!==null?(y$=i,TZ(i)):y$=null}break U}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}QU=t6,M4=null,iJ($,I,R,O9);break;case X2:QU=t6,M4=null,iJ($,I,R,X2);break;case z9:k8(),wU=WO;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}y0.actQueue!==null?IR():$g();break}catch(R0){sC($,R0)}while(1);if(hV(),y0.H=W,y0.A=A,i$=Y,y$!==null)return VI;return zU=null,w$=0,wV(),wU}function $g(){for(;y$!==null&&!sg();)XR(y$)}function XR($){var I=$.alternate;($.mode&g$)!==R$?(vD($),I=J0($,R8,I,$,N1),BD($)):I=J0($,R8,I,$,N1),$.memoizedProps=$.pendingProps,I===null?TZ($):y$=I}function JR($){var I=J0($,Ug,$);$.memoizedProps=$.pendingProps,I===null?TZ($):y$=I}function Ug($){var I=$.alternate,Y=($.mode&g$)!==R$;switch(Y&&vD($),$.tag){case 15:case 0:I=FC(I,$,$.pendingProps,$.type,void 0,w$);break;case 11:I=FC(I,$,$.pendingProps,$.type.render,$.ref,w$);break;case 5:lD($);default:CC(I,$),$=y$=XT($,N1),I=R8(I,$,N1)}return Y&&BD($),I}function iJ($,I,Y,W){hV(),lD(I),AQ=null,iG=0;var A=I.return;try{if(bk($,A,I,Y,w$)){wU=U2,zZ($,Q4(Y,$.current)),y$=null;return}}catch(R){if(A!==null)throw y$=A,R;wU=U2,zZ($,Q4(Y,$.current)),y$=null;return}if(I.flags&32768){if(m$||W===FO)$=!0;else if(jQ||(w$&536870912)!==0)$=!1;else if(aI=$=!0,W===$J||W===UJ||W===I2||W===X2)W=F4.current,W!==null&&W.tag===13&&(W.flags|=16384);QR(I,$)}else TZ(I)}function TZ($){var I=$;do{if((I.flags&32768)!==0){QR(I,aI);return}var Y=I.alternate;if($=I.return,vD(I),Y=J0(I,pk,Y,I,N1),(I.mode&g$)!==R$&&KT(I),Y!==null){y$=Y;return}if(I=I.sibling,I!==null){y$=I;return}y$=I=$}while(I!==null);wU===VI&&(wU=V_)}function QR($,I){do{var Y=lk($.alternate,$);if(Y!==null){Y.flags&=32767,y$=Y;return}if(($.mode&g$)!==R$){KT($),Y=$.actualDuration;for(var W=$.child;W!==null;)Y+=W.actualDuration,W=W.sibling;$.actualDuration=Y}if(Y=$.return,Y!==null&&(Y.flags|=32768,Y.subtreeFlags=0,Y.deletions=null),!I&&($=$.sibling,$!==null)){y$=$;return}y$=$=Y}while($!==null);wU=WO,y$=null}function x8($,I,Y,W,A,R,g,y,d,i,R0,P0,W0,k0){$.cancelPendingCommit=null;do zG();while(G6!==UX);if(i4.flushLegacyContextWarning(),i4.flushPendingUnsafeLifecycleWarnings(),(i$&(O6|L4))!==F6)throw Error("Should not already be working.");if(J4(Y),i===eX?FD(W0,k0,Y,iU):W!==null?_k(W0,k0,Y,W,I!==null&&I.alternate!==null&&I.alternate.memoizedState.isDehydrated&&(I.flags&256)!==0,iU):Ek(W0,k0,Y,iU),I!==null){if(Y===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),I===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(R=I.lanes|I.childLanes,R|=hW,t$($,Y,R,g,y,d),$===zU&&(y$=zU=null,w$=0),vQ=I,IX=$,a4=Y,H9=R,M9=A,M_=W,L9=k0,A_=P0,s4=qO,q_=null,I.actualDuration!==0||(I.subtreeFlags&10256)!==0||(I.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,Yg($Q,function(){return z2=window.event,s4===qO&&(s4=F9),OR(),null})):($.callbackNode=null,$.callbackPriority=0),UI=null,mI=I6(),P0!==null&&Sk(k0,mI,P0,iU),W=(I.flags&13878)!==0,(I.subtreeFlags&13878)!==0||W){W=y0.T,y0.T=null,A=UU.p,UU.p=D4,g=i$,i$|=L4;try{rk($,I,Y)}finally{i$=g,UU.p=A,y0.T=W}}G6=W_,YR(),GR(),VR()}}function YR(){if(G6===W_){G6=UX;var $=IX,I=vQ,Y=a4,W=(I.flags&13878)!==0;if((I.subtreeFlags&13878)!==0||W){W=y0.T,y0.T=null;var A=UU.p;UU.p=D4;var R=i$;i$|=L4;try{_Q=Y,SQ=$,mV(),yC(I,$),SQ=_Q=null,Y=v9;var g=oq($.containerInfo),y=Y.focusedElem,d=Y.selectionRange;if(g!==y&&y&&y.ownerDocument&&nq(y.ownerDocument.documentElement,y)){if(d!==null&&KD(y)){var{start:i,end:R0}=d;if(R0===void 0&&(R0=i),"selectionStart"in y)y.selectionStart=i,y.selectionEnd=Math.min(R0,y.value.length);else{var P0=y.ownerDocument||document,W0=P0&&P0.defaultView||window;if(W0.getSelection){var k0=W0.getSelection(),O$=y.textContent.length,W$=Math.min(d.start,O$),LU=d.end===void 0?W$:Math.min(d.end,O$);!k0.extend&&W$>LU&&(g=LU,LU=W$,W$=g);var n$=dq(y,W$),O0=dq(y,LU);if(n$&&O0&&(k0.rangeCount!==1||k0.anchorNode!==n$.node||k0.anchorOffset!==n$.offset||k0.focusNode!==O0.node||k0.focusOffset!==O0.offset)){var F0=P0.createRange();F0.setStart(n$.node,n$.offset),k0.removeAllRanges(),W$>LU?(k0.addRange(F0),k0.extend(O0.node,O0.offset)):(F0.setEnd(O0.node,O0.offset),k0.addRange(F0))}}}}P0=[];for(k0=y;k0=k0.parentNode;)k0.nodeType===1&&P0.push({element:k0,left:k0.scrollLeft,top:k0.scrollTop});typeof y.focus==="function"&&y.focus();for(y=0;y<P0.length;y++){var T0=P0[y];T0.element.scrollLeft=T0.left,T0.element.scrollTop=T0.top}}fO=!!j9,v9=j9=null}finally{i$=R,UU.p=A,y0.T=W}}$.current=I,G6=F_}}function GR(){if(G6===F_){G6=UX;var $=q_;if($!==null){mI=I6();var I=$I,Y=mI;!CU||Y<=I||(XI?XI.run(console.timeStamp.bind(console,$,I,Y,c$,h$,"secondary-light")):console.timeStamp($,I,Y,c$,h$,"secondary-light"))}$=IX,I=vQ,Y=a4;var W=(I.flags&8772)!==0;if((I.subtreeFlags&8772)!==0||W){W=y0.T,y0.T=null;var A=UU.p;UU.p=D4;var R=i$;i$|=L4;try{_Q=Y,SQ=$,mV(),kC($,I.alternate,I),SQ=_Q=null}finally{i$=R,UU.p=A,y0.T=W}}$=L9,I=A_,$I=I6(),$=I===null?$:mI,I=$I,Y=s4===W9,W=iU,UI!==null?sq($,I,UI,!1,W):!CU||I<=$||(W?W.run(console.timeStamp.bind(console,Y?"Commit Interrupted View Transition":"Commit",$,I,c$,h$,Y?"error":"secondary-dark")):console.timeStamp(Y?"Commit Interrupted View Transition":"Commit",$,I,c$,h$,Y?"error":"secondary-dark")),G6=H_}}function VR(){if(G6===L_||G6===H_){if(G6===L_){var $=$I;$I=I6();var I=$I,Y=s4===W9;!CU||I<=$||(XI?XI.run(console.timeStamp.bind(console,Y?"Interrupted View Transition":"Starting Animation",$,I,c$,h$,Y?"error":"secondary-light")):console.timeStamp(Y?"Interrupted View Transition":"Starting Animation",$,I,c$,h$,Y?" error":"secondary-light")),s4!==W9&&(s4=D_)}G6=UX,eg(),$=IX;var W=vQ;I=a4,Y=M_;var A=W.actualDuration!==0||(W.subtreeFlags&10256)!==0||(W.flags&10256)!==0;A?G6=TO:(G6=UX,vQ=IX=null,ZR($,$.pendingLanes),XJ=0,G2=null);var R=$.pendingLanes;if(R===0&&($X=null),A||WR($),R=l(I),W=W.stateNode,E6&&typeof E6.onCommitFiberRoot==="function")try{var g=(W.current.flags&128)===128;switch(R){case D4:var y=MW;break;case n4:y=AW;break;case E1:y=$Q;break;case bZ:y=qW;break;default:y=$Q}E6.onCommitFiberRoot(UQ,W,y,g)}catch(P0){R1||(R1=!0,console.error("React instrumentation encountered an error: %o",P0))}if(P1&&$.memoizedUpdaters.clear(),ak(),Y!==null){g=y0.T,y=UU.p,UU.p=D4,y0.T=null;try{var d=$.onRecoverableError;for(W=0;W<Y.length;W++){var i=Y[W],R0=Ig(i.stack);J0(i.source,d,i.value,R0)}}finally{y0.T=g,UU.p=y}}(a4&3)!==0&&zG(),M1($),R=$.pendingLanes,(I&261930)!==0&&(R&42)!==0?(XO=!0,$===A9?Y2++:(Y2=0,A9=$)):Y2=0,A||hX(I,$I),DG(0,!1)}}function Ig($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function ZR($,I){($.pooledCacheLanes&=I)===0&&(I=$.pooledCache,I!=null&&($.pooledCache=null,rY(I)))}function zG(){return YR(),GR(),VR(),OR()}function OR(){if(G6!==TO)return!1;var $=IX,I=H9;H9=0;var Y=l(a4),W=E1===0||E1>Y?E1:Y;Y=y0.T;var A=UU.p;try{UU.p=W,y0.T=null;var R=M9;M9=null,W=IX;var g=a4;if(G6=UX,vQ=IX=null,a4=0,(i$&(O6|L4))!==F6)throw Error("Cannot flush passive effects while already rendering.");J4(g),q9=!0,CO=!1;var y=0;if(UI=null,y=K6(),s4===D_)oY($I,y,XI);else{var d=$I,i=y,R0=s4===F9;!CU||i<=d||(iU?iU.run(console.timeStamp.bind(console,R0?"Waiting for Paint":"Waiting",d,i,c$,h$,"secondary-light")):console.timeStamp(R0?"Waiting for Paint":"Waiting",d,i,c$,h$,"secondary-light"))}d=i$,i$|=L4;var P0=W.current;mV(),dC(P0);var W0=W.current;P0=L9,mV(),cC(W,W0,g,R,P0),WR(W),i$=d;var k0=K6();if(W0=y,P0=iU,UI!==null?sq(W0,k0,UI,!0,P0):!CU||k0<=W0||(P0?P0.run(console.timeStamp.bind(console,"Remaining Effects",W0,k0,c$,h$,"secondary-dark")):console.timeStamp("Remaining Effects",W0,k0,c$,h$,"secondary-dark")),hX(g,k0),DG(0,!1),CO?W===G2?XJ++:(XJ=0,G2=W):XJ=0,CO=q9=!1,E6&&typeof E6.onPostCommitFiberRoot==="function")try{E6.onPostCommitFiberRoot(UQ,W)}catch(W$){R1||(R1=!0,console.error("React instrumentation encountered an error: %o",W$))}var O$=W.current.stateNode;return O$.effectDuration=0,O$.passiveEffectDuration=0,!0}finally{UU.p=A,y0.T=Y,ZR($,I)}}function zR($,I,Y){I=Q4(Y,I),DT(I),I=K8($.stateNode,I,2),$=jI($,I,2),$!==null&&(c0($,2),M1($))}function $U($,I,Y){if(BQ=!1,$.tag===3)zR($,$,Y);else{for(;I!==null;){if(I.tag===3){zR(I,$,Y);return}if(I.tag===1){var W=I.stateNode;if(typeof I.type.getDerivedStateFromError==="function"||typeof W.componentDidCatch==="function"&&($X===null||!$X.has(W))){$=Q4(Y,$),DT($),Y=D8(2),W=jI(I,Y,2),W!==null&&(W8(Y,W,I,$),c0(W,2),M1(W));return}}I=I.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
+
155
+ Error message:
156
+
157
+ %s`,Y)}}function w8($,I,Y){var W=$.pingCache;if(W===null){W=$.pingCache=new Aw;var A=new Set;W.set(I,A)}else A=W.get(I),A===void 0&&(A=new Set,W.set(I,A));A.has(Y)||(K9=!0,A.add(Y),W=Xg.bind(null,$,I,Y),P1&&KG($,Y),I.then(W,W))}function Xg($,I,Y){var W=$.pingCache;W!==null&&W.delete(I),$.pingedLanes|=$.suspendedLanes&Y,$.warmLanes&=~Y,(Y&127)!==0?0>j1&&(dI=j1=I6(),fG=aZ("Promise Resolved"),nI=sZ):(Y&4194048)!==0&&0>k4&&(v1=k4=I6(),uG=aZ("Promise Resolved"),oW=sZ),iC()&&y0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
+
159
+ When testing, code that resolves suspended data should be wrapped into act(...):
160
+
161
+ act(() => {
162
+ /* finish loading suspended data */
163
+ });
164
+ /* assert on the output */
165
+
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zU===$&&(w$&Y)===Y&&(wU===tI||wU===DO&&(w$&62914560)===w$&&K6()-MO<z_?(i$&O6)===F6&&oJ($,0):D9|=Y,IJ===w$&&(IJ=0)),M1($)}function KR($,I){I===0&&(I=L$()),$=P6($,I),$!==null&&(c0($,I),M1($))}function Jg($){var I=$.memoizedState,Y=0;I!==null&&(Y=I.retryLane),KR($,Y)}function Qg($,I){var Y=0;switch($.tag){case 31:case 13:var{stateNode:W,memoizedState:A}=$;A!==null&&(Y=A.retryLane);break;case 19:W=$.stateNode;break;case 22:W=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}W!==null&&W.delete(I),KR($,Y)}function f8($,I,Y){if((I.subtreeFlags&67117056)!==0)for(I=I.child;I!==null;){var W=$,A=I,R=A.type===gZ;R=Y||R,A.tag!==22?A.flags&67108864?R&&J0(A,DR,W,A):f8(W,A,R):A.memoizedState===null&&(R&&A.flags&8192?J0(A,DR,W,A):A.subtreeFlags&67108864&&J0(A,f8,W,A,R)),I=I.sibling}}function DR($,I){N0(!0);try{bC(I),nC(I),hC($,I.alternate,I,!1),pC($,I,0,null,!1,0)}finally{N0(!1)}}function WR($){var I=!0;$.current.mode&(_6|o4)||(I=!1),f8($,$.current,I)}function FR($){if((i$&O6)===F6){var I=$.tag;if(I===3||I===1||I===0||I===11||I===14||I===15){if(I=o($)||"ReactComponent",RO!==null){if(RO.has(I))return;RO.add(I)}else RO=new Set([I]);J0($,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function KG($,I){P1&&$.memoizedUpdaters.forEach(function(Y){o0($,Y,I)})}function Yg($,I){var Y=y0.actQueue;return Y!==null?(Y.push(I),Cw):LW($,I)}function Gg($){iC()&&y0.actQueue===null&&J0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
+
168
+ When testing, code that causes React state updates should be wrapped into act(...):
169
+
170
+ act(() => {
171
+ /* fire events that update state */
172
+ });
173
+ /* assert on the output */
174
+
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,o($))})}function M1($){$!==NQ&&$.next===null&&(NQ===null?PO=NQ=$:NQ=NQ.next=$),EO=!0,y0.actQueue!==null?C9||(C9=!0,AR()):T9||(T9=!0,AR())}function DG($,I){if(!R9&&EO){R9=!0;do{var Y=!1;for(var W=PO;W!==null;){if(!I)if($!==0){var A=W.pendingLanes;if(A===0)var R=0;else{var{suspendedLanes:g,pingedLanes:y}=W;R=(1<<31-v6(42|$)+1)-1,R&=A&~(g&~y),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(Y=!0,MR(W,R))}else R=w$,R=U$(W,W===zU?R:0,W.cancelPendingCommit!==null||W.timeoutHandle!==GJ),(R&3)===0||M0(W,R)||(Y=!0,MR(W,R));W=W.next}}while(Y);R9=!1}}function Vg(){z2=window.event,y8()}function y8(){EO=C9=T9=!1;var $=0;XX!==0&&Fg()&&($=XX);for(var I=K6(),Y=null,W=PO;W!==null;){var A=W.next,R=HR(W,I);if(R===0)W.next=null,Y===null?PO=A:Y.next=A,A===null&&(NQ=Y);else if(Y=W,$!==0||(R&3)!==0)EO=!0;W=A}G6!==UX&&G6!==TO||DG($,!1),XX!==0&&(XX=0)}function HR($,I){for(var{suspendedLanes:Y,pingedLanes:W,expirationTimes:A}=$,R=$.pendingLanes&-62914561;0<R;){var g=31-v6(R),y=1<<g,d=A[g];if(d===-1){if((y&Y)===0||(y&W)!==0)A[g]=v0(y,I)}else d<=I&&($.expiredLanes|=y);R&=~y}if(I=zU,Y=w$,Y=U$($,$===I?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==GJ),W=$.callbackNode,Y===0||$===I&&(QU===$J||QU===UJ)||$.cancelPendingCommit!==null)return W!==null&&u8(W),$.callbackNode=null,$.callbackPriority=0;if((Y&3)===0||M0($,Y)){if(I=Y&-Y,I!==$.callbackPriority||y0.actQueue!==null&&W!==P9)u8(W);else return I;switch(l(Y)){case D4:case n4:Y=AW;break;case E1:Y=$Q;break;case bZ:Y=qW;break;default:Y=$Q}return W=LR.bind(null,$),y0.actQueue!==null?(y0.actQueue.push(W),Y=P9):Y=LW(Y,W),$.callbackPriority=I,$.callbackNode=Y,I}return W!==null&&u8(W),$.callbackPriority=2,$.callbackNode=null,2}function LR($,I){if(XO=IO=!1,z2=window.event,G6!==UX&&G6!==TO)return $.callbackNode=null,$.callbackPriority=0,null;var Y=$.callbackNode;if(s4===qO&&(s4=F9),zG()&&$.callbackNode!==Y)return null;var W=w$;if(W=U$($,$===zU?W:0,$.cancelPendingCommit!==null||$.timeoutHandle!==GJ),W===0)return null;return tC($,W,I),HR($,K6()),$.callbackNode!=null&&$.callbackNode===Y?LR.bind(null,$):null}function MR($,I){if(zG())return null;IO=XO,XO=!1,tC($,I,!0)}function u8($){$!==P9&&$!==null&&ag($)}function AR(){y0.actQueue!==null&&y0.actQueue.push(function(){return y8(),null}),kw(function(){(i$&(O6|L4))!==F6?LW(MW,Vg):y8()})}function b8(){if(XX===0){var $=oX;$===0&&($=fZ,fZ<<=1,(fZ&261888)===0&&(fZ=256)),XX=$}return XX}function qR($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return n($,"action"),mY(""+$)}function TR($,I){var Y=I.ownerDocument.createElement("input");return Y.name=I.name,Y.value=I.value,$.id&&Y.setAttribute("form",$.id),I.parentNode.insertBefore(Y,I),$=new FormData($),Y.parentNode.removeChild(Y),$}function Zg($,I,Y,W,A){if(I==="submit"&&Y&&Y.stateNode===A){var R=qR((A[B6]||null).action),g=W.submitter;g&&(I=(I=g[B6]||null)?qR(I.formAction):g.getAttribute("formAction"),I!==null&&(R=I,g=null));var y=new mZ("action","action",null,W,A);$.push({event:y,listeners:[{instance:null,listener:function(){if(W.defaultPrevented){if(XX!==0){var d=g?TR(A,g):new FormData(A),i={pending:!0,data:d,method:A.method,action:R};Object.freeze(i),Q8(Y,i,null,d)}}else typeof R==="function"&&(y.preventDefault(),d=g?TR(A,g):new FormData(A),i={pending:!0,data:d,method:A.method,action:R},Object.freeze(i),Q8(Y,i,R,d))},currentTarget:A}]})}}function CZ($,I,Y){$.currentTarget=Y;try{I($)}catch(W){fW(W)}$.currentTarget=null}function CR($,I){I=(I&4)!==0;for(var Y=0;Y<$.length;Y++){var W=$[Y];$:{var A=void 0,R=W.event;if(W=W.listeners,I)for(var g=W.length-1;0<=g;g--){var y=W[g],d=y.instance,i=y.currentTarget;if(y=y.listener,d!==A&&R.isPropagationStopped())break $;d!==null?J0(d,CZ,R,y,i):CZ(R,y,i),A=d}else for(g=0;g<W.length;g++){if(y=W[g],d=y.instance,i=y.currentTarget,y=y.listener,d!==A&&R.isPropagationStopped())break $;d!==null?J0(d,CZ,R,y,i):CZ(R,y,i),A=d}}}}function d$($,I){E9.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Y=I[TW];Y===void 0&&(Y=I[TW]=new Set);var W=$+"__bubble";Y.has(W)||(RR(I,$,2,!1),Y.add(W))}function h8($,I,Y){E9.has($)&&!I&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var W=0;I&&(W|=4),RR(Y,$,W,I)}function c8($){if(!$[_O]){$[_O]=!0,AP.forEach(function(Y){Y!=="selectionchange"&&(E9.has(Y)||h8(Y,!1,$),h8(Y,!0,$))});var I=$.nodeType===9?$:$.ownerDocument;I===null||I[_O]||(I[_O]=!0,h8("selectionchange",!1,I))}}function RR($,I,Y,W){switch(IP(I)){case D4:var A=lg;break;case n4:A=mg;break;default:A=XW}Y=A.bind(null,I,Y,$),A=void 0,!_W||I!=="touchstart"&&I!=="touchmove"&&I!=="wheel"||(A=!0),W?A!==void 0?$.addEventListener(I,Y,{capture:!0,passive:A}):$.addEventListener(I,Y,!0):A!==void 0?$.addEventListener(I,Y,{passive:A}):$.addEventListener(I,Y,!1)}function p8($,I,Y,W,A){var R=W;if((I&1)===0&&(I&2)===0&&W!==null)$:for(;;){if(W===null)return;var g=W.tag;if(g===3||g===4){var y=W.stateNode.containerInfo;if(y===A)break;if(g===4)for(g=W.return;g!==null;){var d=g.tag;if((d===3||d===4)&&g.stateNode.containerInfo===A)return;g=g.return}for(;y!==null;){if(g=B0(y),g===null)return;if(d=g.tag,d===5||d===6||d===26||d===27){W=R=g;continue $}y=y.parentNode}}W=W.return}xq(function(){var i=R,R0=OD(Y),P0=[];$:{var W0=IE.get($);if(W0!==void 0){var k0=mZ,O$=$;switch($){case"keypress":if(BV(Y)===0)break $;case"keydown":case"keyup":k0=ux;break;case"focusin":O$="focus",k0=BW;break;case"focusout":O$="blur",k0=BW;break;case"beforeblur":case"afterblur":k0=BW;break;case"click":if(Y.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k0=pP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k0=_x;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k0=cx;break;case sP:case eP:case $E:k0=vx;break;case UE:k0=lx;break;case"scroll":case"scrollend":k0=Px;break;case"wheel":k0=dx;break;case"copy":case"cut":case"paste":k0=Nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k0=mP;break;case"toggle":case"beforetoggle":k0=ox}var W$=(I&4)!==0,LU=!W$&&($==="scroll"||$==="scrollend"),n$=W$?W0!==null?W0+"Capture":null:W0;W$=[];for(var O0=i,F0;O0!==null;){var T0=O0;if(F0=T0.stateNode,T0=T0.tag,T0!==5&&T0!==26&&T0!==27||F0===null||n$===null||(T0=dY(O0,n$),T0!=null&&W$.push(WG(O0,T0,F0))),LU)break;O0=O0.return}0<W$.length&&(W0=new k0(W0,O$,null,Y,R0),P0.push({event:W0,listeners:W$}))}}if((I&7)===0){$:{if(W0=$==="mouseover"||$==="pointerover",k0=$==="mouseout"||$==="pointerout",W0&&Y!==EG&&(O$=Y.relatedTarget||Y.fromElement)&&(B0(O$)||O$[uI]))break $;if(k0||W0){if(W0=R0.window===R0?R0:(W0=R0.ownerDocument)?W0.defaultView||W0.parentWindow:window,k0){if(O$=Y.relatedTarget||Y.toElement,k0=i,O$=O$?B0(O$):null,O$!==null&&(LU=b(O$),W$=O$.tag,O$!==LU||W$!==5&&W$!==27&&W$!==6))O$=null}else k0=null,O$=i;if(k0!==O$){if(W$=pP,T0="onMouseLeave",n$="onMouseEnter",O0="mouse",$==="pointerout"||$==="pointerover")W$=mP,T0="onPointerLeave",n$="onPointerEnter",O0="pointer";if(LU=k0==null?W0:g0(k0),F0=O$==null?W0:g0(O$),W0=new W$(T0,O0+"leave",k0,Y,R0),W0.target=LU,W0.relatedTarget=F0,T0=null,B0(R0)===i&&(W$=new W$(n$,O0+"enter",O$,Y,R0),W$.target=F0,W$.relatedTarget=LU,T0=W$),LU=T0,k0&&O$)U:{W$=Og,n$=k0,O0=O$,F0=0;for(T0=n$;T0;T0=W$(T0))F0++;T0=0;for(var l0=O0;l0;l0=W$(l0))T0++;for(;0<F0-T0;)n$=W$(n$),F0--;for(;0<T0-F0;)O0=W$(O0),T0--;for(;F0--;){if(n$===O0||O0!==null&&n$===O0.alternate){W$=n$;break U}n$=W$(n$),O0=W$(O0)}W$=null}else W$=null;k0!==null&&PR(P0,W0,k0,W$,!1),O$!==null&&LU!==null&&PR(P0,LU,O$,W$,!0)}}}$:{if(W0=i?g0(i):window,k0=W0.nodeName&&W0.nodeName.toLowerCase(),k0==="select"||k0==="input"&&W0.type==="file")var z$=cq;else if(bq(W0))if(tP)z$=Ck;else{z$=qk;var E$=Ak}else k0=W0.nodeName,!k0||k0.toLowerCase()!=="input"||W0.type!=="checkbox"&&W0.type!=="radio"?i&&lY(i.elementType)&&(z$=cq):z$=Tk;if(z$&&(z$=z$($,i))){hq(P0,z$,Y,R0);break $}E$&&E$($,W0,i),$==="focusout"&&i&&W0.type==="number"&&i.memoizedProps.value!=null&&B$(W0,"number",W0.value)}switch(E$=i?g0(i):window,$){case"focusin":if(bq(E$)||E$.contentEditable==="true")VQ=E$,kW=i,kG=null;break;case"focusout":kG=kW=VQ=null;break;case"mousedown":gW=!0;break;case"contextmenu":case"mouseup":case"dragend":gW=!1,iq(P0,Y,R0);break;case"selectionchange":if(ax)break;case"keydown":case"keyup":iq(P0,Y,R0)}var A$;if(NW)$:{switch($){case"compositionstart":var H$="onCompositionStart";break $;case"compositionend":H$="onCompositionEnd";break $;case"compositionupdate":H$="onCompositionUpdate";break $}H$=void 0}else GQ?yq($,Y)&&(H$="onCompositionEnd"):$==="keydown"&&Y.keyCode===dP&&(H$="onCompositionStart");if(H$&&(nP&&Y.locale!=="ko"&&(GQ||H$!=="onCompositionStart"?H$==="onCompositionEnd"&&GQ&&(A$=wq()):(bI=R0,SW=("value"in bI)?bI.value:bI.textContent,GQ=!0)),E$=RZ(i,H$),0<E$.length&&(H$=new lP(H$,$,null,Y,R0),P0.push({event:H$,listeners:E$}),A$?H$.data=A$:(A$=uq(Y),A$!==null&&(H$.data=A$)))),A$=rx?Fk($,Y):Hk($,Y))H$=RZ(i,"onBeforeInput"),0<H$.length&&(E$=new gx("onBeforeInput","beforeinput",null,Y,R0),P0.push({event:E$,listeners:H$}),E$.data=A$);Zg(P0,$,i,Y,R0)}CR(P0,I)})}function WG($,I,Y){return{instance:$,listener:I,currentTarget:Y}}function RZ($,I){for(var Y=I+"Capture",W=[];$!==null;){var A=$,R=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||R===null||(A=dY($,Y),A!=null&&W.unshift(WG($,A,R)),A=dY($,I),A!=null&&W.push(WG($,A,R))),$.tag===3)return W;$=$.return}return[]}function Og($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function PR($,I,Y,W,A){for(var R=I._reactName,g=[];Y!==null&&Y!==W;){var y=Y,d=y.alternate,i=y.stateNode;if(y=y.tag,d!==null&&d===W)break;y!==5&&y!==26&&y!==27||i===null||(d=i,A?(i=dY(Y,R),i!=null&&g.unshift(WG(Y,i,d))):A||(i=dY(Y,R),i!=null&&g.push(WG(Y,i,d)))),Y=Y.return}g.length!==0&&$.push({event:I,listeners:g})}function l8($,I){zk($,I),$!=="input"&&$!=="textarea"&&$!=="select"||I==null||I.value!==null||hP||(hP=!0,$==="select"&&I.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var Y={registrationNameDependencies:cX,possibleRegistrationNames:CW};lY($)||typeof I.is==="string"||Dk($,I,Y),I.contentEditable&&!I.suppressContentEditableWarning&&I.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function z6($,I,Y,W){I!==Y&&(Y=gI(Y),gI(I)!==Y&&(W[$]=I))}function zg($,I,Y){I.forEach(function(W){Y[SR(W)]=W==="style"?d8($):$.getAttribute(W)})}function A1($,I){I===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof I)}function ER($,I){return $=$.namespaceURI===cZ||$.namespaceURI===XQ?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=I,$.innerHTML}function gI($){return $0($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",A0($)),c($)),(typeof $==="string"?$:""+$).replace(Rw,`
176
+ `).replace(Pw,"")}function _R($,I){return I=gI(I),gI($)===I?!0:!1}function ZU($,I,Y,W,A,R){switch(Y){case"children":if(typeof W==="string")vV(W,I,!1),I==="body"||I==="textarea"&&W===""||pY($,W);else if(typeof W==="number"||typeof W==="bigint")vV(""+W,I,!1),I!=="body"&&pY($,""+W);break;case"className":E0($,"class",W);break;case"tabIndex":E0($,"tabindex",W);break;case"dir":case"role":case"viewBox":case"width":case"height":E0($,Y,W);break;case"style":Nq($,W,R);break;case"data":if(I!=="object"){E0($,"data",W);break}case"src":case"href":if(W===""&&(I!=="a"||Y!=="href")){Y==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Y,Y):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Y,Y),$.removeAttribute(Y);break}if(W==null||typeof W==="function"||typeof W==="symbol"||typeof W==="boolean"){$.removeAttribute(Y);break}n(W,Y),W=mY(""+W),$.setAttribute(Y,W);break;case"action":case"formAction":if(W!=null&&(I==="form"?Y==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof W==="function"&&(A.encType==null&&A.method==null||vO||(vO=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),A.target==null||jO||(jO=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):I==="input"||I==="button"?Y==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):I!=="input"||A.type==="submit"||A.type==="image"||SO?I!=="button"||A.type==null||A.type==="submit"||SO?typeof W==="function"&&(A.name==null||E_||(E_=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),A.formEncType==null&&A.formMethod==null||vO||(vO=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),A.formTarget==null||jO||(jO=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(SO=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(SO=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Y==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof W==="function"){$.setAttribute(Y,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R==="function"&&(Y==="formAction"?(I!=="input"&&ZU($,I,"name",A.name,A,null),ZU($,I,"formEncType",A.formEncType,A,null),ZU($,I,"formMethod",A.formMethod,A,null),ZU($,I,"formTarget",A.formTarget,A,null)):(ZU($,I,"encType",A.encType,A,null),ZU($,I,"method",A.method,A,null),ZU($,I,"target",A.target,A,null)));if(W==null||typeof W==="symbol"||typeof W==="boolean"){$.removeAttribute(Y);break}n(W,Y),W=mY(""+W),$.setAttribute(Y,W);break;case"onClick":W!=null&&(typeof W!=="function"&&A1(Y,W),$.onclick=c1);break;case"onScroll":W!=null&&(typeof W!=="function"&&A1(Y,W),d$("scroll",$));break;case"onScrollEnd":W!=null&&(typeof W!=="function"&&A1(Y,W),d$("scrollend",$));break;case"dangerouslySetInnerHTML":if(W!=null){if(typeof W!=="object"||!("__html"in W))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Y=W.__html,Y!=null){if(A.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Y}}break;case"multiple":$.multiple=W&&typeof W!=="function"&&typeof W!=="symbol";break;case"muted":$.muted=W&&typeof W!=="function"&&typeof W!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(W==null||typeof W==="function"||typeof W==="boolean"||typeof W==="symbol"){$.removeAttribute("xlink:href");break}n(W,Y),Y=mY(""+W),$.setAttributeNS(JJ,"xlink:href",Y);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":W!=null&&typeof W!=="function"&&typeof W!=="symbol"?(n(W,Y),$.setAttribute(Y,""+W)):$.removeAttribute(Y);break;case"inert":W!==""||BO[Y]||(BO[Y]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Y));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":W&&typeof W!=="function"&&typeof W!=="symbol"?$.setAttribute(Y,""):$.removeAttribute(Y);break;case"capture":case"download":W===!0?$.setAttribute(Y,""):W!==!1&&W!=null&&typeof W!=="function"&&typeof W!=="symbol"?(n(W,Y),$.setAttribute(Y,W)):$.removeAttribute(Y);break;case"cols":case"rows":case"size":case"span":W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&!isNaN(W)&&1<=W?(n(W,Y),$.setAttribute(Y,W)):$.removeAttribute(Y);break;case"rowSpan":case"start":W==null||typeof W==="function"||typeof W==="symbol"||isNaN(W)?$.removeAttribute(Y):(n(W,Y),$.setAttribute(Y,W));break;case"popover":d$("beforetoggle",$),d$("toggle",$),G0($,"popover",W);break;case"xlinkActuate":_0($,JJ,"xlink:actuate",W);break;case"xlinkArcrole":_0($,JJ,"xlink:arcrole",W);break;case"xlinkRole":_0($,JJ,"xlink:role",W);break;case"xlinkShow":_0($,JJ,"xlink:show",W);break;case"xlinkTitle":_0($,JJ,"xlink:title",W);break;case"xlinkType":_0($,JJ,"xlink:type",W);break;case"xmlBase":_0($,_9,"xml:base",W);break;case"xmlLang":_0($,_9,"xml:lang",W);break;case"xmlSpace":_0($,_9,"xml:space",W);break;case"is":R!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),G0($,"is",W);break;case"innerText":case"textContent":break;case"popoverTarget":__||W==null||typeof W!=="object"||(__=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",W));default:!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"?(Y=kq(Y),G0($,Y,W)):cX.hasOwnProperty(Y)&&W!=null&&typeof W!=="function"&&A1(Y,W)}}function m8($,I,Y,W,A,R){switch(Y){case"style":Nq($,W,R);break;case"dangerouslySetInnerHTML":if(W!=null){if(typeof W!=="object"||!("__html"in W))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Y=W.__html,Y!=null){if(A.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Y}}break;case"children":typeof W==="string"?pY($,W):(typeof W==="number"||typeof W==="bigint")&&pY($,""+W);break;case"onScroll":W!=null&&(typeof W!=="function"&&A1(Y,W),d$("scroll",$));break;case"onScrollEnd":W!=null&&(typeof W!=="function"&&A1(Y,W),d$("scrollend",$));break;case"onClick":W!=null&&(typeof W!=="function"&&A1(Y,W),$.onclick=c1);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(cX.hasOwnProperty(Y))W!=null&&typeof W!=="function"&&A1(Y,W);else $:{if(Y[0]==="o"&&Y[1]==="n"&&(A=Y.endsWith("Capture"),I=Y.slice(2,A?Y.length-7:void 0),R=$[B6]||null,R=R!=null?R[Y]:null,typeof R==="function"&&$.removeEventListener(I,R,A),typeof W==="function")){typeof R!=="function"&&R!==null&&(Y in $?$[Y]=null:$.hasAttribute(Y)&&$.removeAttribute(Y)),$.addEventListener(I,W,A);break $}Y in $?$[Y]=W:W===!0?$.setAttribute(Y,""):G0($,Y,W)}}}function A6($,I,Y){switch(l8(I,Y),I){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":d$("error",$),d$("load",$);var W=!1,A=!1,R;for(R in Y)if(Y.hasOwnProperty(R)){var g=Y[R];if(g!=null)switch(R){case"src":W=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ZU($,I,R,g,Y,null)}}A&&ZU($,I,"srcSet",Y.srcSet,Y,null),W&&ZU($,I,"src",Y.src,Y,null);return;case"input":WU("input",Y),d$("invalid",$);var y=R=g=A=null,d=null,i=null;for(W in Y)if(Y.hasOwnProperty(W)){var R0=Y[W];if(R0!=null)switch(W){case"name":A=R0;break;case"type":g=R0;break;case"checked":d=R0;break;case"defaultChecked":i=R0;break;case"value":R=R0;break;case"defaultValue":y=R0;break;case"children":case"dangerouslySetInnerHTML":if(R0!=null)throw Error(I+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ZU($,I,W,R0,Y,null)}}X$($,Y),_U($,R,y,d,i,g,A,!1);return;case"select":WU("select",Y),d$("invalid",$),W=g=R=null;for(A in Y)if(Y.hasOwnProperty(A)&&(y=Y[A],y!=null))switch(A){case"value":R=y;break;case"defaultValue":g=y;break;case"multiple":W=y;default:ZU($,I,A,y,Y,null)}cU($,Y),I=R,Y=g,$.multiple=!!W,I!=null?o$($,!!W,I,!1):Y!=null&&o$($,!!W,Y,!0);return;case"textarea":WU("textarea",Y),d$("invalid",$),R=A=W=null;for(g in Y)if(Y.hasOwnProperty(g)&&(y=Y[g],y!=null))switch(g){case"value":W=y;break;case"defaultValue":A=y;break;case"children":R=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ZU($,I,g,y,Y,null)}pU($,Y),mU($,W,A,R);return;case"option":j$($,Y);for(d in Y)if(Y.hasOwnProperty(d)&&(W=Y[d],W!=null))switch(d){case"selected":$.selected=W&&typeof W!=="function"&&typeof W!=="symbol";break;default:ZU($,I,d,W,Y,null)}return;case"dialog":d$("beforetoggle",$),d$("toggle",$),d$("cancel",$),d$("close",$);break;case"iframe":case"object":d$("load",$);break;case"video":case"audio":for(W=0;W<V2.length;W++)d$(V2[W],$);break;case"image":d$("error",$),d$("load",$);break;case"details":d$("toggle",$);break;case"embed":case"source":case"link":d$("error",$),d$("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(i in Y)if(Y.hasOwnProperty(i)&&(W=Y[i],W!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(I+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ZU($,I,i,W,Y,null)}return;default:if(lY(I)){for(R0 in Y)Y.hasOwnProperty(R0)&&(W=Y[R0],W!==void 0&&m8($,I,R0,W,Y,void 0));return}}for(y in Y)Y.hasOwnProperty(y)&&(W=Y[y],W!=null&&ZU($,I,y,W,Y,null))}function Kg($,I,Y,W){switch(l8(I,W),I){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,R=null,g=null,y=null,d=null,i=null,R0=null;for(k0 in Y){var P0=Y[k0];if(Y.hasOwnProperty(k0)&&P0!=null)switch(k0){case"checked":break;case"value":break;case"defaultValue":d=P0;default:W.hasOwnProperty(k0)||ZU($,I,k0,null,W,P0)}}for(var W0 in W){var k0=W[W0];if(P0=Y[W0],W.hasOwnProperty(W0)&&(k0!=null||P0!=null))switch(W0){case"type":R=k0;break;case"name":A=k0;break;case"checked":i=k0;break;case"defaultChecked":R0=k0;break;case"value":g=k0;break;case"defaultValue":y=k0;break;case"children":case"dangerouslySetInnerHTML":if(k0!=null)throw Error(I+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0!==P0&&ZU($,I,W0,k0,W,P0)}}I=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,W=W.type==="checkbox"||W.type==="radio"?W.checked!=null:W.value!=null,I||!W||P_||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),P_=!0),!I||W||R_||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),R_=!0),e0($,g,y,d,i,R0,R,A);return;case"select":k0=g=y=W0=null;for(R in Y)if(d=Y[R],Y.hasOwnProperty(R)&&d!=null)switch(R){case"value":break;case"multiple":k0=d;default:W.hasOwnProperty(R)||ZU($,I,R,null,W,d)}for(A in W)if(R=W[A],d=Y[A],W.hasOwnProperty(A)&&(R!=null||d!=null))switch(A){case"value":W0=R;break;case"defaultValue":y=R;break;case"multiple":g=R;default:R!==d&&ZU($,I,A,R,W,d)}W=y,I=g,Y=k0,W0!=null?o$($,!!I,W0,!1):!!Y!==!!I&&(W!=null?o$($,!!I,W,!0):o$($,!!I,I?[]:"",!1));return;case"textarea":k0=W0=null;for(y in Y)if(A=Y[y],Y.hasOwnProperty(y)&&A!=null&&!W.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ZU($,I,y,null,W,A)}for(g in W)if(A=W[g],R=Y[g],W.hasOwnProperty(g)&&(A!=null||R!=null))switch(g){case"value":W0=A;break;case"defaultValue":k0=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:A!==R&&ZU($,I,g,A,W,R)}lU($,W0,k0);return;case"option":for(var O$ in Y)if(W0=Y[O$],Y.hasOwnProperty(O$)&&W0!=null&&!W.hasOwnProperty(O$))switch(O$){case"selected":$.selected=!1;break;default:ZU($,I,O$,null,W,W0)}for(d in W)if(W0=W[d],k0=Y[d],W.hasOwnProperty(d)&&W0!==k0&&(W0!=null||k0!=null))switch(d){case"selected":$.selected=W0&&typeof W0!=="function"&&typeof W0!=="symbol";break;default:ZU($,I,d,W0,W,k0)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var W$ in Y)W0=Y[W$],Y.hasOwnProperty(W$)&&W0!=null&&!W.hasOwnProperty(W$)&&ZU($,I,W$,null,W,W0);for(i in W)if(W0=W[i],k0=Y[i],W.hasOwnProperty(i)&&W0!==k0&&(W0!=null||k0!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(W0!=null)throw Error(I+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ZU($,I,i,W0,W,k0)}return;default:if(lY(I)){for(var LU in Y)W0=Y[LU],Y.hasOwnProperty(LU)&&W0!==void 0&&!W.hasOwnProperty(LU)&&m8($,I,LU,void 0,W,W0);for(R0 in W)W0=W[R0],k0=Y[R0],!W.hasOwnProperty(R0)||W0===k0||W0===void 0&&k0===void 0||m8($,I,R0,W0,W,k0);return}}for(var n$ in Y)W0=Y[n$],Y.hasOwnProperty(n$)&&W0!=null&&!W.hasOwnProperty(n$)&&ZU($,I,n$,null,W,W0);for(P0 in W)W0=W[P0],k0=Y[P0],!W.hasOwnProperty(P0)||W0===k0||W0==null&&k0==null||ZU($,I,P0,W0,W,k0)}function SR($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function d8($){var I={};$=$.style;for(var Y=0;Y<$.length;Y++){var W=$[Y];I[W]=$.getPropertyValue(W)}return I}function jR($,I,Y){if(I!=null&&typeof I!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var W,A=W="",R;for(R in I)if(I.hasOwnProperty(R)){var g=I[R];g!=null&&typeof g!=="boolean"&&g!==""&&(R.indexOf("--")===0?(H0(g,R),W+=A+R+":"+(""+g).trim()):typeof g!=="number"||g===0||uP.has(R)?(H0(g,R),W+=A+R.replace(gP,"-$1").toLowerCase().replace(xP,"-ms-")+":"+(""+g).trim()):W+=A+R.replace(gP,"-$1").toLowerCase().replace(xP,"-ms-")+":"+g+"px",A=";")}W=W||null,I=$.getAttribute("style"),I!==W&&(W=gI(W),gI(I)!==W&&(Y.style=d8($)))}}function E4($,I,Y,W,A,R){if(A.delete(Y),$=$.getAttribute(Y),$===null)switch(typeof W){case"undefined":case"function":case"symbol":case"boolean":return}else if(W!=null)switch(typeof W){case"function":case"symbol":case"boolean":break;default:if(n(W,I),$===""+W)return}z6(I,$,W,R)}function vR($,I,Y,W,A,R){if(A.delete(Y),$=$.getAttribute(Y),$===null){switch(typeof W){case"function":case"symbol":return}if(!W)return}else switch(typeof W){case"function":case"symbol":break;default:if(W)return}z6(I,$,W,R)}function n8($,I,Y,W,A,R){if(A.delete(Y),$=$.getAttribute(Y),$===null)switch(typeof W){case"undefined":case"function":case"symbol":return}else if(W!=null)switch(typeof W){case"function":case"symbol":break;default:if(n(W,Y),$===""+W)return}z6(I,$,W,R)}function BR($,I,Y,W,A,R){if(A.delete(Y),$=$.getAttribute(Y),$===null)switch(typeof W){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(W))return}else if(W!=null)switch(typeof W){case"function":case"symbol":case"boolean":break;default:if(!isNaN(W)&&(n(W,I),$===""+W))return}z6(I,$,W,R)}function o8($,I,Y,W,A,R){if(A.delete(Y),$=$.getAttribute(Y),$===null)switch(typeof W){case"undefined":case"function":case"symbol":case"boolean":return}else if(W!=null)switch(typeof W){case"function":case"symbol":case"boolean":break;default:if(n(W,I),Y=mY(""+W),$===Y)return}z6(I,$,W,R)}function NR($,I,Y,W){for(var A={},R=new Set,g=$.attributes,y=0;y<g.length;y++)switch(g[y].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:R.add(g[y].name)}if(lY(I)){for(var d in Y)if(Y.hasOwnProperty(d)){var i=Y[d];if(i!=null){if(cX.hasOwnProperty(d))typeof i!=="function"&&A1(d,i);else if(Y.suppressHydrationWarning!==!0)switch(d){case"children":typeof i!=="string"&&typeof i!=="number"||z6("children",$.textContent,i,A);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=$.innerHTML,i=i?i.__html:void 0,i!=null&&(i=ER($,i),z6(d,g,i,A));continue;case"style":R.delete(d),jR($,i,A);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":R.delete(d.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",d);continue;case"className":R.delete("class"),g=r($,"class",i),z6("className",g,i,A);continue;default:W.context===ZI&&I!=="svg"&&I!=="math"?R.delete(d.toLowerCase()):R.delete(d),g=r($,d,i),z6(d,g,i,A)}}}}else for(i in Y)if(Y.hasOwnProperty(i)&&(d=Y[i],d!=null)){if(cX.hasOwnProperty(i))typeof d!=="function"&&A1(i,d);else if(Y.suppressHydrationWarning!==!0)switch(i){case"children":typeof d!=="string"&&typeof d!=="number"||z6("children",$.textContent,d,A);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=$.innerHTML,d=d?d.__html:void 0,d!=null&&(d=ER($,d),g!==d&&(A[i]={__html:g}));continue;case"className":E4($,i,"class",d,R,A);continue;case"tabIndex":E4($,i,"tabindex",d,R,A);continue;case"style":R.delete(i),jR($,d,A);continue;case"multiple":R.delete(i),z6(i,$.multiple,d,A);continue;case"muted":R.delete(i),z6(i,$.muted,d,A);continue;case"autoFocus":R.delete("autofocus"),z6(i,$.autofocus,d,A);continue;case"data":if(I!=="object"){R.delete(i),g=$.getAttribute("data"),z6(i,g,d,A);continue}case"src":case"href":if(!(d!==""||I==="a"&&i==="href"||I==="object"&&i==="data")){i==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i);continue}o8($,i,i,d,R,A);continue;case"action":case"formAction":if(g=$.getAttribute(i),typeof d==="function"){R.delete(i.toLowerCase()),i==="formAction"?(R.delete("name"),R.delete("formenctype"),R.delete("formmethod"),R.delete("formtarget")):(R.delete("enctype"),R.delete("method"),R.delete("target"));continue}else if(g===Ew){R.delete(i.toLowerCase()),z6(i,"function",d,A);continue}o8($,i,i.toLowerCase(),d,R,A);continue;case"xlinkHref":o8($,i,"xlink:href",d,R,A);continue;case"contentEditable":n8($,i,"contenteditable",d,R,A);continue;case"spellCheck":n8($,i,"spellcheck",d,R,A);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n8($,i,i,d,R,A);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":vR($,i,i.toLowerCase(),d,R,A);continue;case"capture":case"download":$:{y=$;var R0=g=i,P0=A;if(R.delete(R0),y=y.getAttribute(R0),y===null)switch(typeof d){case"undefined":case"function":case"symbol":break $;default:if(d===!1)break $}else if(d!=null)switch(typeof d){case"function":case"symbol":break;case"boolean":if(d===!0&&y==="")break $;break;default:if(n(d,g),y===""+d)break $}z6(g,y,d,P0)}continue;case"cols":case"rows":case"size":case"span":$:{if(y=$,R0=g=i,P0=A,R.delete(R0),y=y.getAttribute(R0),y===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(d)||1>d)break $}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(d)||1>d)&&(n(d,g),y===""+d))break $}z6(g,y,d,P0)}continue;case"rowSpan":BR($,i,"rowspan",d,R,A);continue;case"start":BR($,i,i,d,R,A);continue;case"xHeight":E4($,i,"x-height",d,R,A);continue;case"xlinkActuate":E4($,i,"xlink:actuate",d,R,A);continue;case"xlinkArcrole":E4($,i,"xlink:arcrole",d,R,A);continue;case"xlinkRole":E4($,i,"xlink:role",d,R,A);continue;case"xlinkShow":E4($,i,"xlink:show",d,R,A);continue;case"xlinkTitle":E4($,i,"xlink:title",d,R,A);continue;case"xlinkType":E4($,i,"xlink:type",d,R,A);continue;case"xmlBase":E4($,i,"xml:base",d,R,A);continue;case"xmlLang":E4($,i,"xml:lang",d,R,A);continue;case"xmlSpace":E4($,i,"xml:space",d,R,A);continue;case"inert":d!==""||BO[i]||(BO[i]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",i)),vR($,i,i,d,R,A);continue;default:if(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"){y=kq(i),g=!1,W.context===ZI&&I!=="svg"&&I!=="math"?R.delete(y.toLowerCase()):(R0=i.toLowerCase(),R0=pZ.hasOwnProperty(R0)?pZ[R0]||null:null,R0!==null&&R0!==i&&(g=!0,R.delete(R0)),R.delete(y));$:if(R0=$,P0=y,y=d,a0(P0))if(R0.hasAttribute(P0))R0=R0.getAttribute(P0),n(y,P0),y=R0===""+y?y:R0;else{switch(typeof y){case"function":case"symbol":break $;case"boolean":if(R0=P0.toLowerCase().slice(0,5),R0!=="data-"&&R0!=="aria-")break $}y=y===void 0?void 0:null}else y=void 0;g||z6(i,y,d,A)}}}return 0<R.size&&Y.suppressHydrationWarning!==!0&&zg($,R,A),Object.keys(A).length===0?null:A}function Dg($,I){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+I+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+I+" "+$[$.length-1]}}function kR($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Wg(){if(typeof performance.getEntriesByType==="function"){for(var $=0,I=0,Y=performance.getEntriesByType("resource"),W=0;W<Y.length;W++){var A=Y[W],R=A.transferSize,g=A.initiatorType,y=A.duration;if(R&&y&&kR(g)){g=0,y=A.responseEnd;for(W+=1;W<Y.length;W++){var d=Y[W],i=d.startTime;if(i>y)break;var{transferSize:R0,initiatorType:P0}=d;R0&&kR(P0)&&(d=d.responseEnd,g+=R0*(d<y?1:(y-i)/(d-i)))}if(--W,I+=8*(R+g)/(A.duration/1000),$++,10<$)break}}if(0<$)return I/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function PZ($){return $.nodeType===9?$:$.ownerDocument}function gR($){switch($){case XQ:return gQ;case cZ:return kO;default:return ZI}}function xR($,I){if($===ZI)switch(I){case"svg":return gQ;case"math":return kO;default:return ZI}return $===gQ&&I==="foreignObject"?ZI:$}function i8($,I){return $==="textarea"||$==="noscript"||typeof I.children==="string"||typeof I.children==="number"||typeof I.children==="bigint"||typeof I.dangerouslySetInnerHTML==="object"&&I.dangerouslySetInnerHTML!==null&&I.dangerouslySetInnerHTML.__html!=null}function Fg(){var $=window.event;if($&&$.type==="popstate"){if($===B9)return!1;return B9=$,!0}return B9=null,!1}function FG(){var $=window.event;return $&&$!==z2?$.type:null}function HG(){var $=window.event;return $&&$!==z2?$.timeStamp:-1.1}function Hg($){setTimeout(function(){throw $})}function Lg($,I,Y){switch(I){case"button":case"input":case"select":case"textarea":Y.autoFocus&&$.focus();break;case"img":Y.src?$.src=Y.src:Y.srcSet&&($.srcset=Y.srcSet)}}function Mg(){}function Ag($,I,Y,W){Kg($,I,Y,W),$[B6]=W}function wR($){pY($,"")}function qg($,I,Y){$.nodeValue=Y}function fR($){if(!$.__reactWarnedAboutChildrenConflict){var I=$[B6]||null;if(I!==null){var Y=F$($);Y!==null&&(typeof I.children==="string"||typeof I.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,J0(Y,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):I.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,J0(Y,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function xI($){return $==="head"}function Tg($,I){$.removeChild(I)}function Cg($,I){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(I)}function yR($,I){var Y=I,W=0;do{var A=Y.nextSibling;if($.removeChild(Y),A&&A.nodeType===8)if(Y=A.data,Y===O2||Y===NO){if(W===0){$.removeChild(A),aJ(I);return}W--}else if(Y===Z2||Y===JX||Y===YJ||Y===kQ||Y===QJ)W++;else if(Y===Sw)LG($.ownerDocument.documentElement);else if(Y===vw){Y=$.ownerDocument.head,LG(Y);for(var R=Y.firstChild;R;){var{nextSibling:g,nodeName:y}=R;R[PG]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&R.rel.toLowerCase()==="stylesheet"||Y.removeChild(R),R=g}}else Y===jw&&LG($.ownerDocument.body);Y=A}while(Y);aJ(I)}function uR($,I){var Y=$;$=0;do{var W=Y.nextSibling;if(Y.nodeType===1?I?(Y._stashedDisplay=Y.style.display,Y.style.display="none"):(Y.style.display=Y._stashedDisplay||"",Y.getAttribute("style")===""&&Y.removeAttribute("style")):Y.nodeType===3&&(I?(Y._stashedText=Y.nodeValue,Y.nodeValue=""):Y.nodeValue=Y._stashedText||""),W&&W.nodeType===8)if(Y=W.data,Y===O2)if($===0)break;else $--;else Y!==Z2&&Y!==JX&&Y!==YJ&&Y!==kQ||$++;Y=W}while(Y)}function Rg($){uR($,!0)}function Pg($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function Eg($){$.nodeValue=""}function _g($){uR($,!1)}function Sg($,I){I=I[Bw],I=I!==void 0&&I!==null&&I.hasOwnProperty("display")?I.display:null,$.style.display=I==null||typeof I==="boolean"?"":(""+I).trim()}function jg($,I){$.nodeValue=I}function r8($){var I=$.firstChild;I&&I.nodeType===10&&(I=I.nextSibling);for(;I;){var Y=I;switch(I=I.nextSibling,Y.nodeName){case"HTML":case"HEAD":case"BODY":r8(Y),S0(Y);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Y.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Y)}}function vg($,I,Y,W){for(;$.nodeType===1;){var A=Y;if($.nodeName.toLowerCase()!==I.toLowerCase()){if(!W&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!W)if(I==="input"&&$.type==="hidden"){n(A.name,"name");var R=A.name==null?null:""+A.name;if(A.type==="hidden"&&$.getAttribute("name")===R)return $}else return $;else if(!$[PG])switch(I){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(R=$.getAttribute("rel"),R==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(R!==A.rel||$.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||$.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||$.getAttribute("title")!==(A.title==null?null:A.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(R=$.getAttribute("src"),(R!==(A.src==null?null:A.src)||$.getAttribute("type")!==(A.type==null?null:A.type)||$.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&R&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=O4($.nextSibling),$===null)break}return null}function Bg($,I,Y){if(I==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Y)return null;if($=O4($.nextSibling),$===null)return null}return $}function bR($,I){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!I)return null;if($=O4($.nextSibling),$===null)return null}return $}function t8($){return $.data===JX||$.data===YJ}function a8($){return $.data===kQ||$.data===JX&&$.ownerDocument.readyState!==j_}function Ng($,I){var Y=$.ownerDocument;if($.data===YJ)$._reactRetry=I;else if($.data!==JX||Y.readyState!==j_)I();else{var W=function(){I(),Y.removeEventListener("DOMContentLoaded",W)};Y.addEventListener("DOMContentLoaded",W),$._reactRetry=W}}function O4($){for(;$!=null;$=$.nextSibling){var I=$.nodeType;if(I===1||I===3)break;if(I===8){if(I=$.data,I===Z2||I===kQ||I===JX||I===YJ||I===QJ||I===S9||I===S_)break;if(I===O2||I===NO)return null}}return $}function hR($){if($.nodeType===1){for(var I=$.nodeName.toLowerCase(),Y={},W=$.attributes,A=0;A<W.length;A++){var R=W[A];Y[SR(R.name)]=R.name.toLowerCase()==="style"?d8($):R.value}return{type:I,props:Y}}return $.nodeType===8?$.data===QJ?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function cR($,I,Y){return Y===null||Y[_w]!==!0?($.nodeValue===I?$=null:(I=gI(I),$=gI($.nodeValue)===I?null:$.nodeValue),$):null}function s8($){$=$.nextSibling;for(var I=0;$;){if($.nodeType===8){var Y=$.data;if(Y===O2||Y===NO){if(I===0)return O4($.nextSibling);I--}else Y!==Z2&&Y!==kQ&&Y!==JX&&Y!==YJ&&Y!==QJ||I++}$=$.nextSibling}return null}function pR($){$=$.previousSibling;for(var I=0;$;){if($.nodeType===8){var Y=$.data;if(Y===Z2||Y===kQ||Y===JX||Y===YJ||Y===QJ){if(I===0)return $;I--}else Y!==O2&&Y!==NO||I++}$=$.previousSibling}return null}function kg($){aJ($)}function gg($){aJ($)}function xg($){aJ($)}function lR($,I,Y,W,A){switch(A&&ZD($,W.ancestorInfo),I=PZ(Y),$){case"html":if($=I.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=I.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=I.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function wg($,I,Y,W){if(!Y[uI]&&F$(Y)){var A=Y.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",A,A,A)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(A=Y.attributes;A.length;)Y.removeAttributeNode(A[0]);A6(Y,$,I),Y[q6]=W,Y[B6]=I}function LG($){for(var I=$.attributes;I.length;)$.removeAttributeNode(I[0]);S0($)}function EZ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function mR($,I,Y){var W=xQ;if(W&&typeof I==="string"&&I){var A=IU(I);A='link[rel="'+$+'"][href="'+A+'"]',typeof Y==="string"&&(A+='[crossorigin="'+Y+'"]'),x_.has(A)||(x_.add(A),$={rel:$,crossOrigin:Y,href:I},W.querySelector(A)===null&&(I=W.createElement("link"),A6(I,"link",$),K$(I),W.head.appendChild(I)))}}function dR($,I,Y,W){var A=(A=fI.current)?EZ(A):null;if(!A)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof Y.precedence==="string"&&typeof Y.href==="string"?(Y=rJ(Y.href),I=f0(A).hoistableStyles,W=I.get(Y),W||(W={type:"style",instance:null,count:0,state:null},I.set(Y,W)),W):{type:"void",instance:null,count:0,state:null};case"link":if(Y.rel==="stylesheet"&&typeof Y.href==="string"&&typeof Y.precedence==="string"){$=rJ(Y.href);var R=f0(A).hoistableStyles,g=R.get($);if(!g&&(A=A.ownerDocument||A,g={type:"stylesheet",instance:null,count:0,state:{loading:VJ,preload:null}},R.set($,g),(R=A.querySelector(MG($)))&&!R._p&&(g.instance=R,g.state.loading=K2|f4),!y4.has($))){var y={rel:"preload",as:"style",href:Y.href,crossOrigin:Y.crossOrigin,integrity:Y.integrity,media:Y.media,hrefLang:Y.hrefLang,referrerPolicy:Y.referrerPolicy};y4.set($,y),R||fg(A,$,y,g.state)}if(I&&W===null)throw Y=`
177
+
178
+ - `+_Z(I)+`
179
+ + `+_Z(Y),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+Y);return g}if(I&&W!==null)throw Y=`
180
+
181
+ - `+_Z(I)+`
182
+ + `+_Z(Y),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+Y);return null;case"script":return I=Y.async,Y=Y.src,typeof Y==="string"&&I&&typeof I!=="function"&&typeof I!=="symbol"?(Y=tJ(Y),I=f0(A).hoistableScripts,W=I.get(Y),W||(W={type:"script",instance:null,count:0,state:null},I.set(Y,W)),W):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function _Z($){var I=0,Y="<link";return typeof $.rel==="string"?(I++,Y+=' rel="'+$.rel+'"'):d4.call($,"rel")&&(I++,Y+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(I++,Y+=' href="'+$.href+'"'):d4.call($,"href")&&(I++,Y+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(I++,Y+=' precedence="'+$.precedence+'"'):d4.call($,"precedence")&&(I++,Y+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>I&&(Y+=" ..."),Y+" />"}function rJ($){return'href="'+IU($)+'"'}function MG($){return'link[rel="stylesheet"]['+$+"]"}function nR($){return b$({},$,{"data-precedence":$.precedence,precedence:null})}function fg($,I,Y,W){$.querySelector('link[rel="preload"][as="style"]['+I+"]")?W.loading=K2:(I=$.createElement("link"),W.preload=I,I.addEventListener("load",function(){return W.loading|=K2}),I.addEventListener("error",function(){return W.loading|=k_}),A6(I,"link",Y),K$(I),$.head.appendChild(I))}function tJ($){return'[src="'+IU($)+'"]'}function AG($){return"script[async]"+$}function oR($,I,Y){if(I.count++,I.instance===null)switch(I.type){case"style":var W=$.querySelector('style[data-href~="'+IU(Y.href)+'"]');if(W)return I.instance=W,K$(W),W;var A=b$({},Y,{"data-href":Y.href,"data-precedence":Y.precedence,href:null,precedence:null});return W=($.ownerDocument||$).createElement("style"),K$(W),A6(W,"style",A),SZ(W,Y.precedence,$),I.instance=W;case"stylesheet":A=rJ(Y.href);var R=$.querySelector(MG(A));if(R)return I.state.loading|=f4,I.instance=R,K$(R),R;W=nR(Y),(A=y4.get(A))&&e8(W,A),R=($.ownerDocument||$).createElement("link"),K$(R);var g=R;return g._p=new Promise(function(y,d){g.onload=y,g.onerror=d}),A6(R,"link",W),I.state.loading|=f4,SZ(R,Y.precedence,$),I.instance=R;case"script":if(R=tJ(Y.src),A=$.querySelector(AG(R)))return I.instance=A,K$(A),A;if(W=Y,A=y4.get(R))W=b$({},Y),$W(W,A);return $=$.ownerDocument||$,A=$.createElement("script"),K$(A),A6(A,"link",W),$.head.appendChild(A),I.instance=A;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+I.type+'". this is a bug in React.')}else I.type==="stylesheet"&&(I.state.loading&f4)===VJ&&(W=I.instance,I.state.loading|=f4,SZ(W,Y.precedence,$));return I.instance}function SZ($,I,Y){for(var W=Y.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=W.length?W[W.length-1]:null,R=A,g=0;g<W.length;g++){var y=W[g];if(y.dataset.precedence===I)R=y;else if(R!==A)break}R?R.parentNode.insertBefore($,R.nextSibling):(I=Y.nodeType===9?Y.head:Y,I.insertBefore($,I.firstChild))}function e8($,I){$.crossOrigin==null&&($.crossOrigin=I.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=I.referrerPolicy),$.title==null&&($.title=I.title)}function $W($,I){$.crossOrigin==null&&($.crossOrigin=I.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=I.referrerPolicy),$.integrity==null&&($.integrity=I.integrity)}function iR($,I,Y){if(gO===null){var W=new Map,A=gO=new Map;A.set(Y,W)}else A=gO,W=A.get(Y),W||(W=new Map,A.set(Y,W));if(W.has($))return W;W.set($,null),Y=Y.getElementsByTagName($);for(A=0;A<Y.length;A++){var R=Y[A];if(!(R[PG]||R[q6]||$==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!==XQ){var g=R.getAttribute(I)||"";g=$+g;var y=W.get(g);y?y.push(R):W.set(g,[R])}}return W}function rR($,I,Y){$=$.ownerDocument||$,$.head.insertBefore(Y,I==="title"?$.querySelector("head > title"):null)}function yg($,I,Y){var W=!Y.ancestorInfo.containerTagInScope;if(Y.context===gQ||I.itemProp!=null)return!W||I.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof I.precedence!=="string"||typeof I.href!=="string"||I.href===""){W&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof I.rel!=="string"||typeof I.href!=="string"||I.href===""||I.onLoad||I.onError){if(I.rel==="stylesheet"&&typeof I.precedence==="string"){$=I.href;var{onError:A,disabled:R}=I;Y=[],I.onLoad&&Y.push("`onLoad`"),A&&Y.push("`onError`"),R!=null&&Y.push("`disabled`"),A=Dg(Y,"and"),A+=Y.length===1?" prop":" props",R=Y.length===1?"an "+A:"the "+A,Y.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,R,A)}W&&(typeof I.rel!=="string"||typeof I.href!=="string"||I.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(I.onError||I.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(I.rel){case"stylesheet":return $=I.precedence,I=I.disabled,typeof $!=="string"&&W&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&I==null;default:return!0}case"script":if($=I.async&&typeof I.async!=="function"&&typeof I.async!=="symbol",!$||I.onLoad||I.onError||!I.src||typeof I.src!=="string"){W&&($?I.onLoad||I.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":W&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function tR($){return $.type==="stylesheet"&&($.state.loading&g_)===VJ?!1:!0}function ug($,I,Y,W){if(Y.type==="stylesheet"&&(typeof W.media!=="string"||matchMedia(W.media).matches!==!1)&&(Y.state.loading&f4)===VJ){if(Y.instance===null){var A=rJ(W.href),R=I.querySelector(MG(A));if(R){I=R._p,I!==null&&typeof I==="object"&&typeof I.then==="function"&&($.count++,$=jZ.bind($),I.then($,$)),Y.state.loading|=f4,Y.instance=R,K$(R);return}R=I.ownerDocument||I,W=nR(W),(A=y4.get(A))&&e8(W,A),R=R.createElement("link"),K$(R);var g=R;g._p=new Promise(function(y,d){g.onload=y,g.onerror=d}),A6(R,"link",W),Y.instance=R}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Y,I),(I=Y.state.preload)&&(Y.state.loading&g_)===VJ&&($.count++,Y=jZ.bind($),I.addEventListener("load",Y),I.addEventListener("error",Y))}}function bg($,I){return $.stylesheets&&$.count===0&&vZ($,$.stylesheets),0<$.count||0<$.imgCount?function(Y){var W=setTimeout(function(){if($.stylesheets&&vZ($,$.stylesheets),$.unsuspend){var R=$.unsuspend;$.unsuspend=null,R()}},gw+I);0<$.imgBytes&&k9===0&&(k9=125*Wg()*ww);var A=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&vZ($,$.stylesheets),$.unsuspend)){var R=$.unsuspend;$.unsuspend=null,R()}},($.imgBytes>k9?50:xw)+I);return $.unsuspend=Y,function(){$.unsuspend=null,clearTimeout(W),clearTimeout(A)}}:null}function jZ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vZ(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function vZ($,I){$.stylesheets=null,$.unsuspend!==null&&($.count++,xO=new Map,I.forEach(hg,$),xO=null,jZ.call($))}function hg($,I){if(!(I.state.loading&f4)){var Y=xO.get($);if(Y)var W=Y.get(g9);else{Y=new Map,xO.set($,Y);for(var A=$.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<A.length;R++){var g=A[R];if(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")Y.set(g.dataset.precedence,g),W=g}W&&Y.set(g9,W)}A=I.instance,g=A.getAttribute("data-precedence"),R=Y.get(g)||W,R===W&&Y.set(g9,A),Y.set(g,A),this.count++,W=jZ.bind(this),A.addEventListener("load",W),A.addEventListener("error",W),R?R.parentNode.insertBefore(A,R.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(A,$.firstChild)),I.state.loading|=f4}}function cg($,I,Y,W,A,R,g,y,d){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=GJ,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=p0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=p0(0),this.hiddenUpdates=p0(null),this.identifierPrefix=W,this.onUncaughtError=A,this.onCaughtError=R,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(I=0;31>I;I++)$.push(new Set);this._debugRootType=Y?"hydrateRoot()":"createRoot()"}function aR($,I,Y,W,A,R,g,y,d,i,R0,P0){return $=new cg($,I,Y,g,d,i,R0,P0,y),I=Yw,R===!0&&(I|=_6|o4),I|=g$,R=P(3,null,null,I),$.current=R,R.stateNode=$,I=jD(),xX(I),$.pooledCache=I,xX(I),R.memoizedState={element:W,isDehydrated:Y,cache:I},gD(R),$}function sR($){if(!$)return pI;return $=pI,$}function UW($,I,Y,W,A,R){if(E6&&typeof E6.onScheduleFiberRoot==="function")try{E6.onScheduleFiberRoot(UQ,W,Y)}catch(g){R1||(R1=!0,console.error("React instrumentation encountered an error: %o",g))}A=sR(A),W.context===null?W.context=A:W.pendingContext=A,C1&&K4!==null&&!u_&&(u_=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
+
184
+ Check the render method of %s.`,o(K4)||"Unknown")),W=SI(I),W.payload={element:Y},R=R===void 0?null:R,R!==null&&(typeof R!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",R),W.callback=R),Y=jI($,W,I),Y!==null&&(G1(I,"root.render()",null),yU(Y,$,I),eY(Y,$,I))}function eR($,I){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Y=$.retryLane;$.retryLane=Y!==0&&Y<I?Y:I}}function IW($,I){eR($,I),($=$.alternate)&&eR($,I)}function $P($){if($.tag===13||$.tag===31){var I=P6($,67108864);I!==null&&yU(I,$,67108864),IW($,67108864)}}function UP($){if($.tag===13||$.tag===31){var I=Z4($);I=r0(I);var Y=P6($,I);Y!==null&&yU(Y,$,I),IW($,I)}}function pg(){return K4}function lg($,I,Y,W){var A=y0.T;y0.T=null;var R=UU.p;try{UU.p=D4,XW($,I,Y,W)}finally{UU.p=R,y0.T=A}}function mg($,I,Y,W){var A=y0.T;y0.T=null;var R=UU.p;try{UU.p=n4,XW($,I,Y,W)}finally{UU.p=R,y0.T=A}}function XW($,I,Y,W){if(fO){var A=JW(W);if(A===null)p8($,I,W,yO,Y),XP($,W);else if(dg(A,$,I,Y,W))W.stopPropagation();else if(XP($,W),I&4&&-1<yw.indexOf($)){for(;A!==null;){var R=F$(A);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var g=K0(R.pendingLanes);if(g!==0){var y=R;y.pendingLanes|=2;for(y.entangledLanes|=2;g;){var d=1<<31-v6(g);y.entanglements[1]|=d,g&=~d}M1(R),(i$&(O6|L4))===F6&&(AO=K6()+K_,DG(0,!1))}}break;case 31:case 13:y=P6(R,2),y!==null&&yU(y,R,2),nJ(),IW(R,2)}if(R=JW(W),R===null&&p8($,I,W,yO,Y),R===A)break;A=R}A!==null&&W.stopPropagation()}else p8($,I,W,null,Y)}}function JW($){return $=OD($),QW($)}function QW($){if(yO=null,$=B0($),$!==null){var I=b($);if(I===null)$=null;else{var Y=I.tag;if(Y===13){if($=k(I),$!==null)return $;$=null}else if(Y===31){if($=u(I),$!==null)return $;$=null}else if(Y===3){if(I.stateNode.current.memoizedState.isDehydrated)return I.tag===3?I.stateNode.containerInfo:null;$=null}else I!==$&&($=null)}}return yO=$,null}function IP($){switch($){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return D4;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return n4;case"message":switch($x()){case MW:return D4;case AW:return n4;case $Q:case Ux:return E1;case qW:return bZ;default:return E1}default:return E1}}function XP($,I){switch($){case"focusin":case"focusout":QX=null;break;case"dragenter":case"dragleave":YX=null;break;case"mouseover":case"mouseout":GX=null;break;case"pointerover":case"pointerout":W2.delete(I.pointerId);break;case"gotpointercapture":case"lostpointercapture":F2.delete(I.pointerId)}}function qG($,I,Y,W,A,R){if($===null||$.nativeEvent!==R)return $={blockedOn:I,domEventName:Y,eventSystemFlags:W,nativeEvent:R,targetContainers:[A]},I!==null&&(I=F$(I),I!==null&&$P(I)),$;return $.eventSystemFlags|=W,I=$.targetContainers,A!==null&&I.indexOf(A)===-1&&I.push(A),$}function dg($,I,Y,W,A){switch(I){case"focusin":return QX=qG(QX,$,I,Y,W,A),!0;case"dragenter":return YX=qG(YX,$,I,Y,W,A),!0;case"mouseover":return GX=qG(GX,$,I,Y,W,A),!0;case"pointerover":var R=A.pointerId;return W2.set(R,qG(W2.get(R)||null,$,I,Y,W,A)),!0;case"gotpointercapture":return R=A.pointerId,F2.set(R,qG(F2.get(R)||null,$,I,Y,W,A)),!0}return!1}function JP($){var I=B0($.target);if(I!==null){var Y=b(I);if(Y!==null){if(I=Y.tag,I===13){if(I=k(Y),I!==null){$.blockedOn=I,s0($.priority,function(){UP(Y)});return}}else if(I===31){if(I=u(Y),I!==null){$.blockedOn=I,s0($.priority,function(){UP(Y)});return}}else if(I===3&&Y.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Y.tag===3?Y.stateNode.containerInfo:null;return}}}$.blockedOn=null}function BZ($){if($.blockedOn!==null)return!1;for(var I=$.targetContainers;0<I.length;){var Y=JW($.nativeEvent);if(Y===null){Y=$.nativeEvent;var W=new Y.constructor(Y.type,Y),A=W;EG!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),EG=A,Y.target.dispatchEvent(W),EG===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),EG=null}else return I=F$(Y),I!==null&&$P(I),$.blockedOn=Y,!1;I.shift()}return!0}function QP($,I,Y){BZ($)&&Y.delete(I)}function ng(){x9=!1,QX!==null&&BZ(QX)&&(QX=null),YX!==null&&BZ(YX)&&(YX=null),GX!==null&&BZ(GX)&&(GX=null),W2.forEach(QP),F2.forEach(QP)}function NZ($,I){$.blockedOn===I&&($.blockedOn=null,x9||(x9=!0,r$.unstable_scheduleCallback(r$.unstable_NormalPriority,ng)))}function YP($){uO!==$&&(uO=$,r$.unstable_scheduleCallback(r$.unstable_NormalPriority,function(){uO===$&&(uO=null);for(var I=0;I<$.length;I+=3){var Y=$[I],W=$[I+1],A=$[I+2];if(typeof W!=="function")if(QW(W||Y)===null)continue;else break;var R=F$(Y);R!==null&&($.splice(I,3),I-=3,Y={pending:!0,data:A,method:Y.method,action:W},Object.freeze(Y),Q8(R,Y,W,A))}}))}function aJ($){function I(d){return NZ(d,$)}QX!==null&&NZ(QX,$),YX!==null&&NZ(YX,$),GX!==null&&NZ(GX,$),W2.forEach(I),F2.forEach(I);for(var Y=0;Y<VX.length;Y++){var W=VX[Y];W.blockedOn===$&&(W.blockedOn=null)}for(;0<VX.length&&(Y=VX[0],Y.blockedOn===null);)JP(Y),Y.blockedOn===null&&VX.shift();if(Y=($.ownerDocument||$).$$reactFormReplay,Y!=null)for(W=0;W<Y.length;W+=3){var A=Y[W],R=Y[W+1],g=A[B6]||null;if(typeof R==="function")g||YP(Y);else if(g){var y=null;if(R&&R.hasAttribute("formAction")){if(A=R,g=R[B6]||null)y=g.formAction;else if(QW(A)!==null)continue}else y=g.action;typeof y==="function"?Y[W+1]=y:(Y.splice(W,3),W-=3),YP(Y)}}}function GP(){function $(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(g){return A=g})},focusReset:"manual",scroll:"manual"})}function I(){A!==null&&(A(),A=null),W||setTimeout(Y,20)}function Y(){if(!W&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var W=!1,A=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",I),navigation.addEventListener("navigateerror",I),setTimeout(Y,100),function(){W=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",I),navigation.removeEventListener("navigateerror",I),A!==null&&(A(),A=null)}}}function YW($){this._internalRoot=$}function kZ($){this._internalRoot=$}function VP($){$[uI]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b$=Object.assign,og=Symbol.for("react.element"),q1=Symbol.for("react.transitional.element"),sJ=Symbol.for("react.portal"),eJ=Symbol.for("react.fragment"),gZ=Symbol.for("react.strict_mode"),GW=Symbol.for("react.profiler"),VW=Symbol.for("react.consumer"),T1=Symbol.for("react.context"),TG=Symbol.for("react.forward_ref"),ZW=Symbol.for("react.suspense"),OW=Symbol.for("react.suspense_list"),xZ=Symbol.for("react.memo"),z4=Symbol.for("react.lazy"),zW=Symbol.for("react.activity"),ig=Symbol.for("react.memo_cache_sentinel"),ZP=Symbol.iterator,rg=Symbol.for("react.client.reference"),V6=Array.isArray,y0=fQ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UU=f9.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tg=Object.freeze({pending:!1,data:null,method:null,action:null}),KW=[],DW=[],r1=-1,wI=q0(null),CG=q0(null),fI=q0(null),wZ=q0(null),RG=0,OP,zP,KP,DP,WP,FP,HP;Z.__reactDisabledLog=!0;var WW,LP,FW=!1,HW=new(typeof WeakMap==="function"?WeakMap:Map),K4=null,C1=!1,d4=Object.prototype.hasOwnProperty,LW=r$.unstable_scheduleCallback,ag=r$.unstable_cancelCallback,sg=r$.unstable_shouldYield,eg=r$.unstable_requestPaint,K6=r$.unstable_now,$x=r$.unstable_getCurrentPriorityLevel,MW=r$.unstable_ImmediatePriority,AW=r$.unstable_UserBlockingPriority,$Q=r$.unstable_NormalPriority,Ux=r$.unstable_LowPriority,qW=r$.unstable_IdlePriority,Ix=r$.log,Xx=r$.unstable_setDisableYieldValue,UQ=null,E6=null,R1=!1,P1=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",v6=Math.clz32?Math.clz32:I0,Jx=Math.log,Qx=Math.LN2,fZ=256,yZ=262144,uZ=4194304,D4=2,n4=8,E1=32,bZ=268435456,yI=Math.random().toString(36).slice(2),q6="__reactFiber$"+yI,B6="__reactProps$"+yI,uI="__reactContainer$"+yI,TW="__reactEvents$"+yI,Yx="__reactListeners$"+yI,Gx="__reactHandles$"+yI,MP="__reactResources$"+yI,PG="__reactMarker$"+yI,AP=new Set,cX={},CW={},Vx={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Zx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qP={},TP={},Ox=/[\n"\\]/g,CP=!1,RP=!1,PP=!1,EP=!1,_P=!1,SP=!1,jP=["value","defaultValue"],vP=!1,BP=/["'&<>\n\t]|^\s|\s$/,zx="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),NP="applet caption html table td th marquee object template foreignObject desc title".split(" "),Kx=NP.concat(["button"]),Dx="dd dt li option optgroup p rp rt".split(" "),kP={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},hZ={},RW={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gP=/([A-Z])/g,xP=/^ms-/,Wx=/^(?:webkit|moz|o)[A-Z]/,Fx=/^-ms-/,Hx=/-(.)/g,wP=/;\s*$/,IQ={},PW={},fP=!1,yP=!1,uP=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),cZ="http://www.w3.org/1998/Math/MathML",XQ="http://www.w3.org/2000/svg",Lx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pZ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bP={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},JQ={},Mx=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ax=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hP=!1,N6={},cP=/^on./,qx=/^on[^A-Z]/,Tx=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cx=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,EG=null,QQ=null,YQ=null,EW=!1,_1=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_W=!1;if(_1)try{var _G={};Object.defineProperty(_G,"passive",{get:function(){_W=!0}}),window.addEventListener("test",_G,_G),window.removeEventListener("test",_G,_G)}catch($){_W=!1}var bI=null,SW=null,lZ=null,pX={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mZ=d6(pX),SG=b$({},pX,{view:0,detail:0}),Px=d6(SG),jW,vW,jG,dZ=b$({},SG,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zD,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==jG&&(jG&&$.type==="mousemove"?(jW=$.screenX-jG.screenX,vW=$.screenY-jG.screenY):vW=jW=0,jG=$),jW},movementY:function($){return"movementY"in $?$.movementY:vW}}),pP=d6(dZ),Ex=b$({},dZ,{dataTransfer:0}),_x=d6(Ex),Sx=b$({},SG,{relatedTarget:0}),BW=d6(Sx),jx=b$({},pX,{animationName:0,elapsedTime:0,pseudoElement:0}),vx=d6(jx),Bx=b$({},pX,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),Nx=d6(Bx),kx=b$({},pX,{data:0}),lP=d6(kx),gx=lP,xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},yx=b$({},SG,{key:function($){if($.key){var I=xx[$.key]||$.key;if(I!=="Unidentified")return I}return $.type==="keypress"?($=BV($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?wx[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zD,charCode:function($){return $.type==="keypress"?BV($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?BV($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),ux=d6(yx),bx=b$({},dZ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mP=d6(bx),hx=b$({},SG,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zD}),cx=d6(hx),px=b$({},pX,{propertyName:0,elapsedTime:0,pseudoElement:0}),lx=d6(px),mx=b$({},dZ,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),dx=d6(mx),nx=b$({},pX,{newState:0,oldState:0}),ox=d6(nx),ix=[9,13,27,32],dP=229,NW=_1&&"CompositionEvent"in window,vG=null;_1&&"documentMode"in document&&(vG=document.documentMode);var rx=_1&&"TextEvent"in window&&!vG,nP=_1&&(!NW||vG&&8<vG&&11>=vG),oP=32,iP=String.fromCharCode(oP),rP=!1,GQ=!1,tx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},BG=null,NG=null,tP=!1;_1&&(tP=Lk("input")&&(!document.documentMode||9<document.documentMode));var k6=typeof Object.is==="function"?Object.is:Rk,ax=_1&&"documentMode"in document&&11>=document.documentMode,VQ=null,kW=null,kG=null,gW=!1,ZQ={animationend:SX("Animation","AnimationEnd"),animationiteration:SX("Animation","AnimationIteration"),animationstart:SX("Animation","AnimationStart"),transitionrun:SX("Transition","TransitionRun"),transitionstart:SX("Transition","TransitionStart"),transitioncancel:SX("Transition","TransitionCancel"),transitionend:SX("Transition","TransitionEnd")},xW={},aP={};_1&&(aP=document.createElement("div").style,("AnimationEvent"in window)||(delete ZQ.animationend.animation,delete ZQ.animationiteration.animation,delete ZQ.animationstart.animation),("TransitionEvent"in window)||delete ZQ.transitionend.transition);var sP=jX("animationend"),eP=jX("animationiteration"),$E=jX("animationstart"),sx=jX("transitionrun"),ex=jX("transitionstart"),$w=jX("transitioncancel"),UE=jX("transitionend"),IE=new Map,wW="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wW.push("scrollEnd");var XE=0;if(typeof performance==="object"&&typeof performance.now==="function")var Uw=performance,JE=function(){return Uw.now()};else{var Iw=Date;JE=function(){return Iw.now()}}var fW=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(I))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},Xw="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",nZ=0,yW=1,uW=2,bW=3,oZ="– ",iZ="+ ",QE="  ",CU=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",_4="Components ⚛",h$="Scheduler ⚛",c$="Blocking",hI=!1,t1={color:"primary",properties:null,tooltipText:"",track:_4},cI={start:-0,end:-0,detail:{devtools:t1}},Jw=["Changed Props",""],YE="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Qw=["Changed Props",YE],gG=1,a1=2,S4=[],OQ=0,hW=0,pI={};Object.freeze(pI);var j4=null,zQ=null,R$=0,Yw=1,g$=2,_6=8,o4=16,Gw=32,GE=!1;try{var VE=Object.preventExtensions({})}catch($){GE=!0}var cW=new WeakMap,KQ=[],DQ=0,rZ=null,xG=0,v4=[],B4=0,lX=null,s1=1,e1="",T6=null,RU=null,m$=!1,S1=!1,W4=null,lI=null,N4=!1,pW=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),lW=q0(null),mW=q0(null),ZE={},tZ=null,WQ=null,FQ=!1,Vw=typeof AbortController<"u"?AbortController:function(){var $=[],I=this.signal={aborted:!1,addEventListener:function(Y,W){$.push(W)}};this.abort=function(){I.aborted=!0,$.forEach(function(Y){return Y()})}},Zw=r$.unstable_scheduleCallback,Ow=r$.unstable_NormalPriority,U6={$$typeof:T1,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},I6=r$.unstable_now,aZ=console.createTask?console.createTask:function(){return null},wG=1,sZ=2,D6=-0,mI=-0,$I=-0,UI=null,g6=-1.1,mX=-0,xU=-0,q$=-1.1,C$=-1.1,BU=null,uU=!1,dI=-0,j1=-1.1,fG=null,nI=0,dW=null,nW=null,dX=-1.1,yG=null,HQ=-1.1,eZ=-1.1,v1=-0,II=-1.1,k4=-1.1,oW=0,uG=null,OE=null,zE=null,oI=-1.1,nX=null,iI=-1.1,$O=-1.1,KE=-0,DE=-0,UO=0,XI=null,WE=0,bG=-1.1,IO=!1,XO=!1,hG=null,iW=0,oX=0,LQ=null,FE=y0.S;y0.S=function($,I){if(O_=K6(),typeof I==="object"&&I!==null&&typeof I.then==="function"){if(0>II&&0>k4){II=I6();var Y=HG(),W=FG();if(Y!==iI||W!==nX)iI=-1.1;oI=Y,nX=W}Bk($,I)}FE!==null&&FE($,I)};var iX=q0(null),i4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},cG=[],pG=[],lG=[],mG=[],dG=[],nG=[],rX=new Set;i4.recordUnsafeLifecycleWarnings=function($,I){rX.has($.type)||(typeof I.componentWillMount==="function"&&I.componentWillMount.__suppressDeprecationWarning!==!0&&cG.push($),$.mode&_6&&typeof I.UNSAFE_componentWillMount==="function"&&pG.push($),typeof I.componentWillReceiveProps==="function"&&I.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lG.push($),$.mode&_6&&typeof I.UNSAFE_componentWillReceiveProps==="function"&&mG.push($),typeof I.componentWillUpdate==="function"&&I.componentWillUpdate.__suppressDeprecationWarning!==!0&&dG.push($),$.mode&_6&&typeof I.UNSAFE_componentWillUpdate==="function"&&nG.push($))},i4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<cG.length&&(cG.forEach(function(y){$.add(o(y)||"Component"),rX.add(y.type)}),cG=[]);var I=new Set;0<pG.length&&(pG.forEach(function(y){I.add(o(y)||"Component"),rX.add(y.type)}),pG=[]);var Y=new Set;0<lG.length&&(lG.forEach(function(y){Y.add(o(y)||"Component"),rX.add(y.type)}),lG=[]);var W=new Set;0<mG.length&&(mG.forEach(function(y){W.add(o(y)||"Component"),rX.add(y.type)}),mG=[]);var A=new Set;0<dG.length&&(dG.forEach(function(y){A.add(o(y)||"Component"),rX.add(y.type)}),dG=[]);var R=new Set;if(0<nG.length&&(nG.forEach(function(y){R.add(o(y)||"Component"),rX.add(y.type)}),nG=[]),0<I.size){var g=M(I);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
+
186
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
+
188
+ Please update the following components: %s`,g)}0<W.size&&(g=M(W),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
+
190
+ * Move data fetching code or side effects to componentDidUpdate.
191
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
+
193
+ Please update the following components: %s`,g)),0<R.size&&(g=M(R),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+
197
+ Please update the following components: %s`,g)),0<$.size&&(g=M($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
+
202
+ Please update the following components: %s`,g)),0<Y.size&&(g=M(Y),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
+
208
+ Please update the following components: %s`,g)),0<A.size&&(g=M(A),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
211
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,g))};var JO=new Map,HE=new Set;i4.recordLegacyContextWarning=function($,I){var Y=null;for(var W=$;W!==null;)W.mode&_6&&(Y=W),W=W.return;Y===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!HE.has($.type)&&(W=JO.get(Y),$.type.contextTypes!=null||$.type.childContextTypes!=null||I!==null&&typeof I.getChildContext==="function")&&(W===void 0&&(W=[],JO.set(Y,W)),W.push($))},i4.flushLegacyContextWarning=function(){JO.forEach(function($){if($.length!==0){var I=$[0],Y=new Set;$.forEach(function(A){Y.add(o(A)||"Component"),HE.add(A.type)});var W=M(Y);J0(I,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
+
215
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
+
217
+ Please update the following components: %s
218
+
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,W)})}})},i4.discardPendingWarnings=function(){cG=[],pG=[],lG=[],mG=[],dG=[],nG=[],JO=new Map};var LE={react_stack_bottom_frame:function($,I,Y){var W=C1;C1=!0;try{return $(I,Y)}finally{C1=W}}},rW=LE.react_stack_bottom_frame.bind(LE),ME={react_stack_bottom_frame:function($){var I=C1;C1=!0;try{return $.render()}finally{C1=I}}},AE=ME.react_stack_bottom_frame.bind(ME),qE={react_stack_bottom_frame:function($,I){try{I.componentDidMount()}catch(Y){$U($,$.return,Y)}}},tW=qE.react_stack_bottom_frame.bind(qE),TE={react_stack_bottom_frame:function($,I,Y,W,A){try{I.componentDidUpdate(Y,W,A)}catch(R){$U($,$.return,R)}}},CE=TE.react_stack_bottom_frame.bind(TE),RE={react_stack_bottom_frame:function($,I){var Y=I.stack;$.componentDidCatch(I.value,{componentStack:Y!==null?Y:""})}},zw=RE.react_stack_bottom_frame.bind(RE),PE={react_stack_bottom_frame:function($,I,Y){try{Y.componentWillUnmount()}catch(W){$U($,I,W)}}},EE=PE.react_stack_bottom_frame.bind(PE),_E={react_stack_bottom_frame:function($){var I=$.create;return $=$.inst,I=I(),$.destroy=I}},Kw=_E.react_stack_bottom_frame.bind(_E),SE={react_stack_bottom_frame:function($,I,Y){try{Y()}catch(W){$U($,I,W)}}},Dw=SE.react_stack_bottom_frame.bind(SE),jE={react_stack_bottom_frame:function($){var I=$._init;return I($._payload)}},Ww=jE.react_stack_bottom_frame.bind(jE),MQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),aW=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),QO=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),YO={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},tX=null,oG=!1,AQ=null,iG=0,x$=null,sW,vE=sW=!1,BE={},NE={},kE={};_=function($,I,Y){if(Y!==null&&typeof Y==="object"&&Y._store&&(!Y._store.validated&&Y.key==null||Y._store.validated===2)){if(typeof Y._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");Y._store.validated=1;var W=o($),A=W||"null";if(!BE[A]){BE[A]=!0,Y=Y._owner,$=$._debugOwner;var R="";$&&typeof $.tag==="number"&&(A=o($))&&(R=`
220
+
221
+ Check the render method of \``+A+"`."),R||W&&(R=`
222
+
223
+ Check the top-level render call using <`+W+">.");var g="";Y!=null&&$!==Y&&(W=null,typeof Y.tag==="number"?W=o(Y):typeof Y.name==="string"&&(W=Y.name),W&&(g=" It was passed a child from "+W+".")),J0(I,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',R,g)})}}};var aX=PT(!0),gE=PT(!1),xE=0,wE=1,fE=2,eW=3,rI=!1,yE=!1,$9=null,U9=!1,qQ=q0(null),GO=q0(0),F4=q0(null),g4=null,TQ=1,rG=2,sU=q0(0),VO=0,x4=1,x6=2,H4=4,w6=8,CQ,uE=new Set,bE=new Set,I9=new Set,hE=new Set,JI=0,P$=null,OU=null,X6=null,ZO=!1,RQ=!1,sX=!1,OO=0,tG=0,QI=null,Fw=0,Hw=25,w0=null,w4=null,YI=-1,aG=!1,sG={readContext:vU,use:NI,useCallback:oU,useContext:oU,useEffect:oU,useImperativeHandle:oU,useLayoutEffect:oU,useInsertionEffect:oU,useMemo:oU,useReducer:oU,useRef:oU,useState:oU,useDebugValue:oU,useDeferredValue:oU,useTransition:oU,useSyncExternalStore:oU,useId:oU,useHostTransitionStatus:oU,useFormState:oU,useActionState:oU,useOptimistic:oU,useMemoCache:oU,useCacheRefresh:oU};sG.useEffectEvent=oU;var X9=null,cE=null,J9=null,pE=null,B1=null,r4=null,zO=null;X9={readContext:function($){return vU($)},use:NI,useCallback:function($,I){return w0="useCallback",u$(),bJ(I),U8($,I)},useContext:function($){return w0="useContext",u$(),vU($)},useEffect:function($,I){return w0="useEffect",u$(),bJ(I),JZ($,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",u$(),bJ(Y),$8($,I,Y)},useInsertionEffect:function($,I){w0="useInsertionEffect",u$(),bJ(I),fX(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",u$(),bJ(I),eD($,I)},useMemo:function($,I){w0="useMemo",u$(),bJ(I);var Y=y0.H;y0.H=B1;try{return I8($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",u$();var W=y0.H;y0.H=B1;try{return mD($,I,Y)}finally{y0.H=W}},useRef:function($){return w0="useRef",u$(),aD($)},useState:function($){w0="useState",u$();var I=y0.H;y0.H=B1;try{return iD($)}finally{y0.H=I}},useDebugValue:function(){w0="useDebugValue",u$()},useDeferredValue:function($,I){return w0="useDeferredValue",u$(),X8($,I)},useTransition:function(){return w0="useTransition",u$(),Y8()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",u$(),nD($,I,Y)},useId:function(){return w0="useId",u$(),G8()},useFormState:function($,I){return w0="useFormState",u$(),eV(),cJ($,I)},useActionState:function($,I){return w0="useActionState",u$(),cJ($,I)},useOptimistic:function($){return w0="useOptimistic",u$(),rD($)},useHostTransitionStatus:yX,useMemoCache:wX,useCacheRefresh:function(){return w0="useCacheRefresh",u$(),V8()},useEffectEvent:function($){return w0="useEffectEvent",u$(),sD($)}},cE={readContext:function($){return vU($)},use:NI,useCallback:function($,I){return w0="useCallback",Y$(),U8($,I)},useContext:function($){return w0="useContext",Y$(),vU($)},useEffect:function($,I){return w0="useEffect",Y$(),JZ($,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",Y$(),$8($,I,Y)},useInsertionEffect:function($,I){w0="useInsertionEffect",Y$(),fX(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",Y$(),eD($,I)},useMemo:function($,I){w0="useMemo",Y$();var Y=y0.H;y0.H=B1;try{return I8($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",Y$();var W=y0.H;y0.H=B1;try{return mD($,I,Y)}finally{y0.H=W}},useRef:function($){return w0="useRef",Y$(),aD($)},useState:function($){w0="useState",Y$();var I=y0.H;y0.H=B1;try{return iD($)}finally{y0.H=I}},useDebugValue:function(){w0="useDebugValue",Y$()},useDeferredValue:function($,I){return w0="useDeferredValue",Y$(),X8($,I)},useTransition:function(){return w0="useTransition",Y$(),Y8()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",Y$(),nD($,I,Y)},useId:function(){return w0="useId",Y$(),G8()},useActionState:function($,I){return w0="useActionState",Y$(),cJ($,I)},useFormState:function($,I){return w0="useFormState",Y$(),eV(),cJ($,I)},useOptimistic:function($){return w0="useOptimistic",Y$(),rD($)},useHostTransitionStatus:yX,useMemoCache:wX,useCacheRefresh:function(){return w0="useCacheRefresh",Y$(),V8()},useEffectEvent:function($){return w0="useEffectEvent",Y$(),sD($)}},J9={readContext:function($){return vU($)},use:NI,useCallback:function($,I){return w0="useCallback",Y$(),GZ($,I)},useContext:function($){return w0="useContext",Y$(),vU($)},useEffect:function($,I){w0="useEffect",Y$(),n6(2048,w6,$,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",Y$(),YZ($,I,Y)},useInsertionEffect:function($,I){return w0="useInsertionEffect",Y$(),n6(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",Y$(),n6(4,H4,$,I)},useMemo:function($,I){w0="useMemo",Y$();var Y=y0.H;y0.H=r4;try{return VZ($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",Y$();var W=y0.H;y0.H=r4;try{return hJ($,I,Y)}finally{y0.H=W}},useRef:function(){return w0="useRef",Y$(),JU().memoizedState},useState:function(){w0="useState",Y$();var $=y0.H;y0.H=r4;try{return hJ(l4)}finally{y0.H=$}},useDebugValue:function(){w0="useDebugValue",Y$()},useDeferredValue:function($,I){return w0="useDeferredValue",Y$(),nT($,I)},useTransition:function(){return w0="useTransition",Y$(),sT()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",Y$(),UZ($,I,Y)},useId:function(){return w0="useId",Y$(),JU().memoizedState},useFormState:function($){return w0="useFormState",Y$(),eV(),IZ($)},useActionState:function($){return w0="useActionState",Y$(),IZ($)},useOptimistic:function($,I){return w0="useOptimistic",Y$(),fT($,I)},useHostTransitionStatus:yX,useMemoCache:wX,useCacheRefresh:function(){return w0="useCacheRefresh",Y$(),JU().memoizedState},useEffectEvent:function($){return w0="useEffectEvent",Y$(),QZ($)}},pE={readContext:function($){return vU($)},use:NI,useCallback:function($,I){return w0="useCallback",Y$(),GZ($,I)},useContext:function($){return w0="useContext",Y$(),vU($)},useEffect:function($,I){w0="useEffect",Y$(),n6(2048,w6,$,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",Y$(),YZ($,I,Y)},useInsertionEffect:function($,I){return w0="useInsertionEffect",Y$(),n6(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",Y$(),n6(4,H4,$,I)},useMemo:function($,I){w0="useMemo",Y$();var Y=y0.H;y0.H=zO;try{return VZ($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",Y$();var W=y0.H;y0.H=zO;try{return XG($,I,Y)}finally{y0.H=W}},useRef:function(){return w0="useRef",Y$(),JU().memoizedState},useState:function(){w0="useState",Y$();var $=y0.H;y0.H=zO;try{return XG(l4)}finally{y0.H=$}},useDebugValue:function(){w0="useDebugValue",Y$()},useDeferredValue:function($,I){return w0="useDeferredValue",Y$(),oT($,I)},useTransition:function(){return w0="useTransition",Y$(),eT()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",Y$(),UZ($,I,Y)},useId:function(){return w0="useId",Y$(),JU().memoizedState},useFormState:function($){return w0="useFormState",Y$(),eV(),XZ($)},useActionState:function($){return w0="useActionState",Y$(),XZ($)},useOptimistic:function($,I){return w0="useOptimistic",Y$(),uT($,I)},useHostTransitionStatus:yX,useMemoCache:wX,useCacheRefresh:function(){return w0="useCacheRefresh",Y$(),JU().memoizedState},useEffectEvent:function($){return w0="useEffectEvent",Y$(),QZ($)}},B1={readContext:function($){return S(),vU($)},use:function($){return L(),NI($)},useCallback:function($,I){return w0="useCallback",L(),u$(),U8($,I)},useContext:function($){return w0="useContext",L(),u$(),vU($)},useEffect:function($,I){return w0="useEffect",L(),u$(),JZ($,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",L(),u$(),$8($,I,Y)},useInsertionEffect:function($,I){w0="useInsertionEffect",L(),u$(),fX(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",L(),u$(),eD($,I)},useMemo:function($,I){w0="useMemo",L(),u$();var Y=y0.H;y0.H=B1;try{return I8($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",L(),u$();var W=y0.H;y0.H=B1;try{return mD($,I,Y)}finally{y0.H=W}},useRef:function($){return w0="useRef",L(),u$(),aD($)},useState:function($){w0="useState",L(),u$();var I=y0.H;y0.H=B1;try{return iD($)}finally{y0.H=I}},useDebugValue:function(){w0="useDebugValue",L(),u$()},useDeferredValue:function($,I){return w0="useDeferredValue",L(),u$(),X8($,I)},useTransition:function(){return w0="useTransition",L(),u$(),Y8()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",L(),u$(),nD($,I,Y)},useId:function(){return w0="useId",L(),u$(),G8()},useFormState:function($,I){return w0="useFormState",L(),u$(),cJ($,I)},useActionState:function($,I){return w0="useActionState",L(),u$(),cJ($,I)},useOptimistic:function($){return w0="useOptimistic",L(),u$(),rD($)},useMemoCache:function($){return L(),wX($)},useHostTransitionStatus:yX,useCacheRefresh:function(){return w0="useCacheRefresh",u$(),V8()},useEffectEvent:function($){return w0="useEffectEvent",L(),u$(),sD($)}},r4={readContext:function($){return S(),vU($)},use:function($){return L(),NI($)},useCallback:function($,I){return w0="useCallback",L(),Y$(),GZ($,I)},useContext:function($){return w0="useContext",L(),Y$(),vU($)},useEffect:function($,I){w0="useEffect",L(),Y$(),n6(2048,w6,$,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",L(),Y$(),YZ($,I,Y)},useInsertionEffect:function($,I){return w0="useInsertionEffect",L(),Y$(),n6(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",L(),Y$(),n6(4,H4,$,I)},useMemo:function($,I){w0="useMemo",L(),Y$();var Y=y0.H;y0.H=r4;try{return VZ($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",L(),Y$();var W=y0.H;y0.H=r4;try{return hJ($,I,Y)}finally{y0.H=W}},useRef:function(){return w0="useRef",L(),Y$(),JU().memoizedState},useState:function(){w0="useState",L(),Y$();var $=y0.H;y0.H=r4;try{return hJ(l4)}finally{y0.H=$}},useDebugValue:function(){w0="useDebugValue",L(),Y$()},useDeferredValue:function($,I){return w0="useDeferredValue",L(),Y$(),nT($,I)},useTransition:function(){return w0="useTransition",L(),Y$(),sT()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",L(),Y$(),UZ($,I,Y)},useId:function(){return w0="useId",L(),Y$(),JU().memoizedState},useFormState:function($){return w0="useFormState",L(),Y$(),IZ($)},useActionState:function($){return w0="useActionState",L(),Y$(),IZ($)},useOptimistic:function($,I){return w0="useOptimistic",L(),Y$(),fT($,I)},useMemoCache:function($){return L(),wX($)},useHostTransitionStatus:yX,useCacheRefresh:function(){return w0="useCacheRefresh",Y$(),JU().memoizedState},useEffectEvent:function($){return w0="useEffectEvent",L(),Y$(),QZ($)}},zO={readContext:function($){return S(),vU($)},use:function($){return L(),NI($)},useCallback:function($,I){return w0="useCallback",L(),Y$(),GZ($,I)},useContext:function($){return w0="useContext",L(),Y$(),vU($)},useEffect:function($,I){w0="useEffect",L(),Y$(),n6(2048,w6,$,I)},useImperativeHandle:function($,I,Y){return w0="useImperativeHandle",L(),Y$(),YZ($,I,Y)},useInsertionEffect:function($,I){return w0="useInsertionEffect",L(),Y$(),n6(4,x6,$,I)},useLayoutEffect:function($,I){return w0="useLayoutEffect",L(),Y$(),n6(4,H4,$,I)},useMemo:function($,I){w0="useMemo",L(),Y$();var Y=y0.H;y0.H=r4;try{return VZ($,I)}finally{y0.H=Y}},useReducer:function($,I,Y){w0="useReducer",L(),Y$();var W=y0.H;y0.H=r4;try{return XG($,I,Y)}finally{y0.H=W}},useRef:function(){return w0="useRef",L(),Y$(),JU().memoizedState},useState:function(){w0="useState",L(),Y$();var $=y0.H;y0.H=r4;try{return XG(l4)}finally{y0.H=$}},useDebugValue:function(){w0="useDebugValue",L(),Y$()},useDeferredValue:function($,I){return w0="useDeferredValue",L(),Y$(),oT($,I)},useTransition:function(){return w0="useTransition",L(),Y$(),eT()},useSyncExternalStore:function($,I,Y){return w0="useSyncExternalStore",L(),Y$(),UZ($,I,Y)},useId:function(){return w0="useId",L(),Y$(),JU().memoizedState},useFormState:function($){return w0="useFormState",L(),Y$(),XZ($)},useActionState:function($){return w0="useActionState",L(),Y$(),XZ($)},useOptimistic:function($,I){return w0="useOptimistic",L(),Y$(),uT($,I)},useMemoCache:function($){return L(),wX($)},useHostTransitionStatus:yX,useCacheRefresh:function(){return w0="useCacheRefresh",Y$(),JU().memoizedState},useEffectEvent:function($){return w0="useEffectEvent",L(),Y$(),QZ($)}};var lE={},mE=new Set,dE=new Set,nE=new Set,oE=new Set,iE=new Set,rE=new Set,tE=new Set,aE=new Set,sE=new Set,eE=new Set;Object.freeze(lE);var Q9={enqueueSetState:function($,I,Y){$=$._reactInternals;var W=Z4($),A=SI(W);A.payload=I,Y!==void 0&&Y!==null&&(O8(Y),A.callback=Y),I=jI($,A,W),I!==null&&(G1(W,"this.setState()",$),yU(I,$,W),eY(I,$,W))},enqueueReplaceState:function($,I,Y){$=$._reactInternals;var W=Z4($),A=SI(W);A.tag=wE,A.payload=I,Y!==void 0&&Y!==null&&(O8(Y),A.callback=Y),I=jI($,A,W),I!==null&&(G1(W,"this.replaceState()",$),yU(I,$,W),eY(I,$,W))},enqueueForceUpdate:function($,I){$=$._reactInternals;var Y=Z4($),W=SI(Y);W.tag=fE,I!==void 0&&I!==null&&(O8(I),W.callback=I),I=jI($,W,Y),I!==null&&(G1(Y,"this.forceUpdate()",$),yU(I,$,Y),eY(I,$,Y))}},PQ=null,Y9=null,G9=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),J6=!1,$_={},U_={},I_={},X_={},EQ=!1,J_={},KO={},V9={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Q_=!1,Y_=null;Y_=new Set;var GI=!1,Q6=!1,Z9=!1,G_=typeof WeakSet==="function"?WeakSet:Set,W6=null,_Q=null,SQ=null,Y6=null,r6=!1,t4=null,Z6=!1,eG=8192,Lw={getCacheForType:function($){var I=vU(U6),Y=I.data.get($);return Y===void 0&&(Y=$(),I.data.set($,Y)),Y},cacheSignal:function(){return vU(U6).controller.signal},getOwner:function(){return K4}};if(typeof Symbol==="function"&&Symbol.for){var $2=Symbol.for;$2("selector.component"),$2("selector.has_pseudo_class"),$2("selector.role"),$2("selector.test_id"),$2("selector.text")}var Mw=[],Aw=typeof WeakMap==="function"?WeakMap:Map,F6=0,O6=2,L4=4,VI=0,U2=1,eX=2,DO=3,tI=4,WO=6,V_=5,i$=F6,zU=null,y$=null,w$=0,t6=0,FO=1,$J=2,I2=3,Z_=4,O9=5,X2=6,HO=7,z9=8,UJ=9,QU=t6,M4=null,aI=!1,jQ=!1,K9=!1,N1=0,wU=VI,sI=0,eI=0,D9=0,a6=0,IJ=0,J2=null,f6=null,LO=!1,MO=0,O_=0,z_=300,AO=1/0,K_=500,Q2=null,iU=null,$X=null,qO=0,W9=1,F9=2,D_=3,UX=0,W_=1,F_=2,H_=3,L_=4,TO=5,G6=0,IX=null,vQ=null,a4=0,H9=0,L9=-0,M9=null,M_=null,A_=null,s4=qO,q_=null,qw=50,Y2=0,A9=null,q9=!1,CO=!1,Tw=50,XJ=0,G2=null,BQ=!1,RO=null,T_=!1,C_=new Set,Cw={},PO=null,NQ=null,T9=!1,C9=!1,EO=!1,R9=!1,XX=0,P9={};(function(){for(var $=0;$<wW.length;$++){var I=wW[$],Y=I.toLowerCase();I=I[0].toUpperCase()+I.slice(1),p4(Y,"on"+I)}p4(sP,"onAnimationEnd"),p4(eP,"onAnimationIteration"),p4($E,"onAnimationStart"),p4("dblclick","onDoubleClick"),p4("focusin","onFocus"),p4("focusout","onBlur"),p4(sx,"onTransitionRun"),p4(ex,"onTransitionStart"),p4($w,"onTransitionCancel"),p4(UE,"onTransitionEnd")})(),i0("onMouseEnter",["mouseout","mouseover"]),i0("onMouseLeave",["mouseout","mouseover"]),i0("onPointerEnter",["pointerout","pointerover"]),i0("onPointerLeave",["pointerout","pointerover"]),n0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),n0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),n0("onBeforeInput",["compositionend","keypress","textInput","paste"]),n0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),n0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),n0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var V2="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),E9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(V2)),_O="_reactListening"+Math.random().toString(36).slice(2),R_=!1,P_=!1,SO=!1,E_=!1,jO=!1,vO=!1,__=!1,BO={},Rw=/\r\n?/g,Pw=/\u0000|\uFFFD/g,JJ="http://www.w3.org/1999/xlink",_9="http://www.w3.org/XML/1998/namespace",Ew="javascript:throw new Error('React form unexpectedly submitted.')",_w="suppressHydrationWarning",QJ="&",NO="/&",Z2="$",O2="/$",JX="$?",YJ="$~",kQ="$!",Sw="html",jw="body",vw="head",S9="F!",S_="F",j_="loading",Bw="style",ZI=0,gQ=1,kO=2,j9=null,v9=null,v_={dialog:!0,webview:!0},B9=null,z2=void 0,B_=typeof setTimeout==="function"?setTimeout:void 0,Nw=typeof clearTimeout==="function"?clearTimeout:void 0,GJ=-1,N_=typeof Promise==="function"?Promise:void 0,kw=typeof queueMicrotask==="function"?queueMicrotask:typeof N_<"u"?function($){return N_.resolve(null).then($).catch(Hg)}:B_,N9=null,VJ=0,K2=1,k_=2,g_=3,f4=4,y4=new Map,x_=new Set,OI=UU.d;UU.d={f:function(){var $=OI.f(),I=nJ();return $||I},r:function($){var I=F$($);I!==null&&I.tag===5&&I.type==="form"?aT(I):OI.r($)},D:function($){OI.D($),mR("dns-prefetch",$,null)},C:function($,I){OI.C($,I),mR("preconnect",$,I)},L:function($,I,Y){OI.L($,I,Y);var W=xQ;if(W&&$&&I){var A='link[rel="preload"][as="'+IU(I)+'"]';I==="image"?Y&&Y.imageSrcSet?(A+='[imagesrcset="'+IU(Y.imageSrcSet)+'"]',typeof Y.imageSizes==="string"&&(A+='[imagesizes="'+IU(Y.imageSizes)+'"]')):A+='[href="'+IU($)+'"]':A+='[href="'+IU($)+'"]';var R=A;switch(I){case"style":R=rJ($);break;case"script":R=tJ($)}y4.has(R)||($=b$({rel:"preload",href:I==="image"&&Y&&Y.imageSrcSet?void 0:$,as:I},Y),y4.set(R,$),W.querySelector(A)!==null||I==="style"&&W.querySelector(MG(R))||I==="script"&&W.querySelector(AG(R))||(I=W.createElement("link"),A6(I,"link",$),K$(I),W.head.appendChild(I)))}},m:function($,I){OI.m($,I);var Y=xQ;if(Y&&$){var W=I&&typeof I.as==="string"?I.as:"script",A='link[rel="modulepreload"][as="'+IU(W)+'"][href="'+IU($)+'"]',R=A;switch(W){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=tJ($)}if(!y4.has(R)&&($=b$({rel:"modulepreload",href:$},I),y4.set(R,$),Y.querySelector(A)===null)){switch(W){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Y.querySelector(AG(R)))return}W=Y.createElement("link"),A6(W,"link",$),K$(W),Y.head.appendChild(W)}}},X:function($,I){OI.X($,I);var Y=xQ;if(Y&&$){var W=f0(Y).hoistableScripts,A=tJ($),R=W.get(A);R||(R=Y.querySelector(AG(A)),R||($=b$({src:$,async:!0},I),(I=y4.get(A))&&$W($,I),R=Y.createElement("script"),K$(R),A6(R,"link",$),Y.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},W.set(A,R))}},S:function($,I,Y){OI.S($,I,Y);var W=xQ;if(W&&$){var A=f0(W).hoistableStyles,R=rJ($);I=I||"default";var g=A.get(R);if(!g){var y={loading:VJ,preload:null};if(g=W.querySelector(MG(R)))y.loading=K2|f4;else{$=b$({rel:"stylesheet",href:$,"data-precedence":I},Y),(Y=y4.get(R))&&e8($,Y);var d=g=W.createElement("link");K$(d),A6(d,"link",$),d._p=new Promise(function(i,R0){d.onload=i,d.onerror=R0}),d.addEventListener("load",function(){y.loading|=K2}),d.addEventListener("error",function(){y.loading|=k_}),y.loading|=f4,SZ(g,I,W)}g={type:"stylesheet",instance:g,count:1,state:y},A.set(R,g)}}},M:function($,I){OI.M($,I);var Y=xQ;if(Y&&$){var W=f0(Y).hoistableScripts,A=tJ($),R=W.get(A);R||(R=Y.querySelector(AG(A)),R||($=b$({src:$,async:!0,type:"module"},I),(I=y4.get(A))&&$W($,I),R=Y.createElement("script"),K$(R),A6(R,"link",$),Y.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},W.set(A,R))}}};var xQ=typeof document>"u"?null:document,gO=null,gw=60000,xw=800,ww=500,k9=0,g9=null,xO=null,ZJ=tg,D2={$$typeof:T1,Provider:null,Consumer:null,_currentValue:ZJ,_currentValue2:ZJ,_threadCount:0},w_="%c%s%c",f_="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",y_="",wO=" ",fw=Function.prototype.bind,u_=!1,b_=null,h_=null,c_=null,p_=null,l_=null,m_=null,d_=null,n_=null,o_=null,i_=null;b_=function($,I,Y,W){I=U($,I),I!==null&&(Y=J(I.memoizedState,Y,0,W),I.memoizedState=Y,I.baseState=Y,$.memoizedProps=b$({},$.memoizedProps),Y=P6($,2),Y!==null&&yU(Y,$,2))},h_=function($,I,Y){I=U($,I),I!==null&&(Y=X(I.memoizedState,Y,0),I.memoizedState=Y,I.baseState=Y,$.memoizedProps=b$({},$.memoizedProps),Y=P6($,2),Y!==null&&yU(Y,$,2))},c_=function($,I,Y,W){I=U($,I),I!==null&&(Y=Q(I.memoizedState,Y,W),I.memoizedState=Y,I.baseState=Y,$.memoizedProps=b$({},$.memoizedProps),Y=P6($,2),Y!==null&&yU(Y,$,2))},p_=function($,I,Y){$.pendingProps=J($.memoizedProps,I,0,Y),$.alternate&&($.alternate.pendingProps=$.pendingProps),I=P6($,2),I!==null&&yU(I,$,2)},l_=function($,I){$.pendingProps=X($.memoizedProps,I,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),I=P6($,2),I!==null&&yU(I,$,2)},m_=function($,I,Y){$.pendingProps=Q($.memoizedProps,I,Y),$.alternate&&($.alternate.pendingProps=$.pendingProps),I=P6($,2),I!==null&&yU(I,$,2)},d_=function($){var I=P6($,2);I!==null&&yU(I,$,2)},n_=function($){var I=L$(),Y=P6($,I);Y!==null&&yU(Y,$,I)},o_=function($){V=$},i_=function($){z=$};var fO=!0,yO=null,x9=!1,QX=null,YX=null,GX=null,W2=new Map,F2=new Map,VX=[],yw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),uO=null;if(kZ.prototype.render=YW.prototype.render=function($){var I=this._internalRoot;if(I===null)throw Error("Cannot update an unmounted root.");var Y=arguments;typeof Y[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):x(Y[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof Y[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Y=$;var W=I.current,A=Z4(W);UW(W,A,Y,I,null,null)},kZ.prototype.unmount=YW.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var I=$.containerInfo;(i$&(O6|L4))!==F6&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),UW($.current,2,null,$,null,null),nJ(),I[uI]=null}},kZ.prototype.unstable_scheduleHydration=function($){if($){var I=X0();$={blockedOn:null,target:$,priority:I};for(var Y=0;Y<VX.length&&I!==0&&I<VX[Y].priority;Y++);VX.splice(Y,0,$),Y===0&&JP($)}},function(){var $=fQ.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
+ - react: `+($+`
225
+ - react-dom: 19.2.7
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),UU.findDOMNode=function($){var I=$._reactInternals;if(I===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=m(I),$=$!==null?a($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:y0,reconcilerVersion:"19.2.7"};return $.overrideHookState=b_,$.overrideHookStateDeletePath=h_,$.overrideHookStateRenamePath=c_,$.overrideProps=p_,$.overridePropsDeletePath=l_,$.overridePropsRenamePath=m_,$.scheduleUpdate=d_,$.scheduleRetry=n_,$.setErrorHandler=o_,$.setSuspenseHandler=i_,$.scheduleRefresh=N,$.scheduleRoot=v,$.setRefreshHandler=f,$.getCurrentFiber=pg,D0($)}()&&_1&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var r_=window.location.protocol;/^(https?|file):$/.test(r_)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(r_==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}aw.createRoot=function($,I){if(!x($))throw Error("Target container is not a DOM element.");VP($);var Y=!1,W="",A=QC,R=YC,g=GC;return I!==null&&I!==void 0&&(I.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof I==="object"&&I!==null&&I.$$typeof===q1&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
+
229
+ let root = createRoot(domContainer);
230
+ root.render(<App />);`),I.unstable_strictMode===!0&&(Y=!0),I.identifierPrefix!==void 0&&(W=I.identifierPrefix),I.onUncaughtError!==void 0&&(A=I.onUncaughtError),I.onCaughtError!==void 0&&(R=I.onCaughtError),I.onRecoverableError!==void 0&&(g=I.onRecoverableError)),I=aR($,1,!1,null,null,Y,W,null,A,R,g,GP),$[uI]=I.current,c8($),new YW(I)},aw.hydrateRoot=function($,I,Y){if(!x($))throw Error("Target container is not a DOM element.");VP($),I===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var W=!1,A="",R=QC,g=YC,y=GC,d=null;return Y!==null&&Y!==void 0&&(Y.unstable_strictMode===!0&&(W=!0),Y.identifierPrefix!==void 0&&(A=Y.identifierPrefix),Y.onUncaughtError!==void 0&&(R=Y.onUncaughtError),Y.onCaughtError!==void 0&&(g=Y.onCaughtError),Y.onRecoverableError!==void 0&&(y=Y.onRecoverableError),Y.formState!==void 0&&(d=Y.formState)),I=aR($,1,!0,I,Y!=null?Y:null,W,A,d,R,g,y,GP),I.context=sR(null),Y=I.current,W=Z4(Y),W=r0(W),A=SI(W),A.callback=null,jI(Y,A,W),G1(W,"hydrateRoot()",null),Y=W,I.current.lanes=Y,c0(I,Y),M1(I),$[uI]=I.current,c8($),new kZ(I)},aw.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var YS=ZX((Lo,QS)=>{var sw=e4(JS());QS.exports=sw});var rU={};y6(rU,{transcode:()=>yf,resolveObjectURL:()=>xf,kStringMaxLength:()=>FS,kMaxLength:()=>M2,isUtf8:()=>wf,isAscii:()=>ff,default:()=>uf,constants:()=>Vf,btoa:()=>Jf,atob:()=>Qf,INSPECT_MAX_BYTES:()=>WS,File:()=>Yf,Buffer:()=>m0,Blob:()=>Gf});function ew(U){var J=U.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var Q=U.indexOf("=");if(Q===-1)Q=J;var O=Q===J?0:4-Q%4;return[Q,O]}function $f(U,J){return(U+J)*3/4-J}function Uf(U){var J,Q=ew(U),O=Q[0],X=Q[1],z=new Uint8Array($f(O,X)),V=0,L=X>0?O-4:O,S;for(S=0;S<L;S+=4)J=u4[U.charCodeAt(S)]<<18|u4[U.charCodeAt(S+1)]<<12|u4[U.charCodeAt(S+2)]<<6|u4[U.charCodeAt(S+3)],z[V++]=J>>16&255,z[V++]=J>>8&255,z[V++]=J&255;if(X===2)J=u4[U.charCodeAt(S)]<<2|u4[U.charCodeAt(S+1)]>>4,z[V++]=J&255;if(X===1)J=u4[U.charCodeAt(S)]<<10|u4[U.charCodeAt(S+1)]<<4|u4[U.charCodeAt(S+2)]>>2,z[V++]=J>>8&255,z[V++]=J&255;return z}function If(U){return k1[U>>18&63]+k1[U>>12&63]+k1[U>>6&63]+k1[U&63]}function Xf(U,J,Q){var O,X=[];for(var z=J;z<Q;z+=3)O=(U[z]<<16&16711680)+(U[z+1]<<8&65280)+(U[z+2]&255),X.push(If(O));return X.join("")}function VS(U){var J,Q=U.length,O=Q%3,X=[],z=16383;for(var V=0,L=Q-O;V<L;V+=z)X.push(Xf(U,V,V+z>L?L:V+z));if(O===1)J=U[Q-1],X.push(k1[J>>2]+k1[J<<4&63]+"==");else if(O===2)J=(U[Q-2]<<8)+U[Q-1],X.push(k1[J>>10]+k1[J>>4&63]+k1[J<<2&63]+"=");return X.join("")}function hO(U,J,Q,O,X){var z,V,L=X*8-O-1,S=(1<<L)-1,E=S>>1,_=-7,M=Q?X-1:0,P=Q?-1:1,v=U[J+M];M+=P,z=v&(1<<-_)-1,v>>=-_,_+=L;for(;_>0;z=z*256+U[J+M],M+=P,_-=8);V=z&(1<<-_)-1,z>>=-_,_+=O;for(;_>0;V=V*256+U[J+M],M+=P,_-=8);if(z===0)z=1-E;else if(z===S)return V?NaN:(v?-1:1)*(1/0);else V=V+Math.pow(2,O),z=z-E;return(v?-1:1)*V*Math.pow(2,z-O)}function DS(U,J,Q,O,X,z){var V,L,S,E=z*8-X-1,_=(1<<E)-1,M=_>>1,P=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=O?0:z-1,N=O?1:-1,f=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)L=isNaN(J)?1:0,V=_;else{if(V=Math.floor(Math.log(J)/Math.LN2),J*(S=Math.pow(2,-V))<1)V--,S*=2;if(V+M>=1)J+=P/S;else J+=P*Math.pow(2,1-M);if(J*S>=2)V++,S/=2;if(V+M>=_)L=0,V=_;else if(V+M>=1)L=(J*S-1)*Math.pow(2,X),V=V+M;else L=J*Math.pow(2,M-1)*Math.pow(2,X),V=0}for(;X>=8;U[Q+v]=L&255,v+=N,L/=256,X-=8);V=V<<X|L,E+=X;for(;E>0;U[Q+v]=V&255,v+=N,V/=256,E-=8);U[Q+v-N]|=f*128}function KI(U){if(U>M2)throw RangeError('The value "'+U+'" is invalid for option "size"');let J=new Uint8Array(U);return Object.setPrototypeOf(J,m0.prototype),J}function p9(U,J,Q){return class extends Q{constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(O){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:O,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}function m0(U,J,Q){if(typeof U==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return l9(U)}return HS(U,J,Q)}function HS(U,J,Q){if(typeof U==="string")return Kf(U,J);if(ArrayBuffer.isView(U))return Df(U);if(U==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(g1(U,ArrayBuffer)||U&&g1(U.buffer,ArrayBuffer))return h9(U,J,Q);if(typeof SharedArrayBuffer<"u"&&(g1(U,SharedArrayBuffer)||U&&g1(U.buffer,SharedArrayBuffer)))return h9(U,J,Q);if(typeof U==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let O=U.valueOf&&U.valueOf();if(O!=null&&O!==U)return m0.from(O,J,Q);let X=Wf(U);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]==="function")return m0.from(U[Symbol.toPrimitive]("string"),J,Q);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}function LS(U){if(typeof U!=="number")throw TypeError('"size" argument must be of type number');else if(U<0)throw RangeError('The value "'+U+'" is invalid for option "size"')}function zf(U,J,Q){if(LS(U),U<=0)return KI(U);if(J!==void 0)return typeof Q==="string"?KI(U).fill(J,Q):KI(U).fill(J);return KI(U)}function l9(U){return LS(U),KI(U<0?0:m9(U)|0)}function Kf(U,J){if(typeof J!=="string"||J==="")J="utf8";if(!m0.isEncoding(J))throw TypeError("Unknown encoding: "+J);let Q=MS(U,J)|0,O=KI(Q),X=O.write(U,J);if(X!==Q)O=O.slice(0,X);return O}function b9(U){let J=U.length<0?0:m9(U.length)|0,Q=KI(J);for(let O=0;O<J;O+=1)Q[O]=U[O]&255;return Q}function Df(U){if(g1(U,Uint8Array)){let J=new Uint8Array(U);return h9(J.buffer,J.byteOffset,J.byteLength)}return b9(U)}function h9(U,J,Q){if(J<0||U.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(U.byteLength<J+(Q||0))throw RangeError('"length" is outside of buffer bounds');let O;if(J===void 0&&Q===void 0)O=new Uint8Array(U);else if(Q===void 0)O=new Uint8Array(U,J);else O=new Uint8Array(U,J,Q);return Object.setPrototypeOf(O,m0.prototype),O}function Wf(U){if(m0.isBuffer(U)){let J=m9(U.length)|0,Q=KI(J);if(Q.length===0)return Q;return U.copy(Q,0,0,J),Q}if(U.length!==void 0){if(typeof U.length!=="number"||Number.isNaN(U.length))return KI(0);return b9(U)}if(U.type==="Buffer"&&Array.isArray(U.data))return b9(U.data)}function m9(U){if(U>=M2)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M2.toString(16)+" bytes");return U|0}function MS(U,J){if(m0.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||g1(U,ArrayBuffer))return U.byteLength;if(typeof U!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);let Q=U.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&Q===0)return 0;let X=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":return c9(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return SS(U).length;default:if(X)return O?-1:c9(U).length;J=(""+J).toLowerCase(),X=!0}}function Ff(U,J,Q){let O=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if(Q===void 0||Q>this.length)Q=this.length;if(Q<=0)return"";if(Q>>>=0,J>>>=0,Q<=J)return"";if(!U)U="utf8";while(!0)switch(U){case"hex":return Ef(this,J,Q);case"utf8":case"utf-8":return qS(this,J,Q);case"ascii":return Rf(this,J,Q);case"latin1":case"binary":return Pf(this,J,Q);case"base64":return Tf(this,J,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _f(this,J,Q);default:if(O)throw TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),O=!0}}function KJ(U,J,Q){let O=U[J];U[J]=U[Q],U[Q]=O}function AS(U,J,Q,O,X){if(U.length===0)return-1;if(typeof Q==="string")O=Q,Q=0;else if(Q>2147483647)Q=2147483647;else if(Q<-2147483648)Q=-2147483648;if(Q=+Q,Number.isNaN(Q))Q=X?0:U.length-1;if(Q<0)Q=U.length+Q;if(Q>=U.length)if(X)return-1;else Q=U.length-1;else if(Q<0)if(X)Q=0;else return-1;if(typeof J==="string")J=m0.from(J,O);if(m0.isBuffer(J)){if(J.length===0)return-1;return OS(U,J,Q,O,X)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(X)return Uint8Array.prototype.indexOf.call(U,J,Q);else return Uint8Array.prototype.lastIndexOf.call(U,J,Q);return OS(U,[J],Q,O,X)}throw TypeError("val must be string, number or Buffer")}function OS(U,J,Q,O,X){let z=1,V=U.length,L=J.length;if(O!==void 0){if(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le"){if(U.length<2||J.length<2)return-1;z=2,V/=2,L/=2,Q/=2}}function S(_,M){if(z===1)return _[M];else return _.readUInt16BE(M*z)}let E;if(X){let _=-1;for(E=Q;E<V;E++)if(S(U,E)===S(J,_===-1?0:E-_)){if(_===-1)_=E;if(E-_+1===L)return _*z}else{if(_!==-1)E-=E-_;_=-1}}else{if(Q+L>V)Q=V-L;for(E=Q;E>=0;E--){let _=!0;for(let M=0;M<L;M++)if(S(U,E+M)!==S(J,M)){_=!1;break}if(_)return E}}return-1}function Hf(U,J,Q,O){Q=Number(Q)||0;let X=U.length-Q;if(!O)O=X;else if(O=Number(O),O>X)O=X;let z=J.length;if(O>z/2)O=z/2;let V;for(V=0;V<O;++V){let L=parseInt(J.substr(V*2,2),16);if(Number.isNaN(L))return V;U[Q+V]=L}return V}function Lf(U,J,Q,O){return cO(c9(J,U.length-Q),U,Q,O)}function Mf(U,J,Q,O){return cO(Bf(J),U,Q,O)}function Af(U,J,Q,O){return cO(SS(J),U,Q,O)}function qf(U,J,Q,O){return cO(Nf(J,U.length-Q),U,Q,O)}function Tf(U,J,Q){if(J===0&&Q===U.length)return VS(U);else return VS(U.slice(J,Q))}function qS(U,J,Q){Q=Math.min(U.length,Q);let O=[],X=J;while(X<Q){let z=U[X],V=null,L=z>239?4:z>223?3:z>191?2:1;if(X+L<=Q){let S,E,_,M;switch(L){case 1:if(z<128)V=z;break;case 2:if(S=U[X+1],(S&192)===128){if(M=(z&31)<<6|S&63,M>127)V=M}break;case 3:if(S=U[X+1],E=U[X+2],(S&192)===128&&(E&192)===128){if(M=(z&15)<<12|(S&63)<<6|E&63,M>2047&&(M<55296||M>57343))V=M}break;case 4:if(S=U[X+1],E=U[X+2],_=U[X+3],(S&192)===128&&(E&192)===128&&(_&192)===128){if(M=(z&15)<<18|(S&63)<<12|(E&63)<<6|_&63,M>65535&&M<1114112)V=M}}}if(V===null)V=65533,L=1;else if(V>65535)V-=65536,O.push(V>>>10&1023|55296),V=56320|V&1023;O.push(V),X+=L}return Cf(O)}function Cf(U){let J=U.length;if(J<=zS)return String.fromCharCode.apply(String,U);let Q="",O=0;while(O<J)Q+=String.fromCharCode.apply(String,U.slice(O,O+=zS));return Q}function Rf(U,J,Q){let O="";Q=Math.min(U.length,Q);for(let X=J;X<Q;++X)O+=String.fromCharCode(U[X]&127);return O}function Pf(U,J,Q){let O="";Q=Math.min(U.length,Q);for(let X=J;X<Q;++X)O+=String.fromCharCode(U[X]);return O}function Ef(U,J,Q){let O=U.length;if(!J||J<0)J=0;if(!Q||Q<0||Q>O)Q=O;let X="";for(let z=J;z<Q;++z)X+=kf[U[z]];return X}function _f(U,J,Q){let O=U.slice(J,Q),X="";for(let z=0;z<O.length-1;z+=2)X+=String.fromCharCode(O[z]+O[z+1]*256);return X}function H6(U,J,Q){if(U%1!==0||U<0)throw RangeError("offset is not uint");if(U+J>Q)throw RangeError("Trying to access beyond buffer length")}function s6(U,J,Q,O,X,z){if(!m0.isBuffer(U))throw TypeError('"buffer" argument must be a Buffer instance');if(J>X||J<z)throw RangeError('"value" argument is out of bounds');if(Q+O>U.length)throw RangeError("Index out of range")}function TS(U,J,Q,O,X){_S(J,O,X,U,Q,7);let z=Number(J&BigInt(4294967295));U[Q++]=z,z=z>>8,U[Q++]=z,z=z>>8,U[Q++]=z,z=z>>8,U[Q++]=z;let V=Number(J>>BigInt(32)&BigInt(4294967295));return U[Q++]=V,V=V>>8,U[Q++]=V,V=V>>8,U[Q++]=V,V=V>>8,U[Q++]=V,Q}function CS(U,J,Q,O,X){_S(J,O,X,U,Q,7);let z=Number(J&BigInt(4294967295));U[Q+7]=z,z=z>>8,U[Q+6]=z,z=z>>8,U[Q+5]=z,z=z>>8,U[Q+4]=z;let V=Number(J>>BigInt(32)&BigInt(4294967295));return U[Q+3]=V,V=V>>8,U[Q+2]=V,V=V>>8,U[Q+1]=V,V=V>>8,U[Q]=V,Q+8}function RS(U,J,Q,O,X,z){if(Q+O>U.length)throw RangeError("Index out of range");if(Q<0)throw RangeError("Index out of range")}function PS(U,J,Q,O,X){if(J=+J,Q=Q>>>0,!X)RS(U,J,Q,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return DS(U,J,Q,O,23,4),Q+4}function ES(U,J,Q,O,X){if(J=+J,Q=Q>>>0,!X)RS(U,J,Q,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return DS(U,J,Q,O,52,8),Q+8}function KS(U){let J="",Q=U.length,O=U[0]==="-"?1:0;for(;Q>=O+4;Q-=3)J=`_${U.slice(Q-3,Q)}${J}`;return`${U.slice(0,Q)}${J}`}function Sf(U,J,Q){if(yQ(J,"offset"),U[J]===void 0||U[J+Q]===void 0)A2(J,U.length-(Q+1))}function _S(U,J,Q,O,X,z){if(U>Q||U<J){let V=typeof J==="bigint"?"n":"",L;if(z>3)if(J===0||J===BigInt(0))L=`>= 0${V} and < 2${V} ** ${(z+1)*8}${V}`;else L=`>= -(2${V} ** ${(z+1)*8-1}${V}) and < 2 ** ${(z+1)*8-1}${V}`;else L=`>= ${J}${V} and <= ${Q}${V}`;throw new u9("value",L,U)}Sf(O,X,z)}function yQ(U,J){if(typeof U!=="number")throw new Of(J,"number",U)}function A2(U,J,Q){if(Math.floor(U)!==U)throw yQ(U,Q),new u9(Q||"offset","an integer",U);if(J<0)throw new Zf;throw new u9(Q||"offset",`>= ${Q?1:0} and <= ${J}`,U)}function vf(U){if(U=U.split("=")[0],U=U.trim().replace(jf,""),U.length<2)return"";while(U.length%4!==0)U=U+"=";return U}function c9(U,J){J=J||1/0;let Q,O=U.length,X=null,z=[];for(let V=0;V<O;++V){if(Q=U.charCodeAt(V),Q>55295&&Q<57344){if(!X){if(Q>56319){if((J-=3)>-1)z.push(239,191,189);continue}else if(V+1===O){if((J-=3)>-1)z.push(239,191,189);continue}X=Q;continue}if(Q<56320){if((J-=3)>-1)z.push(239,191,189);X=Q;continue}Q=(X-55296<<10|Q-56320)+65536}else if(X){if((J-=3)>-1)z.push(239,191,189)}if(X=null,Q<128){if((J-=1)<0)break;z.push(Q)}else if(Q<2048){if((J-=2)<0)break;z.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((J-=3)<0)break;z.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((J-=4)<0)break;z.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw Error("Invalid code point")}return z}function Bf(U){let J=[];for(let Q=0;Q<U.length;++Q)J.push(U.charCodeAt(Q)&255);return J}function Nf(U,J){let Q,O,X,z=[];for(let V=0;V<U.length;++V){if((J-=2)<0)break;Q=U.charCodeAt(V),O=Q>>8,X=Q%256,z.push(X),z.push(O)}return z}function SS(U){return Uf(vf(U))}function cO(U,J,Q,O){let X;for(X=0;X<O;++X){if(X+Q>=J.length||X>=U.length)break;J[X+Q]=U[X]}return X}function g1(U,J){return U instanceof J||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===J.name}function OX(U){return typeof BigInt>"u"?gf:U}function gf(){throw Error("BigInt not supported")}function d9(U){return()=>{throw Error(U+" is not implemented for node:buffer browser polyfill")}}var k1,u4,y9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zJ,GS,ZS,WS=50,M2=2147483647,FS=536870888,Jf,Qf,Yf,Gf,Vf,Zf,Of,u9,zS=4096,jf,kf,xf,wf,ff=(U)=>{for(let J of U)if(J.charCodeAt(0)>127)return!1;return!0},yf,uf;var tU=wQ(()=>{k1=[],u4=[];for(zJ=0,GS=y9.length;zJ<GS;++zJ)k1[zJ]=y9[zJ],u4[y9.charCodeAt(zJ)]=zJ;u4[45]=62;u4[95]=63;ZS=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,Jf=globalThis.btoa,Qf=globalThis.atob,Yf=globalThis.File,Gf=globalThis.Blob,Vf={MAX_LENGTH:M2,MAX_STRING_LENGTH:FS};Zf=p9("ERR_BUFFER_OUT_OF_BOUNDS",function(U){if(U)return`${U} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),Of=p9("ERR_INVALID_ARG_TYPE",function(U,J){return`The "${U}" argument must be of type number. Received type ${typeof J}`},TypeError),u9=p9("ERR_OUT_OF_RANGE",function(U,J,Q){let O=`The value of "${U}" is out of range.`,X=Q;if(Number.isInteger(Q)&&Math.abs(Q)>4294967296)X=KS(String(Q));else if(typeof Q==="bigint"){if(X=String(Q),Q>BigInt(2)**BigInt(32)||Q<-(BigInt(2)**BigInt(32)))X=KS(X);X+="n"}return O+=` It must be ${J}. Received ${X}`,O},RangeError);Object.defineProperty(m0.prototype,"parent",{enumerable:!0,get:function(){if(!m0.isBuffer(this))return;return this.buffer}});Object.defineProperty(m0.prototype,"offset",{enumerable:!0,get:function(){if(!m0.isBuffer(this))return;return this.byteOffset}});m0.poolSize=8192;m0.from=function(U,J,Q){return HS(U,J,Q)};Object.setPrototypeOf(m0.prototype,Uint8Array.prototype);Object.setPrototypeOf(m0,Uint8Array);m0.alloc=function(U,J,Q){return zf(U,J,Q)};m0.allocUnsafe=function(U){return l9(U)};m0.allocUnsafeSlow=function(U){return l9(U)};m0.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==m0.prototype};m0.compare=function(U,J){if(g1(U,Uint8Array))U=m0.from(U,U.offset,U.byteLength);if(g1(J,Uint8Array))J=m0.from(J,J.offset,J.byteLength);if(!m0.isBuffer(U)||!m0.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===J)return 0;let Q=U.length,O=J.length;for(let X=0,z=Math.min(Q,O);X<z;++X)if(U[X]!==J[X]){Q=U[X],O=J[X];break}if(Q<O)return-1;if(O<Q)return 1;return 0};m0.isEncoding=function(U){switch(String(U).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};m0.concat=function(U,J){if(!Array.isArray(U))throw TypeError('"list" argument must be an Array of Buffers');if(U.length===0)return m0.alloc(0);let Q;if(J===void 0){J=0;for(Q=0;Q<U.length;++Q)J+=U[Q].length}let O=m0.allocUnsafe(J),X=0;for(Q=0;Q<U.length;++Q){let z=U[Q];if(g1(z,Uint8Array))if(X+z.length>O.length){if(!m0.isBuffer(z))z=m0.from(z);z.copy(O,X)}else Uint8Array.prototype.set.call(O,z,X);else if(!m0.isBuffer(z))throw TypeError('"list" argument must be an Array of Buffers');else z.copy(O,X);X+=z.length}return O};m0.byteLength=MS;m0.prototype._isBuffer=!0;m0.prototype.swap16=function(){let U=this.length;if(U%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<U;J+=2)KJ(this,J,J+1);return this};m0.prototype.swap32=function(){let U=this.length;if(U%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<U;J+=4)KJ(this,J,J+3),KJ(this,J+1,J+2);return this};m0.prototype.swap64=function(){let U=this.length;if(U%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<U;J+=8)KJ(this,J,J+7),KJ(this,J+1,J+6),KJ(this,J+2,J+5),KJ(this,J+3,J+4);return this};m0.prototype.toString=function(){let U=this.length;if(U===0)return"";if(arguments.length===0)return qS(this,0,U);return Ff.apply(this,arguments)};m0.prototype.toLocaleString=m0.prototype.toString;m0.prototype.equals=function(U){if(!m0.isBuffer(U))throw TypeError("Argument must be a Buffer");if(this===U)return!0;return m0.compare(this,U)===0};m0.prototype.inspect=function(){let U="",J=WS;if(U=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)U+=" ... ";return"<Buffer "+U+">"};if(ZS)m0.prototype[ZS]=m0.prototype.inspect;m0.prototype.compare=function(U,J,Q,O,X){if(g1(U,Uint8Array))U=m0.from(U,U.offset,U.byteLength);if(!m0.isBuffer(U))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(J===void 0)J=0;if(Q===void 0)Q=U?U.length:0;if(O===void 0)O=0;if(X===void 0)X=this.length;if(J<0||Q>U.length||O<0||X>this.length)throw RangeError("out of range index");if(O>=X&&J>=Q)return 0;if(O>=X)return-1;if(J>=Q)return 1;if(J>>>=0,Q>>>=0,O>>>=0,X>>>=0,this===U)return 0;let z=X-O,V=Q-J,L=Math.min(z,V),S=this.slice(O,X),E=U.slice(J,Q);for(let _=0;_<L;++_)if(S[_]!==E[_]){z=S[_],V=E[_];break}if(z<V)return-1;if(V<z)return 1;return 0};m0.prototype.includes=function(U,J,Q){return this.indexOf(U,J,Q)!==-1};m0.prototype.indexOf=function(U,J,Q){return AS(this,U,J,Q,!0)};m0.prototype.lastIndexOf=function(U,J,Q){return AS(this,U,J,Q,!1)};m0.prototype.write=function(U,J,Q,O){if(J===void 0)O="utf8",Q=this.length,J=0;else if(Q===void 0&&typeof J==="string")O=J,Q=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite(Q)){if(Q=Q>>>0,O===void 0)O="utf8"}else O=Q,Q=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let X=this.length-J;if(Q===void 0||Q>X)Q=X;if(U.length>0&&(Q<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!O)O="utf8";let z=!1;for(;;)switch(O){case"hex":return Hf(this,U,J,Q);case"utf8":case"utf-8":return Lf(this,U,J,Q);case"ascii":case"latin1":case"binary":return Mf(this,U,J,Q);case"base64":return Af(this,U,J,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qf(this,U,J,Q);default:if(z)throw TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),z=!0}};m0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};m0.prototype.slice=function(U,J){let Q=this.length;if(U=~~U,J=J===void 0?Q:~~J,U<0){if(U+=Q,U<0)U=0}else if(U>Q)U=Q;if(J<0){if(J+=Q,J<0)J=0}else if(J>Q)J=Q;if(J<U)J=U;let O=this.subarray(U,J);return Object.setPrototypeOf(O,m0.prototype),O};m0.prototype.readUintLE=m0.prototype.readUIntLE=function(U,J,Q){if(U=U>>>0,J=J>>>0,!Q)H6(U,J,this.length);let O=this[U],X=1,z=0;while(++z<J&&(X*=256))O+=this[U+z]*X;return O};m0.prototype.readUintBE=m0.prototype.readUIntBE=function(U,J,Q){if(U=U>>>0,J=J>>>0,!Q)H6(U,J,this.length);let O=this[U+--J],X=1;while(J>0&&(X*=256))O+=this[U+--J]*X;return O};m0.prototype.readUint8=m0.prototype.readUInt8=function(U,J){if(U=U>>>0,!J)H6(U,1,this.length);return this[U]};m0.prototype.readUint16LE=m0.prototype.readUInt16LE=function(U,J){if(U=U>>>0,!J)H6(U,2,this.length);return this[U]|this[U+1]<<8};m0.prototype.readUint16BE=m0.prototype.readUInt16BE=function(U,J){if(U=U>>>0,!J)H6(U,2,this.length);return this[U]<<8|this[U+1]};m0.prototype.readUint32LE=m0.prototype.readUInt32LE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216};m0.prototype.readUint32BE=m0.prototype.readUInt32BE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])};m0.prototype.readBigUInt64LE=OX(function(U){U=U>>>0,yQ(U,"offset");let J=this[U],Q=this[U+7];if(J===void 0||Q===void 0)A2(U,this.length-8);let O=J+this[++U]*256+this[++U]*65536+this[++U]*16777216,X=this[++U]+this[++U]*256+this[++U]*65536+Q*16777216;return BigInt(O)+(BigInt(X)<<BigInt(32))});m0.prototype.readBigUInt64BE=OX(function(U){U=U>>>0,yQ(U,"offset");let J=this[U],Q=this[U+7];if(J===void 0||Q===void 0)A2(U,this.length-8);let O=J*16777216+this[++U]*65536+this[++U]*256+this[++U],X=this[++U]*16777216+this[++U]*65536+this[++U]*256+Q;return(BigInt(O)<<BigInt(32))+BigInt(X)});m0.prototype.readIntLE=function(U,J,Q){if(U=U>>>0,J=J>>>0,!Q)H6(U,J,this.length);let O=this[U],X=1,z=0;while(++z<J&&(X*=256))O+=this[U+z]*X;if(X*=128,O>=X)O-=Math.pow(2,8*J);return O};m0.prototype.readIntBE=function(U,J,Q){if(U=U>>>0,J=J>>>0,!Q)H6(U,J,this.length);let O=J,X=1,z=this[U+--O];while(O>0&&(X*=256))z+=this[U+--O]*X;if(X*=128,z>=X)z-=Math.pow(2,8*J);return z};m0.prototype.readInt8=function(U,J){if(U=U>>>0,!J)H6(U,1,this.length);if(!(this[U]&128))return this[U];return(255-this[U]+1)*-1};m0.prototype.readInt16LE=function(U,J){if(U=U>>>0,!J)H6(U,2,this.length);let Q=this[U]|this[U+1]<<8;return Q&32768?Q|4294901760:Q};m0.prototype.readInt16BE=function(U,J){if(U=U>>>0,!J)H6(U,2,this.length);let Q=this[U+1]|this[U]<<8;return Q&32768?Q|4294901760:Q};m0.prototype.readInt32LE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24};m0.prototype.readInt32BE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]};m0.prototype.readBigInt64LE=OX(function(U){U=U>>>0,yQ(U,"offset");let J=this[U],Q=this[U+7];if(J===void 0||Q===void 0)A2(U,this.length-8);let O=this[U+4]+this[U+5]*256+this[U+6]*65536+(Q<<24);return(BigInt(O)<<BigInt(32))+BigInt(J+this[++U]*256+this[++U]*65536+this[++U]*16777216)});m0.prototype.readBigInt64BE=OX(function(U){U=U>>>0,yQ(U,"offset");let J=this[U],Q=this[U+7];if(J===void 0||Q===void 0)A2(U,this.length-8);let O=(J<<24)+this[++U]*65536+this[++U]*256+this[++U];return(BigInt(O)<<BigInt(32))+BigInt(this[++U]*16777216+this[++U]*65536+this[++U]*256+Q)});m0.prototype.readFloatLE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return hO(this,U,!0,23,4)};m0.prototype.readFloatBE=function(U,J){if(U=U>>>0,!J)H6(U,4,this.length);return hO(this,U,!1,23,4)};m0.prototype.readDoubleLE=function(U,J){if(U=U>>>0,!J)H6(U,8,this.length);return hO(this,U,!0,52,8)};m0.prototype.readDoubleBE=function(U,J){if(U=U>>>0,!J)H6(U,8,this.length);return hO(this,U,!1,52,8)};m0.prototype.writeUintLE=m0.prototype.writeUIntLE=function(U,J,Q,O){if(U=+U,J=J>>>0,Q=Q>>>0,!O){let V=Math.pow(2,8*Q)-1;s6(this,U,J,Q,V,0)}let X=1,z=0;this[J]=U&255;while(++z<Q&&(X*=256))this[J+z]=U/X&255;return J+Q};m0.prototype.writeUintBE=m0.prototype.writeUIntBE=function(U,J,Q,O){if(U=+U,J=J>>>0,Q=Q>>>0,!O){let V=Math.pow(2,8*Q)-1;s6(this,U,J,Q,V,0)}let X=Q-1,z=1;this[J+X]=U&255;while(--X>=0&&(z*=256))this[J+X]=U/z&255;return J+Q};m0.prototype.writeUint8=m0.prototype.writeUInt8=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,1,255,0);return this[J]=U&255,J+1};m0.prototype.writeUint16LE=m0.prototype.writeUInt16LE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,2,65535,0);return this[J]=U&255,this[J+1]=U>>>8,J+2};m0.prototype.writeUint16BE=m0.prototype.writeUInt16BE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,2,65535,0);return this[J]=U>>>8,this[J+1]=U&255,J+2};m0.prototype.writeUint32LE=m0.prototype.writeUInt32LE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,4,4294967295,0);return this[J+3]=U>>>24,this[J+2]=U>>>16,this[J+1]=U>>>8,this[J]=U&255,J+4};m0.prototype.writeUint32BE=m0.prototype.writeUInt32BE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,4,4294967295,0);return this[J]=U>>>24,this[J+1]=U>>>16,this[J+2]=U>>>8,this[J+3]=U&255,J+4};m0.prototype.writeBigUInt64LE=OX(function(U,J=0){return TS(this,U,J,BigInt(0),BigInt("0xffffffffffffffff"))});m0.prototype.writeBigUInt64BE=OX(function(U,J=0){return CS(this,U,J,BigInt(0),BigInt("0xffffffffffffffff"))});m0.prototype.writeIntLE=function(U,J,Q,O){if(U=+U,J=J>>>0,!O){let L=Math.pow(2,8*Q-1);s6(this,U,J,Q,L-1,-L)}let X=0,z=1,V=0;this[J]=U&255;while(++X<Q&&(z*=256)){if(U<0&&V===0&&this[J+X-1]!==0)V=1;this[J+X]=(U/z>>0)-V&255}return J+Q};m0.prototype.writeIntBE=function(U,J,Q,O){if(U=+U,J=J>>>0,!O){let L=Math.pow(2,8*Q-1);s6(this,U,J,Q,L-1,-L)}let X=Q-1,z=1,V=0;this[J+X]=U&255;while(--X>=0&&(z*=256)){if(U<0&&V===0&&this[J+X+1]!==0)V=1;this[J+X]=(U/z>>0)-V&255}return J+Q};m0.prototype.writeInt8=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,1,127,-128);if(U<0)U=255+U+1;return this[J]=U&255,J+1};m0.prototype.writeInt16LE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,2,32767,-32768);return this[J]=U&255,this[J+1]=U>>>8,J+2};m0.prototype.writeInt16BE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,2,32767,-32768);return this[J]=U>>>8,this[J+1]=U&255,J+2};m0.prototype.writeInt32LE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,4,2147483647,-2147483648);return this[J]=U&255,this[J+1]=U>>>8,this[J+2]=U>>>16,this[J+3]=U>>>24,J+4};m0.prototype.writeInt32BE=function(U,J,Q){if(U=+U,J=J>>>0,!Q)s6(this,U,J,4,2147483647,-2147483648);if(U<0)U=4294967295+U+1;return this[J]=U>>>24,this[J+1]=U>>>16,this[J+2]=U>>>8,this[J+3]=U&255,J+4};m0.prototype.writeBigInt64LE=OX(function(U,J=0){return TS(this,U,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});m0.prototype.writeBigInt64BE=OX(function(U,J=0){return CS(this,U,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});m0.prototype.writeFloatLE=function(U,J,Q){return PS(this,U,J,!0,Q)};m0.prototype.writeFloatBE=function(U,J,Q){return PS(this,U,J,!1,Q)};m0.prototype.writeDoubleLE=function(U,J,Q){return ES(this,U,J,!0,Q)};m0.prototype.writeDoubleBE=function(U,J,Q){return ES(this,U,J,!1,Q)};m0.prototype.copy=function(U,J,Q,O){if(!m0.isBuffer(U))throw TypeError("argument should be a Buffer");if(!Q)Q=0;if(!O&&O!==0)O=this.length;if(J>=U.length)J=U.length;if(!J)J=0;if(O>0&&O<Q)O=Q;if(O===Q)return 0;if(U.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw RangeError("Index out of range");if(O<0)throw RangeError("sourceEnd out of bounds");if(O>this.length)O=this.length;if(U.length-J<O-Q)O=U.length-J+Q;let X=O-Q;if(this===U&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,Q,O);else Uint8Array.prototype.set.call(U,this.subarray(Q,O),J);return X};m0.prototype.fill=function(U,J,Q,O){if(typeof U==="string"){if(typeof J==="string")O=J,J=0,Q=this.length;else if(typeof Q==="string")O=Q,Q=this.length;if(O!==void 0&&typeof O!=="string")throw TypeError("encoding must be a string");if(typeof O==="string"&&!m0.isEncoding(O))throw TypeError("Unknown encoding: "+O);if(U.length===1){let z=U.charCodeAt(0);if(O==="utf8"&&z<128||O==="latin1")U=z}}else if(typeof U==="number")U=U&255;else if(typeof U==="boolean")U=Number(U);if(J<0||this.length<J||this.length<Q)throw RangeError("Out of range index");if(Q<=J)return this;if(J=J>>>0,Q=Q===void 0?this.length:Q>>>0,!U)U=0;let X;if(typeof U==="number")for(X=J;X<Q;++X)this[X]=U;else{let z=m0.isBuffer(U)?U:m0.from(U,O),V=z.length;if(V===0)throw TypeError('The value "'+U+'" is invalid for argument "value"');for(X=0;X<Q-J;++X)this[X+J]=z[X%V]}return this};jf=/[^+/0-9A-Za-z-_]/g;kf=function(){let U=Array(256);for(let J=0;J<16;++J){let Q=J*16;for(let O=0;O<16;++O)U[Q+O]="0123456789abcdef"[J]+"0123456789abcdef"[O]}return U}();xf=d9("resolveObjectURL"),wf=d9("isUtf8"),yf=d9("transcode"),uf=m0});var hQ={};y6(hQ,{types:()=>rf,promisify:()=>gS,log:()=>BS,isUndefined:()=>uQ,isSymbol:()=>af,isString:()=>oO,isRegExp:()=>pO,isPrimitive:()=>sf,isObject:()=>bQ,isNumber:()=>vS,isNullOrUndefined:()=>tf,isNull:()=>nO,isFunction:()=>mO,isError:()=>lO,isDate:()=>r9,isBuffer:()=>ef,isBoolean:()=>a9,isArray:()=>jS,inspect:()=>DJ,inherits:()=>NS,format:()=>t9,deprecate:()=>hf,default:()=>Iy,debuglog:()=>cf,callbackifyOnRejected:()=>$F,callbackify:()=>xS,_extend:()=>e9,TextEncoder:()=>wS,TextDecoder:()=>fS});function t9(U,...J){if(!oO(U)){var Q=[U];for(var O=0;O<J.length;O++)Q.push(DJ(J[O]));return Q.join(" ")}var O=0,X=J.length,z=String(U).replace(bf,function(L){if(L==="%%")return"%";if(O>=X)return L;switch(L){case"%s":return String(J[O++]);case"%d":return Number(J[O++]);case"%j":try{return JSON.stringify(J[O++])}catch(S){return"[Circular]"}default:return L}});for(var V=J[O];O<X;V=J[++O])if(nO(V)||!bQ(V))z+=" "+V;else z+=" "+DJ(V);return z}function hf(U,J){if(typeof process>"u"||process?.noDeprecation===!0)return U;var Q=!1;function O(...X){if(!Q){if(process.throwDeprecation)throw Error(J);else if(process.traceDeprecation)console.trace(J);else console.error(J);Q=!0}return U.apply(this,...X)}return O}function pf(U,J){var Q=DJ.styles[J];if(Q)return"\x1B["+DJ.colors[Q][0]+"m"+U+"\x1B["+DJ.colors[Q][1]+"m";else return U}function lf(U,J){return U}function mf(U){var J={};return U.forEach(function(Q,O){J[Q]=!0}),J}function dO(U,J,Q){if(U.customInspect&&J&&mO(J.inspect)&&J.inspect!==DJ&&!(J.constructor&&J.constructor.prototype===J)){var O=J.inspect(Q,U);if(!oO(O))O=dO(U,O,Q);return O}var X=df(U,J);if(X)return X;var z=Object.keys(J),V=mf(z);if(U.showHidden)z=Object.getOwnPropertyNames(J);if(lO(J)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return n9(J);if(z.length===0){if(mO(J)){var L=J.name?": "+J.name:"";return U.stylize("[Function"+L+"]","special")}if(pO(J))return U.stylize(RegExp.prototype.toString.call(J),"regexp");if(r9(J))return U.stylize(Date.prototype.toString.call(J),"date");if(lO(J))return n9(J)}var S="",E=!1,_=["{","}"];if(jS(J))E=!0,_=["[","]"];if(mO(J)){var M=J.name?": "+J.name:"";S=" [Function"+M+"]"}if(pO(J))S=" "+RegExp.prototype.toString.call(J);if(r9(J))S=" "+Date.prototype.toUTCString.call(J);if(lO(J))S=" "+n9(J);if(z.length===0&&(!E||J.length==0))return _[0]+S+_[1];if(Q<0)if(pO(J))return U.stylize(RegExp.prototype.toString.call(J),"regexp");else return U.stylize("[Object]","special");U.seen.push(J);var P;if(E)P=nf(U,J,Q,V,z);else P=z.map(function(v){return i9(U,J,Q,V,v,E)});return U.seen.pop(),of(P,S,_)}function df(U,J){if(uQ(J))return U.stylize("undefined","undefined");if(oO(J)){var Q="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(Q,"string")}if(vS(J))return U.stylize(""+J,"number");if(a9(J))return U.stylize(""+J,"boolean");if(nO(J))return U.stylize("null","null")}function n9(U){return"["+Error.prototype.toString.call(U)+"]"}function nf(U,J,Q,O,X){var z=[];for(var V=0,L=J.length;V<L;++V)if(kS(J,String(V)))z.push(i9(U,J,Q,O,String(V),!0));else z.push("");return X.forEach(function(S){if(!S.match(/^\d+$/))z.push(i9(U,J,Q,O,S,!0))}),z}function i9(U,J,Q,O,X,z){var V,L,S;if(S=Object.getOwnPropertyDescriptor(J,X)||{value:J[X]},S.get)if(S.set)L=U.stylize("[Getter/Setter]","special");else L=U.stylize("[Getter]","special");else if(S.set)L=U.stylize("[Setter]","special");if(!kS(O,X))V="["+X+"]";if(!L)if(U.seen.indexOf(S.value)<0){if(nO(Q))L=dO(U,S.value,null);else L=dO(U,S.value,Q-1);if(L.indexOf(`
231
+ `)>-1)if(z)L=L.split(`
232
+ `).map(function(E){return" "+E}).join(`
233
+ `).slice(2);else L=`
234
+ `+L.split(`
235
+ `).map(function(E){return" "+E}).join(`
236
+ `)}else L=U.stylize("[Circular]","special");if(uQ(V)){if(z&&X.match(/^\d+$/))return L;if(V=JSON.stringify(""+X),V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))V=V.slice(1,-1),V=U.stylize(V,"name");else V=V.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),V=U.stylize(V,"string")}return V+": "+L}function of(U,J,Q){var O=0,X=U.reduce(function(z,V){if(O++,V.indexOf(`
237
+ `)>=0)O++;return z+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(X>60)return Q[0]+(J===""?"":J+`
238
+ `)+" "+U.join(`,
239
+ `)+" "+Q[1];return Q[0]+J+" "+U.join(", ")+" "+Q[1]}function jS(U){return Array.isArray(U)}function a9(U){return typeof U==="boolean"}function nO(U){return U===null}function tf(U){return U==null}function vS(U){return typeof U==="number"}function oO(U){return typeof U==="string"}function af(U){return typeof U==="symbol"}function uQ(U){return U===void 0}function pO(U){return bQ(U)&&s9(U)==="[object RegExp]"}function bQ(U){return typeof U==="object"&&U!==null}function r9(U){return bQ(U)&&s9(U)==="[object Date]"}function lO(U){return bQ(U)&&(s9(U)==="[object Error]"||U instanceof Error)}function mO(U){return typeof U==="function"}function sf(U){return U===null||typeof U==="boolean"||typeof U==="number"||typeof U==="string"||typeof U==="symbol"||typeof U>"u"}function ef(U){return U instanceof Buffer}function s9(U){return Object.prototype.toString.call(U)}function o9(U){return U<10?"0"+U.toString(10):U.toString(10)}function Uy(){var U=new Date,J=[o9(U.getHours()),o9(U.getMinutes()),o9(U.getSeconds())].join(":");return[U.getDate(),$y[U.getMonth()],J].join(" ")}function BS(...U){console.log("%s - %s",Uy(),t9.apply(null,U))}function NS(U,J){if(J)U.super_=J,U.prototype=Object.create(J.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}})}function e9(U,J){if(!J||!bQ(J))return U;var Q=Object.keys(J),O=Q.length;while(O--)U[Q[O]]=J[Q[O]];return U}function kS(U,J){return Object.prototype.hasOwnProperty.call(U,J)}function $F(U,J){if(!U){var Q=Error("Promise was rejected with a falsy value");Q.reason=U,U=Q}return J(U)}function xS(U){if(typeof U!=="function")throw TypeError('The "original" argument must be of type Function');function J(...Q){var O=Q.pop();if(typeof O!=="function")throw TypeError("The last argument must be of type Function");var X=this,z=function(...V){return O.apply(X,...V)};U.apply(this,Q).then(function(V){process.nextTick(z.bind(null,null,V))},function(V){process.nextTick($F.bind(null,V,z))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(U)),Object.defineProperties(J,Object.getOwnPropertyDescriptors(U)),J}var bf,cf,DJ,rf=()=>{},$y,gS,wS,fS,Iy;var cQ=wQ(()=>{bf=/%[sdj%]/g;cf=((U={},J={},Q)=>((Q=typeof process<"u"&&!1)&&(Q=Q.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),J=new RegExp("^"+Q+"$","i"),(O)=>{if(O=O.toUpperCase(),!U[O])if(J.test(O))U[O]=function(...X){console.error("%s: %s",O,pid,t9.apply(null,...X))};else U[O]=function(){};return U[O]}))(),DJ=((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"},U.custom=Symbol.for("nodejs.util.inspect.custom"),U))(function(U,J,...Q){var O={seen:[],stylize:lf};if(Q.length>=1)O.depth=Q[0];if(Q.length>=2)O.colors=Q[1];if(a9(J))O.showHidden=J;else if(J)e9(O,J);if(uQ(O.showHidden))O.showHidden=!1;if(uQ(O.depth))O.depth=2;if(uQ(O.colors))O.colors=!1;if(O.colors)O.stylize=pf;return dO(O,U,O.depth)});$y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];gS=((U)=>(U.custom=Symbol.for("nodejs.util.promisify.custom"),U))(function(U){if(typeof U!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&U[kCustomPromisifiedSymbol]){var J=U[kCustomPromisifiedSymbol];if(typeof J!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(...Q){var O,X,z=new Promise(function(V,L){O=V,X=L});Q.push(function(V,L){if(V)X(V);else O(L)});try{U.apply(this,Q)}catch(V){X(V)}return z}if(Object.setPrototypeOf(J,Object.getPrototypeOf(U)),kCustomPromisifiedSymbol)Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(J,Object.getOwnPropertyDescriptors(U))});({TextEncoder:wS,TextDecoder:fS}=globalThis),Iy={TextEncoder:wS,TextDecoder:fS,promisify:gS,log:BS,inherits:NS,_extend:e9,callbackifyOnRejected:$F,callbackify:xS}});var lQ={};y6(lQ,{setMaxListeners:()=>oS,once:()=>dS,listenerCount:()=>iS,init:()=>zX,getMaxListeners:()=>tS,getEventListeners:()=>nS,default:()=>zy,captureRejectionSymbol:()=>cS,addAbortListener:()=>aS,EventEmitter:()=>zX});function pS(U,J){var{_events:Q}=U;if(J[0]??=Error("Unhandled error."),!Q)throw J[0];var O=Q[hS];if(O)for(var X of uS.call(O))X.apply(U,J);var z=Q.error;if(!z)throw J[0];for(var X of uS.call(z))X.apply(U,J);return!0}function Qy(U,J,Q,O){J.then(void 0,function(X){queueMicrotask(()=>Yy(U,X,Q,O))})}function Yy(U,J,Q,O){if(typeof U[yS]==="function")U[yS](J,Q,...O);else try{U[WJ]=!1,U.emit("error",J)}finally{U[WJ]=!0}}function lS(U,J,Q){Q.warned=!0;let O=Error(`Possible EventEmitter memory leak detected. ${Q.length} ${String(J)} listeners added to [${U.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);O.name="MaxListenersExceededWarning",O.emitter=U,O.type=J,O.count=Q.length,console.warn(O)}function mS(U,J,...Q){this.removeListener(U,J),J.apply(this,Q)}function dS(U,J,Q){var O=Q?.signal;if(rS(O,"options.signal"),O?.aborted)throw new UF(void 0,{cause:O?.reason});let{resolve:X,reject:z,promise:V}=$newPromiseCapability(Promise),L=(_)=>{if(U.removeListener(J,S),O!=null)iO(O,"abort",E);z(_)},S=(..._)=>{if(typeof U.removeListener==="function")U.removeListener("error",L);if(O!=null)iO(O,"abort",E);X(_)};if(bS(U,J,S,{once:!0}),J!=="error"&&typeof U.once==="function")U.once("error",L);function E(){iO(U,J,S),iO(U,"error",L),z(new UF(void 0,{cause:O?.reason}))}if(O!=null)bS(O,"abort",E,{once:!0});return V}function nS(U,J){return U.listeners(J)}function oS(U,...J){XF(U,"setMaxListeners",0);var Q;if(J&&(Q=J.length))for(let O=0;O<Q;O++)J[O].setMaxListeners(U);else FJ=U}function iS(U,J){return U.listenerCount(J)}function iO(U,J,Q,O){if(typeof U.removeListener==="function")U.removeListener(J,Q);else U.removeEventListener(J,Q,O)}function bS(U,J,Q,O){if(typeof U.on==="function")if(O.once)U.once(J,Q);else U.on(J,Q);else U.addEventListener(J,Q,O)}function pQ(U,J,Q){let O=TypeError(`The "${U}" argument must be of type ${J}. Received ${Q}`);return O.code="ERR_INVALID_ARG_TYPE",O}function Zy(U,J,Q){let O=RangeError(`The "${U}" argument is out of range. It must be ${J}. Received ${Q}`);return O.code="ERR_OUT_OF_RANGE",O}function rS(U,J){if(U!==void 0&&(U===null||typeof U!=="object"||!("aborted"in U)))throw pQ(J,"AbortSignal",U)}function XF(U,J,Q,O){if(typeof U!=="number")throw pQ(J,"number",U);if(Q!=null&&U<Q||O!=null&&U>O||(Q!=null||O!=null)&&Number.isNaN(U))throw Zy(J,`${Q!=null?`>= ${Q}`:""}${Q!=null&&O!=null?" && ":""}${O!=null?`<= ${O}`:""}`,U)}function q2(U){if(typeof U!=="function")throw TypeError("The listener must be a function")}function Oy(U,J){if(typeof U!=="boolean")throw pQ(J,"boolean",U)}function tS(U){return U?._maxListeners??FJ}function aS(U,J){if(U===void 0)throw pQ("signal","AbortSignal",U);if(rS(U,"signal"),typeof J!=="function")throw pQ("listener","function",J);let Q;if(U.aborted)queueMicrotask(()=>J());else U.addEventListener("abort",J,{__proto__:null,once:!0}),Q=()=>{U.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){Q?.()}}}var IF,WJ,hS,Xy,Jy,yS,cS,uS,FJ=10,zX=function(U){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[WJ]=U?.captureRejections?Boolean(U?.captureRejections):NU[WJ])this.emit=Vy},NU,Gy=function(U,...J){if(U==="error")return pS(this,J);var{_events:Q}=this;if(Q===void 0)return!1;var O=Q[U];if(O===void 0)return!1;let X=O.length>1?O.slice():O;for(let z=0,{length:V}=X;z<V;z++){let L=X[z];switch(J.length){case 0:L.call(this);break;case 1:L.call(this,J[0]);break;case 2:L.call(this,J[0],J[1]);break;case 3:L.call(this,J[0],J[1],J[2]);break;default:L.apply(this,J);break}}return!0},Vy=function(U,...J){if(U==="error")return pS(this,J);var{_events:Q}=this;if(Q===void 0)return!1;var O=Q[U];if(O===void 0)return!1;let X=O.length>1?O.slice():O;for(let z=0,{length:V}=X;z<V;z++){let L=X[z],S;switch(J.length){case 0:S=L.call(this);break;case 1:S=L.call(this,J[0]);break;case 2:S=L.call(this,J[0],J[1]);break;case 3:S=L.call(this,J[0],J[1],J[2]);break;default:S=L.apply(this,J);break}if(S!==void 0&&typeof S?.then==="function"&&S.then===Promise.prototype.then)Qy(this,S,U,J)}return!0},UF,zy;var mQ=wQ(()=>{IF=Symbol.for,WJ=Symbol("kCapture"),hS=IF("events.errorMonitor"),Xy=Symbol("events.maxEventTargetListeners"),Jy=Symbol("events.maxEventTargetListenersWarned"),yS=IF("nodejs.rejection"),cS=IF("nodejs.rejection"),uS=Array.prototype.slice,NU=zX.prototype={};NU._events=void 0;NU._eventsCount=0;NU._maxListeners=void 0;NU.setMaxListeners=function(U){return XF(U,"setMaxListeners",0),this._maxListeners=U,this};NU.constructor=zX;NU.getMaxListeners=function(){return this?._maxListeners??FJ};NU.emit=Gy;NU.addListener=function(U,J){q2(J);var Q=this._events;if(!Q)Q=this._events={__proto__:null},this._eventsCount=0;else if(Q.newListener)this.emit("newListener",U,J.listener??J);var O=Q[U];if(!O)Q[U]=[J],this._eventsCount++;else{O.push(J);var X=this._maxListeners??FJ;if(X>0&&O.length>X&&!O.warned)lS(this,U,O)}return this};NU.on=NU.addListener;NU.prependListener=function(U,J){q2(J);var Q=this._events;if(!Q)Q=this._events={__proto__:null},this._eventsCount=0;else if(Q.newListener)this.emit("newListener",U,J.listener??J);var O=Q[U];if(!O)Q[U]=[J],this._eventsCount++;else{O.unshift(J);var X=this._maxListeners??FJ;if(X>0&&O.length>X&&!O.warned)lS(this,U,O)}return this};NU.once=function(U,J){q2(J);let Q=mS.bind(this,U,J);return Q.listener=J,this.addListener(U,Q),this};NU.prependOnceListener=function(U,J){q2(J);let Q=mS.bind(this,U,J);return Q.listener=J,this.prependListener(U,Q),this};NU.removeListener=function(U,J){q2(J);var{_events:Q}=this;if(!Q)return this;var O=Q[U];if(!O)return this;var X=O.length;let z=-1;for(let V=X-1;V>=0;V--)if(O[V]===J||O[V].listener===J){z=V;break}if(z<0)return this;if(z===0)O.shift();else O.splice(z,1);if(O.length===0)delete Q[U],this._eventsCount--;return this};NU.off=NU.removeListener;NU.removeAllListeners=function(U){var{_events:J}=this;if(U&&J){if(J[U])delete J[U],this._eventsCount--}else this._events={__proto__:null};return this};NU.listeners=function(U){var{_events:J}=this;if(!J)return[];var Q=J[U];if(!Q)return[];return Q.map((O)=>O.listener??O)};NU.rawListeners=function(U){var{_events:J}=this;if(!J)return[];var Q=J[U];if(!Q)return[];return Q.slice()};NU.listenerCount=function(U){var{_events:J}=this;if(!J)return 0;return J[U]?.length??0};NU.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};NU[WJ]=!1;UF=class UF extends Error{constructor(U="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw pQ("options","Object",J);super(U,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(zX,{captureRejections:{get(){return NU[WJ]},set(U){Oy(U,"EventEmitter.captureRejections"),NU[WJ]=U},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return FJ},set:(U)=>{XF(U,"defaultMaxListeners",0),FJ=U}},kMaxEventTargetListeners:{value:Xy,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:Jy,enumerable:!1,configurable:!1,writable:!1}});Object.assign(zX,{once:dS,getEventListeners:nS,getMaxListeners:tS,setMaxListeners:oS,EventEmitter:zX,usingDomains:!1,captureRejectionSymbol:cS,errorMonitor:hS,addAbortListener:aS,init:zX,listenerCount:iS});zy=zX});var nQ=ZX((Ao,Qj)=>{var YU=(U,J)=>()=>(J||U((J={exports:{}}).exports,J),J.exports),bU=YU((U,J)=>{class Q extends Error{constructor(O){if(!Array.isArray(O))throw TypeError(`Expected input to be an Array, got ${typeof O}`);let X="";for(let z=0;z<O.length;z++)X+=` ${O[z].stack}
240
+ `;super(X);this.name="AggregateError",this.errors=O}}J.exports={AggregateError:Q,ArrayIsArray(O){return Array.isArray(O)},ArrayPrototypeIncludes(O,X){return O.includes(X)},ArrayPrototypeIndexOf(O,X){return O.indexOf(X)},ArrayPrototypeJoin(O,X){return O.join(X)},ArrayPrototypeMap(O,X){return O.map(X)},ArrayPrototypePop(O,X){return O.pop(X)},ArrayPrototypePush(O,X){return O.push(X)},ArrayPrototypeSlice(O,X,z){return O.slice(X,z)},Error,FunctionPrototypeCall(O,X,...z){return O.call(X,...z)},FunctionPrototypeSymbolHasInstance(O,X){return Function.prototype[Symbol.hasInstance].call(O,X)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(O,X){return Object.defineProperties(O,X)},ObjectDefineProperty(O,X,z){return Object.defineProperty(O,X,z)},ObjectGetOwnPropertyDescriptor(O,X){return Object.getOwnPropertyDescriptor(O,X)},ObjectKeys(O){return Object.keys(O)},ObjectSetPrototypeOf(O,X){return Object.setPrototypeOf(O,X)},Promise,PromisePrototypeCatch(O,X){return O.catch(X)},PromisePrototypeThen(O,X,z){return O.then(X,z)},PromiseReject(O){return Promise.reject(O)},PromiseResolve(O){return Promise.resolve(O)},ReflectApply:Reflect.apply,RegExpPrototypeTest(O,X){return O.test(X)},SafeSet:Set,String,StringPrototypeSlice(O,X,z){return O.slice(X,z)},StringPrototypeToLowerCase(O){return O.toLowerCase()},StringPrototypeToUpperCase(O){return O.toUpperCase()},StringPrototypeTrim(O){return O.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(O,X,z){return O.set(X,z)},Boolean,Uint8Array}}),sS=YU((U,J)=>{J.exports={format(Q,...O){return Q.replace(/%([sdifj])/g,function(...[X,z]){let V=O.shift();if(z==="f")return V.toFixed(6);else if(z==="j")return JSON.stringify(V);else if(z==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(Q){switch(typeof Q){case"string":if(Q.includes("'")){if(!Q.includes('"'))return`"${Q}"`;else if(!Q.includes("`")&&!Q.includes("${"))return`\`${Q}\``}return`'${Q}'`;case"number":if(isNaN(Q))return"NaN";else if(Object.is(Q,-0))return String(Q);return Q;case"bigint":return`${String(Q)}n`;case"boolean":case"undefined":return String(Q);case"object":return"{}"}}}}),u6=YU((U,J)=>{var{format:Q,inspect:O}=sS(),{AggregateError:X}=bU(),z=globalThis.AggregateError||X,V=Symbol("kIsNodeError"),L=["string","function","number","object","Function","Object","boolean","bigint","symbol"],S=/^([A-Z][a-z0-9]*)+$/,E={};function _(b,k){if(!b)throw new E.ERR_INTERNAL_ASSERTION(k)}function M(b){let k="",u=b.length,p=b[0]==="-"?1:0;for(;u>=p+4;u-=3)k=`_${b.slice(u-3,u)}${k}`;return`${b.slice(0,u)}${k}`}function P(b,k,u){if(typeof k==="function")return _(k.length<=u.length,`Code: ${b}; The provided arguments length (${u.length}) does not match the required ones (${k.length}).`),k(...u);let p=(k.match(/%[dfijoOs]/g)||[]).length;if(_(p===u.length,`Code: ${b}; The provided arguments length (${u.length}) does not match the required ones (${p}).`),u.length===0)return k;return Q(k,...u)}function v(b,k,u){if(!u)u=Error;class p extends u{constructor(...m){super(P(b,k,m))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(p.prototype,{name:{value:u.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),p.prototype.code=b,p.prototype[V]=!0,E[b]=p}function N(b){let k="__node_internal_"+b.name;return Object.defineProperty(b,"name",{value:k}),b}function f(b,k){if(b&&k&&b!==k){if(Array.isArray(k.errors))return k.errors.push(b),k;let u=new z([k,b],k.message);return u.code=k.code,u}return b||k}class x extends Error{constructor(b="The operation was aborted",k=void 0){if(k!==void 0&&typeof k!=="object")throw new E.ERR_INVALID_ARG_TYPE("options","Object",k);super(b,k);this.code="ABORT_ERR",this.name="AbortError"}}v("ERR_ASSERTION","%s",Error),v("ERR_INVALID_ARG_TYPE",(b,k,u)=>{if(_(typeof b==="string","'name' must be a string"),!Array.isArray(k))k=[k];let p="The ";if(b.endsWith(" argument"))p+=`${b} `;else p+=`"${b}" ${b.includes(".")?"property":"argument"} `;p+="must be ";let m=[],a=[],Z0=[];for(let C0 of k)if(_(typeof C0==="string","All expected entries have to be of type string"),L.includes(C0))m.push(C0.toLowerCase());else if(S.test(C0))a.push(C0);else _(C0!=="object",'The value "object" should be written as "Object"'),Z0.push(C0);if(a.length>0){let C0=m.indexOf("object");if(C0!==-1)m.splice(m,C0,1),a.push("Object")}if(m.length>0){switch(m.length){case 1:p+=`of type ${m[0]}`;break;case 2:p+=`one of type ${m[0]} or ${m[1]}`;break;default:{let C0=m.pop();p+=`one of type ${m.join(", ")}, or ${C0}`}}if(a.length>0||Z0.length>0)p+=" or "}if(a.length>0){switch(a.length){case 1:p+=`an instance of ${a[0]}`;break;case 2:p+=`an instance of ${a[0]} or ${a[1]}`;break;default:{let C0=a.pop();p+=`an instance of ${a.join(", ")}, or ${C0}`}}if(Z0.length>0)p+=" or "}switch(Z0.length){case 0:break;case 1:if(Z0[0].toLowerCase()!==Z0[0])p+="an ";p+=`${Z0[0]}`;break;case 2:p+=`one of ${Z0[0]} or ${Z0[1]}`;break;default:{let C0=Z0.pop();p+=`one of ${Z0.join(", ")}, or ${C0}`}}if(u==null)p+=`. Received ${u}`;else if(typeof u==="function"&&u.name)p+=`. Received function ${u.name}`;else if(typeof u==="object"){var L0;if((L0=u.constructor)!==null&&L0!==void 0&&L0.name)p+=`. Received an instance of ${u.constructor.name}`;else{let C0=O(u,{depth:-1});p+=`. Received ${C0}`}}else{let C0=O(u,{colors:!1});if(C0.length>25)C0=`${C0.slice(0,25)}...`;p+=`. Received type ${typeof u} (${C0})`}return p},TypeError),v("ERR_INVALID_ARG_VALUE",(b,k,u="is invalid")=>{let p=O(k);if(p.length>128)p=p.slice(0,128)+"...";return`The ${b.includes(".")?"property":"argument"} '${b}' ${u}. Received ${p}`},TypeError),v("ERR_INVALID_RETURN_VALUE",(b,k,u)=>{var p;let m=u!==null&&u!==void 0&&(p=u.constructor)!==null&&p!==void 0&&p.name?`instance of ${u.constructor.name}`:`type ${typeof u}`;return`Expected ${b} to be returned from the "${k}" function but got ${m}.`},TypeError),v("ERR_MISSING_ARGS",(...b)=>{_(b.length>0,"At least one arg needs to be specified");let k,u=b.length;switch(b=(Array.isArray(b)?b:[b]).map((p)=>`"${p}"`).join(" or "),u){case 1:k+=`The ${b[0]} argument`;break;case 2:k+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let p=b.pop();k+=`The ${b.join(", ")}, and ${p} arguments`}break}return`${k} must be specified`},TypeError),v("ERR_OUT_OF_RANGE",(b,k,u)=>{_(k,'Missing "range" argument');let p;if(Number.isInteger(u)&&Math.abs(u)>4294967296)p=M(String(u));else if(typeof u==="bigint"){p=String(u);let m=BigInt(2)**BigInt(32);if(u>m||u<-m)p=M(p);p+="n"}else p=O(u);return`The value of "${b}" is out of range. It must be ${k}. Received ${p}`},RangeError),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),v("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),v("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),v("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),v("ERR_STREAM_WRITE_AFTER_END","write after end",Error),v("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:x,aggregateTwoErrors:N(f),hideStackFrames:N,codes:E}}),Ky=YU((U,J)=>{Object.defineProperty(U,"__esModule",{value:!0});var Q=new WeakMap,O=new WeakMap;function X(o){let q0=Q.get(o);return console.assert(q0!=null,"'this' is expected an Event object, but got",o),q0}function z(o){if(o.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",o.passiveListener);return}if(!o.event.cancelable)return;if(o.canceled=!0,typeof o.event.preventDefault==="function")o.event.preventDefault()}function V(o,q0){Q.set(this,{eventTarget:o,event:q0,eventPhase:2,currentTarget:o,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:q0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let G=Object.keys(q0);for(let D=0;D<G.length;++D){let H=G[D];if(!(H in this))Object.defineProperty(this,H,L(H))}}if(V.prototype={get type(){return X(this).event.type},get target(){return X(this).eventTarget},get currentTarget(){return X(this).currentTarget},composedPath(){let o=X(this).currentTarget;if(o==null)return[];return[o]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return X(this).eventPhase},stopPropagation(){let o=X(this);if(o.stopped=!0,typeof o.event.stopPropagation==="function")o.event.stopPropagation()},stopImmediatePropagation(){let o=X(this);if(o.stopped=!0,o.immediateStopped=!0,typeof o.event.stopImmediatePropagation==="function")o.event.stopImmediatePropagation()},get bubbles(){return Boolean(X(this).event.bubbles)},get cancelable(){return Boolean(X(this).event.cancelable)},preventDefault(){z(X(this))},get defaultPrevented(){return X(this).canceled},get composed(){return Boolean(X(this).event.composed)},get timeStamp(){return X(this).timeStamp},get srcElement(){return X(this).eventTarget},get cancelBubble(){return X(this).stopped},set cancelBubble(o){if(!o)return;let q0=X(this);if(q0.stopped=!0,typeof q0.event.cancelBubble==="boolean")q0.event.cancelBubble=!0},get returnValue(){return!X(this).canceled},set returnValue(o){if(!o)z(X(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),O.set(window.Event.prototype,V);function L(o){return{get(){return X(this).event[o]},set(q0){X(this).event[o]=q0},configurable:!0,enumerable:!0}}function S(o){return{value(){let q0=X(this).event;return q0[o].apply(q0,arguments)},configurable:!0,enumerable:!0}}function E(o,q0){let G=Object.keys(q0);if(G.length===0)return o;function D(H,K){o.call(this,H,K)}D.prototype=Object.create(o.prototype,{constructor:{value:D,configurable:!0,writable:!0}});for(let H=0;H<G.length;++H){let K=G[H];if(!(K in o.prototype)){let F=typeof Object.getOwnPropertyDescriptor(q0,K).value==="function";Object.defineProperty(D.prototype,K,F?S(K):L(K))}}return D}function _(o){if(o==null||o===Object.prototype)return V;let q0=O.get(o);if(q0==null)q0=E(_(Object.getPrototypeOf(o)),o),O.set(o,q0);return q0}function M(o,q0){return new(_(Object.getPrototypeOf(q0)))(o,q0)}function P(o){return X(o).immediateStopped}function v(o,q0){X(o).eventPhase=q0}function N(o,q0){X(o).currentTarget=q0}function f(o,q0){X(o).passiveListener=q0}var x=new WeakMap,b=1,k=2,u=3;function p(o){return o!==null&&typeof o==="object"}function m(o){let q0=x.get(o);if(q0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return q0}function a(o){return{get(){let q0=m(this).get(o);while(q0!=null){if(q0.listenerType===u)return q0.listener;q0=q0.next}return null},set(q0){if(typeof q0!=="function"&&!p(q0))q0=null;let G=m(this),D=null,H=G.get(o);while(H!=null){if(H.listenerType===u)if(D!==null)D.next=H.next;else if(H.next!==null)G.set(o,H.next);else G.delete(o);else D=H;H=H.next}if(q0!==null){let K={listener:q0,listenerType:u,passive:!1,once:!1,next:null};if(D===null)G.set(o,K);else D.next=K}},configurable:!0,enumerable:!0}}function Z0(o,q0){Object.defineProperty(o,`on${q0}`,a(q0))}function L0(o){function q0(){C0.call(this)}q0.prototype=Object.create(C0.prototype,{constructor:{value:q0,configurable:!0,writable:!0}});for(let G=0;G<o.length;++G)Z0(q0.prototype,o[G]);return q0}function C0(){if(this instanceof C0){x.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return L0(arguments[0]);if(arguments.length>0){let o=Array(arguments.length);for(let q0=0;q0<arguments.length;++q0)o[q0]=arguments[q0];return L0(o)}throw TypeError("Cannot call a class as a function")}if(C0.prototype={addEventListener(o,q0,G){if(q0==null)return;if(typeof q0!=="function"&&!p(q0))throw TypeError("'listener' should be a function or an object.");let D=m(this),H=p(G),K=(H?Boolean(G.capture):Boolean(G))?b:k,F={listener:q0,listenerType:K,passive:H&&Boolean(G.passive),once:H&&Boolean(G.once),next:null},C=D.get(o);if(C===void 0){D.set(o,F);return}let j=null;while(C!=null){if(C.listener===q0&&C.listenerType===K)return;j=C,C=C.next}j.next=F},removeEventListener(o,q0,G){if(q0==null)return;let D=m(this),H=(p(G)?Boolean(G.capture):Boolean(G))?b:k,K=null,F=D.get(o);while(F!=null){if(F.listener===q0&&F.listenerType===H){if(K!==null)K.next=F.next;else if(F.next!==null)D.set(o,F.next);else D.delete(o);return}K=F,F=F.next}},dispatchEvent(o){if(o==null||typeof o.type!=="string")throw TypeError('"event.type" should be a string.');let q0=m(this),G=o.type,D=q0.get(G);if(D==null)return!0;let H=M(this,o),K=null;while(D!=null){if(D.once)if(K!==null)K.next=D.next;else if(D.next!==null)q0.set(G,D.next);else q0.delete(G);else K=D;if(f(H,D.passive?D.listener:null),typeof D.listener==="function")try{D.listener.call(this,H)}catch(F){if(typeof console<"u"&&typeof console.error==="function")console.error(F)}else if(D.listenerType!==u&&typeof D.listener.handleEvent==="function")D.listener.handleEvent(H);if(P(H))break;D=D.next}return f(H,null),v(H,0),N(H,null),!H.defaultPrevented}},Object.defineProperty(C0.prototype,"constructor",{value:C0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(C0.prototype,window.EventTarget.prototype);U.defineEventAttribute=Z0,U.EventTarget=C0,U.default=C0,J.exports=C0,J.exports.EventTarget=J.exports.default=C0,J.exports.defineEventAttribute=Z0}),T2=YU((U,J)=>{Object.defineProperty(U,"__esModule",{value:!0});var Q=Ky();class O extends Q.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let _=V.get(this);if(typeof _!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return _}}Q.defineEventAttribute(O.prototype,"abort");function X(){let _=Object.create(O.prototype);return Q.EventTarget.call(_),V.set(_,!1),_}function z(_){if(V.get(_)!==!1)return;V.set(_,!0),_.dispatchEvent({type:"abort"})}var V=new WeakMap;if(Object.defineProperties(O.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(O.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class L{constructor(){S.set(this,X())}get signal(){return E(this)}abort(){z(E(this))}}var S=new WeakMap;function E(_){let M=S.get(_);if(M==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${_===null?"null":typeof _}`);return M}if(Object.defineProperties(L.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(L.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});U.AbortController=L,U.AbortSignal=O,U.default=L,J.exports=L,J.exports.AbortController=J.exports.default=L,J.exports.AbortSignal=O}),e6=YU((U,J)=>{var Q=(tU(),v$(rU)),{format:O,inspect:X}=sS(),{codes:{ERR_INVALID_ARG_TYPE:z}}=u6(),{kResistStopPropagation:V,AggregateError:L,SymbolDispose:S}=bU(),E=globalThis.AbortSignal||T2().AbortSignal,_=globalThis.AbortController||T2().AbortController,M=Object.getPrototypeOf(async function(){}).constructor,P=globalThis.Blob||Q.Blob,v=typeof P<"u"?function(x){return x instanceof P}:function(x){return!1},N=(x,b)=>{if(x!==void 0&&(x===null||typeof x!=="object"||!("aborted"in x)))throw new z(b,"AbortSignal",x)},f=(x,b)=>{if(typeof x!=="function")throw new z(b,"Function",x)};J.exports={AggregateError:L,kEmptyObject:Object.freeze({}),once(x){let b=!1;return function(...k){if(b)return;b=!0,x.apply(this,k)}},createDeferredPromise:function(){let x,b;return{promise:new Promise((k,u)=>{x=k,b=u}),resolve:x,reject:b}},promisify(x){return new Promise((b,k)=>{x((u,...p)=>{if(u)return k(u);return b(...p)})})},debuglog(){return function(){}},format:O,inspect:X,types:{isAsyncFunction(x){return x instanceof M},isArrayBufferView(x){return ArrayBuffer.isView(x)}},isBlob:v,deprecate(x,b){return x},addAbortListener:(mQ(),v$(lQ)).addAbortListener||function(x,b){if(x===void 0)throw new z("signal","AbortSignal",x);N(x,"signal"),f(b,"listener");let k;if(x.aborted)queueMicrotask(()=>b());else x.addEventListener("abort",b,{__proto__:null,once:!0,[V]:!0}),k=()=>{x.removeEventListener("abort",b)};return{__proto__:null,[S](){var u;(u=k)===null||u===void 0||u()}}},AbortSignalAny:E.any||function(x){if(x.length===1)return x[0];let b=new _,k=()=>b.abort();return x.forEach((u)=>{N(u,"signals"),u.addEventListener("abort",k,{once:!0})}),b.signal.addEventListener("abort",()=>{x.forEach((u)=>u.removeEventListener("abort",k))},{once:!0}),b.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),C2=YU((U,J)=>{var{ArrayIsArray:Q,ArrayPrototypeIncludes:O,ArrayPrototypeJoin:X,ArrayPrototypeMap:z,NumberIsInteger:V,NumberIsNaN:L,NumberMAX_SAFE_INTEGER:S,NumberMIN_SAFE_INTEGER:E,NumberParseInt:_,ObjectPrototypeHasOwnProperty:M,RegExpPrototypeExec:P,String:v,StringPrototypeToUpperCase:N,StringPrototypeTrim:f}=bU(),{hideStackFrames:x,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:k,ERR_INVALID_ARG_VALUE:u,ERR_OUT_OF_RANGE:p,ERR_UNKNOWN_SIGNAL:m}}=u6(),{normalizeEncoding:a}=e6(),{isAsyncFunction:Z0,isArrayBufferView:L0}=e6().types,C0={};function o(I0){return I0===(I0|0)}function q0(I0){return I0===I0>>>0}var G=/^[0-7]+$/,D="must be a 32-bit unsigned integer or an octal string";function H(I0,K0,U$){if(typeof I0>"u")I0=U$;if(typeof I0==="string"){if(P(G,I0)===null)throw new u(K0,I0,D);I0=_(I0,8)}return C(I0,K0),I0}var K=x((I0,K0,U$=E,M0=S)=>{if(typeof I0!=="number")throw new k(K0,"number",I0);if(!V(I0))throw new p(K0,"an integer",I0);if(I0<U$||I0>M0)throw new p(K0,`>= ${U$} && <= ${M0}`,I0)}),F=x((I0,K0,U$=-2147483648,M0=2147483647)=>{if(typeof I0!=="number")throw new k(K0,"number",I0);if(!V(I0))throw new p(K0,"an integer",I0);if(I0<U$||I0>M0)throw new p(K0,`>= ${U$} && <= ${M0}`,I0)}),C=x((I0,K0,U$=!1)=>{if(typeof I0!=="number")throw new k(K0,"number",I0);if(!V(I0))throw new p(K0,"an integer",I0);let M0=U$?1:0,v0=4294967295;if(I0<M0||I0>v0)throw new p(K0,`>= ${M0} && <= ${v0}`,I0)});function j(I0,K0){if(typeof I0!=="string")throw new k(K0,"string",I0)}function q(I0,K0,U$=void 0,M0){if(typeof I0!=="number")throw new k(K0,"number",I0);if(U$!=null&&I0<U$||M0!=null&&I0>M0||(U$!=null||M0!=null)&&L(I0))throw new p(K0,`${U$!=null?`>= ${U$}`:""}${U$!=null&&M0!=null?" && ":""}${M0!=null?`<= ${M0}`:""}`,I0)}var Z=x((I0,K0,U$)=>{if(!O(U$,I0)){let M0="must be one of: "+X(z(U$,(v0)=>typeof v0==="string"?`'${v0}'`:v(v0)),", ");throw new u(K0,I0,M0)}});function T(I0,K0){if(typeof I0!=="boolean")throw new k(K0,"boolean",I0)}function w(I0,K0,U$){return I0==null||!M(I0,K0)?U$:I0[K0]}var B=x((I0,K0,U$=null)=>{let M0=w(U$,"allowArray",!1),v0=w(U$,"allowFunction",!1);if(!w(U$,"nullable",!1)&&I0===null||!M0&&Q(I0)||typeof I0!=="object"&&(!v0||typeof I0!=="function"))throw new k(K0,"Object",I0)}),h=x((I0,K0)=>{if(I0!=null&&typeof I0!=="object"&&typeof I0!=="function")throw new k(K0,"a dictionary",I0)}),t=x((I0,K0,U$=0)=>{if(!Q(I0))throw new k(K0,"Array",I0);if(I0.length<U$){let M0=`must be longer than ${U$}`;throw new u(K0,I0,M0)}});function U0(I0,K0){t(I0,K0);for(let U$=0;U$<I0.length;U$++)j(I0[U$],`${K0}[${U$}]`)}function z0(I0,K0){t(I0,K0);for(let U$=0;U$<I0.length;U$++)T(I0[U$],`${K0}[${U$}]`)}function Q0(I0,K0){t(I0,K0);for(let U$=0;U$<I0.length;U$++){let M0=I0[U$],v0=`${K0}[${U$}]`;if(M0==null)throw new k(v0,"AbortSignal",M0);A0(M0,v0)}}function s(I0,K0="signal"){if(j(I0,K0),C0[I0]===void 0){if(C0[N(I0)]!==void 0)throw new m(I0+" (signals must use all capital letters)");throw new m(I0)}}var e=x((I0,K0="buffer")=>{if(!L0(I0))throw new k(K0,["Buffer","TypedArray","DataView"],I0)});function J0(I0,K0){let U$=a(K0),M0=I0.length;if(U$==="hex"&&M0%2!==0)throw new u("encoding",K0,`is invalid for data of length ${M0}`)}function V0(I0,K0="Port",U$=!0){if(typeof I0!=="number"&&typeof I0!=="string"||typeof I0==="string"&&f(I0).length===0||+I0!==+I0>>>0||I0>65535||I0===0&&!U$)throw new b(K0,I0,U$);return I0|0}var A0=x((I0,K0)=>{if(I0!==void 0&&(I0===null||typeof I0!=="object"||!("aborted"in I0)))throw new k(K0,"AbortSignal",I0)}),$0=x((I0,K0)=>{if(typeof I0!=="function")throw new k(K0,"Function",I0)}),c=x((I0,K0)=>{if(typeof I0!=="function"||Z0(I0))throw new k(K0,"Function",I0)}),n=x((I0,K0)=>{if(I0!==void 0)throw new k(K0,"undefined",I0)});function H0(I0,K0,U$){if(!O(U$,I0))throw new k(K0,`('${X(U$,"|")}')`,I0)}var Y0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function D0(I0,K0){if(typeof I0>"u"||!P(Y0,I0))throw new u(K0,I0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function N0(I0){if(typeof I0==="string")return D0(I0,"hints"),I0;else if(Q(I0)){let K0=I0.length,U$="";if(K0===0)return U$;for(let M0=0;M0<K0;M0++){let v0=I0[M0];if(D0(v0,"hints"),U$+=v0,M0!==K0-1)U$+=", "}return U$}throw new u("hints",I0,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:o,isUint32:q0,parseFileMode:H,validateArray:t,validateStringArray:U0,validateBooleanArray:z0,validateAbortSignalArray:Q0,validateBoolean:T,validateBuffer:e,validateDictionary:h,validateEncoding:J0,validateFunction:$0,validateInt32:F,validateInteger:K,validateNumber:q,validateObject:B,validateOneOf:Z,validatePlainFunction:c,validatePort:V0,validateSignalName:s,validateString:j,validateUint32:C,validateUndefined:n,validateUnion:H0,validateAbortSignal:A0,validateLinkHeaderValue:N0}}),HJ=YU((U,J)=>{J.exports=globalThis.process}),WI=YU((U,J)=>{var{SymbolAsyncIterator:Q,SymbolIterator:O,SymbolFor:X}=bU(),z=X("nodejs.stream.destroyed"),V=X("nodejs.stream.errored"),L=X("nodejs.stream.readable"),S=X("nodejs.stream.writable"),E=X("nodejs.stream.disturbed"),_=X("nodejs.webstream.isClosedPromise"),M=X("nodejs.webstream.controllerErrorFunction");function P(w,B=!1){var h;return!!(w&&typeof w.pipe==="function"&&typeof w.on==="function"&&(!B||typeof w.pause==="function"&&typeof w.resume==="function")&&(!w._writableState||((h=w._readableState)===null||h===void 0?void 0:h.readable)!==!1)&&(!w._writableState||w._readableState))}function v(w){var B;return!!(w&&typeof w.write==="function"&&typeof w.on==="function"&&(!w._readableState||((B=w._writableState)===null||B===void 0?void 0:B.writable)!==!1))}function N(w){return!!(w&&typeof w.pipe==="function"&&w._readableState&&typeof w.on==="function"&&typeof w.write==="function")}function f(w){return w&&(w._readableState||w._writableState||typeof w.write==="function"&&typeof w.on==="function"||typeof w.pipe==="function"&&typeof w.on==="function")}function x(w){return!!(w&&!f(w)&&typeof w.pipeThrough==="function"&&typeof w.getReader==="function"&&typeof w.cancel==="function")}function b(w){return!!(w&&!f(w)&&typeof w.getWriter==="function"&&typeof w.abort==="function")}function k(w){return!!(w&&!f(w)&&typeof w.readable==="object"&&typeof w.writable==="object")}function u(w){return x(w)||b(w)||k(w)}function p(w,B){if(w==null)return!1;if(B===!0)return typeof w[Q]==="function";if(B===!1)return typeof w[O]==="function";return typeof w[Q]==="function"||typeof w[O]==="function"}function m(w){if(!f(w))return null;let{_writableState:B,_readableState:h}=w,t=B||h;return!!(w.destroyed||w[z]||t!==null&&t!==void 0&&t.destroyed)}function a(w){if(!v(w))return null;if(w.writableEnded===!0)return!0;let B=w._writableState;if(B!==null&&B!==void 0&&B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.ended)!=="boolean")return null;return B.ended}function Z0(w,B){if(!v(w))return null;if(w.writableFinished===!0)return!0;let h=w._writableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.finished)!=="boolean")return null;return!!(h.finished||B===!1&&h.ended===!0&&h.length===0)}function L0(w){if(!P(w))return null;if(w.readableEnded===!0)return!0;let B=w._readableState;if(!B||B.errored)return!1;if(typeof(B===null||B===void 0?void 0:B.ended)!=="boolean")return null;return B.ended}function C0(w,B){if(!P(w))return null;let h=w._readableState;if(h!==null&&h!==void 0&&h.errored)return!1;if(typeof(h===null||h===void 0?void 0:h.endEmitted)!=="boolean")return null;return!!(h.endEmitted||B===!1&&h.ended===!0&&h.length===0)}function o(w){if(w&&w[L]!=null)return w[L];if(typeof(w===null||w===void 0?void 0:w.readable)!=="boolean")return null;if(m(w))return!1;return P(w)&&w.readable&&!C0(w)}function q0(w){if(w&&w[S]!=null)return w[S];if(typeof(w===null||w===void 0?void 0:w.writable)!=="boolean")return null;if(m(w))return!1;return v(w)&&w.writable&&!a(w)}function G(w,B){if(!f(w))return null;if(m(w))return!0;if((B===null||B===void 0?void 0:B.readable)!==!1&&o(w))return!1;if((B===null||B===void 0?void 0:B.writable)!==!1&&q0(w))return!1;return!0}function D(w){var B,h;if(!f(w))return null;if(w.writableErrored)return w.writableErrored;return(B=(h=w._writableState)===null||h===void 0?void 0:h.errored)!==null&&B!==void 0?B:null}function H(w){var B,h;if(!f(w))return null;if(w.readableErrored)return w.readableErrored;return(B=(h=w._readableState)===null||h===void 0?void 0:h.errored)!==null&&B!==void 0?B:null}function K(w){if(!f(w))return null;if(typeof w.closed==="boolean")return w.closed;let{_writableState:B,_readableState:h}=w;if(typeof(B===null||B===void 0?void 0:B.closed)==="boolean"||typeof(h===null||h===void 0?void 0:h.closed)==="boolean")return(B===null||B===void 0?void 0:B.closed)||(h===null||h===void 0?void 0:h.closed);if(typeof w._closed==="boolean"&&F(w))return w._closed;return null}function F(w){return typeof w._closed==="boolean"&&typeof w._defaultKeepAlive==="boolean"&&typeof w._removedConnection==="boolean"&&typeof w._removedContLen==="boolean"}function C(w){return typeof w._sent100==="boolean"&&F(w)}function j(w){var B;return typeof w._consuming==="boolean"&&typeof w._dumped==="boolean"&&((B=w.req)===null||B===void 0?void 0:B.upgradeOrConnect)===void 0}function q(w){if(!f(w))return null;let{_writableState:B,_readableState:h}=w,t=B||h;return!t&&C(w)||!!(t&&t.autoDestroy&&t.emitClose&&t.closed===!1)}function Z(w){var B;return!!(w&&((B=w[E])!==null&&B!==void 0?B:w.readableDidRead||w.readableAborted))}function T(w){var B,h,t,U0,z0,Q0,s,e,J0,V0;return!!(w&&((B=(h=(t=(U0=(z0=(Q0=w[V])!==null&&Q0!==void 0?Q0:w.readableErrored)!==null&&z0!==void 0?z0:w.writableErrored)!==null&&U0!==void 0?U0:(s=w._readableState)===null||s===void 0?void 0:s.errorEmitted)!==null&&t!==void 0?t:(e=w._writableState)===null||e===void 0?void 0:e.errorEmitted)!==null&&h!==void 0?h:(J0=w._readableState)===null||J0===void 0?void 0:J0.errored)!==null&&B!==void 0?B:(V0=w._writableState)===null||V0===void 0?void 0:V0.errored))}J.exports={isDestroyed:m,kIsDestroyed:z,isDisturbed:Z,kIsDisturbed:E,isErrored:T,kIsErrored:V,isReadable:o,kIsReadable:L,kIsClosedPromise:_,kControllerErrorFunction:M,kIsWritable:S,isClosed:K,isDuplexNodeStream:N,isFinished:G,isIterable:p,isReadableNodeStream:P,isReadableStream:x,isReadableEnded:L0,isReadableFinished:C0,isReadableErrored:H,isNodeStream:f,isWebStream:u,isWritable:q0,isWritableNodeStream:v,isWritableStream:b,isWritableEnded:a,isWritableFinished:Z0,isWritableErrored:D,isServerRequest:j,isServerResponse:C,willEmitClose:q,isTransformStream:k}}),KX=YU((U,J)=>{var Q=HJ(),{AbortError:O,codes:X}=u6(),{ERR_INVALID_ARG_TYPE:z,ERR_STREAM_PREMATURE_CLOSE:V}=X,{kEmptyObject:L,once:S}=e6(),{validateAbortSignal:E,validateFunction:_,validateObject:M,validateBoolean:P}=C2(),{Promise:v,PromisePrototypeThen:N,SymbolDispose:f}=bU(),{isClosed:x,isReadable:b,isReadableNodeStream:k,isReadableStream:u,isReadableFinished:p,isReadableErrored:m,isWritable:a,isWritableNodeStream:Z0,isWritableStream:L0,isWritableFinished:C0,isWritableErrored:o,isNodeStream:q0,willEmitClose:G,kIsClosedPromise:D}=WI(),H;function K(Z){return Z.setHeader&&typeof Z.abort==="function"}var F=()=>{};function C(Z,T,w){var B,h;if(arguments.length===2)w=T,T=L;else if(T==null)T=L;else M(T,"options");if(_(w,"callback"),E(T.signal,"options.signal"),w=S(w),u(Z)||L0(Z))return j(Z,T,w);if(!q0(Z))throw new z("stream",["ReadableStream","WritableStream","Stream"],Z);let t=(B=T.readable)!==null&&B!==void 0?B:k(Z),U0=(h=T.writable)!==null&&h!==void 0?h:Z0(Z),z0=Z._writableState,Q0=Z._readableState,s=()=>{if(!Z.writable)V0()},e=G(Z)&&k(Z)===t&&Z0(Z)===U0,J0=C0(Z,!1),V0=()=>{if(J0=!0,Z.destroyed)e=!1;if(e&&(!Z.readable||t))return;if(!t||A0)w.call(Z)},A0=p(Z,!1),$0=()=>{if(A0=!0,Z.destroyed)e=!1;if(e&&(!Z.writable||U0))return;if(!U0||J0)w.call(Z)},c=(I0)=>{w.call(Z,I0)},n=x(Z),H0=()=>{n=!0;let I0=o(Z)||m(Z);if(I0&&typeof I0!=="boolean")return w.call(Z,I0);if(t&&!A0&&k(Z,!0)){if(!p(Z,!1))return w.call(Z,new V)}if(U0&&!J0){if(!C0(Z,!1))return w.call(Z,new V)}w.call(Z)},Y0=()=>{n=!0;let I0=o(Z)||m(Z);if(I0&&typeof I0!=="boolean")return w.call(Z,I0);w.call(Z)},D0=()=>{Z.req.on("finish",V0)};if(K(Z)){if(Z.on("complete",V0),!e)Z.on("abort",H0);if(Z.req)D0();else Z.on("request",D0)}else if(U0&&!z0)Z.on("end",s),Z.on("close",s);if(!e&&typeof Z.aborted==="boolean")Z.on("aborted",H0);if(Z.on("end",$0),Z.on("finish",V0),T.error!==!1)Z.on("error",c);if(Z.on("close",H0),n)Q.nextTick(H0);else if(z0!==null&&z0!==void 0&&z0.errorEmitted||Q0!==null&&Q0!==void 0&&Q0.errorEmitted){if(!e)Q.nextTick(Y0)}else if(!t&&(!e||b(Z))&&(J0||a(Z)===!1))Q.nextTick(Y0);else if(!U0&&(!e||a(Z))&&(A0||b(Z)===!1))Q.nextTick(Y0);else if(Q0&&Z.req&&Z.aborted)Q.nextTick(Y0);let N0=()=>{if(w=F,Z.removeListener("aborted",H0),Z.removeListener("complete",V0),Z.removeListener("abort",H0),Z.removeListener("request",D0),Z.req)Z.req.removeListener("finish",V0);Z.removeListener("end",s),Z.removeListener("close",s),Z.removeListener("finish",V0),Z.removeListener("end",$0),Z.removeListener("error",c),Z.removeListener("close",H0)};if(T.signal&&!n){let I0=()=>{let K0=w;N0(),K0.call(Z,new O(void 0,{cause:T.signal.reason}))};if(T.signal.aborted)Q.nextTick(I0);else{H=H||e6().addAbortListener;let K0=H(T.signal,I0),U$=w;w=S((...M0)=>{K0[f](),U$.apply(Z,M0)})}}return N0}function j(Z,T,w){let B=!1,h=F;if(T.signal)if(h=()=>{B=!0,w.call(Z,new O(void 0,{cause:T.signal.reason}))},T.signal.aborted)Q.nextTick(h);else{H=H||e6().addAbortListener;let U0=H(T.signal,h),z0=w;w=S((...Q0)=>{U0[f](),z0.apply(Z,Q0)})}let t=(...U0)=>{if(!B)Q.nextTick(()=>w.apply(Z,U0))};return N(Z[D].promise,t,t),F}function q(Z,T){var w;let B=!1;if(T===null)T=L;if((w=T)!==null&&w!==void 0&&w.cleanup)P(T.cleanup,"cleanup"),B=T.cleanup;return new v((h,t)=>{let U0=C(Z,T,(z0)=>{if(B)U0();if(z0)t(z0);else h()})})}J.exports=C,J.exports.finished=q}),dQ=YU((U,J)=>{var Q=HJ(),{aggregateTwoErrors:O,codes:{ERR_MULTIPLE_CALLBACK:X},AbortError:z}=u6(),{Symbol:V}=bU(),{kIsDestroyed:L,isDestroyed:S,isFinished:E,isServerRequest:_}=WI(),M=V("kDestroy"),P=V("kConstruct");function v(G,D,H){if(G){if(G.stack,D&&!D.errored)D.errored=G;if(H&&!H.errored)H.errored=G}}function N(G,D){let H=this._readableState,K=this._writableState,F=K||H;if(K!==null&&K!==void 0&&K.destroyed||H!==null&&H!==void 0&&H.destroyed){if(typeof D==="function")D();return this}if(v(G,K,H),K)K.destroyed=!0;if(H)H.destroyed=!0;if(!F.constructed)this.once(M,function(C){f(this,O(C,G),D)});else f(this,G,D);return this}function f(G,D,H){let K=!1;function F(C){if(K)return;K=!0;let{_readableState:j,_writableState:q}=G;if(v(C,q,j),q)q.closed=!0;if(j)j.closed=!0;if(typeof H==="function")H(C);if(C)Q.nextTick(x,G,C);else Q.nextTick(b,G)}try{G._destroy(D||null,F)}catch(C){F(C)}}function x(G,D){k(G,D),b(G)}function b(G){let{_readableState:D,_writableState:H}=G;if(H)H.closeEmitted=!0;if(D)D.closeEmitted=!0;if(H!==null&&H!==void 0&&H.emitClose||D!==null&&D!==void 0&&D.emitClose)G.emit("close")}function k(G,D){let{_readableState:H,_writableState:K}=G;if(K!==null&&K!==void 0&&K.errorEmitted||H!==null&&H!==void 0&&H.errorEmitted)return;if(K)K.errorEmitted=!0;if(H)H.errorEmitted=!0;G.emit("error",D)}function u(){let G=this._readableState,D=this._writableState;if(G)G.constructed=!0,G.closed=!1,G.closeEmitted=!1,G.destroyed=!1,G.errored=null,G.errorEmitted=!1,G.reading=!1,G.ended=G.readable===!1,G.endEmitted=G.readable===!1;if(D)D.constructed=!0,D.destroyed=!1,D.closed=!1,D.closeEmitted=!1,D.errored=null,D.errorEmitted=!1,D.finalCalled=!1,D.prefinished=!1,D.ended=D.writable===!1,D.ending=D.writable===!1,D.finished=D.writable===!1}function p(G,D,H){let{_readableState:K,_writableState:F}=G;if(F!==null&&F!==void 0&&F.destroyed||K!==null&&K!==void 0&&K.destroyed)return this;if(K!==null&&K!==void 0&&K.autoDestroy||F!==null&&F!==void 0&&F.autoDestroy)G.destroy(D);else if(D){if(D.stack,F&&!F.errored)F.errored=D;if(K&&!K.errored)K.errored=D;if(H)Q.nextTick(k,G,D);else k(G,D)}}function m(G,D){if(typeof G._construct!=="function")return;let{_readableState:H,_writableState:K}=G;if(H)H.constructed=!1;if(K)K.constructed=!1;if(G.once(P,D),G.listenerCount(P)>1)return;Q.nextTick(a,G)}function a(G){let D=!1;function H(K){if(D){p(G,K!==null&&K!==void 0?K:new X);return}D=!0;let{_readableState:F,_writableState:C}=G,j=C||F;if(F)F.constructed=!0;if(C)C.constructed=!0;if(j.destroyed)G.emit(M,K);else if(K)p(G,K,!0);else Q.nextTick(Z0,G)}try{G._construct((K)=>{Q.nextTick(H,K)})}catch(K){Q.nextTick(H,K)}}function Z0(G){G.emit(P)}function L0(G){return(G===null||G===void 0?void 0:G.setHeader)&&typeof G.abort==="function"}function C0(G){G.emit("close")}function o(G,D){G.emit("error",D),Q.nextTick(C0,G)}function q0(G,D){if(!G||S(G))return;if(!D&&!E(G))D=new z;if(_(G))G.socket=null,G.destroy(D);else if(L0(G))G.abort();else if(L0(G.req))G.req.abort();else if(typeof G.destroy==="function")G.destroy(D);else if(typeof G.close==="function")G.close();else if(D)Q.nextTick(o,G,D);else Q.nextTick(C0,G);if(!G.destroyed)G[L]=!0}J.exports={construct:m,destroyer:q0,destroy:N,undestroy:u,errorOrDestroy:p}}),JF=YU((U,J)=>{var{ArrayIsArray:Q,ObjectSetPrototypeOf:O}=bU(),{EventEmitter:X}=(mQ(),v$(lQ));function z(L){X.call(this,L)}O(z.prototype,X.prototype),O(z,X),z.prototype.pipe=function(L,S){let E=this;function _(b){if(L.writable&&L.write(b)===!1&&E.pause)E.pause()}E.on("data",_);function M(){if(E.readable&&E.resume)E.resume()}if(L.on("drain",M),!L._isStdio&&(!S||S.end!==!1))E.on("end",v),E.on("close",N);let P=!1;function v(){if(P)return;P=!0,L.end()}function N(){if(P)return;if(P=!0,typeof L.destroy==="function")L.destroy()}function f(b){if(x(),X.listenerCount(this,"error")===0)this.emit("error",b)}V(E,"error",f),V(L,"error",f);function x(){E.removeListener("data",_),L.removeListener("drain",M),E.removeListener("end",v),E.removeListener("close",N),E.removeListener("error",f),L.removeListener("error",f),E.removeListener("end",x),E.removeListener("close",x),L.removeListener("close",x)}return E.on("end",x),E.on("close",x),L.on("close",x),L.emit("pipe",E),L};function V(L,S,E){if(typeof L.prependListener==="function")return L.prependListener(S,E);if(!L._events||!L._events[S])L.on(S,E);else if(Q(L._events[S]))L._events[S].unshift(E);else L._events[S]=[E,L._events[S]]}J.exports={Stream:z,prependListener:V}}),rO=YU((U,J)=>{var{SymbolDispose:Q}=bU(),{AbortError:O,codes:X}=u6(),{isNodeStream:z,isWebStream:V,kControllerErrorFunction:L}=WI(),S=KX(),{ERR_INVALID_ARG_TYPE:E}=X,_,M=(P,v)=>{if(typeof P!=="object"||!("aborted"in P))throw new E(v,"AbortSignal",P)};J.exports.addAbortSignal=function(P,v){if(M(P,"signal"),!z(v)&&!V(v))throw new E("stream",["ReadableStream","WritableStream","Stream"],v);return J.exports.addAbortSignalNoValidate(P,v)},J.exports.addAbortSignalNoValidate=function(P,v){if(typeof P!=="object"||!("aborted"in P))return v;let N=z(v)?()=>{v.destroy(new O(void 0,{cause:P.reason}))}:()=>{v[L](new O(void 0,{cause:P.reason}))};if(P.aborted)N();else{_=_||e6().addAbortListener;let f=_(P,N);S(v,f[Q])}return v}}),Dy=YU((U,J)=>{var{StringPrototypeSlice:Q,SymbolIterator:O,TypedArrayPrototypeSet:X,Uint8Array:z}=bU(),{Buffer:V}=(tU(),v$(rU)),{inspect:L}=e6();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(S){let E={data:S,next:null};if(this.length>0)this.tail.next=E;else this.head=E;this.tail=E,++this.length}unshift(S){let E={data:S,next:this.head};if(this.length===0)this.tail=E;this.head=E,++this.length}shift(){if(this.length===0)return;let S=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,S}clear(){this.head=this.tail=null,this.length=0}join(S){if(this.length===0)return"";let E=this.head,_=""+E.data;while((E=E.next)!==null)_+=S+E.data;return _}concat(S){if(this.length===0)return V.alloc(0);let E=V.allocUnsafe(S>>>0),_=this.head,M=0;while(_)X(E,_.data,M),M+=_.data.length,_=_.next;return E}consume(S,E){let _=this.head.data;if(S<_.length){let M=_.slice(0,S);return this.head.data=_.slice(S),M}if(S===_.length)return this.shift();return E?this._getString(S):this._getBuffer(S)}first(){return this.head.data}*[O](){for(let S=this.head;S;S=S.next)yield S.data}_getString(S){let E="",_=this.head,M=0;do{let P=_.data;if(S>P.length)E+=P,S-=P.length;else{if(S===P.length)if(E+=P,++M,_.next)this.head=_.next;else this.head=this.tail=null;else E+=Q(P,0,S),this.head=_,_.data=Q(P,S);break}++M}while((_=_.next)!==null);return this.length-=M,E}_getBuffer(S){let E=V.allocUnsafe(S),_=S,M=this.head,P=0;do{let v=M.data;if(S>v.length)X(E,v,_-S),S-=v.length;else{if(S===v.length)if(X(E,v,_-S),++P,M.next)this.head=M.next;else this.head=this.tail=null;else X(E,new z(v.buffer,v.byteOffset,S),_-S),this.head=M,M.data=v.slice(S);break}++P}while((M=M.next)!==null);return this.length-=P,E}[Symbol.for("nodejs.util.inspect.custom")](S,E){return L(this,{...E,depth:0,customInspect:!1})}}}),tO=YU((U,J)=>{var{MathFloor:Q,NumberIsInteger:O}=bU(),{validateInteger:X}=C2(),{ERR_INVALID_ARG_VALUE:z}=u6().codes,V=16384,L=16;function S(P,v,N){return P.highWaterMark!=null?P.highWaterMark:v?P[N]:null}function E(P){return P?L:V}function _(P,v){if(X(v,"value",0),P)L=v;else V=v}function M(P,v,N,f){let x=S(v,f,N);if(x!=null){if(!O(x)||x<0){let b=f?`options.${N}`:"options.highWaterMark";throw new z(b,x)}return Q(x)}return E(P.objectMode)}J.exports={getHighWaterMark:M,getDefaultHighWaterMark:E,setDefaultHighWaterMark:_}}),Wy=YU((U,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Q=(tU(),v$(rU)),O=Q.Buffer;function X(V,L){for(var S in V)L[S]=V[S]}if(O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow)J.exports=Q;else X(Q,U),U.Buffer=z;function z(V,L,S){return O(V,L,S)}z.prototype=Object.create(O.prototype),X(O,z),z.from=function(V,L,S){if(typeof V==="number")throw TypeError("Argument must not be a number");return O(V,L,S)},z.alloc=function(V,L,S){if(typeof V!=="number")throw TypeError("Argument must be a number");var E=O(V);if(L!==void 0)if(typeof S==="string")E.fill(L,S);else E.fill(L);else E.fill(0);return E},z.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return O(V)},z.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return Q.SlowBuffer(V)}}),Fy=YU((U)=>{var J=Wy().Buffer,Q=J.isEncoding||function(k){switch(k=""+k,k&&k.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(k){if(!k)return"utf8";var u;while(!0)switch(k){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 k;default:if(u)return;k=(""+k).toLowerCase(),u=!0}}function X(k){var u=O(k);if(typeof u!=="string"&&(J.isEncoding===Q||!Q(k)))throw Error("Unknown encoding: "+k);return u||k}U.StringDecoder=z;function z(k){this.encoding=X(k);var u;switch(this.encoding){case"utf16le":this.text=P,this.end=v,u=4;break;case"utf8":this.fillLast=E,u=4;break;case"base64":this.text=N,this.end=f,u=3;break;default:this.write=x,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(u)}z.prototype.write=function(k){if(k.length===0)return"";var u,p;if(this.lastNeed){if(u=this.fillLast(k),u===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;if(p<k.length)return u?u+this.text(k,p):this.text(k,p);return u||""},z.prototype.end=M,z.prototype.text=_,z.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function V(k){if(k<=127)return 0;else if(k>>5===6)return 2;else if(k>>4===14)return 3;else if(k>>3===30)return 4;return k>>6===2?-1:-2}function L(k,u,p){var m=u.length-1;if(m<p)return 0;var a=V(u[m]);if(a>=0){if(a>0)k.lastNeed=a-1;return a}if(--m<p||a===-2)return 0;if(a=V(u[m]),a>=0){if(a>0)k.lastNeed=a-2;return a}if(--m<p||a===-2)return 0;if(a=V(u[m]),a>=0){if(a>0)if(a===2)a=0;else k.lastNeed=a-3;return a}return 0}function S(k,u,p){if((u[0]&192)!==128)return k.lastNeed=0,"�";if(k.lastNeed>1&&u.length>1){if((u[1]&192)!==128)return k.lastNeed=1,"�";if(k.lastNeed>2&&u.length>2){if((u[2]&192)!==128)return k.lastNeed=2,"�"}}}function E(k){var u=this.lastTotal-this.lastNeed,p=S(this,k,u);if(p!==void 0)return p;if(this.lastNeed<=k.length)return k.copy(this.lastChar,u,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,u,0,k.length),this.lastNeed-=k.length}function _(k,u){var p=L(this,k,u);if(!this.lastNeed)return k.toString("utf8",u);this.lastTotal=p;var m=k.length-(p-this.lastNeed);return k.copy(this.lastChar,0,m),k.toString("utf8",u,m)}function M(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed)return u+"�";return u}function P(k,u){if((k.length-u)%2===0){var p=k.toString("utf16le",u);if(p){var m=p.charCodeAt(p.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",u,k.length-1)}function v(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return u+this.lastChar.toString("utf16le",0,p)}return u}function N(k,u){var p=(k.length-u)%3;if(p===0)return k.toString("base64",u);if(this.lastNeed=3-p,this.lastTotal=3,p===1)this.lastChar[0]=k[k.length-1];else this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1];return k.toString("base64",u,k.length-p)}function f(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed)return u+this.lastChar.toString("base64",0,3-this.lastNeed);return u}function x(k){return k.toString(this.encoding)}function b(k){return k&&k.length?this.write(k):""}}),eS=YU((U,J)=>{var Q=HJ(),{PromisePrototypeThen:O,SymbolAsyncIterator:X,SymbolIterator:z}=bU(),{Buffer:V}=(tU(),v$(rU)),{ERR_INVALID_ARG_TYPE:L,ERR_STREAM_NULL_VALUES:S}=u6().codes;function E(_,M,P){let v;if(typeof M==="string"||M instanceof V)return new _({objectMode:!0,...P,read(){this.push(M),this.push(null)}});let N;if(M&&M[X])N=!0,v=M[X]();else if(M&&M[z])N=!1,v=M[z]();else throw new L("iterable",["Iterable"],M);let f=new _({objectMode:!0,highWaterMark:1,...P}),x=!1;f._read=function(){if(!x)x=!0,k()},f._destroy=function(u,p){O(b(u),()=>Q.nextTick(p,u),(m)=>Q.nextTick(p,m||u))};async function b(u){let p=u!==void 0&&u!==null,m=typeof v.throw==="function";if(p&&m){let{value:a,done:Z0}=await v.throw(u);if(await a,Z0)return}if(typeof v.return==="function"){let{value:a}=await v.return();await a}}async function k(){for(;;){try{let{value:u,done:p}=N?await v.next():v.next();if(p)f.push(null);else{let m=u&&typeof u.then==="function"?await u:u;if(m===null)throw x=!1,new S;else if(f.push(m))continue;else x=!1}}catch(u){f.destroy(u)}break}}return f}J.exports=E}),aO=YU((U,J)=>{var Q=HJ(),{ArrayPrototypeIndexOf:O,NumberIsInteger:X,NumberIsNaN:z,NumberParseInt:V,ObjectDefineProperties:L,ObjectKeys:S,ObjectSetPrototypeOf:E,Promise:_,SafeSet:M,SymbolAsyncDispose:P,SymbolAsyncIterator:v,Symbol:N}=bU();J.exports=M0,M0.ReadableState=U$;var{EventEmitter:f}=(mQ(),v$(lQ)),{Stream:x,prependListener:b}=JF(),{Buffer:k}=(tU(),v$(rU)),{addAbortSignal:u}=rO(),p=KX(),m=e6().debuglog("stream",(r)=>{m=r}),a=Dy(),Z0=dQ(),{getHighWaterMark:L0,getDefaultHighWaterMark:C0}=tO(),{aggregateTwoErrors:o,codes:{ERR_INVALID_ARG_TYPE:q0,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_OUT_OF_RANGE:D,ERR_STREAM_PUSH_AFTER_EOF:H,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:K},AbortError:F}=u6(),{validateObject:C}=C2(),j=N("kPaused"),{StringDecoder:q}=Fy(),Z=eS();E(M0.prototype,x.prototype),E(M0,x);var T=()=>{},{errorOrDestroy:w}=Z0,B=1,h=2,t=4,U0=8,z0=16,Q0=32,s=64,e=128,J0=256,V0=512,A0=1024,$0=2048,c=4096,n=8192,H0=16384,Y0=32768,D0=65536,N0=131072,I0=262144;function K0(r){return{enumerable:!1,get(){return(this.state&r)!==0},set(G0){if(G0)this.state|=r;else this.state&=~r}}}L(U$.prototype,{objectMode:K0(B),ended:K0(h),endEmitted:K0(t),reading:K0(U0),constructed:K0(z0),sync:K0(Q0),needReadable:K0(s),emittedReadable:K0(e),readableListening:K0(J0),resumeScheduled:K0(V0),errorEmitted:K0(A0),emitClose:K0($0),autoDestroy:K0(c),destroyed:K0(n),closed:K0(H0),closeEmitted:K0(Y0),multiAwaitDrain:K0(D0),readingMore:K0(N0),dataEmitted:K0(I0)});function U$(r,G0,E0){if(typeof E0!=="boolean")E0=G0 instanceof DI();if(this.state=$0|c|z0|Q0,r&&r.objectMode)this.state|=B;if(E0&&r&&r.readableObjectMode)this.state|=B;if(this.highWaterMark=r?L0(this,r,"readableHighWaterMark",E0):C0(!1),this.buffer=new a,this.length=0,this.pipes=[],this.flowing=null,this[j]=null,r&&r.emitClose===!1)this.state&=~$0;if(r&&r.autoDestroy===!1)this.state&=~c;if(this.errored=null,this.defaultEncoding=r&&r.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,r&&r.encoding)this.decoder=new q(r.encoding),this.encoding=r.encoding}function M0(r){if(!(this instanceof M0))return new M0(r);let G0=this instanceof DI();if(this._readableState=new U$(r,this,G0),r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!G0)u(r.signal,this)}x.call(this,r),Z0.construct(this,()=>{if(this._readableState.needReadable)r0(this,this._readableState)})}M0.prototype.destroy=Z0.destroy,M0.prototype._undestroy=Z0.undestroy,M0.prototype._destroy=function(r,G0){G0(r)},M0.prototype[f.captureRejectionSymbol]=function(r){this.destroy(r)},M0.prototype[P]=function(){let r;if(!this.destroyed)r=this.readableEnded?null:new F,this.destroy(r);return new _((G0,E0)=>p(this,(_0)=>_0&&_0!==r?E0(_0):G0(null)))},M0.prototype.push=function(r,G0){return v0(this,r,G0,!1)},M0.prototype.unshift=function(r,G0){return v0(this,r,G0,!0)};function v0(r,G0,E0,_0){m("readableAddChunk",G0);let Z$=r._readableState,d0;if((Z$.state&B)===0){if(typeof G0==="string"){if(E0=E0||Z$.defaultEncoding,Z$.encoding!==E0)if(_0&&Z$.encoding)G0=k.from(G0,E0).toString(Z$.encoding);else G0=k.from(G0,E0),E0=""}else if(G0 instanceof k)E0="";else if(x._isUint8Array(G0))G0=x._uint8ArrayToBuffer(G0),E0="";else if(G0!=null)d0=new q0("chunk",["string","Buffer","Uint8Array"],G0)}if(d0)w(r,d0);else if(G0===null)Z$.state&=~U0,b0(r,Z$);else if((Z$.state&B)!==0||G0&&G0.length>0)if(_0)if((Z$.state&t)!==0)w(r,new K);else if(Z$.destroyed||Z$.errored)return!1;else L$(r,Z$,G0,!0);else if(Z$.ended)w(r,new H);else if(Z$.destroyed||Z$.errored)return!1;else if(Z$.state&=~U0,Z$.decoder&&!E0)if(G0=Z$.decoder.write(G0),Z$.objectMode||G0.length!==0)L$(r,Z$,G0,!1);else r0(r,Z$);else L$(r,Z$,G0,!1);else if(!_0)Z$.state&=~U0,r0(r,Z$);return!Z$.ended&&(Z$.length<Z$.highWaterMark||Z$.length===0)}function L$(r,G0,E0,_0){if(G0.flowing&&G0.length===0&&!G0.sync&&r.listenerCount("data")>0){if((G0.state&D0)!==0)G0.awaitDrainWriters.clear();else G0.awaitDrainWriters=null;G0.dataEmitted=!0,r.emit("data",E0)}else{if(G0.length+=G0.objectMode?1:E0.length,_0)G0.buffer.unshift(E0);else G0.buffer.push(E0);if((G0.state&s)!==0)h0(r)}r0(r,G0)}M0.prototype.isPaused=function(){let r=this._readableState;return r[j]===!0||r.flowing===!1},M0.prototype.setEncoding=function(r){let G0=new q(r);this._readableState.decoder=G0,this._readableState.encoding=this._readableState.decoder.encoding;let E0=this._readableState.buffer,_0="";for(let Z$ of E0)_0+=G0.write(Z$);if(E0.clear(),_0!=="")E0.push(_0);return this._readableState.length=_0.length,this};var p0=1073741824;function c0(r){if(r>p0)throw new D("size","<= 1GiB",r);else r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++;return r}function t$(r,G0){if(r<=0||G0.length===0&&G0.ended)return 0;if((G0.state&B)!==0)return 1;if(z(r)){if(G0.flowing&&G0.length)return G0.buffer.first().length;return G0.length}if(r<=G0.length)return r;return G0.ended?G0.length:0}M0.prototype.read=function(r){if(m("read",r),r===void 0)r=NaN;else if(!X(r))r=V(r,10);let G0=this._readableState,E0=r;if(r>G0.highWaterMark)G0.highWaterMark=c0(r);if(r!==0)G0.state&=~e;if(r===0&&G0.needReadable&&((G0.highWaterMark!==0?G0.length>=G0.highWaterMark:G0.length>0)||G0.ended)){if(m("read: emitReadable",G0.length,G0.ended),G0.length===0&&G0.ended)K$(this);else h0(this);return null}if(r=t$(r,G0),r===0&&G0.ended){if(G0.length===0)K$(this);return null}let _0=(G0.state&s)!==0;if(m("need readable",_0),G0.length===0||G0.length-r<G0.highWaterMark)_0=!0,m("length less than watermark",_0);if(G0.ended||G0.reading||G0.destroyed||G0.errored||!G0.constructed)_0=!1,m("reading, ended or constructing",_0);else if(_0){if(m("do read"),G0.state|=U0|Q0,G0.length===0)G0.state|=s;try{this._read(G0.highWaterMark)}catch(d0){w(this,d0)}if(G0.state&=~Q0,!G0.reading)r=t$(E0,G0)}let Z$;if(r>0)Z$=f0(r,G0);else Z$=null;if(Z$===null)G0.needReadable=G0.length<=G0.highWaterMark,r=0;else if(G0.length-=r,G0.multiAwaitDrain)G0.awaitDrainWriters.clear();else G0.awaitDrainWriters=null;if(G0.length===0){if(!G0.ended)G0.needReadable=!0;if(E0!==r&&G0.ended)K$(this)}if(Z$!==null&&!G0.errorEmitted&&!G0.closeEmitted)G0.dataEmitted=!0,this.emit("data",Z$);return Z$};function b0(r,G0){if(m("onEofChunk"),G0.ended)return;if(G0.decoder){let E0=G0.decoder.end();if(E0&&E0.length)G0.buffer.push(E0),G0.length+=G0.objectMode?1:E0.length}if(G0.ended=!0,G0.sync)h0(r);else G0.needReadable=!1,G0.emittedReadable=!0,VU(r)}function h0(r){let G0=r._readableState;if(m("emitReadable",G0.needReadable,G0.emittedReadable),G0.needReadable=!1,!G0.emittedReadable)m("emitReadable",G0.flowing),G0.emittedReadable=!0,Q.nextTick(VU,r)}function VU(r){let G0=r._readableState;if(m("emitReadable_",G0.destroyed,G0.length,G0.ended),!G0.destroyed&&!G0.errored&&(G0.length||G0.ended))r.emit("readable"),G0.emittedReadable=!1;G0.needReadable=!G0.flowing&&!G0.ended&&G0.length<=G0.highWaterMark,B0(r)}function r0(r,G0){if(!G0.readingMore&&G0.constructed)G0.readingMore=!0,Q.nextTick(o0,r,G0)}function o0(r,G0){while(!G0.reading&&!G0.ended&&(G0.length<G0.highWaterMark||G0.flowing&&G0.length===0)){let E0=G0.length;if(m("maybeReadMore read 0"),r.read(0),E0===G0.length)break}G0.readingMore=!1}M0.prototype._read=function(r){throw new G("_read()")},M0.prototype.pipe=function(r,G0){let E0=this,_0=this._readableState;if(_0.pipes.length===1){if(!_0.multiAwaitDrain)_0.multiAwaitDrain=!0,_0.awaitDrainWriters=new M(_0.awaitDrainWriters?[_0.awaitDrainWriters]:[])}_0.pipes.push(r),m("pipe count=%d opts=%j",_0.pipes.length,G0);let Z$=(!G0||G0.end!==!1)&&r!==Q.stdout&&r!==Q.stderr?t0:j$;if(_0.endEmitted)Q.nextTick(Z$);else E0.once("end",Z$);r.on("unpipe",d0);function d0(XU,o$){if(m("onunpipe"),XU===E0){if(o$&&o$.hasUnpiped===!1)o$.hasUnpiped=!0,$$()}}function t0(){m("onend"),r.end()}let AU,I$=!1;function $$(){if(m("cleanup"),r.removeListener("close",_U),r.removeListener("finish",B$),AU)r.removeListener("drain",AU);if(r.removeListener("error",e0),r.removeListener("unpipe",d0),E0.removeListener("end",t0),E0.removeListener("end",j$),E0.removeListener("data",X$),I$=!0,AU&&_0.awaitDrainWriters&&(!r._writableState||r._writableState.needDrain))AU()}function IU(){if(!I$){if(_0.pipes.length===1&&_0.pipes[0]===r)m("false write response, pause",0),_0.awaitDrainWriters=r,_0.multiAwaitDrain=!1;else if(_0.pipes.length>1&&_0.pipes.includes(r))m("false write response, pause",_0.awaitDrainWriters.size),_0.awaitDrainWriters.add(r);E0.pause()}if(!AU)AU=EU(E0,r),r.on("drain",AU)}E0.on("data",X$);function X$(XU){m("ondata");let o$=r.write(XU);if(m("dest.write",o$),o$===!1)IU()}function e0(XU){if(m("onerror",XU),j$(),r.removeListener("error",e0),r.listenerCount("error")===0){let o$=r._writableState||r._readableState;if(o$&&!o$.errorEmitted)w(r,XU);else r.emit("error",XU)}}b(r,"error",e0);function _U(){r.removeListener("finish",B$),j$()}r.once("close",_U);function B$(){m("onfinish"),r.removeListener("close",_U),j$()}r.once("finish",B$);function j$(){m("unpipe"),E0.unpipe(r)}if(r.emit("pipe",E0),r.writableNeedDrain===!0)IU();else if(!_0.flowing)m("pipe resume"),E0.resume();return r};function EU(r,G0){return function(){let E0=r._readableState;if(E0.awaitDrainWriters===G0)m("pipeOnDrain",1),E0.awaitDrainWriters=null;else if(E0.multiAwaitDrain)m("pipeOnDrain",E0.awaitDrainWriters.size),E0.awaitDrainWriters.delete(G0);if((!E0.awaitDrainWriters||E0.awaitDrainWriters.size===0)&&r.listenerCount("data"))r.resume()}}M0.prototype.unpipe=function(r){let G0=this._readableState,E0={hasUnpiped:!1};if(G0.pipes.length===0)return this;if(!r){let Z$=G0.pipes;G0.pipes=[],this.pause();for(let d0=0;d0<Z$.length;d0++)Z$[d0].emit("unpipe",this,{hasUnpiped:!1});return this}let _0=O(G0.pipes,r);if(_0===-1)return this;if(G0.pipes.splice(_0,1),G0.pipes.length===0)this.pause();return r.emit("unpipe",this,E0),this},M0.prototype.on=function(r,G0){let E0=x.prototype.on.call(this,r,G0),_0=this._readableState;if(r==="data"){if(_0.readableListening=this.listenerCount("readable")>0,_0.flowing!==!1)this.resume()}else if(r==="readable"){if(!_0.endEmitted&&!_0.readableListening){if(_0.readableListening=_0.needReadable=!0,_0.flowing=!1,_0.emittedReadable=!1,m("on readable",_0.length,_0.reading),_0.length)h0(this);else if(!_0.reading)Q.nextTick(X0,this)}}return E0},M0.prototype.addListener=M0.prototype.on,M0.prototype.removeListener=function(r,G0){let E0=x.prototype.removeListener.call(this,r,G0);if(r==="readable")Q.nextTick(l,this);return E0},M0.prototype.off=M0.prototype.removeListener,M0.prototype.removeAllListeners=function(r){let G0=x.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===void 0)Q.nextTick(l,this);return G0};function l(r){let G0=r._readableState;if(G0.readableListening=r.listenerCount("readable")>0,G0.resumeScheduled&&G0[j]===!1)G0.flowing=!0;else if(r.listenerCount("data")>0)r.resume();else if(!G0.readableListening)G0.flowing=null}function X0(r){m("readable nexttick read 0"),r.read(0)}M0.prototype.resume=function(){let r=this._readableState;if(!r.flowing)m("resume"),r.flowing=!r.readableListening,s0(this,r);return r[j]=!1,this};function s0(r,G0){if(!G0.resumeScheduled)G0.resumeScheduled=!0,Q.nextTick(S0,r,G0)}function S0(r,G0){if(m("resume",G0.reading),!G0.reading)r.read(0);if(G0.resumeScheduled=!1,r.emit("resume"),B0(r),G0.flowing&&!G0.reading)r.read(0)}M0.prototype.pause=function(){if(m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)m("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[j]=!0,this};function B0(r){let G0=r._readableState;m("flow",G0.flowing);while(G0.flowing&&r.read()!==null);}M0.prototype.wrap=function(r){let G0=!1;r.on("data",(_0)=>{if(!this.push(_0)&&r.pause)G0=!0,r.pause()}),r.on("end",()=>{this.push(null)}),r.on("error",(_0)=>{w(this,_0)}),r.on("close",()=>{this.destroy()}),r.on("destroy",()=>{this.destroy()}),this._read=()=>{if(G0&&r.resume)G0=!1,r.resume()};let E0=S(r);for(let _0=1;_0<E0.length;_0++){let Z$=E0[_0];if(this[Z$]===void 0&&typeof r[Z$]==="function")this[Z$]=r[Z$].bind(r)}return this},M0.prototype[v]=function(){return F$(this)},M0.prototype.iterator=function(r){if(r!==void 0)C(r,"options");return F$(this,r)};function F$(r,G0){if(typeof r.read!=="function")r=M0.wrap(r,{objectMode:!0});let E0=g0(r,G0);return E0.stream=r,E0}async function*g0(r,G0){let E0=T;function _0(t0){if(this===r)E0(),E0=T;else E0=t0}r.on("readable",_0);let Z$,d0=p(r,{writable:!1},(t0)=>{Z$=t0?o(Z$,t0):null,E0(),E0=T});try{while(!0){let t0=r.destroyed?null:r.read();if(t0!==null)yield t0;else if(Z$)throw Z$;else if(Z$===null)return;else await new _(_0)}}catch(t0){throw Z$=o(Z$,t0),Z$}finally{if((Z$||(G0===null||G0===void 0?void 0:G0.destroyOnReturn)!==!1)&&(Z$===void 0||r._readableState.autoDestroy))Z0.destroyer(r,null);else r.off("readable",_0),d0()}}L(M0.prototype,{readable:{__proto__:null,get(){let r=this._readableState;return!!r&&r.readable!==!1&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState)this._readableState.readable=!!r}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState)this._readableState.flowing=r}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(r){if(!this._readableState)return;this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),L(U$.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(r){this[j]=!!r}}}),M0._fromList=f0;function f0(r,G0){if(G0.length===0)return null;let E0;if(G0.objectMode)E0=G0.buffer.shift();else if(!r||r>=G0.length){if(G0.decoder)E0=G0.buffer.join("");else if(G0.buffer.length===1)E0=G0.buffer.first();else E0=G0.buffer.concat(G0.length);G0.buffer.clear()}else E0=G0.buffer.consume(r,G0.decoder);return E0}function K$(r){let G0=r._readableState;if(m("endReadable",G0.endEmitted),!G0.endEmitted)G0.ended=!0,Q.nextTick(n0,G0,r)}function n0(r,G0){if(m("endReadableNT",r.endEmitted,r.length),!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){if(r.endEmitted=!0,G0.emit("end"),G0.writable&&G0.allowHalfOpen===!1)Q.nextTick(i0,G0);else if(r.autoDestroy){let E0=G0._writableState;if(!E0||E0.autoDestroy&&(E0.finished||E0.writable===!1))G0.destroy()}}}function i0(r){if(r.writable&&!r.writableEnded&&!r.destroyed)r.end()}M0.from=function(r,G0){return Z(M0,r,G0)};var WU;function a0(){if(WU===void 0)WU={};return WU}M0.fromWeb=function(r,G0){return a0().newStreamReadableFromReadableStream(r,G0)},M0.toWeb=function(r,G0){return a0().newReadableStreamFromStreamReadable(r,G0)},M0.wrap=function(r,G0){var E0,_0;return new M0({objectMode:(E0=(_0=r.readableObjectMode)!==null&&_0!==void 0?_0:r.objectMode)!==null&&E0!==void 0?E0:!0,...G0,destroy(Z$,d0){Z0.destroyer(r,Z$),d0(Z$)}}).wrap(r)}}),QF=YU((U,J)=>{var Q=HJ(),{ArrayPrototypeSlice:O,Error:X,FunctionPrototypeSymbolHasInstance:z,ObjectDefineProperty:V,ObjectDefineProperties:L,ObjectSetPrototypeOf:S,StringPrototypeToLowerCase:E,Symbol:_,SymbolHasInstance:M}=bU();J.exports=C,C.WritableState=K;var{EventEmitter:P}=(mQ(),v$(lQ)),v=JF().Stream,{Buffer:N}=(tU(),v$(rU)),f=dQ(),{addAbortSignal:x}=rO(),{getHighWaterMark:b,getDefaultHighWaterMark:k}=tO(),{ERR_INVALID_ARG_TYPE:u,ERR_METHOD_NOT_IMPLEMENTED:p,ERR_MULTIPLE_CALLBACK:m,ERR_STREAM_CANNOT_PIPE:a,ERR_STREAM_DESTROYED:Z0,ERR_STREAM_ALREADY_FINISHED:L0,ERR_STREAM_NULL_VALUES:C0,ERR_STREAM_WRITE_AFTER_END:o,ERR_UNKNOWN_ENCODING:q0}=u6().codes,{errorOrDestroy:G}=f;S(C.prototype,v.prototype),S(C,v);function D(){}var H=_("kOnFinished");function K(c,n,H0){if(typeof H0!=="boolean")H0=n instanceof DI();if(this.objectMode=!!(c&&c.objectMode),H0)this.objectMode=this.objectMode||!!(c&&c.writableObjectMode);this.highWaterMark=c?b(this,c,"writableHighWaterMark",H0):k(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Y0=!!(c&&c.decodeStrings===!1);this.decodeStrings=!Y0,this.defaultEncoding=c&&c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w.bind(void 0,n),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,F(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!c||c.emitClose!==!1,this.autoDestroy=!c||c.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[H]=[]}function F(c){c.buffered=[],c.bufferedIndex=0,c.allBuffers=!0,c.allNoop=!0}K.prototype.getBuffer=function(){return O(this.buffered,this.bufferedIndex)},V(K.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function C(c){let n=this instanceof DI();if(!n&&!z(C,this))return new C(c);if(this._writableState=new K(c,this,n),c){if(typeof c.write==="function")this._write=c.write;if(typeof c.writev==="function")this._writev=c.writev;if(typeof c.destroy==="function")this._destroy=c.destroy;if(typeof c.final==="function")this._final=c.final;if(typeof c.construct==="function")this._construct=c.construct;if(c.signal)x(c.signal,this)}v.call(this,c),f.construct(this,()=>{let H0=this._writableState;if(!H0.writing)U0(this,H0);e(this,H0)})}V(C,M,{__proto__:null,value:function(c){if(z(this,c))return!0;if(this!==C)return!1;return c&&c._writableState instanceof K}}),C.prototype.pipe=function(){G(this,new a)};function j(c,n,H0,Y0){let D0=c._writableState;if(typeof H0==="function")Y0=H0,H0=D0.defaultEncoding;else{if(!H0)H0=D0.defaultEncoding;else if(H0!=="buffer"&&!N.isEncoding(H0))throw new q0(H0);if(typeof Y0!=="function")Y0=D}if(n===null)throw new C0;else if(!D0.objectMode)if(typeof n==="string"){if(D0.decodeStrings!==!1)n=N.from(n,H0),H0="buffer"}else if(n instanceof N)H0="buffer";else if(v._isUint8Array(n))n=v._uint8ArrayToBuffer(n),H0="buffer";else throw new u("chunk",["string","Buffer","Uint8Array"],n);let N0;if(D0.ending)N0=new o;else if(D0.destroyed)N0=new Z0("write");if(N0)return Q.nextTick(Y0,N0),G(c,N0,!0),N0;return D0.pendingcb++,q(c,D0,n,H0,Y0)}C.prototype.write=function(c,n,H0){return j(this,c,n,H0)===!0},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){let c=this._writableState;if(c.corked){if(c.corked--,!c.writing)U0(this,c)}},C.prototype.setDefaultEncoding=function(c){if(typeof c==="string")c=E(c);if(!N.isEncoding(c))throw new q0(c);return this._writableState.defaultEncoding=c,this};function q(c,n,H0,Y0,D0){let N0=n.objectMode?1:H0.length;n.length+=N0;let I0=n.length<n.highWaterMark;if(!I0)n.needDrain=!0;if(n.writing||n.corked||n.errored||!n.constructed){if(n.buffered.push({chunk:H0,encoding:Y0,callback:D0}),n.allBuffers&&Y0!=="buffer")n.allBuffers=!1;if(n.allNoop&&D0!==D)n.allNoop=!1}else n.writelen=N0,n.writecb=D0,n.writing=!0,n.sync=!0,c._write(H0,Y0,n.onwrite),n.sync=!1;return I0&&!n.errored&&!n.destroyed}function Z(c,n,H0,Y0,D0,N0,I0){if(n.writelen=Y0,n.writecb=I0,n.writing=!0,n.sync=!0,n.destroyed)n.onwrite(new Z0("write"));else if(H0)c._writev(D0,n.onwrite);else c._write(D0,N0,n.onwrite);n.sync=!1}function T(c,n,H0,Y0){--n.pendingcb,Y0(H0),t(n),G(c,H0)}function w(c,n){let H0=c._writableState,Y0=H0.sync,D0=H0.writecb;if(typeof D0!=="function"){G(c,new m);return}if(H0.writing=!1,H0.writecb=null,H0.length-=H0.writelen,H0.writelen=0,n){if(n.stack,!H0.errored)H0.errored=n;if(c._readableState&&!c._readableState.errored)c._readableState.errored=n;if(Y0)Q.nextTick(T,c,H0,n,D0);else T(c,H0,n,D0)}else{if(H0.buffered.length>H0.bufferedIndex)U0(c,H0);if(Y0)if(H0.afterWriteTickInfo!==null&&H0.afterWriteTickInfo.cb===D0)H0.afterWriteTickInfo.count++;else H0.afterWriteTickInfo={count:1,cb:D0,stream:c,state:H0},Q.nextTick(B,H0.afterWriteTickInfo);else h(c,H0,1,D0)}}function B({stream:c,state:n,count:H0,cb:Y0}){return n.afterWriteTickInfo=null,h(c,n,H0,Y0)}function h(c,n,H0,Y0){if(!n.ending&&!c.destroyed&&n.length===0&&n.needDrain)n.needDrain=!1,c.emit("drain");while(H0-- >0)n.pendingcb--,Y0();if(n.destroyed)t(n);e(c,n)}function t(c){if(c.writing)return;for(let D0=c.bufferedIndex;D0<c.buffered.length;++D0){var n;let{chunk:N0,callback:I0}=c.buffered[D0],K0=c.objectMode?1:N0.length;c.length-=K0,I0((n=c.errored)!==null&&n!==void 0?n:new Z0("write"))}let H0=c[H].splice(0);for(let D0=0;D0<H0.length;D0++){var Y0;H0[D0]((Y0=c.errored)!==null&&Y0!==void 0?Y0:new Z0("end"))}F(c)}function U0(c,n){if(n.corked||n.bufferProcessing||n.destroyed||!n.constructed)return;let{buffered:H0,bufferedIndex:Y0,objectMode:D0}=n,N0=H0.length-Y0;if(!N0)return;let I0=Y0;if(n.bufferProcessing=!0,N0>1&&c._writev){n.pendingcb-=N0-1;let K0=n.allNoop?D:(M0)=>{for(let v0=I0;v0<H0.length;++v0)H0[v0].callback(M0)},U$=n.allNoop&&I0===0?H0:O(H0,I0);U$.allBuffers=n.allBuffers,Z(c,n,!0,n.length,U$,"",K0),F(n)}else{do{let{chunk:K0,encoding:U$,callback:M0}=H0[I0];H0[I0++]=null;let v0=D0?1:K0.length;Z(c,n,!1,v0,K0,U$,M0)}while(I0<H0.length&&!n.writing);if(I0===H0.length)F(n);else if(I0>256)H0.splice(0,I0),n.bufferedIndex=0;else n.bufferedIndex=I0}n.bufferProcessing=!1}C.prototype._write=function(c,n,H0){if(this._writev)this._writev([{chunk:c,encoding:n}],H0);else throw new p("_write()")},C.prototype._writev=null,C.prototype.end=function(c,n,H0){let Y0=this._writableState;if(typeof c==="function")H0=c,c=null,n=null;else if(typeof n==="function")H0=n,n=null;let D0;if(c!==null&&c!==void 0){let N0=j(this,c,n);if(N0 instanceof X)D0=N0}if(Y0.corked)Y0.corked=1,this.uncork();if(D0);else if(!Y0.errored&&!Y0.ending)Y0.ending=!0,e(this,Y0,!0),Y0.ended=!0;else if(Y0.finished)D0=new L0("end");else if(Y0.destroyed)D0=new Z0("end");if(typeof H0==="function")if(D0||Y0.finished)Q.nextTick(H0,D0);else Y0[H].push(H0);return this};function z0(c){return c.ending&&!c.destroyed&&c.constructed&&c.length===0&&!c.errored&&c.buffered.length===0&&!c.finished&&!c.writing&&!c.errorEmitted&&!c.closeEmitted}function Q0(c,n){let H0=!1;function Y0(D0){if(H0){G(c,D0!==null&&D0!==void 0?D0:m());return}if(H0=!0,n.pendingcb--,D0){let N0=n[H].splice(0);for(let I0=0;I0<N0.length;I0++)N0[I0](D0);G(c,D0,n.sync)}else if(z0(n))n.prefinished=!0,c.emit("prefinish"),n.pendingcb++,Q.nextTick(J0,c,n)}n.sync=!0,n.pendingcb++;try{c._final(Y0)}catch(D0){Y0(D0)}n.sync=!1}function s(c,n){if(!n.prefinished&&!n.finalCalled)if(typeof c._final==="function"&&!n.destroyed)n.finalCalled=!0,Q0(c,n);else n.prefinished=!0,c.emit("prefinish")}function e(c,n,H0){if(z0(n)){if(s(c,n),n.pendingcb===0){if(H0)n.pendingcb++,Q.nextTick((Y0,D0)=>{if(z0(D0))J0(Y0,D0);else D0.pendingcb--},c,n);else if(z0(n))n.pendingcb++,J0(c,n)}}}function J0(c,n){n.pendingcb--,n.finished=!0;let H0=n[H].splice(0);for(let Y0=0;Y0<H0.length;Y0++)H0[Y0]();if(c.emit("finish"),n.autoDestroy){let Y0=c._readableState;if(!Y0||Y0.autoDestroy&&(Y0.endEmitted||Y0.readable===!1))c.destroy()}}L(C.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(c){if(this._writableState)this._writableState.destroyed=c}},writable:{__proto__:null,get(){let c=this._writableState;return!!c&&c.writable!==!1&&!c.destroyed&&!c.errored&&!c.ending&&!c.ended},set(c){if(this._writableState)this._writableState.writable=!!c}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let c=this._writableState;if(!c)return!1;return!c.destroyed&&!c.ending&&c.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var V0=f.destroy;C.prototype.destroy=function(c,n){let H0=this._writableState;if(!H0.destroyed&&(H0.bufferedIndex<H0.buffered.length||H0[H].length))Q.nextTick(t,H0);return V0.call(this,c,n),this},C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(c,n){n(c)},C.prototype[P.captureRejectionSymbol]=function(c){this.destroy(c)};var A0;function $0(){if(A0===void 0)A0={};return A0}C.fromWeb=function(c,n){return $0().newStreamWritableFromWritableStream(c,n)},C.toWeb=function(c){return $0().newWritableStreamFromStreamWritable(c)}}),Hy=YU((U,J)=>{var Q=HJ(),O=(tU(),v$(rU)),{isReadable:X,isWritable:z,isIterable:V,isNodeStream:L,isReadableNodeStream:S,isWritableNodeStream:E,isDuplexNodeStream:_,isReadableStream:M,isWritableStream:P}=WI(),v=KX(),{AbortError:N,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:x}}=u6(),{destroyer:b}=dQ(),k=DI(),u=aO(),p=QF(),{createDeferredPromise:m}=e6(),a=eS(),Z0=globalThis.Blob||O.Blob,L0=typeof Z0<"u"?function(H){return H instanceof Z0}:function(H){return!1},C0=globalThis.AbortController||T2().AbortController,{FunctionPrototypeCall:o}=bU();class q0 extends k{constructor(H){super(H);if((H===null||H===void 0?void 0:H.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((H===null||H===void 0?void 0:H.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function H(K,F){if(_(K))return K;if(S(K))return D({readable:K});if(E(K))return D({writable:K});if(L(K))return D({writable:!1,readable:!1});if(M(K))return D({readable:u.fromWeb(K)});if(P(K))return D({writable:p.fromWeb(K)});if(typeof K==="function"){let{value:j,write:q,final:Z,destroy:T}=G(K);if(V(j))return a(q0,j,{objectMode:!0,write:q,final:Z,destroy:T});let w=j===null||j===void 0?void 0:j.then;if(typeof w==="function"){let B,h=o(w,j,(t)=>{if(t!=null)throw new x("nully","body",t)},(t)=>{b(B,t)});return B=new q0({objectMode:!0,readable:!1,write:q,final(t){Z(async()=>{try{await h,Q.nextTick(t,null)}catch(U0){Q.nextTick(t,U0)}})},destroy:T})}throw new x("Iterable, AsyncIterable or AsyncFunction",F,j)}if(L0(K))return H(K.arrayBuffer());if(V(K))return a(q0,K,{objectMode:!0,writable:!1});if(M(K===null||K===void 0?void 0:K.readable)&&P(K===null||K===void 0?void 0:K.writable))return q0.fromWeb(K);if(typeof(K===null||K===void 0?void 0:K.writable)==="object"||typeof(K===null||K===void 0?void 0:K.readable)==="object"){let j=K!==null&&K!==void 0&&K.readable?S(K===null||K===void 0?void 0:K.readable)?K===null||K===void 0?void 0:K.readable:H(K.readable):void 0,q=K!==null&&K!==void 0&&K.writable?E(K===null||K===void 0?void 0:K.writable)?K===null||K===void 0?void 0:K.writable:H(K.writable):void 0;return D({readable:j,writable:q})}let C=K===null||K===void 0?void 0:K.then;if(typeof C==="function"){let j;return o(C,K,(q)=>{if(q!=null)j.push(q);j.push(null)},(q)=>{b(j,q)}),j=new q0({objectMode:!0,writable:!1,read(){}})}throw new f(F,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],K)};function G(H){let{promise:K,resolve:F}=m(),C=new C0,j=C.signal;return{value:H(async function*(){while(!0){let q=K;K=null;let{chunk:Z,done:T,cb:w}=await q;if(Q.nextTick(w),T)return;if(j.aborted)throw new N(void 0,{cause:j.reason});({promise:K,resolve:F}=m()),yield Z}}(),{signal:j}),write(q,Z,T){let w=F;F=null,w({chunk:q,done:!1,cb:T})},final(q){let Z=F;F=null,Z({done:!0,cb:q})},destroy(q,Z){C.abort(),Z(q)}}}function D(H){let K=H.readable&&typeof H.readable.read!=="function"?u.wrap(H.readable):H.readable,F=H.writable,C=!!X(K),j=!!z(F),q,Z,T,w,B;function h(t){let U0=w;if(w=null,U0)U0(t);else if(t)B.destroy(t)}if(B=new q0({readableObjectMode:!!(K!==null&&K!==void 0&&K.readableObjectMode),writableObjectMode:!!(F!==null&&F!==void 0&&F.writableObjectMode),readable:C,writable:j}),j)v(F,(t)=>{if(j=!1,t)b(K,t);h(t)}),B._write=function(t,U0,z0){if(F.write(t,U0))z0();else q=z0},B._final=function(t){F.end(),Z=t},F.on("drain",function(){if(q){let t=q;q=null,t()}}),F.on("finish",function(){if(Z){let t=Z;Z=null,t()}});if(C)v(K,(t)=>{if(C=!1,t)b(K,t);h(t)}),K.on("readable",function(){if(T){let t=T;T=null,t()}}),K.on("end",function(){B.push(null)}),B._read=function(){while(!0){let t=K.read();if(t===null){T=B._read;return}if(!B.push(t))return}};return B._destroy=function(t,U0){if(!t&&w!==null)t=new N;if(T=null,q=null,Z=null,w===null)U0(t);else w=U0,b(F,t),b(K,t)},B}}),DI=YU((U,J)=>{var{ObjectDefineProperties:Q,ObjectGetOwnPropertyDescriptor:O,ObjectKeys:X,ObjectSetPrototypeOf:z}=bU();J.exports=S;var V=aO(),L=QF();z(S.prototype,V.prototype),z(S,V);{let P=X(L.prototype);for(let v=0;v<P.length;v++){let N=P[v];if(!S.prototype[N])S.prototype[N]=L.prototype[N]}}function S(P){if(!(this instanceof S))return new S(P);if(V.call(this,P),L.call(this,P),P){if(this.allowHalfOpen=P.allowHalfOpen!==!1,P.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(P.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Q(S.prototype,{writable:{__proto__:null,...O(L.prototype,"writable")},writableHighWaterMark:{__proto__:null,...O(L.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...O(L.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...O(L.prototype,"writableBuffer")},writableLength:{__proto__:null,...O(L.prototype,"writableLength")},writableFinished:{__proto__:null,...O(L.prototype,"writableFinished")},writableCorked:{__proto__:null,...O(L.prototype,"writableCorked")},writableEnded:{__proto__:null,...O(L.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...O(L.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(P){if(this._readableState&&this._writableState)this._readableState.destroyed=P,this._writableState.destroyed=P}}});var E;function _(){if(E===void 0)E={};return E}S.fromWeb=function(P,v){return _().newStreamDuplexFromReadableWritablePair(P,v)},S.toWeb=function(P){return _().newReadableWritablePairFromDuplex(P)};var M;S.from=function(P){if(!M)M=Hy();return M(P,"body")}}),$j=YU((U,J)=>{var{ObjectSetPrototypeOf:Q,Symbol:O}=bU();J.exports=S;var{ERR_METHOD_NOT_IMPLEMENTED:X}=u6().codes,z=DI(),{getHighWaterMark:V}=tO();Q(S.prototype,z.prototype),Q(S,z);var L=O("kCallback");function S(M){if(!(this instanceof S))return new S(M);let P=M?V(this,M,"readableHighWaterMark",!0):null;if(P===0)M={...M,highWaterMark:null,readableHighWaterMark:P,writableHighWaterMark:M.writableHighWaterMark||0};if(z.call(this,M),this._readableState.sync=!1,this[L]=null,M){if(typeof M.transform==="function")this._transform=M.transform;if(typeof M.flush==="function")this._flush=M.flush}this.on("prefinish",_)}function E(M){if(typeof this._flush==="function"&&!this.destroyed)this._flush((P,v)=>{if(P){if(M)M(P);else this.destroy(P);return}if(v!=null)this.push(v);if(this.push(null),M)M()});else if(this.push(null),M)M()}function _(){if(this._final!==E)E.call(this)}S.prototype._final=E,S.prototype._transform=function(M,P,v){throw new X("_transform()")},S.prototype._write=function(M,P,v){let N=this._readableState,f=this._writableState,x=N.length;this._transform(M,P,(b,k)=>{if(b){v(b);return}if(k!=null)this.push(k);if(f.ended||x===N.length||N.length<N.highWaterMark)v();else this[L]=v})},S.prototype._read=function(){if(this[L]){let M=this[L];this[L]=null,M()}}}),Uj=YU((U,J)=>{var{ObjectSetPrototypeOf:Q}=bU();J.exports=X;var O=$j();Q(X.prototype,O.prototype),Q(X,O);function X(z){if(!(this instanceof X))return new X(z);O.call(this,z)}X.prototype._transform=function(z,V,L){L(null,z)}}),YF=YU((U,J)=>{var Q=HJ(),{ArrayIsArray:O,Promise:X,SymbolAsyncIterator:z,SymbolDispose:V}=bU(),L=KX(),{once:S}=e6(),E=dQ(),_=DI(),{aggregateTwoErrors:M,codes:{ERR_INVALID_ARG_TYPE:P,ERR_INVALID_RETURN_VALUE:v,ERR_MISSING_ARGS:N,ERR_STREAM_DESTROYED:f,ERR_STREAM_PREMATURE_CLOSE:x},AbortError:b}=u6(),{validateFunction:k,validateAbortSignal:u}=C2(),{isIterable:p,isReadable:m,isReadableNodeStream:a,isNodeStream:Z0,isTransformStream:L0,isWebStream:C0,isReadableStream:o,isReadableFinished:q0}=WI(),G=globalThis.AbortController||T2().AbortController,D,H,K;function F(t,U0,z0){let Q0=!1;t.on("close",()=>{Q0=!0});let s=L(t,{readable:U0,writable:z0},(e)=>{Q0=!e});return{destroy:(e)=>{if(Q0)return;Q0=!0,E.destroyer(t,e||new f("pipe"))},cleanup:s}}function C(t){return k(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function j(t){if(p(t))return t;else if(a(t))return q(t);throw new P("val",["Readable","Iterable","AsyncIterable"],t)}async function*q(t){if(!H)H=aO();yield*H.prototype[z].call(t)}async function Z(t,U0,z0,{end:Q0}){let s,e=null,J0=($0)=>{if($0)s=$0;if(e){let c=e;e=null,c()}},V0=()=>new X(($0,c)=>{if(s)c(s);else e=()=>{if(s)c(s);else $0()}});U0.on("drain",J0);let A0=L(U0,{readable:!1},J0);try{if(U0.writableNeedDrain)await V0();for await(let $0 of t)if(!U0.write($0))await V0();if(Q0)U0.end(),await V0();z0()}catch($0){z0(s!==$0?M(s,$0):$0)}finally{A0(),U0.off("drain",J0)}}async function T(t,U0,z0,{end:Q0}){if(L0(U0))U0=U0.writable;let s=U0.getWriter();try{for await(let e of t)await s.ready,s.write(e).catch(()=>{});if(await s.ready,Q0)await s.close();z0()}catch(e){try{await s.abort(e),z0(e)}catch(J0){z0(J0)}}}function w(...t){return B(t,S(C(t)))}function B(t,U0,z0){if(t.length===1&&O(t[0]))t=t[0];if(t.length<2)throw new N("streams");let Q0=new G,s=Q0.signal,e=z0===null||z0===void 0?void 0:z0.signal,J0=[];u(e,"options.signal");function V0(){D0(new b)}K=K||e6().addAbortListener;let A0;if(e)A0=K(e,V0);let $0,c,n=[],H0=0;function Y0(M0){D0(M0,--H0===0)}function D0(M0,v0){var L$;if(M0&&(!$0||$0.code==="ERR_STREAM_PREMATURE_CLOSE"))$0=M0;if(!$0&&!v0)return;while(n.length)n.shift()($0);if((L$=A0)===null||L$===void 0||L$[V](),Q0.abort(),v0){if(!$0)J0.forEach((p0)=>p0());Q.nextTick(U0,$0,c)}}let N0;for(let M0=0;M0<t.length;M0++){let v0=t[M0],L$=M0<t.length-1,p0=M0>0,c0=L$||(z0===null||z0===void 0?void 0:z0.end)!==!1,t$=M0===t.length-1;if(Z0(v0)){let b0=function(h0){if(h0&&h0.name!=="AbortError"&&h0.code!=="ERR_STREAM_PREMATURE_CLOSE")Y0(h0)};var I0=b0;if(c0){let{destroy:h0,cleanup:VU}=F(v0,L$,p0);if(n.push(h0),m(v0)&&t$)J0.push(VU)}if(v0.on("error",b0),m(v0)&&t$)J0.push(()=>{v0.removeListener("error",b0)})}if(M0===0)if(typeof v0==="function"){if(N0=v0({signal:s}),!p(N0))throw new v("Iterable, AsyncIterable or Stream","source",N0)}else if(p(v0)||a(v0)||L0(v0))N0=v0;else N0=_.from(v0);else if(typeof v0==="function"){if(L0(N0)){var K0;N0=j((K0=N0)===null||K0===void 0?void 0:K0.readable)}else N0=j(N0);if(N0=v0(N0,{signal:s}),L$){if(!p(N0,!0))throw new v("AsyncIterable",`transform[${M0-1}]`,N0)}else{var U$;if(!D)D=Uj();let b0=new D({objectMode:!0}),h0=(U$=N0)===null||U$===void 0?void 0:U$.then;if(typeof h0==="function")H0++,h0.call(N0,(o0)=>{if(c=o0,o0!=null)b0.write(o0);if(c0)b0.end();Q.nextTick(Y0)},(o0)=>{b0.destroy(o0),Q.nextTick(Y0,o0)});else if(p(N0,!0))H0++,Z(N0,b0,Y0,{end:c0});else if(o(N0)||L0(N0)){let o0=N0.readable||N0;H0++,Z(o0,b0,Y0,{end:c0})}else throw new v("AsyncIterable or Promise","destination",N0);N0=b0;let{destroy:VU,cleanup:r0}=F(N0,!1,!0);if(n.push(VU),t$)J0.push(r0)}}else if(Z0(v0)){if(a(N0)){H0+=2;let b0=h(N0,v0,Y0,{end:c0});if(m(v0)&&t$)J0.push(b0)}else if(L0(N0)||o(N0)){let b0=N0.readable||N0;H0++,Z(b0,v0,Y0,{end:c0})}else if(p(N0))H0++,Z(N0,v0,Y0,{end:c0});else throw new P("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N0);N0=v0}else if(C0(v0)){if(a(N0))H0++,T(j(N0),v0,Y0,{end:c0});else if(o(N0)||p(N0))H0++,T(N0,v0,Y0,{end:c0});else if(L0(N0))H0++,T(N0.readable,v0,Y0,{end:c0});else throw new P("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N0);N0=v0}else N0=_.from(v0)}if(s!==null&&s!==void 0&&s.aborted||e!==null&&e!==void 0&&e.aborted)Q.nextTick(V0);return N0}function h(t,U0,z0,{end:Q0}){let s=!1;if(U0.on("close",()=>{if(!s)z0(new x)}),t.pipe(U0,{end:!1}),Q0){let J0=function(){s=!0,U0.end()};var e=J0;if(q0(t))Q.nextTick(J0);else t.once("end",J0)}else z0();return L(t,{readable:!0,writable:!1},(J0)=>{let V0=t._readableState;if(J0&&J0.code==="ERR_STREAM_PREMATURE_CLOSE"&&V0&&V0.ended&&!V0.errored&&!V0.errorEmitted)t.once("end",z0).once("error",z0);else z0(J0)}),L(U0,{readable:!1,writable:!0},z0)}J.exports={pipelineImpl:B,pipeline:w}}),Ij=YU((U,J)=>{var{pipeline:Q}=YF(),O=DI(),{destroyer:X}=dQ(),{isNodeStream:z,isReadable:V,isWritable:L,isWebStream:S,isTransformStream:E,isWritableStream:_,isReadableStream:M}=WI(),{AbortError:P,codes:{ERR_INVALID_ARG_VALUE:v,ERR_MISSING_ARGS:N}}=u6(),f=KX();J.exports=function(...x){if(x.length===0)throw new N("streams");if(x.length===1)return O.from(x[0]);let b=[...x];if(typeof x[0]==="function")x[0]=O.from(x[0]);if(typeof x[x.length-1]==="function"){let G=x.length-1;x[G]=O.from(x[G])}for(let G=0;G<x.length;++G){if(!z(x[G])&&!S(x[G]))continue;if(G<x.length-1&&!(V(x[G])||M(x[G])||E(x[G])))throw new v(`streams[${G}]`,b[G],"must be readable");if(G>0&&!(L(x[G])||_(x[G])||E(x[G])))throw new v(`streams[${G}]`,b[G],"must be writable")}let k,u,p,m,a;function Z0(G){let D=m;if(m=null,D)D(G);else if(G)a.destroy(G);else if(!q0&&!o)a.destroy()}let L0=x[0],C0=Q(x,Z0),o=!!(L(L0)||_(L0)||E(L0)),q0=!!(V(C0)||M(C0)||E(C0));if(a=new O({writableObjectMode:!!(L0!==null&&L0!==void 0&&L0.writableObjectMode),readableObjectMode:!!(C0!==null&&C0!==void 0&&C0.readableObjectMode),writable:o,readable:q0}),o){if(z(L0))a._write=function(D,H,K){if(L0.write(D,H))K();else k=K},a._final=function(D){L0.end(),u=D},L0.on("drain",function(){if(k){let D=k;k=null,D()}});else if(S(L0)){let D=(E(L0)?L0.writable:L0).getWriter();a._write=async function(H,K,F){try{await D.ready,D.write(H).catch(()=>{}),F()}catch(C){F(C)}},a._final=async function(H){try{await D.ready,D.close().catch(()=>{}),u=H}catch(K){H(K)}}}let G=E(C0)?C0.readable:C0;f(G,()=>{if(u){let D=u;u=null,D()}})}if(q0){if(z(C0))C0.on("readable",function(){if(p){let G=p;p=null,G()}}),C0.on("end",function(){a.push(null)}),a._read=function(){while(!0){let G=C0.read();if(G===null){p=a._read;return}if(!a.push(G))return}};else if(S(C0)){let G=(E(C0)?C0.readable:C0).getReader();a._read=async function(){while(!0)try{let{value:D,done:H}=await G.read();if(!a.push(D))return;if(H){a.push(null);return}}catch{return}}}}return a._destroy=function(G,D){if(!G&&m!==null)G=new P;if(p=null,k=null,u=null,m===null)D(G);else if(m=D,z(C0))X(C0,G)},a}}),Ly=YU((U,J)=>{var Q=globalThis.AbortController||T2().AbortController,{codes:{ERR_INVALID_ARG_VALUE:O,ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:z,ERR_OUT_OF_RANGE:V},AbortError:L}=u6(),{validateAbortSignal:S,validateInteger:E,validateObject:_}=C2(),M=bU().Symbol("kWeak"),P=bU().Symbol("kResistStopPropagation"),{finished:v}=KX(),N=Ij(),{addAbortSignalNoValidate:f}=rO(),{isWritable:x,isNodeStream:b}=WI(),{deprecate:k}=e6(),{ArrayPrototypePush:u,Boolean:p,MathFloor:m,Number:a,NumberIsNaN:Z0,Promise:L0,PromiseReject:C0,PromiseResolve:o,PromisePrototypeThen:q0,Symbol:G}=bU(),D=G("kEmpty"),H=G("kEof");function K(e,J0){if(J0!=null)_(J0,"options");if((J0===null||J0===void 0?void 0:J0.signal)!=null)S(J0.signal,"options.signal");if(b(e)&&!x(e))throw new O("stream",e,"must be writable");let V0=N(this,e);if(J0!==null&&J0!==void 0&&J0.signal)f(J0.signal,V0);return V0}function F(e,J0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);if(J0!=null)_(J0,"options");if((J0===null||J0===void 0?void 0:J0.signal)!=null)S(J0.signal,"options.signal");let V0=1;if((J0===null||J0===void 0?void 0:J0.concurrency)!=null)V0=m(J0.concurrency);let A0=V0-1;if((J0===null||J0===void 0?void 0:J0.highWaterMark)!=null)A0=m(J0.highWaterMark);return E(V0,"options.concurrency",1),E(A0,"options.highWaterMark",0),A0+=V0,async function*(){let $0=e6().AbortSignalAny([J0===null||J0===void 0?void 0:J0.signal].filter(p)),c=this,n=[],H0={signal:$0},Y0,D0,N0=!1,I0=0;function K0(){N0=!0,U$()}function U$(){I0-=1,M0()}function M0(){if(D0&&!N0&&I0<V0&&n.length<A0)D0(),D0=null}async function v0(){try{for await(let L$ of c){if(N0)return;if($0.aborted)throw new L;try{if(L$=e(L$,H0),L$===D)continue;L$=o(L$)}catch(p0){L$=C0(p0)}if(I0+=1,q0(L$,U$,K0),n.push(L$),Y0)Y0(),Y0=null;if(!N0&&(n.length>=A0||I0>=V0))await new L0((p0)=>{D0=p0})}n.push(H)}catch(L$){let p0=C0(L$);q0(p0,U$,K0),n.push(p0)}finally{if(N0=!0,Y0)Y0(),Y0=null}}v0();try{while(!0){while(n.length>0){let L$=await n[0];if(L$===H)return;if($0.aborted)throw new L;if(L$!==D)yield L$;n.shift(),M0()}await new L0((L$)=>{Y0=L$})}}finally{if(N0=!0,D0)D0(),D0=null}}.call(this)}function C(e=void 0){if(e!=null)_(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)S(e.signal,"options.signal");return async function*(){let J0=0;for await(let A0 of this){var V0;if(e!==null&&e!==void 0&&(V0=e.signal)!==null&&V0!==void 0&&V0.aborted)throw new L({cause:e.signal.reason});yield[J0++,A0]}}.call(this)}async function j(e,J0=void 0){for await(let V0 of w.call(this,e,J0))return!0;return!1}async function q(e,J0=void 0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);return!await j.call(this,async(...V0)=>{return!await e(...V0)},J0)}async function Z(e,J0){for await(let V0 of w.call(this,e,J0))return V0;return}async function T(e,J0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);async function V0(A0,$0){return await e(A0,$0),D}for await(let A0 of F.call(this,V0,J0));}function w(e,J0){if(typeof e!=="function")throw new X("fn",["Function","AsyncFunction"],e);async function V0(A0,$0){if(await e(A0,$0))return A0;return D}return F.call(this,V0,J0)}class B extends z{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function h(e,J0,V0){var A0;if(typeof e!=="function")throw new X("reducer",["Function","AsyncFunction"],e);if(V0!=null)_(V0,"options");if((V0===null||V0===void 0?void 0:V0.signal)!=null)S(V0.signal,"options.signal");let $0=arguments.length>1;if(V0!==null&&V0!==void 0&&(A0=V0.signal)!==null&&A0!==void 0&&A0.aborted){let D0=new L(void 0,{cause:V0.signal.reason});throw this.once("error",()=>{}),await v(this.destroy(D0)),D0}let c=new Q,n=c.signal;if(V0!==null&&V0!==void 0&&V0.signal){let D0={once:!0,[M]:this,[P]:!0};V0.signal.addEventListener("abort",()=>c.abort(),D0)}let H0=!1;try{for await(let D0 of this){var Y0;if(H0=!0,V0!==null&&V0!==void 0&&(Y0=V0.signal)!==null&&Y0!==void 0&&Y0.aborted)throw new L;if(!$0)J0=D0,$0=!0;else J0=await e(J0,D0,{signal:n})}if(!H0&&!$0)throw new B}finally{c.abort()}return J0}async function t(e){if(e!=null)_(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)S(e.signal,"options.signal");let J0=[];for await(let A0 of this){var V0;if(e!==null&&e!==void 0&&(V0=e.signal)!==null&&V0!==void 0&&V0.aborted)throw new L(void 0,{cause:e.signal.reason});u(J0,A0)}return J0}function U0(e,J0){let V0=F.call(this,e,J0);return async function*(){for await(let A0 of V0)yield*A0}.call(this)}function z0(e){if(e=a(e),Z0(e))return 0;if(e<0)throw new V("number",">= 0",e);return e}function Q0(e,J0=void 0){if(J0!=null)_(J0,"options");if((J0===null||J0===void 0?void 0:J0.signal)!=null)S(J0.signal,"options.signal");return e=z0(e),async function*(){var V0;if(J0!==null&&J0!==void 0&&(V0=J0.signal)!==null&&V0!==void 0&&V0.aborted)throw new L;for await(let $0 of this){var A0;if(J0!==null&&J0!==void 0&&(A0=J0.signal)!==null&&A0!==void 0&&A0.aborted)throw new L;if(e--<=0)yield $0}}.call(this)}function s(e,J0=void 0){if(J0!=null)_(J0,"options");if((J0===null||J0===void 0?void 0:J0.signal)!=null)S(J0.signal,"options.signal");return e=z0(e),async function*(){var V0;if(J0!==null&&J0!==void 0&&(V0=J0.signal)!==null&&V0!==void 0&&V0.aborted)throw new L;for await(let $0 of this){var A0;if(J0!==null&&J0!==void 0&&(A0=J0.signal)!==null&&A0!==void 0&&A0.aborted)throw new L;if(e-- >0)yield $0;if(e<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:k(C,"readable.asIndexedPairs will be removed in a future version."),drop:Q0,filter:w,flatMap:U0,map:F,take:s,compose:K},J.exports.promiseReturningOperators={every:q,forEach:T,reduce:h,toArray:t,some:j,find:Z}}),Xj=YU((U,J)=>{var{ArrayPrototypePop:Q,Promise:O}=bU(),{isIterable:X,isNodeStream:z,isWebStream:V}=WI(),{pipelineImpl:L}=YF(),{finished:S}=KX();Jj();function E(..._){return new O((M,P)=>{let v,N,f=_[_.length-1];if(f&&typeof f==="object"&&!z(f)&&!X(f)&&!V(f)){let x=Q(_);v=x.signal,N=x.end}L(_,(x,b)=>{if(x)P(x);else M(b)},{signal:v,end:N})})}J.exports={finished:S,pipeline:E}}),Jj=YU((U,J)=>{var{Buffer:Q}=(tU(),v$(rU)),{ObjectDefineProperty:O,ObjectKeys:X,ReflectApply:z}=bU(),{promisify:{custom:V}}=e6(),{streamReturningOperators:L,promiseReturningOperators:S}=Ly(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:E}}=u6(),_=Ij(),{setDefaultHighWaterMark:M,getDefaultHighWaterMark:P}=tO(),{pipeline:v}=YF(),{destroyer:N}=dQ(),f=KX(),x=Xj(),b=WI(),k=J.exports=JF().Stream;k.isDestroyed=b.isDestroyed,k.isDisturbed=b.isDisturbed,k.isErrored=b.isErrored,k.isReadable=b.isReadable,k.isWritable=b.isWritable,k.Readable=aO();for(let p of X(L)){let m=function(...Z0){if(new.target)throw E();return k.Readable.from(z(a,this,Z0))},a=L[p];O(m,"name",{__proto__:null,value:a.name}),O(m,"length",{__proto__:null,value:a.length}),O(k.Readable.prototype,p,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(let p of X(S)){let m=function(...Z0){if(new.target)throw E();return z(a,this,Z0)},a=S[p];O(m,"name",{__proto__:null,value:a.name}),O(m,"length",{__proto__:null,value:a.length}),O(k.Readable.prototype,p,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}k.Writable=QF(),k.Duplex=DI(),k.Transform=$j(),k.PassThrough=Uj(),k.pipeline=v;var{addAbortSignal:u}=rO();k.addAbortSignal=u,k.finished=f,k.destroy=N,k.compose=_,k.setDefaultHighWaterMark=M,k.getDefaultHighWaterMark=P,O(k,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return x}}),O(v,V,{__proto__:null,enumerable:!0,get(){return x.pipeline}}),O(f,V,{__proto__:null,enumerable:!0,get(){return x.finished}}),k.Stream=k,k._isUint8Array=function(p){return p instanceof Uint8Array},k._uint8ArrayToBuffer=function(p){return Q.from(p.buffer,p.byteOffset,p.byteLength)}}),My=YU((U,J)=>{var Q=nQ();{let O=Jj(),X=Xj(),z=O.Readable.destroy;J.exports=O.Readable,J.exports._uint8ArrayToBuffer=O._uint8ArrayToBuffer,J.exports._isUint8Array=O._isUint8Array,J.exports.isDisturbed=O.isDisturbed,J.exports.isErrored=O.isErrored,J.exports.isReadable=O.isReadable,J.exports.Readable=O.Readable,J.exports.Writable=O.Writable,J.exports.Duplex=O.Duplex,J.exports.Transform=O.Transform,J.exports.PassThrough=O.PassThrough,J.exports.addAbortSignal=O.addAbortSignal,J.exports.finished=O.finished,J.exports.destroy=O.destroy,J.exports.destroy=z,J.exports.pipeline=O.pipeline,J.exports.compose=O.compose,Object.defineProperty(O,"promises",{configurable:!0,enumerable:!0,get(){return X}}),J.exports.Stream=O.Stream}J.exports.default=J.exports});Qj.exports=My()});var q4={};y6(q4,{webcrypto:()=>lb,rng:()=>Xb,randomUUID:()=>WX,randomFillSync:()=>fb,randomFill:()=>wb,randomBytes:()=>Jb,publicEncrypt:()=>Nb,publicDecrypt:()=>gb,pseudoRandomBytes:()=>Ib,prng:()=>Ub,privateEncrypt:()=>kb,privateDecrypt:()=>xb,pbkdf2Sync:()=>Ob,pbkdf2:()=>Zb,listCiphers:()=>qb,getRandomValues:()=>hb,getHashes:()=>Vb,getDiffieHellman:()=>Rb,getCurves:()=>pb,getCiphers:()=>Ab,default:()=>mb,createVerify:()=>jb,createSign:()=>_b,createHmac:()=>Gb,createHash:()=>h6,createECDH:()=>Bb,createDiffieHellmanGroup:()=>Cb,createDiffieHellman:()=>Pb,createDecipheriv:()=>Mb,createDecipher:()=>Hb,createCredentials:()=>yb,createCipheriv:()=>Wb,createCipher:()=>Kb,constants:()=>ub,Verify:()=>vb,Sign:()=>Sb,Hmac:()=>Yb,Hash:()=>Qb,DiffieHellmanGroup:()=>Tb,DiffieHellman:()=>Eb,Decipheriv:()=>Lb,Decipher:()=>Fb,DEFAULT_ENCODING:()=>bb,Cipheriv:()=>Db,Cipher:()=>zb});function pb(){return cb}var Ay,qy,Yj,Ty,Cy,Ry=(U,J,Q)=>{Q=U!=null?Ay(qy(U)):{};let O=J||!U||!U.__esModule?Yj(Q,"default",{value:U,enumerable:!0}):Q;for(let X of Ty(U))if(!Cy.call(O,X))Yj(O,X,{get:()=>U[X],enumerable:!0});return O},u0=(U,J)=>()=>(J||U((J={exports:{}}).exports,J),J.exports),sO,eO,Vj,Py,VF,ZF,b6,Ey,P2,Zj,_y,Sy,jy,vy,Oj,By,Ny,ky,gy,xy,wy,fy,yy,uy,by,E2,$z,zj,hy,Kj,Dj,cy,_2,OF,zF,py,Wj,KF,ly,Fj,my,Hj,Lj,dy,ny,oy,iy,ry,ty,ay,sy,ey,$u,Uu,Iu,Xu,Ju,DF,Mj,Qu,Aj,Yu,Gu,Vu,Zu,FI,DX,qj,b4,Tj,Uz,Ou,A4,zu,Ku,Du,Cj,x1,S2,Rj,Wu,Pj,Fu,Ej,Hu,Lu,Mu,Au,WF,qu,FF,Tu,Cu,Ru,Pu,Eu,_u,Su,ju,vu,Bu,Nu,ku,gu,xu,Gj,wu,R2,fu,_j,Sj,yu,uu,jj,bu,hu,j2,cu,pu,lu,mu,du,nu,vj,ou,Bj,Nj,kj,HF,gj,iu,xj,ru,tu,GF,au,su,eu,$b,p$,Ub,Ib,Xb,Jb,Qb,h6,Yb,Gb,Vb,Zb,Ob,zb,Kb,Db,Wb,Fb,Hb,Lb,Mb,Ab,qb,Tb,Cb,Rb,Pb,Eb,_b,Sb,jb,vb,Bb,Nb,kb,gb,xb,wb,fb,yb,ub,bb="buffer",hb=(U)=>{return crypto.getRandomValues(U)},WX=()=>{return crypto.randomUUID()},cb,lb,mb;var hU=wQ(()=>{Ay=Object.create,{getPrototypeOf:qy,defineProperty:Yj,getOwnPropertyNames:Ty}=Object,Cy=Object.prototype.hasOwnProperty,sO=u0((U,J)=>{J.exports=(hU(),v$(q4)).randomBytes}),eO=u0((U,J)=>{J.exports=(hU(),v$(q4)).createHash}),Vj=u0((U,J)=>{J.exports=(hU(),v$(q4)).createHmac}),Py=u0((U,J)=>{J.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),VF=u0((U,J)=>{var Q=isFinite,O=Math.pow(2,30)-1;J.exports=function(X,z){if(typeof X!=="number")throw TypeError("Iterations not a number");if(X<0||!Q(X))throw TypeError("Bad iterations");if(typeof z!=="number")throw TypeError("Key length not a number");if(z<0||z>O||z!==z)throw TypeError("Bad key length")}}),ZF=u0((U,J)=>{var Q;if(globalThis.process&&globalThis.process.browser)Q="utf-8";else if(globalThis.process&&globalThis.process.version)O=parseInt(process.version.split(".")[0].slice(1),10),Q=O>=6?"utf-8":"binary";else Q="utf-8";var O;J.exports=Q}),b6=u0((U,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Q=(tU(),v$(rU)),O=Q.Buffer;function X(V,L){for(var S in V)L[S]=V[S]}if(O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow)J.exports=Q;else X(Q,U),U.Buffer=z;function z(V,L,S){return O(V,L,S)}z.prototype=Object.create(O.prototype),X(O,z),z.from=function(V,L,S){if(typeof V==="number")throw TypeError("Argument must not be a number");return O(V,L,S)},z.alloc=function(V,L,S){if(typeof V!=="number")throw TypeError("Argument must be a number");var E=O(V);if(L!==void 0)if(typeof S==="string")E.fill(L,S);else E.fill(L);else E.fill(0);return E},z.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return O(V)},z.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return Q.SlowBuffer(V)}}),Ey=u0((U,J)=>{var Q={}.toString;J.exports=Array.isArray||function(O){return Q.call(O)=="[object Array]"}}),P2=u0((U,J)=>{J.exports=TypeError}),Zj=u0((U,J)=>{J.exports=Object}),_y=u0((U,J)=>{J.exports=Error}),Sy=u0((U,J)=>{J.exports=EvalError}),jy=u0((U,J)=>{J.exports=RangeError}),vy=u0((U,J)=>{J.exports=ReferenceError}),Oj=u0((U,J)=>{J.exports=SyntaxError}),By=u0((U,J)=>{J.exports=URIError}),Ny=u0((U,J)=>{J.exports=Math.abs}),ky=u0((U,J)=>{J.exports=Math.floor}),gy=u0((U,J)=>{J.exports=Math.max}),xy=u0((U,J)=>{J.exports=Math.min}),wy=u0((U,J)=>{J.exports=Math.pow}),fy=u0((U,J)=>{J.exports=Math.round}),yy=u0((U,J)=>{J.exports=Number.isNaN||function(Q){return Q!==Q}}),uy=u0((U,J)=>{var Q=yy();J.exports=function(O){if(Q(O)||O===0)return O;return O<0?-1:1}}),by=u0((U,J)=>{J.exports=Object.getOwnPropertyDescriptor}),E2=u0((U,J)=>{var Q=by();if(Q)try{Q([],"length")}catch(O){Q=null}J.exports=Q}),$z=u0((U,J)=>{var Q=Object.defineProperty||!1;if(Q)try{Q({},"a",{value:1})}catch(O){Q=!1}J.exports=Q}),zj=u0((U,J)=>{J.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var Q={},O=Symbol("test"),X=Object(O);if(typeof O==="string")return!1;if(Object.prototype.toString.call(O)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(X)!=="[object Symbol]")return!1;var z=42;Q[O]=z;for(var V in Q)return!1;if(typeof Object.keys==="function"&&Object.keys(Q).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(Q).length!==0)return!1;var L=Object.getOwnPropertySymbols(Q);if(L.length!==1||L[0]!==O)return!1;if(!Object.prototype.propertyIsEnumerable.call(Q,O))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var S=Object.getOwnPropertyDescriptor(Q,O);if(S.value!==z||S.enumerable!==!0)return!1}return!0}}),hy=u0((U,J)=>{var Q=typeof Symbol<"u"&&Symbol,O=zj();J.exports=function(){if(typeof Q!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof Q("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return O()}}),Kj=u0((U,J)=>{J.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Dj=u0((U,J)=>{var Q=Zj();J.exports=Q.getPrototypeOf||null}),cy=u0((U,J)=>{var Q="Function.prototype.bind called on incompatible ",O=Object.prototype.toString,X=Math.max,z="[object Function]",V=function(E,_){var M=[];for(var P=0;P<E.length;P+=1)M[P]=E[P];for(var v=0;v<_.length;v+=1)M[v+E.length]=_[v];return M},L=function(E,_){var M=[];for(var P=_||0,v=0;P<E.length;P+=1,v+=1)M[v]=E[P];return M},S=function(E,_){var M="";for(var P=0;P<E.length;P+=1)if(M+=E[P],P+1<E.length)M+=_;return M};J.exports=function(E){var _=this;if(typeof _!=="function"||O.apply(_)!==z)throw TypeError(Q+_);var M=L(arguments,1),P,v=function(){if(this instanceof P){var k=_.apply(this,V(M,arguments));if(Object(k)===k)return k;return this}return _.apply(E,V(M,arguments))},N=X(0,_.length-M.length),f=[];for(var x=0;x<N;x++)f[x]="$"+x;if(P=Function("binder","return function ("+S(f,",")+"){ return binder.apply(this,arguments); }")(v),_.prototype){var b=function(){};b.prototype=_.prototype,P.prototype=new b,b.prototype=null}return P}}),_2=u0((U,J)=>{var Q=cy();J.exports=Function.prototype.bind||Q}),OF=u0((U,J)=>{J.exports=Function.prototype.call}),zF=u0((U,J)=>{J.exports=Function.prototype.apply}),py=u0((U,J)=>{J.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Wj=u0((U,J)=>{var Q=_2(),O=zF(),X=OF(),z=py();J.exports=z||Q.call(X,O)}),KF=u0((U,J)=>{var Q=_2(),O=P2(),X=OF(),z=Wj();J.exports=function(V){if(V.length<1||typeof V[0]!=="function")throw new O("a function is required");return z(Q,X,V)}}),ly=u0((U,J)=>{var Q=KF(),O=E2(),X;try{X=[].__proto__===Array.prototype}catch(S){if(!S||typeof S!=="object"||!("code"in S)||S.code!=="ERR_PROTO_ACCESS")throw S}var z=!!X&&O&&O(Object.prototype,"__proto__"),V=Object,L=V.getPrototypeOf;J.exports=z&&typeof z.get==="function"?Q([z.get]):typeof L==="function"?function(S){return L(S==null?S:V(S))}:!1}),Fj=u0((U,J)=>{var Q=Kj(),O=Dj(),X=ly();J.exports=Q?function(z){return Q(z)}:O?function(z){if(!z||typeof z!=="object"&&typeof z!=="function")throw TypeError("getProto: not an object");return O(z)}:X?function(z){return X(z)}:null}),my=u0((U,J)=>{var Q=Function.prototype.call,O=Object.prototype.hasOwnProperty,X=_2();J.exports=X.call(Q,O)}),Hj=u0((U,J)=>{var Q,O=Zj(),X=_y(),z=Sy(),V=jy(),L=vy(),S=Oj(),E=P2(),_=By(),M=Ny(),P=ky(),v=gy(),N=xy(),f=wy(),x=fy(),b=uy(),k=Function,u=function(J0){try{return k('"use strict"; return ('+J0+").constructor;")()}catch(V0){}},p=E2(),m=$z(),a=function(){throw new E},Z0=p?function(){try{return arguments.callee,a}catch(J0){try{return p(arguments,"callee").get}catch(V0){return a}}}():a,L0=hy()(),C0=Fj(),o=Dj(),q0=Kj(),G=zF(),D=OF(),H={},K=typeof Uint8Array>"u"||!C0?Q:C0(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":L0&&C0?C0([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":X,"%eval%":eval,"%EvalError%":z,"%Float16Array%":typeof Float16Array>"u"?Q:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L0&&C0?C0(C0([][Symbol.iterator]())):Q,"%JSON%":typeof JSON==="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L0||!C0?Q:C0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":O,"%Object.getOwnPropertyDescriptor%":p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":V,"%ReferenceError%":L,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L0||!C0?Q:C0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L0&&C0?C0(""[Symbol.iterator]()):Q,"%Symbol%":L0?Symbol:Q,"%SyntaxError%":S,"%ThrowTypeError%":Z0,"%TypedArray%":K,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":G,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":o,"%Math.abs%":M,"%Math.floor%":P,"%Math.max%":v,"%Math.min%":N,"%Math.pow%":f,"%Math.round%":x,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q0};if(C0)try{null.error}catch(J0){C=C0(C0(J0)),F["%Error.prototype%"]=C}var C,j=function J0(V0){var A0;if(V0==="%AsyncFunction%")A0=u("async function () {}");else if(V0==="%GeneratorFunction%")A0=u("function* () {}");else if(V0==="%AsyncGeneratorFunction%")A0=u("async function* () {}");else if(V0==="%AsyncGenerator%"){var $0=J0("%AsyncGeneratorFunction%");if($0)A0=$0.prototype}else if(V0==="%AsyncIteratorPrototype%"){var c=J0("%AsyncGenerator%");if(c&&C0)A0=C0(c.prototype)}return F[V0]=A0,A0},q={__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"]},Z=_2(),T=my(),w=Z.call(D,Array.prototype.concat),B=Z.call(G,Array.prototype.splice),h=Z.call(D,String.prototype.replace),t=Z.call(D,String.prototype.slice),U0=Z.call(D,RegExp.prototype.exec),z0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q0=/\\(\\)?/g,s=function(J0){var V0=t(J0,0,1),A0=t(J0,-1);if(V0==="%"&&A0!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");else if(A0==="%"&&V0!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var $0=[];return h(J0,z0,function(c,n,H0,Y0){$0[$0.length]=H0?h(Y0,Q0,"$1"):n||c}),$0},e=function(J0,V0){var A0=J0,$0;if(T(q,A0))$0=q[A0],A0="%"+$0[0]+"%";if(T(F,A0)){var c=F[A0];if(c===H)c=j(A0);if(typeof c>"u"&&!V0)throw new E("intrinsic "+J0+" exists, but is not available. Please file an issue!");return{alias:$0,name:A0,value:c}}throw new S("intrinsic "+J0+" does not exist!")};J.exports=function(J0,V0){if(typeof J0!=="string"||J0.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V0!=="boolean")throw new E('"allowMissing" argument must be a boolean');if(U0(/^%?[^%]*%?$/,J0)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var A0=s(J0),$0=A0.length>0?A0[0]:"",c=e("%"+$0+"%",V0),n=c.name,H0=c.value,Y0=!1,D0=c.alias;if(D0)$0=D0[0],B(A0,w([0,1],D0));for(var N0=1,I0=!0;N0<A0.length;N0+=1){var K0=A0[N0],U$=t(K0,0,1),M0=t(K0,-1);if((U$==='"'||U$==="'"||U$==="`"||(M0==='"'||M0==="'"||M0==="`"))&&U$!==M0)throw new S("property names with quotes must have matching quotes");if(K0==="constructor"||!I0)Y0=!0;if($0+="."+K0,n="%"+$0+"%",T(F,n))H0=F[n];else if(H0!=null){if(!(K0 in H0)){if(!V0)throw new E("base intrinsic for "+J0+" exists, but the property is not available.");return}if(p&&N0+1>=A0.length){var v0=p(H0,K0);if(I0=!!v0,I0&&"get"in v0&&!("originalValue"in v0.get))H0=v0.get;else H0=H0[K0]}else I0=T(H0,K0),H0=H0[K0];if(I0&&!Y0)F[n]=H0}}return H0}}),Lj=u0((U,J)=>{var Q=Hj(),O=KF(),X=O([Q("%String.prototype.indexOf%")]);J.exports=function(z,V){var L=Q(z,!!V);if(typeof L==="function"&&X(z,".prototype.")>-1)return O([L]);return L}}),dy=u0((U,J)=>{var Q=Function.prototype.toString,O=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,X,z;if(typeof O==="function"&&typeof Object.defineProperty==="function")try{X=Object.defineProperty({},"length",{get:function(){throw z}}),z={},O(function(){throw 42},null,X)}catch(p){if(p!==z)O=null}else O=null;var V=/^\s*class\b/,L=function(p){try{var m=Q.call(p);return V.test(m)}catch(a){return!1}},S=function(p){try{if(L(p))return!1;return Q.call(p),!0}catch(m){return!1}},E=Object.prototype.toString,_="[object Object]",M="[object Function]",P="[object GeneratorFunction]",v="[object HTMLAllCollection]",N="[object HTML document.all class]",f="[object HTMLCollection]",x=typeof Symbol==="function"&&!!Symbol.toStringTag,b=!(0 in[,]),k=function(){return!1};if(typeof document==="object"){if(u=document.all,E.call(u)===E.call(document.all))k=function(p){if((b||!p)&&(typeof p>"u"||typeof p==="object"))try{var m=E.call(p);return(m===v||m===N||m===f||m===_)&&p("")==null}catch(a){}return!1}}var u;J.exports=O?function(p){if(k(p))return!0;if(!p)return!1;if(typeof p!=="function"&&typeof p!=="object")return!1;try{O(p,null,X)}catch(m){if(m!==z)return!1}return!L(p)&&S(p)}:function(p){if(k(p))return!0;if(!p)return!1;if(typeof p!=="function"&&typeof p!=="object")return!1;if(x)return S(p);if(L(p))return!1;var m=E.call(p);if(m!==M&&m!==P&&!/^\[object HTML/.test(m))return!1;return S(p)}}),ny=u0((U,J)=>{var Q=dy(),O=Object.prototype.toString,X=Object.prototype.hasOwnProperty,z=function(E,_,M){for(var P=0,v=E.length;P<v;P++)if(X.call(E,P))if(M==null)_(E[P],P,E);else _.call(M,E[P],P,E)},V=function(E,_,M){for(var P=0,v=E.length;P<v;P++)if(M==null)_(E.charAt(P),P,E);else _.call(M,E.charAt(P),P,E)},L=function(E,_,M){for(var P in E)if(X.call(E,P))if(M==null)_(E[P],P,E);else _.call(M,E[P],P,E)};function S(E){return O.call(E)==="[object Array]"}J.exports=function(E,_,M){if(!Q(_))throw TypeError("iterator must be a function");var P;if(arguments.length>=3)P=M;if(S(E))z(E,_,P);else if(typeof E==="string")V(E,_,P);else L(E,_,P)}}),oy=u0((U,J)=>{J.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),iy=u0((U,J)=>{var Q=oy(),O=typeof globalThis>"u"?globalThis:globalThis;J.exports=function(){var X=[];for(var z=0;z<Q.length;z++)if(typeof O[Q[z]]==="function")X[X.length]=Q[z];return X}}),ry=u0((U,J)=>{var Q=$z(),O=Oj(),X=P2(),z=E2();J.exports=function(V,L,S){if(!V||typeof V!=="object"&&typeof V!=="function")throw new X("`obj` must be an object or a function`");if(typeof L!=="string"&&typeof L!=="symbol")throw new X("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new X("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new X("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new X("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new X("`loose`, if provided, must be a boolean");var E=arguments.length>3?arguments[3]:null,_=arguments.length>4?arguments[4]:null,M=arguments.length>5?arguments[5]:null,P=arguments.length>6?arguments[6]:!1,v=!!z&&z(V,L);if(Q)Q(V,L,{configurable:M===null&&v?v.configurable:!M,enumerable:E===null&&v?v.enumerable:!E,value:S,writable:_===null&&v?v.writable:!_});else if(P||!E&&!_&&!M)V[L]=S;else throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),ty=u0((U,J)=>{var Q=$z(),O=function(){return!!Q};O.hasArrayLengthDefineBug=function(){if(!Q)return null;try{return Q([],"length",{value:1}).length!==1}catch(X){return!0}},J.exports=O}),ay=u0((U,J)=>{var Q=Hj(),O=ry(),X=ty()(),z=E2(),V=P2(),L=Q("%Math.floor%");J.exports=function(S,E){if(typeof S!=="function")throw new V("`fn` is not a function");if(typeof E!=="number"||E<0||E>4294967295||L(E)!==E)throw new V("`length` must be a positive 32-bit integer");var _=arguments.length>2&&!!arguments[2],M=!0,P=!0;if("length"in S&&z){var v=z(S,"length");if(v&&!v.configurable)M=!1;if(v&&!v.writable)P=!1}if(M||P||!_)if(X)O(S,"length",E,!0,!0);else O(S,"length",E);return S}}),sy=u0((U,J)=>{var Q=_2(),O=zF(),X=Wj();J.exports=function(){return X(Q,O,arguments)}}),ey=u0((U,J)=>{var Q=ay(),O=$z(),X=KF(),z=sy();if(J.exports=function(V){var L=X(arguments),S=V.length-(arguments.length-1);return Q(L,1+(S>0?S:0),!0)},O)O(J.exports,"apply",{value:z});else J.exports.apply=z}),$u=u0((U,J)=>{var Q=zj();J.exports=function(){return Q()&&!!Symbol.toStringTag}}),Uu=u0((U,J)=>{var Q=ny(),O=iy(),X=ey(),z=Lj(),V=E2(),L=Fj(),S=z("Object.prototype.toString"),E=$u()(),_=typeof globalThis>"u"?globalThis:globalThis,M=O(),P=z("String.prototype.slice"),v=z("Array.prototype.indexOf",!0)||function(b,k){for(var u=0;u<b.length;u+=1)if(b[u]===k)return u;return-1},N={__proto__:null};if(E&&V&&L)Q(M,function(b){var k=new _[b];if(Symbol.toStringTag in k&&L){var u=L(k),p=V(u,Symbol.toStringTag);if(!p&&u){var m=L(u);p=V(m,Symbol.toStringTag)}N["$"+b]=X(p.get)}});else Q(M,function(b){var k=new _[b],u=k.slice||k.set;if(u)N["$"+b]=X(u)});var f=function(b){var k=!1;return Q(N,function(u,p){if(!k)try{if("$"+u(b)===p)k=P(p,1)}catch(m){}}),k},x=function(b){var k=!1;return Q(N,function(u,p){if(!k)try{u(b),k=P(p,1)}catch(m){}}),k};J.exports=function(b){if(!b||typeof b!=="object")return!1;if(!E){var k=P(S(b),8,-1);if(v(M,k)>-1)return k;if(k!=="Object")return!1;return x(b)}if(!V)return null;return f(b)}}),Iu=u0((U,J)=>{var Q=Uu();J.exports=function(O){return!!Q(O)}}),Xu=u0((U,J)=>{var Q=P2(),O=Lj(),X=O("TypedArray.prototype.buffer",!0),z=Iu();J.exports=X||function(V){if(!z(V))throw new Q("Not a Typed Array");return V.buffer}}),Ju=u0((U,J)=>{var Q=b6().Buffer,O=Ey(),X=Xu(),z=ArrayBuffer.isView||function(E){try{return X(E),!0}catch(_){return!1}},V=typeof Uint8Array<"u",L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S=L&&(Q.prototype instanceof Uint8Array||Q.TYPED_ARRAY_SUPPORT);J.exports=function(E,_){if(Q.isBuffer(E)){if(E.constructor&&!("isBuffer"in E))return Q.from(E);return E}if(typeof E==="string")return Q.from(E,_);if(L&&z(E)){if(E.byteLength===0)return Q.alloc(0);if(S){var M=Q.from(E.buffer,E.byteOffset,E.byteLength);if(M.byteLength===E.byteLength)return M}var P=E instanceof Uint8Array?E:new Uint8Array(E.buffer,E.byteOffset,E.byteLength),v=Q.from(P);if(v.length===E.byteLength)return v}if(V&&E instanceof Uint8Array)return Q.from(E);var N=O(E);if(N)for(var f=0;f<E.length;f+=1){var x=E[f];if(typeof x!=="number"||x<0||x>255||~~x!==x)throw RangeError("Array items must be numbers in the range 0-255.")}if(N||Q.isBuffer(E)&&E.constructor&&typeof E.constructor.isBuffer==="function"&&E.constructor.isBuffer(E))return Q.from(E);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),DF=u0((U,J)=>{var Q=b6().Buffer,O=Ju(),X=typeof Uint8Array<"u",z=X&&typeof ArrayBuffer<"u",V=z&&ArrayBuffer.isView;J.exports=function(L,S,E){if(typeof L==="string"||Q.isBuffer(L)||X&&L instanceof Uint8Array||V&&V(L))return O(L,S);throw TypeError(E+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),Mj=u0((U,J)=>{var Q={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},O={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},X=Vj(),z=b6().Buffer,V=VF(),L=ZF(),S=DF();function E(_,M,P,v,N){V(P,v),_=S(_,L,"Password"),M=S(M,L,"Salt");var f=(N||"sha1").toLowerCase(),x=O[f]||f,b=Q[x];if(typeof b!=="number"||!b)throw TypeError("Digest algorithm not supported: "+N);var k=z.allocUnsafe(v),u=z.allocUnsafe(M.length+4);M.copy(u,0,0,M.length);var p=0,m=b,a=Math.ceil(v/m);for(var Z0=1;Z0<=a;Z0++){u.writeUInt32BE(Z0,M.length);var L0=X(x,_).update(u).digest(),C0=L0;for(var o=1;o<P;o++){C0=X(x,_).update(C0).digest();for(var q0=0;q0<m;q0++)L0[q0]^=C0[q0]}L0.copy(k,p),p+=m}return k}J.exports=E}),Qu=u0((U,J)=>{var Q=b6().Buffer,O=VF(),X=ZF(),z=Mj(),V=DF(),L,S=globalThis.crypto&&globalThis.crypto.subtle,E={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},_=[],M;function P(){if(M)return M;if(globalThis.process&&globalThis.process.nextTick)M=globalThis.process.nextTick;else if(globalThis.queueMicrotask)M=globalThis.queueMicrotask;else if(globalThis.setImmediate)M=globalThis.setImmediate;else M=globalThis.setTimeout;return M}function v(x,b,k,u,p){return S.importKey("raw",x,{name:"PBKDF2"},!1,["deriveBits"]).then(function(m){return S.deriveBits({name:"PBKDF2",salt:b,iterations:k,hash:{name:p}},m,u<<3)}).then(function(m){return Q.from(m)})}function N(x){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!S||!S.importKey||!S.deriveBits)return Promise.resolve(!1);if(_[x]!==void 0)return _[x];L=L||Q.alloc(8);var b=v(L,L,10,128,x).then(function(){return!0},function(){return!1});return _[x]=b,b}function f(x,b){x.then(function(k){P()(function(){b(null,k)})},function(k){P()(function(){b(k)})})}J.exports=function(x,b,k,u,p,m){if(typeof p==="function")m=p,p=void 0;if(O(k,u),x=V(x,X,"Password"),b=V(b,X,"Salt"),typeof m!=="function")throw Error("No callback provided to pbkdf2");p=p||"sha1";var a=E[p.toLowerCase()];if(!a||typeof globalThis.Promise!=="function"){P()(function(){var Z0;try{Z0=z(x,b,k,u,p)}catch(L0){m(L0);return}m(null,Z0)});return}f(N(a).then(function(Z0){if(Z0)return v(x,b,k,u,a);return z(x,b,k,u,p)}),m)}}),Aj=u0((U)=>{var J=(hU(),v$(q4)),Q=VF(),O=ZF(),X=DF();function z(L,S,E,_,M,P){if(Q(E,_),L=X(L,O,"Password"),S=X(S,O,"Salt"),typeof M==="function")P=M,M="sha1";if(typeof P!=="function")throw Error("No callback provided to pbkdf2");return J.pbkdf2(L,S,E,_,M,P)}function V(L,S,E,_,M){return Q(E,_),L=X(L,O,"Password"),S=X(S,O,"Salt"),M=M||"sha1",J.pbkdf2Sync(L,S,E,_,M)}if(!J.pbkdf2Sync||J.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)U.pbkdf2Sync=Mj(),U.pbkdf2=Qu();else U.pbkdf2Sync=V,U.pbkdf2=z}),Yu=u0((U)=>{var J=(hU(),v$(q4));U.createCipher=U.Cipher=J.createCipher,U.createCipheriv=U.Cipheriv=J.createCipheriv,U.createDecipher=U.Decipher=J.createDecipher,U.createDecipheriv=U.Decipheriv=J.createDecipheriv,U.listCiphers=U.getCiphers=J.getCiphers}),Gu=u0((U)=>{var J=(hU(),v$(q4));U.DiffieHellmanGroup=J.DiffieHellmanGroup,U.createDiffieHellmanGroup=J.createDiffieHellmanGroup,U.getDiffieHellman=J.getDiffieHellman,U.createDiffieHellman=J.createDiffieHellman,U.DiffieHellman=J.DiffieHellman}),Vu=u0((U)=>{var J=(hU(),v$(q4));U.createSign=J.createSign,U.Sign=J.Sign,U.createVerify=J.createVerify,U.Verify=J.Verify}),Zu=u0((U,J)=>{J.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),FI=u0((U,J)=>{(function(Q,O){function X(G,D){if(!G)throw Error(D||"Assertion failed")}function z(G,D){G.super_=D;var H=function(){};H.prototype=D.prototype,G.prototype=new H,G.prototype.constructor=G}function V(G,D,H){if(V.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(D==="le"||D==="be")H=D,D=10;this._init(G||0,D||10,H||"be")}}if(typeof Q==="object")Q.exports=V;else O.BN=V;V.BN=V,V.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(tU(),v$(rU)).Buffer}catch(G){}V.isBN=function(G){if(G instanceof V)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===V.wordSize&&Array.isArray(G.words)},V.max=function(G,D){if(G.cmp(D)>0)return G;return D},V.min=function(G,D){if(G.cmp(D)<0)return G;return D},V.prototype._init=function(G,D,H){if(typeof G==="number")return this._initNumber(G,D,H);if(typeof G==="object")return this._initArray(G,D,H);if(D==="hex")D=16;X(D===(D|0)&&D>=2&&D<=36),G=G.toString().replace(/\s+/g,"");var K=0;if(G[0]==="-")K++,this.negative=1;if(K<G.length){if(D===16)this._parseHex(G,K,H);else if(this._parseBase(G,D,K),H==="le")this._initArray(this.toArray(),D,H)}},V.prototype._initNumber=function(G,D,H){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(H!=="le")return;this._initArray(this.toArray(),D,H)},V.prototype._initArray=function(G,D,H){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F,C,j=0;if(H==="be"){for(K=G.length-1,F=0;K>=0;K-=3)if(C=G[K]|G[K-1]<<8|G[K-2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(H==="le"){for(K=0,F=0;K<G.length;K+=3)if(C=G[K]|G[K+1]<<8|G[K+2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function S(G,D){var H=G.charCodeAt(D);if(H>=65&&H<=70)return H-55;else if(H>=97&&H<=102)return H-87;else return H-48&15}function E(G,D,H){var K=S(G,H);if(H-1>=D)K|=S(G,H-1)<<4;return K}V.prototype._parseHex=function(G,D,H){this.length=Math.ceil((G.length-D)/6),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F=0,C=0,j;if(H==="be")for(K=G.length-1;K>=D;K-=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8;else{var q=G.length-D;for(K=q%2===0?D+1:D;K<G.length;K+=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8}this.strip()};function _(G,D,H,K){var F=0,C=Math.min(G.length,H);for(var j=D;j<C;j++){var q=G.charCodeAt(j)-48;if(F*=K,q>=49)F+=q-49+10;else if(q>=17)F+=q-17+10;else F+=q}return F}V.prototype._parseBase=function(G,D,H){this.words=[0],this.length=1;for(var K=0,F=1;F<=67108863;F*=D)K++;K--,F=F/D|0;var C=G.length-H,j=C%K,q=Math.min(C,C-j)+H,Z=0;for(var T=H;T<q;T+=K)if(Z=_(G,T,T+K,D),this.imuln(F),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(j!==0){var w=1;Z=_(G,T,G.length,D);for(T=0;T<j;T++)w*=D;if(this.imuln(w),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(G){G.words=Array(this.length);for(var D=0;D<this.length;D++)G.words[D]=this.words[D];G.length=this.length,G.negative=this.negative,G.red=this.red},V.prototype.clone=function(){var G=new V(null);return this.copy(G),G},V.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(G,D){G=G||10,D=D|0||1;var H;if(G===16||G==="hex"){H="";var K=0,F=0;for(var C=0;C<this.length;C++){var j=this.words[C],q=((j<<K|F)&16777215).toString(16);if(F=j>>>24-K&16777215,K+=2,K>=26)K-=26,C--;if(F!==0||C!==this.length-1)H=M[6-q.length]+q+H;else H=q+H}if(F!==0)H=F.toString(16)+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}if(G===(G|0)&&G>=2&&G<=36){var Z=P[G],T=v[G];H="";var w=this.clone();w.negative=0;while(!w.isZero()){var B=w.modn(T).toString(G);if(w=w.idivn(T),!w.isZero())H=M[Z-B.length]+B+H;else H=B+H}if(this.isZero())H="0"+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}X(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(G,D){return X(typeof L<"u"),this.toArrayLike(L,G,D)},V.prototype.toArray=function(G,D){return this.toArrayLike(Array,G,D)},V.prototype.toArrayLike=function(G,D,H){var K=this.byteLength(),F=H||Math.max(1,K);X(K<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var C=D==="le",j=new G(F),q,Z,T=this.clone();if(!C){for(Z=0;Z<F-K;Z++)j[Z]=0;for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[F-Z-1]=q}else{for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[Z]=q;for(;Z<F;Z++)j[Z]=0}return j},Math.clz32)V.prototype._countBits=function(G){return 32-Math.clz32(G)};else V.prototype._countBits=function(G){var D=G,H=0;if(D>=4096)H+=13,D>>>=13;if(D>=64)H+=7,D>>>=7;if(D>=8)H+=4,D>>>=4;if(D>=2)H+=2,D>>>=2;return H+D};V.prototype._zeroBits=function(G){if(G===0)return 26;var D=G,H=0;if((D&8191)===0)H+=13,D>>>=13;if((D&127)===0)H+=7,D>>>=7;if((D&15)===0)H+=4,D>>>=4;if((D&3)===0)H+=2,D>>>=2;if((D&1)===0)H++;return H},V.prototype.bitLength=function(){var G=this.words[this.length-1],D=this._countBits(G);return(this.length-1)*26+D};function N(G){var D=Array(G.bitLength());for(var H=0;H<D.length;H++){var K=H/26|0,F=H%26;D[H]=(G.words[K]&1<<F)>>>F}return D}V.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var D=0;D<this.length;D++){var H=this._zeroBits(this.words[D]);if(G+=H,H!==26)break}return G},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},V.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var D=0;D<G.length;D++)this.words[D]=this.words[D]|G.words[D];return this.strip()},V.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},V.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},V.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},V.prototype.iuand=function(G){var D;if(this.length>G.length)D=G;else D=this;for(var H=0;H<D.length;H++)this.words[H]=this.words[H]&G.words[H];return this.length=D.length,this.strip()},V.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},V.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},V.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},V.prototype.iuxor=function(G){var D,H;if(this.length>G.length)D=this,H=G;else D=G,H=this;for(var K=0;K<H.length;K++)this.words[K]=D.words[K]^H.words[K];if(this!==D)for(;K<D.length;K++)this.words[K]=D.words[K];return this.length=D.length,this.strip()},V.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},V.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},V.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},V.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var D=Math.ceil(G/26)|0,H=G%26;if(this._expand(D),H>0)D--;for(var K=0;K<D;K++)this.words[K]=~this.words[K]&67108863;if(H>0)this.words[K]=~this.words[K]&67108863>>26-H;return this.strip()},V.prototype.notn=function(G){return this.clone().inotn(G)},V.prototype.setn=function(G,D){X(typeof G==="number"&&G>=0);var H=G/26|0,K=G%26;if(this._expand(H+1),D)this.words[H]=this.words[H]|1<<K;else this.words[H]=this.words[H]&~(1<<K);return this.strip()},V.prototype.iadd=function(G){var D;if(this.negative!==0&&G.negative===0)return this.negative=0,D=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,D=this.isub(G),G.negative=1,D._normSign();var H,K;if(this.length>G.length)H=this,K=G;else H=G,K=this;var F=0;for(var C=0;C<K.length;C++)D=(H.words[C]|0)+(K.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;for(;F!==0&&C<H.length;C++)D=(H.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;if(this.length=H.length,F!==0)this.words[this.length]=F,this.length++;else if(H!==this)for(;C<H.length;C++)this.words[C]=H.words[C];return this},V.prototype.add=function(G){var D;if(G.negative!==0&&this.negative===0)return G.negative=0,D=this.sub(G),G.negative^=1,D;else if(G.negative===0&&this.negative!==0)return this.negative=0,D=G.sub(this),this.negative=1,D;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},V.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var D=this.iadd(G);return G.negative=1,D._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var H=this.cmp(G);if(H===0)return this.negative=0,this.length=1,this.words[0]=0,this;var K,F;if(H>0)K=this,F=G;else K=G,F=this;var C=0;for(var j=0;j<F.length;j++)D=(K.words[j]|0)-(F.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;for(;C!==0&&j<K.length;j++)D=(K.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;if(C===0&&j<K.length&&K!==this)for(;j<K.length;j++)this.words[j]=K.words[j];if(this.length=Math.max(this.length,j),K!==this)this.negative=1;return this.strip()},V.prototype.sub=function(G){return this.clone().isub(G)};function f(G,D,H){H.negative=D.negative^G.negative;var K=G.length+D.length|0;H.length=K,K=K-1|0;var F=G.words[0]|0,C=D.words[0]|0,j=F*C,q=j&67108863,Z=j/67108864|0;H.words[0]=q;for(var T=1;T<K;T++){var w=Z>>>26,B=Z&67108863,h=Math.min(T,D.length-1);for(var t=Math.max(0,T-G.length+1);t<=h;t++){var U0=T-t|0;F=G.words[U0]|0,C=D.words[t]|0,j=F*C+B,w+=j/67108864|0,B=j&67108863}H.words[T]=B|0,Z=w|0}if(Z!==0)H.words[T]=Z|0;else H.length--;return H.strip()}var x=function(G,D,H){var K=G.words,F=D.words,C=H.words,j=0,q,Z,T,w=K[0]|0,B=w&8191,h=w>>>13,t=K[1]|0,U0=t&8191,z0=t>>>13,Q0=K[2]|0,s=Q0&8191,e=Q0>>>13,J0=K[3]|0,V0=J0&8191,A0=J0>>>13,$0=K[4]|0,c=$0&8191,n=$0>>>13,H0=K[5]|0,Y0=H0&8191,D0=H0>>>13,N0=K[6]|0,I0=N0&8191,K0=N0>>>13,U$=K[7]|0,M0=U$&8191,v0=U$>>>13,L$=K[8]|0,p0=L$&8191,c0=L$>>>13,t$=K[9]|0,b0=t$&8191,h0=t$>>>13,VU=F[0]|0,r0=VU&8191,o0=VU>>>13,EU=F[1]|0,l=EU&8191,X0=EU>>>13,s0=F[2]|0,S0=s0&8191,B0=s0>>>13,F$=F[3]|0,g0=F$&8191,f0=F$>>>13,K$=F[4]|0,n0=K$&8191,i0=K$>>>13,WU=F[5]|0,a0=WU&8191,r=WU>>>13,G0=F[6]|0,E0=G0&8191,_0=G0>>>13,Z$=F[7]|0,d0=Z$&8191,t0=Z$>>>13,AU=F[8]|0,I$=AU&8191,$$=AU>>>13,IU=F[9]|0,X$=IU&8191,e0=IU>>>13;H.negative=G.negative^D.negative,H.length=19,q=Math.imul(B,r0),Z=Math.imul(B,o0),Z=Z+Math.imul(h,r0)|0,T=Math.imul(h,o0);var _U=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,q=Math.imul(U0,r0),Z=Math.imul(U0,o0),Z=Z+Math.imul(z0,r0)|0,T=Math.imul(z0,o0),q=q+Math.imul(B,l)|0,Z=Z+Math.imul(B,X0)|0,Z=Z+Math.imul(h,l)|0,T=T+Math.imul(h,X0)|0;var B$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(B$>>>26)|0,B$&=67108863,q=Math.imul(s,r0),Z=Math.imul(s,o0),Z=Z+Math.imul(e,r0)|0,T=Math.imul(e,o0),q=q+Math.imul(U0,l)|0,Z=Z+Math.imul(U0,X0)|0,Z=Z+Math.imul(z0,l)|0,T=T+Math.imul(z0,X0)|0,q=q+Math.imul(B,S0)|0,Z=Z+Math.imul(B,B0)|0,Z=Z+Math.imul(h,S0)|0,T=T+Math.imul(h,B0)|0;var j$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(j$>>>26)|0,j$&=67108863,q=Math.imul(V0,r0),Z=Math.imul(V0,o0),Z=Z+Math.imul(A0,r0)|0,T=Math.imul(A0,o0),q=q+Math.imul(s,l)|0,Z=Z+Math.imul(s,X0)|0,Z=Z+Math.imul(e,l)|0,T=T+Math.imul(e,X0)|0,q=q+Math.imul(U0,S0)|0,Z=Z+Math.imul(U0,B0)|0,Z=Z+Math.imul(z0,S0)|0,T=T+Math.imul(z0,B0)|0,q=q+Math.imul(B,g0)|0,Z=Z+Math.imul(B,f0)|0,Z=Z+Math.imul(h,g0)|0,T=T+Math.imul(h,f0)|0;var XU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,q=Math.imul(c,r0),Z=Math.imul(c,o0),Z=Z+Math.imul(n,r0)|0,T=Math.imul(n,o0),q=q+Math.imul(V0,l)|0,Z=Z+Math.imul(V0,X0)|0,Z=Z+Math.imul(A0,l)|0,T=T+Math.imul(A0,X0)|0,q=q+Math.imul(s,S0)|0,Z=Z+Math.imul(s,B0)|0,Z=Z+Math.imul(e,S0)|0,T=T+Math.imul(e,B0)|0,q=q+Math.imul(U0,g0)|0,Z=Z+Math.imul(U0,f0)|0,Z=Z+Math.imul(z0,g0)|0,T=T+Math.imul(z0,f0)|0,q=q+Math.imul(B,n0)|0,Z=Z+Math.imul(B,i0)|0,Z=Z+Math.imul(h,n0)|0,T=T+Math.imul(h,i0)|0;var o$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(o$>>>26)|0,o$&=67108863,q=Math.imul(Y0,r0),Z=Math.imul(Y0,o0),Z=Z+Math.imul(D0,r0)|0,T=Math.imul(D0,o0),q=q+Math.imul(c,l)|0,Z=Z+Math.imul(c,X0)|0,Z=Z+Math.imul(n,l)|0,T=T+Math.imul(n,X0)|0,q=q+Math.imul(V0,S0)|0,Z=Z+Math.imul(V0,B0)|0,Z=Z+Math.imul(A0,S0)|0,T=T+Math.imul(A0,B0)|0,q=q+Math.imul(s,g0)|0,Z=Z+Math.imul(s,f0)|0,Z=Z+Math.imul(e,g0)|0,T=T+Math.imul(e,f0)|0,q=q+Math.imul(U0,n0)|0,Z=Z+Math.imul(U0,i0)|0,Z=Z+Math.imul(z0,n0)|0,T=T+Math.imul(z0,i0)|0,q=q+Math.imul(B,a0)|0,Z=Z+Math.imul(B,r)|0,Z=Z+Math.imul(h,a0)|0,T=T+Math.imul(h,r)|0;var cU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(cU>>>26)|0,cU&=67108863,q=Math.imul(I0,r0),Z=Math.imul(I0,o0),Z=Z+Math.imul(K0,r0)|0,T=Math.imul(K0,o0),q=q+Math.imul(Y0,l)|0,Z=Z+Math.imul(Y0,X0)|0,Z=Z+Math.imul(D0,l)|0,T=T+Math.imul(D0,X0)|0,q=q+Math.imul(c,S0)|0,Z=Z+Math.imul(c,B0)|0,Z=Z+Math.imul(n,S0)|0,T=T+Math.imul(n,B0)|0,q=q+Math.imul(V0,g0)|0,Z=Z+Math.imul(V0,f0)|0,Z=Z+Math.imul(A0,g0)|0,T=T+Math.imul(A0,f0)|0,q=q+Math.imul(s,n0)|0,Z=Z+Math.imul(s,i0)|0,Z=Z+Math.imul(e,n0)|0,T=T+Math.imul(e,i0)|0,q=q+Math.imul(U0,a0)|0,Z=Z+Math.imul(U0,r)|0,Z=Z+Math.imul(z0,a0)|0,T=T+Math.imul(z0,r)|0,q=q+Math.imul(B,E0)|0,Z=Z+Math.imul(B,_0)|0,Z=Z+Math.imul(h,E0)|0,T=T+Math.imul(h,_0)|0;var pU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(pU>>>26)|0,pU&=67108863,q=Math.imul(M0,r0),Z=Math.imul(M0,o0),Z=Z+Math.imul(v0,r0)|0,T=Math.imul(v0,o0),q=q+Math.imul(I0,l)|0,Z=Z+Math.imul(I0,X0)|0,Z=Z+Math.imul(K0,l)|0,T=T+Math.imul(K0,X0)|0,q=q+Math.imul(Y0,S0)|0,Z=Z+Math.imul(Y0,B0)|0,Z=Z+Math.imul(D0,S0)|0,T=T+Math.imul(D0,B0)|0,q=q+Math.imul(c,g0)|0,Z=Z+Math.imul(c,f0)|0,Z=Z+Math.imul(n,g0)|0,T=T+Math.imul(n,f0)|0,q=q+Math.imul(V0,n0)|0,Z=Z+Math.imul(V0,i0)|0,Z=Z+Math.imul(A0,n0)|0,T=T+Math.imul(A0,i0)|0,q=q+Math.imul(s,a0)|0,Z=Z+Math.imul(s,r)|0,Z=Z+Math.imul(e,a0)|0,T=T+Math.imul(e,r)|0,q=q+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,_0)|0,Z=Z+Math.imul(z0,E0)|0,T=T+Math.imul(z0,_0)|0,q=q+Math.imul(B,d0)|0,Z=Z+Math.imul(B,t0)|0,Z=Z+Math.imul(h,d0)|0,T=T+Math.imul(h,t0)|0;var lU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(lU>>>26)|0,lU&=67108863,q=Math.imul(p0,r0),Z=Math.imul(p0,o0),Z=Z+Math.imul(c0,r0)|0,T=Math.imul(c0,o0),q=q+Math.imul(M0,l)|0,Z=Z+Math.imul(M0,X0)|0,Z=Z+Math.imul(v0,l)|0,T=T+Math.imul(v0,X0)|0,q=q+Math.imul(I0,S0)|0,Z=Z+Math.imul(I0,B0)|0,Z=Z+Math.imul(K0,S0)|0,T=T+Math.imul(K0,B0)|0,q=q+Math.imul(Y0,g0)|0,Z=Z+Math.imul(Y0,f0)|0,Z=Z+Math.imul(D0,g0)|0,T=T+Math.imul(D0,f0)|0,q=q+Math.imul(c,n0)|0,Z=Z+Math.imul(c,i0)|0,Z=Z+Math.imul(n,n0)|0,T=T+Math.imul(n,i0)|0,q=q+Math.imul(V0,a0)|0,Z=Z+Math.imul(V0,r)|0,Z=Z+Math.imul(A0,a0)|0,T=T+Math.imul(A0,r)|0,q=q+Math.imul(s,E0)|0,Z=Z+Math.imul(s,_0)|0,Z=Z+Math.imul(e,E0)|0,T=T+Math.imul(e,_0)|0,q=q+Math.imul(U0,d0)|0,Z=Z+Math.imul(U0,t0)|0,Z=Z+Math.imul(z0,d0)|0,T=T+Math.imul(z0,t0)|0,q=q+Math.imul(B,I$)|0,Z=Z+Math.imul(B,$$)|0,Z=Z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(mU>>>26)|0,mU&=67108863,q=Math.imul(b0,r0),Z=Math.imul(b0,o0),Z=Z+Math.imul(h0,r0)|0,T=Math.imul(h0,o0),q=q+Math.imul(p0,l)|0,Z=Z+Math.imul(p0,X0)|0,Z=Z+Math.imul(c0,l)|0,T=T+Math.imul(c0,X0)|0,q=q+Math.imul(M0,S0)|0,Z=Z+Math.imul(M0,B0)|0,Z=Z+Math.imul(v0,S0)|0,T=T+Math.imul(v0,B0)|0,q=q+Math.imul(I0,g0)|0,Z=Z+Math.imul(I0,f0)|0,Z=Z+Math.imul(K0,g0)|0,T=T+Math.imul(K0,f0)|0,q=q+Math.imul(Y0,n0)|0,Z=Z+Math.imul(Y0,i0)|0,Z=Z+Math.imul(D0,n0)|0,T=T+Math.imul(D0,i0)|0,q=q+Math.imul(c,a0)|0,Z=Z+Math.imul(c,r)|0,Z=Z+Math.imul(n,a0)|0,T=T+Math.imul(n,r)|0,q=q+Math.imul(V0,E0)|0,Z=Z+Math.imul(V0,_0)|0,Z=Z+Math.imul(A0,E0)|0,T=T+Math.imul(A0,_0)|0,q=q+Math.imul(s,d0)|0,Z=Z+Math.imul(s,t0)|0,Z=Z+Math.imul(e,d0)|0,T=T+Math.imul(e,t0)|0,q=q+Math.imul(U0,I$)|0,Z=Z+Math.imul(U0,$$)|0,Z=Z+Math.imul(z0,I$)|0,T=T+Math.imul(z0,$$)|0,q=q+Math.imul(B,X$)|0,Z=Z+Math.imul(B,e0)|0,Z=Z+Math.imul(h,X$)|0,T=T+Math.imul(h,e0)|0;var dU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(dU>>>26)|0,dU&=67108863,q=Math.imul(b0,l),Z=Math.imul(b0,X0),Z=Z+Math.imul(h0,l)|0,T=Math.imul(h0,X0),q=q+Math.imul(p0,S0)|0,Z=Z+Math.imul(p0,B0)|0,Z=Z+Math.imul(c0,S0)|0,T=T+Math.imul(c0,B0)|0,q=q+Math.imul(M0,g0)|0,Z=Z+Math.imul(M0,f0)|0,Z=Z+Math.imul(v0,g0)|0,T=T+Math.imul(v0,f0)|0,q=q+Math.imul(I0,n0)|0,Z=Z+Math.imul(I0,i0)|0,Z=Z+Math.imul(K0,n0)|0,T=T+Math.imul(K0,i0)|0,q=q+Math.imul(Y0,a0)|0,Z=Z+Math.imul(Y0,r)|0,Z=Z+Math.imul(D0,a0)|0,T=T+Math.imul(D0,r)|0,q=q+Math.imul(c,E0)|0,Z=Z+Math.imul(c,_0)|0,Z=Z+Math.imul(n,E0)|0,T=T+Math.imul(n,_0)|0,q=q+Math.imul(V0,d0)|0,Z=Z+Math.imul(V0,t0)|0,Z=Z+Math.imul(A0,d0)|0,T=T+Math.imul(A0,t0)|0,q=q+Math.imul(s,I$)|0,Z=Z+Math.imul(s,$$)|0,Z=Z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0,q=q+Math.imul(U0,X$)|0,Z=Z+Math.imul(U0,e0)|0,Z=Z+Math.imul(z0,X$)|0,T=T+Math.imul(z0,e0)|0;var a$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(a$>>>26)|0,a$&=67108863,q=Math.imul(b0,S0),Z=Math.imul(b0,B0),Z=Z+Math.imul(h0,S0)|0,T=Math.imul(h0,B0),q=q+Math.imul(p0,g0)|0,Z=Z+Math.imul(p0,f0)|0,Z=Z+Math.imul(c0,g0)|0,T=T+Math.imul(c0,f0)|0,q=q+Math.imul(M0,n0)|0,Z=Z+Math.imul(M0,i0)|0,Z=Z+Math.imul(v0,n0)|0,T=T+Math.imul(v0,i0)|0,q=q+Math.imul(I0,a0)|0,Z=Z+Math.imul(I0,r)|0,Z=Z+Math.imul(K0,a0)|0,T=T+Math.imul(K0,r)|0,q=q+Math.imul(Y0,E0)|0,Z=Z+Math.imul(Y0,_0)|0,Z=Z+Math.imul(D0,E0)|0,T=T+Math.imul(D0,_0)|0,q=q+Math.imul(c,d0)|0,Z=Z+Math.imul(c,t0)|0,Z=Z+Math.imul(n,d0)|0,T=T+Math.imul(n,t0)|0,q=q+Math.imul(V0,I$)|0,Z=Z+Math.imul(V0,$$)|0,Z=Z+Math.imul(A0,I$)|0,T=T+Math.imul(A0,$$)|0,q=q+Math.imul(s,X$)|0,Z=Z+Math.imul(s,e0)|0,Z=Z+Math.imul(e,X$)|0,T=T+Math.imul(e,e0)|0;var qU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,q=Math.imul(b0,g0),Z=Math.imul(b0,f0),Z=Z+Math.imul(h0,g0)|0,T=Math.imul(h0,f0),q=q+Math.imul(p0,n0)|0,Z=Z+Math.imul(p0,i0)|0,Z=Z+Math.imul(c0,n0)|0,T=T+Math.imul(c0,i0)|0,q=q+Math.imul(M0,a0)|0,Z=Z+Math.imul(M0,r)|0,Z=Z+Math.imul(v0,a0)|0,T=T+Math.imul(v0,r)|0,q=q+Math.imul(I0,E0)|0,Z=Z+Math.imul(I0,_0)|0,Z=Z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,_0)|0,q=q+Math.imul(Y0,d0)|0,Z=Z+Math.imul(Y0,t0)|0,Z=Z+Math.imul(D0,d0)|0,T=T+Math.imul(D0,t0)|0,q=q+Math.imul(c,I$)|0,Z=Z+Math.imul(c,$$)|0,Z=Z+Math.imul(n,I$)|0,T=T+Math.imul(n,$$)|0,q=q+Math.imul(V0,X$)|0,Z=Z+Math.imul(V0,e0)|0,Z=Z+Math.imul(A0,X$)|0,T=T+Math.imul(A0,e0)|0;var FU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,q=Math.imul(b0,n0),Z=Math.imul(b0,i0),Z=Z+Math.imul(h0,n0)|0,T=Math.imul(h0,i0),q=q+Math.imul(p0,a0)|0,Z=Z+Math.imul(p0,r)|0,Z=Z+Math.imul(c0,a0)|0,T=T+Math.imul(c0,r)|0,q=q+Math.imul(M0,E0)|0,Z=Z+Math.imul(M0,_0)|0,Z=Z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,_0)|0,q=q+Math.imul(I0,d0)|0,Z=Z+Math.imul(I0,t0)|0,Z=Z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,t0)|0,q=q+Math.imul(Y0,I$)|0,Z=Z+Math.imul(Y0,$$)|0,Z=Z+Math.imul(D0,I$)|0,T=T+Math.imul(D0,$$)|0,q=q+Math.imul(c,X$)|0,Z=Z+Math.imul(c,e0)|0,Z=Z+Math.imul(n,X$)|0,T=T+Math.imul(n,e0)|0;var nU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(nU>>>26)|0,nU&=67108863,q=Math.imul(b0,a0),Z=Math.imul(b0,r),Z=Z+Math.imul(h0,a0)|0,T=Math.imul(h0,r),q=q+Math.imul(p0,E0)|0,Z=Z+Math.imul(p0,_0)|0,Z=Z+Math.imul(c0,E0)|0,T=T+Math.imul(c0,_0)|0,q=q+Math.imul(M0,d0)|0,Z=Z+Math.imul(M0,t0)|0,Z=Z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,t0)|0,q=q+Math.imul(I0,I$)|0,Z=Z+Math.imul(I0,$$)|0,Z=Z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0,q=q+Math.imul(Y0,X$)|0,Z=Z+Math.imul(Y0,e0)|0,Z=Z+Math.imul(D0,X$)|0,T=T+Math.imul(D0,e0)|0;var SU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(SU>>>26)|0,SU&=67108863,q=Math.imul(b0,E0),Z=Math.imul(b0,_0),Z=Z+Math.imul(h0,E0)|0,T=Math.imul(h0,_0),q=q+Math.imul(p0,d0)|0,Z=Z+Math.imul(p0,t0)|0,Z=Z+Math.imul(c0,d0)|0,T=T+Math.imul(c0,t0)|0,q=q+Math.imul(M0,I$)|0,Z=Z+Math.imul(M0,$$)|0,Z=Z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0,q=q+Math.imul(I0,X$)|0,Z=Z+Math.imul(I0,e0)|0,Z=Z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,e0)|0;var gU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,q=Math.imul(b0,d0),Z=Math.imul(b0,t0),Z=Z+Math.imul(h0,d0)|0,T=Math.imul(h0,t0),q=q+Math.imul(p0,I$)|0,Z=Z+Math.imul(p0,$$)|0,Z=Z+Math.imul(c0,I$)|0,T=T+Math.imul(c0,$$)|0,q=q+Math.imul(M0,X$)|0,Z=Z+Math.imul(M0,e0)|0,Z=Z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,e0)|0;var fU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,q=Math.imul(b0,I$),Z=Math.imul(b0,$$),Z=Z+Math.imul(h0,I$)|0,T=Math.imul(h0,$$),q=q+Math.imul(p0,X$)|0,Z=Z+Math.imul(p0,e0)|0,Z=Z+Math.imul(c0,X$)|0,T=T+Math.imul(c0,e0)|0;var jU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,q=Math.imul(b0,X$),Z=Math.imul(b0,e0),Z=Z+Math.imul(h0,X$)|0,T=Math.imul(h0,e0);var TU=(j+q|0)+((Z&8191)<<13)|0;if(j=(T+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,C[0]=_U,C[1]=B$,C[2]=j$,C[3]=XU,C[4]=o$,C[5]=cU,C[6]=pU,C[7]=lU,C[8]=mU,C[9]=dU,C[10]=a$,C[11]=qU,C[12]=FU,C[13]=nU,C[14]=SU,C[15]=gU,C[16]=fU,C[17]=jU,C[18]=TU,j!==0)C[19]=j,H.length++;return H};if(!Math.imul)x=f;function b(G,D,H){H.negative=D.negative^G.negative,H.length=G.length+D.length;var K=0,F=0;for(var C=0;C<H.length-1;C++){var j=F;F=0;var q=K&67108863,Z=Math.min(C,D.length-1);for(var T=Math.max(0,C-G.length+1);T<=Z;T++){var w=C-T,B=G.words[w]|0,h=D.words[T]|0,t=B*h,U0=t&67108863;j=j+(t/67108864|0)|0,U0=U0+q|0,q=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}H.words[C]=q,K=j,j=F}if(K!==0)H.words[C]=K;else H.length--;return H.strip()}function k(G,D,H){var K=new u;return K.mulp(G,D,H)}V.prototype.mulTo=function(G,D){var H,K=this.length+G.length;if(this.length===10&&G.length===10)H=x(this,G,D);else if(K<63)H=f(this,G,D);else if(K<1024)H=b(this,G,D);else H=k(this,G,D);return H};function u(G,D){this.x=G,this.y=D}u.prototype.makeRBT=function(G){var D=Array(G),H=V.prototype._countBits(G)-1;for(var K=0;K<G;K++)D[K]=this.revBin(K,H,G);return D},u.prototype.revBin=function(G,D,H){if(G===0||G===H-1)return G;var K=0;for(var F=0;F<D;F++)K|=(G&1)<<D-F-1,G>>=1;return K},u.prototype.permute=function(G,D,H,K,F,C){for(var j=0;j<C;j++)K[j]=D[G[j]],F[j]=H[G[j]]},u.prototype.transform=function(G,D,H,K,F,C){this.permute(C,G,D,H,K,F);for(var j=1;j<F;j<<=1){var q=j<<1,Z=Math.cos(2*Math.PI/q),T=Math.sin(2*Math.PI/q);for(var w=0;w<F;w+=q){var B=Z,h=T;for(var t=0;t<j;t++){var U0=H[w+t],z0=K[w+t],Q0=H[w+t+j],s=K[w+t+j],e=B*Q0-h*s;if(s=B*s+h*Q0,Q0=e,H[w+t]=U0+Q0,K[w+t]=z0+s,H[w+t+j]=U0-Q0,K[w+t+j]=z0-s,t!==q)e=Z*B-T*h,h=Z*h+T*B,B=e}}}},u.prototype.guessLen13b=function(G,D){var H=Math.max(D,G)|1,K=H&1,F=0;for(H=H/2|0;H;H=H>>>1)F++;return 1<<F+1+K},u.prototype.conjugate=function(G,D,H){if(H<=1)return;for(var K=0;K<H/2;K++){var F=G[K];G[K]=G[H-K-1],G[H-K-1]=F,F=D[K],D[K]=-D[H-K-1],D[H-K-1]=-F}},u.prototype.normalize13b=function(G,D){var H=0;for(var K=0;K<D/2;K++){var F=Math.round(G[2*K+1]/D)*8192+Math.round(G[2*K]/D)+H;if(G[K]=F&67108863,F<67108864)H=0;else H=F/67108864|0}return G},u.prototype.convert13b=function(G,D,H,K){var F=0;for(var C=0;C<D;C++)F=F+(G[C]|0),H[2*C]=F&8191,F=F>>>13,H[2*C+1]=F&8191,F=F>>>13;for(C=2*D;C<K;++C)H[C]=0;X(F===0),X((F&-8192)===0)},u.prototype.stub=function(G){var D=Array(G);for(var H=0;H<G;H++)D[H]=0;return D},u.prototype.mulp=function(G,D,H){var K=2*this.guessLen13b(G.length,D.length),F=this.makeRBT(K),C=this.stub(K),j=Array(K),q=Array(K),Z=Array(K),T=Array(K),w=Array(K),B=Array(K),h=H.words;h.length=K,this.convert13b(G.words,G.length,j,K),this.convert13b(D.words,D.length,T,K),this.transform(j,C,q,Z,K,F),this.transform(T,C,w,B,K,F);for(var t=0;t<K;t++){var U0=q[t]*w[t]-Z[t]*B[t];Z[t]=q[t]*B[t]+Z[t]*w[t],q[t]=U0}return this.conjugate(q,Z,K),this.transform(q,Z,h,C,K,F),this.conjugate(h,C,K),this.normalize13b(h,K),H.negative=G.negative^D.negative,H.length=G.length+D.length,H.strip()},V.prototype.mul=function(G){var D=new V(null);return D.words=Array(this.length+G.length),this.mulTo(G,D)},V.prototype.mulf=function(G){var D=new V(null);return D.words=Array(this.length+G.length),k(this,G,D)},V.prototype.imul=function(G){return this.clone().mulTo(G,this)},V.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var D=0;for(var H=0;H<this.length;H++){var K=(this.words[H]|0)*G,F=(K&67108863)+(D&67108863);D>>=26,D+=K/67108864|0,D+=F>>>26,this.words[H]=F&67108863}if(D!==0)this.words[H]=D,this.length++;return this.length=G===0?1:this.length,this},V.prototype.muln=function(G){return this.clone().imuln(G)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(G){var D=N(G);if(D.length===0)return new V(1);var H=this;for(var K=0;K<D.length;K++,H=H.sqr())if(D[K]!==0)break;if(++K<D.length)for(var F=H.sqr();K<D.length;K++,F=F.sqr()){if(D[K]===0)continue;H=H.mul(F)}return H},V.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=67108863>>>26-D<<26-D,F;if(D!==0){var C=0;for(F=0;F<this.length;F++){var j=this.words[F]&K,q=(this.words[F]|0)-j<<D;this.words[F]=q|C,C=j>>>26-D}if(C)this.words[F]=C,this.length++}if(H!==0){for(F=this.length-1;F>=0;F--)this.words[F+H]=this.words[F];for(F=0;F<H;F++)this.words[F]=0;this.length+=H}return this.strip()},V.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},V.prototype.iushrn=function(G,D,H){X(typeof G==="number"&&G>=0);var K;if(D)K=(D-D%26)/26;else K=0;var F=G%26,C=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,q=H;if(K-=C,K=Math.max(0,K),q){for(var Z=0;Z<C;Z++)q.words[Z]=this.words[Z];q.length=C}if(C===0);else if(this.length>C){this.length-=C;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+C]}else this.words[0]=0,this.length=1;var T=0;for(Z=this.length-1;Z>=0&&(T!==0||Z>=K);Z--){var w=this.words[Z]|0;this.words[Z]=T<<26-F|w>>>F,T=w&j}if(q&&T!==0)q.words[q.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(G,D,H){return X(this.negative===0),this.iushrn(G,D,H)},V.prototype.shln=function(G){return this.clone().ishln(G)},V.prototype.ushln=function(G){return this.clone().iushln(G)},V.prototype.shrn=function(G){return this.clone().ishrn(G)},V.prototype.ushrn=function(G){return this.clone().iushrn(G)},V.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return!1;var F=this.words[H];return!!(F&K)},V.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=H)return this;if(D!==0)H++;if(this.length=Math.min(H,this.length),D!==0){var K=67108863^67108863>>>D<<D;this.words[this.length-1]&=K}return this.strip()},V.prototype.maskn=function(G){return this.clone().imaskn(G)},V.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},V.prototype._iaddn=function(G){this.words[0]+=G;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)if(this.words[D]-=67108864,D===this.length-1)this.words[D+1]=1;else this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},V.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},V.prototype.addn=function(G){return this.clone().iaddn(G)},V.prototype.subn=function(G){return this.clone().isubn(G)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(G,D,H){var K=G.length+H,F;this._expand(K);var C,j=0;for(F=0;F<G.length;F++){C=(this.words[F+H]|0)+j;var q=(G.words[F]|0)*D;C-=q&67108863,j=(C>>26)-(q/67108864|0),this.words[F+H]=C&67108863}for(;F<this.length-H;F++)C=(this.words[F+H]|0)+j,j=C>>26,this.words[F+H]=C&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)C=-(this.words[F]|0)+j,j=C>>26,this.words[F]=C&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(G,D){var H=this.length-G.length,K=this.clone(),F=G,C=F.words[F.length-1]|0,j=this._countBits(C);if(H=26-j,H!==0)F=F.ushln(H),K.iushln(H),C=F.words[F.length-1]|0;var q=K.length-F.length,Z;if(D!=="mod"){Z=new V(null),Z.length=q+1,Z.words=Array(Z.length);for(var T=0;T<Z.length;T++)Z.words[T]=0}var w=K.clone()._ishlnsubmul(F,1,q);if(w.negative===0){if(K=w,Z)Z.words[q]=1}for(var B=q-1;B>=0;B--){var h=(K.words[F.length+B]|0)*67108864+(K.words[F.length+B-1]|0);h=Math.min(h/C|0,67108863),K._ishlnsubmul(F,h,B);while(K.negative!==0)if(h--,K.negative=0,K._ishlnsubmul(F,1,B),!K.isZero())K.negative^=1;if(Z)Z.words[B]=h}if(Z)Z.strip();if(K.strip(),D!=="div"&&H!==0)K.iushrn(H);return{div:Z||null,mod:K}},V.prototype.divmod=function(G,D,H){if(X(!G.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var K,F,C;if(this.negative!==0&&G.negative===0){if(C=this.neg().divmod(G,D),D!=="mod")K=C.div.neg();if(D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.iadd(G)}return{div:K,mod:F}}if(this.negative===0&&G.negative!==0){if(C=this.divmod(G.neg(),D),D!=="mod")K=C.div.neg();return{div:K,mod:C.mod}}if((this.negative&G.negative)!==0){if(C=this.neg().divmod(G.neg(),D),D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.isub(G)}return{div:C.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new V(0),mod:this};if(G.length===1){if(D==="div")return{div:this.divn(G.words[0]),mod:null};if(D==="mod")return{div:null,mod:new V(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new V(this.modn(G.words[0]))}}return this._wordDiv(G,D)},V.prototype.div=function(G){return this.divmod(G,"div",!1).div},V.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},V.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},V.prototype.divRound=function(G){var D=this.divmod(G);if(D.mod.isZero())return D.div;var H=D.div.negative!==0?D.mod.isub(G):D.mod,K=G.ushrn(1),F=G.andln(1),C=H.cmp(K);if(C<0||F===1&&C===0)return D.div;return D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},V.prototype.modn=function(G){X(G<=67108863);var D=67108864%G,H=0;for(var K=this.length-1;K>=0;K--)H=(D*H+(this.words[K]|0))%G;return H},V.prototype.idivn=function(G){X(G<=67108863);var D=0;for(var H=this.length-1;H>=0;H--){var K=(this.words[H]|0)+D*67108864;this.words[H]=K/G|0,D=K%G}return this.strip()},V.prototype.divn=function(G){return this.clone().idivn(G)},V.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=new V(0),j=new V(1),q=0;while(D.isEven()&&H.isEven())D.iushrn(1),H.iushrn(1),++q;var Z=H.clone(),T=D.clone();while(!D.isZero()){for(var w=0,B=1;(D.words[0]&B)===0&&w<26;++w,B<<=1);if(w>0){D.iushrn(w);while(w-- >0){if(K.isOdd()||F.isOdd())K.iadd(Z),F.isub(T);K.iushrn(1),F.iushrn(1)}}for(var h=0,t=1;(H.words[0]&t)===0&&h<26;++h,t<<=1);if(h>0){H.iushrn(h);while(h-- >0){if(C.isOdd()||j.isOdd())C.iadd(Z),j.isub(T);C.iushrn(1),j.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(C),F.isub(j);else H.isub(D),C.isub(K),j.isub(F)}return{a:C,b:j,gcd:H.iushln(q)}},V.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=H.clone();while(D.cmpn(1)>0&&H.cmpn(1)>0){for(var j=0,q=1;(D.words[0]&q)===0&&j<26;++j,q<<=1);if(j>0){D.iushrn(j);while(j-- >0){if(K.isOdd())K.iadd(C);K.iushrn(1)}}for(var Z=0,T=1;(H.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0){H.iushrn(Z);while(Z-- >0){if(F.isOdd())F.iadd(C);F.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(F);else H.isub(D),F.isub(K)}var w;if(D.cmpn(1)===0)w=K;else w=F;if(w.cmpn(0)<0)w.iadd(G);return w},V.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var D=this.clone(),H=G.clone();D.negative=0,H.negative=0;for(var K=0;D.isEven()&&H.isEven();K++)D.iushrn(1),H.iushrn(1);do{while(D.isEven())D.iushrn(1);while(H.isEven())H.iushrn(1);var F=D.cmp(H);if(F<0){var C=D;D=H,H=C}else if(F===0||H.cmpn(1)===0)break;D.isub(H)}while(!0);return H.iushln(K)},V.prototype.invm=function(G){return this.egcd(G).a.umod(G)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(G){return this.words[0]&G},V.prototype.bincn=function(G){X(typeof G==="number");var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return this._expand(H+1),this.words[H]|=K,this;var F=K;for(var C=H;F!==0&&C<this.length;C++){var j=this.words[C]|0;j+=F,F=j>>>26,j&=67108863,this.words[C]=j}if(F!==0)this.words[C]=F,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(G){var D=G<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;this.strip();var H;if(this.length>1)H=1;else{if(D)G=-G;X(G<=67108863,"Number is too big");var K=this.words[0]|0;H=K===G?0:K<G?-1:1}if(this.negative!==0)return-H|0;return H},V.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var D=this.ucmp(G);if(this.negative!==0)return-D|0;return D},V.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var D=0;for(var H=this.length-1;H>=0;H--){var K=this.words[H]|0,F=G.words[H]|0;if(K===F)continue;if(K<F)D=-1;else if(K>F)D=1;break}return D},V.prototype.gtn=function(G){return this.cmpn(G)===1},V.prototype.gt=function(G){return this.cmp(G)===1},V.prototype.gten=function(G){return this.cmpn(G)>=0},V.prototype.gte=function(G){return this.cmp(G)>=0},V.prototype.ltn=function(G){return this.cmpn(G)===-1},V.prototype.lt=function(G){return this.cmp(G)===-1},V.prototype.lten=function(G){return this.cmpn(G)<=0},V.prototype.lte=function(G){return this.cmp(G)<=0},V.prototype.eqn=function(G){return this.cmpn(G)===0},V.prototype.eq=function(G){return this.cmp(G)===0},V.red=function(G){return new o(G)},V.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},V.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(G){return this.red=G,this},V.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},V.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},V.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},V.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},V.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},V.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},V.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},V.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},V.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function m(G,D){this.name=G,this.p=new V(D,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}m.prototype._tmp=function(){var G=new V(null);return G.words=Array(Math.ceil(this.n/13)),G},m.prototype.ireduce=function(G){var D=G,H;do this.split(D,this.tmp),D=this.imulK(D),D=D.iadd(this.tmp),H=D.bitLength();while(H>this.n);var K=H<this.n?-1:D.ucmp(this.p);if(K===0)D.words[0]=0,D.length=1;else if(K>0)D.isub(this.p);else if(D.strip!==void 0)D.strip();else D._strip();return D},m.prototype.split=function(G,D){G.iushrn(this.n,0,D)},m.prototype.imulK=function(G){return G.imul(this.k)};function a(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}z(a,m),a.prototype.split=function(G,D){var H=4194303,K=Math.min(G.length,9);for(var F=0;F<K;F++)D.words[F]=G.words[F];if(D.length=K,G.length<=9){G.words[0]=0,G.length=1;return}var C=G.words[9];D.words[D.length++]=C&H;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&H)<<4|C>>>22,C=j}if(C>>>=22,G.words[F-10]=C,C===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var D=0;for(var H=0;H<G.length;H++){var K=G.words[H]|0;D+=K*977,G.words[H]=D&67108863,D=K*64+(D/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function Z0(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}z(Z0,m);function L0(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}z(L0,m);function C0(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}z(C0,m),C0.prototype.imulK=function(G){var D=0;for(var H=0;H<G.length;H++){var K=(G.words[H]|0)*19+D,F=K&67108863;K>>>=26,G.words[H]=F,D=K}if(D!==0)G.words[G.length++]=D;return G},V._prime=function(G){if(p[G])return p[G];var D;if(G==="k256")D=new a;else if(G==="p224")D=new Z0;else if(G==="p192")D=new L0;else if(G==="p25519")D=new C0;else throw Error("Unknown prime "+G);return p[G]=D,D};function o(G){if(typeof G==="string"){var D=V._prime(G);this.m=D.p,this.prime=D}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}o.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},o.prototype._verify2=function(G,D){X((G.negative|D.negative)===0,"red works only with positives"),X(G.red&&G.red===D.red,"red works only with red numbers")},o.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},o.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},o.prototype.add=function(G,D){this._verify2(G,D);var H=G.add(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H._forceRed(this)},o.prototype.iadd=function(G,D){this._verify2(G,D);var H=G.iadd(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H},o.prototype.sub=function(G,D){this._verify2(G,D);var H=G.sub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H._forceRed(this)},o.prototype.isub=function(G,D){this._verify2(G,D);var H=G.isub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H},o.prototype.shl=function(G,D){return this._verify1(G),this.imod(G.ushln(D))},o.prototype.imul=function(G,D){return this._verify2(G,D),this.imod(G.imul(D))},o.prototype.mul=function(G,D){return this._verify2(G,D),this.imod(G.mul(D))},o.prototype.isqr=function(G){return this.imul(G,G.clone())},o.prototype.sqr=function(G){return this.mul(G,G)},o.prototype.sqrt=function(G){if(G.isZero())return G.clone();var D=this.m.andln(3);if(X(D%2===1),D===3){var H=this.m.add(new V(1)).iushrn(2);return this.pow(G,H)}var K=this.m.subn(1),F=0;while(!K.isZero()&&K.andln(1)===0)F++,K.iushrn(1);X(!K.isZero());var C=new V(1).toRed(this),j=C.redNeg(),q=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,q).cmp(j)!==0)Z.redIAdd(j);var T=this.pow(Z,K),w=this.pow(G,K.addn(1).iushrn(1)),B=this.pow(G,K),h=F;while(B.cmp(C)!==0){var t=B;for(var U0=0;t.cmp(C)!==0;U0++)t=t.redSqr();X(U0<h);var z0=this.pow(T,new V(1).iushln(h-U0-1));w=w.redMul(z0),T=z0.redSqr(),B=B.redMul(T),h=U0}return w},o.prototype.invm=function(G){var D=G._invmp(this.m);if(D.negative!==0)return D.negative=0,this.imod(D).redNeg();else return this.imod(D)},o.prototype.pow=function(G,D){if(D.isZero())return new V(1).toRed(this);if(D.cmpn(1)===0)return G.clone();var H=4,K=Array(1<<H);K[0]=new V(1).toRed(this),K[1]=G;for(var F=2;F<K.length;F++)K[F]=this.mul(K[F-1],G);var C=K[0],j=0,q=0,Z=D.bitLength()%26;if(Z===0)Z=26;for(F=D.length-1;F>=0;F--){var T=D.words[F];for(var w=Z-1;w>=0;w--){var B=T>>w&1;if(C!==K[0])C=this.sqr(C);if(B===0&&j===0){q=0;continue}if(j<<=1,j|=B,q++,q!==H&&(F!==0||w!==0))continue;C=this.mul(C,K[j]),q=0,j=0}Z=26}return C},o.prototype.convertTo=function(G){var D=G.umod(this.m);return D===G?D.clone():D},o.prototype.convertFrom=function(G){var D=G.clone();return D.red=null,D},V.mont=function(G){return new q0(G)};function q0(G){if(o.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z(q0,o),q0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},q0.prototype.convertFrom=function(G){var D=this.imod(G.mul(this.rinv));return D.red=null,D},q0.prototype.imul=function(G,D){if(G.isZero()||D.isZero())return G.words[0]=0,G.length=1,G;var H=G.imul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.mul=function(G,D){if(G.isZero()||D.isZero())return new V(0)._forceRed(this);var H=G.mul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.invm=function(G){var D=this.imod(G._invmp(this.m).mul(this.r2));return D._forceRed(this)}})(typeof J>"u"||J,U)}),DX=u0((U,J)=>{J.exports=Q;function Q(O,X){if(!O)throw Error(X||"Assertion failed")}Q.equal=function(O,X,z){if(O!=X)throw Error(z||"Assertion failed: "+O+" != "+X)}}),qj=u0((U)=>{var J=U;function Q(z,V){if(Array.isArray(z))return z.slice();if(!z)return[];var L=[];if(typeof z!=="string"){for(var S=0;S<z.length;S++)L[S]=z[S]|0;return L}if(V==="hex"){if(z=z.replace(/[^a-z0-9]+/ig,""),z.length%2!==0)z="0"+z;for(var S=0;S<z.length;S+=2)L.push(parseInt(z[S]+z[S+1],16))}else for(var S=0;S<z.length;S++){var E=z.charCodeAt(S),_=E>>8,M=E&255;if(_)L.push(_,M);else L.push(M)}return L}J.toArray=Q;function O(z){if(z.length===1)return"0"+z;else return z}J.zero2=O;function X(z){var V="";for(var L=0;L<z.length;L++)V+=O(z[L].toString(16));return V}J.toHex=X,J.encode=function(z,V){if(V==="hex")return X(z);else return z}}),b4=u0((U)=>{var J=U,Q=FI(),O=DX(),X=qj();J.assert=O,J.toArray=X.toArray,J.zero2=X.zero2,J.toHex=X.toHex,J.encode=X.encode;function z(_,M,P){var v=Array(Math.max(_.bitLength(),P)+1),N;for(N=0;N<v.length;N+=1)v[N]=0;var f=1<<M+1,x=_.clone();for(N=0;N<v.length;N++){var b,k=x.andln(f-1);if(x.isOdd()){if(k>(f>>1)-1)b=(f>>1)-k;else b=k;x.isubn(b)}else b=0;v[N]=b,x.iushrn(1)}return v}J.getNAF=z;function V(_,M){var P=[[],[]];_=_.clone(),M=M.clone();var v=0,N=0,f;while(_.cmpn(-v)>0||M.cmpn(-N)>0){var x=_.andln(3)+v&3,b=M.andln(3)+N&3;if(x===3)x=-1;if(b===3)b=-1;var k;if((x&1)===0)k=0;else if(f=_.andln(7)+v&7,(f===3||f===5)&&b===2)k=-x;else k=x;P[0].push(k);var u;if((b&1)===0)u=0;else if(f=M.andln(7)+N&7,(f===3||f===5)&&x===2)u=-b;else u=b;if(P[1].push(u),2*v===k+1)v=1-v;if(2*N===u+1)N=1-N;_.iushrn(1),M.iushrn(1)}return P}J.getJSF=V;function L(_,M,P){var v="_"+M;_.prototype[M]=function(){return this[v]!==void 0?this[v]:this[v]=P.call(this)}}J.cachedProperty=L;function S(_){return typeof _==="string"?J.toArray(_,"hex"):_}J.parseBytes=S;function E(_){return new Q(_,"hex","le")}J.intFromLE=E}),Tj=u0((U,J)=>{var Q;J.exports=function(z){if(!Q)Q=new O(null);return Q.generate(z)};function O(z){this.rand=z}if(J.exports.Rand=O,O.prototype.generate=function(z){return this._rand(z)},O.prototype._rand=function(z){if(this.rand.getBytes)return this.rand.getBytes(z);var V=new Uint8Array(z);for(var L=0;L<V.length;L++)V[L]=this.rand.getByte();return V},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)O.prototype._rand=function(z){var V=new Uint8Array(z);return self.crypto.getRandomValues(V),V};else if(self.msCrypto&&self.msCrypto.getRandomValues)O.prototype._rand=function(z){var V=new Uint8Array(z);return self.msCrypto.getRandomValues(V),V};else if(typeof window==="object")O.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(X=(hU(),v$(q4)),typeof X.randomBytes!=="function")throw Error("Not supported");O.prototype._rand=function(z){return X.randomBytes(z)}}catch(z){}var X}),Uz=u0((U,J)=>{var Q=FI(),O=b4(),X=O.getNAF,z=O.getJSF,V=O.assert;function L(E,_){this.type=E,this.p=new Q(_.p,16),this.red=_.prime?Q.red(_.prime):Q.mont(this.p),this.zero=new Q(0).toRed(this.red),this.one=new Q(1).toRed(this.red),this.two=new Q(2).toRed(this.red),this.n=_.n&&new Q(_.n,16),this.g=_.g&&this.pointFromJSON(_.g,_.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var M=this.n&&this.p.div(this.n);if(!M||M.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}J.exports=L,L.prototype.point=function(){throw Error("Not implemented")},L.prototype.validate=function(){throw Error("Not implemented")},L.prototype._fixedNafMul=function(E,_){V(E.precomputed);var M=E._getDoubles(),P=X(_,1,this._bitLength),v=(1<<M.step+1)-(M.step%2===0?2:1);v/=3;var N=[],f,x;for(f=0;f<P.length;f+=M.step){x=0;for(var b=f+M.step-1;b>=f;b--)x=(x<<1)+P[b];N.push(x)}var k=this.jpoint(null,null,null),u=this.jpoint(null,null,null);for(var p=v;p>0;p--){for(f=0;f<N.length;f++)if(x=N[f],x===p)u=u.mixedAdd(M.points[f]);else if(x===-p)u=u.mixedAdd(M.points[f].neg());k=k.add(u)}return k.toP()},L.prototype._wnafMul=function(E,_){var M=4,P=E._getNAFPoints(M);M=P.wnd;var v=P.points,N=X(_,M,this._bitLength),f=this.jpoint(null,null,null);for(var x=N.length-1;x>=0;x--){for(var b=0;x>=0&&N[x]===0;x--)b++;if(x>=0)b++;if(f=f.dblp(b),x<0)break;var k=N[x];if(V(k!==0),E.type==="affine")if(k>0)f=f.mixedAdd(v[k-1>>1]);else f=f.mixedAdd(v[-k-1>>1].neg());else if(k>0)f=f.add(v[k-1>>1]);else f=f.add(v[-k-1>>1].neg())}return E.type==="affine"?f.toP():f},L.prototype._wnafMulAdd=function(E,_,M,P,v){var N=this._wnafT1,f=this._wnafT2,x=this._wnafT3,b=0,k,u,p;for(k=0;k<P;k++){p=_[k];var m=p._getNAFPoints(E);N[k]=m.wnd,f[k]=m.points}for(k=P-1;k>=1;k-=2){var a=k-1,Z0=k;if(N[a]!==1||N[Z0]!==1){x[a]=X(M[a],N[a],this._bitLength),x[Z0]=X(M[Z0],N[Z0],this._bitLength),b=Math.max(x[a].length,b),b=Math.max(x[Z0].length,b);continue}var L0=[_[a],null,null,_[Z0]];if(_[a].y.cmp(_[Z0].y)===0)L0[1]=_[a].add(_[Z0]),L0[2]=_[a].toJ().mixedAdd(_[Z0].neg());else if(_[a].y.cmp(_[Z0].y.redNeg())===0)L0[1]=_[a].toJ().mixedAdd(_[Z0]),L0[2]=_[a].add(_[Z0].neg());else L0[1]=_[a].toJ().mixedAdd(_[Z0]),L0[2]=_[a].toJ().mixedAdd(_[Z0].neg());var C0=[-3,-1,-5,-7,0,7,5,1,3],o=z(M[a],M[Z0]);b=Math.max(o[0].length,b),x[a]=Array(b),x[Z0]=Array(b);for(u=0;u<b;u++){var q0=o[0][u]|0,G=o[1][u]|0;x[a][u]=C0[(q0+1)*3+(G+1)],x[Z0][u]=0,f[a]=L0}}var D=this.jpoint(null,null,null),H=this._wnafT4;for(k=b;k>=0;k--){var K=0;while(k>=0){var F=!0;for(u=0;u<P;u++)if(H[u]=x[u][k]|0,H[u]!==0)F=!1;if(!F)break;K++,k--}if(k>=0)K++;if(D=D.dblp(K),k<0)break;for(u=0;u<P;u++){var C=H[u];if(C===0)continue;else if(C>0)p=f[u][C-1>>1];else if(C<0)p=f[u][-C-1>>1].neg();if(p.type==="affine")D=D.mixedAdd(p);else D=D.add(p)}}for(k=0;k<P;k++)f[k]=null;if(v)return D;else return D.toP()};function S(E,_){this.curve=E,this.type=_,this.precomputed=null}L.BasePoint=S,S.prototype.eq=function(){throw Error("Not implemented")},S.prototype.validate=function(){return this.curve.validate(this)},L.prototype.decodePoint=function(E,_){E=O.toArray(E,_);var M=this.p.byteLength();if((E[0]===4||E[0]===6||E[0]===7)&&E.length-1===2*M){if(E[0]===6)V(E[E.length-1]%2===0);else if(E[0]===7)V(E[E.length-1]%2===1);var P=this.point(E.slice(1,1+M),E.slice(1+M,1+2*M));return P}else if((E[0]===2||E[0]===3)&&E.length-1===M)return this.pointFromX(E.slice(1,1+M),E[0]===3);throw Error("Unknown point format")},S.prototype.encodeCompressed=function(E){return this.encode(E,!0)},S.prototype._encode=function(E){var _=this.curve.p.byteLength(),M=this.getX().toArray("be",_);if(E)return[this.getY().isEven()?2:3].concat(M);return[4].concat(M,this.getY().toArray("be",_))},S.prototype.encode=function(E,_){return O.encode(this._encode(_),E)},S.prototype.precompute=function(E){if(this.precomputed)return this;var _={doubles:null,naf:null,beta:null};return _.naf=this._getNAFPoints(8),_.doubles=this._getDoubles(4,E),_.beta=this._getBeta(),this.precomputed=_,this},S.prototype._hasDoubles=function(E){if(!this.precomputed)return!1;var _=this.precomputed.doubles;if(!_)return!1;return _.points.length>=Math.ceil((E.bitLength()+1)/_.step)},S.prototype._getDoubles=function(E,_){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var M=[this],P=this;for(var v=0;v<_;v+=E){for(var N=0;N<E;N++)P=P.dbl();M.push(P)}return{step:E,points:M}},S.prototype._getNAFPoints=function(E){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var _=[this],M=(1<<E)-1,P=M===1?null:this.dbl();for(var v=1;v<M;v++)_[v]=_[v-1].add(P);return{wnd:E,points:_}},S.prototype._getBeta=function(){return null},S.prototype.dblp=function(E){var _=this;for(var M=0;M<E;M++)_=_.dbl();return _}}),Ou=u0((U,J)=>{if(typeof Object.create==="function")J.exports=function(Q,O){if(O)Q.super_=O,Q.prototype=Object.create(O.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})};else J.exports=function(Q,O){if(O){Q.super_=O;var X=function(){};X.prototype=O.prototype,Q.prototype=new X,Q.prototype.constructor=Q}}}),A4=u0((U,J)=>{try{if(Q=(cQ(),v$(hQ)),typeof Q.inherits!=="function")throw"";J.exports=Q.inherits}catch(O){J.exports=Ou()}var Q}),zu=u0((U,J)=>{var Q=b4(),O=FI(),X=A4(),z=Uz(),V=Q.assert;function L(_){z.call(this,"short",_),this.a=new O(_.a,16).toRed(this.red),this.b=new O(_.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(_),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}X(L,z),J.exports=L,L.prototype._getEndomorphism=function(_){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var M,P;if(_.beta)M=new O(_.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);M=v[0].cmp(v[1])<0?v[0]:v[1],M=M.toRed(this.red)}if(_.lambda)P=new O(_.lambda,16);else{var N=this._getEndoRoots(this.n);if(this.g.mul(N[0]).x.cmp(this.g.x.redMul(M))===0)P=N[0];else P=N[1],V(this.g.mul(P).x.cmp(this.g.x.redMul(M))===0)}var f;if(_.basis)f=_.basis.map(function(x){return{a:new O(x.a,16),b:new O(x.b,16)}});else f=this._getEndoBasis(P);return{beta:M,lambda:P,basis:f}},L.prototype._getEndoRoots=function(_){var M=_===this.p?this.red:O.mont(_),P=new O(2).toRed(M).redInvm(),v=P.redNeg(),N=new O(3).toRed(M).redNeg().redSqrt().redMul(P),f=v.redAdd(N).fromRed(),x=v.redSub(N).fromRed();return[f,x]},L.prototype._getEndoBasis=function(_){var M=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=_,v=this.n.clone(),N=new O(1),f=new O(0),x=new O(0),b=new O(1),k,u,p,m,a,Z0,L0,C0=0,o,q0;while(P.cmpn(0)!==0){var G=v.div(P);o=v.sub(G.mul(P)),q0=x.sub(G.mul(N));var D=b.sub(G.mul(f));if(!p&&o.cmp(M)<0)k=L0.neg(),u=N,p=o.neg(),m=q0;else if(p&&++C0===2)break;L0=o,v=P,P=o,x=N,N=q0,b=f,f=D}a=o.neg(),Z0=q0;var H=p.sqr().add(m.sqr()),K=a.sqr().add(Z0.sqr());if(K.cmp(H)>=0)a=k,Z0=u;if(p.negative)p=p.neg(),m=m.neg();if(a.negative)a=a.neg(),Z0=Z0.neg();return[{a:p,b:m},{a,b:Z0}]},L.prototype._endoSplit=function(_){var M=this.endo.basis,P=M[0],v=M[1],N=v.b.mul(_).divRound(this.n),f=P.b.neg().mul(_).divRound(this.n),x=N.mul(P.a),b=f.mul(v.a),k=N.mul(P.b),u=f.mul(v.b),p=_.sub(x).sub(b),m=k.add(u).neg();return{k1:p,k2:m}},L.prototype.pointFromX=function(_,M){if(_=new O(_,16),!_.red)_=_.toRed(this.red);var P=_.redSqr().redMul(_).redIAdd(_.redMul(this.a)).redIAdd(this.b),v=P.redSqrt();if(v.redSqr().redSub(P).cmp(this.zero)!==0)throw Error("invalid point");var N=v.fromRed().isOdd();if(M&&!N||!M&&N)v=v.redNeg();return this.point(_,v)},L.prototype.validate=function(_){if(_.inf)return!0;var{x:M,y:P}=_,v=this.a.redMul(M),N=M.redSqr().redMul(M).redIAdd(v).redIAdd(this.b);return P.redSqr().redISub(N).cmpn(0)===0},L.prototype._endoWnafMulAdd=function(_,M,P){var v=this._endoWnafT1,N=this._endoWnafT2;for(var f=0;f<_.length;f++){var x=this._endoSplit(M[f]),b=_[f],k=b._getBeta();if(x.k1.negative)x.k1.ineg(),b=b.neg(!0);if(x.k2.negative)x.k2.ineg(),k=k.neg(!0);v[f*2]=b,v[f*2+1]=k,N[f*2]=x.k1,N[f*2+1]=x.k2}var u=this._wnafMulAdd(1,v,N,f*2,P);for(var p=0;p<f*2;p++)v[p]=null,N[p]=null;return u};function S(_,M,P,v){if(z.BasePoint.call(this,_,"affine"),M===null&&P===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new O(M,16),this.y=new O(P,16),v)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}X(S,z.BasePoint),L.prototype.point=function(_,M,P){return new S(this,_,M,P)},L.prototype.pointFromJSON=function(_,M){return S.fromJSON(this,_,M)},S.prototype._getBeta=function(){if(!this.curve.endo)return;var _=this.precomputed;if(_&&_.beta)return _.beta;var M=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(_){var P=this.curve,v=function(N){return P.point(N.x.redMul(P.endo.beta),N.y)};_.beta=M,M.precomputed={beta:null,naf:_.naf&&{wnd:_.naf.wnd,points:_.naf.points.map(v)},doubles:_.doubles&&{step:_.doubles.step,points:_.doubles.points.map(v)}}}return M},S.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]},S.fromJSON=function(_,M,P){if(typeof M==="string")M=JSON.parse(M);var v=_.point(M[0],M[1],P);if(!M[2])return v;function N(x){return _.point(x[0],x[1],P)}var f=M[2];return v.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[v].concat(f.doubles.points.map(N))},naf:f.naf&&{wnd:f.naf.wnd,points:[v].concat(f.naf.points.map(N))}},v},S.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},S.prototype.isInfinity=function(){return this.inf},S.prototype.add=function(_){if(this.inf)return _;if(_.inf)return this;if(this.eq(_))return this.dbl();if(this.neg().eq(_))return this.curve.point(null,null);if(this.x.cmp(_.x)===0)return this.curve.point(null,null);var M=this.y.redSub(_.y);if(M.cmpn(0)!==0)M=M.redMul(this.x.redSub(_.x).redInvm());var P=M.redSqr().redISub(this.x).redISub(_.x),v=M.redMul(this.x.redSub(P)).redISub(this.y);return this.curve.point(P,v)},S.prototype.dbl=function(){if(this.inf)return this;var _=this.y.redAdd(this.y);if(_.cmpn(0)===0)return this.curve.point(null,null);var M=this.curve.a,P=this.x.redSqr(),v=_.redInvm(),N=P.redAdd(P).redIAdd(P).redIAdd(M).redMul(v),f=N.redSqr().redISub(this.x.redAdd(this.x)),x=N.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,x)},S.prototype.getX=function(){return this.x.fromRed()},S.prototype.getY=function(){return this.y.fromRed()},S.prototype.mul=function(_){if(_=new O(_,16),this.isInfinity())return this;else if(this._hasDoubles(_))return this.curve._fixedNafMul(this,_);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[_]);else return this.curve._wnafMul(this,_)},S.prototype.mulAdd=function(_,M,P){var v=[this,M],N=[_,P];if(this.curve.endo)return this.curve._endoWnafMulAdd(v,N);else return this.curve._wnafMulAdd(1,v,N,2)},S.prototype.jmulAdd=function(_,M,P){var v=[this,M],N=[_,P];if(this.curve.endo)return this.curve._endoWnafMulAdd(v,N,!0);else return this.curve._wnafMulAdd(1,v,N,2,!0)},S.prototype.eq=function(_){return this===_||this.inf===_.inf&&(this.inf||this.x.cmp(_.x)===0&&this.y.cmp(_.y)===0)},S.prototype.neg=function(_){if(this.inf)return this;var M=this.curve.point(this.x,this.y.redNeg());if(_&&this.precomputed){var P=this.precomputed,v=function(N){return N.neg()};M.precomputed={naf:P.naf&&{wnd:P.naf.wnd,points:P.naf.points.map(v)},doubles:P.doubles&&{step:P.doubles.step,points:P.doubles.points.map(v)}}}return M},S.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var _=this.curve.jpoint(this.x,this.y,this.curve.one);return _};function E(_,M,P,v){if(z.BasePoint.call(this,_,"jacobian"),M===null&&P===null&&v===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new O(0);else this.x=new O(M,16),this.y=new O(P,16),this.z=new O(v,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}X(E,z.BasePoint),L.prototype.jpoint=function(_,M,P){return new E(this,_,M,P)},E.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var _=this.z.redInvm(),M=_.redSqr(),P=this.x.redMul(M),v=this.y.redMul(M).redMul(_);return this.curve.point(P,v)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;var M=_.z.redSqr(),P=this.z.redSqr(),v=this.x.redMul(M),N=_.x.redMul(P),f=this.y.redMul(M.redMul(_.z)),x=_.y.redMul(P.redMul(this.z)),b=v.redSub(N),k=f.redSub(x);if(b.cmpn(0)===0)if(k.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var u=b.redSqr(),p=u.redMul(b),m=v.redMul(u),a=k.redSqr().redIAdd(p).redISub(m).redISub(m),Z0=k.redMul(m.redISub(a)).redISub(f.redMul(p)),L0=this.z.redMul(_.z).redMul(b);return this.curve.jpoint(a,Z0,L0)},E.prototype.mixedAdd=function(_){if(this.isInfinity())return _.toJ();if(_.isInfinity())return this;var M=this.z.redSqr(),P=this.x,v=_.x.redMul(M),N=this.y,f=_.y.redMul(M).redMul(this.z),x=P.redSub(v),b=N.redSub(f);if(x.cmpn(0)===0)if(b.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var k=x.redSqr(),u=k.redMul(x),p=P.redMul(k),m=b.redSqr().redIAdd(u).redISub(p).redISub(p),a=b.redMul(p.redISub(m)).redISub(N.redMul(u)),Z0=this.z.redMul(x);return this.curve.jpoint(m,a,Z0)},E.prototype.dblp=function(_){if(_===0)return this;if(this.isInfinity())return this;if(!_)return this.dbl();var M;if(this.curve.zeroA||this.curve.threeA){var P=this;for(M=0;M<_;M++)P=P.dbl();return P}var v=this.curve.a,N=this.curve.tinv,f=this.x,x=this.y,b=this.z,k=b.redSqr().redSqr(),u=x.redAdd(x);for(M=0;M<_;M++){var p=f.redSqr(),m=u.redSqr(),a=m.redSqr(),Z0=p.redAdd(p).redIAdd(p).redIAdd(v.redMul(k)),L0=f.redMul(m),C0=Z0.redSqr().redISub(L0.redAdd(L0)),o=L0.redISub(C0),q0=Z0.redMul(o);q0=q0.redIAdd(q0).redISub(a);var G=u.redMul(b);if(M+1<_)k=k.redMul(a);f=C0,b=G,u=q0}return this.curve.jpoint(f,u.redMul(N),b)},E.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},E.prototype._zeroDbl=function(){var _,M,P;if(this.zOne){var v=this.x.redSqr(),N=this.y.redSqr(),f=N.redSqr(),x=this.x.redAdd(N).redSqr().redISub(v).redISub(f);x=x.redIAdd(x);var b=v.redAdd(v).redIAdd(v),k=b.redSqr().redISub(x).redISub(x),u=f.redIAdd(f);u=u.redIAdd(u),u=u.redIAdd(u),_=k,M=b.redMul(x.redISub(k)).redISub(u),P=this.y.redAdd(this.y)}else{var p=this.x.redSqr(),m=this.y.redSqr(),a=m.redSqr(),Z0=this.x.redAdd(m).redSqr().redISub(p).redISub(a);Z0=Z0.redIAdd(Z0);var L0=p.redAdd(p).redIAdd(p),C0=L0.redSqr(),o=a.redIAdd(a);o=o.redIAdd(o),o=o.redIAdd(o),_=C0.redISub(Z0).redISub(Z0),M=L0.redMul(Z0.redISub(_)).redISub(o),P=this.y.redMul(this.z),P=P.redIAdd(P)}return this.curve.jpoint(_,M,P)},E.prototype._threeDbl=function(){var _,M,P;if(this.zOne){var v=this.x.redSqr(),N=this.y.redSqr(),f=N.redSqr(),x=this.x.redAdd(N).redSqr().redISub(v).redISub(f);x=x.redIAdd(x);var b=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),k=b.redSqr().redISub(x).redISub(x);_=k;var u=f.redIAdd(f);u=u.redIAdd(u),u=u.redIAdd(u),M=b.redMul(x.redISub(k)).redISub(u),P=this.y.redAdd(this.y)}else{var p=this.z.redSqr(),m=this.y.redSqr(),a=this.x.redMul(m),Z0=this.x.redSub(p).redMul(this.x.redAdd(p));Z0=Z0.redAdd(Z0).redIAdd(Z0);var L0=a.redIAdd(a);L0=L0.redIAdd(L0);var C0=L0.redAdd(L0);_=Z0.redSqr().redISub(C0),P=this.y.redAdd(this.z).redSqr().redISub(m).redISub(p);var o=m.redSqr();o=o.redIAdd(o),o=o.redIAdd(o),o=o.redIAdd(o),M=Z0.redMul(L0.redISub(_)).redISub(o)}return this.curve.jpoint(_,M,P)},E.prototype._dbl=function(){var _=this.curve.a,M=this.x,P=this.y,v=this.z,N=v.redSqr().redSqr(),f=M.redSqr(),x=P.redSqr(),b=f.redAdd(f).redIAdd(f).redIAdd(_.redMul(N)),k=M.redAdd(M);k=k.redIAdd(k);var u=k.redMul(x),p=b.redSqr().redISub(u.redAdd(u)),m=u.redISub(p),a=x.redSqr();a=a.redIAdd(a),a=a.redIAdd(a),a=a.redIAdd(a);var Z0=b.redMul(m).redISub(a),L0=P.redAdd(P).redMul(v);return this.curve.jpoint(p,Z0,L0)},E.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var _=this.x.redSqr(),M=this.y.redSqr(),P=this.z.redSqr(),v=M.redSqr(),N=_.redAdd(_).redIAdd(_),f=N.redSqr(),x=this.x.redAdd(M).redSqr().redISub(_).redISub(v);x=x.redIAdd(x),x=x.redAdd(x).redIAdd(x),x=x.redISub(f);var b=x.redSqr(),k=v.redIAdd(v);k=k.redIAdd(k),k=k.redIAdd(k),k=k.redIAdd(k);var u=N.redIAdd(x).redSqr().redISub(f).redISub(b).redISub(k),p=M.redMul(u);p=p.redIAdd(p),p=p.redIAdd(p);var m=this.x.redMul(b).redISub(p);m=m.redIAdd(m),m=m.redIAdd(m);var a=this.y.redMul(u.redMul(k.redISub(u)).redISub(x.redMul(b)));a=a.redIAdd(a),a=a.redIAdd(a),a=a.redIAdd(a);var Z0=this.z.redAdd(x).redSqr().redISub(P).redISub(b);return this.curve.jpoint(m,a,Z0)},E.prototype.mul=function(_,M){return _=new O(_,M),this.curve._wnafMul(this,_)},E.prototype.eq=function(_){if(_.type==="affine")return this.eq(_.toJ());if(this===_)return!0;var M=this.z.redSqr(),P=_.z.redSqr();if(this.x.redMul(P).redISub(_.x.redMul(M)).cmpn(0)!==0)return!1;var v=M.redMul(this.z),N=P.redMul(_.z);return this.y.redMul(N).redISub(_.y.redMul(v)).cmpn(0)===0},E.prototype.eqXToP=function(_){var M=this.z.redSqr(),P=_.toRed(this.curve.red).redMul(M);if(this.x.cmp(P)===0)return!0;var v=_.clone(),N=this.curve.redN.redMul(M);for(;;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(P.redIAdd(N),this.x.cmp(P)===0)return!0}},E.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},E.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Ku=u0((U,J)=>{var Q=FI(),O=A4(),X=Uz(),z=b4();function V(S){X.call(this,"mont",S),this.a=new Q(S.a,16).toRed(this.red),this.b=new Q(S.b,16).toRed(this.red),this.i4=new Q(4).toRed(this.red).redInvm(),this.two=new Q(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}O(V,X),J.exports=V,V.prototype.validate=function(S){var E=S.normalize().x,_=E.redSqr(),M=_.redMul(E).redAdd(_.redMul(this.a)).redAdd(E),P=M.redSqrt();return P.redSqr().cmp(M)===0};function L(S,E,_){if(X.BasePoint.call(this,S,"projective"),E===null&&_===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new Q(E,16),this.z=new Q(_,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}O(L,X.BasePoint),V.prototype.decodePoint=function(S,E){return this.point(z.toArray(S,E),1)},V.prototype.point=function(S,E){return new L(this,S,E)},V.prototype.pointFromJSON=function(S){return L.fromJSON(this,S)},L.prototype.precompute=function(){},L.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},L.fromJSON=function(S,E){return new L(S,E[0],E[1]||S.one)},L.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},L.prototype.isInfinity=function(){return this.z.cmpn(0)===0},L.prototype.dbl=function(){var S=this.x.redAdd(this.z),E=S.redSqr(),_=this.x.redSub(this.z),M=_.redSqr(),P=E.redSub(M),v=E.redMul(M),N=P.redMul(M.redAdd(this.curve.a24.redMul(P)));return this.curve.point(v,N)},L.prototype.add=function(){throw Error("Not supported on Montgomery curve")},L.prototype.diffAdd=function(S,E){var _=this.x.redAdd(this.z),M=this.x.redSub(this.z),P=S.x.redAdd(S.z),v=S.x.redSub(S.z),N=v.redMul(_),f=P.redMul(M),x=E.z.redMul(N.redAdd(f).redSqr()),b=E.x.redMul(N.redISub(f).redSqr());return this.curve.point(x,b)},L.prototype.mul=function(S){var E=S.clone(),_=this,M=this.curve.point(null,null),P=this;for(var v=[];E.cmpn(0)!==0;E.iushrn(1))v.push(E.andln(1));for(var N=v.length-1;N>=0;N--)if(v[N]===0)_=_.diffAdd(M,P),M=M.dbl();else M=_.diffAdd(M,P),_=_.dbl();return M},L.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},L.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},L.prototype.eq=function(S){return this.getX().cmp(S.getX())===0},L.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},L.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),Du=u0((U,J)=>{var Q=b4(),O=FI(),X=A4(),z=Uz(),V=Q.assert;function L(E){this.twisted=(E.a|0)!==1,this.mOneA=this.twisted&&(E.a|0)===-1,this.extended=this.mOneA,z.call(this,"edwards",E),this.a=new O(E.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new O(E.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new O(E.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),V(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(E.c|0)===1}X(L,z),J.exports=L,L.prototype._mulA=function(E){if(this.mOneA)return E.redNeg();else return this.a.redMul(E)},L.prototype._mulC=function(E){if(this.oneC)return E;else return this.c.redMul(E)},L.prototype.jpoint=function(E,_,M,P){return this.point(E,_,M,P)},L.prototype.pointFromX=function(E,_){if(E=new O(E,16),!E.red)E=E.toRed(this.red);var M=E.redSqr(),P=this.c2.redSub(this.a.redMul(M)),v=this.one.redSub(this.c2.redMul(this.d).redMul(M)),N=P.redMul(v.redInvm()),f=N.redSqrt();if(f.redSqr().redSub(N).cmp(this.zero)!==0)throw Error("invalid point");var x=f.fromRed().isOdd();if(_&&!x||!_&&x)f=f.redNeg();return this.point(E,f)},L.prototype.pointFromY=function(E,_){if(E=new O(E,16),!E.red)E=E.toRed(this.red);var M=E.redSqr(),P=M.redSub(this.c2),v=M.redMul(this.d).redMul(this.c2).redSub(this.a),N=P.redMul(v.redInvm());if(N.cmp(this.zero)===0)if(_)throw Error("invalid point");else return this.point(this.zero,E);var f=N.redSqrt();if(f.redSqr().redSub(N).cmp(this.zero)!==0)throw Error("invalid point");if(f.fromRed().isOdd()!==_)f=f.redNeg();return this.point(f,E)},L.prototype.validate=function(E){if(E.isInfinity())return!0;E.normalize();var _=E.x.redSqr(),M=E.y.redSqr(),P=_.redMul(this.a).redAdd(M),v=this.c2.redMul(this.one.redAdd(this.d.redMul(_).redMul(M)));return P.cmp(v)===0};function S(E,_,M,P,v){if(z.BasePoint.call(this,E,"projective"),_===null&&M===null&&P===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new O(_,16),this.y=new O(M,16),this.z=P?new O(P,16):this.curve.one,this.t=v&&new O(v,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}X(S,z.BasePoint),L.prototype.pointFromJSON=function(E){return S.fromJSON(this,E)},L.prototype.point=function(E,_,M,P){return new S(this,E,_,M,P)},S.fromJSON=function(E,_){return new S(E,_[0],_[1],_[2])},S.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},S.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},S.prototype._extDbl=function(){var E=this.x.redSqr(),_=this.y.redSqr(),M=this.z.redSqr();M=M.redIAdd(M);var P=this.curve._mulA(E),v=this.x.redAdd(this.y).redSqr().redISub(E).redISub(_),N=P.redAdd(_),f=N.redSub(M),x=P.redSub(_),b=v.redMul(f),k=N.redMul(x),u=v.redMul(x),p=f.redMul(N);return this.curve.point(b,k,p,u)},S.prototype._projDbl=function(){var E=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),M=this.y.redSqr(),P,v,N,f,x,b;if(this.curve.twisted){f=this.curve._mulA(_);var k=f.redAdd(M);if(this.zOne)P=E.redSub(_).redSub(M).redMul(k.redSub(this.curve.two)),v=k.redMul(f.redSub(M)),N=k.redSqr().redSub(k).redSub(k);else x=this.z.redSqr(),b=k.redSub(x).redISub(x),P=E.redSub(_).redISub(M).redMul(b),v=k.redMul(f.redSub(M)),N=k.redMul(b)}else f=_.redAdd(M),x=this.curve._mulC(this.z).redSqr(),b=f.redSub(x).redSub(x),P=this.curve._mulC(E.redISub(f)).redMul(b),v=this.curve._mulC(f).redMul(_.redISub(M)),N=f.redMul(b);return this.curve.point(P,v,N)},S.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},S.prototype._extAdd=function(E){var _=this.y.redSub(this.x).redMul(E.y.redSub(E.x)),M=this.y.redAdd(this.x).redMul(E.y.redAdd(E.x)),P=this.t.redMul(this.curve.dd).redMul(E.t),v=this.z.redMul(E.z.redAdd(E.z)),N=M.redSub(_),f=v.redSub(P),x=v.redAdd(P),b=M.redAdd(_),k=N.redMul(f),u=x.redMul(b),p=N.redMul(b),m=f.redMul(x);return this.curve.point(k,u,m,p)},S.prototype._projAdd=function(E){var _=this.z.redMul(E.z),M=_.redSqr(),P=this.x.redMul(E.x),v=this.y.redMul(E.y),N=this.curve.d.redMul(P).redMul(v),f=M.redSub(N),x=M.redAdd(N),b=this.x.redAdd(this.y).redMul(E.x.redAdd(E.y)).redISub(P).redISub(v),k=_.redMul(f).redMul(b),u,p;if(this.curve.twisted)u=_.redMul(x).redMul(v.redSub(this.curve._mulA(P))),p=f.redMul(x);else u=_.redMul(x).redMul(v.redSub(P)),p=this.curve._mulC(f).redMul(x);return this.curve.point(k,u,p)},S.prototype.add=function(E){if(this.isInfinity())return E;if(E.isInfinity())return this;if(this.curve.extended)return this._extAdd(E);else return this._projAdd(E)},S.prototype.mul=function(E){if(this._hasDoubles(E))return this.curve._fixedNafMul(this,E);else return this.curve._wnafMul(this,E)},S.prototype.mulAdd=function(E,_,M){return this.curve._wnafMulAdd(1,[this,_],[E,M],2,!1)},S.prototype.jmulAdd=function(E,_,M){return this.curve._wnafMulAdd(1,[this,_],[E,M],2,!0)},S.prototype.normalize=function(){if(this.zOne)return this;var E=this.z.redInvm();if(this.x=this.x.redMul(E),this.y=this.y.redMul(E),this.t)this.t=this.t.redMul(E);return this.z=this.curve.one,this.zOne=!0,this},S.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},S.prototype.getX=function(){return this.normalize(),this.x.fromRed()},S.prototype.getY=function(){return this.normalize(),this.y.fromRed()},S.prototype.eq=function(E){return this===E||this.getX().cmp(E.getX())===0&&this.getY().cmp(E.getY())===0},S.prototype.eqXToP=function(E){var _=E.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(_)===0)return!0;var M=E.clone(),P=this.curve.redN.redMul(this.z);for(;;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(_.redIAdd(P),this.x.cmp(_)===0)return!0}},S.prototype.toP=S.prototype.normalize,S.prototype.mixedAdd=S.prototype.add}),Cj=u0((U)=>{var J=U;J.base=Uz(),J.short=zu(),J.mont=Ku(),J.edwards=Du()}),x1=u0((U)=>{var J=DX(),Q=A4();U.inherits=Q;function O(D,H){if((D.charCodeAt(H)&64512)!==55296)return!1;if(H<0||H+1>=D.length)return!1;return(D.charCodeAt(H+1)&64512)===56320}function X(D,H){if(Array.isArray(D))return D.slice();if(!D)return[];var K=[];if(typeof D==="string"){if(!H){var F=0;for(var C=0;C<D.length;C++){var j=D.charCodeAt(C);if(j<128)K[F++]=j;else if(j<2048)K[F++]=j>>6|192,K[F++]=j&63|128;else if(O(D,C))j=65536+((j&1023)<<10)+(D.charCodeAt(++C)&1023),K[F++]=j>>18|240,K[F++]=j>>12&63|128,K[F++]=j>>6&63|128,K[F++]=j&63|128;else K[F++]=j>>12|224,K[F++]=j>>6&63|128,K[F++]=j&63|128}}else if(H==="hex"){if(D=D.replace(/[^a-z0-9]+/ig,""),D.length%2!==0)D="0"+D;for(C=0;C<D.length;C+=2)K.push(parseInt(D[C]+D[C+1],16))}}else for(C=0;C<D.length;C++)K[C]=D[C]|0;return K}U.toArray=X;function z(D){var H="";for(var K=0;K<D.length;K++)H+=S(D[K].toString(16));return H}U.toHex=z;function V(D){var H=D>>>24|D>>>8&65280|D<<8&16711680|(D&255)<<24;return H>>>0}U.htonl=V;function L(D,H){var K="";for(var F=0;F<D.length;F++){var C=D[F];if(H==="little")C=V(C);K+=E(C.toString(16))}return K}U.toHex32=L;function S(D){if(D.length===1)return"0"+D;else return D}U.zero2=S;function E(D){if(D.length===7)return"0"+D;else if(D.length===6)return"00"+D;else if(D.length===5)return"000"+D;else if(D.length===4)return"0000"+D;else if(D.length===3)return"00000"+D;else if(D.length===2)return"000000"+D;else if(D.length===1)return"0000000"+D;else return D}U.zero8=E;function _(D,H,K,F){var C=K-H;J(C%4===0);var j=Array(C/4);for(var q=0,Z=H;q<j.length;q++,Z+=4){var T;if(F==="big")T=D[Z]<<24|D[Z+1]<<16|D[Z+2]<<8|D[Z+3];else T=D[Z+3]<<24|D[Z+2]<<16|D[Z+1]<<8|D[Z];j[q]=T>>>0}return j}U.join32=_;function M(D,H){var K=Array(D.length*4);for(var F=0,C=0;F<D.length;F++,C+=4){var j=D[F];if(H==="big")K[C]=j>>>24,K[C+1]=j>>>16&255,K[C+2]=j>>>8&255,K[C+3]=j&255;else K[C+3]=j>>>24,K[C+2]=j>>>16&255,K[C+1]=j>>>8&255,K[C]=j&255}return K}U.split32=M;function P(D,H){return D>>>H|D<<32-H}U.rotr32=P;function v(D,H){return D<<H|D>>>32-H}U.rotl32=v;function N(D,H){return D+H>>>0}U.sum32=N;function f(D,H,K){return D+H+K>>>0}U.sum32_3=f;function x(D,H,K,F){return D+H+K+F>>>0}U.sum32_4=x;function b(D,H,K,F,C){return D+H+K+F+C>>>0}U.sum32_5=b;function k(D,H,K,F){var C=D[H],j=D[H+1],q=F+j>>>0,Z=(q<F?1:0)+K+C;D[H]=Z>>>0,D[H+1]=q}U.sum64=k;function u(D,H,K,F){var C=H+F>>>0,j=(C<H?1:0)+D+K;return j>>>0}U.sum64_hi=u;function p(D,H,K,F){var C=H+F;return C>>>0}U.sum64_lo=p;function m(D,H,K,F,C,j,q,Z){var T=0,w=H;w=w+F>>>0,T+=w<H?1:0,w=w+j>>>0,T+=w<j?1:0,w=w+Z>>>0,T+=w<Z?1:0;var B=D+K+C+q+T;return B>>>0}U.sum64_4_hi=m;function a(D,H,K,F,C,j,q,Z){var T=H+F+j+Z;return T>>>0}U.sum64_4_lo=a;function Z0(D,H,K,F,C,j,q,Z,T,w){var B=0,h=H;h=h+F>>>0,B+=h<H?1:0,h=h+j>>>0,B+=h<j?1:0,h=h+Z>>>0,B+=h<Z?1:0,h=h+w>>>0,B+=h<w?1:0;var t=D+K+C+q+T+B;return t>>>0}U.sum64_5_hi=Z0;function L0(D,H,K,F,C,j,q,Z,T,w){var B=H+F+j+Z+w;return B>>>0}U.sum64_5_lo=L0;function C0(D,H,K){var F=H<<32-K|D>>>K;return F>>>0}U.rotr64_hi=C0;function o(D,H,K){var F=D<<32-K|H>>>K;return F>>>0}U.rotr64_lo=o;function q0(D,H,K){return D>>>K}U.shr64_hi=q0;function G(D,H,K){var F=D<<32-K|H>>>K;return F>>>0}U.shr64_lo=G}),S2=u0((U)=>{var J=x1(),Q=DX();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}U.BlockHash=O,O.prototype.update=function(X,z){if(X=J.toArray(X,z),!this.pending)this.pending=X;else this.pending=this.pending.concat(X);if(this.pendingTotal+=X.length,this.pending.length>=this._delta8){X=this.pending;var V=X.length%this._delta8;if(this.pending=X.slice(X.length-V,X.length),this.pending.length===0)this.pending=null;X=J.join32(X,0,X.length-V,this.endian);for(var L=0;L<X.length;L+=this._delta32)this._update(X,L,L+this._delta32)}return this},O.prototype.digest=function(X){return this.update(this._pad()),Q(this.pending===null),this._digest(X)},O.prototype._pad=function(){var X=this.pendingTotal,z=this._delta8,V=z-(X+this.padLength)%z,L=Array(V+this.padLength);L[0]=128;for(var S=1;S<V;S++)L[S]=0;if(X<<=3,this.endian==="big"){for(var E=8;E<this.padLength;E++)L[S++]=0;L[S++]=0,L[S++]=0,L[S++]=0,L[S++]=0,L[S++]=X>>>24&255,L[S++]=X>>>16&255,L[S++]=X>>>8&255,L[S++]=X&255}else{L[S++]=X&255,L[S++]=X>>>8&255,L[S++]=X>>>16&255,L[S++]=X>>>24&255,L[S++]=0,L[S++]=0,L[S++]=0,L[S++]=0;for(E=8;E<this.padLength;E++)L[S++]=0}return L}}),Rj=u0((U)=>{var J=x1(),Q=J.rotr32;function O(M,P,v,N){if(M===0)return X(P,v,N);if(M===1||M===3)return V(P,v,N);if(M===2)return z(P,v,N)}U.ft_1=O;function X(M,P,v){return M&P^~M&v}U.ch32=X;function z(M,P,v){return M&P^M&v^P&v}U.maj32=z;function V(M,P,v){return M^P^v}U.p32=V;function L(M){return Q(M,2)^Q(M,13)^Q(M,22)}U.s0_256=L;function S(M){return Q(M,6)^Q(M,11)^Q(M,25)}U.s1_256=S;function E(M){return Q(M,7)^Q(M,18)^M>>>3}U.g0_256=E;function _(M){return Q(M,17)^Q(M,19)^M>>>10}U.g1_256=_}),Wu=u0((U,J)=>{var Q=x1(),O=S2(),X=Rj(),z=Q.rotl32,V=Q.sum32,L=Q.sum32_5,S=X.ft_1,E=O.BlockHash,_=[1518500249,1859775393,2400959708,3395469782];function M(){if(!(this instanceof M))return new M;E.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}Q.inherits(M,E),J.exports=M,M.blockSize=512,M.outSize=160,M.hmacStrength=80,M.padLength=64,M.prototype._update=function(P,v){var N=this.W;for(var f=0;f<16;f++)N[f]=P[v+f];for(;f<N.length;f++)N[f]=z(N[f-3]^N[f-8]^N[f-14]^N[f-16],1);var x=this.h[0],b=this.h[1],k=this.h[2],u=this.h[3],p=this.h[4];for(f=0;f<N.length;f++){var m=~~(f/20),a=L(z(x,5),S(m,b,k,u),p,N[f],_[m]);p=u,u=k,k=z(b,30),b=x,x=a}this.h[0]=V(this.h[0],x),this.h[1]=V(this.h[1],b),this.h[2]=V(this.h[2],k),this.h[3]=V(this.h[3],u),this.h[4]=V(this.h[4],p)},M.prototype._digest=function(P){if(P==="hex")return Q.toHex32(this.h,"big");else return Q.split32(this.h,"big")}}),Pj=u0((U,J)=>{var Q=x1(),O=S2(),X=Rj(),z=DX(),V=Q.sum32,L=Q.sum32_4,S=Q.sum32_5,E=X.ch32,_=X.maj32,M=X.s0_256,P=X.s1_256,v=X.g0_256,N=X.g1_256,f=O.BlockHash,x=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=x,this.W=Array(64)}Q.inherits(b,f),J.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(k,u){var p=this.W;for(var m=0;m<16;m++)p[m]=k[u+m];for(;m<p.length;m++)p[m]=L(N(p[m-2]),p[m-7],v(p[m-15]),p[m-16]);var a=this.h[0],Z0=this.h[1],L0=this.h[2],C0=this.h[3],o=this.h[4],q0=this.h[5],G=this.h[6],D=this.h[7];z(this.k.length===p.length);for(m=0;m<p.length;m++){var H=S(D,P(o),E(o,q0,G),this.k[m],p[m]),K=V(M(a),_(a,Z0,L0));D=G,G=q0,q0=o,o=V(C0,H),C0=L0,L0=Z0,Z0=a,a=V(H,K)}this.h[0]=V(this.h[0],a),this.h[1]=V(this.h[1],Z0),this.h[2]=V(this.h[2],L0),this.h[3]=V(this.h[3],C0),this.h[4]=V(this.h[4],o),this.h[5]=V(this.h[5],q0),this.h[6]=V(this.h[6],G),this.h[7]=V(this.h[7],D)},b.prototype._digest=function(k){if(k==="hex")return Q.toHex32(this.h,"big");else return Q.split32(this.h,"big")}}),Fu=u0((U,J)=>{var Q=x1(),O=Pj();function X(){if(!(this instanceof X))return new X;O.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Q.inherits(X,O),J.exports=X,X.blockSize=512,X.outSize=224,X.hmacStrength=192,X.padLength=64,X.prototype._digest=function(z){if(z==="hex")return Q.toHex32(this.h.slice(0,7),"big");else return Q.split32(this.h.slice(0,7),"big")}}),Ej=u0((U,J)=>{var Q=x1(),O=S2(),X=DX(),z=Q.rotr64_hi,V=Q.rotr64_lo,L=Q.shr64_hi,S=Q.shr64_lo,E=Q.sum64,_=Q.sum64_hi,M=Q.sum64_lo,P=Q.sum64_4_hi,v=Q.sum64_4_lo,N=Q.sum64_5_hi,f=Q.sum64_5_lo,x=O.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function k(){if(!(this instanceof k))return new k;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=Array(160)}Q.inherits(k,x),J.exports=k,k.blockSize=1024,k.outSize=512,k.hmacStrength=192,k.padLength=128,k.prototype._prepareBlock=function(K,F){var C=this.W;for(var j=0;j<32;j++)C[j]=K[F+j];for(;j<C.length;j+=2){var q=D(C[j-4],C[j-3]),Z=H(C[j-4],C[j-3]),T=C[j-14],w=C[j-13],B=q0(C[j-30],C[j-29]),h=G(C[j-30],C[j-29]),t=C[j-32],U0=C[j-31];C[j]=P(q,Z,T,w,B,h,t,U0),C[j+1]=v(q,Z,T,w,B,h,t,U0)}},k.prototype._update=function(K,F){this._prepareBlock(K,F);var C=this.W,j=this.h[0],q=this.h[1],Z=this.h[2],T=this.h[3],w=this.h[4],B=this.h[5],h=this.h[6],t=this.h[7],U0=this.h[8],z0=this.h[9],Q0=this.h[10],s=this.h[11],e=this.h[12],J0=this.h[13],V0=this.h[14],A0=this.h[15];X(this.k.length===C.length);for(var $0=0;$0<C.length;$0+=2){var c=V0,n=A0,H0=C0(U0,z0),Y0=o(U0,z0),D0=u(U0,z0,Q0,s,e,J0),N0=p(U0,z0,Q0,s,e,J0),I0=this.k[$0],K0=this.k[$0+1],U$=C[$0],M0=C[$0+1],v0=N(c,n,H0,Y0,D0,N0,I0,K0,U$,M0),L$=f(c,n,H0,Y0,D0,N0,I0,K0,U$,M0);c=Z0(j,q),n=L0(j,q),H0=m(j,q,Z,T,w,B),Y0=a(j,q,Z,T,w,B);var p0=_(c,n,H0,Y0),c0=M(c,n,H0,Y0);V0=e,A0=J0,e=Q0,J0=s,Q0=U0,s=z0,U0=_(h,t,v0,L$),z0=M(t,t,v0,L$),h=w,t=B,w=Z,B=T,Z=j,T=q,j=_(v0,L$,p0,c0),q=M(v0,L$,p0,c0)}E(this.h,0,j,q),E(this.h,2,Z,T),E(this.h,4,w,B),E(this.h,6,h,t),E(this.h,8,U0,z0),E(this.h,10,Q0,s),E(this.h,12,e,J0),E(this.h,14,V0,A0)},k.prototype._digest=function(K){if(K==="hex")return Q.toHex32(this.h,"big");else return Q.split32(this.h,"big")};function u(K,F,C,j,q){var Z=K&C^~K&q;if(Z<0)Z+=4294967296;return Z}function p(K,F,C,j,q,Z){var T=F&j^~F&Z;if(T<0)T+=4294967296;return T}function m(K,F,C,j,q){var Z=K&C^K&q^C&q;if(Z<0)Z+=4294967296;return Z}function a(K,F,C,j,q,Z){var T=F&j^F&Z^j&Z;if(T<0)T+=4294967296;return T}function Z0(K,F){var C=z(K,F,28),j=z(F,K,2),q=z(F,K,7),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function L0(K,F){var C=V(K,F,28),j=V(F,K,2),q=V(F,K,7),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function C0(K,F){var C=z(K,F,14),j=z(K,F,18),q=z(F,K,9),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function o(K,F){var C=V(K,F,14),j=V(K,F,18),q=V(F,K,9),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function q0(K,F){var C=z(K,F,1),j=z(K,F,8),q=L(K,F,7),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function G(K,F){var C=V(K,F,1),j=V(K,F,8),q=S(K,F,7),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function D(K,F){var C=z(K,F,19),j=z(F,K,29),q=L(K,F,6),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}function H(K,F){var C=V(K,F,19),j=V(F,K,29),q=S(K,F,6),Z=C^j^q;if(Z<0)Z+=4294967296;return Z}}),Hu=u0((U,J)=>{var Q=x1(),O=Ej();function X(){if(!(this instanceof X))return new X;O.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Q.inherits(X,O),J.exports=X,X.blockSize=1024,X.outSize=384,X.hmacStrength=192,X.padLength=128,X.prototype._digest=function(z){if(z==="hex")return Q.toHex32(this.h.slice(0,12),"big");else return Q.split32(this.h.slice(0,12),"big")}}),Lu=u0((U)=>{U.sha1=Wu(),U.sha224=Fu(),U.sha256=Pj(),U.sha384=Hu(),U.sha512=Ej()}),Mu=u0((U)=>{var J=x1(),Q=S2(),O=J.rotl32,X=J.sum32,z=J.sum32_3,V=J.sum32_4,L=Q.BlockHash;function S(){if(!(this instanceof S))return new S;L.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}J.inherits(S,L),U.ripemd160=S,S.blockSize=512,S.outSize=160,S.hmacStrength=192,S.padLength=64,S.prototype._update=function(x,b){var k=this.h[0],u=this.h[1],p=this.h[2],m=this.h[3],a=this.h[4],Z0=k,L0=u,C0=p,o=m,q0=a;for(var G=0;G<80;G++){var D=X(O(V(k,E(G,u,p,m),x[P[G]+b],_(G)),N[G]),a);k=a,a=m,m=O(p,10),p=u,u=D,D=X(O(V(Z0,E(79-G,L0,C0,o),x[v[G]+b],M(G)),f[G]),q0),Z0=q0,q0=o,o=O(C0,10),C0=L0,L0=D}D=z(this.h[1],p,o),this.h[1]=z(this.h[2],m,q0),this.h[2]=z(this.h[3],a,Z0),this.h[3]=z(this.h[4],k,L0),this.h[4]=z(this.h[0],u,C0),this.h[0]=D},S.prototype._digest=function(x){if(x==="hex")return J.toHex32(this.h,"little");else return J.split32(this.h,"little")};function E(x,b,k,u){if(x<=15)return b^k^u;else if(x<=31)return b&k|~b&u;else if(x<=47)return(b|~k)^u;else if(x<=63)return b&u|k&~u;else return b^(k|~u)}function _(x){if(x<=15)return 0;else if(x<=31)return 1518500249;else if(x<=47)return 1859775393;else if(x<=63)return 2400959708;else return 2840853838}function M(x){if(x<=15)return 1352829926;else if(x<=31)return 1548603684;else if(x<=47)return 1836072691;else if(x<=63)return 2053994217;else return 0}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],v=[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],N=[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],f=[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]}),Au=u0((U,J)=>{var Q=x1(),O=DX();function X(z,V,L){if(!(this instanceof X))return new X(z,V,L);this.Hash=z,this.blockSize=z.blockSize/8,this.outSize=z.outSize/8,this.inner=null,this.outer=null,this._init(Q.toArray(V,L))}J.exports=X,X.prototype._init=function(z){if(z.length>this.blockSize)z=new this.Hash().update(z).digest();O(z.length<=this.blockSize);for(var V=z.length;V<this.blockSize;V++)z.push(0);for(V=0;V<z.length;V++)z[V]^=54;this.inner=new this.Hash().update(z);for(V=0;V<z.length;V++)z[V]^=106;this.outer=new this.Hash().update(z)},X.prototype.update=function(z,V){return this.inner.update(z,V),this},X.prototype.digest=function(z){return this.outer.update(this.inner.digest()),this.outer.digest(z)}}),WF=u0((U)=>{var J=U;J.utils=x1(),J.common=S2(),J.sha=Lu(),J.ripemd=Mu(),J.hmac=Au(),J.sha1=J.sha.sha1,J.sha256=J.sha.sha256,J.sha224=J.sha.sha224,J.sha384=J.sha.sha384,J.sha512=J.sha.sha512,J.ripemd160=J.ripemd.ripemd160}),qu=u0((U,J)=>{J.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),FF=u0((U)=>{var J=U,Q=WF(),O=Cj(),X=b4(),z=X.assert;function V(E){if(E.type==="short")this.curve=new O.short(E);else if(E.type==="edwards")this.curve=new O.edwards(E);else this.curve=new O.mont(E);this.g=this.curve.g,this.n=this.curve.n,this.hash=E.hash,z(this.g.validate(),"Invalid curve"),z(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}J.PresetCurve=V;function L(E,_){Object.defineProperty(J,E,{configurable:!0,enumerable:!0,get:function(){var M=new V(_);return Object.defineProperty(J,E,{configurable:!0,enumerable:!0,value:M}),M}})}L("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Q.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),L("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Q.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),L("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Q.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),L("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Q.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),L("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Q.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),L("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Q.sha256,gRed:!1,g:["9"]}),L("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Q.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var S;try{S=qu()}catch(E){S=void 0}L("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Q.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",S]})}),Tu=u0((U,J)=>{var Q=WF(),O=qj(),X=DX();function z(V){if(!(this instanceof z))return new z(V);this.hash=V.hash,this.predResist=!!V.predResist,this.outLen=this.hash.outSize,this.minEntropy=V.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var L=O.toArray(V.entropy,V.entropyEnc||"hex"),S=O.toArray(V.nonce,V.nonceEnc||"hex"),E=O.toArray(V.pers,V.persEnc||"hex");X(L.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(L,S,E)}J.exports=z,z.prototype._init=function(V,L,S){var E=V.concat(L).concat(S);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var _=0;_<this.V.length;_++)this.K[_]=0,this.V[_]=1;this._update(E),this._reseed=1,this.reseedInterval=281474976710656},z.prototype._hmac=function(){return new Q.hmac(this.hash,this.K)},z.prototype._update=function(V){var L=this._hmac().update(this.V).update([0]);if(V)L=L.update(V);if(this.K=L.digest(),this.V=this._hmac().update(this.V).digest(),!V)return;this.K=this._hmac().update(this.V).update([1]).update(V).digest(),this.V=this._hmac().update(this.V).digest()},z.prototype.reseed=function(V,L,S,E){if(typeof L!=="string")E=S,S=L,L=null;V=O.toArray(V,L),S=O.toArray(S,E),X(V.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(V.concat(S||[])),this._reseed=1},z.prototype.generate=function(V,L,S,E){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof L!=="string")E=S,S=L,L=null;if(S)S=O.toArray(S,E||"hex"),this._update(S);var _=[];while(_.length<V)this.V=this._hmac().update(this.V).digest(),_=_.concat(this.V);var M=_.slice(0,V);return this._update(S),this._reseed++,O.encode(M,L)}}),Cu=u0((U,J)=>{var Q=FI(),O=b4(),X=O.assert;function z(V,L){if(this.ec=V,this.priv=null,this.pub=null,L.priv)this._importPrivate(L.priv,L.privEnc);if(L.pub)this._importPublic(L.pub,L.pubEnc)}J.exports=z,z.fromPublic=function(V,L,S){if(L instanceof z)return L;return new z(V,{pub:L,pubEnc:S})},z.fromPrivate=function(V,L,S){if(L instanceof z)return L;return new z(V,{priv:L,privEnc:S})},z.prototype.validate=function(){var V=this.getPublic();if(V.isInfinity())return{result:!1,reason:"Invalid public key"};if(!V.validate())return{result:!1,reason:"Public key is not a point"};if(!V.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},z.prototype.getPublic=function(V,L){if(typeof V==="string")L=V,V=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!L)return this.pub;return this.pub.encode(L,V)},z.prototype.getPrivate=function(V){if(V==="hex")return this.priv.toString(16,2);else return this.priv},z.prototype._importPrivate=function(V,L){this.priv=new Q(V,L||16),this.priv=this.priv.umod(this.ec.curve.n)},z.prototype._importPublic=function(V,L){if(V.x||V.y){if(this.ec.curve.type==="mont")X(V.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")X(V.x&&V.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(V.x,V.y);return}this.pub=this.ec.curve.decodePoint(V,L)},z.prototype.derive=function(V){if(!V.validate())X(V.validate(),"public point not validated");return V.mul(this.priv).getX()},z.prototype.sign=function(V,L,S){return this.ec.sign(V,this,L,S)},z.prototype.verify=function(V,L,S){return this.ec.verify(V,L,this,void 0,S)},z.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),Ru=u0((U,J)=>{var Q=FI(),O=b4(),X=O.assert;function z(_,M){if(_ instanceof z)return _;if(this._importDER(_,M))return;if(X(_.r&&_.s,"Signature without r or s"),this.r=new Q(_.r,16),this.s=new Q(_.s,16),_.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=_.recoveryParam}J.exports=z;function V(){this.place=0}function L(_,M){var P=_[M.place++];if(!(P&128))return P;var v=P&15;if(v===0||v>4)return!1;if(_[M.place]===0)return!1;var N=0;for(var f=0,x=M.place;f<v;f++,x++)N<<=8,N|=_[x],N>>>=0;if(N<=127)return!1;return M.place=x,N}function S(_){var M=0,P=_.length-1;while(!_[M]&&!(_[M+1]&128)&&M<P)M++;if(M===0)return _;return _.slice(M)}z.prototype._importDER=function(_,M){_=O.toArray(_,M);var P=new V;if(_[P.place++]!==48)return!1;var v=L(_,P);if(v===!1)return!1;if(v+P.place!==_.length)return!1;if(_[P.place++]!==2)return!1;var N=L(_,P);if(N===!1)return!1;if((_[P.place]&128)!==0)return!1;var f=_.slice(P.place,N+P.place);if(P.place+=N,_[P.place++]!==2)return!1;var x=L(_,P);if(x===!1)return!1;if(_.length!==x+P.place)return!1;if((_[P.place]&128)!==0)return!1;var b=_.slice(P.place,x+P.place);if(f[0]===0)if(f[1]&128)f=f.slice(1);else return!1;if(b[0]===0)if(b[1]&128)b=b.slice(1);else return!1;return this.r=new Q(f),this.s=new Q(b),this.recoveryParam=null,!0};function E(_,M){if(M<128){_.push(M);return}var P=1+(Math.log(M)/Math.LN2>>>3);_.push(P|128);while(--P)_.push(M>>>(P<<3)&255);_.push(M)}z.prototype.toDER=function(_){var M=this.r.toArray(),P=this.s.toArray();if(M[0]&128)M=[0].concat(M);if(P[0]&128)P=[0].concat(P);M=S(M),P=S(P);while(!P[0]&&!(P[1]&128))P=P.slice(1);var v=[2];E(v,M.length),v=v.concat(M),v.push(2),E(v,P.length);var N=v.concat(P),f=[48];return E(f,N.length),f=f.concat(N),O.encode(f,_)}}),Pu=u0((U,J)=>{var Q=FI(),O=Tu(),X=b4(),z=FF(),V=Tj(),L=X.assert,S=Cu(),E=Ru();function _(M){if(!(this instanceof _))return new _(M);if(typeof M==="string")L(Object.prototype.hasOwnProperty.call(z,M),"Unknown curve "+M),M=z[M];if(M instanceof z.PresetCurve)M={curve:M};this.curve=M.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=M.curve.g,this.g.precompute(M.curve.n.bitLength()+1),this.hash=M.hash||M.curve.hash}J.exports=_,_.prototype.keyPair=function(M){return new S(this,M)},_.prototype.keyFromPrivate=function(M,P){return S.fromPrivate(this,M,P)},_.prototype.keyFromPublic=function(M,P){return S.fromPublic(this,M,P)},_.prototype.genKeyPair=function(M){if(!M)M={};var P=new O({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||V(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),N=this.n.sub(new Q(2));for(;;){var f=new Q(P.generate(v));if(f.cmp(N)>0)continue;return f.iaddn(1),this.keyFromPrivate(f)}},_.prototype._truncateToN=function(M,P,v){var N;if(Q.isBN(M)||typeof M==="number")M=new Q(M,16),N=M.byteLength();else if(typeof M==="object")N=M.length,M=new Q(M,16);else{var f=M.toString();N=f.length+1>>>1,M=new Q(f,16)}if(typeof v!=="number")v=N*8;var x=v-this.n.bitLength();if(x>0)M=M.ushrn(x);if(!P&&M.cmp(this.n)>=0)return M.sub(this.n);else return M},_.prototype.sign=function(M,P,v,N){if(typeof v==="object")N=v,v=null;if(!N)N={};if(typeof M!=="string"&&typeof M!=="number"&&!Q.isBN(M)){L(typeof M==="object"&&M&&typeof M.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),L(M.length>>>0===M.length);for(var f=0;f<M.length;f++)L((M[f]&255)===M[f])}P=this.keyFromPrivate(P,v),M=this._truncateToN(M,!1,N.msgBitLength),L(!M.isNeg(),"Can not sign a negative message");var x=this.n.byteLength(),b=P.getPrivate().toArray("be",x),k=M.toArray("be",x);L(new Q(k).eq(M),"Can not sign message");var u=new O({hash:this.hash,entropy:b,nonce:k,pers:N.pers,persEnc:N.persEnc||"utf8"}),p=this.n.sub(new Q(1));for(var m=0;;m++){var a=N.k?N.k(m):new Q(u.generate(this.n.byteLength()));if(a=this._truncateToN(a,!0),a.cmpn(1)<=0||a.cmp(p)>=0)continue;var Z0=this.g.mul(a);if(Z0.isInfinity())continue;var L0=Z0.getX(),C0=L0.umod(this.n);if(C0.cmpn(0)===0)continue;var o=a.invm(this.n).mul(C0.mul(P.getPrivate()).iadd(M));if(o=o.umod(this.n),o.cmpn(0)===0)continue;var q0=(Z0.getY().isOdd()?1:0)|(L0.cmp(C0)!==0?2:0);if(N.canonical&&o.cmp(this.nh)>0)o=this.n.sub(o),q0^=1;return new E({r:C0,s:o,recoveryParam:q0})}},_.prototype.verify=function(M,P,v,N,f){if(!f)f={};M=this._truncateToN(M,!1,f.msgBitLength),v=this.keyFromPublic(v,N),P=new E(P,"hex");var{r:x,s:b}=P;if(x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;if(b.cmpn(1)<0||b.cmp(this.n)>=0)return!1;var k=b.invm(this.n),u=k.mul(M).umod(this.n),p=k.mul(x).umod(this.n),m;if(!this.curve._maxwellTrick){if(m=this.g.mulAdd(u,v.getPublic(),p),m.isInfinity())return!1;return m.getX().umod(this.n).cmp(x)===0}if(m=this.g.jmulAdd(u,v.getPublic(),p),m.isInfinity())return!1;return m.eqXToP(x)},_.prototype.recoverPubKey=function(M,P,v,N){L((3&v)===v,"The recovery param is more than two bits"),P=new E(P,N);var f=this.n,x=new Q(M),b=P.r,k=P.s,u=v&1,p=v>>1;if(b.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw Error("Unable to find sencond key candinate");if(p)b=this.curve.pointFromX(b.add(this.curve.n),u);else b=this.curve.pointFromX(b,u);var m=P.r.invm(f),a=f.sub(x).mul(m).umod(f),Z0=k.mul(m).umod(f);return this.g.mulAdd(a,b,Z0)},_.prototype.getKeyRecoveryParam=function(M,P,v,N){if(P=new E(P,N),P.recoveryParam!==null)return P.recoveryParam;for(var f=0;f<4;f++){var x;try{x=this.recoverPubKey(M,P,f)}catch(b){continue}if(x.eq(v))return f}throw Error("Unable to find valid recovery factor")}}),Eu=u0((U,J)=>{var Q=b4(),O=Q.assert,X=Q.parseBytes,z=Q.cachedProperty;function V(L,S){if(this.eddsa=L,this._secret=X(S.secret),L.isPoint(S.pub))this._pub=S.pub;else this._pubBytes=X(S.pub)}V.fromPublic=function(L,S){if(S instanceof V)return S;return new V(L,{pub:S})},V.fromSecret=function(L,S){if(S instanceof V)return S;return new V(L,{secret:S})},V.prototype.secret=function(){return this._secret},z(V,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),z(V,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),z(V,"privBytes",function(){var L=this.eddsa,S=this.hash(),E=L.encodingLength-1,_=S.slice(0,L.encodingLength);return _[0]&=248,_[E]&=127,_[E]|=64,_}),z(V,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),z(V,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),z(V,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),V.prototype.sign=function(L){return O(this._secret,"KeyPair can only verify"),this.eddsa.sign(L,this)},V.prototype.verify=function(L,S){return this.eddsa.verify(L,S,this)},V.prototype.getSecret=function(L){return O(this._secret,"KeyPair is public only"),Q.encode(this.secret(),L)},V.prototype.getPublic=function(L){return Q.encode(this.pubBytes(),L)},J.exports=V}),_u=u0((U,J)=>{var Q=FI(),O=b4(),X=O.assert,z=O.cachedProperty,V=O.parseBytes;function L(S,E){if(this.eddsa=S,typeof E!=="object")E=V(E);if(Array.isArray(E))X(E.length===S.encodingLength*2,"Signature has invalid size"),E={R:E.slice(0,S.encodingLength),S:E.slice(S.encodingLength)};if(X(E.R&&E.S,"Signature without R or S"),S.isPoint(E.R))this._R=E.R;if(E.S instanceof Q)this._S=E.S;this._Rencoded=Array.isArray(E.R)?E.R:E.Rencoded,this._Sencoded=Array.isArray(E.S)?E.S:E.Sencoded}z(L,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),z(L,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),z(L,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),z(L,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),L.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},L.prototype.toHex=function(){return O.encode(this.toBytes(),"hex").toUpperCase()},J.exports=L}),Su=u0((U,J)=>{var Q=WF(),O=FF(),X=b4(),z=X.assert,V=X.parseBytes,L=Eu(),S=_u();function E(_){if(z(_==="ed25519","only tested with ed25519 so far"),!(this instanceof E))return new E(_);_=O[_].curve,this.curve=_,this.g=_.g,this.g.precompute(_.n.bitLength()+1),this.pointClass=_.point().constructor,this.encodingLength=Math.ceil(_.n.bitLength()/8),this.hash=Q.sha512}J.exports=E,E.prototype.sign=function(_,M){_=V(_);var P=this.keyFromSecret(M),v=this.hashInt(P.messagePrefix(),_),N=this.g.mul(v),f=this.encodePoint(N),x=this.hashInt(f,P.pubBytes(),_).mul(P.priv()),b=v.add(x).umod(this.curve.n);return this.makeSignature({R:N,S:b,Rencoded:f})},E.prototype.verify=function(_,M,P){if(_=V(_),M=this.makeSignature(M),M.S().gte(M.eddsa.curve.n)||M.S().isNeg())return!1;var v=this.keyFromPublic(P),N=this.hashInt(M.Rencoded(),v.pubBytes(),_),f=this.g.mul(M.S()),x=M.R().add(v.pub().mul(N));return x.eq(f)},E.prototype.hashInt=function(){var _=this.hash();for(var M=0;M<arguments.length;M++)_.update(arguments[M]);return X.intFromLE(_.digest()).umod(this.curve.n)},E.prototype.keyFromPublic=function(_){return L.fromPublic(this,_)},E.prototype.keyFromSecret=function(_){return L.fromSecret(this,_)},E.prototype.makeSignature=function(_){if(_ instanceof S)return _;return new S(this,_)},E.prototype.encodePoint=function(_){var M=_.getY().toArray("le",this.encodingLength);return M[this.encodingLength-1]|=_.getX().isOdd()?128:0,M},E.prototype.decodePoint=function(_){_=X.parseBytes(_);var M=_.length-1,P=_.slice(0,M).concat(_[M]&-129),v=(_[M]&128)!==0,N=X.intFromLE(P);return this.curve.pointFromY(N,v)},E.prototype.encodeInt=function(_){return _.toArray("le",this.encodingLength)},E.prototype.decodeInt=function(_){return X.intFromLE(_)},E.prototype.isPoint=function(_){return _ instanceof this.pointClass}}),ju=u0((U)=>{var J=U;J.version=Zu().version,J.utils=b4(),J.rand=Tj(),J.curve=Cj(),J.curves=FF(),J.ec=Pu(),J.eddsa=Su()}),vu=u0((U,J)=>{(function(Q,O){function X(G,D){if(!G)throw Error(D||"Assertion failed")}function z(G,D){G.super_=D;var H=function(){};H.prototype=D.prototype,G.prototype=new H,G.prototype.constructor=G}function V(G,D,H){if(V.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(D==="le"||D==="be")H=D,D=10;this._init(G||0,D||10,H||"be")}}if(typeof Q==="object")Q.exports=V;else O.BN=V;V.BN=V,V.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(tU(),v$(rU)).Buffer}catch(G){}V.isBN=function(G){if(G instanceof V)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===V.wordSize&&Array.isArray(G.words)},V.max=function(G,D){if(G.cmp(D)>0)return G;return D},V.min=function(G,D){if(G.cmp(D)<0)return G;return D},V.prototype._init=function(G,D,H){if(typeof G==="number")return this._initNumber(G,D,H);if(typeof G==="object")return this._initArray(G,D,H);if(D==="hex")D=16;X(D===(D|0)&&D>=2&&D<=36),G=G.toString().replace(/\s+/g,"");var K=0;if(G[0]==="-")K++,this.negative=1;if(K<G.length){if(D===16)this._parseHex(G,K,H);else if(this._parseBase(G,D,K),H==="le")this._initArray(this.toArray(),D,H)}},V.prototype._initNumber=function(G,D,H){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(H!=="le")return;this._initArray(this.toArray(),D,H)},V.prototype._initArray=function(G,D,H){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F,C,j=0;if(H==="be"){for(K=G.length-1,F=0;K>=0;K-=3)if(C=G[K]|G[K-1]<<8|G[K-2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(H==="le"){for(K=0,F=0;K<G.length;K+=3)if(C=G[K]|G[K+1]<<8|G[K+2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function S(G,D){var H=G.charCodeAt(D);if(H>=65&&H<=70)return H-55;else if(H>=97&&H<=102)return H-87;else return H-48&15}function E(G,D,H){var K=S(G,H);if(H-1>=D)K|=S(G,H-1)<<4;return K}V.prototype._parseHex=function(G,D,H){this.length=Math.ceil((G.length-D)/6),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F=0,C=0,j;if(H==="be")for(K=G.length-1;K>=D;K-=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8;else{var q=G.length-D;for(K=q%2===0?D+1:D;K<G.length;K+=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8}this.strip()};function _(G,D,H,K){var F=0,C=Math.min(G.length,H);for(var j=D;j<C;j++){var q=G.charCodeAt(j)-48;if(F*=K,q>=49)F+=q-49+10;else if(q>=17)F+=q-17+10;else F+=q}return F}V.prototype._parseBase=function(G,D,H){this.words=[0],this.length=1;for(var K=0,F=1;F<=67108863;F*=D)K++;K--,F=F/D|0;var C=G.length-H,j=C%K,q=Math.min(C,C-j)+H,Z=0;for(var T=H;T<q;T+=K)if(Z=_(G,T,T+K,D),this.imuln(F),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(j!==0){var w=1;Z=_(G,T,G.length,D);for(T=0;T<j;T++)w*=D;if(this.imuln(w),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(G){G.words=Array(this.length);for(var D=0;D<this.length;D++)G.words[D]=this.words[D];G.length=this.length,G.negative=this.negative,G.red=this.red},V.prototype.clone=function(){var G=new V(null);return this.copy(G),G},V.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(G,D){G=G||10,D=D|0||1;var H;if(G===16||G==="hex"){H="";var K=0,F=0;for(var C=0;C<this.length;C++){var j=this.words[C],q=((j<<K|F)&16777215).toString(16);if(F=j>>>24-K&16777215,K+=2,K>=26)K-=26,C--;if(F!==0||C!==this.length-1)H=M[6-q.length]+q+H;else H=q+H}if(F!==0)H=F.toString(16)+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}if(G===(G|0)&&G>=2&&G<=36){var Z=P[G],T=v[G];H="";var w=this.clone();w.negative=0;while(!w.isZero()){var B=w.modn(T).toString(G);if(w=w.idivn(T),!w.isZero())H=M[Z-B.length]+B+H;else H=B+H}if(this.isZero())H="0"+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}X(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(G,D){return X(typeof L<"u"),this.toArrayLike(L,G,D)},V.prototype.toArray=function(G,D){return this.toArrayLike(Array,G,D)},V.prototype.toArrayLike=function(G,D,H){var K=this.byteLength(),F=H||Math.max(1,K);X(K<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var C=D==="le",j=new G(F),q,Z,T=this.clone();if(!C){for(Z=0;Z<F-K;Z++)j[Z]=0;for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[F-Z-1]=q}else{for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[Z]=q;for(;Z<F;Z++)j[Z]=0}return j},Math.clz32)V.prototype._countBits=function(G){return 32-Math.clz32(G)};else V.prototype._countBits=function(G){var D=G,H=0;if(D>=4096)H+=13,D>>>=13;if(D>=64)H+=7,D>>>=7;if(D>=8)H+=4,D>>>=4;if(D>=2)H+=2,D>>>=2;return H+D};V.prototype._zeroBits=function(G){if(G===0)return 26;var D=G,H=0;if((D&8191)===0)H+=13,D>>>=13;if((D&127)===0)H+=7,D>>>=7;if((D&15)===0)H+=4,D>>>=4;if((D&3)===0)H+=2,D>>>=2;if((D&1)===0)H++;return H},V.prototype.bitLength=function(){var G=this.words[this.length-1],D=this._countBits(G);return(this.length-1)*26+D};function N(G){var D=Array(G.bitLength());for(var H=0;H<D.length;H++){var K=H/26|0,F=H%26;D[H]=(G.words[K]&1<<F)>>>F}return D}V.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var D=0;D<this.length;D++){var H=this._zeroBits(this.words[D]);if(G+=H,H!==26)break}return G},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},V.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var D=0;D<G.length;D++)this.words[D]=this.words[D]|G.words[D];return this.strip()},V.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},V.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},V.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},V.prototype.iuand=function(G){var D;if(this.length>G.length)D=G;else D=this;for(var H=0;H<D.length;H++)this.words[H]=this.words[H]&G.words[H];return this.length=D.length,this.strip()},V.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},V.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},V.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},V.prototype.iuxor=function(G){var D,H;if(this.length>G.length)D=this,H=G;else D=G,H=this;for(var K=0;K<H.length;K++)this.words[K]=D.words[K]^H.words[K];if(this!==D)for(;K<D.length;K++)this.words[K]=D.words[K];return this.length=D.length,this.strip()},V.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},V.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},V.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},V.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var D=Math.ceil(G/26)|0,H=G%26;if(this._expand(D),H>0)D--;for(var K=0;K<D;K++)this.words[K]=~this.words[K]&67108863;if(H>0)this.words[K]=~this.words[K]&67108863>>26-H;return this.strip()},V.prototype.notn=function(G){return this.clone().inotn(G)},V.prototype.setn=function(G,D){X(typeof G==="number"&&G>=0);var H=G/26|0,K=G%26;if(this._expand(H+1),D)this.words[H]=this.words[H]|1<<K;else this.words[H]=this.words[H]&~(1<<K);return this.strip()},V.prototype.iadd=function(G){var D;if(this.negative!==0&&G.negative===0)return this.negative=0,D=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,D=this.isub(G),G.negative=1,D._normSign();var H,K;if(this.length>G.length)H=this,K=G;else H=G,K=this;var F=0;for(var C=0;C<K.length;C++)D=(H.words[C]|0)+(K.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;for(;F!==0&&C<H.length;C++)D=(H.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;if(this.length=H.length,F!==0)this.words[this.length]=F,this.length++;else if(H!==this)for(;C<H.length;C++)this.words[C]=H.words[C];return this},V.prototype.add=function(G){var D;if(G.negative!==0&&this.negative===0)return G.negative=0,D=this.sub(G),G.negative^=1,D;else if(G.negative===0&&this.negative!==0)return this.negative=0,D=G.sub(this),this.negative=1,D;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},V.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var D=this.iadd(G);return G.negative=1,D._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var H=this.cmp(G);if(H===0)return this.negative=0,this.length=1,this.words[0]=0,this;var K,F;if(H>0)K=this,F=G;else K=G,F=this;var C=0;for(var j=0;j<F.length;j++)D=(K.words[j]|0)-(F.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;for(;C!==0&&j<K.length;j++)D=(K.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;if(C===0&&j<K.length&&K!==this)for(;j<K.length;j++)this.words[j]=K.words[j];if(this.length=Math.max(this.length,j),K!==this)this.negative=1;return this.strip()},V.prototype.sub=function(G){return this.clone().isub(G)};function f(G,D,H){H.negative=D.negative^G.negative;var K=G.length+D.length|0;H.length=K,K=K-1|0;var F=G.words[0]|0,C=D.words[0]|0,j=F*C,q=j&67108863,Z=j/67108864|0;H.words[0]=q;for(var T=1;T<K;T++){var w=Z>>>26,B=Z&67108863,h=Math.min(T,D.length-1);for(var t=Math.max(0,T-G.length+1);t<=h;t++){var U0=T-t|0;F=G.words[U0]|0,C=D.words[t]|0,j=F*C+B,w+=j/67108864|0,B=j&67108863}H.words[T]=B|0,Z=w|0}if(Z!==0)H.words[T]=Z|0;else H.length--;return H.strip()}var x=function(G,D,H){var K=G.words,F=D.words,C=H.words,j=0,q,Z,T,w=K[0]|0,B=w&8191,h=w>>>13,t=K[1]|0,U0=t&8191,z0=t>>>13,Q0=K[2]|0,s=Q0&8191,e=Q0>>>13,J0=K[3]|0,V0=J0&8191,A0=J0>>>13,$0=K[4]|0,c=$0&8191,n=$0>>>13,H0=K[5]|0,Y0=H0&8191,D0=H0>>>13,N0=K[6]|0,I0=N0&8191,K0=N0>>>13,U$=K[7]|0,M0=U$&8191,v0=U$>>>13,L$=K[8]|0,p0=L$&8191,c0=L$>>>13,t$=K[9]|0,b0=t$&8191,h0=t$>>>13,VU=F[0]|0,r0=VU&8191,o0=VU>>>13,EU=F[1]|0,l=EU&8191,X0=EU>>>13,s0=F[2]|0,S0=s0&8191,B0=s0>>>13,F$=F[3]|0,g0=F$&8191,f0=F$>>>13,K$=F[4]|0,n0=K$&8191,i0=K$>>>13,WU=F[5]|0,a0=WU&8191,r=WU>>>13,G0=F[6]|0,E0=G0&8191,_0=G0>>>13,Z$=F[7]|0,d0=Z$&8191,t0=Z$>>>13,AU=F[8]|0,I$=AU&8191,$$=AU>>>13,IU=F[9]|0,X$=IU&8191,e0=IU>>>13;H.negative=G.negative^D.negative,H.length=19,q=Math.imul(B,r0),Z=Math.imul(B,o0),Z=Z+Math.imul(h,r0)|0,T=Math.imul(h,o0);var _U=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,q=Math.imul(U0,r0),Z=Math.imul(U0,o0),Z=Z+Math.imul(z0,r0)|0,T=Math.imul(z0,o0),q=q+Math.imul(B,l)|0,Z=Z+Math.imul(B,X0)|0,Z=Z+Math.imul(h,l)|0,T=T+Math.imul(h,X0)|0;var B$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(B$>>>26)|0,B$&=67108863,q=Math.imul(s,r0),Z=Math.imul(s,o0),Z=Z+Math.imul(e,r0)|0,T=Math.imul(e,o0),q=q+Math.imul(U0,l)|0,Z=Z+Math.imul(U0,X0)|0,Z=Z+Math.imul(z0,l)|0,T=T+Math.imul(z0,X0)|0,q=q+Math.imul(B,S0)|0,Z=Z+Math.imul(B,B0)|0,Z=Z+Math.imul(h,S0)|0,T=T+Math.imul(h,B0)|0;var j$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(j$>>>26)|0,j$&=67108863,q=Math.imul(V0,r0),Z=Math.imul(V0,o0),Z=Z+Math.imul(A0,r0)|0,T=Math.imul(A0,o0),q=q+Math.imul(s,l)|0,Z=Z+Math.imul(s,X0)|0,Z=Z+Math.imul(e,l)|0,T=T+Math.imul(e,X0)|0,q=q+Math.imul(U0,S0)|0,Z=Z+Math.imul(U0,B0)|0,Z=Z+Math.imul(z0,S0)|0,T=T+Math.imul(z0,B0)|0,q=q+Math.imul(B,g0)|0,Z=Z+Math.imul(B,f0)|0,Z=Z+Math.imul(h,g0)|0,T=T+Math.imul(h,f0)|0;var XU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,q=Math.imul(c,r0),Z=Math.imul(c,o0),Z=Z+Math.imul(n,r0)|0,T=Math.imul(n,o0),q=q+Math.imul(V0,l)|0,Z=Z+Math.imul(V0,X0)|0,Z=Z+Math.imul(A0,l)|0,T=T+Math.imul(A0,X0)|0,q=q+Math.imul(s,S0)|0,Z=Z+Math.imul(s,B0)|0,Z=Z+Math.imul(e,S0)|0,T=T+Math.imul(e,B0)|0,q=q+Math.imul(U0,g0)|0,Z=Z+Math.imul(U0,f0)|0,Z=Z+Math.imul(z0,g0)|0,T=T+Math.imul(z0,f0)|0,q=q+Math.imul(B,n0)|0,Z=Z+Math.imul(B,i0)|0,Z=Z+Math.imul(h,n0)|0,T=T+Math.imul(h,i0)|0;var o$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(o$>>>26)|0,o$&=67108863,q=Math.imul(Y0,r0),Z=Math.imul(Y0,o0),Z=Z+Math.imul(D0,r0)|0,T=Math.imul(D0,o0),q=q+Math.imul(c,l)|0,Z=Z+Math.imul(c,X0)|0,Z=Z+Math.imul(n,l)|0,T=T+Math.imul(n,X0)|0,q=q+Math.imul(V0,S0)|0,Z=Z+Math.imul(V0,B0)|0,Z=Z+Math.imul(A0,S0)|0,T=T+Math.imul(A0,B0)|0,q=q+Math.imul(s,g0)|0,Z=Z+Math.imul(s,f0)|0,Z=Z+Math.imul(e,g0)|0,T=T+Math.imul(e,f0)|0,q=q+Math.imul(U0,n0)|0,Z=Z+Math.imul(U0,i0)|0,Z=Z+Math.imul(z0,n0)|0,T=T+Math.imul(z0,i0)|0,q=q+Math.imul(B,a0)|0,Z=Z+Math.imul(B,r)|0,Z=Z+Math.imul(h,a0)|0,T=T+Math.imul(h,r)|0;var cU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(cU>>>26)|0,cU&=67108863,q=Math.imul(I0,r0),Z=Math.imul(I0,o0),Z=Z+Math.imul(K0,r0)|0,T=Math.imul(K0,o0),q=q+Math.imul(Y0,l)|0,Z=Z+Math.imul(Y0,X0)|0,Z=Z+Math.imul(D0,l)|0,T=T+Math.imul(D0,X0)|0,q=q+Math.imul(c,S0)|0,Z=Z+Math.imul(c,B0)|0,Z=Z+Math.imul(n,S0)|0,T=T+Math.imul(n,B0)|0,q=q+Math.imul(V0,g0)|0,Z=Z+Math.imul(V0,f0)|0,Z=Z+Math.imul(A0,g0)|0,T=T+Math.imul(A0,f0)|0,q=q+Math.imul(s,n0)|0,Z=Z+Math.imul(s,i0)|0,Z=Z+Math.imul(e,n0)|0,T=T+Math.imul(e,i0)|0,q=q+Math.imul(U0,a0)|0,Z=Z+Math.imul(U0,r)|0,Z=Z+Math.imul(z0,a0)|0,T=T+Math.imul(z0,r)|0,q=q+Math.imul(B,E0)|0,Z=Z+Math.imul(B,_0)|0,Z=Z+Math.imul(h,E0)|0,T=T+Math.imul(h,_0)|0;var pU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(pU>>>26)|0,pU&=67108863,q=Math.imul(M0,r0),Z=Math.imul(M0,o0),Z=Z+Math.imul(v0,r0)|0,T=Math.imul(v0,o0),q=q+Math.imul(I0,l)|0,Z=Z+Math.imul(I0,X0)|0,Z=Z+Math.imul(K0,l)|0,T=T+Math.imul(K0,X0)|0,q=q+Math.imul(Y0,S0)|0,Z=Z+Math.imul(Y0,B0)|0,Z=Z+Math.imul(D0,S0)|0,T=T+Math.imul(D0,B0)|0,q=q+Math.imul(c,g0)|0,Z=Z+Math.imul(c,f0)|0,Z=Z+Math.imul(n,g0)|0,T=T+Math.imul(n,f0)|0,q=q+Math.imul(V0,n0)|0,Z=Z+Math.imul(V0,i0)|0,Z=Z+Math.imul(A0,n0)|0,T=T+Math.imul(A0,i0)|0,q=q+Math.imul(s,a0)|0,Z=Z+Math.imul(s,r)|0,Z=Z+Math.imul(e,a0)|0,T=T+Math.imul(e,r)|0,q=q+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,_0)|0,Z=Z+Math.imul(z0,E0)|0,T=T+Math.imul(z0,_0)|0,q=q+Math.imul(B,d0)|0,Z=Z+Math.imul(B,t0)|0,Z=Z+Math.imul(h,d0)|0,T=T+Math.imul(h,t0)|0;var lU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(lU>>>26)|0,lU&=67108863,q=Math.imul(p0,r0),Z=Math.imul(p0,o0),Z=Z+Math.imul(c0,r0)|0,T=Math.imul(c0,o0),q=q+Math.imul(M0,l)|0,Z=Z+Math.imul(M0,X0)|0,Z=Z+Math.imul(v0,l)|0,T=T+Math.imul(v0,X0)|0,q=q+Math.imul(I0,S0)|0,Z=Z+Math.imul(I0,B0)|0,Z=Z+Math.imul(K0,S0)|0,T=T+Math.imul(K0,B0)|0,q=q+Math.imul(Y0,g0)|0,Z=Z+Math.imul(Y0,f0)|0,Z=Z+Math.imul(D0,g0)|0,T=T+Math.imul(D0,f0)|0,q=q+Math.imul(c,n0)|0,Z=Z+Math.imul(c,i0)|0,Z=Z+Math.imul(n,n0)|0,T=T+Math.imul(n,i0)|0,q=q+Math.imul(V0,a0)|0,Z=Z+Math.imul(V0,r)|0,Z=Z+Math.imul(A0,a0)|0,T=T+Math.imul(A0,r)|0,q=q+Math.imul(s,E0)|0,Z=Z+Math.imul(s,_0)|0,Z=Z+Math.imul(e,E0)|0,T=T+Math.imul(e,_0)|0,q=q+Math.imul(U0,d0)|0,Z=Z+Math.imul(U0,t0)|0,Z=Z+Math.imul(z0,d0)|0,T=T+Math.imul(z0,t0)|0,q=q+Math.imul(B,I$)|0,Z=Z+Math.imul(B,$$)|0,Z=Z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(mU>>>26)|0,mU&=67108863,q=Math.imul(b0,r0),Z=Math.imul(b0,o0),Z=Z+Math.imul(h0,r0)|0,T=Math.imul(h0,o0),q=q+Math.imul(p0,l)|0,Z=Z+Math.imul(p0,X0)|0,Z=Z+Math.imul(c0,l)|0,T=T+Math.imul(c0,X0)|0,q=q+Math.imul(M0,S0)|0,Z=Z+Math.imul(M0,B0)|0,Z=Z+Math.imul(v0,S0)|0,T=T+Math.imul(v0,B0)|0,q=q+Math.imul(I0,g0)|0,Z=Z+Math.imul(I0,f0)|0,Z=Z+Math.imul(K0,g0)|0,T=T+Math.imul(K0,f0)|0,q=q+Math.imul(Y0,n0)|0,Z=Z+Math.imul(Y0,i0)|0,Z=Z+Math.imul(D0,n0)|0,T=T+Math.imul(D0,i0)|0,q=q+Math.imul(c,a0)|0,Z=Z+Math.imul(c,r)|0,Z=Z+Math.imul(n,a0)|0,T=T+Math.imul(n,r)|0,q=q+Math.imul(V0,E0)|0,Z=Z+Math.imul(V0,_0)|0,Z=Z+Math.imul(A0,E0)|0,T=T+Math.imul(A0,_0)|0,q=q+Math.imul(s,d0)|0,Z=Z+Math.imul(s,t0)|0,Z=Z+Math.imul(e,d0)|0,T=T+Math.imul(e,t0)|0,q=q+Math.imul(U0,I$)|0,Z=Z+Math.imul(U0,$$)|0,Z=Z+Math.imul(z0,I$)|0,T=T+Math.imul(z0,$$)|0,q=q+Math.imul(B,X$)|0,Z=Z+Math.imul(B,e0)|0,Z=Z+Math.imul(h,X$)|0,T=T+Math.imul(h,e0)|0;var dU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(dU>>>26)|0,dU&=67108863,q=Math.imul(b0,l),Z=Math.imul(b0,X0),Z=Z+Math.imul(h0,l)|0,T=Math.imul(h0,X0),q=q+Math.imul(p0,S0)|0,Z=Z+Math.imul(p0,B0)|0,Z=Z+Math.imul(c0,S0)|0,T=T+Math.imul(c0,B0)|0,q=q+Math.imul(M0,g0)|0,Z=Z+Math.imul(M0,f0)|0,Z=Z+Math.imul(v0,g0)|0,T=T+Math.imul(v0,f0)|0,q=q+Math.imul(I0,n0)|0,Z=Z+Math.imul(I0,i0)|0,Z=Z+Math.imul(K0,n0)|0,T=T+Math.imul(K0,i0)|0,q=q+Math.imul(Y0,a0)|0,Z=Z+Math.imul(Y0,r)|0,Z=Z+Math.imul(D0,a0)|0,T=T+Math.imul(D0,r)|0,q=q+Math.imul(c,E0)|0,Z=Z+Math.imul(c,_0)|0,Z=Z+Math.imul(n,E0)|0,T=T+Math.imul(n,_0)|0,q=q+Math.imul(V0,d0)|0,Z=Z+Math.imul(V0,t0)|0,Z=Z+Math.imul(A0,d0)|0,T=T+Math.imul(A0,t0)|0,q=q+Math.imul(s,I$)|0,Z=Z+Math.imul(s,$$)|0,Z=Z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0,q=q+Math.imul(U0,X$)|0,Z=Z+Math.imul(U0,e0)|0,Z=Z+Math.imul(z0,X$)|0,T=T+Math.imul(z0,e0)|0;var a$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(a$>>>26)|0,a$&=67108863,q=Math.imul(b0,S0),Z=Math.imul(b0,B0),Z=Z+Math.imul(h0,S0)|0,T=Math.imul(h0,B0),q=q+Math.imul(p0,g0)|0,Z=Z+Math.imul(p0,f0)|0,Z=Z+Math.imul(c0,g0)|0,T=T+Math.imul(c0,f0)|0,q=q+Math.imul(M0,n0)|0,Z=Z+Math.imul(M0,i0)|0,Z=Z+Math.imul(v0,n0)|0,T=T+Math.imul(v0,i0)|0,q=q+Math.imul(I0,a0)|0,Z=Z+Math.imul(I0,r)|0,Z=Z+Math.imul(K0,a0)|0,T=T+Math.imul(K0,r)|0,q=q+Math.imul(Y0,E0)|0,Z=Z+Math.imul(Y0,_0)|0,Z=Z+Math.imul(D0,E0)|0,T=T+Math.imul(D0,_0)|0,q=q+Math.imul(c,d0)|0,Z=Z+Math.imul(c,t0)|0,Z=Z+Math.imul(n,d0)|0,T=T+Math.imul(n,t0)|0,q=q+Math.imul(V0,I$)|0,Z=Z+Math.imul(V0,$$)|0,Z=Z+Math.imul(A0,I$)|0,T=T+Math.imul(A0,$$)|0,q=q+Math.imul(s,X$)|0,Z=Z+Math.imul(s,e0)|0,Z=Z+Math.imul(e,X$)|0,T=T+Math.imul(e,e0)|0;var qU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,q=Math.imul(b0,g0),Z=Math.imul(b0,f0),Z=Z+Math.imul(h0,g0)|0,T=Math.imul(h0,f0),q=q+Math.imul(p0,n0)|0,Z=Z+Math.imul(p0,i0)|0,Z=Z+Math.imul(c0,n0)|0,T=T+Math.imul(c0,i0)|0,q=q+Math.imul(M0,a0)|0,Z=Z+Math.imul(M0,r)|0,Z=Z+Math.imul(v0,a0)|0,T=T+Math.imul(v0,r)|0,q=q+Math.imul(I0,E0)|0,Z=Z+Math.imul(I0,_0)|0,Z=Z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,_0)|0,q=q+Math.imul(Y0,d0)|0,Z=Z+Math.imul(Y0,t0)|0,Z=Z+Math.imul(D0,d0)|0,T=T+Math.imul(D0,t0)|0,q=q+Math.imul(c,I$)|0,Z=Z+Math.imul(c,$$)|0,Z=Z+Math.imul(n,I$)|0,T=T+Math.imul(n,$$)|0,q=q+Math.imul(V0,X$)|0,Z=Z+Math.imul(V0,e0)|0,Z=Z+Math.imul(A0,X$)|0,T=T+Math.imul(A0,e0)|0;var FU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,q=Math.imul(b0,n0),Z=Math.imul(b0,i0),Z=Z+Math.imul(h0,n0)|0,T=Math.imul(h0,i0),q=q+Math.imul(p0,a0)|0,Z=Z+Math.imul(p0,r)|0,Z=Z+Math.imul(c0,a0)|0,T=T+Math.imul(c0,r)|0,q=q+Math.imul(M0,E0)|0,Z=Z+Math.imul(M0,_0)|0,Z=Z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,_0)|0,q=q+Math.imul(I0,d0)|0,Z=Z+Math.imul(I0,t0)|0,Z=Z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,t0)|0,q=q+Math.imul(Y0,I$)|0,Z=Z+Math.imul(Y0,$$)|0,Z=Z+Math.imul(D0,I$)|0,T=T+Math.imul(D0,$$)|0,q=q+Math.imul(c,X$)|0,Z=Z+Math.imul(c,e0)|0,Z=Z+Math.imul(n,X$)|0,T=T+Math.imul(n,e0)|0;var nU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(nU>>>26)|0,nU&=67108863,q=Math.imul(b0,a0),Z=Math.imul(b0,r),Z=Z+Math.imul(h0,a0)|0,T=Math.imul(h0,r),q=q+Math.imul(p0,E0)|0,Z=Z+Math.imul(p0,_0)|0,Z=Z+Math.imul(c0,E0)|0,T=T+Math.imul(c0,_0)|0,q=q+Math.imul(M0,d0)|0,Z=Z+Math.imul(M0,t0)|0,Z=Z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,t0)|0,q=q+Math.imul(I0,I$)|0,Z=Z+Math.imul(I0,$$)|0,Z=Z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0,q=q+Math.imul(Y0,X$)|0,Z=Z+Math.imul(Y0,e0)|0,Z=Z+Math.imul(D0,X$)|0,T=T+Math.imul(D0,e0)|0;var SU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(SU>>>26)|0,SU&=67108863,q=Math.imul(b0,E0),Z=Math.imul(b0,_0),Z=Z+Math.imul(h0,E0)|0,T=Math.imul(h0,_0),q=q+Math.imul(p0,d0)|0,Z=Z+Math.imul(p0,t0)|0,Z=Z+Math.imul(c0,d0)|0,T=T+Math.imul(c0,t0)|0,q=q+Math.imul(M0,I$)|0,Z=Z+Math.imul(M0,$$)|0,Z=Z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0,q=q+Math.imul(I0,X$)|0,Z=Z+Math.imul(I0,e0)|0,Z=Z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,e0)|0;var gU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,q=Math.imul(b0,d0),Z=Math.imul(b0,t0),Z=Z+Math.imul(h0,d0)|0,T=Math.imul(h0,t0),q=q+Math.imul(p0,I$)|0,Z=Z+Math.imul(p0,$$)|0,Z=Z+Math.imul(c0,I$)|0,T=T+Math.imul(c0,$$)|0,q=q+Math.imul(M0,X$)|0,Z=Z+Math.imul(M0,e0)|0,Z=Z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,e0)|0;var fU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,q=Math.imul(b0,I$),Z=Math.imul(b0,$$),Z=Z+Math.imul(h0,I$)|0,T=Math.imul(h0,$$),q=q+Math.imul(p0,X$)|0,Z=Z+Math.imul(p0,e0)|0,Z=Z+Math.imul(c0,X$)|0,T=T+Math.imul(c0,e0)|0;var jU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,q=Math.imul(b0,X$),Z=Math.imul(b0,e0),Z=Z+Math.imul(h0,X$)|0,T=Math.imul(h0,e0);var TU=(j+q|0)+((Z&8191)<<13)|0;if(j=(T+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,C[0]=_U,C[1]=B$,C[2]=j$,C[3]=XU,C[4]=o$,C[5]=cU,C[6]=pU,C[7]=lU,C[8]=mU,C[9]=dU,C[10]=a$,C[11]=qU,C[12]=FU,C[13]=nU,C[14]=SU,C[15]=gU,C[16]=fU,C[17]=jU,C[18]=TU,j!==0)C[19]=j,H.length++;return H};if(!Math.imul)x=f;function b(G,D,H){H.negative=D.negative^G.negative,H.length=G.length+D.length;var K=0,F=0;for(var C=0;C<H.length-1;C++){var j=F;F=0;var q=K&67108863,Z=Math.min(C,D.length-1);for(var T=Math.max(0,C-G.length+1);T<=Z;T++){var w=C-T,B=G.words[w]|0,h=D.words[T]|0,t=B*h,U0=t&67108863;j=j+(t/67108864|0)|0,U0=U0+q|0,q=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}H.words[C]=q,K=j,j=F}if(K!==0)H.words[C]=K;else H.length--;return H.strip()}function k(G,D,H){var K=new u;return K.mulp(G,D,H)}V.prototype.mulTo=function(G,D){var H,K=this.length+G.length;if(this.length===10&&G.length===10)H=x(this,G,D);else if(K<63)H=f(this,G,D);else if(K<1024)H=b(this,G,D);else H=k(this,G,D);return H};function u(G,D){this.x=G,this.y=D}u.prototype.makeRBT=function(G){var D=Array(G),H=V.prototype._countBits(G)-1;for(var K=0;K<G;K++)D[K]=this.revBin(K,H,G);return D},u.prototype.revBin=function(G,D,H){if(G===0||G===H-1)return G;var K=0;for(var F=0;F<D;F++)K|=(G&1)<<D-F-1,G>>=1;return K},u.prototype.permute=function(G,D,H,K,F,C){for(var j=0;j<C;j++)K[j]=D[G[j]],F[j]=H[G[j]]},u.prototype.transform=function(G,D,H,K,F,C){this.permute(C,G,D,H,K,F);for(var j=1;j<F;j<<=1){var q=j<<1,Z=Math.cos(2*Math.PI/q),T=Math.sin(2*Math.PI/q);for(var w=0;w<F;w+=q){var B=Z,h=T;for(var t=0;t<j;t++){var U0=H[w+t],z0=K[w+t],Q0=H[w+t+j],s=K[w+t+j],e=B*Q0-h*s;if(s=B*s+h*Q0,Q0=e,H[w+t]=U0+Q0,K[w+t]=z0+s,H[w+t+j]=U0-Q0,K[w+t+j]=z0-s,t!==q)e=Z*B-T*h,h=Z*h+T*B,B=e}}}},u.prototype.guessLen13b=function(G,D){var H=Math.max(D,G)|1,K=H&1,F=0;for(H=H/2|0;H;H=H>>>1)F++;return 1<<F+1+K},u.prototype.conjugate=function(G,D,H){if(H<=1)return;for(var K=0;K<H/2;K++){var F=G[K];G[K]=G[H-K-1],G[H-K-1]=F,F=D[K],D[K]=-D[H-K-1],D[H-K-1]=-F}},u.prototype.normalize13b=function(G,D){var H=0;for(var K=0;K<D/2;K++){var F=Math.round(G[2*K+1]/D)*8192+Math.round(G[2*K]/D)+H;if(G[K]=F&67108863,F<67108864)H=0;else H=F/67108864|0}return G},u.prototype.convert13b=function(G,D,H,K){var F=0;for(var C=0;C<D;C++)F=F+(G[C]|0),H[2*C]=F&8191,F=F>>>13,H[2*C+1]=F&8191,F=F>>>13;for(C=2*D;C<K;++C)H[C]=0;X(F===0),X((F&-8192)===0)},u.prototype.stub=function(G){var D=Array(G);for(var H=0;H<G;H++)D[H]=0;return D},u.prototype.mulp=function(G,D,H){var K=2*this.guessLen13b(G.length,D.length),F=this.makeRBT(K),C=this.stub(K),j=Array(K),q=Array(K),Z=Array(K),T=Array(K),w=Array(K),B=Array(K),h=H.words;h.length=K,this.convert13b(G.words,G.length,j,K),this.convert13b(D.words,D.length,T,K),this.transform(j,C,q,Z,K,F),this.transform(T,C,w,B,K,F);for(var t=0;t<K;t++){var U0=q[t]*w[t]-Z[t]*B[t];Z[t]=q[t]*B[t]+Z[t]*w[t],q[t]=U0}return this.conjugate(q,Z,K),this.transform(q,Z,h,C,K,F),this.conjugate(h,C,K),this.normalize13b(h,K),H.negative=G.negative^D.negative,H.length=G.length+D.length,H.strip()},V.prototype.mul=function(G){var D=new V(null);return D.words=Array(this.length+G.length),this.mulTo(G,D)},V.prototype.mulf=function(G){var D=new V(null);return D.words=Array(this.length+G.length),k(this,G,D)},V.prototype.imul=function(G){return this.clone().mulTo(G,this)},V.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var D=0;for(var H=0;H<this.length;H++){var K=(this.words[H]|0)*G,F=(K&67108863)+(D&67108863);D>>=26,D+=K/67108864|0,D+=F>>>26,this.words[H]=F&67108863}if(D!==0)this.words[H]=D,this.length++;return this.length=G===0?1:this.length,this},V.prototype.muln=function(G){return this.clone().imuln(G)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(G){var D=N(G);if(D.length===0)return new V(1);var H=this;for(var K=0;K<D.length;K++,H=H.sqr())if(D[K]!==0)break;if(++K<D.length)for(var F=H.sqr();K<D.length;K++,F=F.sqr()){if(D[K]===0)continue;H=H.mul(F)}return H},V.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=67108863>>>26-D<<26-D,F;if(D!==0){var C=0;for(F=0;F<this.length;F++){var j=this.words[F]&K,q=(this.words[F]|0)-j<<D;this.words[F]=q|C,C=j>>>26-D}if(C)this.words[F]=C,this.length++}if(H!==0){for(F=this.length-1;F>=0;F--)this.words[F+H]=this.words[F];for(F=0;F<H;F++)this.words[F]=0;this.length+=H}return this.strip()},V.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},V.prototype.iushrn=function(G,D,H){X(typeof G==="number"&&G>=0);var K;if(D)K=(D-D%26)/26;else K=0;var F=G%26,C=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,q=H;if(K-=C,K=Math.max(0,K),q){for(var Z=0;Z<C;Z++)q.words[Z]=this.words[Z];q.length=C}if(C===0);else if(this.length>C){this.length-=C;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+C]}else this.words[0]=0,this.length=1;var T=0;for(Z=this.length-1;Z>=0&&(T!==0||Z>=K);Z--){var w=this.words[Z]|0;this.words[Z]=T<<26-F|w>>>F,T=w&j}if(q&&T!==0)q.words[q.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(G,D,H){return X(this.negative===0),this.iushrn(G,D,H)},V.prototype.shln=function(G){return this.clone().ishln(G)},V.prototype.ushln=function(G){return this.clone().iushln(G)},V.prototype.shrn=function(G){return this.clone().ishrn(G)},V.prototype.ushrn=function(G){return this.clone().iushrn(G)},V.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return!1;var F=this.words[H];return!!(F&K)},V.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=H)return this;if(D!==0)H++;if(this.length=Math.min(H,this.length),D!==0){var K=67108863^67108863>>>D<<D;this.words[this.length-1]&=K}return this.strip()},V.prototype.maskn=function(G){return this.clone().imaskn(G)},V.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},V.prototype._iaddn=function(G){this.words[0]+=G;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)if(this.words[D]-=67108864,D===this.length-1)this.words[D+1]=1;else this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},V.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},V.prototype.addn=function(G){return this.clone().iaddn(G)},V.prototype.subn=function(G){return this.clone().isubn(G)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(G,D,H){var K=G.length+H,F;this._expand(K);var C,j=0;for(F=0;F<G.length;F++){C=(this.words[F+H]|0)+j;var q=(G.words[F]|0)*D;C-=q&67108863,j=(C>>26)-(q/67108864|0),this.words[F+H]=C&67108863}for(;F<this.length-H;F++)C=(this.words[F+H]|0)+j,j=C>>26,this.words[F+H]=C&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)C=-(this.words[F]|0)+j,j=C>>26,this.words[F]=C&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(G,D){var H=this.length-G.length,K=this.clone(),F=G,C=F.words[F.length-1]|0,j=this._countBits(C);if(H=26-j,H!==0)F=F.ushln(H),K.iushln(H),C=F.words[F.length-1]|0;var q=K.length-F.length,Z;if(D!=="mod"){Z=new V(null),Z.length=q+1,Z.words=Array(Z.length);for(var T=0;T<Z.length;T++)Z.words[T]=0}var w=K.clone()._ishlnsubmul(F,1,q);if(w.negative===0){if(K=w,Z)Z.words[q]=1}for(var B=q-1;B>=0;B--){var h=(K.words[F.length+B]|0)*67108864+(K.words[F.length+B-1]|0);h=Math.min(h/C|0,67108863),K._ishlnsubmul(F,h,B);while(K.negative!==0)if(h--,K.negative=0,K._ishlnsubmul(F,1,B),!K.isZero())K.negative^=1;if(Z)Z.words[B]=h}if(Z)Z.strip();if(K.strip(),D!=="div"&&H!==0)K.iushrn(H);return{div:Z||null,mod:K}},V.prototype.divmod=function(G,D,H){if(X(!G.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var K,F,C;if(this.negative!==0&&G.negative===0){if(C=this.neg().divmod(G,D),D!=="mod")K=C.div.neg();if(D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.iadd(G)}return{div:K,mod:F}}if(this.negative===0&&G.negative!==0){if(C=this.divmod(G.neg(),D),D!=="mod")K=C.div.neg();return{div:K,mod:C.mod}}if((this.negative&G.negative)!==0){if(C=this.neg().divmod(G.neg(),D),D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.isub(G)}return{div:C.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new V(0),mod:this};if(G.length===1){if(D==="div")return{div:this.divn(G.words[0]),mod:null};if(D==="mod")return{div:null,mod:new V(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new V(this.modn(G.words[0]))}}return this._wordDiv(G,D)},V.prototype.div=function(G){return this.divmod(G,"div",!1).div},V.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},V.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},V.prototype.divRound=function(G){var D=this.divmod(G);if(D.mod.isZero())return D.div;var H=D.div.negative!==0?D.mod.isub(G):D.mod,K=G.ushrn(1),F=G.andln(1),C=H.cmp(K);if(C<0||F===1&&C===0)return D.div;return D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},V.prototype.modn=function(G){X(G<=67108863);var D=67108864%G,H=0;for(var K=this.length-1;K>=0;K--)H=(D*H+(this.words[K]|0))%G;return H},V.prototype.idivn=function(G){X(G<=67108863);var D=0;for(var H=this.length-1;H>=0;H--){var K=(this.words[H]|0)+D*67108864;this.words[H]=K/G|0,D=K%G}return this.strip()},V.prototype.divn=function(G){return this.clone().idivn(G)},V.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=new V(0),j=new V(1),q=0;while(D.isEven()&&H.isEven())D.iushrn(1),H.iushrn(1),++q;var Z=H.clone(),T=D.clone();while(!D.isZero()){for(var w=0,B=1;(D.words[0]&B)===0&&w<26;++w,B<<=1);if(w>0){D.iushrn(w);while(w-- >0){if(K.isOdd()||F.isOdd())K.iadd(Z),F.isub(T);K.iushrn(1),F.iushrn(1)}}for(var h=0,t=1;(H.words[0]&t)===0&&h<26;++h,t<<=1);if(h>0){H.iushrn(h);while(h-- >0){if(C.isOdd()||j.isOdd())C.iadd(Z),j.isub(T);C.iushrn(1),j.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(C),F.isub(j);else H.isub(D),C.isub(K),j.isub(F)}return{a:C,b:j,gcd:H.iushln(q)}},V.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=H.clone();while(D.cmpn(1)>0&&H.cmpn(1)>0){for(var j=0,q=1;(D.words[0]&q)===0&&j<26;++j,q<<=1);if(j>0){D.iushrn(j);while(j-- >0){if(K.isOdd())K.iadd(C);K.iushrn(1)}}for(var Z=0,T=1;(H.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0){H.iushrn(Z);while(Z-- >0){if(F.isOdd())F.iadd(C);F.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(F);else H.isub(D),F.isub(K)}var w;if(D.cmpn(1)===0)w=K;else w=F;if(w.cmpn(0)<0)w.iadd(G);return w},V.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var D=this.clone(),H=G.clone();D.negative=0,H.negative=0;for(var K=0;D.isEven()&&H.isEven();K++)D.iushrn(1),H.iushrn(1);do{while(D.isEven())D.iushrn(1);while(H.isEven())H.iushrn(1);var F=D.cmp(H);if(F<0){var C=D;D=H,H=C}else if(F===0||H.cmpn(1)===0)break;D.isub(H)}while(!0);return H.iushln(K)},V.prototype.invm=function(G){return this.egcd(G).a.umod(G)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(G){return this.words[0]&G},V.prototype.bincn=function(G){X(typeof G==="number");var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return this._expand(H+1),this.words[H]|=K,this;var F=K;for(var C=H;F!==0&&C<this.length;C++){var j=this.words[C]|0;j+=F,F=j>>>26,j&=67108863,this.words[C]=j}if(F!==0)this.words[C]=F,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(G){var D=G<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;this.strip();var H;if(this.length>1)H=1;else{if(D)G=-G;X(G<=67108863,"Number is too big");var K=this.words[0]|0;H=K===G?0:K<G?-1:1}if(this.negative!==0)return-H|0;return H},V.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var D=this.ucmp(G);if(this.negative!==0)return-D|0;return D},V.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var D=0;for(var H=this.length-1;H>=0;H--){var K=this.words[H]|0,F=G.words[H]|0;if(K===F)continue;if(K<F)D=-1;else if(K>F)D=1;break}return D},V.prototype.gtn=function(G){return this.cmpn(G)===1},V.prototype.gt=function(G){return this.cmp(G)===1},V.prototype.gten=function(G){return this.cmpn(G)>=0},V.prototype.gte=function(G){return this.cmp(G)>=0},V.prototype.ltn=function(G){return this.cmpn(G)===-1},V.prototype.lt=function(G){return this.cmp(G)===-1},V.prototype.lten=function(G){return this.cmpn(G)<=0},V.prototype.lte=function(G){return this.cmp(G)<=0},V.prototype.eqn=function(G){return this.cmpn(G)===0},V.prototype.eq=function(G){return this.cmp(G)===0},V.red=function(G){return new o(G)},V.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},V.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(G){return this.red=G,this},V.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},V.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},V.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},V.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},V.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},V.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},V.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},V.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},V.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function m(G,D){this.name=G,this.p=new V(D,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}m.prototype._tmp=function(){var G=new V(null);return G.words=Array(Math.ceil(this.n/13)),G},m.prototype.ireduce=function(G){var D=G,H;do this.split(D,this.tmp),D=this.imulK(D),D=D.iadd(this.tmp),H=D.bitLength();while(H>this.n);var K=H<this.n?-1:D.ucmp(this.p);if(K===0)D.words[0]=0,D.length=1;else if(K>0)D.isub(this.p);else if(D.strip!==void 0)D.strip();else D._strip();return D},m.prototype.split=function(G,D){G.iushrn(this.n,0,D)},m.prototype.imulK=function(G){return G.imul(this.k)};function a(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}z(a,m),a.prototype.split=function(G,D){var H=4194303,K=Math.min(G.length,9);for(var F=0;F<K;F++)D.words[F]=G.words[F];if(D.length=K,G.length<=9){G.words[0]=0,G.length=1;return}var C=G.words[9];D.words[D.length++]=C&H;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&H)<<4|C>>>22,C=j}if(C>>>=22,G.words[F-10]=C,C===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var D=0;for(var H=0;H<G.length;H++){var K=G.words[H]|0;D+=K*977,G.words[H]=D&67108863,D=K*64+(D/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function Z0(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}z(Z0,m);function L0(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}z(L0,m);function C0(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}z(C0,m),C0.prototype.imulK=function(G){var D=0;for(var H=0;H<G.length;H++){var K=(G.words[H]|0)*19+D,F=K&67108863;K>>>=26,G.words[H]=F,D=K}if(D!==0)G.words[G.length++]=D;return G},V._prime=function(G){if(p[G])return p[G];var D;if(G==="k256")D=new a;else if(G==="p224")D=new Z0;else if(G==="p192")D=new L0;else if(G==="p25519")D=new C0;else throw Error("Unknown prime "+G);return p[G]=D,D};function o(G){if(typeof G==="string"){var D=V._prime(G);this.m=D.p,this.prime=D}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}o.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},o.prototype._verify2=function(G,D){X((G.negative|D.negative)===0,"red works only with positives"),X(G.red&&G.red===D.red,"red works only with red numbers")},o.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},o.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},o.prototype.add=function(G,D){this._verify2(G,D);var H=G.add(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H._forceRed(this)},o.prototype.iadd=function(G,D){this._verify2(G,D);var H=G.iadd(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H},o.prototype.sub=function(G,D){this._verify2(G,D);var H=G.sub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H._forceRed(this)},o.prototype.isub=function(G,D){this._verify2(G,D);var H=G.isub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H},o.prototype.shl=function(G,D){return this._verify1(G),this.imod(G.ushln(D))},o.prototype.imul=function(G,D){return this._verify2(G,D),this.imod(G.imul(D))},o.prototype.mul=function(G,D){return this._verify2(G,D),this.imod(G.mul(D))},o.prototype.isqr=function(G){return this.imul(G,G.clone())},o.prototype.sqr=function(G){return this.mul(G,G)},o.prototype.sqrt=function(G){if(G.isZero())return G.clone();var D=this.m.andln(3);if(X(D%2===1),D===3){var H=this.m.add(new V(1)).iushrn(2);return this.pow(G,H)}var K=this.m.subn(1),F=0;while(!K.isZero()&&K.andln(1)===0)F++,K.iushrn(1);X(!K.isZero());var C=new V(1).toRed(this),j=C.redNeg(),q=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,q).cmp(j)!==0)Z.redIAdd(j);var T=this.pow(Z,K),w=this.pow(G,K.addn(1).iushrn(1)),B=this.pow(G,K),h=F;while(B.cmp(C)!==0){var t=B;for(var U0=0;t.cmp(C)!==0;U0++)t=t.redSqr();X(U0<h);var z0=this.pow(T,new V(1).iushln(h-U0-1));w=w.redMul(z0),T=z0.redSqr(),B=B.redMul(T),h=U0}return w},o.prototype.invm=function(G){var D=G._invmp(this.m);if(D.negative!==0)return D.negative=0,this.imod(D).redNeg();else return this.imod(D)},o.prototype.pow=function(G,D){if(D.isZero())return new V(1).toRed(this);if(D.cmpn(1)===0)return G.clone();var H=4,K=Array(1<<H);K[0]=new V(1).toRed(this),K[1]=G;for(var F=2;F<K.length;F++)K[F]=this.mul(K[F-1],G);var C=K[0],j=0,q=0,Z=D.bitLength()%26;if(Z===0)Z=26;for(F=D.length-1;F>=0;F--){var T=D.words[F];for(var w=Z-1;w>=0;w--){var B=T>>w&1;if(C!==K[0])C=this.sqr(C);if(B===0&&j===0){q=0;continue}if(j<<=1,j|=B,q++,q!==H&&(F!==0||w!==0))continue;C=this.mul(C,K[j]),q=0,j=0}Z=26}return C},o.prototype.convertTo=function(G){var D=G.umod(this.m);return D===G?D.clone():D},o.prototype.convertFrom=function(G){var D=G.clone();return D.red=null,D},V.mont=function(G){return new q0(G)};function q0(G){if(o.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z(q0,o),q0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},q0.prototype.convertFrom=function(G){var D=this.imod(G.mul(this.rinv));return D.red=null,D},q0.prototype.imul=function(G,D){if(G.isZero()||D.isZero())return G.words[0]=0,G.length=1,G;var H=G.imul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.mul=function(G,D){if(G.isZero()||D.isZero())return new V(0)._forceRed(this);var H=G.mul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.invm=function(G){var D=this.imod(G._invmp(this.m).mul(this.r2));return D._forceRed(this)}})(typeof J>"u"||J,U)}),Bu=u0((U,J)=>{var Q=ju(),O=vu();J.exports=function(L){return new z(L)};var X={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};X.p224=X.secp224r1,X.p256=X.secp256r1=X.prime256v1,X.p192=X.secp192r1=X.prime192v1,X.p384=X.secp384r1,X.p521=X.secp521r1;function z(L){if(this.curveType=X[L],!this.curveType)this.curveType={name:L};this.curve=new Q.ec(this.curveType.name),this.keys=void 0}z.prototype.generateKeys=function(L,S){return this.keys=this.curve.genKeyPair(),this.getPublicKey(L,S)},z.prototype.computeSecret=function(L,S,E){if(S=S||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,S);var _=this.curve.keyFromPublic(L).getPublic(),M=_.mul(this.keys.getPrivate()).getX();return V(M,E,this.curveType.byteLength)},z.prototype.getPublicKey=function(L,S){var E=this.keys.getPublic(S==="compressed",!0);if(S==="hybrid")if(E[E.length-1]%2)E[0]=7;else E[0]=6;return V(E,L)},z.prototype.getPrivateKey=function(L){return V(this.keys.getPrivate(),L)},z.prototype.setPublicKey=function(L,S){if(S=S||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,S);return this.keys._importPublic(L),this},z.prototype.setPrivateKey=function(L,S){if(S=S||"utf8",!Buffer.isBuffer(L))L=new Buffer(L,S);var E=new O(L);return E=E.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(E),this};function V(L,S,E){if(!Array.isArray(L))L=L.toArray();var _=new Buffer(L);if(E&&_.length<E){var M=new Buffer(E-_.length);M.fill(0),_=Buffer.concat([M,_])}if(!S)return _;else return _.toString(S)}}),Nu=u0((U,J)=>{var Q=(hU(),v$(q4)).createECDH;J.exports=Q||Bu()}),ku=u0((U,J)=>{(function(Q,O){function X(G,D){if(!G)throw Error(D||"Assertion failed")}function z(G,D){G.super_=D;var H=function(){};H.prototype=D.prototype,G.prototype=new H,G.prototype.constructor=G}function V(G,D,H){if(V.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(D==="le"||D==="be")H=D,D=10;this._init(G||0,D||10,H||"be")}}if(typeof Q==="object")Q.exports=V;else O.BN=V;V.BN=V,V.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(tU(),v$(rU)).Buffer}catch(G){}V.isBN=function(G){if(G instanceof V)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===V.wordSize&&Array.isArray(G.words)},V.max=function(G,D){if(G.cmp(D)>0)return G;return D},V.min=function(G,D){if(G.cmp(D)<0)return G;return D},V.prototype._init=function(G,D,H){if(typeof G==="number")return this._initNumber(G,D,H);if(typeof G==="object")return this._initArray(G,D,H);if(D==="hex")D=16;X(D===(D|0)&&D>=2&&D<=36),G=G.toString().replace(/\s+/g,"");var K=0;if(G[0]==="-")K++,this.negative=1;if(K<G.length){if(D===16)this._parseHex(G,K,H);else if(this._parseBase(G,D,K),H==="le")this._initArray(this.toArray(),D,H)}},V.prototype._initNumber=function(G,D,H){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(H!=="le")return;this._initArray(this.toArray(),D,H)},V.prototype._initArray=function(G,D,H){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F,C,j=0;if(H==="be"){for(K=G.length-1,F=0;K>=0;K-=3)if(C=G[K]|G[K-1]<<8|G[K-2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(H==="le"){for(K=0,F=0;K<G.length;K+=3)if(C=G[K]|G[K+1]<<8|G[K+2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function S(G,D){var H=G.charCodeAt(D);if(H>=65&&H<=70)return H-55;else if(H>=97&&H<=102)return H-87;else return H-48&15}function E(G,D,H){var K=S(G,H);if(H-1>=D)K|=S(G,H-1)<<4;return K}V.prototype._parseHex=function(G,D,H){this.length=Math.ceil((G.length-D)/6),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F=0,C=0,j;if(H==="be")for(K=G.length-1;K>=D;K-=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8;else{var q=G.length-D;for(K=q%2===0?D+1:D;K<G.length;K+=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8}this.strip()};function _(G,D,H,K){var F=0,C=Math.min(G.length,H);for(var j=D;j<C;j++){var q=G.charCodeAt(j)-48;if(F*=K,q>=49)F+=q-49+10;else if(q>=17)F+=q-17+10;else F+=q}return F}V.prototype._parseBase=function(G,D,H){this.words=[0],this.length=1;for(var K=0,F=1;F<=67108863;F*=D)K++;K--,F=F/D|0;var C=G.length-H,j=C%K,q=Math.min(C,C-j)+H,Z=0;for(var T=H;T<q;T+=K)if(Z=_(G,T,T+K,D),this.imuln(F),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(j!==0){var w=1;Z=_(G,T,G.length,D);for(T=0;T<j;T++)w*=D;if(this.imuln(w),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(G){G.words=Array(this.length);for(var D=0;D<this.length;D++)G.words[D]=this.words[D];G.length=this.length,G.negative=this.negative,G.red=this.red},V.prototype.clone=function(){var G=new V(null);return this.copy(G),G},V.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(G,D){G=G||10,D=D|0||1;var H;if(G===16||G==="hex"){H="";var K=0,F=0;for(var C=0;C<this.length;C++){var j=this.words[C],q=((j<<K|F)&16777215).toString(16);if(F=j>>>24-K&16777215,K+=2,K>=26)K-=26,C--;if(F!==0||C!==this.length-1)H=M[6-q.length]+q+H;else H=q+H}if(F!==0)H=F.toString(16)+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}if(G===(G|0)&&G>=2&&G<=36){var Z=P[G],T=v[G];H="";var w=this.clone();w.negative=0;while(!w.isZero()){var B=w.modn(T).toString(G);if(w=w.idivn(T),!w.isZero())H=M[Z-B.length]+B+H;else H=B+H}if(this.isZero())H="0"+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}X(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(G,D){return X(typeof L<"u"),this.toArrayLike(L,G,D)},V.prototype.toArray=function(G,D){return this.toArrayLike(Array,G,D)},V.prototype.toArrayLike=function(G,D,H){var K=this.byteLength(),F=H||Math.max(1,K);X(K<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var C=D==="le",j=new G(F),q,Z,T=this.clone();if(!C){for(Z=0;Z<F-K;Z++)j[Z]=0;for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[F-Z-1]=q}else{for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[Z]=q;for(;Z<F;Z++)j[Z]=0}return j},Math.clz32)V.prototype._countBits=function(G){return 32-Math.clz32(G)};else V.prototype._countBits=function(G){var D=G,H=0;if(D>=4096)H+=13,D>>>=13;if(D>=64)H+=7,D>>>=7;if(D>=8)H+=4,D>>>=4;if(D>=2)H+=2,D>>>=2;return H+D};V.prototype._zeroBits=function(G){if(G===0)return 26;var D=G,H=0;if((D&8191)===0)H+=13,D>>>=13;if((D&127)===0)H+=7,D>>>=7;if((D&15)===0)H+=4,D>>>=4;if((D&3)===0)H+=2,D>>>=2;if((D&1)===0)H++;return H},V.prototype.bitLength=function(){var G=this.words[this.length-1],D=this._countBits(G);return(this.length-1)*26+D};function N(G){var D=Array(G.bitLength());for(var H=0;H<D.length;H++){var K=H/26|0,F=H%26;D[H]=(G.words[K]&1<<F)>>>F}return D}V.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var D=0;D<this.length;D++){var H=this._zeroBits(this.words[D]);if(G+=H,H!==26)break}return G},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},V.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var D=0;D<G.length;D++)this.words[D]=this.words[D]|G.words[D];return this.strip()},V.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},V.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},V.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},V.prototype.iuand=function(G){var D;if(this.length>G.length)D=G;else D=this;for(var H=0;H<D.length;H++)this.words[H]=this.words[H]&G.words[H];return this.length=D.length,this.strip()},V.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},V.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},V.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},V.prototype.iuxor=function(G){var D,H;if(this.length>G.length)D=this,H=G;else D=G,H=this;for(var K=0;K<H.length;K++)this.words[K]=D.words[K]^H.words[K];if(this!==D)for(;K<D.length;K++)this.words[K]=D.words[K];return this.length=D.length,this.strip()},V.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},V.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},V.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},V.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var D=Math.ceil(G/26)|0,H=G%26;if(this._expand(D),H>0)D--;for(var K=0;K<D;K++)this.words[K]=~this.words[K]&67108863;if(H>0)this.words[K]=~this.words[K]&67108863>>26-H;return this.strip()},V.prototype.notn=function(G){return this.clone().inotn(G)},V.prototype.setn=function(G,D){X(typeof G==="number"&&G>=0);var H=G/26|0,K=G%26;if(this._expand(H+1),D)this.words[H]=this.words[H]|1<<K;else this.words[H]=this.words[H]&~(1<<K);return this.strip()},V.prototype.iadd=function(G){var D;if(this.negative!==0&&G.negative===0)return this.negative=0,D=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,D=this.isub(G),G.negative=1,D._normSign();var H,K;if(this.length>G.length)H=this,K=G;else H=G,K=this;var F=0;for(var C=0;C<K.length;C++)D=(H.words[C]|0)+(K.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;for(;F!==0&&C<H.length;C++)D=(H.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;if(this.length=H.length,F!==0)this.words[this.length]=F,this.length++;else if(H!==this)for(;C<H.length;C++)this.words[C]=H.words[C];return this},V.prototype.add=function(G){var D;if(G.negative!==0&&this.negative===0)return G.negative=0,D=this.sub(G),G.negative^=1,D;else if(G.negative===0&&this.negative!==0)return this.negative=0,D=G.sub(this),this.negative=1,D;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},V.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var D=this.iadd(G);return G.negative=1,D._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var H=this.cmp(G);if(H===0)return this.negative=0,this.length=1,this.words[0]=0,this;var K,F;if(H>0)K=this,F=G;else K=G,F=this;var C=0;for(var j=0;j<F.length;j++)D=(K.words[j]|0)-(F.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;for(;C!==0&&j<K.length;j++)D=(K.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;if(C===0&&j<K.length&&K!==this)for(;j<K.length;j++)this.words[j]=K.words[j];if(this.length=Math.max(this.length,j),K!==this)this.negative=1;return this.strip()},V.prototype.sub=function(G){return this.clone().isub(G)};function f(G,D,H){H.negative=D.negative^G.negative;var K=G.length+D.length|0;H.length=K,K=K-1|0;var F=G.words[0]|0,C=D.words[0]|0,j=F*C,q=j&67108863,Z=j/67108864|0;H.words[0]=q;for(var T=1;T<K;T++){var w=Z>>>26,B=Z&67108863,h=Math.min(T,D.length-1);for(var t=Math.max(0,T-G.length+1);t<=h;t++){var U0=T-t|0;F=G.words[U0]|0,C=D.words[t]|0,j=F*C+B,w+=j/67108864|0,B=j&67108863}H.words[T]=B|0,Z=w|0}if(Z!==0)H.words[T]=Z|0;else H.length--;return H.strip()}var x=function(G,D,H){var K=G.words,F=D.words,C=H.words,j=0,q,Z,T,w=K[0]|0,B=w&8191,h=w>>>13,t=K[1]|0,U0=t&8191,z0=t>>>13,Q0=K[2]|0,s=Q0&8191,e=Q0>>>13,J0=K[3]|0,V0=J0&8191,A0=J0>>>13,$0=K[4]|0,c=$0&8191,n=$0>>>13,H0=K[5]|0,Y0=H0&8191,D0=H0>>>13,N0=K[6]|0,I0=N0&8191,K0=N0>>>13,U$=K[7]|0,M0=U$&8191,v0=U$>>>13,L$=K[8]|0,p0=L$&8191,c0=L$>>>13,t$=K[9]|0,b0=t$&8191,h0=t$>>>13,VU=F[0]|0,r0=VU&8191,o0=VU>>>13,EU=F[1]|0,l=EU&8191,X0=EU>>>13,s0=F[2]|0,S0=s0&8191,B0=s0>>>13,F$=F[3]|0,g0=F$&8191,f0=F$>>>13,K$=F[4]|0,n0=K$&8191,i0=K$>>>13,WU=F[5]|0,a0=WU&8191,r=WU>>>13,G0=F[6]|0,E0=G0&8191,_0=G0>>>13,Z$=F[7]|0,d0=Z$&8191,t0=Z$>>>13,AU=F[8]|0,I$=AU&8191,$$=AU>>>13,IU=F[9]|0,X$=IU&8191,e0=IU>>>13;H.negative=G.negative^D.negative,H.length=19,q=Math.imul(B,r0),Z=Math.imul(B,o0),Z=Z+Math.imul(h,r0)|0,T=Math.imul(h,o0);var _U=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,q=Math.imul(U0,r0),Z=Math.imul(U0,o0),Z=Z+Math.imul(z0,r0)|0,T=Math.imul(z0,o0),q=q+Math.imul(B,l)|0,Z=Z+Math.imul(B,X0)|0,Z=Z+Math.imul(h,l)|0,T=T+Math.imul(h,X0)|0;var B$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(B$>>>26)|0,B$&=67108863,q=Math.imul(s,r0),Z=Math.imul(s,o0),Z=Z+Math.imul(e,r0)|0,T=Math.imul(e,o0),q=q+Math.imul(U0,l)|0,Z=Z+Math.imul(U0,X0)|0,Z=Z+Math.imul(z0,l)|0,T=T+Math.imul(z0,X0)|0,q=q+Math.imul(B,S0)|0,Z=Z+Math.imul(B,B0)|0,Z=Z+Math.imul(h,S0)|0,T=T+Math.imul(h,B0)|0;var j$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(j$>>>26)|0,j$&=67108863,q=Math.imul(V0,r0),Z=Math.imul(V0,o0),Z=Z+Math.imul(A0,r0)|0,T=Math.imul(A0,o0),q=q+Math.imul(s,l)|0,Z=Z+Math.imul(s,X0)|0,Z=Z+Math.imul(e,l)|0,T=T+Math.imul(e,X0)|0,q=q+Math.imul(U0,S0)|0,Z=Z+Math.imul(U0,B0)|0,Z=Z+Math.imul(z0,S0)|0,T=T+Math.imul(z0,B0)|0,q=q+Math.imul(B,g0)|0,Z=Z+Math.imul(B,f0)|0,Z=Z+Math.imul(h,g0)|0,T=T+Math.imul(h,f0)|0;var XU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,q=Math.imul(c,r0),Z=Math.imul(c,o0),Z=Z+Math.imul(n,r0)|0,T=Math.imul(n,o0),q=q+Math.imul(V0,l)|0,Z=Z+Math.imul(V0,X0)|0,Z=Z+Math.imul(A0,l)|0,T=T+Math.imul(A0,X0)|0,q=q+Math.imul(s,S0)|0,Z=Z+Math.imul(s,B0)|0,Z=Z+Math.imul(e,S0)|0,T=T+Math.imul(e,B0)|0,q=q+Math.imul(U0,g0)|0,Z=Z+Math.imul(U0,f0)|0,Z=Z+Math.imul(z0,g0)|0,T=T+Math.imul(z0,f0)|0,q=q+Math.imul(B,n0)|0,Z=Z+Math.imul(B,i0)|0,Z=Z+Math.imul(h,n0)|0,T=T+Math.imul(h,i0)|0;var o$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(o$>>>26)|0,o$&=67108863,q=Math.imul(Y0,r0),Z=Math.imul(Y0,o0),Z=Z+Math.imul(D0,r0)|0,T=Math.imul(D0,o0),q=q+Math.imul(c,l)|0,Z=Z+Math.imul(c,X0)|0,Z=Z+Math.imul(n,l)|0,T=T+Math.imul(n,X0)|0,q=q+Math.imul(V0,S0)|0,Z=Z+Math.imul(V0,B0)|0,Z=Z+Math.imul(A0,S0)|0,T=T+Math.imul(A0,B0)|0,q=q+Math.imul(s,g0)|0,Z=Z+Math.imul(s,f0)|0,Z=Z+Math.imul(e,g0)|0,T=T+Math.imul(e,f0)|0,q=q+Math.imul(U0,n0)|0,Z=Z+Math.imul(U0,i0)|0,Z=Z+Math.imul(z0,n0)|0,T=T+Math.imul(z0,i0)|0,q=q+Math.imul(B,a0)|0,Z=Z+Math.imul(B,r)|0,Z=Z+Math.imul(h,a0)|0,T=T+Math.imul(h,r)|0;var cU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(cU>>>26)|0,cU&=67108863,q=Math.imul(I0,r0),Z=Math.imul(I0,o0),Z=Z+Math.imul(K0,r0)|0,T=Math.imul(K0,o0),q=q+Math.imul(Y0,l)|0,Z=Z+Math.imul(Y0,X0)|0,Z=Z+Math.imul(D0,l)|0,T=T+Math.imul(D0,X0)|0,q=q+Math.imul(c,S0)|0,Z=Z+Math.imul(c,B0)|0,Z=Z+Math.imul(n,S0)|0,T=T+Math.imul(n,B0)|0,q=q+Math.imul(V0,g0)|0,Z=Z+Math.imul(V0,f0)|0,Z=Z+Math.imul(A0,g0)|0,T=T+Math.imul(A0,f0)|0,q=q+Math.imul(s,n0)|0,Z=Z+Math.imul(s,i0)|0,Z=Z+Math.imul(e,n0)|0,T=T+Math.imul(e,i0)|0,q=q+Math.imul(U0,a0)|0,Z=Z+Math.imul(U0,r)|0,Z=Z+Math.imul(z0,a0)|0,T=T+Math.imul(z0,r)|0,q=q+Math.imul(B,E0)|0,Z=Z+Math.imul(B,_0)|0,Z=Z+Math.imul(h,E0)|0,T=T+Math.imul(h,_0)|0;var pU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(pU>>>26)|0,pU&=67108863,q=Math.imul(M0,r0),Z=Math.imul(M0,o0),Z=Z+Math.imul(v0,r0)|0,T=Math.imul(v0,o0),q=q+Math.imul(I0,l)|0,Z=Z+Math.imul(I0,X0)|0,Z=Z+Math.imul(K0,l)|0,T=T+Math.imul(K0,X0)|0,q=q+Math.imul(Y0,S0)|0,Z=Z+Math.imul(Y0,B0)|0,Z=Z+Math.imul(D0,S0)|0,T=T+Math.imul(D0,B0)|0,q=q+Math.imul(c,g0)|0,Z=Z+Math.imul(c,f0)|0,Z=Z+Math.imul(n,g0)|0,T=T+Math.imul(n,f0)|0,q=q+Math.imul(V0,n0)|0,Z=Z+Math.imul(V0,i0)|0,Z=Z+Math.imul(A0,n0)|0,T=T+Math.imul(A0,i0)|0,q=q+Math.imul(s,a0)|0,Z=Z+Math.imul(s,r)|0,Z=Z+Math.imul(e,a0)|0,T=T+Math.imul(e,r)|0,q=q+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,_0)|0,Z=Z+Math.imul(z0,E0)|0,T=T+Math.imul(z0,_0)|0,q=q+Math.imul(B,d0)|0,Z=Z+Math.imul(B,t0)|0,Z=Z+Math.imul(h,d0)|0,T=T+Math.imul(h,t0)|0;var lU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(lU>>>26)|0,lU&=67108863,q=Math.imul(p0,r0),Z=Math.imul(p0,o0),Z=Z+Math.imul(c0,r0)|0,T=Math.imul(c0,o0),q=q+Math.imul(M0,l)|0,Z=Z+Math.imul(M0,X0)|0,Z=Z+Math.imul(v0,l)|0,T=T+Math.imul(v0,X0)|0,q=q+Math.imul(I0,S0)|0,Z=Z+Math.imul(I0,B0)|0,Z=Z+Math.imul(K0,S0)|0,T=T+Math.imul(K0,B0)|0,q=q+Math.imul(Y0,g0)|0,Z=Z+Math.imul(Y0,f0)|0,Z=Z+Math.imul(D0,g0)|0,T=T+Math.imul(D0,f0)|0,q=q+Math.imul(c,n0)|0,Z=Z+Math.imul(c,i0)|0,Z=Z+Math.imul(n,n0)|0,T=T+Math.imul(n,i0)|0,q=q+Math.imul(V0,a0)|0,Z=Z+Math.imul(V0,r)|0,Z=Z+Math.imul(A0,a0)|0,T=T+Math.imul(A0,r)|0,q=q+Math.imul(s,E0)|0,Z=Z+Math.imul(s,_0)|0,Z=Z+Math.imul(e,E0)|0,T=T+Math.imul(e,_0)|0,q=q+Math.imul(U0,d0)|0,Z=Z+Math.imul(U0,t0)|0,Z=Z+Math.imul(z0,d0)|0,T=T+Math.imul(z0,t0)|0,q=q+Math.imul(B,I$)|0,Z=Z+Math.imul(B,$$)|0,Z=Z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(mU>>>26)|0,mU&=67108863,q=Math.imul(b0,r0),Z=Math.imul(b0,o0),Z=Z+Math.imul(h0,r0)|0,T=Math.imul(h0,o0),q=q+Math.imul(p0,l)|0,Z=Z+Math.imul(p0,X0)|0,Z=Z+Math.imul(c0,l)|0,T=T+Math.imul(c0,X0)|0,q=q+Math.imul(M0,S0)|0,Z=Z+Math.imul(M0,B0)|0,Z=Z+Math.imul(v0,S0)|0,T=T+Math.imul(v0,B0)|0,q=q+Math.imul(I0,g0)|0,Z=Z+Math.imul(I0,f0)|0,Z=Z+Math.imul(K0,g0)|0,T=T+Math.imul(K0,f0)|0,q=q+Math.imul(Y0,n0)|0,Z=Z+Math.imul(Y0,i0)|0,Z=Z+Math.imul(D0,n0)|0,T=T+Math.imul(D0,i0)|0,q=q+Math.imul(c,a0)|0,Z=Z+Math.imul(c,r)|0,Z=Z+Math.imul(n,a0)|0,T=T+Math.imul(n,r)|0,q=q+Math.imul(V0,E0)|0,Z=Z+Math.imul(V0,_0)|0,Z=Z+Math.imul(A0,E0)|0,T=T+Math.imul(A0,_0)|0,q=q+Math.imul(s,d0)|0,Z=Z+Math.imul(s,t0)|0,Z=Z+Math.imul(e,d0)|0,T=T+Math.imul(e,t0)|0,q=q+Math.imul(U0,I$)|0,Z=Z+Math.imul(U0,$$)|0,Z=Z+Math.imul(z0,I$)|0,T=T+Math.imul(z0,$$)|0,q=q+Math.imul(B,X$)|0,Z=Z+Math.imul(B,e0)|0,Z=Z+Math.imul(h,X$)|0,T=T+Math.imul(h,e0)|0;var dU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(dU>>>26)|0,dU&=67108863,q=Math.imul(b0,l),Z=Math.imul(b0,X0),Z=Z+Math.imul(h0,l)|0,T=Math.imul(h0,X0),q=q+Math.imul(p0,S0)|0,Z=Z+Math.imul(p0,B0)|0,Z=Z+Math.imul(c0,S0)|0,T=T+Math.imul(c0,B0)|0,q=q+Math.imul(M0,g0)|0,Z=Z+Math.imul(M0,f0)|0,Z=Z+Math.imul(v0,g0)|0,T=T+Math.imul(v0,f0)|0,q=q+Math.imul(I0,n0)|0,Z=Z+Math.imul(I0,i0)|0,Z=Z+Math.imul(K0,n0)|0,T=T+Math.imul(K0,i0)|0,q=q+Math.imul(Y0,a0)|0,Z=Z+Math.imul(Y0,r)|0,Z=Z+Math.imul(D0,a0)|0,T=T+Math.imul(D0,r)|0,q=q+Math.imul(c,E0)|0,Z=Z+Math.imul(c,_0)|0,Z=Z+Math.imul(n,E0)|0,T=T+Math.imul(n,_0)|0,q=q+Math.imul(V0,d0)|0,Z=Z+Math.imul(V0,t0)|0,Z=Z+Math.imul(A0,d0)|0,T=T+Math.imul(A0,t0)|0,q=q+Math.imul(s,I$)|0,Z=Z+Math.imul(s,$$)|0,Z=Z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0,q=q+Math.imul(U0,X$)|0,Z=Z+Math.imul(U0,e0)|0,Z=Z+Math.imul(z0,X$)|0,T=T+Math.imul(z0,e0)|0;var a$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(a$>>>26)|0,a$&=67108863,q=Math.imul(b0,S0),Z=Math.imul(b0,B0),Z=Z+Math.imul(h0,S0)|0,T=Math.imul(h0,B0),q=q+Math.imul(p0,g0)|0,Z=Z+Math.imul(p0,f0)|0,Z=Z+Math.imul(c0,g0)|0,T=T+Math.imul(c0,f0)|0,q=q+Math.imul(M0,n0)|0,Z=Z+Math.imul(M0,i0)|0,Z=Z+Math.imul(v0,n0)|0,T=T+Math.imul(v0,i0)|0,q=q+Math.imul(I0,a0)|0,Z=Z+Math.imul(I0,r)|0,Z=Z+Math.imul(K0,a0)|0,T=T+Math.imul(K0,r)|0,q=q+Math.imul(Y0,E0)|0,Z=Z+Math.imul(Y0,_0)|0,Z=Z+Math.imul(D0,E0)|0,T=T+Math.imul(D0,_0)|0,q=q+Math.imul(c,d0)|0,Z=Z+Math.imul(c,t0)|0,Z=Z+Math.imul(n,d0)|0,T=T+Math.imul(n,t0)|0,q=q+Math.imul(V0,I$)|0,Z=Z+Math.imul(V0,$$)|0,Z=Z+Math.imul(A0,I$)|0,T=T+Math.imul(A0,$$)|0,q=q+Math.imul(s,X$)|0,Z=Z+Math.imul(s,e0)|0,Z=Z+Math.imul(e,X$)|0,T=T+Math.imul(e,e0)|0;var qU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,q=Math.imul(b0,g0),Z=Math.imul(b0,f0),Z=Z+Math.imul(h0,g0)|0,T=Math.imul(h0,f0),q=q+Math.imul(p0,n0)|0,Z=Z+Math.imul(p0,i0)|0,Z=Z+Math.imul(c0,n0)|0,T=T+Math.imul(c0,i0)|0,q=q+Math.imul(M0,a0)|0,Z=Z+Math.imul(M0,r)|0,Z=Z+Math.imul(v0,a0)|0,T=T+Math.imul(v0,r)|0,q=q+Math.imul(I0,E0)|0,Z=Z+Math.imul(I0,_0)|0,Z=Z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,_0)|0,q=q+Math.imul(Y0,d0)|0,Z=Z+Math.imul(Y0,t0)|0,Z=Z+Math.imul(D0,d0)|0,T=T+Math.imul(D0,t0)|0,q=q+Math.imul(c,I$)|0,Z=Z+Math.imul(c,$$)|0,Z=Z+Math.imul(n,I$)|0,T=T+Math.imul(n,$$)|0,q=q+Math.imul(V0,X$)|0,Z=Z+Math.imul(V0,e0)|0,Z=Z+Math.imul(A0,X$)|0,T=T+Math.imul(A0,e0)|0;var FU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,q=Math.imul(b0,n0),Z=Math.imul(b0,i0),Z=Z+Math.imul(h0,n0)|0,T=Math.imul(h0,i0),q=q+Math.imul(p0,a0)|0,Z=Z+Math.imul(p0,r)|0,Z=Z+Math.imul(c0,a0)|0,T=T+Math.imul(c0,r)|0,q=q+Math.imul(M0,E0)|0,Z=Z+Math.imul(M0,_0)|0,Z=Z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,_0)|0,q=q+Math.imul(I0,d0)|0,Z=Z+Math.imul(I0,t0)|0,Z=Z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,t0)|0,q=q+Math.imul(Y0,I$)|0,Z=Z+Math.imul(Y0,$$)|0,Z=Z+Math.imul(D0,I$)|0,T=T+Math.imul(D0,$$)|0,q=q+Math.imul(c,X$)|0,Z=Z+Math.imul(c,e0)|0,Z=Z+Math.imul(n,X$)|0,T=T+Math.imul(n,e0)|0;var nU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(nU>>>26)|0,nU&=67108863,q=Math.imul(b0,a0),Z=Math.imul(b0,r),Z=Z+Math.imul(h0,a0)|0,T=Math.imul(h0,r),q=q+Math.imul(p0,E0)|0,Z=Z+Math.imul(p0,_0)|0,Z=Z+Math.imul(c0,E0)|0,T=T+Math.imul(c0,_0)|0,q=q+Math.imul(M0,d0)|0,Z=Z+Math.imul(M0,t0)|0,Z=Z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,t0)|0,q=q+Math.imul(I0,I$)|0,Z=Z+Math.imul(I0,$$)|0,Z=Z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0,q=q+Math.imul(Y0,X$)|0,Z=Z+Math.imul(Y0,e0)|0,Z=Z+Math.imul(D0,X$)|0,T=T+Math.imul(D0,e0)|0;var SU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(SU>>>26)|0,SU&=67108863,q=Math.imul(b0,E0),Z=Math.imul(b0,_0),Z=Z+Math.imul(h0,E0)|0,T=Math.imul(h0,_0),q=q+Math.imul(p0,d0)|0,Z=Z+Math.imul(p0,t0)|0,Z=Z+Math.imul(c0,d0)|0,T=T+Math.imul(c0,t0)|0,q=q+Math.imul(M0,I$)|0,Z=Z+Math.imul(M0,$$)|0,Z=Z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0,q=q+Math.imul(I0,X$)|0,Z=Z+Math.imul(I0,e0)|0,Z=Z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,e0)|0;var gU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,q=Math.imul(b0,d0),Z=Math.imul(b0,t0),Z=Z+Math.imul(h0,d0)|0,T=Math.imul(h0,t0),q=q+Math.imul(p0,I$)|0,Z=Z+Math.imul(p0,$$)|0,Z=Z+Math.imul(c0,I$)|0,T=T+Math.imul(c0,$$)|0,q=q+Math.imul(M0,X$)|0,Z=Z+Math.imul(M0,e0)|0,Z=Z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,e0)|0;var fU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,q=Math.imul(b0,I$),Z=Math.imul(b0,$$),Z=Z+Math.imul(h0,I$)|0,T=Math.imul(h0,$$),q=q+Math.imul(p0,X$)|0,Z=Z+Math.imul(p0,e0)|0,Z=Z+Math.imul(c0,X$)|0,T=T+Math.imul(c0,e0)|0;var jU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,q=Math.imul(b0,X$),Z=Math.imul(b0,e0),Z=Z+Math.imul(h0,X$)|0,T=Math.imul(h0,e0);var TU=(j+q|0)+((Z&8191)<<13)|0;if(j=(T+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,C[0]=_U,C[1]=B$,C[2]=j$,C[3]=XU,C[4]=o$,C[5]=cU,C[6]=pU,C[7]=lU,C[8]=mU,C[9]=dU,C[10]=a$,C[11]=qU,C[12]=FU,C[13]=nU,C[14]=SU,C[15]=gU,C[16]=fU,C[17]=jU,C[18]=TU,j!==0)C[19]=j,H.length++;return H};if(!Math.imul)x=f;function b(G,D,H){H.negative=D.negative^G.negative,H.length=G.length+D.length;var K=0,F=0;for(var C=0;C<H.length-1;C++){var j=F;F=0;var q=K&67108863,Z=Math.min(C,D.length-1);for(var T=Math.max(0,C-G.length+1);T<=Z;T++){var w=C-T,B=G.words[w]|0,h=D.words[T]|0,t=B*h,U0=t&67108863;j=j+(t/67108864|0)|0,U0=U0+q|0,q=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}H.words[C]=q,K=j,j=F}if(K!==0)H.words[C]=K;else H.length--;return H.strip()}function k(G,D,H){var K=new u;return K.mulp(G,D,H)}V.prototype.mulTo=function(G,D){var H,K=this.length+G.length;if(this.length===10&&G.length===10)H=x(this,G,D);else if(K<63)H=f(this,G,D);else if(K<1024)H=b(this,G,D);else H=k(this,G,D);return H};function u(G,D){this.x=G,this.y=D}u.prototype.makeRBT=function(G){var D=Array(G),H=V.prototype._countBits(G)-1;for(var K=0;K<G;K++)D[K]=this.revBin(K,H,G);return D},u.prototype.revBin=function(G,D,H){if(G===0||G===H-1)return G;var K=0;for(var F=0;F<D;F++)K|=(G&1)<<D-F-1,G>>=1;return K},u.prototype.permute=function(G,D,H,K,F,C){for(var j=0;j<C;j++)K[j]=D[G[j]],F[j]=H[G[j]]},u.prototype.transform=function(G,D,H,K,F,C){this.permute(C,G,D,H,K,F);for(var j=1;j<F;j<<=1){var q=j<<1,Z=Math.cos(2*Math.PI/q),T=Math.sin(2*Math.PI/q);for(var w=0;w<F;w+=q){var B=Z,h=T;for(var t=0;t<j;t++){var U0=H[w+t],z0=K[w+t],Q0=H[w+t+j],s=K[w+t+j],e=B*Q0-h*s;if(s=B*s+h*Q0,Q0=e,H[w+t]=U0+Q0,K[w+t]=z0+s,H[w+t+j]=U0-Q0,K[w+t+j]=z0-s,t!==q)e=Z*B-T*h,h=Z*h+T*B,B=e}}}},u.prototype.guessLen13b=function(G,D){var H=Math.max(D,G)|1,K=H&1,F=0;for(H=H/2|0;H;H=H>>>1)F++;return 1<<F+1+K},u.prototype.conjugate=function(G,D,H){if(H<=1)return;for(var K=0;K<H/2;K++){var F=G[K];G[K]=G[H-K-1],G[H-K-1]=F,F=D[K],D[K]=-D[H-K-1],D[H-K-1]=-F}},u.prototype.normalize13b=function(G,D){var H=0;for(var K=0;K<D/2;K++){var F=Math.round(G[2*K+1]/D)*8192+Math.round(G[2*K]/D)+H;if(G[K]=F&67108863,F<67108864)H=0;else H=F/67108864|0}return G},u.prototype.convert13b=function(G,D,H,K){var F=0;for(var C=0;C<D;C++)F=F+(G[C]|0),H[2*C]=F&8191,F=F>>>13,H[2*C+1]=F&8191,F=F>>>13;for(C=2*D;C<K;++C)H[C]=0;X(F===0),X((F&-8192)===0)},u.prototype.stub=function(G){var D=Array(G);for(var H=0;H<G;H++)D[H]=0;return D},u.prototype.mulp=function(G,D,H){var K=2*this.guessLen13b(G.length,D.length),F=this.makeRBT(K),C=this.stub(K),j=Array(K),q=Array(K),Z=Array(K),T=Array(K),w=Array(K),B=Array(K),h=H.words;h.length=K,this.convert13b(G.words,G.length,j,K),this.convert13b(D.words,D.length,T,K),this.transform(j,C,q,Z,K,F),this.transform(T,C,w,B,K,F);for(var t=0;t<K;t++){var U0=q[t]*w[t]-Z[t]*B[t];Z[t]=q[t]*B[t]+Z[t]*w[t],q[t]=U0}return this.conjugate(q,Z,K),this.transform(q,Z,h,C,K,F),this.conjugate(h,C,K),this.normalize13b(h,K),H.negative=G.negative^D.negative,H.length=G.length+D.length,H.strip()},V.prototype.mul=function(G){var D=new V(null);return D.words=Array(this.length+G.length),this.mulTo(G,D)},V.prototype.mulf=function(G){var D=new V(null);return D.words=Array(this.length+G.length),k(this,G,D)},V.prototype.imul=function(G){return this.clone().mulTo(G,this)},V.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var D=0;for(var H=0;H<this.length;H++){var K=(this.words[H]|0)*G,F=(K&67108863)+(D&67108863);D>>=26,D+=K/67108864|0,D+=F>>>26,this.words[H]=F&67108863}if(D!==0)this.words[H]=D,this.length++;return this.length=G===0?1:this.length,this},V.prototype.muln=function(G){return this.clone().imuln(G)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(G){var D=N(G);if(D.length===0)return new V(1);var H=this;for(var K=0;K<D.length;K++,H=H.sqr())if(D[K]!==0)break;if(++K<D.length)for(var F=H.sqr();K<D.length;K++,F=F.sqr()){if(D[K]===0)continue;H=H.mul(F)}return H},V.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=67108863>>>26-D<<26-D,F;if(D!==0){var C=0;for(F=0;F<this.length;F++){var j=this.words[F]&K,q=(this.words[F]|0)-j<<D;this.words[F]=q|C,C=j>>>26-D}if(C)this.words[F]=C,this.length++}if(H!==0){for(F=this.length-1;F>=0;F--)this.words[F+H]=this.words[F];for(F=0;F<H;F++)this.words[F]=0;this.length+=H}return this.strip()},V.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},V.prototype.iushrn=function(G,D,H){X(typeof G==="number"&&G>=0);var K;if(D)K=(D-D%26)/26;else K=0;var F=G%26,C=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,q=H;if(K-=C,K=Math.max(0,K),q){for(var Z=0;Z<C;Z++)q.words[Z]=this.words[Z];q.length=C}if(C===0);else if(this.length>C){this.length-=C;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+C]}else this.words[0]=0,this.length=1;var T=0;for(Z=this.length-1;Z>=0&&(T!==0||Z>=K);Z--){var w=this.words[Z]|0;this.words[Z]=T<<26-F|w>>>F,T=w&j}if(q&&T!==0)q.words[q.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(G,D,H){return X(this.negative===0),this.iushrn(G,D,H)},V.prototype.shln=function(G){return this.clone().ishln(G)},V.prototype.ushln=function(G){return this.clone().iushln(G)},V.prototype.shrn=function(G){return this.clone().ishrn(G)},V.prototype.ushrn=function(G){return this.clone().iushrn(G)},V.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return!1;var F=this.words[H];return!!(F&K)},V.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=H)return this;if(D!==0)H++;if(this.length=Math.min(H,this.length),D!==0){var K=67108863^67108863>>>D<<D;this.words[this.length-1]&=K}return this.strip()},V.prototype.maskn=function(G){return this.clone().imaskn(G)},V.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},V.prototype._iaddn=function(G){this.words[0]+=G;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)if(this.words[D]-=67108864,D===this.length-1)this.words[D+1]=1;else this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},V.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},V.prototype.addn=function(G){return this.clone().iaddn(G)},V.prototype.subn=function(G){return this.clone().isubn(G)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(G,D,H){var K=G.length+H,F;this._expand(K);var C,j=0;for(F=0;F<G.length;F++){C=(this.words[F+H]|0)+j;var q=(G.words[F]|0)*D;C-=q&67108863,j=(C>>26)-(q/67108864|0),this.words[F+H]=C&67108863}for(;F<this.length-H;F++)C=(this.words[F+H]|0)+j,j=C>>26,this.words[F+H]=C&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)C=-(this.words[F]|0)+j,j=C>>26,this.words[F]=C&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(G,D){var H=this.length-G.length,K=this.clone(),F=G,C=F.words[F.length-1]|0,j=this._countBits(C);if(H=26-j,H!==0)F=F.ushln(H),K.iushln(H),C=F.words[F.length-1]|0;var q=K.length-F.length,Z;if(D!=="mod"){Z=new V(null),Z.length=q+1,Z.words=Array(Z.length);for(var T=0;T<Z.length;T++)Z.words[T]=0}var w=K.clone()._ishlnsubmul(F,1,q);if(w.negative===0){if(K=w,Z)Z.words[q]=1}for(var B=q-1;B>=0;B--){var h=(K.words[F.length+B]|0)*67108864+(K.words[F.length+B-1]|0);h=Math.min(h/C|0,67108863),K._ishlnsubmul(F,h,B);while(K.negative!==0)if(h--,K.negative=0,K._ishlnsubmul(F,1,B),!K.isZero())K.negative^=1;if(Z)Z.words[B]=h}if(Z)Z.strip();if(K.strip(),D!=="div"&&H!==0)K.iushrn(H);return{div:Z||null,mod:K}},V.prototype.divmod=function(G,D,H){if(X(!G.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var K,F,C;if(this.negative!==0&&G.negative===0){if(C=this.neg().divmod(G,D),D!=="mod")K=C.div.neg();if(D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.iadd(G)}return{div:K,mod:F}}if(this.negative===0&&G.negative!==0){if(C=this.divmod(G.neg(),D),D!=="mod")K=C.div.neg();return{div:K,mod:C.mod}}if((this.negative&G.negative)!==0){if(C=this.neg().divmod(G.neg(),D),D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.isub(G)}return{div:C.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new V(0),mod:this};if(G.length===1){if(D==="div")return{div:this.divn(G.words[0]),mod:null};if(D==="mod")return{div:null,mod:new V(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new V(this.modn(G.words[0]))}}return this._wordDiv(G,D)},V.prototype.div=function(G){return this.divmod(G,"div",!1).div},V.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},V.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},V.prototype.divRound=function(G){var D=this.divmod(G);if(D.mod.isZero())return D.div;var H=D.div.negative!==0?D.mod.isub(G):D.mod,K=G.ushrn(1),F=G.andln(1),C=H.cmp(K);if(C<0||F===1&&C===0)return D.div;return D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},V.prototype.modn=function(G){X(G<=67108863);var D=67108864%G,H=0;for(var K=this.length-1;K>=0;K--)H=(D*H+(this.words[K]|0))%G;return H},V.prototype.idivn=function(G){X(G<=67108863);var D=0;for(var H=this.length-1;H>=0;H--){var K=(this.words[H]|0)+D*67108864;this.words[H]=K/G|0,D=K%G}return this.strip()},V.prototype.divn=function(G){return this.clone().idivn(G)},V.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=new V(0),j=new V(1),q=0;while(D.isEven()&&H.isEven())D.iushrn(1),H.iushrn(1),++q;var Z=H.clone(),T=D.clone();while(!D.isZero()){for(var w=0,B=1;(D.words[0]&B)===0&&w<26;++w,B<<=1);if(w>0){D.iushrn(w);while(w-- >0){if(K.isOdd()||F.isOdd())K.iadd(Z),F.isub(T);K.iushrn(1),F.iushrn(1)}}for(var h=0,t=1;(H.words[0]&t)===0&&h<26;++h,t<<=1);if(h>0){H.iushrn(h);while(h-- >0){if(C.isOdd()||j.isOdd())C.iadd(Z),j.isub(T);C.iushrn(1),j.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(C),F.isub(j);else H.isub(D),C.isub(K),j.isub(F)}return{a:C,b:j,gcd:H.iushln(q)}},V.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=H.clone();while(D.cmpn(1)>0&&H.cmpn(1)>0){for(var j=0,q=1;(D.words[0]&q)===0&&j<26;++j,q<<=1);if(j>0){D.iushrn(j);while(j-- >0){if(K.isOdd())K.iadd(C);K.iushrn(1)}}for(var Z=0,T=1;(H.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0){H.iushrn(Z);while(Z-- >0){if(F.isOdd())F.iadd(C);F.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(F);else H.isub(D),F.isub(K)}var w;if(D.cmpn(1)===0)w=K;else w=F;if(w.cmpn(0)<0)w.iadd(G);return w},V.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var D=this.clone(),H=G.clone();D.negative=0,H.negative=0;for(var K=0;D.isEven()&&H.isEven();K++)D.iushrn(1),H.iushrn(1);do{while(D.isEven())D.iushrn(1);while(H.isEven())H.iushrn(1);var F=D.cmp(H);if(F<0){var C=D;D=H,H=C}else if(F===0||H.cmpn(1)===0)break;D.isub(H)}while(!0);return H.iushln(K)},V.prototype.invm=function(G){return this.egcd(G).a.umod(G)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(G){return this.words[0]&G},V.prototype.bincn=function(G){X(typeof G==="number");var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return this._expand(H+1),this.words[H]|=K,this;var F=K;for(var C=H;F!==0&&C<this.length;C++){var j=this.words[C]|0;j+=F,F=j>>>26,j&=67108863,this.words[C]=j}if(F!==0)this.words[C]=F,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(G){var D=G<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;this.strip();var H;if(this.length>1)H=1;else{if(D)G=-G;X(G<=67108863,"Number is too big");var K=this.words[0]|0;H=K===G?0:K<G?-1:1}if(this.negative!==0)return-H|0;return H},V.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var D=this.ucmp(G);if(this.negative!==0)return-D|0;return D},V.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var D=0;for(var H=this.length-1;H>=0;H--){var K=this.words[H]|0,F=G.words[H]|0;if(K===F)continue;if(K<F)D=-1;else if(K>F)D=1;break}return D},V.prototype.gtn=function(G){return this.cmpn(G)===1},V.prototype.gt=function(G){return this.cmp(G)===1},V.prototype.gten=function(G){return this.cmpn(G)>=0},V.prototype.gte=function(G){return this.cmp(G)>=0},V.prototype.ltn=function(G){return this.cmpn(G)===-1},V.prototype.lt=function(G){return this.cmp(G)===-1},V.prototype.lten=function(G){return this.cmpn(G)<=0},V.prototype.lte=function(G){return this.cmp(G)<=0},V.prototype.eqn=function(G){return this.cmpn(G)===0},V.prototype.eq=function(G){return this.cmp(G)===0},V.red=function(G){return new o(G)},V.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},V.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(G){return this.red=G,this},V.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},V.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},V.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},V.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},V.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},V.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},V.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},V.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},V.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function m(G,D){this.name=G,this.p=new V(D,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}m.prototype._tmp=function(){var G=new V(null);return G.words=Array(Math.ceil(this.n/13)),G},m.prototype.ireduce=function(G){var D=G,H;do this.split(D,this.tmp),D=this.imulK(D),D=D.iadd(this.tmp),H=D.bitLength();while(H>this.n);var K=H<this.n?-1:D.ucmp(this.p);if(K===0)D.words[0]=0,D.length=1;else if(K>0)D.isub(this.p);else if(D.strip!==void 0)D.strip();else D._strip();return D},m.prototype.split=function(G,D){G.iushrn(this.n,0,D)},m.prototype.imulK=function(G){return G.imul(this.k)};function a(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}z(a,m),a.prototype.split=function(G,D){var H=4194303,K=Math.min(G.length,9);for(var F=0;F<K;F++)D.words[F]=G.words[F];if(D.length=K,G.length<=9){G.words[0]=0,G.length=1;return}var C=G.words[9];D.words[D.length++]=C&H;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&H)<<4|C>>>22,C=j}if(C>>>=22,G.words[F-10]=C,C===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var D=0;for(var H=0;H<G.length;H++){var K=G.words[H]|0;D+=K*977,G.words[H]=D&67108863,D=K*64+(D/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function Z0(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}z(Z0,m);function L0(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}z(L0,m);function C0(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}z(C0,m),C0.prototype.imulK=function(G){var D=0;for(var H=0;H<G.length;H++){var K=(G.words[H]|0)*19+D,F=K&67108863;K>>>=26,G.words[H]=F,D=K}if(D!==0)G.words[G.length++]=D;return G},V._prime=function(G){if(p[G])return p[G];var D;if(G==="k256")D=new a;else if(G==="p224")D=new Z0;else if(G==="p192")D=new L0;else if(G==="p25519")D=new C0;else throw Error("Unknown prime "+G);return p[G]=D,D};function o(G){if(typeof G==="string"){var D=V._prime(G);this.m=D.p,this.prime=D}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}o.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},o.prototype._verify2=function(G,D){X((G.negative|D.negative)===0,"red works only with positives"),X(G.red&&G.red===D.red,"red works only with red numbers")},o.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},o.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},o.prototype.add=function(G,D){this._verify2(G,D);var H=G.add(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H._forceRed(this)},o.prototype.iadd=function(G,D){this._verify2(G,D);var H=G.iadd(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H},o.prototype.sub=function(G,D){this._verify2(G,D);var H=G.sub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H._forceRed(this)},o.prototype.isub=function(G,D){this._verify2(G,D);var H=G.isub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H},o.prototype.shl=function(G,D){return this._verify1(G),this.imod(G.ushln(D))},o.prototype.imul=function(G,D){return this._verify2(G,D),this.imod(G.imul(D))},o.prototype.mul=function(G,D){return this._verify2(G,D),this.imod(G.mul(D))},o.prototype.isqr=function(G){return this.imul(G,G.clone())},o.prototype.sqr=function(G){return this.mul(G,G)},o.prototype.sqrt=function(G){if(G.isZero())return G.clone();var D=this.m.andln(3);if(X(D%2===1),D===3){var H=this.m.add(new V(1)).iushrn(2);return this.pow(G,H)}var K=this.m.subn(1),F=0;while(!K.isZero()&&K.andln(1)===0)F++,K.iushrn(1);X(!K.isZero());var C=new V(1).toRed(this),j=C.redNeg(),q=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,q).cmp(j)!==0)Z.redIAdd(j);var T=this.pow(Z,K),w=this.pow(G,K.addn(1).iushrn(1)),B=this.pow(G,K),h=F;while(B.cmp(C)!==0){var t=B;for(var U0=0;t.cmp(C)!==0;U0++)t=t.redSqr();X(U0<h);var z0=this.pow(T,new V(1).iushln(h-U0-1));w=w.redMul(z0),T=z0.redSqr(),B=B.redMul(T),h=U0}return w},o.prototype.invm=function(G){var D=G._invmp(this.m);if(D.negative!==0)return D.negative=0,this.imod(D).redNeg();else return this.imod(D)},o.prototype.pow=function(G,D){if(D.isZero())return new V(1).toRed(this);if(D.cmpn(1)===0)return G.clone();var H=4,K=Array(1<<H);K[0]=new V(1).toRed(this),K[1]=G;for(var F=2;F<K.length;F++)K[F]=this.mul(K[F-1],G);var C=K[0],j=0,q=0,Z=D.bitLength()%26;if(Z===0)Z=26;for(F=D.length-1;F>=0;F--){var T=D.words[F];for(var w=Z-1;w>=0;w--){var B=T>>w&1;if(C!==K[0])C=this.sqr(C);if(B===0&&j===0){q=0;continue}if(j<<=1,j|=B,q++,q!==H&&(F!==0||w!==0))continue;C=this.mul(C,K[j]),q=0,j=0}Z=26}return C},o.prototype.convertTo=function(G){var D=G.umod(this.m);return D===G?D.clone():D},o.prototype.convertFrom=function(G){var D=G.clone();return D.red=null,D},V.mont=function(G){return new q0(G)};function q0(G){if(o.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z(q0,o),q0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},q0.prototype.convertFrom=function(G){var D=this.imod(G.mul(this.rinv));return D.red=null,D},q0.prototype.imul=function(G,D){if(G.isZero()||D.isZero())return G.words[0]=0,G.length=1,G;var H=G.imul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.mul=function(G,D){if(G.isZero()||D.isZero())return new V(0)._forceRed(this);var H=G.mul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.invm=function(G){var D=this.imod(G._invmp(this.m).mul(this.r2));return D._forceRed(this)}})(typeof J>"u"||J,U)}),gu=u0((U)=>{var J=j2(),Q=A4(),O=U;O.define=function(z,V){return new X(z,V)};function X(z,V){this.name=z,this.body=V,this.decoders={},this.encoders={}}X.prototype._createNamed=function(z){var V;try{V=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
241
+ this._initNamed(entity);
242
+ })`)}catch(L){V=function(S){this._initNamed(S)}}return Q(V,z),V.prototype._initNamed=function(L){z.call(this,L)},new V(this)},X.prototype._getDecoder=function(z){if(z=z||"der",!this.decoders.hasOwnProperty(z))this.decoders[z]=this._createNamed(J.decoders[z]);return this.decoders[z]},X.prototype.decode=function(z,V,L){return this._getDecoder(V).decode(z,L)},X.prototype._getEncoder=function(z){if(z=z||"der",!this.encoders.hasOwnProperty(z))this.encoders[z]=this._createNamed(J.encoders[z]);return this.encoders[z]},X.prototype.encode=function(z,V,L){return this._getEncoder(V).encode(z,L)}}),xu=u0((U)=>{var J=A4();function Q(X){this._reporterState={obj:null,path:[],options:X||{},errors:[]}}U.Reporter=Q,Q.prototype.isError=function(X){return X instanceof O},Q.prototype.save=function(){var X=this._reporterState;return{obj:X.obj,pathLen:X.path.length}},Q.prototype.restore=function(X){var z=this._reporterState;z.obj=X.obj,z.path=z.path.slice(0,X.pathLen)},Q.prototype.enterKey=function(X){return this._reporterState.path.push(X)},Q.prototype.exitKey=function(X){var z=this._reporterState;z.path=z.path.slice(0,X-1)},Q.prototype.leaveKey=function(X,z,V){var L=this._reporterState;if(this.exitKey(X),L.obj!==null)L.obj[z]=V},Q.prototype.path=function(){return this._reporterState.path.join("/")},Q.prototype.enterObject=function(){var X=this._reporterState,z=X.obj;return X.obj={},z},Q.prototype.leaveObject=function(X){var z=this._reporterState,V=z.obj;return z.obj=X,V},Q.prototype.error=function(X){var z,V=this._reporterState,L=X instanceof O;if(L)z=X;else z=new O(V.path.map(function(S){return"["+JSON.stringify(S)+"]"}).join(""),X.message||X,X.stack);if(!V.options.partial)throw z;if(!L)V.errors.push(z);return z},Q.prototype.wrapResult=function(X){var z=this._reporterState;if(!z.options.partial)return X;return{result:this.isError(X)?null:X,errors:z.errors}};function O(X,z){this.path=X,this.rethrow(z)}J(O,Error),O.prototype.rethrow=function(X){if(this.message=X+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,O);if(!this.stack)try{throw Error(this.message)}catch(z){this.stack=z.stack}return this}}),Gj=u0((U)=>{var J=A4(),Q=R2().Reporter,O=(tU(),v$(rU)).Buffer;function X(V,L){if(Q.call(this,L),!O.isBuffer(V)){this.error("Input not Buffer");return}this.base=V,this.offset=0,this.length=V.length}J(X,Q),U.DecoderBuffer=X,X.prototype.save=function(){return{offset:this.offset,reporter:Q.prototype.save.call(this)}},X.prototype.restore=function(V){var L=new X(this.base);return L.offset=V.offset,L.length=this.offset,this.offset=V.offset,Q.prototype.restore.call(this,V.reporter),L},X.prototype.isEmpty=function(){return this.offset===this.length},X.prototype.readUInt8=function(V){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(V||"DecoderBuffer overrun")},X.prototype.skip=function(V,L){if(!(this.offset+V<=this.length))return this.error(L||"DecoderBuffer overrun");var S=new X(this.base);return S._reporterState=this._reporterState,S.offset=this.offset,S.length=this.offset+V,this.offset+=V,S},X.prototype.raw=function(V){return this.base.slice(V?V.offset:this.offset,this.length)};function z(V,L){if(Array.isArray(V))this.length=0,this.value=V.map(function(S){if(!(S instanceof z))S=new z(S,L);return this.length+=S.length,S},this);else if(typeof V==="number"){if(!(0<=V&&V<=255))return L.error("non-byte EncoderBuffer value");this.value=V,this.length=1}else if(typeof V==="string")this.value=V,this.length=O.byteLength(V);else if(O.isBuffer(V))this.value=V,this.length=V.length;else return L.error("Unsupported type: "+typeof V)}U.EncoderBuffer=z,z.prototype.join=function(V,L){if(!V)V=new O(this.length);if(!L)L=0;if(this.length===0)return V;if(Array.isArray(this.value))this.value.forEach(function(S){S.join(V,L),L+=S.length});else{if(typeof this.value==="number")V[L]=this.value;else if(typeof this.value==="string")V.write(this.value,L);else if(O.isBuffer(this.value))this.value.copy(V,L);L+=this.length}return V}}),wu=u0((U,J)=>{var Q=R2().Reporter,O=R2().EncoderBuffer,X=R2().DecoderBuffer,z=DX(),V=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],L=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(V),S=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function E(M,P){var v={};if(this._baseState=v,v.enc=M,v.parent=P||null,v.children=null,v.tag=null,v.args=null,v.reverseArgs=null,v.choice=null,v.optional=!1,v.any=!1,v.obj=!1,v.use=null,v.useDecoder=null,v.key=null,v.default=null,v.explicit=null,v.implicit=null,v.contains=null,!v.parent)v.children=[],this._wrap()}J.exports=E;var _=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];E.prototype.clone=function(){var M=this._baseState,P={};_.forEach(function(N){P[N]=M[N]});var v=new this.constructor(P.parent);return v._baseState=P,v},E.prototype._wrap=function(){var M=this._baseState;L.forEach(function(P){this[P]=function(){var v=new this.constructor(this);return M.children.push(v),v[P].apply(v,arguments)}},this)},E.prototype._init=function(M){var P=this._baseState;z(P.parent===null),M.call(this),P.children=P.children.filter(function(v){return v._baseState.parent===this},this),z.equal(P.children.length,1,"Root node can have only one child")},E.prototype._useArgs=function(M){var P=this._baseState,v=M.filter(function(N){return N instanceof this.constructor},this);if(M=M.filter(function(N){return!(N instanceof this.constructor)},this),v.length!==0)z(P.children===null),P.children=v,v.forEach(function(N){N._baseState.parent=this},this);if(M.length!==0)z(P.args===null),P.args=M,P.reverseArgs=M.map(function(N){if(typeof N!=="object"||N.constructor!==Object)return N;var f={};return Object.keys(N).forEach(function(x){if(x==(x|0))x|=0;var b=N[x];f[b]=x}),f})},S.forEach(function(M){E.prototype[M]=function(){var P=this._baseState;throw Error(M+" not implemented for encoding: "+P.enc)}}),V.forEach(function(M){E.prototype[M]=function(){var P=this._baseState,v=Array.prototype.slice.call(arguments);return z(P.tag===null),P.tag=M,this._useArgs(v),this}}),E.prototype.use=function(M){z(M);var P=this._baseState;return z(P.use===null),P.use=M,this},E.prototype.optional=function(){var M=this._baseState;return M.optional=!0,this},E.prototype.def=function(M){var P=this._baseState;return z(P.default===null),P.default=M,P.optional=!0,this},E.prototype.explicit=function(M){var P=this._baseState;return z(P.explicit===null&&P.implicit===null),P.explicit=M,this},E.prototype.implicit=function(M){var P=this._baseState;return z(P.explicit===null&&P.implicit===null),P.implicit=M,this},E.prototype.obj=function(){var M=this._baseState,P=Array.prototype.slice.call(arguments);if(M.obj=!0,P.length!==0)this._useArgs(P);return this},E.prototype.key=function(M){var P=this._baseState;return z(P.key===null),P.key=M,this},E.prototype.any=function(){var M=this._baseState;return M.any=!0,this},E.prototype.choice=function(M){var P=this._baseState;return z(P.choice===null),P.choice=M,this._useArgs(Object.keys(M).map(function(v){return M[v]})),this},E.prototype.contains=function(M){var P=this._baseState;return z(P.use===null),P.contains=M,this},E.prototype._decode=function(M,P){var v=this._baseState;if(v.parent===null)return M.wrapResult(v.children[0]._decode(M,P));var N=v.default,f=!0,x=null;if(v.key!==null)x=M.enterKey(v.key);if(v.optional){var b=null;if(v.explicit!==null)b=v.explicit;else if(v.implicit!==null)b=v.implicit;else if(v.tag!==null)b=v.tag;if(b===null&&!v.any){var k=M.save();try{if(v.choice===null)this._decodeGeneric(v.tag,M,P);else this._decodeChoice(M,P);f=!0}catch(L0){f=!1}M.restore(k)}else if(f=this._peekTag(M,b,v.any),M.isError(f))return f}var u;if(v.obj&&f)u=M.enterObject();if(f){if(v.explicit!==null){var p=this._decodeTag(M,v.explicit);if(M.isError(p))return p;M=p}var m=M.offset;if(v.use===null&&v.choice===null){if(v.any)var k=M.save();var a=this._decodeTag(M,v.implicit!==null?v.implicit:v.tag,v.any);if(M.isError(a))return a;if(v.any)N=M.raw(k);else M=a}if(P&&P.track&&v.tag!==null)P.track(M.path(),m,M.length,"tagged");if(P&&P.track&&v.tag!==null)P.track(M.path(),M.offset,M.length,"content");if(v.any)N=N;else if(v.choice===null)N=this._decodeGeneric(v.tag,M,P);else N=this._decodeChoice(M,P);if(M.isError(N))return N;if(!v.any&&v.choice===null&&v.children!==null)v.children.forEach(function(L0){L0._decode(M,P)});if(v.contains&&(v.tag==="octstr"||v.tag==="bitstr")){var Z0=new X(N);N=this._getUse(v.contains,M._reporterState.obj)._decode(Z0,P)}}if(v.obj&&f)N=M.leaveObject(u);if(v.key!==null&&(N!==null||f===!0))M.leaveKey(x,v.key,N);else if(x!==null)M.exitKey(x);return N},E.prototype._decodeGeneric=function(M,P,v){var N=this._baseState;if(M==="seq"||M==="set")return null;if(M==="seqof"||M==="setof")return this._decodeList(P,M,N.args[0],v);else if(/str$/.test(M))return this._decodeStr(P,M,v);else if(M==="objid"&&N.args)return this._decodeObjid(P,N.args[0],N.args[1],v);else if(M==="objid")return this._decodeObjid(P,null,null,v);else if(M==="gentime"||M==="utctime")return this._decodeTime(P,M,v);else if(M==="null_")return this._decodeNull(P,v);else if(M==="bool")return this._decodeBool(P,v);else if(M==="objDesc")return this._decodeStr(P,M,v);else if(M==="int"||M==="enum")return this._decodeInt(P,N.args&&N.args[0],v);if(N.use!==null)return this._getUse(N.use,P._reporterState.obj)._decode(P,v);else return P.error("unknown tag: "+M)},E.prototype._getUse=function(M,P){var v=this._baseState;if(v.useDecoder=this._use(M,P),z(v.useDecoder._baseState.parent===null),v.useDecoder=v.useDecoder._baseState.children[0],v.implicit!==v.useDecoder._baseState.implicit)v.useDecoder=v.useDecoder.clone(),v.useDecoder._baseState.implicit=v.implicit;return v.useDecoder},E.prototype._decodeChoice=function(M,P){var v=this._baseState,N=null,f=!1;if(Object.keys(v.choice).some(function(x){var b=M.save(),k=v.choice[x];try{var u=k._decode(M,P);if(M.isError(u))return!1;N={type:x,value:u},f=!0}catch(p){return M.restore(b),!1}return!0},this),!f)return M.error("Choice not matched");return N},E.prototype._createEncoderBuffer=function(M){return new O(M,this.reporter)},E.prototype._encode=function(M,P,v){var N=this._baseState;if(N.default!==null&&N.default===M)return;var f=this._encodeValue(M,P,v);if(f===void 0)return;if(this._skipDefault(f,P,v))return;return f},E.prototype._encodeValue=function(M,P,v){var N=this._baseState;if(N.parent===null)return N.children[0]._encode(M,P||new Q);var k=null;if(this.reporter=P,N.optional&&M===void 0)if(N.default!==null)M=N.default;else return;var f=null,x=!1;if(N.any)k=this._createEncoderBuffer(M);else if(N.choice)k=this._encodeChoice(M,P);else if(N.contains)f=this._getUse(N.contains,v)._encode(M,P),x=!0;else if(N.children)f=N.children.map(function(m){if(m._baseState.tag==="null_")return m._encode(null,P,M);if(m._baseState.key===null)return P.error("Child should have a key");var a=P.enterKey(m._baseState.key);if(typeof M!=="object")return P.error("Child expected, but input is not object");var Z0=m._encode(M[m._baseState.key],P,M);return P.leaveKey(a),Z0},this).filter(function(m){return m}),f=this._createEncoderBuffer(f);else if(N.tag==="seqof"||N.tag==="setof"){if(!(N.args&&N.args.length===1))return P.error("Too many args for : "+N.tag);if(!Array.isArray(M))return P.error("seqof/setof, but data is not Array");var b=this.clone();b._baseState.implicit=null,f=this._createEncoderBuffer(M.map(function(m){var a=this._baseState;return this._getUse(a.args[0],M)._encode(m,P)},b))}else if(N.use!==null)k=this._getUse(N.use,v)._encode(M,P);else f=this._encodePrimitive(N.tag,M),x=!0;var k;if(!N.any&&N.choice===null){var u=N.implicit!==null?N.implicit:N.tag,p=N.implicit===null?"universal":"context";if(u===null){if(N.use===null)P.error("Tag could be omitted only for .use()")}else if(N.use===null)k=this._encodeComposite(u,x,p,f)}if(N.explicit!==null)k=this._encodeComposite(N.explicit,!1,"context",k);return k},E.prototype._encodeChoice=function(M,P){var v=this._baseState,N=v.choice[M.type];if(!N)z(!1,M.type+" not found in "+JSON.stringify(Object.keys(v.choice)));return N._encode(M.value,P)},E.prototype._encodePrimitive=function(M,P){var v=this._baseState;if(/str$/.test(M))return this._encodeStr(P,M);else if(M==="objid"&&v.args)return this._encodeObjid(P,v.reverseArgs[0],v.args[1]);else if(M==="objid")return this._encodeObjid(P,null,null);else if(M==="gentime"||M==="utctime")return this._encodeTime(P,M);else if(M==="null_")return this._encodeNull();else if(M==="int"||M==="enum")return this._encodeInt(P,v.args&&v.reverseArgs[0]);else if(M==="bool")return this._encodeBool(P);else if(M==="objDesc")return this._encodeStr(P,M);else throw Error("Unsupported tag: "+M)},E.prototype._isNumstr=function(M){return/^[0-9 ]*$/.test(M)},E.prototype._isPrintstr=function(M){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(M)}}),R2=u0((U)=>{var J=U;J.Reporter=xu().Reporter,J.DecoderBuffer=Gj().DecoderBuffer,J.EncoderBuffer=Gj().EncoderBuffer,J.Node=wu()}),fu=u0((U)=>{var J=_j();U.tagClass={0:"universal",1:"application",2:"context",3:"private"},U.tagClassByName=J._reverse(U.tagClass),U.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},U.tagByName=J._reverse(U.tag)}),_j=u0((U)=>{var J=U;J._reverse=function(Q){var O={};return Object.keys(Q).forEach(function(X){if((X|0)==X)X=X|0;var z=Q[X];O[z]=X}),O},J.der=fu()}),Sj=u0((U,J)=>{var Q=A4(),O=j2(),X=O.base,z=O.bignum,V=O.constants.der;function L(M){this.enc="der",this.name=M.name,this.entity=M,this.tree=new S,this.tree._init(M.body)}J.exports=L,L.prototype.decode=function(M,P){if(!(M instanceof X.DecoderBuffer))M=new X.DecoderBuffer(M,P);return this.tree._decode(M,P)};function S(M){X.Node.call(this,"der",M)}Q(S,X.Node),S.prototype._peekTag=function(M,P,v){if(M.isEmpty())return!1;var N=M.save(),f=E(M,'Failed to peek tag: "'+P+'"');if(M.isError(f))return f;return M.restore(N),f.tag===P||f.tagStr===P||f.tagStr+"of"===P||v},S.prototype._decodeTag=function(M,P,v){var N=E(M,'Failed to decode tag of "'+P+'"');if(M.isError(N))return N;var f=_(M,N.primitive,'Failed to get length of "'+P+'"');if(M.isError(f))return f;if(!v&&N.tag!==P&&N.tagStr!==P&&N.tagStr+"of"!==P)return M.error('Failed to match tag: "'+P+'"');if(N.primitive||f!==null)return M.skip(f,'Failed to match body of: "'+P+'"');var x=M.save(),b=this._skipUntilEnd(M,'Failed to skip indefinite length body: "'+this.tag+'"');if(M.isError(b))return b;return f=M.offset-x.offset,M.restore(x),M.skip(f,'Failed to match body of: "'+P+'"')},S.prototype._skipUntilEnd=function(M,P){while(!0){var v=E(M,P);if(M.isError(v))return v;var N=_(M,v.primitive,P);if(M.isError(N))return N;var f;if(v.primitive||N!==null)f=M.skip(N);else f=this._skipUntilEnd(M,P);if(M.isError(f))return f;if(v.tagStr==="end")break}},S.prototype._decodeList=function(M,P,v,N){var f=[];while(!M.isEmpty()){var x=this._peekTag(M,"end");if(M.isError(x))return x;var b=v.decode(M,"der",N);if(M.isError(b)&&x)break;f.push(b)}return f},S.prototype._decodeStr=function(M,P){if(P==="bitstr"){var v=M.readUInt8();if(M.isError(v))return v;return{unused:v,data:M.raw()}}else if(P==="bmpstr"){var N=M.raw();if(N.length%2===1)return M.error("Decoding of string type: bmpstr length mismatch");var f="";for(var x=0;x<N.length/2;x++)f+=String.fromCharCode(N.readUInt16BE(x*2));return f}else if(P==="numstr"){var b=M.raw().toString("ascii");if(!this._isNumstr(b))return M.error("Decoding of string type: numstr unsupported characters");return b}else if(P==="octstr")return M.raw();else if(P==="objDesc")return M.raw();else if(P==="printstr"){var k=M.raw().toString("ascii");if(!this._isPrintstr(k))return M.error("Decoding of string type: printstr unsupported characters");return k}else if(/str$/.test(P))return M.raw().toString();else return M.error("Decoding of string type: "+P+" unsupported")},S.prototype._decodeObjid=function(M,P,v){var N,f=[],x=0;while(!M.isEmpty()){var b=M.readUInt8();if(x<<=7,x|=b&127,(b&128)===0)f.push(x),x=0}if(b&128)f.push(x);var k=f[0]/40|0,u=f[0]%40;if(v)N=f;else N=[k,u].concat(f.slice(1));if(P){var p=P[N.join(" ")];if(p===void 0)p=P[N.join(".")];if(p!==void 0)N=p}return N},S.prototype._decodeTime=function(M,P){var v=M.raw().toString();if(P==="gentime")var N=v.slice(0,4)|0,f=v.slice(4,6)|0,x=v.slice(6,8)|0,b=v.slice(8,10)|0,k=v.slice(10,12)|0,u=v.slice(12,14)|0;else if(P==="utctime"){var N=v.slice(0,2)|0,f=v.slice(2,4)|0,x=v.slice(4,6)|0,b=v.slice(6,8)|0,k=v.slice(8,10)|0,u=v.slice(10,12)|0;if(N<70)N=2000+N;else N=1900+N}else return M.error("Decoding "+P+" time is not supported yet");return Date.UTC(N,f-1,x,b,k,u,0)},S.prototype._decodeNull=function(M){return null},S.prototype._decodeBool=function(M){var P=M.readUInt8();if(M.isError(P))return P;else return P!==0},S.prototype._decodeInt=function(M,P){var v=M.raw(),N=new z(v);if(P)N=P[N.toString(10)]||N;return N},S.prototype._use=function(M,P){if(typeof M==="function")M=M(P);return M._getDecoder("der").tree};function E(M,P){var v=M.readUInt8(P);if(M.isError(v))return v;var N=V.tagClass[v>>6],f=(v&32)===0;if((v&31)===31){var x=v;v=0;while((x&128)===128){if(x=M.readUInt8(P),M.isError(x))return x;v<<=7,v|=x&127}}else v&=31;var b=V.tag[v];return{cls:N,primitive:f,tag:v,tagStr:b}}function _(M,P,v){var N=M.readUInt8(v);if(M.isError(N))return N;if(!P&&N===128)return null;if((N&128)===0)return N;var f=N&127;if(f>4)return M.error("length octect is too long");N=0;for(var x=0;x<f;x++){N<<=8;var b=M.readUInt8(v);if(M.isError(b))return b;N|=b}return N}}),yu=u0((U,J)=>{var Q=A4(),O=(tU(),v$(rU)).Buffer,X=Sj();function z(V){X.call(this,V),this.enc="pem"}Q(z,X),J.exports=z,z.prototype.decode=function(V,L){var S=V.toString().split(/[\r\n]+/g),E=L.label.toUpperCase(),_=/^-----(BEGIN|END) ([^-]+)-----$/,M=-1,P=-1;for(var v=0;v<S.length;v++){var N=S[v].match(_);if(N===null)continue;if(N[2]!==E)continue;if(M===-1){if(N[1]!=="BEGIN")break;M=v}else{if(N[1]!=="END")break;P=v;break}}if(M===-1||P===-1)throw Error("PEM section not found for: "+E);var f=S.slice(M+1,P).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var x=new O(f,"base64");return X.prototype.decode.call(this,x,L)}}),uu=u0((U)=>{var J=U;J.der=Sj(),J.pem=yu()}),jj=u0((U,J)=>{var Q=A4(),O=(tU(),v$(rU)).Buffer,X=j2(),z=X.base,V=X.constants.der;function L(M){this.enc="der",this.name=M.name,this.entity=M,this.tree=new S,this.tree._init(M.body)}J.exports=L,L.prototype.encode=function(M,P){return this.tree._encode(M,P).join()};function S(M){z.Node.call(this,"der",M)}Q(S,z.Node),S.prototype._encodeComposite=function(M,P,v,N){var f=_(M,P,v,this.reporter);if(N.length<128){var k=new O(2);return k[0]=f,k[1]=N.length,this._createEncoderBuffer([k,N])}var x=1;for(var b=N.length;b>=256;b>>=8)x++;var k=new O(2+x);k[0]=f,k[1]=128|x;for(var b=1+x,u=N.length;u>0;b--,u>>=8)k[b]=u&255;return this._createEncoderBuffer([k,N])},S.prototype._encodeStr=function(M,P){if(P==="bitstr")return this._createEncoderBuffer([M.unused|0,M.data]);else if(P==="bmpstr"){var v=new O(M.length*2);for(var N=0;N<M.length;N++)v.writeUInt16BE(M.charCodeAt(N),N*2);return this._createEncoderBuffer(v)}else if(P==="numstr"){if(!this._isNumstr(M))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(M)}else if(P==="printstr"){if(!this._isPrintstr(M))return this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");return this._createEncoderBuffer(M)}else if(/str$/.test(P))return this._createEncoderBuffer(M);else if(P==="objDesc")return this._createEncoderBuffer(M);else return this.reporter.error("Encoding of string type: "+P+" unsupported")},S.prototype._encodeObjid=function(M,P,v){if(typeof M==="string"){if(!P)return this.reporter.error("string objid given, but no values map found");if(!P.hasOwnProperty(M))return this.reporter.error("objid not found in values map");M=P[M].split(/[\s\.]+/g);for(var N=0;N<M.length;N++)M[N]|=0}else if(Array.isArray(M)){M=M.slice();for(var N=0;N<M.length;N++)M[N]|=0}if(!Array.isArray(M))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(M));if(!v){if(M[1]>=40)return this.reporter.error("Second objid identifier OOB");M.splice(0,2,M[0]*40+M[1])}var f=0;for(var N=0;N<M.length;N++){var x=M[N];for(f++;x>=128;x>>=7)f++}var b=new O(f),k=b.length-1;for(var N=M.length-1;N>=0;N--){var x=M[N];b[k--]=x&127;while((x>>=7)>0)b[k--]=128|x&127}return this._createEncoderBuffer(b)};function E(M){if(M<10)return"0"+M;else return M}S.prototype._encodeTime=function(M,P){var v,N=new Date(M);if(P==="gentime")v=[E(N.getFullYear()),E(N.getUTCMonth()+1),E(N.getUTCDate()),E(N.getUTCHours()),E(N.getUTCMinutes()),E(N.getUTCSeconds()),"Z"].join("");else if(P==="utctime")v=[E(N.getFullYear()%100),E(N.getUTCMonth()+1),E(N.getUTCDate()),E(N.getUTCHours()),E(N.getUTCMinutes()),E(N.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+P+" time is not supported yet");return this._encodeStr(v,"octstr")},S.prototype._encodeNull=function(){return this._createEncoderBuffer("")},S.prototype._encodeInt=function(M,P){if(typeof M==="string"){if(!P)return this.reporter.error("String int or enum given, but no values map");if(!P.hasOwnProperty(M))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(M));M=P[M]}if(typeof M!=="number"&&!O.isBuffer(M)){var v=M.toArray();if(!M.sign&&v[0]&128)v.unshift(0);M=new O(v)}if(O.isBuffer(M)){var N=M.length;if(M.length===0)N++;var x=new O(N);if(M.copy(x),M.length===0)x[0]=0;return this._createEncoderBuffer(x)}if(M<128)return this._createEncoderBuffer(M);if(M<256)return this._createEncoderBuffer([0,M]);var N=1;for(var f=M;f>=256;f>>=8)N++;var x=Array(N);for(var f=x.length-1;f>=0;f--)x[f]=M&255,M>>=8;if(x[0]&128)x.unshift(0);return this._createEncoderBuffer(new O(x))},S.prototype._encodeBool=function(M){return this._createEncoderBuffer(M?255:0)},S.prototype._use=function(M,P){if(typeof M==="function")M=M(P);return M._getEncoder("der").tree},S.prototype._skipDefault=function(M,P,v){var N=this._baseState,f;if(N.default===null)return!1;var x=M.join();if(N.defaultBuffer===void 0)N.defaultBuffer=this._encodeValue(N.default,P,v).join();if(x.length!==N.defaultBuffer.length)return!1;for(f=0;f<x.length;f++)if(x[f]!==N.defaultBuffer[f])return!1;return!0};function _(M,P,v,N){var f;if(M==="seqof")M="seq";else if(M==="setof")M="set";if(V.tagByName.hasOwnProperty(M))f=V.tagByName[M];else if(typeof M==="number"&&(M|0)===M)f=M;else return N.error("Unknown tag: "+M);if(f>=31)return N.error("Multi-octet tag encoding unsupported");if(!P)f|=32;return f|=V.tagClassByName[v||"universal"]<<6,f}}),bu=u0((U,J)=>{var Q=A4(),O=jj();function X(z){O.call(this,z),this.enc="pem"}Q(X,O),J.exports=X,X.prototype.encode=function(z,V){var L=O.prototype.encode.call(this,z),S=L.toString("base64"),E=["-----BEGIN "+V.label+"-----"];for(var _=0;_<S.length;_+=64)E.push(S.slice(_,_+64));return E.push("-----END "+V.label+"-----"),E.join(`
243
+ `)}}),hu=u0((U)=>{var J=U;J.der=jj(),J.pem=bu()}),j2=u0((U)=>{var J=U;J.bignum=ku(),J.define=gu().define,J.base=R2(),J.constants=_j(),J.decoders=uu(),J.encoders=hu()}),cu=u0((U,J)=>{var Q=j2(),O=Q.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),X=Q.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),z=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),V=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(z),this.key("subjectPublicKey").bitstr())}),L=Q.define("RelativeDistinguishedName",function(){this.setof(X)}),S=Q.define("RDNSequence",function(){this.seqof(L)}),E=Q.define("Name",function(){this.choice({rdnSequence:this.use(S)})}),_=Q.define("Validity",function(){this.seq().obj(this.key("notBefore").use(O),this.key("notAfter").use(O))}),M=Q.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),P=Q.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(z),this.key("issuer").use(E),this.key("validity").use(_),this.key("subject").use(E),this.key("subjectPublicKeyInfo").use(V),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(M).optional())}),v=Q.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(P),this.key("signatureAlgorithm").use(z),this.key("signatureValue").bitstr())});J.exports=v}),pu=u0((U)=>{var J=j2();U.certificate=cu();var Q=J.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});U.RSAPrivateKey=Q;var O=J.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});U.RSAPublicKey=O;var X=J.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),z=J.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(X),this.key("subjectPublicKey").bitstr())});U.PublicKey=z;var V=J.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(X),this.key("subjectPrivateKey").octstr())});U.PrivateKey=V;var L=J.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});U.EncryptedPrivateKey=L;var S=J.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});U.DSAPrivateKey=S,U.DSAparam=J.define("DSAparam",function(){this.int()});var E=J.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),_=J.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(E),this.key("publicKey").optional().explicit(1).bitstr())});U.ECPrivateKey=_,U.signature=J.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),lu=u0((U,J)=>{J.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),mu=u0((U,J)=>{var Q=b6().Buffer,O=nQ().Transform,X=A4();function z(E){O.call(this),this._block=Q.allocUnsafe(E),this._blockSize=E,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}X(z,O),z.prototype._transform=function(E,_,M){var P=null;try{this.update(E,_)}catch(v){P=v}M(P)},z.prototype._flush=function(E){var _=null;try{this.push(this.digest())}catch(M){_=M}E(_)};var V=typeof Uint8Array<"u",L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Q.prototype instanceof Uint8Array||Q.TYPED_ARRAY_SUPPORT);function S(E,_){if(E instanceof Q)return E;if(typeof E==="string")return Q.from(E,_);if(L&&ArrayBuffer.isView(E)){if(E.byteLength===0)return Q.alloc(0);var M=Q.from(E.buffer,E.byteOffset,E.byteLength);if(M.byteLength===E.byteLength)return M}if(V&&E instanceof Uint8Array)return Q.from(E);if(Q.isBuffer(E)&&E.constructor&&typeof E.constructor.isBuffer==="function"&&E.constructor.isBuffer(E))return Q.from(E);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}z.prototype.update=function(E,_){if(this._finalized)throw Error("Digest already called");E=S(E,_);var M=this._block,P=0;while(this._blockOffset+E.length-P>=this._blockSize){for(var v=this._blockOffset;v<this._blockSize;)M[v++]=E[P++];this._update(),this._blockOffset=0}while(P<E.length)M[this._blockOffset++]=E[P++];for(var N=0,f=E.length*8;f>0;++N)if(this._length[N]+=f,f=this._length[N]/4294967296|0,f>0)this._length[N]-=4294967296*f;return this},z.prototype._update=function(){throw Error("_update is not implemented")},z.prototype.digest=function(E){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var _=this._digest();if(E!==void 0)_=_.toString(E);this._block.fill(0),this._blockOffset=0;for(var M=0;M<4;++M)this._length[M]=0;return _},z.prototype._digest=function(){throw Error("_digest is not implemented")},J.exports=z}),du=u0((U,J)=>{var Q=A4(),O=mu(),X=b6().Buffer,z=Array(16);function V(){O.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Q(V,O),V.prototype._update=function(){var P=z;for(var v=0;v<16;++v)P[v]=this._block.readInt32LE(v*4);var N=this._a,f=this._b,x=this._c,b=this._d;N=S(N,f,x,b,P[0],3614090360,7),b=S(b,N,f,x,P[1],3905402710,12),x=S(x,b,N,f,P[2],606105819,17),f=S(f,x,b,N,P[3],3250441966,22),N=S(N,f,x,b,P[4],4118548399,7),b=S(b,N,f,x,P[5],1200080426,12),x=S(x,b,N,f,P[6],2821735955,17),f=S(f,x,b,N,P[7],4249261313,22),N=S(N,f,x,b,P[8],1770035416,7),b=S(b,N,f,x,P[9],2336552879,12),x=S(x,b,N,f,P[10],4294925233,17),f=S(f,x,b,N,P[11],2304563134,22),N=S(N,f,x,b,P[12],1804603682,7),b=S(b,N,f,x,P[13],4254626195,12),x=S(x,b,N,f,P[14],2792965006,17),f=S(f,x,b,N,P[15],1236535329,22),N=E(N,f,x,b,P[1],4129170786,5),b=E(b,N,f,x,P[6],3225465664,9),x=E(x,b,N,f,P[11],643717713,14),f=E(f,x,b,N,P[0],3921069994,20),N=E(N,f,x,b,P[5],3593408605,5),b=E(b,N,f,x,P[10],38016083,9),x=E(x,b,N,f,P[15],3634488961,14),f=E(f,x,b,N,P[4],3889429448,20),N=E(N,f,x,b,P[9],568446438,5),b=E(b,N,f,x,P[14],3275163606,9),x=E(x,b,N,f,P[3],4107603335,14),f=E(f,x,b,N,P[8],1163531501,20),N=E(N,f,x,b,P[13],2850285829,5),b=E(b,N,f,x,P[2],4243563512,9),x=E(x,b,N,f,P[7],1735328473,14),f=E(f,x,b,N,P[12],2368359562,20),N=_(N,f,x,b,P[5],4294588738,4),b=_(b,N,f,x,P[8],2272392833,11),x=_(x,b,N,f,P[11],1839030562,16),f=_(f,x,b,N,P[14],4259657740,23),N=_(N,f,x,b,P[1],2763975236,4),b=_(b,N,f,x,P[4],1272893353,11),x=_(x,b,N,f,P[7],4139469664,16),f=_(f,x,b,N,P[10],3200236656,23),N=_(N,f,x,b,P[13],681279174,4),b=_(b,N,f,x,P[0],3936430074,11),x=_(x,b,N,f,P[3],3572445317,16),f=_(f,x,b,N,P[6],76029189,23),N=_(N,f,x,b,P[9],3654602809,4),b=_(b,N,f,x,P[12],3873151461,11),x=_(x,b,N,f,P[15],530742520,16),f=_(f,x,b,N,P[2],3299628645,23),N=M(N,f,x,b,P[0],4096336452,6),b=M(b,N,f,x,P[7],1126891415,10),x=M(x,b,N,f,P[14],2878612391,15),f=M(f,x,b,N,P[5],4237533241,21),N=M(N,f,x,b,P[12],1700485571,6),b=M(b,N,f,x,P[3],2399980690,10),x=M(x,b,N,f,P[10],4293915773,15),f=M(f,x,b,N,P[1],2240044497,21),N=M(N,f,x,b,P[8],1873313359,6),b=M(b,N,f,x,P[15],4264355552,10),x=M(x,b,N,f,P[6],2734768916,15),f=M(f,x,b,N,P[13],1309151649,21),N=M(N,f,x,b,P[4],4149444226,6),b=M(b,N,f,x,P[11],3174756917,10),x=M(x,b,N,f,P[2],718787259,15),f=M(f,x,b,N,P[9],3951481745,21),this._a=this._a+N|0,this._b=this._b+f|0,this._c=this._c+x|0,this._d=this._d+b|0},V.prototype._digest=function(){if(this._block[this._blockOffset++]=128,this._blockOffset>56)this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0;this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var P=X.allocUnsafe(16);return P.writeInt32LE(this._a,0),P.writeInt32LE(this._b,4),P.writeInt32LE(this._c,8),P.writeInt32LE(this._d,12),P};function L(P,v){return P<<v|P>>>32-v}function S(P,v,N,f,x,b,k){return L(P+(v&N|~v&f)+x+b|0,k)+v|0}function E(P,v,N,f,x,b,k){return L(P+(v&f|N&~f)+x+b|0,k)+v|0}function _(P,v,N,f,x,b,k){return L(P+(v^N^f)+x+b|0,k)+v|0}function M(P,v,N,f,x,b,k){return L(P+(N^(v|~f))+x+b|0,k)+v|0}J.exports=V}),nu=u0((U,J)=>{var Q=b6().Buffer,O=du();function X(z,V,L,S){if(!Q.isBuffer(z))z=Q.from(z,"binary");if(V){if(!Q.isBuffer(V))V=Q.from(V,"binary");if(V.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var E=L/8,_=Q.alloc(E),M=Q.alloc(S||0),P=Q.alloc(0);while(E>0||S>0){var v=new O;if(v.update(P),v.update(z),V)v.update(V);P=v.digest();var N=0;if(E>0){var f=_.length-E;N=Math.min(E,P.length),P.copy(_,f,0,N),E-=N}if(N<P.length&&S>0){var x=M.length-S,b=Math.min(S,P.length-N);P.copy(M,x,N,N+b),S-=b}}return P.fill(0),{key:_,iv:M}}J.exports=X}),vj=u0((U)=>{var J=(hU(),v$(q4));U.createCipher=U.Cipher=J.createCipher,U.createCipheriv=U.Cipheriv=J.createCipheriv,U.createDecipher=U.Decipher=J.createDecipher,U.createDecipheriv=U.Decipheriv=J.createDecipheriv,U.listCiphers=U.getCiphers=J.getCiphers}),ou=u0((U,J)=>{var Q=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,O=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,X=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,z=nu(),V=vj(),L=b6().Buffer;J.exports=function(S,E){var _=S.toString(),M=_.match(Q),P;if(!M){var v=_.match(X);P=L.from(v[2].replace(/[\r\n]/g,""),"base64")}else{var N="aes"+M[1],f=L.from(M[2],"hex"),x=L.from(M[3].replace(/[\r\n]/g,""),"base64"),b=z(E,f.slice(0,8),parseInt(M[1],10)).key,k=[],u=V.createDecipheriv(N,b,f);k.push(u.update(x)),k.push(u.final()),P=L.concat(k)}var p=_.match(O)[1];return{tag:p,data:P}}}),Bj=u0((U,J)=>{var Q=pu(),O=lu(),X=ou(),z=vj(),V=Aj().pbkdf2Sync,L=b6().Buffer;function S(_,M){var P=_.algorithm.decrypt.kde.kdeparams.salt,v=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),N=O[_.algorithm.decrypt.cipher.algo.join(".")],f=_.algorithm.decrypt.cipher.iv,x=_.subjectPrivateKey,b=parseInt(N.split("-")[1],10)/8,k=V(M,P,v,b,"sha1"),u=z.createDecipheriv(N,k,f),p=[];return p.push(u.update(x)),p.push(u.final()),L.concat(p)}function E(_){var M;if(typeof _==="object"&&!L.isBuffer(_))M=_.passphrase,_=_.key;if(typeof _==="string")_=L.from(_);var P=X(_,M),v=P.tag,N=P.data,f,x;switch(v){case"CERTIFICATE":x=Q.certificate.decode(N,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!x)x=Q.PublicKey.decode(N,"der");switch(f=x.algorithm.algorithm.join("."),f){case"1.2.840.113549.1.1.1":return Q.RSAPublicKey.decode(x.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return x.subjectPrivateKey=x.subjectPublicKey,{type:"ec",data:x};case"1.2.840.10040.4.1":return x.algorithm.params.pub_key=Q.DSAparam.decode(x.subjectPublicKey.data,"der"),{type:"dsa",data:x.algorithm.params};default:throw Error("unknown key id "+f)}case"ENCRYPTED PRIVATE KEY":N=Q.EncryptedPrivateKey.decode(N,"der"),N=S(N,M);case"PRIVATE KEY":switch(x=Q.PrivateKey.decode(N,"der"),f=x.algorithm.algorithm.join("."),f){case"1.2.840.113549.1.1.1":return Q.RSAPrivateKey.decode(x.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:x.algorithm.curve,privateKey:Q.ECPrivateKey.decode(x.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return x.algorithm.params.priv_key=Q.DSAparam.decode(x.subjectPrivateKey,"der"),{type:"dsa",params:x.algorithm.params};default:throw Error("unknown key id "+f)}case"RSA PUBLIC KEY":return Q.RSAPublicKey.decode(N,"der");case"RSA PRIVATE KEY":return Q.RSAPrivateKey.decode(N,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Q.DSAPrivateKey.decode(N,"der")};case"EC PRIVATE KEY":return N=Q.ECPrivateKey.decode(N,"der"),{curve:N.parameters.value,privateKey:N.privateKey};default:throw Error("unknown key type "+v)}}E.signature=Q.signature,J.exports=E}),Nj=u0((U,J)=>{var Q=eO(),O=b6().Buffer;J.exports=function(z,V){var L=O.alloc(0),S=0,E;while(L.length<V)E=X(S++),L=O.concat([L,Q("sha1").update(z).update(E).digest()]);return L.slice(0,V)};function X(z){var V=O.allocUnsafe(4);return V.writeUInt32BE(z,0),V}}),kj=u0((U,J)=>{J.exports=function(Q,O){var X=Q.length,z=-1;while(++z<X)Q[z]^=O[z];return Q}}),HF=u0((U,J)=>{(function(Q,O){function X(G,D){if(!G)throw Error(D||"Assertion failed")}function z(G,D){G.super_=D;var H=function(){};H.prototype=D.prototype,G.prototype=new H,G.prototype.constructor=G}function V(G,D,H){if(V.isBN(G))return G;if(this.negative=0,this.words=null,this.length=0,this.red=null,G!==null){if(D==="le"||D==="be")H=D,D=10;this._init(G||0,D||10,H||"be")}}if(typeof Q==="object")Q.exports=V;else O.BN=V;V.BN=V,V.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(tU(),v$(rU)).Buffer}catch(G){}V.isBN=function(G){if(G instanceof V)return!0;return G!==null&&typeof G==="object"&&G.constructor.wordSize===V.wordSize&&Array.isArray(G.words)},V.max=function(G,D){if(G.cmp(D)>0)return G;return D},V.min=function(G,D){if(G.cmp(D)<0)return G;return D},V.prototype._init=function(G,D,H){if(typeof G==="number")return this._initNumber(G,D,H);if(typeof G==="object")return this._initArray(G,D,H);if(D==="hex")D=16;X(D===(D|0)&&D>=2&&D<=36),G=G.toString().replace(/\s+/g,"");var K=0;if(G[0]==="-")K++,this.negative=1;if(K<G.length){if(D===16)this._parseHex(G,K,H);else if(this._parseBase(G,D,K),H==="le")this._initArray(this.toArray(),D,H)}},V.prototype._initNumber=function(G,D,H){if(G<0)this.negative=1,G=-G;if(G<67108864)this.words=[G&67108863],this.length=1;else if(G<4503599627370496)this.words=[G&67108863,G/67108864&67108863],this.length=2;else X(G<9007199254740992),this.words=[G&67108863,G/67108864&67108863,1],this.length=3;if(H!=="le")return;this._initArray(this.toArray(),D,H)},V.prototype._initArray=function(G,D,H){if(X(typeof G.length==="number"),G.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(G.length/3),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F,C,j=0;if(H==="be"){for(K=G.length-1,F=0;K>=0;K-=3)if(C=G[K]|G[K-1]<<8|G[K-2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}else if(H==="le"){for(K=0,F=0;K<G.length;K+=3)if(C=G[K]|G[K+1]<<8|G[K+2]<<16,this.words[F]|=C<<j&67108863,this.words[F+1]=C>>>26-j&67108863,j+=24,j>=26)j-=26,F++}return this.strip()};function S(G,D){var H=G.charCodeAt(D);if(H>=65&&H<=70)return H-55;else if(H>=97&&H<=102)return H-87;else return H-48&15}function E(G,D,H){var K=S(G,H);if(H-1>=D)K|=S(G,H-1)<<4;return K}V.prototype._parseHex=function(G,D,H){this.length=Math.ceil((G.length-D)/6),this.words=Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var F=0,C=0,j;if(H==="be")for(K=G.length-1;K>=D;K-=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8;else{var q=G.length-D;for(K=q%2===0?D+1:D;K<G.length;K+=2)if(j=E(G,D,K)<<F,this.words[C]|=j&67108863,F>=18)F-=18,C+=1,this.words[C]|=j>>>26;else F+=8}this.strip()};function _(G,D,H,K){var F=0,C=Math.min(G.length,H);for(var j=D;j<C;j++){var q=G.charCodeAt(j)-48;if(F*=K,q>=49)F+=q-49+10;else if(q>=17)F+=q-17+10;else F+=q}return F}V.prototype._parseBase=function(G,D,H){this.words=[0],this.length=1;for(var K=0,F=1;F<=67108863;F*=D)K++;K--,F=F/D|0;var C=G.length-H,j=C%K,q=Math.min(C,C-j)+H,Z=0;for(var T=H;T<q;T+=K)if(Z=_(G,T,T+K,D),this.imuln(F),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z);if(j!==0){var w=1;Z=_(G,T,G.length,D);for(T=0;T<j;T++)w*=D;if(this.imuln(w),this.words[0]+Z<67108864)this.words[0]+=Z;else this._iaddn(Z)}this.strip()},V.prototype.copy=function(G){G.words=Array(this.length);for(var D=0;D<this.length;D++)G.words[D]=this.words[D];G.length=this.length,G.negative=this.negative,G.red=this.red},V.prototype.clone=function(){var G=new V(null);return this.copy(G),G},V.prototype._expand=function(G){while(this.length<G)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(G,D){G=G||10,D=D|0||1;var H;if(G===16||G==="hex"){H="";var K=0,F=0;for(var C=0;C<this.length;C++){var j=this.words[C],q=((j<<K|F)&16777215).toString(16);if(F=j>>>24-K&16777215,K+=2,K>=26)K-=26,C--;if(F!==0||C!==this.length-1)H=M[6-q.length]+q+H;else H=q+H}if(F!==0)H=F.toString(16)+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}if(G===(G|0)&&G>=2&&G<=36){var Z=P[G],T=v[G];H="";var w=this.clone();w.negative=0;while(!w.isZero()){var B=w.modn(T).toString(G);if(w=w.idivn(T),!w.isZero())H=M[Z-B.length]+B+H;else H=B+H}if(this.isZero())H="0"+H;while(H.length%D!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}X(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var G=this.words[0];if(this.length===2)G+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)G+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-G:G},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(G,D){return X(typeof L<"u"),this.toArrayLike(L,G,D)},V.prototype.toArray=function(G,D){return this.toArrayLike(Array,G,D)},V.prototype.toArrayLike=function(G,D,H){var K=this.byteLength(),F=H||Math.max(1,K);X(K<=F,"byte array longer than desired length"),X(F>0,"Requested array length <= 0"),this.strip();var C=D==="le",j=new G(F),q,Z,T=this.clone();if(!C){for(Z=0;Z<F-K;Z++)j[Z]=0;for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[F-Z-1]=q}else{for(Z=0;!T.isZero();Z++)q=T.andln(255),T.iushrn(8),j[Z]=q;for(;Z<F;Z++)j[Z]=0}return j},Math.clz32)V.prototype._countBits=function(G){return 32-Math.clz32(G)};else V.prototype._countBits=function(G){var D=G,H=0;if(D>=4096)H+=13,D>>>=13;if(D>=64)H+=7,D>>>=7;if(D>=8)H+=4,D>>>=4;if(D>=2)H+=2,D>>>=2;return H+D};V.prototype._zeroBits=function(G){if(G===0)return 26;var D=G,H=0;if((D&8191)===0)H+=13,D>>>=13;if((D&127)===0)H+=7,D>>>=7;if((D&15)===0)H+=4,D>>>=4;if((D&3)===0)H+=2,D>>>=2;if((D&1)===0)H++;return H},V.prototype.bitLength=function(){var G=this.words[this.length-1],D=this._countBits(G);return(this.length-1)*26+D};function N(G){var D=Array(G.bitLength());for(var H=0;H<D.length;H++){var K=H/26|0,F=H%26;D[H]=(G.words[K]&1<<F)>>>F}return D}V.prototype.zeroBits=function(){if(this.isZero())return 0;var G=0;for(var D=0;D<this.length;D++){var H=this._zeroBits(this.words[D]);if(G+=H,H!==26)break}return G},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(G){if(this.negative!==0)return this.abs().inotn(G).iaddn(1);return this.clone()},V.prototype.fromTwos=function(G){if(this.testn(G-1))return this.notn(G).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(G){while(this.length<G.length)this.words[this.length++]=0;for(var D=0;D<G.length;D++)this.words[D]=this.words[D]|G.words[D];return this.strip()},V.prototype.ior=function(G){return X((this.negative|G.negative)===0),this.iuor(G)},V.prototype.or=function(G){if(this.length>G.length)return this.clone().ior(G);return G.clone().ior(this)},V.prototype.uor=function(G){if(this.length>G.length)return this.clone().iuor(G);return G.clone().iuor(this)},V.prototype.iuand=function(G){var D;if(this.length>G.length)D=G;else D=this;for(var H=0;H<D.length;H++)this.words[H]=this.words[H]&G.words[H];return this.length=D.length,this.strip()},V.prototype.iand=function(G){return X((this.negative|G.negative)===0),this.iuand(G)},V.prototype.and=function(G){if(this.length>G.length)return this.clone().iand(G);return G.clone().iand(this)},V.prototype.uand=function(G){if(this.length>G.length)return this.clone().iuand(G);return G.clone().iuand(this)},V.prototype.iuxor=function(G){var D,H;if(this.length>G.length)D=this,H=G;else D=G,H=this;for(var K=0;K<H.length;K++)this.words[K]=D.words[K]^H.words[K];if(this!==D)for(;K<D.length;K++)this.words[K]=D.words[K];return this.length=D.length,this.strip()},V.prototype.ixor=function(G){return X((this.negative|G.negative)===0),this.iuxor(G)},V.prototype.xor=function(G){if(this.length>G.length)return this.clone().ixor(G);return G.clone().ixor(this)},V.prototype.uxor=function(G){if(this.length>G.length)return this.clone().iuxor(G);return G.clone().iuxor(this)},V.prototype.inotn=function(G){X(typeof G==="number"&&G>=0);var D=Math.ceil(G/26)|0,H=G%26;if(this._expand(D),H>0)D--;for(var K=0;K<D;K++)this.words[K]=~this.words[K]&67108863;if(H>0)this.words[K]=~this.words[K]&67108863>>26-H;return this.strip()},V.prototype.notn=function(G){return this.clone().inotn(G)},V.prototype.setn=function(G,D){X(typeof G==="number"&&G>=0);var H=G/26|0,K=G%26;if(this._expand(H+1),D)this.words[H]=this.words[H]|1<<K;else this.words[H]=this.words[H]&~(1<<K);return this.strip()},V.prototype.iadd=function(G){var D;if(this.negative!==0&&G.negative===0)return this.negative=0,D=this.isub(G),this.negative^=1,this._normSign();else if(this.negative===0&&G.negative!==0)return G.negative=0,D=this.isub(G),G.negative=1,D._normSign();var H,K;if(this.length>G.length)H=this,K=G;else H=G,K=this;var F=0;for(var C=0;C<K.length;C++)D=(H.words[C]|0)+(K.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;for(;F!==0&&C<H.length;C++)D=(H.words[C]|0)+F,this.words[C]=D&67108863,F=D>>>26;if(this.length=H.length,F!==0)this.words[this.length]=F,this.length++;else if(H!==this)for(;C<H.length;C++)this.words[C]=H.words[C];return this},V.prototype.add=function(G){var D;if(G.negative!==0&&this.negative===0)return G.negative=0,D=this.sub(G),G.negative^=1,D;else if(G.negative===0&&this.negative!==0)return this.negative=0,D=G.sub(this),this.negative=1,D;if(this.length>G.length)return this.clone().iadd(G);return G.clone().iadd(this)},V.prototype.isub=function(G){if(G.negative!==0){G.negative=0;var D=this.iadd(G);return G.negative=1,D._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(G),this.negative=1,this._normSign();var H=this.cmp(G);if(H===0)return this.negative=0,this.length=1,this.words[0]=0,this;var K,F;if(H>0)K=this,F=G;else K=G,F=this;var C=0;for(var j=0;j<F.length;j++)D=(K.words[j]|0)-(F.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;for(;C!==0&&j<K.length;j++)D=(K.words[j]|0)+C,C=D>>26,this.words[j]=D&67108863;if(C===0&&j<K.length&&K!==this)for(;j<K.length;j++)this.words[j]=K.words[j];if(this.length=Math.max(this.length,j),K!==this)this.negative=1;return this.strip()},V.prototype.sub=function(G){return this.clone().isub(G)};function f(G,D,H){H.negative=D.negative^G.negative;var K=G.length+D.length|0;H.length=K,K=K-1|0;var F=G.words[0]|0,C=D.words[0]|0,j=F*C,q=j&67108863,Z=j/67108864|0;H.words[0]=q;for(var T=1;T<K;T++){var w=Z>>>26,B=Z&67108863,h=Math.min(T,D.length-1);for(var t=Math.max(0,T-G.length+1);t<=h;t++){var U0=T-t|0;F=G.words[U0]|0,C=D.words[t]|0,j=F*C+B,w+=j/67108864|0,B=j&67108863}H.words[T]=B|0,Z=w|0}if(Z!==0)H.words[T]=Z|0;else H.length--;return H.strip()}var x=function(G,D,H){var K=G.words,F=D.words,C=H.words,j=0,q,Z,T,w=K[0]|0,B=w&8191,h=w>>>13,t=K[1]|0,U0=t&8191,z0=t>>>13,Q0=K[2]|0,s=Q0&8191,e=Q0>>>13,J0=K[3]|0,V0=J0&8191,A0=J0>>>13,$0=K[4]|0,c=$0&8191,n=$0>>>13,H0=K[5]|0,Y0=H0&8191,D0=H0>>>13,N0=K[6]|0,I0=N0&8191,K0=N0>>>13,U$=K[7]|0,M0=U$&8191,v0=U$>>>13,L$=K[8]|0,p0=L$&8191,c0=L$>>>13,t$=K[9]|0,b0=t$&8191,h0=t$>>>13,VU=F[0]|0,r0=VU&8191,o0=VU>>>13,EU=F[1]|0,l=EU&8191,X0=EU>>>13,s0=F[2]|0,S0=s0&8191,B0=s0>>>13,F$=F[3]|0,g0=F$&8191,f0=F$>>>13,K$=F[4]|0,n0=K$&8191,i0=K$>>>13,WU=F[5]|0,a0=WU&8191,r=WU>>>13,G0=F[6]|0,E0=G0&8191,_0=G0>>>13,Z$=F[7]|0,d0=Z$&8191,t0=Z$>>>13,AU=F[8]|0,I$=AU&8191,$$=AU>>>13,IU=F[9]|0,X$=IU&8191,e0=IU>>>13;H.negative=G.negative^D.negative,H.length=19,q=Math.imul(B,r0),Z=Math.imul(B,o0),Z=Z+Math.imul(h,r0)|0,T=Math.imul(h,o0);var _U=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(_U>>>26)|0,_U&=67108863,q=Math.imul(U0,r0),Z=Math.imul(U0,o0),Z=Z+Math.imul(z0,r0)|0,T=Math.imul(z0,o0),q=q+Math.imul(B,l)|0,Z=Z+Math.imul(B,X0)|0,Z=Z+Math.imul(h,l)|0,T=T+Math.imul(h,X0)|0;var B$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(B$>>>26)|0,B$&=67108863,q=Math.imul(s,r0),Z=Math.imul(s,o0),Z=Z+Math.imul(e,r0)|0,T=Math.imul(e,o0),q=q+Math.imul(U0,l)|0,Z=Z+Math.imul(U0,X0)|0,Z=Z+Math.imul(z0,l)|0,T=T+Math.imul(z0,X0)|0,q=q+Math.imul(B,S0)|0,Z=Z+Math.imul(B,B0)|0,Z=Z+Math.imul(h,S0)|0,T=T+Math.imul(h,B0)|0;var j$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(j$>>>26)|0,j$&=67108863,q=Math.imul(V0,r0),Z=Math.imul(V0,o0),Z=Z+Math.imul(A0,r0)|0,T=Math.imul(A0,o0),q=q+Math.imul(s,l)|0,Z=Z+Math.imul(s,X0)|0,Z=Z+Math.imul(e,l)|0,T=T+Math.imul(e,X0)|0,q=q+Math.imul(U0,S0)|0,Z=Z+Math.imul(U0,B0)|0,Z=Z+Math.imul(z0,S0)|0,T=T+Math.imul(z0,B0)|0,q=q+Math.imul(B,g0)|0,Z=Z+Math.imul(B,f0)|0,Z=Z+Math.imul(h,g0)|0,T=T+Math.imul(h,f0)|0;var XU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(XU>>>26)|0,XU&=67108863,q=Math.imul(c,r0),Z=Math.imul(c,o0),Z=Z+Math.imul(n,r0)|0,T=Math.imul(n,o0),q=q+Math.imul(V0,l)|0,Z=Z+Math.imul(V0,X0)|0,Z=Z+Math.imul(A0,l)|0,T=T+Math.imul(A0,X0)|0,q=q+Math.imul(s,S0)|0,Z=Z+Math.imul(s,B0)|0,Z=Z+Math.imul(e,S0)|0,T=T+Math.imul(e,B0)|0,q=q+Math.imul(U0,g0)|0,Z=Z+Math.imul(U0,f0)|0,Z=Z+Math.imul(z0,g0)|0,T=T+Math.imul(z0,f0)|0,q=q+Math.imul(B,n0)|0,Z=Z+Math.imul(B,i0)|0,Z=Z+Math.imul(h,n0)|0,T=T+Math.imul(h,i0)|0;var o$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(o$>>>26)|0,o$&=67108863,q=Math.imul(Y0,r0),Z=Math.imul(Y0,o0),Z=Z+Math.imul(D0,r0)|0,T=Math.imul(D0,o0),q=q+Math.imul(c,l)|0,Z=Z+Math.imul(c,X0)|0,Z=Z+Math.imul(n,l)|0,T=T+Math.imul(n,X0)|0,q=q+Math.imul(V0,S0)|0,Z=Z+Math.imul(V0,B0)|0,Z=Z+Math.imul(A0,S0)|0,T=T+Math.imul(A0,B0)|0,q=q+Math.imul(s,g0)|0,Z=Z+Math.imul(s,f0)|0,Z=Z+Math.imul(e,g0)|0,T=T+Math.imul(e,f0)|0,q=q+Math.imul(U0,n0)|0,Z=Z+Math.imul(U0,i0)|0,Z=Z+Math.imul(z0,n0)|0,T=T+Math.imul(z0,i0)|0,q=q+Math.imul(B,a0)|0,Z=Z+Math.imul(B,r)|0,Z=Z+Math.imul(h,a0)|0,T=T+Math.imul(h,r)|0;var cU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(cU>>>26)|0,cU&=67108863,q=Math.imul(I0,r0),Z=Math.imul(I0,o0),Z=Z+Math.imul(K0,r0)|0,T=Math.imul(K0,o0),q=q+Math.imul(Y0,l)|0,Z=Z+Math.imul(Y0,X0)|0,Z=Z+Math.imul(D0,l)|0,T=T+Math.imul(D0,X0)|0,q=q+Math.imul(c,S0)|0,Z=Z+Math.imul(c,B0)|0,Z=Z+Math.imul(n,S0)|0,T=T+Math.imul(n,B0)|0,q=q+Math.imul(V0,g0)|0,Z=Z+Math.imul(V0,f0)|0,Z=Z+Math.imul(A0,g0)|0,T=T+Math.imul(A0,f0)|0,q=q+Math.imul(s,n0)|0,Z=Z+Math.imul(s,i0)|0,Z=Z+Math.imul(e,n0)|0,T=T+Math.imul(e,i0)|0,q=q+Math.imul(U0,a0)|0,Z=Z+Math.imul(U0,r)|0,Z=Z+Math.imul(z0,a0)|0,T=T+Math.imul(z0,r)|0,q=q+Math.imul(B,E0)|0,Z=Z+Math.imul(B,_0)|0,Z=Z+Math.imul(h,E0)|0,T=T+Math.imul(h,_0)|0;var pU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(pU>>>26)|0,pU&=67108863,q=Math.imul(M0,r0),Z=Math.imul(M0,o0),Z=Z+Math.imul(v0,r0)|0,T=Math.imul(v0,o0),q=q+Math.imul(I0,l)|0,Z=Z+Math.imul(I0,X0)|0,Z=Z+Math.imul(K0,l)|0,T=T+Math.imul(K0,X0)|0,q=q+Math.imul(Y0,S0)|0,Z=Z+Math.imul(Y0,B0)|0,Z=Z+Math.imul(D0,S0)|0,T=T+Math.imul(D0,B0)|0,q=q+Math.imul(c,g0)|0,Z=Z+Math.imul(c,f0)|0,Z=Z+Math.imul(n,g0)|0,T=T+Math.imul(n,f0)|0,q=q+Math.imul(V0,n0)|0,Z=Z+Math.imul(V0,i0)|0,Z=Z+Math.imul(A0,n0)|0,T=T+Math.imul(A0,i0)|0,q=q+Math.imul(s,a0)|0,Z=Z+Math.imul(s,r)|0,Z=Z+Math.imul(e,a0)|0,T=T+Math.imul(e,r)|0,q=q+Math.imul(U0,E0)|0,Z=Z+Math.imul(U0,_0)|0,Z=Z+Math.imul(z0,E0)|0,T=T+Math.imul(z0,_0)|0,q=q+Math.imul(B,d0)|0,Z=Z+Math.imul(B,t0)|0,Z=Z+Math.imul(h,d0)|0,T=T+Math.imul(h,t0)|0;var lU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(lU>>>26)|0,lU&=67108863,q=Math.imul(p0,r0),Z=Math.imul(p0,o0),Z=Z+Math.imul(c0,r0)|0,T=Math.imul(c0,o0),q=q+Math.imul(M0,l)|0,Z=Z+Math.imul(M0,X0)|0,Z=Z+Math.imul(v0,l)|0,T=T+Math.imul(v0,X0)|0,q=q+Math.imul(I0,S0)|0,Z=Z+Math.imul(I0,B0)|0,Z=Z+Math.imul(K0,S0)|0,T=T+Math.imul(K0,B0)|0,q=q+Math.imul(Y0,g0)|0,Z=Z+Math.imul(Y0,f0)|0,Z=Z+Math.imul(D0,g0)|0,T=T+Math.imul(D0,f0)|0,q=q+Math.imul(c,n0)|0,Z=Z+Math.imul(c,i0)|0,Z=Z+Math.imul(n,n0)|0,T=T+Math.imul(n,i0)|0,q=q+Math.imul(V0,a0)|0,Z=Z+Math.imul(V0,r)|0,Z=Z+Math.imul(A0,a0)|0,T=T+Math.imul(A0,r)|0,q=q+Math.imul(s,E0)|0,Z=Z+Math.imul(s,_0)|0,Z=Z+Math.imul(e,E0)|0,T=T+Math.imul(e,_0)|0,q=q+Math.imul(U0,d0)|0,Z=Z+Math.imul(U0,t0)|0,Z=Z+Math.imul(z0,d0)|0,T=T+Math.imul(z0,t0)|0,q=q+Math.imul(B,I$)|0,Z=Z+Math.imul(B,$$)|0,Z=Z+Math.imul(h,I$)|0,T=T+Math.imul(h,$$)|0;var mU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(mU>>>26)|0,mU&=67108863,q=Math.imul(b0,r0),Z=Math.imul(b0,o0),Z=Z+Math.imul(h0,r0)|0,T=Math.imul(h0,o0),q=q+Math.imul(p0,l)|0,Z=Z+Math.imul(p0,X0)|0,Z=Z+Math.imul(c0,l)|0,T=T+Math.imul(c0,X0)|0,q=q+Math.imul(M0,S0)|0,Z=Z+Math.imul(M0,B0)|0,Z=Z+Math.imul(v0,S0)|0,T=T+Math.imul(v0,B0)|0,q=q+Math.imul(I0,g0)|0,Z=Z+Math.imul(I0,f0)|0,Z=Z+Math.imul(K0,g0)|0,T=T+Math.imul(K0,f0)|0,q=q+Math.imul(Y0,n0)|0,Z=Z+Math.imul(Y0,i0)|0,Z=Z+Math.imul(D0,n0)|0,T=T+Math.imul(D0,i0)|0,q=q+Math.imul(c,a0)|0,Z=Z+Math.imul(c,r)|0,Z=Z+Math.imul(n,a0)|0,T=T+Math.imul(n,r)|0,q=q+Math.imul(V0,E0)|0,Z=Z+Math.imul(V0,_0)|0,Z=Z+Math.imul(A0,E0)|0,T=T+Math.imul(A0,_0)|0,q=q+Math.imul(s,d0)|0,Z=Z+Math.imul(s,t0)|0,Z=Z+Math.imul(e,d0)|0,T=T+Math.imul(e,t0)|0,q=q+Math.imul(U0,I$)|0,Z=Z+Math.imul(U0,$$)|0,Z=Z+Math.imul(z0,I$)|0,T=T+Math.imul(z0,$$)|0,q=q+Math.imul(B,X$)|0,Z=Z+Math.imul(B,e0)|0,Z=Z+Math.imul(h,X$)|0,T=T+Math.imul(h,e0)|0;var dU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(dU>>>26)|0,dU&=67108863,q=Math.imul(b0,l),Z=Math.imul(b0,X0),Z=Z+Math.imul(h0,l)|0,T=Math.imul(h0,X0),q=q+Math.imul(p0,S0)|0,Z=Z+Math.imul(p0,B0)|0,Z=Z+Math.imul(c0,S0)|0,T=T+Math.imul(c0,B0)|0,q=q+Math.imul(M0,g0)|0,Z=Z+Math.imul(M0,f0)|0,Z=Z+Math.imul(v0,g0)|0,T=T+Math.imul(v0,f0)|0,q=q+Math.imul(I0,n0)|0,Z=Z+Math.imul(I0,i0)|0,Z=Z+Math.imul(K0,n0)|0,T=T+Math.imul(K0,i0)|0,q=q+Math.imul(Y0,a0)|0,Z=Z+Math.imul(Y0,r)|0,Z=Z+Math.imul(D0,a0)|0,T=T+Math.imul(D0,r)|0,q=q+Math.imul(c,E0)|0,Z=Z+Math.imul(c,_0)|0,Z=Z+Math.imul(n,E0)|0,T=T+Math.imul(n,_0)|0,q=q+Math.imul(V0,d0)|0,Z=Z+Math.imul(V0,t0)|0,Z=Z+Math.imul(A0,d0)|0,T=T+Math.imul(A0,t0)|0,q=q+Math.imul(s,I$)|0,Z=Z+Math.imul(s,$$)|0,Z=Z+Math.imul(e,I$)|0,T=T+Math.imul(e,$$)|0,q=q+Math.imul(U0,X$)|0,Z=Z+Math.imul(U0,e0)|0,Z=Z+Math.imul(z0,X$)|0,T=T+Math.imul(z0,e0)|0;var a$=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(a$>>>26)|0,a$&=67108863,q=Math.imul(b0,S0),Z=Math.imul(b0,B0),Z=Z+Math.imul(h0,S0)|0,T=Math.imul(h0,B0),q=q+Math.imul(p0,g0)|0,Z=Z+Math.imul(p0,f0)|0,Z=Z+Math.imul(c0,g0)|0,T=T+Math.imul(c0,f0)|0,q=q+Math.imul(M0,n0)|0,Z=Z+Math.imul(M0,i0)|0,Z=Z+Math.imul(v0,n0)|0,T=T+Math.imul(v0,i0)|0,q=q+Math.imul(I0,a0)|0,Z=Z+Math.imul(I0,r)|0,Z=Z+Math.imul(K0,a0)|0,T=T+Math.imul(K0,r)|0,q=q+Math.imul(Y0,E0)|0,Z=Z+Math.imul(Y0,_0)|0,Z=Z+Math.imul(D0,E0)|0,T=T+Math.imul(D0,_0)|0,q=q+Math.imul(c,d0)|0,Z=Z+Math.imul(c,t0)|0,Z=Z+Math.imul(n,d0)|0,T=T+Math.imul(n,t0)|0,q=q+Math.imul(V0,I$)|0,Z=Z+Math.imul(V0,$$)|0,Z=Z+Math.imul(A0,I$)|0,T=T+Math.imul(A0,$$)|0,q=q+Math.imul(s,X$)|0,Z=Z+Math.imul(s,e0)|0,Z=Z+Math.imul(e,X$)|0,T=T+Math.imul(e,e0)|0;var qU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(qU>>>26)|0,qU&=67108863,q=Math.imul(b0,g0),Z=Math.imul(b0,f0),Z=Z+Math.imul(h0,g0)|0,T=Math.imul(h0,f0),q=q+Math.imul(p0,n0)|0,Z=Z+Math.imul(p0,i0)|0,Z=Z+Math.imul(c0,n0)|0,T=T+Math.imul(c0,i0)|0,q=q+Math.imul(M0,a0)|0,Z=Z+Math.imul(M0,r)|0,Z=Z+Math.imul(v0,a0)|0,T=T+Math.imul(v0,r)|0,q=q+Math.imul(I0,E0)|0,Z=Z+Math.imul(I0,_0)|0,Z=Z+Math.imul(K0,E0)|0,T=T+Math.imul(K0,_0)|0,q=q+Math.imul(Y0,d0)|0,Z=Z+Math.imul(Y0,t0)|0,Z=Z+Math.imul(D0,d0)|0,T=T+Math.imul(D0,t0)|0,q=q+Math.imul(c,I$)|0,Z=Z+Math.imul(c,$$)|0,Z=Z+Math.imul(n,I$)|0,T=T+Math.imul(n,$$)|0,q=q+Math.imul(V0,X$)|0,Z=Z+Math.imul(V0,e0)|0,Z=Z+Math.imul(A0,X$)|0,T=T+Math.imul(A0,e0)|0;var FU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(FU>>>26)|0,FU&=67108863,q=Math.imul(b0,n0),Z=Math.imul(b0,i0),Z=Z+Math.imul(h0,n0)|0,T=Math.imul(h0,i0),q=q+Math.imul(p0,a0)|0,Z=Z+Math.imul(p0,r)|0,Z=Z+Math.imul(c0,a0)|0,T=T+Math.imul(c0,r)|0,q=q+Math.imul(M0,E0)|0,Z=Z+Math.imul(M0,_0)|0,Z=Z+Math.imul(v0,E0)|0,T=T+Math.imul(v0,_0)|0,q=q+Math.imul(I0,d0)|0,Z=Z+Math.imul(I0,t0)|0,Z=Z+Math.imul(K0,d0)|0,T=T+Math.imul(K0,t0)|0,q=q+Math.imul(Y0,I$)|0,Z=Z+Math.imul(Y0,$$)|0,Z=Z+Math.imul(D0,I$)|0,T=T+Math.imul(D0,$$)|0,q=q+Math.imul(c,X$)|0,Z=Z+Math.imul(c,e0)|0,Z=Z+Math.imul(n,X$)|0,T=T+Math.imul(n,e0)|0;var nU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(nU>>>26)|0,nU&=67108863,q=Math.imul(b0,a0),Z=Math.imul(b0,r),Z=Z+Math.imul(h0,a0)|0,T=Math.imul(h0,r),q=q+Math.imul(p0,E0)|0,Z=Z+Math.imul(p0,_0)|0,Z=Z+Math.imul(c0,E0)|0,T=T+Math.imul(c0,_0)|0,q=q+Math.imul(M0,d0)|0,Z=Z+Math.imul(M0,t0)|0,Z=Z+Math.imul(v0,d0)|0,T=T+Math.imul(v0,t0)|0,q=q+Math.imul(I0,I$)|0,Z=Z+Math.imul(I0,$$)|0,Z=Z+Math.imul(K0,I$)|0,T=T+Math.imul(K0,$$)|0,q=q+Math.imul(Y0,X$)|0,Z=Z+Math.imul(Y0,e0)|0,Z=Z+Math.imul(D0,X$)|0,T=T+Math.imul(D0,e0)|0;var SU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(SU>>>26)|0,SU&=67108863,q=Math.imul(b0,E0),Z=Math.imul(b0,_0),Z=Z+Math.imul(h0,E0)|0,T=Math.imul(h0,_0),q=q+Math.imul(p0,d0)|0,Z=Z+Math.imul(p0,t0)|0,Z=Z+Math.imul(c0,d0)|0,T=T+Math.imul(c0,t0)|0,q=q+Math.imul(M0,I$)|0,Z=Z+Math.imul(M0,$$)|0,Z=Z+Math.imul(v0,I$)|0,T=T+Math.imul(v0,$$)|0,q=q+Math.imul(I0,X$)|0,Z=Z+Math.imul(I0,e0)|0,Z=Z+Math.imul(K0,X$)|0,T=T+Math.imul(K0,e0)|0;var gU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(gU>>>26)|0,gU&=67108863,q=Math.imul(b0,d0),Z=Math.imul(b0,t0),Z=Z+Math.imul(h0,d0)|0,T=Math.imul(h0,t0),q=q+Math.imul(p0,I$)|0,Z=Z+Math.imul(p0,$$)|0,Z=Z+Math.imul(c0,I$)|0,T=T+Math.imul(c0,$$)|0,q=q+Math.imul(M0,X$)|0,Z=Z+Math.imul(M0,e0)|0,Z=Z+Math.imul(v0,X$)|0,T=T+Math.imul(v0,e0)|0;var fU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(fU>>>26)|0,fU&=67108863,q=Math.imul(b0,I$),Z=Math.imul(b0,$$),Z=Z+Math.imul(h0,I$)|0,T=Math.imul(h0,$$),q=q+Math.imul(p0,X$)|0,Z=Z+Math.imul(p0,e0)|0,Z=Z+Math.imul(c0,X$)|0,T=T+Math.imul(c0,e0)|0;var jU=(j+q|0)+((Z&8191)<<13)|0;j=(T+(Z>>>13)|0)+(jU>>>26)|0,jU&=67108863,q=Math.imul(b0,X$),Z=Math.imul(b0,e0),Z=Z+Math.imul(h0,X$)|0,T=Math.imul(h0,e0);var TU=(j+q|0)+((Z&8191)<<13)|0;if(j=(T+(Z>>>13)|0)+(TU>>>26)|0,TU&=67108863,C[0]=_U,C[1]=B$,C[2]=j$,C[3]=XU,C[4]=o$,C[5]=cU,C[6]=pU,C[7]=lU,C[8]=mU,C[9]=dU,C[10]=a$,C[11]=qU,C[12]=FU,C[13]=nU,C[14]=SU,C[15]=gU,C[16]=fU,C[17]=jU,C[18]=TU,j!==0)C[19]=j,H.length++;return H};if(!Math.imul)x=f;function b(G,D,H){H.negative=D.negative^G.negative,H.length=G.length+D.length;var K=0,F=0;for(var C=0;C<H.length-1;C++){var j=F;F=0;var q=K&67108863,Z=Math.min(C,D.length-1);for(var T=Math.max(0,C-G.length+1);T<=Z;T++){var w=C-T,B=G.words[w]|0,h=D.words[T]|0,t=B*h,U0=t&67108863;j=j+(t/67108864|0)|0,U0=U0+q|0,q=U0&67108863,j=j+(U0>>>26)|0,F+=j>>>26,j&=67108863}H.words[C]=q,K=j,j=F}if(K!==0)H.words[C]=K;else H.length--;return H.strip()}function k(G,D,H){var K=new u;return K.mulp(G,D,H)}V.prototype.mulTo=function(G,D){var H,K=this.length+G.length;if(this.length===10&&G.length===10)H=x(this,G,D);else if(K<63)H=f(this,G,D);else if(K<1024)H=b(this,G,D);else H=k(this,G,D);return H};function u(G,D){this.x=G,this.y=D}u.prototype.makeRBT=function(G){var D=Array(G),H=V.prototype._countBits(G)-1;for(var K=0;K<G;K++)D[K]=this.revBin(K,H,G);return D},u.prototype.revBin=function(G,D,H){if(G===0||G===H-1)return G;var K=0;for(var F=0;F<D;F++)K|=(G&1)<<D-F-1,G>>=1;return K},u.prototype.permute=function(G,D,H,K,F,C){for(var j=0;j<C;j++)K[j]=D[G[j]],F[j]=H[G[j]]},u.prototype.transform=function(G,D,H,K,F,C){this.permute(C,G,D,H,K,F);for(var j=1;j<F;j<<=1){var q=j<<1,Z=Math.cos(2*Math.PI/q),T=Math.sin(2*Math.PI/q);for(var w=0;w<F;w+=q){var B=Z,h=T;for(var t=0;t<j;t++){var U0=H[w+t],z0=K[w+t],Q0=H[w+t+j],s=K[w+t+j],e=B*Q0-h*s;if(s=B*s+h*Q0,Q0=e,H[w+t]=U0+Q0,K[w+t]=z0+s,H[w+t+j]=U0-Q0,K[w+t+j]=z0-s,t!==q)e=Z*B-T*h,h=Z*h+T*B,B=e}}}},u.prototype.guessLen13b=function(G,D){var H=Math.max(D,G)|1,K=H&1,F=0;for(H=H/2|0;H;H=H>>>1)F++;return 1<<F+1+K},u.prototype.conjugate=function(G,D,H){if(H<=1)return;for(var K=0;K<H/2;K++){var F=G[K];G[K]=G[H-K-1],G[H-K-1]=F,F=D[K],D[K]=-D[H-K-1],D[H-K-1]=-F}},u.prototype.normalize13b=function(G,D){var H=0;for(var K=0;K<D/2;K++){var F=Math.round(G[2*K+1]/D)*8192+Math.round(G[2*K]/D)+H;if(G[K]=F&67108863,F<67108864)H=0;else H=F/67108864|0}return G},u.prototype.convert13b=function(G,D,H,K){var F=0;for(var C=0;C<D;C++)F=F+(G[C]|0),H[2*C]=F&8191,F=F>>>13,H[2*C+1]=F&8191,F=F>>>13;for(C=2*D;C<K;++C)H[C]=0;X(F===0),X((F&-8192)===0)},u.prototype.stub=function(G){var D=Array(G);for(var H=0;H<G;H++)D[H]=0;return D},u.prototype.mulp=function(G,D,H){var K=2*this.guessLen13b(G.length,D.length),F=this.makeRBT(K),C=this.stub(K),j=Array(K),q=Array(K),Z=Array(K),T=Array(K),w=Array(K),B=Array(K),h=H.words;h.length=K,this.convert13b(G.words,G.length,j,K),this.convert13b(D.words,D.length,T,K),this.transform(j,C,q,Z,K,F),this.transform(T,C,w,B,K,F);for(var t=0;t<K;t++){var U0=q[t]*w[t]-Z[t]*B[t];Z[t]=q[t]*B[t]+Z[t]*w[t],q[t]=U0}return this.conjugate(q,Z,K),this.transform(q,Z,h,C,K,F),this.conjugate(h,C,K),this.normalize13b(h,K),H.negative=G.negative^D.negative,H.length=G.length+D.length,H.strip()},V.prototype.mul=function(G){var D=new V(null);return D.words=Array(this.length+G.length),this.mulTo(G,D)},V.prototype.mulf=function(G){var D=new V(null);return D.words=Array(this.length+G.length),k(this,G,D)},V.prototype.imul=function(G){return this.clone().mulTo(G,this)},V.prototype.imuln=function(G){X(typeof G==="number"),X(G<67108864);var D=0;for(var H=0;H<this.length;H++){var K=(this.words[H]|0)*G,F=(K&67108863)+(D&67108863);D>>=26,D+=K/67108864|0,D+=F>>>26,this.words[H]=F&67108863}if(D!==0)this.words[H]=D,this.length++;return this.length=G===0?1:this.length,this},V.prototype.muln=function(G){return this.clone().imuln(G)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(G){var D=N(G);if(D.length===0)return new V(1);var H=this;for(var K=0;K<D.length;K++,H=H.sqr())if(D[K]!==0)break;if(++K<D.length)for(var F=H.sqr();K<D.length;K++,F=F.sqr()){if(D[K]===0)continue;H=H.mul(F)}return H},V.prototype.iushln=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=67108863>>>26-D<<26-D,F;if(D!==0){var C=0;for(F=0;F<this.length;F++){var j=this.words[F]&K,q=(this.words[F]|0)-j<<D;this.words[F]=q|C,C=j>>>26-D}if(C)this.words[F]=C,this.length++}if(H!==0){for(F=this.length-1;F>=0;F--)this.words[F+H]=this.words[F];for(F=0;F<H;F++)this.words[F]=0;this.length+=H}return this.strip()},V.prototype.ishln=function(G){return X(this.negative===0),this.iushln(G)},V.prototype.iushrn=function(G,D,H){X(typeof G==="number"&&G>=0);var K;if(D)K=(D-D%26)/26;else K=0;var F=G%26,C=Math.min((G-F)/26,this.length),j=67108863^67108863>>>F<<F,q=H;if(K-=C,K=Math.max(0,K),q){for(var Z=0;Z<C;Z++)q.words[Z]=this.words[Z];q.length=C}if(C===0);else if(this.length>C){this.length-=C;for(Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+C]}else this.words[0]=0,this.length=1;var T=0;for(Z=this.length-1;Z>=0&&(T!==0||Z>=K);Z--){var w=this.words[Z]|0;this.words[Z]=T<<26-F|w>>>F,T=w&j}if(q&&T!==0)q.words[q.length++]=T;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(G,D,H){return X(this.negative===0),this.iushrn(G,D,H)},V.prototype.shln=function(G){return this.clone().ishln(G)},V.prototype.ushln=function(G){return this.clone().iushln(G)},V.prototype.shrn=function(G){return this.clone().ishrn(G)},V.prototype.ushrn=function(G){return this.clone().iushrn(G)},V.prototype.testn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return!1;var F=this.words[H];return!!(F&K)},V.prototype.imaskn=function(G){X(typeof G==="number"&&G>=0);var D=G%26,H=(G-D)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=H)return this;if(D!==0)H++;if(this.length=Math.min(H,this.length),D!==0){var K=67108863^67108863>>>D<<D;this.words[this.length-1]&=K}return this.strip()},V.prototype.maskn=function(G){return this.clone().imaskn(G)},V.prototype.iaddn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.isubn(-G);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<G)return this.words[0]=G-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(G),this.negative=1,this}return this._iaddn(G)},V.prototype._iaddn=function(G){this.words[0]+=G;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)if(this.words[D]-=67108864,D===this.length-1)this.words[D+1]=1;else this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},V.prototype.isubn=function(G){if(X(typeof G==="number"),X(G<67108864),G<0)return this.iaddn(-G);if(this.negative!==0)return this.negative=0,this.iaddn(G),this.negative=1,this;if(this.words[0]-=G,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},V.prototype.addn=function(G){return this.clone().iaddn(G)},V.prototype.subn=function(G){return this.clone().isubn(G)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(G,D,H){var K=G.length+H,F;this._expand(K);var C,j=0;for(F=0;F<G.length;F++){C=(this.words[F+H]|0)+j;var q=(G.words[F]|0)*D;C-=q&67108863,j=(C>>26)-(q/67108864|0),this.words[F+H]=C&67108863}for(;F<this.length-H;F++)C=(this.words[F+H]|0)+j,j=C>>26,this.words[F+H]=C&67108863;if(j===0)return this.strip();X(j===-1),j=0;for(F=0;F<this.length;F++)C=-(this.words[F]|0)+j,j=C>>26,this.words[F]=C&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(G,D){var H=this.length-G.length,K=this.clone(),F=G,C=F.words[F.length-1]|0,j=this._countBits(C);if(H=26-j,H!==0)F=F.ushln(H),K.iushln(H),C=F.words[F.length-1]|0;var q=K.length-F.length,Z;if(D!=="mod"){Z=new V(null),Z.length=q+1,Z.words=Array(Z.length);for(var T=0;T<Z.length;T++)Z.words[T]=0}var w=K.clone()._ishlnsubmul(F,1,q);if(w.negative===0){if(K=w,Z)Z.words[q]=1}for(var B=q-1;B>=0;B--){var h=(K.words[F.length+B]|0)*67108864+(K.words[F.length+B-1]|0);h=Math.min(h/C|0,67108863),K._ishlnsubmul(F,h,B);while(K.negative!==0)if(h--,K.negative=0,K._ishlnsubmul(F,1,B),!K.isZero())K.negative^=1;if(Z)Z.words[B]=h}if(Z)Z.strip();if(K.strip(),D!=="div"&&H!==0)K.iushrn(H);return{div:Z||null,mod:K}},V.prototype.divmod=function(G,D,H){if(X(!G.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var K,F,C;if(this.negative!==0&&G.negative===0){if(C=this.neg().divmod(G,D),D!=="mod")K=C.div.neg();if(D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.iadd(G)}return{div:K,mod:F}}if(this.negative===0&&G.negative!==0){if(C=this.divmod(G.neg(),D),D!=="mod")K=C.div.neg();return{div:K,mod:C.mod}}if((this.negative&G.negative)!==0){if(C=this.neg().divmod(G.neg(),D),D!=="div"){if(F=C.mod.neg(),H&&F.negative!==0)F.isub(G)}return{div:C.div,mod:F}}if(G.length>this.length||this.cmp(G)<0)return{div:new V(0),mod:this};if(G.length===1){if(D==="div")return{div:this.divn(G.words[0]),mod:null};if(D==="mod")return{div:null,mod:new V(this.modn(G.words[0]))};return{div:this.divn(G.words[0]),mod:new V(this.modn(G.words[0]))}}return this._wordDiv(G,D)},V.prototype.div=function(G){return this.divmod(G,"div",!1).div},V.prototype.mod=function(G){return this.divmod(G,"mod",!1).mod},V.prototype.umod=function(G){return this.divmod(G,"mod",!0).mod},V.prototype.divRound=function(G){var D=this.divmod(G);if(D.mod.isZero())return D.div;var H=D.div.negative!==0?D.mod.isub(G):D.mod,K=G.ushrn(1),F=G.andln(1),C=H.cmp(K);if(C<0||F===1&&C===0)return D.div;return D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},V.prototype.modn=function(G){X(G<=67108863);var D=67108864%G,H=0;for(var K=this.length-1;K>=0;K--)H=(D*H+(this.words[K]|0))%G;return H},V.prototype.idivn=function(G){X(G<=67108863);var D=0;for(var H=this.length-1;H>=0;H--){var K=(this.words[H]|0)+D*67108864;this.words[H]=K/G|0,D=K%G}return this.strip()},V.prototype.divn=function(G){return this.clone().idivn(G)},V.prototype.egcd=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=new V(0),j=new V(1),q=0;while(D.isEven()&&H.isEven())D.iushrn(1),H.iushrn(1),++q;var Z=H.clone(),T=D.clone();while(!D.isZero()){for(var w=0,B=1;(D.words[0]&B)===0&&w<26;++w,B<<=1);if(w>0){D.iushrn(w);while(w-- >0){if(K.isOdd()||F.isOdd())K.iadd(Z),F.isub(T);K.iushrn(1),F.iushrn(1)}}for(var h=0,t=1;(H.words[0]&t)===0&&h<26;++h,t<<=1);if(h>0){H.iushrn(h);while(h-- >0){if(C.isOdd()||j.isOdd())C.iadd(Z),j.isub(T);C.iushrn(1),j.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(C),F.isub(j);else H.isub(D),C.isub(K),j.isub(F)}return{a:C,b:j,gcd:H.iushln(q)}},V.prototype._invmp=function(G){X(G.negative===0),X(!G.isZero());var D=this,H=G.clone();if(D.negative!==0)D=D.umod(G);else D=D.clone();var K=new V(1),F=new V(0),C=H.clone();while(D.cmpn(1)>0&&H.cmpn(1)>0){for(var j=0,q=1;(D.words[0]&q)===0&&j<26;++j,q<<=1);if(j>0){D.iushrn(j);while(j-- >0){if(K.isOdd())K.iadd(C);K.iushrn(1)}}for(var Z=0,T=1;(H.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0){H.iushrn(Z);while(Z-- >0){if(F.isOdd())F.iadd(C);F.iushrn(1)}}if(D.cmp(H)>=0)D.isub(H),K.isub(F);else H.isub(D),F.isub(K)}var w;if(D.cmpn(1)===0)w=K;else w=F;if(w.cmpn(0)<0)w.iadd(G);return w},V.prototype.gcd=function(G){if(this.isZero())return G.abs();if(G.isZero())return this.abs();var D=this.clone(),H=G.clone();D.negative=0,H.negative=0;for(var K=0;D.isEven()&&H.isEven();K++)D.iushrn(1),H.iushrn(1);do{while(D.isEven())D.iushrn(1);while(H.isEven())H.iushrn(1);var F=D.cmp(H);if(F<0){var C=D;D=H,H=C}else if(F===0||H.cmpn(1)===0)break;D.isub(H)}while(!0);return H.iushln(K)},V.prototype.invm=function(G){return this.egcd(G).a.umod(G)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(G){return this.words[0]&G},V.prototype.bincn=function(G){X(typeof G==="number");var D=G%26,H=(G-D)/26,K=1<<D;if(this.length<=H)return this._expand(H+1),this.words[H]|=K,this;var F=K;for(var C=H;F!==0&&C<this.length;C++){var j=this.words[C]|0;j+=F,F=j>>>26,j&=67108863,this.words[C]=j}if(F!==0)this.words[C]=F,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(G){var D=G<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;this.strip();var H;if(this.length>1)H=1;else{if(D)G=-G;X(G<=67108863,"Number is too big");var K=this.words[0]|0;H=K===G?0:K<G?-1:1}if(this.negative!==0)return-H|0;return H},V.prototype.cmp=function(G){if(this.negative!==0&&G.negative===0)return-1;if(this.negative===0&&G.negative!==0)return 1;var D=this.ucmp(G);if(this.negative!==0)return-D|0;return D},V.prototype.ucmp=function(G){if(this.length>G.length)return 1;if(this.length<G.length)return-1;var D=0;for(var H=this.length-1;H>=0;H--){var K=this.words[H]|0,F=G.words[H]|0;if(K===F)continue;if(K<F)D=-1;else if(K>F)D=1;break}return D},V.prototype.gtn=function(G){return this.cmpn(G)===1},V.prototype.gt=function(G){return this.cmp(G)===1},V.prototype.gten=function(G){return this.cmpn(G)>=0},V.prototype.gte=function(G){return this.cmp(G)>=0},V.prototype.ltn=function(G){return this.cmpn(G)===-1},V.prototype.lt=function(G){return this.cmp(G)===-1},V.prototype.lten=function(G){return this.cmpn(G)<=0},V.prototype.lte=function(G){return this.cmp(G)<=0},V.prototype.eqn=function(G){return this.cmpn(G)===0},V.prototype.eq=function(G){return this.cmp(G)===0},V.red=function(G){return new o(G)},V.prototype.toRed=function(G){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),G.convertTo(this)._forceRed(G)},V.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(G){return this.red=G,this},V.prototype.forceRed=function(G){return X(!this.red,"Already a number in reduction context"),this._forceRed(G)},V.prototype.redAdd=function(G){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,G)},V.prototype.redIAdd=function(G){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,G)},V.prototype.redSub=function(G){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,G)},V.prototype.redISub=function(G){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,G)},V.prototype.redShl=function(G){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,G)},V.prototype.redMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.mul(this,G)},V.prototype.redIMul=function(G){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,G),this.red.imul(this,G)},V.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(G){return X(this.red&&!G.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,G)};var p={k256:null,p224:null,p192:null,p25519:null};function m(G,D){this.name=G,this.p=new V(D,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}m.prototype._tmp=function(){var G=new V(null);return G.words=Array(Math.ceil(this.n/13)),G},m.prototype.ireduce=function(G){var D=G,H;do this.split(D,this.tmp),D=this.imulK(D),D=D.iadd(this.tmp),H=D.bitLength();while(H>this.n);var K=H<this.n?-1:D.ucmp(this.p);if(K===0)D.words[0]=0,D.length=1;else if(K>0)D.isub(this.p);else if(D.strip!==void 0)D.strip();else D._strip();return D},m.prototype.split=function(G,D){G.iushrn(this.n,0,D)},m.prototype.imulK=function(G){return G.imul(this.k)};function a(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}z(a,m),a.prototype.split=function(G,D){var H=4194303,K=Math.min(G.length,9);for(var F=0;F<K;F++)D.words[F]=G.words[F];if(D.length=K,G.length<=9){G.words[0]=0,G.length=1;return}var C=G.words[9];D.words[D.length++]=C&H;for(F=10;F<G.length;F++){var j=G.words[F]|0;G.words[F-10]=(j&H)<<4|C>>>22,C=j}if(C>>>=22,G.words[F-10]=C,C===0&&G.length>10)G.length-=10;else G.length-=9},a.prototype.imulK=function(G){G.words[G.length]=0,G.words[G.length+1]=0,G.length+=2;var D=0;for(var H=0;H<G.length;H++){var K=G.words[H]|0;D+=K*977,G.words[H]=D&67108863,D=K*64+(D/67108864|0)}if(G.words[G.length-1]===0){if(G.length--,G.words[G.length-1]===0)G.length--}return G};function Z0(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}z(Z0,m);function L0(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}z(L0,m);function C0(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}z(C0,m),C0.prototype.imulK=function(G){var D=0;for(var H=0;H<G.length;H++){var K=(G.words[H]|0)*19+D,F=K&67108863;K>>>=26,G.words[H]=F,D=K}if(D!==0)G.words[G.length++]=D;return G},V._prime=function(G){if(p[G])return p[G];var D;if(G==="k256")D=new a;else if(G==="p224")D=new Z0;else if(G==="p192")D=new L0;else if(G==="p25519")D=new C0;else throw Error("Unknown prime "+G);return p[G]=D,D};function o(G){if(typeof G==="string"){var D=V._prime(G);this.m=D.p,this.prime=D}else X(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}o.prototype._verify1=function(G){X(G.negative===0,"red works only with positives"),X(G.red,"red works only with red numbers")},o.prototype._verify2=function(G,D){X((G.negative|D.negative)===0,"red works only with positives"),X(G.red&&G.red===D.red,"red works only with red numbers")},o.prototype.imod=function(G){if(this.prime)return this.prime.ireduce(G)._forceRed(this);return G.umod(this.m)._forceRed(this)},o.prototype.neg=function(G){if(G.isZero())return G.clone();return this.m.sub(G)._forceRed(this)},o.prototype.add=function(G,D){this._verify2(G,D);var H=G.add(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H._forceRed(this)},o.prototype.iadd=function(G,D){this._verify2(G,D);var H=G.iadd(D);if(H.cmp(this.m)>=0)H.isub(this.m);return H},o.prototype.sub=function(G,D){this._verify2(G,D);var H=G.sub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H._forceRed(this)},o.prototype.isub=function(G,D){this._verify2(G,D);var H=G.isub(D);if(H.cmpn(0)<0)H.iadd(this.m);return H},o.prototype.shl=function(G,D){return this._verify1(G),this.imod(G.ushln(D))},o.prototype.imul=function(G,D){return this._verify2(G,D),this.imod(G.imul(D))},o.prototype.mul=function(G,D){return this._verify2(G,D),this.imod(G.mul(D))},o.prototype.isqr=function(G){return this.imul(G,G.clone())},o.prototype.sqr=function(G){return this.mul(G,G)},o.prototype.sqrt=function(G){if(G.isZero())return G.clone();var D=this.m.andln(3);if(X(D%2===1),D===3){var H=this.m.add(new V(1)).iushrn(2);return this.pow(G,H)}var K=this.m.subn(1),F=0;while(!K.isZero()&&K.andln(1)===0)F++,K.iushrn(1);X(!K.isZero());var C=new V(1).toRed(this),j=C.redNeg(),q=this.m.subn(1).iushrn(1),Z=this.m.bitLength();Z=new V(2*Z*Z).toRed(this);while(this.pow(Z,q).cmp(j)!==0)Z.redIAdd(j);var T=this.pow(Z,K),w=this.pow(G,K.addn(1).iushrn(1)),B=this.pow(G,K),h=F;while(B.cmp(C)!==0){var t=B;for(var U0=0;t.cmp(C)!==0;U0++)t=t.redSqr();X(U0<h);var z0=this.pow(T,new V(1).iushln(h-U0-1));w=w.redMul(z0),T=z0.redSqr(),B=B.redMul(T),h=U0}return w},o.prototype.invm=function(G){var D=G._invmp(this.m);if(D.negative!==0)return D.negative=0,this.imod(D).redNeg();else return this.imod(D)},o.prototype.pow=function(G,D){if(D.isZero())return new V(1).toRed(this);if(D.cmpn(1)===0)return G.clone();var H=4,K=Array(1<<H);K[0]=new V(1).toRed(this),K[1]=G;for(var F=2;F<K.length;F++)K[F]=this.mul(K[F-1],G);var C=K[0],j=0,q=0,Z=D.bitLength()%26;if(Z===0)Z=26;for(F=D.length-1;F>=0;F--){var T=D.words[F];for(var w=Z-1;w>=0;w--){var B=T>>w&1;if(C!==K[0])C=this.sqr(C);if(B===0&&j===0){q=0;continue}if(j<<=1,j|=B,q++,q!==H&&(F!==0||w!==0))continue;C=this.mul(C,K[j]),q=0,j=0}Z=26}return C},o.prototype.convertTo=function(G){var D=G.umod(this.m);return D===G?D.clone():D},o.prototype.convertFrom=function(G){var D=G.clone();return D.red=null,D},V.mont=function(G){return new q0(G)};function q0(G){if(o.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z(q0,o),q0.prototype.convertTo=function(G){return this.imod(G.ushln(this.shift))},q0.prototype.convertFrom=function(G){var D=this.imod(G.mul(this.rinv));return D.red=null,D},q0.prototype.imul=function(G,D){if(G.isZero()||D.isZero())return G.words[0]=0,G.length=1,G;var H=G.imul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.mul=function(G,D){if(G.isZero()||D.isZero())return new V(0)._forceRed(this);var H=G.mul(D),K=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=H.isub(K).iushrn(this.shift),C=F;if(F.cmp(this.m)>=0)C=F.isub(this.m);else if(F.cmpn(0)<0)C=F.iadd(this.m);return C._forceRed(this)},q0.prototype.invm=function(G){var D=this.imod(G._invmp(this.m).mul(this.r2));return D._forceRed(this)}})(typeof J>"u"||J,U)}),gj=u0((U,J)=>{var Q=HF(),O=b6().Buffer;function X(z,V){return O.from(z.toRed(Q.mont(V.modulus)).redPow(new Q(V.publicExponent)).fromRed().toArray())}J.exports=X}),iu=u0((U,J)=>{(function(Q,O){function X(K,F){if(!K)throw Error(F||"Assertion failed")}function z(K,F){K.super_=F;var C=function(){};C.prototype=F.prototype,K.prototype=new C,K.prototype.constructor=K}function V(K,F,C){if(V.isBN(K))return K;if(this.negative=0,this.words=null,this.length=0,this.red=null,K!==null){if(F==="le"||F==="be")C=F,F=10;this._init(K||0,F||10,C||"be")}}if(typeof Q==="object")Q.exports=V;else O.BN=V;V.BN=V,V.wordSize=26;var L;try{if(typeof window<"u"&&typeof window.Buffer<"u")L=window.Buffer;else L=(tU(),v$(rU)).Buffer}catch(K){}V.isBN=function(K){if(K instanceof V)return!0;return K!==null&&typeof K==="object"&&K.constructor.wordSize===V.wordSize&&Array.isArray(K.words)},V.max=function(K,F){if(K.cmp(F)>0)return K;return F},V.min=function(K,F){if(K.cmp(F)<0)return K;return F},V.prototype._init=function(K,F,C){if(typeof K==="number")return this._initNumber(K,F,C);if(typeof K==="object")return this._initArray(K,F,C);if(F==="hex")F=16;X(F===(F|0)&&F>=2&&F<=36),K=K.toString().replace(/\s+/g,"");var j=0;if(K[0]==="-")j++,this.negative=1;if(j<K.length){if(F===16)this._parseHex(K,j,C);else if(this._parseBase(K,F,j),C==="le")this._initArray(this.toArray(),F,C)}},V.prototype._initNumber=function(K,F,C){if(K<0)this.negative=1,K=-K;if(K<67108864)this.words=[K&67108863],this.length=1;else if(K<4503599627370496)this.words=[K&67108863,K/67108864&67108863],this.length=2;else X(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3;if(C!=="le")return;this._initArray(this.toArray(),F,C)},V.prototype._initArray=function(K,F,C){if(X(typeof K.length==="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var q,Z,T=0;if(C==="be"){for(j=K.length-1,q=0;j>=0;j-=3)if(Z=K[j]|K[j-1]<<8|K[j-2]<<16,this.words[q]|=Z<<T&67108863,this.words[q+1]=Z>>>26-T&67108863,T+=24,T>=26)T-=26,q++}else if(C==="le"){for(j=0,q=0;j<K.length;j+=3)if(Z=K[j]|K[j+1]<<8|K[j+2]<<16,this.words[q]|=Z<<T&67108863,this.words[q+1]=Z>>>26-T&67108863,T+=24,T>=26)T-=26,q++}return this._strip()};function S(K,F){var C=K.charCodeAt(F);if(C>=48&&C<=57)return C-48;else if(C>=65&&C<=70)return C-55;else if(C>=97&&C<=102)return C-87;else X(!1,"Invalid character in "+K)}function E(K,F,C){var j=S(K,C);if(C-1>=F)j|=S(K,C-1)<<4;return j}V.prototype._parseHex=function(K,F,C){this.length=Math.ceil((K.length-F)/6),this.words=Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var q=0,Z=0,T;if(C==="be")for(j=K.length-1;j>=F;j-=2)if(T=E(K,F,j)<<q,this.words[Z]|=T&67108863,q>=18)q-=18,Z+=1,this.words[Z]|=T>>>26;else q+=8;else{var w=K.length-F;for(j=w%2===0?F+1:F;j<K.length;j+=2)if(T=E(K,F,j)<<q,this.words[Z]|=T&67108863,q>=18)q-=18,Z+=1,this.words[Z]|=T>>>26;else q+=8}this._strip()};function _(K,F,C,j){var q=0,Z=0,T=Math.min(K.length,C);for(var w=F;w<T;w++){var B=K.charCodeAt(w)-48;if(q*=j,B>=49)Z=B-49+10;else if(B>=17)Z=B-17+10;else Z=B;X(B>=0&&Z<j,"Invalid character"),q+=Z}return q}V.prototype._parseBase=function(K,F,C){this.words=[0],this.length=1;for(var j=0,q=1;q<=67108863;q*=F)j++;j--,q=q/F|0;var Z=K.length-C,T=Z%j,w=Math.min(Z,Z-T)+C,B=0;for(var h=C;h<w;h+=j)if(B=_(K,h,h+j,F),this.imuln(q),this.words[0]+B<67108864)this.words[0]+=B;else this._iaddn(B);if(T!==0){var t=1;B=_(K,h,K.length,F);for(h=0;h<T;h++)t*=F;if(this.imuln(t),this.words[0]+B<67108864)this.words[0]+=B;else this._iaddn(B)}this._strip()},V.prototype.copy=function(K){K.words=Array(this.length);for(var F=0;F<this.length;F++)K.words[F]=this.words[F];K.length=this.length,K.negative=this.negative,K.red=this.red};function M(K,F){K.words=F.words,K.length=F.length,K.negative=F.negative,K.red=F.red}if(V.prototype._move=function(K){M(K,this)},V.prototype.clone=function(){var K=new V(null);return this.copy(K),K},V.prototype._expand=function(K){while(this.length<K)this.words[this.length++]=0;return this},V.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{V.prototype[Symbol.for("nodejs.util.inspect.custom")]=P}catch(K){V.prototype.inspect=P}else V.prototype.inspect=P;function P(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],N=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(V.prototype.toString=function(K,F){K=K||10,F=F|0||1;var C;if(K===16||K==="hex"){C="";var j=0,q=0;for(var Z=0;Z<this.length;Z++){var T=this.words[Z],w=((T<<j|q)&16777215).toString(16);if(q=T>>>24-j&16777215,j+=2,j>=26)j-=26,Z--;if(q!==0||Z!==this.length-1)C=v[6-w.length]+w+C;else C=w+C}if(q!==0)C=q.toString(16)+C;while(C.length%F!==0)C="0"+C;if(this.negative!==0)C="-"+C;return C}if(K===(K|0)&&K>=2&&K<=36){var B=N[K],h=f[K];C="";var t=this.clone();t.negative=0;while(!t.isZero()){var U0=t.modrn(h).toString(K);if(t=t.idivn(h),!t.isZero())C=v[B-U0.length]+U0+C;else C=U0+C}if(this.isZero())C="0"+C;while(C.length%F!==0)C="0"+C;if(this.negative!==0)C="-"+C;return C}X(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var K=this.words[0];if(this.length===2)K+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)K+=4503599627370496+this.words[1]*67108864;else if(this.length>2)X(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-K:K},V.prototype.toJSON=function(){return this.toString(16,2)},L)V.prototype.toBuffer=function(K,F){return this.toArrayLike(L,K,F)};V.prototype.toArray=function(K,F){return this.toArrayLike(Array,K,F)};var x=function(K,F){if(K.allocUnsafe)return K.allocUnsafe(F);return new K(F)};if(V.prototype.toArrayLike=function(K,F,C){this._strip();var j=this.byteLength(),q=C||Math.max(1,j);X(j<=q,"byte array longer than desired length"),X(q>0,"Requested array length <= 0");var Z=x(K,q),T=F==="le"?"LE":"BE";return this["_toArrayLike"+T](Z,j),Z},V.prototype._toArrayLikeLE=function(K,F){var C=0,j=0;for(var q=0,Z=0;q<this.length;q++){var T=this.words[q]<<Z|j;if(K[C++]=T&255,C<K.length)K[C++]=T>>8&255;if(C<K.length)K[C++]=T>>16&255;if(Z===6){if(C<K.length)K[C++]=T>>24&255;j=0,Z=0}else j=T>>>24,Z+=2}if(C<K.length){K[C++]=j;while(C<K.length)K[C++]=0}},V.prototype._toArrayLikeBE=function(K,F){var C=K.length-1,j=0;for(var q=0,Z=0;q<this.length;q++){var T=this.words[q]<<Z|j;if(K[C--]=T&255,C>=0)K[C--]=T>>8&255;if(C>=0)K[C--]=T>>16&255;if(Z===6){if(C>=0)K[C--]=T>>24&255;j=0,Z=0}else j=T>>>24,Z+=2}if(C>=0){K[C--]=j;while(C>=0)K[C--]=0}},Math.clz32)V.prototype._countBits=function(K){return 32-Math.clz32(K)};else V.prototype._countBits=function(K){var F=K,C=0;if(F>=4096)C+=13,F>>>=13;if(F>=64)C+=7,F>>>=7;if(F>=8)C+=4,F>>>=4;if(F>=2)C+=2,F>>>=2;return C+F};V.prototype._zeroBits=function(K){if(K===0)return 26;var F=K,C=0;if((F&8191)===0)C+=13,F>>>=13;if((F&127)===0)C+=7,F>>>=7;if((F&15)===0)C+=4,F>>>=4;if((F&3)===0)C+=2,F>>>=2;if((F&1)===0)C++;return C},V.prototype.bitLength=function(){var K=this.words[this.length-1],F=this._countBits(K);return(this.length-1)*26+F};function b(K){var F=Array(K.bitLength());for(var C=0;C<F.length;C++){var j=C/26|0,q=C%26;F[C]=K.words[j]>>>q&1}return F}V.prototype.zeroBits=function(){if(this.isZero())return 0;var K=0;for(var F=0;F<this.length;F++){var C=this._zeroBits(this.words[F]);if(K+=C,C!==26)break}return K},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(K){if(this.negative!==0)return this.abs().inotn(K).iaddn(1);return this.clone()},V.prototype.fromTwos=function(K){if(this.testn(K-1))return this.notn(K).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(K){while(this.length<K.length)this.words[this.length++]=0;for(var F=0;F<K.length;F++)this.words[F]=this.words[F]|K.words[F];return this._strip()},V.prototype.ior=function(K){return X((this.negative|K.negative)===0),this.iuor(K)},V.prototype.or=function(K){if(this.length>K.length)return this.clone().ior(K);return K.clone().ior(this)},V.prototype.uor=function(K){if(this.length>K.length)return this.clone().iuor(K);return K.clone().iuor(this)},V.prototype.iuand=function(K){var F;if(this.length>K.length)F=K;else F=this;for(var C=0;C<F.length;C++)this.words[C]=this.words[C]&K.words[C];return this.length=F.length,this._strip()},V.prototype.iand=function(K){return X((this.negative|K.negative)===0),this.iuand(K)},V.prototype.and=function(K){if(this.length>K.length)return this.clone().iand(K);return K.clone().iand(this)},V.prototype.uand=function(K){if(this.length>K.length)return this.clone().iuand(K);return K.clone().iuand(this)},V.prototype.iuxor=function(K){var F,C;if(this.length>K.length)F=this,C=K;else F=K,C=this;for(var j=0;j<C.length;j++)this.words[j]=F.words[j]^C.words[j];if(this!==F)for(;j<F.length;j++)this.words[j]=F.words[j];return this.length=F.length,this._strip()},V.prototype.ixor=function(K){return X((this.negative|K.negative)===0),this.iuxor(K)},V.prototype.xor=function(K){if(this.length>K.length)return this.clone().ixor(K);return K.clone().ixor(this)},V.prototype.uxor=function(K){if(this.length>K.length)return this.clone().iuxor(K);return K.clone().iuxor(this)},V.prototype.inotn=function(K){X(typeof K==="number"&&K>=0);var F=Math.ceil(K/26)|0,C=K%26;if(this._expand(F),C>0)F--;for(var j=0;j<F;j++)this.words[j]=~this.words[j]&67108863;if(C>0)this.words[j]=~this.words[j]&67108863>>26-C;return this._strip()},V.prototype.notn=function(K){return this.clone().inotn(K)},V.prototype.setn=function(K,F){X(typeof K==="number"&&K>=0);var C=K/26|0,j=K%26;if(this._expand(C+1),F)this.words[C]=this.words[C]|1<<j;else this.words[C]=this.words[C]&~(1<<j);return this._strip()},V.prototype.iadd=function(K){var F;if(this.negative!==0&&K.negative===0)return this.negative=0,F=this.isub(K),this.negative^=1,this._normSign();else if(this.negative===0&&K.negative!==0)return K.negative=0,F=this.isub(K),K.negative=1,F._normSign();var C,j;if(this.length>K.length)C=this,j=K;else C=K,j=this;var q=0;for(var Z=0;Z<j.length;Z++)F=(C.words[Z]|0)+(j.words[Z]|0)+q,this.words[Z]=F&67108863,q=F>>>26;for(;q!==0&&Z<C.length;Z++)F=(C.words[Z]|0)+q,this.words[Z]=F&67108863,q=F>>>26;if(this.length=C.length,q!==0)this.words[this.length]=q,this.length++;else if(C!==this)for(;Z<C.length;Z++)this.words[Z]=C.words[Z];return this},V.prototype.add=function(K){var F;if(K.negative!==0&&this.negative===0)return K.negative=0,F=this.sub(K),K.negative^=1,F;else if(K.negative===0&&this.negative!==0)return this.negative=0,F=K.sub(this),this.negative=1,F;if(this.length>K.length)return this.clone().iadd(K);return K.clone().iadd(this)},V.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var F=this.iadd(K);return K.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var C=this.cmp(K);if(C===0)return this.negative=0,this.length=1,this.words[0]=0,this;var j,q;if(C>0)j=this,q=K;else j=K,q=this;var Z=0;for(var T=0;T<q.length;T++)F=(j.words[T]|0)-(q.words[T]|0)+Z,Z=F>>26,this.words[T]=F&67108863;for(;Z!==0&&T<j.length;T++)F=(j.words[T]|0)+Z,Z=F>>26,this.words[T]=F&67108863;if(Z===0&&T<j.length&&j!==this)for(;T<j.length;T++)this.words[T]=j.words[T];if(this.length=Math.max(this.length,T),j!==this)this.negative=1;return this._strip()},V.prototype.sub=function(K){return this.clone().isub(K)};function k(K,F,C){C.negative=F.negative^K.negative;var j=K.length+F.length|0;C.length=j,j=j-1|0;var q=K.words[0]|0,Z=F.words[0]|0,T=q*Z,w=T&67108863,B=T/67108864|0;C.words[0]=w;for(var h=1;h<j;h++){var t=B>>>26,U0=B&67108863,z0=Math.min(h,F.length-1);for(var Q0=Math.max(0,h-K.length+1);Q0<=z0;Q0++){var s=h-Q0|0;q=K.words[s]|0,Z=F.words[Q0]|0,T=q*Z+U0,t+=T/67108864|0,U0=T&67108863}C.words[h]=U0|0,B=t|0}if(B!==0)C.words[h]=B|0;else C.length--;return C._strip()}var u=function(K,F,C){var j=K.words,q=F.words,Z=C.words,T=0,w,B,h,t=j[0]|0,U0=t&8191,z0=t>>>13,Q0=j[1]|0,s=Q0&8191,e=Q0>>>13,J0=j[2]|0,V0=J0&8191,A0=J0>>>13,$0=j[3]|0,c=$0&8191,n=$0>>>13,H0=j[4]|0,Y0=H0&8191,D0=H0>>>13,N0=j[5]|0,I0=N0&8191,K0=N0>>>13,U$=j[6]|0,M0=U$&8191,v0=U$>>>13,L$=j[7]|0,p0=L$&8191,c0=L$>>>13,t$=j[8]|0,b0=t$&8191,h0=t$>>>13,VU=j[9]|0,r0=VU&8191,o0=VU>>>13,EU=q[0]|0,l=EU&8191,X0=EU>>>13,s0=q[1]|0,S0=s0&8191,B0=s0>>>13,F$=q[2]|0,g0=F$&8191,f0=F$>>>13,K$=q[3]|0,n0=K$&8191,i0=K$>>>13,WU=q[4]|0,a0=WU&8191,r=WU>>>13,G0=q[5]|0,E0=G0&8191,_0=G0>>>13,Z$=q[6]|0,d0=Z$&8191,t0=Z$>>>13,AU=q[7]|0,I$=AU&8191,$$=AU>>>13,IU=q[8]|0,X$=IU&8191,e0=IU>>>13,_U=q[9]|0,B$=_U&8191,j$=_U>>>13;C.negative=K.negative^F.negative,C.length=19,w=Math.imul(U0,l),B=Math.imul(U0,X0),B=B+Math.imul(z0,l)|0,h=Math.imul(z0,X0);var XU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(XU>>>26)|0,XU&=67108863,w=Math.imul(s,l),B=Math.imul(s,X0),B=B+Math.imul(e,l)|0,h=Math.imul(e,X0),w=w+Math.imul(U0,S0)|0,B=B+Math.imul(U0,B0)|0,B=B+Math.imul(z0,S0)|0,h=h+Math.imul(z0,B0)|0;var o$=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(o$>>>26)|0,o$&=67108863,w=Math.imul(V0,l),B=Math.imul(V0,X0),B=B+Math.imul(A0,l)|0,h=Math.imul(A0,X0),w=w+Math.imul(s,S0)|0,B=B+Math.imul(s,B0)|0,B=B+Math.imul(e,S0)|0,h=h+Math.imul(e,B0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(U0,f0)|0,B=B+Math.imul(z0,g0)|0,h=h+Math.imul(z0,f0)|0;var cU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(cU>>>26)|0,cU&=67108863,w=Math.imul(c,l),B=Math.imul(c,X0),B=B+Math.imul(n,l)|0,h=Math.imul(n,X0),w=w+Math.imul(V0,S0)|0,B=B+Math.imul(V0,B0)|0,B=B+Math.imul(A0,S0)|0,h=h+Math.imul(A0,B0)|0,w=w+Math.imul(s,g0)|0,B=B+Math.imul(s,f0)|0,B=B+Math.imul(e,g0)|0,h=h+Math.imul(e,f0)|0,w=w+Math.imul(U0,n0)|0,B=B+Math.imul(U0,i0)|0,B=B+Math.imul(z0,n0)|0,h=h+Math.imul(z0,i0)|0;var pU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(pU>>>26)|0,pU&=67108863,w=Math.imul(Y0,l),B=Math.imul(Y0,X0),B=B+Math.imul(D0,l)|0,h=Math.imul(D0,X0),w=w+Math.imul(c,S0)|0,B=B+Math.imul(c,B0)|0,B=B+Math.imul(n,S0)|0,h=h+Math.imul(n,B0)|0,w=w+Math.imul(V0,g0)|0,B=B+Math.imul(V0,f0)|0,B=B+Math.imul(A0,g0)|0,h=h+Math.imul(A0,f0)|0,w=w+Math.imul(s,n0)|0,B=B+Math.imul(s,i0)|0,B=B+Math.imul(e,n0)|0,h=h+Math.imul(e,i0)|0,w=w+Math.imul(U0,a0)|0,B=B+Math.imul(U0,r)|0,B=B+Math.imul(z0,a0)|0,h=h+Math.imul(z0,r)|0;var lU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(lU>>>26)|0,lU&=67108863,w=Math.imul(I0,l),B=Math.imul(I0,X0),B=B+Math.imul(K0,l)|0,h=Math.imul(K0,X0),w=w+Math.imul(Y0,S0)|0,B=B+Math.imul(Y0,B0)|0,B=B+Math.imul(D0,S0)|0,h=h+Math.imul(D0,B0)|0,w=w+Math.imul(c,g0)|0,B=B+Math.imul(c,f0)|0,B=B+Math.imul(n,g0)|0,h=h+Math.imul(n,f0)|0,w=w+Math.imul(V0,n0)|0,B=B+Math.imul(V0,i0)|0,B=B+Math.imul(A0,n0)|0,h=h+Math.imul(A0,i0)|0,w=w+Math.imul(s,a0)|0,B=B+Math.imul(s,r)|0,B=B+Math.imul(e,a0)|0,h=h+Math.imul(e,r)|0,w=w+Math.imul(U0,E0)|0,B=B+Math.imul(U0,_0)|0,B=B+Math.imul(z0,E0)|0,h=h+Math.imul(z0,_0)|0;var mU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(mU>>>26)|0,mU&=67108863,w=Math.imul(M0,l),B=Math.imul(M0,X0),B=B+Math.imul(v0,l)|0,h=Math.imul(v0,X0),w=w+Math.imul(I0,S0)|0,B=B+Math.imul(I0,B0)|0,B=B+Math.imul(K0,S0)|0,h=h+Math.imul(K0,B0)|0,w=w+Math.imul(Y0,g0)|0,B=B+Math.imul(Y0,f0)|0,B=B+Math.imul(D0,g0)|0,h=h+Math.imul(D0,f0)|0,w=w+Math.imul(c,n0)|0,B=B+Math.imul(c,i0)|0,B=B+Math.imul(n,n0)|0,h=h+Math.imul(n,i0)|0,w=w+Math.imul(V0,a0)|0,B=B+Math.imul(V0,r)|0,B=B+Math.imul(A0,a0)|0,h=h+Math.imul(A0,r)|0,w=w+Math.imul(s,E0)|0,B=B+Math.imul(s,_0)|0,B=B+Math.imul(e,E0)|0,h=h+Math.imul(e,_0)|0,w=w+Math.imul(U0,d0)|0,B=B+Math.imul(U0,t0)|0,B=B+Math.imul(z0,d0)|0,h=h+Math.imul(z0,t0)|0;var dU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(dU>>>26)|0,dU&=67108863,w=Math.imul(p0,l),B=Math.imul(p0,X0),B=B+Math.imul(c0,l)|0,h=Math.imul(c0,X0),w=w+Math.imul(M0,S0)|0,B=B+Math.imul(M0,B0)|0,B=B+Math.imul(v0,S0)|0,h=h+Math.imul(v0,B0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(I0,f0)|0,B=B+Math.imul(K0,g0)|0,h=h+Math.imul(K0,f0)|0,w=w+Math.imul(Y0,n0)|0,B=B+Math.imul(Y0,i0)|0,B=B+Math.imul(D0,n0)|0,h=h+Math.imul(D0,i0)|0,w=w+Math.imul(c,a0)|0,B=B+Math.imul(c,r)|0,B=B+Math.imul(n,a0)|0,h=h+Math.imul(n,r)|0,w=w+Math.imul(V0,E0)|0,B=B+Math.imul(V0,_0)|0,B=B+Math.imul(A0,E0)|0,h=h+Math.imul(A0,_0)|0,w=w+Math.imul(s,d0)|0,B=B+Math.imul(s,t0)|0,B=B+Math.imul(e,d0)|0,h=h+Math.imul(e,t0)|0,w=w+Math.imul(U0,I$)|0,B=B+Math.imul(U0,$$)|0,B=B+Math.imul(z0,I$)|0,h=h+Math.imul(z0,$$)|0;var a$=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(a$>>>26)|0,a$&=67108863,w=Math.imul(b0,l),B=Math.imul(b0,X0),B=B+Math.imul(h0,l)|0,h=Math.imul(h0,X0),w=w+Math.imul(p0,S0)|0,B=B+Math.imul(p0,B0)|0,B=B+Math.imul(c0,S0)|0,h=h+Math.imul(c0,B0)|0,w=w+Math.imul(M0,g0)|0,B=B+Math.imul(M0,f0)|0,B=B+Math.imul(v0,g0)|0,h=h+Math.imul(v0,f0)|0,w=w+Math.imul(I0,n0)|0,B=B+Math.imul(I0,i0)|0,B=B+Math.imul(K0,n0)|0,h=h+Math.imul(K0,i0)|0,w=w+Math.imul(Y0,a0)|0,B=B+Math.imul(Y0,r)|0,B=B+Math.imul(D0,a0)|0,h=h+Math.imul(D0,r)|0,w=w+Math.imul(c,E0)|0,B=B+Math.imul(c,_0)|0,B=B+Math.imul(n,E0)|0,h=h+Math.imul(n,_0)|0,w=w+Math.imul(V0,d0)|0,B=B+Math.imul(V0,t0)|0,B=B+Math.imul(A0,d0)|0,h=h+Math.imul(A0,t0)|0,w=w+Math.imul(s,I$)|0,B=B+Math.imul(s,$$)|0,B=B+Math.imul(e,I$)|0,h=h+Math.imul(e,$$)|0,w=w+Math.imul(U0,X$)|0,B=B+Math.imul(U0,e0)|0,B=B+Math.imul(z0,X$)|0,h=h+Math.imul(z0,e0)|0;var qU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(qU>>>26)|0,qU&=67108863,w=Math.imul(r0,l),B=Math.imul(r0,X0),B=B+Math.imul(o0,l)|0,h=Math.imul(o0,X0),w=w+Math.imul(b0,S0)|0,B=B+Math.imul(b0,B0)|0,B=B+Math.imul(h0,S0)|0,h=h+Math.imul(h0,B0)|0,w=w+Math.imul(p0,g0)|0,B=B+Math.imul(p0,f0)|0,B=B+Math.imul(c0,g0)|0,h=h+Math.imul(c0,f0)|0,w=w+Math.imul(M0,n0)|0,B=B+Math.imul(M0,i0)|0,B=B+Math.imul(v0,n0)|0,h=h+Math.imul(v0,i0)|0,w=w+Math.imul(I0,a0)|0,B=B+Math.imul(I0,r)|0,B=B+Math.imul(K0,a0)|0,h=h+Math.imul(K0,r)|0,w=w+Math.imul(Y0,E0)|0,B=B+Math.imul(Y0,_0)|0,B=B+Math.imul(D0,E0)|0,h=h+Math.imul(D0,_0)|0,w=w+Math.imul(c,d0)|0,B=B+Math.imul(c,t0)|0,B=B+Math.imul(n,d0)|0,h=h+Math.imul(n,t0)|0,w=w+Math.imul(V0,I$)|0,B=B+Math.imul(V0,$$)|0,B=B+Math.imul(A0,I$)|0,h=h+Math.imul(A0,$$)|0,w=w+Math.imul(s,X$)|0,B=B+Math.imul(s,e0)|0,B=B+Math.imul(e,X$)|0,h=h+Math.imul(e,e0)|0,w=w+Math.imul(U0,B$)|0,B=B+Math.imul(U0,j$)|0,B=B+Math.imul(z0,B$)|0,h=h+Math.imul(z0,j$)|0;var FU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(FU>>>26)|0,FU&=67108863,w=Math.imul(r0,S0),B=Math.imul(r0,B0),B=B+Math.imul(o0,S0)|0,h=Math.imul(o0,B0),w=w+Math.imul(b0,g0)|0,B=B+Math.imul(b0,f0)|0,B=B+Math.imul(h0,g0)|0,h=h+Math.imul(h0,f0)|0,w=w+Math.imul(p0,n0)|0,B=B+Math.imul(p0,i0)|0,B=B+Math.imul(c0,n0)|0,h=h+Math.imul(c0,i0)|0,w=w+Math.imul(M0,a0)|0,B=B+Math.imul(M0,r)|0,B=B+Math.imul(v0,a0)|0,h=h+Math.imul(v0,r)|0,w=w+Math.imul(I0,E0)|0,B=B+Math.imul(I0,_0)|0,B=B+Math.imul(K0,E0)|0,h=h+Math.imul(K0,_0)|0,w=w+Math.imul(Y0,d0)|0,B=B+Math.imul(Y0,t0)|0,B=B+Math.imul(D0,d0)|0,h=h+Math.imul(D0,t0)|0,w=w+Math.imul(c,I$)|0,B=B+Math.imul(c,$$)|0,B=B+Math.imul(n,I$)|0,h=h+Math.imul(n,$$)|0,w=w+Math.imul(V0,X$)|0,B=B+Math.imul(V0,e0)|0,B=B+Math.imul(A0,X$)|0,h=h+Math.imul(A0,e0)|0,w=w+Math.imul(s,B$)|0,B=B+Math.imul(s,j$)|0,B=B+Math.imul(e,B$)|0,h=h+Math.imul(e,j$)|0;var nU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(nU>>>26)|0,nU&=67108863,w=Math.imul(r0,g0),B=Math.imul(r0,f0),B=B+Math.imul(o0,g0)|0,h=Math.imul(o0,f0),w=w+Math.imul(b0,n0)|0,B=B+Math.imul(b0,i0)|0,B=B+Math.imul(h0,n0)|0,h=h+Math.imul(h0,i0)|0,w=w+Math.imul(p0,a0)|0,B=B+Math.imul(p0,r)|0,B=B+Math.imul(c0,a0)|0,h=h+Math.imul(c0,r)|0,w=w+Math.imul(M0,E0)|0,B=B+Math.imul(M0,_0)|0,B=B+Math.imul(v0,E0)|0,h=h+Math.imul(v0,_0)|0,w=w+Math.imul(I0,d0)|0,B=B+Math.imul(I0,t0)|0,B=B+Math.imul(K0,d0)|0,h=h+Math.imul(K0,t0)|0,w=w+Math.imul(Y0,I$)|0,B=B+Math.imul(Y0,$$)|0,B=B+Math.imul(D0,I$)|0,h=h+Math.imul(D0,$$)|0,w=w+Math.imul(c,X$)|0,B=B+Math.imul(c,e0)|0,B=B+Math.imul(n,X$)|0,h=h+Math.imul(n,e0)|0,w=w+Math.imul(V0,B$)|0,B=B+Math.imul(V0,j$)|0,B=B+Math.imul(A0,B$)|0,h=h+Math.imul(A0,j$)|0;var SU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(SU>>>26)|0,SU&=67108863,w=Math.imul(r0,n0),B=Math.imul(r0,i0),B=B+Math.imul(o0,n0)|0,h=Math.imul(o0,i0),w=w+Math.imul(b0,a0)|0,B=B+Math.imul(b0,r)|0,B=B+Math.imul(h0,a0)|0,h=h+Math.imul(h0,r)|0,w=w+Math.imul(p0,E0)|0,B=B+Math.imul(p0,_0)|0,B=B+Math.imul(c0,E0)|0,h=h+Math.imul(c0,_0)|0,w=w+Math.imul(M0,d0)|0,B=B+Math.imul(M0,t0)|0,B=B+Math.imul(v0,d0)|0,h=h+Math.imul(v0,t0)|0,w=w+Math.imul(I0,I$)|0,B=B+Math.imul(I0,$$)|0,B=B+Math.imul(K0,I$)|0,h=h+Math.imul(K0,$$)|0,w=w+Math.imul(Y0,X$)|0,B=B+Math.imul(Y0,e0)|0,B=B+Math.imul(D0,X$)|0,h=h+Math.imul(D0,e0)|0,w=w+Math.imul(c,B$)|0,B=B+Math.imul(c,j$)|0,B=B+Math.imul(n,B$)|0,h=h+Math.imul(n,j$)|0;var gU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(gU>>>26)|0,gU&=67108863,w=Math.imul(r0,a0),B=Math.imul(r0,r),B=B+Math.imul(o0,a0)|0,h=Math.imul(o0,r),w=w+Math.imul(b0,E0)|0,B=B+Math.imul(b0,_0)|0,B=B+Math.imul(h0,E0)|0,h=h+Math.imul(h0,_0)|0,w=w+Math.imul(p0,d0)|0,B=B+Math.imul(p0,t0)|0,B=B+Math.imul(c0,d0)|0,h=h+Math.imul(c0,t0)|0,w=w+Math.imul(M0,I$)|0,B=B+Math.imul(M0,$$)|0,B=B+Math.imul(v0,I$)|0,h=h+Math.imul(v0,$$)|0,w=w+Math.imul(I0,X$)|0,B=B+Math.imul(I0,e0)|0,B=B+Math.imul(K0,X$)|0,h=h+Math.imul(K0,e0)|0,w=w+Math.imul(Y0,B$)|0,B=B+Math.imul(Y0,j$)|0,B=B+Math.imul(D0,B$)|0,h=h+Math.imul(D0,j$)|0;var fU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(fU>>>26)|0,fU&=67108863,w=Math.imul(r0,E0),B=Math.imul(r0,_0),B=B+Math.imul(o0,E0)|0,h=Math.imul(o0,_0),w=w+Math.imul(b0,d0)|0,B=B+Math.imul(b0,t0)|0,B=B+Math.imul(h0,d0)|0,h=h+Math.imul(h0,t0)|0,w=w+Math.imul(p0,I$)|0,B=B+Math.imul(p0,$$)|0,B=B+Math.imul(c0,I$)|0,h=h+Math.imul(c0,$$)|0,w=w+Math.imul(M0,X$)|0,B=B+Math.imul(M0,e0)|0,B=B+Math.imul(v0,X$)|0,h=h+Math.imul(v0,e0)|0,w=w+Math.imul(I0,B$)|0,B=B+Math.imul(I0,j$)|0,B=B+Math.imul(K0,B$)|0,h=h+Math.imul(K0,j$)|0;var jU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(jU>>>26)|0,jU&=67108863,w=Math.imul(r0,d0),B=Math.imul(r0,t0),B=B+Math.imul(o0,d0)|0,h=Math.imul(o0,t0),w=w+Math.imul(b0,I$)|0,B=B+Math.imul(b0,$$)|0,B=B+Math.imul(h0,I$)|0,h=h+Math.imul(h0,$$)|0,w=w+Math.imul(p0,X$)|0,B=B+Math.imul(p0,e0)|0,B=B+Math.imul(c0,X$)|0,h=h+Math.imul(c0,e0)|0,w=w+Math.imul(M0,B$)|0,B=B+Math.imul(M0,j$)|0,B=B+Math.imul(v0,B$)|0,h=h+Math.imul(v0,j$)|0;var TU=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(TU>>>26)|0,TU&=67108863,w=Math.imul(r0,I$),B=Math.imul(r0,$$),B=B+Math.imul(o0,I$)|0,h=Math.imul(o0,$$),w=w+Math.imul(b0,X$)|0,B=B+Math.imul(b0,e0)|0,B=B+Math.imul(h0,X$)|0,h=h+Math.imul(h0,e0)|0,w=w+Math.imul(p0,B$)|0,B=B+Math.imul(p0,j$)|0,B=B+Math.imul(c0,B$)|0,h=h+Math.imul(c0,j$)|0;var _X=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(_X>>>26)|0,_X&=67108863,w=Math.imul(r0,X$),B=Math.imul(r0,e0),B=B+Math.imul(o0,X$)|0,h=Math.imul(o0,e0),w=w+Math.imul(b0,B$)|0,B=B+Math.imul(b0,j$)|0,B=B+Math.imul(h0,B$)|0,h=h+Math.imul(h0,j$)|0;var hY=(T+w|0)+((B&8191)<<13)|0;T=(h+(B>>>13)|0)+(hY>>>26)|0,hY&=67108863,w=Math.imul(r0,B$),B=Math.imul(r0,j$),B=B+Math.imul(o0,B$)|0,h=Math.imul(o0,j$);var cY=(T+w|0)+((B&8191)<<13)|0;if(T=(h+(B>>>13)|0)+(cY>>>26)|0,cY&=67108863,Z[0]=XU,Z[1]=o$,Z[2]=cU,Z[3]=pU,Z[4]=lU,Z[5]=mU,Z[6]=dU,Z[7]=a$,Z[8]=qU,Z[9]=FU,Z[10]=nU,Z[11]=SU,Z[12]=gU,Z[13]=fU,Z[14]=jU,Z[15]=TU,Z[16]=_X,Z[17]=hY,Z[18]=cY,T!==0)Z[19]=T,C.length++;return C};if(!Math.imul)u=k;function p(K,F,C){C.negative=F.negative^K.negative,C.length=K.length+F.length;var j=0,q=0;for(var Z=0;Z<C.length-1;Z++){var T=q;q=0;var w=j&67108863,B=Math.min(Z,F.length-1);for(var h=Math.max(0,Z-K.length+1);h<=B;h++){var t=Z-h,U0=K.words[t]|0,z0=F.words[h]|0,Q0=U0*z0,s=Q0&67108863;T=T+(Q0/67108864|0)|0,s=s+w|0,w=s&67108863,T=T+(s>>>26)|0,q+=T>>>26,T&=67108863}C.words[Z]=w,j=T,T=q}if(j!==0)C.words[Z]=j;else C.length--;return C._strip()}function m(K,F,C){return p(K,F,C)}V.prototype.mulTo=function(K,F){var C,j=this.length+K.length;if(this.length===10&&K.length===10)C=u(this,K,F);else if(j<63)C=k(this,K,F);else if(j<1024)C=p(this,K,F);else C=m(this,K,F);return C};function a(K,F){this.x=K,this.y=F}a.prototype.makeRBT=function(K){var F=Array(K),C=V.prototype._countBits(K)-1;for(var j=0;j<K;j++)F[j]=this.revBin(j,C,K);return F},a.prototype.revBin=function(K,F,C){if(K===0||K===C-1)return K;var j=0;for(var q=0;q<F;q++)j|=(K&1)<<F-q-1,K>>=1;return j},a.prototype.permute=function(K,F,C,j,q,Z){for(var T=0;T<Z;T++)j[T]=F[K[T]],q[T]=C[K[T]]},a.prototype.transform=function(K,F,C,j,q,Z){this.permute(Z,K,F,C,j,q);for(var T=1;T<q;T<<=1){var w=T<<1,B=Math.cos(2*Math.PI/w),h=Math.sin(2*Math.PI/w);for(var t=0;t<q;t+=w){var U0=B,z0=h;for(var Q0=0;Q0<T;Q0++){var s=C[t+Q0],e=j[t+Q0],J0=C[t+Q0+T],V0=j[t+Q0+T],A0=U0*J0-z0*V0;if(V0=U0*V0+z0*J0,J0=A0,C[t+Q0]=s+J0,j[t+Q0]=e+V0,C[t+Q0+T]=s-J0,j[t+Q0+T]=e-V0,Q0!==w)A0=B*U0-h*z0,z0=B*z0+h*U0,U0=A0}}}},a.prototype.guessLen13b=function(K,F){var C=Math.max(F,K)|1,j=C&1,q=0;for(C=C/2|0;C;C=C>>>1)q++;return 1<<q+1+j},a.prototype.conjugate=function(K,F,C){if(C<=1)return;for(var j=0;j<C/2;j++){var q=K[j];K[j]=K[C-j-1],K[C-j-1]=q,q=F[j],F[j]=-F[C-j-1],F[C-j-1]=-q}},a.prototype.normalize13b=function(K,F){var C=0;for(var j=0;j<F/2;j++){var q=Math.round(K[2*j+1]/F)*8192+Math.round(K[2*j]/F)+C;if(K[j]=q&67108863,q<67108864)C=0;else C=q/67108864|0}return K},a.prototype.convert13b=function(K,F,C,j){var q=0;for(var Z=0;Z<F;Z++)q=q+(K[Z]|0),C[2*Z]=q&8191,q=q>>>13,C[2*Z+1]=q&8191,q=q>>>13;for(Z=2*F;Z<j;++Z)C[Z]=0;X(q===0),X((q&-8192)===0)},a.prototype.stub=function(K){var F=Array(K);for(var C=0;C<K;C++)F[C]=0;return F},a.prototype.mulp=function(K,F,C){var j=2*this.guessLen13b(K.length,F.length),q=this.makeRBT(j),Z=this.stub(j),T=Array(j),w=Array(j),B=Array(j),h=Array(j),t=Array(j),U0=Array(j),z0=C.words;z0.length=j,this.convert13b(K.words,K.length,T,j),this.convert13b(F.words,F.length,h,j),this.transform(T,Z,w,B,j,q),this.transform(h,Z,t,U0,j,q);for(var Q0=0;Q0<j;Q0++){var s=w[Q0]*t[Q0]-B[Q0]*U0[Q0];B[Q0]=w[Q0]*U0[Q0]+B[Q0]*t[Q0],w[Q0]=s}return this.conjugate(w,B,j),this.transform(w,B,z0,Z,j,q),this.conjugate(z0,Z,j),this.normalize13b(z0,j),C.negative=K.negative^F.negative,C.length=K.length+F.length,C._strip()},V.prototype.mul=function(K){var F=new V(null);return F.words=Array(this.length+K.length),this.mulTo(K,F)},V.prototype.mulf=function(K){var F=new V(null);return F.words=Array(this.length+K.length),m(this,K,F)},V.prototype.imul=function(K){return this.clone().mulTo(K,this)},V.prototype.imuln=function(K){var F=K<0;if(F)K=-K;X(typeof K==="number"),X(K<67108864);var C=0;for(var j=0;j<this.length;j++){var q=(this.words[j]|0)*K,Z=(q&67108863)+(C&67108863);C>>=26,C+=q/67108864|0,C+=Z>>>26,this.words[j]=Z&67108863}if(C!==0)this.words[j]=C,this.length++;return this.length=K===0?1:this.length,F?this.ineg():this},V.prototype.muln=function(K){return this.clone().imuln(K)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(K){var F=b(K);if(F.length===0)return new V(1);var C=this;for(var j=0;j<F.length;j++,C=C.sqr())if(F[j]!==0)break;if(++j<F.length)for(var q=C.sqr();j<F.length;j++,q=q.sqr()){if(F[j]===0)continue;C=C.mul(q)}return C},V.prototype.iushln=function(K){X(typeof K==="number"&&K>=0);var F=K%26,C=(K-F)/26,j=67108863>>>26-F<<26-F,q;if(F!==0){var Z=0;for(q=0;q<this.length;q++){var T=this.words[q]&j,w=(this.words[q]|0)-T<<F;this.words[q]=w|Z,Z=T>>>26-F}if(Z)this.words[q]=Z,this.length++}if(C!==0){for(q=this.length-1;q>=0;q--)this.words[q+C]=this.words[q];for(q=0;q<C;q++)this.words[q]=0;this.length+=C}return this._strip()},V.prototype.ishln=function(K){return X(this.negative===0),this.iushln(K)},V.prototype.iushrn=function(K,F,C){X(typeof K==="number"&&K>=0);var j;if(F)j=(F-F%26)/26;else j=0;var q=K%26,Z=Math.min((K-q)/26,this.length),T=67108863^67108863>>>q<<q,w=C;if(j-=Z,j=Math.max(0,j),w){for(var B=0;B<Z;B++)w.words[B]=this.words[B];w.length=Z}if(Z===0);else if(this.length>Z){this.length-=Z;for(B=0;B<this.length;B++)this.words[B]=this.words[B+Z]}else this.words[0]=0,this.length=1;var h=0;for(B=this.length-1;B>=0&&(h!==0||B>=j);B--){var t=this.words[B]|0;this.words[B]=h<<26-q|t>>>q,h=t&T}if(w&&h!==0)w.words[w.length++]=h;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},V.prototype.ishrn=function(K,F,C){return X(this.negative===0),this.iushrn(K,F,C)},V.prototype.shln=function(K){return this.clone().ishln(K)},V.prototype.ushln=function(K){return this.clone().iushln(K)},V.prototype.shrn=function(K){return this.clone().ishrn(K)},V.prototype.ushrn=function(K){return this.clone().iushrn(K)},V.prototype.testn=function(K){X(typeof K==="number"&&K>=0);var F=K%26,C=(K-F)/26,j=1<<F;if(this.length<=C)return!1;var q=this.words[C];return!!(q&j)},V.prototype.imaskn=function(K){X(typeof K==="number"&&K>=0);var F=K%26,C=(K-F)/26;if(X(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(F!==0)C++;if(this.length=Math.min(C,this.length),F!==0){var j=67108863^67108863>>>F<<F;this.words[this.length-1]&=j}return this._strip()},V.prototype.maskn=function(K){return this.clone().imaskn(K)},V.prototype.iaddn=function(K){if(X(typeof K==="number"),X(K<67108864),K<0)return this.isubn(-K);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=K)return this.words[0]=K-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(K),this.negative=1,this}return this._iaddn(K)},V.prototype._iaddn=function(K){this.words[0]+=K;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)if(this.words[F]-=67108864,F===this.length-1)this.words[F+1]=1;else this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},V.prototype.isubn=function(K){if(X(typeof K==="number"),X(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this._strip()},V.prototype.addn=function(K){return this.clone().iaddn(K)},V.prototype.subn=function(K){return this.clone().isubn(K)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(K,F,C){var j=K.length+C,q;this._expand(j);var Z,T=0;for(q=0;q<K.length;q++){Z=(this.words[q+C]|0)+T;var w=(K.words[q]|0)*F;Z-=w&67108863,T=(Z>>26)-(w/67108864|0),this.words[q+C]=Z&67108863}for(;q<this.length-C;q++)Z=(this.words[q+C]|0)+T,T=Z>>26,this.words[q+C]=Z&67108863;if(T===0)return this._strip();X(T===-1),T=0;for(q=0;q<this.length;q++)Z=-(this.words[q]|0)+T,T=Z>>26,this.words[q]=Z&67108863;return this.negative=1,this._strip()},V.prototype._wordDiv=function(K,F){var C=this.length-K.length,j=this.clone(),q=K,Z=q.words[q.length-1]|0,T=this._countBits(Z);if(C=26-T,C!==0)q=q.ushln(C),j.iushln(C),Z=q.words[q.length-1]|0;var w=j.length-q.length,B;if(F!=="mod"){B=new V(null),B.length=w+1,B.words=Array(B.length);for(var h=0;h<B.length;h++)B.words[h]=0}var t=j.clone()._ishlnsubmul(q,1,w);if(t.negative===0){if(j=t,B)B.words[w]=1}for(var U0=w-1;U0>=0;U0--){var z0=(j.words[q.length+U0]|0)*67108864+(j.words[q.length+U0-1]|0);z0=Math.min(z0/Z|0,67108863),j._ishlnsubmul(q,z0,U0);while(j.negative!==0)if(z0--,j.negative=0,j._ishlnsubmul(q,1,U0),!j.isZero())j.negative^=1;if(B)B.words[U0]=z0}if(B)B._strip();if(j._strip(),F!=="div"&&C!==0)j.iushrn(C);return{div:B||null,mod:j}},V.prototype.divmod=function(K,F,C){if(X(!K.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var j,q,Z;if(this.negative!==0&&K.negative===0){if(Z=this.neg().divmod(K,F),F!=="mod")j=Z.div.neg();if(F!=="div"){if(q=Z.mod.neg(),C&&q.negative!==0)q.iadd(K)}return{div:j,mod:q}}if(this.negative===0&&K.negative!==0){if(Z=this.divmod(K.neg(),F),F!=="mod")j=Z.div.neg();return{div:j,mod:Z.mod}}if((this.negative&K.negative)!==0){if(Z=this.neg().divmod(K.neg(),F),F!=="div"){if(q=Z.mod.neg(),C&&q.negative!==0)q.isub(K)}return{div:Z.div,mod:q}}if(K.length>this.length||this.cmp(K)<0)return{div:new V(0),mod:this};if(K.length===1){if(F==="div")return{div:this.divn(K.words[0]),mod:null};if(F==="mod")return{div:null,mod:new V(this.modrn(K.words[0]))};return{div:this.divn(K.words[0]),mod:new V(this.modrn(K.words[0]))}}return this._wordDiv(K,F)},V.prototype.div=function(K){return this.divmod(K,"div",!1).div},V.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},V.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},V.prototype.divRound=function(K){var F=this.divmod(K);if(F.mod.isZero())return F.div;var C=F.div.negative!==0?F.mod.isub(K):F.mod,j=K.ushrn(1),q=K.andln(1),Z=C.cmp(j);if(Z<0||q===1&&Z===0)return F.div;return F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},V.prototype.modrn=function(K){var F=K<0;if(F)K=-K;X(K<=67108863);var C=67108864%K,j=0;for(var q=this.length-1;q>=0;q--)j=(C*j+(this.words[q]|0))%K;return F?-j:j},V.prototype.modn=function(K){return this.modrn(K)},V.prototype.idivn=function(K){var F=K<0;if(F)K=-K;X(K<=67108863);var C=0;for(var j=this.length-1;j>=0;j--){var q=(this.words[j]|0)+C*67108864;this.words[j]=q/K|0,C=q%K}return this._strip(),F?this.ineg():this},V.prototype.divn=function(K){return this.clone().idivn(K)},V.prototype.egcd=function(K){X(K.negative===0),X(!K.isZero());var F=this,C=K.clone();if(F.negative!==0)F=F.umod(K);else F=F.clone();var j=new V(1),q=new V(0),Z=new V(0),T=new V(1),w=0;while(F.isEven()&&C.isEven())F.iushrn(1),C.iushrn(1),++w;var B=C.clone(),h=F.clone();while(!F.isZero()){for(var t=0,U0=1;(F.words[0]&U0)===0&&t<26;++t,U0<<=1);if(t>0){F.iushrn(t);while(t-- >0){if(j.isOdd()||q.isOdd())j.iadd(B),q.isub(h);j.iushrn(1),q.iushrn(1)}}for(var z0=0,Q0=1;(C.words[0]&Q0)===0&&z0<26;++z0,Q0<<=1);if(z0>0){C.iushrn(z0);while(z0-- >0){if(Z.isOdd()||T.isOdd())Z.iadd(B),T.isub(h);Z.iushrn(1),T.iushrn(1)}}if(F.cmp(C)>=0)F.isub(C),j.isub(Z),q.isub(T);else C.isub(F),Z.isub(j),T.isub(q)}return{a:Z,b:T,gcd:C.iushln(w)}},V.prototype._invmp=function(K){X(K.negative===0),X(!K.isZero());var F=this,C=K.clone();if(F.negative!==0)F=F.umod(K);else F=F.clone();var j=new V(1),q=new V(0),Z=C.clone();while(F.cmpn(1)>0&&C.cmpn(1)>0){for(var T=0,w=1;(F.words[0]&w)===0&&T<26;++T,w<<=1);if(T>0){F.iushrn(T);while(T-- >0){if(j.isOdd())j.iadd(Z);j.iushrn(1)}}for(var B=0,h=1;(C.words[0]&h)===0&&B<26;++B,h<<=1);if(B>0){C.iushrn(B);while(B-- >0){if(q.isOdd())q.iadd(Z);q.iushrn(1)}}if(F.cmp(C)>=0)F.isub(C),j.isub(q);else C.isub(F),q.isub(j)}var t;if(F.cmpn(1)===0)t=j;else t=q;if(t.cmpn(0)<0)t.iadd(K);return t},V.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var F=this.clone(),C=K.clone();F.negative=0,C.negative=0;for(var j=0;F.isEven()&&C.isEven();j++)F.iushrn(1),C.iushrn(1);do{while(F.isEven())F.iushrn(1);while(C.isEven())C.iushrn(1);var q=F.cmp(C);if(q<0){var Z=F;F=C,C=Z}else if(q===0||C.cmpn(1)===0)break;F.isub(C)}while(!0);return C.iushln(j)},V.prototype.invm=function(K){return this.egcd(K).a.umod(K)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(K){return this.words[0]&K},V.prototype.bincn=function(K){X(typeof K==="number");var F=K%26,C=(K-F)/26,j=1<<F;if(this.length<=C)return this._expand(C+1),this.words[C]|=j,this;var q=j;for(var Z=C;q!==0&&Z<this.length;Z++){var T=this.words[Z]|0;T+=q,q=T>>>26,T&=67108863,this.words[Z]=T}if(q!==0)this.words[Z]=q,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(K){var F=K<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this._strip();var C;if(this.length>1)C=1;else{if(F)K=-K;X(K<=67108863,"Number is too big");var j=this.words[0]|0;C=j===K?0:j<K?-1:1}if(this.negative!==0)return-C|0;return C},V.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var F=this.ucmp(K);if(this.negative!==0)return-F|0;return F},V.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;var F=0;for(var C=this.length-1;C>=0;C--){var j=this.words[C]|0,q=K.words[C]|0;if(j===q)continue;if(j<q)F=-1;else if(j>q)F=1;break}return F},V.prototype.gtn=function(K){return this.cmpn(K)===1},V.prototype.gt=function(K){return this.cmp(K)===1},V.prototype.gten=function(K){return this.cmpn(K)>=0},V.prototype.gte=function(K){return this.cmp(K)>=0},V.prototype.ltn=function(K){return this.cmpn(K)===-1},V.prototype.lt=function(K){return this.cmp(K)===-1},V.prototype.lten=function(K){return this.cmpn(K)<=0},V.prototype.lte=function(K){return this.cmp(K)<=0},V.prototype.eqn=function(K){return this.cmpn(K)===0},V.prototype.eq=function(K){return this.cmp(K)===0},V.red=function(K){return new D(K)},V.prototype.toRed=function(K){return X(!this.red,"Already a number in reduction context"),X(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},V.prototype.fromRed=function(){return X(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(K){return this.red=K,this},V.prototype.forceRed=function(K){return X(!this.red,"Already a number in reduction context"),this._forceRed(K)},V.prototype.redAdd=function(K){return X(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},V.prototype.redIAdd=function(K){return X(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},V.prototype.redSub=function(K){return X(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},V.prototype.redISub=function(K){return X(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},V.prototype.redShl=function(K){return X(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},V.prototype.redMul=function(K){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},V.prototype.redIMul=function(K){return X(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},V.prototype.redSqr=function(){return X(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return X(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return X(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return X(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return X(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(K){return X(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var Z0={k256:null,p224:null,p192:null,p25519:null};function L0(K,F){this.name=K,this.p=new V(F,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L0.prototype._tmp=function(){var K=new V(null);return K.words=Array(Math.ceil(this.n/13)),K},L0.prototype.ireduce=function(K){var F=K,C;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),C=F.bitLength();while(C>this.n);var j=C<this.n?-1:F.ucmp(this.p);if(j===0)F.words[0]=0,F.length=1;else if(j>0)F.isub(this.p);else if(F.strip!==void 0)F.strip();else F._strip();return F},L0.prototype.split=function(K,F){K.iushrn(this.n,0,F)},L0.prototype.imulK=function(K){return K.imul(this.k)};function C0(){L0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}z(C0,L0),C0.prototype.split=function(K,F){var C=4194303,j=Math.min(K.length,9);for(var q=0;q<j;q++)F.words[q]=K.words[q];if(F.length=j,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];F.words[F.length++]=Z&C;for(q=10;q<K.length;q++){var T=K.words[q]|0;K.words[q-10]=(T&C)<<4|Z>>>22,Z=T}if(Z>>>=22,K.words[q-10]=Z,Z===0&&K.length>10)K.length-=10;else K.length-=9},C0.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;var F=0;for(var C=0;C<K.length;C++){var j=K.words[C]|0;F+=j*977,K.words[C]=F&67108863,F=j*64+(F/67108864|0)}if(K.words[K.length-1]===0){if(K.length--,K.words[K.length-1]===0)K.length--}return K};function o(){L0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}z(o,L0);function q0(){L0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}z(q0,L0);function G(){L0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}z(G,L0),G.prototype.imulK=function(K){var F=0;for(var C=0;C<K.length;C++){var j=(K.words[C]|0)*19+F,q=j&67108863;j>>>=26,K.words[C]=q,F=j}if(F!==0)K.words[K.length++]=F;return K},V._prime=function(K){if(Z0[K])return Z0[K];var F;if(K==="k256")F=new C0;else if(K==="p224")F=new o;else if(K==="p192")F=new q0;else if(K==="p25519")F=new G;else throw Error("Unknown prime "+K);return Z0[K]=F,F};function D(K){if(typeof K==="string"){var F=V._prime(K);this.m=F.p,this.prime=F}else X(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}D.prototype._verify1=function(K){X(K.negative===0,"red works only with positives"),X(K.red,"red works only with red numbers")},D.prototype._verify2=function(K,F){X((K.negative|F.negative)===0,"red works only with positives"),X(K.red&&K.red===F.red,"red works only with red numbers")},D.prototype.imod=function(K){if(this.prime)return this.prime.ireduce(K)._forceRed(this);return M(K,K.umod(this.m)._forceRed(this)),K},D.prototype.neg=function(K){if(K.isZero())return K.clone();return this.m.sub(K)._forceRed(this)},D.prototype.add=function(K,F){this._verify2(K,F);var C=K.add(F);if(C.cmp(this.m)>=0)C.isub(this.m);return C._forceRed(this)},D.prototype.iadd=function(K,F){this._verify2(K,F);var C=K.iadd(F);if(C.cmp(this.m)>=0)C.isub(this.m);return C},D.prototype.sub=function(K,F){this._verify2(K,F);var C=K.sub(F);if(C.cmpn(0)<0)C.iadd(this.m);return C._forceRed(this)},D.prototype.isub=function(K,F){this._verify2(K,F);var C=K.isub(F);if(C.cmpn(0)<0)C.iadd(this.m);return C},D.prototype.shl=function(K,F){return this._verify1(K),this.imod(K.ushln(F))},D.prototype.imul=function(K,F){return this._verify2(K,F),this.imod(K.imul(F))},D.prototype.mul=function(K,F){return this._verify2(K,F),this.imod(K.mul(F))},D.prototype.isqr=function(K){return this.imul(K,K.clone())},D.prototype.sqr=function(K){return this.mul(K,K)},D.prototype.sqrt=function(K){if(K.isZero())return K.clone();var F=this.m.andln(3);if(X(F%2===1),F===3){var C=this.m.add(new V(1)).iushrn(2);return this.pow(K,C)}var j=this.m.subn(1),q=0;while(!j.isZero()&&j.andln(1)===0)q++,j.iushrn(1);X(!j.isZero());var Z=new V(1).toRed(this),T=Z.redNeg(),w=this.m.subn(1).iushrn(1),B=this.m.bitLength();B=new V(2*B*B).toRed(this);while(this.pow(B,w).cmp(T)!==0)B.redIAdd(T);var h=this.pow(B,j),t=this.pow(K,j.addn(1).iushrn(1)),U0=this.pow(K,j),z0=q;while(U0.cmp(Z)!==0){var Q0=U0;for(var s=0;Q0.cmp(Z)!==0;s++)Q0=Q0.redSqr();X(s<z0);var e=this.pow(h,new V(1).iushln(z0-s-1));t=t.redMul(e),h=e.redSqr(),U0=U0.redMul(h),z0=s}return t},D.prototype.invm=function(K){var F=K._invmp(this.m);if(F.negative!==0)return F.negative=0,this.imod(F).redNeg();else return this.imod(F)},D.prototype.pow=function(K,F){if(F.isZero())return new V(1).toRed(this);if(F.cmpn(1)===0)return K.clone();var C=4,j=Array(1<<C);j[0]=new V(1).toRed(this),j[1]=K;for(var q=2;q<j.length;q++)j[q]=this.mul(j[q-1],K);var Z=j[0],T=0,w=0,B=F.bitLength()%26;if(B===0)B=26;for(q=F.length-1;q>=0;q--){var h=F.words[q];for(var t=B-1;t>=0;t--){var U0=h>>t&1;if(Z!==j[0])Z=this.sqr(Z);if(U0===0&&T===0){w=0;continue}if(T<<=1,T|=U0,w++,w!==C&&(q!==0||t!==0))continue;Z=this.mul(Z,j[T]),w=0,T=0}B=26}return Z},D.prototype.convertTo=function(K){var F=K.umod(this.m);return F===K?F.clone():F},D.prototype.convertFrom=function(K){var F=K.clone();return F.red=null,F},V.mont=function(K){return new H(K)};function H(K){if(D.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z(H,D),H.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},H.prototype.convertFrom=function(K){var F=this.imod(K.mul(this.rinv));return F.red=null,F},H.prototype.imul=function(K,F){if(K.isZero()||F.isZero())return K.words[0]=0,K.length=1,K;var C=K.imul(F),j=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=C.isub(j).iushrn(this.shift),Z=q;if(q.cmp(this.m)>=0)Z=q.isub(this.m);else if(q.cmpn(0)<0)Z=q.iadd(this.m);return Z._forceRed(this)},H.prototype.mul=function(K,F){if(K.isZero()||F.isZero())return new V(0)._forceRed(this);var C=K.mul(F),j=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=C.isub(j).iushrn(this.shift),Z=q;if(q.cmp(this.m)>=0)Z=q.isub(this.m);else if(q.cmpn(0)<0)Z=q.iadd(this.m);return Z._forceRed(this)},H.prototype.invm=function(K){var F=this.imod(K._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(typeof J>"u"||J,U)}),xj=u0((U,J)=>{var Q=iu(),O=sO(),X=b6().Buffer;function z(S){var E=S.modulus.byteLength(),_;do _=new Q(O(E));while(_.cmp(S.modulus)>=0||!_.umod(S.prime1)||!_.umod(S.prime2));return _}function V(S){var E=z(S),_=E.toRed(Q.mont(S.modulus)).redPow(new Q(S.publicExponent)).fromRed();return{blinder:_,unblinder:E.invm(S.modulus)}}function L(S,E){var _=V(E),M=E.modulus.byteLength(),P=new Q(S).mul(_.blinder).umod(E.modulus),v=P.toRed(Q.mont(E.prime1)),N=P.toRed(Q.mont(E.prime2)),f=E.coefficient,x=E.prime1,b=E.prime2,k=v.redPow(E.exponent1).fromRed(),u=N.redPow(E.exponent2).fromRed(),p=k.isub(u).imul(f).umod(x).imul(b);return u.iadd(p).imul(_.unblinder).umod(E.modulus).toArrayLike(X,"be",M)}L.getr=z,J.exports=L}),ru=u0((U,J)=>{var Q=Bj(),O=sO(),X=eO(),z=Nj(),V=kj(),L=HF(),S=gj(),E=xj(),_=b6().Buffer;J.exports=function(N,f,x){var b;if(N.padding)b=N.padding;else if(x)b=1;else b=4;var k=Q(N),u;if(b===4)u=M(k,f);else if(b===1)u=P(k,f,x);else if(b===3){if(u=new L(f),u.cmp(k.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(x)return E(u,k);else return S(u,k)};function M(N,f){var x=N.modulus.byteLength(),b=f.length,k=X("sha1").update(_.alloc(0)).digest(),u=k.length,p=2*u;if(b>x-p-2)throw Error("message too long");var m=_.alloc(x-b-p-2),a=x-u-1,Z0=O(u),L0=V(_.concat([k,m,_.alloc(1,1),f],a),z(Z0,a)),C0=V(Z0,z(L0,u));return new L(_.concat([_.alloc(1),C0,L0],x))}function P(N,f,x){var b=f.length,k=N.modulus.byteLength();if(b>k-11)throw Error("message too long");var u;if(x)u=_.alloc(k-b-3,255);else u=v(k-b-3);return new L(_.concat([_.from([0,x?1:2]),u,_.alloc(1),f],k))}function v(N){var f=_.allocUnsafe(N),x=0,b=O(N*2),k=0,u;while(x<N){if(k===b.length)b=O(N*2),k=0;if(u=b[k++],u)f[x++]=u}return f}}),tu=u0((U,J)=>{var Q=Bj(),O=Nj(),X=kj(),z=HF(),V=xj(),L=eO(),S=gj(),E=b6().Buffer;J.exports=function(v,N,f){var x;if(v.padding)x=v.padding;else if(f)x=1;else x=4;var b=Q(v),k=b.modulus.byteLength();if(N.length>k||new z(N).cmp(b.modulus)>=0)throw Error("decryption error");var u;if(f)u=S(new z(N),b);else u=V(N,b);var p=E.alloc(k-u.length);if(u=E.concat([p,u],k),x===4)return _(b,u);else if(x===1)return M(b,u,f);else if(x===3)return u;else throw Error("unknown padding")};function _(v,N){var f=v.modulus.byteLength(),x=L("sha1").update(E.alloc(0)).digest(),b=x.length;if(N[0]!==0)throw Error("decryption error");var k=N.slice(1,b+1),u=N.slice(b+1),p=X(k,O(u,b)),m=X(u,O(p,f-b-1));if(P(x,m.slice(0,b)))throw Error("decryption error");var a=b;while(m[a]===0)a++;if(m[a++]!==1)throw Error("decryption error");return m.slice(a)}function M(v,N,f){var x=N.slice(0,2),b=2,k=0;while(N[b++]!==0)if(b>=N.length){k++;break}var u=N.slice(2,b-1);if(x.toString("hex")!=="0002"&&!f||x.toString("hex")!=="0001"&&f)k++;if(u.length<8)k++;if(k)throw Error("decryption error");return N.slice(b)}function P(v,N){v=E.from(v),N=E.from(N);var f=0,x=v.length;if(v.length!==N.length)f++,x=Math.min(v.length,N.length);var b=-1;while(++b<x)f+=v[b]^N[b];return f}}),GF=u0((U)=>{U.publicEncrypt=ru(),U.privateDecrypt=tu(),U.privateEncrypt=function(J,Q){return U.publicEncrypt(J,Q,!0)},U.publicDecrypt=function(J,Q){return U.privateDecrypt(J,Q,!0)}}),au=u0((U)=>{var J=(hU(),v$(q4));if(typeof J.publicEncrypt!=="function")J=GF();if(U.publicEncrypt=J.publicEncrypt,U.privateDecrypt=J.privateDecrypt,typeof J.privateEncrypt!=="function")U.privateEncrypt=GF().privateEncrypt;else U.privateEncrypt=J.privateEncrypt;if(typeof J.publicDecrypt!=="function")U.publicDecrypt=GF().publicDecrypt;else U.publicDecrypt=J.publicDecrypt}),su=u0((U)=>{var J=b6(),Q=sO(),O=J.Buffer,X=J.kMaxLength,z=globalThis.crypto||globalThis.msCrypto,V=Math.pow(2,32)-1;function L(P,v){if(typeof P!=="number"||P!==P)throw TypeError("offset must be a number");if(P>V||P<0)throw TypeError("offset must be a uint32");if(P>X||P>v)throw RangeError("offset out of range")}function S(P,v,N){if(typeof P!=="number"||P!==P)throw TypeError("size must be a number");if(P>V||P<0)throw TypeError("size must be a uint32");if(P+v>N||P>X)throw RangeError("buffer too small")}z&&z.getRandomValues,U.randomFill=E,U.randomFillSync=M;function E(P,v,N,f){if(!O.isBuffer(P)&&!(P instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof v==="function")f=v,v=0,N=P.length;else if(typeof N==="function")f=N,N=P.length-v;else if(typeof f!=="function")throw TypeError('"cb" argument must be a function');return L(v,P.length),S(N,v,P.length),_(P,v,N,f)}function _(P,v,N,f){if(!1)var x,b;if(f){Q(N,function(u,p){if(u)return f(u);p.copy(P,v),f(null,P)});return}var k=Q(N);return k.copy(P,v),P}function M(P,v,N){if(typeof v>"u")v=0;if(!O.isBuffer(P)&&!(P instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(L(v,P.length),N===void 0)N=P.length-v;return S(N,v,P.length),_(P,v,N)}}),eu=u0((U,J)=>{var Q=(hU(),v$(q4));if(typeof Q.randomFill==="function"&&typeof Q.randomFillSync==="function")U.randomFill=Q.randomFill,U.randomFillSync=Q.randomFillSync;else J.exports=su()}),$b=u0((U)=>{U.randomBytes=U.rng=U.pseudoRandomBytes=U.prng=sO(),U.createHash=U.Hash=eO(),U.createHmac=U.Hmac=Vj();var J=Py(),Q=Object.keys(J),O=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Q);U.getHashes=function(){return O};var X=Aj();U.pbkdf2=X.pbkdf2,U.pbkdf2Sync=X.pbkdf2Sync;var z=Yu();U.Cipher=z.Cipher,U.createCipher=z.createCipher,U.Cipheriv=z.Cipheriv,U.createCipheriv=z.createCipheriv,U.Decipher=z.Decipher,U.createDecipher=z.createDecipher,U.Decipheriv=z.Decipheriv,U.createDecipheriv=z.createDecipheriv,U.getCiphers=z.getCiphers,U.listCiphers=z.listCiphers;var V=Gu();U.DiffieHellmanGroup=V.DiffieHellmanGroup,U.createDiffieHellmanGroup=V.createDiffieHellmanGroup,U.getDiffieHellman=V.getDiffieHellman,U.createDiffieHellman=V.createDiffieHellman,U.DiffieHellman=V.DiffieHellman;var L=Vu();U.createSign=L.createSign,U.Sign=L.Sign,U.createVerify=L.createVerify,U.Verify=L.Verify,U.createECDH=Nu();var S=au();U.publicEncrypt=S.publicEncrypt,U.privateEncrypt=S.privateEncrypt,U.publicDecrypt=S.publicDecrypt,U.privateDecrypt=S.privateDecrypt;var E=eu();U.randomFill=E.randomFill,U.randomFillSync=E.randomFillSync,U.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
244
+ we accept pull requests
245
+ https://github.com/browserify/crypto-browserify`)},U.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),p$=Ry($b(),1),Ub=p$.prng,Ib=p$.pseudoRandomBytes,Xb=p$.rng,Jb=p$.randomBytes,Qb=p$.Hash,h6=p$.createHash,Yb=p$.Hmac,Gb=p$.createHmac,Vb=p$.getHashes,Zb=p$.pbkdf2,Ob=p$.pbkdf2Sync,zb=p$.Cipher,Kb=p$.createCipher,Db=p$.Cipheriv,Wb=p$.createCipheriv,Fb=p$.Decipher,Hb=p$.createDecipher,Lb=p$.Decipheriv,Mb=p$.createDecipheriv,Ab=p$.getCiphers,qb=p$.listCiphers,Tb=p$.DiffieHellmanGroup,Cb=p$.createDiffieHellmanGroup,Rb=p$.getDiffieHellman,Pb=p$.createDiffieHellman,Eb=p$.DiffieHellman,_b=p$.createSign,Sb=p$.Sign,jb=p$.createVerify,vb=p$.Verify,Bb=p$.createECDH,Nb=p$.publicEncrypt,kb=p$.privateEncrypt,gb=p$.publicDecrypt,xb=p$.privateDecrypt,wb=p$.randomFill,fb=p$.randomFillSync,yb=p$.createCredentials,ub=p$.constants,cb=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];lb=crypto,mb=crypto});var B3={};y6(B3,{resolveObject:()=>v3,resolve:()=>j3,parse:()=>yY,format:()=>S3,default:()=>xm,Url:()=>P4,URLSearchParams:()=>E3,URL:()=>Hq});function Lq(U){return typeof U==="string"}function _3(U){return typeof U==="object"&&U!==null}function QD(U){return U===null}function Em(U){return U==null}function P4(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function yY(U,J,Q){if(U&&_3(U)&&U instanceof P4)return U;var O=new P4;return O.parse(U,J,Q),O}function S3(U){if(Lq(U))U=yY(U);if(!(U instanceof P4))return P4.prototype.format.call(U);return U.format()}function j3(U,J){return yY(U,!1,!0).resolve(J)}function v3(U,J){if(!U)return J;return yY(U,!1,!0).resolveObject(J)}var Hq,E3,_m,Sm,jm,vm,Bm,Dq,C3,R3,Nm=255,P3,km,gm,Wq,fY,Fq,xm;var N3=wQ(()=>{({URL:Hq,URLSearchParams:E3}=globalThis);_m=/^([a-z0-9.+-]+:)/i,Sm=/:[0-9]*$/,jm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,vm=["<",">",'"',"`"," ","\r",`
246
+ `,"\t"],Bm=["{","}","|","\\","^","`"].concat(vm),Dq=["'"].concat(Bm),C3=["%","/","?",";","#"].concat(Dq),R3=["/","?","#"],P3=/^[+a-z0-9A-Z_-]{0,63}$/,km=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gm={javascript:!0,"javascript:":!0},Wq={javascript:!0,"javascript:":!0},fY={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Fq={parse(U){var J=decodeURIComponent;return(U+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(Q,O,X){var z=O.split("="),V=J(z[0]||""),L=J(z[1]||""),S=Q[V];return Q[V]=S===void 0?L:[].concat(S,L),Q},{})},stringify(U){var J=encodeURIComponent;return Object.keys(U||{}).reduce(function(Q,O){return[].concat(U[O]).forEach(function(X){Q.push(J(O)+"="+J(X))}),Q},[]).join("&").replace(/\s/g,"+")}};P4.prototype.parse=function(U,J,Q){if(!Lq(U))throw TypeError("Parameter 'url' must be a string, not "+typeof U);var O=U.indexOf("?"),X=O!==-1&&O<U.indexOf("#")?"?":"#",z=U.split(X),V=/\\/g;z[0]=z[0].replace(V,"/"),U=z.join(X);var L=U;if(L=L.trim(),!Q&&U.split("#").length===1){var S=jm.exec(L);if(S){if(this.path=L,this.href=L,this.pathname=S[1],S[2])if(this.search=S[2],J)this.query=Fq.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(J)this.search="",this.query={};return this}}var E=_m.exec(L);if(E){E=E[0];var _=E.toLowerCase();this.protocol=_,L=L.substr(E.length)}if(Q||E||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var M=L.substr(0,2)==="//";if(M&&!(E&&Wq[E]))L=L.substr(2),this.slashes=!0}if(!Wq[E]&&(M||E&&!fY[E])){var P=-1;for(var v=0;v<R3.length;v++){var N=L.indexOf(R3[v]);if(N!==-1&&(P===-1||N<P))P=N}var f,x;if(P===-1)x=L.lastIndexOf("@");else x=L.lastIndexOf("@",P);if(x!==-1)f=L.slice(0,x),L=L.slice(x+1),this.auth=decodeURIComponent(f);P=-1;for(var v=0;v<C3.length;v++){var N=L.indexOf(C3[v]);if(N!==-1&&(P===-1||N<P))P=N}if(P===-1)P=L.length;this.host=L.slice(0,P),L=L.slice(P),this.parseHost(),this.hostname=this.hostname||"";var b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){var k=this.hostname.split(/\./);for(var v=0,u=k.length;v<u;v++){var p=k[v];if(!p)continue;if(!p.match(P3)){var m="";for(var a=0,Z0=p.length;a<Z0;a++)if(p.charCodeAt(a)>127)m+="x";else m+=p[a];if(!m.match(P3)){var L0=k.slice(0,v),C0=k.slice(v+1),o=p.match(km);if(o)L0.push(o[1]),C0.unshift(o[2]);if(C0.length)L="/"+C0.join(".")+L;this.hostname=L0.join(".");break}}}}if(this.hostname.length>Nm)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!b)this.hostname=new Hq(`https://${this.hostname}`).hostname;var q0=this.port?":"+this.port:"",G=this.hostname||"";if(this.host=G+q0,this.href+=this.host,b){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/")L="/"+L}}if(!gm[_])for(var v=0,u=Dq.length;v<u;v++){var D=Dq[v];if(L.indexOf(D)===-1)continue;var H=encodeURIComponent(D);if(H===D)H=escape(D);L=L.split(D).join(H)}var K=L.indexOf("#");if(K!==-1)this.hash=L.substr(K),L=L.slice(0,K);var F=L.indexOf("?");if(F!==-1){if(this.search=L.substr(F),this.query=L.substr(F+1),J)this.query=Fq.parse(this.query);L=L.slice(0,F)}else if(J)this.search="",this.query={};if(L)this.pathname=L;if(fY[_]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var q0=this.pathname||"",C=this.search||"";this.path=q0+C}return this.href=this.format(),this};P4.prototype.format=function(){var U=this.auth||"";if(U)U=encodeURIComponent(U),U=U.replace(/%3A/i,":"),U+="@";var J=this.protocol||"",Q=this.pathname||"",O=this.hash||"",X=!1,z="";if(this.host)X=U+this.host;else if(this.hostname){if(X=U+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)X+=":"+this.port}if(this.query&&_3(this.query)&&Object.keys(this.query).length)z=Fq.stringify(this.query);var V=this.search||z&&"?"+z||"";if(J&&J.substr(-1)!==":")J+=":";if(this.slashes||(!J||fY[J])&&X!==!1){if(X="//"+(X||""),Q&&Q.charAt(0)!=="/")Q="/"+Q}else if(!X)X="";if(O&&O.charAt(0)!=="#")O="#"+O;if(V&&V.charAt(0)!=="?")V="?"+V;return Q=Q.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),V=V.replace("#","%23"),J+X+Q+V+O};P4.prototype.resolve=function(U){return this.resolveObject(yY(U,!1,!0)).format()};P4.prototype.resolveObject=function(U){if(Lq(U)){var J=new P4;J.parse(U,!1,!0),U=J}var Q=new P4,O=Object.keys(this);for(var X=0;X<O.length;X++){var z=O[X];Q[z]=this[z]}if(Q.hash=U.hash,U.href==="")return Q.href=Q.format(),Q;if(U.slashes&&!U.protocol){var V=Object.keys(U);for(var L=0;L<V.length;L++){var S=V[L];if(S!=="protocol")Q[S]=U[S]}if(fY[Q.protocol]&&Q.hostname&&!Q.pathname)Q.path=Q.pathname="/";return Q.href=Q.format(),Q}if(U.protocol&&U.protocol!==Q.protocol){if(!fY[U.protocol]){var E=Object.keys(U);for(var _=0;_<E.length;_++){var M=E[_];Q[M]=U[M]}return Q.href=Q.format(),Q}if(Q.protocol=U.protocol,!U.host&&!Wq[U.protocol]){var u=(U.pathname||"").split("/");while(u.length&&!(U.host=u.shift()));if(!U.host)U.host="";if(!U.hostname)U.hostname="";if(u[0]!=="")u.unshift("");if(u.length<2)u.unshift("");Q.pathname=u.join("/")}else Q.pathname=U.pathname;if(Q.search=U.search,Q.query=U.query,Q.host=U.host||"",Q.auth=U.auth,Q.hostname=U.hostname||U.host,Q.port=U.port,Q.pathname||Q.search){var P=Q.pathname||"",v=Q.search||"";Q.path=P+v}return Q.slashes=Q.slashes||U.slashes,Q.href=Q.format(),Q}var N=Q.pathname&&Q.pathname.charAt(0)==="/",f=U.host||U.pathname&&U.pathname.charAt(0)==="/",x=f||N||Q.host&&U.pathname,b=x,k=Q.pathname&&Q.pathname.split("/")||[],u=U.pathname&&U.pathname.split("/")||[],p=Q.protocol&&!fY[Q.protocol];if(p){if(Q.hostname="",Q.port=null,Q.host)if(k[0]==="")k[0]=Q.host;else k.unshift(Q.host);if(Q.host="",U.protocol){if(U.hostname=null,U.port=null,U.host)if(u[0]==="")u[0]=U.host;else u.unshift(U.host);U.host=null}x=x&&(u[0]===""||k[0]==="")}if(f)Q.host=U.host||U.host===""?U.host:Q.host,Q.hostname=U.hostname||U.hostname===""?U.hostname:Q.hostname,Q.search=U.search,Q.query=U.query,k=u;else if(u.length){if(!k)k=[];k.pop(),k=k.concat(u),Q.search=U.search,Q.query=U.query}else if(!Em(U.search)){if(p){Q.hostname=Q.host=k.shift();var m=Q.host&&Q.host.indexOf("@")>0?Q.host.split("@"):!1;if(m)Q.auth=m.shift(),Q.host=Q.hostname=m.shift()}if(Q.search=U.search,Q.query=U.query,!QD(Q.pathname)||!QD(Q.search))Q.path=(Q.pathname?Q.pathname:"")+(Q.search?Q.search:"");return Q.href=Q.format(),Q}if(!k.length){if(Q.pathname=null,Q.search)Q.path="/"+Q.search;else Q.path=null;return Q.href=Q.format(),Q}var a=k.slice(-1)[0],Z0=(Q.host||U.host||k.length>1)&&(a==="."||a==="..")||a==="",L0=0;for(var C0=k.length;C0>=0;C0--)if(a=k[C0],a===".")k.splice(C0,1);else if(a==="..")k.splice(C0,1),L0++;else if(L0)k.splice(C0,1),L0--;if(!x&&!b)for(;L0--;L0)k.unshift("..");if(x&&k[0]!==""&&(!k[0]||k[0].charAt(0)!=="/"))k.unshift("");if(Z0&&k.join("/").substr(-1)!=="/")k.push("");var o=k[0]===""||k[0]&&k[0].charAt(0)==="/";if(p){Q.hostname=Q.host=o?"":k.length?k.shift():"";var m=Q.host&&Q.host.indexOf("@")>0?Q.host.split("@"):!1;if(m)Q.auth=m.shift(),Q.host=Q.hostname=m.shift()}if(x=x||Q.host&&k.length,x&&!o)k.unshift("");if(!k.length)Q.pathname=null,Q.path=null;else Q.pathname=k.join("/");if(!QD(Q.pathname)||!QD(Q.search))Q.path=(Q.pathname?Q.pathname:"")+(Q.search?Q.search:"");return Q.auth=U.auth||Q.auth,Q.slashes=Q.slashes||U.slashes,Q.href=Q.format(),Q};P4.prototype.parseHost=function(){var U=this.host,J=Sm.exec(U);if(J){if(J=J[0],J!==":")this.port=J.substr(1);U=U.substr(0,U.length-J.length)}if(U)this.hostname=U};xm={parse:yY,resolve:j3,resolveObject:v3,format:S3,Url:P4,URL:Hq,URLSearchParams:E3}});var m3={};y6(m3,{request:()=>sm,globalAgent:()=>Xd,get:()=>em,default:()=>l3,STATUS_CODES:()=>Jd,METHODS:()=>Qd,IncomingMessage:()=>Ud,ClientRequest:()=>$d,Agent:()=>Id});var wm,fm,k3,ym,um,bm=(U,J,Q)=>{Q=U!=null?wm(fm(U)):{};let O=J||!U||!U.__esModule?k3(Q,"default",{value:U,enumerable:!0}):Q;for(let X of ym(U))if(!um.call(O,X))k3(O,X,{get:()=>U[X],enumerable:!0});return O},kU=(U,J)=>()=>(J||U((J={exports:{}}).exports,J),J.exports),x3,hm,xJ,cm,w3,wJ,f3,pm,y3,uY,lm,g3,Mq,mm,dm,u3,b3,nm,om,h3,c3,im,rm,tm,am,p3,sm,em,$d,Ud,Id,Xd,Jd,Qd,l3;var Aq=wQ(()=>{wm=Object.create,{getPrototypeOf:fm,defineProperty:k3,getOwnPropertyNames:ym}=Object,um=Object.prototype.hasOwnProperty,x3=kU((U)=>{U.fetch=X(globalThis.fetch)&&X(globalThis.ReadableStream),U.writableStream=X(globalThis.WritableStream),U.abortController=X(globalThis.AbortController);var J;function Q(){if(J!==void 0)return J;if(globalThis.XMLHttpRequest){J=new globalThis.XMLHttpRequest;try{J.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(z){J=null}}else J=null;return J}function O(z){var V=Q();if(!V)return!1;try{return V.responseType=z,V.responseType===z}catch(L){}return!1}U.arraybuffer=U.fetch||O("arraybuffer"),U.msstream=!U.fetch&&O("ms-stream"),U.mozchunkedarraybuffer=!U.fetch&&O("moz-chunked-arraybuffer"),U.overrideMimeType=U.fetch||(Q()?X(Q().overrideMimeType):!1);function X(z){return typeof z==="function"}J=null}),hm=kU((U,J)=>{if(typeof Object.create==="function")J.exports=function(Q,O){if(O)Q.super_=O,Q.prototype=Object.create(O.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})};else J.exports=function(Q,O){if(O){Q.super_=O;var X=function(){};X.prototype=O.prototype,Q.prototype=new X,Q.prototype.constructor=Q}}}),xJ=kU((U,J)=>{try{if(Q=(cQ(),v$(hQ)),typeof Q.inherits!=="function")throw"";J.exports=Q.inherits}catch(O){J.exports=hm()}var Q}),cm=kU((U,J)=>{function Q(x,b){var k=Object.keys(x);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(x);b&&(u=u.filter(function(p){return Object.getOwnPropertyDescriptor(x,p).enumerable})),k.push.apply(k,u)}return k}function O(x){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?Q(Object(k),!0).forEach(function(u){X(x,u,k[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):Q(Object(k)).forEach(function(u){Object.defineProperty(x,u,Object.getOwnPropertyDescriptor(k,u))})}return x}function X(x,b,k){if(b=S(b),b in x)Object.defineProperty(x,b,{value:k,enumerable:!0,configurable:!0,writable:!0});else x[b]=k;return x}function z(x,b){if(!(x instanceof b))throw TypeError("Cannot call a class as a function")}function V(x,b){for(var k=0;k<b.length;k++){var u=b[k];if(u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u)u.writable=!0;Object.defineProperty(x,S(u.key),u)}}function L(x,b,k){if(b)V(x.prototype,b);if(k)V(x,k);return Object.defineProperty(x,"prototype",{writable:!1}),x}function S(x){var b=E(x,"string");return typeof b==="symbol"?b:String(b)}function E(x,b){if(typeof x!=="object"||x===null)return x;var k=x[Symbol.toPrimitive];if(k!==void 0){var u=k.call(x,b||"default");if(typeof u!=="object")return u;throw TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(x)}var _=(tU(),v$(rU)),M=_.Buffer,P=(cQ(),v$(hQ)),v=P.inspect,N=v&&v.custom||"inspect";function f(x,b,k){M.prototype.copy.call(x,b,k)}J.exports=function(){function x(){z(this,x),this.head=null,this.tail=null,this.length=0}return L(x,[{key:"push",value:function(b){var k={data:b,next:null};if(this.length>0)this.tail.next=k;else this.head=k;this.tail=k,++this.length}},{key:"unshift",value:function(b){var k={data:b,next:this.head};if(this.length===0)this.tail=k;this.head=k,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var b=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,b}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";var k=this.head,u=""+k.data;while(k=k.next)u+=b+k.data;return u}},{key:"concat",value:function(b){if(this.length===0)return M.alloc(0);var k=M.allocUnsafe(b>>>0),u=this.head,p=0;while(u)f(u.data,k,p),p+=u.data.length,u=u.next;return k}},{key:"consume",value:function(b,k){var u;if(b<this.head.data.length)u=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b);else if(b===this.head.data.length)u=this.shift();else u=k?this._getString(b):this._getBuffer(b);return u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var k=this.head,u=1,p=k.data;b-=p.length;while(k=k.next){var m=k.data,a=b>m.length?m.length:b;if(a===m.length)p+=m;else p+=m.slice(0,b);if(b-=a,b===0){if(a===m.length)if(++u,k.next)this.head=k.next;else this.head=this.tail=null;else this.head=k,k.data=m.slice(a);break}++u}return this.length-=u,p}},{key:"_getBuffer",value:function(b){var k=M.allocUnsafe(b),u=this.head,p=1;u.data.copy(k),b-=u.data.length;while(u=u.next){var m=u.data,a=b>m.length?m.length:b;if(m.copy(k,k.length-b,0,a),b-=a,b===0){if(a===m.length)if(++p,u.next)this.head=u.next;else this.head=this.tail=null;else this.head=u,u.data=m.slice(a);break}++p}return this.length-=p,k}},{key:N,value:function(b,k){return v(this,O(O({},k),{},{depth:0,customInspect:!1}))}}]),x}()}),w3=kU((U,J)=>{function Q(S,E){var _=this,M=this._readableState&&this._readableState.destroyed,P=this._writableState&&this._writableState.destroyed;if(M||P){if(E)E(S);else if(S){if(!this._writableState)process.nextTick(V,this,S);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(V,this,S)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(S||null,function(v){if(!E&&v)if(!_._writableState)process.nextTick(O,_,v);else if(!_._writableState.errorEmitted)_._writableState.errorEmitted=!0,process.nextTick(O,_,v);else process.nextTick(X,_);else if(E)process.nextTick(X,_),E(v);else process.nextTick(X,_)}),this}function O(S,E){V(S,E),X(S)}function X(S){if(S._writableState&&!S._writableState.emitClose)return;if(S._readableState&&!S._readableState.emitClose)return;S.emit("close")}function z(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(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}function V(S,E){S.emit("error",E)}function L(S,E){var{_readableState:_,_writableState:M}=S;if(_&&_.autoDestroy||M&&M.autoDestroy)S.destroy(E);else S.emit("error",E)}J.exports={destroy:Q,undestroy:z,errorOrDestroy:L}}),wJ=kU((U,J)=>{var Q={};function O(S,E,_){if(!_)_=Error;function M(v,N,f){if(typeof E==="string")return E;else return E(v,N,f)}class P extends _{constructor(v,N,f){super(M(v,N,f))}}P.prototype.name=_.name,P.prototype.code=S,Q[S]=P}function X(S,E){if(Array.isArray(S)){let _=S.length;if(S=S.map((M)=>String(M)),_>2)return`one of ${E} ${S.slice(0,_-1).join(", ")}, or `+S[_-1];else if(_===2)return`one of ${E} ${S[0]} or ${S[1]}`;else return`of ${E} ${S[0]}`}else return`of ${E} ${String(S)}`}function z(S,E,_){return S.substr(!_||_<0?0:+_,E.length)===E}function V(S,E,_){if(_===void 0||_>S.length)_=S.length;return S.substring(_-E.length,_)===E}function L(S,E,_){if(typeof _!=="number")_=0;if(_+E.length>S.length)return!1;else return S.indexOf(E,_)!==-1}O("ERR_INVALID_OPT_VALUE",function(S,E){return'The value "'+E+'" is invalid for option "'+S+'"'},TypeError),O("ERR_INVALID_ARG_TYPE",function(S,E,_){let M;if(typeof E==="string"&&z(E,"not "))M="must not be",E=E.replace(/^not /,"");else M="must be";let P;if(V(S," argument"))P=`The ${S} ${M} ${X(E,"type")}`;else{let v=L(S,".")?"property":"argument";P=`The "${S}" ${v} ${M} ${X(E,"type")}`}return P+=`. Received type ${typeof _}`,P},TypeError),O("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),O("ERR_METHOD_NOT_IMPLEMENTED",function(S){return"The "+S+" method is not implemented"}),O("ERR_STREAM_PREMATURE_CLOSE","Premature close"),O("ERR_STREAM_DESTROYED",function(S){return"Cannot call "+S+" after a stream was destroyed"}),O("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),O("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),O("ERR_STREAM_WRITE_AFTER_END","write after end"),O("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),O("ERR_UNKNOWN_ENCODING",function(S){return"Unknown encoding: "+S},TypeError),O("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),U.codes=Q}),f3=kU((U,J)=>{var Q=wJ().codes.ERR_INVALID_OPT_VALUE;function O(z,V,L){return z.highWaterMark!=null?z.highWaterMark:V?z[L]:null}function X(z,V,L,S){var E=O(V,S,L);if(E!=null){if(!(isFinite(E)&&Math.floor(E)===E)||E<0){var _=S?L:"highWaterMark";throw new Q(_,E)}return Math.floor(E)}return z.objectMode?16:16384}J.exports={getHighWaterMark:X}}),pm=kU((U,J)=>{J.exports=(cQ(),v$(hQ)).deprecate}),y3=kU((U,J)=>{J.exports=o;function Q(Q0){var s=this;this.next=null,this.entry=null,this.finish=function(){z0(s,Q0)}}var O;o.WritableState=L0;var X={deprecate:pm()},z=nQ(),V=(tU(),v$(rU)).Buffer,L=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function S(Q0){return V.from(Q0)}function E(Q0){return V.isBuffer(Q0)||Q0 instanceof L}var _=w3(),M=f3(),P=M.getHighWaterMark,v=wJ().codes,N=v.ERR_INVALID_ARG_TYPE,f=v.ERR_METHOD_NOT_IMPLEMENTED,x=v.ERR_MULTIPLE_CALLBACK,b=v.ERR_STREAM_CANNOT_PIPE,k=v.ERR_STREAM_DESTROYED,u=v.ERR_STREAM_NULL_VALUES,p=v.ERR_STREAM_WRITE_AFTER_END,m=v.ERR_UNKNOWN_ENCODING,a=_.errorOrDestroy;xJ()(o,z);function Z0(){}function L0(Q0,s,e){if(O=O||uY(),Q0=Q0||{},typeof e!=="boolean")e=s instanceof O;if(this.objectMode=!!Q0.objectMode,e)this.objectMode=this.objectMode||!!Q0.writableObjectMode;this.highWaterMark=P(this,Q0,"writableHighWaterMark",e),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var J0=Q0.decodeStrings===!1;this.decodeStrings=!J0,this.defaultEncoding=Q0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(V0){j(s,V0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q0.emitClose!==!1,this.autoDestroy=!!Q0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Q(this)}L0.prototype.getBuffer=function(){var Q0=this.bufferedRequest,s=[];while(Q0)s.push(Q0),Q0=Q0.next;return s},function(){try{Object.defineProperty(L0.prototype,"buffer",{get:X.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q0){}}();var C0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")C0=Function.prototype[Symbol.hasInstance],Object.defineProperty(o,Symbol.hasInstance,{value:function(Q0){if(C0.call(this,Q0))return!0;if(this!==o)return!1;return Q0&&Q0._writableState instanceof L0}});else C0=function(Q0){return Q0 instanceof this};function o(Q0){O=O||uY();var s=this instanceof O;if(!s&&!C0.call(o,this))return new o(Q0);if(this._writableState=new L0(Q0,this,s),this.writable=!0,Q0){if(typeof Q0.write==="function")this._write=Q0.write;if(typeof Q0.writev==="function")this._writev=Q0.writev;if(typeof Q0.destroy==="function")this._destroy=Q0.destroy;if(typeof Q0.final==="function")this._final=Q0.final}z.call(this)}o.prototype.pipe=function(){a(this,new b)};function q0(Q0,s){var e=new p;a(Q0,e),process.nextTick(s,e)}function G(Q0,s,e,J0){var V0;if(e===null)V0=new u;else if(typeof e!=="string"&&!s.objectMode)V0=new N("chunk",["string","Buffer"],e);if(V0)return a(Q0,V0),process.nextTick(J0,V0),!1;return!0}o.prototype.write=function(Q0,s,e){var J0=this._writableState,V0=!1,A0=!J0.objectMode&&E(Q0);if(A0&&!V.isBuffer(Q0))Q0=S(Q0);if(typeof s==="function")e=s,s=null;if(A0)s="buffer";else if(!s)s=J0.defaultEncoding;if(typeof e!=="function")e=Z0;if(J0.ending)q0(this,e);else if(A0||G(this,J0,Q0,e))J0.pendingcb++,V0=H(this,J0,A0,Q0,s,e);return V0},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var Q0=this._writableState;if(Q0.corked){if(Q0.corked--,!Q0.writing&&!Q0.corked&&!Q0.bufferProcessing&&Q0.bufferedRequest)T(this,Q0)}},o.prototype.setDefaultEncoding=function(Q0){if(typeof Q0==="string")Q0=Q0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q0+"").toLowerCase())>-1))throw new m(Q0);return this._writableState.defaultEncoding=Q0,this},Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(Q0,s,e){if(!Q0.objectMode&&Q0.decodeStrings!==!1&&typeof s==="string")s=V.from(s,e);return s}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(Q0,s,e,J0,V0,A0){if(!e){var $0=D(s,J0,V0);if(J0!==$0)e=!0,V0="buffer",J0=$0}var c=s.objectMode?1:J0.length;s.length+=c;var n=s.length<s.highWaterMark;if(!n)s.needDrain=!0;if(s.writing||s.corked){var H0=s.lastBufferedRequest;if(s.lastBufferedRequest={chunk:J0,encoding:V0,isBuf:e,callback:A0,next:null},H0)H0.next=s.lastBufferedRequest;else s.bufferedRequest=s.lastBufferedRequest;s.bufferedRequestCount+=1}else K(Q0,s,!1,c,J0,V0,A0);return n}function K(Q0,s,e,J0,V0,A0,$0){if(s.writelen=J0,s.writecb=$0,s.writing=!0,s.sync=!0,s.destroyed)s.onwrite(new k("write"));else if(e)Q0._writev(V0,s.onwrite);else Q0._write(V0,A0,s.onwrite);s.sync=!1}function F(Q0,s,e,J0,V0){if(--s.pendingcb,e)process.nextTick(V0,J0),process.nextTick(t,Q0,s),Q0._writableState.errorEmitted=!0,a(Q0,J0);else V0(J0),Q0._writableState.errorEmitted=!0,a(Q0,J0),t(Q0,s)}function C(Q0){Q0.writing=!1,Q0.writecb=null,Q0.length-=Q0.writelen,Q0.writelen=0}function j(Q0,s){var e=Q0._writableState,J0=e.sync,V0=e.writecb;if(typeof V0!=="function")throw new x;if(C(e),s)F(Q0,e,J0,s,V0);else{var A0=w(e)||Q0.destroyed;if(!A0&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)T(Q0,e);if(J0)process.nextTick(q,Q0,e,A0,V0);else q(Q0,e,A0,V0)}}function q(Q0,s,e,J0){if(!e)Z(Q0,s);s.pendingcb--,J0(),t(Q0,s)}function Z(Q0,s){if(s.length===0&&s.needDrain)s.needDrain=!1,Q0.emit("drain")}function T(Q0,s){s.bufferProcessing=!0;var e=s.bufferedRequest;if(Q0._writev&&e&&e.next){var J0=s.bufferedRequestCount,V0=Array(J0),A0=s.corkedRequestsFree;A0.entry=e;var $0=0,c=!0;while(e){if(V0[$0]=e,!e.isBuf)c=!1;e=e.next,$0+=1}if(V0.allBuffers=c,K(Q0,s,!0,s.length,V0,"",A0.finish),s.pendingcb++,s.lastBufferedRequest=null,A0.next)s.corkedRequestsFree=A0.next,A0.next=null;else s.corkedRequestsFree=new Q(s);s.bufferedRequestCount=0}else{while(e){var{chunk:n,encoding:H0,callback:Y0}=e,D0=s.objectMode?1:n.length;if(K(Q0,s,!1,D0,n,H0,Y0),e=e.next,s.bufferedRequestCount--,s.writing)break}if(e===null)s.lastBufferedRequest=null}s.bufferedRequest=e,s.bufferProcessing=!1}o.prototype._write=function(Q0,s,e){e(new f("_write()"))},o.prototype._writev=null,o.prototype.end=function(Q0,s,e){var J0=this._writableState;if(typeof Q0==="function")e=Q0,Q0=null,s=null;else if(typeof s==="function")e=s,s=null;if(Q0!==null&&Q0!==void 0)this.write(Q0,s);if(J0.corked)J0.corked=1,this.uncork();if(!J0.ending)U0(this,J0,e);return this},Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function w(Q0){return Q0.ending&&Q0.length===0&&Q0.bufferedRequest===null&&!Q0.finished&&!Q0.writing}function B(Q0,s){Q0._final(function(e){if(s.pendingcb--,e)a(Q0,e);s.prefinished=!0,Q0.emit("prefinish"),t(Q0,s)})}function h(Q0,s){if(!s.prefinished&&!s.finalCalled)if(typeof Q0._final==="function"&&!s.destroyed)s.pendingcb++,s.finalCalled=!0,process.nextTick(B,Q0,s);else s.prefinished=!0,Q0.emit("prefinish")}function t(Q0,s){var e=w(s);if(e){if(h(Q0,s),s.pendingcb===0){if(s.finished=!0,Q0.emit("finish"),s.autoDestroy){var J0=Q0._readableState;if(!J0||J0.autoDestroy&&J0.endEmitted)Q0.destroy()}}}return e}function U0(Q0,s,e){if(s.ending=!0,t(Q0,s),e)if(s.finished)process.nextTick(e);else Q0.once("finish",e);s.ended=!0,Q0.writable=!1}function z0(Q0,s,e){var J0=Q0.entry;Q0.entry=null;while(J0){var V0=J0.callback;s.pendingcb--,V0(e),J0=J0.next}s.corkedRequestsFree.next=Q0}Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(Q0){if(!this._writableState)return;this._writableState.destroyed=Q0}}),o.prototype.destroy=_.destroy,o.prototype._undestroy=_.undestroy,o.prototype._destroy=function(Q0,s){s(Q0)}}),uY=kU((U,J)=>{var Q=Object.keys||function(M){var P=[];for(var v in M)P.push(v);return P};J.exports=S;var O=u3(),X=y3();xJ()(S,O);{z=Q(X.prototype);for(L=0;L<z.length;L++)if(V=z[L],!S.prototype[V])S.prototype[V]=X.prototype[V]}var z,V,L;function S(M){if(!(this instanceof S))return new S(M);if(O.call(this,M),X.call(this,M),this.allowHalfOpen=!0,M){if(M.readable===!1)this.readable=!1;if(M.writable===!1)this.writable=!1;if(M.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",E)}}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function E(){if(this._writableState.ended)return;process.nextTick(_,this)}function _(M){M.end()}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(M){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=M,this._writableState.destroyed=M}})}),lm=kU((U,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Q=(tU(),v$(rU)),O=Q.Buffer;function X(V,L){for(var S in V)L[S]=V[S]}if(O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow)J.exports=Q;else X(Q,U),U.Buffer=z;function z(V,L,S){return O(V,L,S)}z.prototype=Object.create(O.prototype),X(O,z),z.from=function(V,L,S){if(typeof V==="number")throw TypeError("Argument must not be a number");return O(V,L,S)},z.alloc=function(V,L,S){if(typeof V!=="number")throw TypeError("Argument must be a number");var E=O(V);if(L!==void 0)if(typeof S==="string")E.fill(L,S);else E.fill(L);else E.fill(0);return E},z.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return O(V)},z.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return Q.SlowBuffer(V)}}),g3=kU((U)=>{var J=lm().Buffer,Q=J.isEncoding||function(k){switch(k=""+k,k&&k.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(k){if(!k)return"utf8";var u;while(!0)switch(k){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 k;default:if(u)return;k=(""+k).toLowerCase(),u=!0}}function X(k){var u=O(k);if(typeof u!=="string"&&(J.isEncoding===Q||!Q(k)))throw Error("Unknown encoding: "+k);return u||k}U.StringDecoder=z;function z(k){this.encoding=X(k);var u;switch(this.encoding){case"utf16le":this.text=P,this.end=v,u=4;break;case"utf8":this.fillLast=E,u=4;break;case"base64":this.text=N,this.end=f,u=3;break;default:this.write=x,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(u)}z.prototype.write=function(k){if(k.length===0)return"";var u,p;if(this.lastNeed){if(u=this.fillLast(k),u===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;if(p<k.length)return u?u+this.text(k,p):this.text(k,p);return u||""},z.prototype.end=M,z.prototype.text=_,z.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function V(k){if(k<=127)return 0;else if(k>>5===6)return 2;else if(k>>4===14)return 3;else if(k>>3===30)return 4;return k>>6===2?-1:-2}function L(k,u,p){var m=u.length-1;if(m<p)return 0;var a=V(u[m]);if(a>=0){if(a>0)k.lastNeed=a-1;return a}if(--m<p||a===-2)return 0;if(a=V(u[m]),a>=0){if(a>0)k.lastNeed=a-2;return a}if(--m<p||a===-2)return 0;if(a=V(u[m]),a>=0){if(a>0)if(a===2)a=0;else k.lastNeed=a-3;return a}return 0}function S(k,u,p){if((u[0]&192)!==128)return k.lastNeed=0,"�";if(k.lastNeed>1&&u.length>1){if((u[1]&192)!==128)return k.lastNeed=1,"�";if(k.lastNeed>2&&u.length>2){if((u[2]&192)!==128)return k.lastNeed=2,"�"}}}function E(k){var u=this.lastTotal-this.lastNeed,p=S(this,k,u);if(p!==void 0)return p;if(this.lastNeed<=k.length)return k.copy(this.lastChar,u,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,u,0,k.length),this.lastNeed-=k.length}function _(k,u){var p=L(this,k,u);if(!this.lastNeed)return k.toString("utf8",u);this.lastTotal=p;var m=k.length-(p-this.lastNeed);return k.copy(this.lastChar,0,m),k.toString("utf8",u,m)}function M(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed)return u+"�";return u}function P(k,u){if((k.length-u)%2===0){var p=k.toString("utf16le",u);if(p){var m=p.charCodeAt(p.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",u,k.length-1)}function v(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return u+this.lastChar.toString("utf16le",0,p)}return u}function N(k,u){var p=(k.length-u)%3;if(p===0)return k.toString("base64",u);if(this.lastNeed=3-p,this.lastTotal=3,p===1)this.lastChar[0]=k[k.length-1];else this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1];return k.toString("base64",u,k.length-p)}function f(k){var u=k&&k.length?this.write(k):"";if(this.lastNeed)return u+this.lastChar.toString("base64",0,3-this.lastNeed);return u}function x(k){return k.toString(this.encoding)}function b(k){return k&&k.length?this.write(k):""}}),Mq=kU((U,J)=>{var Q=wJ().codes.ERR_STREAM_PREMATURE_CLOSE;function O(L){var S=!1;return function(){if(S)return;S=!0;for(var E=arguments.length,_=Array(E),M=0;M<E;M++)_[M]=arguments[M];L.apply(this,_)}}function X(){}function z(L){return L.setHeader&&typeof L.abort==="function"}function V(L,S,E){if(typeof S==="function")return V(L,null,S);if(!S)S={};E=O(E||X);var _=S.readable||S.readable!==!1&&L.readable,M=S.writable||S.writable!==!1&&L.writable,P=function(){if(!L.writable)N()},v=L._writableState&&L._writableState.finished,N=function(){if(M=!1,v=!0,!_)E.call(L)},f=L._readableState&&L._readableState.endEmitted,x=function(){if(_=!1,f=!0,!M)E.call(L)},b=function(p){E.call(L,p)},k=function(){var p;if(_&&!f){if(!L._readableState||!L._readableState.ended)p=new Q;return E.call(L,p)}if(M&&!v){if(!L._writableState||!L._writableState.ended)p=new Q;return E.call(L,p)}},u=function(){L.req.on("finish",N)};if(z(L))if(L.on("complete",N),L.on("abort",k),L.req)u();else L.on("request",u);else if(M&&!L._writableState)L.on("end",P),L.on("close",P);if(L.on("end",x),L.on("finish",N),S.error!==!1)L.on("error",b);return L.on("close",k),function(){if(L.removeListener("complete",N),L.removeListener("abort",k),L.removeListener("request",u),L.req)L.req.removeListener("finish",N);L.removeListener("end",P),L.removeListener("close",P),L.removeListener("finish",N),L.removeListener("end",x),L.removeListener("error",b),L.removeListener("close",k)}}J.exports=V}),mm=kU((U,J)=>{var Q;function O(m,a,Z0){if(a=X(a),a in m)Object.defineProperty(m,a,{value:Z0,enumerable:!0,configurable:!0,writable:!0});else m[a]=Z0;return m}function X(m){var a=z(m,"string");return typeof a==="symbol"?a:String(a)}function z(m,a){if(typeof m!=="object"||m===null)return m;var Z0=m[Symbol.toPrimitive];if(Z0!==void 0){var L0=Z0.call(m,a||"default");if(typeof L0!=="object")return L0;throw TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(m)}var V=Mq(),L=Symbol("lastResolve"),S=Symbol("lastReject"),E=Symbol("error"),_=Symbol("ended"),M=Symbol("lastPromise"),P=Symbol("handlePromise"),v=Symbol("stream");function N(m,a){return{value:m,done:a}}function f(m){var a=m[L];if(a!==null){var Z0=m[v].read();if(Z0!==null)m[M]=null,m[L]=null,m[S]=null,a(N(Z0,!1))}}function x(m){process.nextTick(f,m)}function b(m,a){return function(Z0,L0){m.then(function(){if(a[_]){Z0(N(void 0,!0));return}a[P](Z0,L0)},L0)}}var k=Object.getPrototypeOf(function(){}),u=Object.setPrototypeOf((Q={get stream(){return this[v]},next:function(){var m=this,a=this[E];if(a!==null)return Promise.reject(a);if(this[_])return Promise.resolve(N(void 0,!0));if(this[v].destroyed)return new Promise(function(o,q0){process.nextTick(function(){if(m[E])q0(m[E]);else o(N(void 0,!0))})});var Z0=this[M],L0;if(Z0)L0=new Promise(b(Z0,this));else{var C0=this[v].read();if(C0!==null)return Promise.resolve(N(C0,!1));L0=new Promise(this[P])}return this[M]=L0,L0}},O(Q,Symbol.asyncIterator,function(){return this}),O(Q,"return",function(){var m=this;return new Promise(function(a,Z0){m[v].destroy(null,function(L0){if(L0){Z0(L0);return}a(N(void 0,!0))})})}),Q),k),p=function(m){var a,Z0=Object.create(u,(a={},O(a,v,{value:m,writable:!0}),O(a,L,{value:null,writable:!0}),O(a,S,{value:null,writable:!0}),O(a,E,{value:null,writable:!0}),O(a,_,{value:m._readableState.endEmitted,writable:!0}),O(a,P,{value:function(L0,C0){var o=Z0[v].read();if(o)Z0[M]=null,Z0[L]=null,Z0[S]=null,L0(N(o,!1));else Z0[L]=L0,Z0[S]=C0},writable:!0}),a));return Z0[M]=null,V(m,function(L0){if(L0&&L0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C0=Z0[S];if(C0!==null)Z0[M]=null,Z0[L]=null,Z0[S]=null,C0(L0);Z0[E]=L0;return}var o=Z0[L];if(o!==null)Z0[M]=null,Z0[L]=null,Z0[S]=null,o(N(void 0,!0));Z0[_]=!0}),m.on("readable",x.bind(null,Z0)),Z0};J.exports=p}),dm=kU((U,J)=>{function Q(M,P,v,N,f,x,b){try{var k=M[x](b),u=k.value}catch(p){v(p);return}if(k.done)P(u);else Promise.resolve(u).then(N,f)}function O(M){return function(){var P=this,v=arguments;return new Promise(function(N,f){var x=M.apply(P,v);function b(u){Q(x,N,f,b,k,"next",u)}function k(u){Q(x,N,f,b,k,"throw",u)}b(void 0)})}}function X(M,P){var v=Object.keys(M);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(M);P&&(N=N.filter(function(f){return Object.getOwnPropertyDescriptor(M,f).enumerable})),v.push.apply(v,N)}return v}function z(M){for(var P=1;P<arguments.length;P++){var v=arguments[P]!=null?arguments[P]:{};P%2?X(Object(v),!0).forEach(function(N){V(M,N,v[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(v)):X(Object(v)).forEach(function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(v,N))})}return M}function V(M,P,v){if(P=L(P),P in M)Object.defineProperty(M,P,{value:v,enumerable:!0,configurable:!0,writable:!0});else M[P]=v;return M}function L(M){var P=S(M,"string");return typeof P==="symbol"?P:String(P)}function S(M,P){if(typeof M!=="object"||M===null)return M;var v=M[Symbol.toPrimitive];if(v!==void 0){var N=v.call(M,P||"default");if(typeof N!=="object")return N;throw TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(M)}var E=wJ().codes.ERR_INVALID_ARG_TYPE;function _(M,P,v){var N;if(P&&typeof P.next==="function")N=P;else if(P&&P[Symbol.asyncIterator])N=P[Symbol.asyncIterator]();else if(P&&P[Symbol.iterator])N=P[Symbol.iterator]();else throw new E("iterable",["Iterable"],P);var f=new M(z({objectMode:!0},v)),x=!1;f._read=function(){if(!x)x=!0,b()};function b(){return k.apply(this,arguments)}function k(){return k=O(function*(){try{var u=yield N.next(),p=u.value,m=u.done;if(m)f.push(null);else if(f.push(yield p))b();else x=!1}catch(a){f.destroy(a)}}),k.apply(this,arguments)}return f}J.exports=_}),u3=kU((U,J)=>{J.exports=G;var Q;G.ReadableState=q0;var O=(mQ(),v$(lQ)).EventEmitter,X=function($0,c){return $0.listeners(c).length},z=nQ(),V=(tU(),v$(rU)).Buffer,L=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function S($0){return V.from($0)}function E($0){return V.isBuffer($0)||$0 instanceof L}var _=(cQ(),v$(hQ)),M;if(_&&_.debuglog)M=_.debuglog("stream");else M=function(){};var P=cm(),v=w3(),N=f3(),f=N.getHighWaterMark,x=wJ().codes,b=x.ERR_INVALID_ARG_TYPE,k=x.ERR_STREAM_PUSH_AFTER_EOF,u=x.ERR_METHOD_NOT_IMPLEMENTED,p=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,a,Z0;xJ()(G,z);var L0=v.errorOrDestroy,C0=["error","close","destroy","pause","resume"];function o($0,c,n){if(typeof $0.prependListener==="function")return $0.prependListener(c,n);if(!$0._events||!$0._events[c])$0.on(c,n);else if(Array.isArray($0._events[c]))$0._events[c].unshift(n);else $0._events[c]=[n,$0._events[c]]}function q0($0,c,n){if(Q=Q||uY(),$0=$0||{},typeof n!=="boolean")n=c instanceof Q;if(this.objectMode=!!$0.objectMode,n)this.objectMode=this.objectMode||!!$0.readableObjectMode;if(this.highWaterMark=f(this,$0,"readableHighWaterMark",n),this.buffer=new P,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=$0.emitClose!==!1,this.autoDestroy=!!$0.autoDestroy,this.destroyed=!1,this.defaultEncoding=$0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$0.encoding){if(!m)m=g3().StringDecoder;this.decoder=new m($0.encoding),this.encoding=$0.encoding}}function G($0){if(Q=Q||uY(),!(this instanceof G))return new G($0);var c=this instanceof Q;if(this._readableState=new q0($0,this,c),this.readable=!0,$0){if(typeof $0.read==="function")this._read=$0.read;if(typeof $0.destroy==="function")this._destroy=$0.destroy}z.call(this)}Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($0){if(!this._readableState)return;this._readableState.destroyed=$0}}),G.prototype.destroy=v.destroy,G.prototype._undestroy=v.undestroy,G.prototype._destroy=function($0,c){c($0)},G.prototype.push=function($0,c){var n=this._readableState,H0;if(!n.objectMode){if(typeof $0==="string"){if(c=c||n.defaultEncoding,c!==n.encoding)$0=V.from($0,c),c="";H0=!0}}else H0=!0;return D(this,$0,c,!1,H0)},G.prototype.unshift=function($0){return D(this,$0,null,!0,!1)};function D($0,c,n,H0,Y0){M("readableAddChunk",c);var D0=$0._readableState;if(c===null)D0.reading=!1,q($0,D0);else{var N0;if(!Y0)N0=K(D0,c);if(N0)L0($0,N0);else if(D0.objectMode||c&&c.length>0){if(typeof c!=="string"&&!D0.objectMode&&Object.getPrototypeOf(c)!==V.prototype)c=S(c);if(H0)if(D0.endEmitted)L0($0,new p);else H($0,D0,c,!0);else if(D0.ended)L0($0,new k);else if(D0.destroyed)return!1;else if(D0.reading=!1,D0.decoder&&!n)if(c=D0.decoder.write(c),D0.objectMode||c.length!==0)H($0,D0,c,!1);else w($0,D0);else H($0,D0,c,!1)}else if(!H0)D0.reading=!1,w($0,D0)}return!D0.ended&&(D0.length<D0.highWaterMark||D0.length===0)}function H($0,c,n,H0){if(c.flowing&&c.length===0&&!c.sync)c.awaitDrain=0,$0.emit("data",n);else{if(c.length+=c.objectMode?1:n.length,H0)c.buffer.unshift(n);else c.buffer.push(n);if(c.needReadable)Z($0)}w($0,c)}function K($0,c){var n;if(!E(c)&&typeof c!=="string"&&c!==void 0&&!$0.objectMode)n=new b("chunk",["string","Buffer","Uint8Array"],c);return n}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function($0){if(!m)m=g3().StringDecoder;var c=new m($0);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,H0="";while(n!==null)H0+=c.write(n.data),n=n.next;if(this._readableState.buffer.clear(),H0!=="")this._readableState.buffer.push(H0);return this._readableState.length=H0.length,this};var F=1073741824;function C($0){if($0>=F)$0=F;else $0--,$0|=$0>>>1,$0|=$0>>>2,$0|=$0>>>4,$0|=$0>>>8,$0|=$0>>>16,$0++;return $0}function j($0,c){if($0<=0||c.length===0&&c.ended)return 0;if(c.objectMode)return 1;if($0!==$0)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;if($0>c.highWaterMark)c.highWaterMark=C($0);if($0<=c.length)return $0;if(!c.ended)return c.needReadable=!0,0;return c.length}G.prototype.read=function($0){M("read",$0),$0=parseInt($0,10);var c=this._readableState,n=$0;if($0!==0)c.emittedReadable=!1;if($0===0&&c.needReadable&&((c.highWaterMark!==0?c.length>=c.highWaterMark:c.length>0)||c.ended)){if(M("read: emitReadable",c.length,c.ended),c.length===0&&c.ended)J0(this);else Z(this);return null}if($0=j($0,c),$0===0&&c.ended){if(c.length===0)J0(this);return null}var H0=c.needReadable;if(M("need readable",H0),c.length===0||c.length-$0<c.highWaterMark)H0=!0,M("length less than watermark",H0);if(c.ended||c.reading)H0=!1,M("reading or ended",H0);else if(H0){if(M("do read"),c.reading=!0,c.sync=!0,c.length===0)c.needReadable=!0;if(this._read(c.highWaterMark),c.sync=!1,!c.reading)$0=j(n,c)}var Y0;if($0>0)Y0=e($0,c);else Y0=null;if(Y0===null)c.needReadable=c.length<=c.highWaterMark,$0=0;else c.length-=$0,c.awaitDrain=0;if(c.length===0){if(!c.ended)c.needReadable=!0;if(n!==$0&&c.ended)J0(this)}if(Y0!==null)this.emit("data",Y0);return Y0};function q($0,c){if(M("onEofChunk"),c.ended)return;if(c.decoder){var n=c.decoder.end();if(n&&n.length)c.buffer.push(n),c.length+=c.objectMode?1:n.length}if(c.ended=!0,c.sync)Z($0);else if(c.needReadable=!1,!c.emittedReadable)c.emittedReadable=!0,T($0)}function Z($0){var c=$0._readableState;if(M("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,!c.emittedReadable)M("emitReadable",c.flowing),c.emittedReadable=!0,process.nextTick(T,$0)}function T($0){var c=$0._readableState;if(M("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended))$0.emit("readable"),c.emittedReadable=!1;c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,s($0)}function w($0,c){if(!c.readingMore)c.readingMore=!0,process.nextTick(B,$0,c)}function B($0,c){while(!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&c.length===0)){var n=c.length;if(M("maybeReadMore read 0"),$0.read(0),n===c.length)break}c.readingMore=!1}G.prototype._read=function($0){L0(this,new u("_read()"))},G.prototype.pipe=function($0,c){var n=this,H0=this._readableState;switch(H0.pipesCount){case 0:H0.pipes=$0;break;case 1:H0.pipes=[H0.pipes,$0];break;default:H0.pipes.push($0);break}H0.pipesCount+=1,M("pipe count=%d opts=%j",H0.pipesCount,c);var Y0=(!c||c.end!==!1)&&$0!==process.stdout&&$0!==process.stderr,D0=Y0?I0:t$;if(H0.endEmitted)process.nextTick(D0);else n.once("end",D0);$0.on("unpipe",N0);function N0(b0,h0){if(M("onunpipe"),b0===n){if(h0&&h0.hasUnpiped===!1)h0.hasUnpiped=!0,M0()}}function I0(){M("onend"),$0.end()}var K0=h(n);$0.on("drain",K0);var U$=!1;function M0(){if(M("cleanup"),$0.removeListener("close",p0),$0.removeListener("finish",c0),$0.removeListener("drain",K0),$0.removeListener("error",L$),$0.removeListener("unpipe",N0),n.removeListener("end",I0),n.removeListener("end",t$),n.removeListener("data",v0),U$=!0,H0.awaitDrain&&(!$0._writableState||$0._writableState.needDrain))K0()}n.on("data",v0);function v0(b0){M("ondata");var h0=$0.write(b0);if(M("dest.write",h0),h0===!1){if((H0.pipesCount===1&&H0.pipes===$0||H0.pipesCount>1&&A0(H0.pipes,$0)!==-1)&&!U$)M("false write response, pause",H0.awaitDrain),H0.awaitDrain++;n.pause()}}function L$(b0){if(M("onerror",b0),t$(),$0.removeListener("error",L$),X($0,"error")===0)L0($0,b0)}o($0,"error",L$);function p0(){$0.removeListener("finish",c0),t$()}$0.once("close",p0);function c0(){M("onfinish"),$0.removeListener("close",p0),t$()}$0.once("finish",c0);function t$(){M("unpipe"),n.unpipe($0)}if($0.emit("pipe",n),!H0.flowing)M("pipe resume"),n.resume();return $0};function h($0){return function(){var c=$0._readableState;if(M("pipeOnDrain",c.awaitDrain),c.awaitDrain)c.awaitDrain--;if(c.awaitDrain===0&&X($0,"data"))c.flowing=!0,s($0)}}G.prototype.unpipe=function($0){var c=this._readableState,n={hasUnpiped:!1};if(c.pipesCount===0)return this;if(c.pipesCount===1){if($0&&$0!==c.pipes)return this;if(!$0)$0=c.pipes;if(c.pipes=null,c.pipesCount=0,c.flowing=!1,$0)$0.emit("unpipe",this,n);return this}if(!$0){var{pipes:H0,pipesCount:Y0}=c;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var D0=0;D0<Y0;D0++)H0[D0].emit("unpipe",this,{hasUnpiped:!1});return this}var N0=A0(c.pipes,$0);if(N0===-1)return this;if(c.pipes.splice(N0,1),c.pipesCount-=1,c.pipesCount===1)c.pipes=c.pipes[0];return $0.emit("unpipe",this,n),this},G.prototype.on=function($0,c){var n=z.prototype.on.call(this,$0,c),H0=this._readableState;if($0==="data"){if(H0.readableListening=this.listenerCount("readable")>0,H0.flowing!==!1)this.resume()}else if($0==="readable"){if(!H0.endEmitted&&!H0.readableListening){if(H0.readableListening=H0.needReadable=!0,H0.flowing=!1,H0.emittedReadable=!1,M("on readable",H0.length,H0.reading),H0.length)Z(this);else if(!H0.reading)process.nextTick(U0,this)}}return n},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function($0,c){var n=z.prototype.removeListener.call(this,$0,c);if($0==="readable")process.nextTick(t,this);return n},G.prototype.removeAllListeners=function($0){var c=z.prototype.removeAllListeners.apply(this,arguments);if($0==="readable"||$0===void 0)process.nextTick(t,this);return c};function t($0){var c=$0._readableState;if(c.readableListening=$0.listenerCount("readable")>0,c.resumeScheduled&&!c.paused)c.flowing=!0;else if($0.listenerCount("data")>0)$0.resume()}function U0($0){M("readable nexttick read 0"),$0.read(0)}G.prototype.resume=function(){var $0=this._readableState;if(!$0.flowing)M("resume"),$0.flowing=!$0.readableListening,z0(this,$0);return $0.paused=!1,this};function z0($0,c){if(!c.resumeScheduled)c.resumeScheduled=!0,process.nextTick(Q0,$0,c)}function Q0($0,c){if(M("resume",c.reading),!c.reading)$0.read(0);if(c.resumeScheduled=!1,$0.emit("resume"),s($0),c.flowing&&!c.reading)$0.read(0)}G.prototype.pause=function(){if(M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)M("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function s($0){var c=$0._readableState;M("flow",c.flowing);while(c.flowing&&$0.read()!==null);}if(G.prototype.wrap=function($0){var c=this,n=this._readableState,H0=!1;$0.on("end",function(){if(M("wrapped end"),n.decoder&&!n.ended){var N0=n.decoder.end();if(N0&&N0.length)c.push(N0)}c.push(null)}),$0.on("data",function(N0){if(M("wrapped data"),n.decoder)N0=n.decoder.write(N0);if(n.objectMode&&(N0===null||N0===void 0))return;else if(!n.objectMode&&(!N0||!N0.length))return;var I0=c.push(N0);if(!I0)H0=!0,$0.pause()});for(var Y0 in $0)if(this[Y0]===void 0&&typeof $0[Y0]==="function")this[Y0]=function(N0){return function(){return $0[N0].apply($0,arguments)}}(Y0);for(var D0=0;D0<C0.length;D0++)$0.on(C0[D0],this.emit.bind(this,C0[D0]));return this._read=function(N0){if(M("wrapped _read",N0),H0)H0=!1,$0.resume()},this},typeof Symbol==="function")G.prototype[Symbol.asyncIterator]=function(){if(a===void 0)a=mm();return a(this)};Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(G.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(G.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function($0){if(this._readableState)this._readableState.flowing=$0}}),G._fromList=e,Object.defineProperty(G.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function e($0,c){if(c.length===0)return null;var n;if(c.objectMode)n=c.buffer.shift();else if(!$0||$0>=c.length){if(c.decoder)n=c.buffer.join("");else if(c.buffer.length===1)n=c.buffer.first();else n=c.buffer.concat(c.length);c.buffer.clear()}else n=c.buffer.consume($0,c.decoder);return n}function J0($0){var c=$0._readableState;if(M("endReadable",c.endEmitted),!c.endEmitted)c.ended=!0,process.nextTick(V0,c,$0)}function V0($0,c){if(M("endReadableNT",$0.endEmitted,$0.length),!$0.endEmitted&&$0.length===0){if($0.endEmitted=!0,c.readable=!1,c.emit("end"),$0.autoDestroy){var n=c._writableState;if(!n||n.autoDestroy&&n.finished)c.destroy()}}}if(typeof Symbol==="function")G.from=function($0,c){if(Z0===void 0)Z0=dm();return Z0(G,$0,c)};function A0($0,c){for(var n=0,H0=$0.length;n<H0;n++)if($0[n]===c)return n;return-1}}),b3=kU((U,J)=>{J.exports=E;var Q=wJ().codes,O=Q.ERR_METHOD_NOT_IMPLEMENTED,X=Q.ERR_MULTIPLE_CALLBACK,z=Q.ERR_TRANSFORM_ALREADY_TRANSFORMING,V=Q.ERR_TRANSFORM_WITH_LENGTH_0,L=uY();xJ()(E,L);function S(P,v){var N=this._transformState;N.transforming=!1;var f=N.writecb;if(f===null)return this.emit("error",new X);if(N.writechunk=null,N.writecb=null,v!=null)this.push(v);f(P);var x=this._readableState;if(x.reading=!1,x.needReadable||x.length<x.highWaterMark)this._read(x.highWaterMark)}function E(P){if(!(this instanceof E))return new E(P);if(L.call(this,P),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,P){if(typeof P.transform==="function")this._transform=P.transform;if(typeof P.flush==="function")this._flush=P.flush}this.on("prefinish",_)}function _(){var P=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(v,N){M(P,v,N)});else M(this,null,null)}E.prototype.push=function(P,v){return this._transformState.needTransform=!1,L.prototype.push.call(this,P,v)},E.prototype._transform=function(P,v,N){N(new O("_transform()"))},E.prototype._write=function(P,v,N){var f=this._transformState;if(f.writecb=N,f.writechunk=P,f.writeencoding=v,!f.transforming){var x=this._readableState;if(f.needTransform||x.needReadable||x.length<x.highWaterMark)this._read(x.highWaterMark)}},E.prototype._read=function(P){var v=this._transformState;if(v.writechunk!==null&&!v.transforming)v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform);else v.needTransform=!0},E.prototype._destroy=function(P,v){L.prototype._destroy.call(this,P,function(N){v(N)})};function M(P,v,N){if(v)return P.emit("error",v);if(N!=null)P.push(N);if(P._writableState.length)throw new V;if(P._transformState.transforming)throw new z;return P.push(null)}}),nm=kU((U,J)=>{J.exports=O;var Q=b3();xJ()(O,Q);function O(X){if(!(this instanceof O))return new O(X);Q.call(this,X)}O.prototype._transform=function(X,z,V){V(null,X)}}),om=kU((U,J)=>{var Q;function O(N){var f=!1;return function(){if(f)return;f=!0,N.apply(void 0,arguments)}}var X=wJ().codes,z=X.ERR_MISSING_ARGS,V=X.ERR_STREAM_DESTROYED;function L(N){if(N)throw N}function S(N){return N.setHeader&&typeof N.abort==="function"}function E(N,f,x,b){b=O(b);var k=!1;if(N.on("close",function(){k=!0}),Q===void 0)Q=Mq();Q(N,{readable:f,writable:x},function(p){if(p)return b(p);k=!0,b()});var u=!1;return function(p){if(k)return;if(u)return;if(u=!0,S(N))return N.abort();if(typeof N.destroy==="function")return N.destroy();b(p||new V("pipe"))}}function _(N){N()}function M(N,f){return N.pipe(f)}function P(N){if(!N.length)return L;if(typeof N[N.length-1]!=="function")return L;return N.pop()}function v(){for(var N=arguments.length,f=Array(N),x=0;x<N;x++)f[x]=arguments[x];var b=P(f);if(Array.isArray(f[0]))f=f[0];if(f.length<2)throw new z("streams");var k,u=f.map(function(p,m){var a=m<f.length-1,Z0=m>0;return E(p,a,Z0,function(L0){if(!k)k=L0;if(L0)u.forEach(_);if(a)return;u.forEach(_),b(k)})});return f.reduce(M)}J.exports=v}),h3=kU((U,J)=>{var Q=nQ();U=J.exports=u3(),U.Stream=Q||U,U.Readable=U,U.Writable=y3(),U.Duplex=uY(),U.Transform=b3(),U.PassThrough=nm(),U.finished=Mq(),U.pipeline=om()}),c3=kU((U)=>{var J=x3(),Q=xJ(),O=h3(),X=U.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},z=U.IncomingMessage=function(V,L,S,E){var _=this;if(O.Readable.call(_),_._mode=S,_.headers={},_.rawHeaders=[],_.trailers={},_.rawTrailers=[],_.on("end",function(){process.nextTick(function(){_.emit("close")})}),S==="fetch"){let b=function(){v.read().then(function(k){if(_._destroyed)return;if(E(k.done),k.done){_.push(null);return}_.push(Buffer.from(k.value)),b()}).catch(function(k){if(E(!0),!_._destroyed)_.emit("error",k)})};var M=b;if(_._fetchResponse=L,_.url=L.url,_.statusCode=L.status,_.statusMessage=L.statusText,L.headers.forEach(function(k,u){_.headers[u.toLowerCase()]=k,_.rawHeaders.push(u,k)}),J.writableStream){var P=new WritableStream({write:function(k){return E(!1),new Promise(function(u,p){if(_._destroyed)p();else if(_.push(Buffer.from(k)))u();else _._resumeFetch=u})},close:function(){if(E(!0),!_._destroyed)_.push(null)},abort:function(k){if(E(!0),!_._destroyed)_.emit("error",k)}});try{L.body.pipeTo(P).catch(function(k){if(E(!0),!_._destroyed)_.emit("error",k)});return}catch(k){}}var v=L.body.getReader();b()}else{_._xhr=V,_._pos=0,_.url=V.responseURL,_.statusCode=V.status,_.statusMessage=V.statusText;var N=V.getAllResponseHeaders().split(/\r?\n/);if(N.forEach(function(b){var k=b.match(/^([^:]+):\s*(.*)/);if(k){var u=k[1].toLowerCase();if(u==="set-cookie"){if(_.headers[u]===void 0)_.headers[u]=[];_.headers[u].push(k[2])}else if(_.headers[u]!==void 0)_.headers[u]+=", "+k[2];else _.headers[u]=k[2];_.rawHeaders.push(k[1],k[2])}}),_._charset="x-user-defined",!J.overrideMimeType){var f=_.rawHeaders["mime-type"];if(f){var x=f.match(/;\s*charset=([^;])(;|$)/);if(x)_._charset=x[1].toLowerCase()}if(!_._charset)_._charset="utf-8"}}};Q(z,O.Readable),z.prototype._read=function(){var V=this,L=V._resumeFetch;if(L)V._resumeFetch=null,L()},z.prototype._onXHRProgress=function(V){var L=this,S=L._xhr,E=null;switch(L._mode){case"text":if(E=S.responseText,E.length>L._pos){var _=E.substr(L._pos);if(L._charset==="x-user-defined"){var M=Buffer.alloc(_.length);for(var P=0;P<_.length;P++)M[P]=_.charCodeAt(P)&255;L.push(M)}else L.push(_,L._charset);L._pos=E.length}break;case"arraybuffer":if(S.readyState!==X.DONE||!S.response)break;E=S.response,L.push(Buffer.from(new Uint8Array(E)));break;case"moz-chunked-arraybuffer":if(E=S.response,S.readyState!==X.LOADING||!E)break;L.push(Buffer.from(new Uint8Array(E)));break;case"ms-stream":if(E=S.response,S.readyState!==X.LOADING)break;var v=new globalThis.MSStreamReader;v.onprogress=function(){if(v.result.byteLength>L._pos)L.push(Buffer.from(new Uint8Array(v.result.slice(L._pos)))),L._pos=v.result.byteLength},v.onload=function(){V(!0),L.push(null)},v.readAsArrayBuffer(E);break}if(L._xhr.readyState===X.DONE&&L._mode!=="ms-stream")V(!0),L.push(null)}}),im=kU((U,J)=>{var Q=x3(),O=xJ(),X=c3(),z=h3(),V=X.IncomingMessage,L=X.readyStates;function S(P,v){if(Q.fetch&&v)return"fetch";else if(Q.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(Q.msstream)return"ms-stream";else if(Q.arraybuffer&&P)return"arraybuffer";else return"text"}var E=J.exports=function(P){var v=this;if(z.Writable.call(v),v._opts=P,v._body=[],v._headers={},P.auth)v.setHeader("Authorization","Basic "+Buffer.from(P.auth).toString("base64"));Object.keys(P.headers).forEach(function(x){v.setHeader(x,P.headers[x])});var N,f=!0;if(P.mode==="disable-fetch"||"requestTimeout"in P&&!Q.abortController)f=!1,N=!0;else if(P.mode==="prefer-streaming")N=!1;else if(P.mode==="allow-wrong-content-type")N=!Q.overrideMimeType;else if(!P.mode||P.mode==="default"||P.mode==="prefer-fast")N=!0;else throw Error("Invalid value for opts.mode");v._mode=S(N,f),v._fetchTimer=null,v._socketTimeout=null,v._socketTimer=null,v.on("finish",function(){v._onFinish()})};O(E,z.Writable),E.prototype.setHeader=function(P,v){var N=this,f=P.toLowerCase();if(M.indexOf(f)!==-1)return;N._headers[f]={name:P,value:v}},E.prototype.getHeader=function(P){var v=this._headers[P.toLowerCase()];if(v)return v.value;return null},E.prototype.removeHeader=function(P){var v=this;delete v._headers[P.toLowerCase()]},E.prototype._onFinish=function(){var P=this;if(P._destroyed)return;var v=P._opts;if("timeout"in v&&v.timeout!==0)P.setTimeout(v.timeout);var N=P._headers,f=null;if(v.method!=="GET"&&v.method!=="HEAD")f=new Blob(P._body,{type:(N["content-type"]||{}).value||""});var x=[];if(Object.keys(N).forEach(function(p){var m=N[p].name,a=N[p].value;if(Array.isArray(a))a.forEach(function(Z0){x.push([m,Z0])});else x.push([m,a])}),P._mode==="fetch"){var b=null;if(Q.abortController){var k=new AbortController;if(b=k.signal,P._fetchAbortController=k,"requestTimeout"in v&&v.requestTimeout!==0)P._fetchTimer=globalThis.setTimeout(function(){if(P.emit("requestTimeout"),P._fetchAbortController)P._fetchAbortController.abort()},v.requestTimeout)}globalThis.fetch(P._opts.url,{method:P._opts.method,headers:x,body:f||void 0,mode:"cors",credentials:v.withCredentials?"include":"same-origin",signal:b}).then(function(p){P._fetchResponse=p,P._resetTimers(!1),P._connect()},function(p){if(P._resetTimers(!0),!P._destroyed)P.emit("error",p)})}else{var u=P._xhr=new globalThis.XMLHttpRequest;try{u.open(P._opts.method,P._opts.url,!0)}catch(p){process.nextTick(function(){P.emit("error",p)});return}if("responseType"in u)u.responseType=P._mode;if("withCredentials"in u)u.withCredentials=!!v.withCredentials;if(P._mode==="text"&&"overrideMimeType"in u)u.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in v)u.timeout=v.requestTimeout,u.ontimeout=function(){P.emit("requestTimeout")};if(x.forEach(function(p){u.setRequestHeader(p[0],p[1])}),P._response=null,u.onreadystatechange=function(){switch(u.readyState){case L.LOADING:case L.DONE:P._onXHRProgress();break}},P._mode==="moz-chunked-arraybuffer")u.onprogress=function(){P._onXHRProgress()};u.onerror=function(){if(P._destroyed)return;P._resetTimers(!0),P.emit("error",Error("XHR error"))};try{u.send(f)}catch(p){process.nextTick(function(){P.emit("error",p)});return}}};function _(P){try{var v=P.status;return v!==null&&v!==0}catch(N){return!1}}E.prototype._onXHRProgress=function(){var P=this;if(P._resetTimers(!1),!_(P._xhr)||P._destroyed)return;if(!P._response)P._connect();P._response._onXHRProgress(P._resetTimers.bind(P))},E.prototype._connect=function(){var P=this;if(P._destroyed)return;P._response=new V(P._xhr,P._fetchResponse,P._mode,P._resetTimers.bind(P)),P._response.on("error",function(v){P.emit("error",v)}),P.emit("response",P._response)},E.prototype._write=function(P,v,N){var f=this;f._body.push(P),N()},E.prototype._resetTimers=function(P){var v=this;if(globalThis.clearTimeout(v._socketTimer),v._socketTimer=null,P)globalThis.clearTimeout(v._fetchTimer),v._fetchTimer=null;else if(v._socketTimeout)v._socketTimer=globalThis.setTimeout(function(){v.emit("timeout")},v._socketTimeout)},E.prototype.abort=E.prototype.destroy=function(P){var v=this;if(v._destroyed=!0,v._resetTimers(!0),v._response)v._response._destroyed=!0;if(v._xhr)v._xhr.abort();else if(v._fetchAbortController)v._fetchAbortController.abort();if(P)v.emit("error",P)},E.prototype.end=function(P,v,N){var f=this;if(typeof P==="function")N=P,P=void 0;z.Writable.prototype.end.call(f,P,v,N)},E.prototype.setTimeout=function(P,v){var N=this;if(v)N.once("timeout",v);N._socketTimeout=P,N._resetTimers(!1)},E.prototype.flushHeaders=function(){},E.prototype.setNoDelay=function(){},E.prototype.setSocketKeepAlive=function(){};var M=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}),rm=kU((U,J)=>{J.exports=O;var Q=Object.prototype.hasOwnProperty;function O(){var X={};for(var z=0;z<arguments.length;z++){var V=arguments[z];for(var L in V)if(Q.call(V,L))X[L]=V[L]}return X}}),tm=kU((U,J)=>{J.exports=(Aq(),v$(m3)).STATUS_CODES}),am=kU((U)=>{var J=im(),Q=c3(),O=rm(),X=tm(),z=(N3(),v$(B3)),V=U;V.request=function(L,S){if(typeof L==="string")L=z.parse(L);else L=O(L);var E=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",_=L.protocol||E,M=L.hostname||L.host,P=L.port,v=L.path||"/";if(M&&M.indexOf(":")!==-1)M="["+M+"]";L.url=(M?_+"//"+M:"")+(P?":"+P:"")+v,L.method=(L.method||"GET").toUpperCase(),L.headers=L.headers||{};var N=new J(L);if(S)N.on("response",S);return N},V.get=function(L,S){var E=V.request(L,S);return E.end(),E},V.ClientRequest=J,V.IncomingMessage=Q.IncomingMessage,V.Agent=function(){},V.Agent.defaultMaxSockets=4,V.globalAgent=new V.Agent,V.STATUS_CODES=X,V.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}),p3=bm(am(),1),{request:sm,get:em,ClientRequest:$d,IncomingMessage:Ud,Agent:Id,globalAgent:Xd,STATUS_CODES:Jd,METHODS:Qd}=p3.default,l3=p3.default});var Pq=ZX((Bd)=>{var fJ=e4(L2());(function(){function U(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===o?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case f:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case m:return"Suspense";case a:return"SuspenseList";case C0:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case N:return"Portal";case u:return Z.displayName||"Context";case k:return(Z._context.displayName||"Context")+".Consumer";case p:var T=Z.render;return Z=Z.displayName,Z||(Z=T.displayName||T.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case Z0:return T=Z.displayName||null,T!==null?T:U(Z.type)||"Memo";case L0:T=Z._payload,Z=Z._init;try{return U(Z(T))}catch(w){}}return null}function J(Z){return""+Z}function Q(Z){try{J(Z);var T=!1}catch(h){T=!0}if(T){T=console;var w=T.error,B=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return w.call(T,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),J(Z)}}function O(Z){if(Z===f)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===L0)return"<...>";try{var T=U(Z);return T?"<"+T+">":"<...>"}catch(w){return"<...>"}}function X(){var Z=q0.A;return Z===null?null:Z.getOwner()}function z(){return Error("react-stack-top-frame")}function V(Z){if(G.call(Z,"key")){var T=Object.getOwnPropertyDescriptor(Z,"key").get;if(T&&T.isReactWarning)return!1}return Z.key!==void 0}function L(Z,T){function w(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",T))}w.isReactWarning=!0,Object.defineProperty(Z,"key",{get:w,configurable:!0})}function S(){var Z=U(this.type);return F[Z]||(F[Z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Z=this.props.ref,Z!==void 0?Z:null}function E(Z,T,w,B,h,t){var U0=w.ref;return Z={$$typeof:v,type:Z,key:T,props:w,_owner:B},(U0!==void 0?U0:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:S}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:t}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function _(Z,T,w,B,h,t){var U0=T.children;if(U0!==void 0)if(B)if(D(U0)){for(B=0;B<U0.length;B++)M(U0[B]);Object.freeze&&Object.freeze(U0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(U0);if(G.call(T,"key")){U0=U(Z);var z0=Object.keys(T).filter(function(s){return s!=="key"});B=0<z0.length?"{key: someKey, "+z0.join(": ..., ")+": ...}":"{key: someKey}",q[U0+B]||(z0=0<z0.length?"{"+z0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
247
+ let props = %s;
248
+ <%s {...props} />
249
+ React keys must be passed directly to JSX without using spread:
250
+ let props = %s;
251
+ <%s key={someKey} {...props} />`,B,U0,z0,U0),q[U0+B]=!0)}if(U0=null,w!==void 0&&(Q(w),U0=""+w),V(T)&&(Q(T.key),U0=""+T.key),"key"in T){w={};for(var Q0 in T)Q0!=="key"&&(w[Q0]=T[Q0])}else w=T;return U0&&L(w,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z),E(Z,U0,w,X(),h,t)}function M(Z){P(Z)?Z._store&&(Z._store.validated=1):typeof Z==="object"&&Z!==null&&Z.$$typeof===L0&&(Z._payload.status==="fulfilled"?P(Z._payload.value)&&Z._payload.value._store&&(Z._payload.value._store.validated=1):Z._store&&(Z._store.validated=1))}function P(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===v}var v=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),a=Symbol.for("react.suspense_list"),Z0=Symbol.for("react.memo"),L0=Symbol.for("react.lazy"),C0=Symbol.for("react.activity"),o=Symbol.for("react.client.reference"),q0=fJ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,D=Array.isArray,H=console.createTask?console.createTask:function(){return null};fJ={react_stack_bottom_frame:function(Z){return Z()}};var K,F={},C=fJ.react_stack_bottom_frame.bind(fJ,z)(),j=H(O(z)),q={};Bd.Fragment=f,Bd.jsxDEV=function(Z,T,w,B){var h=1e4>q0.recentlyCreatedOwnerStacks++;return _(Z,T,w,B,h?Error("react-stack-top-frame"):C,h?H(O(Z)):j)}})()});var Gk=e4(YS(),1),bY=e4(L2(),1);var{readFile:z10}=(()=>({}));hU();var{closeSync:Ka,existsSync:Da,fstatSync:Wa,mkdirSync:Fa,openSync:Ha,readFileSync:La,renameSync:Ma,rmSync:Aa,statSync:qa,writeFileSync:Ta,writeSync:Ca}=(()=>({}));var Iz=function(){if(typeof location<"u")return location.hostname;else return""};var Xz=function(){return"/"};function w1(U){if(typeof U!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(U))}function wj(U,J){var Q="",O=0,X=-1,z=0,V;for(var L=0;L<=U.length;++L){if(L<U.length)V=U.charCodeAt(L);else if(V===47)break;else V=47;if(V===47){if(X===L-1||z===1);else if(X!==L-1&&z===2){if(Q.length<2||O!==2||Q.charCodeAt(Q.length-1)!==46||Q.charCodeAt(Q.length-2)!==46){if(Q.length>2){var S=Q.lastIndexOf("/");if(S!==Q.length-1){if(S===-1)Q="",O=0;else Q=Q.slice(0,S),O=Q.length-1-Q.lastIndexOf("/");X=L,z=0;continue}}else if(Q.length===2||Q.length===1){Q="",O=0,X=L,z=0;continue}}if(J){if(Q.length>0)Q+="/..";else Q="..";O=2}}else{if(Q.length>0)Q+="/"+U.slice(X+1,L);else Q=U.slice(X+1,L);O=L-X-1}X=L,z=0}else if(V===46&&z!==-1)++z;else z=-1}return Q}function db(U,J){var Q=J.dir||J.root,O=J.base||(J.name||"")+(J.ext||"");if(!Q)return O;if(Q===J.root)return Q+O;return Q+U+O}function $4(){var U="",J=!1,Q;for(var O=arguments.length-1;O>=-1&&!J;O--){var X;if(O>=0)X=arguments[O];else{if(Q===void 0)Q=process.cwd();X=Q}if(w1(X),X.length===0)continue;U=X+"/"+U,J=X.charCodeAt(0)===47}if(U=wj(U,!J),J)if(U.length>0)return"/"+U;else return"/";else if(U.length>0)return U;else return"."}function fj(U){if(w1(U),U.length===0)return".";var J=U.charCodeAt(0)===47,Q=U.charCodeAt(U.length-1)===47;if(U=wj(U,!J),U.length===0&&!J)U=".";if(U.length>0&&Q)U+="/";if(J)return"/"+U;return U}function oQ(U){return w1(U),U.length>0&&U.charCodeAt(0)===47}function T$(){if(arguments.length===0)return".";var U;for(var J=0;J<arguments.length;++J){var Q=arguments[J];if(w1(Q),Q.length>0)if(U===void 0)U=Q;else U+="/"+Q}if(U===void 0)return".";return fj(U)}function LF(U,J){if(w1(U),w1(J),U===J)return"";if(U=$4(U),J=$4(J),U===J)return"";var Q=1;for(;Q<U.length;++Q)if(U.charCodeAt(Q)!==47)break;var O=U.length,X=O-Q,z=1;for(;z<J.length;++z)if(J.charCodeAt(z)!==47)break;var V=J.length,L=V-z,S=X<L?X:L,E=-1,_=0;for(;_<=S;++_){if(_===S){if(L>S){if(J.charCodeAt(z+_)===47)return J.slice(z+_+1);else if(_===0)return J.slice(z+_)}else if(X>S){if(U.charCodeAt(Q+_)===47)E=_;else if(_===0)E=0}break}var M=U.charCodeAt(Q+_),P=J.charCodeAt(z+_);if(M!==P)break;else if(M===47)E=_}var v="";for(_=Q+E+1;_<=O;++_)if(_===O||U.charCodeAt(_)===47)if(v.length===0)v+="..";else v+="/..";if(v.length>0)return v+J.slice(z+E);else{if(z+=E,J.charCodeAt(z)===47)++z;return J.slice(z)}}function nb(U){return U}function s$(U){if(w1(U),U.length===0)return".";var J=U.charCodeAt(0),Q=J===47,O=-1,X=!0;for(var z=U.length-1;z>=1;--z)if(J=U.charCodeAt(z),J===47){if(!X){O=z;break}}else X=!1;if(O===-1)return Q?"/":".";if(Q&&O===1)return"//";return U.slice(0,O)}function iQ(U,J){if(J!==void 0&&typeof J!=="string")throw TypeError('"ext" argument must be a string');w1(U);var Q=0,O=-1,X=!0,z;if(J!==void 0&&J.length>0&&J.length<=U.length){if(J.length===U.length&&J===U)return"";var V=J.length-1,L=-1;for(z=U.length-1;z>=0;--z){var S=U.charCodeAt(z);if(S===47){if(!X){Q=z+1;break}}else{if(L===-1)X=!1,L=z+1;if(V>=0)if(S===J.charCodeAt(V)){if(--V===-1)O=z}else V=-1,O=L}}if(Q===O)O=L;else if(O===-1)O=U.length;return U.slice(Q,O)}else{for(z=U.length-1;z>=0;--z)if(U.charCodeAt(z)===47){if(!X){Q=z+1;break}}else if(O===-1)X=!1,O=z+1;if(O===-1)return"";return U.slice(Q,O)}}function ob(U){w1(U);var J=-1,Q=0,O=-1,X=!0,z=0;for(var V=U.length-1;V>=0;--V){var L=U.charCodeAt(V);if(L===47){if(!X){Q=V+1;break}continue}if(O===-1)X=!1,O=V+1;if(L===46){if(J===-1)J=V;else if(z!==1)z=1}else if(J!==-1)z=-1}if(J===-1||O===-1||z===0||z===1&&J===O-1&&J===Q+1)return"";return U.slice(J,O)}function ib(U){if(U===null||typeof U!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof U);return db("/",U)}function rb(U){w1(U);var J={root:"",dir:"",base:"",ext:"",name:""};if(U.length===0)return J;var Q=U.charCodeAt(0),O=Q===47,X;if(O)J.root="/",X=1;else X=0;var z=-1,V=0,L=-1,S=!0,E=U.length-1,_=0;for(;E>=X;--E){if(Q=U.charCodeAt(E),Q===47){if(!S){V=E+1;break}continue}if(L===-1)S=!1,L=E+1;if(Q===46){if(z===-1)z=E;else if(_!==1)_=1}else if(z!==-1)_=-1}if(z===-1||L===-1||_===0||_===1&&z===L-1&&z===V+1){if(L!==-1)if(V===0&&O)J.base=J.name=U.slice(1,L);else J.base=J.name=U.slice(V,L)}else{if(V===0&&O)J.name=U.slice(1,z),J.base=U.slice(1,L);else J.name=U.slice(V,z),J.base=U.slice(V,L);J.ext=U.slice(z,L)}if(V>0)J.dir=U.slice(0,V-1);else if(O)J.dir="/";return J}var Jz="/",tb=":",Co=((U)=>(U.posix=U,U))({resolve:$4,normalize:fj,isAbsolute:oQ,join:T$,relative:LF,_makeLong:nb,dirname:s$,basename:iQ,extname:ob,format:ib,parse:rb,sep:Jz,delimiter:tb,win32:null,posix:null});function LJ(){let U=process.env.VOLTER_HOME;return U!==void 0&&U!==""?U:T$(Xz(),".volter")}hU();function HI(U){if(Array.isArray(U))return`[${U.map(HI).join(",")}]`;if(U&&typeof U==="object")return`{${Object.entries(U).filter(([,Q])=>Q!==void 0).sort(([Q],[O])=>Q<O?-1:Q>O?1:0).map(([Q,O])=>`${JSON.stringify(Q)}:${HI(O)}`).join(",")}}`;return JSON.stringify(U)??"null"}function T4(U){return h6("sha256").update(HI(U)).digest("hex").slice(0,16)}hU();var{appendFileSync:ab,chmodSync:yj,closeSync:Qz,existsSync:v2,fsyncSync:sb,fstatSync:uj,lstatSync:bj,mkdirSync:B2,openSync:Yz,readdirSync:eb,readSync:$h,realpathSync:Uh,readFileSync:AF,renameSync:hj,rmSync:cj,statSync:mj,unlinkSync:MF,writeFileSync:N2}=(()=>({}));var Ih=0,Xh=60000;function qF(U){try{return JSON.parse(AF(U,"utf8"))}catch{return null}}function Jh(U){try{return process.kill(U,0),!0}catch(J){return J.code==="EPERM"}}function pj(U,J=!1){let Q=qF(U);if(Q&&Q.hostname===Iz()&&Number.isInteger(Q.pid)&&!Jh(Q.pid))return!0;if(J)return!1;let X=Q&&typeof Q.at==="string"?Date.parse(Q.at):NaN;if(!Number.isFinite(X))try{X=mj(U).mtimeMs}catch{return!1}return Date.now()-X>Xh}function lj(U){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,U)}class TF{read(U){if(!v2(U))return null;return AF(U,"utf8")}readLines(U){if(!v2(U))return[];return AF(U,"utf8").split(`
252
+ `)}readRange(U,J){let Q;try{Q=Yz(U,"r")}catch(O){if(O.code==="ENOENT")return null;throw O}try{let O=uj(Q).size;if(J>=O)return"";let X=Buffer.allocUnsafe(O-J),z=0;while(z<X.length){let V=$h(Q,X,z,X.length-z,J+z);if(V===0)break;z+=V}return X.toString("utf8",0,z)}finally{Qz(Q)}}append(U,J){let Q=Yz(U,"a");try{if(ab(Q,J),process.env.VOLTER_DURABLE==="1")sb(Q)}finally{Qz(Q)}}write(U,J,Q={}){if(!Q.secret){B2(s$(U),{recursive:!0}),N2(U,J);return}B2(s$(U),{recursive:!0,mode:448}),N2(U,J,{mode:384}),yj(U,384)}writeAtomic(U,J,Q={}){B2(s$(U),{recursive:!0});let O=`${U}.${process.pid}.${Date.now()}.${Ih++}.tmp`;try{if(N2(O,J,Q.secret?{mode:384}:void 0),hj(O,U),Q.secret)yj(U,384)}finally{cj(O,{force:!0})}}exists(U){return v2(U)}remove(U){cj(U,{recursive:!0,force:!0})}mkdir(U){B2(U,{recursive:!0})}list(U){if(!v2(U))return[];return eb(U)}canonicalPath(U){let J=$4(U);try{return Uh(J)}catch(Q){if(Q.code!=="ENOENT"||s$(J)===J)throw Q;return T$(this.canonicalPath(s$(J)),iQ(J))}}stat(U){if(!v2(U))return null;let J=mj(U);return{size:J.size,mtimeMs:J.mtimeMs,isDirectory:J.isDirectory(),...bj(U).isSymbolicLink()?{isSymbolicLink:!0}:{}}}withLock(U,J,Q={}){B2(s$(U),{recursive:!0});let O=Date.now(),X=null;while(X===null)try{X=Yz(U,"wx")}catch(V){if(V.code!=="EEXIST")throw V;if(pj(U,Q.retainLiveOwner)){let S=`${U}.recovery`,E;try{E=Yz(S,"wx")}catch(_){if(_.code!=="EEXIST")throw _;if(Date.now()-O>1e4)throw Error(`Lock recovery is active or interrupted: ${S}. Inspect its owner before removing the recovery record.`);lj(25);continue}try{if(N2(E,JSON.stringify({pid:process.pid,hostname:Iz()})),pj(U,Q.retainLiveOwner)){let _=qF(U),M=`${U}.stale.${process.pid}.${Date.now()}`;try{hj(U,M),console.warn(`[world] reclaiming stale storage lock ${U} (held by pid ${_?.pid??"?"} on ${_?.hostname??"?"})`),MF(M)}catch(P){if(P.code!=="ENOENT")throw P}}}finally{Qz(E),MF(S)}continue}if(Date.now()-O>1e4){let S=qF(U),E=S&&typeof S.at==="string"?Date.parse(S.at):NaN;throw Error(`Timed out waiting for world storage lock: ${U}${S?` (held by pid ${S.pid} on ${S.hostname}${Number.isFinite(E)?` for ${Date.now()-E}ms`:""})`:""}`)}lj(25)}try{N2(X,`${JSON.stringify({pid:process.pid,hostname:Iz(),at:new Date().toISOString()})}
253
+ `)}catch{}let z=Date.now();try{return J()}finally{let V=Date.now()-z;if(V>2000)console.warn(`[world] held storage lock ${U} for ${V}ms (pid ${process.pid})
254
+ ${Error().stack?.split(`
255
+ `).slice(2,8).join(`
256
+ `)??""}`);let L=uj(X);Qz(X);try{let S=bj(U);if(L.dev===S.dev&&L.ino===S.ino)MF(U)}catch{}}}}var Qh=new TF,Yh=(()=>{try{let U=globalThis.process?.getBuiltinModule?.("node:async_hooks");return U?.AsyncLocalStorage?new U.AsyncLocalStorage:null}catch{return null}})();function M$(){return Yh?.getStore()??Qh}var Gh,$1=(U)=>M$().canonicalPath?.(U)??$4(U),k2=(U)=>T$(U,"ancestry.json"),CF=(U,J)=>{let Q=LF($1(U),$1(J));return Q===""||Q!==".."&&!Q.startsWith(`..${Jz}`)&&!Q.startsWith(Jz)};function C6(U){let J=M$(),Q=Gh??=new WeakSet;if(Q.has(J))return U();let O=T$(LJ(),"branch-ancestry.lock");return J.withLock(O,()=>{Q.add(J);try{return Zh(),U()}finally{Q.delete(J)}},{retainLiveOwner:!0})}function g2(U){let J=M$().read(k2(U));if(J===null)return null;let Q=JSON.parse(J);if(!Q||typeof Q.generation!=="string"||!Array.isArray(Q.children)||Q.children.some((O)=>typeof O.child!=="string"||!Number.isInteger(O.ownerPid)||O.ownerPid<=0))throw Error(`Unreadable branch ancestry at ${U}; retained`);return Q}function Gz(U){return C6(()=>{let J=M$();if(!J.stat(U)?.isDirectory)throw Error(`Branch parent is missing: ${U}`);EF(U);let Q=g2(U);if(!Q)Q={generation:WX(),children:[]},J.writeAtomic(k2(U),JSON.stringify(Q));return Q.generation})}function RF(U,J,Q){U=$1(U),J=$1(J);let O=Gz(U);if(Q!==void 0&&O!==Q)throw Error(`Branch parent generation changed: ${U}`);let X=g2(U);if(!X.children.some((z)=>z.child===J))X.children.push({child:J,ownerPid:process.pid}),M$().writeAtomic(k2(U),JSON.stringify(X));return O}function PF(U,J){U=$1(U),J=$1(J);let Q=g2(U),O=Q.children.find((X)=>X.child===J);O.committed=!0,M$().writeAtomic(k2(U),JSON.stringify(Q))}function MJ(U,J){if(!M$().stat(U)?.isDirectory)throw Error(`Branch parent is missing: ${U}`);if(J!==void 0&&g2(U)?.generation!==J)throw Error(`Branch parent generation changed: ${U}`)}var dj=()=>T$(LJ(),"branch-removals");function Vh(U){let J=M$();for(let{child:Q,parent:O}of U.outgoing){if(!CF(U.path,Q))throw Error("Invalid branch removal receipt; retained");if(!O?.directory||CF(U.path,O.directory))continue;let X=g2(O.directory);if(!X||X.generation!==O.generation)continue;X.children=X.children.filter((z)=>z.child!==Q),J.writeAtomic(k2(O.directory),JSON.stringify(X))}}function Zh(){let U=M$(),J=[];for(let Q of U.list(dj()).filter((O)=>O.endsWith(".json"))){let O=T$(dj(),Q),X=JSON.parse(U.read(O));if(typeof X.path!=="string"||!Array.isArray(X.outgoing))throw Error("Invalid branch removal receipt; retained");if(!U.exists(X.path))Vh(X),U.remove(O);else J.push(X.path)}nj=J}var nj=[];function EF(U){let J=nj.find((Q)=>CF(Q,U));if(J)throw Error(`World state is being removed: ${J}`)}hU();var Oh=Symbol.for("volter.references"),zh=()=>globalThis[Oh]??=new Map;function _F(U){return zh().get(U)??[]}function AJ(U,J,Q,O){if(O.size===0)return Q;let X=Q;for(let z of _F(U)){if(z.type!==J)continue;let V=z.key(X);if(V===void 0)continue;let L=O.get(`${z.to}:${V}`);if(L===void 0||L===V)continue;X={...X,...z.adopt(X,L)}}return X}function SF(U,J){if(!U||typeof U.at!=="string"||!U.at||typeof U.directory!=="string"||!U.directory||typeof U.generation!=="string"||!U.generation||!/^[a-f0-9]{64}$/.test(U.view)||U.remoteView!==void 0&&!/^[a-f0-9]{64}$/.test(U.remoteView)||!Number.isSafeInteger(U.position)||U.position<0||!Number.isSafeInteger(U.depth)||U.depth<0||U.depth>128||U.incomplete!==void 0&&typeof U.incomplete!=="boolean")throw Error("Invalid tracked origin metadata");if(J){let Q=J;for(let O=0;O<U.depth;O++){if(!Q.base)throw Error("Tracked origin layer is absent from the history layout");Q=Q.base}if(!U.incomplete&&h4(Q)!==U.position)throw Error("Tracked origin position does not match its history layer")}}var tQ=(U)=>h6("sha256").update(HI(U)).digest("hex");function h4(U,J=0){if(!U||J>128||!Number.isSafeInteger(U.parent)||U.parent<0||!Number.isSafeInteger(U.branch)||U.branch<0)throw Error("Invalid history layout");let Q=(U.base?h4(U.base,J+1):0)+U.parent+U.branch;if(!Number.isSafeInteger(Q))throw Error("History position exceeds the safe integer range");return Q}var jF=(U,J)=>{if(!/^[a-f0-9]{64}$/.test(J))throw Error("Invalid history view identity");return T$(U,"views",`${J}.json`)};function vF(U,J){return M$().readLines(T$(U,J)).filter((Q)=>Q.trim()).map((Q)=>qJ(JSON.parse(Q)))}function oj(U,J){let Q=U.base?h4(U.base):0;return{...U.base?{base:oj(U.base,Math.min(J,Q))}:{},parent:Math.min(Math.max(0,J-Q),U.parent),branch:Math.min(Math.max(0,J-Q-U.parent),U.branch)}}function aQ(U,J){let Q=M$().read(jF(U,J));if(Q===null)throw Error(`Missing retained history view ${J}`);let{dependencies:O,...X}=JSON.parse(Q);if(X.version!==1||tQ({...X,dependencies:O})!==J)throw Error(`Invalid retained history view ${J}`);if(h4(X.layout),X.origin)SF(X.origin,X.layout);if(!X.owner||typeof X.owner.directory!=="string"||typeof X.owner.generation!=="string"||!Array.isArray(X.segments)||X.segments.some((z)=>typeof z.directory!=="string"||typeof z.generation!=="string"||!["events.jsonl","actions.jsonl","origin.jsonl"].includes(z.file)||!Number.isSafeInteger(z.start)||z.start<0||!Number.isSafeInteger(z.count)||z.count<0||!/^[a-f0-9]{64}$/.test(z.digest)))throw Error("Invalid history segments");return X}function FX(U){MJ(U.owner.directory,U.owner.generation);let J=U.segments.flatMap((Q)=>{MJ(Q.directory,Q.generation);let O=vF(Q.directory,Q.file).slice(Q.start,Q.start+Q.count);if(O.length!==Q.count||tQ(O)!==Q.digest)throw Error(`Retained history prefix was changed: ${Q.directory}/${Q.file}`);return O});if(J.length!==h4(U.layout))throw Error("Invalid history view layout");return J}function sQ(U,J){if(!Number.isInteger(J)||J<0||J>h4(U.layout))throw Error(`Invalid history position ${J}`);FX(U);let Q=J,O=[];for(let X of U.segments){if(Q===0)break;let z=Math.min(Q,X.count);O.push(z===X.count?X:{...X,count:z,digest:tQ(vF(X.directory,X.file).slice(X.start,X.start+z))}),Q-=z}return{...U,layout:oj(U.layout,J),segments:O,...U.origin&&J<U.origin.position?{origin:{...U.origin,incomplete:!0}}:{}}}function ij(U,J){return C6(()=>{if(J.origin)SF(J.origin,J.layout);let Q=[...new Map([J.owner,...J.segments,...J.origin?[J.origin]:[]].map((z)=>[z.directory,{directory:z.directory,generation:z.generation}])).values()],O=tQ({...J,dependencies:Q}),X=jF(U,O);if(M$().exists(X))return O;for(let z of Q)RF(z.directory,X,z.generation);M$().writeAtomic(X,JSON.stringify({...J,dependencies:Q}));for(let z of Q)PF(z.directory,X);return O})}function rj(U,J){let Q=eQ(U,J)?.parent;if(!Q?.view)return"";let O=M$(),X=(M)=>{let P=O.stat(M);return P?`${P.size}:${P.mtimeMs}`:"-"},z=Q.viewDirectory??(rQ(Q.at)?e$(U,J).dir:e$(U,Q.at).dir),V,L;try{L=jF(z,Q.view),V=O.read(L)}catch{return"invalid-view"}if(V===null)return"missing-view";let S=JSON.parse(V),E=new Set([S.owner?.directory??"",...(S.segments??[]).map((M)=>M.directory)]);if(!rQ(Q.at))E.add(e$(U,Q.at).dir);let _=[...new Set((S.segments??[]).map((M)=>T$(M.directory,M.file)))].sort();return`${L}=${X(L)};${_.map((M)=>`${M}=${X(M)}`).join(",")};${[...E].sort().map((M)=>`${M}=${X(T$(M,"ancestry.json"))}`).join(",")}`}function w2(U,J){let Q=eQ(U,J)?.parent;if(!Q)return;if(!Q.view)throw Error("Branch has no immutable history view; recreate this disposable World");let O=Q.viewDirectory??(rQ(Q.at)?e$(U,J).dir:e$(U,Q.at).dir);if(Q.viewDirectory&&$1(Q.viewDirectory)!==$1(e$(U,J).dir))throw Error("Composed history view must belong to this branch");if(!rQ(Q.at))MJ(e$(U,Q.at).dir,Q.generation);return sQ(aQ(O,Q.view),Q.position)}function Vz(U,J){return C6(()=>{let Q=$1(e$(U,J).dir);if(M$().mkdir(Q),!M$().exists(T$(Q,"history-format.json")))M$().writeAtomic(T$(Q,"history-format.json"),'{"version":1}');let O=Gz(Q),X=w2(U,J),z=vF(Q,"events.jsonl"),V=TJ(U,J),L=eQ(U,J)?.origin,S={version:1,owner:{directory:Q,generation:O},layout:{...X?{base:X.layout}:{},parent:z.length,branch:V.length},segments:[...X?.segments??[]],...L?{origin:{...L,depth:L.depth+1}}:{}};for(let[E,_]of[["events.jsonl",z],["actions.jsonl",V]])if(_.length)S.segments.push({directory:Q,generation:O,file:E,start:0,count:_.length,digest:tQ(_)});return{view:ij(Q,S),position:h4(S.layout),descriptor:S}})}var Xv=100,Dh=".delta";function zz(U,J){return e$(U,J).events}function CJ(U,J){return T$(s$(e$(U,J).events),"actions.jsonl")}function NF(U,J){return T$(s$(e$(U,J).events),"branch.json")}function rQ(U){return/^[a-z][a-z0-9+.-]*:\/\//i.test(U)}function Zz(U,J){return T$(s$(e$(U,J).events),"checkpoints","latest.json")}var tj=new WeakMap;function BF(U,J,Q,O){for(let[X,z]of J.entries()){if(!z.trim())continue;try{O.push(JSON.parse(z))}catch(V){throw Error(`${U}:${Q+X+1}: invalid JSONL row: ${V.message}`)}}}function aj(U){if(!U.endsWith(`
257
+ `))return;let J=U.lastIndexOf(`
258
+ `,U.length-2)+1;while(J>0&&!U.slice(J,U.indexOf(`
259
+ `,J)).trim())J=U.lastIndexOf(`
260
+ `,J-2)+1;if(!U.slice(J,U.indexOf(`
261
+ `,J)).trim())return;return U.slice(J)}function kF(U){let J=M$(),Q=tj.get(J)??tj.set(J,new Map).get(J),O=Q.get(U);if(J.readRange&&O?.bytes!==void 0&&O.tail!==void 0){let S=J.readRange(U,O.bytes-Buffer.byteLength(O.tail));if(S===null)return Q.delete(U),[];let E=S.startsWith(O.tail)?S.slice(O.tail.length):void 0;if(E==="")return O.rows.slice();if(E!==void 0&&E.endsWith(`
262
+ `)){let _=O.rows.slice(),M=E.split(`
263
+ `);BF(U,M,O.lines,_);let P=aj(O.tail+E);return Q.set(U,{rows:_,lines:O.lines+M.length-1,bytes:O.bytes+Buffer.byteLength(E),tail:P}),_.slice()}}let X=J.read(U);if(X===null)return Q.delete(U),[];if(!J.readRange&&O?.content!==void 0){if(O.content===X)return O.rows.slice();if(O.content.endsWith(`
264
+ `)&&X.startsWith(O.content)){let S=O.rows.slice();return BF(U,X.slice(O.content.length).split(`
265
+ `),O.lines,S),Q.set(U,{content:X,rows:S,lines:O.lines+X.slice(O.content.length).split(`
266
+ `).length-1}),S.slice()}}let z=[],V=X.split(`
267
+ `);BF(U,V,0,z);let L=J.readRange?aj(X):void 0;return Q.set(U,L!==void 0?{rows:z,lines:V.length-1,bytes:Buffer.byteLength(X),tail:L}:{content:X,rows:z,lines:V.length-1}),z.slice()}function eQ(U,J){let Q=M$().read(NF(U,J));if(Q===null)return null;let O=JSON.parse(Q);if(O.parent&&O.parent.at===void 0&&O.parent.root!==void 0)O.parent={at:O.parent.root,position:(O.parent.parentCount??0)+(O.parent.branchCount??0)};return O}function qJ(U){if(typeof U.op==="string")return U;let J=U,Q=J.data??{},O=Q.changed,X=typeof J.type==="string"&&J.type.endsWith(Dh)&&O!==void 0&&typeof O==="object",z=typeof J.type==="string"&&(J.type.endsWith(".write.intent")||J.type.endsWith(".write.result")),V=O!==void 0&&O!==null&&typeof O==="object"&&!Array.isArray(O)&&Object.values(O).every((M)=>M!==null&&typeof M==="object"&&(("after"in M)||("before"in M))),L=()=>Object.fromEntries(Object.entries(O).map(([M,P])=>[M,P?.after])),{changed:S,...E}=Q,_=z?void 0:X?L():V?{...E,...L()}:Q;return{id:J.id,service:J.service,op:"set",subject:J.subject,occurredAt:J.occurredAt,..._?{fields:_}:{},event:J,...J.origin==="virtual"||Q.provenance==="placeholder"?{provenance:"placeholder"}:{}}}function Jv(U,J){return kF(zz(U,J)).map(qJ)}function TJ(U,J){return kF(CJ(U,J))}function U1(U,J,Q=new Set){let O=w2(U,J);return[...O?FX(O):[],...Jv(U,J)]}function $Y(U){let J=new Set;for(let Q of U)if(J.add(Q.id),Q.landsId)J.add(Q.landsId);return J}function LI(U){let J=new Set;for(let O of U)if(O.batch!==void 0||O.operation==="observed"||O.event!==void 0||O.landsId!==void 0)J.add(`${O.subject.type}:${O.subject.id}`);let Q=new Map;for(let O of U){if(!O.aliasOf||O.aliasOf===O.subject.id)continue;let X=`${O.subject.type}:${O.aliasOf}`;if(!J.has(X))Q.set(X,O.subject.id)}return Q}var Wh=new Set(["id","type","updatedAt"]);function Oz(U,J,Q,O,X){let z=`${J}:${Q}`,V=U.get(z)??{type:J,id:Q,updatedAt:X,fields:{}},L={...V.fields,...O};if(V.fields.deleted===!0&&O.deleted!==!0)delete L.deleted;U.set(z,{...V,updatedAt:X,fields:L})}function u2(U,J,Q=new Set){let O=new Set(J.filter((X)=>X.op==="revert"&&X.revertsActionId).map((X)=>X.revertsActionId));for(let X of J){if(X.op!=="set"||O.has(X.id)||Q.has(X.id))continue;if(X.landsId&&(X.receipt?.status==="refused"||X.receipt?.status==="failed"))continue;if(X.fields)Oz(U,X.subject.type,X.subject.id,X.fields,X.occurredAt);if(X.projection){for(let z of X.projection.creates??[])Oz(U,z.type,z.id,z.fields,X.occurredAt);for(let z of X.projection.updates??[])Oz(U,z.type,z.id,z.fields,X.occurredAt);for(let z of X.projection.deletes??[])U.delete(`${z.type}:${z.id}`)}}}function gF(U,J,Q,O){for(let[X,z]of J){let V=U.get(X);if(!V)continue;Oz(U,V.type,z,V.fields,V.updatedAt),U.delete(X)}if(Q!==void 0&&J.size>0)for(let X of O?[...O].map((z)=>U.get(z)).filter((z)=>z!==void 0):U.values()){let z=AJ(Q,X.type,X.fields,J);if(z!==X.fields)X.fields=z}}var Fh=Symbol.for("volter.resource.own");function Hh(U){return[...U.values()].map((J)=>{let Q={id:J.id,type:J.type,updatedAt:J.updatedAt},O={};for(let[X,z]of Object.entries(J.fields))if(!Wh.has(X))Q[X]=z;else if(z!==void 0&&z!==Q[X])O[X]=z;if(Object.keys(O).length)Object.defineProperty(Q,Fh,{value:O,enumerable:!1});return Q})}function xF(U,J){M$().remove(Zz(U,J))}function f2(U,J,Q){let O=J.base?h4(J.base):0,X=J.base?f2(U.slice(0,O),J.base,Q):new Map,z=U.slice(0,O+J.parent);return u2(X,z.slice(O)),u2(X,U.slice(O+J.parent,O+J.parent+J.branch),$Y(z)),gF(X,LI(z),Q),X}function b2(U,J,Q={}){return Hh(Qv(U,J,Q))}var sj=new WeakMap,ej=64;function MI(U){let J=M$().stat(U);return J?`${J.size}:${J.mtimeMs}`:"-"}function y2(U,J){return`${MI(zz(U,J))}|${M$().read(NF(U,J))??""}|${rj(U,J)}`}var Lh=(U)=>new Map([...U].map(([J,Q])=>[J,{...Q,fields:{...Q.fields}}])),$v=(U)=>`${U.parentKey}#${U.branchKey}`;function Mh(U,J){let Q=new Set;for(let O of U){if(O.fields)Q.add(`${O.subject.type}:${O.subject.id}`);for(let X of O.projection?.creates??[])Q.add(`${X.type}:${X.id}`);for(let X of O.projection?.updates??[])Q.add(`${X.type}:${X.id}`);for(let X of O.projection?.deletes??[])Q.add(`${X.type}:${X.id}`)}for(let O of[...Q]){let X=J.get(O);if(X!==void 0)Q.add(`${O.slice(0,O.indexOf(":"))}:${X}`)}return Q}function Ah(U,J){let Q=new Map,O=U;O.set=(X,z)=>{if(!U.has(X))Q.delete(X),Q.set(X,!0);return Map.prototype.set.call(U,X,z)};try{J()}finally{delete O.set}return[...Q.keys()].filter((X)=>U.has(X))}function Qv(U,J,Q={}){if(Q.until!==void 0||Q.at!==void 0||Q.view!==void 0)return Yv(U,J,Q);let O=qh(U,J);return O.memo?Lh(O.tree):O.tree}function qh(U,J){let Q=M$(),O=sj.get(Q);if(!O)O=new Map,sj.set(Q,O);let X=`${U}\x00${J??""}`,z=O.get(X);if(z&&z.parentKey===y2(U,J)&&z.branchKey===MI(CJ(U,J)))return{tree:z.tree,memo:z};return C6(()=>{let V=y2(U,J),L=MI(CJ(U,J)),S=O.get(X);if(S&&S.parentKey===V&&S.branchKey===L)return{tree:S.tree,memo:S};let E=TJ(U,J),_=(v)=>v.length?v[v.length-1].id:null;if(S&&S.parentKey===V&&E.length>=S.branchCount&&(S.branchCount===0?S.lastBranchId===null:E[S.branchCount-1]?.id===S.lastBranchId)&&!E.slice(S.branchCount).some((v)=>v.op==="revert")){let v=E.slice(S.branchCount),N=Mh(v,S.aliases),f=$v(S),x;try{x=Ah(S.tree,()=>{u2(S.tree,v,S.landed),gF(S.tree,S.aliases,U,N)})}catch(b){throw O.delete(X),b}if(Object.assign(S,{branchKey:L,branchCount:E.length,lastBranchId:_(E)}),S.steps.push({from:f,to:$v(S),keys:N,appended:x}),S.steps.length>ej)S.steps.splice(0,S.steps.length-ej);return{tree:S.tree,memo:S}}let M=Yv(U,J),P=U1(U,J);if(y2(U,J)===V&&MI(CJ(U,J))===L){let v={parentKey:V,branchKey:L,branchCount:E.length,lastBranchId:_(E),landed:$Y(P),aliases:LI(P),tree:M,steps:[]};return O.set(X,v),{tree:M,memo:v}}return{tree:M}})}function Yv(U,J,Q={}){return C6(()=>{if(Q.at!==void 0||Q.view!==void 0){let k=Q.view?aQ(e$(U,J).dir,Q.view):Vz(U,J).descriptor,u=Q.at??h4(k.layout),p=FX(k);if(u>0&&u<p.length&&p[u]?.batch&&p[u]?.batch===p[u-1]?.batch){let a=u,Z0=u,L0=p[u].batch;while(a>0&&p[a-1]?.batch===L0)a--;while(Z0<p.length&&p[Z0]?.batch===L0)Z0++;throw Error(`position ${u} falls inside observation ${L0} — use ${a} or ${Z0}`)}let m=sQ(k,u);return f2(p.slice(0,u),m.layout,U)}let O=Q.until===void 0?`${y2(U,J)}#${MI(CJ(U,J))}`:null;if(O!==null){let k=M$().read(Zz(U,J)),u=k===null?null:JSON.parse(k);if(u?.facts===O)return new Map(u.subjects.map((p)=>[`${p.type}:${p.id}`,{...p,fields:{...p.fields}}]))}let X=w2(U,J),z=X?FX(X):[],V=Jv(U,J),L=[...z,...V],S=TJ(U,J),E=Q.until===void 0?-1:S.findIndex((k)=>k.id===Q.until),_=E<0?S:S.slice(0,E),M=T4({inherited:X,own:V}),P=T4(_),v=Q.until===void 0?M$().read(Zz(U,J)):null,N=v===null?null:JSON.parse(v);if(N?.parentDigest===M&&N.branchDigest===P)return new Map(N.subjects.map((k)=>[`${k.type}:${k.id}`,{...k,fields:{...k.fields}}]));let f={...X?{base:X.layout}:{},parent:V.length,branch:_.length},x=N?.parentDigest===M&&N.branchCount<=_.length&&T4(_.slice(0,N.branchCount))===N.branchDigest&&!_.slice(N.branchCount).some((k)=>k.op==="revert"),b=x?new Map(N.subjects.map((k)=>[`${k.type}:${k.id}`,{...k,fields:{...k.fields}}])):f2([...L,..._],f,U);if(x)u2(b,_.slice(N.branchCount),$Y(L)),gF(b,LI(L),U);if(Q.until===void 0&&L.length+_.length>Xv){let k=`${y2(U,J)}#${MI(CJ(U,J))}`;M$().writeAtomic(Zz(U,J),JSON.stringify({parentDigest:M,branchDigest:P,branchCount:_.length,subjects:[...b.values()],...k===O?{facts:O}:{}}))}return b})}function Kz(U,J,Q={}){let O=Q.subject??U.subject,X=Q.vendorSubjectId!==void 0&&Q.vendorSubjectId!==""&&Q.vendorSubjectId!==O.id?{type:O.type,id:Q.vendorSubjectId}:O,z=Q.fields??U.fields??{},V=T4({landsId:U.id,subject:X,fields:z,status:J.status}),{event:L,receipt:S,aliasOf:E,landsId:_,...M}=U;return{...M,id:`landed:${U.service}:${X.type}:${X.id}:${U.id}:${V}`,op:"set",subject:X,fields:z,landsId:U.id,...X.id!==O.id?{aliasOf:O.id}:{},receipt:J}}var Uv=new WeakMap;function h2(U,J){let Q=zz(U.service,J),O=M$();return O.mkdir(s$(Q)),C6(()=>O.withLock(`${Q}.lock`,()=>{let X=Uv.get(O);if(!X)X=new Map,Uv.set(O,X);let z=X.get(Q);if(!z||z.key!==MI(Q))z={key:MI(Q),ids:new Set(kF(Q).flatMap((V)=>typeof V.id==="string"?[V.id]:[]))},X.set(Q,z);if(z.ids.has(U.id))return{appended:!1};return O.append(Q,`${JSON.stringify(U)}
268
+ `),z.ids.add(U.id),z.key=MI(Q),{appended:!0}}))}var _$={};y6(_$,{xor:()=>uB,xid:()=>GB,void:()=>kB,uuidv7:()=>ev,uuidv6:()=>sv,uuidv4:()=>av,uuid:()=>tv,util:()=>G$,url:()=>$B,uppercase:()=>KY,unknown:()=>NJ,union:()=>hK,undefined:()=>BB,ulid:()=>YB,uint64:()=>jB,uint32:()=>EB,tuple:()=>IA,trim:()=>MY,treeifyError:()=>oF,transform:()=>pK,toUpperCase:()=>qY,toLowerCase:()=>AY,toJSONSchema:()=>DK,templateLiteral:()=>sB,symbol:()=>vB,superRefine:()=>BA,success:()=>iB,stringbool:()=>YN,stringFormat:()=>MB,string:()=>OV,strictObject:()=>fB,startsWith:()=>WY,slugify:()=>TY,size:()=>jJ,setErrorMap:()=>$l,set:()=>lB,safeParseAsync:()=>B7,safeParse:()=>v7,safeEncodeAsync:()=>y7,safeEncode:()=>w7,safeDecodeAsync:()=>u7,safeDecode:()=>f7,registry:()=>uz,regexes:()=>C4,regex:()=>OY,refine:()=>vA,record:()=>XA,readonly:()=>RA,property:()=>ZK,promise:()=>eB,prettifyError:()=>iF,preprocess:()=>VN,prefault:()=>FA,positive:()=>QK,pipe:()=>qK,partialRecord:()=>hB,parseAsync:()=>j7,parse:()=>S7,overwrite:()=>I1,optional:()=>KV,object:()=>wB,number:()=>h7,nullish:()=>oB,nullable:()=>DV,null:()=>d7,normalize:()=>LY,nonpositive:()=>GK,nonoptional:()=>HA,nonnegative:()=>VK,never:()=>bK,negative:()=>YK,nativeEnum:()=>mB,nanoid:()=>XB,nan:()=>rB,multipleOf:()=>qX,minSize:()=>b1,minLength:()=>qI,mime:()=>HY,meta:()=>JN,maxSize:()=>TX,maxLength:()=>vJ,map:()=>pB,mac:()=>OB,lte:()=>R4,lt:()=>y1,lowercase:()=>zY,looseRecord:()=>cB,looseObject:()=>yB,locales:()=>YV,literal:()=>dB,length:()=>BJ,lazy:()=>_A,ksuid:()=>VB,keyof:()=>xB,jwt:()=>LB,json:()=>GN,iso:()=>PY,ipv6:()=>zB,ipv4:()=>ZB,invertCodec:()=>aB,intersection:()=>$A,int64:()=>SB,int32:()=>PB,int:()=>AK,instanceof:()=>QN,includes:()=>DY,httpUrl:()=>UB,hostname:()=>AB,hex:()=>qB,hash:()=>TB,guid:()=>rv,gte:()=>l6,gt:()=>u1,globalRegistry:()=>R6,getErrorMap:()=>Ul,function:()=>$N,fromJSONSchema:()=>ON,formatError:()=>r2,float64:()=>RB,float32:()=>CB,flattenError:()=>i2,file:()=>nB,exactOptional:()=>OA,enum:()=>cK,endsWith:()=>FY,encodeAsync:()=>g7,encode:()=>N7,emoji:()=>IB,email:()=>iv,e164:()=>HB,discriminatedUnion:()=>bB,describe:()=>XN,decodeAsync:()=>x7,decode:()=>k7,date:()=>gB,custom:()=>IN,cuid2:()=>QB,cuid:()=>JB,core:()=>TI,config:()=>aU,coerce:()=>kA,codec:()=>tB,clone:()=>c6,cidrv6:()=>DB,cidrv4:()=>KB,check:()=>UN,catch:()=>AA,boolean:()=>c7,bigint:()=>_B,base64url:()=>FB,base64:()=>WB,array:()=>LV,any:()=>NB,_function:()=>$N,_default:()=>DA,_ZodString:()=>TK,ZodXor:()=>a7,ZodXID:()=>jK,ZodVoid:()=>r7,ZodUnknown:()=>o7,ZodUnion:()=>AV,ZodUndefined:()=>l7,ZodUUID:()=>h1,ZodURL:()=>FV,ZodULID:()=>SK,ZodType:()=>f$,ZodTuple:()=>UA,ZodTransform:()=>VA,ZodTemplateLiteral:()=>PA,ZodSymbol:()=>p7,ZodSuccess:()=>LA,ZodStringFormat:()=>DU,ZodString:()=>SY,ZodSet:()=>QA,ZodRecord:()=>EY,ZodRealError:()=>X4,ZodReadonly:()=>CA,ZodPromise:()=>SA,ZodPreprocess:()=>TA,ZodPrefault:()=>WA,ZodPipe:()=>qV,ZodOptional:()=>lK,ZodObject:()=>MV,ZodNumberFormat:()=>kJ,ZodNumber:()=>vY,ZodNullable:()=>zA,ZodNull:()=>m7,ZodNonOptional:()=>mK,ZodNever:()=>i7,ZodNanoID:()=>PK,ZodNaN:()=>qA,ZodMap:()=>JA,ZodMAC:()=>b7,ZodLiteral:()=>YA,ZodLazy:()=>EA,ZodKSUID:()=>vK,ZodJWT:()=>yK,ZodIssueCode:()=>ep,ZodIntersection:()=>e7,ZodISOTime:()=>LK,ZodISODuration:()=>MK,ZodISODateTime:()=>FK,ZodISODate:()=>HK,ZodIPv6:()=>NK,ZodIPv4:()=>BK,ZodGUID:()=>zV,ZodFunction:()=>jA,ZodFirstPartyTypeKind:()=>NA,ZodFile:()=>GA,ZodExactOptional:()=>ZA,ZodError:()=>ap,ZodEnum:()=>_Y,ZodEmoji:()=>RK,ZodEmail:()=>CK,ZodE164:()=>fK,ZodDiscriminatedUnion:()=>s7,ZodDefault:()=>KA,ZodDate:()=>HV,ZodCustomStringFormat:()=>jY,ZodCustom:()=>CV,ZodCodec:()=>TV,ZodCatch:()=>MA,ZodCUID2:()=>_K,ZodCUID:()=>EK,ZodCIDRv6:()=>gK,ZodCIDRv4:()=>kK,ZodBoolean:()=>BY,ZodBigIntFormat:()=>uK,ZodBigInt:()=>NY,ZodBase64URL:()=>wK,ZodBase64:()=>xK,ZodArray:()=>t7,ZodAny:()=>n7,TimePrecision:()=>IM,NEVER:()=>wF,$output:()=>t5,$input:()=>a5,$brand:()=>fF});var TI={};y6(TI,{version:()=>mH,util:()=>G$,treeifyError:()=>oF,toJSONSchema:()=>DK,toDotPath:()=>Dv,safeParseAsync:()=>tF,safeParse:()=>rF,safeEncodeAsync:()=>eh,safeEncode:()=>ah,safeDecodeAsync:()=>$c,safeDecode:()=>sh,registry:()=>uz,regexes:()=>C4,process:()=>GU,prettifyError:()=>iF,parseAsync:()=>Hz,parse:()=>Fz,meta:()=>fM,locales:()=>YV,isValidJWT:()=>wv,isValidBase64URL:()=>xv,isValidBase64:()=>KL,initializeContext:()=>CX,globalRegistry:()=>R6,globalConfig:()=>RJ,formatError:()=>r2,flattenError:()=>i2,finalize:()=>PX,extractDefs:()=>RX,encodeAsync:()=>rh,encode:()=>oh,describe:()=>wM,decodeAsync:()=>th,decode:()=>ih,createToJSONSchemaMethod:()=>uM,createStandardJSONSchemaMethod:()=>RY,config:()=>aU,clone:()=>c6,_xor:()=>Sp,_xid:()=>rz,_void:()=>_M,_uuidv7:()=>lz,_uuidv6:()=>pz,_uuidv4:()=>cz,_uuid:()=>hz,_url:()=>VV,_uppercase:()=>KY,_unknown:()=>PM,_union:()=>_p,_undefined:()=>TM,_ulid:()=>iz,_uint64:()=>AM,_uint32:()=>DM,_tuple:()=>Bp,_trim:()=>MY,_transform:()=>yp,_toUpperCase:()=>qY,_toLowerCase:()=>AY,_templateLiteral:()=>np,_symbol:()=>qM,_superRefine:()=>xM,_success:()=>pp,_stringbool:()=>yM,_stringFormat:()=>CY,_string:()=>e5,_startsWith:()=>WY,_slugify:()=>TY,_size:()=>jJ,_set:()=>gp,_safeParseAsync:()=>GY,_safeParse:()=>YY,_safeEncodeAsync:()=>Rz,_safeEncode:()=>Tz,_safeDecodeAsync:()=>Pz,_safeDecode:()=>Cz,_regex:()=>OY,_refine:()=>gM,_record:()=>Np,_readonly:()=>dp,_property:()=>ZK,_promise:()=>ip,_positive:()=>QK,_pipe:()=>mp,_parseAsync:()=>QY,_parse:()=>JY,_overwrite:()=>I1,_optional:()=>up,_number:()=>GM,_nullable:()=>bp,_null:()=>CM,_normalize:()=>LY,_nonpositive:()=>GK,_nonoptional:()=>cp,_nonnegative:()=>VK,_never:()=>EM,_negative:()=>YK,_nativeEnum:()=>wp,_nanoid:()=>dz,_nan:()=>vM,_multipleOf:()=>qX,_minSize:()=>b1,_minLength:()=>qI,_min:()=>l6,_mime:()=>HY,_maxSize:()=>TX,_maxLength:()=>vJ,_max:()=>R4,_map:()=>kp,_mac:()=>UM,_lte:()=>R4,_lt:()=>y1,_lowercase:()=>zY,_literal:()=>fp,_length:()=>BJ,_lazy:()=>op,_ksuid:()=>tz,_jwt:()=>JK,_isoTime:()=>QM,_isoDuration:()=>YM,_isoDateTime:()=>XM,_isoDate:()=>JM,_ipv6:()=>sz,_ipv4:()=>az,_intersection:()=>vp,_int64:()=>MM,_int32:()=>KM,_int:()=>ZM,_includes:()=>DY,_guid:()=>GV,_gte:()=>l6,_gt:()=>u1,_float64:()=>zM,_float32:()=>OM,_file:()=>NM,_enum:()=>xp,_endsWith:()=>FY,_encodeAsync:()=>Az,_encode:()=>Lz,_emoji:()=>mz,_email:()=>bz,_e164:()=>XK,_discriminatedUnion:()=>jp,_default:()=>hp,_decodeAsync:()=>qz,_decode:()=>Mz,_date:()=>SM,_custom:()=>kM,_cuid2:()=>oz,_cuid:()=>nz,_coercedString:()=>$M,_coercedNumber:()=>VM,_coercedDate:()=>jM,_coercedBoolean:()=>FM,_coercedBigint:()=>LM,_cidrv6:()=>$K,_cidrv4:()=>ez,_check:()=>mv,_catch:()=>lp,_boolean:()=>WM,_bigint:()=>HM,_base64url:()=>IK,_base64:()=>UK,_array:()=>BM,_any:()=>RM,TimePrecision:()=>IM,NEVER:()=>wF,JSONSchemaGenerator:()=>C7,JSONSchema:()=>dv,Doc:()=>jz,$output:()=>t5,$input:()=>a5,$constructor:()=>j0,$brand:()=>fF,$ZodXor:()=>BL,$ZodXID:()=>UL,$ZodVoid:()=>_L,$ZodUnknown:()=>PL,$ZodUnion:()=>$V,$ZodUndefined:()=>TL,$ZodUUID:()=>oH,$ZodURL:()=>rH,$ZodULID:()=>$L,$ZodType:()=>S$,$ZodTuple:()=>wz,$ZodTransform:()=>bL,$ZodTemplateLiteral:()=>tL,$ZodSymbol:()=>qL,$ZodSuccess:()=>dL,$ZodStringFormat:()=>KU,$ZodString:()=>SJ,$ZodSet:()=>wL,$ZodRegistry:()=>s5,$ZodRecord:()=>gL,$ZodRealError:()=>I4,$ZodReadonly:()=>rL,$ZodPromise:()=>sL,$ZodPreprocess:()=>iL,$ZodPrefault:()=>lL,$ZodPipe:()=>yz,$ZodOptional:()=>fz,$ZodObjectJIT:()=>vL,$ZodObject:()=>uv,$ZodNumberFormat:()=>ML,$ZodNumber:()=>gz,$ZodNullable:()=>cL,$ZodNull:()=>CL,$ZodNonOptional:()=>mL,$ZodNever:()=>EL,$ZodNanoID:()=>aH,$ZodNaN:()=>oL,$ZodMap:()=>xL,$ZodMAC:()=>ZL,$ZodLiteral:()=>yL,$ZodLazy:()=>eL,$ZodKSUID:()=>IL,$ZodJWT:()=>HL,$ZodIntersection:()=>kL,$ZodISOTime:()=>QL,$ZodISODuration:()=>YL,$ZodISODateTime:()=>XL,$ZodISODate:()=>JL,$ZodIPv6:()=>VL,$ZodIPv4:()=>GL,$ZodGUID:()=>nH,$ZodFunction:()=>aL,$ZodFile:()=>uL,$ZodExactOptional:()=>hL,$ZodError:()=>o2,$ZodEnum:()=>fL,$ZodEncodeError:()=>PJ,$ZodEmoji:()=>tH,$ZodEmail:()=>iH,$ZodE164:()=>FL,$ZodDiscriminatedUnion:()=>NL,$ZodDefault:()=>pL,$ZodDate:()=>SL,$ZodCustomStringFormat:()=>LL,$ZodCustom:()=>$5,$ZodCodec:()=>UV,$ZodCheckUpperCase:()=>yH,$ZodCheckStringFormat:()=>VY,$ZodCheckStartsWith:()=>bH,$ZodCheckSizeEquals:()=>NH,$ZodCheckRegex:()=>wH,$ZodCheckProperty:()=>cH,$ZodCheckOverwrite:()=>lH,$ZodCheckNumberFormat:()=>SH,$ZodCheckMultipleOf:()=>_H,$ZodCheckMinSize:()=>BH,$ZodCheckMinLength:()=>gH,$ZodCheckMimeType:()=>pH,$ZodCheckMaxSize:()=>vH,$ZodCheckMaxLength:()=>kH,$ZodCheckLowerCase:()=>fH,$ZodCheckLessThan:()=>_z,$ZodCheckLengthEquals:()=>xH,$ZodCheckIncludes:()=>uH,$ZodCheckGreaterThan:()=>Sz,$ZodCheckEndsWith:()=>hH,$ZodCheckBigIntFormat:()=>jH,$ZodCheck:()=>MU,$ZodCatch:()=>nL,$ZodCUID2:()=>eH,$ZodCUID:()=>sH,$ZodCIDRv6:()=>zL,$ZodCIDRv4:()=>OL,$ZodBoolean:()=>e2,$ZodBigIntFormat:()=>AL,$ZodBigInt:()=>xz,$ZodBase64URL:()=>WL,$ZodBase64:()=>DL,$ZodAsyncError:()=>f1,$ZodArray:()=>jL,$ZodAny:()=>RL});var Gv,wF=Object.freeze({status:"aborted"});function j0(U,J,Q){function O(L,S){if(!L._zod)Object.defineProperty(L,"_zod",{value:{def:S,constr:V,traits:new Set},enumerable:!1});if(L._zod.traits.has(U))return;L._zod.traits.add(U),J(L,S);let E=V.prototype,_=Object.keys(E);for(let M=0;M<_.length;M++){let P=_[M];if(!(P in L))L[P]=E[P].bind(L)}}let X=Q?.Parent??Object;class z extends X{}Object.defineProperty(z,"name",{value:U});function V(L){var S;let E=Q?.Parent?new z:this;O(E,L),(S=E._zod).deferred??(S.deferred=[]);for(let _ of E._zod.deferred)_();return E}return Object.defineProperty(V,"init",{value:O}),Object.defineProperty(V,Symbol.hasInstance,{value:(L)=>{if(Q?.Parent&&L instanceof Q.Parent)return!0;return L?._zod?.traits?.has(U)}}),Object.defineProperty(V,"name",{value:U}),V}var fF=Symbol("zod_brand");class f1 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class PJ extends Error{constructor(U){super(`Encountered unidirectional transform during encode: ${U}`);this.name="ZodEncodeError"}}(Gv=globalThis).__zod_globalConfig??(Gv.__zod_globalConfig={});var RJ=globalThis.__zod_globalConfig;function aU(U){if(U)Object.assign(RJ,U);return RJ}var G$={};y6(G$,{unwrapMessage:()=>c2,uint8ArrayToHex:()=>dh,uint8ArrayToBase64url:()=>lh,uint8ArrayToBase64:()=>Ov,stringifyPrimitive:()=>J$,slugify:()=>bF,shallowClone:()=>cF,safeExtend:()=>yh,required:()=>hh,randomString:()=>Bh,propertyKeyTypes:()=>m2,promiseAllObject:()=>vh,primitiveTypes:()=>pF,prefixIssues:()=>U4,pick:()=>xh,partial:()=>bh,parsedType:()=>Q$,optionalKeys:()=>lF,omit:()=>wh,objectClone:()=>_h,numKeys:()=>Nh,nullish:()=>HX,normalizeParams:()=>V$,mergeDefs:()=>AI,merge:()=>uh,jsonStringifyReplacer:()=>UY,joinValues:()=>x0,issue:()=>XY,isPlainObject:()=>MX,isObject:()=>EJ,hexToUint8Array:()=>mh,getSizableOrigin:()=>d2,getParsedType:()=>kh,getLengthableOrigin:()=>n2,getEnumValues:()=>p2,getElementAtPath:()=>jh,floatSafeRemainder:()=>uF,finalizeIssue:()=>p6,extend:()=>fh,explicitlyAborted:()=>nF,escapeRegex:()=>c4,esc:()=>Dz,defineLazy:()=>l$,createTransparentProxy:()=>gh,cloneDef:()=>Sh,clone:()=>c6,cleanRegex:()=>l2,cleanEnum:()=>ch,captureStackTrace:()=>Wz,cached:()=>IY,base64urlToUint8Array:()=>ph,base64ToUint8Array:()=>Zv,assignProp:()=>LX,assertNotEqual:()=>Ch,assertNever:()=>Ph,assertIs:()=>Rh,assertEqual:()=>Th,assert:()=>Eh,allowsEval:()=>hF,aborted:()=>AX,NUMBER_FORMAT_RANGES:()=>mF,Class:()=>zv,BIGINT_FORMAT_RANGES:()=>dF});function Th(U){return U}function Ch(U){return U}function Rh(U){}function Ph(U){throw Error("Unexpected value in exhaustive check")}function Eh(U){}function p2(U){let J=Object.values(U).filter((O)=>typeof O==="number");return Object.entries(U).filter(([O,X])=>J.indexOf(+O)===-1).map(([O,X])=>X)}function x0(U,J="|"){return U.map((Q)=>J$(Q)).join(J)}function UY(U,J){if(typeof J==="bigint")return J.toString();return J}function IY(U){return{get value(){{let Q=U();return Object.defineProperty(this,"value",{value:Q}),Q}throw Error("cached value already set")}}}function HX(U){return U===null||U===void 0}function l2(U){let J=U.startsWith("^")?1:0,Q=U.endsWith("$")?U.length-1:U.length;return U.slice(J,Q)}function uF(U,J){let Q=U/J,O=Math.round(Q),X=Number.EPSILON*Math.max(Math.abs(Q),1);if(Math.abs(Q-O)<X)return 0;return Q-O}var Vv=Symbol("evaluating");function l$(U,J,Q){let O=void 0;Object.defineProperty(U,J,{get(){if(O===Vv)return;if(O===void 0)O=Vv,O=Q();return O},set(X){Object.defineProperty(U,J,{value:X})},configurable:!0})}function _h(U){return Object.create(Object.getPrototypeOf(U),Object.getOwnPropertyDescriptors(U))}function LX(U,J,Q){Object.defineProperty(U,J,{value:Q,writable:!0,enumerable:!0,configurable:!0})}function AI(...U){let J={};for(let Q of U){let O=Object.getOwnPropertyDescriptors(Q);Object.assign(J,O)}return Object.defineProperties({},J)}function Sh(U){return AI(U._zod.def)}function jh(U,J){if(!J)return U;return J.reduce((Q,O)=>Q?.[O],U)}function vh(U){let J=Object.keys(U),Q=J.map((O)=>U[O]);return Promise.all(Q).then((O)=>{let X={};for(let z=0;z<J.length;z++)X[J[z]]=O[z];return X})}function Bh(U=10){let Q="";for(let O=0;O<U;O++)Q+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return Q}function Dz(U){return JSON.stringify(U)}function bF(U){return U.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Wz="captureStackTrace"in Error?Error.captureStackTrace:(...U)=>{};function EJ(U){return typeof U==="object"&&U!==null&&!Array.isArray(U)}var hF=IY(()=>{if(RJ.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(U){return!1}});function MX(U){if(EJ(U)===!1)return!1;let J=U.constructor;if(J===void 0)return!0;if(typeof J!=="function")return!0;let Q=J.prototype;if(EJ(Q)===!1)return!1;if(Object.prototype.hasOwnProperty.call(Q,"isPrototypeOf")===!1)return!1;return!0}function cF(U){if(MX(U))return{...U};if(Array.isArray(U))return[...U];if(U instanceof Map)return new Map(U);if(U instanceof Set)return new Set(U);return U}function Nh(U){let J=0;for(let Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))J++;return J}var kh=(U)=>{let J=typeof U;switch(J){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(U)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(U))return"array";if(U===null)return"null";if(U.then&&typeof U.then==="function"&&U.catch&&typeof U.catch==="function")return"promise";if(typeof Map<"u"&&U instanceof Map)return"map";if(typeof Set<"u"&&U instanceof Set)return"set";if(typeof Date<"u"&&U instanceof Date)return"date";if(typeof File<"u"&&U instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${J}`)}},m2=new Set(["string","number","symbol"]),pF=new Set(["string","number","bigint","boolean","symbol","undefined"]);function c4(U){return U.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c6(U,J,Q){let O=new U._zod.constr(J??U._zod.def);if(!J||Q?.parent)O._zod.parent=U;return O}function V$(U){let J=U;if(!J)return{};if(typeof J==="string")return{error:()=>J};if(J?.message!==void 0){if(J?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");J.error=J.message}if(delete J.message,typeof J.error==="string")return{...J,error:()=>J.error};return J}function gh(U){let J;return new Proxy({},{get(Q,O,X){return J??(J=U()),Reflect.get(J,O,X)},set(Q,O,X,z){return J??(J=U()),Reflect.set(J,O,X,z)},has(Q,O){return J??(J=U()),Reflect.has(J,O)},deleteProperty(Q,O){return J??(J=U()),Reflect.deleteProperty(J,O)},ownKeys(Q){return J??(J=U()),Reflect.ownKeys(J)},getOwnPropertyDescriptor(Q,O){return J??(J=U()),Reflect.getOwnPropertyDescriptor(J,O)},defineProperty(Q,O,X){return J??(J=U()),Reflect.defineProperty(J,O,X)}})}function J$(U){if(typeof U==="bigint")return U.toString()+"n";if(typeof U==="string")return`"${U}"`;return`${U}`}function lF(U){return Object.keys(U).filter((J)=>{return U[J]._zod.optin==="optional"&&U[J]._zod.optout==="optional"})}var mF={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},dF={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xh(U,J){let Q=U._zod.def,O=Q.checks;if(O&&O.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let z=AI(U._zod.def,{get shape(){let V={};for(let L in J){if(!(L in Q.shape))throw Error(`Unrecognized key: "${L}"`);if(!J[L])continue;V[L]=Q.shape[L]}return LX(this,"shape",V),V},checks:[]});return c6(U,z)}function wh(U,J){let Q=U._zod.def,O=Q.checks;if(O&&O.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let z=AI(U._zod.def,{get shape(){let V={...U._zod.def.shape};for(let L in J){if(!(L in Q.shape))throw Error(`Unrecognized key: "${L}"`);if(!J[L])continue;delete V[L]}return LX(this,"shape",V),V},checks:[]});return c6(U,z)}function fh(U,J){if(!MX(J))throw Error("Invalid input to extend: expected a plain object");let Q=U._zod.def.checks;if(Q&&Q.length>0){let z=U._zod.def.shape;for(let V in J)if(Object.getOwnPropertyDescriptor(z,V)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let X=AI(U._zod.def,{get shape(){let z={...U._zod.def.shape,...J};return LX(this,"shape",z),z}});return c6(U,X)}function yh(U,J){if(!MX(J))throw Error("Invalid input to safeExtend: expected a plain object");let Q=AI(U._zod.def,{get shape(){let O={...U._zod.def.shape,...J};return LX(this,"shape",O),O}});return c6(U,Q)}function uh(U,J){if(U._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let Q=AI(U._zod.def,{get shape(){let O={...U._zod.def.shape,...J._zod.def.shape};return LX(this,"shape",O),O},get catchall(){return J._zod.def.catchall},checks:J._zod.def.checks??[]});return c6(U,Q)}function bh(U,J,Q){let X=J._zod.def.checks;if(X&&X.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let V=AI(J._zod.def,{get shape(){let L=J._zod.def.shape,S={...L};if(Q)for(let E in Q){if(!(E in L))throw Error(`Unrecognized key: "${E}"`);if(!Q[E])continue;S[E]=U?new U({type:"optional",innerType:L[E]}):L[E]}else for(let E in L)S[E]=U?new U({type:"optional",innerType:L[E]}):L[E];return LX(this,"shape",S),S},checks:[]});return c6(J,V)}function hh(U,J,Q){let O=AI(J._zod.def,{get shape(){let X=J._zod.def.shape,z={...X};if(Q)for(let V in Q){if(!(V in z))throw Error(`Unrecognized key: "${V}"`);if(!Q[V])continue;z[V]=new U({type:"nonoptional",innerType:X[V]})}else for(let V in X)z[V]=new U({type:"nonoptional",innerType:X[V]});return LX(this,"shape",z),z}});return c6(J,O)}function AX(U,J=0){if(U.aborted===!0)return!0;for(let Q=J;Q<U.issues.length;Q++)if(U.issues[Q]?.continue!==!0)return!0;return!1}function nF(U,J=0){if(U.aborted===!0)return!0;for(let Q=J;Q<U.issues.length;Q++)if(U.issues[Q]?.continue===!1)return!0;return!1}function U4(U,J){return J.map((Q)=>{var O;return(O=Q).path??(O.path=[]),Q.path.unshift(U),Q})}function c2(U){return typeof U==="string"?U:U?.message}function p6(U,J,Q){let O=U.message?U.message:c2(U.inst?._zod.def?.error?.(U))??c2(J?.error?.(U))??c2(Q.customError?.(U))??c2(Q.localeError?.(U))??"Invalid input",{inst:X,continue:z,input:V,...L}=U;if(L.path??(L.path=[]),L.message=O,J?.reportInput)L.input=V;return L}function d2(U){if(U instanceof Set)return"set";if(U instanceof Map)return"map";if(U instanceof File)return"file";return"unknown"}function n2(U){if(Array.isArray(U))return"array";if(typeof U==="string")return"string";return"unknown"}function Q$(U){let J=typeof U;switch(J){case"number":return Number.isNaN(U)?"nan":"number";case"object":{if(U===null)return"null";if(Array.isArray(U))return"array";let Q=U;if(Q&&Object.getPrototypeOf(Q)!==Object.prototype&&"constructor"in Q&&Q.constructor)return Q.constructor.name}}return J}function XY(...U){let[J,Q,O]=U;if(typeof J==="string")return{message:J,code:"custom",input:Q,inst:O};return{...J}}function ch(U){return Object.entries(U).filter(([J,Q])=>{return Number.isNaN(Number.parseInt(J,10))}).map((J)=>J[1])}function Zv(U){let J=atob(U),Q=new Uint8Array(J.length);for(let O=0;O<J.length;O++)Q[O]=J.charCodeAt(O);return Q}function Ov(U){let J="";for(let Q=0;Q<U.length;Q++)J+=String.fromCharCode(U[Q]);return btoa(J)}function ph(U){let J=U.replace(/-/g,"+").replace(/_/g,"/"),Q="=".repeat((4-J.length%4)%4);return Zv(J+Q)}function lh(U){return Ov(U).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function mh(U){let J=U.replace(/^0x/,"");if(J.length%2!==0)throw Error("Invalid hex string length");let Q=new Uint8Array(J.length/2);for(let O=0;O<J.length;O+=2)Q[O/2]=Number.parseInt(J.slice(O,O+2),16);return Q}function dh(U){return Array.from(U).map((J)=>J.toString(16).padStart(2,"0")).join("")}class zv{constructor(...U){}}var Kv=(U,J)=>{U.name="$ZodError",Object.defineProperty(U,"_zod",{value:U._zod,enumerable:!1}),Object.defineProperty(U,"issues",{value:J,enumerable:!1}),U.message=JSON.stringify(J,UY,2),Object.defineProperty(U,"toString",{value:()=>U.message,enumerable:!1})},o2=j0("$ZodError",Kv),I4=j0("$ZodError",Kv,{Parent:Error});function i2(U,J=(Q)=>Q.message){let Q={},O=[];for(let X of U.issues)if(X.path.length>0)Q[X.path[0]]=Q[X.path[0]]||[],Q[X.path[0]].push(J(X));else O.push(J(X));return{formErrors:O,fieldErrors:Q}}function r2(U,J=(Q)=>Q.message){let Q={_errors:[]},O=(X,z=[])=>{for(let V of X.issues)if(V.code==="invalid_union"&&V.errors.length)V.errors.map((L)=>O({issues:L},[...z,...V.path]));else if(V.code==="invalid_key")O({issues:V.issues},[...z,...V.path]);else if(V.code==="invalid_element")O({issues:V.issues},[...z,...V.path]);else{let L=[...z,...V.path];if(L.length===0)Q._errors.push(J(V));else{let S=Q,E=0;while(E<L.length){let _=L[E];if(E!==L.length-1)S[_]=S[_]||{_errors:[]};else S[_]=S[_]||{_errors:[]},S[_]._errors.push(J(V));S=S[_],E++}}}};return O(U),Q}function oF(U,J=(Q)=>Q.message){let Q={errors:[]},O=(X,z=[])=>{var V,L;for(let S of X.issues)if(S.code==="invalid_union"&&S.errors.length)S.errors.map((E)=>O({issues:E},[...z,...S.path]));else if(S.code==="invalid_key")O({issues:S.issues},[...z,...S.path]);else if(S.code==="invalid_element")O({issues:S.issues},[...z,...S.path]);else{let E=[...z,...S.path];if(E.length===0){Q.errors.push(J(S));continue}let _=Q,M=0;while(M<E.length){let P=E[M],v=M===E.length-1;if(typeof P==="string")_.properties??(_.properties={}),(V=_.properties)[P]??(V[P]={errors:[]}),_=_.properties[P];else _.items??(_.items=[]),(L=_.items)[P]??(L[P]={errors:[]}),_=_.items[P];if(v)_.errors.push(J(S));M++}}};return O(U),Q}function Dv(U){let J=[],Q=U.map((O)=>typeof O==="object"?O.key:O);for(let O of Q)if(typeof O==="number")J.push(`[${O}]`);else if(typeof O==="symbol")J.push(`[${JSON.stringify(String(O))}]`);else if(/[^\w$]/.test(O))J.push(`[${JSON.stringify(O)}]`);else{if(J.length)J.push(".");J.push(O)}return J.join("")}function iF(U){let J=[],Q=[...U.issues].sort((O,X)=>(O.path??[]).length-(X.path??[]).length);for(let O of Q)if(J.push(`✖ ${O.message}`),O.path?.length)J.push(` → at ${Dv(O.path)}`);return J.join(`
269
+ `)}var JY=(U)=>(J,Q,O,X)=>{let z=O?{...O,async:!1}:{async:!1},V=J._zod.run({value:Q,issues:[]},z);if(V instanceof Promise)throw new f1;if(V.issues.length){let L=new(X?.Err??U)(V.issues.map((S)=>p6(S,z,aU())));throw Wz(L,X?.callee),L}return V.value},Fz=JY(I4),QY=(U)=>async(J,Q,O,X)=>{let z=O?{...O,async:!0}:{async:!0},V=J._zod.run({value:Q,issues:[]},z);if(V instanceof Promise)V=await V;if(V.issues.length){let L=new(X?.Err??U)(V.issues.map((S)=>p6(S,z,aU())));throw Wz(L,X?.callee),L}return V.value},Hz=QY(I4),YY=(U)=>(J,Q,O)=>{let X=O?{...O,async:!1}:{async:!1},z=J._zod.run({value:Q,issues:[]},X);if(z instanceof Promise)throw new f1;return z.issues.length?{success:!1,error:new(U??o2)(z.issues.map((V)=>p6(V,X,aU())))}:{success:!0,data:z.value}},rF=YY(I4),GY=(U)=>async(J,Q,O)=>{let X=O?{...O,async:!0}:{async:!0},z=J._zod.run({value:Q,issues:[]},X);if(z instanceof Promise)z=await z;return z.issues.length?{success:!1,error:new U(z.issues.map((V)=>p6(V,X,aU())))}:{success:!0,data:z.value}},tF=GY(I4),Lz=(U)=>(J,Q,O)=>{let X=O?{...O,direction:"backward"}:{direction:"backward"};return JY(U)(J,Q,X)},oh=Lz(I4),Mz=(U)=>(J,Q,O)=>{return JY(U)(J,Q,O)},ih=Mz(I4),Az=(U)=>async(J,Q,O)=>{let X=O?{...O,direction:"backward"}:{direction:"backward"};return QY(U)(J,Q,X)},rh=Az(I4),qz=(U)=>async(J,Q,O)=>{return QY(U)(J,Q,O)},th=qz(I4),Tz=(U)=>(J,Q,O)=>{let X=O?{...O,direction:"backward"}:{direction:"backward"};return YY(U)(J,Q,X)},ah=Tz(I4),Cz=(U)=>(J,Q,O)=>{return YY(U)(J,Q,O)},sh=Cz(I4),Rz=(U)=>async(J,Q,O)=>{let X=O?{...O,direction:"backward"}:{direction:"backward"};return GY(U)(J,Q,X)},eh=Rz(I4),Pz=(U)=>async(J,Q,O)=>{return GY(U)(J,Q,O)},$c=Pz(I4);var C4={};y6(C4,{xid:()=>$H,uuid7:()=>Jc,uuid6:()=>Xc,uuid4:()=>Ic,uuid:()=>_J,uppercase:()=>EH,unicodeEmail:()=>Wv,undefined:()=>RH,ulid:()=>eF,time:()=>HH,string:()=>MH,sha512_hex:()=>Ec,sha512_base64url:()=>Sc,sha512_base64:()=>_c,sha384_hex:()=>Cc,sha384_base64url:()=>Pc,sha384_base64:()=>Rc,sha256_hex:()=>Ac,sha256_base64url:()=>Tc,sha256_base64:()=>qc,sha1_hex:()=>Hc,sha1_base64url:()=>Mc,sha1_base64:()=>Lc,rfc5322Email:()=>Yc,number:()=>t2,null:()=>CH,nanoid:()=>IH,md5_hex:()=>Dc,md5_base64url:()=>Fc,md5_base64:()=>Wc,mac:()=>ZH,lowercase:()=>PH,ksuid:()=>UH,ipv6:()=>VH,ipv4:()=>GH,integer:()=>qH,idnEmail:()=>Gc,httpProtocol:()=>DH,html5Email:()=>Qc,hostname:()=>Oc,hex:()=>Kc,guid:()=>JH,extendedDuration:()=>Uc,emoji:()=>YH,email:()=>QH,e164:()=>WH,duration:()=>XH,domain:()=>zc,datetime:()=>LH,date:()=>FH,cuid2:()=>sF,cuid:()=>aF,cidrv6:()=>zH,cidrv4:()=>OH,browserEmail:()=>Vc,boolean:()=>TH,bigint:()=>AH,base64url:()=>Ez,base64:()=>KH});var aF=/^[cC][0-9a-z]{6,}$/,sF=/^[0-9a-z]+$/,eF=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$H=/^[0-9a-vA-V]{20}$/,UH=/^[A-Za-z0-9]{27}$/,IH=/^[a-zA-Z0-9_-]{21}$/,XH=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Uc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,JH=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,_J=(U)=>{if(!U)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${U}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},Ic=_J(4),Xc=_J(6),Jc=_J(7),QH=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Qc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yc=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Wv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Gc=Wv,Vc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Zc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function YH(){return new RegExp(Zc,"u")}var GH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,VH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ZH=(U)=>{let J=c4(U??":");return new RegExp(`^(?:[0-9A-F]{2}${J}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${J}){5}[0-9a-f]{2}$`)},OH=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,KH=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ez=/^[A-Za-z0-9_-]*$/,Oc=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,DH=/^https?$/,WH=/^\+[1-9]\d{6,14}$/,Fv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",FH=new RegExp(`^${Fv}$`);function Hv(U){return typeof U.precision==="number"?U.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":U.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${U.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function HH(U){return new RegExp(`^${Hv(U)}$`)}function LH(U){let J=Hv({precision:U.precision}),Q=["Z"];if(U.local)Q.push("");if(U.offset)Q.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let O=`${J}(?:${Q.join("|")})`;return new RegExp(`^${Fv}T(?:${O})$`)}var MH=(U)=>{let J=U?`[\\s\\S]{${U?.minimum??0},${U?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${J}$`)},AH=/^-?\d+n?$/,qH=/^-?\d+$/,t2=/^-?\d+(?:\.\d+)?$/,TH=/^(?:true|false)$/i,CH=/^null$/i;var RH=/^undefined$/i;var PH=/^[^A-Z]*$/,EH=/^[^a-z]*$/,Kc=/^[0-9a-fA-F]*$/;function a2(U,J){return new RegExp(`^[A-Za-z0-9+/]{${U}}${J}$`)}function s2(U){return new RegExp(`^[A-Za-z0-9_-]{${U}}$`)}var Dc=/^[0-9a-fA-F]{32}$/,Wc=a2(22,"=="),Fc=s2(22),Hc=/^[0-9a-fA-F]{40}$/,Lc=a2(27,"="),Mc=s2(27),Ac=/^[0-9a-fA-F]{64}$/,qc=a2(43,"="),Tc=s2(43),Cc=/^[0-9a-fA-F]{96}$/,Rc=a2(64,""),Pc=s2(64),Ec=/^[0-9a-fA-F]{128}$/,_c=a2(86,"=="),Sc=s2(86);var MU=j0("$ZodCheck",(U,J)=>{var Q;U._zod??(U._zod={}),U._zod.def=J,(Q=U._zod).onattach??(Q.onattach=[])}),Mv={number:"number",bigint:"bigint",object:"date"},_z=j0("$ZodCheckLessThan",(U,J)=>{MU.init(U,J);let Q=Mv[typeof J.value];U._zod.onattach.push((O)=>{let X=O._zod.bag,z=(J.inclusive?X.maximum:X.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(J.value<z)if(J.inclusive)X.maximum=J.value;else X.exclusiveMaximum=J.value}),U._zod.check=(O)=>{if(J.inclusive?O.value<=J.value:O.value<J.value)return;O.issues.push({origin:Q,code:"too_big",maximum:typeof J.value==="object"?J.value.getTime():J.value,input:O.value,inclusive:J.inclusive,inst:U,continue:!J.abort})}}),Sz=j0("$ZodCheckGreaterThan",(U,J)=>{MU.init(U,J);let Q=Mv[typeof J.value];U._zod.onattach.push((O)=>{let X=O._zod.bag,z=(J.inclusive?X.minimum:X.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(J.value>z)if(J.inclusive)X.minimum=J.value;else X.exclusiveMinimum=J.value}),U._zod.check=(O)=>{if(J.inclusive?O.value>=J.value:O.value>J.value)return;O.issues.push({origin:Q,code:"too_small",minimum:typeof J.value==="object"?J.value.getTime():J.value,input:O.value,inclusive:J.inclusive,inst:U,continue:!J.abort})}}),_H=j0("$ZodCheckMultipleOf",(U,J)=>{MU.init(U,J),U._zod.onattach.push((Q)=>{var O;(O=Q._zod.bag).multipleOf??(O.multipleOf=J.value)}),U._zod.check=(Q)=>{if(typeof Q.value!==typeof J.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof Q.value==="bigint"?Q.value%J.value===BigInt(0):uF(Q.value,J.value)===0)return;Q.issues.push({origin:typeof Q.value,code:"not_multiple_of",divisor:J.value,input:Q.value,inst:U,continue:!J.abort})}}),SH=j0("$ZodCheckNumberFormat",(U,J)=>{MU.init(U,J),J.format=J.format||"float64";let Q=J.format?.includes("int"),O=Q?"int":"number",[X,z]=mF[J.format];U._zod.onattach.push((V)=>{let L=V._zod.bag;if(L.format=J.format,L.minimum=X,L.maximum=z,Q)L.pattern=qH}),U._zod.check=(V)=>{let L=V.value;if(Q){if(!Number.isInteger(L)){V.issues.push({expected:O,format:J.format,code:"invalid_type",continue:!1,input:L,inst:U});return}if(!Number.isSafeInteger(L)){if(L>0)V.issues.push({input:L,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:U,origin:O,inclusive:!0,continue:!J.abort});else V.issues.push({input:L,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:U,origin:O,inclusive:!0,continue:!J.abort});return}}if(L<X)V.issues.push({origin:"number",input:L,code:"too_small",minimum:X,inclusive:!0,inst:U,continue:!J.abort});if(L>z)V.issues.push({origin:"number",input:L,code:"too_big",maximum:z,inclusive:!0,inst:U,continue:!J.abort})}}),jH=j0("$ZodCheckBigIntFormat",(U,J)=>{MU.init(U,J);let[Q,O]=dF[J.format];U._zod.onattach.push((X)=>{let z=X._zod.bag;z.format=J.format,z.minimum=Q,z.maximum=O}),U._zod.check=(X)=>{let z=X.value;if(z<Q)X.issues.push({origin:"bigint",input:z,code:"too_small",minimum:Q,inclusive:!0,inst:U,continue:!J.abort});if(z>O)X.issues.push({origin:"bigint",input:z,code:"too_big",maximum:O,inclusive:!0,inst:U,continue:!J.abort})}}),vH=j0("$ZodCheckMaxSize",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.size!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag.maximum??Number.POSITIVE_INFINITY;if(J.maximum<X)O._zod.bag.maximum=J.maximum}),U._zod.check=(O)=>{let X=O.value;if(X.size<=J.maximum)return;O.issues.push({origin:d2(X),code:"too_big",maximum:J.maximum,inclusive:!0,input:X,inst:U,continue:!J.abort})}}),BH=j0("$ZodCheckMinSize",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.size!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(J.minimum>X)O._zod.bag.minimum=J.minimum}),U._zod.check=(O)=>{let X=O.value;if(X.size>=J.minimum)return;O.issues.push({origin:d2(X),code:"too_small",minimum:J.minimum,inclusive:!0,input:X,inst:U,continue:!J.abort})}}),NH=j0("$ZodCheckSizeEquals",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.size!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag;X.minimum=J.size,X.maximum=J.size,X.size=J.size}),U._zod.check=(O)=>{let X=O.value,z=X.size;if(z===J.size)return;let V=z>J.size;O.issues.push({origin:d2(X),...V?{code:"too_big",maximum:J.size}:{code:"too_small",minimum:J.size},inclusive:!0,exact:!0,input:O.value,inst:U,continue:!J.abort})}}),kH=j0("$ZodCheckMaxLength",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.length!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag.maximum??Number.POSITIVE_INFINITY;if(J.maximum<X)O._zod.bag.maximum=J.maximum}),U._zod.check=(O)=>{let X=O.value;if(X.length<=J.maximum)return;let V=n2(X);O.issues.push({origin:V,code:"too_big",maximum:J.maximum,inclusive:!0,input:X,inst:U,continue:!J.abort})}}),gH=j0("$ZodCheckMinLength",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.length!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(J.minimum>X)O._zod.bag.minimum=J.minimum}),U._zod.check=(O)=>{let X=O.value;if(X.length>=J.minimum)return;let V=n2(X);O.issues.push({origin:V,code:"too_small",minimum:J.minimum,inclusive:!0,input:X,inst:U,continue:!J.abort})}}),xH=j0("$ZodCheckLengthEquals",(U,J)=>{var Q;MU.init(U,J),(Q=U._zod.def).when??(Q.when=(O)=>{let X=O.value;return!HX(X)&&X.length!==void 0}),U._zod.onattach.push((O)=>{let X=O._zod.bag;X.minimum=J.length,X.maximum=J.length,X.length=J.length}),U._zod.check=(O)=>{let X=O.value,z=X.length;if(z===J.length)return;let V=n2(X),L=z>J.length;O.issues.push({origin:V,...L?{code:"too_big",maximum:J.length}:{code:"too_small",minimum:J.length},inclusive:!0,exact:!0,input:O.value,inst:U,continue:!J.abort})}}),VY=j0("$ZodCheckStringFormat",(U,J)=>{var Q,O;if(MU.init(U,J),U._zod.onattach.push((X)=>{let z=X._zod.bag;if(z.format=J.format,J.pattern)z.patterns??(z.patterns=new Set),z.patterns.add(J.pattern)}),J.pattern)(Q=U._zod).check??(Q.check=(X)=>{if(J.pattern.lastIndex=0,J.pattern.test(X.value))return;X.issues.push({origin:"string",code:"invalid_format",format:J.format,input:X.value,...J.pattern?{pattern:J.pattern.toString()}:{},inst:U,continue:!J.abort})});else(O=U._zod).check??(O.check=()=>{})}),wH=j0("$ZodCheckRegex",(U,J)=>{VY.init(U,J),U._zod.check=(Q)=>{if(J.pattern.lastIndex=0,J.pattern.test(Q.value))return;Q.issues.push({origin:"string",code:"invalid_format",format:"regex",input:Q.value,pattern:J.pattern.toString(),inst:U,continue:!J.abort})}}),fH=j0("$ZodCheckLowerCase",(U,J)=>{J.pattern??(J.pattern=PH),VY.init(U,J)}),yH=j0("$ZodCheckUpperCase",(U,J)=>{J.pattern??(J.pattern=EH),VY.init(U,J)}),uH=j0("$ZodCheckIncludes",(U,J)=>{MU.init(U,J);let Q=c4(J.includes),O=new RegExp(typeof J.position==="number"?`^.{${J.position}}${Q}`:Q);J.pattern=O,U._zod.onattach.push((X)=>{let z=X._zod.bag;z.patterns??(z.patterns=new Set),z.patterns.add(O)}),U._zod.check=(X)=>{if(X.value.includes(J.includes,J.position))return;X.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:J.includes,input:X.value,inst:U,continue:!J.abort})}}),bH=j0("$ZodCheckStartsWith",(U,J)=>{MU.init(U,J);let Q=new RegExp(`^${c4(J.prefix)}.*`);J.pattern??(J.pattern=Q),U._zod.onattach.push((O)=>{let X=O._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(Q)}),U._zod.check=(O)=>{if(O.value.startsWith(J.prefix))return;O.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:J.prefix,input:O.value,inst:U,continue:!J.abort})}}),hH=j0("$ZodCheckEndsWith",(U,J)=>{MU.init(U,J);let Q=new RegExp(`.*${c4(J.suffix)}$`);J.pattern??(J.pattern=Q),U._zod.onattach.push((O)=>{let X=O._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(Q)}),U._zod.check=(O)=>{if(O.value.endsWith(J.suffix))return;O.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:J.suffix,input:O.value,inst:U,continue:!J.abort})}});function Lv(U,J,Q){if(U.issues.length)J.issues.push(...U4(Q,U.issues))}var cH=j0("$ZodCheckProperty",(U,J)=>{MU.init(U,J),U._zod.check=(Q)=>{let O=J.schema._zod.run({value:Q.value[J.property],issues:[]},{});if(O instanceof Promise)return O.then((X)=>Lv(X,Q,J.property));Lv(O,Q,J.property);return}}),pH=j0("$ZodCheckMimeType",(U,J)=>{MU.init(U,J);let Q=new Set(J.mime);U._zod.onattach.push((O)=>{O._zod.bag.mime=J.mime}),U._zod.check=(O)=>{if(Q.has(O.value.type))return;O.issues.push({code:"invalid_value",values:J.mime,input:O.value.type,inst:U,continue:!J.abort})}}),lH=j0("$ZodCheckOverwrite",(U,J)=>{MU.init(U,J),U._zod.check=(Q)=>{Q.value=J.tx(Q.value)}});class jz{constructor(U=[]){if(this.content=[],this.indent=0,this)this.args=U}indented(U){this.indent+=1,U(this),this.indent-=1}write(U){if(typeof U==="function"){U(this,{execution:"sync"}),U(this,{execution:"async"});return}let Q=U.split(`
270
+ `).filter((z)=>z),O=Math.min(...Q.map((z)=>z.length-z.trimStart().length)),X=Q.map((z)=>z.slice(O)).map((z)=>" ".repeat(this.indent*2)+z);for(let z of X)this.content.push(z)}compile(){let U=Function,J=this?.args,O=[...(this?.content??[""]).map((X)=>` ${X}`)];return new U(...J,O.join(`
271
+ `))}}var mH={major:4,minor:4,patch:3};var S$=j0("$ZodType",(U,J)=>{var Q;U??(U={}),U._zod.def=J,U._zod.bag=U._zod.bag||{},U._zod.version=mH;let O=[...U._zod.def.checks??[]];if(U._zod.traits.has("$ZodCheck"))O.unshift(U);for(let X of O)for(let z of X._zod.onattach)z(U);if(O.length===0)(Q=U._zod).deferred??(Q.deferred=[]),U._zod.deferred?.push(()=>{U._zod.run=U._zod.parse});else{let X=(V,L,S)=>{let E=AX(V),_;for(let M of L){if(M._zod.def.when){if(nF(V))continue;if(!M._zod.def.when(V))continue}else if(E)continue;let P=V.issues.length,v=M._zod.check(V);if(v instanceof Promise&&S?.async===!1)throw new f1;if(_||v instanceof Promise)_=(_??Promise.resolve()).then(async()=>{if(await v,V.issues.length===P)return;if(!E)E=AX(V,P)});else{if(V.issues.length===P)continue;if(!E)E=AX(V,P)}}if(_)return _.then(()=>{return V});return V},z=(V,L,S)=>{if(AX(V))return V.aborted=!0,V;let E=X(L,O,S);if(E instanceof Promise){if(S.async===!1)throw new f1;return E.then((_)=>U._zod.parse(_,S))}return U._zod.parse(E,S)};U._zod.run=(V,L)=>{if(L.skipChecks)return U._zod.parse(V,L);if(L.direction==="backward"){let E=U._zod.parse({value:V.value,issues:[]},{...L,skipChecks:!0});if(E instanceof Promise)return E.then((_)=>{return z(_,V,L)});return z(E,V,L)}let S=U._zod.parse(V,L);if(S instanceof Promise){if(L.async===!1)throw new f1;return S.then((E)=>X(E,O,L))}return X(S,O,L)}}l$(U,"~standard",()=>({validate:(X)=>{try{let z=rF(U,X);return z.success?{value:z.data}:{issues:z.error?.issues}}catch(z){return tF(U,X).then((V)=>V.success?{value:V.data}:{issues:V.error?.issues})}},vendor:"zod",version:1}))}),SJ=j0("$ZodString",(U,J)=>{S$.init(U,J),U._zod.pattern=[...U?._zod.bag?.patterns??[]].pop()??MH(U._zod.bag),U._zod.parse=(Q,O)=>{if(J.coerce)try{Q.value=String(Q.value)}catch(X){}if(typeof Q.value==="string")return Q;return Q.issues.push({expected:"string",code:"invalid_type",input:Q.value,inst:U}),Q}}),KU=j0("$ZodStringFormat",(U,J)=>{VY.init(U,J),SJ.init(U,J)}),nH=j0("$ZodGUID",(U,J)=>{J.pattern??(J.pattern=JH),KU.init(U,J)}),oH=j0("$ZodUUID",(U,J)=>{if(J.version){let O={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[J.version];if(O===void 0)throw Error(`Invalid UUID version: "${J.version}"`);J.pattern??(J.pattern=_J(O))}else J.pattern??(J.pattern=_J());KU.init(U,J)}),iH=j0("$ZodEmail",(U,J)=>{J.pattern??(J.pattern=QH),KU.init(U,J)}),rH=j0("$ZodURL",(U,J)=>{KU.init(U,J),U._zod.check=(Q)=>{try{let O=Q.value.trim();if(!J.normalize&&J.protocol?.source===DH.source){if(!/^https?:\/\//i.test(O)){Q.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:Q.value,inst:U,continue:!J.abort});return}}let X=new URL(O);if(J.hostname){if(J.hostname.lastIndex=0,!J.hostname.test(X.hostname))Q.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:J.hostname.source,input:Q.value,inst:U,continue:!J.abort})}if(J.protocol){if(J.protocol.lastIndex=0,!J.protocol.test(X.protocol.endsWith(":")?X.protocol.slice(0,-1):X.protocol))Q.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:J.protocol.source,input:Q.value,inst:U,continue:!J.abort})}if(J.normalize)Q.value=X.href;else Q.value=O;return}catch(O){Q.issues.push({code:"invalid_format",format:"url",input:Q.value,inst:U,continue:!J.abort})}}}),tH=j0("$ZodEmoji",(U,J)=>{J.pattern??(J.pattern=YH()),KU.init(U,J)}),aH=j0("$ZodNanoID",(U,J)=>{J.pattern??(J.pattern=IH),KU.init(U,J)}),sH=j0("$ZodCUID",(U,J)=>{J.pattern??(J.pattern=aF),KU.init(U,J)}),eH=j0("$ZodCUID2",(U,J)=>{J.pattern??(J.pattern=sF),KU.init(U,J)}),$L=j0("$ZodULID",(U,J)=>{J.pattern??(J.pattern=eF),KU.init(U,J)}),UL=j0("$ZodXID",(U,J)=>{J.pattern??(J.pattern=$H),KU.init(U,J)}),IL=j0("$ZodKSUID",(U,J)=>{J.pattern??(J.pattern=UH),KU.init(U,J)}),XL=j0("$ZodISODateTime",(U,J)=>{J.pattern??(J.pattern=LH(J)),KU.init(U,J)}),JL=j0("$ZodISODate",(U,J)=>{J.pattern??(J.pattern=FH),KU.init(U,J)}),QL=j0("$ZodISOTime",(U,J)=>{J.pattern??(J.pattern=HH(J)),KU.init(U,J)}),YL=j0("$ZodISODuration",(U,J)=>{J.pattern??(J.pattern=XH),KU.init(U,J)}),GL=j0("$ZodIPv4",(U,J)=>{J.pattern??(J.pattern=GH),KU.init(U,J),U._zod.bag.format="ipv4"}),VL=j0("$ZodIPv6",(U,J)=>{J.pattern??(J.pattern=VH),KU.init(U,J),U._zod.bag.format="ipv6",U._zod.check=(Q)=>{try{new URL(`http://[${Q.value}]`)}catch{Q.issues.push({code:"invalid_format",format:"ipv6",input:Q.value,inst:U,continue:!J.abort})}}}),ZL=j0("$ZodMAC",(U,J)=>{J.pattern??(J.pattern=ZH(J.delimiter)),KU.init(U,J),U._zod.bag.format="mac"}),OL=j0("$ZodCIDRv4",(U,J)=>{J.pattern??(J.pattern=OH),KU.init(U,J)}),zL=j0("$ZodCIDRv6",(U,J)=>{J.pattern??(J.pattern=zH),KU.init(U,J),U._zod.check=(Q)=>{let O=Q.value.split("/");try{if(O.length!==2)throw Error();let[X,z]=O;if(!z)throw Error();let V=Number(z);if(`${V}`!==z)throw Error();if(V<0||V>128)throw Error();new URL(`http://[${X}]`)}catch{Q.issues.push({code:"invalid_format",format:"cidrv6",input:Q.value,inst:U,continue:!J.abort})}}});function KL(U){if(U==="")return!0;if(/\s/.test(U))return!1;if(U.length%4!==0)return!1;try{return atob(U),!0}catch{return!1}}var DL=j0("$ZodBase64",(U,J)=>{J.pattern??(J.pattern=KH),KU.init(U,J),U._zod.bag.contentEncoding="base64",U._zod.check=(Q)=>{if(KL(Q.value))return;Q.issues.push({code:"invalid_format",format:"base64",input:Q.value,inst:U,continue:!J.abort})}});function xv(U){if(!Ez.test(U))return!1;let J=U.replace(/[-_]/g,(O)=>O==="-"?"+":"/"),Q=J.padEnd(Math.ceil(J.length/4)*4,"=");return KL(Q)}var WL=j0("$ZodBase64URL",(U,J)=>{J.pattern??(J.pattern=Ez),KU.init(U,J),U._zod.bag.contentEncoding="base64url",U._zod.check=(Q)=>{if(xv(Q.value))return;Q.issues.push({code:"invalid_format",format:"base64url",input:Q.value,inst:U,continue:!J.abort})}}),FL=j0("$ZodE164",(U,J)=>{J.pattern??(J.pattern=WH),KU.init(U,J)});function wv(U,J=null){try{let Q=U.split(".");if(Q.length!==3)return!1;let[O]=Q;if(!O)return!1;let X=JSON.parse(atob(O));if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(J&&(!("alg"in X)||X.alg!==J))return!1;return!0}catch{return!1}}var HL=j0("$ZodJWT",(U,J)=>{KU.init(U,J),U._zod.check=(Q)=>{if(wv(Q.value,J.alg))return;Q.issues.push({code:"invalid_format",format:"jwt",input:Q.value,inst:U,continue:!J.abort})}}),LL=j0("$ZodCustomStringFormat",(U,J)=>{KU.init(U,J),U._zod.check=(Q)=>{if(J.fn(Q.value))return;Q.issues.push({code:"invalid_format",format:J.format,input:Q.value,inst:U,continue:!J.abort})}}),gz=j0("$ZodNumber",(U,J)=>{S$.init(U,J),U._zod.pattern=U._zod.bag.pattern??t2,U._zod.parse=(Q,O)=>{if(J.coerce)try{Q.value=Number(Q.value)}catch(V){}let X=Q.value;if(typeof X==="number"&&!Number.isNaN(X)&&Number.isFinite(X))return Q;let z=typeof X==="number"?Number.isNaN(X)?"NaN":!Number.isFinite(X)?"Infinity":void 0:void 0;return Q.issues.push({expected:"number",code:"invalid_type",input:X,inst:U,...z?{received:z}:{}}),Q}}),ML=j0("$ZodNumberFormat",(U,J)=>{SH.init(U,J),gz.init(U,J)}),e2=j0("$ZodBoolean",(U,J)=>{S$.init(U,J),U._zod.pattern=TH,U._zod.parse=(Q,O)=>{if(J.coerce)try{Q.value=Boolean(Q.value)}catch(z){}let X=Q.value;if(typeof X==="boolean")return Q;return Q.issues.push({expected:"boolean",code:"invalid_type",input:X,inst:U}),Q}}),xz=j0("$ZodBigInt",(U,J)=>{S$.init(U,J),U._zod.pattern=AH,U._zod.parse=(Q,O)=>{if(J.coerce)try{Q.value=BigInt(Q.value)}catch(X){}if(typeof Q.value==="bigint")return Q;return Q.issues.push({expected:"bigint",code:"invalid_type",input:Q.value,inst:U}),Q}}),AL=j0("$ZodBigIntFormat",(U,J)=>{jH.init(U,J),xz.init(U,J)}),qL=j0("$ZodSymbol",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(typeof X==="symbol")return Q;return Q.issues.push({expected:"symbol",code:"invalid_type",input:X,inst:U}),Q}}),TL=j0("$ZodUndefined",(U,J)=>{S$.init(U,J),U._zod.pattern=RH,U._zod.values=new Set([void 0]),U._zod.parse=(Q,O)=>{let X=Q.value;if(typeof X>"u")return Q;return Q.issues.push({expected:"undefined",code:"invalid_type",input:X,inst:U}),Q}}),CL=j0("$ZodNull",(U,J)=>{S$.init(U,J),U._zod.pattern=CH,U._zod.values=new Set([null]),U._zod.parse=(Q,O)=>{let X=Q.value;if(X===null)return Q;return Q.issues.push({expected:"null",code:"invalid_type",input:X,inst:U}),Q}}),RL=j0("$ZodAny",(U,J)=>{S$.init(U,J),U._zod.parse=(Q)=>Q}),PL=j0("$ZodUnknown",(U,J)=>{S$.init(U,J),U._zod.parse=(Q)=>Q}),EL=j0("$ZodNever",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{return Q.issues.push({expected:"never",code:"invalid_type",input:Q.value,inst:U}),Q}}),_L=j0("$ZodVoid",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(typeof X>"u")return Q;return Q.issues.push({expected:"void",code:"invalid_type",input:X,inst:U}),Q}}),SL=j0("$ZodDate",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{if(J.coerce)try{Q.value=new Date(Q.value)}catch(L){}let X=Q.value,z=X instanceof Date;if(z&&!Number.isNaN(X.getTime()))return Q;return Q.issues.push({expected:"date",code:"invalid_type",input:X,...z?{received:"Invalid Date"}:{},inst:U}),Q}});function qv(U,J,Q){if(U.issues.length)J.issues.push(...U4(Q,U.issues));J.value[Q]=U.value}var jL=j0("$ZodArray",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(!Array.isArray(X))return Q.issues.push({expected:"array",code:"invalid_type",input:X,inst:U}),Q;Q.value=Array(X.length);let z=[];for(let V=0;V<X.length;V++){let L=X[V],S=J.element._zod.run({value:L,issues:[]},O);if(S instanceof Promise)z.push(S.then((E)=>qv(E,Q,V)));else qv(S,Q,V)}if(z.length)return Promise.all(z).then(()=>Q);return Q}});function kz(U,J,Q,O,X,z){let V=Q in O;if(U.issues.length){if(X&&z&&!V)return;J.issues.push(...U4(Q,U.issues))}if(!V&&!X){if(!U.issues.length)J.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[Q]});return}if(U.value===void 0){if(V)J.value[Q]=void 0}else J.value[Q]=U.value}function fv(U){let J=Object.keys(U.shape);for(let O of J)if(!U.shape?.[O]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${O}": expected a Zod schema`);let Q=lF(U.shape);return{...U,keys:J,keySet:new Set(J),numKeys:J.length,optionalKeys:new Set(Q)}}function yv(U,J,Q,O,X,z){let V=[],L=X.keySet,S=X.catchall._zod,E=S.def.type,_=S.optin==="optional",M=S.optout==="optional";for(let P in J){if(P==="__proto__")continue;if(L.has(P))continue;if(E==="never"){V.push(P);continue}let v=S.run({value:J[P],issues:[]},O);if(v instanceof Promise)U.push(v.then((N)=>kz(N,Q,P,J,_,M)));else kz(v,Q,P,J,_,M)}if(V.length)Q.issues.push({code:"unrecognized_keys",keys:V,input:J,inst:z});if(!U.length)return Q;return Promise.all(U).then(()=>{return Q})}var uv=j0("$ZodObject",(U,J)=>{if(S$.init(U,J),!Object.getOwnPropertyDescriptor(J,"shape")?.get){let L=J.shape;Object.defineProperty(J,"shape",{get:()=>{let S={...L};return Object.defineProperty(J,"shape",{value:S}),S}})}let O=IY(()=>fv(J));l$(U._zod,"propValues",()=>{let L=J.shape,S={};for(let E in L){let _=L[E]._zod;if(_.values){S[E]??(S[E]=new Set);for(let M of _.values)S[E].add(M)}}return S});let X=EJ,z=J.catchall,V;U._zod.parse=(L,S)=>{V??(V=O.value);let E=L.value;if(!X(E))return L.issues.push({expected:"object",code:"invalid_type",input:E,inst:U}),L;L.value={};let _=[],M=V.shape;for(let P of V.keys){let v=M[P],N=v._zod.optin==="optional",f=v._zod.optout==="optional",x=v._zod.run({value:E[P],issues:[]},S);if(x instanceof Promise)_.push(x.then((b)=>kz(b,L,P,E,N,f)));else kz(x,L,P,E,N,f)}if(!z)return _.length?Promise.all(_).then(()=>L):L;return yv(_,E,L,S,O.value,U)}}),vL=j0("$ZodObjectJIT",(U,J)=>{uv.init(U,J);let Q=U._zod.parse,O=IY(()=>fv(J)),X=(P)=>{let v=new jz(["shape","payload","ctx"]),N=O.value,f=(u)=>{let p=Dz(u);return`shape[${p}]._zod.run({ value: input[${p}], issues: [] }, ctx)`};v.write("const input = payload.value;");let x=Object.create(null),b=0;for(let u of N.keys)x[u]=`key_${b++}`;v.write("const newResult = {};");for(let u of N.keys){let p=x[u],m=Dz(u),a=P[u],Z0=a?._zod?.optin==="optional",L0=a?._zod?.optout==="optional";if(v.write(`const ${p} = ${f(u)};`),Z0&&L0)v.write(`
272
+ if (${p}.issues.length) {
273
+ if (${m} in input) {
274
+ payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
275
+ ...iss,
276
+ path: iss.path ? [${m}, ...iss.path] : [${m}]
277
+ })));
278
+ }
279
+ }
280
+
281
+ if (${p}.value === undefined) {
282
+ if (${m} in input) {
283
+ newResult[${m}] = undefined;
284
+ }
285
+ } else {
286
+ newResult[${m}] = ${p}.value;
287
+ }
288
+
289
+ `);else if(!Z0)v.write(`
290
+ const ${p}_present = ${m} in input;
291
+ if (${p}.issues.length) {
292
+ payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
293
+ ...iss,
294
+ path: iss.path ? [${m}, ...iss.path] : [${m}]
295
+ })));
296
+ }
297
+ if (!${p}_present && !${p}.issues.length) {
298
+ payload.issues.push({
299
+ code: "invalid_type",
300
+ expected: "nonoptional",
301
+ input: undefined,
302
+ path: [${m}]
303
+ });
304
+ }
305
+
306
+ if (${p}_present) {
307
+ if (${p}.value === undefined) {
308
+ newResult[${m}] = undefined;
309
+ } else {
310
+ newResult[${m}] = ${p}.value;
311
+ }
312
+ }
313
+
314
+ `);else v.write(`
315
+ if (${p}.issues.length) {
316
+ payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
317
+ ...iss,
318
+ path: iss.path ? [${m}, ...iss.path] : [${m}]
319
+ })));
320
+ }
321
+
322
+ if (${p}.value === undefined) {
323
+ if (${m} in input) {
324
+ newResult[${m}] = undefined;
325
+ }
326
+ } else {
327
+ newResult[${m}] = ${p}.value;
328
+ }
329
+
330
+ `)}v.write("payload.value = newResult;"),v.write("return payload;");let k=v.compile();return(u,p)=>k(P,u,p)},z,V=EJ,L=!RJ.jitless,E=L&&hF.value,_=J.catchall,M;U._zod.parse=(P,v)=>{M??(M=O.value);let N=P.value;if(!V(N))return P.issues.push({expected:"object",code:"invalid_type",input:N,inst:U}),P;if(L&&E&&v?.async===!1&&v.jitless!==!0){if(!z)z=X(J.shape);if(P=z(P,v),!_)return P;return yv([],N,P,v,M,U)}return Q(P,v)}});function Tv(U,J,Q,O){for(let z of U)if(z.issues.length===0)return J.value=z.value,J;let X=U.filter((z)=>!AX(z));if(X.length===1)return J.value=X[0].value,X[0];return J.issues.push({code:"invalid_union",input:J.value,inst:Q,errors:U.map((z)=>z.issues.map((V)=>p6(V,O,aU())))}),J}var $V=j0("$ZodUnion",(U,J)=>{S$.init(U,J),l$(U._zod,"optin",()=>J.options.some((O)=>O._zod.optin==="optional")?"optional":void 0),l$(U._zod,"optout",()=>J.options.some((O)=>O._zod.optout==="optional")?"optional":void 0),l$(U._zod,"values",()=>{if(J.options.every((O)=>O._zod.values))return new Set(J.options.flatMap((O)=>Array.from(O._zod.values)));return}),l$(U._zod,"pattern",()=>{if(J.options.every((O)=>O._zod.pattern)){let O=J.options.map((X)=>X._zod.pattern);return new RegExp(`^(${O.map((X)=>l2(X.source)).join("|")})$`)}return});let Q=J.options.length===1?J.options[0]._zod.run:null;U._zod.parse=(O,X)=>{if(Q)return Q(O,X);let z=!1,V=[];for(let L of J.options){let S=L._zod.run({value:O.value,issues:[]},X);if(S instanceof Promise)V.push(S),z=!0;else{if(S.issues.length===0)return S;V.push(S)}}if(!z)return Tv(V,O,U,X);return Promise.all(V).then((L)=>{return Tv(L,O,U,X)})}});function Cv(U,J,Q,O){let X=U.filter((z)=>z.issues.length===0);if(X.length===1)return J.value=X[0].value,J;if(X.length===0)J.issues.push({code:"invalid_union",input:J.value,inst:Q,errors:U.map((z)=>z.issues.map((V)=>p6(V,O,aU())))});else J.issues.push({code:"invalid_union",input:J.value,inst:Q,errors:[],inclusive:!1});return J}var BL=j0("$ZodXor",(U,J)=>{$V.init(U,J),J.inclusive=!1;let Q=J.options.length===1?J.options[0]._zod.run:null;U._zod.parse=(O,X)=>{if(Q)return Q(O,X);let z=!1,V=[];for(let L of J.options){let S=L._zod.run({value:O.value,issues:[]},X);if(S instanceof Promise)V.push(S),z=!0;else V.push(S)}if(!z)return Cv(V,O,U,X);return Promise.all(V).then((L)=>{return Cv(L,O,U,X)})}}),NL=j0("$ZodDiscriminatedUnion",(U,J)=>{J.inclusive=!1,$V.init(U,J);let Q=U._zod.parse;l$(U._zod,"propValues",()=>{let X={};for(let z of J.options){let V=z._zod.propValues;if(!V||Object.keys(V).length===0)throw Error(`Invalid discriminated union option at index "${J.options.indexOf(z)}"`);for(let[L,S]of Object.entries(V)){if(!X[L])X[L]=new Set;for(let E of S)X[L].add(E)}}return X});let O=IY(()=>{let X=J.options,z=new Map;for(let V of X){let L=V._zod.propValues?.[J.discriminator];if(!L||L.size===0)throw Error(`Invalid discriminated union option at index "${J.options.indexOf(V)}"`);for(let S of L){if(z.has(S))throw Error(`Duplicate discriminator value "${String(S)}"`);z.set(S,V)}}return z});U._zod.parse=(X,z)=>{let V=X.value;if(!EJ(V))return X.issues.push({code:"invalid_type",expected:"object",input:V,inst:U}),X;let L=O.value.get(V?.[J.discriminator]);if(L)return L._zod.run(X,z);if(J.unionFallback||z.direction==="backward")return Q(X,z);return X.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:J.discriminator,options:Array.from(O.value.keys()),input:V,path:[J.discriminator],inst:U}),X}}),kL=j0("$ZodIntersection",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value,z=J.left._zod.run({value:X,issues:[]},O),V=J.right._zod.run({value:X,issues:[]},O);if(z instanceof Promise||V instanceof Promise)return Promise.all([z,V]).then(([S,E])=>{return Rv(Q,S,E)});return Rv(Q,z,V)}});function dH(U,J){if(U===J)return{valid:!0,data:U};if(U instanceof Date&&J instanceof Date&&+U===+J)return{valid:!0,data:U};if(MX(U)&&MX(J)){let Q=Object.keys(J),O=Object.keys(U).filter((z)=>Q.indexOf(z)!==-1),X={...U,...J};for(let z of O){let V=dH(U[z],J[z]);if(!V.valid)return{valid:!1,mergeErrorPath:[z,...V.mergeErrorPath]};X[z]=V.data}return{valid:!0,data:X}}if(Array.isArray(U)&&Array.isArray(J)){if(U.length!==J.length)return{valid:!1,mergeErrorPath:[]};let Q=[];for(let O=0;O<U.length;O++){let X=U[O],z=J[O],V=dH(X,z);if(!V.valid)return{valid:!1,mergeErrorPath:[O,...V.mergeErrorPath]};Q.push(V.data)}return{valid:!0,data:Q}}return{valid:!1,mergeErrorPath:[]}}function Rv(U,J,Q){let O=new Map,X;for(let L of J.issues)if(L.code==="unrecognized_keys"){X??(X=L);for(let S of L.keys){if(!O.has(S))O.set(S,{});O.get(S).l=!0}}else U.issues.push(L);for(let L of Q.issues)if(L.code==="unrecognized_keys")for(let S of L.keys){if(!O.has(S))O.set(S,{});O.get(S).r=!0}else U.issues.push(L);let z=[...O].filter(([,L])=>L.l&&L.r).map(([L])=>L);if(z.length&&X)U.issues.push({...X,keys:z});if(AX(U))return U;let V=dH(J.value,Q.value);if(!V.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(V.mergeErrorPath)}`);return U.value=V.data,U}var wz=j0("$ZodTuple",(U,J)=>{S$.init(U,J);let Q=J.items;U._zod.parse=(O,X)=>{let z=O.value;if(!Array.isArray(z))return O.issues.push({input:z,inst:U,expected:"tuple",code:"invalid_type"}),O;O.value=[];let V=[],L=Pv(Q,"optin"),S=Pv(Q,"optout");if(!J.rest){if(z.length<L)return O.issues.push({code:"too_small",minimum:L,inclusive:!0,input:z,inst:U,origin:"array"}),O;if(z.length>Q.length)O.issues.push({code:"too_big",maximum:Q.length,inclusive:!0,input:z,inst:U,origin:"array"})}let E=Array(Q.length);for(let _=0;_<Q.length;_++){let M=Q[_]._zod.run({value:z[_],issues:[]},X);if(M instanceof Promise)V.push(M.then((P)=>{E[_]=P}));else E[_]=M}if(J.rest){let _=Q.length-1,M=z.slice(Q.length);for(let P of M){_++;let v=J.rest._zod.run({value:P,issues:[]},X);if(v instanceof Promise)V.push(v.then((N)=>Ev(N,O,_)));else Ev(v,O,_)}}if(V.length)return Promise.all(V).then(()=>_v(E,O,Q,z,S));return _v(E,O,Q,z,S)}});function Pv(U,J){for(let Q=U.length-1;Q>=0;Q--)if(U[Q]._zod[J]!=="optional")return Q+1;return 0}function Ev(U,J,Q){if(U.issues.length)J.issues.push(...U4(Q,U.issues));J.value[Q]=U.value}function _v(U,J,Q,O,X){for(let z=0;z<Q.length;z++){let V=U[z],L=z<O.length;if(V.issues.length){if(!L&&z>=X){J.value.length=z;break}J.issues.push(...U4(z,V.issues))}J.value[z]=V.value}for(let z=J.value.length-1;z>=O.length;z--)if(Q[z]._zod.optout==="optional"&&J.value[z]===void 0)J.value.length=z;else break;return J}var gL=j0("$ZodRecord",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(!MX(X))return Q.issues.push({expected:"record",code:"invalid_type",input:X,inst:U}),Q;let z=[],V=J.keyType._zod.values;if(V){Q.value={};let L=new Set;for(let E of V)if(typeof E==="string"||typeof E==="number"||typeof E==="symbol"){L.add(typeof E==="number"?E.toString():E);let _=J.keyType._zod.run({value:E,issues:[]},O);if(_ instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(_.issues.length){Q.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map((v)=>p6(v,O,aU())),input:E,path:[E],inst:U});continue}let M=_.value,P=J.valueType._zod.run({value:X[E],issues:[]},O);if(P instanceof Promise)z.push(P.then((v)=>{if(v.issues.length)Q.issues.push(...U4(E,v.issues));Q.value[M]=v.value}));else{if(P.issues.length)Q.issues.push(...U4(E,P.issues));Q.value[M]=P.value}}let S;for(let E in X)if(!L.has(E))S=S??[],S.push(E);if(S&&S.length>0)Q.issues.push({code:"unrecognized_keys",input:X,inst:U,keys:S})}else{Q.value={};for(let L of Reflect.ownKeys(X)){if(L==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(X,L))continue;let S=J.keyType._zod.run({value:L,issues:[]},O);if(S instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof L==="string"&&t2.test(L)&&S.issues.length){let M=J.keyType._zod.run({value:Number(L),issues:[]},O);if(M instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(M.issues.length===0)S=M}if(S.issues.length){if(J.mode==="loose")Q.value[L]=X[L];else Q.issues.push({code:"invalid_key",origin:"record",issues:S.issues.map((M)=>p6(M,O,aU())),input:L,path:[L],inst:U});continue}let _=J.valueType._zod.run({value:X[L],issues:[]},O);if(_ instanceof Promise)z.push(_.then((M)=>{if(M.issues.length)Q.issues.push(...U4(L,M.issues));Q.value[S.value]=M.value}));else{if(_.issues.length)Q.issues.push(...U4(L,_.issues));Q.value[S.value]=_.value}}}if(z.length)return Promise.all(z).then(()=>Q);return Q}}),xL=j0("$ZodMap",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(!(X instanceof Map))return Q.issues.push({expected:"map",code:"invalid_type",input:X,inst:U}),Q;let z=[];Q.value=new Map;for(let[V,L]of X){let S=J.keyType._zod.run({value:V,issues:[]},O),E=J.valueType._zod.run({value:L,issues:[]},O);if(S instanceof Promise||E instanceof Promise)z.push(Promise.all([S,E]).then(([_,M])=>{Sv(_,M,Q,V,X,U,O)}));else Sv(S,E,Q,V,X,U,O)}if(z.length)return Promise.all(z).then(()=>Q);return Q}});function Sv(U,J,Q,O,X,z,V){if(U.issues.length)if(m2.has(typeof O))Q.issues.push(...U4(O,U.issues));else Q.issues.push({code:"invalid_key",origin:"map",input:X,inst:z,issues:U.issues.map((L)=>p6(L,V,aU()))});if(J.issues.length)if(m2.has(typeof O))Q.issues.push(...U4(O,J.issues));else Q.issues.push({origin:"map",code:"invalid_element",input:X,inst:z,key:O,issues:J.issues.map((L)=>p6(L,V,aU()))});Q.value.set(U.value,J.value)}var wL=j0("$ZodSet",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(!(X instanceof Set))return Q.issues.push({input:X,inst:U,expected:"set",code:"invalid_type"}),Q;let z=[];Q.value=new Set;for(let V of X){let L=J.valueType._zod.run({value:V,issues:[]},O);if(L instanceof Promise)z.push(L.then((S)=>jv(S,Q)));else jv(L,Q)}if(z.length)return Promise.all(z).then(()=>Q);return Q}});function jv(U,J){if(U.issues.length)J.issues.push(...U.issues);J.value.add(U.value)}var fL=j0("$ZodEnum",(U,J)=>{S$.init(U,J);let Q=p2(J.entries),O=new Set(Q);U._zod.values=O,U._zod.pattern=new RegExp(`^(${Q.filter((X)=>m2.has(typeof X)).map((X)=>typeof X==="string"?c4(X):X.toString()).join("|")})$`),U._zod.parse=(X,z)=>{let V=X.value;if(O.has(V))return X;return X.issues.push({code:"invalid_value",values:Q,input:V,inst:U}),X}}),yL=j0("$ZodLiteral",(U,J)=>{if(S$.init(U,J),J.values.length===0)throw Error("Cannot create literal schema with no valid values");let Q=new Set(J.values);U._zod.values=Q,U._zod.pattern=new RegExp(`^(${J.values.map((O)=>typeof O==="string"?c4(O):O?c4(O.toString()):String(O)).join("|")})$`),U._zod.parse=(O,X)=>{let z=O.value;if(Q.has(z))return O;return O.issues.push({code:"invalid_value",values:J.values,input:z,inst:U}),O}}),uL=j0("$ZodFile",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{let X=Q.value;if(X instanceof File)return Q;return Q.issues.push({expected:"file",code:"invalid_type",input:X,inst:U}),Q}}),bL=j0("$ZodTransform",(U,J)=>{S$.init(U,J),U._zod.optin="optional",U._zod.parse=(Q,O)=>{if(O.direction==="backward")throw new PJ(U.constructor.name);let X=J.transform(Q.value,Q);if(O.async)return(X instanceof Promise?X:Promise.resolve(X)).then((V)=>{return Q.value=V,Q.fallback=!0,Q});if(X instanceof Promise)throw new f1;return Q.value=X,Q.fallback=!0,Q}});function vv(U,J){if(J===void 0&&(U.issues.length||U.fallback))return{issues:[],value:void 0};return U}var fz=j0("$ZodOptional",(U,J)=>{S$.init(U,J),U._zod.optin="optional",U._zod.optout="optional",l$(U._zod,"values",()=>{return J.innerType._zod.values?new Set([...J.innerType._zod.values,void 0]):void 0}),l$(U._zod,"pattern",()=>{let Q=J.innerType._zod.pattern;return Q?new RegExp(`^(${l2(Q.source)})?$`):void 0}),U._zod.parse=(Q,O)=>{if(J.innerType._zod.optin==="optional"){let X=Q.value,z=J.innerType._zod.run(Q,O);if(z instanceof Promise)return z.then((V)=>vv(V,X));return vv(z,X)}if(Q.value===void 0)return Q;return J.innerType._zod.run(Q,O)}}),hL=j0("$ZodExactOptional",(U,J)=>{fz.init(U,J),l$(U._zod,"values",()=>J.innerType._zod.values),l$(U._zod,"pattern",()=>J.innerType._zod.pattern),U._zod.parse=(Q,O)=>{return J.innerType._zod.run(Q,O)}}),cL=j0("$ZodNullable",(U,J)=>{S$.init(U,J),l$(U._zod,"optin",()=>J.innerType._zod.optin),l$(U._zod,"optout",()=>J.innerType._zod.optout),l$(U._zod,"pattern",()=>{let Q=J.innerType._zod.pattern;return Q?new RegExp(`^(${l2(Q.source)}|null)$`):void 0}),l$(U._zod,"values",()=>{return J.innerType._zod.values?new Set([...J.innerType._zod.values,null]):void 0}),U._zod.parse=(Q,O)=>{if(Q.value===null)return Q;return J.innerType._zod.run(Q,O)}}),pL=j0("$ZodDefault",(U,J)=>{S$.init(U,J),U._zod.optin="optional",l$(U._zod,"values",()=>J.innerType._zod.values),U._zod.parse=(Q,O)=>{if(O.direction==="backward")return J.innerType._zod.run(Q,O);if(Q.value===void 0)return Q.value=J.defaultValue,Q;let X=J.innerType._zod.run(Q,O);if(X instanceof Promise)return X.then((z)=>Bv(z,J));return Bv(X,J)}});function Bv(U,J){if(U.value===void 0)U.value=J.defaultValue;return U}var lL=j0("$ZodPrefault",(U,J)=>{S$.init(U,J),U._zod.optin="optional",l$(U._zod,"values",()=>J.innerType._zod.values),U._zod.parse=(Q,O)=>{if(O.direction==="backward")return J.innerType._zod.run(Q,O);if(Q.value===void 0)Q.value=J.defaultValue;return J.innerType._zod.run(Q,O)}}),mL=j0("$ZodNonOptional",(U,J)=>{S$.init(U,J),l$(U._zod,"values",()=>{let Q=J.innerType._zod.values;return Q?new Set([...Q].filter((O)=>O!==void 0)):void 0}),U._zod.parse=(Q,O)=>{let X=J.innerType._zod.run(Q,O);if(X instanceof Promise)return X.then((z)=>Nv(z,U));return Nv(X,U)}});function Nv(U,J){if(!U.issues.length&&U.value===void 0)U.issues.push({code:"invalid_type",expected:"nonoptional",input:U.value,inst:J});return U}var dL=j0("$ZodSuccess",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{if(O.direction==="backward")throw new PJ("ZodSuccess");let X=J.innerType._zod.run(Q,O);if(X instanceof Promise)return X.then((z)=>{return Q.value=z.issues.length===0,Q});return Q.value=X.issues.length===0,Q}}),nL=j0("$ZodCatch",(U,J)=>{S$.init(U,J),U._zod.optin="optional",l$(U._zod,"optout",()=>J.innerType._zod.optout),l$(U._zod,"values",()=>J.innerType._zod.values),U._zod.parse=(Q,O)=>{if(O.direction==="backward")return J.innerType._zod.run(Q,O);let X=J.innerType._zod.run(Q,O);if(X instanceof Promise)return X.then((z)=>{if(Q.value=z.value,z.issues.length)Q.value=J.catchValue({...Q,error:{issues:z.issues.map((V)=>p6(V,O,aU()))},input:Q.value}),Q.issues=[],Q.fallback=!0;return Q});if(Q.value=X.value,X.issues.length)Q.value=J.catchValue({...Q,error:{issues:X.issues.map((z)=>p6(z,O,aU()))},input:Q.value}),Q.issues=[],Q.fallback=!0;return Q}}),oL=j0("$ZodNaN",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{if(typeof Q.value!=="number"||!Number.isNaN(Q.value))return Q.issues.push({input:Q.value,inst:U,expected:"nan",code:"invalid_type"}),Q;return Q}}),yz=j0("$ZodPipe",(U,J)=>{S$.init(U,J),l$(U._zod,"values",()=>J.in._zod.values),l$(U._zod,"optin",()=>J.in._zod.optin),l$(U._zod,"optout",()=>J.out._zod.optout),l$(U._zod,"propValues",()=>J.in._zod.propValues),U._zod.parse=(Q,O)=>{if(O.direction==="backward"){let z=J.out._zod.run(Q,O);if(z instanceof Promise)return z.then((V)=>vz(V,J.in,O));return vz(z,J.in,O)}let X=J.in._zod.run(Q,O);if(X instanceof Promise)return X.then((z)=>vz(z,J.out,O));return vz(X,J.out,O)}});function vz(U,J,Q){if(U.issues.length)return U.aborted=!0,U;return J._zod.run({value:U.value,issues:U.issues,fallback:U.fallback},Q)}var UV=j0("$ZodCodec",(U,J)=>{S$.init(U,J),l$(U._zod,"values",()=>J.in._zod.values),l$(U._zod,"optin",()=>J.in._zod.optin),l$(U._zod,"optout",()=>J.out._zod.optout),l$(U._zod,"propValues",()=>J.in._zod.propValues),U._zod.parse=(Q,O)=>{if((O.direction||"forward")==="forward"){let z=J.in._zod.run(Q,O);if(z instanceof Promise)return z.then((V)=>Bz(V,J,O));return Bz(z,J,O)}else{let z=J.out._zod.run(Q,O);if(z instanceof Promise)return z.then((V)=>Bz(V,J,O));return Bz(z,J,O)}}});function Bz(U,J,Q){if(U.issues.length)return U.aborted=!0,U;if((Q.direction||"forward")==="forward"){let X=J.transform(U.value,U);if(X instanceof Promise)return X.then((z)=>Nz(U,z,J.out,Q));return Nz(U,X,J.out,Q)}else{let X=J.reverseTransform(U.value,U);if(X instanceof Promise)return X.then((z)=>Nz(U,z,J.in,Q));return Nz(U,X,J.in,Q)}}function Nz(U,J,Q,O){if(U.issues.length)return U.aborted=!0,U;return Q._zod.run({value:J,issues:U.issues},O)}var iL=j0("$ZodPreprocess",(U,J)=>{yz.init(U,J)}),rL=j0("$ZodReadonly",(U,J)=>{S$.init(U,J),l$(U._zod,"propValues",()=>J.innerType._zod.propValues),l$(U._zod,"values",()=>J.innerType._zod.values),l$(U._zod,"optin",()=>J.innerType?._zod?.optin),l$(U._zod,"optout",()=>J.innerType?._zod?.optout),U._zod.parse=(Q,O)=>{if(O.direction==="backward")return J.innerType._zod.run(Q,O);let X=J.innerType._zod.run(Q,O);if(X instanceof Promise)return X.then(kv);return kv(X)}});function kv(U){return U.value=Object.freeze(U.value),U}var tL=j0("$ZodTemplateLiteral",(U,J)=>{S$.init(U,J);let Q=[];for(let O of J.parts)if(typeof O==="object"&&O!==null){if(!O._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...O._zod.traits].shift()}`);let X=O._zod.pattern instanceof RegExp?O._zod.pattern.source:O._zod.pattern;if(!X)throw Error(`Invalid template literal part: ${O._zod.traits}`);let z=X.startsWith("^")?1:0,V=X.endsWith("$")?X.length-1:X.length;Q.push(X.slice(z,V))}else if(O===null||pF.has(typeof O))Q.push(c4(`${O}`));else throw Error(`Invalid template literal part: ${O}`);U._zod.pattern=new RegExp(`^${Q.join("")}$`),U._zod.parse=(O,X)=>{if(typeof O.value!=="string")return O.issues.push({input:O.value,inst:U,expected:"string",code:"invalid_type"}),O;if(U._zod.pattern.lastIndex=0,!U._zod.pattern.test(O.value))return O.issues.push({input:O.value,inst:U,code:"invalid_format",format:J.format??"template_literal",pattern:U._zod.pattern.source}),O;return O}}),aL=j0("$ZodFunction",(U,J)=>{return S$.init(U,J),U._def=J,U._zod.def=J,U.implement=(Q)=>{if(typeof Q!=="function")throw Error("implement() must be called with a function");return function(...O){let X=U._def.input?Fz(U._def.input,O):O,z=Reflect.apply(Q,this,X);if(U._def.output)return Fz(U._def.output,z);return z}},U.implementAsync=(Q)=>{if(typeof Q!=="function")throw Error("implementAsync() must be called with a function");return async function(...O){let X=U._def.input?await Hz(U._def.input,O):O,z=await Reflect.apply(Q,this,X);if(U._def.output)return await Hz(U._def.output,z);return z}},U._zod.parse=(Q,O)=>{if(typeof Q.value!=="function")return Q.issues.push({code:"invalid_type",expected:"function",input:Q.value,inst:U}),Q;if(U._def.output&&U._def.output._zod.def.type==="promise")Q.value=U.implementAsync(Q.value);else Q.value=U.implement(Q.value);return Q},U.input=(...Q)=>{let O=U.constructor;if(Array.isArray(Q[0]))return new O({type:"function",input:new wz({type:"tuple",items:Q[0],rest:Q[1]}),output:U._def.output});return new O({type:"function",input:Q[0],output:U._def.output})},U.output=(Q)=>{return new U.constructor({type:"function",input:U._def.input,output:Q})},U}),sL=j0("$ZodPromise",(U,J)=>{S$.init(U,J),U._zod.parse=(Q,O)=>{return Promise.resolve(Q.value).then((X)=>J.innerType._zod.run({value:X,issues:[]},O))}}),eL=j0("$ZodLazy",(U,J)=>{S$.init(U,J),l$(U._zod,"innerType",()=>{let Q=J;if(!Q._cachedInner)Q._cachedInner=J.getter();return Q._cachedInner}),l$(U._zod,"pattern",()=>U._zod.innerType?._zod?.pattern),l$(U._zod,"propValues",()=>U._zod.innerType?._zod?.propValues),l$(U._zod,"optin",()=>U._zod.innerType?._zod?.optin??void 0),l$(U._zod,"optout",()=>U._zod.innerType?._zod?.optout??void 0),U._zod.parse=(Q,O)=>{return U._zod.innerType._zod.run(Q,O)}}),$5=j0("$ZodCustom",(U,J)=>{MU.init(U,J),S$.init(U,J),U._zod.parse=(Q,O)=>{return Q},U._zod.check=(Q)=>{let O=Q.value,X=J.fn(O);if(X instanceof Promise)return X.then((z)=>gv(z,Q,O,U));gv(X,Q,O,U);return}});function gv(U,J,Q,O){if(!U){let X={code:"custom",input:Q,inst:O,path:[...O._zod.def.path??[]],continue:!O._zod.def.abort};if(O._zod.def.params)X.params=O._zod.def.params;J.issues.push(XY(X))}}var YV={};y6(YV,{zhTW:()=>i5,zhCN:()=>o5,yo:()=>r5,vi:()=>n5,uz:()=>d5,ur:()=>m5,uk:()=>QV,ua:()=>l5,tr:()=>p5,th:()=>c5,ta:()=>h5,sv:()=>b5,sl:()=>u5,ru:()=>y5,ro:()=>f5,pt:()=>w5,ps:()=>g5,pl:()=>x5,ota:()=>k5,no:()=>N5,nl:()=>B5,ms:()=>v5,mk:()=>j5,lt:()=>S5,ko:()=>_5,km:()=>XV,kh:()=>E5,ka:()=>P5,ja:()=>R5,it:()=>C5,is:()=>T5,id:()=>q5,hy:()=>A5,hu:()=>M5,hr:()=>L5,he:()=>H5,frCA:()=>F5,fr:()=>W5,fi:()=>D5,fa:()=>K5,es:()=>z5,eo:()=>O5,en:()=>IV,el:()=>Z5,de:()=>V5,da:()=>G5,cs:()=>Y5,ca:()=>Q5,bg:()=>J5,be:()=>X5,az:()=>I5,ar:()=>U5});var vc=()=>{let U={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function J(X){return U[X]??null}let Q={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${X.expected}، ولكن تم إدخال ${L}`;return`مدخلات غير مقبولة: يفترض إدخال ${z}، ولكن تم إدخال ${L}`}case"invalid_value":if(X.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${J$(X.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return` أكبر من اللازم: يفترض أن تكون ${X.origin??"القيمة"} ${z} ${X.maximum.toString()} ${V.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${X.origin??"القيمة"} ${z} ${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`أصغر من اللازم: يفترض لـ ${X.origin} أن يكون ${z} ${X.minimum.toString()} ${V.unit}`;return`أصغر من اللازم: يفترض لـ ${X.origin} أن يكون ${z} ${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${X.prefix}"`;if(z.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${z.suffix}"`;if(z.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${z.includes}"`;if(z.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${z.pattern}`;return`${Q[z.format]??X.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${X.divisor}`;case"unrecognized_keys":return`معرف${X.keys.length>1?"ات":""} غريب${X.keys.length>1?"ة":""}: ${x0(X.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${X.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${X.origin}`;default:return"مدخل غير مقبول"}}};function U5(){return{localeError:vc()}}var Bc=()=>{let U={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function J(X){return U[X]??null}let Q={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Yanlış dəyər: gözlənilən instanceof ${X.expected}, daxil olan ${L}`;return`Yanlış dəyər: gözlənilən ${z}, daxil olan ${L}`}case"invalid_value":if(X.values.length===1)return`Yanlış dəyər: gözlənilən ${J$(X.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Çox böyük: gözlənilən ${X.origin??"dəyər"} ${z}${X.maximum.toString()} ${V.unit??"element"}`;return`Çox böyük: gözlənilən ${X.origin??"dəyər"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Çox kiçik: gözlənilən ${X.origin} ${z}${X.minimum.toString()} ${V.unit}`;return`Çox kiçik: gözlənilən ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Yanlış mətn: "${z.prefix}" ilə başlamalıdır`;if(z.format==="ends_with")return`Yanlış mətn: "${z.suffix}" ilə bitməlidir`;if(z.format==="includes")return`Yanlış mətn: "${z.includes}" daxil olmalıdır`;if(z.format==="regex")return`Yanlış mətn: ${z.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${Q[z.format]??X.format}`}case"not_multiple_of":return`Yanlış ədəd: ${X.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${X.keys.length>1?"lar":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${X.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function I5(){return{localeError:Bc()}}function bv(U,J,Q,O){let X=Math.abs(U),z=X%10,V=X%100;if(V>=11&&V<=19)return O;if(z===1)return J;if(z>=2&&z<=4)return Q;return O}var Nc=()=>{let U={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function J(X){return U[X]??null}let Q={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},O={nan:"NaN",number:"лік",array:"масіў"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Няправільны ўвод: чакаўся instanceof ${X.expected}, атрымана ${L}`;return`Няправільны ўвод: чакаўся ${z}, атрымана ${L}`}case"invalid_value":if(X.values.length===1)return`Няправільны ўвод: чакалася ${J$(X.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V){let L=Number(X.maximum),S=bv(L,V.unit.one,V.unit.few,V.unit.many);return`Занадта вялікі: чакалася, што ${X.origin??"значэнне"} павінна ${V.verb} ${z}${X.maximum.toString()} ${S}`}return`Занадта вялікі: чакалася, што ${X.origin??"значэнне"} павінна быць ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V){let L=Number(X.minimum),S=bv(L,V.unit.one,V.unit.few,V.unit.many);return`Занадта малы: чакалася, што ${X.origin} павінна ${V.verb} ${z}${X.minimum.toString()} ${S}`}return`Занадта малы: чакалася, што ${X.origin} павінна быць ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${z.prefix}"`;if(z.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${z.suffix}"`;if(z.format==="includes")return`Няправільны радок: павінен змяшчаць "${z.includes}"`;if(z.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${z.pattern}`;return`Няправільны ${Q[z.format]??X.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${X.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${X.keys.length>1?"ключы":"ключ"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${X.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${X.origin}`;default:return"Няправільны ўвод"}}};function X5(){return{localeError:Nc()}}var kc=()=>{let U={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function J(X){return U[X]??null}let Q={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},O={nan:"NaN",number:"число",array:"масив"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Невалиден вход: очакван instanceof ${X.expected}, получен ${L}`;return`Невалиден вход: очакван ${z}, получен ${L}`}case"invalid_value":if(X.values.length===1)return`Невалиден вход: очакван ${J$(X.values[0])}`;return`Невалидна опция: очаквано едно от ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Твърде голямо: очаква се ${X.origin??"стойност"} да съдържа ${z}${X.maximum.toString()} ${V.unit??"елемента"}`;return`Твърде голямо: очаква се ${X.origin??"стойност"} да бъде ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Твърде малко: очаква се ${X.origin} да съдържа ${z}${X.minimum.toString()} ${V.unit}`;return`Твърде малко: очаква се ${X.origin} да бъде ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Невалиден низ: трябва да започва с "${z.prefix}"`;if(z.format==="ends_with")return`Невалиден низ: трябва да завършва с "${z.suffix}"`;if(z.format==="includes")return`Невалиден низ: трябва да включва "${z.includes}"`;if(z.format==="regex")return`Невалиден низ: трябва да съвпада с ${z.pattern}`;let V="Невалиден";if(z.format==="emoji")V="Невалидно";if(z.format==="datetime")V="Невалидно";if(z.format==="date")V="Невалидна";if(z.format==="time")V="Невалидно";if(z.format==="duration")V="Невалидна";return`${V} ${Q[z.format]??X.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${X.divisor}`;case"unrecognized_keys":return`Неразпознат${X.keys.length>1?"и":""} ключ${X.keys.length>1?"ове":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${X.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${X.origin}`;default:return"Невалиден вход"}}};function J5(){return{localeError:kc()}}var gc=()=>{let U={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function J(X){return U[X]??null}let Q={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Tipus invàlid: s'esperava instanceof ${X.expected}, s'ha rebut ${L}`;return`Tipus invàlid: s'esperava ${z}, s'ha rebut ${L}`}case"invalid_value":if(X.values.length===1)return`Valor invàlid: s'esperava ${J$(X.values[0])}`;return`Opció invàlida: s'esperava una de ${x0(X.values," o ")}`;case"too_big":{let z=X.inclusive?"com a màxim":"menys de",V=J(X.origin);if(V)return`Massa gran: s'esperava que ${X.origin??"el valor"} contingués ${z} ${X.maximum.toString()} ${V.unit??"elements"}`;return`Massa gran: s'esperava que ${X.origin??"el valor"} fos ${z} ${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?"com a mínim":"més de",V=J(X.origin);if(V)return`Massa petit: s'esperava que ${X.origin} contingués ${z} ${X.minimum.toString()} ${V.unit}`;return`Massa petit: s'esperava que ${X.origin} fos ${z} ${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Format invàlid: ha de començar amb "${z.prefix}"`;if(z.format==="ends_with")return`Format invàlid: ha d'acabar amb "${z.suffix}"`;if(z.format==="includes")return`Format invàlid: ha d'incloure "${z.includes}"`;if(z.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${z.pattern}`;return`Format invàlid per a ${Q[z.format]??X.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${X.divisor}`;case"unrecognized_keys":return`Clau${X.keys.length>1?"s":""} no reconeguda${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${X.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${X.origin}`;default:return"Entrada invàlida"}}};function Q5(){return{localeError:gc()}}var xc=()=>{let U={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function J(X){return U[X]??null}let Q={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},O={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Neplatný vstup: očekáváno instanceof ${X.expected}, obdrženo ${L}`;return`Neplatný vstup: očekáváno ${z}, obdrženo ${L}`}case"invalid_value":if(X.values.length===1)return`Neplatný vstup: očekáváno ${J$(X.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Hodnota je příliš velká: ${X.origin??"hodnota"} musí mít ${z}${X.maximum.toString()} ${V.unit??"prvků"}`;return`Hodnota je příliš velká: ${X.origin??"hodnota"} musí být ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Hodnota je příliš malá: ${X.origin??"hodnota"} musí mít ${z}${X.minimum.toString()} ${V.unit??"prvků"}`;return`Hodnota je příliš malá: ${X.origin??"hodnota"} musí být ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Neplatný řetězec: musí začínat na "${z.prefix}"`;if(z.format==="ends_with")return`Neplatný řetězec: musí končit na "${z.suffix}"`;if(z.format==="includes")return`Neplatný řetězec: musí obsahovat "${z.includes}"`;if(z.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${z.pattern}`;return`Neplatný formát ${Q[z.format]??X.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${X.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${x0(X.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${X.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${X.origin}`;default:return"Neplatný vstup"}}};function Y5(){return{localeError:xc()}}var wc=()=>{let U={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function J(X){return U[X]??null}let Q={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},O={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ugyldigt input: forventede instanceof ${X.expected}, fik ${L}`;return`Ugyldigt input: forventede ${z}, fik ${L}`}case"invalid_value":if(X.values.length===1)return`Ugyldig værdi: forventede ${J$(X.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`For stor: forventede ${L??"value"} ${V.verb} ${z} ${X.maximum.toString()} ${V.unit??"elementer"}`;return`For stor: forventede ${L??"value"} havde ${z} ${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`For lille: forventede ${L} ${V.verb} ${z} ${X.minimum.toString()} ${V.unit}`;return`For lille: forventede ${L} havde ${z} ${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ugyldig streng: skal starte med "${z.prefix}"`;if(z.format==="ends_with")return`Ugyldig streng: skal ende med "${z.suffix}"`;if(z.format==="includes")return`Ugyldig streng: skal indeholde "${z.includes}"`;if(z.format==="regex")return`Ugyldig streng: skal matche mønsteret ${z.pattern}`;return`Ugyldig ${Q[z.format]??X.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${X.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${X.origin}`;default:return"Ugyldigt input"}}};function G5(){return{localeError:wc()}}var fc=()=>{let U={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function J(X){return U[X]??null}let Q={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},O={nan:"NaN",number:"Zahl",array:"Array"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ungültige Eingabe: erwartet instanceof ${X.expected}, erhalten ${L}`;return`Ungültige Eingabe: erwartet ${z}, erhalten ${L}`}case"invalid_value":if(X.values.length===1)return`Ungültige Eingabe: erwartet ${J$(X.values[0])}`;return`Ungültige Option: erwartet eine von ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Zu groß: erwartet, dass ${X.origin??"Wert"} ${z}${X.maximum.toString()} ${V.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${X.origin??"Wert"} ${z}${X.maximum.toString()} ist`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Zu klein: erwartet, dass ${X.origin} ${z}${X.minimum.toString()} ${V.unit} hat`;return`Zu klein: erwartet, dass ${X.origin} ${z}${X.minimum.toString()} ist`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ungültiger String: muss mit "${z.prefix}" beginnen`;if(z.format==="ends_with")return`Ungültiger String: muss mit "${z.suffix}" enden`;if(z.format==="includes")return`Ungültiger String: muss "${z.includes}" enthalten`;if(z.format==="regex")return`Ungültiger String: muss dem Muster ${z.pattern} entsprechen`;return`Ungültig: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${X.divisor} sein`;case"unrecognized_keys":return`${X.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${X.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${X.origin}`;default:return"Ungültige Eingabe"}}};function V5(){return{localeError:fc()}}var yc=()=>{let U={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function J(X){return U[X]??null}let Q={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(typeof X.expected==="string"&&/^[A-Z]/.test(X.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${X.expected}, λήφθηκε ${L}`;return`Μη έγκυρη είσοδος: αναμενόταν ${z}, λήφθηκε ${L}`}case"invalid_value":if(X.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${J$(X.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Πολύ μεγάλο: αναμενόταν ${X.origin??"τιμή"} να έχει ${z}${X.maximum.toString()} ${V.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${X.origin??"τιμή"} να είναι ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Πολύ μικρό: αναμενόταν ${X.origin} να έχει ${z}${X.minimum.toString()} ${V.unit}`;return`Πολύ μικρό: αναμενόταν ${X.origin} να είναι ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${z.prefix}"`;if(z.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${z.suffix}"`;if(z.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${z.includes}"`;if(z.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${z.pattern}`;return`Μη έγκυρο: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${X.divisor}`;case"unrecognized_keys":return`Άγνωστ${X.keys.length>1?"α":"ο"} κλειδ${X.keys.length>1?"ιά":"ί"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${X.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${X.origin}`;default:return"Μη έγκυρη είσοδος"}}};function Z5(){return{localeError:yc()}}var uc=()=>{let U={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function J(X){return U[X]??null}let Q={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;return`Invalid input: expected ${z}, received ${L}`}case"invalid_value":if(X.values.length===1)return`Invalid input: expected ${J$(X.values[0])}`;return`Invalid option: expected one of ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Too big: expected ${X.origin??"value"} to have ${z}${X.maximum.toString()} ${V.unit??"elements"}`;return`Too big: expected ${X.origin??"value"} to be ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Too small: expected ${X.origin} to have ${z}${X.minimum.toString()} ${V.unit}`;return`Too small: expected ${X.origin} to be ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Invalid string: must start with "${z.prefix}"`;if(z.format==="ends_with")return`Invalid string: must end with "${z.suffix}"`;if(z.format==="includes")return`Invalid string: must include "${z.includes}"`;if(z.format==="regex")return`Invalid string: must match pattern ${z.pattern}`;return`Invalid ${Q[z.format]??X.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${X.divisor}`;case"unrecognized_keys":return`Unrecognized key${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Invalid key in ${X.origin}`;case"invalid_union":if(X.options&&Array.isArray(X.options)&&X.options.length>0)return`Invalid discriminator value. Expected ${X.options.map((V)=>`'${V}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${X.origin}`;default:return"Invalid input"}}};function IV(){return{localeError:uc()}}var bc=()=>{let U={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function J(X){return U[X]??null}let Q={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},O={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Nevalida enigo: atendiĝis instanceof ${X.expected}, riceviĝis ${L}`;return`Nevalida enigo: atendiĝis ${z}, riceviĝis ${L}`}case"invalid_value":if(X.values.length===1)return`Nevalida enigo: atendiĝis ${J$(X.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Tro granda: atendiĝis ke ${X.origin??"valoro"} havu ${z}${X.maximum.toString()} ${V.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${X.origin??"valoro"} havu ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Tro malgranda: atendiĝis ke ${X.origin} havu ${z}${X.minimum.toString()} ${V.unit}`;return`Tro malgranda: atendiĝis ke ${X.origin} estu ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${z.prefix}"`;if(z.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${z.suffix}"`;if(z.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${z.includes}"`;if(z.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${z.pattern}`;return`Nevalida ${Q[z.format]??X.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${X.divisor}`;case"unrecognized_keys":return`Nekonata${X.keys.length>1?"j":""} ŝlosilo${X.keys.length>1?"j":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${X.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${X.origin}`;default:return"Nevalida enigo"}}};function O5(){return{localeError:bc()}}var hc=()=>{let U={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function J(X){return U[X]??null}let Q={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},O={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Entrada inválida: se esperaba instanceof ${X.expected}, recibido ${L}`;return`Entrada inválida: se esperaba ${z}, recibido ${L}`}case"invalid_value":if(X.values.length===1)return`Entrada inválida: se esperaba ${J$(X.values[0])}`;return`Opción inválida: se esperaba una de ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`Demasiado grande: se esperaba que ${L??"valor"} tuviera ${z}${X.maximum.toString()} ${V.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${L??"valor"} fuera ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`Demasiado pequeño: se esperaba que ${L} tuviera ${z}${X.minimum.toString()} ${V.unit}`;return`Demasiado pequeño: se esperaba que ${L} fuera ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Cadena inválida: debe comenzar con "${z.prefix}"`;if(z.format==="ends_with")return`Cadena inválida: debe terminar en "${z.suffix}"`;if(z.format==="includes")return`Cadena inválida: debe incluir "${z.includes}"`;if(z.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${z.pattern}`;return`Inválido ${Q[z.format]??X.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${X.divisor}`;case"unrecognized_keys":return`Llave${X.keys.length>1?"s":""} desconocida${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Llave inválida en ${O[X.origin]??X.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${O[X.origin]??X.origin}`;default:return"Entrada inválida"}}};function z5(){return{localeError:hc()}}var cc=()=>{let U={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function J(X){return U[X]??null}let Q={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},O={nan:"NaN",number:"عدد",array:"آرایه"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`ورودی نامعتبر: می‌بایست instanceof ${X.expected} می‌بود، ${L} دریافت شد`;return`ورودی نامعتبر: می‌بایست ${z} می‌بود، ${L} دریافت شد`}case"invalid_value":if(X.values.length===1)return`ورودی نامعتبر: می‌بایست ${J$(X.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${x0(X.values,"|")} می‌بود`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`خیلی بزرگ: ${X.origin??"مقدار"} باید ${z}${X.maximum.toString()} ${V.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${X.origin??"مقدار"} باید ${z}${X.maximum.toString()} باشد`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`خیلی کوچک: ${X.origin} باید ${z}${X.minimum.toString()} ${V.unit} باشد`;return`خیلی کوچک: ${X.origin} باید ${z}${X.minimum.toString()} باشد`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`رشته نامعتبر: باید با "${z.prefix}" شروع شود`;if(z.format==="ends_with")return`رشته نامعتبر: باید با "${z.suffix}" تمام شود`;if(z.format==="includes")return`رشته نامعتبر: باید شامل "${z.includes}" باشد`;if(z.format==="regex")return`رشته نامعتبر: باید با الگوی ${z.pattern} مطابقت داشته باشد`;return`${Q[z.format]??X.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${X.divisor} باشد`;case"unrecognized_keys":return`کلید${X.keys.length>1?"های":""} ناشناس: ${x0(X.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${X.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${X.origin}`;default:return"ورودی نامعتبر"}}};function K5(){return{localeError:cc()}}var pc=()=>{let U={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function J(X){return U[X]??null}let Q={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Virheellinen tyyppi: odotettiin instanceof ${X.expected}, oli ${L}`;return`Virheellinen tyyppi: odotettiin ${z}, oli ${L}`}case"invalid_value":if(X.values.length===1)return`Virheellinen syöte: täytyy olla ${J$(X.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Liian suuri: ${V.subject} täytyy olla ${z}${X.maximum.toString()} ${V.unit}`.trim();return`Liian suuri: arvon täytyy olla ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Liian pieni: ${V.subject} täytyy olla ${z}${X.minimum.toString()} ${V.unit}`.trim();return`Liian pieni: arvon täytyy olla ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${z.prefix}"`;if(z.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${z.suffix}"`;if(z.format==="includes")return`Virheellinen syöte: täytyy sisältää "${z.includes}"`;if(z.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${z.pattern}`;return`Virheellinen ${Q[z.format]??X.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${X.divisor} monikerta`;case"unrecognized_keys":return`${X.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${x0(X.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function D5(){return{localeError:pc()}}var lc=()=>{let U={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function J(X){return U[X]??null}let Q={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},O={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Entrée invalide : instanceof ${X.expected} attendu, ${L} reçu`;return`Entrée invalide : ${z} attendu, ${L} reçu`}case"invalid_value":if(X.values.length===1)return`Entrée invalide : ${J$(X.values[0])} attendu`;return`Option invalide : une valeur parmi ${x0(X.values,"|")} attendue`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Trop grand : ${O[X.origin]??"valeur"} doit ${V.verb} ${z}${X.maximum.toString()} ${V.unit??"élément(s)"}`;return`Trop grand : ${O[X.origin]??"valeur"} doit être ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Trop petit : ${O[X.origin]??"valeur"} doit ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`Trop petit : ${O[X.origin]??"valeur"} doit être ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Chaîne invalide : doit commencer par "${z.prefix}"`;if(z.format==="ends_with")return`Chaîne invalide : doit se terminer par "${z.suffix}"`;if(z.format==="includes")return`Chaîne invalide : doit inclure "${z.includes}"`;if(z.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${z.pattern}`;return`${Q[z.format]??X.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${X.divisor}`;case"unrecognized_keys":return`Clé${X.keys.length>1?"s":""} non reconnue${X.keys.length>1?"s":""} : ${x0(X.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${X.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${X.origin}`;default:return"Entrée invalide"}}};function W5(){return{localeError:lc()}}var mc=()=>{let U={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function J(X){return U[X]??null}let Q={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Entrée invalide : attendu instanceof ${X.expected}, reçu ${L}`;return`Entrée invalide : attendu ${z}, reçu ${L}`}case"invalid_value":if(X.values.length===1)return`Entrée invalide : attendu ${J$(X.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"≤":"<",V=J(X.origin);if(V)return`Trop grand : attendu que ${X.origin??"la valeur"} ait ${z}${X.maximum.toString()} ${V.unit}`;return`Trop grand : attendu que ${X.origin??"la valeur"} soit ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?"≥":">",V=J(X.origin);if(V)return`Trop petit : attendu que ${X.origin} ait ${z}${X.minimum.toString()} ${V.unit}`;return`Trop petit : attendu que ${X.origin} soit ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Chaîne invalide : doit commencer par "${z.prefix}"`;if(z.format==="ends_with")return`Chaîne invalide : doit se terminer par "${z.suffix}"`;if(z.format==="includes")return`Chaîne invalide : doit inclure "${z.includes}"`;if(z.format==="regex")return`Chaîne invalide : doit correspondre au motif ${z.pattern}`;return`${Q[z.format]??X.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${X.divisor}`;case"unrecognized_keys":return`Clé${X.keys.length>1?"s":""} non reconnue${X.keys.length>1?"s":""} : ${x0(X.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${X.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${X.origin}`;default:return"Entrée invalide"}}};function F5(){return{localeError:mc()}}var dc=()=>{let U={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},J={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},Q=(E)=>E?U[E]:void 0,O=(E)=>{let _=Q(E);if(_)return _.label;return E??U.unknown.label},X=(E)=>`ה${O(E)}`,z=(E)=>{return(Q(E)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},V=(E)=>{if(!E)return null;return J[E]??null},L={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},S={nan:"NaN"};return(E)=>{switch(E.code){case"invalid_type":{let _=E.expected,M=S[_??""]??O(_),P=Q$(E.input),v=S[P]??U[P]?.label??P;if(/^[A-Z]/.test(E.expected))return`קלט לא תקין: צריך להיות instanceof ${E.expected}, התקבל ${v}`;return`קלט לא תקין: צריך להיות ${M}, התקבל ${v}`}case"invalid_value":{if(E.values.length===1)return`ערך לא תקין: הערך חייב להיות ${J$(E.values[0])}`;let _=E.values.map((v)=>J$(v));if(E.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${_[0]} או ${_[1]}`;let M=_[_.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${_.slice(0,-1).join(", ")} או ${M}`}case"too_big":{let _=V(E.origin),M=X(E.origin??"value");if(E.origin==="string")return`${_?.longLabel??"ארוך"} מדי: ${M} צריכה להכיל ${E.maximum.toString()} ${_?.unit??""} ${E.inclusive?"או פחות":"לכל היותר"}`.trim();if(E.origin==="number"){let N=E.inclusive?`קטן או שווה ל-${E.maximum}`:`קטן מ-${E.maximum}`;return`גדול מדי: ${M} צריך להיות ${N}`}if(E.origin==="array"||E.origin==="set"){let N=E.origin==="set"?"צריכה":"צריך",f=E.inclusive?`${E.maximum} ${_?.unit??""} או פחות`:`פחות מ-${E.maximum} ${_?.unit??""}`;return`גדול מדי: ${M} ${N} להכיל ${f}`.trim()}let P=E.inclusive?"<=":"<",v=z(E.origin??"value");if(_?.unit)return`${_.longLabel} מדי: ${M} ${v} ${P}${E.maximum.toString()} ${_.unit}`;return`${_?.longLabel??"גדול"} מדי: ${M} ${v} ${P}${E.maximum.toString()}`}case"too_small":{let _=V(E.origin),M=X(E.origin??"value");if(E.origin==="string")return`${_?.shortLabel??"קצר"} מדי: ${M} צריכה להכיל ${E.minimum.toString()} ${_?.unit??""} ${E.inclusive?"או יותר":"לפחות"}`.trim();if(E.origin==="number"){let N=E.inclusive?`גדול או שווה ל-${E.minimum}`:`גדול מ-${E.minimum}`;return`קטן מדי: ${M} צריך להיות ${N}`}if(E.origin==="array"||E.origin==="set"){let N=E.origin==="set"?"צריכה":"צריך";if(E.minimum===1&&E.inclusive){let x=E.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${M} ${N} להכיל ${x}`}let f=E.inclusive?`${E.minimum} ${_?.unit??""} או יותר`:`יותר מ-${E.minimum} ${_?.unit??""}`;return`קטן מדי: ${M} ${N} להכיל ${f}`.trim()}let P=E.inclusive?">=":">",v=z(E.origin??"value");if(_?.unit)return`${_.shortLabel} מדי: ${M} ${v} ${P}${E.minimum.toString()} ${_.unit}`;return`${_?.shortLabel??"קטן"} מדי: ${M} ${v} ${P}${E.minimum.toString()}`}case"invalid_format":{let _=E;if(_.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${_.prefix}"`;if(_.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${_.suffix}"`;if(_.format==="includes")return`המחרוזת חייבת לכלול "${_.includes}"`;if(_.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${_.pattern}`;let M=L[_.format],P=M?.label??_.format,N=(M?.gender??"m")==="f"?"תקינה":"תקין";return`${P} לא ${N}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${E.divisor}`;case"unrecognized_keys":return`מפתח${E.keys.length>1?"ות":""} לא מזוה${E.keys.length>1?"ים":"ה"}: ${x0(E.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${X(E.origin??"array")}`;default:return"קלט לא תקין"}}};function H5(){return{localeError:dc()}}var nc=()=>{let U={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function J(X){return U[X]??null}let Q={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},O={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Neispravan unos: očekuje se instanceof ${X.expected}, a primljeno je ${L}`;return`Neispravan unos: očekuje se ${z}, a primljeno je ${L}`}case"invalid_value":if(X.values.length===1)return`Neispravna vrijednost: očekivano ${J$(X.values[0])}`;return`Neispravna opcija: očekivano jedno od ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`Preveliko: očekivano da ${L??"vrijednost"} ima ${z}${X.maximum.toString()} ${V.unit??"elemenata"}`;return`Preveliko: očekivano da ${L??"vrijednost"} bude ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin),L=O[X.origin]??X.origin;if(V)return`Premalo: očekivano da ${L} ima ${z}${X.minimum.toString()} ${V.unit}`;return`Premalo: očekivano da ${L} bude ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Neispravan tekst: mora započinjati s "${z.prefix}"`;if(z.format==="ends_with")return`Neispravan tekst: mora završavati s "${z.suffix}"`;if(z.format==="includes")return`Neispravan tekst: mora sadržavati "${z.includes}"`;if(z.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${z.pattern}`;return`Neispravna ${Q[z.format]??X.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${X.divisor}`;case"unrecognized_keys":return`Neprepoznat${X.keys.length>1?"i ključevi":" ključ"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${O[X.origin]??X.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${O[X.origin]??X.origin}`;default:return"Neispravan unos"}}};function L5(){return{localeError:nc()}}var oc=()=>{let U={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function J(X){return U[X]??null}let Q={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},O={nan:"NaN",number:"szám",array:"tömb"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Érvénytelen bemenet: a várt érték instanceof ${X.expected}, a kapott érték ${L}`;return`Érvénytelen bemenet: a várt érték ${z}, a kapott érték ${L}`}case"invalid_value":if(X.values.length===1)return`Érvénytelen bemenet: a várt érték ${J$(X.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Túl nagy: ${X.origin??"érték"} mérete túl nagy ${z}${X.maximum.toString()} ${V.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${X.origin??"érték"} túl nagy: ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Túl kicsi: a bemeneti érték ${X.origin} mérete túl kicsi ${z}${X.minimum.toString()} ${V.unit}`;return`Túl kicsi: a bemeneti érték ${X.origin} túl kicsi ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Érvénytelen string: "${z.prefix}" értékkel kell kezdődnie`;if(z.format==="ends_with")return`Érvénytelen string: "${z.suffix}" értékkel kell végződnie`;if(z.format==="includes")return`Érvénytelen string: "${z.includes}" értéket kell tartalmaznia`;if(z.format==="regex")return`Érvénytelen string: ${z.pattern} mintának kell megfelelnie`;return`Érvénytelen ${Q[z.format]??X.format}`}case"not_multiple_of":return`Érvénytelen szám: ${X.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${X.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${X.origin}`;default:return"Érvénytelen bemenet"}}};function M5(){return{localeError:oc()}}function hv(U,J,Q){return Math.abs(U)===1?J:Q}function ZY(U){if(!U)return"";let J=["ա","ե","ը","ի","ո","ու","օ"],Q=U[U.length-1];return U+(J.includes(Q)?"ն":"ը")}var ic=()=>{let U={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function J(X){return U[X]??null}let Q={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},O={nan:"NaN",number:"թիվ",array:"զանգված"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${X.expected}, ստացվել է ${L}`;return`Սխալ մուտքագրում․ սպասվում էր ${z}, ստացվել է ${L}`}case"invalid_value":if(X.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${J$(X.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V){let L=Number(X.maximum),S=hv(L,V.unit.one,V.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZY(X.origin??"արժեք")} կունենա ${z}${X.maximum.toString()} ${S}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZY(X.origin??"արժեք")} լինի ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V){let L=Number(X.minimum),S=hv(L,V.unit.one,V.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZY(X.origin)} կունենա ${z}${X.minimum.toString()} ${S}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZY(X.origin)} լինի ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${z.prefix}"-ով`;if(z.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${z.suffix}"-ով`;if(z.format==="includes")return`Սխալ տող․ պետք է պարունակի "${z.includes}"`;if(z.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${z.pattern} ձևաչափին`;return`Սխալ ${Q[z.format]??X.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${X.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${X.keys.length>1?"ներ":""}. ${x0(X.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${ZY(X.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${ZY(X.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function A5(){return{localeError:ic()}}var rc=()=>{let U={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function J(X){return U[X]??null}let Q={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Input tidak valid: diharapkan instanceof ${X.expected}, diterima ${L}`;return`Input tidak valid: diharapkan ${z}, diterima ${L}`}case"invalid_value":if(X.values.length===1)return`Input tidak valid: diharapkan ${J$(X.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Terlalu besar: diharapkan ${X.origin??"value"} memiliki ${z}${X.maximum.toString()} ${V.unit??"elemen"}`;return`Terlalu besar: diharapkan ${X.origin??"value"} menjadi ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Terlalu kecil: diharapkan ${X.origin} memiliki ${z}${X.minimum.toString()} ${V.unit}`;return`Terlalu kecil: diharapkan ${X.origin} menjadi ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`String tidak valid: harus dimulai dengan "${z.prefix}"`;if(z.format==="ends_with")return`String tidak valid: harus berakhir dengan "${z.suffix}"`;if(z.format==="includes")return`String tidak valid: harus menyertakan "${z.includes}"`;if(z.format==="regex")return`String tidak valid: harus sesuai pola ${z.pattern}`;return`${Q[z.format]??X.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${X.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${X.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${X.origin}`;default:return"Input tidak valid"}}};function q5(){return{localeError:rc()}}var tc=()=>{let U={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function J(X){return U[X]??null}let Q={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},O={nan:"NaN",number:"númer",array:"fylki"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Rangt gildi: Þú slóst inn ${L} þar sem á að vera instanceof ${X.expected}`;return`Rangt gildi: Þú slóst inn ${L} þar sem á að vera ${z}`}case"invalid_value":if(X.values.length===1)return`Rangt gildi: gert ráð fyrir ${J$(X.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Of stórt: gert er ráð fyrir að ${X.origin??"gildi"} hafi ${z}${X.maximum.toString()} ${V.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${X.origin??"gildi"} sé ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Of lítið: gert er ráð fyrir að ${X.origin} hafi ${z}${X.minimum.toString()} ${V.unit}`;return`Of lítið: gert er ráð fyrir að ${X.origin} sé ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ógildur strengur: verður að byrja á "${z.prefix}"`;if(z.format==="ends_with")return`Ógildur strengur: verður að enda á "${z.suffix}"`;if(z.format==="includes")return`Ógildur strengur: verður að innihalda "${z.includes}"`;if(z.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${z.pattern}`;return`Rangt ${Q[z.format]??X.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${X.divisor}`;case"unrecognized_keys":return`Óþekkt ${X.keys.length>1?"ir lyklar":"ur lykill"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${X.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${X.origin}`;default:return"Rangt gildi"}}};function T5(){return{localeError:tc()}}var ac=()=>{let U={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function J(X){return U[X]??null}let Q={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},O={nan:"NaN",number:"numero",array:"vettore"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Input non valido: atteso instanceof ${X.expected}, ricevuto ${L}`;return`Input non valido: atteso ${z}, ricevuto ${L}`}case"invalid_value":if(X.values.length===1)return`Input non valido: atteso ${J$(X.values[0])}`;return`Opzione non valida: atteso uno tra ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Troppo grande: ${X.origin??"valore"} deve avere ${z}${X.maximum.toString()} ${V.unit??"elementi"}`;return`Troppo grande: ${X.origin??"valore"} deve essere ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Troppo piccolo: ${X.origin} deve avere ${z}${X.minimum.toString()} ${V.unit}`;return`Troppo piccolo: ${X.origin} deve essere ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Stringa non valida: deve iniziare con "${z.prefix}"`;if(z.format==="ends_with")return`Stringa non valida: deve terminare con "${z.suffix}"`;if(z.format==="includes")return`Stringa non valida: deve includere "${z.includes}"`;if(z.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${z.pattern}`;return`Input non valido: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${X.divisor}`;case"unrecognized_keys":return`Chiav${X.keys.length>1?"i":"e"} non riconosciut${X.keys.length>1?"e":"a"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${X.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${X.origin}`;default:return"Input non valido"}}};function C5(){return{localeError:ac()}}var sc=()=>{let U={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function J(X){return U[X]??null}let Q={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},O={nan:"NaN",number:"数値",array:"配列"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`無効な入力: instanceof ${X.expected}が期待されましたが、${L}が入力されました`;return`無効な入力: ${z}が期待されましたが、${L}が入力されました`}case"invalid_value":if(X.values.length===1)return`無効な入力: ${J$(X.values[0])}が期待されました`;return`無効な選択: ${x0(X.values,"、")}のいずれかである必要があります`;case"too_big":{let z=X.inclusive?"以下である":"より小さい",V=J(X.origin);if(V)return`大きすぎる値: ${X.origin??"値"}は${X.maximum.toString()}${V.unit??"要素"}${z}必要があります`;return`大きすぎる値: ${X.origin??"値"}は${X.maximum.toString()}${z}必要があります`}case"too_small":{let z=X.inclusive?"以上である":"より大きい",V=J(X.origin);if(V)return`小さすぎる値: ${X.origin}は${X.minimum.toString()}${V.unit}${z}必要があります`;return`小さすぎる値: ${X.origin}は${X.minimum.toString()}${z}必要があります`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`無効な文字列: "${z.prefix}"で始まる必要があります`;if(z.format==="ends_with")return`無効な文字列: "${z.suffix}"で終わる必要があります`;if(z.format==="includes")return`無効な文字列: "${z.includes}"を含む必要があります`;if(z.format==="regex")return`無効な文字列: パターン${z.pattern}に一致する必要があります`;return`無効な${Q[z.format]??X.format}`}case"not_multiple_of":return`無効な数値: ${X.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${X.keys.length>1?"群":""}: ${x0(X.keys,"、")}`;case"invalid_key":return`${X.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${X.origin}内の無効な値`;default:return"無効な入力"}}};function R5(){return{localeError:sc()}}var ec=()=>{let U={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function J(X){return U[X]??null}let Q={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},O={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${X.expected}, მიღებული ${L}`;return`არასწორი შეყვანა: მოსალოდნელი ${z}, მიღებული ${L}`}case"invalid_value":if(X.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${J$(X.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${x0(X.values,"|")}-დან`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`ზედმეტად დიდი: მოსალოდნელი ${X.origin??"მნიშვნელობა"} ${V.verb} ${z}${X.maximum.toString()} ${V.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${X.origin??"მნიშვნელობა"} იყოს ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`ზედმეტად პატარა: მოსალოდნელი ${X.origin} ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${X.origin} იყოს ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${z.prefix}"-ით`;if(z.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${z.suffix}"-ით`;if(z.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${z.includes}"-ს`;if(z.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${z.pattern}`;return`არასწორი ${Q[z.format]??X.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${X.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${X.keys.length>1?"ები":"ი"}: ${x0(X.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${X.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${X.origin}-ში`;default:return"არასწორი შეყვანა"}}};function P5(){return{localeError:ec()}}var $p=()=>{let U={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function J(X){return U[X]??null}let Q={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},O={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${X.expected} ប៉ុន្តែទទួលបាន ${L}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${z} ប៉ុន្តែទទួលបាន ${L}`}case"invalid_value":if(X.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${J$(X.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`ធំពេក៖ ត្រូវការ ${X.origin??"តម្លៃ"} ${z} ${X.maximum.toString()} ${V.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${X.origin??"តម្លៃ"} ${z} ${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`តូចពេក៖ ត្រូវការ ${X.origin} ${z} ${X.minimum.toString()} ${V.unit}`;return`តូចពេក៖ ត្រូវការ ${X.origin} ${z} ${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${z.prefix}"`;if(z.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${z.suffix}"`;if(z.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${z.includes}"`;if(z.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${z.pattern}`;return`មិនត្រឹមត្រូវ៖ ${Q[z.format]??X.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${X.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${x0(X.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${X.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${X.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function XV(){return{localeError:$p()}}function E5(){return XV()}var Up=()=>{let U={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function J(X){return U[X]??null}let Q={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`잘못된 입력: 예상 타입은 instanceof ${X.expected}, 받은 타입은 ${L}입니다`;return`잘못된 입력: 예상 타입은 ${z}, 받은 타입은 ${L}입니다`}case"invalid_value":if(X.values.length===1)return`잘못된 입력: 값은 ${J$(X.values[0])} 이어야 합니다`;return`잘못된 옵션: ${x0(X.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let z=X.inclusive?"이하":"미만",V=z==="미만"?"이어야 합니다":"여야 합니다",L=J(X.origin),S=L?.unit??"요소";if(L)return`${X.origin??"값"}이 너무 큽니다: ${X.maximum.toString()}${S} ${z}${V}`;return`${X.origin??"값"}이 너무 큽니다: ${X.maximum.toString()} ${z}${V}`}case"too_small":{let z=X.inclusive?"이상":"초과",V=z==="이상"?"이어야 합니다":"여야 합니다",L=J(X.origin),S=L?.unit??"요소";if(L)return`${X.origin??"값"}이 너무 작습니다: ${X.minimum.toString()}${S} ${z}${V}`;return`${X.origin??"값"}이 너무 작습니다: ${X.minimum.toString()} ${z}${V}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`잘못된 문자열: "${z.prefix}"(으)로 시작해야 합니다`;if(z.format==="ends_with")return`잘못된 문자열: "${z.suffix}"(으)로 끝나야 합니다`;if(z.format==="includes")return`잘못된 문자열: "${z.includes}"을(를) 포함해야 합니다`;if(z.format==="regex")return`잘못된 문자열: 정규식 ${z.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${Q[z.format]??X.format}`}case"not_multiple_of":return`잘못된 숫자: ${X.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${x0(X.keys,", ")}`;case"invalid_key":return`잘못된 키: ${X.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${X.origin}`;default:return"잘못된 입력"}}};function _5(){return{localeError:Up()}}var JV=(U)=>{return U.charAt(0).toUpperCase()+U.slice(1)};function cv(U){let J=Math.abs(U),Q=J%10,O=J%100;if(O>=11&&O<=19||Q===0)return"many";if(Q===1)return"one";return"few"}var Ip=()=>{let U={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function J(X,z,V,L){let S=U[X]??null;if(S===null)return S;return{unit:S.unit[z],verb:S.verb[L][V?"inclusive":"notInclusive"]}}let Q={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},O={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Gautas tipas ${L}, o tikėtasi - instanceof ${X.expected}`;return`Gautas tipas ${L}, o tikėtasi - ${z}`}case"invalid_value":if(X.values.length===1)return`Privalo būti ${J$(X.values[0])}`;return`Privalo būti vienas iš ${x0(X.values,"|")} pasirinkimų`;case"too_big":{let z=O[X.origin]??X.origin,V=J(X.origin,cv(Number(X.maximum)),X.inclusive??!1,"smaller");if(V?.verb)return`${JV(z??X.origin??"reikšmė")} ${V.verb} ${X.maximum.toString()} ${V.unit??"elementų"}`;let L=X.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${JV(z??X.origin??"reikšmė")} turi būti ${L} ${X.maximum.toString()} ${V?.unit}`}case"too_small":{let z=O[X.origin]??X.origin,V=J(X.origin,cv(Number(X.minimum)),X.inclusive??!1,"bigger");if(V?.verb)return`${JV(z??X.origin??"reikšmė")} ${V.verb} ${X.minimum.toString()} ${V.unit??"elementų"}`;let L=X.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${JV(z??X.origin??"reikšmė")} turi būti ${L} ${X.minimum.toString()} ${V?.unit}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Eilutė privalo prasidėti "${z.prefix}"`;if(z.format==="ends_with")return`Eilutė privalo pasibaigti "${z.suffix}"`;if(z.format==="includes")return`Eilutė privalo įtraukti "${z.includes}"`;if(z.format==="regex")return`Eilutė privalo atitikti ${z.pattern}`;return`Neteisingas ${Q[z.format]??X.format}`}case"not_multiple_of":return`Skaičius privalo būti ${X.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${X.keys.length>1?"i":"as"} rakt${X.keys.length>1?"ai":"as"}: ${x0(X.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let z=O[X.origin]??X.origin;return`${JV(z??X.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function S5(){return{localeError:Ip()}}var Xp=()=>{let U={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function J(X){return U[X]??null}let Q={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},O={nan:"NaN",number:"број",array:"низа"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Грешен внес: се очекува instanceof ${X.expected}, примено ${L}`;return`Грешен внес: се очекува ${z}, примено ${L}`}case"invalid_value":if(X.values.length===1)return`Invalid input: expected ${J$(X.values[0])}`;return`Грешана опција: се очекува една ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Премногу голем: се очекува ${X.origin??"вредноста"} да има ${z}${X.maximum.toString()} ${V.unit??"елементи"}`;return`Премногу голем: се очекува ${X.origin??"вредноста"} да биде ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Премногу мал: се очекува ${X.origin} да има ${z}${X.minimum.toString()} ${V.unit}`;return`Премногу мал: се очекува ${X.origin} да биде ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Неважечка низа: мора да започнува со "${z.prefix}"`;if(z.format==="ends_with")return`Неважечка низа: мора да завршува со "${z.suffix}"`;if(z.format==="includes")return`Неважечка низа: мора да вклучува "${z.includes}"`;if(z.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${z.pattern}`;return`Invalid ${Q[z.format]??X.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${X.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${X.origin}`;default:return"Грешен внес"}}};function j5(){return{localeError:Xp()}}var Jp=()=>{let U={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function J(X){return U[X]??null}let Q={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},O={nan:"NaN",number:"nombor"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Input tidak sah: dijangka instanceof ${X.expected}, diterima ${L}`;return`Input tidak sah: dijangka ${z}, diterima ${L}`}case"invalid_value":if(X.values.length===1)return`Input tidak sah: dijangka ${J$(X.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Terlalu besar: dijangka ${X.origin??"nilai"} ${V.verb} ${z}${X.maximum.toString()} ${V.unit??"elemen"}`;return`Terlalu besar: dijangka ${X.origin??"nilai"} adalah ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Terlalu kecil: dijangka ${X.origin} ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`Terlalu kecil: dijangka ${X.origin} adalah ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`String tidak sah: mesti bermula dengan "${z.prefix}"`;if(z.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${z.suffix}"`;if(z.format==="includes")return`String tidak sah: mesti mengandungi "${z.includes}"`;if(z.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${z.pattern}`;return`${Q[z.format]??X.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${X.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${x0(X.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${X.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${X.origin}`;default:return"Input tidak sah"}}};function v5(){return{localeError:Jp()}}var Qp=()=>{let U={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function J(X){return U[X]??null}let Q={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},O={nan:"NaN",number:"getal"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ongeldige invoer: verwacht instanceof ${X.expected}, ontving ${L}`;return`Ongeldige invoer: verwacht ${z}, ontving ${L}`}case"invalid_value":if(X.values.length===1)return`Ongeldige invoer: verwacht ${J$(X.values[0])}`;return`Ongeldige optie: verwacht één van ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin),L=X.origin==="date"?"laat":X.origin==="string"?"lang":"groot";if(V)return`Te ${L}: verwacht dat ${X.origin??"waarde"} ${z}${X.maximum.toString()} ${V.unit??"elementen"} ${V.verb}`;return`Te ${L}: verwacht dat ${X.origin??"waarde"} ${z}${X.maximum.toString()} is`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin),L=X.origin==="date"?"vroeg":X.origin==="string"?"kort":"klein";if(V)return`Te ${L}: verwacht dat ${X.origin} ${z}${X.minimum.toString()} ${V.unit} ${V.verb}`;return`Te ${L}: verwacht dat ${X.origin} ${z}${X.minimum.toString()} is`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ongeldige tekst: moet met "${z.prefix}" beginnen`;if(z.format==="ends_with")return`Ongeldige tekst: moet op "${z.suffix}" eindigen`;if(z.format==="includes")return`Ongeldige tekst: moet "${z.includes}" bevatten`;if(z.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${z.pattern}`;return`Ongeldig: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${X.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${X.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${X.origin}`;default:return"Ongeldige invoer"}}};function B5(){return{localeError:Qp()}}var Yp=()=>{let U={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function J(X){return U[X]??null}let Q={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},O={nan:"NaN",number:"tall",array:"liste"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ugyldig input: forventet instanceof ${X.expected}, fikk ${L}`;return`Ugyldig input: forventet ${z}, fikk ${L}`}case"invalid_value":if(X.values.length===1)return`Ugyldig verdi: forventet ${J$(X.values[0])}`;return`Ugyldig valg: forventet en av ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`For stor(t): forventet ${X.origin??"value"} til å ha ${z}${X.maximum.toString()} ${V.unit??"elementer"}`;return`For stor(t): forventet ${X.origin??"value"} til å ha ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`For lite(n): forventet ${X.origin} til å ha ${z}${X.minimum.toString()} ${V.unit}`;return`For lite(n): forventet ${X.origin} til å ha ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ugyldig streng: må starte med "${z.prefix}"`;if(z.format==="ends_with")return`Ugyldig streng: må ende med "${z.suffix}"`;if(z.format==="includes")return`Ugyldig streng: må inneholde "${z.includes}"`;if(z.format==="regex")return`Ugyldig streng: må matche mønsteret ${z.pattern}`;return`Ugyldig ${Q[z.format]??X.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${X.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${X.origin}`;default:return"Ugyldig input"}}};function N5(){return{localeError:Yp()}}var Gp=()=>{let U={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function J(X){return U[X]??null}let Q={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},O={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Fâsit giren: umulan instanceof ${X.expected}, alınan ${L}`;return`Fâsit giren: umulan ${z}, alınan ${L}`}case"invalid_value":if(X.values.length===1)return`Fâsit giren: umulan ${J$(X.values[0])}`;return`Fâsit tercih: mûteberler ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Fazla büyük: ${X.origin??"value"}, ${z}${X.maximum.toString()} ${V.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${X.origin??"value"}, ${z}${X.maximum.toString()} olmalıydı.`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Fazla küçük: ${X.origin}, ${z}${X.minimum.toString()} ${V.unit} sahip olmalıydı.`;return`Fazla küçük: ${X.origin}, ${z}${X.minimum.toString()} olmalıydı.`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Fâsit metin: "${z.prefix}" ile başlamalı.`;if(z.format==="ends_with")return`Fâsit metin: "${z.suffix}" ile bitmeli.`;if(z.format==="includes")return`Fâsit metin: "${z.includes}" ihtivâ etmeli.`;if(z.format==="regex")return`Fâsit metin: ${z.pattern} nakşına uymalı.`;return`Fâsit ${Q[z.format]??X.format}`}case"not_multiple_of":return`Fâsit sayı: ${X.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${X.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function k5(){return{localeError:Gp()}}var Vp=()=>{let U={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function J(X){return U[X]??null}let Q={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},O={nan:"NaN",number:"عدد",array:"ارې"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`ناسم ورودي: باید instanceof ${X.expected} وای, مګر ${L} ترلاسه شو`;return`ناسم ورودي: باید ${z} وای, مګر ${L} ترلاسه شو`}case"invalid_value":if(X.values.length===1)return`ناسم ورودي: باید ${J$(X.values[0])} وای`;return`ناسم انتخاب: باید یو له ${x0(X.values,"|")} څخه وای`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`ډیر لوی: ${X.origin??"ارزښت"} باید ${z}${X.maximum.toString()} ${V.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${X.origin??"ارزښت"} باید ${z}${X.maximum.toString()} وي`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`ډیر کوچنی: ${X.origin} باید ${z}${X.minimum.toString()} ${V.unit} ولري`;return`ډیر کوچنی: ${X.origin} باید ${z}${X.minimum.toString()} وي`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`ناسم متن: باید د "${z.prefix}" سره پیل شي`;if(z.format==="ends_with")return`ناسم متن: باید د "${z.suffix}" سره پای ته ورسيږي`;if(z.format==="includes")return`ناسم متن: باید "${z.includes}" ولري`;if(z.format==="regex")return`ناسم متن: باید د ${z.pattern} سره مطابقت ولري`;return`${Q[z.format]??X.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${X.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${X.keys.length>1?"کلیډونه":"کلیډ"}: ${x0(X.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${X.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${X.origin} کې`;default:return"ناسمه ورودي"}}};function g5(){return{localeError:Vp()}}var Zp=()=>{let U={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function J(X){return U[X]??null}let Q={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},O={nan:"NaN",number:"liczba",array:"tablica"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${X.expected}, otrzymano ${L}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${z}, otrzymano ${L}`}case"invalid_value":if(X.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${J$(X.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Za duża wartość: oczekiwano, że ${X.origin??"wartość"} będzie mieć ${z}${X.maximum.toString()} ${V.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${X.origin??"wartość"} będzie wynosić ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Za mała wartość: oczekiwano, że ${X.origin??"wartość"} będzie mieć ${z}${X.minimum.toString()} ${V.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${X.origin??"wartość"} będzie wynosić ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${z.prefix}"`;if(z.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${z.suffix}"`;if(z.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${z.includes}"`;if(z.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${z.pattern}`;return`Nieprawidłow(y/a/e) ${Q[z.format]??X.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${X.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${X.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${X.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function x5(){return{localeError:Zp()}}var Op=()=>{let U={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function J(X){return U[X]??null}let Q={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},O={nan:"NaN",number:"número",null:"nulo"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Tipo inválido: esperado instanceof ${X.expected}, recebido ${L}`;return`Tipo inválido: esperado ${z}, recebido ${L}`}case"invalid_value":if(X.values.length===1)return`Entrada inválida: esperado ${J$(X.values[0])}`;return`Opção inválida: esperada uma das ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Muito grande: esperado que ${X.origin??"valor"} tivesse ${z}${X.maximum.toString()} ${V.unit??"elementos"}`;return`Muito grande: esperado que ${X.origin??"valor"} fosse ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Muito pequeno: esperado que ${X.origin} tivesse ${z}${X.minimum.toString()} ${V.unit}`;return`Muito pequeno: esperado que ${X.origin} fosse ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Texto inválido: deve começar com "${z.prefix}"`;if(z.format==="ends_with")return`Texto inválido: deve terminar com "${z.suffix}"`;if(z.format==="includes")return`Texto inválido: deve incluir "${z.includes}"`;if(z.format==="regex")return`Texto inválido: deve corresponder ao padrão ${z.pattern}`;return`${Q[z.format]??X.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${X.divisor}`;case"unrecognized_keys":return`Chave${X.keys.length>1?"s":""} desconhecida${X.keys.length>1?"s":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Chave inválida em ${X.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${X.origin}`;default:return"Campo inválido"}}};function w5(){return{localeError:Op()}}var zp=()=>{let U={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function J(X){return U[X]??null}let Q={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},O={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;return`Intrare invalidă: așteptat ${z}, primit ${L}`}case"invalid_value":if(X.values.length===1)return`Intrare invalidă: așteptat ${J$(X.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Prea mare: așteptat ca ${X.origin??"valoarea"} ${V.verb} ${z}${X.maximum.toString()} ${V.unit??"elemente"}`;return`Prea mare: așteptat ca ${X.origin??"valoarea"} să fie ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Prea mic: așteptat ca ${X.origin} ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`Prea mic: așteptat ca ${X.origin} să fie ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${z.prefix}"`;if(z.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${z.suffix}"`;if(z.format==="includes")return`Șir invalid: trebuie să includă "${z.includes}"`;if(z.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${z.pattern}`;return`Format invalid: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${X.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${x0(X.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${X.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${X.origin}`;default:return"Intrare invalidă"}}};function f5(){return{localeError:zp()}}function pv(U,J,Q,O){let X=Math.abs(U),z=X%10,V=X%100;if(V>=11&&V<=19)return O;if(z===1)return J;if(z>=2&&z<=4)return Q;return O}var Kp=()=>{let U={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function J(X){return U[X]??null}let Q={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},O={nan:"NaN",number:"число",array:"массив"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Неверный ввод: ожидалось instanceof ${X.expected}, получено ${L}`;return`Неверный ввод: ожидалось ${z}, получено ${L}`}case"invalid_value":if(X.values.length===1)return`Неверный ввод: ожидалось ${J$(X.values[0])}`;return`Неверный вариант: ожидалось одно из ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V){let L=Number(X.maximum),S=pv(L,V.unit.one,V.unit.few,V.unit.many);return`Слишком большое значение: ожидалось, что ${X.origin??"значение"} будет иметь ${z}${X.maximum.toString()} ${S}`}return`Слишком большое значение: ожидалось, что ${X.origin??"значение"} будет ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V){let L=Number(X.minimum),S=pv(L,V.unit.one,V.unit.few,V.unit.many);return`Слишком маленькое значение: ожидалось, что ${X.origin} будет иметь ${z}${X.minimum.toString()} ${S}`}return`Слишком маленькое значение: ожидалось, что ${X.origin} будет ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Неверная строка: должна начинаться с "${z.prefix}"`;if(z.format==="ends_with")return`Неверная строка: должна заканчиваться на "${z.suffix}"`;if(z.format==="includes")return`Неверная строка: должна содержать "${z.includes}"`;if(z.format==="regex")return`Неверная строка: должна соответствовать шаблону ${z.pattern}`;return`Неверный ${Q[z.format]??X.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${X.divisor}`;case"unrecognized_keys":return`Нераспознанн${X.keys.length>1?"ые":"ый"} ключ${X.keys.length>1?"и":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${X.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${X.origin}`;default:return"Неверные входные данные"}}};function y5(){return{localeError:Kp()}}var Dp=()=>{let U={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function J(X){return U[X]??null}let Q={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},O={nan:"NaN",number:"število",array:"tabela"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Neveljaven vnos: pričakovano instanceof ${X.expected}, prejeto ${L}`;return`Neveljaven vnos: pričakovano ${z}, prejeto ${L}`}case"invalid_value":if(X.values.length===1)return`Neveljaven vnos: pričakovano ${J$(X.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Preveliko: pričakovano, da bo ${X.origin??"vrednost"} imelo ${z}${X.maximum.toString()} ${V.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${X.origin??"vrednost"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Premajhno: pričakovano, da bo ${X.origin} imelo ${z}${X.minimum.toString()} ${V.unit}`;return`Premajhno: pričakovano, da bo ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Neveljaven niz: mora se začeti z "${z.prefix}"`;if(z.format==="ends_with")return`Neveljaven niz: mora se končati z "${z.suffix}"`;if(z.format==="includes")return`Neveljaven niz: mora vsebovati "${z.includes}"`;if(z.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${z.pattern}`;return`Neveljaven ${Q[z.format]??X.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${X.divisor}`;case"unrecognized_keys":return`Neprepoznan${X.keys.length>1?"i ključi":" ključ"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${X.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${X.origin}`;default:return"Neveljaven vnos"}}};function u5(){return{localeError:Dp()}}var Wp=()=>{let U={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function J(X){return U[X]??null}let Q={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},O={nan:"NaN",number:"antal",array:"lista"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ogiltig inmatning: förväntat instanceof ${X.expected}, fick ${L}`;return`Ogiltig inmatning: förväntat ${z}, fick ${L}`}case"invalid_value":if(X.values.length===1)return`Ogiltig inmatning: förväntat ${J$(X.values[0])}`;return`Ogiltigt val: förväntade en av ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`För stor(t): förväntade ${X.origin??"värdet"} att ha ${z}${X.maximum.toString()} ${V.unit??"element"}`;return`För stor(t): förväntat ${X.origin??"värdet"} att ha ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`För lite(t): förväntade ${X.origin??"värdet"} att ha ${z}${X.minimum.toString()} ${V.unit}`;return`För lite(t): förväntade ${X.origin??"värdet"} att ha ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ogiltig sträng: måste börja med "${z.prefix}"`;if(z.format==="ends_with")return`Ogiltig sträng: måste sluta med "${z.suffix}"`;if(z.format==="includes")return`Ogiltig sträng: måste innehålla "${z.includes}"`;if(z.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${z.pattern}"`;return`Ogiltig(t) ${Q[z.format]??X.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${X.divisor}`;case"unrecognized_keys":return`${X.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${x0(X.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${X.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${X.origin??"värdet"}`;default:return"Ogiltig input"}}};function b5(){return{localeError:Wp()}}var Fp=()=>{let U={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function J(X){return U[X]??null}let Q={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},O={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${X.expected}, பெறப்பட்டது ${L}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${z}, பெறப்பட்டது ${L}`}case"invalid_value":if(X.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${J$(X.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${x0(X.values,"|")} இல் ஒன்று`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${X.origin??"மதிப்பு"} ${z}${X.maximum.toString()} ${V.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${X.origin??"மதிப்பு"} ${z}${X.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${X.origin} ${z}${X.minimum.toString()} ${V.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${X.origin} ${z}${X.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`தவறான சரம்: "${z.prefix}" இல் தொடங்க வேண்டும்`;if(z.format==="ends_with")return`தவறான சரம்: "${z.suffix}" இல் முடிவடைய வேண்டும்`;if(z.format==="includes")return`தவறான சரம்: "${z.includes}" ஐ உள்ளடக்க வேண்டும்`;if(z.format==="regex")return`தவறான சரம்: ${z.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${Q[z.format]??X.format}`}case"not_multiple_of":return`தவறான எண்: ${X.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${X.keys.length>1?"கள்":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${X.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function h5(){return{localeError:Fp()}}var Hp=()=>{let U={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function J(X){return U[X]??null}let Q={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},O={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${X.expected} แต่ได้รับ ${L}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${z} แต่ได้รับ ${L}`}case"invalid_value":if(X.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${J$(X.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"ไม่เกิน":"น้อยกว่า",V=J(X.origin);if(V)return`เกินกำหนด: ${X.origin??"ค่า"} ควรมี${z} ${X.maximum.toString()} ${V.unit??"รายการ"}`;return`เกินกำหนด: ${X.origin??"ค่า"} ควรมี${z} ${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?"อย่างน้อย":"มากกว่า",V=J(X.origin);if(V)return`น้อยกว่ากำหนด: ${X.origin} ควรมี${z} ${X.minimum.toString()} ${V.unit}`;return`น้อยกว่ากำหนด: ${X.origin} ควรมี${z} ${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${z.prefix}"`;if(z.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${z.suffix}"`;if(z.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${z.includes}" อยู่ในข้อความ`;if(z.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${z.pattern}`;return`รูปแบบไม่ถูกต้อง: ${Q[z.format]??X.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${X.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${x0(X.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${X.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${X.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function c5(){return{localeError:Hp()}}var Lp=()=>{let U={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function J(X){return U[X]??null}let Q={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Geçersiz değer: beklenen instanceof ${X.expected}, alınan ${L}`;return`Geçersiz değer: beklenen ${z}, alınan ${L}`}case"invalid_value":if(X.values.length===1)return`Geçersiz değer: beklenen ${J$(X.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Çok büyük: beklenen ${X.origin??"değer"} ${z}${X.maximum.toString()} ${V.unit??"öğe"}`;return`Çok büyük: beklenen ${X.origin??"değer"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Çok küçük: beklenen ${X.origin} ${z}${X.minimum.toString()} ${V.unit}`;return`Çok küçük: beklenen ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Geçersiz metin: "${z.prefix}" ile başlamalı`;if(z.format==="ends_with")return`Geçersiz metin: "${z.suffix}" ile bitmeli`;if(z.format==="includes")return`Geçersiz metin: "${z.includes}" içermeli`;if(z.format==="regex")return`Geçersiz metin: ${z.pattern} desenine uymalı`;return`Geçersiz ${Q[z.format]??X.format}`}case"not_multiple_of":return`Geçersiz sayı: ${X.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${X.keys.length>1?"lar":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${X.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function p5(){return{localeError:Lp()}}var Mp=()=>{let U={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function J(X){return U[X]??null}let Q={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},O={nan:"NaN",number:"число",array:"масив"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Неправильні вхідні дані: очікується instanceof ${X.expected}, отримано ${L}`;return`Неправильні вхідні дані: очікується ${z}, отримано ${L}`}case"invalid_value":if(X.values.length===1)return`Неправильні вхідні дані: очікується ${J$(X.values[0])}`;return`Неправильна опція: очікується одне з ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Занадто велике: очікується, що ${X.origin??"значення"} ${V.verb} ${z}${X.maximum.toString()} ${V.unit??"елементів"}`;return`Занадто велике: очікується, що ${X.origin??"значення"} буде ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Занадто мале: очікується, що ${X.origin} ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`Занадто мале: очікується, що ${X.origin} буде ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Неправильний рядок: повинен починатися з "${z.prefix}"`;if(z.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${z.suffix}"`;if(z.format==="includes")return`Неправильний рядок: повинен містити "${z.includes}"`;if(z.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${z.pattern}`;return`Неправильний ${Q[z.format]??X.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${X.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${X.keys.length>1?"і":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${X.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${X.origin}`;default:return"Неправильні вхідні дані"}}};function QV(){return{localeError:Mp()}}function l5(){return QV()}var Ap=()=>{let U={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function J(X){return U[X]??null}let Q={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},O={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`غلط ان پٹ: instanceof ${X.expected} متوقع تھا، ${L} موصول ہوا`;return`غلط ان پٹ: ${z} متوقع تھا، ${L} موصول ہوا`}case"invalid_value":if(X.values.length===1)return`غلط ان پٹ: ${J$(X.values[0])} متوقع تھا`;return`غلط آپشن: ${x0(X.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`بہت بڑا: ${X.origin??"ویلیو"} کے ${z}${X.maximum.toString()} ${V.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${X.origin??"ویلیو"} کا ${z}${X.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`بہت چھوٹا: ${X.origin} کے ${z}${X.minimum.toString()} ${V.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${X.origin} کا ${z}${X.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`غلط سٹرنگ: "${z.prefix}" سے شروع ہونا چاہیے`;if(z.format==="ends_with")return`غلط سٹرنگ: "${z.suffix}" پر ختم ہونا چاہیے`;if(z.format==="includes")return`غلط سٹرنگ: "${z.includes}" شامل ہونا چاہیے`;if(z.format==="regex")return`غلط سٹرنگ: پیٹرن ${z.pattern} سے میچ ہونا چاہیے`;return`غلط ${Q[z.format]??X.format}`}case"not_multiple_of":return`غلط نمبر: ${X.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${X.keys.length>1?"ز":""}: ${x0(X.keys,"، ")}`;case"invalid_key":return`${X.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${X.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function m5(){return{localeError:Ap()}}var qp=()=>{let U={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function J(X){return U[X]??null}let Q={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},O={nan:"NaN",number:"raqam",array:"massiv"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${X.expected}, qabul qilingan ${L}`;return`Noto‘g‘ri kirish: kutilgan ${z}, qabul qilingan ${L}`}case"invalid_value":if(X.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${J$(X.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Juda katta: kutilgan ${X.origin??"qiymat"} ${z}${X.maximum.toString()} ${V.unit} ${V.verb}`;return`Juda katta: kutilgan ${X.origin??"qiymat"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Juda kichik: kutilgan ${X.origin} ${z}${X.minimum.toString()} ${V.unit} ${V.verb}`;return`Juda kichik: kutilgan ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Noto‘g‘ri satr: "${z.prefix}" bilan boshlanishi kerak`;if(z.format==="ends_with")return`Noto‘g‘ri satr: "${z.suffix}" bilan tugashi kerak`;if(z.format==="includes")return`Noto‘g‘ri satr: "${z.includes}" ni o‘z ichiga olishi kerak`;if(z.format==="regex")return`Noto‘g‘ri satr: ${z.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${Q[z.format]??X.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${X.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${X.keys.length>1?"lar":""}: ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${X.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function d5(){return{localeError:qp()}}var Tp=()=>{let U={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function J(X){return U[X]??null}let Q={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},O={nan:"NaN",number:"số",array:"mảng"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${X.expected}, nhận được ${L}`;return`Đầu vào không hợp lệ: mong đợi ${z}, nhận được ${L}`}case"invalid_value":if(X.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${J$(X.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Quá lớn: mong đợi ${X.origin??"giá trị"} ${V.verb} ${z}${X.maximum.toString()} ${V.unit??"phần tử"}`;return`Quá lớn: mong đợi ${X.origin??"giá trị"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Quá nhỏ: mong đợi ${X.origin} ${V.verb} ${z}${X.minimum.toString()} ${V.unit}`;return`Quá nhỏ: mong đợi ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${z.prefix}"`;if(z.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${z.suffix}"`;if(z.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${z.includes}"`;if(z.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${z.pattern}`;return`${Q[z.format]??X.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${X.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${x0(X.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${X.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${X.origin}`;default:return"Đầu vào không hợp lệ"}}};function n5(){return{localeError:Tp()}}var Cp=()=>{let U={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function J(X){return U[X]??null}let Q={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},O={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`无效输入:期望 instanceof ${X.expected},实际接收 ${L}`;return`无效输入:期望 ${z},实际接收 ${L}`}case"invalid_value":if(X.values.length===1)return`无效输入:期望 ${J$(X.values[0])}`;return`无效选项:期望以下之一 ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`数值过大:期望 ${X.origin??"值"} ${z}${X.maximum.toString()} ${V.unit??"个元素"}`;return`数值过大:期望 ${X.origin??"值"} ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`数值过小:期望 ${X.origin} ${z}${X.minimum.toString()} ${V.unit}`;return`数值过小:期望 ${X.origin} ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`无效字符串:必须以 "${z.prefix}" 开头`;if(z.format==="ends_with")return`无效字符串:必须以 "${z.suffix}" 结尾`;if(z.format==="includes")return`无效字符串:必须包含 "${z.includes}"`;if(z.format==="regex")return`无效字符串:必须满足正则表达式 ${z.pattern}`;return`无效${Q[z.format]??X.format}`}case"not_multiple_of":return`无效数字:必须是 ${X.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${x0(X.keys,", ")}`;case"invalid_key":return`${X.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${X.origin} 中包含无效值(value)`;default:return"无效输入"}}};function o5(){return{localeError:Cp()}}var Rp=()=>{let U={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function J(X){return U[X]??null}let Q={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},O={nan:"NaN"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`無效的輸入值:預期為 instanceof ${X.expected},但收到 ${L}`;return`無效的輸入值:預期為 ${z},但收到 ${L}`}case"invalid_value":if(X.values.length===1)return`無效的輸入值:預期為 ${J$(X.values[0])}`;return`無效的選項:預期為以下其中之一 ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`數值過大:預期 ${X.origin??"值"} 應為 ${z}${X.maximum.toString()} ${V.unit??"個元素"}`;return`數值過大:預期 ${X.origin??"值"} 應為 ${z}${X.maximum.toString()}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`數值過小:預期 ${X.origin} 應為 ${z}${X.minimum.toString()} ${V.unit}`;return`數值過小:預期 ${X.origin} 應為 ${z}${X.minimum.toString()}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`無效的字串:必須以 "${z.prefix}" 開頭`;if(z.format==="ends_with")return`無效的字串:必須以 "${z.suffix}" 結尾`;if(z.format==="includes")return`無效的字串:必須包含 "${z.includes}"`;if(z.format==="regex")return`無效的字串:必須符合格式 ${z.pattern}`;return`無效的 ${Q[z.format]??X.format}`}case"not_multiple_of":return`無效的數字:必須為 ${X.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${X.keys.length>1?"們":""}:${x0(X.keys,"、")}`;case"invalid_key":return`${X.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${X.origin} 中有無效的值`;default:return"無效的輸入值"}}};function i5(){return{localeError:Rp()}}var Pp=()=>{let U={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function J(X){return U[X]??null}let Q={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},O={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(X)=>{switch(X.code){case"invalid_type":{let z=O[X.expected]??X.expected,V=Q$(X.input),L=O[V]??V;if(/^[A-Z]/.test(X.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${X.expected}, àmọ̀ a rí ${L}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${z}, àmọ̀ a rí ${L}`}case"invalid_value":if(X.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${J$(X.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${x0(X.values,"|")}`;case"too_big":{let z=X.inclusive?"<=":"<",V=J(X.origin);if(V)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${X.origin??"iye"} ${V.verb} ${z}${X.maximum} ${V.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${z}${X.maximum}`}case"too_small":{let z=X.inclusive?">=":">",V=J(X.origin);if(V)return`Kéré ju: a ní láti jẹ́ pé ${X.origin} ${V.verb} ${z}${X.minimum} ${V.unit}`;return`Kéré ju: a ní láti jẹ́ ${z}${X.minimum}`}case"invalid_format":{let z=X;if(z.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${z.prefix}"`;if(z.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${z.suffix}"`;if(z.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${z.includes}"`;if(z.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${z.pattern}`;return`Aṣìṣe: ${Q[z.format]??X.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${X.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${x0(X.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${X.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${X.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function r5(){return{localeError:Pp()}}var lv,t5=Symbol("ZodOutput"),a5=Symbol("ZodInput");class s5{constructor(){this._map=new WeakMap,this._idmap=new Map}add(U,...J){let Q=J[0];if(this._map.set(U,Q),Q&&typeof Q==="object"&&"id"in Q)this._idmap.set(Q.id,U);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(U){let J=this._map.get(U);if(J&&typeof J==="object"&&"id"in J)this._idmap.delete(J.id);return this._map.delete(U),this}get(U){let J=U._zod.parent;if(J){let Q={...this.get(J)??{}};delete Q.id;let O={...Q,...this._map.get(U)};return Object.keys(O).length?O:void 0}return this._map.get(U)}has(U){return this._map.has(U)}}function uz(){return new s5}(lv=globalThis).__zod_globalRegistry??(lv.__zod_globalRegistry=uz());var R6=globalThis.__zod_globalRegistry;function e5(U,J){return new U({type:"string",...V$(J)})}function $M(U,J){return new U({type:"string",coerce:!0,...V$(J)})}function bz(U,J){return new U({type:"string",format:"email",check:"string_format",abort:!1,...V$(J)})}function GV(U,J){return new U({type:"string",format:"guid",check:"string_format",abort:!1,...V$(J)})}function hz(U,J){return new U({type:"string",format:"uuid",check:"string_format",abort:!1,...V$(J)})}function cz(U,J){return new U({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...V$(J)})}function pz(U,J){return new U({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...V$(J)})}function lz(U,J){return new U({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...V$(J)})}function VV(U,J){return new U({type:"string",format:"url",check:"string_format",abort:!1,...V$(J)})}function mz(U,J){return new U({type:"string",format:"emoji",check:"string_format",abort:!1,...V$(J)})}function dz(U,J){return new U({type:"string",format:"nanoid",check:"string_format",abort:!1,...V$(J)})}function nz(U,J){return new U({type:"string",format:"cuid",check:"string_format",abort:!1,...V$(J)})}function oz(U,J){return new U({type:"string",format:"cuid2",check:"string_format",abort:!1,...V$(J)})}function iz(U,J){return new U({type:"string",format:"ulid",check:"string_format",abort:!1,...V$(J)})}function rz(U,J){return new U({type:"string",format:"xid",check:"string_format",abort:!1,...V$(J)})}function tz(U,J){return new U({type:"string",format:"ksuid",check:"string_format",abort:!1,...V$(J)})}function az(U,J){return new U({type:"string",format:"ipv4",check:"string_format",abort:!1,...V$(J)})}function sz(U,J){return new U({type:"string",format:"ipv6",check:"string_format",abort:!1,...V$(J)})}function UM(U,J){return new U({type:"string",format:"mac",check:"string_format",abort:!1,...V$(J)})}function ez(U,J){return new U({type:"string",format:"cidrv4",check:"string_format",abort:!1,...V$(J)})}function $K(U,J){return new U({type:"string",format:"cidrv6",check:"string_format",abort:!1,...V$(J)})}function UK(U,J){return new U({type:"string",format:"base64",check:"string_format",abort:!1,...V$(J)})}function IK(U,J){return new U({type:"string",format:"base64url",check:"string_format",abort:!1,...V$(J)})}function XK(U,J){return new U({type:"string",format:"e164",check:"string_format",abort:!1,...V$(J)})}function JK(U,J){return new U({type:"string",format:"jwt",check:"string_format",abort:!1,...V$(J)})}var IM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function XM(U,J){return new U({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...V$(J)})}function JM(U,J){return new U({type:"string",format:"date",check:"string_format",...V$(J)})}function QM(U,J){return new U({type:"string",format:"time",check:"string_format",precision:null,...V$(J)})}function YM(U,J){return new U({type:"string",format:"duration",check:"string_format",...V$(J)})}function GM(U,J){return new U({type:"number",checks:[],...V$(J)})}function VM(U,J){return new U({type:"number",coerce:!0,checks:[],...V$(J)})}function ZM(U,J){return new U({type:"number",check:"number_format",abort:!1,format:"safeint",...V$(J)})}function OM(U,J){return new U({type:"number",check:"number_format",abort:!1,format:"float32",...V$(J)})}function zM(U,J){return new U({type:"number",check:"number_format",abort:!1,format:"float64",...V$(J)})}function KM(U,J){return new U({type:"number",check:"number_format",abort:!1,format:"int32",...V$(J)})}function DM(U,J){return new U({type:"number",check:"number_format",abort:!1,format:"uint32",...V$(J)})}function WM(U,J){return new U({type:"boolean",...V$(J)})}function FM(U,J){return new U({type:"boolean",coerce:!0,...V$(J)})}function HM(U,J){return new U({type:"bigint",...V$(J)})}function LM(U,J){return new U({type:"bigint",coerce:!0,...V$(J)})}function MM(U,J){return new U({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...V$(J)})}function AM(U,J){return new U({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...V$(J)})}function qM(U,J){return new U({type:"symbol",...V$(J)})}function TM(U,J){return new U({type:"undefined",...V$(J)})}function CM(U,J){return new U({type:"null",...V$(J)})}function RM(U){return new U({type:"any"})}function PM(U){return new U({type:"unknown"})}function EM(U,J){return new U({type:"never",...V$(J)})}function _M(U,J){return new U({type:"void",...V$(J)})}function SM(U,J){return new U({type:"date",...V$(J)})}function jM(U,J){return new U({type:"date",coerce:!0,...V$(J)})}function vM(U,J){return new U({type:"nan",...V$(J)})}function y1(U,J){return new _z({check:"less_than",...V$(J),value:U,inclusive:!1})}function R4(U,J){return new _z({check:"less_than",...V$(J),value:U,inclusive:!0})}function u1(U,J){return new Sz({check:"greater_than",...V$(J),value:U,inclusive:!1})}function l6(U,J){return new Sz({check:"greater_than",...V$(J),value:U,inclusive:!0})}function QK(U){return u1(0,U)}function YK(U){return y1(0,U)}function GK(U){return R4(0,U)}function VK(U){return l6(0,U)}function qX(U,J){return new _H({check:"multiple_of",...V$(J),value:U})}function TX(U,J){return new vH({check:"max_size",...V$(J),maximum:U})}function b1(U,J){return new BH({check:"min_size",...V$(J),minimum:U})}function jJ(U,J){return new NH({check:"size_equals",...V$(J),size:U})}function vJ(U,J){return new kH({check:"max_length",...V$(J),maximum:U})}function qI(U,J){return new gH({check:"min_length",...V$(J),minimum:U})}function BJ(U,J){return new xH({check:"length_equals",...V$(J),length:U})}function OY(U,J){return new wH({check:"string_format",format:"regex",...V$(J),pattern:U})}function zY(U){return new fH({check:"string_format",format:"lowercase",...V$(U)})}function KY(U){return new yH({check:"string_format",format:"uppercase",...V$(U)})}function DY(U,J){return new uH({check:"string_format",format:"includes",...V$(J),includes:U})}function WY(U,J){return new bH({check:"string_format",format:"starts_with",...V$(J),prefix:U})}function FY(U,J){return new hH({check:"string_format",format:"ends_with",...V$(J),suffix:U})}function ZK(U,J,Q){return new cH({check:"property",property:U,schema:J,...V$(Q)})}function HY(U,J){return new pH({check:"mime_type",mime:U,...V$(J)})}function I1(U){return new lH({check:"overwrite",tx:U})}function LY(U){return I1((J)=>J.normalize(U))}function MY(){return I1((U)=>U.trim())}function AY(){return I1((U)=>U.toLowerCase())}function qY(){return I1((U)=>U.toUpperCase())}function TY(){return I1((U)=>bF(U))}function BM(U,J,Q){return new U({type:"array",element:J,...V$(Q)})}function _p(U,J,Q){return new U({type:"union",options:J,...V$(Q)})}function Sp(U,J,Q){return new U({type:"union",options:J,inclusive:!1,...V$(Q)})}function jp(U,J,Q,O){return new U({type:"union",options:Q,discriminator:J,...V$(O)})}function vp(U,J,Q){return new U({type:"intersection",left:J,right:Q})}function Bp(U,J,Q,O){let X=Q instanceof S$;return new U({type:"tuple",items:J,rest:X?Q:null,...V$(X?O:Q)})}function Np(U,J,Q,O){return new U({type:"record",keyType:J,valueType:Q,...V$(O)})}function kp(U,J,Q,O){return new U({type:"map",keyType:J,valueType:Q,...V$(O)})}function gp(U,J,Q){return new U({type:"set",valueType:J,...V$(Q)})}function xp(U,J,Q){let O=Array.isArray(J)?Object.fromEntries(J.map((X)=>[X,X])):J;return new U({type:"enum",entries:O,...V$(Q)})}function wp(U,J,Q){return new U({type:"enum",entries:J,...V$(Q)})}function fp(U,J,Q){return new U({type:"literal",values:Array.isArray(J)?J:[J],...V$(Q)})}function NM(U,J){return new U({type:"file",...V$(J)})}function yp(U,J){return new U({type:"transform",transform:J})}function up(U,J){return new U({type:"optional",innerType:J})}function bp(U,J){return new U({type:"nullable",innerType:J})}function hp(U,J,Q){return new U({type:"default",innerType:J,get defaultValue(){return typeof Q==="function"?Q():cF(Q)}})}function cp(U,J,Q){return new U({type:"nonoptional",innerType:J,...V$(Q)})}function pp(U,J){return new U({type:"success",innerType:J})}function lp(U,J,Q){return new U({type:"catch",innerType:J,catchValue:typeof Q==="function"?Q:()=>Q})}function mp(U,J,Q){return new U({type:"pipe",in:J,out:Q})}function dp(U,J){return new U({type:"readonly",innerType:J})}function np(U,J,Q){return new U({type:"template_literal",parts:J,...V$(Q)})}function op(U,J){return new U({type:"lazy",getter:J})}function ip(U,J){return new U({type:"promise",innerType:J})}function kM(U,J,Q){let O=V$(Q);return O.abort??(O.abort=!0),new U({type:"custom",check:"custom",fn:J,...O})}function gM(U,J,Q){return new U({type:"custom",check:"custom",fn:J,...V$(Q)})}function xM(U,J){let Q=mv((O)=>{return O.addIssue=(X)=>{if(typeof X==="string")O.issues.push(XY(X,O.value,Q._zod.def));else{let z=X;if(z.fatal)z.continue=!1;z.code??(z.code="custom"),z.input??(z.input=O.value),z.inst??(z.inst=Q),z.continue??(z.continue=!Q._zod.def.abort),O.issues.push(XY(z))}},U(O.value,O)},J);return Q}function mv(U,J){let Q=new MU({check:"custom",...V$(J)});return Q._zod.check=U,Q}function wM(U){let J=new MU({check:"describe"});return J._zod.onattach=[(Q)=>{let O=R6.get(Q)??{};R6.add(Q,{...O,description:U})}],J._zod.check=()=>{},J}function fM(U){let J=new MU({check:"meta"});return J._zod.onattach=[(Q)=>{let O=R6.get(Q)??{};R6.add(Q,{...O,...U})}],J._zod.check=()=>{},J}function yM(U,J){let Q=V$(J),O=Q.truthy??["true","1","yes","on","y","enabled"],X=Q.falsy??["false","0","no","off","n","disabled"];if(Q.case!=="sensitive")O=O.map((v)=>typeof v==="string"?v.toLowerCase():v),X=X.map((v)=>typeof v==="string"?v.toLowerCase():v);let z=new Set(O),V=new Set(X),L=U.Codec??UV,S=U.Boolean??e2,_=new(U.String??SJ)({type:"string",error:Q.error}),M=new S({type:"boolean",error:Q.error}),P=new L({type:"pipe",in:_,out:M,transform:(v,N)=>{let f=v;if(Q.case!=="sensitive")f=f.toLowerCase();if(z.has(f))return!0;else if(V.has(f))return!1;else return N.issues.push({code:"invalid_value",expected:"stringbool",values:[...z,...V],input:N.value,inst:P,continue:!1}),{}},reverseTransform:(v,N)=>{if(v===!0)return O[0]||"true";else return X[0]||"false"},error:Q.error});return P}function CY(U,J,Q,O={}){let X=V$(O),z={...V$(O),check:"string_format",type:"string",format:J,fn:typeof Q==="function"?Q:(L)=>Q.test(L),...X};if(Q instanceof RegExp)z.pattern=Q;return new U(z)}function CX(U){let J=U?.target??"draft-2020-12";if(J==="draft-4")J="draft-04";if(J==="draft-7")J="draft-07";return{processors:U.processors??{},metadataRegistry:U?.metadata??R6,target:J,unrepresentable:U?.unrepresentable??"throw",override:U?.override??(()=>{}),io:U?.io??"output",counter:0,seen:new Map,cycles:U?.cycles??"ref",reused:U?.reused??"inline",external:U?.external??void 0}}function GU(U,J,Q={path:[],schemaPath:[]}){var O;let X=U._zod.def,z=J.seen.get(U);if(z){if(z.count++,Q.schemaPath.includes(U))z.cycle=Q.path;return z.schema}let V={schema:{},count:1,cycle:void 0,path:Q.path};J.seen.set(U,V);let L=U._zod.toJSONSchema?.();if(L)V.schema=L;else{let _={...Q,schemaPath:[...Q.schemaPath,U],path:Q.path};if(U._zod.processJSONSchema)U._zod.processJSONSchema(J,V.schema,_);else{let P=V.schema,v=J.processors[X.type];if(!v)throw Error(`[toJSONSchema]: Non-representable type encountered: ${X.type}`);v(U,J,P,_)}let M=U._zod.parent;if(M){if(!V.ref)V.ref=M;GU(M,J,_),J.seen.get(M).isParent=!0}}let S=J.metadataRegistry.get(U);if(S)Object.assign(V.schema,S);if(J.io==="input"&&m6(U))delete V.schema.examples,delete V.schema.default;if(J.io==="input"&&"_prefault"in V.schema)(O=V.schema).default??(O.default=V.schema._prefault);return delete V.schema._prefault,J.seen.get(U).schema}function RX(U,J){let Q=U.seen.get(J);if(!Q)throw Error("Unprocessed schema. This is a bug in Zod.");let O=new Map;for(let V of U.seen.entries()){let L=U.metadataRegistry.get(V[0])?.id;if(L){let S=O.get(L);if(S&&S!==V[0])throw Error(`Duplicate schema id "${L}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);O.set(L,V[0])}}let X=(V)=>{let L=U.target==="draft-2020-12"?"$defs":"definitions";if(U.external){let M=U.external.registry.get(V[0])?.id,P=U.external.uri??((N)=>N);if(M)return{ref:P(M)};let v=V[1].defId??V[1].schema.id??`schema${U.counter++}`;return V[1].defId=v,{defId:v,ref:`${P("__shared")}#/${L}/${v}`}}if(V[1]===Q)return{ref:"#"};let E=`${"#"}/${L}/`,_=V[1].schema.id??`__schema${U.counter++}`;return{defId:_,ref:E+_}},z=(V)=>{if(V[1].schema.$ref)return;let L=V[1],{ref:S,defId:E}=X(V);if(L.def={...L.schema},E)L.defId=E;let _=L.schema;for(let M in _)delete _[M];_.$ref=S};if(U.cycles==="throw")for(let V of U.seen.entries()){let L=V[1];if(L.cycle)throw Error(`Cycle detected: #/${L.cycle?.join("/")}/<root>
331
+
332
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let V of U.seen.entries()){let L=V[1];if(J===V[0]){z(V);continue}if(U.external){let E=U.external.registry.get(V[0])?.id;if(J!==V[0]&&E){z(V);continue}}if(U.metadataRegistry.get(V[0])?.id){z(V);continue}if(L.cycle){z(V);continue}if(L.count>1){if(U.reused==="ref"){z(V);continue}}}}function PX(U,J){let Q=U.seen.get(J);if(!Q)throw Error("Unprocessed schema. This is a bug in Zod.");let O=(L)=>{let S=U.seen.get(L);if(S.ref===null)return;let E=S.def??S.schema,_={...E},M=S.ref;if(S.ref=null,M){O(M);let v=U.seen.get(M),N=v.schema;if(N.$ref&&(U.target==="draft-07"||U.target==="draft-04"||U.target==="openapi-3.0"))E.allOf=E.allOf??[],E.allOf.push(N);else Object.assign(E,N);if(Object.assign(E,_),L._zod.parent===M)for(let x in E){if(x==="$ref"||x==="allOf")continue;if(!(x in _))delete E[x]}if(N.$ref&&v.def)for(let x in E){if(x==="$ref"||x==="allOf")continue;if(x in v.def&&JSON.stringify(E[x])===JSON.stringify(v.def[x]))delete E[x]}}let P=L._zod.parent;if(P&&P!==M){O(P);let v=U.seen.get(P);if(v?.schema.$ref){if(E.$ref=v.schema.$ref,v.def)for(let N in E){if(N==="$ref"||N==="allOf")continue;if(N in v.def&&JSON.stringify(E[N])===JSON.stringify(v.def[N]))delete E[N]}}}U.override({zodSchema:L,jsonSchema:E,path:S.path??[]})};for(let L of[...U.seen.entries()].reverse())O(L[0]);let X={};if(U.target==="draft-2020-12")X.$schema="https://json-schema.org/draft/2020-12/schema";else if(U.target==="draft-07")X.$schema="http://json-schema.org/draft-07/schema#";else if(U.target==="draft-04")X.$schema="http://json-schema.org/draft-04/schema#";else if(U.target==="openapi-3.0");if(U.external?.uri){let L=U.external.registry.get(J)?.id;if(!L)throw Error("Schema is missing an `id` property");X.$id=U.external.uri(L)}Object.assign(X,Q.def??Q.schema);let z=U.metadataRegistry.get(J)?.id;if(z!==void 0&&X.id===z)delete X.id;let V=U.external?.defs??{};for(let L of U.seen.entries()){let S=L[1];if(S.def&&S.defId){if(S.def.id===S.defId)delete S.def.id;V[S.defId]=S.def}}if(U.external);else if(Object.keys(V).length>0)if(U.target==="draft-2020-12")X.$defs=V;else X.definitions=V;try{let L=JSON.parse(JSON.stringify(X));return Object.defineProperty(L,"~standard",{value:{...J["~standard"],jsonSchema:{input:RY(J,"input",U.processors),output:RY(J,"output",U.processors)}},enumerable:!1,writable:!1}),L}catch(L){throw Error("Error converting schema to JSON.")}}function m6(U,J){let Q=J??{seen:new Set};if(Q.seen.has(U))return!1;Q.seen.add(U);let O=U._zod.def;if(O.type==="transform")return!0;if(O.type==="array")return m6(O.element,Q);if(O.type==="set")return m6(O.valueType,Q);if(O.type==="lazy")return m6(O.getter(),Q);if(O.type==="promise"||O.type==="optional"||O.type==="nonoptional"||O.type==="nullable"||O.type==="readonly"||O.type==="default"||O.type==="prefault")return m6(O.innerType,Q);if(O.type==="intersection")return m6(O.left,Q)||m6(O.right,Q);if(O.type==="record"||O.type==="map")return m6(O.keyType,Q)||m6(O.valueType,Q);if(O.type==="pipe"){if(U._zod.traits.has("$ZodCodec"))return!0;return m6(O.in,Q)||m6(O.out,Q)}if(O.type==="object"){for(let X in O.shape)if(m6(O.shape[X],Q))return!0;return!1}if(O.type==="union"){for(let X of O.options)if(m6(X,Q))return!0;return!1}if(O.type==="tuple"){for(let X of O.items)if(m6(X,Q))return!0;if(O.rest&&m6(O.rest,Q))return!0;return!1}return!1}var uM=(U,J={})=>(Q)=>{let O=CX({...Q,processors:J});return GU(U,O),RX(O,U),PX(O,U)},RY=(U,J,Q={})=>(O)=>{let{libraryOptions:X,target:z}=O??{},V=CX({...X??{},target:z,io:J,processors:Q});return GU(U,V),RX(V,U),PX(V,U)};var rp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bM=(U,J,Q,O)=>{let X=Q;X.type="string";let{minimum:z,maximum:V,format:L,patterns:S,contentEncoding:E}=U._zod.bag;if(typeof z==="number")X.minLength=z;if(typeof V==="number")X.maxLength=V;if(L){if(X.format=rp[L]??L,X.format==="")delete X.format;if(L==="time")delete X.format}if(E)X.contentEncoding=E;if(S&&S.size>0){let _=[...S];if(_.length===1)X.pattern=_[0].source;else if(_.length>1)X.allOf=[..._.map((M)=>({...J.target==="draft-07"||J.target==="draft-04"||J.target==="openapi-3.0"?{type:"string"}:{},pattern:M.source}))]}},hM=(U,J,Q,O)=>{let X=Q,{minimum:z,maximum:V,format:L,multipleOf:S,exclusiveMaximum:E,exclusiveMinimum:_}=U._zod.bag;if(typeof L==="string"&&L.includes("int"))X.type="integer";else X.type="number";let M=typeof _==="number"&&_>=(z??Number.NEGATIVE_INFINITY),P=typeof E==="number"&&E<=(V??Number.POSITIVE_INFINITY),v=J.target==="draft-04"||J.target==="openapi-3.0";if(M)if(v)X.minimum=_,X.exclusiveMinimum=!0;else X.exclusiveMinimum=_;else if(typeof z==="number")X.minimum=z;if(P)if(v)X.maximum=E,X.exclusiveMaximum=!0;else X.exclusiveMaximum=E;else if(typeof V==="number")X.maximum=V;if(typeof S==="number")X.multipleOf=S},cM=(U,J,Q,O)=>{Q.type="boolean"},pM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},lM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},mM=(U,J,Q,O)=>{if(J.target==="openapi-3.0")Q.type="string",Q.nullable=!0,Q.enum=[null];else Q.type="null"},dM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},nM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},oM=(U,J,Q,O)=>{Q.not={}},iM=(U,J,Q,O)=>{},rM=(U,J,Q,O)=>{},tM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},aM=(U,J,Q,O)=>{let X=U._zod.def,z=p2(X.entries);if(z.every((V)=>typeof V==="number"))Q.type="number";if(z.every((V)=>typeof V==="string"))Q.type="string";Q.enum=z},sM=(U,J,Q,O)=>{let X=U._zod.def,z=[];for(let V of X.values)if(V===void 0){if(J.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof V==="bigint")if(J.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else z.push(Number(V));else z.push(V);if(z.length===0);else if(z.length===1){let V=z[0];if(Q.type=V===null?"null":typeof V,J.target==="draft-04"||J.target==="openapi-3.0")Q.enum=[V];else Q.const=V}else{if(z.every((V)=>typeof V==="number"))Q.type="number";if(z.every((V)=>typeof V==="string"))Q.type="string";if(z.every((V)=>typeof V==="boolean"))Q.type="boolean";if(z.every((V)=>V===null))Q.type="null";Q.enum=z}},eM=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},$7=(U,J,Q,O)=>{let X=Q,z=U._zod.pattern;if(!z)throw Error("Pattern not found in template literal");X.type="string",X.pattern=z.source},U7=(U,J,Q,O)=>{let X=Q,z={type:"string",format:"binary",contentEncoding:"binary"},{minimum:V,maximum:L,mime:S}=U._zod.bag;if(V!==void 0)z.minLength=V;if(L!==void 0)z.maxLength=L;if(S)if(S.length===1)z.contentMediaType=S[0],Object.assign(X,z);else Object.assign(X,z),X.anyOf=S.map((E)=>({contentMediaType:E}));else Object.assign(X,z)},I7=(U,J,Q,O)=>{Q.type="boolean"},X7=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},J7=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},Q7=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},Y7=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},G7=(U,J,Q,O)=>{if(J.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},V7=(U,J,Q,O)=>{let X=Q,z=U._zod.def,{minimum:V,maximum:L}=U._zod.bag;if(typeof V==="number")X.minItems=V;if(typeof L==="number")X.maxItems=L;X.type="array",X.items=GU(z.element,J,{...O,path:[...O.path,"items"]})},Z7=(U,J,Q,O)=>{let X=Q,z=U._zod.def;X.type="object",X.properties={};let V=z.shape;for(let E in V)X.properties[E]=GU(V[E],J,{...O,path:[...O.path,"properties",E]});let L=new Set(Object.keys(V)),S=new Set([...L].filter((E)=>{let _=z.shape[E]._zod;if(J.io==="input")return _.optin===void 0;else return _.optout===void 0}));if(S.size>0)X.required=Array.from(S);if(z.catchall?._zod.def.type==="never")X.additionalProperties=!1;else if(!z.catchall){if(J.io==="output")X.additionalProperties=!1}else if(z.catchall)X.additionalProperties=GU(z.catchall,J,{...O,path:[...O.path,"additionalProperties"]})},zK=(U,J,Q,O)=>{let X=U._zod.def,z=X.inclusive===!1,V=X.options.map((L,S)=>GU(L,J,{...O,path:[...O.path,z?"oneOf":"anyOf",S]}));if(z)Q.oneOf=V;else Q.anyOf=V},O7=(U,J,Q,O)=>{let X=U._zod.def,z=GU(X.left,J,{...O,path:[...O.path,"allOf",0]}),V=GU(X.right,J,{...O,path:[...O.path,"allOf",1]}),L=(E)=>("allOf"in E)&&Object.keys(E).length===1,S=[...L(z)?z.allOf:[z],...L(V)?V.allOf:[V]];Q.allOf=S},z7=(U,J,Q,O)=>{let X=Q,z=U._zod.def;X.type="array";let V=J.target==="draft-2020-12"?"prefixItems":"items",L=J.target==="draft-2020-12"?"items":J.target==="openapi-3.0"?"items":"additionalItems",S=z.items.map((P,v)=>GU(P,J,{...O,path:[...O.path,V,v]})),E=z.rest?GU(z.rest,J,{...O,path:[...O.path,L,...J.target==="openapi-3.0"?[z.items.length]:[]]}):null;if(J.target==="draft-2020-12"){if(X.prefixItems=S,E)X.items=E}else if(J.target==="openapi-3.0"){if(X.items={anyOf:S},E)X.items.anyOf.push(E);if(X.minItems=S.length,!E)X.maxItems=S.length}else if(X.items=S,E)X.additionalItems=E;let{minimum:_,maximum:M}=U._zod.bag;if(typeof _==="number")X.minItems=_;if(typeof M==="number")X.maxItems=M},K7=(U,J,Q,O)=>{let X=Q,z=U._zod.def;X.type="object";let V=z.keyType,S=V._zod.bag?.patterns;if(z.mode==="loose"&&S&&S.size>0){let _=GU(z.valueType,J,{...O,path:[...O.path,"patternProperties","*"]});X.patternProperties={};for(let M of S)X.patternProperties[M.source]=_}else{if(J.target==="draft-07"||J.target==="draft-2020-12")X.propertyNames=GU(z.keyType,J,{...O,path:[...O.path,"propertyNames"]});X.additionalProperties=GU(z.valueType,J,{...O,path:[...O.path,"additionalProperties"]})}let E=V._zod.values;if(E){let _=[...E].filter((M)=>typeof M==="string"||typeof M==="number");if(_.length>0)X.required=_}},D7=(U,J,Q,O)=>{let X=U._zod.def,z=GU(X.innerType,J,O),V=J.seen.get(U);if(J.target==="openapi-3.0")V.ref=X.innerType,Q.nullable=!0;else Q.anyOf=[z,{type:"null"}]},W7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType},F7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType,Q.default=JSON.parse(JSON.stringify(X.defaultValue))},H7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);if(z.ref=X.innerType,J.io==="input")Q._prefault=JSON.parse(JSON.stringify(X.defaultValue))},L7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType;let V;try{V=X.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}Q.default=V},M7=(U,J,Q,O)=>{let X=U._zod.def,z=X.in._zod.traits.has("$ZodTransform"),V=J.io==="input"?z?X.out:X.in:X.out;GU(V,J,O);let L=J.seen.get(U);L.ref=V},A7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType,Q.readOnly=!0},q7=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType},KK=(U,J,Q,O)=>{let X=U._zod.def;GU(X.innerType,J,O);let z=J.seen.get(U);z.ref=X.innerType},T7=(U,J,Q,O)=>{let X=U._zod.innerType;GU(X,J,O);let z=J.seen.get(U);z.ref=X},OK={string:bM,number:hM,boolean:cM,bigint:pM,symbol:lM,null:mM,undefined:dM,void:nM,never:oM,any:iM,unknown:rM,date:tM,enum:aM,literal:sM,nan:eM,template_literal:$7,file:U7,success:I7,custom:X7,function:J7,transform:Q7,map:Y7,set:G7,array:V7,object:Z7,union:zK,intersection:O7,tuple:z7,record:K7,nullable:D7,nonoptional:W7,default:F7,prefault:H7,catch:L7,pipe:M7,readonly:A7,promise:q7,optional:KK,lazy:T7};function DK(U,J){if("_idmap"in U){let O=U,X=CX({...J,processors:OK}),z={};for(let S of O._idmap.entries()){let[E,_]=S;GU(_,X)}let V={},L={registry:O,uri:J?.uri,defs:z};X.external=L;for(let S of O._idmap.entries()){let[E,_]=S;RX(X,_),V[E]=PX(X,_)}if(Object.keys(z).length>0){let S=X.target==="draft-2020-12"?"$defs":"definitions";V.__shared={[S]:z}}return{schemas:V}}let Q=CX({...J,processors:OK});return GU(U,Q),RX(Q,U),PX(Q,U)}class C7{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(U){this.ctx.counter=U}get seen(){return this.ctx.seen}constructor(U){let J=U?.target??"draft-2020-12";if(J==="draft-4")J="draft-04";if(J==="draft-7")J="draft-07";this.ctx=CX({processors:OK,target:J,...U?.metadata&&{metadata:U.metadata},...U?.unrepresentable&&{unrepresentable:U.unrepresentable},...U?.override&&{override:U.override},...U?.io&&{io:U.io}})}process(U,J={path:[],schemaPath:[]}){return GU(U,this.ctx,J)}emit(U,J){if(J){if(J.cycles)this.ctx.cycles=J.cycles;if(J.reused)this.ctx.reused=J.reused;if(J.external)this.ctx.external=J.external}RX(this.ctx,U);let Q=PX(this.ctx,U),{"~standard":O,...X}=Q;return X}}var dv={};var ZV={};y6(ZV,{xor:()=>uB,xid:()=>GB,void:()=>kB,uuidv7:()=>ev,uuidv6:()=>sv,uuidv4:()=>av,uuid:()=>tv,url:()=>$B,unknown:()=>NJ,union:()=>hK,undefined:()=>BB,ulid:()=>YB,uint64:()=>jB,uint32:()=>EB,tuple:()=>IA,transform:()=>pK,templateLiteral:()=>sB,symbol:()=>vB,superRefine:()=>BA,success:()=>iB,stringbool:()=>YN,stringFormat:()=>MB,string:()=>OV,strictObject:()=>fB,set:()=>lB,refine:()=>vA,record:()=>XA,readonly:()=>RA,promise:()=>eB,preprocess:()=>VN,prefault:()=>FA,pipe:()=>qK,partialRecord:()=>hB,optional:()=>KV,object:()=>wB,number:()=>h7,nullish:()=>oB,nullable:()=>DV,null:()=>d7,nonoptional:()=>HA,never:()=>bK,nativeEnum:()=>mB,nanoid:()=>XB,nan:()=>rB,meta:()=>JN,map:()=>pB,mac:()=>OB,looseRecord:()=>cB,looseObject:()=>yB,literal:()=>dB,lazy:()=>_A,ksuid:()=>VB,keyof:()=>xB,jwt:()=>LB,json:()=>GN,ipv6:()=>zB,ipv4:()=>ZB,invertCodec:()=>aB,intersection:()=>$A,int64:()=>SB,int32:()=>PB,int:()=>AK,instanceof:()=>QN,httpUrl:()=>UB,hostname:()=>AB,hex:()=>qB,hash:()=>TB,guid:()=>rv,function:()=>$N,float64:()=>RB,float32:()=>CB,file:()=>nB,exactOptional:()=>OA,enum:()=>cK,emoji:()=>IB,email:()=>iv,e164:()=>HB,discriminatedUnion:()=>bB,describe:()=>XN,date:()=>gB,custom:()=>IN,cuid2:()=>QB,cuid:()=>JB,codec:()=>tB,cidrv6:()=>DB,cidrv4:()=>KB,check:()=>UN,catch:()=>AA,boolean:()=>c7,bigint:()=>_B,base64url:()=>FB,base64:()=>WB,array:()=>LV,any:()=>NB,_function:()=>$N,_default:()=>DA,_ZodString:()=>TK,ZodXor:()=>a7,ZodXID:()=>jK,ZodVoid:()=>r7,ZodUnknown:()=>o7,ZodUnion:()=>AV,ZodUndefined:()=>l7,ZodUUID:()=>h1,ZodURL:()=>FV,ZodULID:()=>SK,ZodType:()=>f$,ZodTuple:()=>UA,ZodTransform:()=>VA,ZodTemplateLiteral:()=>PA,ZodSymbol:()=>p7,ZodSuccess:()=>LA,ZodStringFormat:()=>DU,ZodString:()=>SY,ZodSet:()=>QA,ZodRecord:()=>EY,ZodReadonly:()=>CA,ZodPromise:()=>SA,ZodPreprocess:()=>TA,ZodPrefault:()=>WA,ZodPipe:()=>qV,ZodOptional:()=>lK,ZodObject:()=>MV,ZodNumberFormat:()=>kJ,ZodNumber:()=>vY,ZodNullable:()=>zA,ZodNull:()=>m7,ZodNonOptional:()=>mK,ZodNever:()=>i7,ZodNanoID:()=>PK,ZodNaN:()=>qA,ZodMap:()=>JA,ZodMAC:()=>b7,ZodLiteral:()=>YA,ZodLazy:()=>EA,ZodKSUID:()=>vK,ZodJWT:()=>yK,ZodIntersection:()=>e7,ZodIPv6:()=>NK,ZodIPv4:()=>BK,ZodGUID:()=>zV,ZodFunction:()=>jA,ZodFile:()=>GA,ZodExactOptional:()=>ZA,ZodEnum:()=>_Y,ZodEmoji:()=>RK,ZodEmail:()=>CK,ZodE164:()=>fK,ZodDiscriminatedUnion:()=>s7,ZodDefault:()=>KA,ZodDate:()=>HV,ZodCustomStringFormat:()=>jY,ZodCustom:()=>CV,ZodCodec:()=>TV,ZodCatch:()=>MA,ZodCUID2:()=>_K,ZodCUID:()=>EK,ZodCIDRv6:()=>gK,ZodCIDRv4:()=>kK,ZodBoolean:()=>BY,ZodBigIntFormat:()=>uK,ZodBigInt:()=>NY,ZodBase64URL:()=>wK,ZodBase64:()=>xK,ZodArray:()=>t7,ZodAny:()=>n7});var WK={};y6(WK,{uppercase:()=>KY,trim:()=>MY,toUpperCase:()=>qY,toLowerCase:()=>AY,startsWith:()=>WY,slugify:()=>TY,size:()=>jJ,regex:()=>OY,property:()=>ZK,positive:()=>QK,overwrite:()=>I1,normalize:()=>LY,nonpositive:()=>GK,nonnegative:()=>VK,negative:()=>YK,multipleOf:()=>qX,minSize:()=>b1,minLength:()=>qI,mime:()=>HY,maxSize:()=>TX,maxLength:()=>vJ,lte:()=>R4,lt:()=>y1,lowercase:()=>zY,length:()=>BJ,includes:()=>DY,gte:()=>l6,gt:()=>u1,endsWith:()=>FY});var PY={};y6(PY,{time:()=>E7,duration:()=>_7,datetime:()=>R7,date:()=>P7,ZodISOTime:()=>LK,ZodISODuration:()=>MK,ZodISODateTime:()=>FK,ZodISODate:()=>HK});var FK=j0("ZodISODateTime",(U,J)=>{XL.init(U,J),DU.init(U,J)});function R7(U){return XM(FK,U)}var HK=j0("ZodISODate",(U,J)=>{JL.init(U,J),DU.init(U,J)});function P7(U){return JM(HK,U)}var LK=j0("ZodISOTime",(U,J)=>{QL.init(U,J),DU.init(U,J)});function E7(U){return QM(LK,U)}var MK=j0("ZodISODuration",(U,J)=>{YL.init(U,J),DU.init(U,J)});function _7(U){return YM(MK,U)}var nv=(U,J)=>{o2.init(U,J),U.name="ZodError",Object.defineProperties(U,{format:{value:(Q)=>r2(U,Q)},flatten:{value:(Q)=>i2(U,Q)},addIssue:{value:(Q)=>{U.issues.push(Q),U.message=JSON.stringify(U.issues,UY,2)}},addIssues:{value:(Q)=>{U.issues.push(...Q),U.message=JSON.stringify(U.issues,UY,2)}},isEmpty:{get(){return U.issues.length===0}}})},ap=j0("ZodError",nv),X4=j0("ZodError",nv,{Parent:Error});var S7=JY(X4),j7=QY(X4),v7=YY(X4),B7=GY(X4),N7=Lz(X4),k7=Mz(X4),g7=Az(X4),x7=qz(X4),w7=Tz(X4),f7=Cz(X4),y7=Rz(X4),u7=Pz(X4);var ov=new WeakMap;function WV(U,J,Q){let O=Object.getPrototypeOf(U),X=ov.get(O);if(!X)X=new Set,ov.set(O,X);if(X.has(J))return;X.add(J);for(let z in Q){let V=Q[z];Object.defineProperty(O,z,{configurable:!0,enumerable:!1,get(){let L=V.bind(this);return Object.defineProperty(this,z,{configurable:!0,writable:!0,enumerable:!0,value:L}),L},set(L){Object.defineProperty(this,z,{configurable:!0,writable:!0,enumerable:!0,value:L})}})}}var f$=j0("ZodType",(U,J)=>{return S$.init(U,J),Object.assign(U["~standard"],{jsonSchema:{input:RY(U,"input"),output:RY(U,"output")}}),U.toJSONSchema=uM(U,{}),U.def=J,U.type=J.type,Object.defineProperty(U,"_def",{value:J}),U.parse=(Q,O)=>S7(U,Q,O,{callee:U.parse}),U.safeParse=(Q,O)=>v7(U,Q,O),U.parseAsync=async(Q,O)=>j7(U,Q,O,{callee:U.parseAsync}),U.safeParseAsync=async(Q,O)=>B7(U,Q,O),U.spa=U.safeParseAsync,U.encode=(Q,O)=>N7(U,Q,O),U.decode=(Q,O)=>k7(U,Q,O),U.encodeAsync=async(Q,O)=>g7(U,Q,O),U.decodeAsync=async(Q,O)=>x7(U,Q,O),U.safeEncode=(Q,O)=>w7(U,Q,O),U.safeDecode=(Q,O)=>f7(U,Q,O),U.safeEncodeAsync=async(Q,O)=>y7(U,Q,O),U.safeDecodeAsync=async(Q,O)=>u7(U,Q,O),WV(U,"ZodType",{check(...Q){let O=this.def;return this.clone(G$.mergeDefs(O,{checks:[...O.checks??[],...Q.map((X)=>typeof X==="function"?{_zod:{check:X,def:{check:"custom"},onattach:[]}}:X)]}),{parent:!0})},with(...Q){return this.check(...Q)},clone(Q,O){return c6(this,Q,O)},brand(){return this},register(Q,O){return Q.add(this,O),this},refine(Q,O){return this.check(vA(Q,O))},superRefine(Q,O){return this.check(BA(Q,O))},overwrite(Q){return this.check(I1(Q))},optional(){return KV(this)},exactOptional(){return OA(this)},nullable(){return DV(this)},nullish(){return KV(DV(this))},nonoptional(Q){return HA(this,Q)},array(){return LV(this)},or(Q){return hK([this,Q])},and(Q){return $A(this,Q)},transform(Q){return qK(this,pK(Q))},default(Q){return DA(this,Q)},prefault(Q){return FA(this,Q)},catch(Q){return AA(this,Q)},pipe(Q){return qK(this,Q)},readonly(){return RA(this)},describe(Q){let O=this.clone();return R6.add(O,{description:Q}),O},meta(...Q){if(Q.length===0)return R6.get(this);let O=this.clone();return R6.add(O,Q[0]),O},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(Q){return Q(this)}}),Object.defineProperty(U,"description",{get(){return R6.get(U)?.description},configurable:!0}),U}),TK=j0("_ZodString",(U,J)=>{SJ.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(O,X,z)=>bM(U,O,X,z);let Q=U._zod.bag;U.format=Q.format??null,U.minLength=Q.minimum??null,U.maxLength=Q.maximum??null,WV(U,"_ZodString",{regex(...O){return this.check(OY(...O))},includes(...O){return this.check(DY(...O))},startsWith(...O){return this.check(WY(...O))},endsWith(...O){return this.check(FY(...O))},min(...O){return this.check(qI(...O))},max(...O){return this.check(vJ(...O))},length(...O){return this.check(BJ(...O))},nonempty(...O){return this.check(qI(1,...O))},lowercase(O){return this.check(zY(O))},uppercase(O){return this.check(KY(O))},trim(){return this.check(MY())},normalize(...O){return this.check(LY(...O))},toLowerCase(){return this.check(AY())},toUpperCase(){return this.check(qY())},slugify(){return this.check(TY())}})}),SY=j0("ZodString",(U,J)=>{SJ.init(U,J),TK.init(U,J),U.email=(Q)=>U.check(bz(CK,Q)),U.url=(Q)=>U.check(VV(FV,Q)),U.jwt=(Q)=>U.check(JK(yK,Q)),U.emoji=(Q)=>U.check(mz(RK,Q)),U.guid=(Q)=>U.check(GV(zV,Q)),U.uuid=(Q)=>U.check(hz(h1,Q)),U.uuidv4=(Q)=>U.check(cz(h1,Q)),U.uuidv6=(Q)=>U.check(pz(h1,Q)),U.uuidv7=(Q)=>U.check(lz(h1,Q)),U.nanoid=(Q)=>U.check(dz(PK,Q)),U.guid=(Q)=>U.check(GV(zV,Q)),U.cuid=(Q)=>U.check(nz(EK,Q)),U.cuid2=(Q)=>U.check(oz(_K,Q)),U.ulid=(Q)=>U.check(iz(SK,Q)),U.base64=(Q)=>U.check(UK(xK,Q)),U.base64url=(Q)=>U.check(IK(wK,Q)),U.xid=(Q)=>U.check(rz(jK,Q)),U.ksuid=(Q)=>U.check(tz(vK,Q)),U.ipv4=(Q)=>U.check(az(BK,Q)),U.ipv6=(Q)=>U.check(sz(NK,Q)),U.cidrv4=(Q)=>U.check(ez(kK,Q)),U.cidrv6=(Q)=>U.check($K(gK,Q)),U.e164=(Q)=>U.check(XK(fK,Q)),U.datetime=(Q)=>U.check(R7(Q)),U.date=(Q)=>U.check(P7(Q)),U.time=(Q)=>U.check(E7(Q)),U.duration=(Q)=>U.check(_7(Q))});function OV(U){return e5(SY,U)}var DU=j0("ZodStringFormat",(U,J)=>{KU.init(U,J),TK.init(U,J)}),CK=j0("ZodEmail",(U,J)=>{iH.init(U,J),DU.init(U,J)});function iv(U){return bz(CK,U)}var zV=j0("ZodGUID",(U,J)=>{nH.init(U,J),DU.init(U,J)});function rv(U){return GV(zV,U)}var h1=j0("ZodUUID",(U,J)=>{oH.init(U,J),DU.init(U,J)});function tv(U){return hz(h1,U)}function av(U){return cz(h1,U)}function sv(U){return pz(h1,U)}function ev(U){return lz(h1,U)}var FV=j0("ZodURL",(U,J)=>{rH.init(U,J),DU.init(U,J)});function $B(U){return VV(FV,U)}function UB(U){return VV(FV,{protocol:C4.httpProtocol,hostname:C4.domain,...G$.normalizeParams(U)})}var RK=j0("ZodEmoji",(U,J)=>{tH.init(U,J),DU.init(U,J)});function IB(U){return mz(RK,U)}var PK=j0("ZodNanoID",(U,J)=>{aH.init(U,J),DU.init(U,J)});function XB(U){return dz(PK,U)}var EK=j0("ZodCUID",(U,J)=>{sH.init(U,J),DU.init(U,J)});function JB(U){return nz(EK,U)}var _K=j0("ZodCUID2",(U,J)=>{eH.init(U,J),DU.init(U,J)});function QB(U){return oz(_K,U)}var SK=j0("ZodULID",(U,J)=>{$L.init(U,J),DU.init(U,J)});function YB(U){return iz(SK,U)}var jK=j0("ZodXID",(U,J)=>{UL.init(U,J),DU.init(U,J)});function GB(U){return rz(jK,U)}var vK=j0("ZodKSUID",(U,J)=>{IL.init(U,J),DU.init(U,J)});function VB(U){return tz(vK,U)}var BK=j0("ZodIPv4",(U,J)=>{GL.init(U,J),DU.init(U,J)});function ZB(U){return az(BK,U)}var b7=j0("ZodMAC",(U,J)=>{ZL.init(U,J),DU.init(U,J)});function OB(U){return UM(b7,U)}var NK=j0("ZodIPv6",(U,J)=>{VL.init(U,J),DU.init(U,J)});function zB(U){return sz(NK,U)}var kK=j0("ZodCIDRv4",(U,J)=>{OL.init(U,J),DU.init(U,J)});function KB(U){return ez(kK,U)}var gK=j0("ZodCIDRv6",(U,J)=>{zL.init(U,J),DU.init(U,J)});function DB(U){return $K(gK,U)}var xK=j0("ZodBase64",(U,J)=>{DL.init(U,J),DU.init(U,J)});function WB(U){return UK(xK,U)}var wK=j0("ZodBase64URL",(U,J)=>{WL.init(U,J),DU.init(U,J)});function FB(U){return IK(wK,U)}var fK=j0("ZodE164",(U,J)=>{FL.init(U,J),DU.init(U,J)});function HB(U){return XK(fK,U)}var yK=j0("ZodJWT",(U,J)=>{HL.init(U,J),DU.init(U,J)});function LB(U){return JK(yK,U)}var jY=j0("ZodCustomStringFormat",(U,J)=>{LL.init(U,J),DU.init(U,J)});function MB(U,J,Q={}){return CY(jY,U,J,Q)}function AB(U){return CY(jY,"hostname",C4.hostname,U)}function qB(U){return CY(jY,"hex",C4.hex,U)}function TB(U,J){let Q=J?.enc??"hex",O=`${U}_${Q}`,X=C4[O];if(!X)throw Error(`Unrecognized hash format: ${O}`);return CY(jY,O,X,J)}var vY=j0("ZodNumber",(U,J)=>{gz.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(O,X,z)=>hM(U,O,X,z),WV(U,"ZodNumber",{gt(O,X){return this.check(u1(O,X))},gte(O,X){return this.check(l6(O,X))},min(O,X){return this.check(l6(O,X))},lt(O,X){return this.check(y1(O,X))},lte(O,X){return this.check(R4(O,X))},max(O,X){return this.check(R4(O,X))},int(O){return this.check(AK(O))},safe(O){return this.check(AK(O))},positive(O){return this.check(u1(0,O))},nonnegative(O){return this.check(l6(0,O))},negative(O){return this.check(y1(0,O))},nonpositive(O){return this.check(R4(0,O))},multipleOf(O,X){return this.check(qX(O,X))},step(O,X){return this.check(qX(O,X))},finite(){return this}});let Q=U._zod.bag;U.minValue=Math.max(Q.minimum??Number.NEGATIVE_INFINITY,Q.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,U.maxValue=Math.min(Q.maximum??Number.POSITIVE_INFINITY,Q.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,U.isInt=(Q.format??"").includes("int")||Number.isSafeInteger(Q.multipleOf??0.5),U.isFinite=!0,U.format=Q.format??null});function h7(U){return GM(vY,U)}var kJ=j0("ZodNumberFormat",(U,J)=>{ML.init(U,J),vY.init(U,J)});function AK(U){return ZM(kJ,U)}function CB(U){return OM(kJ,U)}function RB(U){return zM(kJ,U)}function PB(U){return KM(kJ,U)}function EB(U){return DM(kJ,U)}var BY=j0("ZodBoolean",(U,J)=>{e2.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>cM(U,Q,O,X)});function c7(U){return WM(BY,U)}var NY=j0("ZodBigInt",(U,J)=>{xz.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(O,X,z)=>pM(U,O,X,z),U.gte=(O,X)=>U.check(l6(O,X)),U.min=(O,X)=>U.check(l6(O,X)),U.gt=(O,X)=>U.check(u1(O,X)),U.gte=(O,X)=>U.check(l6(O,X)),U.min=(O,X)=>U.check(l6(O,X)),U.lt=(O,X)=>U.check(y1(O,X)),U.lte=(O,X)=>U.check(R4(O,X)),U.max=(O,X)=>U.check(R4(O,X)),U.positive=(O)=>U.check(u1(BigInt(0),O)),U.negative=(O)=>U.check(y1(BigInt(0),O)),U.nonpositive=(O)=>U.check(R4(BigInt(0),O)),U.nonnegative=(O)=>U.check(l6(BigInt(0),O)),U.multipleOf=(O,X)=>U.check(qX(O,X));let Q=U._zod.bag;U.minValue=Q.minimum??null,U.maxValue=Q.maximum??null,U.format=Q.format??null});function _B(U){return HM(NY,U)}var uK=j0("ZodBigIntFormat",(U,J)=>{AL.init(U,J),NY.init(U,J)});function SB(U){return MM(uK,U)}function jB(U){return AM(uK,U)}var p7=j0("ZodSymbol",(U,J)=>{qL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>lM(U,Q,O,X)});function vB(U){return qM(p7,U)}var l7=j0("ZodUndefined",(U,J)=>{TL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>dM(U,Q,O,X)});function BB(U){return TM(l7,U)}var m7=j0("ZodNull",(U,J)=>{CL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>mM(U,Q,O,X)});function d7(U){return CM(m7,U)}var n7=j0("ZodAny",(U,J)=>{RL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>iM(U,Q,O,X)});function NB(){return RM(n7)}var o7=j0("ZodUnknown",(U,J)=>{PL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>rM(U,Q,O,X)});function NJ(){return PM(o7)}var i7=j0("ZodNever",(U,J)=>{EL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>oM(U,Q,O,X)});function bK(U){return EM(i7,U)}var r7=j0("ZodVoid",(U,J)=>{_L.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>nM(U,Q,O,X)});function kB(U){return _M(r7,U)}var HV=j0("ZodDate",(U,J)=>{SL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(O,X,z)=>tM(U,O,X,z),U.min=(O,X)=>U.check(l6(O,X)),U.max=(O,X)=>U.check(R4(O,X));let Q=U._zod.bag;U.minDate=Q.minimum?new Date(Q.minimum):null,U.maxDate=Q.maximum?new Date(Q.maximum):null});function gB(U){return SM(HV,U)}var t7=j0("ZodArray",(U,J)=>{jL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>V7(U,Q,O,X),U.element=J.element,WV(U,"ZodArray",{min(Q,O){return this.check(qI(Q,O))},nonempty(Q){return this.check(qI(1,Q))},max(Q,O){return this.check(vJ(Q,O))},length(Q,O){return this.check(BJ(Q,O))},unwrap(){return this.element}})});function LV(U,J){return BM(t7,U,J)}function xB(U){let J=U._zod.def.shape;return cK(Object.keys(J))}var MV=j0("ZodObject",(U,J)=>{vL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>Z7(U,Q,O,X),G$.defineLazy(U,"shape",()=>{return J.shape}),WV(U,"ZodObject",{keyof(){return cK(Object.keys(this._zod.def.shape))},catchall(Q){return this.clone({...this._zod.def,catchall:Q})},passthrough(){return this.clone({...this._zod.def,catchall:NJ()})},loose(){return this.clone({...this._zod.def,catchall:NJ()})},strict(){return this.clone({...this._zod.def,catchall:bK()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(Q){return G$.extend(this,Q)},safeExtend(Q){return G$.safeExtend(this,Q)},merge(Q){return G$.merge(this,Q)},pick(Q){return G$.pick(this,Q)},omit(Q){return G$.omit(this,Q)},partial(...Q){return G$.partial(lK,this,Q[0])},required(...Q){return G$.required(mK,this,Q[0])}})});function wB(U,J){let Q={type:"object",shape:U??{},...G$.normalizeParams(J)};return new MV(Q)}function fB(U,J){return new MV({type:"object",shape:U,catchall:bK(),...G$.normalizeParams(J)})}function yB(U,J){return new MV({type:"object",shape:U,catchall:NJ(),...G$.normalizeParams(J)})}var AV=j0("ZodUnion",(U,J)=>{$V.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>zK(U,Q,O,X),U.options=J.options});function hK(U,J){return new AV({type:"union",options:U,...G$.normalizeParams(J)})}var a7=j0("ZodXor",(U,J)=>{AV.init(U,J),BL.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>zK(U,Q,O,X),U.options=J.options});function uB(U,J){return new a7({type:"union",options:U,inclusive:!1,...G$.normalizeParams(J)})}var s7=j0("ZodDiscriminatedUnion",(U,J)=>{AV.init(U,J),NL.init(U,J)});function bB(U,J,Q){return new s7({type:"union",options:J,discriminator:U,...G$.normalizeParams(Q)})}var e7=j0("ZodIntersection",(U,J)=>{kL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>O7(U,Q,O,X)});function $A(U,J){return new e7({type:"intersection",left:U,right:J})}var UA=j0("ZodTuple",(U,J)=>{wz.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>z7(U,Q,O,X),U.rest=(Q)=>U.clone({...U._zod.def,rest:Q})});function IA(U,J,Q){let O=J instanceof S$,X=O?Q:J;return new UA({type:"tuple",items:U,rest:O?J:null,...G$.normalizeParams(X)})}var EY=j0("ZodRecord",(U,J)=>{gL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>K7(U,Q,O,X),U.keyType=J.keyType,U.valueType=J.valueType});function XA(U,J,Q){if(!J||!J._zod)return new EY({type:"record",keyType:OV(),valueType:U,...G$.normalizeParams(J)});return new EY({type:"record",keyType:U,valueType:J,...G$.normalizeParams(Q)})}function hB(U,J,Q){let O=c6(U);return O._zod.values=void 0,new EY({type:"record",keyType:O,valueType:J,...G$.normalizeParams(Q)})}function cB(U,J,Q){return new EY({type:"record",keyType:U,valueType:J,mode:"loose",...G$.normalizeParams(Q)})}var JA=j0("ZodMap",(U,J)=>{xL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>Y7(U,Q,O,X),U.keyType=J.keyType,U.valueType=J.valueType,U.min=(...Q)=>U.check(b1(...Q)),U.nonempty=(Q)=>U.check(b1(1,Q)),U.max=(...Q)=>U.check(TX(...Q)),U.size=(...Q)=>U.check(jJ(...Q))});function pB(U,J,Q){return new JA({type:"map",keyType:U,valueType:J,...G$.normalizeParams(Q)})}var QA=j0("ZodSet",(U,J)=>{wL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>G7(U,Q,O,X),U.min=(...Q)=>U.check(b1(...Q)),U.nonempty=(Q)=>U.check(b1(1,Q)),U.max=(...Q)=>U.check(TX(...Q)),U.size=(...Q)=>U.check(jJ(...Q))});function lB(U,J){return new QA({type:"set",valueType:U,...G$.normalizeParams(J)})}var _Y=j0("ZodEnum",(U,J)=>{fL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(O,X,z)=>aM(U,O,X,z),U.enum=J.entries,U.options=Object.values(J.entries);let Q=new Set(Object.keys(J.entries));U.extract=(O,X)=>{let z={};for(let V of O)if(Q.has(V))z[V]=J.entries[V];else throw Error(`Key ${V} not found in enum`);return new _Y({...J,checks:[],...G$.normalizeParams(X),entries:z})},U.exclude=(O,X)=>{let z={...J.entries};for(let V of O)if(Q.has(V))delete z[V];else throw Error(`Key ${V} not found in enum`);return new _Y({...J,checks:[],...G$.normalizeParams(X),entries:z})}});function cK(U,J){let Q=Array.isArray(U)?Object.fromEntries(U.map((O)=>[O,O])):U;return new _Y({type:"enum",entries:Q,...G$.normalizeParams(J)})}function mB(U,J){return new _Y({type:"enum",entries:U,...G$.normalizeParams(J)})}var YA=j0("ZodLiteral",(U,J)=>{yL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>sM(U,Q,O,X),U.values=new Set(J.values),Object.defineProperty(U,"value",{get(){if(J.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return J.values[0]}})});function dB(U,J){return new YA({type:"literal",values:Array.isArray(U)?U:[U],...G$.normalizeParams(J)})}var GA=j0("ZodFile",(U,J)=>{uL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>U7(U,Q,O,X),U.min=(Q,O)=>U.check(b1(Q,O)),U.max=(Q,O)=>U.check(TX(Q,O)),U.mime=(Q,O)=>U.check(HY(Array.isArray(Q)?Q:[Q],O))});function nB(U){return NM(GA,U)}var VA=j0("ZodTransform",(U,J)=>{bL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>Q7(U,Q,O,X),U._zod.parse=(Q,O)=>{if(O.direction==="backward")throw new PJ(U.constructor.name);Q.addIssue=(z)=>{if(typeof z==="string")Q.issues.push(G$.issue(z,Q.value,J));else{let V=z;if(V.fatal)V.continue=!1;V.code??(V.code="custom"),V.input??(V.input=Q.value),V.inst??(V.inst=U),Q.issues.push(G$.issue(V))}};let X=J.transform(Q.value,Q);if(X instanceof Promise)return X.then((z)=>{return Q.value=z,Q.fallback=!0,Q});return Q.value=X,Q.fallback=!0,Q}});function pK(U){return new VA({type:"transform",transform:U})}var lK=j0("ZodOptional",(U,J)=>{fz.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>KK(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function KV(U){return new lK({type:"optional",innerType:U})}var ZA=j0("ZodExactOptional",(U,J)=>{hL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>KK(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function OA(U){return new ZA({type:"optional",innerType:U})}var zA=j0("ZodNullable",(U,J)=>{cL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>D7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function DV(U){return new zA({type:"nullable",innerType:U})}function oB(U){return KV(DV(U))}var KA=j0("ZodDefault",(U,J)=>{pL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>F7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType,U.removeDefault=U.unwrap});function DA(U,J){return new KA({type:"default",innerType:U,get defaultValue(){return typeof J==="function"?J():G$.shallowClone(J)}})}var WA=j0("ZodPrefault",(U,J)=>{lL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>H7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function FA(U,J){return new WA({type:"prefault",innerType:U,get defaultValue(){return typeof J==="function"?J():G$.shallowClone(J)}})}var mK=j0("ZodNonOptional",(U,J)=>{mL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>W7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function HA(U,J){return new mK({type:"nonoptional",innerType:U,...G$.normalizeParams(J)})}var LA=j0("ZodSuccess",(U,J)=>{dL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>I7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function iB(U){return new LA({type:"success",innerType:U})}var MA=j0("ZodCatch",(U,J)=>{nL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>L7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType,U.removeCatch=U.unwrap});function AA(U,J){return new MA({type:"catch",innerType:U,catchValue:typeof J==="function"?J:()=>J})}var qA=j0("ZodNaN",(U,J)=>{oL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>eM(U,Q,O,X)});function rB(U){return vM(qA,U)}var qV=j0("ZodPipe",(U,J)=>{yz.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>M7(U,Q,O,X),U.in=J.in,U.out=J.out});function qK(U,J){return new qV({type:"pipe",in:U,out:J})}var TV=j0("ZodCodec",(U,J)=>{qV.init(U,J),UV.init(U,J)});function tB(U,J,Q){return new TV({type:"pipe",in:U,out:J,transform:Q.decode,reverseTransform:Q.encode})}function aB(U){let J=U._zod.def;return new TV({type:"pipe",in:J.out,out:J.in,transform:J.reverseTransform,reverseTransform:J.transform})}var TA=j0("ZodPreprocess",(U,J)=>{qV.init(U,J),iL.init(U,J)}),CA=j0("ZodReadonly",(U,J)=>{rL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>A7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function RA(U){return new CA({type:"readonly",innerType:U})}var PA=j0("ZodTemplateLiteral",(U,J)=>{tL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>$7(U,Q,O,X)});function sB(U,J){return new PA({type:"template_literal",parts:U,...G$.normalizeParams(J)})}var EA=j0("ZodLazy",(U,J)=>{eL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>T7(U,Q,O,X),U.unwrap=()=>U._zod.def.getter()});function _A(U){return new EA({type:"lazy",getter:U})}var SA=j0("ZodPromise",(U,J)=>{sL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>q7(U,Q,O,X),U.unwrap=()=>U._zod.def.innerType});function eB(U){return new SA({type:"promise",innerType:U})}var jA=j0("ZodFunction",(U,J)=>{aL.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>J7(U,Q,O,X)});function $N(U){return new jA({type:"function",input:Array.isArray(U?.input)?IA(U?.input):U?.input??LV(NJ()),output:U?.output??NJ()})}var CV=j0("ZodCustom",(U,J)=>{$5.init(U,J),f$.init(U,J),U._zod.processJSONSchema=(Q,O,X)=>X7(U,Q,O,X)});function UN(U){let J=new MU({check:"custom"});return J._zod.check=U,J}function IN(U,J){return kM(CV,U??(()=>!0),J)}function vA(U,J={}){return gM(CV,U,J)}function BA(U,J){return xM(U,J)}var XN=wM,JN=fM;function QN(U,J={}){let Q=new CV({type:"custom",check:"custom",fn:(O)=>O instanceof U,abort:!0,...G$.normalizeParams(J)});return Q._zod.bag.Class=U,Q._zod.check=(O)=>{if(!(O.value instanceof U))O.issues.push({code:"invalid_type",expected:U.name,input:O.value,inst:Q,path:[...Q._zod.def.path??[]]})},Q}var YN=(...U)=>yM({Codec:TV,Boolean:BY,String:SY},...U);function GN(U){let J=_A(()=>{return hK([OV(U),h7(),c7(),d7(),LV(J),XA(OV(),J)])});return J}function VN(U,J){return new TA({type:"pipe",in:pK(U),out:J})}var ep={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function $l(U){aU({customError:U})}function Ul(){return aU().customError}var NA;(function(U){})(NA||(NA={}));var D$={...ZV,...WK,iso:PY},Il=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Xl(U,J){let Q=U.$schema;if(Q==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(Q==="http://json-schema.org/draft-07/schema#")return"draft-7";if(Q==="http://json-schema.org/draft-04/schema#")return"draft-4";return J??"draft-2020-12"}function Jl(U,J){if(!U.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let Q=U.slice(1).split("/").filter(Boolean);if(Q.length===0)return J.rootSchema;let O=J.version==="draft-2020-12"?"$defs":"definitions";if(Q[0]===O){let X=Q[1];if(!X||!J.defs[X])throw Error(`Reference not found: ${U}`);return J.defs[X]}throw Error(`Reference not found: ${U}`)}function ZN(U,J){if(U.not!==void 0){if(typeof U.not==="object"&&Object.keys(U.not).length===0)return D$.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(U.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(U.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(U.if!==void 0||U.then!==void 0||U.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(U.dependentSchemas!==void 0||U.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(U.$ref){let X=U.$ref;if(J.refs.has(X))return J.refs.get(X);if(J.processing.has(X))return D$.lazy(()=>{if(!J.refs.has(X))throw Error(`Circular reference not resolved: ${X}`);return J.refs.get(X)});J.processing.add(X);let z=Jl(X,J),V=S6(z,J);return J.refs.set(X,V),J.processing.delete(X),V}if(U.enum!==void 0){let X=U.enum;if(J.version==="openapi-3.0"&&U.nullable===!0&&X.length===1&&X[0]===null)return D$.null();if(X.length===0)return D$.never();if(X.length===1)return D$.literal(X[0]);if(X.every((V)=>typeof V==="string"))return D$.enum(X);let z=X.map((V)=>D$.literal(V));if(z.length<2)return z[0];return D$.union([z[0],z[1],...z.slice(2)])}if(U.const!==void 0)return D$.literal(U.const);let Q=U.type;if(Array.isArray(Q)){let X=Q.map((z)=>{let V={...U,type:z};return ZN(V,J)});if(X.length===0)return D$.never();if(X.length===1)return X[0];return D$.union(X)}if(!Q)return D$.any();let O;switch(Q){case"string":{let X=D$.string();if(U.format){let z=U.format;if(z==="email")X=X.check(D$.email());else if(z==="uri"||z==="uri-reference")X=X.check(D$.url());else if(z==="uuid"||z==="guid")X=X.check(D$.uuid());else if(z==="date-time")X=X.check(D$.iso.datetime());else if(z==="date")X=X.check(D$.iso.date());else if(z==="time")X=X.check(D$.iso.time());else if(z==="duration")X=X.check(D$.iso.duration());else if(z==="ipv4")X=X.check(D$.ipv4());else if(z==="ipv6")X=X.check(D$.ipv6());else if(z==="mac")X=X.check(D$.mac());else if(z==="cidr")X=X.check(D$.cidrv4());else if(z==="cidr-v6")X=X.check(D$.cidrv6());else if(z==="base64")X=X.check(D$.base64());else if(z==="base64url")X=X.check(D$.base64url());else if(z==="e164")X=X.check(D$.e164());else if(z==="jwt")X=X.check(D$.jwt());else if(z==="emoji")X=X.check(D$.emoji());else if(z==="nanoid")X=X.check(D$.nanoid());else if(z==="cuid")X=X.check(D$.cuid());else if(z==="cuid2")X=X.check(D$.cuid2());else if(z==="ulid")X=X.check(D$.ulid());else if(z==="xid")X=X.check(D$.xid());else if(z==="ksuid")X=X.check(D$.ksuid())}if(typeof U.minLength==="number")X=X.min(U.minLength);if(typeof U.maxLength==="number")X=X.max(U.maxLength);if(U.pattern)X=X.regex(new RegExp(U.pattern));O=X;break}case"number":case"integer":{let X=Q==="integer"?D$.number().int():D$.number();if(typeof U.minimum==="number")X=X.min(U.minimum);if(typeof U.maximum==="number")X=X.max(U.maximum);if(typeof U.exclusiveMinimum==="number")X=X.gt(U.exclusiveMinimum);else if(U.exclusiveMinimum===!0&&typeof U.minimum==="number")X=X.gt(U.minimum);if(typeof U.exclusiveMaximum==="number")X=X.lt(U.exclusiveMaximum);else if(U.exclusiveMaximum===!0&&typeof U.maximum==="number")X=X.lt(U.maximum);if(typeof U.multipleOf==="number")X=X.multipleOf(U.multipleOf);O=X;break}case"boolean":{O=D$.boolean();break}case"null":{O=D$.null();break}case"object":{let X={},z=U.properties||{},V=new Set(U.required||[]);for(let[S,E]of Object.entries(z)){let _=S6(E,J);X[S]=V.has(S)?_:_.optional()}if(U.propertyNames){let S=S6(U.propertyNames,J),E=U.additionalProperties&&typeof U.additionalProperties==="object"?S6(U.additionalProperties,J):D$.any();if(Object.keys(X).length===0){O=D$.record(S,E);break}let _=D$.object(X).passthrough(),M=D$.looseRecord(S,E);O=D$.intersection(_,M);break}if(U.patternProperties){let S=U.patternProperties,E=Object.keys(S),_=[];for(let P of E){let v=S6(S[P],J),N=D$.string().regex(new RegExp(P));_.push(D$.looseRecord(N,v))}let M=[];if(Object.keys(X).length>0)M.push(D$.object(X).passthrough());if(M.push(..._),M.length===0)O=D$.object({}).passthrough();else if(M.length===1)O=M[0];else{let P=D$.intersection(M[0],M[1]);for(let v=2;v<M.length;v++)P=D$.intersection(P,M[v]);O=P}break}let L=D$.object(X);if(U.additionalProperties===!1)O=L.strict();else if(typeof U.additionalProperties==="object")O=L.catchall(S6(U.additionalProperties,J));else O=L.passthrough();break}case"array":{let{prefixItems:X,items:z}=U;if(X&&Array.isArray(X)){let V=X.map((S)=>S6(S,J)),L=z&&typeof z==="object"&&!Array.isArray(z)?S6(z,J):void 0;if(L)O=D$.tuple(V).rest(L);else O=D$.tuple(V);if(typeof U.minItems==="number")O=O.check(D$.minLength(U.minItems));if(typeof U.maxItems==="number")O=O.check(D$.maxLength(U.maxItems))}else if(Array.isArray(z)){let V=z.map((S)=>S6(S,J)),L=U.additionalItems&&typeof U.additionalItems==="object"?S6(U.additionalItems,J):void 0;if(L)O=D$.tuple(V).rest(L);else O=D$.tuple(V);if(typeof U.minItems==="number")O=O.check(D$.minLength(U.minItems));if(typeof U.maxItems==="number")O=O.check(D$.maxLength(U.maxItems))}else if(z!==void 0){let V=S6(z,J),L=D$.array(V);if(typeof U.minItems==="number")L=L.min(U.minItems);if(typeof U.maxItems==="number")L=L.max(U.maxItems);O=L}else O=D$.array(D$.any());break}default:throw Error(`Unsupported type: ${Q}`)}return O}function S6(U,J){if(typeof U==="boolean")return U?D$.any():D$.never();let Q=ZN(U,J),O=U.type||U.enum!==void 0||U.const!==void 0;if(U.anyOf&&Array.isArray(U.anyOf)){let L=U.anyOf.map((E)=>S6(E,J)),S=D$.union(L);Q=O?D$.intersection(Q,S):S}if(U.oneOf&&Array.isArray(U.oneOf)){let L=U.oneOf.map((E)=>S6(E,J)),S=D$.xor(L);Q=O?D$.intersection(Q,S):S}if(U.allOf&&Array.isArray(U.allOf))if(U.allOf.length===0)Q=O?Q:D$.any();else{let L=O?Q:S6(U.allOf[0],J),S=O?0:1;for(let E=S;E<U.allOf.length;E++)L=D$.intersection(L,S6(U.allOf[E],J));Q=L}if(U.nullable===!0&&J.version==="openapi-3.0")Q=D$.nullable(Q);if(U.readOnly===!0)Q=D$.readonly(Q);if(U.default!==void 0)Q=Q.default(U.default);let X={},z=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let L of z)if(L in U)X[L]=U[L];let V=["contentEncoding","contentMediaType","contentSchema"];for(let L of V)if(L in U)X[L]=U[L];for(let L of Object.keys(U))if(!Il.has(L))X[L]=U[L];if(Object.keys(X).length>0)J.registry.add(Q,X);if(U.description)Q=Q.describe(U.description);return Q}function ON(U,J){if(typeof U==="boolean")return U?D$.any():D$.never();let Q;try{Q=JSON.parse(JSON.stringify(U))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let O=Xl(Q,J?.defaultTarget),X=Q.$defs||Q.definitions||{},z={version:O,defs:X,refs:new Map,processing:new Set,rootSchema:Q,registry:J?.registry??R6};return S6(Q,z)}var kA={};y6(kA,{string:()=>Ql,number:()=>Yl,date:()=>Zl,boolean:()=>Gl,bigint:()=>Vl});function Ql(U){return $M(SY,U)}function Yl(U){return VM(vY,U)}function Gl(U){return FM(BY,U)}function Vl(U){return LM(NY,U)}function Zl(U){return jM(HV,U)}aU(IV());var zN=_$.object({id:_$.string().min(1).optional(),name:_$.string().min(1).optional(),kind:_$.enum(["human","agent","bot","system"])}),KN=_$.object({type:_$.string().min(1),id:_$.string().min(1)}),DN=_$.object({provider:_$.string().min(1),id:_$.string().min(1).optional(),url:_$.string().min(1).optional(),cursor:_$.string().min(1).optional(),rawRef:_$.string().min(1).optional()}),dK=_$.object({id:_$.string().min(1),service:_$.string().min(1),type:_$.string().min(1),schemaVersion:_$.number().int().positive(),idempotencyKey:_$.string().min(1),occurredAt:_$.string().min(1),observedAt:_$.string().min(1),origin:_$.enum(["virtual","external","agent","connector","replay","migration"]),actor:zN.optional(),subject:KN,causationId:_$.string().min(1).optional(),correlationId:_$.string().min(1).optional(),external:DN.optional(),data:_$.record(_$.string(),_$.unknown()),raw:_$.record(_$.string(),_$.unknown()).optional()}),WN=_$.object({version:_$.literal(1),service:_$.string().min(1),rebuiltAt:_$.string().min(1),eventCount:_$.number().int().nonnegative(),latestEventId:_$.string().min(1).optional(),subjects:_$.record(_$.string(),_$.object({type:_$.string().min(1),id:_$.string().min(1),latestEventId:_$.string().min(1),latestType:_$.string().min(1),updatedAt:_$.string().min(1)}))});function FN(U){return $4(U||process.env.PROJECT_ROOT||process.cwd())}function x2(){let U=process.env.VOLTER_STATE_DIR||".volter";if(oQ(U)||U.split(/[\\/]/).includes(".."))throw Error("VOLTER_STATE_DIR must be a relative directory without .. segments");return U}function RV(U){return T$(FN(U),x2(),"world")}function Kl(U){if(!/^[A-Za-z0-9_-]+$/.test(U))throw Error(`Invalid world service name: ${U}`);return U}var HN;function LN(U){HN=U}function e$(U,J){let Q=Kl(U);HN?.(Q,J);let O=FN(J),X=T$(RV(J),Q);return{root:O,service:Q,dir:X,events:T$(X,"events.jsonl"),state:T$(X,"state.json"),resources:T$(X,"resources"),cursors:T$(X,"cursors"),ingests:T$(X,"ingests"),eventQueue:T$(X,"event-queue.jsonl")}}function nK(U,J){M$().append(U,J)}function oK(U,J){if(process.env.VOLTER_TWIN_LOG!=="1")return;console.error(`[twin:${U}]`,JSON.stringify(J))}function EX(U,J){return C6(()=>{return EF(s$(U)),M$().withLock(U,J)})}function MN(U){return T$(U.dir,"events.jsonl.lock")}function gA(U){return T$(U.dir,"projection.lock")}var Dl={windowMs:60000,ceiling:60,defaultWeight:2,maxRetryAfterSeconds:300,rules:[],reason:"no pack declared a budget for this vendor — this is the conservative fallback (30 calls/min at "+"the default weight), not a considered limit. Declare one on the pack with the vendor's real limits."};function AN(U,J){return T$(s$(e$(U,J).events),"root.json")}function iK(U,J){let Q=M$().read(AN(U,J));return Q===null?null:JSON.parse(Q)}var Wl=new Map;function rK(U){return Wl.get(U)}var Fl=new Map;function xA(U){return Fl.get(U)}async function wA(U,J,Q){for(let O of U){let X=await O.run(J,Q);if(!X.ok)return{name:O.name,reason:X.reason}}return null}var fA={name:"no-secrets",run(U){let J=/\b(?:sk|pk|rk)[_-](?:live|test|prod)[_-][A-Za-z0-9]{8,}|\bxox[abprs]-[A-Za-z0-9-]{10,}|\bgh[pousr]_[A-Za-z0-9]{20,}|\bAKIA[0-9A-Z]{16}\b|\bsk-[A-Za-z0-9]{20,}|\bsk-(?:proj|ant)-[A-Za-z0-9_-]{16,}|-----BEGIN [A-Z ]*PRIVATE KEY-----/,Q=(X,z)=>{if(typeof X==="string")return J.test(X)?z:null;if(Array.isArray(X)){for(let[V,L]of X.entries()){let S=Q(L,`${z}[${V}]`);if(S)return S}return null}if(X&&typeof X==="object"){for(let[V,L]of Object.entries(X)){let S=Q(L,z?`${z}.${V}`:V);if(S)return S}return null}return null},O=Q(U.fields,"")??Q(U.projection,"projection")??Q(U.input,"input");return O===null?{ok:!0}:{ok:!1,reason:`a credential-shaped string in ${O}`}}};var qN="2.0",ql=Number(qN.split(".")[0]);var Tl=new Map;function yA(U){return Tl.get(U)}function uA(U){return{twin:!0,vendor:U.vendor,twinOf:U.twinOf,program:{state:`Stateful: it stores ${U.stores}. Create state through the vendor's OWN API with the real SDK or plain fetch pointed here — there is no fixture language and no write door besides the vendor's.`,identity:U.identity??"Authenticate as the vendor does; the twin accepts any non-sentinel credential.",time:"Writes are stamped from the WORLD CLOCK (volter-world clock <world> set/advance) — deterministic history is clock-set, seed, clock-advance.",behavior:"This twin is state, not scripting — answers are functions of what you seeded. Judgment/fault scripting lives on the scripted vendor twins (their GET /twin explains).",...U.notes?{notes:U.notes}:{}},doors:{manifest:"GET /twin"}}}var TN="TWIN_WORLD_CLOCK_FILE";function CI(){let U=process.env[TN];if(U&&M$().exists(U)){let J=(M$().read(U)??"").trim(),Q=Date.parse(J);if(!Number.isNaN(Q))return new Date(Q).toISOString();throw Error(`world clock: ${U} does not contain a parseable ISO-8601 instant (got ${JSON.stringify(J.slice(0,40))})`)}return new Date().toISOString()}hU();var{AsyncLocalStorage:Rl}=(()=>({}));var bA="placeholder";function CN(U,J){return T$(RV(J),"placeholder-pull")}function hA(U,J){return M$().exists(CN(U,J))}function RN(U){let J=[];if(U.fields)J.push({subject:U.subject,fields:U.fields});for(let Q of U.projection?.creates??[])J.push({subject:{type:Q.type,id:Q.id},fields:Q.fields});for(let Q of U.projection?.updates??[])J.push({subject:{type:Q.type,id:Q.id},fields:Q.fields});if(U.projection?.deletes?.length)throw Error(`placeholder pull: ${U.service} ${U.operation??U.op} deletes ${U.projection.deletes.map((Q)=>`${Q.type}:${Q.id}`).join(", ")} — a seed creates the placeholder world, it cannot remove from it`);return J.map((Q)=>{let O=T4({subject:Q.subject,fields:Q.fields,operation:U.operation??U.op}),X=`placeholder:${U.service}:${Q.subject.type}:${Q.subject.id}:${O}`;return dK.parse({id:X,service:U.service,type:`${U.service}.${Q.subject.type}.delta`,schemaVersion:1,idempotencyKey:X,occurredAt:U.occurredAt,observedAt:U.occurredAt,origin:"virtual",subject:Q.subject,data:{changed:Object.fromEntries(Object.entries(Q.fields).map(([z,V])=>[z,{after:V}])),provenance:bA,remote:bA}})})}function PN(U,J){let Q=e$(U.service,J),O=RN(U);for(let X of O)h2({...qJ(X),provenance:"placeholder"},J);return{events:O}}class lA extends Error{actionId;failed;constructor(U,J){super(`Twin transaction precondition failed for ${U}: ${J.subject.type}:${J.subject.id}.${J.field} ${J.op}`);this.actionId=U;this.failed=J;this.name="TwinActionPreconditionError"}}function tK(U,J){return T$(s$(e$(U,J).events),"actions.jsonl")}var BN=(U,J)=>`${tK(U,J)}.lock`,mA=(U,J)=>gA(e$(U,J));function dA(U){return U.correlationId?U:{...U,correlationId:kN()??WX()}}var EN=new WeakMap;function cA(U){let J=M$().stat(U);return J?`${J.size}:${J.mtimeMs}`:"-"}function NN(U){let J=M$(),Q=EN.get(J);if(!Q)Q=new Map,EN.set(J,Q);return Q}function Pl(U,J){let Q=tK(U,J),O=NN(Q),X=cA(Q),z=O.get(Q);if(z&&z.key===X)return z.ids;let V=new Set(kY(U,J).map((L)=>L.id));return O.set(Q,{key:X,ids:V}),V}function pA(U,J){let Q=tK(U.service,J);M$().mkdir(s$(Q));let O=NN(Q),X=O.get(Q),z=X!==void 0&&X.key===cA(Q);if(C6(()=>nK(Q,`${JSON.stringify(U)}
333
+ `)),z)X.ids.add(U.id),X.key=cA(Q);else O.delete(Q);oK("action.append",{service:U.service,id:U.id,op:U.op,correlationId:U.correlationId}),El?.(U,J)}var El;function _N(U,J){if(U.op!=="set"||!hA(U.service,J))return null;let{events:Q}=PN(U,J);return oK("action.placeholder",{service:U.service,id:U.id,op:U.op,events:Q.length}),{...U,id:Q.at(-1)?.id??U.id}}function SN(U){let{correlationId:J,...Q}=U,O=Q.idempotencyKey!==void 0?(({occurredAt:X,...z})=>z)(Q):Q;return HI(O)}function _l(U,J){let Q=kY(U.service,J).find((O)=>O.id===U.id);if(!Q)return;if(SN(Q)!==SN(U))throw Error(`Conflicting duplicate twin action: ${U.service}/${U.id}`);return Q}var Sl,jl=()=>Sl??=new Rl;function kN(){return jl().getStore()}function vl(U,J,Q){{let O=0;while(J.has(jN(U.id,O)))O+=1;return dA({...U,id:jN(U.id,O)})}}function jN(U,J){return J===0?U:`${U}#${J}`}function gN(U,J,Q){return EX(mA(U,Q),()=>EX(BN(U,Q),()=>{let O=gY(U,Q),X=J(O);if(X.kind==="skip")return{value:X.value,appended:!1};if(X.action.service!==U)throw Error(`Atomic action service mismatch: expected ${U}, got ${X.action.service}`);let z=dA(X.action);if(X.identity==="caller"){let S=_l(z,Q);if(S)return{value:X.value,action:S,appended:!1};let E=z;vN(E,O);let _=_N(E,Q);if(_)return{value:X.value,action:_,appended:!0,placeholder:!0};return pA(E,Q),{value:X.value,action:E,appended:!0}}let V=vl(X.action,Pl(U,Q),Q);vN(V,O);let L=_N(V,Q);if(L)return{value:X.value,action:L,appended:!0,placeholder:!0};return pA(V,Q),{value:X.value,action:V,appended:!0}}))}function kY(U,J){let Q=tK(U,J);return M$().readLines(Q).filter((O)=>O.trim()).map((O)=>JSON.parse(O))}function Bl(U,J){if(!U)return;if(J==="id"||J==="type"||J==="updatedAt")return U[J];return U[J]}function nA(U,J){switch(U.op){case"exists":return J!==void 0;case"not_exists":return J===void 0;case"eq":case"version_eq":return Object.is(J,U.value);case"neq":return!Object.is(J,U.value);default:return!1}}function xN(U,J){let Q=J.find((O)=>O.type===U.subject.type&&O.id===U.subject.id);return Bl(Q,U.field)}function vN(U,J){if(!U.preconditions?.length)return;for(let Q of U.preconditions){let O=xN(Q,J);if(!nA(Q,O))throw new lA(U.id,Q)}}function gY(U,J,Q={}){return b2(U,J,Q)}function oA(U,J){let Q=new Map;for(let[O,X]of LI(U1(U,J)))Q.set(O,X);return Q}function aK(U,J,Q,O){return oA(U,O).get(`${J}:${Q}`)??Q}function xY(U){let J=e$(U.service,U.root),Q=kY(U.service,U.root).find((V)=>V.id===U.actionId)??{id:U.actionId,service:U.service,op:"set",subject:U.subject,occurredAt:U.occurredAt},O={status:"deployed",at:U.occurredAt,...U.vendorSubjectId?{externalId:U.vendorSubjectId}:{},...U.receipt??{}},X=[...(U.additionalObservations??[]).map((V)=>Kz(Q,O,{subject:V.subject,fields:V.fields})),Kz(Q,O,{subject:U.subject,fields:U.fields,...U.vendorSubjectId?{vendorSubjectId:U.vendorSubjectId}:{}})];EX(mA(U.service,U.root),()=>{C6(()=>EX(MN(J),()=>{let V=$Y(U1(U.service,U.root));for(let L of X)if(!V.has(L.id))nK(J.events,`${JSON.stringify(L)}
334
+ `)})),xF(U.service,U.root)});let z=X.map((V)=>V.id);return{observedEventId:z.at(-1),observedEventIds:z}}function iA(U){return EX(mA(U.service,U.root),()=>EX(BN(U.service,U.root),()=>{let J=kY(U.service,U.root),Q=J.find((z)=>z.id===U.actionId);if(Q===void 0)return{status:"not-found"};if(Q.op!=="set")return{status:"not-revertable",op:Q.op};let O=U1(U.service,U.root).find((z)=>z.id===U.actionId||z.landsId===U.actionId);if(O&&O.receipt?.status!=="refused"&&O.receipt?.status!=="failed")return{status:"confirmed"};if(J.some((z)=>z.op==="revert"&&z.revertsActionId===U.actionId))return{status:"already-reverted"};let X=dA({id:`revert:${U.actionId}`,service:U.service,op:"revert",subject:Q.subject,occurredAt:U.occurredAt,revertsActionId:U.actionId});return pA(X,U.root),{status:"reverted",revertId:X.id}}))}function sK(U){return U.subject.type.startsWith("_")}var{AsyncLocalStorage:ol}=(()=>({}));var kl;function wN(U){kl=U}var rA="/__volter/world-boot";var{chmodSync:yl,existsSync:ul,mkdirSync:bl,readFileSync:hl,writeFileSync:cl}=(()=>({}));var eK=(U)=>{let J="";for(let Q=0;Q<U.length;Q+=4096)J+=String.fromCharCode(...U.subarray(Q,Q+4096));return btoa(J)},$D=(U)=>{let J=atob(U),Q=new Uint8Array(new ArrayBuffer(J.length));for(let O=0;O<J.length;O+=1)Q[O]=J.charCodeAt(O);return Q};async function fN(U){if(U.length<32)throw Error("credential KEK must be at least 32 characters (generate with: openssl rand -base64 32)");let J=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(U));return await crypto.subtle.importKey("raw",J,{name:"AES-GCM"},!1,["encrypt","decrypt"])}async function tA(U,J,Q,O=""){let X=await fN(U),z=new TextEncoder().encode(JSON.stringify(J)),V=crypto.getRandomValues(new Uint8Array(32)),L=await crypto.subtle.importKey("raw",V,{name:"AES-GCM"},!1,["encrypt"]),S=crypto.getRandomValues(new Uint8Array(12)),E=crypto.getRandomValues(new Uint8Array(12)),_=new TextEncoder().encode(O),M=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:S,additionalData:_},L,z)),P=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:E},X,V)),v=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(`fingerprint:${U}`)),N=await crypto.subtle.importKey("raw",v,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),f=new Uint8Array(await crypto.subtle.sign("HMAC",N,z));return{v:1,dekIv:eK(E),wrappedDek:eK(P),iv:eK(S),ciphertext:eK(M),placedAt:Q,fingerprint:[...f.slice(0,6)].map((x)=>x.toString(16).padStart(2,"0")).join("")}}async function aA(U,J,Q=""){let O=await fN(U),X;try{X=await crypto.subtle.decrypt({name:"AES-GCM",iv:$D(J.dekIv)},O,$D(J.wrappedDek))}catch{throw Error("credential unseal failed: wrong KEK or corrupted record")}let z=await crypto.subtle.importKey("raw",X,{name:"AES-GCM"},!1,["decrypt"]);try{let V=new Uint8Array(await crypto.subtle.decrypt({name:"AES-GCM",iv:$D(J.iv),additionalData:new TextEncoder().encode(Q)},z,$D(J.ciphertext)));return JSON.parse(new TextDecoder().decode(V))}catch{throw Error("credential unseal failed: wrong KEK or corrupted record")}}function gl(U){return U==="127.0.0.1"||U==="localhost"||U==="[::1]"||U==="::1"}function PV(U,J={}){if(U.length>2048)throw Error("remote origin exceeds 2048 characters");let Q;try{Q=new URL(U)}catch{throw Error("remote origin must be an absolute URL")}if(Q.username!==""||Q.password!=="")throw Error("remote origin must not carry userinfo");let O=gl(Q.hostname);if(Q.protocol!=="https:"){if(!(Q.protocol==="http:"&&O&&J.allowInsecureLoopback===!0))throw Error("remote origin must be https (http is allowed only to loopback, and only where the shell permits it)")}if(!O||J.allowInsecureLoopback!==!0){if(O)throw Error("remote origin must not target loopback on this deployment");let X=Q.hostname.replace(/^\[|\]$/g,"").replace(/\.+$/,"");if(/^\d+\.\d+\.\d+\.\d+$/.test(X)||Q.hostname.startsWith("[")||X.includes(":"))throw Error("remote origin must be a hostname, never an IP literal");if(X==="localhost"||X.endsWith(".localhost")||X.endsWith(".internal"))throw Error("remote origin must not target a local-only hostname")}return Q}var yN=30000;async function xl(U,J,Q){let O=await crypto.subtle.importKey("raw",new TextEncoder().encode(U),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),X=new Uint8Array(await crypto.subtle.sign("HMAC",O,new TextEncoder().encode(J)));if(Q==="hex")return[...X].map((V)=>V.toString(16).padStart(2,"0")).join("");let z="";for(let V of X)z+=String.fromCharCode(V);return btoa(z)}var eA=new TextEncoder;async function uN(U,J){let Q=await crypto.subtle.importKey("raw",U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",Q,eA.encode(J)))}var hN=(U)=>[...U].map((J)=>J.toString(16).padStart(2,"0")).join("");async function bN(U){return hN(new Uint8Array(await crypto.subtle.digest("SHA-256",typeof U==="string"?eA.encode(U):new Uint8Array(U))))}var sA=(U)=>encodeURIComponent(U).replace(/[!\x27()*]/g,(J)=>`%${J.charCodeAt(0).toString(16).toUpperCase()}`);async function wl(U){let{method:J,url:Q,body:O,keyId:X,secret:z,region:V,service:L,headers:S,at:E}=U,_=`${E.toISOString().slice(0,19).replace(/[:-]/g,"")}Z`,M=_.slice(0,8),P=await bN(O??""),v=Q.pathname===""?"/":Q.pathname,N=L==="s3"?v:v.split("/").map(sA).join("/"),f=[...Q.searchParams.entries()].map(([C0,o])=>[sA(C0),sA(o)]).sort((C0,o)=>C0[0]===o[0]?C0[1]<o[1]?-1:1:C0[0]<o[0]?-1:1).map(([C0,o])=>`${C0}=${o}`).join("&"),x=new Map([["host",Q.host],["x-amz-date",_],["x-amz-content-sha256",P]]);S.forEach((C0,o)=>{let q0=o.toLowerCase();if(q0.startsWith("x-amz-")||q0==="content-type")x.set(q0,C0.trim().replace(/\s+/g," "))});let b=[...x.keys()].sort(),k=b.map((C0)=>`${C0}:${x.get(C0)}
335
+ `).join(""),u=b.join(";"),p=[J.toUpperCase(),N,f,k,u,P].join(`
336
+ `),m=`${M}/${V}/${L}/aws4_request`,a=["AWS4-HMAC-SHA256",_,m,await bN(p)].join(`
337
+ `),Z0=eA.encode(`AWS4${z}`);for(let C0 of[M,V,L,"aws4_request"])Z0=await uN(Z0,C0);let L0=hN(await uN(Z0,a));return{"x-amz-date":_,"x-amz-content-sha256":P,authorization:`AWS4-HMAC-SHA256 Credential=${X}/${m}, SignedHeaders=${u}, Signature=${L0}`}}function ID(U,J,Q,O,X={}){if(Q?.in==="exchange")return fl(U,J,Q,O,X.custody);return async({method:z,path:V,headers:L,body:S,responseType:E,presigned:_})=>{if(_){let f;try{f=new URL(V)}catch{throw Error("remote execute: a presigned request carries an absolute URL")}if(f.username||f.password)throw Error("remote execute: a presigned URL carries no userinfo");if(f.origin!==U.origin)PV(f.origin);let x=await fetch(f,{method:z,headers:new Headers(L??{}),...S===void 0?{}:{body:typeof S==="string"?S:new Uint8Array(S)},redirect:"manual",signal:AbortSignal.timeout(yN)}),b={};if(x.headers.forEach((k,u)=>{b[u]=k}),E==="bytes"){let k=new Uint8Array(await x.arrayBuffer());return{status:x.status,headers:b,body:new TextDecoder().decode(k),bodyBytes:k}}return{status:x.status,headers:b,body:await x.text()}}let M;if(/^https:\/\//i.test(V)&&O?.length){if(M=new URL(V),M.username||M.password)throw Error("remote execute: a vendor URL carries no userinfo");if(PV(M.origin),!O.some((x)=>("host"in x)&&!x.exclude&&x.host===M.hostname&&(x.pathPattern===void 0||new RegExp(x.pathPattern).test(M.pathname))))throw Error(`remote execute: ${M.host}${M.pathname.slice(0,64)} is not a host this vendor's pack declares for this path`)}else{if(!V.startsWith("/"))throw Error(`remote execute: path must start with '/' (got ${JSON.stringify(V.slice(0,64))})`);let f=U.href.replace(/\/+$/,"");if(M=new URL(f+V),M.origin!==U.origin||!M.pathname.startsWith(U.pathname.replace(/\/+$/,"")))throw Error("remote execute: path escaped the validated origin")}let P=new Headers(L??{});for(let[f,x]of Object.entries(J.headers))P.set(f,x);if(Q!==void 0){let f=J.secret;if(typeof f!=="string"||f==="")throw Error(`remote execute: the ${Q.in} credential strategy needs \`secret\` on the sealed credential, and it is absent`);if(Q.in==="query")M.searchParams.set(Q.name,f);else if(Q.algorithm==="aws-sigv4"){let x=J.keyId;if(typeof x!=="string"||x==="")throw Error("remote execute: the aws-sigv4 credential strategy needs `keyId` on the sealed credential, and it is absent");let{region:b,service:k}=Q.scope({method:z,path:V,host:M.host,headers:Object.fromEntries(P.entries()),...S===void 0?{}:{body:S}}),u=await wl({method:z,url:M,...S===void 0?{}:{body:S},keyId:x,secret:f,region:b,service:k,headers:P,at:new Date});for(let[p,m]of Object.entries(u))P.set(p,m)}else{if(S instanceof Uint8Array)throw Error("remote execute: this signature canonicalizer accepts text bodies only");let x=Q.canonical({method:z,path:V,...S===void 0?{}:{body:S}});if(x!==null)P.set(Q.header,await xl(f,x,Q.encoding))}}let v=await fetch(M,{method:z,headers:P,...S===void 0?{}:{body:typeof S==="string"?S:new Uint8Array(S)},redirect:"manual",signal:AbortSignal.timeout(yN)}),N={};if(v.headers.forEach((f,x)=>{N[x]=f}),E==="bytes"){let f=new Uint8Array(await v.arrayBuffer());return{status:v.status,headers:N,body:new TextDecoder().decode(f),bodyBytes:f}}return{status:v.status,headers:N,body:await v.text()}}}var wY=new Map,UD=new Map;function fl(U,J,Q,O,X){let z=J,V=ID(U,z,void 0,O),L=Q.header??"authorization",S=Q.scheme??"Bearer",E=Q.retryOn??[401];if(!z.headers||typeof z.headers!=="object")throw Error("remote execute: an exchange credential is sealed with a headers object (it may be empty)");if(Object.keys(z.headers).some((f)=>f.toLowerCase()===L.toLowerCase()))throw Error(`remote execute: an exchange credential must not seal its own \`${L}\` header`);let _=(f)=>{let x=z[f];if(typeof x!=="string"||x==="")throw Error(`remote execute: the exchange needs \`${f}\` on the sealed credential, and it is absent`);return x},M=X?`${U.href}
338
+ ${X.key}`:`${U.href}
339
+ ${JSON.stringify(J)}`,P=async()=>{if(Q.rotate&&X){z=await X.open();let m=UD.get(M);if(m&&z[Q.rotate.credential]===m.replaced)z=m.credential;else UD.delete(M)}let f={};for(let[m,a]of Object.entries(Q.request.body))f[m]=typeof a==="string"?a:_(a.credential);let x=Q.request.format==="json"?JSON.stringify(f):new URLSearchParams(f).toString(),b={"content-type":Q.request.format==="json"?"application/json":"application/x-www-form-urlencoded"};if(Q.request.basicAuth)b.authorization=`Basic ${btoa(`${_(Q.request.basicAuth.user.credential)}:${_(Q.request.basicAuth.password.credential)}`)}`;let k=await V({method:Q.request.method,path:Q.request.path,headers:b,body:x});if(k.status<200||k.status>=300){let m="";try{let a=JSON.parse(k.body);m=String(a.error??a.message??"").slice(0,120)}catch{}throw Error(`remote execute: the token exchange answered ${k.status}${m?` (${m})`:""}`)}let u;try{u=JSON.parse(k.body)}catch{throw Error("remote execute: the token exchange answered no JSON")}let p=Q.token.split(".").reduce((m,a)=>m&&typeof m==="object"?m[a]:void 0,u);if(typeof p!=="string"||p===""){let m=u&&typeof u==="object"?u.error:void 0;throw Error(`remote execute: the token exchange answered no \`${Q.token}\`${typeof m==="string"&&m!==""?` (${m.slice(0,120)})`:""}`)}if(Q.rotate){let m=Q.rotate.answer.split(".").reduce((a,Z0)=>a&&typeof a==="object"?a[Z0]:void 0,u);if(typeof m==="string"&&m!==""&&m!==z[Q.rotate.credential]){let a=String(z[Q.rotate.credential]??"");if(z={...z,[Q.rotate.credential]:m},X)try{await X.seal(z),UD.delete(M)}catch(Z0){UD.set(M,{replaced:a,credential:z}),console.error(`remote execute: the vendor rotated \`${Q.rotate.credential}\` and sealing the new one failed (${Z0 instanceof Error?Z0.message:String(Z0)}); this process holds it until a seal succeeds`)}}}return p},v=()=>{let f=wY.get(M);if(!f){let x=P();f={token:x},wY.set(M,f);let b=f;x.catch(()=>{if(wY.get(M)===b)wY.delete(M)})}return f},N=async(f,x)=>{let b=await x.token,k={};for(let[u,p]of Object.entries(f.headers??{}))if(u.toLowerCase()!==L.toLowerCase())k[u]=p;return k[L]=S?`${S} ${b}`:b,V({...f,headers:k})};return async(f)=>{if(f.presigned)return V(f);let x=v(),b=await N(f,x);if(!E.includes(b.status))return b;if(Q.retryCode!==void 0){let k;try{k=JSON.parse(b.body).error}catch{k=void 0}if(k!==Q.retryCode)return b}if(wY.get(M)===x)wY.delete(M);return N(f,v())}}function pl(U,J,Q){return{resolve:(O,X)=>aK(U,O,X,J),service:U,...J!==void 0?{root:J}:{},...Q!==void 0?{credential:Q}:{}}}function ll(U){let J=M$().read(U.credential);if(J===null)return;let Q=JSON.parse(J).fingerprint;return typeof Q==="string"&&Q!==""?Q:void 0}function mN(){let U=process.env.XDG_CONFIG_HOME&&process.env.XDG_CONFIG_HOME!==""?process.env.XDG_CONFIG_HOME:T$(Xz(),".config");return T$(U,"volter","kek")}function dN(){let U=mN();if(ul(U))return hl(U,"utf8").trim();bl(s$(U),{recursive:!0,mode:448});let J=Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64");return cl(U,`${J}
340
+ `,{mode:384}),yl(U,384),J}var cN=null;function $q(){return cN?cN():dN()}async function Uq(U,J=EV(U)){let Q=M$().read(U.credential);if(Q===null)throw Error(`no credential sealed for ${J} — \`printf '<token>' | volter twin ${J} credential\``);return aA($q(),JSON.parse(Q),J)}async function nN(U,J,Q=EV(U)){let O=M$(),X=O.read(U.credential),z=X===null?null:JSON.parse(X),V=new Date().toISOString(),L=await tA($q(),J,z?.placedAt??V,Q);O.write(U.credential,`${JSON.stringify({...L,...z?{fingerprint:z.fingerprint}:{},rotatedAt:V},null,2)}
341
+ `,{secret:!0})}function oN(U,J=EV(U)){let Q=M$().read(U.credential),O=Q===null?"":String(JSON.parse(Q).fingerprint??"");return{key:`${U.credential}#${O}`,open:()=>Uq(U,J),seal:(X)=>nN(U,X,J)}}function EV(U){return iQ(U.credential,".json")}function iN(U){return $4(s$(U.credential),"..","..")}async function rN(U){let J=T$($4(U),x2(),"checks"),Q=[fA];for(let O of M$().list(J).filter((X)=>/\.(ts|js|mjs)$/.test(X)).sort())Q.push(await dl(T$(J,O),O.replace(/\.(ts|js|mjs)$/,"")));return Q}var ml=async(U,J)=>{let Q=await import(U),O=Q.check??Q.default;if(!O||typeof O.run!=="function")throw Error(`${U} must export a check { name, run }`);return{name:O.name??J,run:O.run}},dl=ml;function tN(U,J){let Q=iK(U,J);if(Q?.credential)return Q;let O=s$(e$(U,J).dir),X=M$(),z=X.list(O).filter((V)=>X.stat(T$(O,V))?.isDirectory);for(let V of z){if(V===U)continue;let L=iK(V,J);if(L?.credential)return L}return null}function Iq(U,J){let Q=tN(U,J);return Q?{kind:"real",deploy:Q.deploy,root:Q}:{kind:"simulated"}}class JD extends Error{check;reason;actionId;constructor(U,J,Q){super(`${U}: ${J}`);this.check=U;this.reason=J;this.actionId=Q;this.name="RefusedWriteError"}}class XD extends Error{constructor(U){super(U);this.name="HeadError"}}class Xq extends Error{actionId;constructor(U,J){super(U);this.actionId=J;this.name="VendorWriteError"}}function aN(U){let J=new Map;for(let Q of U)if(Q.landsId&&Q.receipt)J.set(Q.landsId,Q.receipt);return J}function sN(U,J){let Q=U1(U,J),O=aN(Q),X=TJ(U,J),z=new Set(X.filter((V)=>V.op==="revert"&&V.revertsActionId).map((V)=>V.revertsActionId));return X.filter((V)=>{if(V.op!=="set"||z.has(V.id)||sK(V))return!1;let L=O.get(V.id);return L===void 0||L.status==="failed"||L.status==="skipped"})}var pN=new Map;async function eN(U){let J=`${U.root??""}::${U.service}`,O=(pN.get(J)??Promise.resolve()).then(()=>lN(U),()=>lN(U));return pN.set(J,O.catch(()=>{return})),O}async function lN(U){let{service:J,root:Q}=U,O=Iq(J,Q);if(O.kind!=="real")throw Error(`the ${J} twin has no root — nothing to perform against`);let X=EV(O.root),z=U.adapters??rK(X)??rK(J);if(!z?.perform)throw Error(`the ${X} twin has no perform adapter — a protocol 2 pack names one in its descriptor and registers itself (registerPack)`);let V=U.execute??ID(PV(O.root.url,{allowInsecureLoopback:!0}),await Uq(O.root,X),xA(X),yA(X)?.hosts,{custody:oN(O.root,X)}),L=U.checks??await rN(iN(O.root)),S=sN(J,Q),E=U.actionIds===void 0?S:U.actionIds.map((P)=>S.find((v)=>v.id===P)).filter((P)=>P!==void 0),_={pushed:0,deployed:[],skipped:[],replayed:[]};if(U.actionIds){let P=aN(U1(J,Q));for(let v of U.actionIds)if(P.get(v)?.status==="deployed")_.replayed.push(v)}let M=!1;for(let P of E){if(M){_.skipped.push(P.id);continue}let v=U.at??CI(),N=await wA(L,P,b2(J,Q));if(N){xY({service:J,actionId:P.id,subject:P.subject,fields:P.fields??{},occurredAt:v,receipt:{status:"refused",reason:`${N.name}: ${N.reason}`},...Q!==void 0?{root:Q}:{}}),_.refused={actionId:P.id,check:N.name,reason:N.reason},M=!0;continue}try{let f=AJ(J,P.subject.type,P.fields??{},LI(U1(J,Q))),x=await z.perform(V,f===P.fields?P:{...P,fields:f},pl(J,Q,ll(O.root))),b=x.data!==null&&typeof x.data==="object"&&!Array.isArray(x.data)?x.data:{};xY({service:J,actionId:P.id,subject:P.subject,fields:{...f,...b},occurredAt:v,...x.externalId?{vendorSubjectId:x.externalId}:{},receipt:{status:"deployed",...x.url?{url:x.url}:{}},...Q!==void 0?{root:Q}:{}}),_.pushed+=1,_.deployed.push({actionId:P.id,at:v,...x.externalId?{externalId:x.externalId}:{},...x.data!==void 0?{data:x.data}:{}})}catch(f){if(f instanceof JD){xY({service:J,actionId:P.id,subject:P.subject,fields:P.fields??{},occurredAt:v,receipt:{status:"refused",reason:f.message},...Q!==void 0?{root:Q}:{}}),_.refused={actionId:P.id,check:f.check,reason:f.reason},M=!0;continue}let x=f instanceof Error?f.message:String(f);xY({service:J,actionId:P.id,subject:P.subject,fields:P.fields??{},occurredAt:v,receipt:{status:"failed",reason:x},...Q!==void 0?{root:Q}:{}}),_.failed={actionId:P.id,error:x},M=!0}}return _}async function Jq(U,J,Q){let O=Iq(U,Q);if(O.kind!=="real"||O.deploy!=="auto")return{performed:!1};let X;try{X=await eN({service:U,actionIds:[J.id],...Q!==void 0?{root:Q}:{}})}catch(L){throw L instanceof XD?L:new XD(L instanceof Error?L.message:String(L))}if(X.refused?.actionId===J.id||X.failed?.actionId===J.id)iA({service:U,actionId:J.id,occurredAt:CI(),...Q!==void 0?{root:Q}:{}});if(X.refused?.actionId===J.id)throw new JD(X.refused.check,X.refused.reason,J.id);if(X.failed?.actionId===J.id)throw new Xq(X.failed.error,J.id);let V=X.deployed.find((L)=>L.actionId===J.id);return{performed:V!==void 0,...V?.externalId?{externalId:V.externalId}:{},...V?.data!==void 0?{data:V.data}:{}}}hU();var il=1e6,rl=/(?:^|[-_.])(?:auth|authorization|token|jwt|key|apikey|secret|credential|credentials|signature|sig|password|passwd|pwd|session|sessionid|cookie|access[-_]?token|refresh[-_]?token)(?:[-_.]|$)/i,tl=/^(Bearer|Basic|Digest|Token|Negotiate|NTLM|OAuth|Signature|Hawk|AWS4-HMAC-SHA256|SharedKey|SharedKeyLite|GoogleLogin)\s+(\S[\s\S]*)$/i;function $3(U){return`sha256:${h6("sha256").update(U,"utf8").digest("hex").slice(0,16)}`}function al(U,J,Q){let O=tl.exec(J);if(!O&&!rl.test(U))return;let X=U.toLowerCase();if(J==="")return{name:X,in:Q,empty:!0};if(O)return{name:X,in:Q,scheme:O[1],fp:$3(O[2])};return{name:X,in:Q,fp:$3(J)}}function Q3(U,J){let Q=[],O=new Set,X=(z,V,L)=>{let S=al(z,V,L);if(!S)return;let E=`${S.in}:${S.name}`;if(O.has(E))return;O.add(E),Q.push(S)};try{if(typeof U.forEach==="function")U.forEach((z,V)=>X(V,z,"header"));else for(let[z,V]of Object.entries(U))X(z,String(V),"header")}catch{}try{if(J!==void 0){let z=typeof J==="string"?new URL(J,"http://twin.invalid").search:J.search;for(let[V,L]of new URLSearchParams(z))X(V,L,"query")}}catch{}return Q.sort((z,V)=>z.in===V.in?z.name.localeCompare(V.name):z.in.localeCompare(V.in))}function Gq(U=process.env){return U.VOLTER_TWIN_REQUEST_JOURNAL==="1"}function Y3(U,J){return T$(s$(e$(U,J).events),"requests.jsonl")}function G3(U,J,Q){if(!Gq())return;try{let O=M$(),X=Y3(U,Q);if(O.mkdir(s$(X)),(O.stat(X)?.size??0)>=il)O.writeAtomic(`${X}.1`,O.read(X)??""),O.write(X,"");let V=JSON.stringify({at:J.at??new Date().toISOString(),method:J.method.toUpperCase(),path:J.path.split("?")[0],status:J.status,...typeof J.ms==="number"?{ms:J.ms}:{},...J.credentials?.length?{credentials:J.credentials}:{}});O.append(X,`${V}
342
+ `)}catch{}}var V3=Symbol.for("volter.twin.requestJournal.identity"),U3=Symbol.for("volter.twin.requestJournal.installed"),Qq;function sl(){return Qq??=new ol,Qq}function el(){LN((U,J)=>{let Q=Qq?.getStore();if(!Q||Q.identity!==void 0)return;Q.identity=J===void 0?{service:U}:{service:U,root:J}})}function $m(U=process.argv){let J=U.indexOf("--root"),Q=J>=0?U[J+1]:void 0;return Q&&!Q.startsWith("--")?Q:void 0}var Um=new Set(["world-runtime","world-tooling","world-attach","world-browser-assets","world-host"]);function I3(U){if(!U)return;let J=/(?:packages[\\/]twin[\\/]|@volter[\\/]twin-)([A-Za-z0-9_-]+)/g;for(let Q of U.matchAll(J)){let O=Q[1];if(!Um.has(O))return O}return}function Im(){if(typeof window<"u"||typeof document<"u")return!1;let U=globalThis.Bun,J=U&&typeof U.serve==="function"?U.serve:void 0;if(J&&J[U3])return!0;if(el(),wN((O)=>X3(O,I3(Error().stack))),!J)return!1;let Q=function(X,...z){let V=X;if(!V||typeof V.fetch!=="function")return J.apply(this,[X,...z]);let L=V[V3]?void 0:I3(Error().stack);return J.apply(this,[{...V,fetch:X3(V,L)},...z])};return Object.defineProperty(Q,U3,{value:!0}),U.serve=Q,!0}function X3(U,J){if(U.twinRequestJournal===!1)return U.fetch;{let O=U[V3],X=U.fetch;return async function(V,L){if(!Gq()||new URL(V.url).pathname===rA)return X.call(this,V,L);let S={},E=500,_=Date.now();try{let M=await sl().run(S,()=>X.call(this,V,L));if(M instanceof Response)E=M.status;else if(M===void 0)return M;return M}finally{O??=S.identity;let M=O??Xm(J);if(M){let P=new URL(V.url);G3(M.service,{method:V.method,path:P.pathname,status:E,ms:Date.now()-_,credentials:Q3(V.headers,P)},M.root)}}}}}function Xm(U){let J=process.env.VOLTER_TWIN_JOURNAL_SERVICE||U;if(!J||!/^[A-Za-z0-9_-]+$/.test(J))return;let Q=$m();return Q===void 0?{service:J}:{service:J,root:Q}}Im();function Jm(U,J){let Q=J.occurredAt??new Date().toISOString(),O=T4({operation:J.operation,subjectId:J.subjectId,fields:J.fields,input:J.input,projection:J.projection});return{id:J.actionId??(J.idempotencyKey?`twin:${U}:${J.operation}:${J.subjectId}:idem:${J.idempotencyKey}`:`twin:${U}:${J.operation}:${J.subjectId}:${Q}:${O}${J.uniqueness?`:${J.uniqueness}`:""}`),service:U,op:"set",operation:J.operation,subject:{type:J.subjectType,id:J.subjectId},occurredAt:Q,...J.actor?{actor:J.actor}:{},...J.preconditions?.length?{preconditions:J.preconditions}:{},...J.correlationId?{correlationId:J.correlationId}:{},...J.idempotencyKey?{idempotencyKey:J.idempotencyKey}:{},...J.input?{input:J.input}:{},fields:J.fields,...J.projection?{projection:J.projection}:{}}}async function _V(U,J,Q){let O=gN(U,(z)=>{let V=J(z);if(V.kind==="skip")return{kind:"skip",value:V.value};return{kind:"append",value:V.value,action:Jm(U,V.write),identity:V.write.idempotencyKey||V.write.actionId?"caller":"occurrence"}},Q),X=O.action&&O.appended&&!O.placeholder?await Jq(U,O.action,Q):{performed:!1};return{value:O.value,...O.action?{result:{status:O.appended?"performed":"replayed",actionId:O.action.id,...X.externalId?{externalId:X.externalId}:{}}}:{}}}hU();var ns=Symbol("absent");hU();var{closeSync:Lm,existsSync:SV,mkdirSync:Mm,openSync:Am,readdirSync:qm,readFileSync:Tm,readSync:Cm,renameSync:Rm,rmSync:q3,statSync:zq,writeFileSync:Pm}=(()=>({}));hU();var{closeSync:Zq,constants:gJ,fstatSync:W3,ftruncateSync:Om,linkSync:zm,lstatSync:Vq,mkdirSync:Km,openSync:Oq,readFileSync:Dm,readSync:z3,rmSync:Wm,writeFileSync:Fm}=(()=>({}));var F3=131072,H3=32,L3=4;function M3(U){return U.isFile()&&U.nlink===1&&(!process.getuid||U.uid===process.getuid())&&(U.mode&63)===0}function K3(U){try{let J=Vq(U);return J.isDirectory()&&(J.mode&63)===0&&(!process.getuid||J.uid===process.getuid())}catch{return!1}}function D3(U){let J;try{J=Oq(U,gJ.O_RDONLY|gJ.O_NONBLOCK|(gJ.O_NOFOLLOW??0));let Q=W3(J);if(!M3(Q)||Q.size>F3)return{};let O=JSON.parse(Dm(J,"utf8"));if(!O||typeof O!=="object"||Array.isArray(O))return{};let X={};for(let[z,V]of Object.entries(O).slice(-H3)){if(!/^\d+:[a-f0-9]{64}$/.test(z)||!Array.isArray(V))continue;X[z]=V.filter((L)=>typeof L==="string"&&L.length<=4096&&oQ(L)).slice(0,L3)}return X}catch{return{}}finally{if(J!==void 0)Zq(J)}}function Hm(U,J){let Q=Oq(U,"r");try{let O=h6("sha256"),X=Buffer.allocUnsafe(65536),z=J;while(z>0){let V=z3(Q,X,0,Math.min(X.length,z),null);if(!V)return null;O.update(X.subarray(0,V)),z-=V}if(z3(Q,X,0,1,null))return null;return O.digest("hex")}finally{Zq(Q)}}function A3(U,J,Q){let O=T$(U,`${Q.slice(0,2)}.json`),X=`${J}:${Q}`;return{reuse(z,V){if(!K3(U))return!1;for(let L of D3(O)[X]??[]){try{let S=Vq(L);if(!S.isFile()||S.dev!==J||S.size!==V||process.getuid&&S.uid!==process.getuid())continue;zm(L,z);let E=Vq(z);if(E.isFile()&&E.dev===J&&E.size===V&&(!process.getuid||E.uid===process.getuid())&&Hm(z,V)===Q)return!0}catch{}Wm(z,{force:!0})}return!1},record(z){try{let V=$4(z);if(V.length>4096)return;let L=D3(O),S=[V,...(L[X]??[]).filter((M)=>M!==V)].slice(0,L3);delete L[X],L[X]=S;let E=JSON.stringify(L);while(Object.keys(L).length>H3||Buffer.byteLength(E)>F3)delete L[Object.keys(L)[0]],E=JSON.stringify(L);if(Km(U,{recursive:!0,mode:448}),!K3(U))return;let _=Oq(O,gJ.O_WRONLY|gJ.O_CREAT|gJ.O_NONBLOCK|(gJ.O_NOFOLLOW??0),384);try{if(!M3(W3(_)))return;Om(_,0),Fm(_,E)}finally{Zq(_)}}catch{}}}}class Kq{options;constructor(U={}){this.options=U}async get(U){if(!SV(U))return null;return new Uint8Array(Tm(U))}async put(U,J){Mm(s$(U),{recursive:!0});let Q=`${U}.tmp.${WX()}`,O;try{if(this.options.sharedIndexRoot!==!1)try{O=A3(this.options.sharedIndexRoot??T$(LJ(),"blob-index-v1"),zq(s$(U)).dev,T3(J))}catch{}if(!O?.reuse(Q,J.byteLength))Pm(Q,J,{flag:"wx"});Rm(Q,U),O?.record(U)}finally{q3(Q,{force:!0})}}async exists(U){return SV(U)}async remove(U){q3(U,{force:!0,recursive:U.endsWith("/")})}async list(U){let J=[],Q=(O)=>{if(!SV(O))return;for(let X of qm(O,{withFileTypes:!0})){let z=T$(O,X.name);if(X.isDirectory())Q(z);else if(!X.name.includes(".tmp."))J.push(z)}};return Q(U.replace(/\/$/,"")),J.sort()}async size(U){if(!SV(U))return null;return zq(U).size}async getRange(U,J,Q){if(!SV(U))return null;let O=zq(U).size,X=Math.max(0,J),z=Math.min(Q,O-1);if(z<X)return new Uint8Array(0);let V=new Uint8Array(z-X+1),L=Am(U,"r"),S=0;try{while(S<V.length){let E=Cm(L,V,S,V.length-S,X+S);if(E===0)break;S+=E}}finally{Lm(L)}return S===V.length?V:V.subarray(0,S)}}function T3(U){return h6("sha256").update(U).digest("hex")}var Ze=new Kq;Aq();var ze=new RegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"),Ke=new RegExp("^(?:(?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(?::(?:[0-9a-fA-F]{1,4})){0,1}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(?::(?:[0-9a-fA-F]{1,4})){0,2}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(?::(?:[0-9a-fA-F]{1,4})){0,3}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(?::(?:[0-9a-fA-F]{1,4})){0,4}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::(?:(?::(?:[0-9a-fA-F]{1,4})){0,5}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?$");hU();var{existsSync:ce,readFileSync:pe,statSync:le}=(()=>({}));class Zd{buf=new Uint8Array(65536);len=0;push(U){if(this.len===this.buf.length){let J=new Uint8Array(this.buf.length*2);J.set(this.buf),this.buf=J}this.buf[this.len++]=U}copy(U,J){if(U>this.len)throw Error("inflate: distance too far back");for(let Q=0;Q<J;Q++)this.push(this.buf[this.len-U])}bytes(){return this.buf.slice(0,this.len)}}var Z00="0".repeat(40),O00=new Uint8Array([48,48,48,48]);var{AsyncLocalStorage:R00}=(()=>({}));var{AsyncLocalStorage:v00}=(()=>({}));var{existsSync:k00,readFileSync:g00,statSync:x00}=(()=>({}));var{existsSync:y00,readFileSync:u00}=(()=>({}));var{existsSync:c00}=(()=>({}));var qq=[{id:"alias",area:"alias",method:"POST",path:"/v1/alias",summary:"associate one identity with another: a `previousId` (userId or anonymousId) is aliased onto a new `userId`",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Alias' declares `POST https://api.segment.io/v1/alias` with a worked body {previousId, userId, timestamp, writeKey} and a field table naming previousId. Absent from @segment/analytics-node@2's wire surface (batched as type:'alias'); the SDK's AliasParams (src/app/types/params.ts) requires both userId and previousId.",tier:"common"},{id:"batch",area:"batch",method:"POST",path:"/v1/batch",summary:"the SERVER-side batched ingestion envelope every official server SDK sends: {batch:[<message>...], writeKey, sentAt}, each message discriminated by its own `type`",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"SDK WIRE LITERAL. @segment/analytics-node@2.3.0 src/plugins/segmentio/publisher.ts:73-76 builds the one and only URL this SDK ever posts to: tryCreateFormattedUrl(host ?? 'https://api.segment.io', path ?? '/v1/batch'); the body at :243-247 is JSON.stringify({batch: events, writeKey: this._writeKey, sentAt: new Date()}). It is the SOLE real path literal in var/line/segment/dossier/wire.json pathLiterals (the other, '/bar', is a JSDoc example). Corroborated in a second first-party SDK (analytics-python segment/analytics/request.py: url = remove_trailing_slash(host or 'https://api.segment.io') + '/v1/batch') and in the vendor's own reference, github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Batch'.",tier:"core"},{id:"browser_track",area:"track",method:"POST",path:"/v1/t",summary:"analytics.js's short-form tracking route on the api.segment.io/v1 base — the path a browser proxy must forward",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/website/javascript/custom-proxy.md:123-125 documents the Analytics.js `integrations['Segment.io'].apiHost` proxy as: '// POST https://MY-CUSTOM-API-PROXY.com/v1/t --> proxies to // https://api.segment.io/v1/t'. Only the `/v1/t` short form appears on a first-party page; the sibling short routes analytics.js may use for the other call types are NOT documented anywhere in segment-docs and are deliberately not invented here. No literal in @segment/analytics-node@2 (a server SDK; this is the browser route).",tier:"niche"},{id:"group",area:"group",method:"POST",path:"/v1/group",summary:"associate an identified user with a group (company/account/team) and record group traits",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Group' declares `POST https://api.segment.io/v1/group` with a worked body {userId, groupId, traits, timestamp, writeKey} and a field table naming groupId and group traits. Absent from @segment/analytics-node@2's wire surface (batched as type:'group').",tier:"core"},{id:"identify",area:"identify",method:"POST",path:"/v1/identify",summary:"tie a user to their actions and record `traits` about them",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Identify' declares `POST https://api.segment.io/v1/identify` with a worked body {userId, traits, context, timestamp, writeKey} and a field table (anonymousId, context, integrations, timestamp, identify traits, userId); the '## Selecting Destinations' section posts an integrations-bearing identify to the same URL. Absent from @segment/analytics-node@2's wire surface (that SDK sends type:'identify' messages inside /v1/batch).",tier:"core"},{id:"mobile_batch",area:"batch",method:"POST",path:"/v1/b",summary:"the MOBILE batch endpoint — a distinct route from /v1/batch, which the vendor reserves for server-side sending",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/mobile/apple/index.md:163 and src/connections/sources/catalog/libraries/mobile/react-native/index.md:781: 'you must forward the batched events to https://api.segment.io/v1/b. The https://api.segment.io/v1/batch endpoint is reserved for events arriving from server-side sending, and proxying to that endpoint for your mobile events may result in unexpected behavior.' Also react-native/index.md:91, the `proxy` option: 'a batch url to post to instead of https://api.segment.io/v1/b'. No literal in @segment/analytics-node@2 — this is the Swift/Kotlin/React-Native route, and no mobile SDK is pinned in this dossier.",tier:"common"},{id:"oauth_token",area:"oauth",method:"POST",path:"/token",summary:"OAuth 2.0 client-credentials token exchange on the regional authorization server: a signed RS256 JWT client assertion is traded for a short-lived access token",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"SDK WIRE LITERAL (interpolated, which is why wire.json's plain-string grep missed it). @segment/analytics-node@2.3.0 src/lib/token-manager.ts requestAccessToken(): `const accessTokenEndpoint = ${this.authServer}/token`, POSTed as application/x-www-form-urlencoded with grant_type=client_credentials & client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer & client_assertion=<signed JWT> & scope; authServer defaults to 'https://oauth2.segment.io' (same file's constructor) and the EU value 'https://oauth2.eu1.segmentapis.com' is documented on src/lib/types.ts OAuthSettings.authServer. Corroborated by github.com/segmentio/segment-docs src/connections/oauth.md '## Obtain the access token', which names both regional authorization servers and the same four form parameters.",tier:"niche"},{id:"page",area:"page",method:"POST",path:"/v1/page",summary:"record a web page view, with optional category, name and properties",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Page' declares `POST https://api.segment.io/v1/page` with a worked body {userId, name, timestamp, writeKey} and a field table (anonymousId, context, integrations, page name, page properties, timestamp, userId). Absent from @segment/analytics-node@2's wire surface (batched as type:'page').",tier:"core"},{id:"pixel_alias",area:"pixel",method:"GET",path:"/v1/pixel/alias",summary:"Tracking Pixel API: an alias call carried in the query string, answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md '#### Pixel Routes' enumerates exactly six routes as a literal block — /v1/pixel/identify, /v1/pixel/group, /v1/pixel/alias, /v1/pixel/page, /v1/pixel/screen, /v1/pixel/track — under the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, with 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs'. Not in any SDK.",tier:"niche"},{id:"pixel_group",area:"pixel",method:"GET",path:"/v1/pixel/group",summary:"Tracking Pixel API: a group call carried in the query string, answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md '#### Pixel Routes' enumerates exactly six routes as a literal block — /v1/pixel/identify, /v1/pixel/group, /v1/pixel/alias, /v1/pixel/page, /v1/pixel/screen, /v1/pixel/track — under the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, with 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs'. Not in any SDK.",tier:"niche"},{id:"pixel_identify",area:"pixel",method:"GET",path:"/v1/pixel/identify",summary:"Tracking Pixel API: an identify call carried in the query string, answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md '#### Pixel Routes' enumerates exactly six routes as a literal block — /v1/pixel/identify, /v1/pixel/group, /v1/pixel/alias, /v1/pixel/page, /v1/pixel/screen, /v1/pixel/track — under the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, with 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs'. Not in any SDK.",tier:"niche"},{id:"pixel_page",area:"pixel",method:"GET",path:"/v1/pixel/page",summary:"Tracking Pixel API: a page call carried in the query string, answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md '#### Pixel Routes' enumerates exactly six routes as a literal block — /v1/pixel/identify, /v1/pixel/group, /v1/pixel/alias, /v1/pixel/page, /v1/pixel/screen, /v1/pixel/track — under the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, with 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs'. Not in any SDK.",tier:"niche"},{id:"pixel_screen",area:"pixel",method:"GET",path:"/v1/pixel/screen",summary:"Tracking Pixel API: a screen call carried in the query string, answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md '#### Pixel Routes' enumerates exactly six routes as a literal block — /v1/pixel/identify, /v1/pixel/group, /v1/pixel/alias, /v1/pixel/page, /v1/pixel/screen, /v1/pixel/track — under the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, with 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs'. Not in any SDK.",tier:"niche"},{id:"pixel_track",area:"pixel",method:"GET",path:"/v1/pixel/track",summary:"Tracking Pixel API: a track call carried in the query string (base64 `?data=` or plain params), answering 200 with a 1x1 transparent GIF",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md gives the signature `https://api.segment.io/v1/pixel/<METHOD ENDPOINT>?data=<base64-ENCODED-JSON>`, lists /v1/pixel/track among its six '#### Pixel Routes', states 'Each endpoint *always* responds with a 200 <empty-gif>, even if an error occurs', and shows both the base64 img-tag form (:67) and the unencoded query-param form (:61). Corroborated at src/connections/sources/custom-domain.md:79 and src/guides/how-to-guides/cross-channel-tracking.md:77. Not in any SDK: this route exists for email/ad contexts where JavaScript and POST are impossible.",tier:"niche"},{id:"screen",area:"screen",method:"POST",path:"/v1/screen",summary:"record a mobile app screen view, with optional category, name and properties",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Screen' declares `POST https://api.segment.io/v1/screen` with a worked body {userId, name, timestamp, writeKey}. @segment/analytics-node@2 exposes a .screen() method (src/app/analytics-node.ts) and its SegmentEventType union includes 'screen' (src/app/types/segment-event.ts), but the message still travels inside /v1/batch — no per-type path literal ships.",tier:"common"},{id:"track",area:"track",method:"POST",path:"/v1/track",summary:"record an action a user performed: required `event` name plus optional `properties`",pathParams:[],requiredQuery:[],requiredBody:[],successStatus:200,responseSkeleton:null,specFile:"SURFACE.json (sdk/docs-ratified, no vendor spec exists)",evidence:"DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/libraries/server/http-api/index.md '## Track' declares `POST https://api.segment.io/v1/track` with a worked JSON body {userId, event, properties, context, timestamp, writeKey}; the same page's '### writeKey authentication' and '#### OAuth' curl examples both post to that exact URL. NO path literal for it exists in @segment/analytics-node@2 — that SDK batches every call type onto /v1/batch — so this entry is grounded in the vendor's reference page, not in shipped SDK bytes.",tier:"core"}],t40=qq.map((U)=>({op:U,re:new RegExp("^"+U.path.replace(/[.*+?^$()|[\]\\]/g,"\\$&").replace(/\{([^}]+)\}/g,"(?<$1>[^/]+)")+"$")}));var Tq="segment",YD=(U)=>gY(Tq,U);function i3(U){return YD(U).filter((J)=>J.type==="event").sort((J,Q)=>Number(J.seq??0)-Number(Q.seq??0))}function r3(U){return YD(U).filter((J)=>J.type==="identity")}function t3(U){return YD(U).filter((J)=>J.type==="group")}function a3(U){return YD(U).filter((J)=>J.type==="dropped").sort((J,Q)=>Number(J.seq??0)-Number(Q.seq??0))}var s3=(U,J,Q)=>({status:U,body:{code:J,message:Q},headers:{"content-type":"application/json"}}),Md=32768;var Ad=2500,qd=(U)=>new TextEncoder().encode(U).length;var $6=(U)=>typeof U==="string"&&U!==""?U:void 0,X1=(U)=>U&&typeof U==="object"&&!Array.isArray(U)?U:void 0,Td=["track","identify","page","group","alias"],Cd=["screen"];function Rd(U,J){if(!$6(U.userId)&&!$6(U.anonymousId))return"no_user_anon_id";if(J==="track"&&!$6(U.event))return"track_missing_event";if(J==="group"&&!$6(U.groupId))return"group_missing_group_id";if(J==="alias"&&!$6(U.previousId))return"alias_missing_previous_id";return}function Pd(U,J){let Q="";for(let O=0;Q.length<J;O+=1){let X=2166136261,z=`${O}:${U}`;for(let V=0;V<z.length;V+=1)X^=z.charCodeAt(V),X=Math.imul(X,16777619)>>>0;Q+=X.toString(16).padStart(8,"0")}return Q.slice(0,J)}var n3=(U,J,Q)=>{let O=$6(U.messageId);if(O)return O;let X=Pd(`message:${J}:${Q}`,32);return`${X.slice(0,8)}-${X.slice(8,12)}-${X.slice(12,16)}-${X.slice(16,20)}-${X.slice(20,32)}`},o3=(U,J)=>U.reduce((Q,O)=>O.type===J?Math.max(Q,Number(O.seq??0)):Q,0)+1;function Ed(U,J,Q,O,X,z,V){return{messageType:J,messageId:X,endpoint:O,userId:$6(U.userId)??null,anonymousId:$6(U.anonymousId)??null,writeKey:Q.writeKey,authScheme:Q.scheme,event:$6(U.event)??null,name:$6(U.name)??null,category:$6(U.category)??null,groupId:$6(U.groupId)??null,previousId:$6(U.previousId)??null,properties:X1(U.properties)??null,traits:X1(U.traits)??null,context:{...Q.context??{},...X1(U.context)??{}},integrations:{...Q.integrations??{},...X1(U.integrations)??{}},timestamp:typeof U.timestamp==="string"?U.timestamp:null,sentAt:Q.sentAt,receivedAt:V,seq:z}}function _d(U,J,Q,O,X){let z=$6(U.messageId),V=$6(U.userId)??null,L=$6(U.anonymousId)??null,S=V??L,E=[];X.seq.event+=1;let _=Ed(U,J,Q,O,z,X.seq.event,X.receivedAt);E.push({type:"event",id:z,fields:_});let M=(P,v)=>X.pending.get(`${P}:${v}`)?.fields??X.resources.find((N)=>N.type===P&&N.id===v);if(J==="identify"){let P=M("identity",S);E.push({type:"identity",id:S,fields:{userId:V,anonymousId:L??P?.anonymousId??null,traits:{...X1(P?.traits)??{},...X1(U.traits)??{}},previousIds:P?.previousIds??[],rev:Number(P?.rev??0)+1}})}else if(J==="group"){let P=$6(U.groupId),v=M("group",P);E.push({type:"group",id:P,fields:{groupId:P,traits:{...X1(v?.traits)??{},...X1(U.traits)??{}},members:[...new Set([...v?.members??[],S])],rev:Number(v?.rev??0)+1}})}else if(J==="alias"){let P=$6(U.previousId),v=V??S,N=M("identity",v),f=M("identity",P);E.push({type:"identity",id:v,fields:{userId:v,anonymousId:N?.anonymousId??null,traits:{...X1(f?.traits)??{},...X1(N?.traits)??{}},previousIds:[...new Set([...N?.previousIds??[],P])],rev:Number(N?.rev??0)+1}})}for(let P of E)X.pending.set(`${P.type}:${P.id}`,P);return E}async function e3(U,J,Q,O){let X=[],z=[];for(let[V,L]of U.messages.entries()){let S=X1(L);if(!S)return s3(400,"invalid_message",`batch[${V}] is not an object — each batch item must be a Segment message`);if(U.batched&&V>=Ad){z.push({msg:S,type:$6(S.type)??"",reason:"batch_exceeds_2500_events"});continue}if(U.batched&&qd(JSON.stringify(S))>Md){z.push({msg:S,type:$6(S.type)??"",reason:"event_exceeds_32kb"});continue}let E=$6(S.type);if(!E){z.push({msg:S,type:"",reason:"unknown_message_type"});continue}if(Cd.includes(E))return Sd(E,J);if(!Td.includes(E)){z.push({msg:S,type:E,reason:"unknown_message_type"});continue}let _=Rd(S,E);if(_)z.push({msg:S,type:E,reason:_});else X.push({msg:S,type:E})}if(X.length){let V=O;await _V(Tq,(L)=>{let S=new Set(L.filter((f)=>f.type==="event").map((f)=>f.id)),E={resources:L,pending:new Map,seq:{event:o3(L,"event")-1},receivedAt:V},_=[],M=0;for(let{msg:f,type:x}of X){let b=n3(f,O,E.seq.event+1);if(S.has(b)){M+=1;continue}S.add(b),_.push(..._d({...f,messageId:b},x,U,J,E))}let P=[...new Map(_.map((f)=>[`${f.type}:${f.id}`,f])).values()],v=_.filter((f)=>f.type==="event");if(!v.length)return{kind:"skip",value:{stored:0,deduped:M}};let N=v[0];return{kind:"write",value:{stored:v.length,deduped:M},write:{operation:`ingest.${J.replace(/^\/+/,"").replace(/\//g,".")}`,subjectType:"event",subjectId:N.id,occurredAt:O,fields:N.fields,projection:{creates:P},actor:{kind:"agent"},uniqueness:`${N.id}:${v.length}`}}},Q)}if(z.length){let V=z.map((L,S)=>({msg:L.msg,type:L.type,reason:L.reason,messageId:n3(L.msg,O,-(S+1))}));await _V(Tq,(L)=>{let S=o3(L,"dropped")-1,E=V.map((M)=>{return S+=1,{type:"dropped",id:`drop_${M.messageId}`,fields:{messageType:M.type,messageId:M.messageId,endpoint:J,reason:M.reason,seq:S}}}),_=E[0];return{kind:"write",value:null,write:{operation:"drop.messages",subjectType:"dropped",subjectId:_.id,occurredAt:O,fields:_.fields,projection:{creates:E},actor:{kind:"agent"},uniqueness:`${_.id}:${E.length}`}}},Q)}return{status:200,body:{success:!0},headers:{"content-type":"application/json"}}}function Sd(U,J){let Q=qq.find((O)=>O.id===U);return s3(404,"twin_gap",`[twin gap] message type '${U}' (arriving at ${J}${Q?`; ratified as ${Q.method} ${Q.path}`:""}) is in the segment twin's ratified surface but is not yet modeled — the whole payload was refused and nothing was stored. DEVIATION: the real Segment answers 200 here and silently drops the message; that is indistinguishable from acceptance, so this twin refuses instead`)}var jV=(U)=>async({op:J,body:Q,root:O,occurredAt:X})=>{let z=Q,V=z.messages.map((L)=>({...L,type:U}));return e3({...z,messages:V},J.path,O,X)},U10={batch:async({op:U,body:J,root:Q,occurredAt:O})=>e3(J,U.path,Q,O),track:jV("track"),identify:jV("identify"),page:jV("page"),group:jV("group"),alias:jV("alias")};var $k=uA({vendor:"segment",twinOf:"the Segment HTTP Tracking API",stores:"tracked events, identify calls, group calls and refused (dropped) messages",identity:"Authenticate as Segment does — the write key as HTTP Basic username, an OAuth bearer, or `writeKey` in the body; the twin accepts any non-sentinel credential."}),jd={events:i3,identities:r3,groups:t3,dropped:a3},vd=Object.keys(jd).sort(),G10={...$k,stores:vd,doors:{...$k.doors,store:"GET /twin/store/<name>"}};var Cq={track:"pill pill-track",identity:"pill pill-identity",screenish:"pill pill-screenish",dropped:"pill pill-dropped"};function Uk(U){switch(String(U??"")){case"track":return"track";case"identify":case"alias":case"group":return"identity";default:return"screenish"}}function Ik(U){let J=String(U.messageType??"");if(J==="track")return String(U.event??"(unnamed event)");if(J==="page"||J==="screen")return String(U.name??"(unnamed page)");if(J==="group")return`group ${String(U.groupId??"?")}`;if(J==="alias")return`alias ${String(U.previousId??"?")} → ${String(U.userId??"?")}`;return String(U.userId??U.anonymousId??"(anonymous)")}function Xk(U){let J=U.userId===null||U.userId===void 0?"":String(U.userId);if(J!=="")return J;let Q=U.anonymousId===null||U.anonymousId===void 0?"":String(U.anonymousId);return Q===""?"—":`anon:${Q}`}function Rq(U){if(U===null||typeof U!=="object"||Array.isArray(U))return[];return Object.entries(U).sort(([J],[Q])=>J<Q?-1:J>Q?1:0).map(([J,Q])=>({key:J,value:typeof Q==="string"?Q:JSON.stringify(Q)??"null"}))}function Jk(U){let J=String(U??"");return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(J)?J.slice(11,19):"—"}var k$=e4(Pq(),1),Nd=typeof document>"u"||document.querySelector("base[href]")===null?"":new URL(".",document.baseURI).pathname.replace(/\/$/,""),kd=[{key:"events",label:"Accepted"},{key:"dropped",label:"Dropped"}];async function Qk(U){let J=await fetch(`${Nd}/twin/store/${U}`);if(!J.ok)return[];let Q=await J.json();return Array.isArray(Q)?Q:[]}function gd({row:U}){let J=[...Rq(U.properties),...Rq(U.traits)];if(J.length===0)return k$.jsxDEV("div",{className:"chips chips-empty",children:"no properties"},void 0,!1,void 0,this);return k$.jsxDEV("div",{className:"chips",children:J.map((Q)=>k$.jsxDEV("span",{className:"chip",children:[k$.jsxDEV("span",{className:"chip-key",children:Q.key},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"chip-value",children:Q.value},void 0,!1,void 0,this)]},Q.key,!0,void 0,this))},void 0,!1,void 0,this)}function xd({row:U}){let J=Uk(U.messageType);return k$.jsxDEV("li",{className:"event-row","data-message-id":String(U.messageId??""),children:[k$.jsxDEV("div",{className:"event-head",children:[k$.jsxDEV("span",{className:"event-clock",children:Jk(U.receivedAt)},void 0,!1,void 0,this),k$.jsxDEV("span",{className:Cq[J],children:String(U.messageType??"")},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"event-label",children:Ik(U)},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"event-subject",children:Xk(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k$.jsxDEV(gd,{row:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wd({row:U}){return k$.jsxDEV("li",{className:"dropped-row","data-message-id":String(U.messageId??""),children:k$.jsxDEV("div",{className:"event-head",children:[k$.jsxDEV("span",{className:Cq.dropped,children:"dropped"},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"event-label",children:String(U.messageType??"")},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"drop-reason",children:String(U.reason??"unknown")},void 0,!1,void 0,this),String(U.reason??"")==="no_user_anon_id"?null:k$.jsxDEV("span",{className:"drop-reason-twin",title:"This reason is a twin-authored label. Segment prints only `no_user_anon_id`.",children:"twin label"},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"drop-endpoint",children:String(U.endpoint??"")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function fd({rows:U}){if(U.length===0)return k$.jsxDEV("div",{className:"empty",children:"No events yet. Send one and it appears here."},void 0,!1,void 0,this);return k$.jsxDEV("ul",{className:"event-stream",children:U.map((J)=>k$.jsxDEV(xd,{row:J},String(J.messageId),!1,void 0,this))},void 0,!1,void 0,this)}function yd({rows:U}){if(U.length===0)return k$.jsxDEV("div",{className:"empty",children:"Nothing dropped. Every message this source received was attributed."},void 0,!1,void 0,this);return k$.jsxDEV(k$.Fragment,{children:[k$.jsxDEV("p",{className:"stream-note",children:["Segment answers 200 and discards these; the twin records them. Only ",k$.jsxDEV("code",{children:"no_user_anon_id"},void 0,!1,void 0,this)," is a reason Segment itself prints — the rest carry a ",k$.jsxDEV("span",{className:"drop-reason-twin",children:"twin label"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),k$.jsxDEV("ul",{className:"dropped-stream",children:U.map((J)=>k$.jsxDEV(wd,{row:J},String(J.messageId),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ud(){let[U,J]=bY.useState("events"),[Q,O]=bY.useState([]),[X,z]=bY.useState([]);return bY.useEffect(()=>{(async()=>{O(await Qk("events")),z(await Qk("dropped"))})()},[]),k$.jsxDEV("main",{className:"app",children:[k$.jsxDEV("header",{className:"app-header",children:[k$.jsxDEV("h1",{className:"app-title",children:"Source Debugger"},void 0,!1,void 0,this),k$.jsxDEV("span",{className:"counts",children:[k$.jsxDEV("span",{className:"count-accepted","data-count":Q.length,children:[Q.length," accepted"]},void 0,!0,void 0,this),k$.jsxDEV("span",{className:"count-dropped","data-count":X.length,children:[X.length," dropped"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),k$.jsxDEV("nav",{className:"app-nav",children:kd.map((V)=>k$.jsxDEV("button",{className:U===V.key?"nav-item nav-item-active":"nav-item",onClick:()=>J(V.key),children:V.label},V.key,!1,void 0,this))},void 0,!1,void 0,this),U==="events"?k$.jsxDEV(fd,{rows:Q},void 0,!1,void 0,this):k$.jsxDEV(yd,{rows:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Yk=typeof document>"u"?null:document.getElementById("root");if(Yk)Gk.createRoot(Yk).render(k$.jsxDEV(ud,{},void 0,!1,void 0,this));export{Qk as store,gd as PropertyChips,fd as EventStream,xd as EventRow,yd as DroppedStream,wd as DroppedRow};