PageSourceSearch

https://fuels-react-vite.vercel.app/assets/index.e764dbe0.js

js fuels-react-vite.vercel.app collected 2026-10-03 06:58:36 UTC 728,711 bytes, 565 lines download raw bytes

vendor: 8,134 bytes, lines 1-9
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jy(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var V={exports:{}},Ve={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Uu=Symbol.for("react.element"),x3=Symbol.for("react.portal"),_3=Symbol.for("react.fragment"),S3=Symbol.for("react.strict_mode"),T3=Symbol.for("react.profiler"),I3=Symbol.for("react.provider"),M3=Symbol.for("react.context"),N3=Symbol.for("react.forward_ref"),R3=Symbol.for("react.suspense"),O3=Symbol.for("react.memo"),A3=Symbol.for("react.lazy"),nv=Symbol.iterator;function C3(e){return e===null||typeof e!="object"?null:(e=nv&&e[nv]||e["@@iterator"],typeof e=="function"?e:null)}var Xy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zy=Object.assign,eg={};function sa(e,t,n){this.props=e,this.context=t,this.refs=eg,this.updater=n||Xy}sa.prototype.isReactComponent={};sa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tg(){}tg.prototype=sa.prototype;function Uh(e,t,n){this.props=e,this.context=t,this.refs=eg,this.updater=n||Xy}var Vh=Uh.prototype=new tg;Vh.constructor=Uh;Zy(Vh,sa.prototype);Vh.isPureReactComponent=!0;var rv=Array.isArray,ng=Object.prototype.hasOwnProperty,Bh={current:null},rg={key:!0,ref:!0,__self:!0,__source:!0};function ig(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ng.call(t,r)&&!rg.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),d=0;d<a;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Uu,type:e,key:s,ref:o,props:i,_owner:Bh.current}}function D3(e,t){return{$$typeof:Uu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uu}function $3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iv=/\/+/g;function ld(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$3(""+e.key):t.toString(36)}function jl(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Uu:case x3:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ld(o,0):r,rv(i)?(n="",e!=null&&(n=e.replace(iv,"$&/")+"/"),jl(i,t,n,"",function(d){return d})):i!=null&&(qh(i)&&(i=D3(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(iv,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",rv(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ld(s,a);o+=jl(s,t,n,l,i)}else if(l=C3(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ld(s,a++),o+=jl(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function fl(e,t,n){if(e==null)return e;var r=[],i=0;return jl(e,r,"","",function(s){return t.call(n,s,i++)}),r}function k3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dn={current:null},zl={transition:null},P3={ReactCurrentDispatcher:Dn,ReactCurrentBatchConfig:zl,ReactCurrentOwner:Bh};Ve.Children={map:fl,forEach:function(e,t,n){fl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fl(e,function(){t++}),t},toArray:function(e){return fl(e,function(t){return t})||[]},only:function(e){if(!qh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ve.Component=sa;Ve.Fragment=_3;Ve.Profiler=T3;Ve.PureComponent=Uh;Ve.StrictMode=S3;Ve.Suspense=R3;Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P3;Ve.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zy({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Bh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ng.call(t,l)&&!rg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var d=0;d<l;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:Uu,type:e.type,key:i,ref:s,props:r,_owner:o}};Ve.createContext=function(e){return e={$$typeof:M3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I3,_context:e},e.Consumer=e};Ve.createElement=ig;Ve.createFactory=function(e){var t=ig.bind(null,e);return t.type=e,t};Ve.createRef=function(){return{current:null}};Ve.forwardRef=function(e){return{$$typeof:N3,render:e}};Ve.isValidElement=qh;Ve.lazy=function(e){return{$$typeof:A3,_payload:{_status:-1,_result:e},_init:k3}};Ve.memo=function(e,t){return{$$typeof:O3,type:e,compare:t===void 0?null:t}};Ve.startTransition=function(e){var t=zl.transition;zl.transition={};try{e()}finally{zl.transition=t}};Ve.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ve.useCallback=function(e,t){return Dn.current.useCallback(e,t)};Ve.useContext=function(e){return Dn.current.useContext(e)};Ve.useDebugValue=function(){};Ve.useDeferredValue=function(e){return Dn.current.useDeferredValue(e)};Ve.useEffect=function(e,t){return Dn.current.useEffect(e,t)};Ve.useId=function(){return Dn.current.useId()};Ve.useImperativeHandle=function(e,t,n){return Dn.current.useImperativeHandle(e,t,n)};Ve.useInsertionEffect=function(e,t){return Dn.current.useInsertionEffect(e,t)};Ve.useLayoutEffect=function(e,t){return Dn.current.useLayoutEffect(e,t)};Ve.useMemo=function(e,t){return Dn.current.useMemo(e,t)};Ve.useReducer=function(e,t,n){return Dn.current.useReducer(e,t,n)};Ve.useRef=function(e){return Dn.current.useRef(e)};Ve.useState=function(e){return Dn.current.useState(e)};Ve.useSyncExternalStore=function(e,t,n){return Dn.current.useSyncExternalStore(e,t,n)};Ve.useTransition=function(){return Dn.current.useTransition()};Ve.version="18.2.0";(function(e){e.exports=Ve})(V);
vendor: 5,746 bytes, lines 9-25
9const Or=Fh(V.exports);var oa={exports:{}},ir={},sg={exports:{}},og={};/**
10 * @license React
11 * scheduler.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */(function(e){function t(x,g){var c=x.length;x.push(g);e:for(;0<c;){var b=c-1>>>1,h=x[b];if(0<i(h,g))x[b]=g,x[c]=h,c=b;else break e}}function n(x){return x.length===0?null:x[0]}function r(x){if(x.length===0)return null;var g=x[0],c=x.pop();if(c!==g){x[0]=c;e:for(var b=0,h=x.length,S=h>>>1;b<S;){var P=2*(b+1)-1,j=x[P],G=P+1,X=x[G];if(0>i(j,c))G<h&&0>i(X,j)?(x[b]=X,x[G]=c,b=G):(x[b]=j,x[P]=c,b=P);else if(G<h&&0>i(X,c))x[b]=X,x[G]=c,b=G;else break e}}return g}function i(x,g){var c=x.sortIndex-g.sortIndex;return c!==0?c:x.id-g.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],d=[],v=1,y=null,_=3,T=!1,M=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(x){for(var g=n(d);g!==null;){if(g.callback===null)r(d);else if(g.startTime<=x)r(d),g.sortIndex=g.expirationTime,t(l,g);else break;g=n(d)}}function U(x){if(A=!1,C(x),!M)if(n(l)!==null)M=!0,w(B);else{var g=n(d);g!==null&&E(U,g.startTime-x)}}function B(x,g){M=!1,A&&(A=!1,N(q),q=-1),T=!0;var c=_;try{for(C(g),y=n(l);y!==null&&(!(y.expirationTime>g)||x&&!I());){var b=y.callback;if(typeof b=="function"){y.callback=null,_=y.priorityLevel;var h=b(y.expirationTime<=g);g=e.unstable_now(),typeof h=="function"?y.callback=h:y===n(l)&&r(l),C(g)}else r(l);y=n(l)}if(y!==null)var S=!0;else{var P=n(d);P!==null&&E(U,P.startTime-g),S=!1}return S}finally{y=null,_=c,T=!1}}var F=!1,z=null,q=-1,D=5,L=-1;function I(){return!(e.unstable_now()-L<D)}function m(){if(z!==null){var x=e.unstable_now();L=x;var g=!0;try{g=z(!0,x)}finally{g?p():(F=!1,z=null)}}else F=!1}var p;if(typeof R=="function")p=function(){R(m)};else if(typeof MessageChannel<"u"){var u=new MessageChannel,f=u.port2;u.port1.onmessage=m,p=function(){f.postMessage(null)}}else p=function(){k(m,0)};function w(x){z=x,F||(F=!0,p())}function E(x,g){q=k(function(){x(e.unstable_now())},g)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(x){x.callback=null},e.unstable_continueExecution=function(){M||T||(M=!0,w(B))},e.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<x?Math.floor(1e3/x):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(x){switch(_){case 1:case 2:case 3:var g=3;break;default:g=_}var c=_;_=g;try{return x()}finally{_=c}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(x,g){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var c=_;_=x;try{return g()}finally{_=c}},e.unstable_scheduleCallback=function(x,g,c){var b=e.unstable_now();switch(typeof c=="object"&&c!==null?(c=c.delay,c=typeof c=="number"&&0<c?b+c:b):c=b,x){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=c+h,x={id:v++,callback:g,priorityLevel:x,startTime:c,expirationTime:h,sortIndex:-1},c>b?(x.sortIndex=c,t(d,x),n(l)===null&&x===n(d)&&(A?(N(q),q=-1):A=!0,E(U,c-b))):(x.sortIndex=h,t(l,x),M||T||(M=!0,w(B))),x},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(x){var g=_;return function(){var c=_;_=g;try{return x.apply(this,arguments)}finally{_=c}}}})(og);(function(e){e.exports=og})(sg);/**
18 * @license React
19 * react-dom.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var ag=V.exports,tr=sg.exports;function ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ug=new Set,fu={};function Xs(e,t){$o(e,t),$o(e+"Capture",t)}function $o(e,t){for(fu[e]=t,e=0;e<t.length;e++)ug.add(t[e])}var Oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o0=Object.prototype.hasOwnProperty,L3=/^[: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]*$/,sv={},ov={};function F3(e){return o0.call(ov,e)?!0:o0.call(sv,e)?!1:L3.test(e)?ov[e]=!0:(sv[e]=!0,!1)}function U3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V3(e,t,n,r){if(t===null||typeof t>"u"||U3(e,t,n,r))return!0;
vendor: 5,200 bytes, lines 25-26
25if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $n(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var En={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){En[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];En[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){En[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){En[e]=new $n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){En[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){En[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){En[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){En[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){En[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var jh=/[\-:]([a-z])/g;function zh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jh,zh);En[t]=new $n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jh,zh);En[t]=new $n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jh,zh);En[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){En[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});En.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){En[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gh(e,t,n,r){var i=En.hasOwnProperty(t)?En[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V3(t,n,i,r)&&(n=null),r||i===null?F3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var qi=ag.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,dl=Symbol.for("react.element"),lo=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),Qh=Symbol.for("react.strict_mode"),a0=Symbol.for("react.profiler"),lg=Symbol.for("react.provider"),cg=Symbol.for("react.context"),Hh=Symbol.for("react.forward_ref"),u0=Symbol.for("react.suspense"),l0=Symbol.for("react.suspense_list"),Wh=Symbol.for("react.memo"),Gi=Symbol.for("react.lazy"),fg=Symbol.for("react.offscreen"),av=Symbol.iterator;function _a(e){return e===null||typeof e!="object"?null:(e=av&&e[av]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Object.assign,cd;function Pa(e){if(cd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cd=t&&t[1]||""}return`
26`+cd+e}var fd=!1;function dd(e,t){if(!e||fd)return"";fd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}
vendor: 6,742 bytes, lines 26-29
26catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
27`),s=r.stack.split(`
28`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
29`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pa(e):""}function B3(e){switch(e.tag){case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 2:case 15:return e=dd(e.type,!1),e;case 11:return e=dd(e.type.render,!1),e;case 1:return e=dd(e.type,!0),e;default:return""}}function c0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case co:return"Fragment";case lo:return"Portal";case a0:return"Profiler";case Qh:return"StrictMode";case u0:return"Suspense";case l0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cg:return(e.displayName||"Context")+".Consumer";case lg:return(e._context.displayName||"Context")+".Provider";case Hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wh:return t=e.displayName||null,t!==null?t:c0(e.type)||"Memo";case Gi:t=e._payload,e=e._init;try{return c0(e(t))}catch{}}return null}function q3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return c0(t);case 8:return t===Qh?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ds(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j3(e){var t=dg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hl(e){e._valueTracker||(e._valueTracker=j3(e))}function hg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function f0(e,t){var n=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function uv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ds(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pg(e,t){t=t.checked,t!=null&&Gh(e,"checked",t,!1)}function d0(e,t){pg(e,t);var n=ds(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?h0(e,t.type,n):t.hasOwnProperty("defaultValue")&&h0(e,t.type,ds(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function h0(e,t,n){(t!=="number"||cc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var La=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ds(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function p0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ee(91));return qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ee(92));if(La(n)){if(1<n.length)throw Error(ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ds(n)}}function mg(e,t){var n=ds(t.value),r=ds(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function fv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function m0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pl,yg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pl=pl||document.createElement("div"),pl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function du(e,t){if(t){var n=e.firstChild;
vendor: 15,864 bytes, line 29
29if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ha={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},z3=["Webkit","ms","Moz","O"];Object.keys(Ha).forEach(function(e){z3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ha[t]=Ha[e]})});function gg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ha.hasOwnProperty(e)&&Ha[e]?(""+t).trim():t+"px"}function bg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=gg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var G3=qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function v0(e,t){if(t){if(G3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function y0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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}}var g0=null;function Kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var b0=null,Io=null,Mo=null;function dv(e){if(e=qu(e)){if(typeof b0!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=gf(t),b0(e.stateNode,e.type,t))}}function wg(e){Io?Mo?Mo.push(e):Mo=[e]:Io=e}function Eg(){if(Io){var e=Io,t=Mo;if(Mo=Io=null,dv(e),t)for(e=0;e<t.length;e++)dv(t[e])}}function xg(e,t){return e(t)}function _g(){}var hd=!1;function Sg(e,t,n){if(hd)return e(t,n);hd=!0;try{return xg(e,t,n)}finally{hd=!1,(Io!==null||Mo!==null)&&(_g(),Eg())}}function hu(e,t){var n=e.stateNode;if(n===null)return null;var r=gf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ee(231,t,typeof n));return n}var w0=!1;if(Oi)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){w0=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{w0=!1}function Q3(e,t,n,r,i,s,o,a,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(v){this.onError(v)}}var Wa=!1,fc=null,dc=!1,E0=null,H3={onError:function(e){Wa=!0,fc=e}};function W3(e,t,n,r,i,s,o,a,l){Wa=!1,fc=null,Q3.apply(H3,arguments)}function K3(e,t,n,r,i,s,o,a,l){if(W3.apply(this,arguments),Wa){if(Wa){var d=fc;Wa=!1,fc=null}else throw Error(ee(198));dc||(dc=!0,E0=d)}}function Zs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hv(e){if(Zs(e)!==e)throw Error(ee(188))}function Y3(e){var t=e.alternate;if(!t){if(t=Zs(e),t===null)throw Error(ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return hv(i),e;if(s===r)return hv(i),t;s=s.sibling}throw Error(ee(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(ee(189))}}if(n.alternate!==r)throw Error(ee(190))}if(n.tag!==3)throw Error(ee(188));return n.stateNode.current===n?e:t}function Ig(e){return e=Y3(e),e!==null?Mg(e):null}function Mg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mg(e);if(t!==null)return t;e=e.sibling}return null}var Ng=tr.unstable_scheduleCallback,pv=tr.unstable_cancelCallback,J3=tr.unstable_shouldYield,X3=tr.unstable_requestPaint,Kt=tr.unstable_now,Z3=tr.unstable_getCurrentPriorityLevel,Yh=tr.unstable_ImmediatePriority,Rg=tr.unstable_UserBlockingPriority,hc=tr.unstable_NormalPriority,e6=tr.unstable_LowPriority,Og=tr.unstable_IdlePriority,pf=null,Wr=null;function t6(e){if(Wr&&typeof Wr.onCommitFiberRoot=="function")try{Wr.onCommitFiberRoot(pf,e,void 0,(e.current.flags&128)===128)}catch{}}var Pr=Math.clz32?Math.clz32:i6,n6=Math.log,r6=Math.LN2;function i6(e){return e>>>=0,e===0?32:31-(n6(e)/r6|0)|0}var ml=64,vl=4194304;function Fa(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Fa(a):(s&=o,s!==0&&(r=Fa(s)))}else o=n&~i,o!==0?r=Fa(o):s!==0&&(r=Fa(s));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Pr(t),i=1<<n,r|=e[n],t&=~i;return r}function s6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function o6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Pr(s),a=1<<o,l=i[o];l===-1?((a&n)===0||(a&r)!==0)&&(i[o]=s6(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function x0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ag(){var e=ml;return ml<<=1,(ml&4194240)===0&&(ml=64),e}function pd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pr(t),e[t]=n}function a6(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Pr(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Jh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var tt=0;function Cg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Dg,Xh,$g,kg,Pg,_0=!1,yl=[],ns=null,rs=null,is=null,pu=new Map,mu=new Map,Ki=[],u6="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 submit".split(" ");function mv(e,t){switch(e){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":pu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function Ta(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=qu(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function l6(e,t,n,r,i){switch(t){case"focusin":return ns=Ta(ns,e,t,n,r,i),!0;case"dragenter":return rs=Ta(rs,e,t,n,r,i),!0;case"mouseover":return is=Ta(is,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return pu.set(s,Ta(pu.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,mu.set(s,Ta(mu.get(s)||null,e,t,n,r,i)),!0}return!1}function Lg(e){var t=$s(e.target);if(t!==null){var n=Zs(t);if(n!==null){if(t=n.tag,t===13){if(t=Tg(n),t!==null){e.blockedOn=t,Pg(e.priority,function(){$g(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=S0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);g0=r,n.target.dispatchEvent(r),g0=null}else return t=qu(n),t!==null&&Xh(t),e.blockedOn=n,!1;t.shift()}return!0}function vv(e,t,n){Gl(e)&&n.delete(t)}function c6(){_0=!1,ns!==null&&Gl(ns)&&(ns=null),rs!==null&&Gl(rs)&&(rs=null),is!==null&&Gl(is)&&(is=null),pu.forEach(vv),mu.forEach(vv)}function Ia(e,t){e.blockedOn===t&&(e.blockedOn=null,_0||(_0=!0,tr.unstable_scheduleCallback(tr.unstable_NormalPriority,c6)))}function vu(e){function t(i){return Ia(i,e)}if(0<yl.length){Ia(yl[0],e);for(var n=1;n<yl.length;n++){var r=yl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ns!==null&&Ia(ns,e),rs!==null&&Ia(rs,e),is!==null&&Ia(is,e),pu.forEach(t),mu.forEach(t),n=0;n<Ki.length;n++)r=Ki[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ki.length&&(n=Ki[0],n.blockedOn===null);)Lg(n),n.blockedOn===null&&Ki.shift()}var No=qi.ReactCurrentBatchConfig,mc=!0;function f6(e,t,n,r){var i=tt,s=No.transition;No.transition=null;try{tt=1,Zh(e,t,n,r)}finally{tt=i,No.transition=s}}function d6(e,t,n,r){var i=tt,s=No.transition;No.transition=null;try{tt=4,Zh(e,t,n,r)}finally{tt=i,No.transition=s}}function Zh(e,t,n,r){if(mc){var i=S0(e,t,n,r);if(i===null)Sd(e,t,r,vc,n),mv(e,r);else if(l6(i,e,t,n,r))r.stopPropagation();else if(mv(e,r),t&4&&-1<u6.indexOf(e)){for(;i!==null;){var s=qu(i);if(s!==null&&Dg(s),s=S0(e,t,n,r),s===null&&Sd(e,t,r,vc,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Sd(e,t,r,null,n)}}var vc=null;function S0(e,t,n,r){if(vc=null,e=Kh(r),e=$s(e),e!==null)if(t=Zs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vc=e,null}function Fg(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Z3()){case Yh:return 1;case Rg:return 4;case hc:case e6:return 16;case Og:return 536870912;default:return 16}default:return 16}}var Ji=null,ep=null,Ql=null;function Ug(){if(Ql)return Ql;var e,t=ep,n=t.length,r,i="value"in Ji?Ji.value:Ji.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Ql=i.slice(e,1<r?1-r:void 0)}function Hl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gl(){return!0}function yv(){return!1}function sr(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gl:yv,this.isPropagationStopped=yv,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gl)},persist:function(){},isPersistent:gl}),t}var aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tp=sr(aa),Bu=qt({},aa,{view:0,detail:0}),h6=sr(Bu),md,vd,Ma,mf=qt({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:np,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ma&&(Ma&&e.type==="mousemove"?(md=e.screenX-Ma.screenX,vd=e.screenY-Ma.screenY):vd=md=0,Ma=e),md)},movementY:function(e){return"movementY"in e?e.movementY:vd}}),gv=sr(mf),p6=qt({},mf,{dataTransfer:0}),m6=sr(p6),v6=qt({},Bu,{relatedTarget:0}),yd=sr(v6),y6=qt({},aa,{animationName:0,elapsedTime:0,pseudoElement:0}),g6=sr(y6),b6=qt({},aa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w6=sr(b6),E6=qt({},aa,{data:0}),bv=sr(E6),x6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_6={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"},S6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S6[e])?!!t[e]:!1}function np(){return T6}var I6=qt({},Bu,{key:function(e){if(e.key){var t=x6[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,048 bytes, line 29
29return e.type==="keypress"?(e=Hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:np,charCode:function(e){return e.type==="keypress"?Hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M6=sr(I6),N6=qt({},mf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wv=sr(N6),R6=qt({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:np}),O6=sr(R6),A6=qt({},aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),C6=sr(A6),D6=qt({},mf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$6=sr(D6),k6=[9,13,27,32],rp=Oi&&"CompositionEvent"in window,Ka=null;Oi&&"documentMode"in document&&(Ka=document.documentMode);var P6=Oi&&"TextEvent"in window&&!Ka,Vg=Oi&&(!rp||Ka&&8<Ka&&11>=Ka),Ev=String.fromCharCode(32),xv=!1;function Bg(e,t){switch(e){case"keyup":return k6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function L6(e,t){switch(e){case"compositionend":return qg(t);case"keypress":return t.which!==32?null:(xv=!0,Ev);case"textInput":return e=t.data,e===Ev&&xv?null:e;default:return null}}function F6(e,t){if(fo)return e==="compositionend"||!rp&&Bg(e,t)?(e=Ug(),Ql=ep=Ji=null,fo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vg&&t.locale!=="ko"?null:t.data;default:return null}}var U6={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};function _v(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!U6[e.type]:t==="textarea"}function jg(e,t,n,r){wg(r),t=yc(t,"onChange"),0<t.length&&(n=new tp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ya=null,yu=null;function V6(e){eb(e,0)}function vf(e){var t=mo(e);if(hg(t))return e}function B6(e,t){if(e==="change")return t}var zg=!1;if(Oi){var gd;if(Oi){var bd="oninput"in document;if(!bd){var Sv=document.createElement("div");Sv.setAttribute("oninput","return;"),bd=typeof Sv.oninput=="function"}gd=bd}else gd=!1;zg=gd&&(!document.documentMode||9<document.documentMode)}function Tv(){Ya&&(Ya.detachEvent("onpropertychange",Gg),yu=Ya=null)}function Gg(e){if(e.propertyName==="value"&&vf(yu)){var t=[];jg(t,yu,e,Kh(e)),Sg(V6,t)}}function q6(e,t,n){e==="focusin"?(Tv(),Ya=t,yu=n,Ya.attachEvent("onpropertychange",Gg)):e==="focusout"&&Tv()}function j6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vf(yu)}function z6(e,t){if(e==="click")return vf(t)}function G6(e,t){if(e==="input"||e==="change")return vf(t)}function Q6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ur=typeof Object.is=="function"?Object.is:Q6;function gu(e,t){if(Ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!o0.call(t,i)||!Ur(e[i],t[i]))return!1}return!0}function Iv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mv(e,t){var n=Iv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Iv(n)}}function Qg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hg(){for(var e=window,t=cc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cc(e.document)}return t}function ip(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function H6(e){var t=Hg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qg(n.ownerDocument.documentElement,n)){if(r!==null&&ip(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Mv(n,s);var o=Mv(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var W6=Oi&&"documentMode"in document&&11>=document.documentMode,ho=null,T0=null,Ja=null,I0=!1;function Nv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;I0||ho==null||ho!==cc(r)||(r=ho,"selectionStart"in r&&ip(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,507 bytes, line 29
29sNode:r.focusNode,focusOffset:r.focusOffset}),Ja&&gu(Ja,r)||(Ja=r,r=yc(T0,"onSelect"),0<r.length&&(t=new tp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function bl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var po={animationend:bl("Animation","AnimationEnd"),animationiteration:bl("Animation","AnimationIteration"),animationstart:bl("Animation","AnimationStart"),transitionend:bl("Transition","TransitionEnd")},wd={},Wg={};Oi&&(Wg=document.createElement("div").style,"AnimationEvent"in window||(delete po.animationend.animation,delete po.animationiteration.animation,delete po.animationstart.animation),"TransitionEvent"in window||delete po.transitionend.transition);function yf(e){if(wd[e])return wd[e];if(!po[e])return e;var t=po[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wg)return wd[e]=t[n];return e}var Kg=yf("animationend"),Yg=yf("animationiteration"),Jg=yf("animationstart"),Xg=yf("transitionend"),Zg=new Map,Rv="abort auxClick 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(" ");function ys(e,t){Zg.set(e,t),Xs(t,[e])}for(var Ed=0;Ed<Rv.length;Ed++){var xd=Rv[Ed],K6=xd.toLowerCase(),Y6=xd[0].toUpperCase()+xd.slice(1);ys(K6,"on"+Y6)}ys(Kg,"onAnimationEnd");ys(Yg,"onAnimationIteration");ys(Jg,"onAnimationStart");ys("dblclick","onDoubleClick");ys("focusin","onFocus");ys("focusout","onBlur");ys(Xg,"onTransitionEnd");$o("onMouseEnter",["mouseout","mouseover"]);$o("onMouseLeave",["mouseout","mouseover"]);$o("onPointerEnter",["pointerout","pointerover"]);$o("onPointerLeave",["pointerout","pointerover"]);Xs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ua="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(" "),J6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ua));function Ov(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,K3(r,t,void 0,e),e.currentTarget=null}function eb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,d=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Ov(i,a,d),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,d=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Ov(i,a,d),s=l}}}if(dc)throw e=E0,dc=!1,E0=null,e}function Dt(e,t){var n=t[A0];n===void 0&&(n=t[A0]=new Set);var r=e+"__bubble";n.has(r)||(tb(t,e,2,!1),n.add(r))}function _d(e,t,n){var r=0;t&&(r|=4),tb(n,e,r,t)}var wl="_reactListening"+Math.random().toString(36).slice(2);function bu(e){if(!e[wl]){e[wl]=!0,ug.forEach(function(n){n!=="selectionchange"&&(J6.has(n)||_d(n,!1,e),_d(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wl]||(t[wl]=!0,_d("selectionchange",!1,t))}}function tb(e,t,n,r){switch(Fg(t)){case 1:var i=f6;break;case 4:i=d6;break;default:i=Zh}n=i.bind(null,t,n,e),i=void 0,!w0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Sd(e,t,n,r,i){var s=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 13,706 bytes, lines 29-30
29if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=$s(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Sg(function(){var d=s,v=Kh(n),y=[];e:{var _=Zg.get(e);if(_!==void 0){var T=tp,M=e;switch(e){case"keypress":if(Hl(n)===0)break e;case"keydown":case"keyup":T=M6;break;case"focusin":M="focus",T=yd;break;case"focusout":M="blur",T=yd;break;case"beforeblur":case"afterblur":T=yd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=gv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=m6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=O6;break;case Kg:case Yg:case Jg:T=g6;break;case Xg:T=C6;break;case"scroll":T=h6;break;case"wheel":T=$6;break;case"copy":case"cut":case"paste":T=w6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=wv}var A=(t&4)!==0,k=!A&&e==="scroll",N=A?_!==null?_+"Capture":null:_;A=[];for(var R=d,C;R!==null;){C=R;var U=C.stateNode;if(C.tag===5&&U!==null&&(C=U,N!==null&&(U=hu(R,N),U!=null&&A.push(wu(R,U,C)))),k)break;R=R.return}0<A.length&&(_=new T(_,M,null,n,v),y.push({event:_,listeners:A}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",_&&n!==g0&&(M=n.relatedTarget||n.fromElement)&&($s(M)||M[Ai]))break e;if((T||_)&&(_=v.window===v?v:(_=v.ownerDocument)?_.defaultView||_.parentWindow:window,T?(M=n.relatedTarget||n.toElement,T=d,M=M?$s(M):null,M!==null&&(k=Zs(M),M!==k||M.tag!==5&&M.tag!==6)&&(M=null)):(T=null,M=d),T!==M)){if(A=gv,U="onMouseLeave",N="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(A=wv,U="onPointerLeave",N="onPointerEnter",R="pointer"),k=T==null?_:mo(T),C=M==null?_:mo(M),_=new A(U,R+"leave",T,n,v),_.target=k,_.relatedTarget=C,U=null,$s(v)===d&&(A=new A(N,R+"enter",M,n,v),A.target=C,A.relatedTarget=k,U=A),k=U,T&&M)t:{for(A=T,N=M,R=0,C=A;C;C=so(C))R++;for(C=0,U=N;U;U=so(U))C++;for(;0<R-C;)A=so(A),R--;for(;0<C-R;)N=so(N),C--;for(;R--;){if(A===N||N!==null&&A===N.alternate)break t;A=so(A),N=so(N)}A=null}else A=null;T!==null&&Av(y,_,T,A,!1),M!==null&&k!==null&&Av(y,k,M,A,!0)}}e:{if(_=d?mo(d):window,T=_.nodeName&&_.nodeName.toLowerCase(),T==="select"||T==="input"&&_.type==="file")var B=B6;else if(_v(_))if(zg)B=G6;else{B=j6;var F=q6}else(T=_.nodeName)&&T.toLowerCase()==="input"&&(_.type==="checkbox"||_.type==="radio")&&(B=z6);if(B&&(B=B(e,d))){jg(y,B,n,v);break e}F&&F(e,_,d),e==="focusout"&&(F=_._wrapperState)&&F.controlled&&_.type==="number"&&h0(_,"number",_.value)}switch(F=d?mo(d):window,e){case"focusin":(_v(F)||F.contentEditable==="true")&&(ho=F,T0=d,Ja=null);break;case"focusout":Ja=T0=ho=null;break;case"mousedown":I0=!0;break;case"contextmenu":case"mouseup":case"dragend":I0=!1,Nv(y,n,v);break;case"selectionchange":if(W6)break;case"keydown":case"keyup":Nv(y,n,v)}var z;if(rp)e:{switch(e){case"compositionstart":var q="onCompositionStart";break e;case"compositionend":q="onCompositionEnd";break e;case"compositionupdate":q="onCompositionUpdate";break e}q=void 0}else fo?Bg(e,n)&&(q="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(q="onCompositionStart");q&&(Vg&&n.locale!=="ko"&&(fo||q!=="onCompositionStart"?q==="onCompositionEnd"&&fo&&(z=Ug()):(Ji=v,ep="value"in Ji?Ji.value:Ji.textContent,fo=!0)),F=yc(d,q),0<F.length&&(q=new bv(q,e,null,n,v),y.push({event:q,listeners:F}),z?q.data=z:(z=qg(n),z!==null&&(q.data=z)))),(z=P6?L6(e,n):F6(e,n))&&(d=yc(d,"onBeforeInput"),0<d.length&&(v=new bv("onBeforeInput","beforeinput",null,n,v),y.push({event:v,listeners:d}),v.data=z))}eb(y,t)})}function wu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=hu(e,n),s!=null&&r.unshift(wu(e,s,i)),s=hu(e,t),s!=null&&r.push(wu(e,s,i))),e=e.return}return r}function so(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Av(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,d=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&d!==null&&(a=d,i?(l=hu(n,s),l!=null&&o.unshift(wu(n,l,a))):i||(l=hu(n,s),l!=null&&o.push(wu(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var X6=/\r\n?/g,Z6=/\u0000|\uFFFD/g;function Cv(e){return(typeof e=="string"?e:""+e).replace(X6,`
30`).replace(Z6,"")}function El(e,t,n){if(t=Cv(t),Cv(e)!==t&&n)throw Error(ee(425))}function gc(){}var M0=null,N0=null;function R0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var O0=typeof setTimeout=="function"?setTimeout:void 0,eE=typeof clearTimeout=="function"?clearTimeout:void 0,Dv=typeof Promise=="function"?Promise:void 0,tE=typeof queueMicrotask=="function"?queueMicrotask:typeof Dv<"u"?function(e){return Dv.resolve(null).then(e).catch(nE)}:O0;function nE(e){setTimeout(function(){throw e})}function Td(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),vu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);vu(t)}function ss(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $v(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ua=Math.random().toString(36).slice(2),Qr="__reactFiber$"+ua,Eu="__reactProps$"+ua,Ai="__reactContainer$"+ua,A0="__reactEvents$"+ua,rE="__reactListeners$"+ua,iE="__reactHandles$"+ua;function $s(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ai]||n[Qr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$v(e);e!==null;){if(n=e[Qr])return n;e=$v(e)}return t}e=n,n=e.parentNode}return null}function qu(e){return e=e[Qr]||e[Ai],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ee(33))}function gf(e){return e[Eu]||null}var C0=[],vo=-1;function gs(e){return{current:e}}function $t(e){0>vo||(e.current=C0[vo],C0[vo]=null,vo--)}function yt(e,t){vo++,C0[vo]=e.current,e.current=t}var hs={},Mn=gs(hs),qn=gs(!1),zs=hs;function ko(e,t){var n=e.type.contextTypes;if(!n)return hs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jn(e){return e=e.childContextTypes,e!=null}function bc(){$t(qn),$t(Mn)}function kv(e,t,n){if(Mn.current!==hs)throw Error(ee(168));yt(Mn,t),yt(qn,n)}function nb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ee(108,q3(e)||"Unknown",i));return qt({},n,r)}function wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hs,zs=Mn.current,yt(Mn,e),yt(qn,qn.current),!0}function Pv(e,t,n){var r=e.stateNode;if(!r)throw Error(ee(169));n?(e=nb(e,t,zs),r.__reactInternalMemoizedMergedChildContext=e,$t(qn),$t(Mn),yt(Mn,e)):$t(qn),yt(qn,n)}var Si=null,bf=!1,Id=!1;function rb(e){Si===null?Si=[e]:Si.push(e)}function sE(e){bf=!0,rb(e)}function bs(){if(!Id&&Si!==null){Id=!0;var e=0,t=tt;try{var n=Si;for(tt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Si=null,bf=!1}catch(i){throw Si!==null&&(Si=Si.slice(e+1)),Ng(Yh,bs),i}finally{tt=t,Id=!1}}return null}var yo=[],go=0,Ec=null,xc=0,dr=[],hr=0,Gs=null,Ii=1,Mi="";function Os(e,t){yo[go++]=xc,yo[go++]=Ec,Ec=e,xc=t}function ib(e,t,n){dr[hr++]=Ii,dr[hr++]=Mi,dr[hr++]=Gs,Gs=e;var r=Ii;e=Mi;var i=32-Pr(r)-1;r&=~(1<<i),n+=1;var s=32-Pr(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ii=1<<32-Pr(t)+i|n<<i|r,Mi=s+e}else Ii=1<<s|n<<i|r,Mi=e}function sp(e){e.return!==null&&(Os(e,1),ib(e,1,0))}function op(e){for(;e===Ec;)Ec=yo[--go],yo[go]=null,xc=yo[--go],yo[go]=null;for(;e===Gs;)Gs=dr[--hr],dr[hr]=null,Mi=dr[--hr],dr[hr]=null,Ii=dr[--hr],dr[hr]=null}var Zn=null,Jn=null,Ft=!1,$r=null;function sb(e,t){var n=pr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Lv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zn=e,Jn=ss(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zn=e,Jn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gs!==null?{id:Ii,overflow:Mi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Zn=e,Jn=null,!0):!1;default:return!1}}function D0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $0(e){if(Ft){var t=Jn;if(t){var n=t;if(!Lv(e,t)){if(D0(e))throw Error(ee(418));t=ss(n.nextSibling);var r=Zn;t&&Lv(e,t)?sb(r,n):(e.flags=e.flags&-4097|2,Ft=!1,Zn=e)}}else{if(D0(e))throw Error(ee(418));e.flags=e.flags&-4097|2,Ft=!1,Zn=e}}}function Fv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Zn=e}function xl(e){if(e!==Zn)return!1;if(!Ft)return Fv(e),Ft=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!R0(e.type,e.memoizedProps)),t&&(t=Jn)){if(D0(e))throw ob(),Error(ee(418));for(;t;)sb(e,t),t=ss(t.nextSibling)}if(Fv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jn=ss(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jn=null}}else Jn=Zn?ss(e.stateNode.nextSibling):null;return!0}function ob(){for(var e=Jn;e;)e=ss(e.nextSibling)}function Po(){Jn=Zn=null,Ft=!1}function ap(e){$r===null?$r=[e]:$r.push(e)}var oE=qi.ReactCurrentBatchConfig;function Ar(e,t){if(e&&e.defaultProps){t=qt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var _c=gs(null),Sc=null,bo=null,up=null;function lp(){up=bo=Sc=null}function cp(e){var t=_c.current;$t(_c),e._currentValue=t}function k0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ro(e,t){Sc=e,up=bo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Bn=!0),e.firstContext=null)}function gr(e){var t=e._currentValue;if(up!==e)if(e={context:e,memoizedValue:t,next:null},bo===null){if(Sc===null)throw Error(ee(308));bo=e,Sc.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var ks=null;function fp(e){ks===null?ks=[e]:ks.push(e)}function ab(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,fp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ci(e,r)}function Ci(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qi=!1;function dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ub(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function os(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(He&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ci(e,n)}return i=r.interleaved,i===null?(t.next=t,fp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ci(e,n)}function Wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jh(e,n)}}function Uv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tc(e,t,n,r){var i=e.updateQueue;Qi=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,d=l.next;l.next=null,o===null?s=d:o.next=d,o=l;var v=e.alternate;v!==null&&(v=v.updateQueue,a=v.lastBaseUpdate,a!==o&&(a===null?v.firstBaseUpdate=d:a.next=d,v.lastBaseUpdate=l))}if(s!==null){var y=i.baseState;o=0,v=d=l=null,a=s;do{var _=a.lane,T=a.eventTime;if((r&_)===_){v!==null&&(v=v.next={eventTime:T,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var M=e,A=a;switch(_=t,T=n,A.tag){case 1:if(M=A.payload,typeof M=="function"){y=M.call(T,y,_);break e}y=M;break e;
vendor: 5,201 bytes, line 30
30case 3:M.flags=M.flags&-65537|128;case 0:if(M=A.payload,_=typeof M=="function"?M.call(T,y,_):M,_==null)break e;y=qt({},y,_);break e;case 2:Qi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,_=i.effects,_===null?i.effects=[a]:_.push(a))}else T={eventTime:T,lane:_,tag:a.tag,payload:a.payload,callback:a.callback,next:null},v===null?(d=v=T,l=y):v=v.next=T,o|=_;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;_=a,a=_.next,_.next=null,i.lastBaseUpdate=_,i.shared.pending=null}}while(1);if(v===null&&(l=y),i.baseState=l,i.firstBaseUpdate=d,i.lastBaseUpdate=v,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Hs|=o,e.lanes=o,e.memoizedState=y}}function Vv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ee(191,i));i.call(r)}}}var lb=new ag.Component().refs;function P0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:qt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wf={isMounted:function(e){return(e=e._reactInternals)?Zs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),i=us(e),s=Ri(r,i);s.payload=t,n!=null&&(s.callback=n),t=os(e,s,i),t!==null&&(Lr(t,e,i,r),Wl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cn(),i=us(e),s=Ri(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=os(e,s,i),t!==null&&(Lr(t,e,i,r),Wl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),r=us(e),i=Ri(n,r);i.tag=2,t!=null&&(i.callback=t),t=os(e,i,r),t!==null&&(Lr(t,e,r,n),Wl(t,e,r))}};function Bv(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!gu(n,r)||!gu(i,s):!0}function cb(e,t,n){var r=!1,i=hs,s=t.contextType;return typeof s=="object"&&s!==null?s=gr(s):(i=jn(t)?zs:Mn.current,r=t.contextTypes,s=(r=r!=null)?ko(e,i):hs),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function qv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wf.enqueueReplaceState(t,t.state,null)}function L0(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=lb,dp(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=gr(s):(s=jn(t)?zs:Mn.current,i.context=ko(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(P0(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&wf.enqueueReplaceState(i,i.state,null),Tc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Na(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ee(309));var r=n.stateNode}if(!r)throw Error(ee(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===lb&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(ee(284));if(!n._owner)throw Error(ee(290,e))}return e}function _l(e,t){throw e=Object.prototype.toString.call(t),Error(ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jv(e){var t=e._init;return t(e._payload)}function fb(e){function t(N,R){if(e){var C=N.deletions;C===null?(N.deletions=[R],N.flags|=16):C.push(R)}}function n(N,R){if(!e)return null;for(;R!==null;)t(N,R),R=R.sibling;return null}function r(N,R){for(N=new Map;R!==null;)R.key!==null?N.set(R.key,R):N.set(R.index,R),R=R.sibling;return N}function i(N,R){return N=ls(N,R),N.index=0,N.sibling=null,N}function s(N,R,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<R?(N.flags|=2,R):C):(N.flags|=2,R)):(N.flags|=1048576,R)}function o(N){return e&&N.alternate===null&&(N.flags|=2),N}function a(N,R,C,U){return R===null||R.tag!==6?(R=Dd(C,N.mode,U),R.return=N,R):(R=i(R,C),R.return=N,R)}function l(N,R,C,U){var B=C.type;return B===co?v(N,R,C.props.children,U,C.key):R!==null&&(R.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Gi&&jv(B)===R.type)?(U=i(R,C.props),U.ref=Na(N,R,C),U.return=N,U):(U=ec(C.type,C.key,C.props,null,N.mode,U),U.ref=Na(N,R,C),U.return=N,U)}function d(N,R,C,U){return R===null||R.tag!==4||R.stateNode.containerInfo!==C.containerInfo||R.stateNode.implementation!==C.implementation?(R=$d(C,N.mode,U),R.return=N,R):(R=i(R,C.children||[]),R.return=N,R)}function v(N,R,C,U,B){return R===null||R.tag!==7?(R=Vs(C,N.mode,U,B),R.return=N,R):(R=i(R,C),R.return=N,R)}
vendor: 16,783 bytes, lines 30-32
30function y(N,R,C){if(typeof R=="string"&&R!==""||typeof R=="number")return R=Dd(""+R,N.mode,C),R.return=N,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case dl:return C=ec(R.type,R.key,R.props,null,N.mode,C),C.ref=Na(N,null,R),C.return=N,C;case lo:return R=$d(R,N.mode,C),R.return=N,R;case Gi:var U=R._init;return y(N,U(R._payload),C)}if(La(R)||_a(R))return R=Vs(R,N.mode,C,null),R.return=N,R;_l(N,R)}return null}function _(N,R,C,U){var B=R!==null?R.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return B!==null?null:a(N,R,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case dl:return C.key===B?l(N,R,C,U):null;case lo:return C.key===B?d(N,R,C,U):null;case Gi:return B=C._init,_(N,R,B(C._payload),U)}if(La(C)||_a(C))return B!==null?null:v(N,R,C,U,null);_l(N,C)}return null}function T(N,R,C,U,B){if(typeof U=="string"&&U!==""||typeof U=="number")return N=N.get(C)||null,a(R,N,""+U,B);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case dl:return N=N.get(U.key===null?C:U.key)||null,l(R,N,U,B);case lo:return N=N.get(U.key===null?C:U.key)||null,d(R,N,U,B);case Gi:var F=U._init;return T(N,R,C,F(U._payload),B)}if(La(U)||_a(U))return N=N.get(C)||null,v(R,N,U,B,null);_l(R,U)}return null}function M(N,R,C,U){for(var B=null,F=null,z=R,q=R=0,D=null;z!==null&&q<C.length;q++){z.index>q?(D=z,z=null):D=z.sibling;var L=_(N,z,C[q],U);if(L===null){z===null&&(z=D);break}e&&z&&L.alternate===null&&t(N,z),R=s(L,R,q),F===null?B=L:F.sibling=L,F=L,z=D}if(q===C.length)return n(N,z),Ft&&Os(N,q),B;if(z===null){for(;q<C.length;q++)z=y(N,C[q],U),z!==null&&(R=s(z,R,q),F===null?B=z:F.sibling=z,F=z);return Ft&&Os(N,q),B}for(z=r(N,z);q<C.length;q++)D=T(z,N,q,C[q],U),D!==null&&(e&&D.alternate!==null&&z.delete(D.key===null?q:D.key),R=s(D,R,q),F===null?B=D:F.sibling=D,F=D);return e&&z.forEach(function(I){return t(N,I)}),Ft&&Os(N,q),B}function A(N,R,C,U){var B=_a(C);if(typeof B!="function")throw Error(ee(150));if(C=B.call(C),C==null)throw Error(ee(151));for(var F=B=null,z=R,q=R=0,D=null,L=C.next();z!==null&&!L.done;q++,L=C.next()){z.index>q?(D=z,z=null):D=z.sibling;var I=_(N,z,L.value,U);if(I===null){z===null&&(z=D);break}e&&z&&I.alternate===null&&t(N,z),R=s(I,R,q),F===null?B=I:F.sibling=I,F=I,z=D}if(L.done)return n(N,z),Ft&&Os(N,q),B;if(z===null){for(;!L.done;q++,L=C.next())L=y(N,L.value,U),L!==null&&(R=s(L,R,q),F===null?B=L:F.sibling=L,F=L);return Ft&&Os(N,q),B}for(z=r(N,z);!L.done;q++,L=C.next())L=T(z,N,q,L.value,U),L!==null&&(e&&L.alternate!==null&&z.delete(L.key===null?q:L.key),R=s(L,R,q),F===null?B=L:F.sibling=L,F=L);return e&&z.forEach(function(m){return t(N,m)}),Ft&&Os(N,q),B}function k(N,R,C,U){if(typeof C=="object"&&C!==null&&C.type===co&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case dl:e:{for(var B=C.key,F=R;F!==null;){if(F.key===B){if(B=C.type,B===co){if(F.tag===7){n(N,F.sibling),R=i(F,C.props.children),R.return=N,N=R;break e}}else if(F.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Gi&&jv(B)===F.type){n(N,F.sibling),R=i(F,C.props),R.ref=Na(N,F,C),R.return=N,N=R;break e}n(N,F);break}else t(N,F);F=F.sibling}C.type===co?(R=Vs(C.props.children,N.mode,U,C.key),R.return=N,N=R):(U=ec(C.type,C.key,C.props,null,N.mode,U),U.ref=Na(N,R,C),U.return=N,N=U)}return o(N);case lo:e:{for(F=C.key;R!==null;){if(R.key===F)if(R.tag===4&&R.stateNode.containerInfo===C.containerInfo&&R.stateNode.implementation===C.implementation){n(N,R.sibling),R=i(R,C.children||[]),R.return=N,N=R;break e}else{n(N,R);break}else t(N,R);R=R.sibling}R=$d(C,N.mode,U),R.return=N,N=R}return o(N);case Gi:return F=C._init,k(N,R,F(C._payload),U)}if(La(C))return M(N,R,C,U);if(_a(C))return A(N,R,C,U);_l(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,R!==null&&R.tag===6?(n(N,R.sibling),R=i(R,C),R.return=N,N=R):(n(N,R),R=Dd(C,N.mode,U),R.return=N,N=R),o(N)):n(N,R)}return k}var Lo=fb(!0),db=fb(!1),ju={},Kr=gs(ju),xu=gs(ju),_u=gs(ju);function Ps(e){if(e===ju)throw Error(ee(174));return e}function hp(e,t){switch(yt(_u,t),yt(xu,e),yt(Kr,ju),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:m0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=m0(t,e)}$t(Kr),yt(Kr,t)}function Fo(){$t(Kr),$t(xu),$t(_u)}function hb(e){Ps(_u.current);var t=Ps(Kr.current),n=m0(t,e.type);t!==n&&(yt(xu,e),yt(Kr,n))}function pp(e){xu.current===e&&($t(Kr),$t(xu))}var Vt=gs(0);function Ic(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Md=[];function mp(){for(var e=0;e<Md.length;e++)Md[e]._workInProgressVersionPrimary=null;Md.length=0}var Kl=qi.ReactCurrentDispatcher,Nd=qi.ReactCurrentBatchConfig,Qs=0,Bt=null,nn=null,fn=null,Mc=!1,Xa=!1,Su=0,aE=0;function _n(){throw Error(ee(321))}function vp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ur(e[n],t[n]))return!1;return!0}function yp(e,t,n,r,i,s){if(Qs=s,Bt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kl.current=e===null||e.memoizedState===null?fE:dE,e=n(r,i),Xa){s=0;do{if(Xa=!1,Su=0,25<=s)throw Error(ee(301));s+=1,fn=nn=null,t.updateQueue=null,Kl.current=hE,e=n(r,i)}while(Xa)}if(Kl.current=Nc,t=nn!==null&&nn.next!==null,Qs=0,fn=nn=Bt=null,Mc=!1,t)throw Error(ee(300));return e}function gp(){var e=Su!==0;return Su=0,e}function Gr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?Bt.memoizedState=fn=e:fn=fn.next=e,fn}function br(){if(nn===null){var e=Bt.alternate;e=e!==null?e.memoizedState:null}else e=nn.next;var t=fn===null?Bt.memoizedState:fn.next;if(t!==null)fn=t,nn=e;else{if(e===null)throw Error(ee(310));nn=e,e={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},fn===null?Bt.memoizedState=fn=e:fn=fn.next=e}return fn}function Tu(e,t){return typeof t=="function"?t(e):t}function Rd(e){var t=br(),n=t.queue;if(n===null)throw Error(ee(311));n.lastRenderedReducer=e;var r=nn,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,d=s;do{var v=d.lane;if((Qs&v)===v)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var y={lane:v,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(a=l=y,o=r):l=l.next=y,Bt.lanes|=v,Hs|=v}d=d.next}while(d!==null&&d!==s);l===null?o=r:l.next=a,Ur(r,t.memoizedState)||(Bn=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Bt.lanes|=s,Hs|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Od(e){var t=br(),n=t.queue;if(n===null)throw Error(ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ur(s,t.memoizedState)||(Bn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function pb(){}function mb(e,t){var n=Bt,r=br(),i=t(),s=!Ur(r.memoizedState,i);if(s&&(r.memoizedState=i,Bn=!0),r=r.queue,bp(gb.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||fn!==null&&fn.memoizedState.tag&1){if(n.flags|=2048,Iu(9,yb.bind(null,n,r,i,t),void 0,null),dn===null)throw Error(ee(349));(Qs&30)!==0||vb(n,t,i)}return i}function vb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yb(e,t,n,r){t.value=n,t.getSnapshot=r,bb(t)&&wb(e)}function gb(e,t,n){return n(function(){bb(t)&&wb(e)})}function bb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ur(e,n)}catch{return!0}}function wb(e){var t=Ci(e,1);t!==null&&Lr(t,e,1,-1)}function zv(e){var t=Gr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tu,lastRenderedState:e},t.queue=e,e=e.dispatch=cE.bind(null,Bt,e),[t.memoizedState,e]}function Iu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Eb(){return br().memoizedState}function Yl(e,t,n,r){var i=Gr();Bt.flags|=e,i.memoizedState=Iu(1|t,n,void 0,r===void 0?null:r)}function Ef(e,t,n,r){var i=br();r=r===void 0?null:r;var s=void 0;if(nn!==null){var o=nn.memoizedState;if(s=o.destroy,r!==null&&vp(r,o.deps)){i.memoizedState=Iu(t,n,s,r);return}}Bt.flags|=e,i.memoizedState=Iu(1|t,n,s,r)}function Gv(e,t){return Yl(8390656,8,e,t)}function bp(e,t){return Ef(2048,8,e,t)}function xb(e,t){return Ef(4,2,e,t)}function _b(e,t){return Ef(4,4,e,t)}function Sb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Tb(e,t,n){return n=n!=null?n.concat([e]):null,Ef(4,4,Sb.bind(null,t,e),n)}function wp(){}function Ib(e,t){var n=br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mb(e,t){var n=br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Nb(e,t,n){return(Qs&21)===0?(e.baseState&&(e.baseState=!1,Bn=!0),e.memoizedState=n):(Ur(n,t)||(n=Ag(),Bt.lanes|=n,Hs|=n,e.baseState=!0),t)}function uE(e,t){var n=tt;tt=n!==0&&4>n?n:4,e(!0);var r=Nd.transition;Nd.transition={};try{e(!1),t()}finally{tt=n,Nd.transition=r}}function Rb(){return br().memoizedState}function lE(e,t,n){var r=us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ob(e))Ab(t,n);else if(n=ab(e,t,n,r),n!==null){var i=Cn();Lr(n,e,r,i),Cb(n,t,r)}}function cE(e,t,n){var r=us(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ob(e))Ab(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ur(a,o)){var l=t.interleaved;l===null?(i.next=i,fp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ab(e,t,i,r),n!==null&&(i=Cn(),Lr(n,e,r,i),Cb(n,t,r))}}function Ob(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function Ab(e,t){Xa=Mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cb(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jh(e,n)}}var Nc={readContext:gr,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useInsertionEffect:_n,useLayoutEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,useState:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useMutableSource:_n,useSyncExternalStore:_n,useId:_n,unstable_isNewReconciler:!1},fE={readContext:gr,useCallback:function(e,t){return Gr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:Gv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,Sb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=Gr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lE.bind(null,Bt,e),[r.memoizedState,e]},useRef:function(e){var t=Gr();return e={current:e},t.memoizedState=e},useState:zv,useDebugValue:wp,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=zv(!1),t=e[0];return e=uE.bind(null,e[1]),Gr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bt,i=Gr();if(Ft){if(n===void 0)throw Error(ee(407));n=n()}else{if(n=t(),dn===null)throw Error(ee(349));(Qs&30)!==0||vb(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Gv(gb.bind(null,r,s,e),[e]),r.flags|=2048,Iu(9,yb.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Gr(),t=dn.identifierPrefix;if(Ft){var n=Mi,r=Ii;n=(r&~(1<<32-Pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Su++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=aE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dE={readContext:gr,useCallback:Ib,useContext:gr,useEffect:bp,useImperativeHandle:Tb,useInsertionEffect:xb,useLayoutEffect:_b,useMemo:Mb,useReducer:Rd,useRef:Eb,useState:function(){return Rd(Tu)},useDebugValue:wp,useDeferredValue:function(e){var t=br();return Nb(t,nn.memoizedState,e)},useTransition:function(){var e=Rd(Tu)[0],t=br().memoizedState;return[e,t]},useMutableSource:pb,useSyncExternalStore:mb,useId:Rb,unstable_isNewReconciler:!1},hE={readContext:gr,useCallback:Ib,useContext:gr,useEffect:bp,useImperativeHandle:Tb,useInsertionEffect:xb,useLayoutEffect:_b,useMemo:Mb,useReducer:Od,useRef:Eb,useState:function(){return Od(Tu)},useDebugValue:wp,useDeferredValue:function(e){var t=br();return nn===null?t.memoizedState=e:Nb(t,nn.memoizedState,e)},useTransition:function(){var e=Od(Tu)[0],t=br().memoizedState;return[e,t]},useMutableSource:pb,useSyncExternalStore:mb,useId:Rb,unstable_isNewReconciler:!1};function Uo(e,t){try{var n="",r=t;do n+=B3(r),r=r.return;while(r);var i=n}catch(s){i=`
31Error generating stack: `+s.message+`
32`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ad(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function F0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pE=typeof WeakMap=="function"?WeakMap:Map;function Db(e,t,n){n=Ri(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oc||(Oc=!0,W0=r),F0(e,t)},n}function $b(e,t,n){n=Ri(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){F0(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){F0(e,t),typeof r!="function"&&(as===null?as=new Set([this]):as.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Qv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pE;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=NE.bind(null,e,t,n),t.then(e,e))}function Hv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wv(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ri(-1,1),t.tag=2,os(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var mE=qi.ReactCurrentOwner,Bn=!1;function On(e,t,n,r){t.child=e===null?db(t,null,n,r):Lo(t,e.child,n,r)}function Kv(e,t,n,r,i){n=n.render;var s=t.ref;return Ro(t,i),r=yp(e,t,n,r,s,i),n=gp(),e!==null&&!Bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(Ft&&n&&sp(t),t.flags|=1,On(e,t,r,i),t.child)}function Yv(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Np(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,kb(e,t,s,r,i)):(e=ec(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,(e.lanes&i)===0){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:gu,n(o,r)&&e.ref===t.ref)return Di(e,t,i)}return t.flags|=1,e=ls(s,r),e.ref=t.ref,e.return=t,t.child=e}function kb(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(gu(s,r)&&e.ref===t.ref)if(Bn=!1,t.pendingProps=r=s,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Bn=!0);else return t.lanes=e.lanes,Di(e,t,i)}return U0(e,t,n,r,i)}function Pb(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Eo,Wn),Wn|=n;else{if((n&1073741824)===0)return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,yt(Eo,Wn),Wn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,yt(Eo,Wn),Wn|=r}
vendor: 15,700 bytes, line 32
32else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,yt(Eo,Wn),Wn|=r;return On(e,t,i,n),t.child}function Lb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function U0(e,t,n,r,i){var s=jn(n)?zs:Mn.current;return s=ko(t,s),Ro(t,i),n=yp(e,t,n,r,s,i),r=gp(),e!==null&&!Bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(Ft&&r&&sp(t),t.flags|=1,On(e,t,n,i),t.child)}function Jv(e,t,n,r,i){if(jn(n)){var s=!0;wc(t)}else s=!1;if(Ro(t,i),t.stateNode===null)Jl(e,t),cb(t,n,r),L0(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=gr(d):(d=jn(n)?zs:Mn.current,d=ko(t,d));var v=n.getDerivedStateFromProps,y=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==d)&&qv(t,o,r,d),Qi=!1;var _=t.memoizedState;o.state=_,Tc(t,r,o,i),l=t.memoizedState,a!==r||_!==l||qn.current||Qi?(typeof v=="function"&&(P0(t,n,v,r),l=t.memoizedState),(a=Qi||Bv(t,n,a,r,_,l,d))?(y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ub(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Ar(t.type,a),o.props=d,y=t.pendingProps,_=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=gr(l):(l=jn(n)?zs:Mn.current,l=ko(t,l));var T=n.getDerivedStateFromProps;(v=typeof T=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==y||_!==l)&&qv(t,o,r,l),Qi=!1,_=t.memoizedState,o.state=_,Tc(t,r,o,i);var M=t.memoizedState;a!==y||_!==M||qn.current||Qi?(typeof T=="function"&&(P0(t,n,T,r),M=t.memoizedState),(d=Qi||Bv(t,n,d,r,_,M,l)||!1)?(v||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,M,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,M,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=M),o.props=r,o.state=M,o.context=l,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),r=!1)}return V0(e,t,n,r,s,i)}function V0(e,t,n,r,i,s){Lb(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Pv(t,n,!1),Di(e,t,s);r=t.stateNode,mE.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Lo(t,e.child,null,s),t.child=Lo(t,null,a,s)):On(e,t,a,s),t.memoizedState=r.state,i&&Pv(t,n,!0),t.child}function Fb(e){var t=e.stateNode;t.pendingContext?kv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kv(e,t.context,!1),hp(e,t.containerInfo)}function Xv(e,t,n,r,i){return Po(),ap(i),t.flags|=256,On(e,t,n,r),t.child}var B0={dehydrated:null,treeContext:null,retryLane:0};function q0(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ub(e,t,n){var r=t.pendingProps,i=Vt.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),yt(Vt,i&1),e===null)return $0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},(r&1)===0&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Sf(o,r,0,null),e=Vs(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=q0(n),t.memoizedState=B0,e):Ep(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return vE(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ls(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ls(a,s):(s=Vs(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?q0(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=B0,r}return s=e.child,e=s.sibling,r=ls(s,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ep(e,t){return t=Sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sl(e,t,n,r){return r!==null&&ap(r),Lo(t,e.child,null,n),e=Ep(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vE(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Ad(Error(ee(422))),Sl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Sf({mode:"visible",children:r.children},i,0,null),s=Vs(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&Lo(t,e.child,null,o),t.child.memoizedState=q0(o),t.memoizedState=B0,s);if((t.mode&1)===0)return Sl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(ee(419)),r=Ad(s,r,void 0),Sl(e,t,o,r)}if(a=(o&e.childLanes)!==0,Bn||a){if(r=dn,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|o))!==0?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ci(e,i),Lr(r,e,i,-1))}return Mp(),r=Ad(Error(ee(421))),Sl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=RE.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Jn=ss(i.nextSibling),Zn=t,Ft=!0,$r=null,e!==null&&(dr[hr++]=Ii,dr[hr++]=Mi,dr[hr++]=Gs,Ii=e.id,Mi=e.overflow,Gs=t),t=Ep(t,r.children),t.flags|=4096,t)}function Zv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),k0(e.return,t,n)}function Cd(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Vb(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(On(e,t,r.children,n),r=Vt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zv(e,n,t);else if(e.tag===19)Zv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yt(Vt,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ic(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cd(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ic(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cd(t,!0,n,null,s);break;case"together":Cd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hs|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(ee(153));if(t.child!==null){for(e=t.child,n=ls(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ls(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yE(e,t,n){switch(t.tag){case 3:Fb(t),Po();break;case 5:hb(t);break;case 1:jn(t.type)&&wc(t);break;case 4:hp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;yt(_c,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(yt(Vt,Vt.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Ub(e,t,n):(yt(Vt,Vt.current&1),e=Di(e,t,n),e!==null?e.sibling:null);yt(Vt,Vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Vb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),yt(Vt,Vt.current),r)break;return null;case 22:case 23:return t.lanes=0,Pb(e,t,n)}return Di(e,t,n)}var Bb,j0,qb,jb;Bb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};j0=function(){};qb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ps(Kr.current);var s=null;switch(n){case"input":i=f0(e,i),r=f0(e,r),s=[];break;case"select":i=qt({},i,{value:void 0}),r=qt({},r,{value:void 0}),s=[];break;case"textarea":i=p0(e,i),r=p0(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gc)}v0(n,r);var o;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var a=i[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(fu.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var l=r[d];if(a=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&l!==a&&(l!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(d,n)),n=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(fu.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Dt("scroll",e),s||a===l||(s=[])):(s=s||[]).push(d,l))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};jb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ra(e,t){if(!Ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gE(e,t,n){var r=t.pendingProps;switch(op(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sn(t),null;case 1:return jn(t.type)&&bc(),Sn(t),null;case 3:return r=t.stateNode,Fo(),$t(qn),$t(Mn),mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$r!==null&&(J0($r),$r=null))),j0(e,t),Sn(t),null;case 5:pp(t);var i=Ps(_u.current);if(n=t.type,e!==null&&t.stateNode!=null)qb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ee(166));return Sn(t),null}if(e=Ps(Kr.current),xl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[Eu]=s,e=(t.mode&1)!==0,n){case"dialog":Dt("cancel",r),Dt("close",r);break;case"iframe":case"object":case"embed":Dt("load",r);break;case"video":case"audio":for(i=0;i<Ua.length;i++)Dt(Ua[i],r);break;case"source":Dt("error",r);break;case"img":case"image":case"link":Dt("error",r),Dt("load",r);break;case"details":Dt("toggle",r);break;case"input":uv(r,s),Dt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Dt("invalid",r);break;case"textarea":cv(r,s),Dt("invalid",r)}v0(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&El(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&El(r.textContent,a,e),i=["children",""+a]):fu.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Dt("scroll",r)}switch(n){case"input":hl(r),lv(r,s,!0);break;case"textarea":hl(r),fv(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=gc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qr]=t,e[Eu]=r,Bb(e,t,!1,!1),t.stateNode=e;e:{switch(o=y0(n,r),n){case"dialog":Dt("cancel",e),Dt("close",e),i=r;break;case"iframe":case"object":case"embed":Dt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ua.length;i++)Dt(Ua[i],e);i=r;break;case"source":Dt("error",e),i=r;break;case"img":case"image":case"link":Dt("error",e),Dt("load",e),i=r;break;case"details":Dt("toggle",e),i=r;break;case"input":uv(e,r),i=f0(e,r),Dt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=qt({},r,{value:void 0}),Dt("invalid",e);break;case"textarea":cv(e,r),i=p0(e,r),Dt("invalid",e);break;default:i=r}v0(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?bg(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yg(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&du(e,l):typeof l=="number"&&du(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(fu.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Dt("scroll",e):l!=null&&Gh(e,s,l,o))}switch(n){case"input":hl(e),lv(e,r,!1);break;case"textarea":hl(e),fv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ds(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?To(e,!!r.multiple,s,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 21,896 bytes, line 32
32return Sn(t),null;case 6:if(e&&t.stateNode!=null)jb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ee(166));if(n=Ps(_u.current),Ps(Kr.current),xl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,(s=r.nodeValue!==n)&&(e=Zn,e!==null))switch(e.tag){case 3:El(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&El(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Qr]=t,t.stateNode=r}return Sn(t),null;case 13:if($t(Vt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ft&&Jn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ob(),Po(),t.flags|=98560,s=!1;else if(s=xl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(ee(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(ee(317));s[Qr]=t}else Po(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Sn(t),s=!1}else $r!==null&&(J0($r),$r=null),s=!0;if(!s)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Vt.current&1)!==0?on===0&&(on=3):Mp())),t.updateQueue!==null&&(t.flags|=4),Sn(t),null);case 4:return Fo(),j0(e,t),e===null&&bu(t.stateNode.containerInfo),Sn(t),null;case 10:return cp(t.type._context),Sn(t),null;case 17:return jn(t.type)&&bc(),Sn(t),null;case 19:if($t(Vt),s=t.memoizedState,s===null)return Sn(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ra(s,!1);else{if(on!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ic(e),o!==null){for(t.flags|=128,Ra(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return yt(Vt,Vt.current&1|2),t.child}e=e.sibling}s.tail!==null&&Kt()>Vo&&(t.flags|=128,r=!0,Ra(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ic(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ra(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ft)return Sn(t),null}else 2*Kt()-s.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,Ra(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Kt(),t.sibling=null,n=Vt.current,yt(Vt,r?n&1|2:n&1),t):(Sn(t),null);case 22:case 23:return Ip(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Wn&1073741824)!==0&&(Sn(t),t.subtreeFlags&6&&(t.flags|=8192)):Sn(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function bE(e,t){switch(op(t),t.tag){case 1:return jn(t.type)&&bc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fo(),$t(qn),$t(Mn),mp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return pp(t),null;case 13:if($t(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));Po()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Vt),null;case 4:return Fo(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Ip(),null;case 24:return null;default:return null}}var Tl=!1,Tn=!1,wE=typeof WeakSet=="function"?WeakSet:Set,se=null;function wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jt(e,t,r)}else n.current=null}function z0(e,t,n){try{n()}catch(r){jt(e,t,r)}}var e1=!1;function EE(e,t){if(M0=mc,e=Hg(),ip(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,d=0,v=0,y=e,_=null;t:for(;;){for(var T;y!==n||i!==0&&y.nodeType!==3||(a=o+i),y!==s||r!==0&&y.nodeType!==3||(l=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(T=y.firstChild)!==null;)_=y,y=T;for(;;){if(y===e)break t;if(_===n&&++d===i&&(a=o),_===s&&++v===r&&(l=o),(T=y.nextSibling)!==null)break;y=_,_=y.parentNode}y=T}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(N0={focusedElem:e,selectionRange:n},mc=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var M=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var A=M.memoizedProps,k=M.memoizedState,N=t.stateNode,R=N.getSnapshotBeforeUpdate(t.elementType===t.type?A:Ar(t.type,A),k);N.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(U){jt(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return M=e1,e1=!1,M}function Za(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&z0(t,n,s)}i=i.next}while(i!==r)}}function xf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function G0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zb(e){var t=e.alternate;t!==null&&(e.alternate=null,zb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qr],delete t[Eu],delete t[A0],delete t[rE],delete t[iE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gb(e){return e.tag===5||e.tag===3||e.tag===4}function t1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Q0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gc));else if(r!==4&&(e=e.child,e!==null))for(Q0(e,t,n),e=e.sibling;e!==null;)Q0(e,t,n),e=e.sibling}function H0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(H0(e,t,n),e=e.sibling;e!==null;)H0(e,t,n),e=e.sibling}var vn=null,Dr=!1;function ji(e,t,n){for(n=n.child;n!==null;)Qb(e,t,n),n=n.sibling}function Qb(e,t,n){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(pf,n)}catch{}switch(n.tag){case 5:Tn||wo(n,t);case 6:var r=vn,i=Dr;vn=null,ji(e,t,n),vn=r,Dr=i,vn!==null&&(Dr?(e=vn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vn.removeChild(n.stateNode));break;case 18:vn!==null&&(Dr?(e=vn,n=n.stateNode,e.nodeType===8?Td(e.parentNode,n):e.nodeType===1&&Td(e,n),vu(e)):Td(vn,n.stateNode));break;case 4:r=vn,i=Dr,vn=n.stateNode.containerInfo,Dr=!0,ji(e,t,n),vn=r,Dr=i;break;case 0:case 11:case 14:case 15:if(!Tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&((s&2)!==0||(s&4)!==0)&&z0(n,t,o),i=i.next}while(i!==r)}ji(e,t,n);break;case 1:if(!Tn&&(wo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){jt(n,t,a)}ji(e,t,n);break;case 21:ji(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,ji(e,t,n),Tn=r):ji(e,t,n);break;default:ji(e,t,n)}}function n1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wE),t.forEach(function(r){var i=OE.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:vn=a.stateNode,Dr=!1;break e;case 3:vn=a.stateNode.containerInfo,Dr=!0;break e;case 4:vn=a.stateNode.containerInfo,Dr=!0;break e}a=a.return}if(vn===null)throw Error(ee(160));Qb(s,o,i),vn=null,Dr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(d){jt(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hb(t,e),t=t.sibling}function Hb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mr(t,e),zr(e),r&4){try{Za(3,e,e.return),xf(3,e)}catch(A){jt(e,e.return,A)}try{Za(5,e,e.return)}catch(A){jt(e,e.return,A)}}break;case 1:Mr(t,e),zr(e),r&512&&n!==null&&wo(n,n.return);break;case 5:if(Mr(t,e),zr(e),r&512&&n!==null&&wo(n,n.return),e.flags&32){var i=e.stateNode;try{du(i,"")}catch(A){jt(e,e.return,A)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&pg(i,s),y0(a,o);var d=y0(a,s);for(o=0;o<l.length;o+=2){var v=l[o],y=l[o+1];v==="style"?bg(i,y):v==="dangerouslySetInnerHTML"?yg(i,y):v==="children"?du(i,y):Gh(i,v,y,d)}switch(a){case"input":d0(i,s);break;case"textarea":mg(i,s);break;case"select":var _=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var T=s.value;T!=null?To(i,!!s.multiple,T,!1):_!==!!s.multiple&&(s.defaultValue!=null?To(i,!!s.multiple,s.defaultValue,!0):To(i,!!s.multiple,s.multiple?[]:"",!1))}i[Eu]=s}catch(A){jt(e,e.return,A)}}break;case 6:if(Mr(t,e),zr(e),r&4){if(e.stateNode===null)throw Error(ee(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(A){jt(e,e.return,A)}}break;case 3:if(Mr(t,e),zr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vu(t.containerInfo)}catch(A){jt(e,e.return,A)}break;case 4:Mr(t,e),zr(e);break;case 13:Mr(t,e),zr(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Sp=Kt())),r&4&&n1(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(Tn=(d=Tn)||v,Mr(t,e),Tn=d):Mr(t,e),zr(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!v&&(e.mode&1)!==0)for(se=e,v=e.child;v!==null;){for(y=se=v;se!==null;){switch(_=se,T=_.child,_.tag){case 0:case 11:case 14:case 15:Za(4,_,_.return);break;case 1:wo(_,_.return);var M=_.stateNode;if(typeof M.componentWillUnmount=="function"){r=_,n=_.return;try{t=r,M.props=t.memoizedProps,M.state=t.memoizedState,M.componentWillUnmount()}catch(A){jt(r,n,A)}}break;case 5:wo(_,_.return);break;case 22:if(_.memoizedState!==null){i1(y);continue}}T!==null?(T.return=_,se=T):i1(y)}v=v.sibling}e:for(v=null,y=e;;){if(y.tag===5){if(v===null){v=y;try{i=y.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=y.stateNode,l=y.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=gg("display",o))}catch(A){jt(e,e.return,A)}}}else if(y.tag===6){if(v===null)try{y.stateNode.nodeValue=d?"":y.memoizedProps}catch(A){jt(e,e.return,A)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;v===y&&(v=null),y=y.return}v===y&&(v=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:Mr(t,e),zr(e),r&4&&n1(e);break;case 21:break;default:Mr(t,e),zr(e)}}function zr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gb(n)){var r=n;break e}n=n.return}throw Error(ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(du(i,""),r.flags&=-33);var s=t1(e);H0(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=t1(e);Q0(e,a,o);break;default:throw Error(ee(161))}}catch(l){jt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xE(e,t,n){se=e,Wb(e)}function Wb(e,t,n){for(var r=(e.mode&1)!==0;se!==null;){var i=se,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Tl;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Tn;a=Tl;var d=Tn;if(Tl=o,(Tn=l)&&!d)for(se=i;se!==null;)o=se,l=o.child,o.tag===22&&o.memoizedState!==null?s1(i):l!==null?(l.return=o,se=l):s1(i);for(;s!==null;)se=s,Wb(s),s=s.sibling;se=i,Tl=a,Tn=d}r1(e)}else(i.subtreeFlags&8772)!==0&&s!==null?(s.return=i,se=s):r1(e)}}function r1(e){for(;se!==null;){var t=se;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Tn||xf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Tn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ar(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Vv(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Vv(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var v=d.memoizedState;if(v!==null){var y=v.dehydrated;y!==null&&vu(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ee(163))}Tn||t.flags&512&&G0(t)}catch(_){jt(t,t.return,_)}}if(t===e){se=null;break}if(n=t.sibling,n!==null){n.return=t.return,se=n;break}se=t.return}}function i1(e){for(;se!==null;){var t=se;if(t===e){se=null;break}var n=t.sibling;if(n!==null){n.return=t.return,se=n;break}se=t.return}}function s1(e){for(;se!==null;){var t=se;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xf(4,t)}catch(l){jt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){jt(t,i,l)}}var s=t.return;try{G0(t)}catch(l){jt(t,s,l)}break;case 5:var o=t.return;try{G0(t)}catch(l){jt(t,o,l)}}}catch(l){jt(t,t.return,l)}if(t===e){se=null;break}var a=t.sibling;if(a!==null){a.return=t.return,se=a;break}se=t.return}}var _E=Math.ceil,Rc=qi.ReactCurrentDispatcher,xp=qi.ReactCurrentOwner,yr=qi.ReactCurrentBatchConfig,He=0,dn=null,Zt=null,wn=0,Wn=0,Eo=gs(0),on=0,Mu=null,Hs=0,_f=0,_p=0,eu=null,Ln=null,Sp=0,Vo=1/0,_i=null,Oc=!1,W0=null,as=null,Il=!1,Xi=null,Ac=0,tu=0,K0=null,Xl=-1,Zl=0;function Cn(){return(He&6)!==0?Kt():Xl!==-1?Xl:Xl=Kt()}function us(e){return(e.mode&1)===0?1:(He&2)!==0&&wn!==0?wn&-wn:oE.transition!==null?(Zl===0&&(Zl=Ag()),Zl):(e=tt,e!==0||(e=window.event,e=e===void 0?16:Fg(e.type)),e)}function Lr(e,t,n,r){if(50<tu)throw tu=0,K0=null,Error(ee(185));Vu(e,n,r),((He&2)===0||e!==dn)&&(e===dn&&((He&2)===0&&(_f|=n),on===4&&Yi(e,wn)),zn(e,r),n===1&&He===0&&(t.mode&1)===0&&(Vo=Kt()+500,bf&&bs()))}function zn(e,t){var n=e.callbackNode;o6(e,t);var r=pc(e,e===dn?wn:0);if(r===0)n!==null&&pv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pv(n),t===1)e.tag===0?sE(o1.bind(null,e)):rb(o1.bind(null,e)),tE(function(){(He&6)===0&&bs()}),n=null;else{switch(Cg(r)){case 1:n=Yh;break;case 4:n=Rg;break;case 16:n=hc;break;case 536870912:n=Og;break;default:n=hc}n=n2(n,Kb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kb(e,t){if(Xl=-1,Zl=0,(He&6)!==0)throw Error(ee(327));var n=e.callbackNode;if(Oo()&&e.callbackNode!==n)return null;var r=pc(e,e===dn?wn:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Cc(e,r);else{t=r;var i=He;He|=2;var s=Jb();(dn!==e||wn!==t)&&(_i=null,Vo=Kt()+500,Us(e,t));do try{IE();break}catch(a){Yb(e,a)}while(1);lp(),Rc.current=s,He=i,Zt!==null?t=0:(dn=null,wn=0,t=on)}if(t!==0){if(t===2&&(i=x0(e),i!==0&&(r=i,t=Y0(e,i))),t===1)throw n=Mu,Us(e,0),Yi(e,r),zn(e,Kt()),n;if(t===6)Yi(e,r);else{if(i=e.current.alternate,(r&30)===0&&!SE(i)&&(t=Cc(e,r),t===2&&(s=x0(e),s!==0&&(r=s,t=Y0(e,s))),t===1))throw n=Mu,Us(e,0),Yi(e,r),zn(e,Kt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ee(345));case 2:As(e,Ln,_i);break;case 3:if(Yi(e,r),(r&130023424)===r&&(t=Sp+500-Kt(),10<t)){if(pc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Cn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=O0(As.bind(null,e,Ln,_i),t);break}As(e,Ln,_i);break;case 4:if(Yi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Pr(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Kt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_E(r/1960))-r,10<r){e.timeoutHandle=O0(As.bind(null,e,Ln,_i),r);break}As(e,Ln,_i);break;case 5:As(e,Ln,_i);break;default:throw Error(ee(329))}}}return zn(e,Kt()),e.callbackNode===n?Kb.bind(null,e):null}function Y0(e,t){var n=eu;return e.current.memoizedState.isDehydrated&&(Us(e,t).flags|=256),e=Cc(e,t),e!==2&&(t=Ln,Ln=n,t!==null&&J0(t)),e}function J0(e){Ln===null?Ln=e:Ln.push.apply(Ln,e)}function SE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ur(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yi(e,t){for(t&=~_p,t&=~_f,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pr(t),r=1<<n;e[n]=-1,t&=~r}}function o1(e){if((He&6)!==0)throw Error(ee(327));Oo();var t=pc(e,0);if((t&1)===0)return zn(e,Kt()),null;var n=Cc(e,t);if(e.tag!==0&&n===2){var r=x0(e);r!==0&&(t=r,n=Y0(e,r))}if(n===1)throw n=Mu,Us(e,0),Yi(e,t),zn(e,Kt()),n;if(n===6)throw Error(ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,As(e,Ln,_i),zn(e,Kt()),null}function Tp(e,t){var n=He;He|=1;try{return e(t)}finally{He=n,He===0&&(Vo=Kt()+500,bf&&bs())}}function Ws(e){Xi!==null&&Xi.tag===0&&(He&6)===0&&Oo();var t=He;He|=1;var n=yr.transition,r=tt;try{if(yr.transition=null,tt=1,e)return e()}finally{tt=r,yr.transition=n,He=t,(He&6)===0&&bs()}}function Ip(){Wn=Eo.current,$t(Eo)}function Us(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,eE(n)),Zt!==null)for(n=Zt.return;n!==null;){var r=n;switch(op(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bc();break;case 3:Fo(),$t(qn),$t(Mn),mp();break;case 5:pp(r);break;case 4:Fo();break;case 13:$t(Vt);break;case 19:$t(Vt);break;case 10:cp(r.type._context);break;case 22:case 23:Ip()}n=n.return}if(dn=e,Zt=e=ls(e.current,null),wn=Wn=t,on=0,Mu=null,_p=_f=Hs=0,Ln=eu=null,ks!==null){for(t=0;t<ks.length;t++)if(n=ks[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}ks=null}return e}function Yb(e,t){do{var n=Zt;try{if(lp(),Kl.current=Nc,Mc){for(var r=Bt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Mc=!1}if(Qs=0,fn=nn=Bt=null,Xa=!1,Su=0,xp.current=null,n===null||n.return===null){on=1,Mu=t,Zt=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=wn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,v=a,y=v.tag;if((v.mode&1)===0&&(y===0||y===11||y===15)){var _=v.alternate;_?(v.updateQueue=_.updateQueue,v.memoizedState=_.memoizedState,v.lanes=_.lanes):(v.updateQueue=null,v.memoizedState=null)}var T=Hv(o);if(T!==null){T.flags&=-257,Wv(T,o,a,s,t),T.mode&1&&Qv(s,d,t),t=T,l=d;var M=t.updateQueue;if(M===null){var A=new Set;A.add(l),t.updateQueue=A}else M.add(l);break e}else{if((t&1)===0){Qv(s,d,t),Mp();break e}l=Error(ee(426))}}else if(Ft&&a.mode&1){var k=Hv(o);if(k!==null){(k.flags&65536)===0&&(k.flags|=256),Wv(k,o,a,s,t),ap(Uo(l,a));break e}}s=l=Uo(l,a),on!==4&&(on=2),eu===null?eu=[s]:eu.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var N=Db(s,l,t);Uv(s,N);break e;case 1:a=l;var R=s.type,C=s.stateNode;if((s.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(as===null||!as.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t;var U=$b(s,a,t);Uv(s,U);break e}}s=s.return}while(s!==null)}Zb(n)}catch(B){t=B,Zt===n&&n!==null&&(Zt=n=n.return);continue}break}while(1)}function Jb(){var e=Rc.current;return Rc.current=Nc,e===null?Nc:e}function Mp(){(on===0||on===3||on===2)&&(on=4),dn===null||(Hs&268435455)===0&&(_f&268435455)===0||Yi(dn,wn)}function Cc(e,t){var n=He;He|=2;var r=Jb();(dn!==e||wn!==t)&&(_i=null,Us(e,t));do try{TE();break}catch(i){Yb(e,i)}while(1);if(lp(),He=n,Rc.current=r,Zt!==null)throw Error(ee(261));return dn=null,wn=0,on}function TE(){for(;Zt!==null;)Xb(Zt)}function IE(){for(;Zt!==null&&!J3();)Xb(Zt)}function Xb(e){var t=t2(e.alternate,e,Wn);e.memoizedProps=e.pendingProps,t===null?Zb(e):Zt=t,xp.current=null}function Zb(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=gE(n,t,Wn),n!==null){Zt=n;return}}else{if(n=bE(n,t),n!==null){n.flags&=32767,Zt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{on=6,Zt=null;return}}if(t=t.sibling,t!==null){Zt=t;return}Zt=t=e}while(t!==null);on===0&&(on=5)}
vendor: 4,862 bytes, line 32
32function As(e,t,n){var r=tt,i=yr.transition;try{yr.transition=null,tt=1,ME(e,t,n,r)}finally{yr.transition=i,tt=r}return null}function ME(e,t,n,r){do Oo();while(Xi!==null);if((He&6)!==0)throw Error(ee(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ee(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(a6(e,s),e===dn&&(Zt=dn=null,wn=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Il||(Il=!0,n2(hc,function(){return Oo(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=yr.transition,yr.transition=null;var o=tt;tt=1;var a=He;He|=4,xp.current=null,EE(e,n),Hb(n,e),H6(N0),mc=!!M0,N0=M0=null,e.current=n,xE(n),X3(),He=a,tt=o,yr.transition=s}else e.current=n;if(Il&&(Il=!1,Xi=e,Ac=i),s=e.pendingLanes,s===0&&(as=null),t6(n.stateNode),zn(e,Kt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Oc)throw Oc=!1,e=W0,W0=null,e;return(Ac&1)!==0&&e.tag!==0&&Oo(),s=e.pendingLanes,(s&1)!==0?e===K0?tu++:(tu=0,K0=e):tu=0,bs(),null}function Oo(){if(Xi!==null){var e=Cg(Ac),t=yr.transition,n=tt;try{if(yr.transition=null,tt=16>e?16:e,Xi===null)var r=!1;else{if(e=Xi,Xi=null,Ac=0,(He&6)!==0)throw Error(ee(331));var i=He;for(He|=4,se=e.current;se!==null;){var s=se,o=s.child;if((se.flags&16)!==0){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var d=a[l];for(se=d;se!==null;){var v=se;switch(v.tag){case 0:case 11:case 15:Za(8,v,s)}var y=v.child;if(y!==null)y.return=v,se=y;else for(;se!==null;){v=se;var _=v.sibling,T=v.return;if(zb(v),v===d){se=null;break}if(_!==null){_.return=T,se=_;break}se=T}}}var M=s.alternate;if(M!==null){var A=M.child;if(A!==null){M.child=null;do{var k=A.sibling;A.sibling=null,A=k}while(A!==null)}}se=s}}if((s.subtreeFlags&2064)!==0&&o!==null)o.return=s,se=o;else e:for(;se!==null;){if(s=se,(s.flags&2048)!==0)switch(s.tag){case 0:case 11:case 15:Za(9,s,s.return)}var N=s.sibling;if(N!==null){N.return=s.return,se=N;break e}se=s.return}}var R=e.current;for(se=R;se!==null;){o=se;var C=o.child;if((o.subtreeFlags&2064)!==0&&C!==null)C.return=o,se=C;else e:for(o=R;se!==null;){if(a=se,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:xf(9,a)}}catch(B){jt(a,a.return,B)}if(a===o){se=null;break e}var U=a.sibling;if(U!==null){U.return=a.return,se=U;break e}se=a.return}}if(He=i,bs(),Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(pf,e)}catch{}r=!0}return r}finally{tt=n,yr.transition=t}}return!1}function a1(e,t,n){t=Uo(n,t),t=Db(e,t,1),e=os(e,t,1),t=Cn(),e!==null&&(Vu(e,1,t),zn(e,t))}function jt(e,t,n){if(e.tag===3)a1(e,e,n);else for(;t!==null;){if(t.tag===3){a1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(as===null||!as.has(r))){e=Uo(n,e),e=$b(t,e,1),t=os(t,e,1),e=Cn(),t!==null&&(Vu(t,1,e),zn(t,e));break}}t=t.return}}function NE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Cn(),e.pingedLanes|=e.suspendedLanes&n,dn===e&&(wn&n)===n&&(on===4||on===3&&(wn&130023424)===wn&&500>Kt()-Sp?Us(e,0):_p|=n),zn(e,t)}function e2(e,t){t===0&&((e.mode&1)===0?t=1:(t=vl,vl<<=1,(vl&130023424)===0&&(vl=4194304)));var n=Cn();e=Ci(e,t),e!==null&&(Vu(e,t,n),zn(e,n))}function RE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e2(e,n)}function OE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ee(314))}r!==null&&r.delete(t),e2(e,n)}var t2;t2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qn.current)Bn=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Bn=!1,yE(e,t,n);Bn=(e.flags&131072)!==0}else Bn=!1,Ft&&(t.flags&1048576)!==0&&ib(t,xc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jl(e,t),e=t.pendingProps;var i=ko(t,Mn.current);Ro(t,n),i=yp(null,t,r,e,i,n);var s=gp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jn(r)?(s=!0,wc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dp(t),i.updater=wf,t.stateNode=i,i._reactInternals=t,L0(t,r,e,n),t=V0(null,t,r,!0,s,n)):(t.tag=0,Ft&&s&&sp(t),On(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=CE(r),e=Ar(r,e),i){case 0:t=U0(null,t,r,e,n);break e;case 1:t=Jv(null,t,r,e,n);break e;case 11:t=Kv(null,t,r,e,n);break e;case 14:t=Yv(null,t,r,Ar(r.type,e),n);break e}throw Error(ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),U0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Jv(e,t,r,i,n);case 3:e:{if(Fb(t),e===null)throw Error(ee(387));
vendor: 4,679 bytes, line 32
32r=t.pendingProps,s=t.memoizedState,i=s.element,ub(e,t),Tc(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Uo(Error(ee(423)),t),t=Xv(e,t,r,n,i);break e}else if(r!==i){i=Uo(Error(ee(424)),t),t=Xv(e,t,r,n,i);break e}else for(Jn=ss(t.stateNode.containerInfo.firstChild),Zn=t,Ft=!0,$r=null,n=db(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Po(),r===i){t=Di(e,t,n);break e}On(e,t,r,n)}t=t.child}return t;case 5:return hb(t),e===null&&$0(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,R0(r,i)?o=null:s!==null&&R0(r,s)&&(t.flags|=32),Lb(e,t),On(e,t,o,n),t.child;case 6:return e===null&&$0(t),null;case 13:return Ub(e,t,n);case 4:return hp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Lo(t,null,r,n):On(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Kv(e,t,r,i,n);case 7:return On(e,t,t.pendingProps,n),t.child;case 8:return On(e,t,t.pendingProps.children,n),t.child;case 12:return On(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,yt(_c,r._currentValue),r._currentValue=o,s!==null)if(Ur(s.value,o)){if(s.children===i.children&&!qn.current){t=Di(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ri(-1,n&-n),l.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?l.next=l:(l.next=v.next,v.next=l),d.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),k0(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(ee(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),k0(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}On(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ro(t,n),i=gr(i),r=r(i),t.flags|=1,On(e,t,r,n),t.child;case 14:return r=t.type,i=Ar(r,t.pendingProps),i=Ar(r.type,i),Yv(e,t,r,i,n);case 15:return kb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Jl(e,t),t.tag=1,jn(r)?(e=!0,wc(t)):e=!1,Ro(t,n),cb(t,r,i),L0(t,r,i,n),V0(null,t,r,!0,e,n);case 19:return Vb(e,t,n);case 22:return Pb(e,t,n)}throw Error(ee(156,t.tag))};function n2(e,t){return Ng(e,t)}function AE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pr(e,t,n,r){return new AE(e,t,n,r)}function Np(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CE(e){if(typeof e=="function")return Np(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hh)return 11;if(e===Wh)return 14}return 2}function ls(e,t){var n=e.alternate;return n===null?(n=pr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ec(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Np(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case co:return Vs(n.children,i,s,t);case Qh:o=8,i|=8;break;case a0:return e=pr(12,n,t,i|2),e.elementType=a0,e.lanes=s,e;case u0:return e=pr(13,n,t,i),e.elementType=u0,e.lanes=s,e;case l0:return e=pr(19,n,t,i),e.elementType=l0,e.lanes=s,e;case fg:return Sf(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lg:o=10;break e;case cg:o=9;break e;case Hh:o=11;break e;case Wh:o=14;break e;case Gi:o=16,r=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=pr(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Vs(e,t,n,r){return e=pr(7,e,r,t),e.lanes=n,e}function Sf(e,t,n,r){return e=pr(22,e,r,t),e.elementType=fg,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 4,846 bytes, line 32
32function Dd(e,t,n){return e=pr(6,e,null,t),e.lanes=n,e}function $d(e,t,n){return t=pr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DE(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pd(0),this.expirationTimes=pd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rp(e,t,n,r,i,s,o,a,l){return e=new DE(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(s),e}function $E(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function r2(e){if(!e)return hs;e=e._reactInternals;e:{if(Zs(e)!==e||e.tag!==1)throw Error(ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ee(171))}if(e.tag===1){var n=e.type;if(jn(n))return nb(e,n,t)}return t}function i2(e,t,n,r,i,s,o,a,l){return e=Rp(n,r,!0,e,i,s,o,a,l),e.context=r2(null),n=e.current,r=Cn(),i=us(n),s=Ri(r,i),s.callback=t!=null?t:null,os(n,s,i),e.current.lanes=i,Vu(e,i,r),zn(e,r),e}function Tf(e,t,n,r){var i=t.current,s=Cn(),o=us(i);return n=r2(n),t.context===null?t.context=n:t.pendingContext=n,t=Ri(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=os(i,t,o),e!==null&&(Lr(e,i,o,s),Wl(e,i,o)),o}function Dc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function u1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Op(e,t){u1(e,t),(e=e.alternate)&&u1(e,t)}function kE(){return null}var s2=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ap(e){this._internalRoot=e}If.prototype.render=Ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ee(409));Tf(e,t,null,null)};If.prototype.unmount=Ap.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ws(function(){Tf(null,e,null,null)}),t[Ai]=null}};function If(e){this._internalRoot=e}If.prototype.unstable_scheduleHydration=function(e){if(e){var t=kg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ki.length&&t!==0&&t<Ki[n].priority;n++);Ki.splice(n,0,e),n===0&&Lg(e)}};function Cp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function l1(){}function PE(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var d=Dc(o);s.call(d)}}var o=i2(t,r,e,0,null,!1,!1,"",l1);return e._reactRootContainer=o,e[Ai]=o.current,bu(e.nodeType===8?e.parentNode:e),Ws(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var d=Dc(l);a.call(d)}}var l=Rp(e,0,!1,null,null,!1,!1,"",l1);return e._reactRootContainer=l,e[Ai]=l.current,bu(e.nodeType===8?e.parentNode:e),Ws(function(){Tf(t,l,n,r)}),l}function Nf(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Dc(o);a.call(l)}}Tf(t,o,e,i)}else o=PE(n,t,e,i,r);return Dc(o)}Dg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fa(t.pendingLanes);n!==0&&(Jh(t,n|1),zn(t,Kt()),(He&6)===0&&(Vo=Kt()+500,bs()))}break;case 13:Ws(function(){var r=Ci(e,1);if(r!==null){var i=Cn();Lr(r,e,1,i)}}),Op(e,1)}};Xh=function(e){if(e.tag===13){var t=Ci(e,134217728);if(t!==null){var n=Cn();Lr(t,e,134217728,n)}Op(e,134217728)}};$g=function(e){if(e.tag===13){var t=us(e),n=Ci(e,t);if(n!==null){var r=Cn();Lr(n,e,t,r)}Op(e,t)}};kg=function(){return tt};Pg=function(e,t){var n=tt;try{return tt=e,t()}finally{tt=n}};b0=function(e,t,n){switch(t){case"input":if(d0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=gf(r);if(!i)throw Error(ee(90));hg(r),d0(r,i)}}}break;case"textarea":mg(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};xg=Tp;_g=Ws;
vendor: 2,620 bytes, line 32
32var LE={usingClientEntryPoint:!1,Events:[qu,mo,gf,wg,Eg,Tp]},Oa={findFiberByHostInstance:$s,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},FE={bundleType:Oa.bundleType,version:Oa.version,rendererPackageName:Oa.rendererPackageName,rendererConfig:Oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ig(e),e===null?null:e.stateNode},findFiberByHostInstance:Oa.findFiberByHostInstance||kE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{pf=Ml.inject(FE),Wr=Ml}catch{}}ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LE;ir.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cp(t))throw Error(ee(200));return $E(e,t,null,n)};ir.createRoot=function(e,t){if(!Cp(e))throw Error(ee(299));var n=!1,r="",i=s2;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Rp(e,1,!1,null,null,n,!1,r,i),e[Ai]=t.current,bu(e.nodeType===8?e.parentNode:e),new Ap(t)};ir.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ee(188)):(e=Object.keys(e).join(","),Error(ee(268,e)));return e=Ig(t),e=e===null?null:e.stateNode,e};ir.flushSync=function(e){return Ws(e)};ir.hydrate=function(e,t,n){if(!Mf(t))throw Error(ee(200));return Nf(null,e,t,!0,n)};ir.hydrateRoot=function(e,t,n){if(!Cp(e))throw Error(ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=s2;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=i2(t,null,e,1,n!=null?n:null,i,!1,s,o),e[Ai]=t.current,bu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new If(t)};ir.render=function(e,t,n){if(!Mf(t))throw Error(ee(200));return Nf(null,e,t,!1,n)};ir.unmountComponentAtNode=function(e){if(!Mf(e))throw Error(ee(40
32));return e._reactRootContainer?(Ws(function(){Nf(null,null,e,!1,function(){e._reactRootContainer=null,e[Ai]=null})}),!0):!1};ir.unstable_batchedUpdates=Tp;ir.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Mf(n))throw Error(ee(200));if(e==null||e._reactInternals===void 0)throw Error(ee(38));return Nf(e,t,n,!1,r)};ir.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ir})(oa);const UE=Fh(oa.exports);var o2,c1=oa.exports;o2=c1.createRoot,c1.hydrateRoot;class la{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Nu=typeof window>"u"||"Deno"in window;function fr(){}function VE(e,t){return typeof e=="function"?e(t):e}function X0(e){return typeof e=="number"&&e>=0&&e!==1/0}function a2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Va(e,t,n){return zu(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function BE(e,t,n){return zu(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Hi(e,t,n){return zu(e)?[{...t,queryKey:e},n]:[e||{},t]}function f1(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(zu(o)){if(r){if(t.queryHash!==Dp(o,t.options))return!1}else if(!$c(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function d1(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(zu(s)){if(!t.options.mutationKey)return!1;if(n){if(Ls(t.options.mutationKey)!==Ls(s))return!1}else if(!$c(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Dp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ls)(e)}function Ls(e){return JSON.stringify(e,(t,n)=>eh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function $c(e,t){return u2(e,t)}function u2(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!u2(e[n],t[n])):!1}function l2(e,t){if(e===t)return e;const n=h1(e)&&h1(t);if(n||eh(e)&&eh(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let a=0;for(let l=0;l<s;l++){const d=n?l:i[l];o[d]=l2(e[d],t[d]),o[d]===e[d]&&a++}return r===s&&a===r?e:o}return t}function Z0(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function h1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function eh(e){if(!p1(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!p1(n)||!n.hasOwnProperty("isPrototypeOf"))}function p1(e){return Object.prototype.toString.call(e)==="[object Object]"}function zu(e){return Array.isArray(e)}function c2(e){return new Promise(t=>{setTimeout(t,e)})}function m1(e){c2(0).then(e)}function qE(){if(typeof AbortController=="function")return new AbortController}function th(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?l2(e,t):t}class jE extends la{constructor(){super(),this.setup=t=>{if(!Nu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}
32onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const kc=new jE;class zE extends la{constructor(){super(),this.setup=t=>{if(!Nu&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Pc=new zE;function GE(e){return Math.min(1e3*2**e,3e4)}function Rf(e){return(e!=null?e:"online")==="online"?Pc.isOnline():!0}class f2{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function tc(e){return e instanceof f2}function d2(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((k,N)=>{s=k,o=N}),l=k=>{r||(T(new f2(k)),e.abort==null||e.abort())},d=()=>{t=!0},v=()=>{t=!1},y=()=>!kc.isFocused()||e.networkMode!=="always"&&!Pc.isOnline(),_=k=>{r||(r=!0,e.onSuccess==null||e.onSuccess(k),i==null||i(),s(k))},T=k=>{r||(r=!0,e.onError==null||e.onError(k),i==null||i(),o(k))},M=()=>new Promise(k=>{i=N=>{const R=r||!y();return R&&k(N),R},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),A=()=>{if(r)return;let k;try{k=e.fn()}catch(N){k=Promise.reject(N)}Promise.resolve(k).then(_).catch(N=>{var R,C;if(r)return;const U=(R=e.retry)!=null?R:3,B=(C=e.retryDelay)!=null?C:GE,F=typeof B=="function"?B(n,N):B,z=U===!0||typeof U=="number"&&n<U||typeof U=="function"&&U(n,N);if(t||!z){T(N);return}n++,e.onFail==null||e.onFail(n,N),c2(F).then(()=>{if(y())return M()}).then(()=>{t?T(N):A()})})};return Rf(e.networkMode)?A():M().then(A),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:d,continueRetry:v}}const $p=console;function QE(){let e=[],t=0,n=v=>{v()},r=v=>{v()};const i=v=>{let y;t++;try{y=v()}finally{t--,t||a()}return y},s=v=>{t?e.push(v):m1(()=>{n(v)})},o=v=>(...y)=>{s(()=>{v(...y)})},a=()=>{const v=e;e=[],v.length&&m1(()=>{r(()=>{v.forEach(y=>{n(y)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:v=>{n=v},setBatchNotifyFunction:v=>{r=v}}}const Gt=QE();class h2{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),X0(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Nu?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class HE extends h2{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||$p,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||WE(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=th(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(fr).catch(fr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!a2(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>
32n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(M=>M.options.queryFn);T&&this.setOptions(T.options)}Array.isArray(this.options.queryKey);const o=qE(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const d=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn"),v={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};if(l(v),(r=this.options.behavior)==null||r.onFetch(v),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=v.fetchOptions)==null?void 0:i.meta)){var y;this.dispatch({type:"fetch",meta:(y=v.fetchOptions)==null?void 0:y.meta})}const _=T=>{if(tc(T)&&T.silent||this.dispatch({type:"error",error:T}),!tc(T)){var M,A;(M=(A=this.cache.config).onError)==null||M.call(A,T,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=d2({fn:v.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:T=>{var M,A;if(typeof T>"u"){_(new Error("undefined"));return}this.setData(T),(M=(A=this.cache.config).onSuccess)==null||M.call(A,T,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:_,onFail:(T,M)=>{this.dispatch({type:"failed",failureCount:T,error:M})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,s;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Rf(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return tc(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function WE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class KE extends la{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const s=n.queryKey,o=(i=n.queryHash)!=null?i:Dp(s,n);let a=this.get(o);return a||(a=new HE({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Gt.batch(()=>
32{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Hi(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>f1(r,i))}findAll(t,n){const[r]=Hi(t,n);return Object.keys(r).length>0?this.queries.filter(i=>f1(r,i)):this.queries}notify(t){Gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Gt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Gt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class YE extends h2{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$p,this.observers=[],this.state=t.state||p2(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var C;return this.retryer=d2({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(U,B)=>{this.dispatch({type:"failed",failureCount:U,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,a,l;if(!n){var d,v,y,_;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(v=this.mutationCache.config).onMutate)==null?void 0:d.call(v,this.state.variables,this));const U=await((y=(_=this.options).onMutate)==null?void 0:y.call(_,this.state.variables));U!==this.state.context&&this.dispatch({type:"loading",context:U,variables:this.state.variables})}const C=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,C,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,C,this.state.variables,this.state.context)),await((a=(l=this.options).onSettled)==null?void 0:a.call(l,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var T,M,A,k,N,R;throw await((T=(M=this.mutationCache.config).onError)==null?void 0:T.call(M,C,this.state.variables,this.state.context,this)),await((A=(k=this.options).onError)==null?void 0:A.call(k,C,this.state.variables,this.state.context)),await((N=(R=this.options).onSettled)==null?void 0:N.call(R,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Rf(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Gt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function p2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class JE extends la{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new YE({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Gt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>d1(t,n))}findAll(t){return this.mutations.filter(n=>d1(t,n))}notify(t){Gt.batch(()=>
32{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Gt.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(fr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function XE(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,d=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",y=(l==null?void 0:l.direction)==="backward",_=((s=e.state.data)==null?void 0:s.pages)||[],T=((o=e.state.data)==null?void 0:o.pageParams)||[];let M=T,A=!1;const k=F=>{Object.defineProperty(F,"signal",{enumerable:!0,get:()=>{var z;if((z=e.signal)!=null&&z.aborted)A=!0;else{var q;(q=e.signal)==null||q.addEventListener("abort",()=>{A=!0})}return e.signal}})},N=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),R=(F,z,q,D)=>(M=D?[z,...M]:[...M,z],D?[q,...F]:[...F,q]),C=(F,z,q,D)=>{if(A)return Promise.reject("Cancelled");if(typeof q>"u"&&!z&&F.length)return Promise.resolve(F);const L={queryKey:e.queryKey,pageParam:q,meta:e.options.meta};k(L);const I=N(L);return Promise.resolve(I).then(p=>R(F,q,p,D))};let U;if(!_.length)U=C([]);else if(v){const F=typeof d<"u",z=F?d:v1(e.options,_);U=C(_,F,z)}else if(y){const F=typeof d<"u",z=F?d:ZE(e.options,_);U=C(_,F,z,!0)}else{M=[];const F=typeof e.options.getNextPageParam>"u";U=(a&&_[0]?a(_[0],0,_):!0)?C([],F,T[0]):Promise.resolve(R([],T[0],_[0]));for(let q=1;q<_.length;q++)U=U.then(D=>
32{if(a&&_[q]?a(_[q],q,_):!0){const I=F?T[q]:v1(e.options,D);return C(D,F,I)}return Promise.resolve(R(D,T[q],_[q]))})}return U.then(F=>({pages:F,pageParams:M}))}}}}function v1(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function ZE(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class e8{constructor(t={}){this.queryCache=t.queryCache||new KE,this.mutationCache=t.mutationCache||new JE,this.logger=t.logger||$p,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=kc.subscribe(()=>{kc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Pc.subscribe(()=>{Pc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Hi(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Va(t,n,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,o=VE(n,s);if(typeof o>"u")return;const a=Va(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Gt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Hi(t,n),i=this.queryCache;Gt.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=Hi(t,n,r),o=this.queryCache,a={type:"active",...i};return Gt.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,s)))}cancelQueries(t,n,r){const[i,s={}]=Hi(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=Gt.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(s)));return Promise.all(o).then(fr).catch(fr)}invalidateQueries(t,n,r){const[i,s]=Hi(t,n,r);return Gt.batch(()=>{var o,a;if(this.queryCache.findAll(i).forEach(d=>{d.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(a=i.refetchType)!=null?a:i.type)!=null?o:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,n,r){const[i,s]=Hi(t,n,r),o=Gt.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var d;return l.fetch(void 0,{...s,cancelRefetch:(d=s==null?void 0:s.cancelRefetch)!=null?d:!0,meta:{refetchPage:i.refetchPage}})}));
32let a=Promise.all(o).then(fr);return s!=null&&s.throwOnError||(a=a.catch(fr)),a}fetchQuery(t,n,r){const i=Va(t,n,r),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(fr).catch(fr)}fetchInfiniteQuery(t,n,r){const i=Va(t,n,r);return i.behavior=XE(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(fr).catch(fr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>Ls(t)===Ls(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>$c(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Ls(t)===Ls(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>$c(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Dp(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class t8 extends la{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),y1(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return nh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Z0(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const s=this.hasListeners();s&&g1(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fr)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Nu||this.currentResult.isStale||!X0(this.options.staleTime))return;const n=a2(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Nu||this.options.enabled===!1||!X0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>
32{(this.options.refetchIntervalInBackground||kc.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,s=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,d=l?t.state:this.currentQueryInitialState,v=l?this.currentResult:this.previousQueryResult,{state:y}=t;let{dataUpdatedAt:_,error:T,errorUpdatedAt:M,fetchStatus:A,status:k}=y,N=!1,R=!1,C;if(n._optimisticResults){const q=this.hasListeners(),D=!q&&y1(t,n),L=q&&g1(t,r,n,i);(D||L)&&(A=Rf(t.options.networkMode)?"fetching":"paused",_||(k="loading")),n._optimisticResults==="isRestoring"&&(A="idle")}if(n.keepPreviousData&&!y.dataUpdatedAt&&v!=null&&v.isSuccess&&k!=="error")C=v.data,_=v.dataUpdatedAt,k=v.status,N=!0;else if(n.select&&typeof y.data<"u")if(s&&y.data===(o==null?void 0:o.data)&&n.select===this.selectFn)C=this.selectResult;else try{this.selectFn=n.select,C=n.select(y.data),C=th(s==null?void 0:s.data,C,n),this.selectResult=C,this.selectError=null}catch(q){this.selectError=q}else C=y.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&k==="loading"){let q;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))q=s.data;else if(q=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof q<"u")try{q=n.select(q),this.selectError=null}catch(D){this.selectError=D}typeof q<"u"&&(k="success",C=th(s==null?void 0:s.data,q,n),R=!0)}this.selectError&&(T=this.selectError,C=this.selectResult,M=Date.now(),k="error");const U=A==="fetching",B=k==="loading",F=k==="error";return{status:k,fetchStatus:A,isLoading:B,isSuccess:k==="success",isError:F,isInitialLoading:B&&U,data:C,dataUpdatedAt:_,error:T,errorUpdatedAt:M,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:U,isRefetching:U&&!B,isLoadingError:F&&y.dataUpdatedAt===0,isPaused:A==="paused",isPlaceholderData:R,isPreviousData:N,isRefetchError:F&&y.dataUpdatedAt!==0,isStale:kp(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Z0(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const a=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(l=>{const d=l;return this.currentResult[d]!==n[d]&&a.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!tc(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Gt.batch(()=>{if(t.onSuccess){var n,r,i,s;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(t.onError){var o,a,l,d;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(d=this.options).onSettled)==null||l.call(d,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(v=>{v(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function n8(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOn
32Mount===!1)}function y1(e,t){return n8(e,t)||e.state.dataUpdatedAt>0&&nh(e,t,t.refetchOnMount)}function nh(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&kp(e,t)}return!1}function g1(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&kp(e,n)}function kp(e,t){return e.isStaleByTime(t.staleTime)}class r8 extends la{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.client.defaultMutationOptions(t),Z0(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:p2(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Gt.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,s;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,d;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(d=this.mutateOptions).onSettled)==null||l.call(d,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(v=>{v(this.currentResult)})})}}var Pp={exports:{}},m2={};/**
33 * @license React
34 * use-sync-external-store-shim.production.min.js
35 *
36 * Copyright (c) Facebook, Inc. and its affiliates.
37 *
38 * This source code is licensed under the MIT license found in the
39 * LICENSE file in the root directory of this source tree.
40 */var Bo=V.exports;function i8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var s8=typeof Object.is=="function"?Object.is:i8,o8=Bo.useState,a8=Bo.useEffect,u8=Bo.useLayoutEffect,l8=Bo.useDebugValue;function c8(e,t){var n=t(),r=o8({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return u8(function(){i.value=n,i.getSnapshot=t,kd(i)&&s({inst:i})},[e,n,t]),a8(function(){return kd(i)&&s({inst:i}),e(function(){kd(i)&&s({inst:i})})},[e]),l8(n),n}function kd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s8(e,n)}catch{return!0}}function f8(e,t){return t()}var d8=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f8:c8;m2.useSyncExternalStore=Bo.useSyncExternalStore!==void 0?Bo.useSyncExternalStore:d8;(function(e){e.exports=m2})(Pp);const h8=Fh(Pp.exports),v2=Pp.exports.useSyncExternalStore;var Lp={exports:{}},Of={};/**
41 * @license React
42 * react-jsx-runtime.production.min.js
43 *
44 * Copyright (c) Facebook, Inc. and its affiliates.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE file in the root directory of this source tree.
48 */var p8=V.exports,m8=Symbol.for("react.element"),v8=Symbol.for("react.fragment"),y8=Object.prototype.hasOwnProperty,g8=p8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b8={key:!0,ref:!0,__self:!0,__source:!0};function y2(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)y8.call(t,r)&&!b8.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:m8,type:e,key:s,ref:o,props:i,_owner:g8.current}}Of.Fragment=v8;Of.jsx=y2;Of.jsxs=y2;(function(e){e.exports=Of})(Lp);const pe=Lp.exports.jsx,sn=Lp.exports.jsxs,b1=V.exports.createContext(void 0),g2=V.exports.createContext(!1);function b2(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=b1),window.ReactQueryClientContext):b1)}const Fp=({context:e}={})=>{const t=V.exports.useContext(b2(e,V.exports.useContext(g2)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},w8=({client:e,children:t,context:n,contextSharing:r=!1})=>{V.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=b2(n,r);return pe(g2.Provider,{value:!n&&r,children:pe(i.Provider,{value:e,children:t})})},w2=V.exports.createContext(!1),E8=()=>V.exports.useContext(w2);w2.Provider;function x8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
48const _8=V.exports.createContext(x8()),S8=()=>V.exports.useContext(_8);function E2(e,t){return typeof e=="function"?e(...t):!!e}const T8=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},I8=e=>{V.exports.useEffect(()=>{e.clearReset()},[e])},M8=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&E2(n,[e.error,r]),N8=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},R8=(e,t)=>e.isLoading&&e.isFetching&&!t,O8=(e,t,n)=>(e==null?void 0:e.suspense)&&R8(t,n),A8=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function C8(e,t){const n=Fp({context:e.context}),r=E8(),i=S8(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=Gt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Gt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Gt.batchCalls(s.onSettled)),N8(s),T8(s,i),I8(i);const[o]=V.exports.useState(()=>new t(n,s)),a=o.getOptimisticResult(s);if(v2(V.exports.useCallback(l=>r?()=>{}:o.subscribe(Gt.batchCalls(l)),[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),V.exports.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),O8(s,a,r))throw A8(s,o,i);if(M8({result:a,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return s.notifyOnChangeProps?a:o.trackResult(a)}function Gu(e,t,n){const r=Va(e,t,n);return C8(r,t8)}function Lc(e,t,n){const r=BE(e,t,n),i=Fp({context:r.context}),[s]=V.exports.useState(()=>new r8(i,r));V.exports.useEffect(()=>{s.setOptions(r)},[s,r]);const o=v2(V.exports.useCallback(l=>s.subscribe(Gt.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=V.exports.useCallback((l,d)=>{s.mutate(l,d).catch(D8)},[s]);if(o.error&&E2(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function D8(){}const $8="logger/5.7.0";let w1=!1,E1=!1;const nc={debug:1,default:2,info:2,warning:3,error:4,off:5};let x1=nc.default,Pd=null;function k8(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}const _1=k8();var rh;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(rh||(rh={}));var Cr;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Cr||(Cr={}));const S1="0123456789abcdef";class Fe{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,n){const r=t.toLowerCase();nc[r]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(x1>nc[r])&&console.log.apply(console,n)}debug(...t){this._log(Fe.levels.DEBUG,t)}info(...t){this._log(Fe.levels.INFO,t)}warn(...t){this._log(Fe.levels.WARNING,t)}makeError(t,n,r){if(E1)return this.makeError("censored error",n,{});n||(n=Fe.errors.UNKNOWN_ERROR),r||(r={});const i=[];Object.keys(r).forEach(l=>{const d=r[l];try{if(d instanceof Uint8Array){let v="";for(let y=0;y<d.length;y++)v+=S1[d[y]>>4],v+=S1[d[y]&15];i.push(l+"=Uint8Array(0x"+v+")")}else i.push(l+"="+JSON.stringify(d))}catch{i.push(l+"="+JSON.stringify(r[l].toString()))}}),i.push(`code=${n}`),i.push(`version=${this.version}`);const s=t;let o="";switch(n){case Cr.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Cr.CALL_EXCEPTION:case Cr.INSUFFICIENT_FUNDS:case Cr.MISSING_NEW:case Cr.NONCE_EXPIRED:case Cr.REPLACEMENT_UNDERPRICED:case Cr.TRANSACTION_REPLACED:case Cr.UNPREDICTABLE_GAS_LIMIT:o=n;break}
48o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(t+=" ("+i.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=n,Object.keys(r).forEach(function(l){a[l]=r[l]}),a}throwError(t,n,r){throw this.makeError(t,n,r)}throwArgumentError(t,n,r){return this.throwError(t,Fe.errors.INVALID_ARGUMENT,{argument:n,value:r})}assert(t,n,r,i){t||this.throwError(n,r,i)}assertArgument(t,n,r,i){t||this.throwArgumentError(n,r,i)}checkNormalize(t){_1&&this.throwError("platform missing String.prototype.normalize",Fe.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:_1})}checkSafeUint53(t,n){typeof t=="number"&&(n==null&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,Fe.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,Fe.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,n,r){r?r=": "+r:r="",t<n&&this.throwError("missing argument"+r,Fe.errors.MISSING_ARGUMENT,{count:t,expectedCount:n}),t>n&&this.throwError("too many arguments"+r,Fe.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}checkNew(t,n){(t===Object||t==null)&&this.throwError("missing new",Fe.errors.MISSING_NEW,{name:n.name})}checkAbstract(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",Fe.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",Fe.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return Pd||(Pd=new Fe($8)),Pd}static setCensorship(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",Fe.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),w1){if(!t)return;this.globalLogger().throwError("error censorship permanent",Fe.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}E1=!!t,w1=!!n}static setLogLevel(t){const n=nc[t.toLowerCase()];if(n==null){Fe.globalLogger().warn("invalid log level - "+t);return}x1=n}static from(t){return new Fe(t)}}Fe.errors=Cr;Fe.levels=rh;const P8="bytes/5.7.0",Ao=new Fe(P8);function x2(e){return!!e.toHexString}function nu(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return nu(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function T1(e){return typeof e=="number"&&e==e&&e%1===0}function _2(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!T1(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const n=e[t];if(!T1(n)||n<0||n>=256)return!1}return!0}function ce(e,t){if(t||(t={}),typeof e=="number"){Ao.checkSafeUint53(e,"invalid arrayify value");const n=[];for(;e;)n.unshift(e&255),e=parseInt(String(e/256));return n.length===0&&n.push(0),nu(new Uint8Array(n))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),x2(e)&&(e=e.toHexString()),S2(e)){let n=e.substring(2);n.length%2&&(t.hexPad==="left"?n="0"+n:t.hexPad==="right"?n+="0":Ao.throwArgumentError("hex data is odd-length","value",e));const r=[];for(let i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return nu(new Uint8Array(r))}return _2(e)?nu(new Uint8Array(e)):Ao.throwArgumentError("invalid arrayify value","value",e)}function we(e){const t=e.map(i=>ce(i)),n=t.reduce((i,s)=>i+s.length,0),r=new Uint8Array(n);return t.reduce((i,s)=>(r.set(s,i),i+s.length),0),nu(r)}function S2(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const Ld="0123456789abcdef";function ue(e,t){if(t||(t={}),typeof e=="number"){Ao.checkSafeUint53(e,"invalid hexlify value");let n="";for(;e;)n=Ld[e&15]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),x2(e))return e.toHexString();if(S2(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":Ao.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(_2(e)){let n="0x";for(let r=0;r<e.length;r++){let i=e[r];n+=Ld[(i&240)>>4]+Ld[i&15]}return n}return Ao.throwArgumentError("invalid hexlify value","value",e)}function Fd(e){if(e!==void 0){let t=e.toString();if(t!=="true")return t}return"0.0.0"}function L8(){return{FUELS:Fd("0.35.0"),FUEL_CORE:Fd("0.17.3"),FORC:Fd("0.35.3")}}var ws=L8(),T2={exports:{}};const F8={},U8=Object.freeze(Object.defineProperty({__proto__:null,default:F8},Symbol.toStringTag,{value:"Module"})),Up=Jy(U8);(function(e){(function(t,n){function r(p,u){if(!p)throw new Error(u||"Assertion failed")}function i(p,u){p.super_=u;var f=function(){};f.prototype=u.prototype,p.prototype=new f,p.prototype.constructor=p}function s(p,u,f){if(s.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((u==="le"||u==="be")&&(f=u,u=10),this._init(p||0,u||10,f||"be"))}
vendor: 42,826 bytes, line 48
48typeof t=="object"?t.exports=s:n.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Up.Buffer}catch{}s.isBN=function(u){return u instanceof s?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===s.wordSize&&Array.isArray(u.words)},s.max=function(u,f){return u.cmp(f)>0?u:f},s.min=function(u,f){return u.cmp(f)<0?u:f},s.prototype._init=function(u,f,w){if(typeof u=="number")return this._initNumber(u,f,w);if(typeof u=="object")return this._initArray(u,f,w);f==="hex"&&(f=16),r(f===(f|0)&&f>=2&&f<=36),u=u.toString().replace(/\s+/g,"");var E=0;u[0]==="-"&&(E++,this.negative=1),E<u.length&&(f===16?this._parseHex(u,E,w):(this._parseBase(u,f,E),w==="le"&&this._initArray(this.toArray(),f,w)))},s.prototype._initNumber=function(u,f,w){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),f,w)},s.prototype._initArray=function(u,f,w){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,g,c=0;if(w==="be")for(E=u.length-1,x=0;E>=0;E-=3)g=u[E]|u[E-1]<<8|u[E-2]<<16,this.words[x]|=g<<c&67108863,this.words[x+1]=g>>>26-c&67108863,c+=24,c>=26&&(c-=26,x++);else if(w==="le")for(E=0,x=0;E<u.length;E+=3)g=u[E]|u[E+1]<<8|u[E+2]<<16,this.words[x]|=g<<c&67108863,this.words[x+1]=g>>>26-c&67108863,c+=24,c>=26&&(c-=26,x++);return this._strip()};function a(p,u){var f=p.charCodeAt(u);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;r(!1,"Invalid character in "+p)}function l(p,u,f){var w=a(p,f);return f-1>=u&&(w|=a(p,f-1)<<4),w}s.prototype._parseHex=function(u,f,w){this.length=Math.ceil((u.length-f)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x=0,g=0,c;if(w==="be")for(E=u.length-1;E>=f;E-=2)c=l(u,f,E)<<x,this.words[g]|=c&67108863,x>=18?(x-=18,g+=1,this.words[g]|=c>>>26):x+=8;else{var b=u.length-f;for(E=b%2===0?f+1:f;E<u.length;E+=2)c=l(u,f,E)<<x,this.words[g]|=c&67108863,x>=18?(x-=18,g+=1,this.words[g]|=c>>>26):x+=8}this._strip()};function d(p,u,f,w){for(var E=0,x=0,g=Math.min(p.length,f),c=u;c<g;c++){var b=p.charCodeAt(c)-48;E*=w,b>=49?x=b-49+10:b>=17?x=b-17+10:x=b,r(b>=0&&x<w,"Invalid character"),E+=x}return E}s.prototype._parseBase=function(u,f,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=f)E++;E--,x=x/f|0;for(var g=u.length-w,c=g%E,b=Math.min(g,g-c)+w,h=0,S=w;S<b;S+=E)h=d(u,S,S+E,f),this.imuln(x),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(c!==0){var P=1;for(h=d(u,S,u.length,f),S=0;S<c;S++)P*=f;this.imuln(P),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},s.prototype.copy=function(u){u.words=new Array(this.length);for(var f=0;f<this.length;f++)u.words[f]=this.words[f];u.length=this.length,u.negative=this.negative,u.red=this.red};function v(p,u){p.words=u.words,p.length=u.length,p.negative=u.negative,p.red=u.red}if(s.prototype._move=function(u){v(u,this)},s.prototype.clone=function(){var u=new s(null);return this.copy(u),u},s.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","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"],T=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(u,f){u=u||10,f=f|0||1;var w;if(u===16||u==="hex"){w="";for(var E=0,x=0,g=0;g<this.length;g++){var c=this.words[g],b=((c<<E|x)&16777215).toString(16);x=c>>>24-E&16777215,E+=2,E>=26&&(E-=26,g--),x!==0||g!==this.length-1?w=_[6-b.length]+b+w:w=b+w}for(x!==0&&(w=x.toString(16)+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(u===(u|0)&&u>=2&&u<=36){var h=T[u],S=M[u];w="";var P=this.clone();for(P.negative=0;!P.isZero();){var j=P.modrn(S).toString(u);P=P.idivn(S),P.isZero()?w=j+w:w=_[h-j.length]+j+w}for(this.isZero()&&(w="0"+w);w.length%f!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(u,f){return this.toArrayLike(o,u,f)}),s.prototype.toArray=function(u,f){return this.toArrayLike(Array,u,f)};var A=function(u,f){return u.allocUnsafe?u.allocUnsafe(f):new u(f)};s.prototype.toArrayLike=function(u,f,w){this._strip();var E=this.byteLength(),x=w||Math.max(1,E);r(E<=x,"byte array longer than desired length"),r(x>0,"Requested array length <= 0");var g=A(u,x),c=f==="le"?"LE":"BE";return this["_toArrayLike"+c](g,E),g},s.prototype._toArrayLikeLE=function(u,f){for(var w=0,E=0,x=0,g=0;x<this.length;x++){var c=this.words[x]<<g|E;u[w++]=c&255,w<u.length&&(u[w++]=c>>8&255),w<u.length&&(u[w++]=c>>16&255),g===6?(w<u.length&&(u[w++]=c>>24&255),E=0,g=0):(E=c>>>24,g+=2)}if(w<u.length)for(u[w++]=E;w<u.length;)u[w++]=0},s.prototype._toArrayLikeBE=function(u,f){for(var w=u.length-1,E=0,x=0,g=0;x<this.length;x++){var c=this.words[x]<<g|E;u[w--]=c&255,w>=0&&(u[w--]=c>>8&255),w>=0&&(u[w--]=c>>16&255),g===6?(w>=0&&(u[w--]=c>>24&255),E=0,g=0):(E=c>>>24,g+=2)}if(w>=0)for(u[w--]=E;w>=0;)u[w--]=0},Math.clz32?s.prototype._countBits=function(u){return 32-Math.clz32(u)}:s.prototype._countBits=function(u){var f=u,w=0;return f>=4096&&(w+=13,f>>>=13),f>=64&&(w+=7,f>>>=7),f>=8&&(w+=4,f>>>=4),f>=2&&(w+=2,f>>>=2),w+f},s.prototype._zeroBits=function(u){if(u===0)return 26;var f=u,w=0;return(f&8191)===0&&(w+=13,f>>>=13),(f&127)===0&&(w+=7,f>>>=7),(f&15)===0&&(w+=4,f>>>=4),(f&3)===0&&(w+=2,f>>>=2),(f&1)===0&&w++,w},s.prototype.bitLength=function(){var u=this.words[this.length-1],f=this._countBits(u);return(this.length-1)*26+f};function k(p){for(var u=new Array(p.bitLength()),f=0;f<u.length;f++){var w=f/26|0,E=f%26;u[f]=p.words[w]>>>E&1}return u}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,f=0;f<this.length;f++){var w=this._zeroBits(this.words[f]);if(u+=w,w!==26)break}return u},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},s.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var f=0;f<u.length;f++)this.words[f]=this.words[f]|u.words[f];return this._strip()},s.prototype.ior=function(u){return r((this.negative|u.negative)===0),this.iuor(u)},s.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var f;this.length>u.length?f=u:f=this;for(var w=0;w<f.length;w++)this.words[w]=this.words[w]&u.words[w];return this.length=f.length,this._strip()},s.prototype.iand=function(u){return r((this.negative|u.negative)===0),this.iuand(u)},s.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var f,w;this.length>u.length?(f=this,w=u):(f=u,w=this);for(var E=0;E<w.length;E++)this.words[E]=f.words[E]^w.words[E];if(this!==f)for(;E<f.length;E++)this.words[E]=f.words[E];return this.length=f.length,this._strip()},s.prototype.ixor=function(u){return r((this.negative|u.negative)===0),this.iuxor(u)},s.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var f=Math.ceil(u/26)|0,w=u%26;this._expand(f),w>0&&f--;for(var E=0;E<f;E++)this.words[E]=~this.words[E]&67108863;return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,f){r(typeof u=="number"&&u>=0);var w=u/26|0,E=u%26;return this._expand(w+1),f?this.words[w]=this.words[w]|1<<E:this.words[w]=this.words[w]&~(1<<E),this._strip()},s.prototype.iadd=function(u){var f;if(this.negative!==0&&u.negative===0)return this.negative=0,f=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,f=this.isub(u),u.negative=1,f._normSign();var w,E;this.length>u.length?(w=this,E=u):(w=u,E=this);for(var x=0,g=0;g<E.length;g++)f=(w.words[g]|0)+(E.words[g]|0)+x,this.words[g]=f&67108863,x=f>>>26;for(;x!==0&&g<w.length;g++)f=(w.words[g]|0)+x,this.words[g]=f&67108863,x=f>>>26;if(this.length=w.length,x!==0)this.words[this.length]=x,this.length++;else if(w!==this)for(;g<w.length;g++)this.words[g]=w.words[g];return this},s.prototype.add=function(u){var f;return u.negative!==0&&this.negative===0?(u.negative=0,f=this.sub(u),u.negative^=1,f):u.negative===0&&this.negative!==0?(this.negative=0,f=u.sub(this),this.negative=1,f):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var f=this.iadd(u);return u.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var w=this.cmp(u);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,x;w>0?(E=this,x=u):(E=u,x=this);for(var g=0,c=0;c<x.length;c++)f=(E.words[c]|0)-(x.words[c]|0)+g,g=f>>26,this.words[c]=f&67108863;for(;g!==0&&c<E.length;c++)f=(E.words[c]|0)+g,g=f>>26,this.words[c]=f&67108863;if(g===0&&c<E.length&&E!==this)for(;c<E.length;c++)this.words[c]=E.words[c];return this.length=Math.max(this.length,c),E!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(u){return this.clone().isub(u)};function N(p,u,f){f.negative=u.negative^p.negative;var w=p.length+u.length|0;f.length=w,w=w-1|0;var E=p.words[0]|0,x=u.words[0]|0,g=E*x,c=g&67108863,b=g/67108864|0;f.words[0]=c;for(var h=1;h<w;h++){for(var S=b>>>26,P=b&67108863,j=Math.min(h,u.length-1),G=Math.max(0,h-p.length+1);G<=j;G++){var X=h-G|0;E=p.words[X]|0,x=u.words[G]|0,g=E*x+P,S+=g/67108864|0,P=g&67108863}f.words[h]=P|0,b=S|0}return b!==0?f.words[h]=b|0:f.length--,f._strip()}var R=function(u,f,w){var E=u.words,x=f.words,g=w.words,c=0,b,h,S,P=E[0]|0,j=P&8191,G=P>>>13,X=E[1]|0,te=X&8191,re=X>>>13,me=E[2]|0,fe=me&8191,ie=me>>>13,$e=E[3]|0,Te=$e&8191,ve=$e>>>13,Ge=E[4]|0,We=Ge&8191,he=Ge>>>13,Ze=E[5]|0,Je=Ze&8191,ge=Ze>>>13,ut=E[6]|0,lt=ut&8191,ye=ut>>>13,nt=E[7]|0,bt=nt&8191,xe=nt>>>13,ct=E[8]|0,ft=ct&8191,Ie=ct>>>13,wt=E[9]|0,Et=wt&8191,Me=wt>>>13,dt=x[0]|0,xt=dt&8191,Ne=dt>>>13,st=x[1]|0,et=st&8191,Ee=st>>>13,ot=x[2]|0,at=ot&8191,be=ot>>>13,_t=x[3]|0,St=_t&8191,Re=_t>>>13,Tt=x[4]|0,It=Tt&8191,_e=Tt>>>13,ht=x[5]|0,Ke=ht&8191,Oe=ht>>>13,Mt=x[6]|0,Nt=Mt&8191,Ae=Mt>>>13,Rt=x[7]|0,Qe=Rt&8191,Ce=Rt>>>13,Ot=x[8]|0,At=Ot&8191,De=Ot>>>13,Ct=x[9]|0,Ye=Ct&8191,pt=Ct>>>13;w.negative=u.negative^f.negative,w.length=19,b=Math.imul(j,xt),h=Math.imul(j,Ne),h=h+Math.imul(G,xt)|0,S=Math.imul(G,Ne);var ci=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(ci>>>26)|0,ci&=67108863,b=Math.imul(te,xt),h=Math.imul(te,Ne),h=h+Math.imul(re,xt)|0,S=Math.imul(re,Ne),b=b+Math.imul(j,et)|0,h=h+Math.imul(j,Ee)|0,h=h+Math.imul(G,et)|0,S=S+Math.imul(G,Ee)|0;var fi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(fi>>>26)|0,fi&=67108863,b=Math.imul(fe,xt),h=Math.imul(fe,Ne),h=h+Math.imul(ie,xt)|0,S=Math.imul(ie,Ne),b=b+Math.imul(te,et)|0,h=h+Math.imul(te,Ee)|0,h=h+Math.imul(re,et)|0,S=S+Math.imul(re,Ee)|0,b=b+Math.imul(j,at)|0,h=h+Math.imul(j,be)|0,h=h+Math.imul(G,at)|0,S=S+Math.imul(G,be)|0;var di=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(di>>>26)|0,di&=67108863,b=Math.imul(Te,xt),h=Math.imul(Te,Ne),h=h+Math.imul(ve,xt)|0,S=Math.imul(ve,Ne),b=b+Math.imul(fe,et)|0,h=h+Math.imul(fe,Ee)|0,h=h+Math.imul(ie,et)|0,S=S+Math.imul(ie,Ee)|0,b=b+Math.imul(te,at)|0,h=h+Math.imul(te,be)|0,h=h+Math.imul(re,at)|0,S=S+Math.imul(re,be)|0,b=b+Math.imul(j,St)|0,h=h+Math.imul(j,Re)|0,h=h+Math.imul(G,St)|0,S=S+Math.imul(G,Re)|0;var hi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(hi>>>26)|0,hi&=67108863,b=Math.imul(We,xt),h=Math.imul(We,Ne),h=h+Math.imul(he,xt)|0,S=Math.imul(he,Ne),b=b+Math.imul(Te,et)|0,h=h+Math.imul(Te,Ee)|0,h=h+Math.imul(ve,et)|0,S=S+Math.imul(ve,Ee)|0,b=b+Math.imul(fe,at)|0,h=h+Math.imul(fe,be)|0,h=h+Math.imul(ie,at)|0,S=S+Math.imul(ie,be)|0,b=b+Math.imul(te,St)|0,h=h+Math.imul(te,Re)|0,h=h+Math.imul(re,St)|0,S=S+Math.imul(re,Re)|0,b=b+Math.imul(j,It)|0,h=h+Math.imul(j,_e)|0,h=h+Math.imul(G,It)|0,S=S+Math.imul(G,_e)|0;var kn=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(kn>>>26)|0,kn&=67108863,b=Math.imul(Je,xt),h=Math.imul(Je,Ne),h=h+Math.imul(ge,xt)|0,S=Math.imul(ge,Ne),b=b+Math.imul(We,et)|0,h=h+Math.imul(We,Ee)|0,h=h+Math.imul(he,et)|0,S=S+Math.imul(he,Ee)|0,b=b+Math.imul(Te,at)|0,h=h+Math.imul(Te,be)|0,h=h+Math.imul(ve,at)|0,S=S+Math.imul(ve,be)|0,b=b+Math.imul(fe,St)|0,h=h+Math.imul(fe,Re)|0,h=h+Math.imul(ie,St)|0,S=S+Math.imul(ie,Re)|0,b=b+Math.imul(te,It)|0,h=h+Math.imul(te,_e)|0,h=h+Math.imul(re,It)|0,S=S+Math.imul(re,_e)|0,b=b+Math.imul(j,Ke)|0,h=h+Math.imul(j,Oe)|0,h=h+Math.imul(G,Ke)|0,S=S+Math.imul(G,Oe)|0;var pi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(pi>>>26)|0,pi&=67108863,b=Math.imul(lt,xt),h=Math.imul(lt,Ne),h=h+Math.imul(ye,xt)|0,S=Math.imul(ye,Ne),b=b+Math.imul(Je,et)|0,h=h+Math.imul(Je,Ee)|0,h=h+Math.imul(ge,et)|0,S=S+Math.imul(ge,Ee)|0,b=b+Math.imul(We,at)|0,h=h+Math.imul(We,be)|0,h=h+Math.imul(he,at)|0,S=S+Math.imul(he,be)|0,b=b+Math.imul(Te,St)|0,h=h+Math.imul(Te,Re)|0,h=h+Math.imul(ve,St)|0,S=S+Math.imul(ve,Re)|0,b=b+Math.imul(fe,It)|0,h=h+Math.imul(fe,_e)|0,h=h+Math.imul(ie,It)|0,S=S+Math.imul(ie,_e)|0,b=b+Math.imul(te,Ke)|0,h=h+Math.imul(te,Oe)|0,h=h+Math.imul(re,Ke)|0,S=S+Math.imul(re,Oe)|0,b=b+Math.imul(j,Nt)|0,h=h+Math.imul(j,Ae)|0,h=h+Math.imul(G,Nt)|0,S=S+Math.imul(G,Ae)|0;var mi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(mi>>>26)|0,mi&=67108863,b=Math.imul(bt,xt),h=Math.imul(bt,Ne),h=h+Math.imul(xe,xt)|0,S=Math.imul(xe,Ne),b=b+Math.imul(lt,et)|0,h=h+Math.imul(lt,Ee)|0,h=h+Math.imul(ye,et)|0,S=S+Math.imul(ye,Ee)|0,b=b+Math.imul(Je,at)|0,h=h+Math.imul(Je,be)|0,h=h+Math.imul(ge,at)|0,S=S+Math.imul(ge,be)|0,b=b+Math.imul(We,St)|0,h=h+Math.imul(We,Re)|0,h=h+Math.imul(he,St)|0,S=S+Math.imul(he,Re)|0,b=b+Math.imul(Te,It)|0,h=h+Math.imul(Te,_e)|0,h=h+Math.imul(ve,It)|0,S=S+Math.imul(ve,_e)|0,b=b+Math.imul(fe,Ke)|0,h=h+Math.imul(fe,Oe)|0,h=h+Math.imul(ie,Ke)|0,S=S+Math.imul(ie,Oe)|0,b=b+Math.imul(te,Nt)|0,h=h+Math.imul(te,Ae)|0,h=h+Math.imul(re,Nt)|0,S=S+Math.imul(re,Ae)|0,b=b+Math.imul(j,Qe)|0,h=h+Math.imul(j,Ce)|0,h=h+Math.imul(G,Qe)|0,S=S+Math.imul(G,Ce)|0;var vi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(vi>>>26)|0,vi&=67108863,b=Math.imul(ft,xt),h=Math.imul(ft,Ne),h=h+Math.imul(Ie,xt)|0,S=Math.imul(Ie,Ne),b=b+Math.imul(bt,et)|0,h=h+Math.imul(bt,Ee)|0,h=h+Math.imul(xe,et)|0,S=S+Math.imul(xe,Ee)|0,b=b+Math.imul(lt,at)|0,h=h+Math.imul(lt,be)|0,h=h+Math.imul(ye,at)|0,S=S+Math.imul(ye,be)|0,b=b+Math.imul(Je,St)|0,h=h+Math.imul(Je,Re)|0,h=h+Math.imul(ge,St)|0,S=S+Math.imul(ge,Re)|0,b=b+Math.imul(We,It)|0,h=h+Math.imul(We,_e)|0,h=h+Math.imul(he,It)|0,S=S+Math.imul(he,_e)|0,b=b+Math.imul(Te,Ke)|0,h=h+Math.imul(Te,Oe)|0,h=h+Math.imul(ve,Ke)|0,S=S+Math.imul(ve,Oe)|0,b=b+Math.imul(fe,Nt)|0,h=h+Math.imul(fe,Ae)|0,h=h+Math.imul(ie,Nt)|0,S=S+Math.imul(ie,Ae)|0,b=b+Math.imul(te,Qe)|0,h=h+Math.imul(te,Ce)|0,h=h+Math.imul(re,Qe)|0,S=S+Math.imul(re,Ce)|0,b=b+Math.imul(j,At)|0,h=h+Math.imul(j,De)|0,h=h+Math.imul(G,At)|0,S=S+Math.imul(G,De)|0;var yi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(yi>>>26)|0,yi&=67108863,b=Math.imul(Et,xt),h=Math.imul(Et,Ne),h=h+Math.imul(Me,xt)|0,S=Math.imul(Me,Ne),b=b+Math.imul(ft,et)|0,h=h+Math.imul(ft,Ee)|0,h=h+Math.imul(Ie,et)|0,S=S+Math.imul(Ie,Ee)|0,b=b+Math.imul(bt,at)|0,h=h+Math.imul(bt,be)|0,h=h+Math.imul(xe,at)|0,S=S+Math.imul(xe,be)|0,b=b+Math.imul(lt,St)|0,h=h+Math.imul(lt,Re)|0,h=h+Math.imul(ye,St)|0,S=S+Math.imul(ye,Re)|0,b=b+Math.imul(Je,It)|0,h=h+Math.imul(Je,_e)|0,h=h+Math.imul(ge,It)|0,S=S+Math.imul(ge,_e)|0,b=b+Math.imul(We,Ke)|0,h=h+Math.imul(We,Oe)|0,h=h+Math.imul(he,Ke)|0,S=S+Math.imul(he,Oe)|0,b=b+Math.imul(Te,Nt)|0,h=h+Math.imul(Te,Ae)|0,h=h+Math.imul(ve,Nt)|0,S=S+Math.imul(ve,Ae)|0,b=b+Math.imul(fe,Qe)|0,h=h+Math.imul(fe,Ce)|0,h=h+Math.imul(ie,Qe)|0,S=S+Math.imul(ie,Ce)|0,b=b+Math.imul(te,At)|0,h=h+Math.imul(te,De)|0,h=h+Math.imul(re,At)|0,S=S+Math.imul(re,De)|0,b=b+Math.imul(j,Ye)|0,h=h+Math.imul(j,pt)|0,h=h+Math.imul(G,Ye)|0,S=S+Math.imul(G,pt)|0;var gi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(gi>>>26)|0,gi&=67108863,b=Math.imul(Et,et),h=Math.imul(Et,Ee),h=h+Math.imul(Me,et)|0,S=Math.imul(Me,Ee),b=b+Math.imul(ft,at)|0,h=h+Math.imul(ft,be)|0,h=h+Math.imul(Ie,at)|0,S=S+Math.imul(Ie,be)|0,b=b+Math.imul(bt,St)|0,h=h+Math.imul(bt,Re)|0,h=h+Math.imul(xe,St)|0,S=S+Math.imul(xe,Re)|0,b=b+Math.imul(lt,It)|0,h=h+Math.imul(lt,_e)|0,h=h+Math.imul(ye,It)|0,S=S+Math.imul(ye,_e)|0,b=b+Math.imul(Je,Ke)|0,h=h+Math.imul(Je,Oe)|0,h=h+Math.imul(ge,Ke)|0,S=S+Math.imul(ge,Oe)|0,b=b+Math.imul(We,Nt)|0,h=h+Math.imul(We,Ae)|0,h=h+Math.imul(he,Nt)|0,S=S+Math.imul(he,Ae)|0,b=b+Math.imul(Te,Qe)|0,h=h+Math.imul(Te,Ce)|0,h=h+Math.imul(ve,Qe)|0,S=S+Math.imul(ve,Ce)|0,b=b+Math.imul(fe,At)|0,h=h+Math.imul(fe,De)|0,h=h+Math.imul(ie,At)|0,S=S+Math.imul(ie,De)|0,b=b+Math.imul(te,Ye)|0,h=h+Math.imul(te,pt)|0,h=h+Math.imul(re,Ye)|0,S=S+Math.imul(re,pt)|0;var bi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(bi>>>26)|0,bi&=67108863,b=Math.imul(Et,at),h=Math.imul(Et,be),h=h+Math.imul(Me,at)|0,S=Math.imul(Me,be),b=b+Math.imul(ft,St)|0,h=h+Math.imul(ft,Re)|0,h=h+Math.imul(Ie,St)|0,S=S+Math.imul(Ie,Re)|0,b=b+Math.imul(bt,It)|0,h=h+Math.imul(bt,_e)|0,h=h+Math.imul(xe,It)|0,S=S+Math.imul(xe,_e)|0,b=b+Math.imul(lt,Ke)|0,h=h+Math.imul(lt,Oe)|0,h=h+Math.imul(ye,Ke)|0,S=S+Math.imul(ye,Oe)|0,b=b+Math.imul(Je,Nt)|0,h=h+Math.imul(Je,Ae)|0,h=h+Math.imul(ge,Nt)|0,S=S+Math.imul(ge,Ae)|0,b=b+Math.imul(We,Qe)|0,h=h+Math.imul(We,Ce)|0,h=h+Math.imul(he,Qe)|0,S=S+Math.imul(he,Ce)|0,b=b+Math.imul(Te,At)|0,h=h+Math.imul(Te,De)|0,h=h+Math.imul(ve,At)|0,S=S+Math.imul(ve,De)|0,b=b+Math.imul(fe,Ye)|0,h=h+Math.imul(fe,pt)|0,h=h+Math.imul(ie,Ye)|0,S=S+Math.imul(ie,pt)|0;var jr=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Et,St),h=Math.imul(Et,Re),h=h+Math.imul(Me,St)|0,S=Math.imul(Me,Re),b=b+Math.imul(ft,It)|0,h=h+Math.imul(ft,_e)|0,h=h+Math.imul(Ie,It)|0,S=S+Math.imul(Ie,_e)|0,b=b+Math.imul(bt,Ke)|0,h=h+Math.imul(bt,Oe)|0,h=h+Math.imul(xe,Ke)|0,S=S+Math.imul(xe,Oe)|0,b=b+Math.imul(lt,Nt)|0,h=h+Math.imul(lt,Ae)|0,h=h+Math.imul(ye,Nt)|0,S=S+Math.imul(ye,Ae)|0,b=b+Math.imul(Je,Qe)|0,h=h+Math.imul(Je,Ce)|0,h=h+Math.imul(ge,Qe)|0,S=S+Math.imul(ge,Ce)|0,b=b+Math.imul(We,At)|0,h=h+Math.imul(We,De)|0,h=h+Math.imul(he,At)|0,S=S+Math.imul(he,De)|0,b=b+Math.imul(Te,Ye)|0,h=h+Math.imul(Te,pt)|0,h=h+Math.imul(ve,Ye)|0,S=S+Math.imul(ve,pt)|0;var lr=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(Et,It),h=Math.imul(Et,_e),h=h+Math.imul(Me,It)|0,S=Math.imul(Me,_e),b=b+Math.imul(ft,Ke)|0,h=h+Math.imul(ft,Oe)|0,h=h+Math.imul(Ie,Ke)|0,S=S+Math.imul(Ie,Oe)|0,b=b+Math.imul(bt,Nt)|0,h=h+Math.imul(bt,Ae)|0,h=h+Math.imul(xe,Nt)|0,S=S+Math.imul(xe,Ae)|0,b=b+Math.imul(lt,Qe)|0,h=h+Math.imul(lt,Ce)|0,h=h+Math.imul(ye,Qe)|0,S=S+Math.imul(ye,Ce)|0,b=b+Math.imul(Je,At)|0,h=h+Math.imul(Je,De)|0,h=h+Math.imul(ge,At)|0,S=S+Math.imul(ge,De)|0,b=b+Math.imul(We,Ye)|0,h=h+Math.imul(We,pt)|0,h=h+Math.imul(he,Ye)|0,S=S+Math.imul(he,pt)|0;var wi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(wi>>>26)|0,wi&=67108863,b=Math.imul(Et,Ke),h=Math.imul(Et,Oe),h=h+Math.imul(Me,Ke)|0,S=Math.imul(Me,Oe),b=b+Math.imul(ft,Nt)|0,h=h+Math.imul(ft,Ae)|0,h=h+Math.imul(Ie,Nt)|0,S=S+Math.imul(Ie,Ae)|0,b=b+Math.imul(bt,Qe)|0,h=h+Math.imul(bt,Ce)|0,h=h+Math.imul(xe,Qe)|0,S=S+Math.imul(xe,Ce)|0,b=b+Math.imul(lt,At)|0,h=h+Math.imul(lt,De)|0,h=h+Math.imul(ye,At)|0,S=S+Math.imul(ye,De)|0,b=b+Math.imul(Je,Ye)|0,h=h+Math.imul(Je,pt)|0,h=h+Math.imul(ge,Ye)|0,S=S+Math.imul(ge,pt)|0;var Ir=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,Nt),h=Math.imul(Et,Ae),h=h+Math.imul(Me,Nt)|0,S=Math.imul(Me,Ae),b=b+Math.imul(ft,Qe)|0,h=h+Math.imul(ft,Ce)|0,h=h+Math.imul(Ie,Qe)|0,S=S+Math.imul(Ie,Ce)|0,b=b+Math.imul(bt,At)|0,h=h+Math.imul(bt,De)|0,h=h+Math.imul(xe,At)|0,S=S+Math.imul(xe,De)|0,b=b+Math.imul(lt,Ye)|0,h=h+Math.imul(lt,pt)|0,h=h+Math.imul(ye,Ye)|0,S=S+Math.imul(ye,pt)|0;var Ei=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,b=Math.imul(Et,Qe),h=Math.imul(Et,Ce),h=h+Math.imul(Me,Qe)|0,S=Math.imul(Me,Ce),b=b+Math.imul(ft,At)|0,h=h+Math.imul(ft,De)|0,h=h+Math.imul(Ie,At)|0,S=S+Math.imul(Ie,De)|0,b=b+Math.imul(bt,Ye)|0,h=h+Math.imul(bt,pt)|0,h=h+Math.imul(xe,Ye)|0,S=S+Math.imul(xe,pt)|0;var xi=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(xi>>>26)|0,xi&=67108863,b=Math.imul(Et,At),h=Math.imul(Et,De),h=h+Math.imul(Me,At)|0,S=Math.imul(Me,De),b=b+Math.imul(ft,Ye)|0,h=h+Math.imul(ft,pt)|0,h=h+Math.imul(Ie,Ye)|0,S=S+Math.imul(Ie,pt)|0;var Ea=(c+b|0)+((h&8191)<<13)|0;c=(S+(h>>>13)|0)+(Ea>>>26)|0,Ea&=67108863,b=Math.imul(Et,Ye),h=Math.imul(Et,pt),h=h+Math.imul(Me,Ye)|0,S=Math.imul(Me,pt);var xa=(c+b|0)+((h&8191)<<13)|0;return c=(S+(h>>>13)|0)+(xa>>>26)|0,xa&=67108863,g[0]=ci,g[1]=fi,g[2]=di,g[3]=hi,g[4]=kn,g[5]=pi,g[6]=mi,g[7]=vi,g[8]=yi,g[9]=gi,g[10]=bi,g[11]=jr,g[12]=lr,g[13]=wi,g[14]=Ir,g[15]=Ei,g[16]=xi,g[17]=Ea,g[18]=xa,c!==0&&(g[19]=c,w.length++),w};Math.imul||(R=N);function C(p,u,f){f.negative=u.negative^p.negative,f.length=p.length+u.length;for(var w=0,E=0,x=0;x<f.length-1;x++){var g=E;E=0;for(var c=w&67108863,b=Math.min(x,u.length-1),h=Math.max(0,x-p.length+1);h<=b;h++){var S=x-h,P=p.words[S]|0,j=u.words[h]|0,G=P*j,X=G&67108863;g=g+(G/67108864|0)|0,X=X+c|0,c=X&67108863,g=g+(X>>>26)|0,E+=g>>>26,g&=67108863}f.words[x]=c,w=g,g=E}return w!==0?f.words[x]=w:f.length--,f._strip()}function U(p,u,f){return C(p,u,f)}s.prototype.mulTo=function(u,f){var w,E=this.length+u.length;return this.length===10&&u.length===10?w=R(this,u,f):E<63?w=N(this,u,f):E<1024?w=C(this,u,f):w=U(this,u,f),w},s.prototype.mul=function(u){var f=new s(null);return f.words=new Array(this.length+u.length),this.mulTo(u,f)},s.prototype.mulf=function(u){var f=new s(null);return f.words=new Array(this.length+u.length),U(this,u,f)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var f=u<0;f&&(u=-u),r(typeof u=="number"),r(u<67108864);for(var w=0,E=0;E<this.length;E++){var x=(this.words[E]|0)*u,g=(x&67108863)+(w&67108863);w>>=26,w+=x/67108864|0,w+=g>>>26,this.words[E]=g&67108863}return w!==0&&(this.words[E]=w,this.length++),f?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var f=k(u);if(f.length===0)return new s(1);for(var w=this,E=0;E<f.length&&f[E]===0;E++,w=w.sqr());if(++E<f.length)for(var x=w.sqr();E<f.length;E++,x=x.sqr())f[E]!==0&&(w=w.mul(x));return w},s.prototype.iushln=function(u){r(typeof u=="number"&&u>=0);var f=u%26,w=(u-f)/26,E=67108863>>>26-f<<26-f,x;if(f!==0){var g=0;for(x=0;x<this.length;x++){var c=this.words[x]&E,b=(this.words[x]|0)-c<<f;this.words[x]=b|g,g=c>>>26-f}g&&(this.words[x]=g,this.length++)}if(w!==0){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this._strip()},s.prototype.ishln=function(u){return r(this.negative===0),this.iushln(u)},s.prototype.iushrn=function(u,f,w){r(typeof u=="number"&&u>=0);var E;f?E=(f-f%26)/26:E=0;var x=u%26,g=Math.min((u-x)/26,this.length),c=67108863^67108863>>>x<<x,b=w;if(E-=g,E=Math.max(0,E),b){for(var h=0;h<g;h++)b.words[h]=this.words[h];b.length=g}if(g!==0)if(this.length>g)for(this.length-=g,h=0;h<this.length;h++)this.words[h]=this.words[h+g];else this.words[0]=0,this.length=1;var S=0;for(h=this.length-1;h>=0&&(S!==0||h>=E);h--){var P=this.words[h]|0;this.words[h]=S<<26-x|P>>>x,S=P&c}return b&&S!==0&&(b.words[b.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,f,w){return r(this.negative===0),this.iushrn(u,f,w)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var f=u%26,w=(u-f)/26,E=1<<f;if(this.length<=w)return!1;var x=this.words[w];return!!(x&E)},s.prototype.imaskn=function(u){r(typeof u=="number"&&u>=0);var f=u%26,w=(u-f)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(f!==0&&w++,this.length=Math.min(w,this.length),f!==0){var E=67108863^67108863>>>f<<f;this.words[this.length-1]&=E}return this._strip()},s.prototype.maskn=function(u){return this.clone().imaskn(u)},s.prototype.iaddn=function(u){return r(typeof u=="number"),r(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<=u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},s.prototype._iaddn=function(u){this.words[0]+=u;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},s.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,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()},s.prototype.addn=function(u){return this.clone().iaddn(u)},s.prototype.subn=function(u){return this.clone().isubn(u)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(u,f,w){var E=u.length+w,x;this._expand(E);var g,c=0;for(x=0;x<u.length;x++){g=(this.words[x+w]|0)+c;var b=(u.words[x]|0)*f;g-=b&67108863,c=(g>>26)-(b/67108864|0),this.words[x+w]=g&67108863}for(;x<this.length-w;x++)g=(this.words[x+w]|0)+c,c=g>>26,this.words[x+w]=g&67108863;if(c===0)return this._strip();for(r(c===-1),c=0,x=0;x<this.length;x++)g=-(this.words[x]|0)+c,c=g>>26,this.words[x]=g&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,f){var w=this.length-u.length,E=this.clone(),x=u,g=x.words[x.length-1]|0,c=this._countBits(g);w=26-c,w!==0&&(x=x.ushln(w),E.iushln(w),g=x.words[x.length-1]|0);var b=E.length-x.length,h;if(f!=="mod"){h=new s(null),h.length=b+1,h.words=new Array(h.length);for(var S=0;S<h.length;S++)h.words[S]=0}var P=E.clone()._ishlnsubmul(x,1,b);P.negative===0&&(E=P,h&&(h.words[b]=1));for(var j=b-1;j>=0;j--){var G=(E.words[x.length+j]|0)*67108864+(E.words[x.length+j-1]|0);for(G=Math.min(G/g|0,67108863),E._ishlnsubmul(x,G,j);E.negative!==0;)G--,E.negative=0,E._ishlnsubmul(x,1,j),E.isZero()||(E.negative^=1);h&&(h.words[j]=G)}return h&&h._strip(),E._strip(),f!=="div"&&w!==0&&E.iushrn(w),{div:h||null,mod:E}},s.prototype.divmod=function(u,f,w){if(r(!u.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var E,x,g;return this.negative!==0&&u.negative===0?(g=this.neg().divmod(u,f),f!=="mod"&&(E=g.div.neg()),f!=="div"&&(x=g.mod.neg(),w&&x.negative!==0&&x.iadd(u)),{div:E,mod:x}):this.negative===0&&u.negative!==0?(g=this.divmod(u.neg(),f),f!=="mod"&&(E=g.div.neg()),{div:E,mod:g.mod}):(this.negative&u.negative)!==0?(g=this.neg().divmod(u.neg(),f),f!=="div"&&(x=g.mod.neg(),w&&x.negative!==0&&x.isub(u)),{div:g.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:u.length===1?f==="div"?{div:this.divn(u.words[0]),mod:null}:f==="mod"?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,f)},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var f=this.divmod(u);if(f.mod.isZero())return f.div;var w=f.div.negative!==0?f.mod.isub(u):f.mod,E=u.ushrn(1),x=u.andln(1),g=w.cmp(E);return g<0||x===1&&g===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},s.prototype.modrn=function(u){var f=u<0;f&&(u=-u),r(u<=67108863);for(var w=(1<<26)%u,E=0,x=this.length-1;x>=0;x--)E=(w*E+(this.words[x]|0))%u;return f?-E:E},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var f=u<0;f&&(u=-u),r(u<=67108863);for(var w=0,E=this.length-1;E>=0;E--){var x=(this.words[E]|0)+w*67108864;this.words[E]=x/u|0,w=x%u}return this._strip(),f?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var f=this,w=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var E=new s(1),x=new s(0),g=new s(0),c=new s(1),b=0;f.isEven()&&w.isEven();)f.iushrn(1),w.iushrn(1),++b;for(var h=w.clone(),S=f.clone();!f.isZero();){for(var P=0,j=1;(f.words[0]&j)===0&&P<26;++P,j<<=1);if(P>0)for(f.iushrn(P);P-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(h),x.isub(S)),E.iushrn(1),x.iushrn(1);for(var G=0,X=1;(w.words[0]&X)===0&&G<26;++G,X<<=1);if(G>0)for(w.iushrn(G);G-- >0;)(g.isOdd()||c.isOdd())&&(g.iadd(h),c.isub(S)),g.iushrn(1),c.iushrn(1);f.cmp(w)>=0?(f.isub(w),E.isub(g),x.isub(c)):(w.isub(f),g.isub(E),c.isub(x))}return{a:g,b:c,gcd:w.iushln(b)}},s.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var f=this,w=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var E=new s(1),x=new s(0),g=w.clone();f.cmpn(1)>0&&w.cmpn(1)>0;){for(var c=0,b=1;(f.words[0]&b)===0&&c<26;++c,b<<=1);if(c>0)for(f.iushrn(c);c-- >0;)E.isOdd()&&E.iadd(g),E.iushrn(1);for(var h=0,S=1;(w.words[0]&S)===0&&h<26;++h,S<<=1);if(h>0)for(w.iushrn(h);h-- >0;)x.isOdd()&&x.iadd(g),x.iushrn(1);f.cmp(w)>=0?(f.isub(w),E.isub(x)):(w.isub(f),x.isub(E))}var P;return f.cmpn(1)===0?P=E:P=x,P.cmpn(0)<0&&P.iadd(u),P},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var f=this.clone(),w=u.clone();f.negative=0,w.negative=0;for(var E=0;f.isEven()&&w.isEven();E++)f.iushrn(1),w.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=f.cmp(w);if(x<0){var g=f;f=w,w=g}else if(x===0||w.cmpn(1)===0)break;f.isub(w)}while(!0);return w.iushln(E)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){r(typeof u=="number");var f=u%26,w=(u-f)/26,E=1<<f;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,g=w;x!==0&&g<this.length;g++){var c=this.words[g]|0;c+=x,x=c>>>26,c&=67108863,this.words[g]=c}return x!==0&&(this.words[g]=x,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(u){var f=u<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var w;if(this.length>1)w=1;else{f&&(u=-u),r(u<=67108863,"Number is too big");var E=this.words[0]|0;w=E===u?0:E<u?-1:1}return this.negative!==0?-w|0:w},s.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var f=this.ucmp(u);return this.negative!==0?-f|0:f},s.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var f=0,w=this.length-1;w>=0;w--){var E=this.words[w]|0,x=u.words[w]|0;if(E!==x){E<x?f=-1:E>x&&(f=1);break}}return f},s.prototype.gtn=function(u){return this.cmpn(u)===1},s.prototype.gt=function(u){return this.cmp(u)===1},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return this.cmpn(u)===-1},s.prototype.lt=function(u){return this.cmp(u)===-1},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return this.cmpn(u)===0},s.prototype.eq=function(u){return this.cmp(u)===0},s.red=function(u){return new I(u)},s.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var B={k256:null,p224:null,p192:null,p25519:null};function F(p,u){this.name=p,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},F.prototype.ireduce=function(u){var f=u,w;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),w=f.bitLength();while(w>this.n);var E=w<this.n?-1:f.ucmp(this.p);return E===0?(f.words[0]=0,f.length=1):E>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(u,f){u.iushrn(this.n,0,f)},F.prototype.imulK=function(u){return u.imul(this.k)};function z(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(z,F),z.prototype.split=function(u,f){for(var w=4194303,E=Math.min(u.length,9),x=0;x<E;x++)f.words[x]=u.words[x];if(f.length=E,u.length<=9){u.words[0]=0,u.length=1;return}var g=u.words[9];for(f.words[f.length++]=g&w,x=10;x<u.length;x++){var c=u.words[x]|0;u.words[x-10]=(c&w)<<4|g>>>22,g=c}g>>>=22,u.words[x-10]=g,g===0&&u.length>10?u.length-=10:u.length-=9},z.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var f=0,w=0;w<u.length;w++){var E=u.words[w]|0;f+=E*977,u.words[w]=f&67108863,f=E*64+(f/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function q(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(q,F);function D(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(D,F);function L(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(L,F),L.prototype.imulK=function(u){for(var f=0,w=0;w<u.length;w++){var E=(u.words[w]|0)*19+f,x=E&67108863;E>>>=26,u.words[w]=x,f=E}return f!==0&&(u.words[u.length++]=f),u},s._prime=function(u){if(B[u])return B[u];var f;if(u==="k256")f=new z;else if(u==="p224")f=new q;else if(u==="p192")f=new D;else if(u==="p25519")f=new L;else throw new Error("Unknown prime "+u);return B[u]=f,f};function I(p){if(typeof p=="string"){var u=s._prime(p);this.m=u.p,this.prime=u}else r(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}I.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},I.prototype._verify2=function(u,f){r((u.negative|f.negative)===0,"red works only with positives"),r(u.red&&u.red===f.red,"red works only with red numbers")},I.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(v(u,u.umod(this.m)._forceRed(this)),u)},I.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},I.prototype.add=function(u,f){this._verify2(u,f);var w=u.add(f);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},I.prototype.iadd=function(u,f){this._verify2(u,f);var w=u.iadd(f);return w.cmp(this.m)>=0&&w.isub(this.m),w},I.prototype.sub=function(u,f){this._verify2(u,f);var w=u.sub(f);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},I.prototype.isub=function(u,f){this._verify2(u,f);var w=u.isub(f);return w.cmpn(0)<0&&w.iadd(this.m),w},I.prototype.shl=function(u,f){return this._verify1(u),this.imod(u.ushln(f))},I.prototype.imul=function(u,f){return this._verify2(u,f),this.imod(u.imul(f))},I.prototype.mul=function(u,f){return this._verify2(u,f),this.imod(u.mul(f))},I.prototype.isqr=function(u){return this.imul(u,u.clone())},I.prototype.sqr=function(u){return this.mul(u,u)},I.prototype.sqrt=function(u){if(u.isZero())return u.clone();var f=this.m.andln(3);if(r(f%2===1),f===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(u,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&E.andln(1)===0;)x++,E.iushrn(1);r(!E.isZero());var g=new s(1).toRed(this),c=g.redNeg(),b=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);this.pow(h,b).cmp(c)!==0;)h.redIAdd(c);for(var S=this.pow(h,E),P=this.pow(u,E.addn(1).iushrn(1)),j=this.pow(u,E),G=x;j.cmp(g)!==0;){for(var X=j,te=0;X.cmp(g)!==0;te++)X=X.redSqr();r(te<G);var re=this.pow(S,new s(1).iushln(G-te-1));P=P.redMul(re),S=re.redSqr(),j=j.redMul(S),G=te}return P},I.prototype.invm=function(u){var f=u._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},I.prototype.pow=function(u,f){if(f.isZero())return new s(1).toRed(this);if(f.cmpn(1)===0)return u.clone();var w=4,E=new Array(1<<w);E[0]=new s(1).toRed(this),E[1]=u;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],u);var g=E[0],c=0,b=0,h=f.bitLength()%26;for(h===0&&(h=26),x=f.length-1;x>=0;x--){for(var S=f.words[x],P=h-1;P>=0;P--){var j=S>>P&1;if(g!==E[0]&&(g=this.sqr(g)),j===0&&c===0){b=0;continue}c<<=1,c|=j,b++,!(b!==w&&(x!==0||P!==0))&&(g=this.mul(g,E[c]),b=0,c=0)}h=26}return g},I.prototype.convertTo=function(u){var f=u.umod(this.m);return f===u?f.clone():f},I.prototype.convertFrom=function(u){var f=u.clone();return f.red=null,f},s.mont=function(u){return new m(u)};function m(p){I.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(m,I),m.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},m.prototype.convertFrom=function(u){var f=this.imod(u.mul(this.rinv));return f.red=null,f},m.prototype.imul=function(u,f){if(u.isZero()||f.isZero())return u.words[0]=0,u.length=1,u;var w=u.imul(f),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},m.prototype.mul=function(u,f){if(u.isZero()||f.isZero())return new s(0)._forceRed(this);var w=u.mul(f),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},m.prototype.invm=function(u){var f=this.imod(u._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,qe)})(T2);const Nl=T2.exports;function V8(e,t){let{precision:n=9,minPrecision:r=3}=t||{},[i="0",s="0"]=String(e||"0.0").split("."),o=/(\d)(?=(\d{3})+\b)/g,a=i.replace(o,"$1,"),l=s.slice(0,n);if(r<n){let v=l.match(/.*[1-9]{1}/),y=(v==null?void 0:v[0].length)||0,_=Math.max(r,y);l=l.slice(0,_)}let d=l?`.${l}`:"";return`${a}${d}`}
48var cn=class extends Nl{constructor(e,t,n){if(cn.isBN(e)){super(e.toArray(),t,n);return}if(typeof e=="string"&&e.slice(0,2)==="0x"){super(e.substring(2),t||"hex",n);return}let r=e==null?0:e;super(r,t,n)}toString(e,t){let n=super.toString(e,t);return e===16||e==="hex"?`0x${n}`:n}toHex(e){let t=(e||0)*2;if(this.isNeg())throw new Error("cannot convert negative value to hex");if(e&&this.byteLength()>e)throw new Error(`value ${this} exceeds bytes ${e}`);return this.toString(16,t)}toBytes(e){if(this.isNeg())throw new Error("cannot convert negative value to Bytes");return Uint8Array.from(this.toArray(void 0,e))}toJSON(){return this.toString(16)}valueOf(){return this.toString()}format(e){let{units:t=9,precision:n=9,minPrecision:r=3}=e||{},i=this.formatUnits(t),s=V8(i,{precision:n,minPrecision:r});if(!parseFloat(s)){let[,o="0"]=i.split("."),a=o.match(/[1-9]/);if(a&&a.index&&a.index+1>n){let[l="0"]=s.split(".");return`${l}.${o.slice(0,a.index+1)}`}}return s}formatUnits(e=9){let t=this.toString().slice(0,e*-1),n=this.toString().slice(e*-1),r=n.length,i=Array.from({length:e-r}).fill("0").join("");return`${t?`${t}.`:"0."}${i}${n}`}add(e){return this.caller(e,"add")}pow(e){return this.caller(e,"pow")}sub(e){return this.caller(e,"sub")}div(e){return this.caller(e,"div")}mul(e){return this.caller(e,"mul")}mod(e){return this.caller(e,"mod")}divRound(e){return this.caller(e,"divRound")}lt(e){return this.caller(e,"lt")}lte(e){return this.caller(e,"lte")}gt(e){return this.caller(e,"gt")}gte(e){return this.caller(e,"gte")}eq(e){return this.caller(e,"eq")}cmp(e){return this.caller(e,"cmp")}sqr(){return new cn(super.sqr().toArray())}neg(){return new cn(super.neg().toArray())}abs(){return new cn(super.abs().toArray())}toTwos(e){return new cn(super.toTwos(e).toArray())}fromTwos(e){return new cn(super.fromTwos(e).toArray())}caller(e,t){let n=super[t](new cn(e));return cn.isBN(n)?new cn(n.toArray()):n}clone(){return new cn(this.toArray())}mulTo(e,t){let n=new Nl(this.toArray()).mulTo(e,t);return new cn(n.toArray())}egcd(e){let{a:t,b:n,gcd:r}=new Nl(this.toArray()).egcd(e);return{a:new cn(t.toArray()),b:new cn(n.toArray()),gcd:new cn(r.toArray())}}
48divmod(e,t,n){let{div:r,mod:i}=new Nl(this.toArray()).divmod(new cn(e),t,n);return{div:new cn(r==null?void 0:r.toArray()),mod:new cn(i==null?void 0:i.toArray())}}},Z=(e,t,n)=>new cn(e,t,n);Z.parseUnits=(e,t=9)=>{let n=e==="."?"0.":e,[r="0",i="0"]=n.split("."),s=i.length;if(s>t)throw new Error("Decimal can't be bigger than the units");let o=Array.from({length:t}).fill("0");o.splice(0,s,i);let a=`${r.replaceAll(",","")}${o.join("")}`;return Z(a)};function mr(e){return Z(e).toNumber()}function I2(e,t){return Z(e).toHex(t)}function $i(e,t){return Z(e).toBytes(t)}function B8(...e){return e.reduce((t,n)=>Z(n).gt(t)?Z(n):t,Z(0))}function q8(...e){return Z(Math.ceil(e.reduce((t,n)=>Z(t).mul(n),Z(1)).toNumber()))}const j8="strings/5.7.0",M2=new Fe(j8);var Fc;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Fc||(Fc={}));var Kn;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(Kn||(Kn={}));function z8(e,t,n,r,i){return M2.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)}function N2(e,t,n,r,i){if(e===Kn.BAD_PREFIX||e===Kn.UNEXPECTED_CONTINUE){let s=0;for(let o=t+1;o<n.length&&n[o]>>6===2;o++)s++;return s}return e===Kn.OVERRUN?n.length-t-1:0}function G8(e,t,n,r,i){return e===Kn.OVERLONG?(r.push(i),0):(r.push(65533),N2(e,t,n))}const Q8=Object.freeze({error:z8,ignore:N2,replace:G8});function H8(e,t){t==null&&(t=Q8.error),e=ce(e);const n=[];let r=0;for(;r<e.length;){const i=e[r++];if(i>>7===0){n.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?r+=t(Kn.UNEXPECTED_CONTINUE,r-1,e,n):r+=t(Kn.BAD_PREFIX,r-1,e,n);continue}if(r-1+s>=e.length){r+=t(Kn.OVERRUN,r-1,e,n);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l<s;l++){let d=e[r];if((d&192)!=128){r+=t(Kn.MISSING_CONTINUE,r,e,n),a=null;break}a=a<<6|d&63,r++}if(a!==null){if(a>1114111){r+=t(Kn.OUT_OF_RANGE,r-1-s,e,n,a);continue}if(a>=55296&&a<=57343){r+=t(Kn.UTF16_SURROGATE,r-1-s,e,n,a);continue}if(a<=o){r+=t(Kn.OVERLONG,r-1-s,e,n,a);continue}n.push(a)}}return n}function ih(e,t=Fc.current){t!=Fc.current&&(M2.checkNormalize(),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i<128)n.push(i);else if(i<2048)n.push(i>>6|192),n.push(i&63|128);else if((i&64512)==55296){r++;const s=e.charCodeAt(r);if(r>=e.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128)}return ce(n)}function W8(e){return e.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function K8(e,t){return W8(H8(e,t))}const Y8="properties/5.7.0";globalThis&&globalThis.__awaiter;new Fe(Y8);function J8(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}var Qu={},Be={},eo=R2;function R2(e,t){if(!e)throw new Error(t||"Assertion failed")}R2.equal=function(t,n,r){if(t!=n)throw new Error(r||"Assertion failed: "+t+" != "+n)};var qo={exports:{}};typeof Object.create=="function"?qo.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qo.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var X8=eo,Z8=qo.exports;Be.inherits=Z8;function e7(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function t7(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=s&63|128):e7(e,i)?(s=65536+((s&1023)<<10)+(e.charCodeAt(++i)&1023),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=s&63|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=s&63|128)}else for(i=0;i<e.length;i++)n[i]=e[i]|0;return n}Be.toArray=t7;function n7(e){for(var t="",n=0;n<e.length;n++)t+=A2(e[n].toString(16));return t}Be.toHex=n7;function O2(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}Be.htonl=O2;function r7(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];t==="little"&&(i=O2(i)),n+=C2(i.toString(16))}return n}Be.toHex32=r7;function A2(e){return e.length===1?"0"+e:e}Be.zero2=A2;function C2(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Be.zero8=C2;function i7(e,t,n,r){var i=n-t;X8(i%4===0);for(var s=new Array(i/4),o=0,a=t;o<s.length;o++,a+=4){var l;r==="big"?l=e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:l=e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[o]=l>>>0}return s}Be.join32=i7;function s7(e,t){for(var n=new Array(e.length*4),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];t==="big"?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=s&255):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=s&255)}return n}Be.split32=s7;function o7(e,t){return e>>>t|e<<32-t}Be.rotr32=o7;function a7(e,t){return e<<t|e>>>32-t}
48Be.rotl32=a7;function u7(e,t){return e+t>>>0}Be.sum32=u7;function l7(e,t,n){return e+t+n>>>0}Be.sum32_3=l7;function c7(e,t,n,r){return e+t+n+r>>>0}Be.sum32_4=c7;function f7(e,t,n,r,i){return e+t+n+r+i>>>0}Be.sum32_5=f7;function d7(e,t,n,r){var i=e[t],s=e[t+1],o=r+s>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o}Be.sum64=d7;function h7(e,t,n,r){var i=t+r>>>0,s=(i<t?1:0)+e+n;return s>>>0}Be.sum64_hi=h7;function p7(e,t,n,r){var i=t+r;return i>>>0}Be.sum64_lo=p7;function m7(e,t,n,r,i,s,o,a){var l=0,d=t;d=d+r>>>0,l+=d<t?1:0,d=d+s>>>0,l+=d<s?1:0,d=d+a>>>0,l+=d<a?1:0;var v=e+n+i+o+l;return v>>>0}Be.sum64_4_hi=m7;function v7(e,t,n,r,i,s,o,a){var l=t+r+s+a;return l>>>0}Be.sum64_4_lo=v7;function y7(e,t,n,r,i,s,o,a,l,d){var v=0,y=t;y=y+r>>>0,v+=y<t?1:0,y=y+s>>>0,v+=y<s?1:0,y=y+a>>>0,v+=y<a?1:0,y=y+d>>>0,v+=y<d?1:0;var _=e+n+i+o+l+v;return _>>>0}Be.sum64_5_hi=y7;function g7(e,t,n,r,i,s,o,a,l,d){var v=t+r+s+a+d;return v>>>0}Be.sum64_5_lo=g7;function b7(e,t,n){var r=t<<32-n|e>>>n;return r>>>0}Be.rotr64_hi=b7;function w7(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}Be.rotr64_lo=w7;function E7(e,t,n){return e>>>n}Be.shr64_hi=E7;function x7(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}Be.shr64_lo=x7;var ca={},I1=Be,_7=eo;function Af(){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}ca.BlockHash=Af;Af.prototype.update=function(t,n){if(t=I1.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),this.pending.length===0&&(this.pending=null),t=I1.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};Af.prototype.digest=function(t){return this.update(this._pad()),_7(this.pending===null),this._digest(t)};Af.prototype._pad=function(){var t=this.pendingTotal,n=this._delta8,r=n-(t+this.padLength)%n,i=new Array(r+this.padLength);i[0]=128;for(var s=1;s<r;s++)i[s]=0;if(t<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=t>>>24&255,i[s++]=t>>>16&255,i[s++]=t>>>8&255,i[s++]=t&255}else for(i[s++]=t&255,i[s++]=t>>>8&255,i[s++]=t>>>16&255,i[s++]=t>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o<this.padLength;o++)i[s++]=0;return i};var fa={},ai={},S7=Be,Yr=S7.rotr32;function T7(e,t,n,r){if(e===0)return D2(t,n,r);if(e===1||e===3)return k2(t,n,r);if(e===2)return $2(t,n,r)}ai.ft_1=T7;function D2(e,t,n){return e&t^~e&n}ai.ch32=D2;function $2(e,t,n){return e&t^e&n^t&n}ai.maj32=$2;function k2(e,t,n){return e^t^n}ai.p32=k2;function I7(e){return Yr(e,2)^Yr(e,13)^Yr(e,22)}ai.s0_256=I7;function M7(e){return Yr(e,6)^Yr(e,11)^Yr(e,25)}ai.s1_256=M7;function N7(e){return Yr(e,7)^Yr(e,18)^e>>>3}ai.g0_256=N7;function R7(e){return Yr(e,17)^Yr(e,19)^e>>>10}ai.g1_256=R7;var jo=Be,O7=ca,A7=ai,Ud=jo.rotl32,Aa=jo.sum32,C7=jo.sum32_5,D7=A7.ft_1,P2=O7.BlockHash,$7=[1518500249,1859775393,2400959708,3395469782];function ei(){if(!(this instanceof ei))return new ei;P2.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}jo.inherits(ei,P2);var k7=ei;ei.blockSize=512;ei.outSize=160;ei.hmacStrength=80;ei.padLength=64;ei.prototype._update=function(t,n){for(var r=this.W,i=0;i<16;i++)r[i]=t[n+i];for(;i<r.length;i++)r[i]=Ud(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var s=this.h[0],o=this.h[1],a=this.h[2],l=this.h[3],d=this.h[4];for(i=0;i<r.length;i++){var v=~~(i/20),y=C7(Ud(s,5),D7(v,o,a,l),d,r[i],$7[v]);d=l,l=a,a=Ud(o,30),o=s,s=y}this.h[0]=Aa(this.h[0],s),this.h[1]=Aa(this.h[1],o),this.h[2]=Aa(this.h[2],a),this.h[3]=Aa(this.h[3],l),this.h[4]=Aa(this.h[4],d)};ei.prototype._digest=function(t){return t==="hex"?jo.toHex32(this.h,"big"):jo.split32(this.h,"big")};var zo=Be,P7=ca,da=ai,L7=eo,Nr=zo.sum32,F7=zo.sum32_4,U7=zo.sum32_5,V7=da.ch32,B7=da.maj32,q7=da.s0_256,j7=da.s1_256,z7=da.g0_256,G7=da.g1_256,L2=P7.BlockHash,Q7=[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,2756
vendor: 3,262 bytes, line 48
48734187,3204031479,3329325298];function ti(){if(!(this instanceof ti))return new ti;L2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Q7,this.W=new Array(64)}zo.inherits(ti,L2);var F2=ti;ti.blockSize=512;ti.outSize=256;ti.hmacStrength=192;ti.padLength=64;ti.prototype._update=function(t,n){for(var r=this.W,i=0;i<16;i++)r[i]=t[n+i];for(;i<r.length;i++)r[i]=F7(G7(r[i-2]),r[i-7],z7(r[i-15]),r[i-16]);var s=this.h[0],o=this.h[1],a=this.h[2],l=this.h[3],d=this.h[4],v=this.h[5],y=this.h[6],_=this.h[7];for(L7(this.k.length===r.length),i=0;i<r.length;i++){var T=U7(_,j7(d),V7(d,v,y),this.k[i],r[i]),M=Nr(q7(s),B7(s,o,a));_=y,y=v,v=d,d=Nr(l,T),l=a,a=o,o=s,s=Nr(T,M)}this.h[0]=Nr(this.h[0],s),this.h[1]=Nr(this.h[1],o),this.h[2]=Nr(this.h[2],a),this.h[3]=Nr(this.h[3],l),this.h[4]=Nr(this.h[4],d),this.h[5]=Nr(this.h[5],v),this.h[6]=Nr(this.h[6],y),this.h[7]=Nr(this.h[7],_)};ti.prototype._digest=function(t){return t==="hex"?zo.toHex32(this.h,"big"):zo.split32(this.h,"big")};var sh=Be,U2=F2;function ki(){if(!(this instanceof ki))return new ki;U2.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}sh.inherits(ki,U2);var H7=ki;ki.blockSize=512;ki.outSize=224;ki.hmacStrength=192;ki.padLength=64;ki.prototype._digest=function(t){return t==="hex"?sh.toHex32(this.h.slice(0,7),"big"):sh.split32(this.h.slice(0,7),"big")};var Gn=Be,W7=ca,K7=eo,Jr=Gn.rotr64_hi,Xr=Gn.rotr64_lo,V2=Gn.shr64_hi,B2=Gn.shr64_lo,zi=Gn.sum64,Vd=Gn.sum64_hi,Bd=Gn.sum64_lo,Y7=Gn.sum64_4_hi,J7=Gn.sum64_4_lo,X7=Gn.sum64_5_hi,Z7=Gn.sum64_5_lo,q2=W7.BlockHash,ex=[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,
481126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Vr(){if(!(this instanceof Vr))return new Vr;q2.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=ex,this.W=new Array(160)}Gn.inherits(Vr,q2);var j2=Vr;Vr.blockSize=1024;Vr.outSize=512;Vr.hmacStrength=192;Vr.padLength=128;Vr.prototype._prepareBlock=function(t,n){for(var r=this.W,i=0;i<32;i++)r[i]=t[n+i];for(;i<r.length;i+=2){var s=fx(r[i-4],r[i-3]),o=dx(r[i-4],r[i-3]),a=r[i-14],l=r[i-13],d=lx(r[i-30],r[i-29]),v=cx(r[i-30],r[i-29]),y=r[i-32],_=r[i-31];r[i]=Y7(s,o,a,l,d,v,y,_),r[i+1]=J7(s,o,a,l,d,v,y,_)}};Vr.prototype._update=function(t,n){this._prepareBlock(t,n);var r=this.W,i=this.h[0],s=this.h[1],o=this.h[2],a=this.h[3],l=this.h[4],d=this.h[5],v=this.h[6],y=this.h[7],_=this.h[8],T=this.h[9],M=this.h[10],A=this.h[11],k=this.h[12],N=this.h[13],R=this.h[14],C=this.h[15];K7(this.k.length===r.length);for(var U=0;U<r.length;U+=2){var B=R,F=C,z=ax(_,T),q=ux(_,T),D=tx(_,T,M,A,k),L=nx(_,T,M,A,k,N),I=this.k[U],m=this.k[U+1],p=r[U],u=r[U+1],f=X7(B,F,z,q,D,L,I,m,p,u),w=Z7(B,F,z,q,D,L,I,m,p,u);B=sx(i,s),F=ox(i,s),z=rx(i,s,o,a,l),q=ix(i,s,o,a,l,d);var E=Vd(B,F,z,q),x=Bd(B,F,z,q);R=k,C=N,k=M,N=A,M=_,A=T,_=Vd(v,y,f,w),T=Bd(y,y,f,w),v=l,y=d,l=o,d=a,o=i,a=s,i=Vd(f,w,E,x),s=Bd(f,w,E,x)}zi(this.h,0,i,s),zi(this.h,2,o,a),zi(this.h,4,l,d),zi(this.h,6,v,y),zi(this.h,8,_,T),zi(this.h,10,M,A),zi(this.h,12,k,N),zi(this.h,14,R,C)};Vr.prototype._digest=function(t){return t==="hex"?Gn.toHex32(this.h,"big"):Gn.split32(this.h,"big")};function tx(e,t,n,r,i){var s=e&n^~e&i;return s<0&&(s+=4294967296),s}function nx(e,t,n,r,i,s){var o=t&r^~t&s;return o<0&&(o+=4294967296),o}function rx(e,t,n,r,i){var s=e&n^e&i^n&i;return s<0&&(s+=4294967296),s}function ix(e,t,n,r,i,s){var o=t&r^t&s^r&s;return o<0&&(o+=4294967296),o}function sx(e,t){var n=Jr(e,t,28),r=Jr(t,e,2),i=Jr(t,e,7),s=n^r^i;return s<0&&(s+=4294967296),s}function ox(e,t){var n=Xr(e,t,28),r=Xr(t,e,2),i=Xr(t,e,7),s=n^r^i;return s<0&&(s+=4294967296),s}function ax(e,t){var n=Jr(e,t,14),r=Jr(e,t,18),i=Jr(t,e,9),s=n^r^i;return s<0&&(s+=4294967296),s}function ux(e,t){var n=Xr(e,t,14),r=Xr(e,t,18),i=Xr(t,e,9),s=n^r^i;return s<0&&(s+=4294967296),s}function lx(e,t){var n=Jr(e,t,1),r=Jr(e,t,8),i=V2(e,t,7),s=n^r^i;return s<0&&(s+=4294967296),s}function cx(e,t){var n=Xr(e,t,1),r=Xr(e,t,8),i=B2(e,t,7),s=n^r^i;return s<0&&(s+=4294967296),s}function fx(e,t){var n=Jr(e,t,19),r=Jr(t,e,29),i=V2(e,t,6),s=n^r^i;return s<0&&(s+=4294967296),s}function dx(e,t){var n=Xr(e,t,19),r=Xr(t,e,29),i=B2(e,t,6),s=n^r^i;return s<0&&(s+=4294967296),s}var oh=Be,z2=j2;function Pi(){if(!(this instanceof Pi))return new Pi;z2.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}oh.inherits(Pi,z2);var hx=Pi;Pi.blockSize=1024;Pi.outSize=384;Pi.hmacStrength=192;Pi.padLength=128;Pi.prototype._digest=function(t){return t==="hex"?oh.toHex32(this.h.slice(0,12),"big"):oh.split32(this.h.slice(0,12),"big")};fa.sha1=k7;fa.sha224=H7;fa.sha256=F2;fa.sha384=hx;fa.sha512=j2;var G2={},Ks=Be,px=ca,Rl=Ks.rotl32,M1=Ks.sum32,Ca=Ks.sum32_3,N1=Ks.sum32_4,Q2=px.BlockHash;function ni(){if(!(this instanceof ni))return new ni;Q2.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ks.inherits(ni,Q2);G2.ripemd160=ni;ni.blockSize=512;ni.outSize=160;ni.hmacStrength=192;ni.padLength=64;ni.prototype._update=function(t,n){for(var r=this.h[0],i=this.h[1],s=this.h[2],o=this.h[3],a=this.h[4],l=r,d=i,v=s,y=o,_=a,T=0;T<80;T++){var M=M1(Rl(N1(r,R1(T,i,s,o),t[yx[T]+n],mx(T)),bx[T]),a);r=a,a=o,o=Rl(s,10),s=i,i=M,M=M1(Rl(N1(l,R1(79-T,d,v,y),t[gx[T]+n],vx(T)),wx[T]),_),l=_,_=y,y=Rl(v,10),v=d,d=M}M=Ca(this.h[1],s,y),this.h[1]=Ca(this.h[2],o,_),this.h[2]=Ca(this.h[3],a,l),this.h[3]=Ca(this.h[4],r,d),this.h[4]=Ca(this.h[0],i,v),this.h[0]=M};
48ni.prototype._digest=function(t){return t==="hex"?Ks.toHex32(this.h,"little"):Ks.split32(this.h,"little")};function R1(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function mx(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function vx(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var yx=[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],gx=[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],bx=[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],wx=[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],Ex=Be,xx=eo;function Go(e,t,n){if(!(this instanceof Go))return new Go(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(Ex.toArray(t,n))}var _x=Go;Go.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),xx(t.length<=this.blockSize);for(var n=t.length;n<this.blockSize;n++)t.push(0);for(n=0;n<t.length;n++)t[n]^=54;for(this.inner=new this.Hash().update(t),n=0;n<t.length;n++)t[n]^=106;this.outer=new this.Hash().update(t)};Go.prototype.update=function(t,n){return this.inner.update(t,n),this};Go.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=Be,t.common=ca,t.sha=fa,t.ripemd=G2,t.hmac=_x,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(Qu);const Sx="sha2/5.7.0";new Fe(Sx);function Es(e){return"0x"+Qu.sha256().update(ce(e)).digest("hex")}var H2=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ru=(e,t,n)=>(H2(e,t,"read from private field"),n?n.call(e):t.get(e)),ah=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},uh=(e,t,n,r)=>(H2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Tx=new Fe(ws.FUELS),ke=class{constructor(e,t,n){this.name=e,this.type=t,this.encodedLength=n}throwError(e,t){throw Tx.throwArgumentError(e,this.name,t),new Error("unreachable")}setOffset(e){this.offset=e}},yn=class extends ke{constructor(e,t){super("array",`[${e.type}; ${t}]`,t*e.encodedLength),this.coder=e,this.length=t}encode(e){return Array.isArray(e)||this.throwError("expected array value",e),this.length!==e.length&&this.throwError("Types/values length mismatch",e),we(Array.from(e).map(t=>this.coder.encode(t)))}decode(e,t){let n=t;return[Array(this.length).fill(0).map(()=>{let r;return[r,n]=this.coder.decode(e,n),r}),n]}},ne=class extends ke{constructor(){super("b256","b256",32)}encode(e){let t;try{t=ce(e)}catch{this.throwError(`Invalid ${this.type}`,e)}return t.length!==32&&this.throwError(`Invalid ${this.type}`,e),t}decode(e,t){let n=e.slice(t,t+32);return Z(n).isZero()&&(n=new Uint8Array(32)),n.length!==32&&this.throwError("Invalid size for b256",n),[I2(n,32),t+32]}},Ix=class extends ke{constructor(){super("b512","b512",64)}encode(e){let t;try{t=ce(e)}catch{this.throwError(`Invalid ${this.type}`,e)}return t.length!==64&&this.throwError(`Invalid ${this.type}`,e),t}decode(e,t){let n=e.slice(t,t+64);return Z(n).isZero()&&(n=new Uint8Array(64)),n.length!==64&&this.throwError("Invalid size for b512",n),[I2(n,64),t+64]}},W2=class extends ke{constructor(){super("boolean","boolean",8)}encode(e){let t;try{t=$i(e?1:0)}catch{this.throwError("Invalid bool",e)}return t.length>1&&this.throwError("Invalid bool",e),$i(t,8)}decode(e,t){let n=Z(e.slice(t,t+8));return n.isZero()?[!1,t+8]:(n.eq(Z(1))||this.throwError("Invalid boolean value",n),[!0,t+8])}},Mx=class extends ke{constructor(){super("byte","byte",8)}encode(e){let t;try{t=$i(e,1)}catch{this.throwError("Invalid Byte",e)}return $i(t,8)}decode(e,t){let n=e.slice(t,t+8),r=Z(n);return r.gt(Z(255))&&this.throwError("Invalid Byte",r),[Number(r),t+8]}},Y=class extends ke{constructor(){super("u64","u64",8)}encode(e){let t;try{t=$i(e,8)}catch{this.throwError(`Invalid ${this.type}`,e)}return t}decode(e,t){let n=e.slice(t,t+8);return n=n.slice(0,8),[Z(n),t+8]}},rc,Ba,K2=class extends ke{constructor(e,t){let n=new Y,r=Object.values(t).reduce((i,s)=>Math.max(i,s.encodedLength),0);super("enum",`enum ${e}`,n.encodedLength+r),ah(this,rc,void 0),ah(this,Ba,void 0),this.name=e,this.co
48ders=t,uh(this,rc,n),uh(this,Ba,r)}encode(e){let[t,...n]=Object.keys(e);if(!t)throw new Error("A field for the case must be provided");if(n.length!==0)throw new Error("Only one field must be provided");let r=this.coders[t],i=Object.keys(this.coders).indexOf(t),s=r.encode(e[t]),o=new Uint8Array(ru(this,Ba)-r.encodedLength);return we([ru(this,rc).encode(i),o,s])}decode(e,t){let n=t,r;[r,n]=new Y().decode(e,n);let i=mr(r),s=Object.keys(this.coders)[i];if(!s)throw new Error(`Invalid caseIndex "${i}". Valid cases: ${Object.keys(this.coders)}`);let o=this.coders[s];return n+=ru(this,Ba)-o.encodedLength,[r,n]=o.decode(e,n),[{[s]:r},n]}};rc=new WeakMap,Ba=new WeakMap;var ae=class extends ke{constructor(e){switch(super("number",e,8),this.baseType=e,e){case"u8":this.length=1;break;case"u16":this.length=2;break;case"u32":default:this.length=4;break}}encode(e){let t;try{t=$i(e)}catch{this.throwError(`Invalid ${this.baseType}`,e)}return t.length>this.length&&this.throwError(`Invalid ${this.baseType}. Too many bytes.`,e),$i(t,8)}decode(e,t){let n=e.slice(t,t+8);return n=n.slice(8-this.length,8),[mr(n),t+8]}},qa,Nx=class extends ke{constructor(e){let t=(8-e)%8;t=t<0?t+8:t,super("string",`str[${e}]`,e+t),ah(this,qa,void 0),this.length=e,uh(this,qa,t)}encode(e){let t=ih(e.slice(0,this.length)),n=new Uint8Array(ru(this,qa));return we([t,n])}decode(e,t){let n=e.slice(t,t+this.length),r=K8(n),i=ru(this,qa);return[r,t+this.length+i]}};qa=new WeakMap;var Y2=class extends K2{encode(e){return super.encode(this.toSwayOption(e))}toSwayOption(e){return e!==void 0?{Some:e}:{None:[]}}decode(e,t){let[n,r]=super.decode(e,t);return[this.toOption(n),r]}toOption(e){if(e&&"Some"in e)return e.Some}},Cf=class extends ke{constructor(e,t){let n=Object.values(t).reduce((r,i)=>r+i.encodedLength,0);super("struct",`struct ${e}`,n),this.name=e,this.coders=t}encode(e){let t=Object.keys(this.coders).map(n=>{let r=this.coders[n],i=e[n];return!(r instanceof Y2)&&i==null&&this.throwError(`Invalid ${this.type}. Field "${n}" not present.`,e),r.encode(i)});return we(t)}decode(e,t){let n=t;return[Object.keys(this.coders).reduce((r,i)=>{let s=this.coders[i],o;return[o,n]=s.decode(e,n),r[i]=o,r},{}),n]}},qd=class extends ke{constructor(e){let t=e.reduce((n,r)=>n+r.encodedLength,0);super("tuple",`(${e.map(n=>n.type).join(", ")})`,t),this.coders=e}encode(e){return this.coders.length!==e.length&&this.throwError("Types/values length mismatch",{value:e}),we(this.coders.map((t,n)=>t.encode(e[n])))}decode(e,t){let n=t;return[this.coders.map(r=>{let i;return[i,n]=r.decode(e,n),i}),n]}},J2="enum Option",Rx="struct Vec",X2=/str\[(?<length>[0-9]+)\]/,lh=/\[(?<item>[\w\s\\[\]]+);\s*(?<length>[0-9]+)\]/,Z2=/^struct (?<name>\w+)$/,ew=/^enum (?<name>\w+)$/,Ox=/^\((?<items>.*)\)$/,Ax=/^generic (?<name>\w+)$/,jd=8,Cx=32,Dx=32,$x=10240,kx=104,Px=3,ic=class extends ke{constructor(e){super("struct","struct Vec",0),this.coder=e}static getBaseOffset(){return Px*8}getEncodedVectorData(e){Array.isArray(e)||this.throwError("expected array value",e);let t=Array.from(e).map(n=>this.coder.encode(n));return we(t)}encode(e){Array.isArray(e)||this.throwError("expected array value",e);let t=[],n=this.offset||0;return t.push(new Y().encode(n)),t.push(new Y().encode(e.length)),t.push(new Y().encode(e.length)),we(t)}decode(e,t){return this.throwError("unexpected Vec decode","not implemented"),[void 0,t]}};function ch(e){return e.filter(t=>(t==null?void 0:t.type)!=="()"&&t!=="()")}function Lx(e){return e.some(t=>(t==null?void 0:t.type)===J2)}function Fx(e,t,n=0){let r=[],i=e.map((a,l)=>{if(!(a instanceof ic))return{byteLength:a.encodedLength};let d=a.getEncodedVectorData(t[l]);return r.push(d),{vecByteLength:d.byteLength}}),s=r.length*ic.getBaseOffset()+n,o=e.map((a,l)=>a instanceof ic?i.reduce((d,v,y)=>"byteLength"in v?d+v.byteLength:y===0&&y===l?s:y<l?d+v.vecByteLength+s:d,0):0);return e.forEach((a,l)=>a.setOffset(o[l])),r}var Ux=class{constructor(e){this.inputs=[],this.outputs=[],this.attributes=[],this.type=e.type,this.name=e.name,this.inputs=e.inputs,this.outputs=e.outputs,this.attributes=e.attributes}};function Vx(e,t){Object.keys(t).forEach(n=>{let r=n,i=t[r];J8(e,r,i)})}var Fs=class{constructor(e){Vx(this,e),this.isParamType=!0,Object.freeze(this)}
48getSignaturePrefix(){if(this.type){if(Z2.test(this.type))return"s";if(lh.test(this.type))return"a";if(ew.test(this.type))return"e"}return""}getSignatureContent(){var e,t;let n=this.type||"";if(n==="raw untyped ptr")return"rawptr";let r=(e=lh.exec(n))==null?void 0:e.groups;if(r)return`[${this.components?this.components[0].getSighash():r.item};${r.length}]`;let i=(t=X2.exec(n))==null?void 0:t.groups;if(i)return`str[${i.length}]`;if(Array.isArray(this.components)){let s=Array.isArray(this.typeArguments)?`<${this.typeArguments.map(a=>a.getSighash()).join(",")}>`:"",o=`(${this.components.map(a=>a.getSighash()).join(",")})`;return`${s}${o}`}return n}getSighash(){let e=this.getSignaturePrefix(),t=this.getSignatureContent();return`${e}${t}`}static fromObject(e){return Fs.isParamType(e)?e:new Fs({name:e.name,type:e.type,components:e.components?e.components.map(Fs.fromObject):void 0,typeArguments:e.typeArguments?e.typeArguments.map(Fs.fromObject):void 0})}static isParamType(e){return Boolean(e==null?void 0:e.isParamType)}},tw=class extends Ux{static fromObject(e){let{inputs:t=[],outputs:n=[],attributes:r=[]}=e,i={type:"function",name:e.name,inputs:t.map(Fs.fromObject),outputs:n.map(Fs.fromObject),attributes:r};return new tw(i)}getInputsSighash(){let e=this.inputs.map(t=>t.getSighash());return`${this.name}(${e.join(",")})`}},Ol=new Fe(ws.FUELS),Uc=class{constructor(){Ol.checkNew(new.target,Uc)}getCoder(e){var t,n,r,i,s,o;switch(e.type){case"u8":case"u16":case"u32":return new ae(e.type);case"u64":case"raw untyped ptr":return new Y;case"bool":return new W2;case"byte":return new Mx;case"b256":return new ne;case"b512":return new Ix}let a=(t=lh.exec(e.type))==null?void 0:t.groups;if(a){let y=parseInt(a.length,10),_=(n=e.components)==null?void 0:n[0];if(!_)throw new Error("Expected array type to have an item component");let T=this.getCoder(_);return new yn(T,y)}let l=(r=X2.exec(e.type))==null?void 0:r.groups;if(l){let y=parseInt(l.length,10);return new Nx(y)}if(e.type===Rx&&Array.isArray(e.typeArguments)){let y=e.typeArguments[0];if(!y)throw new Error("Expected Vec type to have a type argument");let _=this.getCoder(y);return new ic(_)}let d=(i=Z2.exec(e.type))==null?void 0:i.groups;if(d&&Array.isArray(e.components)){let y=e.components.reduce((_,T)=>(_[T.name]=this.getCoder(T),_),{});return new Cf(d.name,y)}let v=(s=ew.exec(e.type))==null?void 0:s.groups;if(v&&Array.isArray(e.components)){let y=e.components.reduce((_,T)=>(_[T.name]=this.getCoder(T),_),{});return e.type===J2?new Y2(v.name,y):new K2(v.name,y)}if(((o=Ox.exec(e.type))==null?void 0:o.groups)&&Array.isArray(e.components)){let y=e.components.map(_=>this.getCoder(_));return new qd(y)}return Ol.throwArgumentError("Invalid type","type",e.type)}encode(e,t,n=0){let r=ch(e),i=t.slice();Array.isArray(t)&&r.length!==t.length&&(Lx(e)?(i.length=e.length,i.fill(void 0,t.length)):Ol.throwError("Types/values length mismatch during encode",Fe.errors.INVALID_ARGUMENT,{count:{types:e.length,nonEmptyTypes:r.length,values:t.length},value:{types:e,nonEmptyTypes:r,values:t}}));let s=r.map(l=>this.getCoder(l)),o=Fx(s,i,n),a=new qd(s).encode(i);return we([a,we(o)])}decode(e,t){let n=ce(t),r=ch(e),i=d=>{d!==n.length&&Ol.throwError("Types/values length mismatch during decode",Fe.errors.INVALID_ARGUMENT,{count:{types:e.length,nonEmptyTypes:r.length,values:n.length,newOffset:d},value:{types:e,nonEmptyTypes:r,values:n}})};if(e.length===0||r.length===0){i(n.length?8:0);return}let s=r.map(d=>this.getCoder(d)),o=new qd(s),[a,l]=o.decode(n,0);return i(l),a}},nw=e=>!Array.isArray(e),fh=class{constructor(e){this.types=e.types,this.functions=e.functions,this.loggedTypes=e.loggedTypes}parseLoggedType(e){return Fs.fromObject(this.parseInput(e.loggedType))}parseInput(e,t=new Map){let n=this.types[e.type],r,i;if(!n)throw new Error(`${e.type} not found`);if(Array.isArray(e.typeArguments)&&(i=e.typeArguments.map(s=>this.parseInput(s,t))),Array.isArray(n.typeParameters)&&Array.isArray(i)&&n.typeParameters.forEach((s,o)=>{i!=null&&i[o]&&t.set(s,i[o])}),Array.isArray(n.components)&&(r=n.components.map(s=>this.parseInput(s,t))),Ax.test(n.type)){let s=t.get(n.typeId);if(s)return{...s,name:e.name}}return{type:n.type,name:e.name,typeArguments:i,components:r}}static unflatten(e){return nw(e)?new fh(e).unflatten():e}unflattenLoggedTypes(){return this.loggedTypes.map(e=>({...e,abiFragmentType:[this.parseLoggedType(e)]}))}unflatten(){return this.functions.map(e=>({type:"function",name:e.name,inputs:(e.inputs||[]).map(t=>this.parseInput(t)),outputs:e.output?[this.parseInput(e.output)]:[],attributes:e.attributes||[]}))}},Bx=e=>{switch(e){case"u8":case"u16":case"u32":case"u64":case"bool":return!1;default:return!0}},zd=new Fe(ws.FUELS),qx=e=>{let t=[];return e.forEach(n=>
48{n.type==="function"&&t.push(tw.fromObject(n))}),t},iu=class{constructor(e){this.abi=nw(e)?new fh(e):null,this.fragments=qx(fh.unflatten(e)),this.types=this.abi?this.abi.types:[],this.loggedTypes=this.abi?this.abi.unflattenLoggedTypes():[],this.externalLoggedTypes={},this.abiCoder=new Uc,this.functions={},this.fragments.forEach(t=>{let n={};switch(t.type){case"function":n=this.functions;break;default:return}let r=t.getInputsSighash();if(n[r]){zd.warn(`duplicate definition - ${r}`);return}n[r]=t})}static getSighash(e){let t=ih(typeof e=="string"?e:e.getInputsSighash());return we([new Uint8Array(4),ce(Es(t)).slice(0,4)])}getFunction(e){if(this.functions[e])return this.functions[e];let t=Object.values(this.functions).find(n=>ue(iu.getSighash(n))===e||n.name===e);return t||zd.throwArgumentError(`function ${e} not found.`,"data",t)}decodeFunctionData(e,t){let n=typeof e=="string"?this.getFunction(e):e,r=ce(t);return ue(r.slice(0,8))!==ue(iu.getSighash(n))&&zd.throwArgumentError(`data signature does not match function ${n.name}.`,"data",ue(r)),this.abiCoder.decode(n.inputs,r.slice(16))}encodeFunctionData(e,t,n=0,r=!1){let i=typeof e=="string"?this.getFunction(e):e;if(!i)throw new Error("Fragment not found");let s=iu.getSighash(i),o=ch(i.inputs);if(o.length===0)return s;let a=this.abiCoder.encode(o,t,n);if(r)return a;let l=o.length>1||Bx(o[0].type);return we([s,new W2().encode(l),a])}decodeFunctionResult(e,t){let n=typeof e=="string"?this.getFunction(e):e,r=ce(t);return this.abiCoder.decode(n.outputs,r)}decodeLog(e,t,n){let r=(this.externalLoggedTypes[n]||this.loggedTypes).find(i=>i.logId===t);if(!(r!=null&&r.abiFragmentType))throw new Error(`Log ID - ${t} unknown`);return this.abiCoder.decode(r.abiFragmentType,e)}encodeFunctionResult(e,t){let n=typeof e=="string"?this.getFunction(e):e;if(!n)throw new Error("Fragment not found");return this.abiCoder.encode(n.outputs,t)}updateExternalLoggedTypes(e,t){this.externalLoggedTypes[e]=t}},jx=class{},rw=class{},zx=class{},Gx=class extends zx{},O1=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Vc,Vp="Node";typeof globalThis<"u"&&globalThis.crypto&&(Vc=globalThis.crypto,Vp="Web");if(!Vc&&typeof O1=="function")try{Vc=O1("crypto"),Vp="Node"}catch(e){console.error("keystore expects a standard Web browser or Node environment.",e)}var A1=Vc,iw=Vp;function Qx(e,t="base64"){return iw==="Node"?Buffer.from(e,t):t==="utf-8"?new TextEncoder().encode(e):new Uint8Array(atob(e).split("").map(n=>n.charCodeAt(0)))}var dh=e=>iw==="Node"?A1.randomBytes(e):A1.getRandomValues(new Uint8Array(e)),Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Qo=Ru.bech32m=Ru.bech32=void 0;const Bc="qpzry9x8gf2tvdw0s3jn54khce6mua7l",sw={};for(let e=0;e<Bc.length;e++){const t=Bc.charAt(e);sw[t]=e}function Co(e){const t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function C1(e){let t=1;for(let n=0;n<e.length;++n){const r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=Co(t)^r>>5}t=Co(t);for(let n=0;n<e.length;++n){const r=e.charCodeAt(n);t=Co(t)^r&31}return t}function Bp(e,t,n,r){let i=0,s=0;const o=(1<<n)-1,a=[];for(let l=0;l<e.length;++l)for(i=i<<t|e[l],s+=t;s>=n;)s-=n,a.push(i>>s&o);if(r)s>0&&a.push(i<<n-s&o);else{if(s>=t)return"Excess padding";if(i<<n-s&o)return"Non-zero padding"}return a}function Hx(e){return Bp(e,8,5,!0)}function Wx(e){const t=Bp(e,5,8,!1);if(Array.isArray(t))return t}function Kx(e){const t=Bp(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function ow(e){let t;e==="bech32"?t=1:t=734539939;function n(o,a,l){if(l=l||90,o.length+7+a.length>l)throw new TypeError("Exceeds length limit");o=o.toLowerCase();let d=C1(o);if(typeof d=="string")throw new Error(d);let v=o+"1";for(let y=0;y<a.length;++y){const _=a[y];if(_>>5!==0)throw new Error("Non 5-bit word");d=Co(d)^_,v+=Bc.charAt(_)}for(let y=0;y<6;++y)d=Co(d);d^=t;for(let y=0;y<6;++y){const _=d>>
48(5-y)*5&31;v+=Bc.charAt(_)}return v}function r(o,a){if(a=a||90,o.length<8)return o+" too short";if(o.length>a)return"Exceeds length limit";const l=o.toLowerCase(),d=o.toUpperCase();if(o!==l&&o!==d)return"Mixed-case string "+o;o=l;const v=o.lastIndexOf("1");if(v===-1)return"No separator character for "+o;if(v===0)return"Missing prefix for "+o;const y=o.slice(0,v),_=o.slice(v+1);if(_.length<6)return"Data too short";let T=C1(y);if(typeof T=="string")return T;const M=[];for(let A=0;A<_.length;++A){const k=_.charAt(A),N=sw[k];if(N===void 0)return"Unknown character "+k;T=Co(T)^N,!(A+6>=_.length)&&M.push(N)}return T!==t?"Invalid checksum for "+o:{prefix:y,words:M}}function i(o,a){const l=r(o,a);if(typeof l=="object")return l}function s(o,a){const l=r(o,a);if(typeof l=="object")return l;throw new Error(l)}return{decodeUnsafe:i,decode:s,encode:n,toWords:Hx,fromWordsUnsafe:Wx,fromWords:Kx}}Ru.bech32=ow("bech32");Qo=Ru.bech32m=ow("bech32m");var Yx=new Fe(ws.FUELS),qc="fuel";function qp(e){return Qo.decode(e)}function D1(e){return Qo.encode(qc,Qo.toWords(ce(ue(e))))}function sc(e){return typeof e=="string"&&e.indexOf(qc+1)===0&&qp(e).prefix===qc}function Jx(e){return(e.length===66||e.length===64)&&/(0x)?[0-9a-f]{64}$/i.test(e)}function Xx(e){return(e.length===130||e.length===128)&&/(0x)?[0-9a-f]{128}$/i.test(e)}function aw(e){return new Uint8Array(Qo.fromWords(qp(e).words))}function Zx(e){return sc(e)||Yx.throwArgumentError("Invalid Bech32 Address","address",e),ue(aw(e))}function e9(e){let{words:t}=qp(e);return Qo.encode(qc,t)}var ja=e=>e instanceof rw?e.address:e instanceof Gx?e.id:e,t9=()=>ue(dh(32)),$1=new Fe(ws.FUELS),zt=class extends jx{constructor(e){super(),$1.checkNew(new.target,zt),this.bech32Address=e9(e),sc(this.bech32Address)||$1.throwArgumentError("Invalid Bech32 Address","address",e)}toAddress(){return this.bech32Address}toB256(){return Zx(this.bech32Address)}toBytes(){return aw(this.bech32Address)}toHexString(){return this.toB256()}toString(){return this.bech32Address}toJSON(){return this.toString()}valueOf(){return this.toString()}equals(e){return this.bech32Address===e.bech32Address}static fromPublicKey(e){let t=Es(e);return new zt(D1(t))}static fromB256(e){return new zt(D1(e))}static fromRandom(){return this.fromB256(t9())}static fromString(e){return sc(e)?new zt(e):this.fromB256(e)}static fromAddressOrString(e){return typeof e=="string"?this.fromString(e):e}static fromDynamicInput(e){if(typeof e!="string"&&"toB256"in e)return zt.fromB256(e.toB256());if(Xx(e))return zt.fromPublicKey(e);if(sc(e))return new zt(e);if(Jx(e))return zt.fromB256(e);throw new Error("Unknown address format: only Bech32, B256, or Public Key (512) supported")}},Xt="0x0000000000000000000000000000000000000000000000000000000000000000",cs=Xt,uw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Al=(e,t,n)=>(uw(e,t,"read from private field"),n?n.call(e):t.get(e)),n9=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},r9=(e,t,n,r)=>(uw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cs,vt=class extends ke{constructor(e){let t=(8-e%8)%8,n=e+t;super("ByteArray",`[u64; ${n/4}]`,n),n9(this,Cs,void 0),this.length=e,r9(this,Cs,t)}encode(e){let t=[],n=ce(e);return t.push(n),Al(this,Cs)&&t.push(new Uint8Array(Al(this,Cs))),we(t)}decode(e,t){let n,r=t;[n,r]=[ue(e.slice(r,r+this.length)),r+this.length];let i=n;return Al(this,Cs)&&([n,r]=[null,r+Al(this,Cs)]),[i,r]}};Cs=new WeakMap;var Ho=class extends Cf{constructor(){super("TxPointer",{blockHeight:new ae("u32"),txIndex:new ae("u16")})}},jc=class extends Cf{constructor(){super("UtxoId",{transactionId:new ne,outputIndex:new ae("u8")})}},gn=(e=>(e[e.Coin=0]="Coin",e[e.Contract=1]="Contract",e[e.Message=2]="Message",e))(gn||{}),k1=class extends ke{constructor(){super("InputCoin","struct InputCoin",0)}encode(e){let t=[];return t.push(new jc().encode(e.utxoID)),t.push(new ne().encode(e.owner)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),t.push(new Ho().encode(e.txPointer)),t.push(new ae("u8").encode(e.witnessIndex)),t.push(new ae("u32").encode(e.maturity)
48),t.push(new ae("u16").encode(e.predicateLength)),t.push(new ae("u16").encode(e.predicateDataLength)),t.push(new vt(e.predicateLength).encode(e.predicate)),t.push(new vt(e.predicateDataLength).encode(e.predicateData)),we(t)}decode(e,t){let n,r=t;[n,r]=new jc().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new ne().decode(e,r);let a=n;[n,r]=new Ho().decode(e,r);let l=n;[n,r]=new ae("u8").decode(e,r);let d=Number(n);[n,r]=new ae("u32").decode(e,r);let v=n;[n,r]=new ae("u16").decode(e,r);let y=n;[n,r]=new ae("u16").decode(e,r);let _=n;[n,r]=new vt(y).decode(e,r);let T=n;return[n,r]=new vt(_).decode(e,r),[{type:0,utxoID:i,owner:s,amount:o,assetId:a,txPointer:l,witnessIndex:d,maturity:v,predicateLength:y,predicateDataLength:_,predicate:T,predicateData:n},r]}},P1=class extends ke{constructor(){super("InputContract","struct InputContract",0)}encode(e){let t=[];return t.push(new jc().encode(e.utxoID)),t.push(new ne().encode(e.balanceRoot)),t.push(new ne().encode(e.stateRoot)),t.push(new Ho().encode(e.txPointer)),t.push(new ne().encode(e.contractID)),we(t)}decode(e,t){let n,r=t;[n,r]=new jc().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new ne().decode(e,r);let o=n;[n,r]=new Ho().decode(e,r);let a=n;return[n,r]=new ne().decode(e,r),[{type:1,utxoID:i,balanceRoot:s,stateRoot:o,txPointer:a,contractID:n},r]}},Ou=class extends ke{constructor(){super("InputMessage","struct InputMessage",0)}static getMessageId(e){let t=[];return t.push(new vt(32).encode(e.sender)),t.push(new vt(32).encode(e.recipient)),t.push(new Y().encode(e.nonce)),t.push(new Y().encode(e.amount)),t.push(new vt(e.dataLength).encode(e.data)),Es(we(t))}encode(e){let t=[],n=new vt(e.dataLength).encode(e.data),r=Ou.getMessageId(e);return t.push(new vt(32).encode(r)),t.push(new vt(32).encode(e.sender)),t.push(new vt(32).encode(e.recipient)),t.push(new Y().encode(e.amount)),t.push(new Y().encode(e.nonce)),t.push(new ae("u8").encode(e.witnessIndex)),t.push(new ae("u16").encode(n.length)),t.push(new ae("u16").encode(e.predicateLength)),t.push(new ae("u16").encode(e.predicateDataLength)),t.push(n),t.push(new vt(e.predicateLength).encode(e.predicate)),t.push(new vt(e.predicateDataLength).encode(e.predicateData)),we(t)}static decodeData(e){let t=ce(e),n=t.length,[r]=new vt(n).decode(t,0);return ce(r)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new Y().decode(e,r);let a=n;[n,r]=new ae("u8").decode(e,r);let l=Number(n);[n,r]=new ae("u16").decode(e,r);let d=n;[n,r]=new ae("u16").decode(e,r);let v=n;[n,r]=new ae("u16").decode(e,r);let y=n;[n,r]=new vt(d).decode(e,r);let _=n;[n,r]=new vt(v).decode(e,r);let T=n;return[n,r]=new vt(y).decode(e,r),[{type:2,sender:i,recipient:s,amount:o,witnessIndex:l,nonce:a,data:_,dataLength:d,predicateLength:v,predicateDataLength:y,predicate:T,predicateData:n},r]}},zc=class extends ke{constructor(){super("Input","struct Input",0)}encode(e){let t=[];switch(t.push(new ae("u8").encode(e.type)),e.type){case 0:{t.push(new k1().encode(e));break}case 1:{t.push(new P1().encode(e));break}case 2:{t.push(new Ou().encode(e));break}default:throw new Error("Invalid Input type")}return we(t)}decode(e,t){let n,r=t;switch([n,r]=new ae("u8").decode(e,r),n){case 0:return[n,r]=new k1().decode(e,r),[n,r];case 1:return[n,r]=new P1().decode(e,r),[n,r];case 2:return[n,r]=new Ou().decode(e,r),[n,r];default:throw new Error("Invalid Input type")}}},rt=(e=>(e[e.Coin=0]="Coin",e[e.Contract=1]="Contract",e[e.Message=2]="Message",e[e.Change=3]="Change",e[e.Variable=4]="Variable",e[e.ContractCreated=5]="ContractCreated",e))(rt||{}),L1=class extends ke{constructor(){super("OutputCoin","struct OutputCoin",0)}encode(e){let t=[];return t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;return[n,r]=new ne().decode(e,r),[{type:0,to:i,amount:s,assetId:n},r]}},F1=class extends ke{constructor(){super("OutputContract","struct OutputContract",0)}encode(e){let t=[];return t.push(new ae("u8").encode(e.inputIndex)),t.push(new ne().encode(e.balanceRoot)),t.push(new ne().encode(e.stateRoot)),we(t)}decode(e,t){let n,r=t;[n,r]=new ae("u8").decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;return[n,r]=new ne().decode(e,r),[{type:1,inputIndex:i,balanceRoot:s,stateRoot:n},r]}},U1=class extends ke{constructor(){super("OutputMessage","struct OutputMessage",0)}encode(e){let t=[];return t.push(new ne().encode(e.recipient)),t.push(new Y().encode(e.amount)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;return[n,r]=new Y().decode(e,r),[{type:2,recipient:i,amount:n},r]}},V1=class extends ke{constructor(){super("OutputChange","struct OutputChange",0)}encode(e){let t=[];return t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;return[n,r]=new ne().decode(e,r),[{type:3,to:i,amount:s,assetId:n},r]}},B1=class extends ke{constructor(){super("OutputVariable","struct OutputVariable",0)}encode(e){let t=[];return t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;return[n,r]=new ne().decode(e,r),[{type:4,to:i,amount:s,assetId:n},r]}},q1=class extends ke{constructor(){super("OutputContractCreated","struct OutputContractCreated",0)}encode(e){let t=[];return t.push(new ne().encode(e.contractId)),t.push(new ne().encode(e.stateRoot)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;return[n,r]=new ne().decode(e,r),[{type:5,contractId:i,stateRoot:n},r]}},Wo=class extends ke{constructor(){super("Output"," struct Output",0)}encode(e){let t=[];switch(t.push(new ae("u8").encode(e.type)),e.type){case 0:{t.push(new L1().encode(e));break}case 1:{t.push(new F1().encode(e));break}case 2:{t.push(new U1().encode(e));break}case 3:{t.push(new V1().encode(e));break}case 4:{t.push(new B1().encode(e));break}case 5:{t.push(new q1().encode(e));break}default:throw new Error("Invalid Output type")}return we(t)}decode(e,t){let n,r=t;switch([n,r]=new ae("u8").decode(e,r),n){case 0:return[n,r]=new L1().decode(e,r),[n,r];case 1:return[n,r]=new F1().decode(e,r),[n,r];case 2:return[n,r]=new U1().decode(e,r),[n,r];case 3:return[n,r]=new V1().decode(e,r),[n,r];case 4:return[n,r]=new B1().decode(e,r),[n,r];case 5:return[n,r]=new q1().decode(e,r),[n,r];default:throw new Error("Invalid Output type")}}},Ut=(e=>(e[e.Call=0]="Call",e[e.Return=1]="Return",e[e.ReturnData=2]="ReturnData",e[e.Panic=3]="Panic",e[e.Revert=4]="Revert",e[e.Log=5]="Log",e[e.LogData=6]="LogData",e[e.Transfer=7]="Transfer",e[e.TransferOut=8]="TransferOut",e[e.ScriptResult=9]="ScriptResult",e[e.MessageOut=10]="MessageOut",e))(Ut||{}),j1=class extends ke{constructor(){super("ReceiptCall","struct ReceiptCall",0)}encode(e){let t=[];return t.push(new ne().encode(e.from)),t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),t.push(new Y().encode(e.gas)),t.push(new Y().encode(e.param1)),t.push(new Y().encode(e.param2)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new ne().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;[n,r]=new Y().decode(e,r);let d=n;[n,r]=new Y().decode(e,r);let v=n;[n,r]=new Y().decode(e,r);let y=n;return[n,r]=new Y().decode(e,r),[{type:0,from:i,to:s,amount:o,assetId:a,gas:l,param1:d,param2:v,pc:y,is:n},r]}},z1=class extends ke{constructor(){super("ReceiptReturn","struct ReceiptReturn",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.val)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;return[n,r]=new Y().decode(e,r),[{type:1,id:i,val:s,pc:o,is:n},r]}},G1=class extends ke{constructor(){super("ReceiptReturnData","struct ReceiptReturnData",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.ptr)),t.push(new Y().encode(e.len)),t.push(new ne().encode(e.digest)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new ne().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;return[n,r]=new Y().decode(e,r),[{type:2,id:i,ptr:s,len:o,digest:a,pc:l,is:n},r]}},Q1=class extends ke{constructor(){super("ReceiptPanic","struct ReceiptPanic",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.reason)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),t.push(new ne().encode(e.contractId)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new Y().decode(e,r);let a=n;return[n,r]=new ne().decode(e,r),[{type:3,id:i,reason:s,pc:o,is:a,contractId:n},r]}},H1=class extends ke{constructor(){super("ReceiptRevert","struct ReceiptRevert",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.val)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;return[n,r]=new Y().decode(e,r),[{type:4,id:i,val:s,pc:o,is:n},r]}},W1=class extends ke{constructor(){super("ReceiptLog","struct ReceiptLog",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.val0)),t.push(new Y().encode(e.val1)),t.push(new Y().encode(e.val2)),t.push(new Y().encode(e.val3)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new Y().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;[n,r]=new Y().decode(e,r);let d=n;return[n,r]=new Y().decode(e,r),[{type:5,id:i,val0:s,val1:o,val2:a,val3:l,pc:d,is:n},r]}},K1=class extends ke{constructor(){super("ReceiptLogData","struct ReceiptLogData",0)}encode(e){let t=[];return t.push(new ne().encode(e.id)),t.push(new Y().encode(e.val0)),t.push(new Y().encode(e.val1)),t.push(new Y().encode(e.ptr)),t.push(new Y().encode(e.len)),t.push(new ne().encode(e.digest)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new Y().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;[n,r]=new ne().decode(e,r);let d=n;[n,r]=new Y().decode(e,r);let v=n;return[n,r]=new Y().decode(e,r),[{type:6,id:i,val0:s,val1:o,ptr:a,len:l,digest:d,pc:v,is:n},r]}},Y1=class extends ke{constructor(){super("ReceiptTransfer","struct ReceiptTransfer",0)}encode(e){let t=[];return t.push(new ne().encode(e.from)),t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new ne().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;return[n,r]=new Y().decode(e,r),[{type:7,from:i,to:s,amount:o,assetId:a,pc:l,is:n},r]}},J1=class extends ke{constructor(){super("ReceiptTransferOut","struct ReceiptTransferOut",0)}encode(e){let t=[];return t.push(new ne().encode(e.from)),t.push(new ne().encode(e.to)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.assetId)),t.push(new Y().encode(e.pc)),t.push(new Y().encode(e.is)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new Y().decode(e,r);let o=n;[n,r]=new ne().decode(e,r);let a=n;[n,r]=new Y().decode(e,r);let l=n;return[n,r]=new Y().decode(e,r),[{type:8,from:i,to:s,amount:o,assetId:a,pc:l,is:n},r]}},X1=class extends ke{constructor(){super("ReceiptScriptResult","struct ReceiptScriptResult",0)}encode(e){let t=[];return t.push(new Y().encode(e.result)),t.push(new Y().encode(e.gasUsed)),we(t)}decode(e,t){let n,r=t;[n,r]=new Y().decode(e,r);let i=n;return[n,r]=new Y().decode(e,r),[{type:9,result:i,gasUsed:n},r]}},Z1=class extends ke{constructor(){super("ReceiptMessageOut","struct ReceiptMessageOut",0)}encode(e){let t=[];return t.push(new ne().encode(e.messageID)),t.push(new ne().encode(e.sender)),t.push(new ne().encode(e.recipient)),t.push(new Y().encode(e.amount)),t.push(new ne().encode(e.nonce)),t.push(new ae("u16").encode(e.data.length)),t.push(new ne().encode(e.digest)),t.push(new vt(e.data.length).encode(e.data)),we(t)}decode(e,t){let n,r=t;[n,r]=new ne().decode(e,r);let i=n;[n,r]=new ne().decode(e,r);let s=n;[n,r]=new ne().decode(e,r);let o=n;[n,r]=new Y().decode(e,r);let a=n;[n,r]=new ne().decode(e,r);let l=n;[n,r]=new ae("u16").decode(e,r);let d=n;[n,r]=new ne().decode(e,r);let v=n;[n,r]=new vt(d).decode(e,r);let y=ce(n);return[{type:10,messageID:i,sender:s,recipient:o,amount:a,nonce:l,digest:v,data:y},r]}},lw=class extends ke{constructor(){super("Receipt","struct Receipt",0)}encode(e){let t=[];switch(t.push(new ae("u8").encode(e.type)),e.type){case 0:{t.push(new j1().encode(e));break}case 1:{t.push(new z1().encode(e));break}case 2:{t.push(new G1().encode(e));break}case 3:{t.push(new Q1().encode(e));break}case 4:{t.push(new H1().encode(e));break}case 5:{t.push(new W1().encode(e));break}case 6:{t.push(new K1().encode(e));break}case 7:{t.push(new Y1().encode(e));break}case 8:{t.push(new J1().encode(e));break}case 9:{t.push(new X1().encode(e));break}case 10:{t.push(new Z1().encode(e));break}default:throw new Error("Invalid Receipt type")}return we(t)}decode(e,t){let n,r=t;switch([n,r]=new ae("u8").decode(e,r),n){case 0:return[n,r]=new j1().decode(e,r),[n,r];case 1:return[n,r]=new z1().decode(e,r),[n,r];case 2:return[n,r]=new G1().decode(e,r),[n,r];case 3:return[n,r]=new Q1().decode(e,r),[n,r];case 4:return[n,r]=new H1().decode(e,r),[n,r];case 5:return[n,r]=new W1().decode(e,r),[n,r];case 6:return[n,r]=new K1().decode(e,r),[n,r];case 7:return[n,r]=new Y1().decode(e,r),[n,r];case 8:return[n,r]=new J1().decode(e,r),[n,r];case 9:return[n,r]=new X1().decode(e,r),[n,r];case 10:return[n,r]=new Z1().decode(e,r),[n,r];default:throw new Error("Invalid Receipt type")}}},ey=class extends Cf{constructor(){super("StorageSlot",{key:new ne,value:new ne})}},Gc=class extends ke{constructor(){super("Witness","unknown",0)}encode(e){let t=[];return t.push(new ae("u32").encode(e.dataLength)),t.push(new vt(e.dataLength).encode(e.data)),we(t)}decode(e,t){let n,r=t;[n,r]=new ae("u32").decode(e,r);let i=n;return[n,r]=new vt(i).decode(e,r),[{dataLength:i,data:n},r]}},Li=(e=>(e[e.Script=0]="Script",e[e.Create=1]="Create",e[e.Mint=2]="Mint",e))(Li||{}),ty=class extends ke{constructor(){super("TransactionScript","struct TransactionScript",0)}encode(e){let t=[];return t.push(new Y().encode(e.gasPrice)),t.push(new Y().encode(e.gasLim
48it)),t.push(new ae("u32").encode(e.maturity)),t.push(new ae("u16").encode(e.scriptLength)),t.push(new ae("u16").encode(e.scriptDataLength)),t.push(new ae("u8").encode(e.inputsCount)),t.push(new ae("u8").encode(e.outputsCount)),t.push(new ae("u8").encode(e.witnessesCount)),t.push(new ne().encode(e.receiptsRoot)),t.push(new vt(e.scriptLength).encode(e.script)),t.push(new vt(e.scriptDataLength).encode(e.scriptData)),t.push(new yn(new zc,e.inputsCount).encode(e.inputs)),t.push(new yn(new Wo,e.outputsCount).encode(e.outputs)),t.push(new yn(new Gc,e.witnessesCount).encode(e.witnesses)),we(t)}decode(e,t){let n,r=t;[n,r]=new Y().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new ae("u32").decode(e,r);let o=n;[n,r]=new ae("u16").decode(e,r);let a=n;[n,r]=new ae("u16").decode(e,r);let l=n;[n,r]=new ae("u8").decode(e,r);let d=n;[n,r]=new ae("u8").decode(e,r);let v=n;[n,r]=new ae("u8").decode(e,r);let y=n;[n,r]=new ne().decode(e,r);let _=n;[n,r]=new vt(a).decode(e,r);let T=n;[n,r]=new vt(l).decode(e,r);let M=n;[n,r]=new yn(new zc,d).decode(e,r);let A=n;[n,r]=new yn(new Wo,v).decode(e,r);let k=n;return[n,r]=new yn(new Gc,y).decode(e,r),[{type:0,gasPrice:i,gasLimit:s,maturity:o,scriptLength:a,scriptDataLength:l,inputsCount:d,outputsCount:v,witnessesCount:y,receiptsRoot:_,script:T,scriptData:M,inputs:A,outputs:k,witnesses:n},r]}},ny=class extends ke{constructor(){super("TransactionCreate","struct TransactionCreate",0)}encode(e){let t=[];return t.push(new Y().encode(e.gasPrice)),t.push(new Y().encode(e.gasLimit)),t.push(new ae("u32").encode(e.maturity)),t.push(new ae("u16").encode(e.bytecodeLength)),t.push(new ae("u8").encode(e.bytecodeWitnessIndex)),t.push(new ae("u16").encode(e.storageSlotsCount)),t.push(new ae("u8").encode(e.inputsCount)),t.push(new ae("u8").encode(e.outputsCount)),t.push(new ae("u8").encode(e.witnessesCount)),t.push(new ne().encode(e.salt)),t.push(new yn(new ey,e.storageSlotsCount).encode(e.storageSlots)),t.push(new yn(new zc,e.inputsCount).encode(e.inputs)),t.push(new yn(new Wo,e.outputsCount).encode(e.outputs)),t.push(new yn(new Gc,e.witnessesCount).encode(e.witnesses)),we(t)}decode(e,t){let n,r=t;[n,r]=new Y().decode(e,r);let i=n;[n,r]=new Y().decode(e,r);let s=n;[n,r]=new ae("u32").decode(e,r);let o=n;[n,r]=new ae("u16").decode(e,r);let a=n;[n,r]=new ae("u8").decode(e,r);let l=n;[n,r]=new ae("u16").decode(e,r);let d=n;[n,r]=new ae("u8").decode(e,r);let v=n;[n,r]=new ae("u8").decode(e,r);let y=n;[n,r]=new ae("u8").decode(e,r);let _=n;[n,r]=new ne().decode(e,r);let T=n;[n,r]=new yn(new ey,d).decode(e,r);let M=n;[n,r]=new yn(new zc,v).decode(e,r);let A=n;[n,r]=new yn(new Wo,y).decode(e,r);let k=n;return[n,r]=new yn(new Gc,_).decode(e,r),[{type:1,gasPrice:i,gasLimit:s,maturity:o,bytecodeLength:a,bytecodeWitnessIndex:l,storageSlotsCount:d,inputsCount:v,outputsCount:y,witnessesCount:_,salt:T,storageSlots:M,inputs:A,outputs:k,witnesses:n},r]}},ry=class extends ke{constructor(){super("TransactionMint","struct TransactionMint",0)}encode(e){let t=[];return t.push(new Ho().encode(e.txPointer)),t.push(new ae("u8").encode(e.outputsCount)),t.push(new yn(new Wo,e.outputsCount).encode(e.outputs)),we(t)}decode(e,t){let n,r=t;[n,r]=new Ho().decode(e,r);let i=n;[n,r]=new ae("u8").decode(e,r);let s=n;return[n,r]=new yn(new Wo,s).decode(e,r),[{type:2,outputsCount:s,outputs:n,txPointer:i},r]}},Au=class extends ke{constructor(){super("Transaction","struct Transaction",0)}encode(e){let t=[];switch(t.push(new ae("u8").encode(e.type)),e.type){case 0:{t.push(new ty().encode(e));break}case 1:{t.push(new ny().encode(e));break}case 2:{t.push(new ry().encode(e));break}default:throw new Error("Invalid Transaction type")}return we(t)}decode(e,t){let n,r=t;switch([n,r]=new ae("u8").decode(e,r),n){case 0:return[n,r]=new ty().decode(e,r),[n,r];case 1:return[n,r]=new ny().decode(e,r),[n,r];case 2:return[n,r]=new ry().decode(e,r),[n,r];default:throw new Error("Invalid Transaction type")}}},Qc=Z(1e8),cw=Z(1e6);Z(4);var i9="0xffffffffffff0001",Hc=function(){return Hc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Hc.apply(this,arguments)};const s9="16.6.0",o9=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function Le(e,t){if(!Boolean(e))throw new Error(t)}function nr(e){return typeof(e==null?void 0:e.then)=="function"}function rr(e){return typeof e=="object"&&e!==null}function Yt(e,t){if(!Boolean(e))throw new Error(t!=null?t:"Unexpected invariant triggered.")}const a9=/\r\n|[\n\r]/g;function Wc(e,t){let n=0,r=1;for(const i of e.body.matchAll(a9)){if(typeof i.index=="number"||Yt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function fw(e){return jp(e.source,Wc(e.source,e.start))}function jp(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=t.line===1?n:0,l=t.column+a,d=`${e.name}:${o}:${l}
49`,v=r.split(/\r\n|[\n\r]/g),y=v[i];if(y.length>120){const _=Math.floor(l/80),T=l%80,M=[];for(let A=0;A<y.length;A+=80)M.push(y.slice(A,A+80));return d+iy([[`${o} |`,M[0]],...M.slice(1,_+1).map(A=>["|",A]),["|","^".padStart(T)],["|",M[_+1]]])}return d+iy([[`${o-1} |`,v[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,v[i+1]]])}function iy(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
50`)}function u9(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}
vendor: 9,766 bytes, lines 50-56
50class H extends Error{constructor(t,...n){var r,i,s;const{nodes:o,source:a,positions:l,path:d,originalError:v,extensions:y}=u9(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=v!=null?v:void 0,this.nodes=sy(Array.isArray(o)?o:o?[o]:void 0);const _=sy((r=this.nodes)===null||r===void 0?void 0:r.map(M=>M.loc).filter(M=>M!=null));this.source=a!=null?a:_==null||(i=_[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:_==null?void 0:_.map(M=>M.start),this.locations=l&&a?l.map(M=>Wc(a,M)):_==null?void 0:_.map(M=>Wc(M.source,M.start));const T=rr(v==null?void 0:v.extensions)?v==null?void 0:v.extensions:void 0;this.extensions=(s=y!=null?y:T)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),v!=null&&v.stack?Object.defineProperty(this,"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,H):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
51
52`+fw(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
53
54`+jp(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function sy(e){return e===void 0||e.length===0?void 0:e}function l9(e){return e.toString()}function c9(e){return e.toJSON()}function rn(e,t,n){return new H(`Syntax Error: ${n}`,{source:e,positions:[t]})}class dw{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class zp{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const hw={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},f9=new Set(Object.keys(hw));function hh(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&f9.has(t)}var an;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(an||(an={}));var de;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(de||(de={}));var $;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})($||($={}));function ph(e){return e===9||e===32}function Cu(e){return e>=48&&e<=57}function pw(e){return e>=97&&e<=122||e>=65&&e<=90}function Gp(e){return pw(e)||e===95}function mw(e){return pw(e)||Cu(e)||e===95}function d9(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var s;const a=e[o],l=h9(a);l!==a.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&l<n&&(n=l))}return e.map((o,a)=>a===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function h9(e){let t=0;for(;t<e.length&&ph(e.charCodeAt(t));)++t;return t}function p9(e){if(e==="")return!0;let t=!0,n=!1,r=!0,i=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function vw(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(T=>T.length===0||ph(T.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=a||l,v=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o);let y="";const _=i&&ph(e.charCodeAt(0));return(v&&!_||s)&&(y+=`
55`),y+=n,(v||d)&&(y+=`
56`),'"""'+y+'"""'}var W;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(W||(W={}));class Qp{constructor(t){const n=new zp(W.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==W.EOF)do if(t.next)t=t.next;else{const n=m9(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===W.COMMENT);return t}}function yw(e){return e===W.BANG||e===W.DOLLAR||e===W.AMP||e===W.PAREN_L||e===W.PAREN_R||e===W.SPREAD||e===W.COLON||e===W.EQUALS||e===W.AT||e===W.BRACKET_L||e===W.BRACKET_R||e===W.BRACE_L||e===W.PIPE||e===W.BRACE_R}function ha(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Df(e,t){return gw(e.charCodeAt(t))&&bw(e.charCodeAt(t+1))}function gw(e){return e>=55296&&e<=56319}function bw(e){return e>=56320&&e<=57343}function Ys(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return W.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Jt(e,t,n,r,i){const s=e.line,o=1+n-e.lineStart;return new zp(t,n,r,s,o,i)}function m9(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return v9(e,i);case 33:return Jt(e,W.BANG,i,i+1);case 36:return Jt(e,W.DOLLAR,i,i+1);case 38:return Jt(e,W.AMP,i,i+1);case 40:return Jt(e,W.PAREN_L,i,i+1);case 41:return Jt(e,W.PAREN_R,i,i+1);
vendor: 5,016 bytes, lines 56-58
56case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Jt(e,W.SPREAD,i,i+3);break;case 58:return Jt(e,W.COLON,i,i+1);case 61:return Jt(e,W.EQUALS,i,i+1);case 64:return Jt(e,W.AT,i,i+1);case 91:return Jt(e,W.BRACKET_L,i,i+1);case 93:return Jt(e,W.BRACKET_R,i,i+1);case 123:return Jt(e,W.BRACE_L,i,i+1);case 124:return Jt(e,W.PIPE,i,i+1);case 125:return Jt(e,W.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?x9(e,i):g9(e,i)}if(Cu(s)||s===45)return y9(e,i,s);if(Gp(s))return _9(e,i);throw rn(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:ha(s)||Df(n,i)?`Unexpected character: ${Ys(e,i)}.`:`Invalid character: ${Ys(e,i)}.`)}return Jt(e,W.EOF,r,r)}function v9(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(s===10||s===13)break;if(ha(s))++i;else if(Df(n,i))i+=2;else break}return Jt(e,W.COMMENT,t,i,n.slice(t+1,i))}function y9(e,t,n){const r=e.source.body;let i=t,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),Cu(s))throw rn(e.source,i,`Invalid number, unexpected digit after 0: ${Ys(e,i)}.`)}else i=Gd(e,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=Gd(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=Gd(e,i,s),s=r.charCodeAt(i)),s===46||Gp(s))throw rn(e.source,i,`Invalid number, expected digit but got: ${Ys(e,i)}.`);return Jt(e,o?W.FLOAT:W.INT,t,i,r.slice(t,i))}function Gd(e,t,n){if(!Cu(n))throw rn(e.source,t,`Invalid number, expected digit but got: ${Ys(e,t)}.`);const r=e.source.body;let i=t+1;for(;Cu(r.charCodeAt(i));)++i;return i}function g9(e,t){const n=e.source.body,r=n.length;let i=t+1,s=i,o="";for(;i<r;){const a=n.charCodeAt(i);if(a===34)return o+=n.slice(s,i),Jt(e,W.STRING,t,i+1,o);if(a===92){o+=n.slice(s,i);const l=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?b9(e,i):w9(e,i):E9(e,i);o+=l.value,i+=l.size,s=i;continue}if(a===10||a===13)break;if(ha(a))++i;else if(Df(n,i))i+=2;else throw rn(e.source,i,`Invalid character within String: ${Ys(e,i)}.`)}throw rn(e.source,i,"Unterminated string.")}function b9(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const s=n.charCodeAt(t+i++);if(s===125){if(i<5||!ha(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|za(s),r<0)break}throw rn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function w9(e,t){const n=e.source.body,r=oy(n,t+2);if(ha(r))return{value:String.fromCodePoint(r),size:6};if(gw(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=oy(n,t+8);if(bw(i))return{value:String.fromCodePoint(r,i),size:12}}throw rn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function oy(e,t){return za(e.charCodeAt(t))<<12|za(e.charCodeAt(t+1))<<8|za(e.charCodeAt(t+2))<<4|za(e.charCodeAt(t+3))}function za(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function E9(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
57`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw rn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function x9(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,s=t+3,o=s,a="";const l=[];for(;s<r;){const d=n.charCodeAt(s);if(d===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),l.push(a);const v=Jt(e,W.BLOCK_STRING,t,s+3,d9(l).join(`
58`));return e.line+=l.length-1,e.lineStart=i,v}if(d===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(d===10||d===13){a+=n.slice(o,s),l.push(a),d===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(ha(d))++s;else if(Df(n,s))s+=2;else throw rn(e.source,s,`Invalid character within String: ${Ys(e,s)}.`)}throw rn(e.source,s,"Unterminated string.")}function _9(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(mw(s))++i;else break}return Jt(e,W.NAME,t,i,n.slice(t,i))}const S9=10,ww=2;function K(e){return $f(e,[])}function $f(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return T9(e,t);default:return String(e)}}function T9(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(I9(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:$f(r,n)}else if(Array.isArray(e))return N9(e,n);return M9(e,n)}function I9(e){return typeof e.toJSON=="function"}function M9(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>ww?"["+R9(e)+"]":"{ "+n.map(([i,s])=>i+": "+$f(s,t)).join(", ")+" }"}function N9(e,t){if(e.length===0)return"[]";if(t.length>ww)return"[Array]";const n=Math.min(S9,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push($f(e[s],t));
vendor: 11,873 bytes, line 58
58return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function R9(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const Br=function(t,n){return t instanceof n};class kf{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Le(!1,`Body must be a string. Received: ${K(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Le(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Le(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Ew(e){return Br(e,kf)}function Hu(e,t){return new Pf(e,t).parseDocument()}function xw(e,t){const n=new Pf(e,t);n.expectToken(W.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(W.EOF),r}function O9(e,t){const n=new Pf(e,t);n.expectToken(W.SOF);const r=n.parseConstValueLiteral();return n.expectToken(W.EOF),r}function A9(e,t){const n=new Pf(e,t);n.expectToken(W.SOF);const r=n.parseTypeReference();return n.expectToken(W.EOF),r}class Pf{constructor(t,n={}){const r=Ew(t)?t:new kf(t);this._lexer=new Qp(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(W.NAME);return this.node(t,{kind:$.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:$.DOCUMENT,definitions:this.many(W.SOF,this.parseDefinition,W.EOF)})}parseDefinition(){if(this.peek(W.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===W.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw rn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(W.BRACE_L))return this.node(t,{kind:$.OPERATION_DEFINITION,operation:an.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(W.NAME)&&(r=this.parseName()),this.node(t,{kind:$.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(W.NAME);switch(t.value){case"query":return an.QUERY;case"mutation":return an.MUTATION;case"subscription":return an.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(W.PAREN_L,this.parseVariableDefinition,W.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:$.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(W.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(W.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(W.DOLLAR),this.node(t,{kind:$.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:$.SELECTION_SET,selections:this.many(W.BRACE_L,this.parseSelection,W.BRACE_R)})}parseSelection(){return this.peek(W.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(W.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:$.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(W.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(W.PAREN_L,n,W.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(W.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(W.NAME)?this.node(t,{kind:$.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:$.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case W.BRACKET_L:return this.parseList(t);case W.BRACE_L:return this.parseObject(t);case W.INT:return this.advanceLexer(),this.node(n,{kind:$.INT,value:n.value});case W.FLOAT:return this.advanceLexer(),this.node(n,{kind:$.FLOAT,value:n.value});case W.STRING:case W.BLOCK_STRING:return this.parseStringLiteral();case W.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:$.BOOLEAN,value:!0});case"false":return this.node(n,{kind:$.BOOLEAN,value:!1});case"null":return this.node(n,{kind:$.NULL});default:return this.node(n,{kind:$.ENUM,value:n.value})}case W.DOLLAR:if(t)if(this.expectToken(W.DOLLAR),this._lexer.token.kind===W.NAME){const r=this._lexer.token.value;throw rn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:$.STRING,value:t.value,block:t.kind===W.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:$.LIST,values:this.any(W.BRACKET_L,n,W.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:$.OBJECT,fields:this.any(W.BRACE_L,n,W.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(W.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(W.AT),this.node(n,{kind:$.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(W.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(W.BRACKET_R),n=this.node(t,{kind:$.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(W.BANG)?this.node(t,{kind:$.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:$.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(W.STRING)||this.peek(W.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);return this.node(t,{kind:$.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(W.COLON);const r=this.parseNamedType();return this.node(t,{kind:$.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:$.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:$.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(W.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseFieldDefinition,W.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(W.COLON);const s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:$.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(W.PAREN_L,this.parseInputValueDef,W.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(W.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(W.EQUALS)&&(s=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(t,{kind:$.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:$.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:$.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(W.EQUALS)?this.delimitedMany(W.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:$.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(W.BRACE_L,this.parseEnumValueDefinition,W.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:$.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw rn(this._lexer.source,this._lexer.token.start,`${
58Cl(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:$.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseInputValueDef,W.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===W.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:$.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:$.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:$.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:$.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:$.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(W.AT);const r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:$.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(W.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(de,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new dw(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw rn(this._lexer.source,n.start,`Expected ${_w(t)}, found ${Cl(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===W.NAME&&n.value===t)this.advanceLexer();else throw rn(this._lexer.source,n.start,`Expected "${t}", found ${Cl(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===W.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t!=null?t:this._lexer.token;return rn(this._lexer.source,n.start,`Unexpected ${Cl(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==W.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw rn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Cl(e){const t=e.value;return _w(e.kind)+(t!=null?` "${t}"`:"")}function _w(e){return yw(e)?`"${e}"`:e}const C9=5;function Fi(e,t){const[n,r]=t?[e,t]:[void 0,e];
58let i=" Did you mean ";n&&(i+=n+" ");const s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}const o=s.slice(0,C9),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function ay(e){return e}function Ui(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function Zi(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function Ti(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Wu(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(Dl(i)&&Dl(s)){let o=0;do++n,o=o*10+i-mh,i=e.charCodeAt(n);while(Dl(i)&&o>0);let a=0;do++r,a=a*10+s-mh,s=t.charCodeAt(r);while(Dl(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(i<s)return-1;if(i>s)return 1;++n,++r}}return e.length-t.length}const mh=48,D9=57;function Dl(e){return!isNaN(e)&&mh<=e&&e<=D9}function xs(e,t){const n=Object.create(null),r=new $9(e),i=Math.floor(e.length*.4)+1;for(const s of t){const o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{const a=n[s]-n[o];return a!==0?a:Wu(s,o)})}class $9{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=uy(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=uy(r),s=this._inputArray;if(i.length<s.length){const v=i;i=s,s=v}const o=i.length,a=s.length;if(o-a>n)return;const l=this._rows;for(let v=0;v<=a;v++)l[0][v]=v;for(let v=1;v<=o;v++){const y=l[(v-1)%3],_=l[v%3];let T=_[0]=v;for(let M=1;M<=a;M++){const A=i[v-1]===s[M-1]?0:1;let k=Math.min(y[M]+1,_[M-1]+1,y[M-1]+A);if(v>1&&M>1&&i[v-1]===s[M-2]&&i[v-2]===s[M-1]){const N=l[(v-2)%3][M-2];k=Math.min(k,N+1)}k<T&&(T=k),_[M]=k}if(T>n)return}const d=l[o%3][a];return d<=n?d:void 0}}function uy(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function _r(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}function k9(e){return`"${e.replace(P9,L9)}"`}const P9=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function L9(e){return F9[e.charCodeAt(0)]}const F9=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],xo=Object.freeze({});function pa(e,t,n=hw){const r=new Map;for(const N of Object.values($))r.set(N,Ko(t,N));let i,s=Array.isArray(e),o=[e],a=-1,l=[],d=e,v,y;const _=[],T=[];do{a++;const N=a===o.length,R=N&&l.length!==0;if(N){if(v=T.length===0?void 0:_[_.length-1],d=y,y=T.pop(),R)if(s){d=d.slice();let U=0;for(const[B,F]of l){const z=B-U;F===null?(d.splice(z,1),U++):d[z]=F}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[U,B]of l)d[U]=B}a=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(v=s?a:o[a],d=y[v],d==null)continue;_.push(v)}let C;if(!Array.isArray(d)){var M,A;hh(d)||Le(!1,`Invalid AST Node: ${K(d)}.`);const U=N?(M=r.get(d.kind))===null||M===void 0?void 0:M.leave:(A=r.get(d.kind))===null||A===void 0?void 0:A.enter;if(C=U==null?void 0:U.call(t,d,v,y,_,T),C===xo)break;if(C===!1){if(!N){_.pop();continue}}else if(C!==void 0&&(l.push([v,C]),!N))if(hh(C))d=C;else{_.pop();continue}}if(C===void 0&&R&&l.push([v,d]),N)_.pop();else{var k;i={inArray:s,index:a,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(k=n[d.kind])!==null&&k!==void 0?k:[],a=-1,l=[],y&&T.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Hp(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values($)){let i=!1;const s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l<e.length;
58++l){const{enter:d,leave:v}=Ko(e[l],r);i||(i=d!=null||v!=null),s[l]=d,o[l]=v}if(!i)continue;const a={enter(...l){const d=l[0];for(let y=0;y<e.length;y++)if(t[y]===null){var v;const _=(v=s[y])===null||v===void 0?void 0:v.apply(e[y],l);if(_===!1)t[y]=d;else if(_===xo)t[y]=xo;else if(_!==void 0)return _}},leave(...l){const d=l[0];for(let y=0;y<e.length;y++)if(t[y]===null){var v;const _=(v=o[y])===null||v===void 0?void 0:v.apply(e[y],l);if(_===xo)t[y]=xo;else if(_!==void 0&&_!==!1)return _}else t[y]===d&&(t[y]=null)}};n[r]=a}return n}function Ko(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function U9(e,t,n){const{enter:r,leave:i}=Ko(e,t);return n?i:r}function kt(e){return pa(e,B9)}const V9=80,B9={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>oe(e.definitions,`
59
60`)},OperationDefinition:{leave(e){const t=Ue("(",oe(e.variableDefinitions,", "),")"),n=oe([e.operation,oe([e.name,t]),oe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ue(" = ",n)+Ue(" ",oe(r," "))},SelectionSet:{leave:({selections:e})=>Rr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const s=Ue("",e,": ")+t;let o=s+Ue("(",oe(n,", "),")");return o.length>V9&&(o=s+Ue(`(
61`,oc(oe(n,`
62`)),`
63)`)),oe([o,oe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ue(" ",oe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>oe(["...",Ue("on ",e),oe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ue("(",oe(n,", "),")")} on ${t} ${Ue("",oe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?vw(e):k9(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+oe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+oe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ue("(",oe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ue("",e,`
64`)+oe(["schema",oe(t," "),Rr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ue("",e,`
65`)+oe(["scalar",t,oe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ue("",e,`
66`)+oe(["type",t,Ue("implements ",oe(n," & ")),oe(r," "),Rr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ue("",e,`
67`)+t+(ly(n)?Ue(`(
68`,oc(oe(n,`
69`)),`
70)`):Ue("(",oe(n,", "),")"))+": "+r+Ue(" ",oe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ue("",e,`
71`)+oe([t+": "+n,Ue("= ",r),oe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ue("",e,`
72`)+oe(["interface",t,Ue("implements ",oe(n," & ")),oe(r," "),Rr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ue("",e,`
73`)+oe(["union",t,oe(n," "),Ue("= ",oe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ue("",e,`
74`)+oe(["enum",t,oe(n," "),Rr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ue("",e,`
75`)+oe([t,oe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ue("",e,`
76`)+oe(["input",t,oe(n," "),Rr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ue("",e,`
77`)+"directive @"+t+(ly(n)?Ue(`(
78`,oc(oe(n,`
79`)),`
80)`):Ue("(",oe(n,", "),")"))+(r?" repeatable":"")+" on "+oe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>
80oe(["extend schema",oe(e," "),Rr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>oe(["extend scalar",e,oe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>oe(["extend type",e,Ue("implements ",oe(t," & ")),oe(n," "),Rr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>oe(["extend interface",e,Ue("implements ",oe(t," & ")),oe(n," "),Rr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>oe(["extend union",e,oe(t," "),Ue("= ",oe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>oe(["extend enum",e,oe(t," "),Rr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>oe(["extend input",e,oe(t," "),Rr(n)]," ")}};function oe(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Rr(e){return Ue(`{
81`,oc(oe(e,`
82`)),`
83}`)}function Ue(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function oc(e){return Ue("  ",e.replace(/\n/g,`
84  `))}function ly(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
85`)))!==null&&t!==void 0?t:!1}function Kc(e,t){switch(e.kind){case $.NULL:return null;case $.INT:return parseInt(e.value,10);case $.FLOAT:return parseFloat(e.value);case $.STRING:case $.ENUM:case $.BOOLEAN:return e.value;case $.LIST:return e.values.map(n=>Kc(n,t));case $.OBJECT:return Zi(e.fields,n=>n.name.value,n=>Kc(n.value,t));case $.VARIABLE:return t==null?void 0:t[e.name.value]}}function or(e){if(e!=null||Le(!1,"Must provide name."),typeof e=="string"||Le(!1,"Expected name to be a string."),e.length===0)throw new H("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!mw(e.charCodeAt(t)))throw new H(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Gp(e.charCodeAt(0)))throw new H(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Sw(e){if(e==="true"||e==="false"||e==="null")throw new H(`Enum values cannot be named: ${e}`);return or(e)}function Ku(e){return ar(e)||ze(e)||Xe(e)||un(e)||en(e)||Lt(e)||Pt(e)||Se(e)}function q9(e){if(!Ku(e))throw new Error(`Expected ${K(e)} to be a GraphQL type.`);return e}function ar(e){return Br(e,si)}function j9(e){if(!ar(e))throw new Error(`Expected ${K(e)} to be a GraphQL Scalar type.`);return e}function ze(e){return Br(e,wr)}function Tw(e){if(!ze(e))throw new Error(`Expected ${K(e)} to be a GraphQL Object type.`);return e}function Xe(e){return Br(e,Yo)}function Iw(e){if(!Xe(e))throw new Error(`Expected ${K(e)} to be a GraphQL Interface type.`);return e}function un(e){return Br(e,Jo)}function z9(e){if(!un(e))throw new Error(`Expected ${K(e)} to be a GraphQL Union type.`);return e}function en(e){return Br(e,ps)}function G9(e){if(!en(e))throw new Error(`Expected ${K(e)} to be a GraphQL Enum type.`);return e}function Lt(e){return Br(e,Xo)}function Q9(e){if(!Lt(e))throw new Error(`Expected ${K(e)} to be a GraphQL Input Object type.`);return e}function Pt(e){return Br(e,bn)}function H9(e){if(!Pt(e))throw new Error(`Expected ${K(e)} to be a GraphQL List type.`);return e}function Se(e){return Br(e,Pe)}function W9(e){if(!Se(e))throw new Error(`Expected ${K(e)} to be a GraphQL Non-Null type.`);return e}function Un(e){return ar(e)||en(e)||Lt(e)||Yu(e)&&Un(e.ofType)}function K9(e){if(!Un(e))throw new Error(`Expected ${K(e)} to be a GraphQL input type.`);return e}function fs(e){return ar(e)||ze(e)||Xe(e)||un(e)||en(e)||Yu(e)&&fs(e.ofType)}function Y9(e){if(!fs(e))throw new Error(`Expected ${K(e)} to be a GraphQL output type.`);return e}function ri(e){return ar(e)||en(e)}function J9(e){if(!ri(e))throw new Error(`Expected ${K(e)} to be a GraphQL leaf type.`);return e}function ii(e){return ze(e)||Xe(e)||un(e)}function X9(e){if(!ii(e))throw new Error(`Expected ${K(e)} to be a GraphQL composite type.`);return e}function Zr(e){return Xe(e)||un(e)}function Z9(e){if(!Zr(e))throw new Error(`Expected ${K(e)} to be a GraphQL abstract type.`);return e}class bn{constructor(t){Ku(t)||Le(!1,`Expected ${K(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Pe{constructor(t){Wp(t)||Le(!1,`Expected ${K(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Yu(e){return Pt(e)||Se(e)}function e_(e){if(!Yu(e))throw new Error(`Expected ${K(e)} to be a GraphQL wrapping type.`);return e}function Wp(e){return Ku(e)&&!Se(e)}function Mw(e){if(!Wp(e))throw new Error(`Expected ${K(e)} to be a GraphQL nullable type.`);return e}function Kp(e){if(e)return Se(e)?e.ofType:e}function Ju(e){return ar(e)||ze(e)||Xe(e)||un(e)||en(e)||Lt(e)}function t_(e){if(!Ju(e))throw new Error(`Expected ${K(e)} to be a GraphQL named type.`);return e}function An(e){if(e){let t=e;for(;Yu(t);)t=t.ofType;return t}}function Yp(e){return typeof e=="function"?e():e}function Jp(e){return typeof e=="function"?e():e}class si{constructor(t){var n,r,i,s;const o=(n=t.parseValue)!==null&&n!==void 0?n:ay;this.name=or(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:ay,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,l)=>o(Kc(a,l)),this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="str
85ing"||Le(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${K(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Le(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Le(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class wr{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Rw(t),this._interfaces=()=>Nw(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Le(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${K(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Aw(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Nw(e){var t;const n=Yp((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Le(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Rw(e){const t=Jp(e.fields);return Do(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ti(t,(n,r)=>{var i;Do(n)||Le(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Le(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${K(n.resolve)}.`);const s=(i=n.args)!==null&&i!==void 0?i:{};return Do(s)||Le(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:or(r),description:n.description,type:n.type,args:Ow(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:_r(n.extensions),astNode:n.astNode}})}function Ow(e){return Object.entries(e).map(([t,n])=>({name:or(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:_r(n.extensions),astNode:n.astNode}))}function Do(e){return rr(e)&&!Array.isArray(e)}function Aw(e){return Ti(e,t=>({description:t.description,type:t.type,args:Cw(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Cw(e){return Zi(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function _s(e){return Se(e.type)&&e.defaultValue===void 0}class Yo{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Rw.bind(void 0,t),this._interfaces=Nw.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${K(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Aw(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Jo{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=n_.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${K(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function n_(e){const t=Yp(e.types);return Array.isArray(t)||Le(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ps{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=r_(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=Ui(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){const n=this._valueLookup.get(t);if(n===void 0)throw new H(`Enum "${this.name}" cannot represent value: ${K(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const r=K(t);throw new H(`Enum "${this.name}" cannot represent non-string value: ${r}.`+$l(this,r))}const n=this.getValue(t);if(n==null)throw new H(`Value "${t}" does not exist in "${this.name}" enum.`+$l(this,t));return n.value}parseLiteral(t,n){if(t.kind!==$.ENUM){const i=kt(t);throw new H(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+$l(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=kt(t);throw new H(`Value "${i}" does not exist in "${this.name}" enum.`+$l(this,i),{nodes:t})}return r.value}toConfig(){const t=Zi(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function $l(e,t){const n=e.getValues().map(i=>i.name),r=xs(t,n);return Fi("the enum value",r)}function r_(e,t){return Do(t)||Le(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Do(r)||Le(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${K(r)}.`),{name:Sw(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:_r(r.extensions),astNode:r.astNode}))}class Xo{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=i_.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=Ti(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function i_(e){const t=Jp(e.fields);return Do(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ti(t,(n,r)=>(!("resolve"in n)||Le(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:or(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:_r(n.extensions),astNode:n.astNode}))}function Lf(e){return Se(e.type)&&e.defaultValue===void 0}function Yc(e,t){return e===t?!0:Se(e)&&Se(t)||Pt(e)&&Pt(t)?Yc(e.ofType,t.ofType):!1}function Bs(e,t,n){return t===n?!0:Se(n)?Se(t)?Bs(e,t.ofType,n.ofType):!1:Se(t)?Bs(e,t.ofType,n):Pt(n)?Pt(t)?Bs(e,t.ofType,n.ofType):!1:Pt(t)?!1:Zr(n)&&(Xe(t)||ze(t))&&e.isSubType(n,t)}function vh(e,t,n){return t===n?!0:Zr(t)?Zr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):Zr(n)?e.isSubType(n,t):!1}const ac=2147483647,uc=-2147483648,Dw=new si({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Zu(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new H(`Int cannot represent non-integer value: ${K(t)}`);if(n>ac||n<uc)throw new H("Int cannot represent non 32-bit signed integer value: "+K(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new H(`Int cannot represent non-integer value: ${K(e)}`);
85if(e>ac||e<uc)throw new H(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==$.INT)throw new H(`Int cannot represent non-integer value: ${kt(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ac||t<uc)throw new H(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),$w=new si({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Zu(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new H(`Float cannot represent non numeric value: ${K(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new H(`Float cannot represent non numeric value: ${K(e)}`);return e},parseLiteral(e){if(e.kind!==$.FLOAT&&e.kind!==$.INT)throw new H(`Float cannot represent non numeric value: ${kt(e)}`,e);return parseFloat(e.value)}}),Ht=new si({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Zu(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new H(`String cannot represent value: ${K(e)}`)},parseValue(e){if(typeof e!="string")throw new H(`String cannot represent a non string value: ${K(e)}`);return e},parseLiteral(e){if(e.kind!==$.STRING)throw new H(`String cannot represent a non string value: ${kt(e)}`,{nodes:e});return e.value}}),er=new si({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Zu(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new H(`Boolean cannot represent a non boolean value: ${K(t)}`)},parseValue(e){if(typeof e!="boolean")throw new H(`Boolean cannot represent a non boolean value: ${K(e)}`);return e},parseLiteral(e){if(e.kind!==$.BOOLEAN)throw new H(`Boolean cannot represent a non boolean value: ${kt(e)}`,{nodes:e});return e.value}}),Xp=new si({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Zu(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new H(`ID cannot represent value: ${K(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new H(`ID cannot represent value: ${K(e)}`)},parseLiteral(e){if(e.kind!==$.STRING&&e.kind!==$.INT)throw new H("ID cannot represent a non-string and non-integer value: "+kt(e),{nodes:e});return e.value}}),Xu=Object.freeze([Ht,Dw,$w,er,Xp]);function Ff(e){return Xu.some(({name:t})=>e.name===t)}function Zu(e){if(rr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!rr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Uf(e){return Br(e,oi)}function s_(e){if(!Uf(e))throw new Error(`Expected ${K(e)} to be a GraphQL directive.`);return e}class oi{constructor(t){var n,r;this.name=or(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=_r(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Le(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};rr(i)&&!Array.isArray(i)||Le(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Ow(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Cw(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const Zp=new oi({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[de.FIELD,de.FRAGMENT_SPREAD,de.INLINE_FRAGMENT],args:{if:{type:new Pe(er),description:"Included when true."}}}),em=new oi({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[de.FIELD,de.FRAGMENT_SPREAD,de.INLINE_FRAGMENT],args:{if:{type:new Pe(er),description:"Skipped when true."}}}),tm="No longer supported",Vf=new oi({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[de.FIELD_DEFINITION,de.ARGUMENT_DEFINITION,de.INPUT_FIELD_DEFINITION,de.ENUM_VALUE],args:{reason:{type:Ht,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:tm}}}),nm=new oi({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[de.SCALAR],args:{url:{type:new Pe(Ht),description:"The URL that specifies the behavior of this scalar."}}}),Ss=Object.freeze([Zp,em,Vf,nm]);function rm(e){return Ss.some(({name:t})=>t===e.name)}function im(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function es(e,t){if(Se(t)){const n=es(e,t.ofType);return(n==null?void 0:n.kind)===$.NULL?null:n}if(e===null)return{kind:$.NULL};if(e===void 0)return null;if(Pt(t)){const n=t.ofType;if(im(e)){const r=[];for(const i of e){const s=es(i,n);s!=null&&r.push(s)}return{kind:$.LIST,values:r}}return es(e,n)}if(Lt(t)){if(!rr(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=es(e[r.name],r.type);i&&n.push({kind:$.OBJECT_FIELD,name:{kind:$.NAME,value:r.name},value:i})}return{kind:$.OBJECT,fields:n}}if(ri(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:$.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const r=String(n);return cy.test(r)?{kind:$.INT,value:r}:{kind:$.FLOAT,value:r}}if(typeof n=="string")return en(t)?{kind:$.ENUM,value:n}:t===Xp&&cy.test(n)?{kind:$.INT,value:n}:{kind:$.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${K(n)}.`)}Yt(!1,"Unexpected input type: "+K(t))}const cy=/^-?(?:0|[1-9][0-9]*)$/,Bf=new wr({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ht,resolve:e=>e.description}
85,types:{description:"A list of all types supported by this server.",type:new Pe(new bn(new Pe(vr))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Pe(vr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:vr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:vr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Pe(new bn(new Pe(sm))),resolve:e=>e.getDirectives()}})}),sm=new wr({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
86
87In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Pe(Ht),resolve:e=>e.name},description:{type:Ht,resolve:e=>e.description},isRepeatable:{type:new Pe(er),resolve:e=>e.isRepeatable}
87,locations:{type:new Pe(new bn(new Pe(om))),resolve:e=>e.locations},args:{type:new Pe(new bn(new Pe(el))),args:{includeDeprecated:{type:er,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),om=new ps({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:de.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:de.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:de.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:de.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:de.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:de.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:de.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:de.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:de.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:de.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:de.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:de.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:de.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:de.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:de.UNION,description:"Location adjacent to a union definition."},ENUM:{value:de.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:de.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:de.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),vr=new wr({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Pe(lm),resolve(e){if(ar(e))return it.SCALAR;if(ze(e))return it.OBJECT;if(Xe(e))return it.INTERFACE;if(un(e))return it.UNION;if(en(e))return it.ENUM;if(Lt(e))return it.INPUT_OBJECT;if(Pt(e))return it.LIST;if(Se(e))return it.NON_NULL;Yt(!1,`Unexpected type: "${K(e)}".`)}},name:{type:Ht,resolve:e=>"name"in e?e.name:void 0},description:{type:Ht,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ht,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0}
87,fields:{type:new bn(new Pe(am)),args:{includeDeprecated:{type:er,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)||Xe(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new bn(new Pe(vr)),resolve(e){if(ze(e)||Xe(e))return e.getInterfaces()}},possibleTypes:{type:new bn(new Pe(vr)),resolve(e,t,n,{schema:r}){if(Zr(e))return r.getPossibleTypes(e)}},enumValues:{type:new bn(new Pe(um)),args:{includeDeprecated:{type:er,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(en(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new bn(new Pe(el)),args:{includeDeprecated:{type:er,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Lt(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:vr,resolve:e=>"ofType"in e?e.ofType:void 0}})}),am=new wr({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Pe(Ht),resolve:e=>e.name},description:{type:Ht,resolve:e=>e.description}
87,args:{type:new Pe(new bn(new Pe(el))),args:{includeDeprecated:{type:er,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Pe(vr),resolve:e=>e.type},isDeprecated:{type:new Pe(er),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ht,resolve:e=>e.deprecationReason}})}),el=new wr({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Pe(Ht),resolve:e=>e.name},description:{type:Ht,resolve:e=>e.description},type:{type:new Pe(vr),resolve:e=>e.type},defaultValue:{type:Ht,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=es(n,t);return r?kt(r):null}},isDeprecated:{type:new Pe(er),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ht,resolve:e=>e.deprecationReason}})}),um=new wr({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Pe(Ht),resolve:e=>e.name},description:{type:Ht,resolve:e=>e.description},isDeprecated:{type:new Pe(er),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ht,resolve:e=>e.deprecationReason}})});var it;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(it||(it={}));const lm=new ps({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:it.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:it.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:it.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:it.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:it.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:it.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:it.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:it.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Du={name:"__schema",type:new Pe(Bf),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},$u={name:"__type",type:vr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Pe(Ht),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ku={name:"__typename",type:new Pe(Ht),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tl=Object.freeze([Bf,sm,om,vr,am,el,um,lm]);function to(e){return tl.some(({name:t})=>e.name===t)}function kw(e){return Br(e,ma)}function cm(e){if(!kw(e))throw new Error(`Expected ${K(e)} to be a GraphQL schema.`);return e}class ma{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,rr(t)||Le(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Le(!1,`"types" must be Array if provided but got: ${K(t.types)}.`),!t.directives||Array.isArray(t.directives)||Le(!1,`"directives" must be Array if provided but got: ${K(t.directives)}.`),this.description=t.description,this.extensions=_r(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Ss;const i=new Set(t.types);if(t.types!=null)for(const s of t.types)i.delete(s),kr(s,i);this._queryType!=null&&kr(this._queryType,i),this._mutationType!=null&&kr(this._mutationType,i),this._subscriptionType!=null&&kr(this._subscriptionType,i);for(const s of this._directives)if(Uf(s))for(const o of s.args)kr(o.type,i);kr(Bf,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const s of i){if(s==null)continue;const o=s.name;if(o||Le(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,Xe(s)){for(const a of s.getInterfaces())if(Xe(a)){let l=this._implementationsMap[a.name];l===void 0&&(l=this._implementationsMap[a.name]={objects:[],interfaces:[]}
87),l.interfaces.push(s)}}else if(ze(s)){for(const a of s.getInterfaces())if(Xe(a)){let l=this._implementationsMap[a.name];l===void 0&&(l=this._implementationsMap[a.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case an.QUERY:return this.getQueryType();case an.MUTATION:return this.getMutationType();case an.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return un(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),un(t))for(const i of t.getTypes())r[i.name]=!0;else{const i=this.getImplementations(t);for(const s of i.objects)r[s.name]=!0;for(const s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function kr(e,t){const n=An(e);if(!t.has(n)){if(t.add(n),un(n))for(const r of n.getTypes())kr(r,t);else if(ze(n)||Xe(n)){for(const r of n.getInterfaces())kr(r,t);for(const r of Object.values(n.getFields())){kr(r.type,t);for(const i of r.args)kr(i.type,t)}}else if(Lt(n))for(const r of Object.values(n.getFields()))kr(r.type,t)}return t}function fm(e){if(cm(e),e.__validationErrors)return e.__validationErrors;const t=new o_(e);a_(t),u_(t),l_(t);const n=t.getErrors();return e.__validationErrors=n,n}function dm(e){const t=fm(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
88
89`))}class o_{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new H(t,{nodes:r}))}getErrors(){return this._errors}}function a_(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!ze(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${K(n)}.`,(r=Qd(t,an.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!ze(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${K(i)}.`,(s=Qd(t,an.MUTATION))!==null&&s!==void 0?s:i.astNode)}const o=t.getSubscriptionType();if(o&&!ze(o)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${K(o)}.`,(a=Qd(t,an.SUBSCRIPTION))!==null&&a!==void 0?a:o.astNode)}}function Qd(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function u_(e){for(const n of e.schema.getDirectives()){if(!Uf(n)){e.reportError(`Expected directive but got: ${K(n)}.`,n==null?void 0:n.astNode);continue}Js(e,n);for(const r of n.args)if(Js(e,r),Un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${K(r.type)}.`,r.astNode),_s(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[hm(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Js(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function l_(e){const t=m_(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Ju(r)){e.reportError(`Expected GraphQL named type but got: ${K(r)}.`,r.astNode);continue}to(r)||Js(e,r),ze(r)||Xe(r)?(fy(e,r),dy(e,r)):un(r)?d_(e,r):en(r)?h_(e,r):Lt(r)&&(p_(e,r),t(r))}}function fy(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(Js(e,o),!fs(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${K(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(const a of o.args){const l=a.name;if(Js(e,a),!Un(a.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${K(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(_s(a)&&a.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[hm(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function dy(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!Xe(r)){e.reportError(`Type ${K(t)} must only implement Interface types, it cannot implement ${K(r)}.`,su(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,su(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,su(t,r));continue}n[r.name]=!0,f_(e,t,r),c_(e,t,r)}}function c_(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const d=l.name,v=r[d];if(!v){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Bs(e.schema,v.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${K(l.type)} but ${t.name}.${d} is type ${K(v.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=v.astNode)===null||s===void 0?void 0:s.type])}for(const y of l.args){const _=y.name,T=v.args.find(M=>M.name===_);if(!T){e.reportError(`Interface field argument ${n.name}.${d}(${_}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,v.astNode]);continue}if(!Yc(y.type,T.type)){var o,a;e.reportError(`Interface field argument ${n.name}.${d}(${_}:) expects type ${K(y.type)} but ${t.name}.${d}(${_}:) is type ${K(T.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(a=T.astNode)===null||a===void 0?void 0:a.type])}}for(const y of v.args){const _=y.name;!l.args.find(M=>M.name===_)&&_s(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${_} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function f_(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...su(n,i),...su(t,n)])}function d_(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,hy(t,i.name));continue}r[i.name]=!0,ze(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${K(i)}.`,hy(t,String(i)))}}function h_(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)Js(e,r)}function p_(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(Js(e,s),!Un(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${K(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Lf(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[hm(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}}}function m_(e){const t=Object.create(null),n=[],r=Object.create(null);return i;
89function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;const o=Object.values(s.getFields());for(const a of o)if(Se(a.type)&&Lt(a.type.ofType)){const l=a.type.ofType,d=r[l.name];if(n.push(a),d===void 0)i(l);else{const v=n.slice(d),y=v.map(_=>_.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,v.map(_=>_.astNode))}n.pop()}r[s.name]=void 0}}function su(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function hy(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function hm(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Vf.name)}function Qn(e,t){switch(t.kind){case $.LIST_TYPE:{const n=Qn(e,t.type);return n&&new bn(n)}case $.NON_NULL_TYPE:{const n=Qn(e,t.type);return n&&new Pe(n)}case $.NAMED_TYPE:return e.getType(t.name.value)}}class pm{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:v_,n&&(Un(n)&&this._inputTypeStack.push(n),ii(n)&&this._parentTypeStack.push(n),fs(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}
89getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case $.SELECTION_SET:{const i=An(this.getType());this._parentTypeStack.push(ii(i)?i:void 0);break}case $.FIELD:{const i=this.getParentType();let s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(fs(o)?o:void 0);break}case $.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case $.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(ze(i)?i:void 0);break}case $.INLINE_FRAGMENT:case $.FRAGMENT_DEFINITION:{const i=t.typeCondition,s=i?Qn(n,i):An(this.getType());this._typeStack.push(fs(s)?s:void 0);break}case $.VARIABLE_DEFINITION:{const i=Qn(n,t.type);this._inputTypeStack.push(Un(i)?i:void 0);break}case $.ARGUMENT:{var r;let i,s;const o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(a=>a.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Un(s)?s:void 0);break}case $.LIST:{const i=Kp(this.getInputType()),s=Pt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Un(s)?s:void 0);break}case $.OBJECT_FIELD:{const i=An(this.getInputType());let s,o;Lt(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(Un(s)?s:void 0);break}case $.ENUM:{const i=An(this.getInputType());let s;en(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}}}leave(t){switch(t.kind){case $.SELECTION_SET:this._parentTypeStack.pop();break;case $.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case $.DIRECTIVE:this._directive=null;break;case $.OPERATION_DEFINITION:case $.INLINE_FRAGMENT:case $.FRAGMENT_DEFINITION:this._typeStack.pop();break;case $.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case $.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $.LIST:case $.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $.ENUM:this._enumValue=null;break}}}function v_(e,t,n){const r=n.name.value;if(r===Du.name&&e.getQueryType()===t)return Du;if(r===$u.name&&e.getQueryType()===t)return $u;if(r===ku.name&&ii(t))return ku;if(ze(t)||Xe(t))return t.getFields()[r]}function mm(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Ko(t,r.kind).enter;if(i){const s=i.apply(t,n);return s!==void 0&&(e.leave(r),hh(s)&&e.enter(s)),s}},leave(...n){const r=n[0],i=Ko(t,r.kind).leave;let s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}function y_(e){return vm(e)||ym(e)||gm(e)}function vm(e){return e.kind===$.OPERATION_DEFINITION||e.kind===$.FRAGMENT_DEFINITION}function g_(e){return e.kind===$.FIELD||e.kind===$.FRAGMENT_SPREAD||e.kind===$.INLINE_FRAGMENT}function Pw(e){return e.kind===$.VARIABLE||e.kind===$.INT||e.kind===$.FLOAT||e.kind===$.STRING||e.kind===$.BOOLEAN||e.kind===$.NULL||e.kind===$.ENUM||e.kind===$.LIST||e.kind===$.OBJECT}function yh(e){return Pw(e)&&(e.kind===$.LIST?e.values.some(yh):e.kind===$.OBJECT?e.fields.some(t=>yh(t.value)):e.kind!==$.VARIABLE)}function b_(e){return e.kind===$.NAMED_TYPE||e.kind===$.LIST_TYPE||e.kind===$.NON_NULL_TYPE}function ym(e){return e.kind===$.SCHEMA_DEFINITION||va(e)||e.kind===$.DIRECTIVE_DEFINITION}function va(e){return e.kind===$.SCALAR_TYPE_DEFINITION||e.kind===$.OBJECT_TYPE_DEFINITION||e.kind===$.INTERFACE_TYPE_DEFINITION||e.kind===$.UNION_TYPE_DEFINITION||e.kind===$.ENUM_TYPE_DEFINITION||e.kind===$.INPUT_OBJECT_TYPE_DEFINITION}function gm(e){return e.kind===$.SCHEMA_EXTENSION||qf(e)}function qf(e){return e.kind===$.SCALAR_TYPE_EXTENSION||e.kind===$.OBJECT_TYPE_EXTENSION||e.kind===$.INTERFACE_TYPE_EXTENSION||e.kind===$.UNION_TYPE_EXTENSION||e.kind===$.ENUM_TYPE_EXTENSION||e.kind===$.INPUT_OBJECT_TYPE_EXTENSION}function Lw(e){return{Document(t){for(const n of t.definitions)if(!vm(n)){const r=n.kind===$.SCHEMA_DEFINITION||n.kind===$.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new H(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function Fw(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),s=t.name.value;let o=Fi("to use an inline fragment on",w_(i,n,s));o===""&&(o=Fi(E_(n,s))),e.reportError(new H(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}
89function w_(e,t,n){if(!Zr(t))return[];const r=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(!!o.getFields()[n]){r.add(o),i[o.name]=1;for(const a of o.getInterfaces()){var s;!a.getFields()[n]||(r.add(a),i[a.name]=((s=i[a.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,a)=>{const l=i[a.name]-i[o.name];return l!==0?l:Xe(o)&&e.isSubType(o,a)?-1:Xe(a)&&e.isSubType(a,o)?1:Wu(o.name,a.name)}).map(o=>o.name)}function E_(e,t){if(ze(e)||Xe(e)){const n=Object.keys(e.getFields());return xs(t,n)}return[]}function Uw(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=Qn(e.getSchema(),n);if(r&&!ii(r)){const i=kt(n);e.reportError(new H(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Qn(e.getSchema(),t.typeCondition);if(n&&!ii(n)){const r=kt(t.typeCondition);e.reportError(new H(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function Vw(e){return{...Bw(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const s=t.name.value,o=r.args.map(l=>l.name),a=xs(s,o);e.reportError(new H(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+Fi(a),{nodes:t}))}}}}function Bw(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ss;for(const o of r)t[o.name]=o.args.map(a=>a.name);const i=e.getDocument().definitions;for(const o of i)if(o.kind===$.DIRECTIVE_DEFINITION){var s;const a=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=a.map(l=>l.name.value)}return{Directive(o){const a=o.name.value,l=t[a];if(o.arguments&&l)for(const d of o.arguments){const v=d.name.value;if(!l.includes(v)){const y=xs(v,l);e.reportError(new H(`Unknown argument "${v}" on directive "@${a}".`+Fi(y),{nodes:d}))}}return!1}}}function bm(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ss;for(const s of r)t[s.name]=s.locations;const i=e.getDocument().definitions;for(const s of i)s.kind===$.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,a,l,d){const v=s.name.value,y=t[v];if(!y){e.reportError(new H(`Unknown directive "@${v}".`,{nodes:s}));return}const _=x_(d);_&&!y.includes(_)&&e.reportError(new H(`Directive "@${v}" may not be used on ${_}.`,{nodes:s}))}}}function x_(e){const t=e[e.length-1];switch("kind"in t||Yt(!1),t.kind){case $.OPERATION_DEFINITION:return __(t.operation);case $.FIELD:return de.FIELD;case $.FRAGMENT_SPREAD:return de.FRAGMENT_SPREAD;case $.INLINE_FRAGMENT:return de.INLINE_FRAGMENT;case $.FRAGMENT_DEFINITION:return de.FRAGMENT_DEFINITION;case $.VARIABLE_DEFINITION:return de.VARIABLE_DEFINITION;case $.SCHEMA_DEFINITION:case $.SCHEMA_EXTENSION:return de.SCHEMA;case $.SCALAR_TYPE_DEFINITION:case $.SCALAR_TYPE_EXTENSION:return de.SCALAR;case $.OBJECT_TYPE_DEFINITION:case $.OBJECT_TYPE_EXTENSION:return de.OBJECT;case $.FIELD_DEFINITION:return de.FIELD_DEFINITION;case $.INTERFACE_TYPE_DEFINITION:case $.INTERFACE_TYPE_EXTENSION:return de.INTERFACE;case $.UNION_TYPE_DEFINITION:case $.UNION_TYPE_EXTENSION:return de.UNION;case $.ENUM_TYPE_DEFINITION:case $.ENUM_TYPE_EXTENSION:return de.ENUM;case $.ENUM_VALUE_DEFINITION:return de.ENUM_VALUE;case $.INPUT_OBJECT_TYPE_DEFINITION:case $.INPUT_OBJECT_TYPE_EXTENSION:return de.INPUT_OBJECT;case $.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||Yt(!1),n.kind===$.INPUT_OBJECT_TYPE_DEFINITION?de.INPUT_FIELD_DEFINITION:de.ARGUMENT_DEFINITION}default:Yt(!1,"Unexpected kind: "+K(t.kind))}}function __(e){switch(e){case an.QUERY:return de.QUERY;case an.MUTATION:return de.MUTATION;case an.SUBSCRIPTION:return de.SUBSCRIPTION}}function qw(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new H(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function wm(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const s of e.getDocument().definitions)va(s)&&(r[s.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,a,l,d){const v=s.name.value;if(!n[v]&&!r[v]){var y;const _=(y=d[2])!==null&&y!==void 0?y:a,T=_!=null&&S_(_);if(T&&py.includes(v))return;const M=xs(v,T?py.concat(i):i);e.reportError(new H(`Unknown type "${v}".`+Fi(M),{nodes:s}))}}}}const py=[...Xu,...tl].map(e=>e.name);function S_(e){return"kind"in e&&(ym(e)||gm(e))}function jw(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===$.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new H("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function zw(e){var t,n,r;const i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let o=0;
89return{SchemaDefinition(a){if(s){e.reportError(new H("Cannot define a new schema within a schema extension.",{nodes:a}));return}o>0&&e.reportError(new H("Must provide only one schema definition.",{nodes:a})),++o}}}function Gw(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;const o=s.name.value;t[o]=!0;const a=e.getFragmentSpreads(s.selectionSet);if(a.length!==0){r[o]=n.length;for(const l of a){const d=l.name.value,v=r[d];if(n.push(l),v===void 0){const y=e.getFragment(d);y&&i(y)}else{const y=n.slice(v),_=y.slice(0,-1).map(T=>'"'+T.name.value+'"').join(", ");e.reportError(new H(`Cannot spread fragment "${d}" within itself`+(_!==""?` via ${_}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}function Qw(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const s=i.name.value;t[s]!==!0&&e.reportError(new H(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function Hw(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(const i of n){const s=i.name.value;r[s]!==!0&&e.reportError(new H(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function Ww(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:s}of i)r[s.name.value]=!0;for(const s of t){const o=s.variable.name.value;r[o]!==!0&&e.reportError(new H(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function jf(e){switch(e.kind){case $.OBJECT:return{...e,fields:T_(e.fields)};case $.LIST:return{...e,values:e.values.map(jf)};case $.INT:case $.FLOAT:case $.STRING:case $.BOOLEAN:case $.NULL:case $.ENUM:case $.VARIABLE:return e}}function T_(e){return e.map(t=>({...t,value:jf(t.value)})).sort((t,n)=>Wu(t.name.value,n.name.value))}function Kw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Kw(n)).join(" and "):e}function Yw(e){const t=new O_,n=new Map;return{SelectionSet(r){const i=I_(e,n,t,e.getParentType(),r);for(const[[s,o],a,l]of i){const d=Kw(o);e.reportError(new H(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(l)}))}}}}function I_(e,t,n,r,i){const s=[],[o,a]=Zc(e,t,r,i);if(N_(e,s,t,n,o),a.length!==0)for(let l=0;l<a.length;l++){Jc(e,s,t,n,!1,o,a[l]);for(let d=l+1;d<a.length;d++)Xc(e,s,t,n,!1,a[l],a[d])}return s}function Jc(e,t,n,r,i,s,o){const a=e.getFragment(o);if(!a)return;const[l,d]=bh(e,n,a);if(s!==l){Em(e,t,n,r,i,s,l);for(const v of d)r.has(v,o,i)||(r.add(v,o,i),Jc(e,t,n,r,i,s,v))}}function Xc(e,t,n,r,i,s,o){if(s===o||r.has(s,o,i))return;r.add(s,o,i);const a=e.getFragment(s),l=e.getFragment(o);if(!a||!l)return;const[d,v]=bh(e,n,a),[y,_]=bh(e,n,l);Em(e,t,n,r,i,d,y);for(const T of _)Xc(e,t,n,r,i,s,T);for(const T of v)Xc(e,t,n,r,i,T,o)}function M_(e,t,n,r,i,s,o,a){const l=[],[d,v]=Zc(e,t,i,s),[y,_]=Zc(e,t,o,a);Em(e,l,t,n,r,d,y);for(const T of _)Jc(e,l,t,n,r,d,T);for(const T of v)Jc(e,l,t,n,r,y,T);for(const T of v)for(const M of _)Xc(e,l,t,n,r,T,M);return l}function N_(e,t,n,r,i){for(const[s,o]of Object.entries(i))if(o.length>1)for(let a=0;a<o.length;a++)for(let l=a+1;l<o.length;l++){const d=Jw(e,n,r,!1,s,o[a],o[l]);d&&t.push(d)}}function Em(e,t,n,r,i,s,o){for(const[a,l]of Object.entries(s)){const d=o[a];if(d)for(const v of l)for(const y of d){const _=Jw(e,n,r,i,a,v,y);_&&t.push(_)}}}function Jw(e,t,n,r,i,s,o){const[a,l,d]=s,[v,y,_]=o,T=r||a!==v&&ze(a)&&ze(v);if(!T){const R=l.name.value,C=y.name.value;if(R!==C)return[[i,`"${R}" and "${C}" are different fields`],[l],[y]];if(my(l)!==my(y))return[[i,"they have differing arguments"],[l],[y]]}const M=d==null?void 0:d.type,A=_==null?void 0:_.type;if(M&&A&&gh(M,A))return[[i,`they return conflicting types "${K(M)}" and "${K(A)}"`],[l],[y]];const k=l.selectionSet,N=y.selectionSet;if(k&&N){const R=M_(e,t,n,T,An(M),k,An(A),N);return R_(R,i,l,y)}}function my(e){var t;const n=(t=e.arguments)!==null&&t!==void 0?t:[],r={kind:$.OBJECT,fields:n.map(i=>({kind:$.OBJECT_FIELD,name:i.name,value:i.value}))};return kt(jf(r))}function gh(e,t){return Pt(e)?Pt(t)?gh(e.ofType,t.ofType):!0:Pt(t)?!0:Se(e)?Se(t)?gh(e.ofType,t.ofType):!0:Se(t)?!0:ri(e)||ri(t)?e!==t:!1}function Zc(e,t,n,r){const i=t.get(r);if(i)return i;const s=Object.create(null),o=Object.create(null);Xw(e,n,r,s,o);const a=[s,Object.keys(o)];return t.set(r,a),a}function bh(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=Qn(e.getSchema(),n.typeCondition);return Zc(e,t,i,n.selectionSet)}function Xw(e,t,n,r,i){for(const s of n.selections)switch(s.kind){case $.FIELD:{const o=s.name.value;let a;(ze(t)||Xe(t))&&(a=t.getFields()[o]);const l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,a]);break}case $.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case $.INLINE_FRAGMENT:{const o=s.typeCondition,a=o?Qn(e.getSchema(),o):t;Xw(e,a,s.selectionSet,r,i);break}}}function R_(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class O_{constructor(){this._data=new Map}has(t,n,r){var i;const[s,o]=t<n?[t,n]:[n,t],a=(i=this._data.get(s))===null||i===void 0?void 0:i.get(o);return a===void 0?!1:r?!0:r===a}add(t,n,r){const[i,s]=t<n?[t,n]:[n,t],o=this._data.get(i);o===void 0?this._data.set(i,new Map([[s,r]])):o.set(s,r)}}function Zw(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(ii(n)&&ii(r)&&!vh(e.getSchema(),n,r)){const i=K(r),s=K(n);e.reportError(new H(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=A_(e,n),i=e.getParentType();if(r&&i&&!vh(e.getSchema(),r,i)){const s=K(i),o=K(r);e.reportError(new H(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function A_(e,t){const n=e.getFragment(t);if(n){const r=Qn(e.getSchema(),n.typeCondition);if(ii(r))return r}}function e4(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)va(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){const s=i.name.value,o=n[s],a=t==null?void 0:t.getType(s);let l;if(o?l=C_[o.kind]:a&&(l=D_(a)),l){if(l!==i.kind){const d=$_(i.kind);e.reportError(new H(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{const d=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),v=xs(s,d);e.reportError(new H(`Cannot extend type "${s}" because it is not defined.`+Fi(v),{nodes:i.name}))}}}const C_={[$.SCALAR_TYPE_DEFINITION]:$.SCALAR_TYPE_EXTENSION,[$.OBJECT_TYPE_DEFINITION]:$.OBJECT_TYPE_EXTENSION,[$.INTERFACE_TYPE_DEFINITION]:$.INTERFACE_TYPE_EXTENSION,[$.UNION_TYPE_DEFINITION]:$.UNION_TYPE_EXTENSION,[$.ENUM_TYPE_DEFINITION]:$.ENUM_TYPE_EXTENSION,[$.INPUT_OBJECT_TYPE_DEFINITION]:$.INPUT_OBJECT_TYPE_EXTENSION};function D_(e){if(ar(e))return $.SCALAR_TYPE_EXTENSION;if(ze(e))return $.OBJECT_TYPE_EXTENSION;if(Xe(e))return $.INTERFACE_TYPE_EXTENSION;if(un(e))return $.UNION_TYPE_EXTENSION;if(en(e))return $.ENUM_TYPE_EXTENSION;if(Lt(e))return $.INPUT_OBJECT_TYPE_EXTENSION;Yt(!1,"Unexpected type: "+K(e))}function $_(e){switch(e){case $.SCALAR_TYPE_EXTENSION:return"scalar";case $.OBJECT_TYPE_EXTENSION:return"object";case $.INTERFACE_TYPE_EXTENSION:return"interface";case $.UNION_TYPE_EXTENSION:return"union";case $.ENUM_TYPE_EXTENSION:return"enum";
89case $.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Yt(!1,"Unexpected kind: "+K(e))}}function t4(e){return{...n4(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(const s of r.args)if(!i.has(s.name)&&_s(s)){const o=K(s.type);e.reportError(new H(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}function n4(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Ss;for(const a of i)n[a.name]=Ui(a.args.filter(_s),l=>l.name);const s=e.getDocument().definitions;for(const a of s)if(a.kind===$.DIRECTIVE_DEFINITION){var o;const l=(o=a.arguments)!==null&&o!==void 0?o:[];n[a.name.value]=Ui(l.filter(k_),d=>d.name.value)}return{Directive:{leave(a){const l=a.name.value,d=n[l];if(d){var v;const y=(v=a.arguments)!==null&&v!==void 0?v:[],_=new Set(y.map(T=>T.name.value));for(const[T,M]of Object.entries(d))if(!_.has(T)){const A=Ku(M.type)?K(M.type):kt(M.type);e.reportError(new H(`Directive "@${l}" argument "${T}" of type "${A}" is required, but it was not provided.`,{nodes:a}))}}}}}}function k_(e){return e.type.kind===$.NON_NULL_TYPE&&e.defaultValue==null}function r4(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n){if(ri(An(n))){if(r){const i=t.name.value,s=K(n);e.reportError(new H(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){const i=t.name.value,s=K(n);e.reportError(new H(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}function i4(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function Zo(e,t,n){return{prev:e,key:t,typename:n}}function Yn(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function s4(e,t,n=P_){return Ga(e,t,n,void 0)}function P_(e,t,n){let r="Invalid value "+K(t);throw e.length>0&&(r+=` at "value${i4(e)}"`),n.message=r+": "+n.message,n}function Ga(e,t,n,r){if(Se(t)){if(e!=null)return Ga(e,t.ofType,n,r);n(Yn(r),e,new H(`Expected non-nullable type "${K(t)}" not to be null.`));return}if(e==null)return null;if(Pt(t)){const i=t.ofType;return im(e)?Array.from(e,(s,o)=>{const a=Zo(r,o,void 0);return Ga(s,i,n,a)}):[Ga(e,i,n,r)]}if(Lt(t)){if(!rr(e)){n(Yn(r),e,new H(`Expected type "${t.name}" to be an object.`));return}const i={},s=t.getFields();for(const o of Object.values(s)){const a=e[o.name];if(a===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(Se(o.type)){const l=K(o.type);n(Yn(r),e,new H(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ga(a,o.type,n,Zo(r,o.name,t.name))}for(const o of Object.keys(e))if(!s[o]){const a=xs(o,Object.keys(t.getFields()));n(Yn(r),e,new H(`Field "${o}" is not defined by type "${t.name}".`+Fi(a)))}return i}if(ri(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof H?n(Yn(r),e,s):n(Yn(r),e,new H(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(Yn(r),e,new H(`Expected type "${t.name}".`)),i}Yt(!1,"Unexpected input type: "+K(t))}function Hr(e,t,n){if(!!e){if(e.kind===$.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&Se(t)?void 0:i}if(Se(t))return e.kind===$.NULL?void 0:Hr(e,t.ofType,n);if(e.kind===$.NULL)return null;if(Pt(t)){const r=t.ofType;if(e.kind===$.LIST){const s=[];for(const o of e.values)if(vy(o,n)){if(Se(r))return;s.push(null)}else{const a=Hr(o,r,n);if(a===void 0)return;s.push(a)}return s}const i=Hr(e,r,n);return i===void 0?void 0:[i]}if(Lt(t)){if(e.kind!==$.OBJECT)return;const r=Object.create(null),i=Ui(e.fields,s=>s.name.value);for(const s of Object.values(t.getFields())){const o=i[s.name];if(!o||vy(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(Se(s.type))return;continue}const a=Hr(o.value,s.type,n);if(a===void 0)return;r[s.name]=a}return r}if(ri(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}Yt(!1,"Unexpected input type: "+K(t))}}function vy(e,t){return e.kind===$.VARIABLE&&(t==null||t[e.name.value]===void 0)}function o4(e,t,n,r){const i=[],s=r==null?void 0:r.maxErrors;try{const o=L_(e,t,n,a=>{if(s!=null&&i.length>=s)throw new H("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function L_(e,t,n,r){const i={};for(const s of t){const o=s.variable.name.value,a=Qn(e,s.type);if(!Un(a)){const d=kt(s.type);r(new H(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}
89if(!a4(n,o)){if(s.defaultValue)i[o]=Hr(s.defaultValue,a);else if(Se(a)){const d=K(a);r(new H(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}const l=n[o];if(l===null&&Se(a)){const d=K(a);r(new H(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=s4(l,a,(d,v,y)=>{let _=`Variable "$${o}" got invalid value `+K(v);d.length>0&&(_+=` at "${o}${i4(d)}"`),r(new H(_+"; "+y.message,{nodes:s,originalError:y.originalError}))})}return i}function zf(e,t,n){var r;const i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=Ui(s,a=>a.name.value);for(const a of e.args){const l=a.name,d=a.type,v=o[l];if(!v){if(a.defaultValue!==void 0)i[l]=a.defaultValue;else if(Se(d))throw new H(`Argument "${l}" of required type "${K(d)}" was not provided.`,{nodes:t});continue}const y=v.value;let _=y.kind===$.NULL;if(y.kind===$.VARIABLE){const M=y.name.value;if(n==null||!a4(n,M)){if(a.defaultValue!==void 0)i[l]=a.defaultValue;else if(Se(d))throw new H(`Argument "${l}" of required type "${K(d)}" was provided the variable "$${M}" which was not provided a runtime value.`,{nodes:y});continue}_=n[M]==null}if(_&&Se(d))throw new H(`Argument "${l}" of non-null type "${K(d)}" must not be null.`,{nodes:y});const T=Hr(y,d,n);if(T===void 0)throw new H(`Argument "${l}" has invalid value ${kt(y)}.`,{nodes:y});i[l]=T}return i}function Pu(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return zf(e,i,n)}function a4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xm(e,t,n,r,i){const s=new Map;return ef(e,t,n,r,i,s,new Set),s}function F_(e,t,n,r,i){const s=new Map,o=new Set;for(const a of i)a.selectionSet&&ef(e,t,n,r,a.selectionSet,s,o);return s}function ef(e,t,n,r,i,s,o){for(const a of i.selections)switch(a.kind){case $.FIELD:{if(!Hd(n,a))continue;const l=U_(a),d=s.get(l);d!==void 0?d.push(a):s.set(l,[a]);break}case $.INLINE_FRAGMENT:{if(!Hd(n,a)||!yy(e,a,r))continue;ef(e,t,n,r,a.selectionSet,s,o);break}case $.FRAGMENT_SPREAD:{const l=a.name.value;if(o.has(l)||!Hd(n,a))continue;o.add(l);const d=t[l];if(!d||!yy(e,d,r))continue;ef(e,t,n,r,d.selectionSet,s,o);break}}}function Hd(e,t){const n=Pu(em,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=Pu(Zp,t,e);return(r==null?void 0:r.if)!==!1}function yy(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Qn(e,r);return i===n?!0:Zr(i)?e.isSubType(i,n):!1}function U_(e){return e.alias?e.alias.value:e.name.value}function u4(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(const d of o.definitions)d.kind===$.FRAGMENT_DEFINITION&&(a[d.name.value]=d);const l=xm(n,a,s,r,t.selectionSet);if(l.size>1){const y=[...l.values()].slice(1).flat();e.reportError(new H(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(const d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new H(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}function _m(e,t){const n=new Map;for(const r of e){const i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function l4(e){return{DirectiveDefinition(r){var i;const s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;const s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(const l of o){var a;const d=l.name.value,v=(a=l.arguments)!==null&&a!==void 0?a:[];n(`${s}.${d}`,v)}return!1}function n(r,i){const s=_m(i,o=>o.name.value);for(const[o,a]of s)a.length>1&&e.reportError(new H(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:a.map(l=>l.name)}));return!1}}function Sm(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],s=_m(i,o=>o.name.value);for(const[o,a]of s)a.length>1&&e.reportError(new H(`There can be only one argument named "${o}
89".`,{nodes:a.map(l=>l.name)}))}}function c4(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new H(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new H(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Tm(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ss;for(const a of r)t[a.name]=!a.isRepeatable;const i=e.getDocument().definitions;for(const a of i)a.kind===$.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);const s=Object.create(null),o=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let l;if(a.kind===$.SCHEMA_DEFINITION||a.kind===$.SCHEMA_EXTENSION)l=s;else if(va(a)||qf(a)){const d=a.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(const d of a.directives){const v=d.name.value;t[v]&&(l[v]?e.reportError(new H(`The directive "@${v}" can only be used once at this location.`,{nodes:[l[v],d]})):l[v]=d)}}}}function f4(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;const a=s.name.value;r[a]||(r[a]=Object.create(null));const l=(o=s.values)!==null&&o!==void 0?o:[],d=r[a];for(const v of l){const y=v.name.value,_=n[a];en(_)&&_.getValue(y)?e.reportError(new H(`Enum value "${a}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):d[y]?e.reportError(new H(`Enum value "${a}.${y}" can only be defined once.`,{nodes:[d[y],v.name]})):d[y]=v.name}return!1}}function d4(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;const a=s.name.value;r[a]||(r[a]=Object.create(null));const l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[a];for(const v of l){const y=v.name.value;V_(n[a],y)?e.reportError(new H(`Field "${a}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):d[y]?e.reportError(new H(`Field "${a}.${y}" can only be defined once.`,{nodes:[d[y],v.name]})):d[y]=v.name}return!1}}function V_(e,t){return ze(e)||Xe(e)||Lt(e)?e.getFields()[t]!=null:!1}function h4(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new H(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Im(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||Yt(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new H(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function p4(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new H(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function m4(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;const a=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(const l of a){const d=l.operation,v=n[d];r[d]?e.reportError(new H(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):v?e.reportError(new H(`There can be only one ${d} type in schema.`,{nodes:[v,l]})):n[d]=l}return!1}}function v4(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new H(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new H(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function y4(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=_m(r,s=>s.variable.name.value);for(const[s,o]of i)o.length>1&&e.reportError(new H(`There can be only one variable named "$${s}".`,{nodes:o.map(a=>a.variable.name)}))}}}function g4(e){return{ListValue(t){const n=Kp(e.getParentInputType());if(!Pt(n))return Ns(e,t),!1},ObjectValue(t){const n=An(e.getInputType());if(!Lt(n))return Ns(e,t),!1;const r=Ui(t.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Lf(i)){const o=K(i.type);e.reportError(new H(`Field "${n.name}.${i.name}" of required type "${o}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=An(e.getParentInputType());if(!e.getInputType()&&Lt(n)){const i=xs(t.name.value,Object.keys(n.getFields()));e.reportError(new H(`Field "${t.name.value}" is not defined by type "${n.name}".`+Fi(i),{nodes:t}))}}
89,NullValue(t){const n=e.getInputType();Se(n)&&e.reportError(new H(`Expected value of type "${K(n)}", found ${kt(t)}.`,{nodes:t}))},EnumValue:t=>Ns(e,t),IntValue:t=>Ns(e,t),FloatValue:t=>Ns(e,t),StringValue:t=>Ns(e,t),BooleanValue:t=>Ns(e,t)}}function Ns(e,t){const n=e.getInputType();if(!n)return;const r=An(n);if(!ri(r)){const i=K(n);e.reportError(new H(`Expected value of type "${i}", found ${kt(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const s=K(n);e.reportError(new H(`Expected value of type "${s}", found ${kt(t)}.`,{nodes:t}))}}catch(i){const s=K(n);i instanceof H?e.reportError(i):e.reportError(new H(`Expected value of type "${s}", found ${kt(t)}; `+i.message,{nodes:t,originalError:i}))}}function b4(e){return{VariableDefinition(t){const n=Qn(e.getSchema(),t.type);if(n!==void 0&&!Un(n)){const r=t.variable.name.value,i=kt(t.type);e.reportError(new H(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function w4(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:s,defaultValue:o}of r){const a=i.name.value,l=t[a];if(l&&s){const d=e.getSchema(),v=Qn(d,l.type);if(v&&!B_(d,v,l.defaultValue,s,o)){const y=K(v),_=K(s);e.reportError(new H(`Variable "$${a}" of type "${y}" used in position expecting type "${_}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function B_(e,t,n,r,i){if(Se(r)&&!Se(t)){if(!(n!=null&&n.kind!==$.NULL)&&!(i!==void 0))return!1;const a=r.ofType;return Bs(e,t,a)}return Bs(e,t,r)}const E4=Object.freeze([Lw,p4,jw,u4,wm,Uw,b4,r4,Fw,h4,qw,Hw,Zw,Gw,y4,Qw,Ww,bm,Tm,Vw,Sm,g4,t4,w4,Yw,Im]),q_=Object.freeze([zw,m4,v4,f4,d4,l4,c4,wm,bm,Tm,e4,Bw,Sm,Im,n4]);class x4{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===$.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const s of i.selections)s.kind===$.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let s;for(;s=i.pop();)for(const o of this.getFragmentSpreads(s)){const a=o.name.value;if(r[a]!==!0){r[a]=!0;const l=this.getFragment(a);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class j_ extends x4{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class _4 extends x4{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new pm(this._schema);pa(t,mm(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function S4(e,t,n=E4,r,i=new pm(e)){var s;const o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||Le(!1,"Must provide document."),dm(e);const a=Object.freeze({}),l=[],d=new _4(e,t,i,y=>
89{if(l.length>=o)throw l.push(new H("Too many validation errors, error limit reached. Validation aborted.")),a;l.push(y)}),v=Hp(n.map(y=>y(d)));try{pa(t,mm(i,v))}catch(y){if(y!==a)throw y}return l}function T4(e,t,n=q_){const r=[],i=new j_(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return pa(e,Hp(s)),r}function z_(e){const t=T4(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
90
91`))}function G_(e,t){const n=T4(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`
92
93`))}function Q_(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let a=o.get(i);a===void 0&&(a=new WeakMap,o.set(i,a));let l=a.get(s);return l===void 0&&(l=e(r,i,s),a.set(s,l)),l}}function H_(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function W_(e,t,n){let r=n;for(const i of e)r=nr(r)?r.then(s=>t(s,i)):t(r,i);return r}function K_(e){return e instanceof Error?e:new Y_(e)}class Y_ extends Error{constructor(t){super("Unexpected error value: "+K(t)),this.name="NonErrorThrown",this.thrownValue=t}}function ea(e,t,n){var r;const i=K_(e);return J_(i)?i:new H(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function J_(e){return Array.isArray(e.path)}const X_=Q_((e,t,n)=>F_(e.schema,e.fragments,e.variableValues,t,n));function Gf(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;M4(t,n,r);const s=N4(e);if(!("schema"in s))return{errors:s};try{const{operation:o}=s,a=Z_(s,o,i);return nr(a)?a.then(l=>kl(l,s.errors),l=>(s.errors.push(l),kl(null,s.errors))):kl(a,s.errors)}catch(o){return s.errors.push(o),kl(null,s.errors)}}function I4(e){const t=Gf(e);if(nr(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function kl(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function M4(e,t,n){t||Le(!1,"Must provide document."),dm(e),n==null||rr(n)||Le(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function N4(e){var t,n;const{schema:r,document:i,rootValue:s,contextValue:o,variableValues:a,operationName:l,fieldResolver:d,typeResolver:v,subscribeFieldResolver:y}=e;let _;const T=Object.create(null);for(const k of i.definitions)switch(k.kind){case $.OPERATION_DEFINITION:if(l==null){if(_!==void 0)return[new H("Must provide operation name if query contains multiple operations.")];_=k}else((t=k.name)===null||t===void 0?void 0:t.value)===l&&(_=k);break;case $.FRAGMENT_DEFINITION:T[k.name.value]=k;break}if(!_)return l!=null?[new H(`Unknown operation named "${l}".`)]:[new H("Must provide an operation.")];const M=(n=_.variableDefinitions)!==null&&n!==void 0?n:[],A=o4(r,M,a!=null?a:{},{maxErrors:50});return A.errors?A.errors:{schema:r,fragments:T,rootValue:s,contextValue:o,operation:_,variableValues:A.coerced,fieldResolver:d!=null?d:Eh,typeResolver:v!=null?v:A4,subscribeFieldResolver:y!=null?y:Eh,errors:[]}}function Z_(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new H(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=xm(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case an.QUERY:return tf(e,r,n,s,i);case an.MUTATION:return eS(e,r,n,s,i);case an.SUBSCRIPTION:return tf(e,r,n,s,i)}}function eS(e,t,n,r,i){return W_(i.entries(),(s,[o,a])=>{const l=Zo(r,o,t.name),d=R4(e,t,n,a,l);return d===void 0?s:nr(d)?d.then(v=>(s[o]=v,s)):(s[o]=d,s)},Object.create(null))}function tf(e,t,n,r,i){const s=Object.create(null);let o=!1;for(const[a,l]of i.entries()){const d=Zo(r,a,t.name),v=R4(e,t,n,l,d);v!==void 0&&(s[a]=v,nr(v)&&(o=!0))}return o?H_(s):s}function R4(e,t,n,r,i){var s;const o=C4(e.schema,t,r[0]);if(!o)return;const a=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=O4(e,o,r,t,i);try{const v=zf(o,r[0],e.variableValues),y=e.contextValue,_=l(n,v,y,d);let T;return nr(_)?T=_.then(M=>Lu(e,a,r,d,i,M)):T=Lu(e,a,r,d,i,_),nr(T)?T.then(void 0,M=>{const A=ea(M,r,Yn(i));return nf(A,a,e)}):T}catch(v){const y=ea(v,r,Yn(i));return nf(y,a,e)}}function O4(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function nf(e,t,n){if(Se(t))throw e;return n.errors.push(e),null}function Lu(e,t,n,r,i,s){if(s instanceof Error)throw s;if(Se(t)){const o=Lu(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(Pt(t))return tS(e,t,n,r,i,s);if(ri(t))return nS(t,s);if(Zr(t))return rS(e,t,n,r,i,s);if(ze(t))return wh(e,t,n,r,i,s);Yt(!1,"Cannot complete value of unexpected output type: "+K(t))}function tS(e,t,n,r,i,s){if(!im(s))throw new H(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const o=t.ofType;let a=!1;
93const l=Array.from(s,(d,v)=>{const y=Zo(i,v,void 0);try{let _;return nr(d)?_=d.then(T=>Lu(e,o,n,r,y,T)):_=Lu(e,o,n,r,y,d),nr(_)?(a=!0,_.then(void 0,T=>{const M=ea(T,n,Yn(y));return nf(M,o,e)})):_}catch(_){const T=ea(_,n,Yn(y));return nf(T,o,e)}});return a?Promise.all(l):l}function nS(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \`${K(e)}.serialize(${K(t)})\` to return non-nullable value, returned: ${K(n)}`);return n}function rS(e,t,n,r,i,s){var o;const a=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=a(s,l,r,t);return nr(d)?d.then(v=>wh(e,gy(v,e,t,n,r,s),n,r,i,s)):wh(e,gy(d,e,t,n,r,s),n,r,i,s)}function gy(e,t,n,r,i,s){if(e==null)throw new H(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(ze(e))throw new H("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if(typeof e!="string")throw new H(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${K(s)}, received "${K(e)}".`);const o=t.schema.getType(e);if(o==null)throw new H(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ze(o))throw new H(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new H(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function wh(e,t,n,r,i,s){const o=X_(e,t,n);if(t.isTypeOf){const a=t.isTypeOf(s,e.contextValue,r);if(nr(a))return a.then(l=>{if(!l)throw by(t,s,n);return tf(e,t,s,i,o)});if(!a)throw by(t,s,n)}return tf(e,t,s,i,o)}function by(e,t,n){return new H(`Expected value of type "${e.name}" but got: ${K(t)}.`,{nodes:n})}const A4=function(e,t,n,r){if(rr(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o<i.length;o++){const a=i[o];if(a.isTypeOf){const l=a.isTypeOf(e,t,n);if(nr(l))s[o]=l;else if(l)return a.name}}if(s.length)return Promise.all(s).then(o=>{for(let a=0;a<o.length;a++)if(o[a])return i[a].name})},Eh=function(e,t,n,r){if(rr(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function C4(e,t,n){const r=n.name.value;return r===Du.name&&e.getQueryType()===t?Du:r===$u.name&&e.getQueryType()===t?$u:r===ku.name?ku:t.getFields()[r]}function iS(e){return new Promise(t=>t(D4(e)))}function sS(e){const t=D4(e);if(nr(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function D4(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:a,typeResolver:l}=e,d=fm(t);if(d.length>0)return{errors:d};let v;try{v=Hu(n)}catch(_){return{errors:[_]}}const y=S4(t,v);return y.length>0?{errors:y}:Gf({schema:t,document:v,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:a,typeResolver:l})}function $4(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}function oS(e,t){const n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await t(i.value),done:!1}}catch(s){if(typeof n.return=="function")try{await n.return()}catch{}throw s}}return{async next(){return r(await n.next())},async return(){return typeof n.return=="function"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function aS(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await k4(e);return $4(t)?oS(t,r=>Gf({...e,rootValue:r})):t}function uS(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function k4(...e){const t=uS(e),{schema:n,document:r,variableValues:i}=t;M4(n,r,i);const s=N4(t);if(!("schema"in s))return{errors:s};try{const o=await lS(s);if(!$4(o))throw new Error(`Subscription field must return Async Iterable. Received: ${K(o)}.`);return o}catch(o){if(o instanceof H)return{errors:[o]};throw o}}async function lS(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new H("Schema is not configured to execute subscription operation.",{nodes:r});const a=xm(t,n,i,o,r.selectionSet),[l,d]=[...a.entries()][0],v=C4(t,o,d[0]);if(!v){const M=d[0].name.value;throw new H(`The subscription field "${M}" is not defined.`,{nodes:d})}const y=Zo(void 0,l,o.name),_=O4(e,v,d,o,y);try{var T;const M=zf(v,d[0],i),A=e.contextValue,N=await((T=v.subscribe)!==null&&T!==void 0?T:e.subscribeFieldResolver)(s,M,A,_);if(N instanceof Error)throw N;return N}catch(M){throw ea(M,d,Yn(y))}}function cS(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||Yt(!1),e.reportError(new H(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new H(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||Yt(!1),e.reportError(new H(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=An(e.getParentInputType());if(Lt(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new H(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=An(e.getInputType());i!=null||Yt(!1),e.reportError(new H(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function fS(e){return{Field(t){const n=An(e.getType());n&&to(n)&&e.reportError(new H(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function P4(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(a){return t.inputValueDeprecation?a:""}return`
94    query IntrospectionQuery {
95      __schema {
96        ${s}
97        queryType { name }
98        mutationType { name }
99        subscriptionType { name }
100        types {
101          ...FullType
102        }
103        directives {
104          name
105          ${n}
106          ${i}
107          locations
108          args${o("(includeDeprecated: true)")} {
109            ...InputValue
110          }
111        }
112      }
113    }
114
115    fragment FullType on __Type {
116      kind
117      name
118      ${n}
119      ${r}
120      fields(includeDeprecated: true) {
121        name
122        ${n}
123        args${o("(includeDeprecated: true)")} {
124          ...InputValue
125        }
126        type {
127          ...TypeRef
128        }
129        isDeprecated
130        deprecationReason
131      }
132      inputFields${o("(includeDeprecated: true)")} {
133        ...InputValue
134      }
135      interfaces {
136        ...TypeRef
137      }
138      enumValues(includeDeprecated: true) {
139        name
140        ${n}
141        isDeprecated
142        deprecationReason
143      }
144      possibleTypes {
145        ...TypeRef
146      }
147    }
148
149    fragment InputValue on __InputValue {
150      name
151      ${n}
152      type { ...TypeRef }
153      defaultValue
154      ${o("isDeprecated")}
155      ${o("deprecationReason")}
156    }
157
158    fragment TypeRef on __Type {
159      kind
160      name
161      ofType {
162        kind
163        name
164        ofType {
165          kind
166          name
167          ofType {
168            kind
169            name
170            ofType {
171              kind
172              name
173              ofType {
174                kind
175                name
176                ofType {
177                  kind
178                  name
179                  ofType {
180                    kind
181                    name
182                  }
183                }
184              }
185            }
186          }
187        }
188      }
189    }
190  `}function dS(e,t){let n=null;for(const i of e.definitions)if(i.kind===$.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function hS(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n)throw new H("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){const n=e.getMutationType();if(!n)throw new H("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n)throw new H("Schema is not configured for subscriptions.",{nodes:t});return n}throw new H("Can only have query, mutation and subscription operations.",{nodes:t})}function pS(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=Hu(P4(n)),i=I4({schema:e,document:r});return!i.errors&&i.data||Yt(!1),i.data}function mS(e,t){rr(e)&&rr(e.__schema)||Le(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${K(e)}.`);const n=e.__schema,r=Zi(n.types,D=>D.name,D=>_(D));for(const D of[...Xu,...tl])r[D.name]&&(r[D.name]=D);const i=n.queryType?v(n.queryType):null,s=n.mutationType?v(n.mutationType):null,o=n.subscriptionType?v(n.subscriptionType):null,a=n.directives?n.directives.map(q):[];return new ma({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:a,assumeValid:t==null?void 0:t.assumeValid});function l(D){if(D.kind===it.LIST){const L=D.ofType;
190if(!L)throw new Error("Decorated type deeper than introspection query.");return new bn(l(L))}if(D.kind===it.NON_NULL){const L=D.ofType;if(!L)throw new Error("Decorated type deeper than introspection query.");const I=l(L);return new Pe(Mw(I))}return d(D)}function d(D){const L=D.name;if(!L)throw new Error(`Unknown type reference: ${K(D)}.`);const I=r[L];if(!I)throw new Error(`Invalid or incomplete schema, unknown type: ${L}. Ensure that a full introspection query is used in order to build a client schema.`);return I}function v(D){return Tw(d(D))}function y(D){return Iw(d(D))}function _(D){if(D!=null&&D.name!=null&&D.kind!=null)switch(D.kind){case it.SCALAR:return T(D);case it.OBJECT:return A(D);case it.INTERFACE:return k(D);case it.UNION:return N(D);case it.ENUM:return R(D);case it.INPUT_OBJECT:return C(D)}const L=K(D);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${L}.`)}function T(D){return new si({name:D.name,description:D.description,specifiedByURL:D.specifiedByURL})}function M(D){if(D.interfaces===null&&D.kind===it.INTERFACE)return[];if(!D.interfaces){const L=K(D);throw new Error(`Introspection result missing interfaces: ${L}.`)}return D.interfaces.map(y)}function A(D){return new wr({name:D.name,description:D.description,interfaces:()=>M(D),fields:()=>U(D)})}function k(D){return new Yo({name:D.name,description:D.description,interfaces:()=>M(D),fields:()=>U(D)})}
190function N(D){if(!D.possibleTypes){const L=K(D);throw new Error(`Introspection result missing possibleTypes: ${L}.`)}return new Jo({name:D.name,description:D.description,types:()=>D.possibleTypes.map(v)})}function R(D){if(!D.enumValues){const L=K(D);throw new Error(`Introspection result missing enumValues: ${L}.`)}return new ps({name:D.name,description:D.description,values:Zi(D.enumValues,L=>L.name,L=>({description:L.description,deprecationReason:L.deprecationReason}))})}function C(D){if(!D.inputFields){const L=K(D);throw new Error(`Introspection result missing inputFields: ${L}.`)}return new Xo({name:D.name,description:D.description,fields:()=>F(D.inputFields)})}function U(D){if(!D.fields)throw new Error(`Introspection result missing fields: ${K(D)}.`);return Zi(D.fields,L=>L.name,B)}function B(D){const L=l(D.type);if(!fs(L)){const I=K(L);throw new Error(`Introspection must provide output type for fields, but received: ${I}.`)}if(!D.args){const I=K(D);throw new Error(`Introspection result missing field args: ${I}.`)}return{description:D.description,deprecationReason:D.deprecationReason,type:L,args:F(D.args)}}function F(D){return Zi(D,L=>L.name,z)}function z(D){const L=l(D.type);if(!Un(L)){const m=K(L);throw new Error(`Introspection must provide input type for arguments, but received: ${m}.`)}const I=D.defaultValue!=null?Hr(xw(D.defaultValue),L):void 0;return{description:D.description,type:L,defaultValue:I,deprecationReason:D.deprecationReason}}function q(D){if(!D.args){const L=K(D);throw new Error(`Introspection result missing directive args: ${L}.`)}if(!D.locations){const L=K(D);throw new Error(`Introspection result missing directive locations: ${L}.`)}return new oi({name:D.name,description:D.description,isRepeatable:D.isRepeatable,locations:D.locations.slice(),args:F(D.args)})}}function vS(e,t,n){cm(e),t!=null&&t.kind===$.DOCUMENT||Le(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&G_(t,e);const r=e.toConfig(),i=L4(r,t,n);return r===i?e:new ma(i)}function L4(e,t,n){var r,i,s,o;const a=[],l=Object.create(null),d=[];let v;const y=[];for(const h of t.definitions)if(h.kind===$.SCHEMA_DEFINITION)v=h;else if(h.kind===$.SCHEMA_EXTENSION)y.push(h);else if(va(h))a.push(h);else if(qf(h)){const S=h.name.value,P=l[S];l[S]=P?P.concat([h]):[h]}else h.kind===$.DIRECTIVE_DEFINITION&&d.push(h);if(Object.keys(l).length===0&&a.length===0&&d.length===0&&y.length===0&&v==null)return e;const _=Object.create(null);for(const h of e.types)_[h.name]=R(h);for(const h of a){var T;const S=h.name.value;_[S]=(T=wy[S])!==null&&T!==void 0?T:b(h)}const M={query:e.query&&k(e.query),mutation:e.mutation&&k(e.mutation),subscription:e.subscription&&k(e.subscription),...v&&I([v]),...I(y)};return{description:(r=v)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...M,types:Object.values(_),directives:[...e.directives.map(N),...d.map(u)],extensions:Object.create(null),astNode:(s=v)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1};function A(h){return Pt(h)?new bn(A(h.ofType)):Se(h)?new Pe(A(h.ofType)):k(h)}function k(h){return _[h.name]}function N(h){const S=h.toConfig();return new oi({...S,args:Ti(S.args,L)})}function R(h){if(to(h)||Ff(h))return h;if(ar(h))return B(h);if(ze(h))return F(h);if(Xe(h))return z(h);if(un(h))return q(h);if(en(h))return U(h);if(Lt(h))return C(h);Yt(!1,"Unexpected type: "+K(h))}function C(h){var S;const P=h.toConfig(),j=(S=l[P.name])!==null&&S!==void 0?S:[];return new Xo({...P,fields:()=>({...Ti(P.fields,G=>({...G,type:A(G.type)})),...E(j)}),extensionASTNodes:P.extensionASTNodes.concat(j)})}function U(h){var S;const P=h.toConfig(),j=(S=l[h.name])!==null&&S!==void 0?S:[];return new ps({...P,values:{...P.values,...x(j)},extensionASTNodes:P.extensionASTNodes.concat(j)})}function B(h){var S;const P=h.toConfig(),j=(S=l[P.name])!==null&&S!==void 0?S:[];let G=P.specifiedByURL;for(const te of j){var X;G=(X=Ey(te))!==null&&X!==void 0?X:G}return new si({...P,specifiedByURL:G,extensionASTNodes:P.extensionASTNodes.concat(j)})}function F(h){var S;const P=h.toConfig(),j=(S=l[P.name])!==null&&S!==void 0?S:[];return new wr({...P,interfaces:()=>[...h.getInterfaces().map(k),...g(j)],fields:()=>({...Ti(P.fields,D),...f(j)}),extensionASTNodes:P.extensionASTNodes.concat(j)})}function z(h){var S;const P=h.toConfig(),j=(S=l[P.name])!==null&&S!==void 0?S:[];return new Yo({...P,interfaces:()=>[...h.getInterfaces().map(k),...g(j)],fields:()=>({...Ti(P.fields,D),...f(j)}),extensionASTNodes:P.extensionASTNodes.concat(j)})}function q(h){var S;const P=h.toConfig(),j=(S=l[P.name])!==null&&S!==void 0?S:[];return new Jo({...P,types:()=>[...h.getTypes().map(k),...c(j)],extensionASTNodes:P.extensionASTNodes.concat(j)})}function D(h){return{...h,type:A(h.type),args:h.args&&Ti(h.args,L)}}function L(h){return{...h,type:A(h.type)}}function I(h){const S={};for(const j of h){var P;const G=(P=j.operationTypes)!==null&&P!==void 0?P:[];for(const X of G)S[X.operation]=m(X.type)}return S}function m(h){var S;const P=h.name.value,j=(S=wy[P])!==null&&S!==void 0?S:_[P];if(j===void 0)throw new Error(`Unknown type: "${P}".`);return j}function p(h){return h.kind===$.LIST_TYPE?new bn(p(h.type)):h.kind===$.NON_NULL_TYPE?new Pe(p(h.type)):m(h)}function u(h){var S;return new oi({name:h.name.value,description:(S=h.description)===null||S===void 0?void 0:S.value,locations:h.locations.map(({value:P})=>P),isRepeatable:h.repeatable,args:w(h.arguments),astNode:h})}function f(h){const S=Object.create(null);for(const G of h){var P;const X=(P=G.fields)!==null&&P!==void 0?P:[];for(const te of X){var j;S[te.name.value]={type:p(te.type),description:(j=te.description)===null||j===void 0?void 0:j.value,args:w(te.arguments),deprecationReason:Pl(te),astNode:te}}}return S}function w(h){const S=h!=null?h:[],P=Object.create(null);for(const G of S){var j;const X=p(G.type);P[G.name.value]={type:X,description:(j=G.description)===null||j===void 0?void 0:j.value,defaultValue:Hr(G.defaultValue,X),deprecationReason:Pl(G),astNode:G}}return P}function E(h){const S=Object.create(null);for(const G of h){var P;const X=(P=G.fields)!==null&&P!==void 0?P:[];for(const te of X){var j;const re=p(te.type);S[te.name.value]={type:re,description:(j=te.description)===null||j===void 0?void 0:j.value,defaultValue:Hr(te.defaultValue,re),deprecationReason:Pl(te),astNode:te}}}return S}function x(h){const S=Object.create(null);for(const G of h){var P;const X=(P=G.values)!==null&&P!==void 0?P:[];for(const te of X){var j;S[te.name.value]={description:(j=te.description)===null||j===void 0?void 0:j.value,deprecationReason:Pl(te),astNode:te}}}return S}function g(h){return h.flatMap(S=>{var P,j;return(P=(j=S.interfaces)===null||j===void 0?void 0:j.map(m))!==null&&P!==void 0?P:[]})}function c(h){return h.flatMap(S=>{var P,j;return(P=(j=S.types)===null||j===void 0?void 0:j.map(m))!==null&&P!==void 0?P:[]})}function b(h){var S;const P=h.name.value,j=(S=l[P])!==null&&S!==void 0?S:[];switch(h.kind){case $.OBJECT_TYPE_DEFINITION:{var G;const ie=[h,...j];return new wr({name:P,description:(G=h.description)===null||G===void 0?void 0:G.value,interfaces:()=>g(ie),fields:()=>f(ie),astNode:h,extensionASTNodes:j})}case $.INTERFACE_TYPE_DEFINITION:{var X;const ie=[h,...j];return new Yo({name:P,description:(X=h.description)===null||X===void 0?void 0:X.value,interfaces:()=>g(ie),fields:()=>f(ie),astNode:h,extensionASTNodes:j})}case $.ENUM_TYPE_DEFINITION:{var te;const ie=[h,...j];return new ps({name:P,description:(te=h.description)===null||te===void 0?void 0:te.value,values:x(ie),astNode:h,extensionASTNodes:j})}case $.UNION_TYPE_DEFINITION:{var re;const ie=[h,...j];return new Jo({name:P,description:(re=h.description)===null||re===void 0?void 0:re.value,types:()=>c(ie),astNode:h,extensionASTNodes:j})}case $.SCALAR_TYPE_DEFINITION:{var me;return new si({name:P,description:(me=h.description)===null||me===void 0?void 0:me.value,specifiedByURL:Ey(h),astNode:h,extensionASTNodes:j})}case $.INPUT_OBJECT_TYPE_DEFINITION:{var fe;const ie=[h,...j];return new Xo({name:P,description:(fe=h.description)===null||fe===void 0?void 0:fe.value,fields:()=>E(ie),astNode:h,extensionASTNodes:j})}}}}const wy=Ui([...Xu,...tl],e=>e.name);function Pl(e){const t=Pu(Vf,e);return t==null?void 0:t.reason}function Ey(e){const t=Pu(nm,e);return t==null?void 0:t.url}
190function F4(e,t){e!=null&&e.kind===$.DOCUMENT||Le(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&z_(e);const r=L4({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}const i=[...r.directives,...Ss.filter(s=>r.directives.every(o=>o.name!==s.name))];return new ma({...r,directives:i})}function yS(e,t){const n=Hu(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return F4(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function gS(e){const t=e.toConfig(),n=Zi(Wd(t.types),_=>_.name,y);return new ma({...t,types:Object.values(n),directives:Wd(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)});function r(_){return Pt(_)?new bn(r(_.ofType)):Se(_)?new Pe(r(_.ofType)):i(_)}function i(_){return n[_.name]}function s(_){return _&&i(_)}function o(_){const T=_.toConfig();return new oi({...T,locations:U4(T.locations,M=>M),args:a(T.args)})}function a(_){return Ll(_,T=>({...T,type:r(T.type)}))}function l(_){return Ll(_,T=>({...T,type:r(T.type),args:T.args&&a(T.args)}))}function d(_){return Ll(_,T=>({...T,type:r(T.type)}))}function v(_){return Wd(_).map(i)}function y(_){if(ar(_)||to(_))return _;if(ze(_)){const T=_.toConfig();return new wr({...T,interfaces:()=>v(T.interfaces),fields:()=>l(T.fields)})}if(Xe(_)){const T=_.toConfig();return new Yo({...T,interfaces:()=>v(T.interfaces),fields:()=>l(T.fields)})}if(un(_)){const T=_.toConfig();return new Jo({...T,types:()=>v(T.types)})}if(en(_)){const T=_.toConfig();return new ps({...T,values:Ll(T.values,M=>M)})}if(Lt(_)){const T=_.toConfig();return new Xo({...T,fields:()=>d(T.fields)})}Yt(!1,"Unexpected type: "+K(_))}}function Ll(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Wu))n[r]=t(e[r]);return n}function Wd(e){return U4(e,t=>t.name)}function U4(e,t){return e.slice().sort((n,r)=>{const i=t(n),s=t(r);return Wu(i,s)})}function bS(e){return V4(e,t=>!rm(t),ES)}function wS(e){return V4(e,rm,to)}function ES(e){return!Ff(e)&&!to(e)}function V4(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[xS(e),...r.map(s=>OS(s)),...i.map(s=>B4(s))].filter(Boolean).join(`
191
192`)}function xS(e){if(e.description==null&&_S(e))return;const t=[],n=e.getQueryType();n&&t.push(`  query: ${n.name}`);const r=e.getMutationType();r&&t.push(`  mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(`  subscription: ${i.name}`),Er(e)+`schema {
193${t.join(`
194`)}
195}`}function _S(e){const t=e.getQueryType();if(t&&t.name!=="Query")return!1;const n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;const r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function B4(e){if(ar(e))return SS(e);if(ze(e))return TS(e);if(Xe(e))return IS(e);if(un(e))return MS(e);if(en(e))return NS(e);if(Lt(e))return RS(e);Yt(!1,"Unexpected type: "+K(e))}function SS(e){return Er(e)+`scalar ${e.name}`+AS(e)}function q4(e){const t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function TS(e){return Er(e)+`type ${e.name}`+q4(e)+j4(e)}function IS(e){return Er(e)+`interface ${e.name}`+q4(e)+j4(e)}function MS(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Er(e)+"union "+e.name+n}function NS(e){const t=e.getValues().map((n,r)=>Er(n,"  ",!r)+"  "+n.name+Nm(n.deprecationReason));return Er(e)+`enum ${e.name}`+Mm(t)}function RS(e){const t=Object.values(e.getFields()).map((n,r)=>Er(n,"  ",!r)+"  "+xh(n));return Er(e)+`input ${e.name}`+Mm(t)}function j4(e){const t=Object.values(e.getFields()).map((n,r)=>Er(n,"  ",!r)+"  "+n.name+z4(n.args,"  ")+": "+String(n.type)+Nm(n.deprecationReason));return Mm(t)}function Mm(e){return e.length!==0?` {
196`+e.join(`
197`)+`
198}`:""}function z4(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(xh).join(", ")+")":`(
199`+e.map((n,r)=>Er(n,"  "+t,!r)+"  "+t+xh(n)).join(`
200`)+`
201`+t+")"}function xh(e){const t=es(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${kt(t)}`),n+Nm(e.deprecationReason)}function OS(e){return Er(e)+"directive @"+e.name+z4(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Nm(e){return e==null?"":e!==tm?` @deprecated(reason: ${kt({kind:$.STRING,value:e})})`:" @deprecated"}function AS(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${kt({kind:$.STRING,value:e.specifiedByURL})})`}function Er(e,t="",n=!0){const{description:r}=e;if(r==null)return"";const i=kt({kind:$.STRING,value:r,block:p9(r)});return(t&&!n?`
202`+t:t)+i.replace(/\n/g,`
203`+t)+`
204`}function CS(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:$.DOCUMENT,definitions:t}}function DS(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case $.OPERATION_DEFINITION:t.push(i);break;case $.FRAGMENT_DEFINITION:n[i.name.value]=xy(i.selectionSet);break}const r=Object.create(null);for(const i of t){const s=new Set;for(const a of xy(i.selectionSet))G4(s,n,a);const o=i.name?i.name.value:"";r[o]={kind:$.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===$.FRAGMENT_DEFINITION&&s.has(a.name.value))}}return r}function G4(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)G4(e,t,i)}}function xy(e){const t=[];return pa(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function $S(e){const t=Ew(e)?e:new kf(e),n=t.body,r=new Qp(t);let i="",s=!1;for(;r.advance().kind!==W.EOF;){const o=r.token,a=o.kind,l=!yw(o.kind);s&&(l||o.kind===W.SPREAD)&&(i+=" ");const d=n.slice(o.start,o.end);a===W.BLOCK_STRING?i+=vw(o.value,{minimize:!0}):i+=d,s=l}return i}function kS(e){const t=Q4(e);if(t)throw t;return e}function Q4(e){if(typeof e=="string"||Le(!1,"Expected name to be a string."),e.startsWith("__"))return new H(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{or(e)}catch(t){return t}}var Qt;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENT
204ED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Qt||(Qt={}));var Fr;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Fr||(Fr={}));function PS(e,t){return H4(e,t).filter(n=>n.type in Qt)}function LS(e,t){return H4(e,t).filter(n=>n.type in Fr)}function H4(e,t){return[...US(e,t),...FS(e,t)]}function FS(e,t){const n=[],r=Vi(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Qt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,s]of r.persisted){const o=Vi(i.args,s.args);for(const a of o.added)_s(a)&&n.push({type:Qt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(const a of o.removed)n.push({type:Qt.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Qt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const a of i.locations)s.locations.includes(a)||n.push({type:Qt.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function US(e,t){const n=[],r=Vi(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Qt.TYPE_REMOVED,description:Ff(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,s]of r.persisted)en(i)&&en(s)?n.push(...qS(i,s)):un(i)&&un(s)?n.push(...BS(i,s)):Lt(i)&&Lt(s)?n.push(...VS(i,s)):ze(i)&&ze(s)?n.push(...Sy(i,s),..._y(i,s)):Xe(i)&&Xe(s)?n.push(...Sy(i,s),..._y(i,s)):i.constructor!==s.constructor&&n.push({type:Qt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Ty(i)} to ${Ty(s)}.`});return n}function VS(e,t){const n=[],r=Vi(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)Lf(i)?n.push({type:Qt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Fr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(const i of r.removed)n.push({type:Qt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,s]of r.persisted)ou(i.type,s.type)||n.push({type:Qt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function BS(e,t){const n=[],r=Vi(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:Fr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Qt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function qS(e,t){const n=[],r=Vi(e.getValues(),t.getValues());for(const i of r.added)n.push({type:Fr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Qt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function _y(e,t){const n=[],r=Vi(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:Fr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Qt.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Sy(e,t){const n=[],r=Vi(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Qt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});
204for(const[i,s]of r.persisted)n.push(...jS(e,i,s)),Qa(i.type,s.type)||n.push({type:Qt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function jS(e,t,n){const r=[],i=Vi(t.args,n.args);for(const s of i.removed)r.push({type:Qt.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(const[s,o]of i.persisted)if(!ou(s.type,o.type))r.push({type:Qt.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{const l=Iy(s.defaultValue,s.type),d=Iy(o.defaultValue,o.type);l!==d&&r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(const s of i.added)_s(s)?r.push({type:Qt.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:Fr.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Qa(e,t){return Pt(e)?Pt(t)&&Qa(e.ofType,t.ofType)||Se(t)&&Qa(e,t.ofType):Se(e)?Se(t)&&Qa(e.ofType,t.ofType):Ju(t)&&e.name===t.name||Se(t)&&Qa(e,t.ofType)}function ou(e,t){return Pt(e)?Pt(t)&&ou(e.ofType,t.ofType):Se(e)?Se(t)&&ou(e.ofType,t.ofType)||!Se(t)&&ou(e.ofType,t):Ju(t)&&e.name===t.name}function Ty(e){if(ar(e))return"a Scalar type";if(ze(e))return"an Object type";if(Xe(e))return"an Interface type";if(un(e))return"a Union type";if(en(e))return"an Enum type";if(Lt(e))return"an Input type";Yt(!1,"Unexpected type: "+K(e))}function Iy(e,t){const n=es(e,t);return n!=null||Yt(!1),kt(jf(n))}function Vi(e,t){const n=[],r=[],i=[],s=Ui(e,({name:a})=>a),o=Ui(t,({name:a})=>a);for(const a of e){const l=o[a.name];l===void 0?r.push(a):i.push([a,l])}for(const a of t)s[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:r}}const zS=Object.freeze(Object.defineProperty({__proto__:null,version:s9,versionInfo:o9,graphql:iS,graphqlSync:sS,resolveObjMapThunk:Jp,resolveReadonlyArrayThunk:Yp,GraphQLSchema:ma,GraphQLDirective:oi,GraphQLScalarType:si,GraphQLObjectType:wr,GraphQLInterfaceType:Yo,GraphQLUnionType:Jo,GraphQLEnumType:ps,GraphQLInputObjectType:Xo,GraphQLList:bn,GraphQLNonNull:Pe,specifiedScalarTypes:Xu,GraphQLInt:Dw,GraphQLFloat:$w,GraphQLString:Ht,GraphQLBoolean:er,GraphQLID:Xp,GRAPHQL_MAX_INT:ac,GRAPHQL_MIN_INT:uc,specifiedDirectives:Ss,GraphQLIncludeDirective:Zp,GraphQLSkipDirective:em,GraphQLDeprecatedDirective:Vf,GraphQLSpecifiedByDirective:nm,get TypeKind(){return it},DEFAULT_DEPRECATION_REASON:tm,introspectionTypes:tl,__Schema:Bf,__Directive:sm,__DirectiveLocation:om,__Type:vr,__Field:am,__InputValue:el,__EnumValue:um,__TypeKind:lm,SchemaMetaFieldDef:Du,TypeMetaFieldDef:$u,TypeNameMetaFieldDef:ku,isSchema:kw,isDirective:Uf,isType:Ku,isScalarType:ar,isObjectType:ze,isInterfaceType:Xe,isUnionType:un,isEnumType:en,isInputObjectType:Lt,isListType:Pt,isNonNullType:Se,isInputType:Un,isOutputType:fs,isLeafType:ri,isCompositeType:ii,isAbstractType:Zr,isWrappingType:Yu,isNullableType:Wp,isNamedType:Ju,isRequiredArgument:_s,isRequiredInputField:Lf,isSpecifiedScalarType:Ff,isIntrospectionType:to,isSpecifiedDirective:rm,assertSchema:cm,assertDirective:s_,assertType:q9,assertScalarType:j9,assertObjectType:Tw,assertInterfaceType:Iw,assertUnionType:z9,assertEnumType:G9,assertInputObjectType:Q9,assertListType:H9,assertNonNullType:W9,assertInputType:K9,assertOutputType:Y9,assertLeafType:J9,assertCompositeType:X9,assertAbstractType:Z9,assertWrappingType:e_,assertNullableType:Mw,assertNamedType:t_,getNullableType:Kp,getNamedType:An,validateSchema:fm,assertValidSchema:dm,assertName:or,assertEnumValueName:Sw,Token:zp,Source:kf,Location:dw,get OperationTypeNode(){return an},getLocation:Wc,printLocation:fw,printSourceLocation:jp,Lexer:Qp,get TokenKind(){return W},parse:Hu,parseValue:xw,parseConstValue:O9,parseType:A9,print:kt,visit:pa,visitInParallel:Hp,getVisitFn:U9,getEnterLeaveForKind:Ko,BREAK:xo,get Kind(){return $},get DirectiveLocation(){return de},isDefinitionNode:y_,isExecutableDefinitionNode:vm,isSelectionNode:g_,isValueNode:Pw,isConstValueNode:yh,isTypeNode:b_,isTypeSystemDefinitionNode:ym,isTypeDefinitionNode:va,isTypeSystemExtensionNode:gm,isTypeExtensionNode:qf,execute:Gf,executeSync:I4,defaultFieldResolver:Eh,defaultTypeResolver:A4,responsePathAsArray:Yn,getArgumentValues:zf,getVariableValues:o4,getDirectiveValues:Pu,subscribe:aS,createSourceEventStream:k4,validate:S4,ValidationContext:_4,specifiedRules:E4,ExecutableDefinitionsRule:Lw,FieldsOnCorrectTypeRule:Fw,FragmentsOnCompositeTypesRule:Uw,KnownArgumentNamesRule:Vw,KnownDirectivesRule:bm,KnownFragmentNamesRule:qw,KnownTypeNamesRule:wm,LoneAnonymousOperationRule:jw,NoFragmentCyclesRule:Gw,NoUndefinedVariablesRule:Qw,NoUnusedFragmentsRule:Hw,NoUnusedVariablesRule:Ww,OverlappingFieldsCanBeMergedRule:Yw,PossibleFragmentSpreadsRule:Zw,ProvidedRequiredArgumentsRule:t4,ScalarLeafsRule:r4,SingleFieldSubscriptionsRule:u4,UniqueArgumentNamesRule:Sm,UniqueDirectivesPerLocationRule:Tm,UniqueFragmentNamesRule:h4,UniqueInputFieldNamesRule:Im,UniqueOperationNamesRule:p4,UniqueVariableNamesRule:y4,ValuesOfCorrectTypeRule:g4,VariablesAreInputTypesRule:b4,VariablesInAllowedPositionRule:w4,LoneSchemaDefinitionRule:zw,UniqueOperationTypesRule:m4,UniqueTypeNamesRule:v4,UniqueEnumValueNamesRule:f4,UniqueFieldDefinitionNamesRule:d4,UniqueArgumentDefinitionNamesRule:l4,UniqueDirectiveNamesRule:c4,PossibleTypeExtensionsRule:e4,NoDeprecatedCu
vendor: 7,332 bytes, lines 204-206
204stomRule:cS,NoSchemaIntrospectionCustomRule:fS,GraphQLError:H,syntaxError:rn,locatedError:ea,printError:l9,formatError:c9,getIntrospectionQuery:P4,getOperationAST:dS,getOperationRootType:hS,introspectionFromSchema:pS,buildClientSchema:mS,buildASTSchema:F4,buildSchema:yS,extendSchema:vS,lexicographicSortSchema:gS,printSchema:bS,printType:B4,printIntrospectionSchema:wS,typeFromAST:Qn,valueFromAST:Hr,valueFromASTUntyped:Kc,astFromValue:es,TypeInfo:pm,visitWithTypeInfo:mm,coerceInputValue:s4,concatAST:CS,separateOperations:DS,stripIgnoredCharacters:$S,isEqualType:Yc,isTypeSubTypeOf:Bs,doTypesOverlap:vh,assertValidName:kS,isValidNameError:Q4,get BreakingChangeType(){return Qt},get DangerousChangeType(){return Fr},findBreakingChanges:PS,findDangerousChanges:LS},Symbol.toStringTag,{value:"Module"}));var lc=new Map,_h=new Map,W4=!0,rf=!1;function K4(e){return e.replace(/[\s,]+/g," ").trim()}function GS(e){return K4(e.source.body.substring(e.start,e.end))}function QS(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,s=GS(r.loc),o=_h.get(i);o&&!o.has(s)?W4&&console.warn("Warning: fragment with name "+i+` already exists.
205graphql-tag enforces all fragment names across your application to be unique; read more about
206this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):o||_h.set(i,o=new Set),o.add(s),t.has(s)||(t.add(s),n.push(r))}else n.push(r)}),Hc(Hc({},e),{definitions:n})}function HS(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var s=r[i];s&&typeof s=="object"&&t.add(s)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function WS(e){var t=K4(e);if(!lc.has(t)){var n=Hu(e,{experimentalFragmentVariables:rf,allowLegacyFragmentVariables:rf});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");lc.set(t,HS(QS(n)))}return lc.get(t)}function ta(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(i,s){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=e[s+1]}),WS(r)}function KS(){lc.clear(),_h.clear()}function YS(){W4=!1}function JS(){rf=!0}function XS(){rf=!1}var Da={gql:ta,resetCaches:KS,disableFragmentWarnings:YS,enableExperimentalFragmentVariables:JS,disableExperimentalFragmentVariables:XS};(function(e){e.gql=Da.gql,e.resetCaches=Da.resetCaches,e.disableFragmentWarnings=Da.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Da.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Da.disableExperimentalFragmentVariables})(ta||(ta={}));ta.default=ta;const je=ta;var Y4={},Sh={exports:{}};(function(e,t){var n=typeof self<"u"?self:qe,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(u){return u&&DataView.prototype.isPrototypeOf(u)}if(a.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],v=ArrayBuffer.isView||function(u){return u&&d.indexOf(Object.prototype.toString.call(u))>-1};function y(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(u))throw new TypeError("Invalid character in header field name");return u.toLowerCase()}function _(u){return typeof u!="string"&&(u=String(u)),u}function T(u){var f={next:function(){var w=u.shift();return{done:w===void 0,value:w}}};return a.iterable&&(f[Symbol.iterator]=function(){return f}),f}function M(u){this.map={},u instanceof M?u.forEach(function(f,w){this.append(w,f)},this):Array.isArray(u)?u.forEach(function(f){this.append(f[0],f[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(f){this.append(f,u[f])},this)}M.prototype.append=function(u,f){u=y(u),f=_(f);var w=this.map[u];this.map[u]=w?w+", "+f:f},M.prototype.delete=function(u){delete this.map[y(u)]},M.prototype.get=function(u){return u=y(u),this.has(u)?this.map[u]:null},M.prototype.has=function(u){return this.map.hasOwnProperty(y(u))},M.prototype.set=function(u,f){this.map[y(u)]=_(f)},M.prototype.forEach=function(u,f){for(var w in this.map)this.map.hasOwnProperty(w)&&u.call(f,this.map[w],w,this)},M.prototype.keys=function(){var u=[];return this.forEach(function(f,w){u.push(w)}),T(u)},M.prototype.values=function(){var u=[];return this.forEach(function(f){u.push(f)}),T(u)},M.prototype.entries=function(){var u=[];return this.forEach(function(f,w){u.push([w,f])}),T(u)},a.iterable&&(M.prototype[Symbol.iterator]=M.prototype.entries);function A(u){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}function k(u){return new Promise(function(f,w){u.onload=function(){f(u.result)},u.onerror=function(){w(u.error)}})}function N(u){var f=new FileReader,w=k(f);return f.readAsArrayBuffer(u),w}function R(u){var f=new FileReader,w=k(f);return f.readAsText(u),w}function C(u){for(var f=new Uint8Array(u),w=new Array(f.length),E=0;E<f.length;E++)w[E]=String.fromCharCode(f[E]);return w.join("")}function U(u){if(u.slice)return u.slice(0);var f=new Uint8Array(u.byteLength);return f.set(new Uint8Array(u)),f.buffer}function B(){return this.bodyUsed=!1,this._initBody=function(u){this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:a.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:a.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():a.arrayBuffer&&a.blob&&l(u)?(this._bodyArrayBuffer=U(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||v(u))?this._bodyArrayBuffer=U(u):this._bodyText=u=Object.prototype.toString.call(u):this._bodyText="",this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var u=A(this);if(u)return u;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(N)}),this.text=function(){var u=A(this);if(u)return u;if(this._bodyBlob)return R(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(D)}),this.json=function(){return this.text().then(JSON.parse)},this}
vendor: 4,295 bytes, line 206
206var F=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function z(u){var f=u.toUpperCase();return F.indexOf(f)>-1?f:u}function q(u,f){f=f||{};var w=f.body;if(u instanceof q){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,f.headers||(this.headers=new M(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!w&&u._bodyInit!=null&&(w=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=f.credentials||this.credentials||"same-origin",(f.headers||!this.headers)&&(this.headers=new M(f.headers)),this.method=z(f.method||this.method||"GET"),this.mode=f.mode||this.mode||null,this.signal=f.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&w)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(w)}q.prototype.clone=function(){return new q(this,{body:this._bodyInit})};function D(u){var f=new FormData;return u.trim().split("&").forEach(function(w){if(w){var E=w.split("="),x=E.shift().replace(/\+/g," "),g=E.join("=").replace(/\+/g," ");f.append(decodeURIComponent(x),decodeURIComponent(g))}}),f}function L(u){var f=new M,w=u.replace(/\r?\n[\t ]+/g," ");return w.split(/\r?\n/).forEach(function(E){var x=E.split(":"),g=x.shift().trim();if(g){var c=x.join(":").trim();f.append(g,c)}}),f}B.call(q.prototype);function I(u,f){f||(f={}),this.type="default",this.status=f.status===void 0?200:f.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in f?f.statusText:"OK",this.headers=new M(f.headers),this.url=f.url||"",this._initBody(u)}B.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new M(this.headers),url:this.url})},I.error=function(){var u=new I(null,{status:0,statusText:""});return u.type="error",u};var m=[301,302,303,307,308];I.redirect=function(u,f){if(m.indexOf(f)===-1)throw new RangeError("Invalid status code");return new I(null,{status:f,headers:{location:u}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(f,w){this.message=f,this.name=w;var E=Error(f);this.stack=E.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function p(u,f){return new Promise(function(w,E){var x=new q(u,f);if(x.signal&&x.signal.aborted)return E(new o.DOMException("Aborted","AbortError"));var g=new XMLHttpRequest;function c(){g.abort()}g.onload=function(){var b={status:g.status,statusText:g.statusText,headers:L(g.getAllResponseHeaders()||"")};b.url="responseURL"in g?g.responseURL:b.headers.get("X-Request-URL");var h="response"in g?g.response:g.responseText;w(new I(h,b))},g.onerror=function(){E(new TypeError("Network request failed"))},g.ontimeout=function(){E(new TypeError("Network request failed"))},g.onabort=function(){E(new o.DOMException("Aborted","AbortError"))},g.open(x.method,x.url,!0),x.credentials==="include"?g.withCredentials=!0:x.credentials==="omit"&&(g.withCredentials=!1),"responseType"in g&&a.blob&&(g.responseType="blob"),x.headers.forEach(function(b,h){g.setRequestHeader(h,b)}),x.signal&&(x.signal.addEventListener("abort",c),g.onreadystatechange=function(){g.readyState===4&&x.signal.removeEventListener("abort",c)}),g.send(typeof x._bodyInit>"u"?null:x._bodyInit)})}return p.polyfill=!0,s.fetch||(s.fetch=p,s.Headers=M,s.Request=q,s.Response=I),o.Headers=M,o.Request=q,o.Response=I,o.fetch=p,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(Sh,Sh.exports);var Rm={},Qf={},J4=function(t){var n=t.uri,r=t.name,i=t.type;this.uri=n,this.name=r,this.type=i},ZS=J4,X4=function(t){return typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||t instanceof ZS},eT=X4,tT=function e(t,n,r){n===void 0&&(n=""),r===void 0&&(r=eT);var i,s=new Map;function o(v,y){var _=s.get(y);_?_.push.apply(_,v):s.set(y,v)}if(r(t))i=null,o([n],t);else{var a=n?n+".":"";if(typeof FileList<"u"&&t instanceof FileList)i=Array.prototype.map.call(t,function(v,y){return o([""+a+y],v),null});else if(Array.isArray(t))i=t.map(function(v,y){var _=e(v,""+a+y,r);
206return _.files.forEach(o),_.clone});else if(t&&t.constructor===Object){i={};for(var l in t){var d=e(t[l],""+a+l,r);d.files.forEach(o),i[l]=d.clone}}else i=t}return{clone:i,files:s}};Qf.ReactNativeFile=J4;Qf.extractFiles=tT;Qf.isExtractableFile=X4;var nT=typeof self=="object"?self.FormData:window.FormData,nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.defaultJsonSerializer=void 0;nl.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify};var rT=qe&&qe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rm,"__esModule",{value:!0});var Z4=Qf,iT=rT(nT),sT=nl,oT=function(e){return(0,Z4.isExtractableFile)(e)||e!==null&&typeof e=="object"&&typeof e.pipe=="function"};function aT(e,t,n,r){r===void 0&&(r=sT.defaultJsonSerializer);var i=(0,Z4.extractFiles)({query:e,variables:t,operationName:n},"",oT),s=i.clone,o=i.files;if(o.size===0){if(!Array.isArray(e))return r.stringify(s);if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce(function(_,T,M){return _.push({query:T,variables:t?t[M]:void 0}),_},[]);return r.stringify(a)}var l=typeof FormData>"u"?iT.default:FormData,d=new l;d.append("operations",r.stringify(s));var v={},y=0;return o.forEach(function(_){v[++y]=_}),d.append("map",r.stringify(v)),y=0,o.forEach(function(_,T){d.append("".concat(++y),T)}),d}Rm.default=aT;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.parseBatchRequestsExtendedArgs=Fn.parseRawRequestExtendedArgs=Fn.parseRequestExtendedArgs=Fn.parseBatchRequestArgs=Fn.parseRawRequestArgs=Fn.parseRequestArgs=void 0;function uT(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}}Fn.parseRequestArgs=uT;function lT(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}}Fn.parseRawRequestArgs=lT;function cT(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}}Fn.parseBatchRequestArgs=cT;function fT(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],s=n[1];return e.document?e:{url:e,document:t,variables:i,requestHeaders:s,signal:void 0}}Fn.parseRequestExtendedArgs=fT;function dT(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],s=n[1];return e.query?e:{url:e,query:t,variables:i,requestHeaders:s,signal:void 0}}Fn.parseRawRequestExtendedArgs=dT;function hT(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}Fn.parseBatchRequestsExtendedArgs=hT;var rl={},pT=qe&&qe.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(rl,"__esModule",{value:!0});rl.ClientError=void 0;var mT=function(e){pT(t,e);function t(n,r){var i=this,s="".concat(t.extractMessage(n),": ").concat(JSON.stringify({response:n,request:r}));return i=e.call(this,s)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t.extractMessage=function(n){try{return n.errors[0].message}catch{return"GraphQL Error (Code: ".concat(n.status,")")}},t}(Error);rl.ClientError=mT;var na={};const vT=Jy(zS);Object.defineProperty(na,"__esModule",{value:!0});na.resolveRequestDocument=void 0;var My=vT;function Ny(e){var t,n=void 0,r=e.definitions.filter(function(i){return i.kind==="OperationDefinition"});return r.length===1&&(n=(t=r[0].name)===null||t===void 0?void 0:t.value),n}function yT(e){if(typeof e=="string"){var t=void 0;try{var n=(0,My.parse)(e);t=Ny(n)}catch{}return{query:e,operationName:t}}var r=Ny(e);return{query:(0,My.print)(e),operationName:r}}na.resolveRequestDocument=yT;var $a={},Ry;function gT(){if(Ry)return $a;Ry=1;var e=qe&&qe.__assign||function(){return e=Object.assign||function(B){for(var F,z=1,q=arguments.length;z<q;z++){F=arguments[z];for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(B[D]=F[D])}return B},e.apply(this,arguments)},t=qe&&qe.__awaiter||function(B,F,z,q){function D(L){return L instanceof z?L:new z(function(I){I(L)})}return new(z||(z=Promise))(function(L,I){function m(f){try{u(q.next(f))}catch(w){I(w)}}function p(f){try{u(q.throw(f))}catch(w){I(w)}}function u(f){f.done?L(f.value):D(f.value).then(m,p)}u((q=q.apply(B,F||[])).next())})},n=qe&&qe.__generator||function(B,F){var z={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},q,D,L,I;return I={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function m(u){return function(f){return p([u,f])}}function p(u){if(q)throw new TypeError("Generator is already executing.");for(;z;)try{if(q=1,D&&(L=u[0]&2?D.return:u[0]?D.throw||((L=D.return)&&L.call(D),0):D.next)&&!(L=L.call(D,u[1])).done)return L;switch(D=0,L&&(u=[u[0]&2,L.value]),u[0]){case 0:case 1:L=u;break;case 4:return z.label++,{value:u[1],done:!1};case 5:z.label++,D=u[1],u=[0];continue;case 7:u=z.ops.pop(),z.trys.pop();continue;default:if(L=z.trys,!(L=L.length>0&&L[L.length-1])&&(u[0]===6||u[0]===2)){z=0;continue}if(u[0]===3&&(!L||u[1]>L[0]&&u[1]<L[3])){z.label=u[1];break}if(u[0]===6&&z.label<L[1]){z.label=L[1],L=u;break}if(L&&z.label<L[2]){z.label=L[2],z.ops.push(u);break}L[2]&&z.ops.pop(),z.trys.pop();continue}u=F.call(B,z)}catch(f){u=[6,f],D=0}finally{q=L=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty($a,"__esModule",{value:!0}),$a.GraphQLWebSocketClient=void 0;var r=rl,i=na,s="connection_init",o="connection_ack",a="ping",l="pong",d="subscribe",v="next",y="error",_="complete",T=function(){function B(F,z,q){this._type=F,this._payload=z,this._id=q}return Object.defineProperty(B.prototype,"type",{get:function(){return this._type}
206,enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"text",{get:function(){var F={type:this.type};return this.id!=null&&this.id!=null&&(F.id=this.id),this.payload!=null&&this.payload!=null&&(F.payload=this.payload),JSON.stringify(F)},enumerable:!1,configurable:!0}),B.parse=function(F,z){var q=JSON.parse(F),D=q.type,L=q.payload,I=q.id;return new B(D,z(L),I)},B}(),M=function(){function B(F,z){var q=z.onInit,D=z.onAcknowledged,L=z.onPing,I=z.onPong,m=this;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=F,F.onopen=function(p){return t(m,void 0,void 0,function(){var u,f,w,E;return n(this,function(x){switch(x.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},f=(u=F).send,w=k,q?[4,q()]:[3,2];case 1:return E=x.sent(),[3,3];case 2:E=null,x.label=3;case 3:return f.apply(u,[w.apply(void 0,[E]).text]),[2]}})})},F.onclose=function(p){m.socketState.acknowledged=!1,m.socketState.subscriptions={}},F.onerror=function(p){console.error(p)},F.onmessage=function(p){try{var u=A(p.data);switch(u.type){case o:{m.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(m.socketState.acknowledged=!0,D&&D(u.payload));return}case a:{L?L(u.payload).then(function(g){return F.send(R(g).text)}):F.send(R(null).text);return}case l:{I&&I(u.payload);return}}if(!m.socketState.acknowledged||u.id===void 0||u.id===null||!m.socketState.subscriptions[u.id])return;var f=m.socketState.subscriptions[u.id],w=f.query,E=f.variables,x=f.subscriber;switch(u.type){case v:{!u.payload.errors&&u.payload.data&&x.next&&x.next(u.payload.data),u.payload.errors&&x.error&&x.error(new r.ClientError(e(e({},u.payload),{status:200}),{query:w,variables:E}));return}case y:{x.error&&x.error(new r.ClientError({errors:u.payload,status:200},{query:w,variables:E}));return}case _:{x.complete&&x.complete(),delete m.socketState.subscriptions[u.id];return}}}catch(g){console.error(g),F.close(1006)}F.close(4400,"Unknown graphql-ws message.")}}return B.prototype.makeSubscribe=function(F,z,q,D){var L=this,I=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[I]={query:F,variables:D,subscriber:q},this.socket.send(C(I,{query:F,operationName:z,variables:D}).text),function(){L.socket.send(U(I).text),delete L.socketState.subscriptions[I]}},B.prototype.rawRequest=function(F,z){var q=this;return new Promise(function(D,L){var I;q.rawSubscribe(F,{next:function(m,p){return I={data:m,extensions:p}},error:L,complete:function(){return D(I)}},z)})},B.prototype.request=function(F,z){var q=this;return new Promise(function(D,L){var I;q.subscribe(F,{next:function(m){return I=m},error:L,complete:function(){return D(I)}},z)})},B.prototype.subscribe=function(F,z,q){var D=(0,i.resolveRequestDocument)(F),L=D.query,I=D.operationName;return this.makeSubscribe(L,I,z,q)},B.prototype.rawSubscribe=function(F,z,q){return this.makeSubscribe(F,void 0,z,q)},B.prototype.ping=function(F){this.socket.send(N(F).text)},B.prototype.close=function(){this.socket.close(1e3)},B.PROTOCOL="graphql-transport-ws",B}();$a.GraphQLWebSocketClient=M;function A(B,F){F===void 0&&(F=function(q){return q});var z=T.parse(B,F);return z}function k(B){return new T(s,B)}function N(B){return new T(a,B,void 0)}function R(B){return new T(l,B,void 0)}function C(B,F){return new T(d,F,B)}function U(B){return new T(_,void 0,B)}return $a}(function(e){var t=qe&&qe.__assign||function(){return t=Object.assign||function(E){for(var x,g=1,c=arguments.length;g<c;g++){x=arguments[g];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(E[b]=x[b])}return E},t.apply(this,arguments)},n=qe&&qe.__createBinding||(Object.create?function(E,x,g,c){c===void 0&&(c=g);var b=Object.getOwnPropertyDescriptor(x,g);(!b||("get"in b?!x.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return x[g]}}),Object.defineProperty(E,c,b)}:function(E,x,g,c){c===void 0&&(c=g),E[c]=x[g]}),r=qe&&qe.__setModuleDefault||(Object.create?function(E,x){Object.defineProperty(E,"default",{enumerable:!0,value:x})}:function(E,x){E.default=x}),i=qe&&qe.__importStar||function(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var g in E)g!=="default"&&Object.prototype.hasOwnProperty.call(E,g)&&n(x,E,g);return r(x,E),x},s=qe&&qe.__awaiter||function(E,x,g,c){function b(h){return h instanceof g?h:new g(function(S){S(h)})}return new(g||(g=Promise))(function(h,S){function P(X){try{G(c.next(X))}catch(te){S(te)}}function j(X){try{G(c.throw(X))}catch(te){S(te)}}function G(X){X.done?h(X.value):b(X.value).then(P,j)}G((c=c.apply(E,x||[])).next())})},o=qe&&qe.__generator||function(E,x){var g={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},c,b,h,S;return S={next:P(0),throw:P(1),return:P(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function P(G){return function(X){return j([G,X])}}function j(G){if(c)throw new TypeError("Generator is already executing.");for(;g;)try{if(c=1,b&&(h=G[0]&2?b.return:G[0]?b.throw||((h=b.return)&&h.call(b),
2060):b.next)&&!(h=h.call(b,G[1])).done)return h;switch(b=0,h&&(G=[G[0]&2,h.value]),G[0]){case 0:case 1:h=G;break;case 4:return g.label++,{value:G[1],done:!1};case 5:g.label++,b=G[1],G=[0];continue;case 7:G=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(G[0]===6||G[0]===2)){g=0;continue}if(G[0]===3&&(!h||G[1]>h[0]&&G[1]<h[3])){g.label=G[1];break}if(G[0]===6&&g.label<h[1]){g.label=h[1],h=G;break}if(h&&g.label<h[2]){g.label=h[2],g.ops.push(G);break}h[2]&&g.ops.pop(),g.trys.pop();continue}G=x.call(E,g)}catch(X){G=[6,X],b=0}finally{c=h=0}if(G[0]&5)throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}},a=qe&&qe.__rest||function(E,x){var g={};for(var c in E)Object.prototype.hasOwnProperty.call(E,c)&&x.indexOf(c)<0&&(g[c]=E[c]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(E);b<c.length;b++)x.indexOf(c[b])<0&&Object.prototype.propertyIsEnumerable.call(E,c[b])&&(g[c[b]]=E[c[b]]);return g},l=qe&&qe.__spreadArray||function(E,x,g){if(g||arguments.length===2)for(var c=0,b=x.length,h;c<b;c++)(h||!(c in x))&&(h||(h=Array.prototype.slice.call(x,0,c)),h[c]=x[c]);return E.concat(h||Array.prototype.slice.call(x))},d=qe&&qe.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.resolveRequestDocument=e.GraphQLWebSocketClient=e.gql=e.batchRequests=e.request=e.rawRequest=e.GraphQLClient=e.ClientError=void 0;var v=i(Sh.exports),y=v,_=d(Rm),T=nl,M=Fn,A=rl;Object.defineProperty(e,"ClientError",{enumerable:!0,get:function(){return A.ClientError}});var k=na,N=function(E){var x={};return E&&(typeof Headers<"u"&&E instanceof Headers||y&&y.Headers&&E instanceof y.Headers?x=u(E):Array.isArray(E)?E.forEach(function(g){var c=g[0],b=g[1];x[c]=b}):x=E),x},R=function(E){return E.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},C=function(E){var x=E.query,g=E.variables,c=E.operationName,b=E.jsonSerializer;if(!Array.isArray(x)){var h=["query=".concat(encodeURIComponent(R(x)))];return g&&h.push("variables=".concat(encodeURIComponent(b.stringify(g)))),c&&h.push("operationName=".concat(encodeURIComponent(c))),h.join("&")}if(typeof g<"u"&&!Array.isArray(g))throw new Error("Cannot create query with given variable type, array expected");var S=x.reduce(function(P,j,G){return P.push({query:R(j),variables:g?b.stringify(g[G]):void 0}),P},[]);return"query=".concat(encodeURIComponent(b.stringify(S)))},U=function(E){var x=E.url,g=E.query,c=E.variables,b=E.operationName,h=E.headers,S=E.fetch,P=E.fetchOptions,j=E.middleware;return s(void 0,void 0,void 0,function(){var G,X,te;return o(this,function(re){switch(re.label){case 0:return G=(0,_.default)(g,c,b,P.jsonSerializer),X=t({method:"POST",headers:t(t({},typeof G=="string"?{"Content-Type":"application/json"}:{}),h),body:G},P),j?[4,Promise.resolve(j(t(t({},X),{url:x,operationName:b,variables:c})))]:[3,2];case 1:te=re.sent(),x=te.url,X=a(te,["url"]),re.label=2;case 2:return[4,S(x,X)];case 3:return[2,re.sent()]}})})},B=function(E){var x=E.url,g=E.query,c=E.variables,b=E.operationName,h=E.headers,S=E.fetch,P=E.fetchOptions,j=E.middleware;return s(void 0,void 0,void 0,function(){var G,X,te;return o(this,function(re){switch(re.label){case 0:return G=C({query:g,variables:c,operationName:b,jsonSerializer:P.jsonSerializer}),X=t({method:"GET",headers:h},P),j?[4,Promise.resolve(j(t(t({},X),{url:x,operationName:b,variables:c})))]:[3,2];case 1:te=re.sent(),x=te.url,X=a(te,["url"]),re.label=2;case 2:return[4,S("".concat(x,"?").concat(G),X)];case 3:return[2,re.sent()]}})})},F=function(){function E(x,g){g===void 0&&(g={}),this.url=x,this.options=g}return E.prototype.rawRequest=function(x,g,c){return s(this,void 0,void 0,function(){var b,h,S,P,j,G,X,te,re,me,fe,ie;return o(this,function($e){return b=(0,M.parseRawRequestArgs)(x,g,c),h=this.options,S=h.headers,P=h.fetch,j=P===void 0?v.default:P,G=h.method,X=G===void 0?"POST":G,te=h.requestMiddleware,re=h.responseMiddleware,me=a(h,["headers","fetch","method","requestMiddleware","responseMiddleware"]),fe=this.url,b.signal!==void 0&&(me.signal=b.signal),ie=(0,k.resolveRequestDocument)(b.query).operationName,[2,z({url:fe,query:b.query,variables:b.variables,headers:t(t({},N(m(S))),N(b.requestHeaders)),operationName:ie,fetch:j,method:X,fetchOptions:me,middleware:te}).then(function(Te){return re&&re(Te),Te}).catch(function(Te){throw re&&re(Te),Te})]})})},E.prototype.request=function(x){for(var g=[],c=1;c<arguments.length;c++)g[c-1]=arguments[c];return s(this,void 0,void 0,function(){var b,h,S,P,j,G,X,te,re,me,fe,ie,$e,Te,ve,Ge;return o(this,function(We){return b=g[0],h=g[1],S=(0,M.parseRequestArgs)(x,b,h),P=this.options,j=P.headers,G=P.fetch,X=G===void 0?v.default:G,te=P.method,re=te===void 0?"POST":te,me=P.requestMiddleware,fe=P.responseMiddleware,ie=a(P,["headers","fetch","method","requestMiddleware","responseMiddleware"]),$e=this.url,S.signal!==void 0&&(ie.signal=S.signal),Te=(0,k.resolveRequestDocument)(S.document),ve=Te.query,Ge=Te.operationName,[2,z({url:$e,query:ve,variables:S.variables,headers:t(t({},N(m(j))),N(S.requestHeaders)),operationName:Ge,fetch:X,method:re,fetchOptions:ie,middleware:me}).then(function(he){return fe&&fe(he),he.data}).catch(function(he){throw fe&&fe(he),he})]})})},E.prototype.batchRequests=function(x,g){var c=(0,M.parseBatchRequestArgs)(x,g),b=this.options,h=b.headers,S=b.fetch,P=S===void 0?v.default:S,j=b.method,G=j===void 0?"POST":j,X=b.requestMiddleware,te=b.responseMiddleware,re=a(b,["headers","fetch","method","requestMiddleware","responseMiddleware"]),me=this.url;c.signal!==void 0&&(re.signal=c.signal);var fe=c.documents.map(function($e){var Te=$e.document;return(0,k.resolveRequestDocument)(Te).query}),ie=c.documents.map(function($e){var Te=$e.variables;return Te});return z({url:me,query:fe,variables:ie,headers:t(t({},N(m(h))),N(c.requestHeaders)),operationName:void 0,fetch:P,method:G,fetchOptions:re,middleware:X}).then(function($e){return te&&te($e),$e.data}).catch(function($e){throw te&&te($e),$e})},E.prototype.setHeaders=function(x){return this.options.headers=x,this},E.prototype.setHeader=function(x,g){var c,b=this.options.headers;return b?b[x]=g:this.options.headers=(c={},c[x]=g,c),this},E.prototype.setEndpoint=function(x){return this.url=x,this},E}();e.GraphQLClient=F;function z(E){var x=E.url,g=E.query,c=E.variables,b=E.headers,h=E.operationName,S=E.fetch,P=E.method,j=P===void 0?"POST":P,G=E.fetchOptions,X=E.middleware;return s(this,void 0,void 0,function(){var te,re,me,fe,ie,$e,Te,ve,Ge,We,he;return o(this,function(Ze){switch(Ze.label){case 0:return te=j.toUpperCase()==="POST"?U:B,re=Array.isArray(g),[4,te({url:x,query:g,variables:c,operationName:h,headers:b,fetch:S,fetchOptions:G,middleware:X})];case 1:return me=Ze.sent(),[4,I(me,G.jsonSerializer)];case 2:if(fe=Ze.sent(),ie=re&&Array.isArray(fe)?!fe.some(function(Je){var ge=Je.data;return!ge}):!!fe.data,$e=!fe.errors||G.errorPolicy==="all"||G.errorPolicy==="ignore",me.ok&&$e&&ie)return Te=me.headers,ve=me.status,fe.errors,Ge=a(fe,["errors"]),We=G.errorPolicy==="ignore"?Ge:fe,[2,t(t
206({},re?{data:We}:We),{headers:Te,status:ve})];throw he=typeof fe=="string"?{error:fe}:fe,new A.ClientError(t(t({},he),{status:me.status,headers:me.headers}),{query:g,variables:c})}})})}function q(E,x){for(var g=[],c=2;c<arguments.length;c++)g[c-2]=arguments[c];return s(this,void 0,void 0,function(){var b,h;return o(this,function(S){return b=M.parseRawRequestExtendedArgs.apply(void 0,l([E,x],g,!1)),h=new F(b.url),[2,h.rawRequest(t({},b))]})})}e.rawRequest=q;function D(E,x){for(var g=[],c=2;c<arguments.length;c++)g[c-2]=arguments[c];return s(this,void 0,void 0,function(){var b,h;return o(this,function(S){return b=M.parseRequestExtendedArgs.apply(void 0,l([E,x],g,!1)),h=new F(b.url),[2,h.request(t({},b))]})})}e.request=D;function L(E,x,g){return s(this,void 0,void 0,function(){var c,b;return o(this,function(h){return c=(0,M.parseBatchRequestsExtendedArgs)(E,x,g),b=new F(c.url),[2,b.batchRequests(t({},c))]})})}e.batchRequests=L,e.default=D;function I(E,x){return x===void 0&&(x=T.defaultJsonSerializer),s(this,void 0,void 0,function(){var g,c,b;return o(this,function(h){switch(h.label){case 0:return E.headers.forEach(function(S,P){P.toLowerCase()==="content-type"&&(g=S)}),g&&(g.toLowerCase().startsWith("application/json")||g.toLowerCase().startsWith("application/graphql+json")||g.toLowerCase().startsWith("application/graphql-response+json"))?(b=(c=x).parse,[4,E.text()]):[3,2];case 1:return[2,b.apply(c,[h.sent()])];case 2:return[2,E.text()]}})})}function m(E){return typeof E=="function"?E():E}function p(E){for(var x=[],g=1;g<arguments.length;g++)x[g-1]=arguments[g];return E.reduce(function(c,b,h){return"".concat(c).concat(b).concat(h in x?x[h]:"")},"")}e.gql=p;function u(E){var x={};return E.forEach(function(g,c){x[c]=g}),x}var f=gT();Object.defineProperty(e,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return f.GraphQLWebSocketClient}});var w=na;Object.defineProperty(e,"resolveRequestDocument",{enumerable:!0,get:function(){return w.resolveRequestDocument}})})(Y4);var Th={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",d="[object Error]",v="[object Function]",y="[object GeneratorFunction]",_="[object Map]",T="[object Number]",M="[object Object]",A="[object Promise]",k="[object RegExp]",N="[object Set]",R="[object String]",C="[object Symbol]",U="[object WeakMap]",B="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",L="[object Int16Array]",I="[object Int32Array]",m="[object Uint8Array]",p="[object Uint8ClampedArray]",u="[object Uint16Array]",f="[object Uint32Array]",w=/[\\^$.*+?()[\]{}|]/g,E=/\w*$/,x=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,c={};c[s]=c[o]=c[B]=c[F]=c[a]=c[l]=c[z]=c[q]=c[D]=c[L]=c[I]=c[_]=c[T]=c[M]=c[k]=c[N]=c[R]=c[C]=c[m]=c[p]=c[u]=c[f]=!0,c[d]=c[v]=c[U]=!1;var b=typeof qe=="object"&&qe&&qe.Object===Object&&qe,h=typeof self=="object"&&self&&self.Object===Object&&self,S=b||h||Function("return this")(),P=t&&!t.nodeType&&t,j=P&&!0&&e&&!e.nodeType&&e,G=j&&j.exports===P;function X(O,Q){return O.set(Q[0],Q[1]),O}function te(O,Q){return O.add(Q),O}function re(O,Q){for(var J=-1,le=O?O.length:0;++J<le&&Q(O[J],J,O)!==!1;);return O}function me(O,Q){for(var J=-1,le=Q.length,ln=O.length;++J<le;)O[ln+J]=Q[J];return O}function fe(O,Q,J,le){var ln=-1,Nn=O?O.length:0;for(le&&Nn&&(J=O[++ln]);++ln<Nn;)J=Q(J,O[ln],ln,O);return J}function ie(O,Q){for(var J=-1,le=Array(O);++J<O;)le[J]=Q(J);return le}function $e(O,Q){return O==null?void 0:O[Q]}function Te(O){var Q=!1;if(O!=null&&typeof O.toString!="function")try{Q=!!(O+"")}catch{}return Q}function ve(O){var Q=-1,J=Array(O.size);return O.forEach(function(le,ln){J[++Q]=[ln,le]}),J}function Ge(O,Q){return function(J){return O(Q(J))}}function We(O){var Q=-1,J=Array(O.size);return O.forEach(function(le){J[++Q]=le}),J}var he=Array.prototype,Ze=Function.prototype,Je=Object.prototype,ge=S["__core-js_shared__"],ut=function(){var O=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");
vendor: 2,773 bytes, line 206
206return O?"Symbol(src)_1."+O:""}(),lt=Ze.toString,ye=Je.hasOwnProperty,nt=Je.toString,bt=RegExp("^"+lt.call(ye).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xe=G?S.Buffer:void 0,ct=S.Symbol,ft=S.Uint8Array,Ie=Ge(Object.getPrototypeOf,Object),wt=Object.create,Et=Je.propertyIsEnumerable,Me=he.splice,dt=Object.getOwnPropertySymbols,xt=xe?xe.isBuffer:void 0,Ne=Ge(Object.keys,Object),st=ro(S,"DataView"),et=ro(S,"Map"),Ee=ro(S,"Promise"),ot=ro(S,"Set"),at=ro(S,"WeakMap"),be=ro(Object,"create"),_t=Ms(st),St=Ms(et),Re=Ms(Ee),Tt=Ms(ot),It=Ms(at),_e=ct?ct.prototype:void 0,ht=_e?_e.valueOf:void 0;function Ke(O){var Q=-1,J=O?O.length:0;for(this.clear();++Q<J;){var le=O[Q];this.set(le[0],le[1])}}function Oe(){this.__data__=be?be(null):{}}function Mt(O){return this.has(O)&&delete this.__data__[O]}function Nt(O){var Q=this.__data__;if(be){var J=Q[O];return J===r?void 0:J}return ye.call(Q,O)?Q[O]:void 0}function Ae(O){var Q=this.__data__;return be?Q[O]!==void 0:ye.call(Q,O)}function Rt(O,Q){var J=this.__data__;return J[O]=be&&Q===void 0?r:Q,this}Ke.prototype.clear=Oe,Ke.prototype.delete=Mt,Ke.prototype.get=Nt,Ke.prototype.has=Ae,Ke.prototype.set=Rt;function Qe(O){var Q=-1,J=O?O.length:0;for(this.clear();++Q<J;){var le=O[Q];this.set(le[0],le[1])}}function Ce(){this.__data__=[]}function Ot(O){var Q=this.__data__,J=lr(Q,O);if(J<0)return!1;var le=Q.length-1;return J==le?Q.pop():Me.call(Q,J,1),!0}function At(O){var Q=this.__data__,J=lr(Q,O);return J<0?void 0:Q[J][1]}function De(O){return lr(this.__data__,O)>-1}function Ct(O,Q){var J=this.__data__,le=lr(J,O);return le<0?J.push([O,Q]):J[le][1]=Q,this}Qe.prototype.clear=Ce,Qe.prototype.delete=Ot,Qe.prototype.get=At,Qe.prototype.has=De,Qe.prototype.set=Ct;function Ye(O){var Q=-1,J=O?O.length:0;for(this.clear();++Q<J;){var le=O[Q];this.set(le[0],le[1])}}function pt(){this.__data__={hash:new Ke,map:new(et||Qe),string:new Ke}}function ci(O){return ul(this,O).delete(O)}function fi(O){return ul(this,O).get(O)}function di(O){return ul(this,O).has(O)}function hi(O,Q){return ul(this,O).set(O,Q),this}Ye.prototype.clear=pt,Ye.prototype.delete=ci,Ye.prototype.get=fi,Ye.prototype.has=di,Ye.prototype.set=hi;function kn(O){this.__data__=new Qe(O)}function pi(){this.__data__=new Qe}function mi(O){return this.__data__.delete(O)}function vi(O){return this.__data__.get(O)}function yi(O){return this.__data__.has(O)}function gi(O,Q){var J=this.__data__;if(J instanceof Qe){var le=J.__data__;if(!et||le.length<n-1)return le.push([O,Q]),this;J=this.__data__=new Ye(le)}return J.set(O,Q),this}kn.prototype.clear=pi,kn.prototype.delete=mi,kn.prototype.get=vi,kn.prototype.has=yi,kn.prototype.set=gi;function bi(O,Q){var J=od(O)||m3(O)?ie(O.length,String):[],le=J.length,ln=!!le;
vendor: 4,251 bytes, line 206
206for(var Nn in O)(Q||ye.call(O,Nn))&&!(ln&&(Nn=="length"||f3(Nn,le)))&&J.push(Nn);return J}function jr(O,Q,J){var le=O[Q];(!(ye.call(O,Q)&&Km(le,J))||J===void 0&&!(Q in O))&&(O[Q]=J)}function lr(O,Q){for(var J=O.length;J--;)if(Km(O[J][0],Q))return J;return-1}function wi(O,Q){return O&&Qm(Q,ad(Q),O)}function Ir(O,Q,J,le,ln,Nn,cr){var Pn;if(le&&(Pn=Nn?le(O,ln,Nn,cr):le(O)),Pn!==void 0)return Pn;if(!ll(O))return O;var Xm=od(O);if(Xm){if(Pn=u3(O),!Q)return s3(O,Pn)}else{var io=Is(O),Zm=io==v||io==y;if(y3(O))return X5(O,Q);if(io==M||io==s||Zm&&!Nn){if(Te(O))return Nn?O:{};if(Pn=l3(Zm?{}:O),!Q)return o3(O,wi(Pn,O))}else{if(!c[io])return Nn?O:{};Pn=c3(O,io,Ir,Q)}}cr||(cr=new kn);var ev=cr.get(O);if(ev)return ev;if(cr.set(O,Pn),!Xm)var tv=J?a3(O):ad(O);return re(tv||O,function(ud,cl){tv&&(cl=ud,ud=O[cl]),jr(Pn,cl,Ir(ud,Q,J,le,cl,O,cr))}),Pn}function Ei(O){return ll(O)?wt(O):{}}function xi(O,Q,J){var le=Q(O);return od(O)?le:me(le,J(O))}function Ea(O){return nt.call(O)}function xa(O){if(!ll(O)||h3(O))return!1;var Q=Jm(O)||Te(O)?bt:x;return Q.test(Ms(O))}function J5(O){if(!Wm(O))return Ne(O);var Q=[];for(var J in Object(O))ye.call(O,J)&&J!="constructor"&&Q.push(J);return Q}function X5(O,Q){if(Q)return O.slice();var J=new O.constructor(O.length);return O.copy(J),J}function sd(O){var Q=new O.constructor(O.byteLength);return new ft(Q).set(new ft(O)),Q}function Z5(O,Q){var J=Q?sd(O.buffer):O.buffer;return new O.constructor(J,O.byteOffset,O.byteLength)}function e3(O,Q,J){var le=Q?J(ve(O),!0):ve(O);return fe(le,X,new O.constructor)}function t3(O){var Q=new O.constructor(O.source,E.exec(O));return Q.lastIndex=O.lastIndex,Q}function n3(O,Q,J){var le=Q?J(We(O),!0):We(O);return fe(le,te,new O.constructor)}function r3(O){return ht?Object(ht.call(O)):{}}function i3(O,Q){var J=Q?sd(O.buffer):O.buffer;return new O.constructor(J,O.byteOffset,O.length)}function s3(O,Q){var J=-1,le=O.length;for(Q||(Q=Array(le));++J<le;)Q[J]=O[J];return Q}function Qm(O,Q,J,le){J||(J={});for(var ln=-1,Nn=Q.length;++ln<Nn;){var cr=Q[ln],Pn=le?le(J[cr],O[cr],cr,J,O):void 0;jr(J,cr,Pn===void 0?O[cr]:Pn)}return J}function o3(O,Q){return Qm(O,Hm(O),Q)}function a3(O){return xi(O,ad,Hm)}function ul(O,Q){var J=O.__data__;return d3(Q)?J[typeof Q=="string"?"string":"hash"]:J.map}function ro(O,Q){var J=$e(O,Q);return xa(J)?J:void 0}var Hm=dt?Ge(dt,Object):w3,Is=Ea;(st&&Is(new st(new ArrayBuffer(1)))!=F||et&&Is(new et)!=_||Ee&&Is(Ee.resolve())!=A||ot&&Is(new ot)!=N||at&&Is(new at)!=U)&&(Is=function(O){var Q=nt.call(O),J=Q==M?O.constructor:void 0,le=J?Ms(J):void 0;if(le)switch(le){case _t:return F;case St:return _;case Re:return A;case Tt:return N;case It:return U}return Q});function u3(O){var Q=O.length,J=O.constructor(Q);return Q&&typeof O[0]=="string"&&ye.call(O,"index")&&(J.index=O.index,J.input=O.input),J}function l3(O){return typeof O.constructor=="function"&&!Wm(O)?Ei(Ie(O)):{}}function c3(O,Q,J,le){var ln=O.constructor;switch(Q){case B:return sd(O);case a:case l:return new ln(+O);case F:return Z5(O,le);case z:case q:case D:case L:case I:case m:case p:case u:case f:return i3(O,le);case _:return e3(O,le,J);case T:case R:return new ln(O);case k:return t3(O);case N:return n3(O,le,J);case C:return r3(O)}}function f3(O,Q){return Q=Q==null?i:Q,!!Q&&(typeof O=="number"||g.test(O))&&O>-1&&O%1==0&&O<Q}function d3(O){var Q=typeof O;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?O!=="__proto__":O===null}function h3(O){return!!ut&&ut in O}function Wm(O){var Q=O&&O.constructor,J=typeof Q=="function"&&Q.prototype||Je;return O===J}function Ms(O){if(O!=null){try{return lt.call(O)}catch{}try{return O+""}catch{}}return""}function p3(O){return Ir(O,!0,!0)}function Km(O,Q){return O===Q||O!==O&&Q!==Q}function m3(O){return v3(O)&&ye.call(O,"callee")&&(!Et.call(O,"callee")||nt.call(O)==s)}var od=Array.isArray;function Ym(O){return O!=null&&g3(O.length)&&!Jm(O)}function v3(O){return b3(O)&&Ym(O)}var y3=xt||E3;function Jm(O){var Q=ll(O)?nt.call(O):"";return Q==v||Q==y}function g3(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=i}function ll(O){var Q=typeof O;return!!O&&(Q=="object"||Q=="function")}function b3(O){return!!O&&typeof O=="object"}function ad(O){return Ym(O)?bi(O):J5(O)}function w3(){return[]}function E3(){return!1}e.exports=p3}
206)(Th,Th.exports);const sf=Th.exports;var Om=e=>{var t,n,r,i;let s,o,a;return Array.isArray(e)?(o=e[0],s=(t=e[1])!=null?t:cs,a=(n=e[2])!=null?n:void 0):(o=e.amount,s=(r=e.assetId)!=null?r:cs,a=(i=e.max)!=null?i:void 0),{assetId:ue(s),amount:Z(o),max:a?Z(a):void 0}},bT=(e=>(e.Spent="SPENT",e.Unspent="UNSPENT",e))(bT||{}),wT=(e=>(e.Spent="SPENT",e.Unspent="UNSPENT",e))(wT||{}),il=je`
207  fragment transactionFragment on Transaction {
208    id
209    rawPayload
210    gasPrice
211    status {
212      type: __typename
213      ... on SubmittedStatus {
214        time
215      }
216      ... on SuccessStatus {
217        block {
218          id
219        }
220        time
221        programState {
222          returnType
223          data
224        }
225      }
226      ... on FailureStatus {
227        block {
228          id
229        }
230        time
231        reason
232      }
233    }
234  }
235`,e5=je`
236  fragment receiptFragment on Receipt {
237    data
238    rawPayload
239  }
240`,Am=je`
241  fragment coinFragment on Coin {
242    utxoId
243    owner
244    amount
245    assetId
246    maturity
247    coinStatus: status
248    blockCreated
249  }
250`,t5=je`
251  fragment messageFragment on Message {
252    amount
253    sender
254    recipient
255    data
256    nonce
257    messageStatus: status
258    daHeight
259  }
260`,ET=je`
261  fragment messageProofFragment on MessageProof {
262    proofSet
263    proofIndex
264    sender
265    recipient
266    nonce
267    amount
268    data
269    signature
270    header {
271      id
272      daHeight
273      transactionsCount
274      outputMessagesCount
275      transactionsRoot
276      outputMessagesRoot
277      height
278      prevRoot
279      time
280      applicationHash
281    }
282  }
283`,n5=je`
284  fragment balanceFragment on Balance {
285    owner
286    amount
287    assetId
288  }
289`,xT=je`
290  fragment consensusParametersFragment on ConsensusParameters {
291    contractMaxSize
292    maxInputs
293    maxOutputs
294    maxWitnesses
295    maxGasPerTx
296    maxScriptLength
297    maxScriptDataLength
298    maxStorageSlots
299    maxPredicateLength
300    maxPredicateDataLength
301    gasPriceFactor
302    gasPerByte
303    maxMessageDataLength
304  }
305`,Hf=je`
306  fragment blockFragment on Block {
307    id
308    header {
309      height
310      time
311    }
312    transactions {
313      id
314    }
315  }
316`,_T=je`
317  fragment chainInfoFragment on ChainInfo {
318    name
319    baseChainHeight
320    peerCount
321    consensusParameters {
322      ...consensusParametersFragment
323    }
324    latestBlock {
325      ...blockFragment
326    }
327  }
328  ${xT}
329  ${Hf}
330`,ST=je`
331  fragment contractBalanceFragment on ContractBalance {
332    contract
333    amount
334    assetId
335  }
336`,TT=je`
337  query getVersion {
338    nodeInfo {
339      nodeVersion
340    }
341  }
342`,IT=je`
343  query getInfo {
344    nodeInfo {
345      nodeVersion
346      minGasPrice
347    }
348  }
349`,MT=je`
350  query getChain {
351    chain {
352      ...chainInfoFragment
353    }
354  }
355  ${_T}
356`,NT=je`
357  query getTransaction($transactionId: TransactionId!) {
358    transaction(id: $transactionId) {
359      ...transactionFragment
360    }
361  }
362  ${il}
363`,RT=je`
364  query getTransactionWithReceipts($transactionId: TransactionId!) {
365    transaction(id: $transactionId) {
366      ...transactionFragment
367      receipts {
368        ...receiptFragment
369      }
370    }
371  }
372  ${il}
373  ${e5}
374`,OT=je`
375  query getTransactions($after: String, $before: String, $first: Int, $last: Int) {
376    transactions(after: $after, before: $before, first: $first, last: $last) {
377      edges {
378        node {
379          ...transactionFragment
380        }
381      }
382    }
383  }
384  ${il}
385`,AT=je`
386  query getTransactionsByOwner(
387    $owner: Address!
388    $after: String
389    $before: String
390    $first: Int
391    $last: Int
392  ) {
393    transactionsByOwner(owner: $owner, after: $after, before: $before, first: $first, last: $last) {
394      edges {
395        node {
396          ...transactionFragment
397        }
398      }
399    }
400  }
401  ${il}
402`,CT=je`
403  query getBlock($blockId: BlockId, $blockHeight: U64) {
404    block(id: $blockId, height: $blockHeight) {
405      ...blockFragment
406    }
407  }
408  ${Hf}
409`,DT=je`
410  query getBlockWithTransactions($blockId: BlockId, $blockHeight: U64) {
411    block(id: $blockId, height: $blockHeight) {
412      ...blockFragment
413      transactions {
414        ...transactionFragment
415      }
416    }
417  }
418  ${Hf}
419  ${il}
420`,$T=je`
421  query getBlocks($after: String, $before: String, $first: Int, $last: Int) {
422    blocks(after: $after, before: $before, first: $first, last: $last) {
423      edges {
424        node {
425          ...blockFragment
426        }
427      }
428    }
429  }
430  ${Hf}
431`,kT=je`
432  query getCoin($coinId: UtxoId!) {
433    coin(utxoId: $coinId) {
434      ...coinFragment
435    }
436  }
437  ${Am}
438`,PT=je`
439  query getCoins(
440    $filter: CoinFilterInput!
441    $after: String
442    $before: String
443    $first: Int
444    $last: Int
445  ) {
446    coins(filter: $filter, after: $after, before: $before, first: $first, last: $last) {
447      edges {
448        node {
449          ...coinFragment
450        }
451      }
452    }
453  }
454  ${Am}
455`,LT=je`
456  query getResourcesToSpend(
457    $owner: Address!
458    $queryPerAsset: [SpendQueryElementInput!]!
459    $excludedIds: ExcludeInput
460  ) {
461    resourcesToSpend(owner: $owner, queryPerAsset: $queryPerAsset, excludedIds: $excludedIds) {
462      ...coinFragment
463      ...messageFragment
464    }
465  }
466  ${Am}
467  ${t5}
468`,FT=je`
469  query getContract($contractId: ContractId!) {
470    contract(id: $contractId) {
471      bytecode
472      id
473    }
474  }
475`,UT=je`
476  query getContractBalance($contract: ContractId!, $asset: AssetId!) {
477    contractBalance(contract: $contract, asset: $asset) {
478      ...contractBalanceFragment
479    }
480  }
481  ${ST}
482`,VT=je`
483  query getBalance($owner: Address!, $assetId: AssetId!) {
484    balance(owner: $owner, assetId: $assetId) {
485      ...balanceFragment
486    }
487  }
488  ${n5}
489`,BT=je`
490  query getBalances(
491    $filter: BalanceFilterInput!
492    $after: String
493    $before: String
494    $first: Int
495    $last: Int
496  ) {
497    balances(filter: $filter, after: $after, before: $before, first: $first, last: $last) {
498      edges {
499        node {
500          ...balanceFragment
501        }
502      }
503    }
504  }
505  ${n5}
506`,qT=je`
507  query getMessages($owner: Address!, $after: String, $before: String, $first: Int, $last: Int) {
508    messages(owner: $owner, after: $after, before: $before, first: $first, last: $last) {
509      edges {
510        node {
511          ...messageFragment
512        }
513      }
514    }
515  }
516  ${t5}
517`,jT=je`
518  query getMessageProof($transactionId: TransactionId!, $messageId: MessageId!) {
519    messageProof(transactionId: $transactionId, messageId: $messageId) {
520      ...messageProofFragment
521    }
522  }
523  ${ET}
524`,zT=je`
525  mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {
526    dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {
527      ...receiptFragment
528    }
529  }
530  ${e5}
531`,GT=je`
532  mutation submit($encodedTransaction: HexString!) {
533    submit(tx: $encodedTransaction) {
534      id
535    }
536  }
537`,QT=je`
538  mutation startSession {
539    startSession
540  }
541`,HT=je`
542  mutation endSession($sessionId: ID!) {
543    endSession(id: $sessionId)
544  }
545`,WT=je`
546  mutation execute($sessionId: ID!, $op: String!) {
547    execute(id: $sessionId, op: $op)
548  }
549`,KT=je`
550  mutation reset($sessionId: ID!) {
551    reset(id: $sessionId)
552  }
553`,YT=(e,t,n)=>e();function JT(e,t=YT){return{getVersion(n,r){return t(i=>e.request(TT,n,{...r,...i}),"getVersion","query")},getInfo(n,r){return t(i=>e.request(IT,n,{...r,...i}),"getInfo","query")},getChain(n,r){return t(i=>e.request(MT,n,{...r,...i}),"getChain","query")},getTransaction(n,r){return t(i=>e.request(NT,n,{...r,...i}),"getTransaction","query")},getTransactionWithReceipts(n,r){return t(i=>e.request(RT,n,{...r,...i}),"getTransactionWithReceipts","query")},getTransactions(n,r){return t(i=>e.request(OT,n,{...r,...i}),"getTransactions","query")},getTransactionsByOwner(n,r){return t(i=>e.request(AT,n,{...r,...i}),"getTransactionsByOwner","query")},getBlock(n,r){return t(i=>e.request(CT,n,{...r,...i}),"getBlock","query")},getBlockWithTransactions(n,r){return t(i=>e.request(DT,n,{...r,...i}),"getBlockWithTransactions","query")},getBlocks(n,r){return t(i=>e.request($T,n,{...r,...i}),"getBlocks","query")},getCoin(n,r){return t(i=>e.request(kT,n,{...r,...i}),"getCoin","query")},getCoins(n,r){return t(i=>e.request(PT,n,{...r,...i}),"getCoins","query")},getResourcesToSpend(n,r){return t(i=>e.request(LT,n,{...r,...i}),"getResourcesToSpend","query")},getContract(n,r){return t(i=>e.request(FT,n,{...r,...i}),"getContract","query")},getContractBalance(n,r){return t(i=>e.request(UT,n,{...r,...i}),"getContractBalance","query")},getBalance(n,r){return t(i=>e.request(VT,n,{...r,...i}),"getBalance","query")},getBalances(n,r){return t(i=>e.request(BT,n,{...r,...i}),"getBalances","query")},getMessages(n,r){return t(i=>e.request(qT,n,{...r,...i}),"getMessages","query")},getMessageProof(n,r){return t(i=>e.request(jT,n,{...r,...i}),"getMessageProof","query")},dryRun(n,r){return t(i=>e.request(zT,n,{...r,...i}),"dryRun","mutation")},submit(n,r){return t(i=>e.request(GT,n,{...r,...i}),"submit","mutation")},startSession(n,r){return t(i=>e.request(QT,n,{...r,...i}),"startSession","mutation")},endSession(n,r){return t(i=>e.request(HT,n,{...r,...i}),"endSession","mutation")},execute(n,r){return t(i=>e.request(WT,n,{...r,...i}),"execute","mutation")},reset(n,r){return t(i=>e.request(KT,n,{...r,...i}),"reset","mutation")}}}var XT=e=>"utxoId"in e,Fl=e=>"id"in e,ZT=e=>{var t,n,r,i,s;switch(e.type){case gn.Coin:{let o=ce((t=e.predicate)!=null?t:"0x"),a=ce((n=e.predicateData)!=null?n:"0x");return{type:gn.Coin,utxoID:{transactionId:ue(ce(e.id).slice(0,32)),outputIndex:ce(e.id)[32]},owner:ue(e.owner),amount:Z(e.amount),assetId:ue(e.assetId),txPointer:{blockHeight:mr(ce(e.txPointer).slice(0,8)),txIndex:mr(ce(e.txPointer).slice(8,16))},witnessIndex:e.witnessIndex,maturity:(r=e.maturity)!=null?r:0,predicateLength:o.length,predicateDataLength:a.length,predicate:ue(o),predicateData:ue(a)}}case gn.Contract:return{type:gn.Contract,utxoID:{transactionId:Xt,outputIndex:0},balanceRoot:Xt,stateRoot:Xt,txPointer:{blockHeight:mr(ce(e.txPointer).slice(0,8)),txIndex:mr(ce(e.txPointer).slice(8,16))},contractID:ue(e.contractId)};case gn.Message:{let o=ce((i=e.predicate)!=null?i:"0x"),a=ce((s=e.predicateData)!=null?s:"0x");return{type:gn.Message,sender:ue(e.sender),recipient:ue(e.recipient),amount:Z(e.amount),nonce:Z(e.nonce),witnessIndex:e.witnessIndex,dataLength:e.data.length,predicateLength:o.length,predicateDataLength:a.length,data:ue(e.data),predicate:ue(o),predicateData:ue(a)}}default:throw new Error("Invalid Input type")}},eI=e=>{switch(e.type){case rt.Coin:return{type:rt.Coin,to:ue(e.to),amount:Z(e.amount),assetId:ue(e.assetId)};case rt.Contract:return{type:rt.Contract,inputIndex:e.inputIndex,balanceRoot:Xt,stateRoot:Xt};case rt.Message:return{type:rt.Message,recipient:ue(e.recipient),amount:Z(e.amount)};case rt.Change:return{type:rt.Change,to:ue(e.to),amount:Z(0),assetId:ue(e.assetId)};case rt.Variable:return{type:rt.Variable,to:Xt,amount:Z(0),assetId:Xt};case rt.ContractCreated:return{type:rt.ContractCreated,contractId:ue(e.contractId),stateRoot:ue(e.stateRoot)};default:throw new Error("Invalid Output type")}},tI=e=>e.type===Ut.Revert&&e.val.toString("hex")===i9,nI=e=>e.type===Ut.Panic&&e.contractId!=="0x0000000000000000000000000000000000000000000000000000000000000000",rI=e=>e.reduce((t,n)=>(tI(n)&&t.missingOutputVariables.push(n),nI(n)&&t.missingOutputContractIds.push(n),t),{missingOutputVariables:[],missingOutputContractIds:[]}),r5=(e,t,n)=>Z(Math.ceil(e.toNumber()/n.toNumber())*t.toNumber()),iI=e=>{let t=e.find(n=>n.type===Ut.ScriptResult);return t&&t.type===Ut.ScriptResult?t.gasUsed:Z(0)},Ih=({receipts:e,gasPrice:t,margin:n})=>{let r=q8(iI(e),n||1),i=r5(r,t,cw);return{gasUsed:r,fee:i}};function Mh(e){return Object.keys(e).forEach(t=>{switch(e[t].constructor.name){case"Uint8Array":e[t]=ue(e[t]);break;case"Array":e[t]=Mh(e[t]);break;case"BN":e[t]=e[t].toHex();break;case"Address":e[t]=e[t].toB256();break;case"Object":e[t]=Mh(e[t]);break}}),e}function sI(e){return Mh(sf(e))}function oI(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}var aI=e=>{let t=new Uint8Array(32);return t.set(ce(e)),t},uI=e=>{let t,n;return Array.isArray(e)?(t=e[0],n=e[1]):(t=e.key,n=e.value),{key:ue(t),value:ue(aI(n))}},lI=e=>{let t=ce(e);return{data:ue(t),dataLength:t.length}},Oy={bytes:ce("0x24000000"),encodeScriptData:()=>new Uint8Array(0)},cI={bytes:ce("0x5040C0105D44C0064C40001124000000"),encodeScriptData:()=>new Uint8Array(0)}
553,fI=class extends Error{constructor(){super(...arguments),this.name="ChangeOutputCollisionError",this.message='A ChangeOutput with the same "assetId" already exists for a different "to" address'}},dI=class extends Error{constructor(e){super(),this.index=e,this.name="NoWitnessAtIndexError",this.message=`Witness at index "${e}" was not found`}},hI=class extends Error{constructor(e){super(),this.owner=e,this.name="NoWitnessByOwnerError",this.message=`A witness for the given owner "${e}" was not found`}},i5=class{constructor({gasPrice:e,gasLimit:t,maturity:n,inputs:r,outputs:i,witnesses:s}={}){this.inputs=[],this.outputs=[],this.witnesses=[],this.gasPrice=Z(e!=null?e:0),this.gasLimit=Z(t!=null?t:0),this.maturity=n!=null?n:0,this.inputs=[...r!=null?r:[]],this.outputs=[...i!=null?i:[]],this.witnesses=[...s!=null?s:[]]}getBaseTransaction(){var e,t,n,r,i,s;let o=(t=(e=this.inputs)==null?void 0:e.map(ZT))!=null?t:[],a=(r=(n=this.outputs)==null?void 0:n.map(eI))!=null?r:[],l=(s=(i=this.witnesses)==null?void 0:i.map(lI))!=null?s:[];return{gasPrice:this.gasPrice,gasLimit:this.gasLimit,maturity:this.maturity,inputs:o,outputs:a,witnesses:l,inputsCount:o.length,outputsCount:a.length,witnessesCount:l.length}}toTransactionBytes(){return new Au().encode(this.toTransaction())}pushInput(e){return this.inputs.push(e),this.inputs.length-1}pushOutput(e){return this.outputs.push(e),this.outputs.length-1}createWitness(){return this.witnesses.push("0x"),this.witnesses.length-1}updateWitnessByOwner(e,t){let n=this.getCoinInputWitnessIndexByOwner(e);typeof n=="number"&&this.updateWitness(n,t)}updateWitness(e,t){if(!this.witnesses[e])throw new dI(e);this.witnesses[e]=t}getCoinInputs(){return this.inputs.filter(e=>e.type===gn.Coin)}getCoinOutputs(){return this.outputs.filter(e=>e.type===rt.Coin)}getChangeOutputs(){return this.outputs.filter(e=>e.type===rt.Change)}getCoinInputWitnessIndexByOwner(e){var t,n,r,i;let s=ja(e);return(i=(r=(t=this.inputs.find(o=>o.type===gn.Coin&&ue(o.owner)===s.toB256()))==null?void 0:t.witnessIndex)!=null?r:(n=this.inputs.find(o=>o.type===gn.Message&&ue(o.recipient)===s.toB256()))==null?void 0:n.witnessIndex)!=null?i:null}updateWitnessByCoinInputOwner(e,t){let n=this.getCoinInputWitnessIndexByOwner(e);if(!n)throw new hI(ja(e));this.updateWitness(n,t)}addResource(e){let t=Fl(e)?e.owner:e.recipient,n=Fl(e)?e.assetId:cs,r=Fl(e)?gn.Coin:gn.Message,i=this.getCoinInputWitnessIndexByOwner(t);typeof i!="number"&&(i=this.createWitness()),this.pushInput(Fl(e)?{type:r,...e,owner:e.owner.toB256(),witnessIndex:i,txPointer:"0x00000000000000000000000000000000"}:{type:r,...e,sender:e.sender.toB256(),recipient:e.recipient.toB256(),witnessIndex:i,txPointer:"0x00000000000000000000000000000000"});let s=this.getChangeOutputs().find(o=>ue(o.assetId)===n);if(s&&ue(s.to)!==t.toB256())throw new fI;s||this.pushOutput({type:rt.Change,to:t.toB256(),assetId:n})}addResources(e){e.forEach(t=>this.addResource(t))}addCoinOutput(e,t,n=cs){this.pushOutput({type:rt.Coin,to:ja(e).toB256(),amount:t,assetId:n})}addCoinOutputs(e,t){t.map(Om).forEach(n=>{this.pushOutput({type:rt.Coin,to:ja(e).toB256(),amount:n.amount,assetId:n.assetId})})}byteSize(){return this.toTransactionBytes().length}chargeableByteSize(){let e=this.witnesses.reduce((t,n)=>t+ce(n).length,0);return Z(this.toTransactionBytes().length-e)}calculateFee(){let e=r5(this.gasLimit,this.gasPrice,cw);return{assetId:cs,amount:e.isZero()?Z(1):e}}toJSON(){return sI(this)}},Fu=class extends i5{constructor({script:e,scriptData:t,...n}={}){super(n),this.type=Li.Script,this.script=ce(e!=null?e:Oy.bytes),this.scriptData=ce(t!=null?t:Oy.encodeScriptData())}static from(e){return e instanceof this?e:new this(e)}toTransaction(){var e,t;let n=ce((e=this.script)!=null?e:"0x"),r=ce((t=this.scriptData)!=null?t:"0x");return{type:Li.Script,...super.getBaseTransaction(),scriptLength:n.length,scriptDataLength:r.length,receiptsRoot:Xt,script:ue(n),scriptData:ue(r)}}getContractInputs(){return this.inputs.filter(e=>e.type===gn.Contract)}getContractOutputs(){return this.outputs.filter(e=>e.type===rt.Contract)}getVariableOutputs(){return this.outputs.filter(e=>e.type===rt.Variable)}setScript(e,t){this.script=e.bytes,this.scriptData=e.encodeScriptData(t),this.bytesOffset===void 0&&(this.bytesOffset=this.scriptData.byteLength)}addVariableOutputs(e=1){let t=e;for(;t;)this.pushOutput({type:rt.Variable}),t-=1;return this.outputs.length-1}addMessageOutputs(e=1){let t=e;for(;t;)this.pushOutput({type:rt.Message,recipient:"0x0000000000000000000000000000000000000000000000000000000000000000",amount:0}),t-=1;return this.outputs.length-1}addContract(e){let t=ja(e);if(this.getContractInputs().find(r=>r.contractId===t.toB256()))return;let n=super.pushInput({type:gn.Contract,contractId:t.toB256(),txPointer:"0x00000000000000000000000000000000"});this.pushOutput({type:rt.Contract,inputIndex:n})}},Ay=class extends i5{constructor({bytecodeWitnessIndex:e,salt:t,storageSlots:n,...r}={}){super(r),this.type=Li.Create,this.bytecodeWitnessIndex=e!=null?e:0,this.salt=ue(t!=null?t:Xt),this.storageSlots=[...n!=null?n:[]]}static from(e){return e instanceof this?e:new this(e)}toTransaction(){var e,t;let n=this.getBaseTransaction(),r=this.bytecodeWitnessIndex,i=(t=(e=this.storageSlots)==null?void 0:e.map(uI))!=null?t:[];return{type:Li.Create,...n,bytecodeLength:n.witnesses[r].dataLength/4,bytecodeWitnessIndex:r,storageSlotsCount:i.length,salt:this.salt?ue(this.salt):Xt,storageSlots:i}}getContractCreatedOutputs(){return this.outputs.filter(e=>e.type===rt.ContractCreated)}addContractCreatedOutput(e,t){this.pushOutput({type:rt.ContractCreated,contractId:e,stateRoot:t})}},Xn=e=>{if(e instanceof Fu||e instanceof Ay)return e;switch(e.type){case Li.Script:return Fu.from(e);case Li.Create:return Ay.from(e);default:throw new Error(`Unknown transaction type: ${e.type}`)}},pI=5e3,mI=1e3,Cy=e=>{let t=new lw().decode(ce(e.rawPayload),0)[0];switch(t.type){case Ut.ReturnData:return{...t,data:e.data};case Ut.LogData:return{...t,data:e.data};default:return t}},vI=class{constructor(e,t){this.gasUsed=Z(0),this.attempts=0,this.id=e,this.provider=t}async fetch(){let{transaction:e}=await this.provider.operations.getTransactionWithReceipts({transactionId:this.id});return e}decodeTransaction(e){var t;return(t=new Au().decode(ce(e.rawPayload),0))==null?void 0:t[0]}async waitForResult(){var e,t;let n=await this.fetch();switch((e=n==null?void 0:n.status)==null?void 0:e.type){case void 0:case"SubmittedStatus":return this.attempts+=1,await oI(Math.min(mI*this.attempts,pI)),this.waitForResult();case"FailureStatus":{let r=n.receipts.map(Cy),{gasUsed:i,fee:s}=Ih({receipts:r,gasPrice:Z(n==null?void 0:n.gasPrice)});return this.gasUsed=i,{status:{type:"failure",reason:n.status.reason},receipts:r,transactionId:this.id,blockId:n.status.block.id,time:n.status.time,gasUsed:i,fee:s,transaction:this.decodeTransaction(n)}}case"SuccessStatus":{let r=((t=n.receipts)==null?void 0:t.map(Cy))||[],{gasUsed:i,fee:s}=Ih({receipts:r,gasPrice:Z(n==null?void 0:n.gasPrice)});return{status:{type:"success",programState:n.status.programState},receipts:r,transactionId:this.id,blockId:n.status.block.id,time:n.status.time,gasUsed:i,fee:s,transaction:this.decodeTransaction(n)}}default:throw new Error("Invalid Transaction status")}}async wait(){let e=await this.waitForResult();if(e.status.type==="failure")throw new Error(`Transaction failed: ${e.status.reason}`);return e}},yI=10,Kd=e=>{let t=new lw().decode(ce(e.rawPayload),0)[0];switch(t.type){case Ut.ReturnData:return{...t,data:e.data};case Ut.LogData:return{...t,data:e.data};default:return t}},gI=e=>{let{name:t,baseChainHeight:n,peerCount:r,consensusParameters:i,latestBlock:s}=e;return{name:t,baseChainHeight:Z(n),peerCount:r,consensusParameters:{contractMaxSize:Z(i.contractMaxSize),maxInputs:Z(i.maxInputs),maxOutputs:Z(i.maxOutputs),maxWitnesses:Z(i.maxWitnesses),maxGasPerTx:Z(i.maxGasPerTx),maxScriptLength:Z(i.maxScriptLength),maxScriptDataLength:Z(i.maxScriptDataLength),maxStorageSlots:Z(i.maxStorageSlots),maxPredicateLength:Z(i.maxPredicateLength),maxPredicateDataLength:Z(i.maxPredicateDataLength),gasPriceFactor:Z(i.gasPriceFactor),gasPerByte:Z(i.gasPerByte),maxMessageDataLength:Z(i.maxMessageDataLength)},latestBlock:{id:s.id,height:Z(s.header.height),time:s.header.time,transactions:s.transactions.map(o=>({id:o.id}))}}},bI=e=>({minGasPrice:Z(e.minGasPrice),nodeVersion:e.nodeVersion}),Nh=class{constructor(e,t={}){this.url=e,this.options=t,this.operations=this.createOperations(e,t)}createOperations(e,t={}){this.url=e;let n=new Y4.GraphQLClient(e,t.fetch?{fetch:t.fetch}:void 0);return JT(n)}connect(e){this.operations=this.createOperations(e)}async getVersion(){let{nodeInfo:{nodeVersion:e}}=await this.operations.getVersion();return e}async getNetwork(){return{name:"fuelv2",chainId:3735928559}}async getBlockNumber(){let{chain:e}=await this.operations.getChain();return Z(e.latestBlock.header.height,10)}async getNodeInfo(){let{nodeInfo:e}=await this.operations.getInfo();return bI(e)}async getChain(){let{chain:e}=await this.operations.getChain();return gI(e)}async sendTransaction(e){let t=Xn(e);await this.addMissingVariables(t);let n=ue(t.toTransactionBytes()),{gasUsed:r,minGasPrice:i}=await this.getTransactionCost(t,0);
553if(Z(r).gt(Z(t.gasLimit)))throw new Error(`gasLimit(${t.gasLimit}) is lower than the required (${r})`);if(Z(i).gt(Z(t.gasPrice)))throw new Error(`gasPrice(${t.gasPrice}) is lower than the required ${i}`);let{submit:{id:s}}=await this.operations.submit({encodedTransaction:n});return new vI(s,this)}async call(e,{utxoValidation:t}={}){let n=Xn(e);await this.addMissingVariables(n);let r=ue(n.toTransactionBytes()),{dryRun:i}=await this.operations.dryRun({encodedTransaction:r,utxoValidation:t||!1});return{receipts:i.map(Kd)}}async addMissingVariables(e){let t=0,n=0,r=0;if(e.type!==Li.Create)do{let i=ue(e.toTransactionBytes()),{dryRun:s}=await this.operations.dryRun({encodedTransaction:i,utxoValidation:!1}),o=s.map(Kd),{missingOutputVariables:a,missingOutputContractIds:l}=rI(o);if(t=a.length,n=l.length,t===0&&n===0)return;e.addVariableOutputs(t),l.forEach(({contractId:d})=>e.addContract(zt.fromString(d))),r+=1}while(r<yI)}async simulate(e){let t=Xn(e);await this.addMissingVariables(t);let n=ue(t.toTransactionBytes()),{dryRun:r}=await this.operations.dryRun({encodedTransaction:n,utxoValidation:!0});return{receipts:r.map(Kd)}}async getTransactionCost(e,t=.2){let n=Xn(sf(e)),{minGasPrice:r}=await this.getNodeInfo(),i=B8(n.gasPrice,r),s=1+t;n.gasLimit=Qc,n.gasPrice=Z(0);let{receipts:o}=await this.call(n),{gasUsed:a,fee:l}=Ih({gasPrice:i,receipts:o,margin:s});return{minGasPrice:r,gasPrice:i,gasUsed:a,fee:l}}async getCoins(e,t,n){return(await this.operations.getCoins({first:10,...n,filter:{owner:e.toB256(),assetId:t&&ue(t)}})).coins.edges.map(r=>r.node).map(r=>({id:r.utxoId,assetId:r.assetId,amount:Z(r.amount),owner:zt.fromAddressOrString(r.owner),status:r.coinStatus,maturity:Z(r.maturity).toNumber(),blockCreated:Z(r.blockCreated)}))}async getResourcesToSpend(e,t,n){var r,i;let s={messages:((r=n==null?void 0:n.messages)==null?void 0:r.map(o=>ue(o)))||[],utxos:((i=n==null?void 0:n.utxos)==null?void 0:i.map(o=>ue(o)))||[]};return(await this.operations.getResourcesToSpend({owner:e.toB256(),queryPerAsset:t.map(Om).map(({assetId:o,amount:a,max:l})=>({assetId:ue(o),amount:a.toString(10),max:l?l.toString(10):void 0})),excludedIds:s})).resourcesToSpend.flat().map(o=>XT(o)?{id:o.utxoId,amount:Z(o.amount),status:o.coinStatus,assetId:o.assetId,owner:zt.fromAddressOrString(o.owner),maturity:Z(o.maturity).toNumber(),blockCreated:Z(o.blockCreated)}:{sender:zt.fromAddressOrString(o.sender),recipient:zt.fromAddressOrString(o.recipient),nonce:Z(o.nonce),amount:Z(o.amount),data:Ou.decodeData(o.data),status:o.messageStatus,daHeight:Z(o.daHeight)})}async getBlock(e){let t;typeof e=="number"?t={blockHeight:Z(e).toString(10)}:e==="latest"?t={blockHeight:(await this.getBlockNumber()).toString(10)}:t={blockId:Z(e).toString(10)};let{block:n}=await this.operations.getBlock(t);return n?{id:n.id,height:Z(n.header.height),time:n.header.time,transactionIds:n.transactions.map(r=>r.id)}:null}async getBlockWithTransactions(e){let t;typeof e=="number"?t={blockHeight:Z(e).toString(10)}:e==="latest"?t={blockHeight:(await this.getBlockNumber()).toString()}:t={blockId:e};let{block:n}=await this.operations.getBlockWithTransactions(t);return n?{id:n.id,height:Z(n.header.height,10),time:n.header.time,transactionIds:n.transactions.map(r=>r.id),transactions:n.transactions.map(r=>{var i;return(i=new Au().decode(ce(r.rawPayload),0))==null?void 0:i[0]})}:null}async getTransaction(e){var t;let{transaction:n}=await this.operations.getTransaction({transactionId:e});return n?(t=new Au().decode(ce(n.rawPayload),0))==null?void 0:t[0]:null}async getContract(e){let{contract:t}=await this.operations.getContract({contractId:e});return t||null}async getContractBalance(e,t){let{contractBalance:n}=await this.operations.getContractBalance({contract:e.toB256(),asset:ue(t)});return Z(n.amount,10)}async getBalance(e,t){let{balance:n}=await this.operations.getBalance({owner:e.toB256(),assetId:ue(t)});return Z(n.amount,10)}async getBalances(e,t){return(await this.operations.getBalances({first:10,...t,filter:{owner:e.toB256()}})).balances.edges.map(n=>n.node).map(n=>({assetId:n.assetId,amount:Z(n.amount)}))}
553async getMessages(e,t){return(await this.operations.getMessages({first:10,...t,owner:e.toB256()})).messages.edges.map(n=>n.node).map(n=>({sender:zt.fromAddressOrString(n.sender),recipient:zt.fromAddressOrString(n.recipient),nonce:Z(n.nonce),amount:Z(n.amount),data:Ou.decodeData(n.data),status:n.messageStatus,daHeight:Z(n.daHeight)}))}async getMessageProof(e,t){let n=await this.operations.getMessageProof({transactionId:e,messageId:t});return n.messageProof?{proofSet:n.messageProof.proofSet,proofIndex:Z(n.messageProof.proofIndex),sender:zt.fromAddressOrString(n.messageProof.sender),recipient:zt.fromAddressOrString(n.messageProof.recipient),nonce:n.messageProof.nonce,amount:Z(n.messageProof.amount),data:n.messageProof.data,signature:n.messageProof.signature,header:{id:n.messageProof.header.id,daHeight:Z(n.messageProof.header.daHeight),transactionsCount:Z(n.messageProof.header.transactionsCount),outputMessagesCount:Z(n.messageProof.header.outputMessagesCount),transactionsRoot:n.messageProof.header.transactionsRoot,outputMessagesRoot:n.messageProof.header.outputMessagesRoot,height:Z(n.messageProof.header.height),prevRoot:n.messageProof.header.prevRoot,time:n.messageProof.header.time,applicationHash:n.messageProof.header.applicationHash}}:null}};function wI(e,t){return e.reduce((n,r)=>r.type===Ut.LogData?n.concat(...t.decodeLog(r.data,r.val1.toNumber(),r.id)):r.type===Ut.Log?n.concat(...t.decodeLog(new Y().encode(r.val0),r.val1.toNumber(),r.id)):n,[])}var EI=["Success","Revert","OutOfGas","TransactionValidity","MemoryOverflow","ArithmeticOverflow","ContractNotFound","MemoryOwnership","NotEnoughBalance","ExpectedInternalContext","AssetIdNotFound","InputNotFound","OutputNotFound","WitnessNotFound","TransactionMaturity","InvalidMetadataIdentifier","MalformedCallStructure","ReservedRegisterNotWritable","ErrorFlag","InvalidImmediateValue","ExpectedCoinInput","MaxMemoryAccess","MemoryWriteOverlap","ContractNotInInputs","InternalBalanceOverflow","ContractMaxSize","ExpectedUnallocatedStack","MaxStaticContractsReached","TransferAmountCannotBeZero","ExpectedOutputVariable","ExpectedParentInternalContext","IllegalJump","NonZeroMessageOutputRecipient","ZeroedMessageOutputRecipient"],Yd="https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html",xI=e=>EI.includes(e)?e:"unknown",_I=e=>{if((e==null?void 0:e.type)==="failure"){let t=xI(e.reason);return{doc:t!=="unknown"?`${Yd}#variant.${t}`:Yd,reason:t}}return{doc:Yd,reason:"unknown"}};function Ul(e,t){if(!e)throw new Error(t)}var Dy=(e,t)=>typeof t=="bigint"?t.toString():t,SI=(e,t)=>`${e===Xt?"script":e}: ${t}`,TI=class extends Error{constructor(e,t,n){let r=JSON.stringify(_I(e.status),null,2),i=e.receipts.filter(l=>l.type===Ut.Revert),s=i.length?`Reverts:
554${i.map(({id:l,...d})=>SI(l,`${d.val} ${JSON.stringify(d,Dy)}`)).join(`
555`)}`:null,o=n.length?`Logs:
556${JSON.stringify(n,null,2)}`:null,a=`Receipts:
557${JSON.stringify(e.receipts.map(({type:l,...d})=>({type:Ut[l],...d})),Dy,2)}`;super(`${t}
558
559${r}
560
561${s?`${s}
562
563`:""}${o?`${o}
564
565`:""}${a}`),this.logs=n}},$y=[{type:"function",inputs:[{name:"script_data",type:"struct ScriptData",components:[{name:"calls",type:"[enum Option; 5]",components:[{name:"__array_element",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"struct MulticallCall",components:[{name:"contract_id",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null},{name:"fn_selector",type:"u64",components:null,typeArguments:null},{name:"fn_arg",type:"enum CallValue",components:[{name:"Value",type:"u64",components:null,typeArguments:null},{name:"Data",type:"(u64, u64)",components:[{name:"__tuple_element",type:"u64",components:null,typeArguments:null},{name:"__tuple_element",type:"u64",components:null,typeArguments:null}],typeArguments:null}],typeArguments:null},{name:"parameters",type:"struct CallParameters",components:[{name:"amount",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"u64",components:null,typeArguments:null}],typeArguments:[{name:"T",type:"u64",components:null,typeArguments:null}]},{name:"asset_id",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null}],typeArguments:[{name:"T",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null}]},{name:"gas",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"u64",components:null,typeArguments:null}],typeArguments:[{name:"T",type:"u64",components:null,typeArguments:null}]}],typeArguments:null}],typeArguments:null}],typeArguments:[{name:"T",type:"struct MulticallCall",components:[{name:"contract_id",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null},{name:"fn_selector",type:"u64",components:null,typeArguments:null},{name:"fn_arg",type:"enum CallValue",components:[{name:"Value",type:"u64",components:null,typeArguments:null},{name:"Data",type:"(u64, u64)",components:[{name:"__tuple_element",type:"u64",components:null,typeArguments:null},{name:"__tuple_element",type:"u64",components:null,typeArguments:null}],typeArguments:null}],typeArguments:null},{name:"parameters",type:"struct CallParameters",components:[{name:"amount",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"u64",components:null,typeArguments:null}],typeArguments:[{name:"T",type:"u64",components:null,typeArguments:null}]},{name:"asset_id",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null}],typeArguments:[{name:"T",type:"struct ContractId",components:[{name:"value",type:"b256",components:null,typeArguments:null}],typeArguments:null}]},{name:"gas",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"u64",components:null,typeArguments:null}],typeArguments:[{name:"T",type:"u64",components:null,typeArguments:null}]}],typeArguments:null}],typeArguments:null}]}],typeArguments:null}],typeArguments:null}],name:"main",outputs:[{name:"",type:"struct ScriptReturn",components:[{name:"call_returns",type:"[enum Option; 5]",components:[{name:"__array_element",type:"enum Option",components:[{name:"None",type:"()",components:[],typeArguments:null},{name:"Some",type:"enum CallValue",components:[{name:"Value",type:"u64",components:null,typeArguments:null},{name:"Data",type:"(u64, u64)",components:[{name:"__tuple_element",type:"u64",components:null,typeArguments:null},{name:"__tuple_element",type:"u64",components:null,typeArguments:null}],typeArguments:null}],typeArguments:null}],typeArguments:[{name:"T",type:"enum CallValue",components:[{name:"Value",type:"u64",components:null,typeArguments:null},{name:"Data",type:"(u64, u64)",components:[{name:"__tuple_element",type:"u64",components:null,typeArguments:null},{name:"__tuple_element",type:"u64",components:null,typeArguments:null}],typeArguments:null}],typeArguments:null}]}],typeArguments:null}],typeArguments:null}]}],II="0x90000004470000000000000000000cd45dfcc00110fff3001a5c5000910005b861440006724002d0164114005b40100d360000006158000c61440001504175305f5d10a6504175305d4570a6504171385f5d1027504171385d417027134100007340001a9000001f1a445000910000085d43f000
5655f4500009000002b504171385d4170271341004073400024900000291a445000910000085d43f0015f4500009000002b360000001a44000050417528504175286041100850457528504170085041700860411008504170085d4100001341000073400037900000396144000c9000003b360000001a440000504174305f5d1086504174305d4570865d43f00210450440504174485f5d108961440001504175405f5d10a8504175405d4570a8504171405f5d1028504171405d417028134100007340004f900000541a445000910000085d43f0005f45000090000060504171405d41702813410040734000599000005e1a445000910000085d43f0015f45000090000060360000001a44000050417538504175386041100850457538504170005041700060411008504170005d410000134100007340006c9000006e6144000690000078504170005d410000134100407340007390000076360000001a44000090000078360000001a4400005d43f00220451400504173805f5d1070504174485d497089504173805d4170701a445000910000105f4520005f450001504175a8504175a8604110105d47f00326440000504470015041726050417260604110a026000000504070011a445000910000105f4500005f440001504174785041747860411010504173505f5c006a5d47f0025d43f00412451400504173005f5d1060504173505d45706a504173005d41706016411400734000a4900000b150496000504173505d41706a5545009010452440504170785041707860411090504170785d41000013410040734001249000031f504972601a445000910000a050411000604120a05041748850417488604110a026000000504070011a445000910000105f4500005f44000150417198504171986041101050517198505574885d454001504174085f5d10815d4540015d43f00310450440504173c85f5d10795d4140005d4d4001504573c85d457079154914c0734800d3900000e12644000050487001504573a85f5d207515453000734400da900000de504573a85d457075284504c0900000de504173a85d417075900000e15f510000504173c85d4170795f5100015d454000504174085d417081104504405d43f0032845540050557198505174785d41400113410000734000f1900000f35d4150019000011c5d455001504174105f5d10825d4550015d41400110450440504173d05f5d107a5d4150005d4d5001504573d05d45707a154914c073480102900001102644000050487001504573b05f5d207615453000734401099000010d504573b05d457076284504c09000010d504173b05d417076900001105f550000504173d05d41707a5f5500015d4940005d455000504174105d417082104504405d414001284524005d417082504171985d450000504171985d41000125450000504574885d43f003254500005041707850450008504171a8504171a860411088504171a850450028504171085041710860411018504171085d41000013410000734001339000013f504171085d450002504175485f5d10a9504175485d4970a91a445000910000185d43f0005f4500005f4520029000017b504171085d41000013410040734001449000016050417108504100085d450000504173e85f5d107d50417108504100085d450001504173785f5d106f504175a85d450000504173e85d41707d10450440504173785d41706f1a485000910000105f4910005f4900011a445000910000185d43f0015f45000050411008604120109000017b50417108504100085d450000504173f05f5d107e50417108504100085d450001504173905f5d1072504175a85d450000504173f05d41707e10450440504173905d4170721a485000910000105f4910005f4900011a445000910000185d43f0015f4500005041100860412010504173085041730860411018504171a850550000504171a85d51000450457308504171a8504d0040504170105041701060411018504170105d410000134100007340018d90000194504170105d450002504175505f5d10aa504175505d4570aa900001a8504170105d4100001341004073400199900001a150417010504100085d450000504174385f5d1087504174385d457087900001a850417010504100085d450000504174505f5d108a504174505d45708a504173205f5d1064504173205d4970641a4450009100003050411000604150205f4540045f45200550417230504172306041103050453000504170285041702860411010504170285d41000013410040734001be900001c5504170285d450001504171485f5d1029504171485d457029900001cd504170285d41000013410000734001ca900001cc1a440000900001cd1a440000504171505f5d102a50453010504170385041703860411028504170385d41000013410040734001d8900001df504170385045000850417358504173586041102050497358900001f1504170385d41000013410000734001e4900001eb1a485000910000205d47f00a104513005041200060411020900001f11a485000910000205d47f00a10451300504120006041102050417158504171586041202050453038504170605041706060411010504170605d41000013410040734001fd90000204504170605d450001504173405f5d1068504173405d4570689000020c504170605d41000013410000734002099000020b1a44a0009000020c1a44a000504173485f5d1069504d7230504171505d49702a50457158504173485d4170692d4d24501a44e000504170705f5d100e504170705d41700e134100007340021d900002281a44d000504175785f5d10af504175785d4570af1a485000910000185d43f000
5655f4900005f4910029000023d504170705d45700e504173885f5d10711a44d000504174585f5d108b504174585d49708b504173885d4170711a445000910000105f4520005f4500011a485000910000185d43f0015f490000504120086041101050417460504174606041201850457460504171205041712060411018504171205d410000134100007340024990000255504171205d450002504175a05f5d10b4504175a05d4970b41a445000910000185d43f0005f4500005f45200290000309504171205d410000134100407340025a900002b250417120504100085d450000504174285f5d108550417120504100085d450001504173985f5d1073504174285d497085504173985d4170731a445000910000105f4520005f45000150417178504171786041101050557478505171785d4140011341000073400275900002775d455001900002a15d455001504174185f5d10835d4550015d41400110450440504173d85f5d107b5d4150005d4d5001504573d85d45707b154914c073480286900002942644000050487001504573b85f5d2077154530007344028d90000291504573b85d457077284504c090000291504173b85d417077900002945f550000504173d85d41707b5f5500015d4940005d455000504174185d417083104504405d41400128452400504174185d457083504173f85f5d107f504173f85d45707f504173985d4170731a485000910000105f4910005f4900011a445000910000185d43f0015f45000050411008604120109000030950417120504100085d450000504174405f5d108850417120504100085d450001504173a05f5d1074504174405d497088504173a05d4170741a445000910000105f4520005f45000150417188504171886041101050557478505171885d41400113410000734002cd900002cf5d455001900002f95d455001504174205f5d10845d4550015d41400110450440504173e05f5d107c5d4150005d4d5001504573e05d45707c154914c0734802de900002ec2644000050487001504573c05f5d207815453000734402e5900002e9504573c05d457078284504c0900002e9504173c05d417078900002ec5f550000504173e05d41707c5f5500015d4940005d455000504174205d417084104504405d41400128452400504174205d457084504174005f5d1080504174005d457080504173a05d4170741a485000910000105f4910005f4900011a445000910000185d43f0015f45000050411008604120105041732850417328604
56511018504973281a445000910000205d43f0015f450000504110086041201850417558504175586041102050457260504173505d41706a5549002010491480504575585d43f009284914009000032e504175801a445000910000205d43f0005f450000504175806041102050457260504173505d41706a5549002010491480504575805d43f0092849140050417350504173505d41706a104014005f5d006a9000009d470000000000000000000000000000000000000100000000000002d000000000000000a00000000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000cfc",ky=new Fe(ws.FUELS);function MI(e){let t=[...e.receipts],n,r;if(t.forEach(i=>{i.type===Ut.ScriptResult?n=i:(i.type===Ut.Return||i.type===Ut.ReturnData||i.type===Ut.Revert)&&(r=i)}),!n)throw new Error("Expected scriptResultReceipt");if(!r)throw new Error("Expected returnReceipt");return{code:n.result,gasUsed:n.gasUsed,receipts:t,scriptResultReceipt:n,returnReceipt:r,callResult:e}}function s5(e,t,n=[]){try{let r=MI(e);return t(r)}catch(r){throw new TI(e,r.message,n)}}function NI(e,t,n){return s5(e,r=>{r.returnReceipt.type===Ut.Revert&&ky.throwError("Script Reverted",Fe.errors.CALL_EXCEPTION,n),r.returnReceipt.type!==Ut.Return&&r.returnReceipt.type!==Ut.ReturnData&&ky.throwError(`Script Return Type [${r.returnReceipt.type}] Invalid`,Fe.errors.CALL_EXCEPTION,{logs:n,receipt:r.returnReceipt});let i;return r.returnReceipt.type===Ut.Return&&(i=r.returnReceipt.val),r.returnReceipt.type===Ut.ReturnData&&(i=t.program.interface.decodeFunctionResult(t.func,r.returnReceipt.data)[0]),i},n)}var o5=class{constructor(e,t,n){this.bytes=ce(e),this.scriptDataEncoder=t,this.scriptResultDecoder=n}getScriptDataOffset(){return $x+kx+new vt(this.bytes.length).encodedLength}getArgOffset(){return this.getScriptDataOffset()+Cx+jd+Dx+jd+jd}encodeScriptData(e){return this.scriptDataEncoder(e)}decodeCallResult(e,t=[]){return s5(e,this.scriptResultDecoder,t)}},Cm=new o5(II,e=>{let t=$y[0].inputs,n=new Uc().getCoder(t[0]),r=n.coders.calls.length;if(e.length>r)throw new Error(`At most ${r} calls are supported`);let i=new Uint8Array,s=[];for(let l=0;l<r;l+=1){let d=e[l],v;if(d){let y=ce(d.data),_=y.slice(0,8),T=y.slice(8,16).some(k=>k===1),M=y.slice(16),A;T?(A={Data:[i.length,M.length]},i=we([i,M])):A={Value:new Y().decode(M,0)[0]},v={contract_id:{value:d.contractId},fn_selector:new Y().decode(_,0)[0],fn_arg:A,parameters:{amount:d.amount?Z(d.amount):void 0,asset_id:d.assetId?{value:d.assetId}:void 0,gas:d.gas?Z(d.gas):void 0}}}else v=void 0;s.push(v)}let o={calls:s},a=n.encode(o);return we([a,i])},e=>{if(mr(e.code)!==0)throw new Error(`Script returned non-zero result: ${e.code}`);if(e.returnReceipt.type!==Ut.ReturnData)throw new Error("Expected returnReceipt to be a ReturnDataReceipt");let t=ce(e.returnReceipt.data),n=$y[0].outputs,r=new Uc().getCoder(n[0]),[i,s]=r.decode(t,0),o=t.slice(s),a=[];return i.call_returns.forEach((l,d)=>{if(l)if(l.Data){let[v,y]=l.Data;a[d]=o.slice(mr(v),mr(v)+mr(y))}else a[d]=new Y().encode(l.Value)}),a});function RI(e){let t=e.receipts.find(n=>n.type===Ut.ScriptResult);return(t==null?void 0:t.gasUsed)||Z(0)}var a5=class{constructor(e,t,n){this.functionScopes=Array.isArray(e)?e:[e],this.isMultiCall=n,this.value=this.getDecodedValue(t),this.gasUsed=RI(t)}getFirstCallConfig(){if(this.functionScopes[0])return this.functionScopes[0].getCallConfig()}getDecodedValue(e){let t=this.getDecodedLogs(e.receipts),n=this.getFirstCallConfig();if(this.functionScopes.length===1&&n&&"bytes"in n.program)return NI(e,n,t);let r=Cm.decodeCallResult(e,t).map((i,s)=>{var o;let{program:a,func:l}=this.functionScopes[s].getCallConfig();return(o=a.interface.decodeFunctionResult(l,i))==null?void 0:o[0]});return this.isMultiCall?r:r==null?void 0:r[0]}getDecodedLogs(e){let t=this.getFirstCallConfig();if(!t)return[];let{program:n}=t;return wI(e,n.interface)}},u5=class extends a5{constructor(e,t,n,r,i){super(e,n,i),this.transactionResponse=t,this.transactionResult=n,this.transactionId=this.transactionResponse.id,this.program=r,this.logs=this.getDecodedLogs(n.receipts)}static async build(e,t,n,r){let i=await t.waitForResult();return new u5(e,t,i,r,n)}},Rh=class extends a5{constructor(e,t,n){super(e,t,n),this.callResult=t}static async build(e,t,n){return new Rh(e,t,n)}};function OI(e){let{program:t,args:n,forward:r,func:i,callParameters:s,bytesOffset:o}=e.getCallConfig(),a=t.interface.encodeFunctionData(i,n,Cm.getScriptDataOffset()+o);return{contractId:t.id,data:a,assetId:r==null?void 0:r.assetId,amount:r==null?void 0:r.amount,gas:s==null?void 0:s.gasLimit}}var Dm=class{constructor(e,t){this.functionInvocationScopes=[],this.requiredCoins=[],this.isMultiCall=!1,this.program=e,this.isMultiCall=t,this.transactionRequest=new Fu({gasLimit:Qc})}get calls(){return this.functionInvocationScopes.map(e=>OI(e))}static getCallOptions(e){return{fundTransaction:!0,...e}}updateScriptRequest(){let e=this.calls;e.forEach(t=>{this.transactionRequest.addContract(t.contractId)}),this.transactionRequest.setScript(Cm,e)}getRequiredCoins(){return this.calls.map(e=>({assetId:String(e.assetId),amount:Z(e.amount||0)})).concat(this.transactionRequest.calculateFee()).filter(({assetId:e,amount:t})=>e&&!Z(t).isZero())}updateRequiredCoins(){let e=this.getRequiredCoins(),t=(n,{assetId:r,amount:i})=>{var s;let o=((s=n.get(r))==null?void 0:s.amount)||Z(0);return n.set(r,{assetId:String(r),amount:o.add(i)})};this.requiredCoins=Array.from(e.reduce(t,new Map).values())}addCall(e){return this.addCalls([e]),this}addCalls(e){return this.functionInvocationScopes.push(...e),this.updateScriptRequest(),this.updateRequiredCoins(),this}async prepareTransaction(e){this.updateScriptRequest(),this.updateRequiredCoins(),this.checkGasLimitTotal(),Dm.getCallOptions(e).fundTransaction&&this.program.account&&await this.fundWithRequiredCoins()}checkGasLimitTotal(){if(this.calls.reduce((e,t)=>
565e.add(t.gas||0),Z(0)).gt(this.transactionRequest.gasLimit))throw new Error("Transaction gasLimit can't be lower than the sum of the forwarded gas of each call")}async getTransactionCost(e){var t;let n=((t=this.program.account)==null?void 0:t.provider)||this.program.provider;Ul(n,"Wallet or Provider is required!"),await this.prepareTransaction(e);let r=Xn(this.transactionRequest);return r.gasPrice=Z(mr(r.gasPrice)||mr((e==null?void 0:e.gasPrice)||0)),await n.getTransactionCost(r,e==null?void 0:e.tolerance)}async fundWithRequiredCoins(){var e;this.transactionRequest.inputs=this.transactionRequest.inputs.filter(n=>n.type!==gn.Coin);let t=await((e=this.program.account)==null?void 0:e.getResourcesToSpend(this.requiredCoins));return this.transactionRequest.addResources(t||[]),this}txParams(e){var t;this.txParameters=e;let n=this.transactionRequest;return n.gasLimit=Z(e.gasLimit||n.gasLimit),n.gasPrice=Z(e.gasPrice||n.gasPrice),n.addVariableOutputs(((t=this.txParameters)==null?void 0:t.variableOutputs)||0),this}addContracts(e){return e.forEach(t=>{this.transactionRequest.addContract(t.id),this.program.interface.updateExternalLoggedTypes(t.id.toB256(),[...t.interface.loggedTypes])}),this}async getTransactionRequest(e){return await this.prepareTransaction(e),this.transactionRequest}async call(e){Ul(this.program.account,"Wallet is required!");let t=await this.getTransactionRequest(e),n=await this.program.account.sendTransaction(t);return u5.build(this.functionInvocationScopes,n,this.isMultiCall,this.program)}async simulate(e){Ul(this.program.account,"Wallet is required!");let t=await this.getTransactionRequest(e),n=await this.program.account.simulateTransaction(t);return Rh.build(this.functionInvocationScopes,n,this.isMultiCall)}async dryRun(e){var t;let n=((t=this.program.account)==null?void 0:t.provider)||this.program.provider;Ul(n,"Wallet or Provider is required!");let r=await this.getTransactionRequest(e),i=Xn(r),s=await n.call(i,{utxoValidation:!1});return await Rh.build(this.functionInvocationScopes,s,this.isMultiCall)}async get(e){return this.dryRun({fundTransaction:!1,...e})}},AI=class extends Dm{constructor(e,t,n){super(e,!1),this.func=t,this.args=n||[],this.setArguments(...n),super.addCall(this)}getCallConfig(){return{func:this.func,program:this.program,callParameters:this.callParameters,txParameters:this.txParameters,forward:this.forward,args:this.args,bytesOffset:this.transactionRequest.bytesOffset||0}}setArguments(...e){return this.args=e||[],this.updateScriptRequest(),this}callParams(e){if(this.callParameters=e,e!=null&&e.forward){if(!this.func.attributes.find(t=>t.name==="payable"))throw new Error("Function is not payable.");this.forward=Om(e.forward)}return this.setArguments(...this.args),this.updateRequiredCoins(),this}},CI=class extends Dm{constructor(e,t){super(e,!0),this.addCalls(t)}addCall(e){return super.addCalls([e])}addCalls(e){return super.addCalls(e)}},DI=class{constructor(e,t,n){this.functions={},this.interface=t instanceof iu?t:new iu(t),this.id=zt.fromAddressOrString(e),n&&"provider"in n?(this.provider=n.provider,this.account=n):(this.provider=n,this.account=null),Object.keys(this.interface.functions).forEach(r=>{let i=this.interface.getFunction(r);Object.defineProperty(this.functions,i.name,{value:this.buildFunction(i),writable:!1})})}buildFunction(e){return(...t)=>new AI(this,e,t)}multiCall(e){return new CI(this,e)}getBalance(e){if(!this.provider)throw new Error("Contract instance has no provider.");return this.provider.getContractBalance(this.id,e)}},$I="0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";function ra(e){return Es(e)}var kI=class{constructor(e,t,n,r,i,s=0){this.left=e,this.right=t,this.parent=n,this.hash=r,this.data=i,this.index=s}},Py=kI;function PI(e){return ra("0x00".concat(e.slice(2)))}function LI(e,t){return ra("0x01".concat(e.slice(2)).concat(t.slice(2)))}function FI(e){if(!e.length)return $I;let t=[];for(let s=0;s<e.length;s+=1){let o=PI(e[s]);t.push(new Py(-1,-1,-1,o,e[s]))}let n=t,r=t.length+1>>1,i=t.length&1;for(;;){let s=0;for(;s<r-i;s+=1){let o=s<<1,a=LI(n[o].hash,n[o+1].hash);t[s]=new Py(n[o].index,n[o+1].index,-1,a,"")}if(i===1&&(t[s]=n[s<<1]),r===1)break;i=r&1,r=r+1>>1,n=t}return t[0].hash}var UI="0x00",l5="0x01";
565function VI(e,t){let n="0x00".concat(e.slice(2)).concat(ra(t).slice(2));return[ra(n),n]}function oo(e,t){let n="0x01".concat(e.slice(2)).concat(t.slice(2));return[ra(n),n]}function Jd(e){let t=l5.length;return["0x".concat(e.slice(t,t+64)),"0x".concat(e.slice(t+64))]}function BI(e){let t=l5.length;return["0x".concat(e.slice(t,t+64)),"0x".concat(e.slice(t+64))]}function Xd(e){return e.slice(0,4)===UI}var qI=class{constructor(e,t,n,r,i){this.SideNodes=e,this.NonMembershipLeafData=t,this.BitMask=n,this.NumSideNodes=r,this.SiblingData=i}},jI=qI,zI=class{constructor(e,t,n){this.SideNodes=e,this.NonMembershipLeafData=t,this.SiblingData=n}},GI=zI,Rn="0x0000000000000000000000000000000000000000000000000000000000000000";function _o(e,t){let n=e.slice(2),r="0x".concat(n.slice(Math.floor(t/8)*2,Math.floor(t/8)*2+2));return(Number(r)&1<<8-1-t%8)>0?1:0}function QI(e){let t=0,n=e.length-1,r=e;for(;t<n;)[r[t],r[n]]=[r[n],r[t]],t+=1,n-=1;return r}function HI(e,t){let n=0;for(let r=0;r<256&&_o(e,r)===_o(t,r);r+=1)n+=1;return n}function WI(e){let t=[],n=[],r;for(let i=0;i<e.SideNodes.length;i+=1)r=e.SideNodes[i],r===Rn?t.push(0):(n.push(r),t.push(1));return new jI(n,e.NonMembershipLeafData,t,e.SideNodes.length,e.SiblingData)}var KI=class{constructor(){let e={};this.ms=e,this.root=Rn,this.ms[this.root]=Rn}get(e){return this.ms[e]}set(e,t){this.ms[e]=t}setRoot(e){this.root=e}sideNodesForRoot(e,t){let n=[];if(t===Rn)return[n,Rn,"",""];let r=this.get(t);if(Xd(r))return[n,t,r,""];let i,s,o="",a="";for(let d=0;d<256;d+=1){if([i,s]=BI(r),_o(e,d)===1?(a=i,o=s):(a=s,o=i),n.push(a),o===Rn){r="";break}if(r=this.get(o),Xd(r))break}let l=this.get(a);return[QI(n),o,r,l]}deleteWithSideNodes(e,t,n,r){if(n===Rn)return this.root;let[i]=Jd(r);if(i!==e)return this.root;let s="",o="",a="",l="",d=!1;for(let v=0;v<t.length;v+=1)if(t[v]!==""){if(a=t[v],o==="")if(l=this.get(a),Xd(l)){s=a,o=a;continue}else o=Rn,d=!0;!d&&a===Rn||(d||(d=!0),_o(e,t.length-1-v)===1?[s,o]=oo(a,o):[s,o]=oo(o,a),this.set(s,o),o=s)}return s===""&&(s=Rn),s}updateWithSideNodes(e,t,n,r,i){let s,o;this.set(ra(t),t),[s,o]=VI(e,t),this.set(s,o),o=s;let a;if(r===Rn)a=256;else{let[l]=Jd(i);a=HI(e,l)}a!==256&&(_o(e,a)===1?[s,o]=oo(r,o):[s,o]=oo(o,r),this.set(s,o),o=s);for(let l=0;l<256;l+=1){let d,v=256-n.length;if(l-v<0||n[l-v]==="")if(a!==256&&a>256-1-l)d=Rn;else continue;else d=n[l-v];_o(e,256-1-l)===1?[s,o]=oo(d,o):[s,o]=oo(o,d),this.set(s,o),o=s}return s}update(e,t){let[n,r,i]=this.sideNodesForRoot(e,this.root),s;t===Rn?s=this.deleteWithSideNodes(e,n,r,i):s=this.updateWithSideNodes(e,t,n,r,i),this.setRoot(s)}delete(e){this.update(e,Rn)}prove(e){let[t,n,r,i]=this.sideNodesForRoot(e,this.root),s=[];for(let a=0;a<t.length;a+=1)t[a]!==""&&s.push(t[a]);let o="";if(n!==Rn){let[a]=Jd(r);a!==e&&(o=r)}return new GI(s,o,i)}proveCompacted(e){let t=this.prove(e);return WI(t)}},YI=KI,JI=Object.defineProperty,XI=(e,t)=>{for(var n in t)JI(e,n,{get:t[n],enumerable:!0})},ZI={};XI(ZI,{getContractId:()=>tM,getContractRoot:()=>c5,getContractStorageRoot:()=>eM,includeHexPrefix:()=>nM});var c5=e=>{let t=[],n=ce(e);for(let r=0;r<n.length;r+=8){let i=new Uint8Array(8);i.set(n.slice(r,r+8)),t.push(i)}return FI(t.map(r=>ue(r)))},eM=e=>{let t=new YI;return e.forEach(({key:n,value:r})=>t.update(n,r)),t.root},tM=(e,t,n)=>{let r=c5(ce(e));return Es(we(["0x4655454C",t,r,n]))},nM=(e,t)=>ue(e,{...t,allowMissingPrefix:!0});new Fe(ws.FUELS);function rM(e){return Es(Qx(e,"utf-8"))}function iM(e){let t=Xn(e).toTransaction();
565return t.type===Li.Script&&(t.receiptsRoot=Xt),t.inputs=t.inputs.map(n=>{let r=sf(n);switch(r.type){case gn.Coin:return r;case gn.Contract:return r.utxoID={transactionId:Xt,outputIndex:0},r.balanceRoot=Xt,r.stateRoot=Xt,r;default:return r}}),t.outputs=t.outputs.map(n=>{let r=sf(n);switch(r.type){case rt.Contract:return r.balanceRoot=Xt,r.stateRoot=Xt,r;case rt.Change:return r.amount=Z(0),r;case rt.Variable:return r.to=Xt,r.amount=Z(0),r.assetId=Xt,r;default:return r}}),t.witnessesCount=0,t.witnesses=[],Es(new Au().encode(t))}function sM(e){return Es(e)}var f5={};const oM="elliptic",aM="6.5.4",uM="EC cryptography",lM="lib/elliptic.js",cM=["lib"],fM={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/"},dM={type:"git",url:"[email protected]:indutny/elliptic"},hM=["EC","Elliptic","curve","Cryptography"],pM="Fedor Indutny <[email protected]>",mM="MIT",vM={url:"https://github.com/indutny/elliptic/issues"},yM="https://github.com/indutny/elliptic",gM={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"},bM={"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"},wM={name:oM,version:aM,description:uM,main:lM,files:cM,scripts:fM,repository:dM,keywords:hM,author:pM,license:mM,bugs:vM,homepage:yM,devDependencies:gM,dependencies:bM};var ur={},ui={exports:{}};(function(e){(function(t,n){function r(I,m){if(!I)throw new Error(m||"Assertion failed")}function i(I,m){I.super_=m;var p=function(){};p.prototype=m.prototype,I.prototype=new p,I.prototype.constructor=I}function s(I,m,p){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((m==="le"||m==="be")&&(p=m,m=10),this._init(I||0,m||10,p||"be"))}
vendor: 9,997 bytes, line 565
565typeof t=="object"?t.exports=s:n.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Up.Buffer}catch{}s.isBN=function(m){return m instanceof s?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===s.wordSize&&Array.isArray(m.words)},s.max=function(m,p){return m.cmp(p)>0?m:p},s.min=function(m,p){return m.cmp(p)<0?m:p},s.prototype._init=function(m,p,u){if(typeof m=="number")return this._initNumber(m,p,u);if(typeof m=="object")return this._initArray(m,p,u);p==="hex"&&(p=16),r(p===(p|0)&&p>=2&&p<=36),m=m.toString().replace(/\s+/g,"");var f=0;m[0]==="-"&&(f++,this.negative=1),f<m.length&&(p===16?this._parseHex(m,f,u):(this._parseBase(m,p,f),u==="le"&&this._initArray(this.toArray(),p,u)))},s.prototype._initNumber=function(m,p,u){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),p,u)},s.prototype._initArray=function(m,p,u){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var w,E,x=0;if(u==="be")for(f=m.length-1,w=0;f>=0;f-=3)E=m[f]|m[f-1]<<8|m[f-2]<<16,this.words[w]|=E<<x&67108863,this.words[w+1]=E>>>26-x&67108863,x+=24,x>=26&&(x-=26,w++);else if(u==="le")for(f=0,w=0;f<m.length;f+=3)E=m[f]|m[f+1]<<8|m[f+2]<<16,this.words[w]|=E<<x&67108863,this.words[w+1]=E>>>26-x&67108863,x+=24,x>=26&&(x-=26,w++);return this.strip()};function a(I,m){var p=I.charCodeAt(m);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function l(I,m,p){var u=a(I,p);return p-1>=m&&(u|=a(I,p-1)<<4),u}s.prototype._parseHex=function(m,p,u){this.length=Math.ceil((m.length-p)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var w=0,E=0,x;if(u==="be")for(f=m.length-1;f>=p;f-=2)x=l(m,p,f)<<w,this.words[E]|=x&67108863,w>=18?(w-=18,E+=1,this.words[E]|=x>>>26):w+=8;else{var g=m.length-p;for(f=g%2===0?p+1:p;f<m.length;f+=2)x=l(m,p,f)<<w,this.words[E]|=x&67108863,w>=18?(w-=18,E+=1,this.words[E]|=x>>>26):w+=8}this.strip()};function d(I,m,p,u){for(var f=0,w=Math.min(I.length,p),E=m;E<w;E++){var x=I.charCodeAt(E)-48;f*=u,x>=49?f+=x-49+10:x>=17?f+=x-17+10:f+=x}return f}s.prototype._parseBase=function(m,p,u){this.words=[0],this.length=1;for(var f=0,w=1;w<=67108863;w*=p)f++;f--,w=w/p|0;for(var E=m.length-u,x=E%f,g=Math.min(E,E-x)+u,c=0,b=u;b<g;b+=f)c=d(m,b,b+f,p),this.imuln(w),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(x!==0){var h=1;for(c=d(m,b,m.length,p),b=0;b<x;b++)h*=p;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},s.prototype.copy=function(m){m.words=new Array(this.length);for(var p=0;p<this.length;p++)m.words[p]=this.words[p];m.length=this.length,m.negative=this.negative,m.red=this.red},s.prototype.clone=function(){var m=new s(null);return this.copy(m),m},s.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){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"],y=[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],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(m,p){m=m||10,p=p|0||1;var u;if(m===16||m==="hex"){u="";for(var f=0,w=0,E=0;E<this.length;E++){var x=this.words[E],g=((x<<f|w)&16777215).toString(16);w=x>>>24-f&16777215,w!==0||E!==this.length-1?u=v[6-g.length]+g+u:u=g+u,f+=2,f>=26&&(f-=26,E--)}for(w!==0&&(u=w.toString(16)+u);u.length%p!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(m===(m|0)&&m>=2&&m<=36){var c=y[m],b=_[m];u="";var h=this.clone();for(h.negative=0;!h.isZero();){var S=h.modn(b).toString(m);h=h.idivn(b),h.isZero()?u=S+u:u=v[c-S.length]+S+u}for(this.isZero()&&(u="0"+u);u.length%p!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(m,p){return r(typeof o<"u"),this.toArrayLike(o,m,p)},s.prototype.toArray=function(m,p){return this.toArrayLike(Array,m,p)},s.prototype.toArrayLike=function(m,p,u){var f=this.byteLength(),w=u||Math.max(1,f);r(f<=w,"byte array longer than desired length"),r(w>0,"Requested array length <= 0"),this.strip();var E=p==="le",x=new m(w),g,c,b=this.clone();if(E){for(c=0;!b.isZero();c++)g=b.andln(255),b.iushrn(8),x[c]=g;for(;c<w;c++)x[c]=0}else{for(c=0;c<w-f;c++)x[c]=0;for(c=0;!b.isZero();c++)g=b.andln(255),b.iushrn(8),x[w-c-1]=g}return x},Math.clz32?s.prototype._countBits=function(m){return 32-Math.clz32(m)}:s.prototype._countBits=function(m){var p=m,u=0;return p>=4096&&(u+=13,p>>>=13),p>=64&&(u+=7,p>>>=7),p>=8&&(u+=4,p>>>=4),p>=2&&(u+=2,p>>>=2),u+p},s.prototype._zeroBits=function(m){if(m===0)return 26;var p=m,u=0;return(p&8191)===0&&(u+=13,p>>>=13),(p&127)===0&&(u+=7,p>>>=7),(p&15)===0&&(u+=4,p>>>=4),(p&3)===0&&(u+=2,p>>>=2),(p&1)===0&&u++,u},s.prototype.bitLength=function(){var m=this.words[this.length-1],p=this._countBits(m);return(this.length-1)*26+p};function T(I){for(var m=new Array(I.bitLength()),p=0;p<m.length;p++){var u=p/26|0,f=p%26;m[p]=(I.words[u]&1<<f)>>>f}return m}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,p=0;p<this.length;p++){var u=this._zeroBits(this.words[p]);if(m+=u,u!==26)break}return m},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},s.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var p=0;p<m.length;p++)this.words[p]=this.words[p]|m.words[p];return this.strip()},s.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},s.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},s.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},s.prototype.iuand=function(m){var p;this.length>m.length?p=m:p=this;for(var u=0;u<p.length;u++)this.words[u]=this.words[u]&m.words[u];return this.length=p.length,this.strip()},s.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},s.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},s.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},s.prototype.iuxor=function(m){var p,u;this.length>m.length?(p=this,u=m):(p=m,u=this);for(var f=0;f<u.length;f++)this.words[f]=p.words[f]^u.words[f];if(this!==p)for(;f<p.length;f++)this.words[f]=p.words[f];return this.length=p.length,this.strip()},s.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},s.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},s.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},s.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var p=Math.ceil(m/26)|0,u=m%26;this._expand(p),u>0&&p--;for(var f=0;f<p;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},s.prototype.notn=function(m){return this.clone().inotn(m)},s.prototype.setn=function(m,p){r(typeof m=="number"&&m>=0);var u=m/26|0,f=m%26;return this._expand(u+1),p?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},s.prototype.iadd=function(m){var p;if(this.negative!==0&&m.negative===0)return this.negative=0,p=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,p=this.isub(m),m.negative=1,p._normSign();var u,f;this.length>m.length?(u=this,f=m):(u=m,f=this);for(var w=0,E=0;E<f.length;E++)p=(u.words[E]|0)+(f.words[E]|0)+w,this.words[E]=p&67108863,w=p>>>26;for(;w!==0&&E<u.length;E++)p=(u.words[E]|0)+w,this.words[E]=p&67108863,w=p>>>26;if(this.length=u.length,w!==0)this.words[this.length]=w,this.length++;else if(u!==this)for(;E<u.length;E++)this.words[E]=u.words[E];return this},s.prototype.add=function(m){var p;return m.negative!==0&&this.negative===0?(m.negative=0,p=this.sub(m),m.negative^=1,p):m.negative===0&&this.negative!==0?(this.negative=0,p=m.sub(this),this.negative=1,p):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},s.prototype.isub=function(m){if(m.negative!==0){m.negative=0;
vendor: 5,575 bytes, line 565
565var p=this.iadd(m);return m.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var u=this.cmp(m);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,w;u>0?(f=this,w=m):(f=m,w=this);for(var E=0,x=0;x<w.length;x++)p=(f.words[x]|0)-(w.words[x]|0)+E,E=p>>26,this.words[x]=p&67108863;for(;E!==0&&x<f.length;x++)p=(f.words[x]|0)+E,E=p>>26,this.words[x]=p&67108863;if(E===0&&x<f.length&&f!==this)for(;x<f.length;x++)this.words[x]=f.words[x];return this.length=Math.max(this.length,x),f!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(m){return this.clone().isub(m)};function M(I,m,p){p.negative=m.negative^I.negative;var u=I.length+m.length|0;p.length=u,u=u-1|0;var f=I.words[0]|0,w=m.words[0]|0,E=f*w,x=E&67108863,g=E/67108864|0;p.words[0]=x;for(var c=1;c<u;c++){for(var b=g>>>26,h=g&67108863,S=Math.min(c,m.length-1),P=Math.max(0,c-I.length+1);P<=S;P++){var j=c-P|0;f=I.words[j]|0,w=m.words[P]|0,E=f*w+h,b+=E/67108864|0,h=E&67108863}p.words[c]=h|0,g=b|0}return g!==0?p.words[c]=g|0:p.length--,p.strip()}var A=function(m,p,u){var f=m.words,w=p.words,E=u.words,x=0,g,c,b,h=f[0]|0,S=h&8191,P=h>>>13,j=f[1]|0,G=j&8191,X=j>>>13,te=f[2]|0,re=te&8191,me=te>>>13,fe=f[3]|0,ie=fe&8191,$e=fe>>>13,Te=f[4]|0,ve=Te&8191,Ge=Te>>>13,We=f[5]|0,he=We&8191,Ze=We>>>13,Je=f[6]|0,ge=Je&8191,ut=Je>>>13,lt=f[7]|0,ye=lt&8191,nt=lt>>>13,bt=f[8]|0,xe=bt&8191,ct=bt>>>13,ft=f[9]|0,Ie=ft&8191,wt=ft>>>13,Et=w[0]|0,Me=Et&8191,dt=Et>>>13,xt=w[1]|0,Ne=xt&8191,st=xt>>>13,et=w[2]|0,Ee=et&8191,ot=et>>>13,at=w[3]|0,be=at&8191,_t=at>>>13,St=w[4]|0,Re=St&8191,Tt=St>>>13,It=w[5]|0,_e=It&8191,ht=It>>>13,Ke=w[6]|0,Oe=Ke&8191,Mt=Ke>>>13,Nt=w[7]|0,Ae=Nt&8191,Rt=Nt>>>13,Qe=w[8]|0,Ce=Qe&8191,Ot=Qe>>>13,At=w[9]|0,De=At&8191,Ct=At>>>13;u.negative=m.negative^p.negative,u.length=19,g=Math.imul(S,Me),c=Math.imul(S,dt),c=c+Math.imul(P,Me)|0,b=Math.imul(P,dt);var Ye=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,g=Math.imul(G,Me),c=Math.imul(G,dt),c=c+Math.imul(X,Me)|0,b=Math.imul(X,dt),g=g+Math.imul(S,Ne)|0,c=c+Math.imul(S,st)|0,c=c+Math.imul(P,Ne)|0,b=b+Math.imul(P,st)|0;var pt=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,g=Math.imul(re,Me),c=Math.imul(re,dt),c=c+Math.imul(me,Me)|0,b=Math.imul(me,dt),g=g+Math.imul(G,Ne)|0,c=c+Math.imul(G,st)|0,c=c+Math.imul(X,Ne)|0,b=b+Math.imul(X,st)|0,g=g+Math.imul(S,Ee)|0,c=c+Math.imul(S,ot)|0,c=c+Math.imul(P,Ee)|0,b=b+Math.imul(P,ot)|0;var ci=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(ci>>>26)|0,ci&=67108863,g=Math.imul(ie,Me),c=Math.imul(ie,dt),c=c+Math.imul($e,Me)|0,b=Math.imul($e,dt),g=g+Math.imul(re,Ne)|0,c=c+Math.imul(re,st)|0,c=c+Math.imul(me,Ne)|0,b=b+Math.imul(me,st)|0,g=g+Math.imul(G,Ee)|0,c=c+Math.imul(G,ot)|0,c=c+Math.imul(X,Ee)|0,b=b+Math.imul(X,ot)|0,g=g+Math.imul(S,be)|0,c=c+Math.imul(S,_t)|0,c=c+Math.imul(P,be)|0,b=b+Math.imul(P,_t)|0;var fi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(fi>>>26)|0,fi&=67108863,g=Math.imul(ve,Me),c=Math.imul(ve,dt),c=c+Math.imul(Ge,Me)|0,b=Math.imul(Ge,dt),g=g+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,st)|0,c=c+Math.imul($e,Ne)|0,b=b+Math.imul($e,st)|0,g=g+Math.imul(re,Ee)|0,c=c+Math.imul(re,ot)|0,c=c+Math.imul(me,Ee)|0,b=b+Math.imul(me,ot)|0,g=g+Math.imul(G,be)|0,c=c+Math.imul(G,_t)|0,c=c+Math.imul(X,be)|0,b=b+Math.imul(X,_t)|0,g=g+Math.imul(S,Re)|0,c=c+Math.imul(S,Tt)|0,c=c+Math.imul(P,Re)|0,b=b+Math.imul(P,Tt)|0;var di=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(di>>>26)|0,di&=67108863,g=Math.imul(he,Me),c=Math.imul(he,dt),c=c+Math.imul(Ze,Me)|0,b=Math.imul(Ze,dt),g=g+Math.imul(ve,Ne)|0,c=c+Math.imul(ve,st)|0,c=c+Math.imul(Ge,Ne)|0,b=b+Math.imul(Ge,st)|0,g=g+Math.imul(ie,Ee)|0,c=c+Math.imul(ie,ot)|0,c=c+Math.imul($e,Ee)|0,b=b+Math.imul($e,ot)|0,g=g+Math.imul(re,be)|0,c=c+Math.imul(re,_t)|0,c=c+Math.imul(me,be)|0,b=b+Math.imul(me,_t)|0,g=g+Math.imul(G,Re)|0,c=c+Math.imul(G,Tt)|0,c=c+Math.imul(X,Re)|0,b=b+Math.imul(X,Tt)|0,g=g+Math.imul(S,_e)|0,c=c+Math.imul(S,ht)|0,c=c+Math.imul(P,_e)|0,b=b+Math.imul(P,ht)|0;var hi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(hi>>>26)|0,hi&=67108863,g=Math.imul(ge,Me),c=Math.imul(ge,dt),c=c+Math.imul(ut,Me)|0,b=Math.imul(ut,dt),g=g+Math.imul(he,Ne)|0,c=c+Math.imul(he,st)|0,c=c+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,st)|0,g=g+Math.imul(ve,Ee)|0,c=c+Math.imul(ve,ot)|0,c=c+Math.imul(Ge,Ee)|0,b=b+Math.imul(Ge,ot)|0,g=g+Math.imul(ie,be)|0,c=c+Math.imul(ie,_t)|0,c=c+Math.imul($e,be)|0,b=b+Math.imul($e,_t)|0,g=g+Math.imul(re,Re)|0,c=c+Math.imul(re,Tt)|0,c=c+Math.imul(me,Re)|0,b=b+Math.imul(me,Tt)|0,g=g+Math.imul(G,_e)|0,c=c+Math.imul(G,ht)|0,c=c+Math.imul(X,_e)|0,b=b+Math.imul(X,ht)|0,g=g+Math.imul(S,Oe)|0,c=c+Math.imul(S,Mt)|0,c=c+Math.imul(P,Oe)|0,b=b+Math.imul(P,Mt)|0;var kn=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,g=Math.imul(ye,Me),c=Math.imul(ye,dt),c=c+Math.imul(nt,Me)|0,b=Math.imul(nt,dt),g=g+Math.imul(ge,Ne)|0,c=c+Math.imul(ge,st)|0,c=c+Math.imul(ut,Ne)|0,b=b+Math.imul(ut,st)|0,g=g+Math.imul(he,Ee)|0,c=c+Math.imul(he,ot)|0,c=c+Math.imul(Ze,Ee)|0,b=b+Math.imul(Ze,ot)|0,g=g+Math.imul(ve,be)|0,c=c+Math.imul(ve,_t)|0,c=c+Math.imul(Ge,be)|0,b=b+Math.imul(Ge,_t)|0,g=g+Math.imul(ie,Re)|0,c=c+Math.imul(ie,Tt)|0,c=c+Math.imul($e,Re)|0,b=b+Math.imul($e,Tt)|0,g=g+Math.imul(re,_e)|0,c=c+Math.imul(re,ht)|0,c=c+Math.imul(me,_e)|0,b=b+Math.imul(me,ht)|0,g=g+Math.imul(G,Oe)|0,c=c+Math.imul(G,Mt)|0,c=c+Math.imul(X,Oe)|0,b=b+Math.imul(X,Mt)|0,g=g+Math.imul(S,Ae)|0,c=c+Math.imul(S,Rt)|0,c=c+Math.imul(P,Ae)|0,b=b+Math.imul(P,Rt)|0;var pi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(pi>>>
56526)|0,pi&=67108863,g=Math.imul(xe,Me),c=Math.imul(xe,dt),c=c+Math.imul(ct,Me)|0,b=Math.imul(ct,dt),g=g+Math.imul(ye,Ne)|0,c=c+Math.imul(ye,st)|0,c=c+Math.imul(nt,Ne)|0,b=b+Math.imul(nt,st)|0,g=g+Math.imul(ge,Ee)|0,c=c+Math.imul(ge,ot)|0,c=c+Math.imul(ut,Ee)|0,b=b+Math.imul(ut,ot)|0,g=g+Math.imul(he,be)|0,c=c+Math.imul(he,_t)|0,c=c+Math.imul(Ze,be)|0,b=b+Math.imul(Ze,_t)|0,g=g+Math.imul(ve,Re)|0,c=c+Math.imul(ve,Tt)|0,c=c+Math.imul(Ge,Re)|0,b=b+Math.imul(Ge,Tt)|0,g=g+Math.imul(ie,_e)|0,c=c+Math.imul(ie,ht)|0,c=c+Math.imul($e,_e)|0,b=b+Math.imul($e,ht)|0,g=g+Math.imul(re,Oe)|0,c=c+Math.imul(re,Mt)|0,c=c+Math.imul(me,Oe)|0,b=b+Math.imul(me,Mt)|0,g=g+Math.imul(G,Ae)|0,c=c+Math.imul(G,Rt)|0,c=c+Math.imul(X,Ae)|0,b=b+Math.imul(X,Rt)|0,g=g+Math.imul(S,Ce)|0,c=c+Math.imul(S,Ot)|0,c=c+Math.imul(P,Ce)|0,b=b+Math.imul(P,Ot)|0;var mi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(mi>>>26)|0,mi&=67108863,g=Math.imul(Ie,Me),c=Math.imul(Ie,dt),c=c+Math.imul(wt,Me)|0,b=Math.imul(wt,dt),g=g+Math.imul(xe,Ne)|0,c=c+Math.imul(xe,st)|0,c=c+Math.imul(ct,Ne)|0,b=b+Math.imul(ct,st)|0,g=g+Math.imul(ye,Ee)|0,c=c+Math.imul(ye,ot)|0,c=c+Math.imul(nt,Ee)|0,b=b+Math.imul(nt,ot)|0,g=g+Math.imul(ge,be)|0,c=c+Math.imul(ge,_t)|0,c=c+Math.imul(ut,be)|0,b=b+Math.imul(ut,_t)|0,g=g+Math.imul(he,Re)|0,c=c+Math.imul(he,Tt)|0,c=c+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Tt)|0,g=g+Math.imul(ve,_e)|0,c=c+Math.imul(ve,ht)|0,c=c+Math.imul(Ge,_e)|0,b=b+Math.imul(Ge,ht)|0,g=g+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Mt)|0,c=c+Math.imul($e,Oe)|0,b=b+Math.imul($e,Mt)|0,g=g+Math.imul(re,Ae)|0,c=c+Math.imul(re,Rt)|0,c=c+Math.imul(me,Ae)|0,b=b+Math.imul(me,Rt)|0,g=g+Math.imul(G,Ce)|0,c=c+Math.imul(G,Ot)|0,c=c+Math.imul(X,Ce)|0,b=b+Math.imul(X,Ot)|0,g=g+Math.imul(S,De)|0,c=c+Math.imul(S,Ct)|0,c=c+Math.imul(P,De)|0,b=b+Math.imul(P,Ct)|0;var vi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(vi>>>26)|0,vi&=67108863,g=Math.imul(Ie,Ne),c=Math.imul(Ie,st),c=c+Math.imul(wt,Ne)|0,b=Math.imul(wt,st),g=g+Math.imul(xe,Ee)|0,c=c+Math.imul(xe,ot)|0,c=c+Math.imul(ct,Ee)|0,b=b+Math.imul(ct,ot)|0,g=g+Math.imul(ye,be)|0,c=c+Math.imul(ye,_t)|0,c=c+Math.imul(nt,be)|0,b=b+Math.imul(nt,_t)|0,g=g+Math.imul(ge,Re)|0,c=c+Math.imul(ge,Tt)|0,c=c+Math.imul(ut,Re)|0,b=b+Math.imul(ut,Tt)|0,g=g+Math.imul(he,_e)|0,c=c+Math.imul(he,ht)|0,c=c+Math.imul(Ze,_e)|0,b=b+Math.imul(Ze,ht)|0,g=g+Math.imul(ve,Oe)|0,c=c+Math.imul(ve,Mt)|0,c=c+Math.imul(Ge,Oe)|0,b=b+Math.imul(Ge,Mt)|0,g=g+Math.imul(ie,Ae)|0,c=c+Math.imul(ie,Rt)|0,c=c+Math.imul($e,Ae)|0,b=b+Math.imul($e,Rt)|0,g=g+Math.imul(re,Ce)|0,c=c+Math.imul(re,Ot)|0,c=c+Math.imul(me,Ce)|0,b=b+Math.imul(me,Ot)|0,g=g+Math.imul(G,De)|0,c=c+Math.imul(G,Ct)|0,c=c+Math.imul(X,De)|0,b=b+Math.imul(X,Ct)|0;var yi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(yi>>>26)|0,yi&=67108863,g=Math.imul(Ie,Ee),c=Math.imul(Ie,ot),c=c+Math.imul(wt,Ee)|0,b=Math.imul(wt,ot),g=g+Math.imul(xe,be)|0,c=c+Math.imul(xe,_t)|0,c=c+Math.imul(ct,be)|0,b=b+Math.imul(ct,_t)|0,g=g+Math.imul(ye,Re)|0,c=c+Math.imul(ye,Tt)|0,c=c+Math.imul(nt,Re)|0,b=b+Math.imul(nt,Tt)|0,g=g+Math.imul(ge,_e)|0,c=c+Math.imul(ge,ht)|0,c=c+Math.imul(ut,_e)|0,b=b+Math.imul(ut,ht)|0,g=g+Math.imul(he,Oe)|0,c=c+Math.imul(he,Mt)|0,c=c+Math.imul(Ze,Oe)|0,b=b+Math.imul(Ze,Mt)|0,g=g+Math.imul(ve,Ae)|0,c=c+Math.imul(ve,Rt)|0,c=c+Math.imul(Ge,Ae)|0,b=b+Math.imul(Ge,Rt)|0,g=g+Math.imul(ie,Ce)|0,c=c+Math.imul(ie,Ot)|0,c=c+Math.imul($e,Ce)|0,b=b+Math.imul($e,Ot)|0,g=g+Math.imul(re,De)|0,c=c+Math.imul(re,Ct)|0,c=c+Math.imul(me,De)|0,b=b+Math.imul(me,Ct)|0;var gi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(gi>>>26)|0,gi&=67108863,g=Math.imul(Ie,be),c=Math.imul(Ie,_t),c=c+Math.imul(wt,be)|0,b=Math.imul(wt,_t),g=g+Math.imul(xe,Re)|0,c=c+Math.imul(xe,Tt)|0,c=c+Math.imul(ct,Re)|0,b=b+Math.imul(ct,Tt)|0,g=g+Math.imul(ye,_e)|0,c=c+Math.imul(ye,ht)|0,c=c+Math.imul(nt,_e)|0,b=b+Math.imul(nt,ht)|0,g=g+Math.imul(ge,Oe)|0,c=c+Math.imul(ge,Mt)|0,c=c+Math.imul(ut,Oe)|0,b=b+Math.imul(ut,Mt)|0,g=g+Math.imul(he,Ae)|0,c=c+Math.imul(he,Rt)|0,c=c+Math.imul(Ze,Ae)|0,b=b+Math.imul(Ze,Rt)|0,g=g+Math.imul(ve,Ce)|0,c=c+Math.imul(ve,Ot)|0,c=c+Math.imul(Ge,Ce)|0,b=b+Math.imul(Ge,Ot)|0,g=g+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ct)|0,c=c+Math.imul($e,De)|0,b=b+Math.imul($e,Ct)|0;var bi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(bi>>>26)|0,bi&=67108863,g=Math.imul(Ie,Re),c=Math.imul(Ie,Tt),c=c+Math.imul(wt,Re)|0,b=Math.imul(wt,Tt),g=g+Math.imul(xe,_e)|0,c=c+Math.imul(xe,ht)|0,c=c+Math.imul(ct,_e)|0,b=b+Math.imul(ct,ht)|0,g=g+Math.imul(ye,Oe)|0,c=c+Math.imul(ye,Mt)|0,c=c+Math.imul(nt,Oe)|0,b=b+Math.imul(nt,Mt)|0,g=g+Math.imul(ge,Ae)|0,c=c+Math.imul(ge,Rt)|0,c=c+Math.imul(ut,Ae)|0,b=b+Math.imul(ut,Rt)|0,g=g+Math.imul(he,Ce)|0,c=c+Math.imul(he,Ot)|0,c=c+Math.imul(Ze,Ce)|0,b=b+Math.imul(Ze,Ot)|0,g=g+Math.imul(ve,De)|0,c=c+Math.imul(ve,Ct)|0,c=c+Math.imul(Ge,De)|0,b=b+Math.imul(Ge,Ct)|0;var jr=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(jr>>>26)|0,jr&=67108863,g=Math.imul(Ie,_e),c=Math.imul(Ie,ht),c=c+Math.imul(wt,_e)|0,b=Math.imul(wt,ht),g=g+Math.imul(xe,Oe)|0,c=c+Math.imul(xe,Mt)|0,c=c+Math.imul(ct,Oe)|0,b=b+Math.imul(ct,Mt)|0,g=g+Math.imul(ye,Ae)|0,c=c+Math.imul(ye,Rt)|0,c=c+Math.imul(nt,Ae)|0,b=b+Math.imul(nt,Rt)|0,g=g+Math.imul(ge,Ce)|0,c=c+Math.imul(ge,Ot)|0,c=c+Math.imul(ut,Ce)|0,b=b+Math.imul(ut,Ot)|0,g=g+Math.imul(he,De)|0,c=c+Math.imul(he,Ct)|0,c=c+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,Ct)|0;var lr=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(lr>>>26)|0,lr&=67108863,g=Math.imul(Ie,Oe),c=Math.imul(Ie,Mt),c=c+Math.imul(wt,Oe)|0,b=Math.imul(wt,Mt),g=g+Math.imul(xe,Ae)|0,c=c+Math.imul(xe,Rt)|0,c=c+Math.imul(ct,Ae)|0,b=b+Math.imul(ct,Rt)|0,g=g+Math.imul(ye,Ce)|0,c=c+Math.imul(ye,Ot)|0,c=c+Math.imul(nt,Ce)|0,b=b+Math.imul(nt,Ot)|0,g=g+Math.imul(ge,De)|0,c=c+Math.imul(ge,Ct)|0,c=c+Math.imul(ut,De)|0,b=b+Math.imul(ut,Ct)|0;var wi=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(wi>>>
vendor: 5,124 bytes, line 565
56526)|0,wi&=67108863,g=Math.imul(Ie,Ae),c=Math.imul(Ie,Rt),c=c+Math.imul(wt,Ae)|0,b=Math.imul(wt,Rt),g=g+Math.imul(xe,Ce)|0,c=c+Math.imul(xe,Ot)|0,c=c+Math.imul(ct,Ce)|0,b=b+Math.imul(ct,Ot)|0,g=g+Math.imul(ye,De)|0,c=c+Math.imul(ye,Ct)|0,c=c+Math.imul(nt,De)|0,b=b+Math.imul(nt,Ct)|0;var Ir=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,g=Math.imul(Ie,Ce),c=Math.imul(Ie,Ot),c=c+Math.imul(wt,Ce)|0,b=Math.imul(wt,Ot),g=g+Math.imul(xe,De)|0,c=c+Math.imul(xe,Ct)|0,c=c+Math.imul(ct,De)|0,b=b+Math.imul(ct,Ct)|0;var Ei=(x+g|0)+((c&8191)<<13)|0;x=(b+(c>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,g=Math.imul(Ie,De),c=Math.imul(Ie,Ct),c=c+Math.imul(wt,De)|0,b=Math.imul(wt,Ct);var xi=(x+g|0)+((c&8191)<<13)|0;return x=(b+(c>>>13)|0)+(xi>>>26)|0,xi&=67108863,E[0]=Ye,E[1]=pt,E[2]=ci,E[3]=fi,E[4]=di,E[5]=hi,E[6]=kn,E[7]=pi,E[8]=mi,E[9]=vi,E[10]=yi,E[11]=gi,E[12]=bi,E[13]=jr,E[14]=lr,E[15]=wi,E[16]=Ir,E[17]=Ei,E[18]=xi,x!==0&&(E[19]=x,u.length++),u};Math.imul||(A=M);function k(I,m,p){p.negative=m.negative^I.negative,p.length=I.length+m.length;for(var u=0,f=0,w=0;w<p.length-1;w++){var E=f;f=0;for(var x=u&67108863,g=Math.min(w,m.length-1),c=Math.max(0,w-I.length+1);c<=g;c++){var b=w-c,h=I.words[b]|0,S=m.words[c]|0,P=h*S,j=P&67108863;E=E+(P/67108864|0)|0,j=j+x|0,x=j&67108863,E=E+(j>>>26)|0,f+=E>>>26,E&=67108863}p.words[w]=x,u=E,E=f}return u!==0?p.words[w]=u:p.length--,p.strip()}function N(I,m,p){var u=new R;return u.mulp(I,m,p)}s.prototype.mulTo=function(m,p){var u,f=this.length+m.length;return this.length===10&&m.length===10?u=A(this,m,p):f<63?u=M(this,m,p):f<1024?u=k(this,m,p):u=N(this,m,p),u};function R(I,m){this.x=I,this.y=m}R.prototype.makeRBT=function(m){for(var p=new Array(m),u=s.prototype._countBits(m)-1,f=0;f<m;f++)p[f]=this.revBin(f,u,m);return p},R.prototype.revBin=function(m,p,u){if(m===0||m===u-1)return m;for(var f=0,w=0;w<p;w++)f|=(m&1)<<p-w-1,m>>=1;return f},R.prototype.permute=function(m,p,u,f,w,E){for(var x=0;x<E;x++)f[x]=p[m[x]],w[x]=u[m[x]]},R.prototype.transform=function(m,p,u,f,w,E){this.permute(E,m,p,u,f,w);for(var x=1;x<w;x<<=1)for(var g=x<<1,c=Math.cos(2*Math.PI/g),b=Math.sin(2*Math.PI/g),h=0;h<w;h+=g)for(var S=c,P=b,j=0;j<x;j++){var G=u[h+j],X=f[h+j],te=u[h+j+x],re=f[h+j+x],me=S*te-P*re;re=S*re+P*te,te=me,u[h+j]=G+te,f[h+j]=X+re,u[h+j+x]=G-te,f[h+j+x]=X-re,j!==g&&(me=c*S-b*P,P=c*P+b*S,S=me)}},R.prototype.guessLen13b=function(m,p){var u=Math.max(p,m)|1,f=u&1,w=0;for(u=u/2|0;u;u=u>>>1)w++;return 1<<w+1+f},R.prototype.conjugate=function(m,p,u){if(!(u<=1))for(var f=0;f<u/2;f++){var w=m[f];m[f]=m[u-f-1],m[u-f-1]=w,w=p[f],p[f]=-p[u-f-1],p[u-f-1]=-w}},R.prototype.normalize13b=function(m,p){for(var u=0,f=0;f<p/2;f++){var w=Math.round(m[2*f+1]/p)*8192+Math.round(m[2*f]/p)+u;m[f]=w&67108863,w<67108864?u=0:u=w/67108864|0}return m},R.prototype.convert13b=function(m,p,u,f){for(var w=0,E=0;E<p;E++)w=w+(m[E]|0),u[2*E]=w&8191,w=w>>>13,u[2*E+1]=w&8191,w=w>>>13;for(E=2*p;E<f;++E)u[E]=0;r(w===0),r((w&-8192)===0)},R.prototype.stub=function(m){for(var p=new Array(m),u=0;u<m;u++)p[u]=0;return p},R.prototype.mulp=function(m,p,u){var f=2*this.guessLen13b(m.length,p.length),w=this.makeRBT(f),E=this.stub(f),x=new Array(f),g=new Array(f),c=new Array(f),b=new Array(f),h=new Array(f),S=new Array(f),P=u.words;P.length=f,this.convert13b(m.words,m.length,x,f),this.convert13b(p.words,p.length,b,f),this.transform(x,E,g,c,f,w),this.transform(b,E,h,S,f,w);for(var j=0;j<f;j++){var G=g[j]*h[j]-c[j]*S[j];c[j]=g[j]*S[j]+c[j]*h[j],g[j]=G}return this.conjugate(g,c,f),this.transform(g,c,P,E,f,w),this.conjugate(P,E,f),this.normalize13b(P,f),u.negative=m.negative^p.negative,u.length=m.length+p.length,u.strip()},s.prototype.mul=function(m){var p=new s(null);return p.words=new Array(this.length+m.length),this.mulTo(m,p)},s.prototype.mulf=function(m){var p=new s(null);return p.words=new Array(this.length+m.length),N(this,m,p)},s.prototype.imul=function(m){return this.clone().mulTo(m,this)},s.prototype.imuln=function(m){r(typeof m=="number"),r(m<67108864);for(var p=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*m,w=(f&67108863)+(p&67108863);p>>=26,p+=f/67108864|0,p+=w>>>26,this.words[u]=w&67108863}return p!==0&&(this.words[u]=p,this.length++),this},s.prototype.muln=function(m){return this.clone().imuln(m)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(m){var p=T(m);if(p.length===0)return new s(1);for(var u=this,f=0;f<p.length&&p[f]===0;f++,u=u.sqr());if(++f<p.length)for(var w=u.sqr();f<p.length;f++,w=w.sqr())p[f]!==0&&(u=u.mul(w));return u},s.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var p=m%26,u=(m-p)/26,f=67108863>>>26-p<<26-p,w;if(p!==0){var E=0;for(w=0;w<this.length;w++){var x=this.words[w]&f,g=(this.words[w]|0)-x<<p;this.words[w]=g|E,E=x>>>26-p}E&&(this.words[w]=E,this.length++)}if(u!==0){for(w=this.length-1;w>=0;w--)this.words[w+u]=this.words[w];for(w=0;w<u;w++)this.words[w]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},s.prototype.iushrn=function(m,p,u){r(typeof m=="number"&&m>=0);var f;
vendor: 11,281 bytes, line 565
565p?f=(p-p%26)/26:f=0;var w=m%26,E=Math.min((m-w)/26,this.length),x=67108863^67108863>>>w<<w,g=u;if(f-=E,f=Math.max(0,f),g){for(var c=0;c<E;c++)g.words[c]=this.words[c];g.length=E}if(E!==0)if(this.length>E)for(this.length-=E,c=0;c<this.length;c++)this.words[c]=this.words[c+E];else this.words[0]=0,this.length=1;var b=0;for(c=this.length-1;c>=0&&(b!==0||c>=f);c--){var h=this.words[c]|0;this.words[c]=b<<26-w|h>>>w,b=h&x}return g&&b!==0&&(g.words[g.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(m,p,u){return r(this.negative===0),this.iushrn(m,p,u)},s.prototype.shln=function(m){return this.clone().ishln(m)},s.prototype.ushln=function(m){return this.clone().iushln(m)},s.prototype.shrn=function(m){return this.clone().ishrn(m)},s.prototype.ushrn=function(m){return this.clone().iushrn(m)},s.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var p=m%26,u=(m-p)/26,f=1<<p;if(this.length<=u)return!1;var w=this.words[u];return!!(w&f)},s.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var p=m%26,u=(m-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(p!==0&&u++,this.length=Math.min(u,this.length),p!==0){var f=67108863^67108863>>>p<<p;this.words[this.length-1]&=f}return this.strip()},s.prototype.maskn=function(m){return this.clone().imaskn(m)},s.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},s.prototype._iaddn=function(m){this.words[0]+=m;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},s.prototype.addn=function(m){return this.clone().iaddn(m)},s.prototype.subn=function(m){return this.clone().isubn(m)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(m,p,u){var f=m.length+u,w;this._expand(f);var E,x=0;for(w=0;w<m.length;w++){E=(this.words[w+u]|0)+x;var g=(m.words[w]|0)*p;E-=g&67108863,x=(E>>26)-(g/67108864|0),this.words[w+u]=E&67108863}for(;w<this.length-u;w++)E=(this.words[w+u]|0)+x,x=E>>26,this.words[w+u]=E&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,w=0;w<this.length;w++)E=-(this.words[w]|0)+x,x=E>>26,this.words[w]=E&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(m,p){var u=this.length-m.length,f=this.clone(),w=m,E=w.words[w.length-1]|0,x=this._countBits(E);u=26-x,u!==0&&(w=w.ushln(u),f.iushln(u),E=w.words[w.length-1]|0);var g=f.length-w.length,c;if(p!=="mod"){c=new s(null),c.length=g+1,c.words=new Array(c.length);for(var b=0;b<c.length;b++)c.words[b]=0}var h=f.clone()._ishlnsubmul(w,1,g);h.negative===0&&(f=h,c&&(c.words[g]=1));for(var S=g-1;S>=0;S--){var P=(f.words[w.length+S]|0)*67108864+(f.words[w.length+S-1]|0);for(P=Math.min(P/E|0,67108863),f._ishlnsubmul(w,P,S);f.negative!==0;)P--,f.negative=0,f._ishlnsubmul(w,1,S),f.isZero()||(f.negative^=1);c&&(c.words[S]=P)}return c&&c.strip(),f.strip(),p!=="div"&&u!==0&&f.iushrn(u),{div:c||null,mod:f}},s.prototype.divmod=function(m,p,u){if(r(!m.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var f,w,E;return this.negative!==0&&m.negative===0?(E=this.neg().divmod(m,p),p!=="mod"&&(f=E.div.neg()),p!=="div"&&(w=E.mod.neg(),u&&w.negative!==0&&w.iadd(m)),{div:f,mod:w}):this.negative===0&&m.negative!==0?(E=this.divmod(m.neg(),p),p!=="mod"&&(f=E.div.neg()),{div:f,mod:E.mod}):(this.negative&m.negative)!==0?(E=this.neg().divmod(m.neg(),p),p!=="div"&&(w=E.mod.neg(),u&&w.negative!==0&&w.isub(m)),{div:E.div,mod:w}):m.length>this.length||this.cmp(m)<0?{div:new s(0),mod:this}:m.length===1?p==="div"?{div:this.divn(m.words[0]),mod:null}:p==="mod"?{div:null,mod:new s(this.modn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new s(this.modn(m.words[0]))}:this._wordDiv(m,p)},s.prototype.div=function(m){return this.divmod(m,"div",!1).div},s.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},s.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},s.prototype.divRound=function(m){var p=this.divmod(m);if(p.mod.isZero())return p.div;var u=p.div.negative!==0?p.mod.isub(m):p.mod,f=m.ushrn(1),w=m.andln(1),E=u.cmp(f);return E<0||w===1&&E===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modn=function(m){r(m<=67108863);for(var p=(1<<26)%m,u=0,f=this.length-1;f>=0;f--)u=(p*u+(this.words[f]|0))%m;return u},s.prototype.idivn=function(m){r(m<=67108863);for(var p=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+p*67108864;this.words[u]=f/m|0,p=f%m}return this.strip()},s.prototype.divn=function(m){return this.clone().idivn(m)},s.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var p=this,u=m.clone();p.negative!==0?p=p.umod(m):p=p.clone();for(var f=new s(1),w=new s(0),E=new s(0),x=new s(1),g=0;p.isEven()&&u.isEven();)p.iushrn(1),u.iushrn(1),++g;for(var c=u.clone(),b=p.clone();!p.isZero();){for(var h=0,S=1;(p.words[0]&S)===0&&h<26;++h,S<<=1);if(h>0)for(p.iushrn(h);h-- >0;)(f.isOdd()||w.isOdd())&&(f.iadd(c),w.isub(b)),f.iushrn(1),w.iushrn(1);for(var P=0,j=1;(u.words[0]&j)===0&&P<26;++P,j<<=1);if(P>0)for(u.iushrn(P);P-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(c),x.isub(b)),E.iushrn(1),x.iushrn(1);p.cmp(u)>=0?(p.isub(u),f.isub(E),w.isub(x)):(u.isub(p),E.isub(f),x.isub(w))}return{a:E,b:x,gcd:u.iushln(g)}},s.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var p=this,u=m.clone();p.negative!==0?p=p.umod(m):p=p.clone();for(var f=new s(1),w=new s(0),E=u.clone();p.cmpn(1)>0&&u.cmpn(1)>0;){for(var x=0,g=1;(p.words[0]&g)===0&&x<26;++x,g<<=1);if(x>0)for(p.iushrn(x);x-- >0;)f.isOdd()&&f.iadd(E),f.iushrn(1);for(var c=0,b=1;(u.words[0]&b)===0&&c<26;++c,b<<=1);if(c>0)for(u.iushrn(c);c-- >0;)w.isOdd()&&w.iadd(E),w.iushrn(1);p.cmp(u)>=0?(p.isub(u),f.isub(w)):(u.isub(p),w.isub(f))}var h;return p.cmpn(1)===0?h=f:h=w,h.cmpn(0)<0&&h.iadd(m),h},s.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var p=this.clone(),u=m.clone();p.negative=0,u.negative=0;for(var f=0;p.isEven()&&u.isEven();f++)p.iushrn(1),u.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;u.isEven();)u.iushrn(1);var w=p.cmp(u);if(w<0){var E=p;p=u,u=E}else if(w===0||u.cmpn(1)===0)break;p.isub(u)}while(!0);return u.iushln(f)},s.prototype.invm=function(m){return this.egcd(m).a.umod(m)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(m){return this.words[0]&m},s.prototype.bincn=function(m){r(typeof m=="number");var p=m%26,u=(m-p)/26,f=1<<p;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var w=f,E=u;w!==0&&E<this.length;E++){var x=this.words[E]|0;x+=w,w=x>>>26,x&=67108863,this.words[E]=x}return w!==0&&(this.words[E]=w,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(m){var p=m<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var u;if(this.length>1)u=1;else{p&&(m=-m),r(m<=67108863,"Number is too big");var f=this.words[0]|0;u=f===m?0:f<m?-1:1}return this.negative!==0?-u|0:u},s.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var p=this.ucmp(m);return this.negative!==0?-p|0:p},s.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var p=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,w=m.words[u]|0;if(f!==w){f<w?p=-1:f>w&&(p=1);break}}return p},s.prototype.gtn=function(m){return this.cmpn(m)===1},s.prototype.gt=function(m){return this.cmp(m)===1},s.prototype.gten=function(m){return this.cmpn(m)>=0},s.prototype.gte=function(m){return this.cmp(m)>=0},s.prototype.ltn=function(m){return this.cmpn(m)===-1},s.prototype.lt=function(m){return this.cmp(m)===-1},s.prototype.lten=function(m){return this.cmpn(m)<=0},s.prototype.lte=function(m){return this.cmp(m)<=0},s.prototype.eqn=function(m){return this.cmpn(m)===0},s.prototype.eq=function(m){return this.cmp(m)===0},s.red=function(m){return new D(m)},s.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(m){return this.red=m,this},s.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},s.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},s.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},s.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},s.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},s.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},s.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},s.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var C={k256:null,p224:null,p192:null,p25519:null};function U(I,m){this.name=I,this.p=new s(m,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}U.prototype._tmp=function(){var m=new s(null);return m.words=new Array(Math.ceil(this.n/13)),m},U.prototype.ireduce=function(m){var p=m,u;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),u=p.bitLength();while(u>this.n);var f=u<this.n?-1:p.ucmp(this.p);return f===0?(p.words[0]=0,p.length=1):f>
vendor: 4,208 bytes, line 565
5650?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},U.prototype.split=function(m,p){m.iushrn(this.n,0,p)},U.prototype.imulK=function(m){return m.imul(this.k)};function B(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(B,U),B.prototype.split=function(m,p){for(var u=4194303,f=Math.min(m.length,9),w=0;w<f;w++)p.words[w]=m.words[w];if(p.length=f,m.length<=9){m.words[0]=0,m.length=1;return}var E=m.words[9];for(p.words[p.length++]=E&u,w=10;w<m.length;w++){var x=m.words[w]|0;m.words[w-10]=(x&u)<<4|E>>>22,E=x}E>>>=22,m.words[w-10]=E,E===0&&m.length>10?m.length-=10:m.length-=9},B.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var p=0,u=0;u<m.length;u++){var f=m.words[u]|0;p+=f*977,m.words[u]=p&67108863,p=f*64+(p/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function F(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(F,U);function z(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(z,U);function q(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(q,U),q.prototype.imulK=function(m){for(var p=0,u=0;u<m.length;u++){var f=(m.words[u]|0)*19+p,w=f&67108863;f>>>=26,m.words[u]=w,p=f}return p!==0&&(m.words[m.length++]=p),m},s._prime=function(m){if(C[m])return C[m];var p;if(m==="k256")p=new B;else if(m==="p224")p=new F;else if(m==="p192")p=new z;else if(m==="p25519")p=new q;else throw new Error("Unknown prime "+m);return C[m]=p,p};function D(I){if(typeof I=="string"){var m=s._prime(I);this.m=m.p,this.prime=m}else r(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}D.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},D.prototype._verify2=function(m,p){r((m.negative|p.negative)===0,"red works only with positives"),r(m.red&&m.red===p.red,"red works only with red numbers")},D.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):m.umod(this.m)._forceRed(this)},D.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},D.prototype.add=function(m,p){this._verify2(m,p);var u=m.add(p);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},D.prototype.iadd=function(m,p){this._verify2(m,p);var u=m.iadd(p);return u.cmp(this.m)>=0&&u.isub(this.m),u},D.prototype.sub=function(m,p){this._verify2(m,p);var u=m.sub(p);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},D.prototype.isub=function(m,p){this._verify2(m,p);var u=m.isub(p);return u.cmpn(0)<0&&u.iadd(this.m),u},D.prototype.shl=function(m,p){return this._verify1(m),this.imod(m.ushln(p))},D.prototype.imul=function(m,p){return this._verify2(m,p),this.imod(m.imul(p))},D.prototype.mul=function(m,p){return this._verify2(m,p),this.imod(m.mul(p))},D.prototype.isqr=function(m){return this.imul(m,m.clone())},D.prototype.sqr=function(m){return this.mul(m,m)},D.prototype.sqrt=function(m){if(m.isZero())return m.clone();var p=this.m.andln(3);if(r(p%2===1),p===3){var u=this.m.add(new s(1)).iushrn(2);return this.pow(m,u)}for(var f=this.m.subn(1),w=0;!f.isZero()&&f.andln(1)===0;)w++,f.iushrn(1);r(!f.isZero());var E=new s(1).toRed(this),x=E.redNeg(),g=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);this.pow(c,g).cmp(x)!==0;)c.redIAdd(x);for(var b=this.pow(c,f),h=this.pow(m,f.addn(1).iushrn(1)),S=this.pow(m,f),P=w;S.cmp(E)!==0;){for(var j=S,G=0;j.cmp(E)!==0;G++)j=j.redSqr();r(G<P);var X=this.pow(b,new s(1).iushln(P-G-1));h=h.redMul(X),b=X.redSqr(),S=S.redMul(b),P=G}return h},D.prototype.invm=function(m){var p=m._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},D.prototype.pow=function(m,p){if(p.isZero())return new s(1).toRed(this);if(p.cmpn(1)===0)return m.clone();var u=4,f=new Array(1<<u);f[0]=new s(1).toRed(this),f[1]=m;for(var w=2;w<f.length;w++)f[w]=this.mul(f[w-1],m);var E=f[0],x=0,g=0,c=p.bitLength()%26;for(c===0&&(c=26),w=p.length-1;w>=0;w--){for(var b=p.words[w],h=c-1;h>=0;h--){var S=b>>h&1;if(E!==f[0]&&(E=this.sqr(E)),S===0&&x===0){g=0;continue}
565x<<=1,x|=S,g++,!(g!==u&&(w!==0||h!==0))&&(E=this.mul(E,f[x]),g=0,x=0)}c=26}return E},D.prototype.convertTo=function(m){var p=m.umod(this.m);return p===m?p.clone():p},D.prototype.convertFrom=function(m){var p=m.clone();return p.red=null,p},s.mont=function(m){return new L(m)};function L(I){D.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(L,D),L.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},L.prototype.convertFrom=function(m){var p=this.imod(m.mul(this.rinv));return p.red=null,p},L.prototype.imul=function(m,p){if(m.isZero()||p.isZero())return m.words[0]=0,m.length=1,m;var u=m.imul(p),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(f).iushrn(this.shift),E=w;return w.cmp(this.m)>=0?E=w.isub(this.m):w.cmpn(0)<0&&(E=w.iadd(this.m)),E._forceRed(this)},L.prototype.mul=function(m,p){if(m.isZero()||p.isZero())return new s(0)._forceRed(this);var u=m.mul(p),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(f).iushrn(this.shift),E=w;return w.cmp(this.m)>=0?E=w.isub(this.m):w.cmpn(0)<0&&(E=w.iadd(this.m)),E._forceRed(this)},L.prototype.invm=function(m){var p=this.imod(m._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(e,qe)})(ui);var $m={};(function(e){var t=e;function n(s,o){if(Array.isArray(s))return s.slice();if(!s)return[];var a=[];if(typeof s!="string"){for(var l=0;l<s.length;l++)a[l]=s[l]|0;return a}if(o==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s);for(var l=0;l<s.length;l+=2)a.push(parseInt(s[l]+s[l+1],16))}else for(var l=0;l<s.length;l++){var d=s.charCodeAt(l),v=d>>8,y=d&255;v?a.push(v,y):a.push(y)}return a}t.toArray=n;function r(s){return s.length===1?"0"+s:s}t.zero2=r;function i(s){for(var o="",a=0;a<s.length;a++)o+=r(s[a].toString(16));return o}t.toHex=i,t.encode=function(o,a){return a==="hex"?i(o):o}})($m);(function(e){var t=e,n=ui.exports,r=eo,i=$m;t.assert=r,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode;function s(v,y,_){var T=new Array(Math.max(v.bitLength(),_)+1);T.fill(0);for(var M=1<<y+1,A=v.clone(),k=0;k<T.length;k++){var N,R=A.andln(M-1);A.isOdd()?(R>(M>>1)-1?N=(M>>1)-R:N=R,A.isubn(N)):N=0,T[k]=N,A.iushrn(1)}return T}t.getNAF=s;function o(v,y){var _=[[],[]];v=v.clone(),y=y.clone();for(var T=0,M=0,A;v.cmpn(-T)>0||y.cmpn(-M)>0;){var k=v.andln(3)+T&3,N=y.andln(3)+M&3;k===3&&(k=-1),N===3&&(N=-1);var R;(k&1)===0?R=0:(A=v.andln(7)+T&7,(A===3||A===5)&&N===2?R=-k:R=k),_[0].push(R);var C;(N&1)===0?C=0:(A=y.andln(7)+M&7,(A===3||A===5)&&k===2?C=-N:C=N),_[1].push(C),2*T===R+1&&(T=1-T),2*M===C+1&&(M=1-M),v.iushrn(1),y.iushrn(1)}return _}t.getJSF=o;function a(v,y,_){var T="_"+y;v.prototype[y]=function(){return this[T]!==void 0?this[T]:this[T]=_.call(this)}}t.cachedProperty=a;function l(v){return typeof v=="string"?t.toArray(v,"hex"):v}t.parseBytes=l;function d(v){return new n(v,"hex","le")}t.intFromLE=d})(ur);var Wf={exports:{}},Zd;Wf.exports=function(t){return Zd||(Zd=new ts(null)),Zd.generate(t)};function ts(e){this.rand=e}Wf.exports.Rand=ts;ts.prototype.generate=function(t){return this._rand(t)};ts.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var n=new Uint8Array(t),r=0;r<n.length;r++)n[r]=this.rand.getByte();return n};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ts.prototype._rand=function(t){var n=new Uint8Array(t);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?ts.prototype._rand=function(t){var n=new Uint8Array(t);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(ts.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Ly=Up;if(typeof Ly.randomBytes!="function")throw new Error("Not supported");ts.prototype._rand=function(t){return Ly.randomBytes(t)}}catch{}var km={},Rs=ui.exports,sl=ur,of=sl.getNAF,EM=sl.getJSF,af=sl.assert;function Ts(e,t){this.type=e,this.p=new Rs(t.p,16),this.red=t.prime?Rs.red(t.prime):Rs.mont(this.p),this.zero=new Rs(0).toRed(this.red),this.one=new Rs(1).toRed(this.red),this.two=new Rs(2).toRed(this.red),this.n=t.n&&new Rs(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Kf=Ts;Ts.prototype.point=function(){throw new Error("Not implemented")};Ts.prototype.validate=function(){throw new Error("Not implemented")};Ts.prototype._fixedNafMul=function(t,n){af(t.precomputed);var r=t._getDoubles(),i=of(n,1,this._bitLength),s=(1<<r.step+1)-(r.step%2===0?2:1);s/=3;var o=[],a,l;for(a=0;a<i.length;a+=r.step){l=0;
565for(var d=a+r.step-1;d>=a;d--)l=(l<<1)+i[d];o.push(l)}for(var v=this.jpoint(null,null,null),y=this.jpoint(null,null,null),_=s;_>0;_--){for(a=0;a<o.length;a++)l=o[a],l===_?y=y.mixedAdd(r.points[a]):l===-_&&(y=y.mixedAdd(r.points[a].neg()));v=v.add(y)}return v.toP()};Ts.prototype._wnafMul=function(t,n){var r=4,i=t._getNAFPoints(r);r=i.wnd;for(var s=i.points,o=of(n,r,this._bitLength),a=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var d=0;l>=0&&o[l]===0;l--)d++;if(l>=0&&d++,a=a.dblp(d),l<0)break;var v=o[l];af(v!==0),t.type==="affine"?v>0?a=a.mixedAdd(s[v-1>>1]):a=a.mixedAdd(s[-v-1>>1].neg()):v>0?a=a.add(s[v-1>>1]):a=a.add(s[-v-1>>1].neg())}return t.type==="affine"?a.toP():a};Ts.prototype._wnafMulAdd=function(t,n,r,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,d=0,v,y,_;for(v=0;v<i;v++){_=n[v];var T=_._getNAFPoints(t);o[v]=T.wnd,a[v]=T.points}for(v=i-1;v>=1;v-=2){var M=v-1,A=v;if(o[M]!==1||o[A]!==1){l[M]=of(r[M],o[M],this._bitLength),l[A]=of(r[A],o[A],this._bitLength),d=Math.max(l[M].length,d),d=Math.max(l[A].length,d);continue}var k=[n[M],null,null,n[A]];n[M].y.cmp(n[A].y)===0?(k[1]=n[M].add(n[A]),k[2]=n[M].toJ().mixedAdd(n[A].neg())):n[M].y.cmp(n[A].y.redNeg())===0?(k[1]=n[M].toJ().mixedAdd(n[A]),k[2]=n[M].add(n[A].neg())):(k[1]=n[M].toJ().mixedAdd(n[A]),k[2]=n[M].toJ().mixedAdd(n[A].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],R=EM(r[M],r[A]);for(d=Math.max(R[0].length,d),l[M]=new Array(d),l[A]=new Array(d),y=0;y<d;y++){var C=R[0][y]|0,U=R[1][y]|0;l[M][y]=N[(C+1)*3+(U+1)],l[A][y]=0,a[M]=k}}var B=this.jpoint(null,null,null),F=this._wnafT4;for(v=d;v>=0;v--){for(var z=0;v>=0;){var q=!0;for(y=0;y<i;y++)F[y]=l[y][v]|0,F[y]!==0&&(q=!1);if(!q)break;z++,v--}
565if(v>=0&&z++,B=B.dblp(z),v<0)break;for(y=0;y<i;y++){var D=F[y];D!==0&&(D>0?_=a[y][D-1>>1]:D<0&&(_=a[y][-D-1>>1].neg()),_.type==="affine"?B=B.mixedAdd(_):B=B.add(_))}}for(v=0;v<i;v++)a[v]=null;return s?B:B.toP()};function Sr(e,t){this.curve=e,this.type=t,this.precomputed=null}Ts.BasePoint=Sr;Sr.prototype.eq=function(){throw new Error("Not implemented")};Sr.prototype.validate=function(){return this.curve.validate(this)};Ts.prototype.decodePoint=function(t,n){t=sl.toArray(t,n);var r=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*r){t[0]===6?af(t[t.length-1]%2===0):t[0]===7&&af(t[t.length-1]%2===1);var i=this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));return i}else if((t[0]===2||t[0]===3)&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),t[0]===3);throw new Error("Unknown point format")};Sr.prototype.encodeCompressed=function(t){return this.encode(t,!0)};Sr.prototype._encode=function(t){var n=this.curve.p.byteLength(),r=this.getX().toArray("be",n);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",n))};Sr.prototype.encode=function(t,n){return sl.encode(this._encode(n),t)};Sr.prototype.precompute=function(t){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,t),n.beta=this._getBeta(),this.precomputed=n,this};Sr.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return n?n.points.length>=Math.ceil((t.bitLength()+1)/n.step):!1};Sr.prototype._getDoubles=function(t,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,s=0;s<n;s+=t){for(var o=0;o<t;o++)i=i.dbl();r.push(i)}return{step:t,points:r}};Sr.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],r=(1<<t)-1,i=r===1?null:this.dbl(),s=1;s<r;s++)n[s]=n[s-1].add(i);return{wnd:t,points:n}};Sr.prototype._getBeta=function(){return null};Sr.prototype.dblp=function(t){for(var n=this,r=0;r<t;r++)n=n.dbl();return n};var xM=ur,Wt=ui.exports,Pm=qo.exports,ya=Kf,_M=xM.assert;function Tr(e){ya.call(this,"short",e),this.a=new Wt(e.a,16).toRed(this.red),this.b=new Wt(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Pm(Tr,ya);var SM=Tr;Tr.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var n,r;if(t.beta)n=new Wt(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);n=i[0].cmp(i[1])<0?i[0]:i[1],n=n.toRed(this.red)}if(t.lambda)r=new Wt(t.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(n))===0?r=s[0]:(r=s[1],_M(this.g.mul(r).x.cmp(this.g.x.redMul(n))===0))}var o;return t.basis?o=t.basis.map(function(a){return{a:new Wt(a.a,16),b:new Wt(a.b,16)}}):o=this._getEndoBasis(r),{beta:n,lambda:r,basis:o}}};Tr.prototype._getEndoRoots=function(t){var n=t===this.p?this.red:Wt.mont(t),r=new Wt(2).toRed(n).redInvm(),i=r.redNeg(),s=new Wt(3).toRed(n).redNeg().redSqrt().redMul(r),o=i.redAdd(s).fromRed(),a=i.redSub(s).fromRed();return[o,a]};Tr.prototype._getEndoBasis=function(t){for(var n=this.n.ushrn(Math.floor(this.n.bitLength()/2)),r=t,i=this.n.clone(),s=new Wt(1),o=new Wt(0),a=new Wt(0),l=new Wt(1),d,v,y,_,T,M,A,k=0,N,R;r.cmpn(0)!==0;){var C=i.div(r);N=i.sub(C.mul(r)),R=a.sub(C.mul(s));var U=l.sub(C.mul(o));if(!y&&N.cmp(n)<0)d=A.neg(),v=s,y=N.neg(),_=R;else if(y&&++k===2)break;A=N,i=r,r=N,a=s,s=R,l=o,o=U}T=N.neg(),M=R;var B=y.sqr().add(_.sqr()),F=T.sqr().add(M.sqr());return F.cmp(B)>=0&&(T=d,M=v),y.negative&&(y=y.neg(),_=_.neg()),T.negative&&(T=T.neg(),M=M.neg()),[{a:y,b:_},{a:T,b:M}]};Tr.prototype._endoSplit=function(t){var n=this.endo.basis,r=n[0],i=n[1],s=i.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=s.mul(r.a),l=o.mul(i.a),d=s.mul(r.b),v=o.mul(i.b),y=t.sub(a).sub(l),_=d.add(v).neg();return{k1:y,k2:_}};Tr.prototype.pointFromX=function(t,n){t=new Wt(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(i.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(n&&!s||!n&&s)&&(i=i.redNeg()),this.point(t,i)};Tr.prototype.validate=function(t){if(t.inf)return!0;var n=t.x,r=t.y,i=this.a.redMul(n),s=n.redSqr().redMul(n).redIAdd(i).redIAdd(this.b);return r.redSqr().redISub(s).cmpn(0)===0};Tr.prototype._endoWnafMulAdd=function(t,n,r){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(n[o]),l=t[o],d=l._getBeta();a.k1.negative&&(a.k1.ineg(),l=l.neg(!0)),a.k2.negative&&(a.k2.ineg(),d=d.neg(!0)),i[o*2]=l,i[o*2+1]=d,s[o*2]=a.k1,s[o*2+1]=a.k2}for(var v=this._wnafMulAdd(1,i,s,o*2,r),y=0;y<o*2;y++)i[y]=null,s[y]=null;return v};function mn(e,t,n,r){ya.BasePoint.call(this,e,"affine"),t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Wt(t,16),this.y=new Wt(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Pm(mn,ya.BasePoint);Tr.prototype.point=function(t,n,r){return new mn(this,t,n,r)};Tr.prototype.pointFromJSON=function(t,n){return mn.fromJSON(this,t,n)};mn.prototype._getBeta=function(){if(!!this.curve.endo){var t=this.prec
565omputed;if(t&&t.beta)return t.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,i=function(s){return r.point(s.x.redMul(r.endo.beta),s.y)};t.beta=n,n.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return n}};mn.prototype.toJSON=function(){return this.precomputed?[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)}}]:[this.x,this.y]};mn.fromJSON=function(t,n,r){typeof n=="string"&&(n=JSON.parse(n));var i=t.point(n[0],n[1],r);if(!n[2])return i;function s(a){return t.point(a[0],a[1],r)}var o=n[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(s))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(s))}},i};mn.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};mn.prototype.isInfinity=function(){return this.inf};mn.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var n=this.y.redSub(t.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(t.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(t.x),i=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)};mn.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,r=this.x.redSqr(),i=t.redInvm(),s=r.redAdd(r).redIAdd(r).redIAdd(n).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};mn.prototype.getX=function(){return this.x.fromRed()};mn.prototype.getY=function(){return this.y.fromRed()};mn.prototype.mul=function(t){return t=new Wt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};mn.prototype.mulAdd=function(t,n,r){var i=[this,n],s=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};mn.prototype.jmulAdd=function(t,n,r){var i=[this,n],s=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};mn.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};mn.prototype.neg=function(t){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());
vendor: 4,851 bytes, line 565
565if(t&&this.precomputed){var r=this.precomputed,i=function(s){return s.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return n};mn.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function xn(e,t,n,r){ya.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Wt(0)):(this.x=new Wt(t,16),this.y=new Wt(n,16),this.z=new Wt(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Pm(xn,ya.BasePoint);Tr.prototype.jpoint=function(t,n,r){return new xn(this,t,n,r)};xn.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),n=t.redSqr(),r=this.x.redMul(n),i=this.y.redMul(n).redMul(t);return this.curve.point(r,i)};xn.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};xn.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var n=t.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(n),s=t.x.redMul(r),o=this.y.redMul(n.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),l=i.redSub(s),d=o.redSub(a);if(l.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var v=l.redSqr(),y=v.redMul(l),_=i.redMul(v),T=d.redSqr().redIAdd(y).redISub(_).redISub(_),M=d.redMul(_.redISub(T)).redISub(o.redMul(y)),A=this.z.redMul(t.z).redMul(l);return this.curve.jpoint(T,M,A)};xn.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var n=this.z.redSqr(),r=this.x,i=t.x.redMul(n),s=this.y,o=t.y.redMul(n).redMul(this.z),a=r.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=a.redSqr(),v=d.redMul(a),y=r.redMul(d),_=l.redSqr().redIAdd(v).redISub(y).redISub(y),T=l.redMul(y.redISub(_)).redISub(s.redMul(v)),M=this.z.redMul(a);return this.curve.jpoint(_,T,M)};xn.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var r=this;for(n=0;n<t;n++)r=r.dbl();return r}var i=this.curve.a,s=this.curve.tinv,o=this.x,a=this.y,l=this.z,d=l.redSqr().redSqr(),v=a.redAdd(a);for(n=0;n<t;n++){var y=o.redSqr(),_=v.redSqr(),T=_.redSqr(),M=y.redAdd(y).redIAdd(y).redIAdd(i.redMul(d)),A=o.redMul(_),k=M.redSqr().redISub(A.redAdd(A)),N=A.redISub(k),R=M.redMul(N);R=R.redIAdd(R).redISub(T);var C=v.redMul(l);n+1<t&&(d=d.redMul(T)),o=k,l=C,v=R}return this.curve.jpoint(o,v.redMul(s),l)};xn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};xn.prototype._zeroDbl=function(){var t,n,r;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(i).redISub(o);a=a.redIAdd(a);var l=i.redAdd(i).redIAdd(i),d=l.redSqr().redISub(a).redISub(a),v=o.redIAdd(o);v=v.redIAdd(v),v=v.redIAdd(v),t=d,n=l.redMul(a.redISub(d)).redISub(v),r=this.y.redAdd(this.y)}else{var y=this.x.redSqr(),_=this.y.redSqr(),T=_.redSqr(),M=this.x.redAdd(_).redSqr().redISub(y).redISub(T);M=M.redIAdd(M);var A=y.redAdd(y).redIAdd(y),k=A.redSqr(),N=T.redIAdd(T);N=N.redIAdd(N),N=N.redIAdd(N),t=k.redISub(M).redISub(M),n=A.redMul(M.redISub(t)).redISub(N),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,n,r)};xn.prototype._threeDbl=function(){var t,n,r;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(i).redISub(o);a=a.redIAdd(a);var l=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),d=l.redSqr().redISub(a).redISub(a);t=d;var v=o.redIAdd(o);v=v.redIAdd(v),v=v.redIAdd(v),n=l.redMul(a.redISub(d)).redISub(v),r=this.y.redAdd(this.y)}else{var y=this.z.redSqr(),_=this.y.redSqr(),T=this.x.redMul(_),M=this.x.redSub(y).redMul(this.x.redAdd(y));M=M.redAdd(M).redIAdd(M);var A=T.redIAdd(T);A=A.redIAdd(A);var k=A.redAdd(A);t=M.redSqr().redISub(k),r=this.y.redAdd(this.z).redSqr().redISub(_).redISub(y);var N=_.redSqr();N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N),n=M.redMul(A.redISub(t)).redISub(N)}return this.curve.jpoint(t,n,r)};xn.prototype._dbl=function(){var t=this.curve.a,n=this.x,r=this.y,i=this.z,s=i.redSqr().redSqr(),o=n.redSqr(),a=r.redSqr(),l=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(s)),d=n.redAdd(n);d=d.redIAdd(d);var v=d.redMul(a),y=l.redSqr().redISub(v.redAdd(v)),_=v.redISub(y),T=a.redSqr();T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var M=l.redMul(_).redISub(T),A=r.redAdd(r).redMul(i);return this.curve.jpoint(y,M,A)};xn.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
565var t=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr(),i=n.redSqr(),s=t.redAdd(t).redIAdd(t),o=s.redSqr(),a=this.x.redAdd(n).redSqr().redISub(t).redISub(i);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var l=a.redSqr(),d=i.redIAdd(i);d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var v=s.redIAdd(a).redSqr().redISub(o).redISub(l).redISub(d),y=n.redMul(v);y=y.redIAdd(y),y=y.redIAdd(y);var _=this.x.redMul(l).redISub(y);_=_.redIAdd(_),_=_.redIAdd(_);var T=this.y.redMul(v.redMul(d.redISub(v)).redISub(a.redMul(l)));T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var M=this.z.redAdd(a).redSqr().redISub(r).redISub(l);return this.curve.jpoint(_,T,M)};xn.prototype.mul=function(t,n){return t=new Wt(t,n),this.curve._wnafMul(this,t)};xn.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var n=this.z.redSqr(),r=t.z.redSqr();if(this.x.redMul(r).redISub(t.x.redMul(n)).cmpn(0)!==0)return!1;var i=n.redMul(this.z),s=r.redMul(t.z);return this.y.redMul(s).redISub(t.y.redMul(i)).cmpn(0)===0};xn.prototype.eqXToP=function(t){var n=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(n);if(this.x.cmp(r)===0)return!0;for(var i=t.clone(),s=this.curve.redN.redMul(n);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(s),this.x.cmp(r)===0)return!0}};xn.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};xn.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var So=ui.exports,d5=qo.exports,Yf=Kf,TM=ur;function ga(e){Yf.call(this,"mont",e),this.a=new So(e.a,16).toRed(this.red),this.b=new So(e.b,16).toRed(this.red),this.i4=new So(4).toRed(this.red).redInvm(),this.two=new So(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}d5(ga,Yf);var IM=ga;ga.prototype.validate=function(t){var n=t.normalize().x,r=n.redSqr(),i=r.redMul(n).redAdd(r.redMul(this.a)).redAdd(n),s=i.redSqrt();return s.redSqr().cmp(i)===0};function pn(e,t,n){Yf.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new So(t,16),this.z=new So(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}d5(pn,Yf.BasePoint);ga.prototype.decodePoint=function(t,n){return this.point(TM.toArray(t,n),1)};ga.prototype.point=function(t,n){return new pn(this,t,n)};ga.prototype.pointFromJSON=function(t){return pn.fromJSON(this,t)};pn.prototype.precompute=function(){};pn.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};pn.fromJSON=function(t,n){return new pn(t,n[0],n[1]||t.one)};pn.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};pn.prototype.isInfinity=function(){return this.z.cmpn(0)===0};pn.prototype.dbl=function(){var t=this.x.redAdd(this.z),n=t.redSqr(),r=this.x.redSub(this.z),i=r.redSqr(),s=n.redSub(i),o=n.redMul(i),a=s.redMul(i.redAdd(this.curve.a24.redMul(s)));return this.curve.point(o,a)};pn.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};pn.prototype.diffAdd=function(t,n){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),s=t.x.redAdd(t.z),o=t.x.redSub(t.z),a=o.redMul(r),l=s.redMul(i),d=n.z.redMul(a.redAdd(l).redSqr()),v=n.x.redMul(a.redISub(l).redSqr());return this.curve.point(d,v)};pn.prototype.mul=function(t){for(var n=t.clone(),r=this,i=this.curve.point(null,null),s=this,o=[];n.cmpn(0)!==0;n.iushrn(1))o.push(n.andln(1));for(var a=o.length-1;a>=0;a--)o[a]===0?(r=r.diffAdd(i,s),i=i.dbl()):(i=r.diffAdd(i,s),r=r.dbl());return i};pn.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};pn.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};pn.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};pn.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};pn.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var MM=ur,Ni=ui.exports,h5=qo.exports,Jf=Kf,NM=MM.assert;function li(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,Jf.call(this,"edwards",e),this.a=new Ni(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ni(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ni(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),NM(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}h5(li,Jf);var RM=li;
565li.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};li.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};li.prototype.jpoint=function(t,n,r,i){return this.point(t,n,r,i)};li.prototype.pointFromX=function(t,n){t=new Ni(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),i=this.c2.redSub(this.a.redMul(r)),s=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(s.redInvm()),a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var l=a.fromRed().isOdd();return(n&&!l||!n&&l)&&(a=a.redNeg()),this.point(t,a)};li.prototype.pointFromY=function(t,n){t=new Ni(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),i=r.redSub(this.c2),s=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(s.redInvm());if(o.cmp(this.zero)===0){if(n)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return a.fromRed().isOdd()!==n&&(a=a.redNeg()),this.point(a,t)};li.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var n=t.x.redSqr(),r=t.y.redSqr(),i=n.redMul(this.a).redAdd(r),s=this.c2.redMul(this.one.redAdd(this.d.redMul(n).redMul(r)));return i.cmp(s)===0};function gt(e,t,n,r,i){Jf.BasePoint.call(this,e,"projective"),t===null&&n===null&&r===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ni(t,16),this.y=new Ni(n,16),this.z=r?new Ni(r,16):this.curve.one,this.t=i&&new Ni(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}h5(gt,Jf.BasePoint);li.prototype.pointFromJSON=function(t){return gt.fromJSON(this,t)};li.prototype.point=function(t,n,r,i){return new gt(this,t,n,r,i)};gt.fromJSON=function(t,n){return new gt(t,n[0],n[1],n[2])};gt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};gt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};gt.prototype._extDbl=function(){var t=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(t),s=this.x.redAdd(this.y).redSqr().redISub(t).redISub(n),o=i.redAdd(n),a=o.redSub(r),l=i.redSub(n),d=s.redMul(a),v=o.redMul(l),y=s.redMul(l),_=a.redMul(o);return this.curve.point(d,v,_,y)};gt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),r=this.y.redSqr(),i,s,o,a,l,d;if(this.curve.twisted){a=this.curve._mulA(n);var v=a.redAdd(r);this.zOne?(i=t.redSub(n).redSub(r).redMul(v.redSub(this.curve.two)),s=v.redMul(a.redSub(r)),o=v.redSqr().redSub(v).redSub(v)):(l=this.z.redSqr(),d=v.redSub(l).redISub(l),i=t.redSub(n).redISub(r).redMul(d),s=v.redMul(a.redSub(r)),o=v.redMul(d))}else a=n.redAdd(r),l=this.curve._mulC(this.z).redSqr(),d=a.redSub(l).redSub(l),i=this.curve._mulC(t.redISub(a)).redMul(d),s=this.curve._mulC(a).redMul(n.redISub(r)),o=a.redMul(d);return this.curve.point(i,s,o)};gt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};gt.prototype._extAdd=function(t){var n=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),s=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(n),a=s.redSub(i),l=s.redAdd(i),d=r.redAdd(n),v=o.redMul(a),y=l.redMul(d),_=o.redMul(d),T=a.redMul(l);return this.curve.point(v,y,T,_)};gt.prototype._projAdd=function(t){var n=this.z.redMul(t.z),r=n.redSqr(),i=this.x.redMul(t.x),s=this.y.redMul(t.y),o=this.curve.d.redMul(i).redMul(s),a=r.redSub(o),l=r.redAdd(o),d=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(s),v=n.redMul(a).redMul(d),y,_;return this.curve.twisted?(y=n.redMul(l).redMul(s.redSub(this.curve._mulA(i))),_=a.redMul(l)):(y=n.redMul(l).redMul(s.redSub(i)),_=this.curve._mulC(a).redMul(l)),this.curve.point(v,y,_)};gt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};gt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};gt.prototype.mulAdd=function(t,n,r){return this.curve._wnafMulAdd(1,[this,n],[t,r],2,!1)};gt.prototype.jmulAdd=function(t,n,r){return this.curve._wnafMulAdd(1,[this,n],[t,r],2,!0)};gt.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};gt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};gt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};gt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};gt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};gt.prototype.eqXToP=function(t){var n=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(n)===0)return!0;for(var r=t.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};gt.prototype.toP=gt.prototype.normalize;gt.prototype.mixedAdd=gt.prototype.add;(function(e){var t=e;
565t.base=Kf,t.short=SM,t.mont=IM,t.edwards=RM})(km);var Xf={},e0,Fy;function OM(){return Fy||(Fy=1,e0
vendor: 18,395 bytes, line 565
565={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"],["a0b1cae06b0
vendor: 7,732 bytes, line 565
565a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","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"]]}}
565),e0}(function(e){var t=e,n=Qu,r=km,i=ur,s=i.assert;function o(d){d.type==="short"?this.curve=new r.short(d):d.type==="edwards"?this.curve=new r.edwards(d):this.curve=new r.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=o;function a(d,v){Object.defineProperty(t,d,{configurable:!0,enumerable:!0,get:function(){var y=new o(v);return Object.defineProperty(t,d,{configurable:!0,enumerable:!0,value:y}),y}})}a("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:n.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"]}),a("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:n.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),a("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var l;try{l=OM()}catch{l=void 0}a("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
565,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",l]})})(Xf);var AM=Qu,qs=$m,p5=eo;function ms(e){if(!(this instanceof ms))return new ms(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=qs.toArray(e.entropy,e.entropyEnc||"hex"),n=qs.toArray(e.nonce,e.nonceEnc||"hex"),r=qs.toArray(e.pers,e.persEnc||"hex");p5(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var CM=ms;ms.prototype._init=function(t,n,r){var i=t.concat(n).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656};ms.prototype._hmac=function(){return new AM.hmac(this.hash,this.K)};ms.prototype._update=function(t){var n=this._hmac().update(this.V).update([0]);t&&(n=n.update(t)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};ms.prototype.reseed=function(t,n,r,i){typeof n!="string"&&(i=r,r=n,n=null),t=qs.toArray(t,n),r=qs.toArray(r,i),p5(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1};ms.prototype.generate=function(t,n,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(i=r,r=n,n=null),r&&(r=qs.toArray(r,i||"hex"),this._update(r));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,t);return this._update(r),this._reseed++,qs.encode(o,n)};var DM=ui.exports,$M=ur,Oh=$M.assert;function In(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var kM=In;In.fromPublic=function(t,n,r){return n instanceof In?n:new In(t,{pub:n,pubEnc:r})};In.fromPrivate=function(t,n,r){return n instanceof In?n:new In(t,{priv:n,privEnc:r})};In.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};In.prototype.getPublic=function(t,n){return typeof t=="string"&&(n=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,t):this.pub};In.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};In.prototype._importPrivate=function(t,n){this.priv=new DM(t,n||16),this.priv=this.priv.umod(this.ec.curve.n)};In.prototype._importPublic=function(t,n){if(t.x||t.y){this.ec.curve.type==="mont"?Oh(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Oh(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,n)};In.prototype.derive=function(t){return t.validate()||Oh(t.validate(),"public point not validated"),t.mul(this.priv).getX()};In.prototype.sign=function(t,n,r){return this.ec.sign(t,this,n,r)};In.prototype.verify=function(t,n){return this.ec.verify(t,n,this)};In.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var uf=ui.exports,Lm=ur,PM=Lm.assert;function Zf(e,t){if(e instanceof Zf)return e;this._importDER(e,t)||(PM(e.r&&e.s,"Signature without r or s"),this.r=new uf(e.r,16),this.s=new uf(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var LM=Zf;function FM(){this.place=0}function t0(e,t){var n=e[t.place++];if(!(n&128))return n;var r=n&15;if(r===0||r>4)return!1;for(var i=0,s=0,o=t.place;s<r;s++,o++)i<<=8,i|=e[o],i>>>=0;return i<=127?!1:(t.place=o,i)}function Uy(e){for(var t=0,n=e.length-1;!e[t]&&!(e[t+1]&128)&&t<n;)t++;return t===0?e:e.slice(t)}Zf.prototype._importDER=function(t,n){t=Lm.toArray(t,n);var r=new FM;if(t[r.place++]!==48)return!1;var i=t0(t,r);if(i===!1||i+r.place!==t.length||t[r.place++]!==2)return!1;var s=t0(t,r);if(s===!1)return!1;var o=t.slice(r.place,s+r.place);if(r.place+=s,t[r.place++]!==2)return!1;var a=t0(t,r);if(a===!1||t.length!==a+r.place)return!1;var l=t.slice(r.place,a+r.place);
565if(o[0]===0)if(o[1]&128)o=o.slice(1);else return!1;if(l[0]===0)if(l[1]&128)l=l.slice(1);else return!1;return this.r=new uf(o),this.s=new uf(l),this.recoveryParam=null,!0};function n0(e,t){if(t<128){e.push(t);return}var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(n|128);--n;)e.push(t>>>(n<<3)&255);e.push(t)}Zf.prototype.toDER=function(t){var n=this.r.toArray(),r=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),r[0]&128&&(r=[0].concat(r)),n=Uy(n),r=Uy(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var i=[2];n0(i,n.length),i=i.concat(n),i.push(2),n0(i,r.length);var s=i.concat(r),o=[48];return n0(o,s.length),o=o.concat(s),Lm.encode(o,t)};var js=ui.exports,m5=CM,UM=ur,r0=Xf,VM=Wf.exports,v5=UM.assert,Fm=kM,ed=LM;function xr(e){if(!(this instanceof xr))return new xr(e);typeof e=="string"&&(v5(Object.prototype.hasOwnProperty.call(r0,e),"Unknown curve "+e),e=r0[e]),e instanceof r0.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var BM=xr;xr.prototype.keyPair=function(t){return new Fm(this,t)};xr.prototype.keyFromPrivate=function(t,n){return Fm.fromPrivate(this,t,n)};xr.prototype.keyFromPublic=function(t,n){return Fm.fromPublic(this,t,n)};xr.prototype.genKeyPair=function(t){t||(t={});for(var n=new m5({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||VM(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new js(2));;){var s=new js(n.generate(r));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};xr.prototype._truncateToN=function(t,n){var r=t.byteLength()*8-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!n&&t.cmp(this.n)>=0?t.sub(this.n):t};xr.prototype.sign=function(t,n,r,i){typeof r=="object"&&(i=r,r=null),i||(i={}),n=this.keyFromPrivate(n,r),t=this._truncateToN(new js(t,16));for(var s=this.n.byteLength(),o=n.getPrivate().toArray("be",s),a=t.toArray("be",s),l=new m5({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new js(1)),v=0;;v++){var y=i.k?i.k(v):new js(l.generate(this.n.byteLength()));if(y=this._truncateToN(y,!0),!(y.cmpn(1)<=0||y.cmp(d)>=0)){var _=this.g.mul(y);if(!_.isInfinity()){var T=_.getX(),M=T.umod(this.n);if(M.cmpn(0)!==0){var A=y.invm(this.n).mul(M.mul(n.getPrivate()).iadd(t));if(A=A.umod(this.n),A.cmpn(0)!==0){var k=(_.getY().isOdd()?1:0)|(T.cmp(M)!==0?2:0);return i.canonical&&A.cmp(this.nh)>0&&(A=this.n.sub(A),k^=1),new ed({r:M,s:A,recoveryParam:k})}}}}}};xr.prototype.verify=function(t,n,r,i){t=this._truncateToN(new js(t,16)),r=this.keyFromPublic(r,i),n=new ed(n,"hex");var s=n.r,o=n.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(t).umod(this.n),d=a.mul(s).umod(this.n),v;return this.curve._maxwellTrick?(v=this.g.jmulAdd(l,r.getPublic(),d),v.isInfinity()?!1:v.eqXToP(s)):(v=this.g.mulAdd(l,r.getPublic(),d),v.isInfinity()?!1:v.getX().umod(this.n).cmp(s)===0)};xr.prototype.recoverPubKey=function(e,t,n,r){v5((3&n)===n,"The recovery param is more than two bits"),t=new ed(t,r);var i=this.n,s=new js(e),o=t.r,a=t.s,l=n&1,d=n>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");d?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var v=t.r.invm(i),y=i.sub(s).mul(v).umod(i),_=a.mul(v).umod(i);return this.g.mulAdd(y,o,_)};xr.prototype.getKeyRecoveryParam=function(e,t,n,r){if(t=new ed(t,r),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(e,t,i)}catch{continue}if(s.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var ol=ur,y5=ol.assert,Vy=ol.parseBytes,ba=ol.cachedProperty;function hn(e,t){this.eddsa=e,this._secret=Vy(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Vy(t.pub)}hn.fromPublic=function(t,n){return n instanceof hn?n:new hn(t,{pub:n})};hn.fromSecret=function(t,n){return n instanceof hn?n:new hn(t,{secret:n})};hn.prototype.secret=function(){return this._secret};ba(hn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});ba(hn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});ba(hn,"privBytes",function(){var t=this.eddsa,n=this.hash(),r=t.encodingLength-1,i=n.slice(0,t.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i});ba(hn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});ba(hn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});ba(hn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});hn.prototype.sign=function(t){return y5(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};hn.prototype.verify=function(t,n){return this.eddsa.verify(t,n,this)};hn.prototype.getSecret=function(t){return y5(this._secret,"KeyPair is public only"),ol.encode(this.secret(),t)};hn.prototype.getPublic=function(t){return ol.encode(this.pubBytes(),t)};var qM=hn,jM=ui.exports,td=ur,zM=td.assert,nd=td.cachedProperty,GM=td.parseBytes;function no(e,t){this.eddsa=e,typeof t!="object"&&(t=GM(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),zM(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof jM&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}nd(no,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});nd(no,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});nd(no,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});nd(no,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});no.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};
565no.prototype.toHex=function(){return td.encode(this.toBytes(),"hex").toUpperCase()};var QM=no,HM=Qu,WM=Xf,ia=ur,KM=ia.assert,g5=ia.parseBytes,b5=qM,By=QM;function Hn(e){if(KM(e==="ed25519","only tested with ed25519 so far"),!(this instanceof Hn))return new Hn(e);e=WM[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=HM.sha512}var YM=Hn;Hn.prototype.sign=function(t,n){t=g5(t);var r=this.keyFromSecret(n),i=this.hashInt(r.messagePrefix(),t),s=this.g.mul(i),o=this.encodePoint(s),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),l=i.add(a).umod(this.curve.n);return this.makeSignature({R:s,S:l,Rencoded:o})};Hn.prototype.verify=function(t,n,r){t=g5(t),n=this.makeSignature(n);var i=this.keyFromPublic(r),s=this.hashInt(n.Rencoded(),i.pubBytes(),t),o=this.g.mul(n.S()),a=n.R().add(i.pub().mul(s));return a.eq(o)};Hn.prototype.hashInt=function(){for(var t=this.hash(),n=0;n<arguments.length;n++)t.update(arguments[n]);return ia.intFromLE(t.digest()).umod(this.curve.n)};Hn.prototype.keyFromPublic=function(t){return b5.fromPublic(this,t)};Hn.prototype.keyFromSecret=function(t){return b5.fromSecret(this,t)};Hn.prototype.makeSignature=function(t){return t instanceof By?t:new By(this,t)};Hn.prototype.encodePoint=function(t){var n=t.getY().toArray("le",this.encodingLength);return n[this.encodingLength-1]|=t.getX().isOdd()?128:0,n};Hn.prototype.decodePoint=function(t){t=ia.parseBytes(t);var n=t.length-1,r=t.slice(0,n).concat(t[n]&-129),i=(t[n]&128)!==0,s=ia.intFromLE(r);return this.curve.pointFromY(s,i)};Hn.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)};Hn.prototype.decodeInt=function(t){return ia.intFromLE(t)};Hn.prototype.isPoint=function(t){return t instanceof this.pointClass};(function(e){var t=e;t.version=wM.version,t.utils=ur,t.rand=Wf.exports,t.curve=km,t.curves=Xf,t.ec=BM,t.eddsa=YM})(f5);function ao(){return new f5.ec("secp256k1")}var w5=class{constructor(e){typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e=`0x${e}`);let t=ce(e),n=ao().keyFromPrivate(t,"hex");this.compressedPublicKey=ue(n.getPublic(!0,"array")),this.publicKey=ue(n.getPublic(!1,"array").slice(1)),this.privateKey=ue(t),this.address=zt.fromPublicKey(this.publicKey)}sign(e){let t=ao().keyFromPrivate(ce(this.privateKey),"hex").sign(ce(e),{canonical:!0}),n=$i(t.r,32),r=$i(t.s,32);return r[0]|=(t.recoveryParam||0)<<7,ue(we([n,r]))}addPoint(e){let t=ao().keyFromPublic(ce(this.compressedPublicKey)),n=ao().keyFromPublic(ce(e)),r=t.getPublic().add(n.getPublic());return ue(r.encode("array",!0))}static recoverPublicKey(e,t){let n=ce(t),r=n.slice(0,32),i=n.slice(32,64),s=(i[0]&128)>>7;return i[0]&=127,ao().recoverPubKey(ce(e),{r,s:i},s).encode("array",!1).slice(1)}static recoverAddress(e,t){return zt.fromPublicKey(w5.recoverPublicKey(e,t))}static generatePrivateKey(e){return e?sM(we([dh(32),ce(e)])):dh(32)}static extendPublicKey(e){let t=ao().keyFromPublic(ce(e));return ue(t.getPublic(!1,"array").slice(1))}},JM=w5,XM=(e=>(e.english="english",e))(XM||{});function ZM(e){let t=e.normalize("NFKD"),n=[];for(let r=0;r<t.length;r+=1){let i=t.charCodeAt(r);if(i<128)n.push(i);else if(i<2048)n.push(i>>6|192),n.push(i&63|128);else if((i&64512)===55296){r+=1;let s=t.charCodeAt(r);if(r>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");let o=65536+((i&1023)<<10)+(s&1023);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128)}return ce(n)}ZM("Bitcoin seed");ue("0x0488ade4");ue("0x0488b21e");ue("0x04358394");ue("0x043587cf");var E5="http://127.0.0.1:4000/graphql",eN=class extends rw{constructor(e,t=E5){super(),this.provider=this.connect(t),this.address=zt.fromDynamicInput(e)}connect(e){return typeof e=="string"?this.provider?this.provider.connect(e):this.provider=new Nh(e):this.provider=e,this.provider}async getResourcesToSpend(e,t){return this.provider.getResourcesToSpend(this.address,e,t)}async getCoins(e){let t=[],n;for(;;){let r=await this.provider.getCoins(this.address,e,{first:9999,after:n});if(t.push(...r),!(r.length>=9999))break;throw new Error(`Wallets with more than ${9999} coins are not yet supported`)}return t}
565async getMessages(){let e=[],t;for(;;){let n=await this.provider.getMessages(this.address,{first:9999,after:t});if(e.push(...n),!(n.length>=9999))break;throw new Error(`Wallets with more than ${9999} messages are not yet supported`)}return e}async getBalance(e=cs){return await this.provider.getBalance(this.address,e)}async getBalances(){let e=[],t;for(;;){let n=await this.provider.getBalances(this.address,{first:9999,after:t});if(e.push(...n),!(n.length>=9999))break;throw new Error(`Wallets with more than ${9999} balances are not yet supported`)}return e}async fund(e){let t=e.calculateFee(),n=await this.getResourcesToSpend([t]);e.addResources(n)}async transfer(e,t,n=cs,r={}){let i={gasLimit:Qc,...r},s=new Fu(i);s.addCoinOutput(e,t,n);let o=s.calculateFee(),a=[];o.assetId===ue(n)?(o.amount=o.amount.add(t),a=[o]):a=[[t,n],o];let l=await this.getResourcesToSpend(a);return s.addResources(l),this.sendTransaction(s)}async withdrawToBaseLayer(e,t,n={}){let r=ce("0x".concat(e.toHexString().substring(2).padStart(64,"0"))),i=ce("0x".concat(Z(t).toHex().substring(2).padStart(16,"0"))),s={script:new Uint8Array([...ce(cI.bytes),...r,...i]),gasLimit:Qc,...n},o=new Fu(s);o.addMessageOutputs();let a=o.calculateFee(),l=[];a.amount=a.amount.add(t),l=[a];let d=await this.getResourcesToSpend(l);return o.addResources(d),this.sendTransaction(o)}async sendTransaction(e){let t=Xn(e);return await this.provider.addMissingVariables(t),this.provider.sendTransaction(t)}async simulateTransaction(e){let t=Xn(e);return await this.provider.addMissingVariables(t),this.provider.simulate(t)}},tN=class extends eN{constructor(e,t=E5){let n=new JM(e);super(n.address,t),this.signer=()=>n,this.provider=this.connect(t)}get privateKey(){return this.signer().privateKey}get publicKey(){return this.signer().publicKey}async signMessage(e){return this.signer().sign(rM(e))}async signTransaction(e){let t=Xn(e),n=iM(t);return this.signer().sign(n)}async populateTransactionWitnessesSignature(e){let t=Xn(e),n=await this.signTransaction(t);return t.updateWitnessByOwner(this.address,n),t}async sendTransaction(e){let t=Xn(e);return await this.provider.addMissingVariables(t),this.provider.sendTransaction(await this.populateTransactionWitnessesSignature(t))}async simulateTransaction(e){let t=Xn(e);return await this.provider.addMissingVariables(t),this.provider.call(await this.populateTransactionWitnessesSignature(t),{utxoValidation:!0})}};tN.defaultPath="m/44'/1179993420'/0'/0/0";new Fe(ws.FUELS);new o5("0x24000000",()=>new Uint8Array(0),()=>{});const nN=Symbol(),Um=Symbol(),ka="a",au="w";let rN=(e,t)=>new Proxy(e,t);const Ah=Object.getPrototypeOf,Ch=new WeakMap,x5=e=>e&&(Ch.has(e)?Ch.get(e):Ah(e)===Object.prototype||Ah(e)===Array.prototype),lf=e=>typeof e=="object"&&e!==null,iN=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(Ah(e),t)},Vm=e=>e[Um]||e,_5=(e,t,n,r)=>{if(!x5(e))return e;let i=r&&r.get(e);if(!i){const l=Vm(e);i=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(v=>!v.configurable&&!v.writable))(l)?[l,iN(l)]:[l],r==null||r.set(e,i)}const[s,o]=i;let a=n&&n.get(s);return a&&a[1].f===!!o||(a=((l,d)=>{const v={f:d};let y=!1;const _=(M,A)=>{if(!y){let k=v[ka].get(l);if(k||(k={},v[ka].set(l,k)),M===au)k[au]=!0;else{let N=k[M];N||(N=new Set,k[M]=N),N.add(A)}}},T={get:(M,A)=>A===Um?l:(_("k",A),_5(Reflect.get(M,A),v[ka],v.c)),has:(M,A)=>A===nN?(y=!0,v[ka].delete(l),!0):(_("h",A),Reflect.has(M,A)),getOwnPropertyDescriptor:(M,A)=>(_("o",A),Reflect.getOwnPropertyDescriptor(M,A)),ownKeys:M=>(_(au),Reflect.ownKeys(M))};return d&&(T.set=T.deleteProperty=()=>!1),[T,v]})(s,!!o),a[1].p=rN(o||s,a[0]),n&&n.set(s,a)),a[1][ka]=t,a[1].c=n,a[1].p},S5=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!lf(e)||!lf(t))return!0;const i=n.get(Vm(e));if(!i)return!0;if(r){const o=r.get(e);if(o&&o.n===t)return o.g;r.set(e,{n:t,g:!1})}let s=null;try{for(const o of i.h||[])if(s=Reflect.has(e,o)!==Reflect.has(t,o),s)return s;if(i[au]===!0){if(s=((o,a)=>{const l=Reflect.ownKeys(o),d=Reflect.ownKeys(a);return l.length!==d.length||l.some((v,y)=>v!==d[y])})(e,t),s)return s}else for(const o of i.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,o)!=!!Reflect.getOwnPropertyDescriptor(t,o),s)return s;for(const o of i.k||[])if(s=S5(e[o],t[o],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},sN=e=>x5(e)&&e[Um]||null,qy=(e,t=!0)=>{Ch.set(e,t)},oN=(e,t,n)=>{const r=[],i=new WeakSet,s=(o,a)=>
565{if(i.has(o))return;lf(o)&&i.add(o);const l=lf(o)&&t.get(Vm(o));if(l){var d,v;if((d=l.h)==null||d.forEach(_=>{const T=`:has(${String(_)})`;r.push(a?[...a,T]:[T])}),l[au]===!0){const _=":ownKeys";r.push(a?[...a,_]:[_])}else{var y;(y=l.o)==null||y.forEach(_=>{const T=`:hasOwn(${String(_)})`;r.push(a?[...a,T]:[T])})}(v=l.k)==null||v.forEach(_=>{n&&!("value"in(Object.getOwnPropertyDescriptor(o,_)||{}))||s(o[_],a?[...a,_]:[_])})}else a&&r.push(a)};return s(e),r},i0=e=>typeof e=="object"&&e!==null,Wi=new WeakMap,Vl=new WeakSet,aN=(e=Object.is,t=(d,v)=>new Proxy(d,v),n=d=>i0(d)&&!Vl.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},i=new WeakMap,s=(d,v,y=r)=>{const _=i.get(d);if((_==null?void 0:_[0])===v)return _[1];const T=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return qy(T,!0),i.set(d,[v,T]),Reflect.ownKeys(d).forEach(M=>{if(Object.getOwnPropertyDescriptor(T,M))return;const A=Reflect.get(d,M),k={value:A,enumerable:!0,configurable:!0};if(Vl.has(A))qy(A,!1);else if(A instanceof Promise)delete k.value,k.get=()=>y(A);else if(Wi.has(A)){const[N,R]=Wi.get(A);k.value=s(N,R(),y)}Object.defineProperty(T,M,k)}),T},o=new WeakMap,a=[1,1],l=d=>{if(!i0(d))throw new Error("object required");const v=o.get(d);if(v)return v;let y=a[0];const _=new Set,T=(D,L=++a[0])=>{y!==L&&(y=L,_.forEach(I=>I(D,L)))};let M=a[1];const A=(D=++a[1])=>(M!==D&&!_.size&&(M=D,N.forEach(([L])=>{const I=L[1](D);I>y&&(y=I)})),y),k=D=>(L,I)=>{const m=[...L];m[1]=[D,...m[1]],T(m,I)},N=new Map,R=(D,L)=>{var I;if(((I={VITE_VERCEL_URL:"fuels-react-vite-ms7vd2tud-0xyami.vercel.app",VITE_VERCEL_GIT_REPO_SLUG:"fuels-react",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"0xYami",VITE_VERCEL_GIT_COMMIT_MESSAGE:"doc: update README",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"0xYami",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_REPO_OWNER:"0xYami",VITE_VERCEL_GIT_REPO_ID:"605527817",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"535cef89980857d70b5753139f80fb1455c581f7",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0})==null?void 0:I.MODE)!=="production"&&N.has(D))throw new Error("prop listener already exists");if(_.size){const m=L[3](k(D));N.set(D,[L,m])}else N.set(D,[L])},C=D=>{var L;const I=N.get(D);I&&(N.delete(D),(L=I[1])==null||L.call(I))},U=D=>(_.add(D),_.size===1&&N.forEach(([I,m],p)=>{var u;if(((u={VITE_VERCEL_URL:"fuels-react-vite-ms7vd2tud-0xyami.vercel.app",VITE_VERCEL_GIT_REPO_SLUG:"fuels-react",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"0xYami",VITE_VERCEL_GIT_COMMIT_MESSAGE:"doc: update README",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"0xYami",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_REPO_OWNER:"0xYami",VITE_VERCEL_GIT_REPO_ID:"605527817",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"535cef89980857d70b5753139f80fb1455c581f7",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0})==null?void 0:u.MODE)!=="production"&&m)throw new Error("remove already exists");const f=I[3](k(p));N.set(p,[I,f])}),()=>{_.delete(D),_.size===0&&N.forEach(([I,m],p)=>{m&&(m(),N.set(p,[I]))})}),B=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),z=t(B,{deleteProperty(D,L){const I=Reflect.get(D,L);C(L);const m=Reflect.deleteProperty(D,L);return m&&T(["delete",[L],I]),m},set(D,L,I,m){const p=Reflect.has(D,L),u=Reflect.get(D,L,m);if(p&&(e(u,I)||o.has(I)&&e(u,o.get(I))))return!0;C(L),i0(I)&&(I=sN(I)||I);let f=I;if(I instanceof Promise)I.then(w=>{I.status="fulfilled",I.value=w,T(["resolve",[L],w])}).catch(w=>{I.status="rejected",I.reason=w,T(["reject",[L],w])});else{!Wi.has(I)&&n(I)&&(f=l(I));const w=!Vl.has(f)&&Wi.get(f);w&&R(L,w)}return Reflect.set(D,L,f,m),T(["set",[L],I,u]),!0}});o.set(d,z);const q=[B,A,s,U];
565return Wi.set(z,q),Reflect.ownKeys(d).forEach(D=>{const L=Object.getOwnPropertyDescriptor(d,D),I="value"in L;delete L.value,Object.defineProperty(B,D,L),I&&(z[D]=d[D])}),z})=>[l,Wi,Vl,e,t,n,r,i,s,o,a],[uN]=aN();function lN(e={}){return uN(e)}function T5(e,t,n){var r;const i=Wi.get(e);((r={VITE_VERCEL_URL:"fuels-react-vite-ms7vd2tud-0xyami.vercel.app",VITE_VERCEL_GIT_REPO_SLUG:"fuels-react",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"0xYami",VITE_VERCEL_GIT_COMMIT_MESSAGE:"doc: update README",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"0xYami",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_REPO_OWNER:"0xYami",VITE_VERCEL_GIT_REPO_ID:"605527817",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"535cef89980857d70b5753139f80fb1455c581f7",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0})==null?void 0:r.MODE)!=="production"&&!i&&console.warn("Please use proxy object");let s;const o=[],a=i[3];let l=!1;const v=a(y=>{if(o.push(y),n){t(o.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&t(o.splice(0))}))});return l=!0,()=>{l=!1,v()}}function jy(e,t){var n;const r=Wi.get(e);((n={VITE_VERCEL_URL:"fuels-react-vite-ms7vd2tud-0xyami.vercel.app",VITE_VERCEL_GIT_REPO_SLUG:"fuels-react",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"0xYami",VITE_VERCEL_GIT_COMMIT_MESSAGE:"doc: update README",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"0xYami",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_REPO_OWNER:"0xYami",VITE_VERCEL_GIT_REPO_ID:"605527817",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"535cef89980857d70b5753139f80fb1455c581f7",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0})==null?void 0:n.MODE)!=="production"&&!r&&console.warn("Please use proxy object");const[i,s,o]=r;return o(i,s(),t)}const{use:zy}=Or,{useSyncExternalStore:cN}=h8,fN=(e,t)=>{const n=V.exports.useRef();V.exports.useEffect(()=>{n.current=oN(e,t,!0)}),V.exports.useDebugValue(n.current)},dN=new WeakMap;function I5(e,t){var n;const r=t==null?void 0:t.sync,i=V.exports.useRef(),s=V.exports.useRef();let o=!0;const a=cN(V.exports.useCallback(v=>{const y=T5(e,v,r);return v(),y},[e,r]),()=>{const v=jy(e,zy);try{if(!o&&i.current&&s.current&&!S5(i.current,v,s.current,new WeakMap))return i.current}catch{}return v},()=>jy(e,zy));o=!1;const l=new WeakMap;V.exports.useEffect(()=>{i.current=a,s.current=l}),((n={VITE_VERCEL_URL:"fuels-react-vite-ms7vd2tud-0xyami.vercel.app",VITE_VERCEL_GIT_REPO_SLUG:"fuels-react",VITE_VERCEL_ENV:"production",VITE_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"0xYami",VITE_VERCEL_GIT_COMMIT_MESSAGE:"doc: update README",VITE_VERCEL_GIT_COMMIT_AUTHOR_NAME:"0xYami",VITE_VERCEL_GIT_PROVIDER:"github",VITE_VERCEL_GIT_REPO_OWNER:"0xYami",VITE_VERCEL_GIT_REPO_ID:"605527817",VITE_VERCEL_GIT_PREVIOUS_SHA:"",VITE_VERCEL_GIT_COMMIT_REF:"main",VITE_VERCEL_GIT_COMMIT_SHA:"535cef89980857d70b5753139f80fb1455c581f7",VITE_VERCEL_GIT_PULL_REQUEST_ID:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0})==null?void 0:n.MODE)!=="production"&&fN(a,l);const d=V.exports.useMemo(()=>new WeakMap,[]);return _5(a,l,d,dN)}var M5=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},uu=(e,t,n)=>(M5(e,t,"read from private field"),n?n.call(e):t.get(e)),N5=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},cf=(e,t,n,r)=>(M5(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),R5=V.exports.createContext({client:null});function hN({children:e,client:t}){return V.exports.createElement(R5.Provider,{children:V.exports.createElement(w8,{children:e,client:t.queryClient}),value:{client:t}})}function wa(){const{client:e}=V.exports.useContext(R5);if(!e)throw new Error("Fuel client not initialized");return e}var Gy=typeof window<"u",Bm=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Bm.prototype)}},O5=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,O5.prototype)}},ff=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ff.prototype)}}
565,A5=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,A5.prototype)}},C5=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,C5.prototype)}},qm=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,qm.prototype)}},Dh=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Dh.prototype)}},pN=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,qm.prototype)}},D5=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,D5.prototype)}},Qy=async e=>{try{return{failed:!1,result:await e}}catch(t){return{failed:!0,reason:t}}},mN=async e=>new Promise(t=>setTimeout(t,e)),vN=class{},Ds,yN=class extends vN{constructor(){super(),N5(this,Ds,void 0),cf(this,Ds,Gy?window.fuel:void 0),Gy&&typeof uu(this,Ds)>"u"&&document.addEventListener("FuelLoaded",()=>{cf(this,Ds,window.fuel)})}isReady(){return typeof uu(this,Ds)<"u"}getProvider(){return uu(this,Ds)}async connect(){const e=this.getProvider();if(!e)throw new ff;if(mt.status==="connected")throw new A5;mt.status="connecting";const t=await Qy(e.connect());if(t.failed)throw mt.status="disconnected",t.reason;e.on(e.events.currentAccount,this.onAccountChanged),e.on(e.events.network,this.onChainChanged);const n=await e.currentAccount();mt.status="connected",mt.address=n,mt.wallet=await e.getWallet(n)}async disconnect(){const e=this.getProvider();if(!e)throw new ff;if(mt.status==="disconnected")throw new C5;mt.status="disconnecting";const t=await Qy(e.disconnect());if(t.failed)throw mt.status="connected",t.reason;e.removeListener(e.events.currentAccount,this.onAccountChanged),e.removeListener(e.events.network,this.onChainChanged),mt.status="disconnected",mt.address=null,mt.wallet=null,mt.currentChain=null}onAccountChanged(e){mt.address=e}onChainChanged(e){const t=jm(),n={name:"localhost",url:e.url};if(e.id==="4"&&(n.name="beta-1"),e.id==="2"&&(n.name="beta-2"),e.id==="1"&&(n.name="beta-3"),!t.isChainConfigured(n.name))throw new Bm;mt.currentChain=n,t.setDefaultProvider(n)}};Ds=new WeakMap;var gN={"beta-1":"https://node-beta-1.fuel.network/graphql","beta-2":"https://node-beta-2.fuel.network/graphql","beta-3":"https://beta-3.fuel.network/graphql",localhost:"http://127.0.0.1:4000/graphql"},uo,bN=class{constructor({chains:e,queryClientConfig:t={defaultOptions:{queries:{cacheTime:1e3*60*60*24,refetchOnWindowFocus:!1,retry:0}}}}){N5(this,uo,void 0),this.queryClient=new e8(t),this.connector=new yN,this.chains=e.map(r=>({name:r,url:gN[r]}));const n=this.chains[0];cf(this,uo,new Nh(n.url)),this.asyncInitialzeStore()}isChainConfigured(e){return!!this.chains.find(t=>t.name===e)}getProvider(){const e=this.connector.getProvider();if(!e)throw new ff;return e}getDefaultProvider(){return uu(this,uo)}setDefaultProvider(e){return cf(this,uo,new Nh(e.url)),uu(this,uo)}async asyncInitialzeStore(){if(!this.connector.isReady()&&(await mN(200),!this.connector.isReady())){mt.status="disconnected";return}const e=this.getProvider();if(!e||!await e.isConnected()){mt.status="disconnected";return}const t=await e.currentAccount(),n=await e.getWallet(t),r=await n.provider.getChain(),i={name:"localhost",url:n.provider.url};if(r.name==="Testnet Beta 3"&&(i.name="beta-3"),r.name==="Testnet Beta 2"&&(i.name="beta-2"),r.name==="Testnet Beta 1"&&(i.name="beta-1"),!this.isChainConfigured(i.name))throw new Bm;mt.wallet=n,mt.status="connected",mt.address=t,mt.currentChain=i,e.on(e.events.currentAccount,this.connector.onAccountChanged),e.on(e.events.network,this.connector.onChainChanged)}};uo=new WeakMap;var lu=null;function wN(e){return lu||(lu=new bN(e)),lu}function jm(){if(!lu)throw new O5;return lu}var mt=lN({address:null,wallet:null,currentChain:null,status:"disconnected"}),EN=async()=>{await jm().connector.connect()},xN=async()=>{await jm().connector.disconnect()};function _N(){const e=wa(),{currentChain:t}=I5(mt);return{currentChain:t,chains:e.chains}}var al=_N;function SN(e){const t=wa(),{currentChain:n}=al(),{data:r,status:i,error:s,isError:o,isFetching:a,isLoading:l,isSuccess:d}=Gu({queryKey:["balance",e.address,n==null?void 0:n.name],queryFn:async()=>{const v=t.getDefaultProvider();if(!e.address)throw new qm;const y=zt.fromString(e.address),_=e.assetId||cs;return(await v.getBalance(y,_)).toString()},onSuccess:e.onSuccess,onError:e.onError,enabled:!!e.address});return{data:r,status:i,error:s,isError:o,isFetching:a,isLoading:l,isSuccess:d}}var TN=SN;function IN(e){const t=wa(),{currentChain:n}=al(),{data:r,error:i,status:s,isError:o,isFetching:a,isLoading:l,isSuccess:d}
565=Gu({queryKey:["block",e.idOrHeight,n==null?void 0:n.name],queryFn:async()=>{const v=t.getDefaultProvider();if(!e.idOrHeight)throw new Dh;let y=e.idOrHeight;typeof y=="string"&&(isNaN(Number(y))||(y=Number(y)));const _=await v.getBlock(y);if(!_)throw new Dh;return{id:_.id,height:_.height.toString(),time:_.time,transactionIds:_.transactionIds}},onSuccess:e.onSuccess,onError:e.onError,enabled:!!e.idOrHeight});return{data:r,error:i,status:s,isError:o,isFetching:a,isLoading:l,isSuccess:d}}var MN=IN;function NN(e){const t=wa(),{currentChain:n}=al(),{data:r,status:i,error:s,isError:o,isLoading:a,isFetching:l,isSuccess:d}=Gu({queryKey:["blockNumber",n==null?void 0:n.name],queryFn:async()=>(await t.getDefaultProvider().getBlockNumber()).toString(),onSuccess:e==null?void 0:e.onSuccess,onError:e==null?void 0:e.onError,refetchInterval:e==null?void 0:e.refetchInterval});return{data:r,status:i,error:s,isError:o,isLoading:a,isFetching:l,isSuccess:d}}var RN=NN;function ON(e){const{address:t,abi:n,signerOrProvider:r}=e,i=wa(),{currentChain:s}=al(),[o,a]=V.exports.useState(null);return V.exports.useEffect(()=>{const l=()=>{let y=i.getDefaultProvider();r?y=r:mt.wallet&&(y=mt.wallet);const _=new DI(t,n,y);a(_)},d=T5(mt,l);return l(),d},[s==null?void 0:s.name]),o}var AN=ON;function CN(e){const t=wa(),{currentChain:n}=al(),{data:r,status:i,error:s,isError:o,isLoading:a,isFetching:l,isSuccess:d}=Gu({queryKey:["transaction",e.transactionId,n==null?void 0:n.name],queryFn:async()=>{const v=t.getDefaultProvider();if(!e.transactionId)throw new pN;const y=await v.getTransaction(e.transactionId);if(!y)throw new D5;return y},onSuccess:e.onSuccess,onError:e.onError,enabled:!!e.transactionId});return{data:r,status:i,error:s,isError:o,isLoading:a,isFetching:l,isSuccess:d}}var DN=CN;function $N(e){const t=I5(mt),n=Lc({mutationKey:["connect"],mutationFn:async()=>EN(),onSuccess:e==null?void 0:e.onConnect}),r=Lc({mutationKey:["disconnect"],mutationFn:async()=>xN(),onSuccess:e==null?void 0:e.onDisconnect}),i=V.exports.useCallback(()=>n.mutate(),[n.mutate]),s=V.exports.useCallback(()=>n.mutateAsync(),[n.mutateAsync]),o=V.exports.useCallback(()=>r.mutate(),[r.mutate]),a=V.exports.useCallback(()=>r.mutateAsync(),[r.mutateAsync]);return{address:t.address,status:t.status,wallet:t.wallet,currentChain:t.currentChain,isConnected:t.status==="connected",isDisconnected:t.status==="disconnected",connect:i,connectAsync:s,disconnect:o,disconnectAsync:a}}var kN=$N;function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(this,arguments)}function Vn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function PN(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $5(...e){return t=>e.forEach(n=>PN(n,t))}function vs(...e){return V.exports.useCallback($5(...e),e)}function zm(e,t=[]){let n=[];function r(s,o){const a=V.exports.createContext(o),l=n.length;n=[...n,o];function d(y){const{scope:_,children:T,...M}=y,A=(_==null?void 0:_[e][l])||a,k=V.exports.useMemo(()=>M,Object.values(M));return V.exports.createElement(A.Provider,{value:k},T)}function v(y,_){const T=(_==null?void 0:_[e][l])||a,M=V.exports.useContext(T);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${y}\` must be used within \`${s}\``)}return d.displayName=s+"Provider",[d,v]}const i=()=>{const s=n.map(o=>V.exports.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return V.exports.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,LN(i,...t)]}function LN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:d})=>{const y=l(s)[`__scope${d}`];return{...a,...y}},{});return V.exports.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Bi(e){const t=V.exports.useRef(e);return V.exports.useEffect(()=>{t.current=e}),V.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function k5({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=FN({defaultProp:t,onChange:n}),s=e!==void 0,o=s?e:r,a=Bi(n),l=V.exports.useCallback(d=>
565{if(s){const y=typeof d=="function"?d(e):d;y!==e&&a(y)}else i(d)},[s,e,i,a]);return[o,l]}function FN({defaultProp:e,onChange:t}){const n=V.exports.useState(e),[r]=n,i=V.exports.useRef(r),s=Bi(t);return V.exports.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}function UN(e){const t=V.exports.useRef({value:e,previous:e});return V.exports.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const df=Boolean(globalThis==null?void 0:globalThis.document)?V.exports.useLayoutEffect:()=>{};function VN(e){const[t,n]=V.exports.useState(void 0);return df(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;o=d.inlineSize,a=d.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const hf=V.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=V.exports.Children.toArray(n),s=i.find(qN);if(s){const o=s.props.children,a=i.map(l=>l===s?V.exports.Children.count(o)>1?V.exports.Children.only(null):V.exports.isValidElement(o)?o.props.children:null:l);return V.exports.createElement($h,tn({},r,{ref:t}),V.exports.isValidElement(o)?V.exports.cloneElement(o,void 0,a):null)}return V.exports.createElement($h,tn({},r,{ref:t}),n)});hf.displayName="Slot";const $h=V.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return V.exports.isValidElement(n)?V.exports.cloneElement(n,{...jN(r,n.props),ref:$5(t,n.ref)}):V.exports.Children.count(n)>1?V.exports.Children.only(null):null});$h.displayName="SlotClone";const BN=({children:e})=>V.exports.createElement(V.exports.Fragment,null,e);function qN(e){return V.exports.isValidElement(e)&&e.type===BN}function jN(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{s(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}const zN=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],qr=zN.reduce((e,t)=>{const n=V.exports.forwardRef((r,i)=>{const{asChild:s,...o}=r,a=s?hf:t;return V.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),V.exports.createElement(a,tn({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function P5(e,t){e&&oa.exports.flushSync(()=>e.dispatchEvent(t))}const L5="Switch",[GN,nO]=zm(L5),[QN,HN]=GN(L5),WN=V.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:d,...v}=e,[y,_]=V.exports.useState(null),T=vs(t,R=>
565_(R)),M=V.exports.useRef(!1),A=y?Boolean(y.closest("form")):!0,[k=!1,N]=k5({prop:i,defaultProp:s,onChange:d});return V.exports.createElement(QN,{scope:n,checked:k,disabled:a},V.exports.createElement(qr.button,tn({type:"button",role:"switch","aria-checked":k,"aria-required":o,"data-state":F5(k),"data-disabled":a?"":void 0,disabled:a,value:l},v,{ref:T,onClick:Vn(e.onClick,R=>{N(C=>!C),A&&(M.current=R.isPropagationStopped(),M.current||R.stopPropagation())})})),A&&V.exports.createElement(JN,{control:y,bubbles:!M.current,name:r,value:l,checked:k,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),KN="SwitchThumb",YN=V.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=HN(KN,n);return V.exports.createElement(qr.span,tn({"data-state":F5(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),JN=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=V.exports.useRef(null),o=UN(n),a=VN(t);return V.exports.useEffect(()=>{const l=s.current,d=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(d,"checked").set;if(o!==n&&y){const _=new Event("click",{bubbles:r});y.call(l,n),l.dispatchEvent(_)}},[o,n,r]),V.exports.createElement("input",tn({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function F5(e){return e?"checked":"unchecked"}const XN=WN,ZN=YN;function U5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=U5(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V5(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=U5(e))&&(r&&(r+=" "),r+=t);return r}function cu(e){return sn("div",{className:V5(["min-h-[100px] space-y-4 p-4","border-neutral-600 border-[0.1px] rounded-lg"]),children:[sn("div",{className:"flex justify-between",children:[sn("div",{children:[pe("div",{children:e.title}),pe("div",{className:"text-neutral-500",children:e.description})]}),e.Action]}),e.data.map(t=>sn("div",{className:"space-y-4",children:[pe("div",{className:"h-[1px] bg-neutral-600"}),sn("div",{className:"flex justify-between",children:[pe("span",{children:t.label}),pe("span",{className:"w-[300px] text-right truncate",children:t.value})]})]},t.label))]})}function eR(){const[e,t]=V.exports.useState(!1),n=RN({refetchInterval:e?1e3:void 0}),r=MN({idOrHeight:n.data||null}),i=V.exports.useMemo(()=>{var s,o,a;return[{label:"Fetching",value:n.isFetching?"True":"False"},{label:"Number",value:((s=r.data)==null?void 0:s.height.toString())||""},{label:"Hash",value:((o=r.data)==null?void 0:o.id)||""},{label:"Transactions",value:((a=r.data)==null?void 0:a.transactionIds.length)||""}]},[n.isFetching,r.data]);return sn("div",{children:[sn("div",{className:"flex flex-col space-y-2 mb-10",children:[pe("h2",{className:"text-2xl",children:"Block"}),pe("p",{children:"Get a block with or without its transactions by using its number or id, below is the latest block of the beta-2 chain."}),pe("p",{children:"Toggle the auto-refresh to refetch automatically the latest block every seconds, the interval is configurable."})]}),pe(cu,{title:"Block",description:"Retrieve block information",data:i,Action:sn("div",{className:"flex items-center",children:[pe("label",{className:"text-white text-[15px] leading-none pr-[15px]",htmlFor:"airplane-mode",children:"Auto refetch"}),pe(XN,{id:"airplane-mode",checked:e,onClick:()=>t(s=>!s),className:"w-[35px] h-[18px] rounded-full relative bg-neutral-400 data-[state=checked]:bg-blue-500 outline-none cursor-default",children:pe(ZN,{className:V5(["block w-[15px] h-[15px] bg-white rounded-full","transition-transform duration-100 translate-x-0.5 will-change-transform data-[state=checked]:translate-x-[19px]"])})})]})})]})}const tR=[{typeId:0,type:"()",components:[],typeParameters:null},{typeId:1,type:"u64",components:null,typeParameters:null}],nR=[{inputs:[],name:"counter",output:{name:"",type:1,typeArguments:null},attributes:[{name:"storage",arguments:["read"]}]},{inputs:[],name:"decrement",output:{name:"",type:0,typeArguments:null},attributes:[{name:"storage",arguments:["read","write"]}]},{inputs:[],name:"increment",output:{name:"",type:0,typeArguments:null},attributes:[{name:"storage",arguments:["read","write"]}]}],rR=[],iR=[],sR=[],oR={types:tR,functions:nR,loggedTypes:rR,messagesTypes:iR,configurables:sR}
565,aR="0x90efcc9a055fe39c840ccf785e63f7b062363e5a14c51854d616e17c20b40d74";function uR(){const e=Fp(),t=AN({address:aR,abi:oR}),{data:n,error:r,isLoading:i,isSuccess:s}=Gu({queryKey:["counter"],queryFn:async()=>{if(!t)throw new Error("contract not defined");return(await t.functions.counter().get()).value},enabled:!!t}),o=Lc({mutationKey:["increment"],mutationFn:async l=>{if(!t)throw new Error("contract not defined");const d=await t.functions.increment().call();return{value:d.value,gasUsed:d.gasUsed,transactionId:d.transactionId}},onSuccess:()=>{e.invalidateQueries({queryKey:["counter"]})}}),a=Lc({mutationKey:["decrement"],mutationFn:async l=>{if(!t)throw new Error("contract not defined");const d=await t.functions.decrement().call();return{value:d.value,gasUsed:d.gasUsed,transactionId:d.transactionId}},onSuccess:()=>{e.invalidateQueries({queryKey:["counter"]})}});return{data:n,error:r,isLoading:i,isSuccess:s,increment:{mutate:(...l)=>o.mutate(...l),data:o.data,status:o.status,error:o.error,isError:o.isError,isLoading:o.isLoading,isSuccess:o.isSuccess},decrement:{mutate:(...l)=>a.mutate(...l),data:a.data,status:a.status,error:a.error,isError:a.isError,isLoading:a.isLoading,isSuccess:a.isSuccess}}}function lR(e){const t=e+"CollectionProvider",[n,r]=zm(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=T=>{const{scope:M,children:A}=T,k=Or.useRef(null),N=Or.useRef(new Map).current;return Or.createElement(i,{scope:M,itemMap:N,collectionRef:k},A)},a=e+"CollectionSlot",l=Or.forwardRef((T,M)=>{const{scope:A,children:k}=T,N=s(a,A),R=vs(M,N.collectionRef);return Or.createElement(hf,{ref:R},k)}),d=e+"CollectionItemSlot",v="data-radix-collection-item",y=Or.forwardRef((T,M)=>{const{scope:A,children:k,...N}=T,R=Or.useRef(null),C=vs(M,R),U=s(d,A);return Or.useEffect(()=>(U.itemMap.set(R,{ref:R,...N}),()=>void U.itemMap.delete(R))),Or.createElement(hf,{[v]:"",ref:C},k)});function _(T){const M=s(e+"CollectionConsumer",T);return Or.useCallback(()=>{const k=M.collectionRef.current;if(!k)return[];const N=Array.from(k.querySelectorAll(`[${v}]`));return Array.from(M.itemMap.values()).sort((U,B)=>N.indexOf(U.ref.current)-N.indexOf(B.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},_,r]}function cR(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e);V.exports.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const kh="dismissableLayer.update",fR="dismissableLayer.pointerDownOutside",dR="dismissableLayer.focusOutside";let Hy;const B5=V.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hR=V.exports.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...d}=e,v=V.exports.useContext(B5),[y,_]=V.exports.useState(null),T=(n=y==null?void 0:y.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,M]=V.exports.useState({}),A=vs(t,q=>_(q)),k=Array.from(v.layers),[N]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),R=k.indexOf(N),C=y?k.indexOf(y):-1,U=v.layersWithOutsidePointerEventsDisabled.size>0,B=C>=R,F=mR(q=>{const D=q.target,L=[...v.branches].some(I=>I.contains(D));!B||L||(s==null||s(q),a==null||a(q),q.defaultPrevented||l==null||l())},T),z=vR(q=>{const D=q.target;[...v.branches].some(I=>I.contains(D))||(o==null||o(q),a==null||a(q),q.defaultPrevented||l==null||l())},T);return cR(q=>{C===v.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&l&&(q.preventDefault(),l()))},T),V.exports.useEffect(()=>{if(!!y)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Hy=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),Wy(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Hy)}},[y,T,r,v]),V.exports.useEffect(()=>()=>{!y||(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),Wy())},[y,v]),V.exports.useEffect(()=>{const q=()=>M({});return document.addEventListener(kh,q),()=>document.removeEventListener(kh,q)},[]),V.exports.createElement(qr.div,tn({},d,{ref:A,style:{pointerEvents:U?B?"auto":"none":void 0,...e.style},onFocusCapture:Vn(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Vn(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Vn(e.onPointerDownCapture,F.onPointerDownCapture)}))}),pR=V.exports.forwardRef((e,t)=>
565{const n=V.exports.useContext(B5),r=V.exports.useRef(null),i=vs(t,r);return V.exports.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),V.exports.createElement(qr.div,tn({},e,{ref:i}))});function mR(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e),r=V.exports.useRef(!1),i=V.exports.useRef(()=>{});return V.exports.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let v=function(){q5(fR,n,d,{discrete:!0})};var l=v;const d={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=v,t.addEventListener("click",i.current,{once:!0})):v()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vR(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e),r=V.exports.useRef(!1);return V.exports.useEffect(()=>{const i=s=>{s.target&&!r.current&&q5(dR,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wy(){const e=new CustomEvent(kh);document.dispatchEvent(e)}function q5(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?P5(i,s):i.dispatchEvent(s)}const yR=hR,gR=pR,bR=V.exports.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?UE.createPortal(V.exports.createElement(qr.div,tn({},i,{ref:t})),r):null});function wR(e,t){return V.exports.useReducer((n,r)=>{const i=t[n][r];return i!=null?i:n},e)}const j5=e=>{const{present:t,children:n}=e,r=ER(t),i=typeof n=="function"?n({present:r.isPresent}):V.exports.Children.only(n),s=vs(r.ref,i.ref);return typeof n=="function"||r.isPresent?V.exports.cloneElement(i,{ref:s}):null};j5.displayName="Presence";function ER(e){const[t,n]=V.exports.useState(),r=V.exports.useRef({}),i=V.exports.useRef(e),s=V.exports.useRef("none"),o=e?"mounted":"unmounted",[a,l]=wR(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.exports.useEffect(()=>{const d=Bl(r.current);s.current=a==="mounted"?d:"none"},[a]),df(()=>{const d=r.current,v=i.current;if(v!==e){const _=s.current,T=Bl(d);e?l("MOUNT"):T==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(v&&_!==T?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),df(()=>{if(t){const d=y=>{const T=Bl(r.current).includes(y.animationName);y.target===t&&T&&oa.exports.flushSync(()=>l("ANIMATION_END"))},v=y=>{y.target===t&&(s.current=Bl(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:V.exports.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function Bl(e){return(e==null?void 0:e.animationName)||"none"}const z5=V.exports.forwardRef((e,t)=>V.exports.createElement(qr.span,tn({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),G5="ToastProvider",[Gm,xR,_R]=lR("Toast"),[Q5,rO]=zm("Toast",[_R]),[SR,rd]=Q5(G5),H5=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=V.exports.useState(null),[d,v]=V.exports.useState(0),y=V.exports.useRef(!1),_=V.exports.useRef(!1);return V.exports.createElement(Gm.Provider,{scope:t},V.exports.createElement(SR,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:d,viewport:a,onViewportChange:l,onToastAdd:V.exports.useCallback(()=>v(T=>T+1),[]),onToastRemove:V.exports.useCallback(()=>v(T=>T-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:_},o))};H5.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${G5}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const TR="ToastViewport",IR=["F8"],Ph="toast.viewportPause",Lh="toast.viewportResume",MR=V.exports.forwardRef((e,t)=>
565{const{__scopeToast:n,hotkey:r=IR,label:i="Notifications ({hotkey})",...s}=e,o=rd(TR,n),a=xR(n),l=V.exports.useRef(null),d=V.exports.useRef(null),v=V.exports.useRef(null),y=V.exports.useRef(null),_=vs(t,y,o.onViewportChange),T=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=o.toastCount>0;V.exports.useEffect(()=>{const k=N=>{var R;r.every(U=>N[U]||N.code===U)&&((R=y.current)===null||R===void 0||R.focus())};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[r]),V.exports.useEffect(()=>{const k=l.current,N=y.current;if(M&&k&&N){const R=()=>{if(!o.isClosePausedRef.current){const F=new CustomEvent(Ph);N.dispatchEvent(F),o.isClosePausedRef.current=!0}},C=()=>{if(o.isClosePausedRef.current){const F=new CustomEvent(Lh);N.dispatchEvent(F),o.isClosePausedRef.current=!1}},U=F=>{!k.contains(F.relatedTarget)&&C()},B=()=>{k.contains(document.activeElement)||C()};return k.addEventListener("focusin",R),k.addEventListener("focusout",U),k.addEventListener("pointermove",R),k.addEventListener("pointerleave",B),window.addEventListener("blur",R),window.addEventListener("focus",C),()=>{k.removeEventListener("focusin",R),k.removeEventListener("focusout",U),k.removeEventListener("pointermove",R),k.removeEventListener("pointerleave",B),window.removeEventListener("blur",R),window.removeEventListener("focus",C)}}},[M,o.isClosePausedRef]);const A=V.exports.useCallback(({tabbingDirection:k})=>{const R=a().map(C=>{const U=C.ref.current,B=[U,...zR(U)];return k==="forwards"?B:B.reverse()});return(k==="forwards"?R.reverse():R).flat()},[a]);return V.exports.useEffect(()=>{const k=y.current;if(k){const N=R=>{const C=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!C){const q=document.activeElement,D=R.shiftKey;if(R.target===k&&D){var B;(B=d.current)===null||B===void 0||B.focus();return}const m=A({tabbingDirection:D?"backwards":"forwards"}),p=m.findIndex(u=>u===q);if(s0(m.slice(p+1)))R.preventDefault();else{var F,z;D?(F=d.current)===null||F===void 0||F.focus():(z=v.current)===null||z===void 0||z.focus()}}};return k.addEventListener("keydown",N),()=>k.removeEventListener("keydown",N)}},[a,A]),V.exports.createElement(gR,{ref:l,role:"region","aria-label":i.replace("{hotkey}",T),tabIndex:-1,style:{pointerEvents:M?void 0:"none"}},M&&V.exports.createElement(Ky,{ref:d,onFocusFromOutsideViewport:()=>{const k=A({tabbingDirection:"forwards"});s0(k)}}),V.exports.createElement(Gm.Slot,{scope:n},V.exports.createElement(qr.ol,tn({tabIndex:-1},s,{ref:_}))),M&&V.exports.createElement(Ky,{ref:v,onFocusFromOutsideViewport:()=>{const k=A({tabbingDirection:"backwards"});s0(k)}}))}),NR="ToastFocusProxy",Ky=V.exports.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=rd(NR,n);return V.exports.createElement(z5,tn({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:o=>{var a;const l=o.relatedTarget;!((a=s.viewport)!==null&&a!==void 0&&a.contains(l))&&r()}}))}),id="Toast",RR="toast.swipeStart",OR="toast.swipeMove",AR="toast.swipeCancel",CR="toast.swipeEnd",DR=V.exports.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a=!0,l]=k5({prop:r,defaultProp:i,onChange:s});return V.exports.createElement(j5,{present:n||a},V.exports.createElement(W5,tn({open:a},o,{ref:t,onClose:()=>l(!1),onPause:Bi(e.onPause),onResume:Bi(e.onResume),onSwipeStart:Vn(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Vn(e.onSwipeMove,d=>{const{x:v,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${v}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Vn(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Vn(e.onSwipeEnd,d=>{const{x:v,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${v}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),l(!1)})})))}),[$R,kR]=Q5(id,{onClose(){}}),W5=V.exports.forwardRef((e,t)=>
565{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:d,onSwipeStart:v,onSwipeMove:y,onSwipeCancel:_,onSwipeEnd:T,...M}=e,A=rd(id,n),[k,N]=V.exports.useState(null),R=vs(t,u=>N(u)),C=V.exports.useRef(null),U=V.exports.useRef(null),B=i||A.duration,F=V.exports.useRef(0),z=V.exports.useRef(B),q=V.exports.useRef(0),{onToastAdd:D,onToastRemove:L}=A,I=Bi(()=>{var u;(k==null?void 0:k.contains(document.activeElement))&&((u=A.viewport)===null||u===void 0||u.focus()),o()}),m=V.exports.useCallback(u=>{!u||u===1/0||(window.clearTimeout(q.current),F.current=new Date().getTime(),q.current=window.setTimeout(I,u))},[I]);V.exports.useEffect(()=>{const u=A.viewport;if(u){const f=()=>{m(z.current),d==null||d()},w=()=>{const E=new Date().getTime()-F.current;z.current=z.current-E,window.clearTimeout(q.current),l==null||l()};return u.addEventListener(Ph,w),u.addEventListener(Lh,f),()=>{u.removeEventListener(Ph,w),u.removeEventListener(Lh,f)}}},[A.viewport,B,l,d,m]),V.exports.useEffect(()=>{s&&!A.isClosePausedRef.current&&m(B)},[s,B,A.isClosePausedRef,m]),V.exports.useEffect(()=>(D(),()=>L()),[D,L]);const p=V.exports.useMemo(()=>k?Y5(k):null,[k]);return A.viewport?V.exports.createElement(V.exports.Fragment,null,p&&V.exports.createElement(PR,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},p),V.exports.createElement($R,{scope:n,onClose:I},oa.exports.createPortal(V.exports.createElement(Gm.ItemSlot,{scope:n},V.exports.createElement(yR,{asChild:!0,onEscapeKeyDown:Vn(a,()=>{A.isFocusedToastEscapeKeyDownRef.current||I(),A.isFocusedToastEscapeKeyDownRef.current=!1})},V.exports.createElement(qr.li,tn({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection},M,{ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Vn(e.onKeyDown,u=>{u.key==="Escape"&&(a==null||a(u.nativeEvent),u.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:Vn(e.onPointerDown,u=>{u.button===0&&(C.current={x:u.clientX,y:u.clientY})}),onPointerMove:Vn(e.onPointerMove,u=>{if(!C.current)return;const f=u.clientX-C.current.x,w=u.clientY-C.current.y,E=Boolean(U.current),x=["left","right"].includes(A.swipeDirection),g=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,c=x?g(0,f):0,b=x?0:g(0,w),h=u.pointerType==="touch"?10:2,S={x:c,y:b},P={originalEvent:u,delta:S};E?(U.current=S,ql(OR,y,P,{discrete:!1})):Yy(S,A.swipeDirection,h)?(U.current=S,ql(RR,v,P,{discrete:!1}),u.target.setPointerCapture(u.pointerId)):(Math.abs(f)>h||Math.abs(w)>h)&&(C.current=null)}),onPointerUp:Vn(e.onPointerUp,u=>{const f=U.current,w=u.target;if(w.hasPointerCapture(u.pointerId)&&w.releasePointerCapture(u.pointerId),U.current=null,C.current=null,f){const E=u.currentTarget,x={originalEvent:u,delta:f};Yy(f,A.swipeDirection,A.swipeThreshold)?ql(CR,T,x,{discrete:!0}):ql(AR,_,x,{discrete:!0}),E.addEventListener("click",g=>g.preventDefault(),{once:!0})}})})))),A.viewport))):null});W5.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${id}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const PR=e=>{const{__scopeToast:t,children:n,...r}=e,i=rd(id,t),[s,o]=V.exports.useState(!1),[a,l]=V.exports.useState(!1);return qR(()=>o(!0)),V.exports.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),a?null:V.exports.createElement(bR,{asChild:!0},V.exports.createElement(z5,r,s&&V.exports.createElement(V.exports.Fragment,null,i.label," ",n)))},LR=V.exports.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return V.exports.createElement(qr.div,tn({},r,{ref:t}))}),FR="ToastAction",UR=V.exports.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?V.exports.createElement(K5,{altText:n,asChild:!0},V.exports.createElement(BR,tn({},r,{ref:t}))):null});UR.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${FR}\``)}};const VR="ToastClose",BR=V.exports.forwardRef((e,t)=>
565{const{__scopeToast:n,...r}=e,i=kR(VR,n);return V.exports.createElement(K5,{asChild:!0},V.exports.createElement(qr.button,tn({type:"button"},r,{ref:t,onClick:Vn(e.onClick,i.onClose)})))}),K5=V.exports.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return V.exports.createElement(qr.div,tn({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},i,{ref:t}))});function Y5(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),jR(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Y5(r))}}),t}function ql(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?P5(i,s):i.dispatchEvent(s)}const Yy=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function qR(e=()=>{}){const t=Bi(e);df(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function jR(e){return e.nodeType===e.ELEMENT_NODE}function zR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function s0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const GR=H5,QR=MR,HR=DR,WR=LR,KR=e=>sn(GR,{swipeDirection:"right",children:[pe(HR,{className:"bg-neutral-800 rounded-md shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] py-3 grid [grid-template-areas:_'title_action'_'description_action'] grid-cols-[auto_max-content] gap-x-[15px] items-center data-[state=open]:animate-slideIn data-[state=closed]:animate-hide data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:transition-[transform_200ms_ease-out] data-[swipe=end]:animate-swipeOut",open:e.open,onOpenChange:e.onOpenChange,children:pe(WR,{className:"[grid-area:_title] mb-[5px] font-medium text-[15px]",children:e.message})}),pe(QR,{className:"[--viewport-padding:_25px] fixed bottom-0 right-0 flex flex-col p-[var(--viewport-padding)] gap-[10px] w-[280px] max-w-[100vw] text-center m-0 list-none z-[2147483647] outline-none"})]}),YR={0:"script",1:"create",2:"mint"};function JR(){var d,v;const[e,t]=V.exports.useState(!1),[n,r]=V.exports.useState(""),i=uR(),s=DN({transactionId:((d=i.increment.data)==null?void 0:d.transactionId)||null}),o=V.exports.useMemo(()=>{const{data:y,status:_}=i.increment;return[{label:"Status",value:_},{label:"Transaction id",value:(y==null?void 0:y.transactionId)||""},{label:"Gas used",value:(y==null?void 0:y.gasUsed.toString())||""}]},[i.increment.data,i.increment.status]),a=V.exports.useMemo(()=>{const{data:y,status:_}=i.decrement;return[{label:"Status",value:_},{label:"Transaction id",value:(y==null?void 0:y.transactionId)||""},{label:"Gas used",value:(y==null?void 0:y.gasUsed.toString())||""}]},[i.decrement.data,i.decrement.status]),l=V.exports.useMemo(()=>{var _,T,M,A,k,N,R,C,U,B,F,z,q,D,L;return[{label:"Type",value:s.data?YR[s.data.type]:""},{label:"Transaction Id",value:((_=i.increment.data)==null?void 0:_.transactionId)||""},{label:"Gas limit",value:((M=(T=s.data)==null?void 0:T.gasLimit)==null?void 0:M.toString())||""},{label:"Gas price",value:((k=(A=s.data)==null?void 0:A.gasPrice)==null?void 0:k.toString())||""},{label:"Maturity",value:((R=(N=s.data)==null?void 0:N.maturity)==null?void 0:R.toString())||""},{label:"Inputs",value:((C=s.data)==null?void 0:C.inputsCount)||""},{label:"Outputs",value:((U=s.data)==null?void 0:U.outputsCount)||""},{label:"Receipts root",value:((B=s.data)==null?void 0:B.receiptsRoot)||""},{label:"Script",value:((F=s.data)==null?void 0:F.script)||""},{label:"Script length",value:((z=s.data)==null?void 0:z.scriptLength)||""},{label:"Script data",value:((q=s.data)==null?void 0:q.scriptData)||""},{label:"Script data length",value:((D=s.data)==null?void 0:D.scriptDataLength)||""},{label:"Witnesses",value:((L=s.data)==null?void 0:L.witnessesCount)||""}]},[s.data]);return sn("div",{className:"space-y-8",children:[sn("div",{className:"flex flex-col space-y-2 mb-2",children:[pe("h2",{className:"text-2xl",children:"Contract"}),pe("p",{children:"Interact with a contract using its address and ABI."}),pe("p",{children:"Callbacks are available to trigger side-effects, like being notified once the transaction went through or when an error occured."}),pe("p",{children:"Here a simple Counter contract. A pop-up will appear at the bottom-right once an increment or decrement is done."})]}),pe("div",{className:"flex justify-center",children:sn("div",{className:"flex flex-col justify-between h-[150px] w-[120px] border-[0.1px] border-neutral-600 rounded-lg",children:[pe("button",{type:"button",onClick:()=>{i.increment.mutate(null,{onSuccess:()=>{r("Increment successful!"),t(!0)},onError:y=>{let _="Unknown error occured :(";typeof y=="object"&&y!==null&&"message"in y&&(_=y.message),r(_),t(!0)}})},className:"grow",children:pe("img",{src:"/icons/plus.svg",alt:"increment-icon",className:"h-[25px] w-[25px] mx-auto"})}),pe("span",{className:"h-[40%] flex items-center justify-center border-y-[0.1px] border-neutral-600",children:((v=i.data)==null?void 0:v.toString())||"Fetching..."}),pe("button",{type:"button",onClick:()=>{i.decrement.mutate(null,{onSuccess:()=>{r("Decrement successful!"),t(!0)},onError:y=>{let _="Unknown error occured :(";typeof y=="object"&&y!==null&&"message"in y&&(_=y.message),r(_),t(!0)}})},className:"grow",children:pe("img",{src:"/icons/minus.svg",alt:"decrement-icon",className:"h-[25px] w-[25px] mx-auto"})})]})}),pe("div",{children:"Get the result of a transaction, here for the incrementation."}),pe(cu,{title:"Increment details",description:"Increment the counter to see details",data:o}),pe("div",{children:"And here for the decrementation."}),pe(cu,{title:"Decrement details",description:"Decrement the counter to see details",data:a}),sn("div",{className:"space-y-8",children:[sn("div",{className:"flex flex-col space-y-2 mb-2",children:[pe("h2",{className:"text-2xl",children:"Transaction"}),pe("p",{children:"Below is the transaction details of an increment call, increment the counter to see more the information here."})]}),pe(cu,{title:"Transaction",description:"Increment details",data:l})]}),pe(KR,{message:n,open:e,onOpenChange:y=>t(y)})]})}const XR={connected:"bg-green-500",connecting:"bg-blue-500",disconnected:"bg-red-500",disconnecting:"bg-yellow-500"};function ZR(){const e=kN(),t=TN({address:e.address}),n=V.exports.useMemo(()=>{var r;return[{label:"Chain",value:((r=e.currentChain)==null?void 0:r.name)||""},{label:"Address",value:e.address||""},{label:"Balance",value:t.data||""}]},[e.address,e.status,t.data]);return sn("div",{className:"space-y-4",children:[sn("div",{className:"flex flex-col space-y-2 mb-2",children:[pe("h2",{className:"text-2xl",children:"Wallet"}),pe("p",{children:"Interact with official Fuel wallet. The chain is configurable at the app-level, the button below will connect you to the beta-2 chain."}),pe("p",{children:"It also keeps track of the wallet state, feel free to refresh the page."})]}),pe("div",{className:"flex justify-center",children:e.isConnected?pe("button",{type:"button",onClick:e.disconnect,className:"p-2 border-[0.1px] border-neutral-600 rounded-lg",children:"Disconnect"}):pe("button",{type:"button",onClick:e.connect,className:"p-2 border-[0.1px] border-neutral-600 rounded-lg",children:"Connect"})}),pe(cu,{title:"Wallet",description:"Retrieve wallet information",data:n,Action:sn("div",{className:"flex items-center space-x-2",children:[pe("div",{children:e.status}),pe("div",{className:`h-2 w-2 rounded-full ${XR[e.status]}`})]})})]})}function eO(){return sn("div",{className:"min-h-screen flex flex-col px-[7%] md:px-[32%] py-8 bg-neutral-900 space-y-8 text-white",children:[sn("div",{className:"space-y-2",children:[pe("h1",{className:"text-4xl",children:"Fuels React"}),pe("p",{className:"text-neutral-400",children:"Highly experimental Fuel React library"})]}),pe(ZR,{}),pe(eR,{}),pe(JR,{})]})}const tO=wN({chains:["beta-2"]});o2(document.getElementById("root")).render(pe(V.exports.StrictMode,{children:pe(hN,{client:tO,children:pe(eO,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.