@dcl-regenesislabs/mobile-hub 1.0.0-20717816491.commit-17f8927 → 1.0.0-20717992871.commit-9714473

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-8e4wv-tH.js","assets/index-DoQzB8-2.js","assets/index-QHMvomuf.js"])))=>i.map(i=>d[i]);
2
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();var U2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function B2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function F2(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var a=e.default;if(typeof a=="function"){var t=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};t.prototype=a.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var Gp={exports:{}},Cu={},Kp={exports:{}},Rt={};var OT;function V2(){if(OT)return Rt;OT=1;var e=Symbol.for("react.element"),a=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.iterator;function g(C){return C===null||typeof C!="object"?null:(C=m&&C[m]||C["@@iterator"],typeof C=="function"?C:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,R={};function I(C,B,k){this.props=C,this.context=B,this.refs=R,this.updater=k||T}I.prototype.isReactComponent={},I.prototype.setState=function(C,B){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,B,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function N(){}N.prototype=I.prototype;function E(C,B,k){this.props=C,this.context=B,this.refs=R,this.updater=k||T}var P=E.prototype=new N;P.constructor=E,M(P,I.prototype),P.isPureReactComponent=!0;var S=Array.isArray,v=Object.prototype.hasOwnProperty,O={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function V(C,B,k){var L,W={},oe=null,Re=null;if(B!=null)for(L in B.ref!==void 0&&(Re=B.ref),B.key!==void 0&&(oe=""+B.key),B)v.call(B,L)&&!j.hasOwnProperty(L)&&(W[L]=B[L]);var Se=arguments.length-2;if(Se===1)W.children=k;else if(1<Se){for(var Ue=Array(Se),Ce=0;Ce<Se;Ce++)Ue[Ce]=arguments[Ce+2];W.children=Ue}if(C&&C.defaultProps)for(L in Se=C.defaultProps,Se)W[L]===void 0&&(W[L]=Se[L]);return{$$typeof:e,type:C,key:oe,ref:Re,props:W,_owner:O.current}}function U(C,B){return{$$typeof:e,type:C.type,key:B,ref:C.ref,props:C.props,_owner:C._owner}}function K(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ae(C){var B={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return B[k]})}var _e=/\/+/g;function be(C,B){return typeof C=="object"&&C!==null&&C.key!=null?ae(""+C.key):B.toString(36)}function ye(C,B,k,L,W){var oe=typeof C;(oe==="undefined"||oe==="boolean")&&(C=null);var Re=!1;if(C===null)Re=!0;else switch(oe){case"string":case"number":Re=!0;break;case"object":switch(C.$$typeof){case e:case a:Re=!0}}if(Re)return Re=C,W=W(Re),C=L===""?"."+be(Re,0):L,S(W)?(k="",C!=null&&(k=C.replace(_e,"$&/")+"/"),ye(W,B,k,"",function(Ce){return Ce})):W!=null&&(K(W)&&(W=U(W,k+(!W.key||Re&&Re.key===W.key?"":(""+W.key).replace(_e,"$&/")+"/")+C)),B.push(W)),1;if(Re=0,L=L===""?".":L+":",S(C))for(var Se=0;Se<C.length;Se++){oe=C[Se];var Ue=L+be(oe,Se);Re+=ye(oe,B,k,Ue,W)}else if(Ue=g(C),typeof Ue=="function")for(C=Ue.call(C),Se=0;!(oe=C.next()).done;)oe=oe.value,Ue=L+be(oe,Se++),Re+=ye(oe,B,k,Ue,W);else if(oe==="object")throw B=String(C),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return Re}function Me(C,B,k){if(C==null)return C;var L=[],W=0;return ye(C,L,"","",function(oe){return B.call(k,oe,W++)}),L}function Ne(C){if(C._status===-1){var B=C._result;B=B(),B.then(function(k){(C._status===0||C._status===-1)&&(C._status=1,C._result=k)},function(k){(C._status===0||C._status===-1)&&(C._status=2,C._result=k)}),C._status===-1&&(C._status=0,C._result=B)}if(C._status===1)return C._result.default;throw C._result}var qe={current:null},we={transition:null},ue={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:we,ReactCurrentOwner:O};function X(){throw Error("act(...) is not supported in production builds of React.")}return Rt.Children={map:Me,forEach:function(C,B,k){Me(C,function(){B.apply(this,arguments)},k)},count:function(C){var B=0;return Me(C,function(){B++}),B},toArray:function(C){return Me(C,function(B){return B})||[]},only:function(C){if(!K(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Rt.Component=I,Rt.Fragment=t,Rt.Profiler=i,Rt.PureComponent=E,Rt.StrictMode=n,Rt.Suspense=f,Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Rt.act=X,Rt.cloneElement=function(C,B,k){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var L=M({},C.props),W=C.key,oe=C.ref,Re=C._owner;if(B!=null){if(B.ref!==void 0&&(oe=B.ref,Re=O.current),B.key!==void 0&&(W=""+B.key),C.type&&C.type.defaultProps)var Se=C.type.defaultProps;for(Ue in B)v.call(B,Ue)&&!j.hasOwnProperty(Ue)&&(L[Ue]=B[Ue]===void 0&&Se!==void 0?Se[Ue]:B[Ue])}var Ue=arguments.length-2;if(Ue===1)L.children=k;else if(1<Ue){Se=Array(Ue);for(var Ce=0;Ce<Ue;Ce++)Se[Ce]=arguments[Ce+2];L.children=Se}return{$$typeof:e,type:C.type,key:W,ref:oe,props:L,_owner:Re}},Rt.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:o,_context:C},C.Consumer=C},Rt.createElement=V,Rt.createFactory=function(C){var B=V.bind(null,C);return B.type=C,B},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(C){return{$$typeof:c,render:C}},Rt.isValidElement=K,Rt.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:Ne}},Rt.memo=function(C,B){return{$$typeof:p,type:C,compare:B===void 0?null:B}},Rt.startTransition=function(C){var B=we.transition;we.transition={};try{C()}finally{we.transition=B}},Rt.unstable_act=X,Rt.useCallback=function(C,B){return qe.current.useCallback(C,B)},Rt.useContext=function(C){return qe.current.useContext(C)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(C){return qe.current.useDeferredValue(C)},Rt.useEffect=function(C,B){return qe.current.useEffect(C,B)},Rt.useId=function(){return qe.current.useId()},Rt.useImperativeHandle=function(C,B,k){return qe.current.useImperativeHandle(C,B,k)},Rt.useInsertionEffect=function(C,B){return qe.current.useInsertionEffect(C,B)},Rt.useLayoutEffect=function(C,B){return qe.current.useLayoutEffect(C,B)},Rt.useMemo=function(C,B){return qe.current.useMemo(C,B)},Rt.useReducer=function(C,B,k){return qe.current.useReducer(C,B,k)},Rt.useRef=function(C){return qe.current.useRef(C)},Rt.useState=function(C){return qe.current.useState(C)},Rt.useSyncExternalStore=function(C,B,k){return qe.current.useSyncExternalStore(C,B,k)},Rt.useTransition=function(){return qe.current.useTransition()},Rt.version="18.3.1",Rt}var AT;function wb(){return AT||(AT=1,Kp.exports=V2()),Kp.exports}var PT;function H2(){if(PT)return Cu;PT=1;var e=wb(),a=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,p){var y,m={},g=null,T=null;p!==void 0&&(g=""+p),f.key!==void 0&&(g=""+f.key),f.ref!==void 0&&(T=f.ref);for(y in f)n.call(f,y)&&!o.hasOwnProperty(y)&&(m[y]=f[y]);if(c&&c.defaultProps)for(y in f=c.defaultProps,f)m[y]===void 0&&(m[y]=f[y]);return{$$typeof:a,type:c,key:g,ref:T,props:m,_owner:i.current}}return Cu.Fragment=t,Cu.jsx=u,Cu.jsxs=u,Cu}var IT;function z2(){return IT||(IT=1,Gp.exports=H2()),Gp.exports}var Ie=z2(),fe=wb(),Lc={},Yp={exports:{}},sn={},Xp={exports:{}},Jp={};var RT;function W2(){return RT||(RT=1,(function(e){function a(we,ue){var X=we.length;we.push(ue);e:for(;0<X;){var C=X-1>>>1,B=we[C];if(0<i(B,ue))we[C]=ue,we[X]=B,X=C;else break e}}function t(we){return we.length===0?null:we[0]}function n(we){if(we.length===0)return null;var ue=we[0],X=we.pop();if(X!==ue){we[0]=X;e:for(var C=0,B=we.length,k=B>>>1;C<k;){var L=2*(C+1)-1,W=we[L],oe=L+1,Re=we[oe];if(0>i(W,X))oe<B&&0>i(Re,W)?(we[C]=Re,we[oe]=X,C=oe):(we[C]=W,we[L]=X,C=L);else if(oe<B&&0>i(Re,X))we[C]=Re,we[oe]=X,C=oe;else break e}}return ue}function i(we,ue){var X=we.sortIndex-ue.sortIndex;return X!==0?X:we.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],p=[],y=1,m=null,g=3,T=!1,M=!1,R=!1,I=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(we){for(var ue=t(p);ue!==null;){if(ue.callback===null)n(p);else if(ue.startTime<=we)n(p),ue.sortIndex=ue.expirationTime,a(f,ue);else break;ue=t(p)}}function S(we){if(R=!1,P(we),!M)if(t(f)!==null)M=!0,Ne(v);else{var ue=t(p);ue!==null&&qe(S,ue.startTime-we)}}function v(we,ue){M=!1,R&&(R=!1,N(V),V=-1),T=!0;var X=g;try{for(P(ue),m=t(f);m!==null&&(!(m.expirationTime>ue)||we&&!ae());){var C=m.callback;if(typeof C=="function"){m.callback=null,g=m.priorityLevel;var B=C(m.expirationTime<=ue);ue=e.unstable_now(),typeof B=="function"?m.callback=B:m===t(f)&&n(f),P(ue)}else n(f);m=t(f)}if(m!==null)var k=!0;else{var L=t(p);L!==null&&qe(S,L.startTime-ue),k=!1}return k}finally{m=null,g=X,T=!1}}var O=!1,j=null,V=-1,U=5,K=-1;function ae(){return!(e.unstable_now()-K<U)}function _e(){if(j!==null){var we=e.unstable_now();K=we;var ue=!0;try{ue=j(!0,we)}finally{ue?be():(O=!1,j=null)}}else O=!1}var be;if(typeof E=="function")be=function(){E(_e)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Me=ye.port2;ye.port1.onmessage=_e,be=function(){Me.postMessage(null)}}else be=function(){I(_e,0)};function Ne(we){j=we,O||(O=!0,be())}function qe(we,ue){V=I(function(){we(e.unstable_now())},ue)}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(we){we.callback=null},e.unstable_continueExecution=function(){M||T||(M=!0,Ne(v))},e.unstable_forceFrameRate=function(we){0>we||125<we?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<we?Math.floor(1e3/we):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return t(f)},e.unstable_next=function(we){switch(g){case 1:case 2:case 3:var ue=3;break;default:ue=g}var X=g;g=ue;try{return we()}finally{g=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(we,ue){switch(we){case 1:case 2:case 3:case 4:case 5:break;default:we=3}var X=g;g=we;try{return ue()}finally{g=X}},e.unstable_scheduleCallback=function(we,ue,X){var C=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?C+X:C):X=C,we){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=X+B,we={id:y++,callback:ue,priorityLevel:we,startTime:X,expirationTime:B,sortIndex:-1},X>C?(we.sortIndex=X,a(p,we),t(f)===null&&we===t(p)&&(R?(N(V),V=-1):R=!0,qe(S,X-C))):(we.sortIndex=B,a(f,we),M||T||(M=!0,Ne(v))),we},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(we){var ue=g;return function(){var X=g;g=ue;try{return we.apply(this,arguments)}finally{g=X}}}})(Jp)),Jp}var MT;function G2(){return MT||(MT=1,Xp.exports=W2()),Xp.exports}var NT;function K2(){if(NT)return sn;NT=1;var e=wb(),a=G2();function t(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(i[r]=s,r=0;r<s.length;r++)n.add(s[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,y={},m={};function g(r){return f.call(m,r)?!0:f.call(y,r)?!1:p.test(r)?m[r]=!0:(y[r]=!0,!1)}function T(r,s,l,d){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function M(r,s,l,d){if(s===null||typeof s>"u"||T(r,s,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function R(r,s,l,d,h,w,D){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=r,this.type=s,this.sanitizeURL=w,this.removeEmptyString=D}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){I[r]=new R(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];I[s]=new R(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){I[r]=new R(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){I[r]=new R(r,2,!1,r,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(r){I[r]=new R(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){I[r]=new R(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){I[r]=new R(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){I[r]=new R(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){I[r]=new R(r,5,!1,r.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function E(r){return r[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(r){var s=r.replace(N,E);I[s]=new R(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(N,E);I[s]=new R(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(N,E);I[s]=new R(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){I[r]=new R(r,1,!1,r.toLowerCase(),null,!1,!1)}),I.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){I[r]=new R(r,1,!1,r.toLowerCase(),null,!0,!0)});function P(r,s,l,d){var h=I.hasOwnProperty(s)?I[s]:null;(h!==null?h.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(M(s,l,h,d)&&(l=null),d||h===null?g(s)&&(l===null?r.removeAttribute(s):r.setAttribute(s,""+l)):h.mustUseProperty?r[h.propertyName]=l===null?h.type===3?!1:"":l:(s=h.attributeName,d=h.attributeNamespace,l===null?r.removeAttribute(s):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,d?r.setAttributeNS(d,s,l):r.setAttribute(s,l))))}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),ae=Symbol.for("react.context"),_e=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),we=Symbol.iterator;function ue(r){return r===null||typeof r!="object"?null:(r=we&&r[we]||r["@@iterator"],typeof r=="function"?r:null)}var X=Object.assign,C;function B(r){if(C===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);C=s&&s[1]||""}return`
3
- `+C+r}var k=!1;function L(r,s){if(!r||k)return"";k=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(Ee){var d=Ee}Reflect.construct(r,[],s)}else{try{s.call()}catch(Ee){d=Ee}r.call(s.prototype)}else{try{throw Error()}catch(Ee){d=Ee}r()}}catch(Ee){if(Ee&&d&&typeof Ee.stack=="string"){for(var h=Ee.stack.split(`
4
- `),w=d.stack.split(`
5
- `),D=h.length-1,J=w.length-1;1<=D&&0<=J&&h[D]!==w[J];)J--;for(;1<=D&&0<=J;D--,J--)if(h[D]!==w[J]){if(D!==1||J!==1)do if(D--,J--,0>J||h[D]!==w[J]){var ie=`
6
- `+h[D].replace(" at new "," at ");return r.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",r.displayName)),ie}while(1<=D&&0<=J);break}}}finally{k=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?B(r):""}function W(r){switch(r.tag){case 5:return B(r.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return r=L(r.type,!1),r;case 11:return r=L(r.type.render,!1),r;case 1:return r=L(r.type,!0),r;default:return""}}function oe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case j:return"Fragment";case O:return"Portal";case U:return"Profiler";case V:return"StrictMode";case be:return"Suspense";case ye:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case ae:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case _e:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Me:return s=r.displayName||null,s!==null?s:oe(r.type)||"Memo";case Ne:s=r._payload,r=r._init;try{return oe(r(s))}catch{}}return null}function Re(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(s);case 8:return s===V?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Se(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ue(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ce(r){var s=Ue(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),d=""+r[s];if(!r.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,w=l.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return h.call(this)},set:function(D){d=""+D,w.call(this,D)}}),Object.defineProperty(r,s,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(D){d=""+D},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function se(r){r._valueTracker||(r._valueTracker=Ce(r))}function de(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var l=s.getValue(),d="";return r&&(d=Ue(r)?r.checked?"true":"false":r.value),r=d,r!==l?(s.setValue(r),!0):!1}function Ae(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function je(r,s){var l=s.checked;return X({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Ye(r,s){var l=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;l=Se(s.value!=null?s.value:l),r._wrapperState={initialChecked:d,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Je(r,s){s=s.checked,s!=null&&P(r,"checked",s,!1)}function Vt(r,s){Je(r,s);var l=Se(s.value),d=s.type;if(l!=null)d==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?rr(r,s.type,l):s.hasOwnProperty("defaultValue")&&rr(r,s.type,Se(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function Lt(r,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,l||s===r.value||(r.value=s),r.defaultValue=s}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function rr(r,s,l){(s!=="number"||Ae(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Bt=Array.isArray;function Ft(r,s,l,d){if(r=r.options,s){s={};for(var h=0;h<l.length;h++)s["$"+l[h]]=!0;for(l=0;l<r.length;l++)h=s.hasOwnProperty("$"+r[l].value),r[l].selected!==h&&(r[l].selected=h),h&&d&&(r[l].defaultSelected=!0)}else{for(l=""+Se(l),s=null,h=0;h<r.length;h++){if(r[h].value===l){r[h].selected=!0,d&&(r[h].defaultSelected=!0);return}s!==null||r[h].disabled||(s=r[h])}s!==null&&(s.selected=!0)}}function Hr(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(t(91));return X({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function sr(r,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(t(92));if(Bt(l)){if(1<l.length)throw Error(t(93));l=l[0]}s=l}s==null&&(s=""),l=s}r._wrapperState={initialValue:Se(l)}}function hn(r,s){var l=Se(s.value),d=Se(s.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),s.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),d!=null&&(r.defaultValue=""+d)}function Jr(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Qr(r){switch(r){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 ln(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Qr(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ur,cn=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,d,h){MSApp.execUnsafeLocalFunction(function(){return r(s,l,d,h)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(ur=ur||document.createElement("div"),ur.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ur.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Pr(r,s){if(s){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=s;return}}r.textContent=s}var gn={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},Zr=["Webkit","ms","Moz","O"];Object.keys(gn).forEach(function(r){Zr.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),gn[s]=gn[r]})});function vn(r,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||gn.hasOwnProperty(r)&&gn[r]?(""+s).trim():s+"px"}function $r(r,s){r=r.style;for(var l in s)if(s.hasOwnProperty(l)){var d=l.indexOf("--")===0,h=vn(l,s[l],d);l==="float"&&(l="cssFloat"),d?r.setProperty(l,h):r[l]=h}}var xi=X({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 _n(r,s){if(s){if(xi[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(t(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(t(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(t(61))}if(s.style!=null&&typeof s.style!="object")throw Error(t(62))}}function Ii(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 Ri=null;function pi(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Mi=null,Ir=null,Ot=null;function zr(r){if(r=gu(r)){if(typeof Mi!="function")throw Error(t(280));var s=r.stateNode;s&&(s=Jl(s),Mi(r.stateNode,r.type,s))}}function xr(r){Ir?Ot?Ot.push(r):Ot=[r]:Ir=r}function te(){if(Ir){var r=Ir,s=Ot;if(Ot=Ir=null,zr(r),s)for(r=0;r<s.length;r++)zr(s[r])}}function F(r,s){return r(s)}function Z(){}var ce=!1;function Te(r,s,l){if(ce)return r(s,l);ce=!0;try{return F(r,s,l)}finally{ce=!1,(Ir!==null||Ot!==null)&&(Z(),te())}}function Pe(r,s){var l=r.stateNode;if(l===null)return null;var d=Jl(l);if(d===null)return null;l=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(t(231,s,typeof l));return l}var Ge=!1;if(c)try{var Ke={};Object.defineProperty(Ke,"passive",{get:function(){Ge=!0}}),window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch{Ge=!1}function mt(r,s,l,d,h,w,D,J,ie){var Ee=Array.prototype.slice.call(arguments,3);try{s.apply(l,Ee)}catch(De){this.onError(De)}}var ut=!1,_t=null,Tt=!1,At=null,xt={onError:function(r){ut=!0,_t=r}};function Jt(r,s,l,d,h,w,D,J,ie){ut=!1,_t=null,mt.apply(xt,arguments)}function gr(r,s,l,d,h,w,D,J,ie){if(Jt.apply(this,arguments),ut){if(ut){var Ee=_t;ut=!1,_t=null}else throw Error(t(198));Tt||(Tt=!0,At=Ee)}}function Dr(r){var s=r,l=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(l=s.return),r=s.return;while(r)}return s.tag===3?l:null}function En(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Dn(r){if(Dr(r)!==r)throw Error(t(188))}function ea(r){var s=r.alternate;if(!s){if(s=Dr(r),s===null)throw Error(t(188));return s!==r?null:r}for(var l=r,d=s;;){var h=l.return;if(h===null)break;var w=h.alternate;if(w===null){if(d=h.return,d!==null){l=d;continue}break}if(h.child===w.child){for(w=h.child;w;){if(w===l)return Dn(h),r;if(w===d)return Dn(h),s;w=w.sibling}throw Error(t(188))}if(l.return!==d.return)l=h,d=w;else{for(var D=!1,J=h.child;J;){if(J===l){D=!0,l=h,d=w;break}if(J===d){D=!0,d=h,l=w;break}J=J.sibling}if(!D){for(J=w.child;J;){if(J===l){D=!0,l=w,d=h;break}if(J===d){D=!0,d=w,l=h;break}J=J.sibling}if(!D)throw Error(t(189))}}if(l.alternate!==d)throw Error(t(190))}if(l.tag!==3)throw Error(t(188));return l.stateNode.current===l?r:s}function Rr(r){return r=ea(r),r!==null?yi(r):null}function yi(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=yi(r);if(s!==null)return s;r=r.sibling}return null}var uu=a.unstable_scheduleCallback,Sa=a.unstable_cancelCallback,kl=a.unstable_shouldYield,qn=a.unstable_requestPaint,er=a.unstable_now,Ul=a.unstable_getCurrentPriorityLevel,ss=a.unstable_ImmediatePriority,Oa=a.unstable_UserBlockingPriority,Aa=a.unstable_NormalPriority,Pf=a.unstable_LowPriority,Bl=a.unstable_IdlePriority,ta=null,bn=null;function us(r){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(ta,r,void 0,(r.current.flags&128)===128)}catch{}}var Wr=Math.clz32?Math.clz32:et,Fl=Math.log,Vl=Math.LN2;function et(r){return r>>>=0,r===0?32:31-(Fl(r)/Vl|0)|0}var $e=64,xe=4194304;function ft(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function vr(r,s){var l=r.pendingLanes;if(l===0)return 0;var d=0,h=r.suspendedLanes,w=r.pingedLanes,D=l&268435455;if(D!==0){var J=D&~h;J!==0?d=ft(J):(w&=D,w!==0&&(d=ft(w)))}else D=l&~h,D!==0?d=ft(D):w!==0&&(d=ft(w));if(d===0)return 0;if(s!==0&&s!==d&&(s&h)===0&&(h=d&-d,w=s&-s,h>=w||h===16&&(w&4194240)!==0))return s;if((d&4)!==0&&(d|=l&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=d;0<s;)l=31-Wr(s),h=1<<l,d|=r[l],s&=~h;return d}function Hl(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 at(r,s){for(var l=r.suspendedLanes,d=r.pingedLanes,h=r.expirationTimes,w=r.pendingLanes;0<w;){var D=31-Wr(w),J=1<<D,ie=h[D];ie===-1?((J&l)===0||(J&d)!==0)&&(h[D]=Hl(J,s)):ie<=s&&(r.expiredLanes|=J),w&=~J}}function Ze(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function lu(){var r=$e;return $e<<=1,($e&4194240)===0&&($e=64),r}function ls(r){for(var s=[],l=0;31>l;l++)s.push(r);return s}function Ni(r,s,l){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-Wr(s),r[s]=l}function Pa(r,s){var l=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<l;){var h=31-Wr(l),w=1<<h;s[h]=0,d[h]=-1,r[h]=-1,l&=~w}}function Ia(r,s){var l=r.entangledLanes|=s;for(r=r.entanglements;l;){var d=31-Wr(l),h=1<<d;h&s|r[d]&s&&(r[d]|=s),l&=~h}}var Ut=0;function cu(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var _,A,q,Y,x,ne=!1,Oe=[],Ve=null,it=null,st=null,fr=new Map,Ht=new Map,ze=[],_r="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 zt(r,s){switch(r){case"focusin":case"focusout":Ve=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":fr.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ht.delete(s.pointerId)}}function Dt(r,s,l,d,h,w){return r===null||r.nativeEvent!==w?(r={blockedOn:s,domEventName:l,eventSystemFlags:d,nativeEvent:w,targetContainers:[h]},s!==null&&(s=gu(s),s!==null&&A(s)),r):(r.eventSystemFlags|=d,s=r.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),r)}function Tr(r,s,l,d,h){switch(s){case"focusin":return Ve=Dt(Ve,r,s,l,d,h),!0;case"dragenter":return it=Dt(it,r,s,l,d,h),!0;case"mouseover":return st=Dt(st,r,s,l,d,h),!0;case"pointerover":var w=h.pointerId;return fr.set(w,Dt(fr.get(w)||null,r,s,l,d,h)),!0;case"gotpointercapture":return w=h.pointerId,Ht.set(w,Dt(Ht.get(w)||null,r,s,l,d,h)),!0}return!1}function wn(r){var s=Ba(r.target);if(s!==null){var l=Dr(s);if(l!==null){if(s=l.tag,s===13){if(s=En(l),s!==null){r.blockedOn=s,x(r.priority,function(){q(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Gr(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var l=mi(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Ri=d,l.target.dispatchEvent(d),Ri=null}else return s=gu(l),s!==null&&A(s),r.blockedOn=l,!1;s.shift()}return!0}function Er(r,s,l){Gr(r)&&l.delete(s)}function Tn(){ne=!1,Ve!==null&&Gr(Ve)&&(Ve=null),it!==null&&Gr(it)&&(it=null),st!==null&&Gr(st)&&(st=null),fr.forEach(Er),Ht.forEach(Er)}function en(r,s){r.blockedOn===s&&(r.blockedOn=null,ne||(ne=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tn)))}function nr(r){function s(h){return en(h,r)}if(0<Oe.length){en(Oe[0],r);for(var l=1;l<Oe.length;l++){var d=Oe[l];d.blockedOn===r&&(d.blockedOn=null)}}for(Ve!==null&&en(Ve,r),it!==null&&en(it,r),st!==null&&en(st,r),fr.forEach(s),Ht.forEach(s),l=0;l<ze.length;l++)d=ze[l],d.blockedOn===r&&(d.blockedOn=null);for(;0<ze.length&&(l=ze[0],l.blockedOn===null);)wn(l),l.blockedOn===null&&ze.shift()}var qr=S.ReactCurrentBatchConfig,pr=!0;function Sn(r,s,l,d){var h=Ut,w=qr.transition;qr.transition=null;try{Ut=1,dn(r,s,l,d)}finally{Ut=h,qr.transition=w}}function Be(r,s,l,d){var h=Ut,w=qr.transition;qr.transition=null;try{Ut=4,dn(r,s,l,d)}finally{Ut=h,qr.transition=w}}function dn(r,s,l,d){if(pr){var h=mi(r,s,l,d);if(h===null)Df(r,s,d,kn,l),zt(r,d);else if(Tr(h,r,s,l,d))d.stopPropagation();else if(zt(r,d),s&4&&-1<_r.indexOf(r)){for(;h!==null;){var w=gu(h);if(w!==null&&_(w),w=mi(r,s,l,d),w===null&&Df(r,s,d,kn,l),w===h)break;h=w}h!==null&&d.stopPropagation()}else Df(r,s,d,null,l)}}var kn=null;function mi(r,s,l,d){if(kn=null,r=pi(d),r=Ba(r),r!==null)if(s=Dr(r),s===null)r=null;else if(l=s.tag,l===13){if(r=En(s),r!==null)return r;r=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return kn=r,null}function Mt(r){switch(r){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(Ul()){case ss:return 1;case Oa:return 4;case Aa:case Pf:return 16;case Bl:return 536870912;default:return 16}default:return 16}}var lr=null,z=null,b=null;function H(){if(b)return b;var r,s=z,l=s.length,d,h="value"in lr?lr.value:lr.textContent,w=h.length;for(r=0;r<l&&s[r]===h[r];r++);var D=l-r;for(d=1;d<=D&&s[l-d]===h[w-d];d++);return b=h.slice(r,1<d?1-d:void 0)}function Q(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function G(){return!0}function ee(){return!1}function $(r){function s(l,d,h,w,D){this._reactName=l,this._targetInst=h,this.type=d,this.nativeEvent=w,this.target=D,this.currentTarget=null;for(var J in r)r.hasOwnProperty(J)&&(l=r[J],this[J]=l?l(w):w[J]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?G:ee,this.isPropagationStopped=ee,this}return X(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=G)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=G)},persist:function(){},isPersistent:G}),s}var re={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pe=$(re),ge=X({},re,{view:0,detail:0}),he=$(ge),We,dt,yt,St=X({},ge,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ra,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==yt&&(yt&&r.type==="mousemove"?(We=r.screenX-yt.screenX,dt=r.screenY-yt.screenY):dt=We=0,yt=r),We)},movementY:function(r){return"movementY"in r?r.movementY:dt}}),Wt=$(St),Yt=X({},St,{dataTransfer:0}),Pt=$(Yt),Nt=X({},ge,{relatedTarget:0}),Qt=$(Nt),Un=X({},re,{animationName:0,elapsedTime:0,pseudoElement:0}),hi=$(Un),gi=X({},re,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Mr=$(gi),On=X({},re,{data:0}),mr=$(On),cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gt={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"},cs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ds(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=cs[r])?!!s[r]:!1}function ra(){return ds}var fs=X({},ge,{key:function(r){if(r.key){var s=cr[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Q(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Gt[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ra,charCode:function(r){return r.type==="keypress"?Q(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Q(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ps=$(fs),ys=X({},St,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ra=$(ys),ms=X({},ge,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ra}),hs=$(ms),gs=X({},re,{propertyName:0,elapsedTime:0,pseudoElement:0}),vs=$(gs),_s=X({},St,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Es=$(_s),bs=[9,13,27,32],na=c&&"CompositionEvent"in window,vi=null;c&&"documentMode"in document&&(vi=document.documentMode);var ws=c&&"TextEvent"in window&&!vi,Ma=c&&(!na||vi&&8<vi&&11>=vi),Na=" ",Ca=!1;function ja(r,s){switch(r){case"keyup":return bs.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function La(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Bn=!1;function Ts(r,s){switch(r){case"compositionend":return La(s);case"keypress":return s.which!==32?null:(Ca=!0,Na);case"textInput":return r=s.data,r===Na&&Ca?null:r;default:return null}}function Ss(r,s){if(Bn)return r==="compositionend"||!na&&ja(r,s)?(r=H(),b=z=lr=null,Bn=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Ma&&s.locale!=="ko"?null:s.data;default:return null}}var Os={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 Da(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!Os[r.type]:s==="textarea"}function qa(r,s,l,d){xr(d),s=Kl(s,"onChange"),0<s.length&&(l=new pe("onChange","change",null,l,d),r.push({event:l,listeners:s}))}var _i=null,Ei=null;function As(r){V0(r,0)}function Ci(r){var s=Cs(r);if(de(s))return r}function Ps(r,s){if(r==="change")return s}var ka=!1;if(c){var ia;if(c){var aa="oninput"in document;if(!aa){var Ua=document.createElement("div");Ua.setAttribute("oninput","return;"),aa=typeof Ua.oninput=="function"}ia=aa}else ia=!1;ka=ia&&(!document.documentMode||9<document.documentMode)}function A0(){_i&&(_i.detachEvent("onpropertychange",P0),Ei=_i=null)}function P0(r){if(r.propertyName==="value"&&Ci(Ei)){var s=[];qa(s,Ei,r,pi(r)),Te(As,s)}}function Fk(r,s,l){r==="focusin"?(A0(),_i=s,Ei=l,_i.attachEvent("onpropertychange",P0)):r==="focusout"&&A0()}function Vk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ci(Ei)}function Hk(r,s){if(r==="click")return Ci(s)}function zk(r,s){if(r==="input"||r==="change")return Ci(s)}function Wk(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var Fn=typeof Object.is=="function"?Object.is:Wk;function du(r,s){if(Fn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var l=Object.keys(r),d=Object.keys(s);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var h=l[d];if(!f.call(s,h)||!Fn(r[h],s[h]))return!1}return!0}function I0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function R0(r,s){var l=I0(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=s&&d>=s)return{node:l,offset:s-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=I0(l)}}function M0(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?M0(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function N0(){for(var r=window,s=Ae();s instanceof r.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)r=s.contentWindow;else break;s=Ae(r.document)}return s}function If(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function Gk(r){var s=N0(),l=r.focusedElem,d=r.selectionRange;if(s!==l&&l&&l.ownerDocument&&M0(l.ownerDocument.documentElement,l)){if(d!==null&&If(l)){if(s=d.start,r=d.end,r===void 0&&(r=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(r,l.value.length);else if(r=(s=l.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var h=l.textContent.length,w=Math.min(d.start,h);d=d.end===void 0?w:Math.min(d.end,h),!r.extend&&w>d&&(h=d,d=w,w=h),h=R0(l,w);var D=R0(l,d);h&&D&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==D.node||r.focusOffset!==D.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),r.removeAllRanges(),w>d?(r.addRange(s),r.extend(D.node,D.offset)):(s.setEnd(D.node,D.offset),r.addRange(s)))}}for(s=[],r=l;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)r=s[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Kk=c&&"documentMode"in document&&11>=document.documentMode,Is=null,Rf=null,fu=null,Mf=!1;function C0(r,s,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mf||Is==null||Is!==Ae(d)||(d=Is,"selectionStart"in d&&If(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),fu&&du(fu,d)||(fu=d,d=Kl(Rf,"onSelect"),0<d.length&&(s=new pe("onSelect","select",null,s,l),r.push({event:s,listeners:d}),s.target=Is)))}function zl(r,s){var l={};return l[r.toLowerCase()]=s.toLowerCase(),l["Webkit"+r]="webkit"+s,l["Moz"+r]="moz"+s,l}var Rs={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},Nf={},j0={};c&&(j0=document.createElement("div").style,"AnimationEvent"in window||(delete Rs.animationend.animation,delete Rs.animationiteration.animation,delete Rs.animationstart.animation),"TransitionEvent"in window||delete Rs.transitionend.transition);function Wl(r){if(Nf[r])return Nf[r];if(!Rs[r])return r;var s=Rs[r],l;for(l in s)if(s.hasOwnProperty(l)&&l in j0)return Nf[r]=s[l];return r}var L0=Wl("animationend"),D0=Wl("animationiteration"),q0=Wl("animationstart"),k0=Wl("transitionend"),U0=new Map,B0="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 oa(r,s){U0.set(r,s),o(s,[r])}for(var Cf=0;Cf<B0.length;Cf++){var jf=B0[Cf],Yk=jf.toLowerCase(),Xk=jf[0].toUpperCase()+jf.slice(1);oa(Yk,"on"+Xk)}oa(L0,"onAnimationEnd"),oa(D0,"onAnimationIteration"),oa(q0,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(k0,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pu="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(" "),Jk=new Set("cancel close invalid load scroll toggle".split(" ").concat(pu));function F0(r,s,l){var d=r.type||"unknown-event";r.currentTarget=l,gr(d,s,void 0,r),r.currentTarget=null}function V0(r,s){s=(s&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],h=d.event;d=d.listeners;e:{var w=void 0;if(s)for(var D=d.length-1;0<=D;D--){var J=d[D],ie=J.instance,Ee=J.currentTarget;if(J=J.listener,ie!==w&&h.isPropagationStopped())break e;F0(h,J,Ee),w=ie}else for(D=0;D<d.length;D++){if(J=d[D],ie=J.instance,Ee=J.currentTarget,J=J.listener,ie!==w&&h.isPropagationStopped())break e;F0(h,J,Ee),w=ie}}}if(Tt)throw r=At,Tt=!1,At=null,r}function Zt(r,s){var l=s[Vf];l===void 0&&(l=s[Vf]=new Set);var d=r+"__bubble";l.has(d)||(H0(s,r,2,!1),l.add(d))}function Lf(r,s,l){var d=0;s&&(d|=4),H0(l,r,d,s)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function yu(r){if(!r[Gl]){r[Gl]=!0,n.forEach(function(l){l!=="selectionchange"&&(Jk.has(l)||Lf(l,!1,r),Lf(l,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Gl]||(s[Gl]=!0,Lf("selectionchange",!1,s))}}function H0(r,s,l,d){switch(Mt(s)){case 1:var h=Sn;break;case 4:h=Be;break;default:h=dn}l=h.bind(null,s,l,r),h=void 0,!Ge||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),d?h!==void 0?r.addEventListener(s,l,{capture:!0,passive:h}):r.addEventListener(s,l,!0):h!==void 0?r.addEventListener(s,l,{passive:h}):r.addEventListener(s,l,!1)}function Df(r,s,l,d,h){var w=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var D=d.tag;if(D===3||D===4){var J=d.stateNode.containerInfo;if(J===h||J.nodeType===8&&J.parentNode===h)break;if(D===4)for(D=d.return;D!==null;){var ie=D.tag;if((ie===3||ie===4)&&(ie=D.stateNode.containerInfo,ie===h||ie.nodeType===8&&ie.parentNode===h))return;D=D.return}for(;J!==null;){if(D=Ba(J),D===null)return;if(ie=D.tag,ie===5||ie===6){d=w=D;continue e}J=J.parentNode}}d=d.return}Te(function(){var Ee=w,De=pi(l),ke=[];e:{var Le=U0.get(r);if(Le!==void 0){var Qe=pe,ot=r;switch(r){case"keypress":if(Q(l)===0)break e;case"keydown":case"keyup":Qe=ps;break;case"focusin":ot="focus",Qe=Qt;break;case"focusout":ot="blur",Qe=Qt;break;case"beforeblur":case"afterblur":Qe=Qt;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Wt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=Pt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=hs;break;case L0:case D0:case q0:Qe=hi;break;case k0:Qe=vs;break;case"scroll":Qe=he;break;case"wheel":Qe=Es;break;case"copy":case"cut":case"paste":Qe=Mr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Ra}var lt=(s&4)!==0,yr=!lt&&r==="scroll",me=lt?Le!==null?Le+"Capture":null:Le;lt=[];for(var le=Ee,ve;le!==null;){ve=le;var Fe=ve.stateNode;if(ve.tag===5&&Fe!==null&&(ve=Fe,me!==null&&(Fe=Pe(le,me),Fe!=null&&lt.push(mu(le,Fe,ve)))),yr)break;le=le.return}0<lt.length&&(Le=new Qe(Le,ot,null,l,De),ke.push({event:Le,listeners:lt}))}}if((s&7)===0){e:{if(Le=r==="mouseover"||r==="pointerover",Qe=r==="mouseout"||r==="pointerout",Le&&l!==Ri&&(ot=l.relatedTarget||l.fromElement)&&(Ba(ot)||ot[ji]))break e;if((Qe||Le)&&(Le=De.window===De?De:(Le=De.ownerDocument)?Le.defaultView||Le.parentWindow:window,Qe?(ot=l.relatedTarget||l.toElement,Qe=Ee,ot=ot?Ba(ot):null,ot!==null&&(yr=Dr(ot),ot!==yr||ot.tag!==5&&ot.tag!==6)&&(ot=null)):(Qe=null,ot=Ee),Qe!==ot)){if(lt=Wt,Fe="onMouseLeave",me="onMouseEnter",le="mouse",(r==="pointerout"||r==="pointerover")&&(lt=Ra,Fe="onPointerLeave",me="onPointerEnter",le="pointer"),yr=Qe==null?Le:Cs(Qe),ve=ot==null?Le:Cs(ot),Le=new lt(Fe,le+"leave",Qe,l,De),Le.target=yr,Le.relatedTarget=ve,Fe=null,Ba(De)===Ee&&(lt=new lt(me,le+"enter",ot,l,De),lt.target=ve,lt.relatedTarget=yr,Fe=lt),yr=Fe,Qe&&ot)t:{for(lt=Qe,me=ot,le=0,ve=lt;ve;ve=Ms(ve))le++;for(ve=0,Fe=me;Fe;Fe=Ms(Fe))ve++;for(;0<le-ve;)lt=Ms(lt),le--;for(;0<ve-le;)me=Ms(me),ve--;for(;le--;){if(lt===me||me!==null&&lt===me.alternate)break t;lt=Ms(lt),me=Ms(me)}lt=null}else lt=null;Qe!==null&&z0(ke,Le,Qe,lt,!1),ot!==null&&yr!==null&&z0(ke,yr,ot,lt,!0)}}e:{if(Le=Ee?Cs(Ee):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var ct=Ps;else if(Da(Le))if(ka)ct=zk;else{ct=Vk;var ht=Fk}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(ct=Hk);if(ct&&(ct=ct(r,Ee))){qa(ke,ct,l,De);break e}ht&&ht(r,Le,Ee),r==="focusout"&&(ht=Le._wrapperState)&&ht.controlled&&Le.type==="number"&&rr(Le,"number",Le.value)}switch(ht=Ee?Cs(Ee):window,r){case"focusin":(Da(ht)||ht.contentEditable==="true")&&(Is=ht,Rf=Ee,fu=null);break;case"focusout":fu=Rf=Is=null;break;case"mousedown":Mf=!0;break;case"contextmenu":case"mouseup":case"dragend":Mf=!1,C0(ke,l,De);break;case"selectionchange":if(Kk)break;case"keydown":case"keyup":C0(ke,l,De)}var gt;if(na)e:{switch(r){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else Bn?ja(r,l)&&(Et="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Et="onCompositionStart");Et&&(Ma&&l.locale!=="ko"&&(Bn||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Bn&&(gt=H()):(lr=De,z="value"in lr?lr.value:lr.textContent,Bn=!0)),ht=Kl(Ee,Et),0<ht.length&&(Et=new mr(Et,r,null,l,De),ke.push({event:Et,listeners:ht}),gt?Et.data=gt:(gt=La(l),gt!==null&&(Et.data=gt)))),(gt=ws?Ts(r,l):Ss(r,l))&&(Ee=Kl(Ee,"onBeforeInput"),0<Ee.length&&(De=new mr("onBeforeInput","beforeinput",null,l,De),ke.push({event:De,listeners:Ee}),De.data=gt))}V0(ke,s)})}function mu(r,s,l){return{instance:r,listener:s,currentTarget:l}}function Kl(r,s){for(var l=s+"Capture",d=[];r!==null;){var h=r,w=h.stateNode;h.tag===5&&w!==null&&(h=w,w=Pe(r,l),w!=null&&d.unshift(mu(r,w,h)),w=Pe(r,s),w!=null&&d.push(mu(r,w,h))),r=r.return}return d}function Ms(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function z0(r,s,l,d,h){for(var w=s._reactName,D=[];l!==null&&l!==d;){var J=l,ie=J.alternate,Ee=J.stateNode;if(ie!==null&&ie===d)break;J.tag===5&&Ee!==null&&(J=Ee,h?(ie=Pe(l,w),ie!=null&&D.unshift(mu(l,ie,J))):h||(ie=Pe(l,w),ie!=null&&D.push(mu(l,ie,J)))),l=l.return}D.length!==0&&r.push({event:s,listeners:D})}var Qk=/\r\n?/g,Zk=/\u0000|\uFFFD/g;function W0(r){return(typeof r=="string"?r:""+r).replace(Qk,`
7
- `).replace(Zk,"")}function Yl(r,s,l){if(s=W0(s),W0(r)!==s&&l)throw Error(t(425))}function Xl(){}var qf=null,kf=null;function Uf(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Bf=typeof setTimeout=="function"?setTimeout:void 0,$k=typeof clearTimeout=="function"?clearTimeout:void 0,G0=typeof Promise=="function"?Promise:void 0,xk=typeof queueMicrotask=="function"?queueMicrotask:typeof G0<"u"?function(r){return G0.resolve(null).then(r).catch(e2)}:Bf;function e2(r){setTimeout(function(){throw r})}function Ff(r,s){var l=s,d=0;do{var h=l.nextSibling;if(r.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(d===0){r.removeChild(h),nr(s);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=h}while(l);nr(s)}function sa(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function K0(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return r;s--}else l==="/$"&&s++}r=r.previousSibling}return null}var Ns=Math.random().toString(36).slice(2),bi="__reactFiber$"+Ns,hu="__reactProps$"+Ns,ji="__reactContainer$"+Ns,Vf="__reactEvents$"+Ns,t2="__reactListeners$"+Ns,r2="__reactHandles$"+Ns;function Ba(r){var s=r[bi];if(s)return s;for(var l=r.parentNode;l;){if(s=l[ji]||l[bi]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(r=K0(r);r!==null;){if(l=r[bi])return l;r=K0(r)}return s}r=l,l=r.parentNode}return null}function gu(r){return r=r[bi]||r[ji],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Cs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(t(33))}function Jl(r){return r[hu]||null}var Hf=[],js=-1;function ua(r){return{current:r}}function $t(r){0>js||(r.current=Hf[js],Hf[js]=null,js--)}function Xt(r,s){js++,Hf[js]=r.current,r.current=s}var la={},kr=ua(la),tn=ua(!1),Fa=la;function Ls(r,s){var l=r.type.contextTypes;if(!l)return la;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var h={},w;for(w in l)h[w]=s[w];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=h),h}function rn(r){return r=r.childContextTypes,r!=null}function Ql(){$t(tn),$t(kr)}function Y0(r,s,l){if(kr.current!==la)throw Error(t(168));Xt(kr,s),Xt(tn,l)}function X0(r,s,l){var d=r.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var h in d)if(!(h in s))throw Error(t(108,Re(r)||"Unknown",h));return X({},l,d)}function Zl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||la,Fa=kr.current,Xt(kr,r),Xt(tn,tn.current),!0}function J0(r,s,l){var d=r.stateNode;if(!d)throw Error(t(169));l?(r=X0(r,s,Fa),d.__reactInternalMemoizedMergedChildContext=r,$t(tn),$t(kr),Xt(kr,r)):$t(tn),Xt(tn,l)}var Li=null,$l=!1,zf=!1;function Q0(r){Li===null?Li=[r]:Li.push(r)}function n2(r){$l=!0,Q0(r)}function ca(){if(!zf&&Li!==null){zf=!0;var r=0,s=Ut;try{var l=Li;for(Ut=1;r<l.length;r++){var d=l[r];do d=d(!0);while(d!==null)}Li=null,$l=!1}catch(h){throw Li!==null&&(Li=Li.slice(r+1)),uu(ss,ca),h}finally{Ut=s,zf=!1}}return null}var Ds=[],qs=0,xl=null,ec=0,An=[],Pn=0,Va=null,Di=1,qi="";function Ha(r,s){Ds[qs++]=ec,Ds[qs++]=xl,xl=r,ec=s}function Z0(r,s,l){An[Pn++]=Di,An[Pn++]=qi,An[Pn++]=Va,Va=r;var d=Di;r=qi;var h=32-Wr(d)-1;d&=~(1<<h),l+=1;var w=32-Wr(s)+h;if(30<w){var D=h-h%5;w=(d&(1<<D)-1).toString(32),d>>=D,h-=D,Di=1<<32-Wr(s)+h|l<<h|d,qi=w+r}else Di=1<<w|l<<h|d,qi=r}function Wf(r){r.return!==null&&(Ha(r,1),Z0(r,1,0))}function Gf(r){for(;r===xl;)xl=Ds[--qs],Ds[qs]=null,ec=Ds[--qs],Ds[qs]=null;for(;r===Va;)Va=An[--Pn],An[Pn]=null,qi=An[--Pn],An[Pn]=null,Di=An[--Pn],An[Pn]=null}var fn=null,pn=null,tr=!1,Vn=null;function $0(r,s){var l=Nn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=r,s=r.deletions,s===null?(r.deletions=[l],r.flags|=16):s.push(l)}function x0(r,s){switch(r.tag){case 5:var l=r.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,fn=r,pn=sa(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,fn=r,pn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=Va!==null?{id:Di,overflow:qi}:null,r.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Nn(18,null,null,0),l.stateNode=s,l.return=r,r.child=l,fn=r,pn=null,!0):!1;default:return!1}}function Kf(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Yf(r){if(tr){var s=pn;if(s){var l=s;if(!x0(r,s)){if(Kf(r))throw Error(t(418));s=sa(l.nextSibling);var d=fn;s&&x0(r,s)?$0(d,l):(r.flags=r.flags&-4097|2,tr=!1,fn=r)}}else{if(Kf(r))throw Error(t(418));r.flags=r.flags&-4097|2,tr=!1,fn=r}}}function ew(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;fn=r}function tc(r){if(r!==fn)return!1;if(!tr)return ew(r),tr=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Uf(r.type,r.memoizedProps)),s&&(s=pn)){if(Kf(r))throw tw(),Error(t(418));for(;s;)$0(r,s),s=sa(s.nextSibling)}if(ew(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(t(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(s===0){pn=sa(r.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}r=r.nextSibling}pn=null}}else pn=fn?sa(r.stateNode.nextSibling):null;return!0}function tw(){for(var r=pn;r;)r=sa(r.nextSibling)}function ks(){pn=fn=null,tr=!1}function Xf(r){Vn===null?Vn=[r]:Vn.push(r)}var i2=S.ReactCurrentBatchConfig;function vu(r,s,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(t(309));var d=l.stateNode}if(!d)throw Error(t(147,r));var h=d,w=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===w?s.ref:(s=function(D){var J=h.refs;D===null?delete J[w]:J[w]=D},s._stringRef=w,s)}if(typeof r!="string")throw Error(t(284));if(!l._owner)throw Error(t(290,r))}return r}function rc(r,s){throw r=Object.prototype.toString.call(s),Error(t(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function rw(r){var s=r._init;return s(r._payload)}function nw(r){function s(me,le){if(r){var ve=me.deletions;ve===null?(me.deletions=[le],me.flags|=16):ve.push(le)}}function l(me,le){if(!r)return null;for(;le!==null;)s(me,le),le=le.sibling;return null}function d(me,le){for(me=new Map;le!==null;)le.key!==null?me.set(le.key,le):me.set(le.index,le),le=le.sibling;return me}function h(me,le){return me=va(me,le),me.index=0,me.sibling=null,me}function w(me,le,ve){return me.index=ve,r?(ve=me.alternate,ve!==null?(ve=ve.index,ve<le?(me.flags|=2,le):ve):(me.flags|=2,le)):(me.flags|=1048576,le)}function D(me){return r&&me.alternate===null&&(me.flags|=2),me}function J(me,le,ve,Fe){return le===null||le.tag!==6?(le=Bp(ve,me.mode,Fe),le.return=me,le):(le=h(le,ve),le.return=me,le)}function ie(me,le,ve,Fe){var ct=ve.type;return ct===j?De(me,le,ve.props.children,Fe,ve.key):le!==null&&(le.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ne&&rw(ct)===le.type)?(Fe=h(le,ve.props),Fe.ref=vu(me,le,ve),Fe.return=me,Fe):(Fe=Ac(ve.type,ve.key,ve.props,null,me.mode,Fe),Fe.ref=vu(me,le,ve),Fe.return=me,Fe)}function Ee(me,le,ve,Fe){return le===null||le.tag!==4||le.stateNode.containerInfo!==ve.containerInfo||le.stateNode.implementation!==ve.implementation?(le=Fp(ve,me.mode,Fe),le.return=me,le):(le=h(le,ve.children||[]),le.return=me,le)}function De(me,le,ve,Fe,ct){return le===null||le.tag!==7?(le=Qa(ve,me.mode,Fe,ct),le.return=me,le):(le=h(le,ve),le.return=me,le)}function ke(me,le,ve){if(typeof le=="string"&&le!==""||typeof le=="number")return le=Bp(""+le,me.mode,ve),le.return=me,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case v:return ve=Ac(le.type,le.key,le.props,null,me.mode,ve),ve.ref=vu(me,null,le),ve.return=me,ve;case O:return le=Fp(le,me.mode,ve),le.return=me,le;case Ne:var Fe=le._init;return ke(me,Fe(le._payload),ve)}if(Bt(le)||ue(le))return le=Qa(le,me.mode,ve,null),le.return=me,le;rc(me,le)}return null}function Le(me,le,ve,Fe){var ct=le!==null?le.key:null;if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ct!==null?null:J(me,le,""+ve,Fe);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case v:return ve.key===ct?ie(me,le,ve,Fe):null;case O:return ve.key===ct?Ee(me,le,ve,Fe):null;case Ne:return ct=ve._init,Le(me,le,ct(ve._payload),Fe)}if(Bt(ve)||ue(ve))return ct!==null?null:De(me,le,ve,Fe,null);rc(me,ve)}return null}function Qe(me,le,ve,Fe,ct){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number")return me=me.get(ve)||null,J(le,me,""+Fe,ct);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case v:return me=me.get(Fe.key===null?ve:Fe.key)||null,ie(le,me,Fe,ct);case O:return me=me.get(Fe.key===null?ve:Fe.key)||null,Ee(le,me,Fe,ct);case Ne:var ht=Fe._init;return Qe(me,le,ve,ht(Fe._payload),ct)}if(Bt(Fe)||ue(Fe))return me=me.get(ve)||null,De(le,me,Fe,ct,null);rc(le,Fe)}return null}function ot(me,le,ve,Fe){for(var ct=null,ht=null,gt=le,Et=le=0,Ar=null;gt!==null&&Et<ve.length;Et++){gt.index>Et?(Ar=gt,gt=null):Ar=gt.sibling;var qt=Le(me,gt,ve[Et],Fe);if(qt===null){gt===null&&(gt=Ar);break}r&&gt&&qt.alternate===null&&s(me,gt),le=w(qt,le,Et),ht===null?ct=qt:ht.sibling=qt,ht=qt,gt=Ar}if(Et===ve.length)return l(me,gt),tr&&Ha(me,Et),ct;if(gt===null){for(;Et<ve.length;Et++)gt=ke(me,ve[Et],Fe),gt!==null&&(le=w(gt,le,Et),ht===null?ct=gt:ht.sibling=gt,ht=gt);return tr&&Ha(me,Et),ct}for(gt=d(me,gt);Et<ve.length;Et++)Ar=Qe(gt,me,Et,ve[Et],Fe),Ar!==null&&(r&&Ar.alternate!==null&&gt.delete(Ar.key===null?Et:Ar.key),le=w(Ar,le,Et),ht===null?ct=Ar:ht.sibling=Ar,ht=Ar);return r&&gt.forEach(function(_a){return s(me,_a)}),tr&&Ha(me,Et),ct}function lt(me,le,ve,Fe){var ct=ue(ve);if(typeof ct!="function")throw Error(t(150));if(ve=ct.call(ve),ve==null)throw Error(t(151));for(var ht=ct=null,gt=le,Et=le=0,Ar=null,qt=ve.next();gt!==null&&!qt.done;Et++,qt=ve.next()){gt.index>Et?(Ar=gt,gt=null):Ar=gt.sibling;var _a=Le(me,gt,qt.value,Fe);if(_a===null){gt===null&&(gt=Ar);break}r&&gt&&_a.alternate===null&&s(me,gt),le=w(_a,le,Et),ht===null?ct=_a:ht.sibling=_a,ht=_a,gt=Ar}if(qt.done)return l(me,gt),tr&&Ha(me,Et),ct;if(gt===null){for(;!qt.done;Et++,qt=ve.next())qt=ke(me,qt.value,Fe),qt!==null&&(le=w(qt,le,Et),ht===null?ct=qt:ht.sibling=qt,ht=qt);return tr&&Ha(me,Et),ct}for(gt=d(me,gt);!qt.done;Et++,qt=ve.next())qt=Qe(gt,me,Et,qt.value,Fe),qt!==null&&(r&&qt.alternate!==null&&gt.delete(qt.key===null?Et:qt.key),le=w(qt,le,Et),ht===null?ct=qt:ht.sibling=qt,ht=qt);return r&&gt.forEach(function(k2){return s(me,k2)}),tr&&Ha(me,Et),ct}function yr(me,le,ve,Fe){if(typeof ve=="object"&&ve!==null&&ve.type===j&&ve.key===null&&(ve=ve.props.children),typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case v:e:{for(var ct=ve.key,ht=le;ht!==null;){if(ht.key===ct){if(ct=ve.type,ct===j){if(ht.tag===7){l(me,ht.sibling),le=h(ht,ve.props.children),le.return=me,me=le;break e}}else if(ht.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ne&&rw(ct)===ht.type){l(me,ht.sibling),le=h(ht,ve.props),le.ref=vu(me,ht,ve),le.return=me,me=le;break e}l(me,ht);break}else s(me,ht);ht=ht.sibling}ve.type===j?(le=Qa(ve.props.children,me.mode,Fe,ve.key),le.return=me,me=le):(Fe=Ac(ve.type,ve.key,ve.props,null,me.mode,Fe),Fe.ref=vu(me,le,ve),Fe.return=me,me=Fe)}return D(me);case O:e:{for(ht=ve.key;le!==null;){if(le.key===ht)if(le.tag===4&&le.stateNode.containerInfo===ve.containerInfo&&le.stateNode.implementation===ve.implementation){l(me,le.sibling),le=h(le,ve.children||[]),le.return=me,me=le;break e}else{l(me,le);break}else s(me,le);le=le.sibling}le=Fp(ve,me.mode,Fe),le.return=me,me=le}return D(me);case Ne:return ht=ve._init,yr(me,le,ht(ve._payload),Fe)}if(Bt(ve))return ot(me,le,ve,Fe);if(ue(ve))return lt(me,le,ve,Fe);rc(me,ve)}return typeof ve=="string"&&ve!==""||typeof ve=="number"?(ve=""+ve,le!==null&&le.tag===6?(l(me,le.sibling),le=h(le,ve),le.return=me,me=le):(l(me,le),le=Bp(ve,me.mode,Fe),le.return=me,me=le),D(me)):l(me,le)}return yr}var Us=nw(!0),iw=nw(!1),nc=ua(null),ic=null,Bs=null,Jf=null;function Qf(){Jf=Bs=ic=null}function Zf(r){var s=nc.current;$t(nc),r._currentValue=s}function $f(r,s,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),r===l)break;r=r.return}}function Fs(r,s){ic=r,Jf=Bs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(nn=!0),r.firstContext=null)}function In(r){var s=r._currentValue;if(Jf!==r)if(r={context:r,memoizedValue:s,next:null},Bs===null){if(ic===null)throw Error(t(308));Bs=r,ic.dependencies={lanes:0,firstContext:r}}else Bs=Bs.next=r;return s}var za=null;function xf(r){za===null?za=[r]:za.push(r)}function aw(r,s,l,d){var h=s.interleaved;return h===null?(l.next=l,xf(s)):(l.next=h.next,h.next=l),s.interleaved=l,ki(r,d)}function ki(r,s){r.lanes|=s;var l=r.alternate;for(l!==null&&(l.lanes|=s),l=r,r=r.return;r!==null;)r.childLanes|=s,l=r.alternate,l!==null&&(l.childLanes|=s),l=r,r=r.return;return l.tag===3?l.stateNode:null}var da=!1;function ep(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ow(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Ui(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function fa(r,s,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(jt&2)!==0){var h=d.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),d.pending=s,ki(r,l)}return h=d.interleaved,h===null?(s.next=s,xf(d)):(s.next=h.next,h.next=s),d.interleaved=s,ki(r,l)}function ac(r,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var d=s.lanes;d&=r.pendingLanes,l|=d,s.lanes=l,Ia(r,l)}}function sw(r,s){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var h=null,w=null;if(l=l.firstBaseUpdate,l!==null){do{var D={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};w===null?h=w=D:w=w.next=D,l=l.next}while(l!==null);w===null?h=w=s:w=w.next=s}else h=w=s;l={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:w,shared:d.shared,effects:d.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=s:r.next=s,l.lastBaseUpdate=s}function oc(r,s,l,d){var h=r.updateQueue;da=!1;var w=h.firstBaseUpdate,D=h.lastBaseUpdate,J=h.shared.pending;if(J!==null){h.shared.pending=null;var ie=J,Ee=ie.next;ie.next=null,D===null?w=Ee:D.next=Ee,D=ie;var De=r.alternate;De!==null&&(De=De.updateQueue,J=De.lastBaseUpdate,J!==D&&(J===null?De.firstBaseUpdate=Ee:J.next=Ee,De.lastBaseUpdate=ie))}if(w!==null){var ke=h.baseState;D=0,De=Ee=ie=null,J=w;do{var Le=J.lane,Qe=J.eventTime;if((d&Le)===Le){De!==null&&(De=De.next={eventTime:Qe,lane:0,tag:J.tag,payload:J.payload,callback:J.callback,next:null});e:{var ot=r,lt=J;switch(Le=s,Qe=l,lt.tag){case 1:if(ot=lt.payload,typeof ot=="function"){ke=ot.call(Qe,ke,Le);break e}ke=ot;break e;case 3:ot.flags=ot.flags&-65537|128;case 0:if(ot=lt.payload,Le=typeof ot=="function"?ot.call(Qe,ke,Le):ot,Le==null)break e;ke=X({},ke,Le);break e;case 2:da=!0}}J.callback!==null&&J.lane!==0&&(r.flags|=64,Le=h.effects,Le===null?h.effects=[J]:Le.push(J))}else Qe={eventTime:Qe,lane:Le,tag:J.tag,payload:J.payload,callback:J.callback,next:null},De===null?(Ee=De=Qe,ie=ke):De=De.next=Qe,D|=Le;if(J=J.next,J===null){if(J=h.shared.pending,J===null)break;Le=J,J=Le.next,Le.next=null,h.lastBaseUpdate=Le,h.shared.pending=null}}while(!0);if(De===null&&(ie=ke),h.baseState=ie,h.firstBaseUpdate=Ee,h.lastBaseUpdate=De,s=h.shared.interleaved,s!==null){h=s;do D|=h.lane,h=h.next;while(h!==s)}else w===null&&(h.shared.lanes=0);Ka|=D,r.lanes=D,r.memoizedState=ke}}function uw(r,s,l){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var d=r[s],h=d.callback;if(h!==null){if(d.callback=null,d=l,typeof h!="function")throw Error(t(191,h));h.call(d)}}}var _u={},wi=ua(_u),Eu=ua(_u),bu=ua(_u);function Wa(r){if(r===_u)throw Error(t(174));return r}function tp(r,s){switch(Xt(bu,s),Xt(Eu,r),Xt(wi,_u),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ln(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=ln(s,r)}$t(wi),Xt(wi,s)}function Vs(){$t(wi),$t(Eu),$t(bu)}function lw(r){Wa(bu.current);var s=Wa(wi.current),l=ln(s,r.type);s!==l&&(Xt(Eu,r),Xt(wi,l))}function rp(r){Eu.current===r&&($t(wi),$t(Eu))}var ir=ua(0);function sc(r){for(var s=r;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var np=[];function ip(){for(var r=0;r<np.length;r++)np[r]._workInProgressVersionPrimary=null;np.length=0}var uc=S.ReactCurrentDispatcher,ap=S.ReactCurrentBatchConfig,Ga=0,ar=null,br=null,Sr=null,lc=!1,wu=!1,Tu=0,a2=0;function Ur(){throw Error(t(321))}function op(r,s){if(s===null)return!1;for(var l=0;l<s.length&&l<r.length;l++)if(!Fn(r[l],s[l]))return!1;return!0}function sp(r,s,l,d,h,w){if(Ga=w,ar=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,uc.current=r===null||r.memoizedState===null?l2:c2,r=l(d,h),wu){w=0;do{if(wu=!1,Tu=0,25<=w)throw Error(t(301));w+=1,Sr=br=null,s.updateQueue=null,uc.current=d2,r=l(d,h)}while(wu)}if(uc.current=fc,s=br!==null&&br.next!==null,Ga=0,Sr=br=ar=null,lc=!1,s)throw Error(t(300));return r}function up(){var r=Tu!==0;return Tu=0,r}function Ti(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sr===null?ar.memoizedState=Sr=r:Sr=Sr.next=r,Sr}function Rn(){if(br===null){var r=ar.alternate;r=r!==null?r.memoizedState:null}else r=br.next;var s=Sr===null?ar.memoizedState:Sr.next;if(s!==null)Sr=s,br=r;else{if(r===null)throw Error(t(310));br=r,r={memoizedState:br.memoizedState,baseState:br.baseState,baseQueue:br.baseQueue,queue:br.queue,next:null},Sr===null?ar.memoizedState=Sr=r:Sr=Sr.next=r}return Sr}function Su(r,s){return typeof s=="function"?s(r):s}function lp(r){var s=Rn(),l=s.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=r;var d=br,h=d.baseQueue,w=l.pending;if(w!==null){if(h!==null){var D=h.next;h.next=w.next,w.next=D}d.baseQueue=h=w,l.pending=null}if(h!==null){w=h.next,d=d.baseState;var J=D=null,ie=null,Ee=w;do{var De=Ee.lane;if((Ga&De)===De)ie!==null&&(ie=ie.next={lane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),d=Ee.hasEagerState?Ee.eagerState:r(d,Ee.action);else{var ke={lane:De,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};ie===null?(J=ie=ke,D=d):ie=ie.next=ke,ar.lanes|=De,Ka|=De}Ee=Ee.next}while(Ee!==null&&Ee!==w);ie===null?D=d:ie.next=J,Fn(d,s.memoizedState)||(nn=!0),s.memoizedState=d,s.baseState=D,s.baseQueue=ie,l.lastRenderedState=d}if(r=l.interleaved,r!==null){h=r;do w=h.lane,ar.lanes|=w,Ka|=w,h=h.next;while(h!==r)}else h===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function cp(r){var s=Rn(),l=s.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=r;var d=l.dispatch,h=l.pending,w=s.memoizedState;if(h!==null){l.pending=null;var D=h=h.next;do w=r(w,D.action),D=D.next;while(D!==h);Fn(w,s.memoizedState)||(nn=!0),s.memoizedState=w,s.baseQueue===null&&(s.baseState=w),l.lastRenderedState=w}return[w,d]}function cw(){}function dw(r,s){var l=ar,d=Rn(),h=s(),w=!Fn(d.memoizedState,h);if(w&&(d.memoizedState=h,nn=!0),d=d.queue,dp(yw.bind(null,l,d,r),[r]),d.getSnapshot!==s||w||Sr!==null&&Sr.memoizedState.tag&1){if(l.flags|=2048,Ou(9,pw.bind(null,l,d,h,s),void 0,null),Or===null)throw Error(t(349));(Ga&30)!==0||fw(l,s,h)}return h}function fw(r,s,l){r.flags|=16384,r={getSnapshot:s,value:l},s=ar.updateQueue,s===null?(s={lastEffect:null,stores:null},ar.updateQueue=s,s.stores=[r]):(l=s.stores,l===null?s.stores=[r]:l.push(r))}function pw(r,s,l,d){s.value=l,s.getSnapshot=d,mw(s)&&hw(r)}function yw(r,s,l){return l(function(){mw(s)&&hw(r)})}function mw(r){var s=r.getSnapshot;r=r.value;try{var l=s();return!Fn(r,l)}catch{return!0}}function hw(r){var s=ki(r,1);s!==null&&Gn(s,r,1,-1)}function gw(r){var s=Ti();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:r},s.queue=r,r=r.dispatch=u2.bind(null,ar,r),[s.memoizedState,r]}function Ou(r,s,l,d){return r={tag:r,create:s,destroy:l,deps:d,next:null},s=ar.updateQueue,s===null?(s={lastEffect:null,stores:null},ar.updateQueue=s,s.lastEffect=r.next=r):(l=s.lastEffect,l===null?s.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,s.lastEffect=r)),r}function vw(){return Rn().memoizedState}function cc(r,s,l,d){var h=Ti();ar.flags|=r,h.memoizedState=Ou(1|s,l,void 0,d===void 0?null:d)}function dc(r,s,l,d){var h=Rn();d=d===void 0?null:d;var w=void 0;if(br!==null){var D=br.memoizedState;if(w=D.destroy,d!==null&&op(d,D.deps)){h.memoizedState=Ou(s,l,w,d);return}}ar.flags|=r,h.memoizedState=Ou(1|s,l,w,d)}function _w(r,s){return cc(8390656,8,r,s)}function dp(r,s){return dc(2048,8,r,s)}function Ew(r,s){return dc(4,2,r,s)}function bw(r,s){return dc(4,4,r,s)}function ww(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Tw(r,s,l){return l=l!=null?l.concat([r]):null,dc(4,4,ww.bind(null,s,r),l)}function fp(){}function Sw(r,s){var l=Rn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&op(s,d[1])?d[0]:(l.memoizedState=[r,s],r)}function Ow(r,s){var l=Rn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&op(s,d[1])?d[0]:(r=r(),l.memoizedState=[r,s],r)}function Aw(r,s,l){return(Ga&21)===0?(r.baseState&&(r.baseState=!1,nn=!0),r.memoizedState=l):(Fn(l,s)||(l=lu(),ar.lanes|=l,Ka|=l,r.baseState=!0),s)}function o2(r,s){var l=Ut;Ut=l!==0&&4>l?l:4,r(!0);var d=ap.transition;ap.transition={};try{r(!1),s()}finally{Ut=l,ap.transition=d}}function Pw(){return Rn().memoizedState}function s2(r,s,l){var d=ha(r);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Iw(r))Rw(s,l);else if(l=aw(r,s,l,d),l!==null){var h=Yr();Gn(l,r,d,h),Mw(l,s,d)}}function u2(r,s,l){var d=ha(r),h={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Iw(r))Rw(s,h);else{var w=r.alternate;if(r.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var D=s.lastRenderedState,J=w(D,l);if(h.hasEagerState=!0,h.eagerState=J,Fn(J,D)){var ie=s.interleaved;ie===null?(h.next=h,xf(s)):(h.next=ie.next,ie.next=h),s.interleaved=h;return}}catch{}l=aw(r,s,h,d),l!==null&&(h=Yr(),Gn(l,r,d,h),Mw(l,s,d))}}function Iw(r){var s=r.alternate;return r===ar||s!==null&&s===ar}function Rw(r,s){wu=lc=!0;var l=r.pending;l===null?s.next=s:(s.next=l.next,l.next=s),r.pending=s}function Mw(r,s,l){if((l&4194240)!==0){var d=s.lanes;d&=r.pendingLanes,l|=d,s.lanes=l,Ia(r,l)}}var fc={readContext:In,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},l2={readContext:In,useCallback:function(r,s){return Ti().memoizedState=[r,s===void 0?null:s],r},useContext:In,useEffect:_w,useImperativeHandle:function(r,s,l){return l=l!=null?l.concat([r]):null,cc(4194308,4,ww.bind(null,s,r),l)},useLayoutEffect:function(r,s){return cc(4194308,4,r,s)},useInsertionEffect:function(r,s){return cc(4,2,r,s)},useMemo:function(r,s){var l=Ti();return s=s===void 0?null:s,r=r(),l.memoizedState=[r,s],r},useReducer:function(r,s,l){var d=Ti();return s=l!==void 0?l(s):s,d.memoizedState=d.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},d.queue=r,r=r.dispatch=s2.bind(null,ar,r),[d.memoizedState,r]},useRef:function(r){var s=Ti();return r={current:r},s.memoizedState=r},useState:gw,useDebugValue:fp,useDeferredValue:function(r){return Ti().memoizedState=r},useTransition:function(){var r=gw(!1),s=r[0];return r=o2.bind(null,r[1]),Ti().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,l){var d=ar,h=Ti();if(tr){if(l===void 0)throw Error(t(407));l=l()}else{if(l=s(),Or===null)throw Error(t(349));(Ga&30)!==0||fw(d,s,l)}h.memoizedState=l;var w={value:l,getSnapshot:s};return h.queue=w,_w(yw.bind(null,d,w,r),[r]),d.flags|=2048,Ou(9,pw.bind(null,d,w,l,s),void 0,null),l},useId:function(){var r=Ti(),s=Or.identifierPrefix;if(tr){var l=qi,d=Di;l=(d&~(1<<32-Wr(d)-1)).toString(32)+l,s=":"+s+"R"+l,l=Tu++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=a2++,s=":"+s+"r"+l.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},c2={readContext:In,useCallback:Sw,useContext:In,useEffect:dp,useImperativeHandle:Tw,useInsertionEffect:Ew,useLayoutEffect:bw,useMemo:Ow,useReducer:lp,useRef:vw,useState:function(){return lp(Su)},useDebugValue:fp,useDeferredValue:function(r){var s=Rn();return Aw(s,br.memoizedState,r)},useTransition:function(){var r=lp(Su)[0],s=Rn().memoizedState;return[r,s]},useMutableSource:cw,useSyncExternalStore:dw,useId:Pw,unstable_isNewReconciler:!1},d2={readContext:In,useCallback:Sw,useContext:In,useEffect:dp,useImperativeHandle:Tw,useInsertionEffect:Ew,useLayoutEffect:bw,useMemo:Ow,useReducer:cp,useRef:vw,useState:function(){return cp(Su)},useDebugValue:fp,useDeferredValue:function(r){var s=Rn();return br===null?s.memoizedState=r:Aw(s,br.memoizedState,r)},useTransition:function(){var r=cp(Su)[0],s=Rn().memoizedState;return[r,s]},useMutableSource:cw,useSyncExternalStore:dw,useId:Pw,unstable_isNewReconciler:!1};function Hn(r,s){if(r&&r.defaultProps){s=X({},s),r=r.defaultProps;for(var l in r)s[l]===void 0&&(s[l]=r[l]);return s}return s}function pp(r,s,l,d){s=r.memoizedState,l=l(d,s),l=l==null?s:X({},s,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var pc={isMounted:function(r){return(r=r._reactInternals)?Dr(r)===r:!1},enqueueSetState:function(r,s,l){r=r._reactInternals;var d=Yr(),h=ha(r),w=Ui(d,h);w.payload=s,l!=null&&(w.callback=l),s=fa(r,w,h),s!==null&&(Gn(s,r,h,d),ac(s,r,h))},enqueueReplaceState:function(r,s,l){r=r._reactInternals;var d=Yr(),h=ha(r),w=Ui(d,h);w.tag=1,w.payload=s,l!=null&&(w.callback=l),s=fa(r,w,h),s!==null&&(Gn(s,r,h,d),ac(s,r,h))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var l=Yr(),d=ha(r),h=Ui(l,d);h.tag=2,s!=null&&(h.callback=s),s=fa(r,h,d),s!==null&&(Gn(s,r,d,l),ac(s,r,d))}};function Nw(r,s,l,d,h,w,D){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,w,D):s.prototype&&s.prototype.isPureReactComponent?!du(l,d)||!du(h,w):!0}function Cw(r,s,l){var d=!1,h=la,w=s.contextType;return typeof w=="object"&&w!==null?w=In(w):(h=rn(s)?Fa:kr.current,d=s.contextTypes,w=(d=d!=null)?Ls(r,h):la),s=new s(l,w),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=pc,r.stateNode=s,s._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=w),s}function jw(r,s,l,d){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,d),s.state!==r&&pc.enqueueReplaceState(s,s.state,null)}function yp(r,s,l,d){var h=r.stateNode;h.props=l,h.state=r.memoizedState,h.refs={},ep(r);var w=s.contextType;typeof w=="object"&&w!==null?h.context=In(w):(w=rn(s)?Fa:kr.current,h.context=Ls(r,w)),h.state=r.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(pp(r,s,w,l),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&pc.enqueueReplaceState(h,h.state,null),oc(r,l,h,d),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function Hs(r,s){try{var l="",d=s;do l+=W(d),d=d.return;while(d);var h=l}catch(w){h=`
8
- Error generating stack: `+w.message+`
9
- `+w.stack}return{value:r,source:s,stack:h,digest:null}}function mp(r,s,l){return{value:r,source:null,stack:l??null,digest:s??null}}function hp(r,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var f2=typeof WeakMap=="function"?WeakMap:Map;function Lw(r,s,l){l=Ui(-1,l),l.tag=3,l.payload={element:null};var d=s.value;return l.callback=function(){Ec||(Ec=!0,Np=d),hp(r,s)},l}function Dw(r,s,l){l=Ui(-1,l),l.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var h=s.value;l.payload=function(){return d(h)},l.callback=function(){hp(r,s)}}var w=r.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(l.callback=function(){hp(r,s),typeof d!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var D=s.stack;this.componentDidCatch(s.value,{componentStack:D!==null?D:""})}),l}function qw(r,s,l){var d=r.pingCache;if(d===null){d=r.pingCache=new f2;var h=new Set;d.set(s,h)}else h=d.get(s),h===void 0&&(h=new Set,d.set(s,h));h.has(l)||(h.add(l),r=A2.bind(null,r,s,l),s.then(r,r))}function kw(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Uw(r,s,l,d,h){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=Ui(-1,1),s.tag=2,fa(l,s,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var p2=S.ReactCurrentOwner,nn=!1;function Kr(r,s,l,d){s.child=r===null?iw(s,null,l,d):Us(s,r.child,l,d)}function Bw(r,s,l,d,h){l=l.render;var w=s.ref;return Fs(s,h),d=sp(r,s,l,d,w,h),l=up(),r!==null&&!nn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Bi(r,s,h)):(tr&&l&&Wf(s),s.flags|=1,Kr(r,s,d,h),s.child)}function Fw(r,s,l,d,h){if(r===null){var w=l.type;return typeof w=="function"&&!Up(w)&&w.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=w,Vw(r,s,w,d,h)):(r=Ac(l.type,null,d,s,s.mode,h),r.ref=s.ref,r.return=s,s.child=r)}if(w=r.child,(r.lanes&h)===0){var D=w.memoizedProps;if(l=l.compare,l=l!==null?l:du,l(D,d)&&r.ref===s.ref)return Bi(r,s,h)}return s.flags|=1,r=va(w,d),r.ref=s.ref,r.return=s,s.child=r}function Vw(r,s,l,d,h){if(r!==null){var w=r.memoizedProps;if(du(w,d)&&r.ref===s.ref)if(nn=!1,s.pendingProps=d=w,(r.lanes&h)!==0)(r.flags&131072)!==0&&(nn=!0);else return s.lanes=r.lanes,Bi(r,s,h)}return gp(r,s,l,d,h)}function Hw(r,s,l){var d=s.pendingProps,h=d.children,w=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xt(Ws,yn),yn|=l;else{if((l&1073741824)===0)return r=w!==null?w.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Xt(Ws,yn),yn|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=w!==null?w.baseLanes:l,Xt(Ws,yn),yn|=d}else w!==null?(d=w.baseLanes|l,s.memoizedState=null):d=l,Xt(Ws,yn),yn|=d;return Kr(r,s,h,l),s.child}function zw(r,s){var l=s.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function gp(r,s,l,d,h){var w=rn(l)?Fa:kr.current;return w=Ls(s,w),Fs(s,h),l=sp(r,s,l,d,w,h),d=up(),r!==null&&!nn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,Bi(r,s,h)):(tr&&d&&Wf(s),s.flags|=1,Kr(r,s,l,h),s.child)}function Ww(r,s,l,d,h){if(rn(l)){var w=!0;Zl(s)}else w=!1;if(Fs(s,h),s.stateNode===null)mc(r,s),Cw(s,l,d),yp(s,l,d,h),d=!0;else if(r===null){var D=s.stateNode,J=s.memoizedProps;D.props=J;var ie=D.context,Ee=l.contextType;typeof Ee=="object"&&Ee!==null?Ee=In(Ee):(Ee=rn(l)?Fa:kr.current,Ee=Ls(s,Ee));var De=l.getDerivedStateFromProps,ke=typeof De=="function"||typeof D.getSnapshotBeforeUpdate=="function";ke||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(J!==d||ie!==Ee)&&jw(s,D,d,Ee),da=!1;var Le=s.memoizedState;D.state=Le,oc(s,d,D,h),ie=s.memoizedState,J!==d||Le!==ie||tn.current||da?(typeof De=="function"&&(pp(s,l,De,d),ie=s.memoizedState),(J=da||Nw(s,l,J,d,Le,ie,Ee))?(ke||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(s.flags|=4194308)):(typeof D.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=ie),D.props=d,D.state=ie,D.context=Ee,d=J):(typeof D.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{D=s.stateNode,ow(r,s),J=s.memoizedProps,Ee=s.type===s.elementType?J:Hn(s.type,J),D.props=Ee,ke=s.pendingProps,Le=D.context,ie=l.contextType,typeof ie=="object"&&ie!==null?ie=In(ie):(ie=rn(l)?Fa:kr.current,ie=Ls(s,ie));var Qe=l.getDerivedStateFromProps;(De=typeof Qe=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(J!==ke||Le!==ie)&&jw(s,D,d,ie),da=!1,Le=s.memoizedState,D.state=Le,oc(s,d,D,h);var ot=s.memoizedState;J!==ke||Le!==ot||tn.current||da?(typeof Qe=="function"&&(pp(s,l,Qe,d),ot=s.memoizedState),(Ee=da||Nw(s,l,Ee,d,Le,ot,ie)||!1)?(De||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(d,ot,ie),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(d,ot,ie)),typeof D.componentDidUpdate=="function"&&(s.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof D.componentDidUpdate!="function"||J===r.memoizedProps&&Le===r.memoizedState||(s.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===r.memoizedProps&&Le===r.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=ot),D.props=d,D.state=ot,D.context=ie,d=Ee):(typeof D.componentDidUpdate!="function"||J===r.memoizedProps&&Le===r.memoizedState||(s.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===r.memoizedProps&&Le===r.memoizedState||(s.flags|=1024),d=!1)}return vp(r,s,l,d,w,h)}function vp(r,s,l,d,h,w){zw(r,s);var D=(s.flags&128)!==0;if(!d&&!D)return h&&J0(s,l,!1),Bi(r,s,w);d=s.stateNode,p2.current=s;var J=D&&typeof l.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,r!==null&&D?(s.child=Us(s,r.child,null,w),s.child=Us(s,null,J,w)):Kr(r,s,J,w),s.memoizedState=d.state,h&&J0(s,l,!0),s.child}function Gw(r){var s=r.stateNode;s.pendingContext?Y0(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Y0(r,s.context,!1),tp(r,s.containerInfo)}function Kw(r,s,l,d,h){return ks(),Xf(h),s.flags|=256,Kr(r,s,l,d),s.child}var _p={dehydrated:null,treeContext:null,retryLane:0};function Ep(r){return{baseLanes:r,cachePool:null,transitions:null}}function Yw(r,s,l){var d=s.pendingProps,h=ir.current,w=!1,D=(s.flags&128)!==0,J;if((J=D)||(J=r!==null&&r.memoizedState===null?!1:(h&2)!==0),J?(w=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Xt(ir,h&1),r===null)return Yf(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(D=d.children,r=d.fallback,w?(d=s.mode,w=s.child,D={mode:"hidden",children:D},(d&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=D):w=Pc(D,d,0,null),r=Qa(r,d,l,null),w.return=s,r.return=s,w.sibling=r,s.child=w,s.child.memoizedState=Ep(l),s.memoizedState=_p,r):bp(s,D));if(h=r.memoizedState,h!==null&&(J=h.dehydrated,J!==null))return y2(r,s,D,d,J,h,l);if(w){w=d.fallback,D=s.mode,h=r.child,J=h.sibling;var ie={mode:"hidden",children:d.children};return(D&1)===0&&s.child!==h?(d=s.child,d.childLanes=0,d.pendingProps=ie,s.deletions=null):(d=va(h,ie),d.subtreeFlags=h.subtreeFlags&14680064),J!==null?w=va(J,w):(w=Qa(w,D,l,null),w.flags|=2),w.return=s,d.return=s,d.sibling=w,s.child=d,d=w,w=s.child,D=r.child.memoizedState,D=D===null?Ep(l):{baseLanes:D.baseLanes|l,cachePool:null,transitions:D.transitions},w.memoizedState=D,w.childLanes=r.childLanes&~l,s.memoizedState=_p,d}return w=r.child,r=w.sibling,d=va(w,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=l),d.return=s,d.sibling=null,r!==null&&(l=s.deletions,l===null?(s.deletions=[r],s.flags|=16):l.push(r)),s.child=d,s.memoizedState=null,d}function bp(r,s){return s=Pc({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function yc(r,s,l,d){return d!==null&&Xf(d),Us(s,r.child,null,l),r=bp(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function y2(r,s,l,d,h,w,D){if(l)return s.flags&256?(s.flags&=-257,d=mp(Error(t(422))),yc(r,s,D,d)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(w=d.fallback,h=s.mode,d=Pc({mode:"visible",children:d.children},h,0,null),w=Qa(w,h,D,null),w.flags|=2,d.return=s,w.return=s,d.sibling=w,s.child=d,(s.mode&1)!==0&&Us(s,r.child,null,D),s.child.memoizedState=Ep(D),s.memoizedState=_p,w);if((s.mode&1)===0)return yc(r,s,D,null);if(h.data==="$!"){if(d=h.nextSibling&&h.nextSibling.dataset,d)var J=d.dgst;return d=J,w=Error(t(419)),d=mp(w,d,void 0),yc(r,s,D,d)}if(J=(D&r.childLanes)!==0,nn||J){if(d=Or,d!==null){switch(D&-D){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(d.suspendedLanes|D))!==0?0:h,h!==0&&h!==w.retryLane&&(w.retryLane=h,ki(r,h),Gn(d,r,h,-1))}return kp(),d=mp(Error(t(421))),yc(r,s,D,d)}return h.data==="$?"?(s.flags|=128,s.child=r.child,s=P2.bind(null,r),h._reactRetry=s,null):(r=w.treeContext,pn=sa(h.nextSibling),fn=s,tr=!0,Vn=null,r!==null&&(An[Pn++]=Di,An[Pn++]=qi,An[Pn++]=Va,Di=r.id,qi=r.overflow,Va=s),s=bp(s,d.children),s.flags|=4096,s)}function Xw(r,s,l){r.lanes|=s;var d=r.alternate;d!==null&&(d.lanes|=s),$f(r.return,s,l)}function wp(r,s,l,d,h){var w=r.memoizedState;w===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:h}:(w.isBackwards=s,w.rendering=null,w.renderingStartTime=0,w.last=d,w.tail=l,w.tailMode=h)}function Jw(r,s,l){var d=s.pendingProps,h=d.revealOrder,w=d.tail;if(Kr(r,s,d.children,l),d=ir.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Xw(r,l,s);else if(r.tag===19)Xw(r,l,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Xt(ir,d),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(l=s.child,h=null;l!==null;)r=l.alternate,r!==null&&sc(r)===null&&(h=l),l=l.sibling;l=h,l===null?(h=s.child,s.child=null):(h=l.sibling,l.sibling=null),wp(s,!1,h,l,w);break;case"backwards":for(l=null,h=s.child,s.child=null;h!==null;){if(r=h.alternate,r!==null&&sc(r)===null){s.child=h;break}r=h.sibling,h.sibling=l,l=h,h=r}wp(s,!0,l,null,w);break;case"together":wp(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function mc(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Bi(r,s,l){if(r!==null&&(s.dependencies=r.dependencies),Ka|=s.lanes,(l&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(t(153));if(s.child!==null){for(r=s.child,l=va(r,r.pendingProps),s.child=l,l.return=s;r.sibling!==null;)r=r.sibling,l=l.sibling=va(r,r.pendingProps),l.return=s;l.sibling=null}return s.child}function m2(r,s,l){switch(s.tag){case 3:Gw(s),ks();break;case 5:lw(s);break;case 1:rn(s.type)&&Zl(s);break;case 4:tp(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,h=s.memoizedProps.value;Xt(nc,d._currentValue),d._currentValue=h;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(Xt(ir,ir.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?Yw(r,s,l):(Xt(ir,ir.current&1),r=Bi(r,s,l),r!==null?r.sibling:null);Xt(ir,ir.current&1);break;case 19:if(d=(l&s.childLanes)!==0,(r.flags&128)!==0){if(d)return Jw(r,s,l);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Xt(ir,ir.current),d)break;return null;case 22:case 23:return s.lanes=0,Hw(r,s,l)}return Bi(r,s,l)}var Qw,Tp,Zw,$w;Qw=function(r,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Tp=function(){},Zw=function(r,s,l,d){var h=r.memoizedProps;if(h!==d){r=s.stateNode,Wa(wi.current);var w=null;switch(l){case"input":h=je(r,h),d=je(r,d),w=[];break;case"select":h=X({},h,{value:void 0}),d=X({},d,{value:void 0}),w=[];break;case"textarea":h=Hr(r,h),d=Hr(r,d),w=[];break;default:typeof h.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=Xl)}_n(l,d);var D;l=null;for(Ee in h)if(!d.hasOwnProperty(Ee)&&h.hasOwnProperty(Ee)&&h[Ee]!=null)if(Ee==="style"){var J=h[Ee];for(D in J)J.hasOwnProperty(D)&&(l||(l={}),l[D]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(i.hasOwnProperty(Ee)?w||(w=[]):(w=w||[]).push(Ee,null));for(Ee in d){var ie=d[Ee];if(J=h?.[Ee],d.hasOwnProperty(Ee)&&ie!==J&&(ie!=null||J!=null))if(Ee==="style")if(J){for(D in J)!J.hasOwnProperty(D)||ie&&ie.hasOwnProperty(D)||(l||(l={}),l[D]="");for(D in ie)ie.hasOwnProperty(D)&&J[D]!==ie[D]&&(l||(l={}),l[D]=ie[D])}else l||(w||(w=[]),w.push(Ee,l)),l=ie;else Ee==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,J=J?J.__html:void 0,ie!=null&&J!==ie&&(w=w||[]).push(Ee,ie)):Ee==="children"?typeof ie!="string"&&typeof ie!="number"||(w=w||[]).push(Ee,""+ie):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ee)?(ie!=null&&Ee==="onScroll"&&Zt("scroll",r),w||J===ie||(w=[])):(w=w||[]).push(Ee,ie))}l&&(w=w||[]).push("style",l);var Ee=w;(s.updateQueue=Ee)&&(s.flags|=4)}},$w=function(r,s,l,d){l!==d&&(s.flags|=4)};function Au(r,s){if(!tr)switch(r.tailMode){case"hidden":s=r.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Br(r){var s=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(s)for(var h=r.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags&14680064,d|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=d,r.childLanes=l,s}function h2(r,s,l){var d=s.pendingProps;switch(Gf(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(s),null;case 1:return rn(s.type)&&Ql(),Br(s),null;case 3:return d=s.stateNode,Vs(),$t(tn),$t(kr),ip(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(tc(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Vn!==null&&(Lp(Vn),Vn=null))),Tp(r,s),Br(s),null;case 5:rp(s);var h=Wa(bu.current);if(l=s.type,r!==null&&s.stateNode!=null)Zw(r,s,l,d,h),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(t(166));return Br(s),null}if(r=Wa(wi.current),tc(s)){d=s.stateNode,l=s.type;var w=s.memoizedProps;switch(d[bi]=s,d[hu]=w,r=(s.mode&1)!==0,l){case"dialog":Zt("cancel",d),Zt("close",d);break;case"iframe":case"object":case"embed":Zt("load",d);break;case"video":case"audio":for(h=0;h<pu.length;h++)Zt(pu[h],d);break;case"source":Zt("error",d);break;case"img":case"image":case"link":Zt("error",d),Zt("load",d);break;case"details":Zt("toggle",d);break;case"input":Ye(d,w),Zt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!w.multiple},Zt("invalid",d);break;case"textarea":sr(d,w),Zt("invalid",d)}_n(l,w),h=null;for(var D in w)if(w.hasOwnProperty(D)){var J=w[D];D==="children"?typeof J=="string"?d.textContent!==J&&(w.suppressHydrationWarning!==!0&&Yl(d.textContent,J,r),h=["children",J]):typeof J=="number"&&d.textContent!==""+J&&(w.suppressHydrationWarning!==!0&&Yl(d.textContent,J,r),h=["children",""+J]):i.hasOwnProperty(D)&&J!=null&&D==="onScroll"&&Zt("scroll",d)}switch(l){case"input":se(d),Lt(d,w,!0);break;case"textarea":se(d),Jr(d);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(d.onclick=Xl)}d=h,s.updateQueue=d,d!==null&&(s.flags|=4)}else{D=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Qr(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=D.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=D.createElement(l,{is:d.is}):(r=D.createElement(l),l==="select"&&(D=r,d.multiple?D.multiple=!0:d.size&&(D.size=d.size))):r=D.createElementNS(r,l),r[bi]=s,r[hu]=d,Qw(r,s,!1,!1),s.stateNode=r;e:{switch(D=Ii(l,d),l){case"dialog":Zt("cancel",r),Zt("close",r),h=d;break;case"iframe":case"object":case"embed":Zt("load",r),h=d;break;case"video":case"audio":for(h=0;h<pu.length;h++)Zt(pu[h],r);h=d;break;case"source":Zt("error",r),h=d;break;case"img":case"image":case"link":Zt("error",r),Zt("load",r),h=d;break;case"details":Zt("toggle",r),h=d;break;case"input":Ye(r,d),h=je(r,d),Zt("invalid",r);break;case"option":h=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},h=X({},d,{value:void 0}),Zt("invalid",r);break;case"textarea":sr(r,d),h=Hr(r,d),Zt("invalid",r);break;default:h=d}_n(l,h),J=h;for(w in J)if(J.hasOwnProperty(w)){var ie=J[w];w==="style"?$r(r,ie):w==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&cn(r,ie)):w==="children"?typeof ie=="string"?(l!=="textarea"||ie!=="")&&Pr(r,ie):typeof ie=="number"&&Pr(r,""+ie):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(i.hasOwnProperty(w)?ie!=null&&w==="onScroll"&&Zt("scroll",r):ie!=null&&P(r,w,ie,D))}switch(l){case"input":se(r),Lt(r,d,!1);break;case"textarea":se(r),Jr(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Se(d.value));break;case"select":r.multiple=!!d.multiple,w=d.value,w!=null?Ft(r,!!d.multiple,w,!1):d.defaultValue!=null&&Ft(r,!!d.multiple,d.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=Xl)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Br(s),null;case 6:if(r&&s.stateNode!=null)$w(r,s,r.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(t(166));if(l=Wa(bu.current),Wa(wi.current),tc(s)){if(d=s.stateNode,l=s.memoizedProps,d[bi]=s,(w=d.nodeValue!==l)&&(r=fn,r!==null))switch(r.tag){case 3:Yl(d.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Yl(d.nodeValue,l,(r.mode&1)!==0)}w&&(s.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[bi]=s,s.stateNode=d}return Br(s),null;case 13:if($t(ir),d=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(tr&&pn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)tw(),ks(),s.flags|=98560,w=!1;else if(w=tc(s),d!==null&&d.dehydrated!==null){if(r===null){if(!w)throw Error(t(318));if(w=s.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(t(317));w[bi]=s}else ks(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Br(s),w=!1}else Vn!==null&&(Lp(Vn),Vn=null),w=!0;if(!w)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(ir.current&1)!==0?wr===0&&(wr=3):kp())),s.updateQueue!==null&&(s.flags|=4),Br(s),null);case 4:return Vs(),Tp(r,s),r===null&&yu(s.stateNode.containerInfo),Br(s),null;case 10:return Zf(s.type._context),Br(s),null;case 17:return rn(s.type)&&Ql(),Br(s),null;case 19:if($t(ir),w=s.memoizedState,w===null)return Br(s),null;if(d=(s.flags&128)!==0,D=w.rendering,D===null)if(d)Au(w,!1);else{if(wr!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(D=sc(r),D!==null){for(s.flags|=128,Au(w,!1),d=D.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=l,l=s.child;l!==null;)w=l,r=d,w.flags&=14680066,D=w.alternate,D===null?(w.childLanes=0,w.lanes=r,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=D.childLanes,w.lanes=D.lanes,w.child=D.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=D.memoizedProps,w.memoizedState=D.memoizedState,w.updateQueue=D.updateQueue,w.type=D.type,r=D.dependencies,w.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Xt(ir,ir.current&1|2),s.child}r=r.sibling}w.tail!==null&&er()>Gs&&(s.flags|=128,d=!0,Au(w,!1),s.lanes=4194304)}else{if(!d)if(r=sc(D),r!==null){if(s.flags|=128,d=!0,l=r.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Au(w,!0),w.tail===null&&w.tailMode==="hidden"&&!D.alternate&&!tr)return Br(s),null}else 2*er()-w.renderingStartTime>Gs&&l!==1073741824&&(s.flags|=128,d=!0,Au(w,!1),s.lanes=4194304);w.isBackwards?(D.sibling=s.child,s.child=D):(l=w.last,l!==null?l.sibling=D:s.child=D,w.last=D)}return w.tail!==null?(s=w.tail,w.rendering=s,w.tail=s.sibling,w.renderingStartTime=er(),s.sibling=null,l=ir.current,Xt(ir,d?l&1|2:l&1),s):(Br(s),null);case 22:case 23:return qp(),d=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(yn&1073741824)!==0&&(Br(s),s.subtreeFlags&6&&(s.flags|=8192)):Br(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function g2(r,s){switch(Gf(s),s.tag){case 1:return rn(s.type)&&Ql(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Vs(),$t(tn),$t(kr),ip(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return rp(s),null;case 13:if($t(ir),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(t(340));ks()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return $t(ir),null;case 4:return Vs(),null;case 10:return Zf(s.type._context),null;case 22:case 23:return qp(),null;case 24:return null;default:return null}}var hc=!1,Fr=!1,v2=typeof WeakSet=="function"?WeakSet:Set,tt=null;function zs(r,s){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){dr(r,s,d)}else l.current=null}function Sp(r,s,l){try{l()}catch(d){dr(r,s,d)}}var xw=!1;function _2(r,s){if(qf=pr,r=N0(),If(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var h=d.anchorOffset,w=d.focusNode;d=d.focusOffset;try{l.nodeType,w.nodeType}catch{l=null;break e}var D=0,J=-1,ie=-1,Ee=0,De=0,ke=r,Le=null;t:for(;;){for(var Qe;ke!==l||h!==0&&ke.nodeType!==3||(J=D+h),ke!==w||d!==0&&ke.nodeType!==3||(ie=D+d),ke.nodeType===3&&(D+=ke.nodeValue.length),(Qe=ke.firstChild)!==null;)Le=ke,ke=Qe;for(;;){if(ke===r)break t;if(Le===l&&++Ee===h&&(J=D),Le===w&&++De===d&&(ie=D),(Qe=ke.nextSibling)!==null)break;ke=Le,Le=ke.parentNode}ke=Qe}l=J===-1||ie===-1?null:{start:J,end:ie}}else l=null}l=l||{start:0,end:0}}else l=null;for(kf={focusedElem:r,selectionRange:l},pr=!1,tt=s;tt!==null;)if(s=tt,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,tt=r;else for(;tt!==null;){s=tt;try{var ot=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ot!==null){var lt=ot.memoizedProps,yr=ot.memoizedState,me=s.stateNode,le=me.getSnapshotBeforeUpdate(s.elementType===s.type?lt:Hn(s.type,lt),yr);me.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var ve=s.stateNode.containerInfo;ve.nodeType===1?ve.textContent="":ve.nodeType===9&&ve.documentElement&&ve.removeChild(ve.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Fe){dr(s,s.return,Fe)}if(r=s.sibling,r!==null){r.return=s.return,tt=r;break}tt=s.return}return ot=xw,xw=!1,ot}function Pu(r,s,l){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var h=d=d.next;do{if((h.tag&r)===r){var w=h.destroy;h.destroy=void 0,w!==void 0&&Sp(s,l,w)}h=h.next}while(h!==d)}}function gc(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&r)===r){var d=l.create;l.destroy=d()}l=l.next}while(l!==s)}}function Op(r){var s=r.ref;if(s!==null){var l=r.stateNode;r.tag,r=l,typeof s=="function"?s(r):s.current=r}}function eT(r){var s=r.alternate;s!==null&&(r.alternate=null,eT(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[bi],delete s[hu],delete s[Vf],delete s[t2],delete s[r2])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function tT(r){return r.tag===5||r.tag===3||r.tag===4}function rT(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||tT(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Ap(r,s,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(r,s):l.insertBefore(r,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(r,l)):(s=l,s.appendChild(r)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Xl));else if(d!==4&&(r=r.child,r!==null))for(Ap(r,s,l),r=r.sibling;r!==null;)Ap(r,s,l),r=r.sibling}function Pp(r,s,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,s?l.insertBefore(r,s):l.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(Pp(r,s,l),r=r.sibling;r!==null;)Pp(r,s,l),r=r.sibling}var Nr=null,zn=!1;function pa(r,s,l){for(l=l.child;l!==null;)nT(r,s,l),l=l.sibling}function nT(r,s,l){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(ta,l)}catch{}switch(l.tag){case 5:Fr||zs(l,s);case 6:var d=Nr,h=zn;Nr=null,pa(r,s,l),Nr=d,zn=h,Nr!==null&&(zn?(r=Nr,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Nr.removeChild(l.stateNode));break;case 18:Nr!==null&&(zn?(r=Nr,l=l.stateNode,r.nodeType===8?Ff(r.parentNode,l):r.nodeType===1&&Ff(r,l),nr(r)):Ff(Nr,l.stateNode));break;case 4:d=Nr,h=zn,Nr=l.stateNode.containerInfo,zn=!0,pa(r,s,l),Nr=d,zn=h;break;case 0:case 11:case 14:case 15:if(!Fr&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){h=d=d.next;do{var w=h,D=w.destroy;w=w.tag,D!==void 0&&((w&2)!==0||(w&4)!==0)&&Sp(l,s,D),h=h.next}while(h!==d)}pa(r,s,l);break;case 1:if(!Fr&&(zs(l,s),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(J){dr(l,s,J)}pa(r,s,l);break;case 21:pa(r,s,l);break;case 22:l.mode&1?(Fr=(d=Fr)||l.memoizedState!==null,pa(r,s,l),Fr=d):pa(r,s,l);break;default:pa(r,s,l)}}function iT(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new v2),s.forEach(function(d){var h=I2.bind(null,r,d);l.has(d)||(l.add(d),d.then(h,h))})}}function Wn(r,s){var l=s.deletions;if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];try{var w=r,D=s,J=D;e:for(;J!==null;){switch(J.tag){case 5:Nr=J.stateNode,zn=!1;break e;case 3:Nr=J.stateNode.containerInfo,zn=!0;break e;case 4:Nr=J.stateNode.containerInfo,zn=!0;break e}J=J.return}if(Nr===null)throw Error(t(160));nT(w,D,h),Nr=null,zn=!1;var ie=h.alternate;ie!==null&&(ie.return=null),h.return=null}catch(Ee){dr(h,s,Ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)aT(s,r),s=s.sibling}function aT(r,s){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Wn(s,r),Si(r),d&4){try{Pu(3,r,r.return),gc(3,r)}catch(lt){dr(r,r.return,lt)}try{Pu(5,r,r.return)}catch(lt){dr(r,r.return,lt)}}break;case 1:Wn(s,r),Si(r),d&512&&l!==null&&zs(l,l.return);break;case 5:if(Wn(s,r),Si(r),d&512&&l!==null&&zs(l,l.return),r.flags&32){var h=r.stateNode;try{Pr(h,"")}catch(lt){dr(r,r.return,lt)}}if(d&4&&(h=r.stateNode,h!=null)){var w=r.memoizedProps,D=l!==null?l.memoizedProps:w,J=r.type,ie=r.updateQueue;if(r.updateQueue=null,ie!==null)try{J==="input"&&w.type==="radio"&&w.name!=null&&Je(h,w),Ii(J,D);var Ee=Ii(J,w);for(D=0;D<ie.length;D+=2){var De=ie[D],ke=ie[D+1];De==="style"?$r(h,ke):De==="dangerouslySetInnerHTML"?cn(h,ke):De==="children"?Pr(h,ke):P(h,De,ke,Ee)}switch(J){case"input":Vt(h,w);break;case"textarea":hn(h,w);break;case"select":var Le=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!w.multiple;var Qe=w.value;Qe!=null?Ft(h,!!w.multiple,Qe,!1):Le!==!!w.multiple&&(w.defaultValue!=null?Ft(h,!!w.multiple,w.defaultValue,!0):Ft(h,!!w.multiple,w.multiple?[]:"",!1))}h[hu]=w}catch(lt){dr(r,r.return,lt)}}break;case 6:if(Wn(s,r),Si(r),d&4){if(r.stateNode===null)throw Error(t(162));h=r.stateNode,w=r.memoizedProps;try{h.nodeValue=w}catch(lt){dr(r,r.return,lt)}}break;case 3:if(Wn(s,r),Si(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{nr(s.containerInfo)}catch(lt){dr(r,r.return,lt)}break;case 4:Wn(s,r),Si(r);break;case 13:Wn(s,r),Si(r),h=r.child,h.flags&8192&&(w=h.memoizedState!==null,h.stateNode.isHidden=w,!w||h.alternate!==null&&h.alternate.memoizedState!==null||(Mp=er())),d&4&&iT(r);break;case 22:if(De=l!==null&&l.memoizedState!==null,r.mode&1?(Fr=(Ee=Fr)||De,Wn(s,r),Fr=Ee):Wn(s,r),Si(r),d&8192){if(Ee=r.memoizedState!==null,(r.stateNode.isHidden=Ee)&&!De&&(r.mode&1)!==0)for(tt=r,De=r.child;De!==null;){for(ke=tt=De;tt!==null;){switch(Le=tt,Qe=Le.child,Le.tag){case 0:case 11:case 14:case 15:Pu(4,Le,Le.return);break;case 1:zs(Le,Le.return);var ot=Le.stateNode;if(typeof ot.componentWillUnmount=="function"){d=Le,l=Le.return;try{s=d,ot.props=s.memoizedProps,ot.state=s.memoizedState,ot.componentWillUnmount()}catch(lt){dr(d,l,lt)}}break;case 5:zs(Le,Le.return);break;case 22:if(Le.memoizedState!==null){uT(ke);continue}}Qe!==null?(Qe.return=Le,tt=Qe):uT(ke)}De=De.sibling}e:for(De=null,ke=r;;){if(ke.tag===5){if(De===null){De=ke;try{h=ke.stateNode,Ee?(w=h.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(J=ke.stateNode,ie=ke.memoizedProps.style,D=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,J.style.display=vn("display",D))}catch(lt){dr(r,r.return,lt)}}}else if(ke.tag===6){if(De===null)try{ke.stateNode.nodeValue=Ee?"":ke.memoizedProps}catch(lt){dr(r,r.return,lt)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===r)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===r)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===r)break e;De===ke&&(De=null),ke=ke.return}De===ke&&(De=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:Wn(s,r),Si(r),d&4&&iT(r);break;case 21:break;default:Wn(s,r),Si(r)}}function Si(r){var s=r.flags;if(s&2){try{e:{for(var l=r.return;l!==null;){if(tT(l)){var d=l;break e}l=l.return}throw Error(t(160))}switch(d.tag){case 5:var h=d.stateNode;d.flags&32&&(Pr(h,""),d.flags&=-33);var w=rT(r);Pp(r,w,h);break;case 3:case 4:var D=d.stateNode.containerInfo,J=rT(r);Ap(r,J,D);break;default:throw Error(t(161))}}catch(ie){dr(r,r.return,ie)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function E2(r,s,l){tt=r,oT(r)}function oT(r,s,l){for(var d=(r.mode&1)!==0;tt!==null;){var h=tt,w=h.child;if(h.tag===22&&d){var D=h.memoizedState!==null||hc;if(!D){var J=h.alternate,ie=J!==null&&J.memoizedState!==null||Fr;J=hc;var Ee=Fr;if(hc=D,(Fr=ie)&&!Ee)for(tt=h;tt!==null;)D=tt,ie=D.child,D.tag===22&&D.memoizedState!==null?lT(h):ie!==null?(ie.return=D,tt=ie):lT(h);for(;w!==null;)tt=w,oT(w),w=w.sibling;tt=h,hc=J,Fr=Ee}sT(r)}else(h.subtreeFlags&8772)!==0&&w!==null?(w.return=h,tt=w):sT(r)}}function sT(r){for(;tt!==null;){var s=tt;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Fr||gc(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!Fr)if(l===null)d.componentDidMount();else{var h=s.elementType===s.type?l.memoizedProps:Hn(s.type,l.memoizedProps);d.componentDidUpdate(h,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var w=s.updateQueue;w!==null&&uw(s,w,d);break;case 3:var D=s.updateQueue;if(D!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}uw(s,D,l)}break;case 5:var J=s.stateNode;if(l===null&&s.flags&4){l=J;var ie=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&l.focus();break;case"img":ie.src&&(l.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ee=s.alternate;if(Ee!==null){var De=Ee.memoizedState;if(De!==null){var ke=De.dehydrated;ke!==null&&nr(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Fr||s.flags&512&&Op(s)}catch(Le){dr(s,s.return,Le)}}if(s===r){tt=null;break}if(l=s.sibling,l!==null){l.return=s.return,tt=l;break}tt=s.return}}function uT(r){for(;tt!==null;){var s=tt;if(s===r){tt=null;break}var l=s.sibling;if(l!==null){l.return=s.return,tt=l;break}tt=s.return}}function lT(r){for(;tt!==null;){var s=tt;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{gc(4,s)}catch(ie){dr(s,l,ie)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var h=s.return;try{d.componentDidMount()}catch(ie){dr(s,h,ie)}}var w=s.return;try{Op(s)}catch(ie){dr(s,w,ie)}break;case 5:var D=s.return;try{Op(s)}catch(ie){dr(s,D,ie)}}}catch(ie){dr(s,s.return,ie)}if(s===r){tt=null;break}var J=s.sibling;if(J!==null){J.return=s.return,tt=J;break}tt=s.return}}var b2=Math.ceil,vc=S.ReactCurrentDispatcher,Ip=S.ReactCurrentOwner,Mn=S.ReactCurrentBatchConfig,jt=0,Or=null,hr=null,Cr=0,yn=0,Ws=ua(0),wr=0,Iu=null,Ka=0,_c=0,Rp=0,Ru=null,an=null,Mp=0,Gs=1/0,Fi=null,Ec=!1,Np=null,ya=null,bc=!1,ma=null,wc=0,Mu=0,Cp=null,Tc=-1,Sc=0;function Yr(){return(jt&6)!==0?er():Tc!==-1?Tc:Tc=er()}function ha(r){return(r.mode&1)===0?1:(jt&2)!==0&&Cr!==0?Cr&-Cr:i2.transition!==null?(Sc===0&&(Sc=lu()),Sc):(r=Ut,r!==0||(r=window.event,r=r===void 0?16:Mt(r.type)),r)}function Gn(r,s,l,d){if(50<Mu)throw Mu=0,Cp=null,Error(t(185));Ni(r,l,d),((jt&2)===0||r!==Or)&&(r===Or&&((jt&2)===0&&(_c|=l),wr===4&&ga(r,Cr)),on(r,d),l===1&&jt===0&&(s.mode&1)===0&&(Gs=er()+500,$l&&ca()))}function on(r,s){var l=r.callbackNode;at(r,s);var d=vr(r,r===Or?Cr:0);if(d===0)l!==null&&Sa(l),r.callbackNode=null,r.callbackPriority=0;else if(s=d&-d,r.callbackPriority!==s){if(l!=null&&Sa(l),s===1)r.tag===0?n2(dT.bind(null,r)):Q0(dT.bind(null,r)),xk(function(){(jt&6)===0&&ca()}),l=null;else{switch(cu(d)){case 1:l=ss;break;case 4:l=Oa;break;case 16:l=Aa;break;case 536870912:l=Bl;break;default:l=Aa}l=_T(l,cT.bind(null,r))}r.callbackPriority=s,r.callbackNode=l}}function cT(r,s){if(Tc=-1,Sc=0,(jt&6)!==0)throw Error(t(327));var l=r.callbackNode;if(Ks()&&r.callbackNode!==l)return null;var d=vr(r,r===Or?Cr:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||s)s=Oc(r,d);else{s=d;var h=jt;jt|=2;var w=pT();(Or!==r||Cr!==s)&&(Fi=null,Gs=er()+500,Xa(r,s));do try{S2();break}catch(J){fT(r,J)}while(!0);Qf(),vc.current=w,jt=h,hr!==null?s=0:(Or=null,Cr=0,s=wr)}if(s!==0){if(s===2&&(h=Ze(r),h!==0&&(d=h,s=jp(r,h))),s===1)throw l=Iu,Xa(r,0),ga(r,d),on(r,er()),l;if(s===6)ga(r,d);else{if(h=r.current.alternate,(d&30)===0&&!w2(h)&&(s=Oc(r,d),s===2&&(w=Ze(r),w!==0&&(d=w,s=jp(r,w))),s===1))throw l=Iu,Xa(r,0),ga(r,d),on(r,er()),l;switch(r.finishedWork=h,r.finishedLanes=d,s){case 0:case 1:throw Error(t(345));case 2:Ja(r,an,Fi);break;case 3:if(ga(r,d),(d&130023424)===d&&(s=Mp+500-er(),10<s)){if(vr(r,0)!==0)break;if(h=r.suspendedLanes,(h&d)!==d){Yr(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=Bf(Ja.bind(null,r,an,Fi),s);break}Ja(r,an,Fi);break;case 4:if(ga(r,d),(d&4194240)===d)break;for(s=r.eventTimes,h=-1;0<d;){var D=31-Wr(d);w=1<<D,D=s[D],D>h&&(h=D),d&=~w}if(d=h,d=er()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*b2(d/1960))-d,10<d){r.timeoutHandle=Bf(Ja.bind(null,r,an,Fi),d);break}Ja(r,an,Fi);break;case 5:Ja(r,an,Fi);break;default:throw Error(t(329))}}}return on(r,er()),r.callbackNode===l?cT.bind(null,r):null}function jp(r,s){var l=Ru;return r.current.memoizedState.isDehydrated&&(Xa(r,s).flags|=256),r=Oc(r,s),r!==2&&(s=an,an=l,s!==null&&Lp(s)),r}function Lp(r){an===null?an=r:an.push.apply(an,r)}function w2(r){for(var s=r;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var h=l[d],w=h.getSnapshot;h=h.value;try{if(!Fn(w(),h))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ga(r,s){for(s&=~Rp,s&=~_c,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var l=31-Wr(s),d=1<<l;r[l]=-1,s&=~d}}function dT(r){if((jt&6)!==0)throw Error(t(327));Ks();var s=vr(r,0);if((s&1)===0)return on(r,er()),null;var l=Oc(r,s);if(r.tag!==0&&l===2){var d=Ze(r);d!==0&&(s=d,l=jp(r,d))}if(l===1)throw l=Iu,Xa(r,0),ga(r,s),on(r,er()),l;if(l===6)throw Error(t(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Ja(r,an,Fi),on(r,er()),null}function Dp(r,s){var l=jt;jt|=1;try{return r(s)}finally{jt=l,jt===0&&(Gs=er()+500,$l&&ca())}}function Ya(r){ma!==null&&ma.tag===0&&(jt&6)===0&&Ks();var s=jt;jt|=1;var l=Mn.transition,d=Ut;try{if(Mn.transition=null,Ut=1,r)return r()}finally{Ut=d,Mn.transition=l,jt=s,(jt&6)===0&&ca()}}function qp(){yn=Ws.current,$t(Ws)}function Xa(r,s){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,$k(l)),hr!==null)for(l=hr.return;l!==null;){var d=l;switch(Gf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Ql();break;case 3:Vs(),$t(tn),$t(kr),ip();break;case 5:rp(d);break;case 4:Vs();break;case 13:$t(ir);break;case 19:$t(ir);break;case 10:Zf(d.type._context);break;case 22:case 23:qp()}l=l.return}if(Or=r,hr=r=va(r.current,null),Cr=yn=s,wr=0,Iu=null,Rp=_c=Ka=0,an=Ru=null,za!==null){for(s=0;s<za.length;s++)if(l=za[s],d=l.interleaved,d!==null){l.interleaved=null;var h=d.next,w=l.pending;if(w!==null){var D=w.next;w.next=h,d.next=D}l.pending=d}za=null}return r}function fT(r,s){do{var l=hr;try{if(Qf(),uc.current=fc,lc){for(var d=ar.memoizedState;d!==null;){var h=d.queue;h!==null&&(h.pending=null),d=d.next}lc=!1}if(Ga=0,Sr=br=ar=null,wu=!1,Tu=0,Ip.current=null,l===null||l.return===null){wr=1,Iu=s,hr=null;break}e:{var w=r,D=l.return,J=l,ie=s;if(s=Cr,J.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var Ee=ie,De=J,ke=De.tag;if((De.mode&1)===0&&(ke===0||ke===11||ke===15)){var Le=De.alternate;Le?(De.updateQueue=Le.updateQueue,De.memoizedState=Le.memoizedState,De.lanes=Le.lanes):(De.updateQueue=null,De.memoizedState=null)}var Qe=kw(D);if(Qe!==null){Qe.flags&=-257,Uw(Qe,D,J,w,s),Qe.mode&1&&qw(w,Ee,s),s=Qe,ie=Ee;var ot=s.updateQueue;if(ot===null){var lt=new Set;lt.add(ie),s.updateQueue=lt}else ot.add(ie);break e}else{if((s&1)===0){qw(w,Ee,s),kp();break e}ie=Error(t(426))}}else if(tr&&J.mode&1){var yr=kw(D);if(yr!==null){(yr.flags&65536)===0&&(yr.flags|=256),Uw(yr,D,J,w,s),Xf(Hs(ie,J));break e}}w=ie=Hs(ie,J),wr!==4&&(wr=2),Ru===null?Ru=[w]:Ru.push(w),w=D;do{switch(w.tag){case 3:w.flags|=65536,s&=-s,w.lanes|=s;var me=Lw(w,ie,s);sw(w,me);break e;case 1:J=ie;var le=w.type,ve=w.stateNode;if((w.flags&128)===0&&(typeof le.getDerivedStateFromError=="function"||ve!==null&&typeof ve.componentDidCatch=="function"&&(ya===null||!ya.has(ve)))){w.flags|=65536,s&=-s,w.lanes|=s;var Fe=Dw(w,J,s);sw(w,Fe);break e}}w=w.return}while(w!==null)}mT(l)}catch(ct){s=ct,hr===l&&l!==null&&(hr=l=l.return);continue}break}while(!0)}function pT(){var r=vc.current;return vc.current=fc,r===null?fc:r}function kp(){(wr===0||wr===3||wr===2)&&(wr=4),Or===null||(Ka&268435455)===0&&(_c&268435455)===0||ga(Or,Cr)}function Oc(r,s){var l=jt;jt|=2;var d=pT();(Or!==r||Cr!==s)&&(Fi=null,Xa(r,s));do try{T2();break}catch(h){fT(r,h)}while(!0);if(Qf(),jt=l,vc.current=d,hr!==null)throw Error(t(261));return Or=null,Cr=0,wr}function T2(){for(;hr!==null;)yT(hr)}function S2(){for(;hr!==null&&!kl();)yT(hr)}function yT(r){var s=vT(r.alternate,r,yn);r.memoizedProps=r.pendingProps,s===null?mT(r):hr=s,Ip.current=null}function mT(r){var s=r;do{var l=s.alternate;if(r=s.return,(s.flags&32768)===0){if(l=h2(l,s,yn),l!==null){hr=l;return}}else{if(l=g2(l,s),l!==null){l.flags&=32767,hr=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{wr=6,hr=null;return}}if(s=s.sibling,s!==null){hr=s;return}hr=s=r}while(s!==null);wr===0&&(wr=5)}function Ja(r,s,l){var d=Ut,h=Mn.transition;try{Mn.transition=null,Ut=1,O2(r,s,l,d)}finally{Mn.transition=h,Ut=d}return null}function O2(r,s,l,d){do Ks();while(ma!==null);if((jt&6)!==0)throw Error(t(327));l=r.finishedWork;var h=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(t(177));r.callbackNode=null,r.callbackPriority=0;var w=l.lanes|l.childLanes;if(Pa(r,w),r===Or&&(hr=Or=null,Cr=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||bc||(bc=!0,_T(Aa,function(){return Ks(),null})),w=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||w){w=Mn.transition,Mn.transition=null;var D=Ut;Ut=1;var J=jt;jt|=4,Ip.current=null,_2(r,l),aT(l,r),Gk(kf),pr=!!qf,kf=qf=null,r.current=l,E2(l),qn(),jt=J,Ut=D,Mn.transition=w}else r.current=l;if(bc&&(bc=!1,ma=r,wc=h),w=r.pendingLanes,w===0&&(ya=null),us(l.stateNode),on(r,er()),s!==null)for(d=r.onRecoverableError,l=0;l<s.length;l++)h=s[l],d(h.value,{componentStack:h.stack,digest:h.digest});if(Ec)throw Ec=!1,r=Np,Np=null,r;return(wc&1)!==0&&r.tag!==0&&Ks(),w=r.pendingLanes,(w&1)!==0?r===Cp?Mu++:(Mu=0,Cp=r):Mu=0,ca(),null}function Ks(){if(ma!==null){var r=cu(wc),s=Mn.transition,l=Ut;try{if(Mn.transition=null,Ut=16>r?16:r,ma===null)var d=!1;else{if(r=ma,ma=null,wc=0,(jt&6)!==0)throw Error(t(331));var h=jt;for(jt|=4,tt=r.current;tt!==null;){var w=tt,D=w.child;if((tt.flags&16)!==0){var J=w.deletions;if(J!==null){for(var ie=0;ie<J.length;ie++){var Ee=J[ie];for(tt=Ee;tt!==null;){var De=tt;switch(De.tag){case 0:case 11:case 15:Pu(8,De,w)}var ke=De.child;if(ke!==null)ke.return=De,tt=ke;else for(;tt!==null;){De=tt;var Le=De.sibling,Qe=De.return;if(eT(De),De===Ee){tt=null;break}if(Le!==null){Le.return=Qe,tt=Le;break}tt=Qe}}}var ot=w.alternate;if(ot!==null){var lt=ot.child;if(lt!==null){ot.child=null;do{var yr=lt.sibling;lt.sibling=null,lt=yr}while(lt!==null)}}tt=w}}if((w.subtreeFlags&2064)!==0&&D!==null)D.return=w,tt=D;else e:for(;tt!==null;){if(w=tt,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:Pu(9,w,w.return)}var me=w.sibling;if(me!==null){me.return=w.return,tt=me;break e}tt=w.return}}var le=r.current;for(tt=le;tt!==null;){D=tt;var ve=D.child;if((D.subtreeFlags&2064)!==0&&ve!==null)ve.return=D,tt=ve;else e:for(D=le;tt!==null;){if(J=tt,(J.flags&2048)!==0)try{switch(J.tag){case 0:case 11:case 15:gc(9,J)}}catch(ct){dr(J,J.return,ct)}if(J===D){tt=null;break e}var Fe=J.sibling;if(Fe!==null){Fe.return=J.return,tt=Fe;break e}tt=J.return}}if(jt=h,ca(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(ta,r)}catch{}d=!0}return d}finally{Ut=l,Mn.transition=s}}return!1}function hT(r,s,l){s=Hs(l,s),s=Lw(r,s,1),r=fa(r,s,1),s=Yr(),r!==null&&(Ni(r,1,s),on(r,s))}function dr(r,s,l){if(r.tag===3)hT(r,r,l);else for(;s!==null;){if(s.tag===3){hT(s,r,l);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ya===null||!ya.has(d))){r=Hs(l,r),r=Dw(s,r,1),s=fa(s,r,1),r=Yr(),s!==null&&(Ni(s,1,r),on(s,r));break}}s=s.return}}function A2(r,s,l){var d=r.pingCache;d!==null&&d.delete(s),s=Yr(),r.pingedLanes|=r.suspendedLanes&l,Or===r&&(Cr&l)===l&&(wr===4||wr===3&&(Cr&130023424)===Cr&&500>er()-Mp?Xa(r,0):Rp|=l),on(r,s)}function gT(r,s){s===0&&((r.mode&1)===0?s=1:(s=xe,xe<<=1,(xe&130023424)===0&&(xe=4194304)));var l=Yr();r=ki(r,s),r!==null&&(Ni(r,s,l),on(r,l))}function P2(r){var s=r.memoizedState,l=0;s!==null&&(l=s.retryLane),gT(r,l)}function I2(r,s){var l=0;switch(r.tag){case 13:var d=r.stateNode,h=r.memoizedState;h!==null&&(l=h.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(t(314))}d!==null&&d.delete(s),gT(r,l)}var vT;vT=function(r,s,l){if(r!==null)if(r.memoizedProps!==s.pendingProps||tn.current)nn=!0;else{if((r.lanes&l)===0&&(s.flags&128)===0)return nn=!1,m2(r,s,l);nn=(r.flags&131072)!==0}else nn=!1,tr&&(s.flags&1048576)!==0&&Z0(s,ec,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;mc(r,s),r=s.pendingProps;var h=Ls(s,kr.current);Fs(s,l),h=sp(null,s,d,r,h,l);var w=up();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,rn(d)?(w=!0,Zl(s)):w=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ep(s),h.updater=pc,s.stateNode=h,h._reactInternals=s,yp(s,d,r,l),s=vp(null,s,d,!0,w,l)):(s.tag=0,tr&&w&&Wf(s),Kr(null,s,h,l),s=s.child),s;case 16:d=s.elementType;e:{switch(mc(r,s),r=s.pendingProps,h=d._init,d=h(d._payload),s.type=d,h=s.tag=M2(d),r=Hn(d,r),h){case 0:s=gp(null,s,d,r,l);break e;case 1:s=Ww(null,s,d,r,l);break e;case 11:s=Bw(null,s,d,r,l);break e;case 14:s=Fw(null,s,d,Hn(d.type,r),l);break e}throw Error(t(306,d,""))}return s;case 0:return d=s.type,h=s.pendingProps,h=s.elementType===d?h:Hn(d,h),gp(r,s,d,h,l);case 1:return d=s.type,h=s.pendingProps,h=s.elementType===d?h:Hn(d,h),Ww(r,s,d,h,l);case 3:e:{if(Gw(s),r===null)throw Error(t(387));d=s.pendingProps,w=s.memoizedState,h=w.element,ow(r,s),oc(s,d,null,l);var D=s.memoizedState;if(d=D.element,w.isDehydrated)if(w={element:d,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){h=Hs(Error(t(423)),s),s=Kw(r,s,d,l,h);break e}else if(d!==h){h=Hs(Error(t(424)),s),s=Kw(r,s,d,l,h);break e}else for(pn=sa(s.stateNode.containerInfo.firstChild),fn=s,tr=!0,Vn=null,l=iw(s,null,d,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ks(),d===h){s=Bi(r,s,l);break e}Kr(r,s,d,l)}s=s.child}return s;case 5:return lw(s),r===null&&Yf(s),d=s.type,h=s.pendingProps,w=r!==null?r.memoizedProps:null,D=h.children,Uf(d,h)?D=null:w!==null&&Uf(d,w)&&(s.flags|=32),zw(r,s),Kr(r,s,D,l),s.child;case 6:return r===null&&Yf(s),null;case 13:return Yw(r,s,l);case 4:return tp(s,s.stateNode.containerInfo),d=s.pendingProps,r===null?s.child=Us(s,null,d,l):Kr(r,s,d,l),s.child;case 11:return d=s.type,h=s.pendingProps,h=s.elementType===d?h:Hn(d,h),Bw(r,s,d,h,l);case 7:return Kr(r,s,s.pendingProps,l),s.child;case 8:return Kr(r,s,s.pendingProps.children,l),s.child;case 12:return Kr(r,s,s.pendingProps.children,l),s.child;case 10:e:{if(d=s.type._context,h=s.pendingProps,w=s.memoizedProps,D=h.value,Xt(nc,d._currentValue),d._currentValue=D,w!==null)if(Fn(w.value,D)){if(w.children===h.children&&!tn.current){s=Bi(r,s,l);break e}}else for(w=s.child,w!==null&&(w.return=s);w!==null;){var J=w.dependencies;if(J!==null){D=w.child;for(var ie=J.firstContext;ie!==null;){if(ie.context===d){if(w.tag===1){ie=Ui(-1,l&-l),ie.tag=2;var Ee=w.updateQueue;if(Ee!==null){Ee=Ee.shared;var De=Ee.pending;De===null?ie.next=ie:(ie.next=De.next,De.next=ie),Ee.pending=ie}}w.lanes|=l,ie=w.alternate,ie!==null&&(ie.lanes|=l),$f(w.return,l,s),J.lanes|=l;break}ie=ie.next}}else if(w.tag===10)D=w.type===s.type?null:w.child;else if(w.tag===18){if(D=w.return,D===null)throw Error(t(341));D.lanes|=l,J=D.alternate,J!==null&&(J.lanes|=l),$f(D,l,s),D=w.sibling}else D=w.child;if(D!==null)D.return=w;else for(D=w;D!==null;){if(D===s){D=null;break}if(w=D.sibling,w!==null){w.return=D.return,D=w;break}D=D.return}w=D}Kr(r,s,h.children,l),s=s.child}return s;case 9:return h=s.type,d=s.pendingProps.children,Fs(s,l),h=In(h),d=d(h),s.flags|=1,Kr(r,s,d,l),s.child;case 14:return d=s.type,h=Hn(d,s.pendingProps),h=Hn(d.type,h),Fw(r,s,d,h,l);case 15:return Vw(r,s,s.type,s.pendingProps,l);case 17:return d=s.type,h=s.pendingProps,h=s.elementType===d?h:Hn(d,h),mc(r,s),s.tag=1,rn(d)?(r=!0,Zl(s)):r=!1,Fs(s,l),Cw(s,d,h),yp(s,d,h,l),vp(null,s,d,!0,r,l);case 19:return Jw(r,s,l);case 22:return Hw(r,s,l)}throw Error(t(156,s.tag))};function _T(r,s){return uu(r,s)}function R2(r,s,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(r,s,l,d){return new R2(r,s,l,d)}function Up(r){return r=r.prototype,!(!r||!r.isReactComponent)}function M2(r){if(typeof r=="function")return Up(r)?1:0;if(r!=null){if(r=r.$$typeof,r===_e)return 11;if(r===Me)return 14}return 2}function va(r,s){var l=r.alternate;return l===null?(l=Nn(r.tag,s,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=s,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,s=r.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Ac(r,s,l,d,h,w){var D=2;if(d=r,typeof r=="function")Up(r)&&(D=1);else if(typeof r=="string")D=5;else e:switch(r){case j:return Qa(l.children,h,w,s);case V:D=8,h|=8;break;case U:return r=Nn(12,l,s,h|2),r.elementType=U,r.lanes=w,r;case be:return r=Nn(13,l,s,h),r.elementType=be,r.lanes=w,r;case ye:return r=Nn(19,l,s,h),r.elementType=ye,r.lanes=w,r;case qe:return Pc(l,h,w,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:D=10;break e;case ae:D=9;break e;case _e:D=11;break e;case Me:D=14;break e;case Ne:D=16,d=null;break e}throw Error(t(130,r==null?r:typeof r,""))}return s=Nn(D,l,s,h),s.elementType=r,s.type=d,s.lanes=w,s}function Qa(r,s,l,d){return r=Nn(7,r,d,s),r.lanes=l,r}function Pc(r,s,l,d){return r=Nn(22,r,d,s),r.elementType=qe,r.lanes=l,r.stateNode={isHidden:!1},r}function Bp(r,s,l){return r=Nn(6,r,null,s),r.lanes=l,r}function Fp(r,s,l){return s=Nn(4,r.children!==null?r.children:[],r.key,s),s.lanes=l,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function N2(r,s,l,d,h){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=d,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Vp(r,s,l,d,h,w,D,J,ie){return r=new N2(r,s,l,J,ie),s===1?(s=1,w===!0&&(s|=8)):s=0,w=Nn(3,null,null,s),r.current=w,w.stateNode=r,w.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ep(w),r}function C2(r,s,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:d==null?null:""+d,children:r,containerInfo:s,implementation:l}}function ET(r){if(!r)return la;r=r._reactInternals;e:{if(Dr(r)!==r||r.tag!==1)throw Error(t(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(rn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(r.tag===1){var l=r.type;if(rn(l))return X0(r,l,s)}return s}function bT(r,s,l,d,h,w,D,J,ie){return r=Vp(l,d,!0,r,h,w,D,J,ie),r.context=ET(null),l=r.current,d=Yr(),h=ha(l),w=Ui(d,h),w.callback=s??null,fa(l,w,h),r.current.lanes=h,Ni(r,h,d),on(r,d),r}function Ic(r,s,l,d){var h=s.current,w=Yr(),D=ha(h);return l=ET(l),s.context===null?s.context=l:s.pendingContext=l,s=Ui(w,D),s.payload={element:r},d=d===void 0?null:d,d!==null&&(s.callback=d),r=fa(h,s,D),r!==null&&(Gn(r,h,D,w),ac(r,h,D)),D}function Rc(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function wT(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<s?l:s}}function Hp(r,s){wT(r,s),(r=r.alternate)&&wT(r,s)}function j2(){return null}var TT=typeof reportError=="function"?reportError:function(r){console.error(r)};function zp(r){this._internalRoot=r}Mc.prototype.render=zp.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(t(409));Ic(r,s,null,null)},Mc.prototype.unmount=zp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Ya(function(){Ic(null,r,null,null)}),s[ji]=null}};function Mc(r){this._internalRoot=r}Mc.prototype.unstable_scheduleHydration=function(r){if(r){var s=Y();r={blockedOn:null,target:r,priority:s};for(var l=0;l<ze.length&&s!==0&&s<ze[l].priority;l++);ze.splice(l,0,r),l===0&&wn(r)}};function Wp(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Nc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function ST(){}function L2(r,s,l,d,h){if(h){if(typeof d=="function"){var w=d;d=function(){var Ee=Rc(D);w.call(Ee)}}var D=bT(s,d,r,0,null,!1,!1,"",ST);return r._reactRootContainer=D,r[ji]=D.current,yu(r.nodeType===8?r.parentNode:r),Ya(),D}for(;h=r.lastChild;)r.removeChild(h);if(typeof d=="function"){var J=d;d=function(){var Ee=Rc(ie);J.call(Ee)}}var ie=Vp(r,0,!1,null,null,!1,!1,"",ST);return r._reactRootContainer=ie,r[ji]=ie.current,yu(r.nodeType===8?r.parentNode:r),Ya(function(){Ic(s,ie,l,d)}),ie}function Cc(r,s,l,d,h){var w=l._reactRootContainer;if(w){var D=w;if(typeof h=="function"){var J=h;h=function(){var ie=Rc(D);J.call(ie)}}Ic(s,D,r,h)}else D=L2(l,s,r,h,d);return Rc(D)}_=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var l=ft(s.pendingLanes);l!==0&&(Ia(s,l|1),on(s,er()),(jt&6)===0&&(Gs=er()+500,ca()))}break;case 13:Ya(function(){var d=ki(r,1);if(d!==null){var h=Yr();Gn(d,r,1,h)}}),Hp(r,1)}},A=function(r){if(r.tag===13){var s=ki(r,134217728);if(s!==null){var l=Yr();Gn(s,r,134217728,l)}Hp(r,134217728)}},q=function(r){if(r.tag===13){var s=ha(r),l=ki(r,s);if(l!==null){var d=Yr();Gn(l,r,s,d)}Hp(r,s)}},Y=function(){return Ut},x=function(r,s){var l=Ut;try{return Ut=r,s()}finally{Ut=l}},Mi=function(r,s,l){switch(s){case"input":if(Vt(r,l),s=l.name,l.type==="radio"&&s!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var d=l[s];if(d!==r&&d.form===r.form){var h=Jl(d);if(!h)throw Error(t(90));de(d),Vt(d,h)}}}break;case"textarea":hn(r,l);break;case"select":s=l.value,s!=null&&Ft(r,!!l.multiple,s,!1)}},F=Dp,Z=Ya;var D2={usingClientEntryPoint:!1,Events:[gu,Cs,Jl,xr,te,Dp]},Nu={findFiberByHostInstance:Ba,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},q2={bundleType:Nu.bundleType,version:Nu.version,rendererPackageName:Nu.rendererPackageName,rendererConfig:Nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Rr(r),r===null?null:r.stateNode},findFiberByHostInstance:Nu.findFiberByHostInstance||j2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{ta=jc.inject(q2),bn=jc}catch{}}return sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D2,sn.createPortal=function(r,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wp(s))throw Error(t(200));return C2(r,s,null,l)},sn.createRoot=function(r,s){if(!Wp(r))throw Error(t(299));var l=!1,d="",h=TT;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=Vp(r,1,!1,null,null,l,!1,d,h),r[ji]=s.current,yu(r.nodeType===8?r.parentNode:r),new zp(s)},sn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(t(188)):(r=Object.keys(r).join(","),Error(t(268,r)));return r=Rr(s),r=r===null?null:r.stateNode,r},sn.flushSync=function(r){return Ya(r)},sn.hydrate=function(r,s,l){if(!Nc(s))throw Error(t(200));return Cc(null,r,s,!0,l)},sn.hydrateRoot=function(r,s,l){if(!Wp(r))throw Error(t(405));var d=l!=null&&l.hydratedSources||null,h=!1,w="",D=TT;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(w=l.identifierPrefix),l.onRecoverableError!==void 0&&(D=l.onRecoverableError)),s=bT(s,null,r,1,l??null,h,!1,w,D),r[ji]=s.current,yu(r),d)for(r=0;r<d.length;r++)l=d[r],h=l._getVersion,h=h(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,h]:s.mutableSourceEagerHydrationData.push(l,h);return new Mc(s)},sn.render=function(r,s,l){if(!Nc(s))throw Error(t(200));return Cc(null,r,s,!1,l)},sn.unmountComponentAtNode=function(r){if(!Nc(r))throw Error(t(40));return r._reactRootContainer?(Ya(function(){Cc(null,null,r,!1,function(){r._reactRootContainer=null,r[ji]=null})}),!0):!1},sn.unstable_batchedUpdates=Dp,sn.unstable_renderSubtreeIntoContainer=function(r,s,l,d){if(!Nc(l))throw Error(t(200));if(r==null||r._reactInternals===void 0)throw Error(t(38));return Cc(r,s,l,!1,d)},sn.version="18.3.1-next-f1338f8080-20240426",sn}var CT;function Y2(){if(CT)return Yp.exports;CT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),Yp.exports=K2(),Yp.exports}var jT;function X2(){if(jT)return Lc;jT=1;var e=Y2();return Lc.createRoot=e.createRoot,Lc.hydrateRoot=e.hydrateRoot,Lc}var J2=X2();var LT="popstate";function Q2(e={}){function a(n,i){let{pathname:o,search:u,hash:c}=n.location;return db("",{pathname:o,search:u,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function t(n,i){return typeof i=="string"?i:Ol(i)}return $2(a,t,null,e)}function or(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function ii(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Z2(){return Math.random().toString(36).substring(2,10)}function DT(e,a){return{usr:e.state,key:e.key,idx:a}}function db(e,a,t=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?tu(a):a,state:t,key:a&&a.key||n||Z2()}}function Ol({pathname:e="/",search:a="",hash:t=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function tu(e){let a={};if(e){let t=e.indexOf("#");t>=0&&(a.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(a.search=e.substring(n),e=e.substring(0,n)),e&&(a.pathname=e)}return a}function $2(e,a,t,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,u=i.history,c="POP",f=null,p=y();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function y(){return(u.state||{idx:null}).idx}function m(){c="POP";let I=y(),N=I==null?null:I-p;p=I,f&&f({action:c,location:R.location,delta:N})}function g(I,N){c="PUSH";let E=db(R.location,I,N);p=y()+1;let P=DT(E,p),S=R.createHref(E);try{u.pushState(P,"",S)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;i.location.assign(S)}o&&f&&f({action:c,location:R.location,delta:1})}function T(I,N){c="REPLACE";let E=db(R.location,I,N);p=y();let P=DT(E,p),S=R.createHref(E);u.replaceState(P,"",S),o&&f&&f({action:c,location:R.location,delta:0})}function M(I){return x2(I)}let R={get action(){return c},get location(){return e(i,u)},listen(I){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(LT,m),f=I,()=>{i.removeEventListener(LT,m),f=null}},createHref(I){return a(i,I)},createURL:M,encodeLocation(I){let N=M(I);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:g,replace:T,go(I){return u.go(I)}};return R}function x2(e,a=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),or(t,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Ol(e);return n=n.replace(/ $/,"%20"),!a&&n.startsWith("//")&&(n=t+n),new URL(n,t)}function lD(e,a,t="/"){return e1(e,a,t,!1)}function e1(e,a,t,n){let i=typeof a=="string"?tu(a):a,o=Qi(i.pathname||"/",t);if(o==null)return null;let u=cD(e);t1(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let p=f1(o);c=c1(u[f],p,n)}return c}function cD(e,a=[],t=[],n="",i=!1){let o=(u,c,f=i,p)=>{let y={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(n)&&f)return;or(y.relativePath.startsWith(n),`Absolute route path "${y.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(n.length)}let m=Xi([n,y.relativePath]),g=t.concat(y);u.children&&u.children.length>0&&(or(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),cD(u.children,a,g,m,f)),!(u.path==null&&!u.index)&&a.push({path:m,score:u1(m,u.index),routesMeta:g})};return e.forEach((u,c)=>{if(u.path===""||!u.path?.includes("?"))o(u,c);else for(let f of dD(u.path))o(u,c,!0,f)}),a}function dD(e){let a=e.split("/");if(a.length===0)return[];let[t,...n]=a,i=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let u=dD(n.join("/")),c=[];return c.push(...u.map(f=>f===""?o:[o,f].join("/"))),i&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function t1(e){e.sort((a,t)=>a.score!==t.score?t.score-a.score:l1(a.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var r1=/^:[\w-]+$/,n1=3,i1=2,a1=1,o1=10,s1=-2,qT=e=>e==="*";function u1(e,a){let t=e.split("/"),n=t.length;return t.some(qT)&&(n+=s1),a&&(n+=i1),t.filter(i=>!qT(i)).reduce((i,o)=>i+(r1.test(o)?n1:o===""?a1:o1),n)}function l1(e,a){return e.length===a.length&&e.slice(0,-1).every((n,i)=>n===a[i])?e[e.length-1]-a[a.length-1]:0}function c1(e,a,t=!1){let{routesMeta:n}=e,i={},o="/",u=[];for(let c=0;c<n.length;++c){let f=n[c],p=c===n.length-1,y=o==="/"?a:a.slice(o.length)||"/",m=xd({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},y),g=f.route;if(!m&&p&&t&&!n[n.length-1].route.index&&(m=xd({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},y)),!m)return null;Object.assign(i,m.params),u.push({params:i,pathname:Xi([o,m.pathname]),pathnameBase:h1(Xi([o,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(o=Xi([o,m.pathnameBase]))}return u}function xd(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=d1(e.path,e.caseSensitive,e.end),i=a.match(t);if(!i)return null;let o=i[0],u=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:n.reduce((p,{paramName:y,isOptional:m},g)=>{if(y==="*"){let M=c[g]||"";u=o.slice(0,o.length-M.length).replace(/(.)\/+$/,"$1")}const T=c[g];return m&&!T?p[y]=void 0:p[y]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:u,pattern:e}}function d1(e,a=!1,t=!0){ii(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f)=>(n.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),n]}function f1(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return ii(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function Qi(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let t=a.endsWith("/")?a.length-1:a.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var fD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p1=e=>fD.test(e);function y1(e,a="/"){let{pathname:t,search:n="",hash:i=""}=typeof e=="string"?tu(e):e,o;if(t)if(p1(t))o=t;else{if(t.includes("//")){let u=t;t=t.replace(/\/\/+/g,"/"),ii(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${t}`)}t.startsWith("/")?o=kT(t.substring(1),"/"):o=kT(t,a)}else o=a;return{pathname:o,search:g1(n),hash:v1(i)}}function kT(e,a){let t=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?t.length>1&&t.pop():i!=="."&&t.push(i)}),t.length>1?t.join("/"):"/"}function Qp(e,a,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function m1(e){return e.filter((a,t)=>t===0||a.route.path&&a.route.path.length>0)}function pD(e){let a=m1(e);return a.map((t,n)=>n===a.length-1?t.pathname:t.pathnameBase)}function yD(e,a,t,n=!1){let i;typeof e=="string"?i=tu(e):(i={...e},or(!i.pathname||!i.pathname.includes("?"),Qp("?","pathname","search",i)),or(!i.pathname||!i.pathname.includes("#"),Qp("#","pathname","hash",i)),or(!i.search||!i.search.includes("#"),Qp("#","search","hash",i)));let o=e===""||i.pathname==="",u=o?"/":i.pathname,c;if(u==null)c=t;else{let m=a.length-1;if(!n&&u.startsWith("..")){let g=u.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}c=m>=0?a[m]:"/"}let f=y1(i,c),p=u&&u!=="/"&&u.endsWith("/"),y=(o||u===".")&&t.endsWith("/");return!f.pathname.endsWith("/")&&(p||y)&&(f.pathname+="/"),f}var Xi=e=>e.join("/").replace(/\/\/+/g,"/"),h1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,v1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_1=class{constructor(e,a,t,n=!1){this.status=e,this.statusText=a||"",this.internal=n,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function E1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function b1(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var mD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hD(e,a){let t=e;if(typeof t!="string"||!fD.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let n=t,i=!1;if(mD)try{let o=new URL(window.location.href),u=t.startsWith("//")?new URL(o.protocol+t):new URL(t),c=Qi(u.pathname,a);u.origin===o.origin&&c!=null?t=c+u.search+u.hash:i=!0}catch{ii(!1,`<Link to="${t}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gD=["POST","PUT","PATCH","DELETE"];new Set(gD);var w1=["GET",...gD];new Set(w1);var ru=fe.createContext(null);ru.displayName="DataRouter";var sf=fe.createContext(null);sf.displayName="DataRouterState";var T1=fe.createContext(!1),vD=fe.createContext({isTransitioning:!1});vD.displayName="ViewTransition";var S1=fe.createContext(new Map);S1.displayName="Fetchers";var O1=fe.createContext(null);O1.displayName="Await";var jn=fe.createContext(null);jn.displayName="Navigation";var Ml=fe.createContext(null);Ml.displayName="Location";var Zi=fe.createContext({outlet:null,matches:[],isDataRoute:!1});Zi.displayName="Route";var Tb=fe.createContext(null);Tb.displayName="RouteError";var _D="REACT_ROUTER_ERROR",A1="REDIRECT",P1="ROUTE_ERROR_RESPONSE";function I1(e){if(e.startsWith(`${_D}:${A1}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function R1(e){if(e.startsWith(`${_D}:${P1}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new _1(a.status,a.statusText,a.data)}catch{}}function M1(e,{relative:a}={}){or(Nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=fe.useContext(jn),{hash:i,pathname:o,search:u}=Cl(e,{relative:a}),c=o;return t!=="/"&&(c=o==="/"?t:Xi([t,o])),n.createHref({pathname:c,search:u,hash:i})}function Nl(){return fe.useContext(Ml)!=null}function Ta(){return or(Nl(),"useLocation() may be used only in the context of a <Router> component."),fe.useContext(Ml).location}var ED="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bD(e){fe.useContext(jn).static||fe.useLayoutEffect(e)}function N1(){let{isDataRoute:e}=fe.useContext(Zi);return e?W1():C1()}function C1(){or(Nl(),"useNavigate() may be used only in the context of a <Router> component.");let e=fe.useContext(ru),{basename:a,navigator:t}=fe.useContext(jn),{matches:n}=fe.useContext(Zi),{pathname:i}=Ta(),o=JSON.stringify(pD(n)),u=fe.useRef(!1);return bD(()=>{u.current=!0}),fe.useCallback((f,p={})=>{if(ii(u.current,ED),!u.current)return;if(typeof f=="number"){t.go(f);return}let y=yD(f,JSON.parse(o),i,p.relative==="path");e==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Xi([a,y.pathname])),(p.replace?t.replace:t.push)(y,p.state,p)},[a,t,o,i,e])}fe.createContext(null);function Cl(e,{relative:a}={}){let{matches:t}=fe.useContext(Zi),{pathname:n}=Ta(),i=JSON.stringify(pD(t));return fe.useMemo(()=>yD(e,JSON.parse(i),n,a==="path"),[e,i,n,a])}function j1(e,a){return wD(e,a)}function wD(e,a,t,n,i){or(Nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=fe.useContext(jn),{matches:u}=fe.useContext(Zi),c=u[u.length-1],f=c?c.params:{},p=c?c.pathname:"/",y=c?c.pathnameBase:"/",m=c&&c.route;{let E=m&&m.path||"";SD(p,!m||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
-
11
- Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=Ta(),T;if(a){let E=typeof a=="string"?tu(a):a;or(y==="/"||E.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${E.pathname}" was given in the \`location\` prop.`),T=E}else T=g;let M=T.pathname||"/",R=M;if(y!=="/"){let E=y.replace(/^\//,"").split("/");R="/"+M.replace(/^\//,"").split("/").slice(E.length).join("/")}let I=lD(e,{pathname:R});ii(m||I!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),ii(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0||I[I.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=U1(I&&I.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:Xi([y,o.encodeLocation?o.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?y:Xi([y,o.encodeLocation?o.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),u,t,n,i);return a&&N?fe.createElement(Ml.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},N):N}function L1(){let e=z1(),a=E1(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=fe.createElement(fe.Fragment,null,fe.createElement("p",null,"💿 Hey developer 👋"),fe.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",fe.createElement("code",{style:o},"ErrorBoundary")," or"," ",fe.createElement("code",{style:o},"errorElement")," prop on your route.")),fe.createElement(fe.Fragment,null,fe.createElement("h2",null,"Unexpected Application Error!"),fe.createElement("h3",{style:{fontStyle:"italic"}},a),t?fe.createElement("pre",{style:i},t):null,u)}var D1=fe.createElement(L1,null),TD=class extends fe.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=R1(e.digest);t&&(e=t)}let a=e!==void 0?fe.createElement(Zi.Provider,{value:this.props.routeContext},fe.createElement(Tb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?fe.createElement(q1,{error:e},a):a}};TD.contextType=T1;var Zp=new WeakMap;function q1({children:e,error:a}){let{basename:t}=fe.useContext(jn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let n=I1(a.digest);if(n){let i=Zp.get(a);if(i)throw i;let o=hD(n.location,t);if(mD&&!Zp.get(a))if(o.isExternal||n.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:n.replace}));throw Zp.set(a,u),u}return fe.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function k1({routeContext:e,match:a,children:t}){let n=fe.useContext(ru);return n&&n.static&&n.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=a.route.id),fe.createElement(Zi.Provider,{value:e},t)}function U1(e,a=[],t=null,n=null,i=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(a.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,u=t?.errors;if(u!=null){let y=o.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);or(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,f=-1;if(t)for(let y=0;y<o.length;y++){let m=o[y];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=y),m.route.id){let{loaderData:g,errors:T}=t,M=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!T||T[m.route.id]===void 0);if(m.route.lazy||M){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}let p=t&&n?(y,m)=>{n(y,{location:t.location,params:t.matches?.[0]?.params??{},unstable_pattern:b1(t.matches),errorInfo:m})}:void 0;return o.reduceRight((y,m,g)=>{let T,M=!1,R=null,I=null;t&&(T=u&&m.route.id?u[m.route.id]:void 0,R=m.route.errorElement||D1,c&&(f<0&&g===0?(SD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,I=null):f===g&&(M=!0,I=m.route.hydrateFallbackElement||null)));let N=a.concat(o.slice(0,g+1)),E=()=>{let P;return T?P=R:M?P=I:m.route.Component?P=fe.createElement(m.route.Component,null):m.route.element?P=m.route.element:P=y,fe.createElement(k1,{match:m,routeContext:{outlet:y,matches:N,isDataRoute:t!=null},children:P})};return t&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?fe.createElement(TD,{location:t.location,revalidation:t.revalidation,component:R,error:T,children:E(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:p}):E()},null)}function Sb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B1(e){let a=fe.useContext(ru);return or(a,Sb(e)),a}function F1(e){let a=fe.useContext(sf);return or(a,Sb(e)),a}function V1(e){let a=fe.useContext(Zi);return or(a,Sb(e)),a}function Ob(e){let a=V1(e),t=a.matches[a.matches.length-1];return or(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function H1(){return Ob("useRouteId")}function z1(){let e=fe.useContext(Tb),a=F1("useRouteError"),t=Ob("useRouteError");return e!==void 0?e:a.errors?.[t]}function W1(){let{router:e}=B1("useNavigate"),a=Ob("useNavigate"),t=fe.useRef(!1);return bD(()=>{t.current=!0}),fe.useCallback(async(i,o={})=>{ii(t.current,ED),t.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:a,...o}))},[e,a])}var UT={};function SD(e,a,t){!a&&!UT[e]&&(UT[e]=!0,ii(!1,t))}fe.memo(G1);function G1({routes:e,future:a,state:t,onError:n}){return wD(e,void 0,t,n,a)}function fb(e){or(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function K1({basename:e="/",children:a=null,location:t,navigationType:n="POP",navigator:i,static:o=!1,unstable_useTransitions:u}){or(!Nl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=fe.useMemo(()=>({basename:c,navigator:i,static:o,unstable_useTransitions:u,future:{}}),[c,i,o,u]);typeof t=="string"&&(t=tu(t));let{pathname:p="/",search:y="",hash:m="",state:g=null,key:T="default"}=t,M=fe.useMemo(()=>{let R=Qi(p,c);return R==null?null:{location:{pathname:R,search:y,hash:m,state:g,key:T},navigationType:n}},[c,p,y,m,g,T,n]);return ii(M!=null,`<Router basename="${c}"> is not able to match the URL "${p}${y}${m}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:fe.createElement(jn.Provider,{value:f},fe.createElement(Ml.Provider,{children:a,value:M}))}function Y1({children:e,location:a}){return j1(pb(e),a)}function pb(e,a=[]){let t=[];return fe.Children.forEach(e,(n,i)=>{if(!fe.isValidElement(n))return;let o=[...a,i];if(n.type===fe.Fragment){t.push.apply(t,pb(n.props.children,o));return}or(n.type===fb,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),or(!n.props.index||!n.props.children,"An index route cannot have child routes.");let u={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=pb(n.props.children,o)),t.push(u)}),t}var Jd="get",Qd="application/x-www-form-urlencoded";function uf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function X1(e){return uf(e)&&e.tagName.toLowerCase()==="button"}function J1(e){return uf(e)&&e.tagName.toLowerCase()==="form"}function Q1(e){return uf(e)&&e.tagName.toLowerCase()==="input"}function Z1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $1(e,a){return e.button===0&&(!a||a==="_self")&&!Z1(e)}var Dc=null;function x1(){if(Dc===null)try{new FormData(document.createElement("form"),0),Dc=!1}catch{Dc=!0}return Dc}var eU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $p(e){return e!=null&&!eU.has(e)?(ii(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qd}"`),null):e}function tU(e,a){let t,n,i,o,u;if(J1(e)){let c=e.getAttribute("action");n=c?Qi(c,a):null,t=e.getAttribute("method")||Jd,i=$p(e.getAttribute("enctype"))||Qd,o=new FormData(e)}else if(X1(e)||Q1(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(n=f?Qi(f,a):null,t=e.getAttribute("formmethod")||c.getAttribute("method")||Jd,i=$p(e.getAttribute("formenctype"))||$p(c.getAttribute("enctype"))||Qd,o=new FormData(c,e),!x1()){let{name:p,type:y,value:m}=e;if(y==="image"){let g=p?`${p}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else p&&o.append(p,m)}}else{if(uf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Jd,n=null,i=Qd,u=e}return o&&i==="text/plain"&&(u=o,o=void 0),{action:n,method:t.toLowerCase(),encType:i,formData:o,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ab(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function rU(e,a,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${t}`:a&&Qi(n.pathname,a)==="/"?n.pathname=`${a.replace(/\/$/,"")}/_root.${t}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${t}`,n}async function nU(e,a){if(e.id in a)return a[e.id];try{let t=await import(e.module);return a[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aU(e,a,t){let n=await Promise.all(e.map(async i=>{let o=a.routes[i.route.id];if(o){let u=await nU(o,t);return u.links?u.links():[]}return[]}));return lU(n.flat(1).filter(iU).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function BT(e,a,t,n,i,o){let u=(f,p)=>t[p]?f.route.id!==t[p].route.id:!0,c=(f,p)=>t[p].pathname!==f.pathname||t[p].route.path?.endsWith("*")&&t[p].params["*"]!==f.params["*"];return o==="assets"?a.filter((f,p)=>u(f,p)||c(f,p)):o==="data"?a.filter((f,p)=>{let y=n.routes[f.route.id];if(!y||!y.hasLoader)return!1;if(u(f,p)||c(f,p))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function oU(e,a,{includeHydrateFallback:t}={}){return sU(e.map(n=>{let i=a.routes[n.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),t&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function sU(e){return[...new Set(e)]}function uU(e){let a={},t=Object.keys(e).sort();for(let n of t)a[n]=e[n];return a}function lU(e,a){let t=new Set;return new Set(a),e.reduce((n,i)=>{let o=JSON.stringify(uU(i));return t.has(o)||(t.add(o),n.push({key:o,link:i})),n},[])}function OD(){let e=fe.useContext(ru);return Ab(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cU(){let e=fe.useContext(sf);return Ab(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pb=fe.createContext(void 0);Pb.displayName="FrameworkContext";function AD(){let e=fe.useContext(Pb);return Ab(e,"You must render this element inside a <HydratedRouter> element"),e}function dU(e,a){let t=fe.useContext(Pb),[n,i]=fe.useState(!1),[o,u]=fe.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:p,onMouseLeave:y,onTouchStart:m}=a,g=fe.useRef(null);fe.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let R=N=>{N.forEach(E=>{u(E.isIntersecting)})},I=new IntersectionObserver(R,{threshold:.5});return g.current&&I.observe(g.current),()=>{I.disconnect()}}},[e]),fe.useEffect(()=>{if(n){let R=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(R)}}},[n]);let T=()=>{i(!0)},M=()=>{i(!1),u(!1)};return t?e!=="intent"?[o,g,{}]:[o,g,{onFocus:ju(c,T),onBlur:ju(f,M),onMouseEnter:ju(p,T),onMouseLeave:ju(y,M),onTouchStart:ju(m,T)}]:[!1,g,{}]}function ju(e,a){return t=>{e&&e(t),t.defaultPrevented||a(t)}}function fU({page:e,...a}){let{router:t}=OD(),n=fe.useMemo(()=>lD(t.routes,e,t.basename),[t.routes,e,t.basename]);return n?fe.createElement(yU,{page:e,matches:n,...a}):null}function pU(e){let{manifest:a,routeModules:t}=AD(),[n,i]=fe.useState([]);return fe.useEffect(()=>{let o=!1;return aU(e,a,t).then(u=>{o||i(u)}),()=>{o=!0}},[e,a,t]),n}function yU({page:e,matches:a,...t}){let n=Ta(),{manifest:i,routeModules:o}=AD(),{basename:u}=OD(),{loaderData:c,matches:f}=cU(),p=fe.useMemo(()=>BT(e,a,f,i,n,"data"),[e,a,f,i,n]),y=fe.useMemo(()=>BT(e,a,f,i,n,"assets"),[e,a,f,i,n]),m=fe.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let M=new Set,R=!1;if(a.forEach(N=>{let E=i.routes[N.route.id];!E||!E.hasLoader||(!p.some(P=>P.route.id===N.route.id)&&N.route.id in c&&o[N.route.id]?.shouldRevalidate||E.hasClientLoader?R=!0:M.add(N.route.id))}),M.size===0)return[];let I=rU(e,u,"data");return R&&M.size>0&&I.searchParams.set("_routes",a.filter(N=>M.has(N.route.id)).map(N=>N.route.id).join(",")),[I.pathname+I.search]},[u,c,n,i,p,a,e,o]),g=fe.useMemo(()=>oU(y,i),[y,i]),T=pU(y);return fe.createElement(fe.Fragment,null,m.map(M=>fe.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...t})),g.map(M=>fe.createElement("link",{key:M,rel:"modulepreload",href:M,...t})),T.map(({key:M,link:R})=>fe.createElement("link",{key:M,nonce:t.nonce,...R})))}function mU(...e){return a=>{e.forEach(t=>{typeof t=="function"?t(a):t!=null&&(t.current=a)})}}var hU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hU&&(window.__reactRouterVersion="7.11.0")}catch{}function gU({basename:e,children:a,unstable_useTransitions:t,window:n}){let i=fe.useRef();i.current==null&&(i.current=Q2({window:n,v5Compat:!0}));let o=i.current,[u,c]=fe.useState({action:o.action,location:o.location}),f=fe.useCallback(p=>{t===!1?c(p):fe.startTransition(()=>c(p))},[t]);return fe.useLayoutEffect(()=>o.listen(f),[o,f]),fe.createElement(K1,{basename:e,children:a,location:u.location,navigationType:u.action,navigator:o,unstable_useTransitions:t})}var PD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ID=fe.forwardRef(function({onClick:a,discover:t="render",prefetch:n="none",relative:i,reloadDocument:o,replace:u,state:c,target:f,to:p,preventScrollReset:y,viewTransition:m,unstable_defaultShouldRevalidate:g,...T},M){let{basename:R,unstable_useTransitions:I}=fe.useContext(jn),N=typeof p=="string"&&PD.test(p),E=hD(p,R);p=E.to;let P=M1(p,{relative:i}),[S,v,O]=dU(n,T),j=bU(p,{replace:u,state:c,target:f,preventScrollReset:y,relative:i,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:I});function V(K){a&&a(K),K.defaultPrevented||j(K)}let U=fe.createElement("a",{...T,...O,href:E.absoluteURL||P,onClick:E.isExternal||o?a:V,ref:mU(M,v),target:f,"data-discover":!N&&t==="render"?"true":void 0});return S&&!N?fe.createElement(fe.Fragment,null,U,fe.createElement(fU,{page:P})):U});ID.displayName="Link";var vU=fe.forwardRef(function({"aria-current":a="page",caseSensitive:t=!1,className:n="",end:i=!1,style:o,to:u,viewTransition:c,children:f,...p},y){let m=Cl(u,{relative:p.relative}),g=Ta(),T=fe.useContext(sf),{navigator:M,basename:R}=fe.useContext(jn),I=T!=null&&AU(m)&&c===!0,N=M.encodeLocation?M.encodeLocation(m).pathname:m.pathname,E=g.pathname,P=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;t||(E=E.toLowerCase(),P=P?P.toLowerCase():null,N=N.toLowerCase()),P&&R&&(P=Qi(P,R)||P);const S=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let v=E===N||!i&&E.startsWith(N)&&E.charAt(S)==="/",O=P!=null&&(P===N||!i&&P.startsWith(N)&&P.charAt(N.length)==="/"),j={isActive:v,isPending:O,isTransitioning:I},V=v?a:void 0,U;typeof n=="function"?U=n(j):U=[n,v?"active":null,O?"pending":null,I?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(j):o;return fe.createElement(ID,{...p,"aria-current":V,className:U,ref:y,style:K,to:u,viewTransition:c},typeof f=="function"?f(j):f)});vU.displayName="NavLink";var _U=fe.forwardRef(({discover:e="render",fetcherKey:a,navigate:t,reloadDocument:n,replace:i,state:o,method:u=Jd,action:c,onSubmit:f,relative:p,preventScrollReset:y,viewTransition:m,unstable_defaultShouldRevalidate:g,...T},M)=>{let{unstable_useTransitions:R}=fe.useContext(jn),I=SU(),N=OU(c,{relative:p}),E=u.toLowerCase()==="get"?"get":"post",P=typeof c=="string"&&PD.test(c),S=v=>{if(f&&f(v),v.defaultPrevented)return;v.preventDefault();let O=v.nativeEvent.submitter,j=O?.getAttribute("formmethod")||u,V=()=>I(O||v.currentTarget,{fetcherKey:a,method:j,navigate:t,replace:i,state:o,relative:p,preventScrollReset:y,viewTransition:m,unstable_defaultShouldRevalidate:g});R&&t!==!1?fe.startTransition(()=>V()):V()};return fe.createElement("form",{ref:M,method:E,action:N,onSubmit:n?f:S,...T,"data-discover":!P&&e==="render"?"true":void 0})});_U.displayName="Form";function EU(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RD(e){let a=fe.useContext(ru);return or(a,EU(e)),a}function bU(e,{target:a,replace:t,state:n,preventScrollReset:i,relative:o,viewTransition:u,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let p=N1(),y=Ta(),m=Cl(e,{relative:o});return fe.useCallback(g=>{if($1(g,a)){g.preventDefault();let T=t!==void 0?t:Ol(y)===Ol(m),M=()=>p(e,{replace:T,state:n,preventScrollReset:i,relative:o,viewTransition:u,unstable_defaultShouldRevalidate:c});f?fe.startTransition(()=>M()):M()}},[y,p,m,t,n,a,e,i,o,u,c,f])}var wU=0,TU=()=>`__${String(++wU)}__`;function SU(){let{router:e}=RD("useSubmit"),{basename:a}=fe.useContext(jn),t=H1(),n=e.fetch,i=e.navigate;return fe.useCallback(async(o,u={})=>{let{action:c,method:f,encType:p,formData:y,body:m}=tU(o,a);if(u.navigate===!1){let g=u.fetcherKey||TU();await n(g,t,u.action||c,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:m,formMethod:u.method||f,formEncType:u.encType||p,flushSync:u.flushSync})}else await i(u.action||c,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:m,formMethod:u.method||f,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:t,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,i,a,t])}function OU(e,{relative:a}={}){let{basename:t}=fe.useContext(jn),n=fe.useContext(Zi);or(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...Cl(e||".",{relative:a})},u=Ta();if(e==null){o.search=u.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(y=>y==="")){c.delete("index"),f.filter(m=>m).forEach(m=>c.append("index",m));let y=c.toString();o.search=y?`?${y}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(o.pathname=o.pathname==="/"?t:Xi([t,o.pathname])),Ol(o)}function AU(e,{relative:a}={}){let t=fe.useContext(vD);or(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=RD("useViewTransitionState"),i=Cl(e,{relative:a});if(!t.isTransitioning)return!1;let o=Qi(t.currentLocation.pathname,n)||t.currentLocation.pathname,u=Qi(t.nextLocation.pathname,n)||t.nextLocation.pathname;return xd(i.pathname,u)!=null||xd(i.pathname,o)!=null}var Kn={},Za={},$a={},xp={},Yn={},qc={exports:{}},ey={},Vi={},xa={},ty={},ry={},ny={},FT;function Al(){return FT||(FT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class a{}e._CodeOrName=a,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends a{constructor(E){if(super(),!e.IDENTIFIER.test(E))throw new Error("CodeGen: name must be a valid identifier");this.str=E}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=t;class n extends a{constructor(E){super(),this._items=typeof E=="string"?[E]:E}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const E=this._items[0];return E===""||E==='""'}get str(){var E;return(E=this._str)!==null&&E!==void 0?E:this._str=this._items.reduce((P,S)=>`${P}${S}`,"")}get names(){var E;return(E=this._names)!==null&&E!==void 0?E:this._names=this._items.reduce((P,S)=>(S instanceof t&&(P[S.str]=(P[S.str]||0)+1),P),{})}}e._Code=n,e.nil=new n("");function i(N,...E){const P=[N[0]];let S=0;for(;S<E.length;)c(P,E[S]),P.push(N[++S]);return new n(P)}e._=i;const o=new n("+");function u(N,...E){const P=[T(N[0])];let S=0;for(;S<E.length;)P.push(o),c(P,E[S]),P.push(o,T(N[++S]));return f(P),new n(P)}e.str=u;function c(N,E){E instanceof n?N.push(...E._items):E instanceof t?N.push(E):N.push(m(E))}e.addCodeArg=c;function f(N){let E=1;for(;E<N.length-1;){if(N[E]===o){const P=p(N[E-1],N[E+1]);if(P!==void 0){N.splice(E-1,3,P);continue}N[E++]="+"}E++}}function p(N,E){if(E==='""')return N;if(N==='""')return E;if(typeof N=="string")return E instanceof t||N[N.length-1]!=='"'?void 0:typeof E!="string"?`${N.slice(0,-1)}${E}"`:E[0]==='"'?N.slice(0,-1)+E.slice(1):void 0;if(typeof E=="string"&&E[0]==='"'&&!(N instanceof t))return`"${N}${E.slice(1)}`}function y(N,E){return E.emptyStr()?N:N.emptyStr()?E:u`${N}${E}`}e.strConcat=y;function m(N){return typeof N=="number"||typeof N=="boolean"||N===null?N:T(Array.isArray(N)?N.join(","):N)}function g(N){return new n(T(N))}e.stringify=g;function T(N){return JSON.stringify(N).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=T;function M(N){return typeof N=="string"&&e.IDENTIFIER.test(N)?new n(`.${N}`):i`[${N}]`}e.getProperty=M;function R(N){if(typeof N=="string"&&e.IDENTIFIER.test(N))return new n(`${N}`);throw new Error(`CodeGen: invalid export name: ${N}, use explicit $id name mapping`)}e.getEsmExportName=R;function I(N){return new n(N.toString())}e.regexpCode=I})(ny)),ny}var iy={},VT;function HT(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const a=Al();class t extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(f){f[f.Started=0]="Started",f[f.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new a.Name("const"),let:new a.Name("let"),var:new a.Name("var")};class i{constructor({prefixes:p,parent:y}={}){this._names={},this._prefixes=p,this._parent=y}toName(p){return p instanceof a.Name?p:this.name(p)}name(p){return new a.Name(this._newName(p))}_newName(p){const y=this._names[p]||this._nameGroup(p);return`${p}${y.index++}`}_nameGroup(p){var y,m;if(!((m=(y=this._parent)===null||y===void 0?void 0:y._prefixes)===null||m===void 0)&&m.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=i;class o extends a.Name{constructor(p,y){super(y),this.prefix=p}setValue(p,{property:y,itemIndex:m}){this.value=p,this.scopePath=(0,a._)`.${new a.Name(y)}[${m}]`}}e.ValueScopeName=o;const u=(0,a._)`\n`;class c extends i{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?u:a.nil}}get(){return this._scope}name(p){return new o(p,this._newName(p))}value(p,y){var m;if(y.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(p),{prefix:T}=g,M=(m=y.key)!==null&&m!==void 0?m:y.ref;let R=this._values[T];if(R){const E=R.get(M);if(E)return E}else R=this._values[T]=new Map;R.set(M,g);const I=this._scope[T]||(this._scope[T]=[]),N=I.length;return I[N]=y.ref,g.setValue(y,{property:T,itemIndex:N}),g}getValue(p,y){const m=this._values[p];if(m)return m.get(y)}scopeRefs(p,y=this._values){return this._reduceValues(y,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,a._)`${p}${m.scopePath}`})}scopeCode(p=this._values,y,m){return this._reduceValues(p,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},y,m)}_reduceValues(p,y,m={},g){let T=a.nil;for(const M in p){const R=p[M];if(!R)continue;const I=m[M]=m[M]||new Map;R.forEach(N=>{if(I.has(N))return;I.set(N,n.Started);let E=y(N);if(E){const P=this.opts.es5?e.varKinds.var:e.varKinds.const;T=(0,a._)`${T}${P} ${N} = ${E};${this.opts._n}`}else if(E=g?.(N))T=(0,a._)`${T}${E}${this.opts._n}`;else throw new t(N);I.set(N,n.Completed)})}return T}}e.ValueScope=c})(iy)),iy}var zT;function bt(){return zT||(zT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const a=Al(),t=HT();var n=Al();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=HT();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class o{optimizeNodes(){return this}optimizeNames(L,W){return this}}class u extends o{constructor(L,W,oe){super(),this.varKind=L,this.name=W,this.rhs=oe}render({es5:L,_n:W}){const oe=L?t.varKinds.var:this.varKind,Re=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${Re};`+W}optimizeNames(L,W){if(L[this.name.str])return this.rhs&&(this.rhs=ye(this.rhs,L,W)),this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(L,W,oe){super(),this.lhs=L,this.rhs=W,this.sideEffects=oe}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,W){if(!(this.lhs instanceof a.Name&&!L[this.lhs.str]&&!this.sideEffects))return this.rhs=ye(this.rhs,L,W),this}get names(){const L=this.lhs instanceof a.Name?{}:{...this.lhs.names};return be(L,this.rhs)}}class f extends c{constructor(L,W,oe,Re){super(L,oe,Re),this.op=W}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}}class p extends o{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}}class y extends o{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`break${this.label?` ${this.label}`:""};`+L}}class m extends o{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}}class g extends o{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,W){return this.code=ye(this.code,L,W),this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class T extends o{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce((W,oe)=>W+oe.render(L),"")}optimizeNodes(){const{nodes:L}=this;let W=L.length;for(;W--;){const oe=L[W].optimizeNodes();Array.isArray(oe)?L.splice(W,1,...oe):oe?L[W]=oe:L.splice(W,1)}return L.length>0?this:void 0}optimizeNames(L,W){const{nodes:oe}=this;let Re=oe.length;for(;Re--;){const Se=oe[Re];Se.optimizeNames(L,W)||(Me(L,Se.names),oe.splice(Re,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((L,W)=>_e(L,W.names),{})}}class M extends T{render(L){return"{"+L._n+super.render(L)+"}"+L._n}}class R extends T{}class I extends M{}I.kind="else";class N extends M{constructor(L,W){super(W),this.condition=L}render(L){let W=`if(${this.condition})`+super.render(L);return this.else&&(W+="else "+this.else.render(L)),W}optimizeNodes(){super.optimizeNodes();const L=this.condition;if(L===!0)return this.nodes;let W=this.else;if(W){const oe=W.optimizeNodes();W=this.else=Array.isArray(oe)?new I(oe):oe}if(W)return L===!1?W instanceof N?W:W.nodes:this.nodes.length?this:new N(Ne(L),W instanceof N?[W]:W.nodes);if(!(L===!1||!this.nodes.length))return this}optimizeNames(L,W){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(L,W),!!(super.optimizeNames(L,W)||this.else))return this.condition=ye(this.condition,L,W),this}get names(){const L=super.names;return be(L,this.condition),this.else&&_e(L,this.else.names),L}}N.kind="if";class E extends M{}E.kind="for";class P extends E{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,W){if(super.optimizeNames(L,W))return this.iteration=ye(this.iteration,L,W),this}get names(){return _e(super.names,this.iteration.names)}}class S extends E{constructor(L,W,oe,Re){super(),this.varKind=L,this.name=W,this.from=oe,this.to=Re}render(L){const W=L.es5?t.varKinds.var:this.varKind,{name:oe,from:Re,to:Se}=this;return`for(${W} ${oe}=${Re}; ${oe}<${Se}; ${oe}++)`+super.render(L)}get names(){const L=be(super.names,this.from);return be(L,this.to)}}class v extends E{constructor(L,W,oe,Re){super(),this.loop=L,this.varKind=W,this.name=oe,this.iterable=Re}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,W){if(super.optimizeNames(L,W))return this.iterable=ye(this.iterable,L,W),this}get names(){return _e(super.names,this.iterable.names)}}class O extends M{constructor(L,W,oe){super(),this.name=L,this.args=W,this.async=oe}render(L){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(L)}}O.kind="func";class j extends T{render(L){return"return "+super.render(L)}}j.kind="return";class V extends M{render(L){let W="try"+super.render(L);return this.catch&&(W+=this.catch.render(L)),this.finally&&(W+=this.finally.render(L)),W}optimizeNodes(){var L,W;return super.optimizeNodes(),(L=this.catch)===null||L===void 0||L.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(L,W){var oe,Re;return super.optimizeNames(L,W),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(L,W),(Re=this.finally)===null||Re===void 0||Re.optimizeNames(L,W),this}get names(){const L=super.names;return this.catch&&_e(L,this.catch.names),this.finally&&_e(L,this.finally.names),L}}class U extends M{constructor(L){super(),this.error=L}render(L){return`catch(${this.error})`+super.render(L)}}U.kind="catch";class K extends M{render(L){return"finally"+super.render(L)}}K.kind="finally";class ae{constructor(L,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?`
12
- `:""},this._extScope=L,this._scope=new t.Scope({parent:L}),this._nodes=[new R]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,W){const oe=this._extScope.value(L,W);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(L,W){return this._extScope.getValue(L,W)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,W,oe,Re){const Se=this._scope.toName(W);return oe!==void 0&&Re&&(this._constants[Se.str]=oe),this._leafNode(new u(L,Se,oe)),Se}const(L,W,oe){return this._def(t.varKinds.const,L,W,oe)}let(L,W,oe){return this._def(t.varKinds.let,L,W,oe)}var(L,W,oe){return this._def(t.varKinds.var,L,W,oe)}assign(L,W,oe){return this._leafNode(new c(L,W,oe))}add(L,W){return this._leafNode(new f(L,e.operators.ADD,W))}code(L){return typeof L=="function"?L():L!==a.nil&&this._leafNode(new g(L)),this}object(...L){const W=["{"];for(const[oe,Re]of L)W.length>1&&W.push(","),W.push(oe),(oe!==Re||this.opts.es5)&&(W.push(":"),(0,a.addCodeArg)(W,Re));return W.push("}"),new a._Code(W)}if(L,W,oe){if(this._blockNode(new N(L)),W&&oe)this.code(W).else().code(oe).endIf();else if(W)this.code(W).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new N(L))}else(){return this._elseNode(new I)}endIf(){return this._endBlockNode(N,I)}_for(L,W){return this._blockNode(L),W&&this.code(W).endFor(),this}for(L,W){return this._for(new P(L),W)}forRange(L,W,oe,Re,Se=this.opts.es5?t.varKinds.var:t.varKinds.let){const Ue=this._scope.toName(L);return this._for(new S(Se,Ue,W,oe),()=>Re(Ue))}forOf(L,W,oe,Re=t.varKinds.const){const Se=this._scope.toName(L);if(this.opts.es5){const Ue=W instanceof a.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,a._)`${Ue}.length`,Ce=>{this.var(Se,(0,a._)`${Ue}[${Ce}]`),oe(Se)})}return this._for(new v("of",Re,Se,W),()=>oe(Se))}forIn(L,W,oe,Re=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(L,(0,a._)`Object.keys(${W})`,oe);const Se=this._scope.toName(L);return this._for(new v("in",Re,Se,W),()=>oe(Se))}endFor(){return this._endBlockNode(E)}label(L){return this._leafNode(new p(L))}break(L){return this._leafNode(new y(L))}return(L){const W=new j;if(this._blockNode(W),this.code(L),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(L,W,oe){if(!W&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const Re=new V;if(this._blockNode(Re),this.code(L),W){const Se=this.name("e");this._currNode=Re.catch=new U(Se),W(Se)}return oe&&(this._currNode=Re.finally=new K,this.code(oe)),this._endBlockNode(U,K)}throw(L){return this._leafNode(new m(L))}block(L,W){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock(W),this}endBlock(L){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-W;if(oe<0||L!==void 0&&oe!==L)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${L} expected`);return this._nodes.length=W,this}func(L,W=a.nil,oe,Re){return this._blockNode(new O(L,W,oe)),Re&&this.code(Re).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,W){const oe=this._currNode;if(oe instanceof L||W&&oe instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${L.kind}/${W.kind}`:L.kind}"`)}_elseNode(L){const W=this._currNode;if(!(W instanceof N))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=L,this}get _root(){return this._nodes[0]}get _currNode(){const L=this._nodes;return L[L.length-1]}set _currNode(L){const W=this._nodes;W[W.length-1]=L}}e.CodeGen=ae;function _e(k,L){for(const W in L)k[W]=(k[W]||0)+(L[W]||0);return k}function be(k,L){return L instanceof a._CodeOrName?_e(k,L.names):k}function ye(k,L,W){if(k instanceof a.Name)return oe(k);if(!Re(k))return k;return new a._Code(k._items.reduce((Se,Ue)=>(Ue instanceof a.Name&&(Ue=oe(Ue)),Ue instanceof a._Code?Se.push(...Ue._items):Se.push(Ue),Se),[]));function oe(Se){const Ue=W[Se.str];return Ue===void 0||L[Se.str]!==1?Se:(delete L[Se.str],Ue)}function Re(Se){return Se instanceof a._Code&&Se._items.some(Ue=>Ue instanceof a.Name&&L[Ue.str]===1&&W[Ue.str]!==void 0)}}function Me(k,L){for(const W in L)k[W]=(k[W]||0)-(L[W]||0)}function Ne(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,a._)`!${B(k)}`}e.not=Ne;const qe=C(e.operators.AND);function we(...k){return k.reduce(qe)}e.and=we;const ue=C(e.operators.OR);function X(...k){return k.reduce(ue)}e.or=X;function C(k){return(L,W)=>L===a.nil?W:W===a.nil?L:(0,a._)`${B(L)} ${k} ${B(W)}`}function B(k){return k instanceof a.Name?k:(0,a._)`(${k})`}})(ry)),ry}var It={},WT;function kt(){if(WT)return It;WT=1,Object.defineProperty(It,"__esModule",{value:!0}),It.checkStrictMode=It.getErrorPath=It.Type=It.useFunc=It.setEvaluated=It.evaluatedPropsToName=It.mergeEvaluated=It.eachItem=It.unescapeJsonPointer=It.escapeJsonPointer=It.escapeFragment=It.unescapeFragment=It.schemaRefOrVal=It.schemaHasRulesButRef=It.schemaHasRules=It.checkUnknownRules=It.alwaysValidSchema=It.toHash=void 0;const e=bt(),a=Al();function t(v){const O={};for(const j of v)O[j]=!0;return O}It.toHash=t;function n(v,O){return typeof O=="boolean"?O:Object.keys(O).length===0?!0:(i(v,O),!o(O,v.self.RULES.all))}It.alwaysValidSchema=n;function i(v,O=v.schema){const{opts:j,self:V}=v;if(!j.strictSchema||typeof O=="boolean")return;const U=V.RULES.keywords;for(const K in O)U[K]||S(v,`unknown keyword: "${K}"`)}It.checkUnknownRules=i;function o(v,O){if(typeof v=="boolean")return!v;for(const j in v)if(O[j])return!0;return!1}It.schemaHasRules=o;function u(v,O){if(typeof v=="boolean")return!v;for(const j in v)if(j!=="$ref"&&O.all[j])return!0;return!1}It.schemaHasRulesButRef=u;function c({topSchemaRef:v,schemaPath:O},j,V,U){if(!U){if(typeof j=="number"||typeof j=="boolean")return j;if(typeof j=="string")return(0,e._)`${j}`}return(0,e._)`${v}${O}${(0,e.getProperty)(V)}`}It.schemaRefOrVal=c;function f(v){return m(decodeURIComponent(v))}It.unescapeFragment=f;function p(v){return encodeURIComponent(y(v))}It.escapeFragment=p;function y(v){return typeof v=="number"?`${v}`:v.replace(/~/g,"~0").replace(/\//g,"~1")}It.escapeJsonPointer=y;function m(v){return v.replace(/~1/g,"/").replace(/~0/g,"~")}It.unescapeJsonPointer=m;function g(v,O){if(Array.isArray(v))for(const j of v)O(j);else O(v)}It.eachItem=g;function T({mergeNames:v,mergeToName:O,mergeValues:j,resultToName:V}){return(U,K,ae,_e)=>{const be=ae===void 0?K:ae instanceof e.Name?(K instanceof e.Name?v(U,K,ae):O(U,K,ae),ae):K instanceof e.Name?(O(U,ae,K),K):j(K,ae);return _e===e.Name&&!(be instanceof e.Name)?V(U,be):be}}It.mergeEvaluated={props:T({mergeNames:(v,O,j)=>v.if((0,e._)`${j} !== true && ${O} !== undefined`,()=>{v.if((0,e._)`${O} === true`,()=>v.assign(j,!0),()=>v.assign(j,(0,e._)`${j} || {}`).code((0,e._)`Object.assign(${j}, ${O})`))}),mergeToName:(v,O,j)=>v.if((0,e._)`${j} !== true`,()=>{O===!0?v.assign(j,!0):(v.assign(j,(0,e._)`${j} || {}`),R(v,j,O))}),mergeValues:(v,O)=>v===!0?!0:{...v,...O},resultToName:M}),items:T({mergeNames:(v,O,j)=>v.if((0,e._)`${j} !== true && ${O} !== undefined`,()=>v.assign(j,(0,e._)`${O} === true ? true : ${j} > ${O} ? ${j} : ${O}`)),mergeToName:(v,O,j)=>v.if((0,e._)`${j} !== true`,()=>v.assign(j,O===!0?!0:(0,e._)`${j} > ${O} ? ${j} : ${O}`)),mergeValues:(v,O)=>v===!0?!0:Math.max(v,O),resultToName:(v,O)=>v.var("items",O)})};function M(v,O){if(O===!0)return v.var("props",!0);const j=v.var("props",(0,e._)`{}`);return O!==void 0&&R(v,j,O),j}It.evaluatedPropsToName=M;function R(v,O,j){Object.keys(j).forEach(V=>v.assign((0,e._)`${O}${(0,e.getProperty)(V)}`,!0))}It.setEvaluated=R;const I={};function N(v,O){return v.scopeValue("func",{ref:O,code:I[O.code]||(I[O.code]=new a._Code(O.code))})}It.useFunc=N;var E;(function(v){v[v.Num=0]="Num",v[v.Str=1]="Str"})(E||(It.Type=E={}));function P(v,O,j){if(v instanceof e.Name){const V=O===E.Num;return j?V?(0,e._)`"[" + ${v} + "]"`:(0,e._)`"['" + ${v} + "']"`:V?(0,e._)`"/" + ${v}`:(0,e._)`"/" + ${v}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return j?(0,e.getProperty)(v).toString():"/"+y(v)}It.getErrorPath=P;function S(v,O,j=v.opts.strictSchema){if(j){if(O=`strict mode: ${O}`,j===!0)throw new Error(O);v.self.logger.warn(O)}}return It.checkStrictMode=S,It}var kc={},GT;function $i(){if(GT)return kc;GT=1,Object.defineProperty(kc,"__esModule",{value:!0});const e=bt(),a={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return kc.default=a,kc}var KT;function jl(){return KT||(KT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const a=bt(),t=kt(),n=$i();e.keywordError={message:({keyword:I})=>(0,a.str)`must pass "${I}" keyword validation`},e.keyword$DataError={message:({keyword:I,schemaType:N})=>N?(0,a.str)`"${I}" keyword must be ${N} ($data)`:(0,a.str)`"${I}" keyword is invalid ($data)`};function i(I,N=e.keywordError,E,P){const{it:S}=I,{gen:v,compositeRule:O,allErrors:j}=S,V=m(I,N,E);P??(O||j)?f(v,V):p(S,(0,a._)`[${V}]`)}e.reportError=i;function o(I,N=e.keywordError,E){const{it:P}=I,{gen:S,compositeRule:v,allErrors:O}=P,j=m(I,N,E);f(S,j),v||O||p(P,n.default.vErrors)}e.reportExtraError=o;function u(I,N){I.assign(n.default.errors,N),I.if((0,a._)`${n.default.vErrors} !== null`,()=>I.if(N,()=>I.assign((0,a._)`${n.default.vErrors}.length`,N),()=>I.assign(n.default.vErrors,null)))}e.resetErrorsCount=u;function c({gen:I,keyword:N,schemaValue:E,data:P,errsCount:S,it:v}){if(S===void 0)throw new Error("ajv implementation error");const O=I.name("err");I.forRange("i",S,n.default.errors,j=>{I.const(O,(0,a._)`${n.default.vErrors}[${j}]`),I.if((0,a._)`${O}.instancePath === undefined`,()=>I.assign((0,a._)`${O}.instancePath`,(0,a.strConcat)(n.default.instancePath,v.errorPath))),I.assign((0,a._)`${O}.schemaPath`,(0,a.str)`${v.errSchemaPath}/${N}`),v.opts.verbose&&(I.assign((0,a._)`${O}.schema`,E),I.assign((0,a._)`${O}.data`,P))})}e.extendErrors=c;function f(I,N){const E=I.const("err",N);I.if((0,a._)`${n.default.vErrors} === null`,()=>I.assign(n.default.vErrors,(0,a._)`[${E}]`),(0,a._)`${n.default.vErrors}.push(${E})`),I.code((0,a._)`${n.default.errors}++`)}function p(I,N){const{gen:E,validateName:P,schemaEnv:S}=I;S.$async?E.throw((0,a._)`new ${I.ValidationError}(${N})`):(E.assign((0,a._)`${P}.errors`,N),E.return(!1))}const y={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function m(I,N,E){const{createErrors:P}=I.it;return P===!1?(0,a._)`{}`:g(I,N,E)}function g(I,N,E={}){const{gen:P,it:S}=I,v=[T(S,E),M(I,E)];return R(I,N,v),P.object(...v)}function T({errorPath:I},{instancePath:N}){const E=N?(0,a.str)`${I}${(0,t.getErrorPath)(N,t.Type.Str)}`:I;return[n.default.instancePath,(0,a.strConcat)(n.default.instancePath,E)]}function M({keyword:I,it:{errSchemaPath:N}},{schemaPath:E,parentSchema:P}){let S=P?N:(0,a.str)`${N}/${I}`;return E&&(S=(0,a.str)`${S}${(0,t.getErrorPath)(E,t.Type.Str)}`),[y.schemaPath,S]}function R(I,{params:N,message:E},P){const{keyword:S,data:v,schemaValue:O,it:j}=I,{opts:V,propertyName:U,topSchemaRef:K,schemaPath:ae}=j;P.push([y.keyword,S],[y.params,typeof N=="function"?N(I):N||(0,a._)`{}`]),V.messages&&P.push([y.message,typeof E=="function"?E(I):E]),V.verbose&&P.push([y.schema,O],[y.parentSchema,(0,a._)`${K}${ae}`],[n.default.data,v]),U&&P.push([y.propertyName,U])}})(ty)),ty}var YT;function PU(){if(YT)return xa;YT=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.boolOrEmptySchema=xa.topBoolOrEmptySchema=void 0;const e=jl(),a=bt(),t=$i(),n={message:"boolean schema is false"};function i(c){const{gen:f,schema:p,validateName:y}=c;p===!1?u(c,!1):typeof p=="object"&&p.$async===!0?f.return(t.default.data):(f.assign((0,a._)`${y}.errors`,null),f.return(!0))}xa.topBoolOrEmptySchema=i;function o(c,f){const{gen:p,schema:y}=c;y===!1?(p.var(f,!1),u(c)):p.var(f,!0)}xa.boolOrEmptySchema=o;function u(c,f){const{gen:p,data:y}=c,m={gen:p,keyword:"false schema",data:y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(m,n,void 0,f)}return xa}var jr={},eo={},XT;function MD(){if(XT)return eo;XT=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.getRules=eo.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],a=new Set(e);function t(i){return typeof i=="string"&&a.has(i)}eo.isJSONType=t;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return eo.getRules=n,eo}var Hi={},JT;function ND(){if(JT)return Hi;JT=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.shouldUseRule=Hi.shouldUseGroup=Hi.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const u=i.RULES.types[o];return u&&u!==!0&&a(n,u)}Hi.schemaHasRulesForType=e;function a(n,i){return i.rules.some(o=>t(n,o))}Hi.shouldUseGroup=a;function t(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(u=>n[u]!==void 0))}return Hi.shouldUseRule=t,Hi}var QT;function ef(){if(QT)return jr;QT=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.reportTypeError=jr.checkDataTypes=jr.checkDataType=jr.coerceAndCheckDataType=jr.getJSONTypes=jr.getSchemaTypes=jr.DataType=void 0;const e=MD(),a=ND(),t=jl(),n=bt(),i=kt();var o;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(o||(jr.DataType=o={}));function u(E){const P=c(E.type);if(P.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!P.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&P.push("null")}return P}jr.getSchemaTypes=u;function c(E){const P=Array.isArray(E)?E:E?[E]:[];if(P.every(e.isJSONType))return P;throw new Error("type must be JSONType or JSONType[]: "+P.join(","))}jr.getJSONTypes=c;function f(E,P){const{gen:S,data:v,opts:O}=E,j=y(P,O.coerceTypes),V=P.length>0&&!(j.length===0&&P.length===1&&(0,a.schemaHasRulesForType)(E,P[0]));if(V){const U=M(P,v,O.strictNumbers,o.Wrong);S.if(U,()=>{j.length?m(E,P,j):I(E)})}return V}jr.coerceAndCheckDataType=f;const p=new Set(["string","number","integer","boolean","null"]);function y(E,P){return P?E.filter(S=>p.has(S)||P==="array"&&S==="array"):[]}function m(E,P,S){const{gen:v,data:O,opts:j}=E,V=v.let("dataType",(0,n._)`typeof ${O}`),U=v.let("coerced",(0,n._)`undefined`);j.coerceTypes==="array"&&v.if((0,n._)`${V} == 'object' && Array.isArray(${O}) && ${O}.length == 1`,()=>v.assign(O,(0,n._)`${O}[0]`).assign(V,(0,n._)`typeof ${O}`).if(M(P,O,j.strictNumbers),()=>v.assign(U,O))),v.if((0,n._)`${U} !== undefined`);for(const ae of S)(p.has(ae)||ae==="array"&&j.coerceTypes==="array")&&K(ae);v.else(),I(E),v.endIf(),v.if((0,n._)`${U} !== undefined`,()=>{v.assign(O,U),g(E,U)});function K(ae){switch(ae){case"string":v.elseIf((0,n._)`${V} == "number" || ${V} == "boolean"`).assign(U,(0,n._)`"" + ${O}`).elseIf((0,n._)`${O} === null`).assign(U,(0,n._)`""`);return;case"number":v.elseIf((0,n._)`${V} == "boolean" || ${O} === null
13
- || (${V} == "string" && ${O} && ${O} == +${O})`).assign(U,(0,n._)`+${O}`);return;case"integer":v.elseIf((0,n._)`${V} === "boolean" || ${O} === null
14
- || (${V} === "string" && ${O} && ${O} == +${O} && !(${O} % 1))`).assign(U,(0,n._)`+${O}`);return;case"boolean":v.elseIf((0,n._)`${O} === "false" || ${O} === 0 || ${O} === null`).assign(U,!1).elseIf((0,n._)`${O} === "true" || ${O} === 1`).assign(U,!0);return;case"null":v.elseIf((0,n._)`${O} === "" || ${O} === 0 || ${O} === false`),v.assign(U,null);return;case"array":v.elseIf((0,n._)`${V} === "string" || ${V} === "number"
15
- || ${V} === "boolean" || ${O} === null`).assign(U,(0,n._)`[${O}]`)}}}function g({gen:E,parentData:P,parentDataProperty:S},v){E.if((0,n._)`${P} !== undefined`,()=>E.assign((0,n._)`${P}[${S}]`,v))}function T(E,P,S,v=o.Correct){const O=v===o.Correct?n.operators.EQ:n.operators.NEQ;let j;switch(E){case"null":return(0,n._)`${P} ${O} null`;case"array":j=(0,n._)`Array.isArray(${P})`;break;case"object":j=(0,n._)`${P} && typeof ${P} == "object" && !Array.isArray(${P})`;break;case"integer":j=V((0,n._)`!(${P} % 1) && !isNaN(${P})`);break;case"number":j=V();break;default:return(0,n._)`typeof ${P} ${O} ${E}`}return v===o.Correct?j:(0,n.not)(j);function V(U=n.nil){return(0,n.and)((0,n._)`typeof ${P} == "number"`,U,S?(0,n._)`isFinite(${P})`:n.nil)}}jr.checkDataType=T;function M(E,P,S,v){if(E.length===1)return T(E[0],P,S,v);let O;const j=(0,i.toHash)(E);if(j.array&&j.object){const V=(0,n._)`typeof ${P} != "object"`;O=j.null?V:(0,n._)`!${P} || ${V}`,delete j.null,delete j.array,delete j.object}else O=n.nil;j.number&&delete j.integer;for(const V in j)O=(0,n.and)(O,T(V,P,S,v));return O}jr.checkDataTypes=M;const R={message:({schema:E})=>`must be ${E}`,params:({schema:E,schemaValue:P})=>typeof E=="string"?(0,n._)`{type: ${E}}`:(0,n._)`{type: ${P}}`};function I(E){const P=N(E);(0,t.reportError)(P,R)}jr.reportTypeError=I;function N(E){const{gen:P,data:S,schema:v}=E,O=(0,i.schemaRefOrVal)(E,v,"type");return{gen:P,keyword:"type",data:S,schema:v.type,schemaCode:O,schemaValue:O,parentSchema:v,params:{},it:E}}return jr}var Lu={},ZT;function IU(){if(ZT)return Lu;ZT=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.assignDefaults=void 0;const e=bt(),a=kt();function t(i,o){const{properties:u,items:c}=i.schema;if(o==="object"&&u)for(const f in u)n(i,f,u[f].default);else o==="array"&&Array.isArray(c)&&c.forEach((f,p)=>n(i,p,f.default))}Lu.assignDefaults=t;function n(i,o,u){const{gen:c,compositeRule:f,data:p,opts:y}=i;if(u===void 0)return;const m=(0,e._)`${p}${(0,e.getProperty)(o)}`;if(f){(0,a.checkStrictMode)(i,`default is ignored for: ${m}`);return}let g=(0,e._)`${m} === undefined`;y.useDefaults==="empty"&&(g=(0,e._)`${g} || ${m} === null || ${m} === ""`),c.if(g,(0,e._)`${m} = ${(0,e.stringify)(u)}`)}return Lu}var Xn={},Kt={},$T;function ai(){if($T)return Kt;$T=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.validateUnion=Kt.validateArray=Kt.usePattern=Kt.callValidateCode=Kt.schemaProperties=Kt.allSchemaProperties=Kt.noPropertyInData=Kt.propertyInData=Kt.isOwnProperty=Kt.hasPropFunc=Kt.reportMissingProp=Kt.checkMissingProp=Kt.checkReportMissingProp=void 0;const e=bt(),a=kt(),t=$i(),n=kt();function i(E,P){const{gen:S,data:v,it:O}=E;S.if(y(S,v,P,O.opts.ownProperties),()=>{E.setParams({missingProperty:(0,e._)`${P}`},!0),E.error()})}Kt.checkReportMissingProp=i;function o({gen:E,data:P,it:{opts:S}},v,O){return(0,e.or)(...v.map(j=>(0,e.and)(y(E,P,j,S.ownProperties),(0,e._)`${O} = ${j}`)))}Kt.checkMissingProp=o;function u(E,P){E.setParams({missingProperty:P},!0),E.error()}Kt.reportMissingProp=u;function c(E){return E.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Kt.hasPropFunc=c;function f(E,P,S){return(0,e._)`${c(E)}.call(${P}, ${S})`}Kt.isOwnProperty=f;function p(E,P,S,v){const O=(0,e._)`${P}${(0,e.getProperty)(S)} !== undefined`;return v?(0,e._)`${O} && ${f(E,P,S)}`:O}Kt.propertyInData=p;function y(E,P,S,v){const O=(0,e._)`${P}${(0,e.getProperty)(S)} === undefined`;return v?(0,e.or)(O,(0,e.not)(f(E,P,S))):O}Kt.noPropertyInData=y;function m(E){return E?Object.keys(E).filter(P=>P!=="__proto__"):[]}Kt.allSchemaProperties=m;function g(E,P){return m(P).filter(S=>!(0,a.alwaysValidSchema)(E,P[S]))}Kt.schemaProperties=g;function T({schemaCode:E,data:P,it:{gen:S,topSchemaRef:v,schemaPath:O,errorPath:j},it:V},U,K,ae){const _e=ae?(0,e._)`${E}, ${P}, ${v}${O}`:P,be=[[t.default.instancePath,(0,e.strConcat)(t.default.instancePath,j)],[t.default.parentData,V.parentData],[t.default.parentDataProperty,V.parentDataProperty],[t.default.rootData,t.default.rootData]];V.opts.dynamicRef&&be.push([t.default.dynamicAnchors,t.default.dynamicAnchors]);const ye=(0,e._)`${_e}, ${S.object(...be)}`;return K!==e.nil?(0,e._)`${U}.call(${K}, ${ye})`:(0,e._)`${U}(${ye})`}Kt.callValidateCode=T;const M=(0,e._)`new RegExp`;function R({gen:E,it:{opts:P}},S){const v=P.unicodeRegExp?"u":"",{regExp:O}=P.code,j=O(S,v);return E.scopeValue("pattern",{key:j.toString(),ref:j,code:(0,e._)`${O.code==="new RegExp"?M:(0,n.useFunc)(E,O)}(${S}, ${v})`})}Kt.usePattern=R;function I(E){const{gen:P,data:S,keyword:v,it:O}=E,j=P.name("valid");if(O.allErrors){const U=P.let("valid",!0);return V(()=>P.assign(U,!1)),U}return P.var(j,!0),V(()=>P.break()),j;function V(U){const K=P.const("len",(0,e._)`${S}.length`);P.forRange("i",0,K,ae=>{E.subschema({keyword:v,dataProp:ae,dataPropType:a.Type.Num},j),P.if((0,e.not)(j),U)})}}Kt.validateArray=I;function N(E){const{gen:P,schema:S,keyword:v,it:O}=E;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(K=>(0,a.alwaysValidSchema)(O,K))&&!O.opts.unevaluated)return;const V=P.let("valid",!1),U=P.name("_valid");P.block(()=>S.forEach((K,ae)=>{const _e=E.subschema({keyword:v,schemaProp:ae,compositeRule:!0},U);P.assign(V,(0,e._)`${V} || ${U}`),E.mergeValidEvaluated(_e,U)||P.if((0,e.not)(V))})),E.result(V,()=>E.reset(),()=>E.error(!0))}return Kt.validateUnion=N,Kt}var xT;function RU(){if(xT)return Xn;xT=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.validateKeywordUsage=Xn.validSchemaType=Xn.funcKeywordCode=Xn.macroKeywordCode=void 0;const e=bt(),a=$i(),t=ai(),n=jl();function i(g,T){const{gen:M,keyword:R,schema:I,parentSchema:N,it:E}=g,P=T.macro.call(E.self,I,N,E),S=p(M,R,P);E.opts.validateSchema!==!1&&E.self.validateSchema(P,!0);const v=M.name("valid");g.subschema({schema:P,schemaPath:e.nil,errSchemaPath:`${E.errSchemaPath}/${R}`,topSchemaRef:S,compositeRule:!0},v),g.pass(v,()=>g.error(!0))}Xn.macroKeywordCode=i;function o(g,T){var M;const{gen:R,keyword:I,schema:N,parentSchema:E,$data:P,it:S}=g;f(S,T);const v=!P&&T.compile?T.compile.call(S.self,N,E,S):T.validate,O=p(R,I,v),j=R.let("valid");g.block$data(j,V),g.ok((M=T.valid)!==null&&M!==void 0?M:j);function V(){if(T.errors===!1)ae(),T.modifying&&u(g),_e(()=>g.error());else{const be=T.async?U():K();T.modifying&&u(g),_e(()=>c(g,be))}}function U(){const be=R.let("ruleErrs",null);return R.try(()=>ae((0,e._)`await `),ye=>R.assign(j,!1).if((0,e._)`${ye} instanceof ${S.ValidationError}`,()=>R.assign(be,(0,e._)`${ye}.errors`),()=>R.throw(ye))),be}function K(){const be=(0,e._)`${O}.errors`;return R.assign(be,null),ae(e.nil),be}function ae(be=T.async?(0,e._)`await `:e.nil){const ye=S.opts.passContext?a.default.this:a.default.self,Me=!("compile"in T&&!P||T.schema===!1);R.assign(j,(0,e._)`${be}${(0,t.callValidateCode)(g,O,ye,Me)}`,T.modifying)}function _e(be){var ye;R.if((0,e.not)((ye=T.valid)!==null&&ye!==void 0?ye:j),be)}}Xn.funcKeywordCode=o;function u(g){const{gen:T,data:M,it:R}=g;T.if(R.parentData,()=>T.assign(M,(0,e._)`${R.parentData}[${R.parentDataProperty}]`))}function c(g,T){const{gen:M}=g;M.if((0,e._)`Array.isArray(${T})`,()=>{M.assign(a.default.vErrors,(0,e._)`${a.default.vErrors} === null ? ${T} : ${a.default.vErrors}.concat(${T})`).assign(a.default.errors,(0,e._)`${a.default.vErrors}.length`),(0,n.extendErrors)(g)},()=>g.error())}function f({schemaEnv:g},T){if(T.async&&!g.$async)throw new Error("async keyword in sync schema")}function p(g,T,M){if(M===void 0)throw new Error(`keyword "${T}" failed to compile`);return g.scopeValue("keyword",typeof M=="function"?{ref:M}:{ref:M,code:(0,e.stringify)(M)})}function y(g,T,M=!1){return!T.length||T.some(R=>R==="array"?Array.isArray(g):R==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==R||M&&typeof g>"u")}Xn.validSchemaType=y;function m({schema:g,opts:T,self:M,errSchemaPath:R},I,N){if(Array.isArray(I.keyword)?!I.keyword.includes(N):I.keyword!==N)throw new Error("ajv implementation error");const E=I.dependencies;if(E?.some(P=>!Object.prototype.hasOwnProperty.call(g,P)))throw new Error(`parent schema must have dependencies of ${N}: ${E.join(",")}`);if(I.validateSchema&&!I.validateSchema(g[N])){const S=`keyword "${N}" value is invalid at path "${R}": `+M.errorsText(I.validateSchema.errors);if(T.validateSchema==="log")M.logger.error(S);else throw new Error(S)}}return Xn.validateKeywordUsage=m,Xn}var zi={},eS;function MU(){if(eS)return zi;eS=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.extendSubschemaMode=zi.extendSubschemaData=zi.getSubschema=void 0;const e=bt(),a=kt();function t(o,{keyword:u,schemaProp:c,schema:f,schemaPath:p,errSchemaPath:y,topSchemaRef:m}){if(u!==void 0&&f!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(u!==void 0){const g=o.schema[u];return c===void 0?{schema:g,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(u)}`,errSchemaPath:`${o.errSchemaPath}/${u}`}:{schema:g[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(u)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${u}/${(0,a.escapeFragment)(c)}`}}if(f!==void 0){if(p===void 0||y===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:f,schemaPath:p,topSchemaRef:m,errSchemaPath:y}}throw new Error('either "keyword" or "schema" must be passed')}zi.getSubschema=t;function n(o,u,{dataProp:c,dataPropType:f,data:p,dataTypes:y,propertyName:m}){if(p!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=u;if(c!==void 0){const{errorPath:M,dataPathArr:R,opts:I}=u,N=g.let("data",(0,e._)`${u.data}${(0,e.getProperty)(c)}`,!0);T(N),o.errorPath=(0,e.str)`${M}${(0,a.getErrorPath)(c,f,I.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...R,o.parentDataProperty]}if(p!==void 0){const M=p instanceof e.Name?p:g.let("data",p,!0);T(M),m!==void 0&&(o.propertyName=m)}y&&(o.dataTypes=y);function T(M){o.data=M,o.dataLevel=u.dataLevel+1,o.dataTypes=[],u.definedProperties=new Set,o.parentData=u.data,o.dataNames=[...u.dataNames,M]}}zi.extendSubschemaData=n;function i(o,{jtdDiscriminator:u,jtdMetadata:c,compositeRule:f,createErrors:p,allErrors:y}){f!==void 0&&(o.compositeRule=f),p!==void 0&&(o.createErrors=p),y!==void 0&&(o.allErrors=y),o.jtdDiscriminator=u,o.jtdMetadata=c}return zi.extendSubschemaMode=i,zi}var Xr={},ay,tS;function Ib(){return tS||(tS=1,ay=function e(a,t){if(a===t)return!0;if(a&&t&&typeof a=="object"&&typeof t=="object"){if(a.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(a)){if(n=a.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!e(a[i],t[i]))return!1;return!0}if(a.constructor===RegExp)return a.source===t.source&&a.flags===t.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===t.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===t.toString();if(o=Object.keys(a),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){var u=o[i];if(!e(a[u],t[u]))return!1}return!0}return a!==a&&t!==t}),ay}var oy={exports:{}},rS;function NU(){if(rS)return oy.exports;rS=1;var e=oy.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var u=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};a(i,u,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function a(n,i,o,u,c,f,p,y,m,g){if(u&&typeof u=="object"&&!Array.isArray(u)){i(u,c,f,p,y,m,g);for(var T in u){var M=u[T];if(Array.isArray(M)){if(T in e.arrayKeywords)for(var R=0;R<M.length;R++)a(n,i,o,M[R],c+"/"+T+"/"+R,f,c,T,u,R)}else if(T in e.propsKeywords){if(M&&typeof M=="object")for(var I in M)a(n,i,o,M[I],c+"/"+T+"/"+t(I),f,c,T,u,I)}else(T in e.keywords||n.allKeys&&!(T in e.skipKeywords))&&a(n,i,o,M,c+"/"+T,f,c,T,u)}o(u,c,f,p,y,m,g)}}function t(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return oy.exports}var nS;function lf(){if(nS)return Xr;nS=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.getSchemaRefs=Xr.resolveUrl=Xr.normalizeId=Xr._getFullPath=Xr.getFullPath=Xr.inlineRef=void 0;const e=kt(),a=Ib(),t=NU(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(R,I=!0){return typeof R=="boolean"?!0:I===!0?!u(R):I?c(R)<=I:!1}Xr.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(R){for(const I in R){if(o.has(I))return!0;const N=R[I];if(Array.isArray(N)&&N.some(u)||typeof N=="object"&&u(N))return!0}return!1}function c(R){let I=0;for(const N in R){if(N==="$ref")return 1/0;if(I++,!n.has(N)&&(typeof R[N]=="object"&&(0,e.eachItem)(R[N],E=>I+=c(E)),I===1/0))return 1/0}return I}function f(R,I="",N){N!==!1&&(I=m(I));const E=R.parse(I);return p(R,E)}Xr.getFullPath=f;function p(R,I){return R.serialize(I).split("#")[0]+"#"}Xr._getFullPath=p;const y=/#\/?$/;function m(R){return R?R.replace(y,""):""}Xr.normalizeId=m;function g(R,I,N){return N=m(N),R.resolve(I,N)}Xr.resolveUrl=g;const T=/^[a-z_][-a-z0-9._]*$/i;function M(R,I){if(typeof R=="boolean")return{};const{schemaId:N,uriResolver:E}=this.opts,P=m(R[N]||I),S={"":P},v=f(E,P,!1),O={},j=new Set;return t(R,{allKeys:!0},(K,ae,_e,be)=>{if(be===void 0)return;const ye=v+ae;let Me=S[be];typeof K[N]=="string"&&(Me=Ne.call(this,K[N])),qe.call(this,K.$anchor),qe.call(this,K.$dynamicAnchor),S[ae]=Me;function Ne(we){const ue=this.opts.uriResolver.resolve;if(we=m(Me?ue(Me,we):we),j.has(we))throw U(we);j.add(we);let X=this.refs[we];return typeof X=="string"&&(X=this.refs[X]),typeof X=="object"?V(K,X.schema,we):we!==m(ye)&&(we[0]==="#"?(V(K,O[we],we),O[we]=K):this.refs[we]=ye),we}function qe(we){if(typeof we=="string"){if(!T.test(we))throw new Error(`invalid anchor "${we}"`);Ne.call(this,`#${we}`)}}}),O;function V(K,ae,_e){if(ae!==void 0&&!a(K,ae))throw U(_e)}function U(K){return new Error(`reference "${K}" resolves to more than one schema`)}}return Xr.getSchemaRefs=M,Xr}var iS;function Ll(){if(iS)return Vi;iS=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.getData=Vi.KeywordCxt=Vi.validateFunctionCode=void 0;const e=PU(),a=ef(),t=ND(),n=ef(),i=IU(),o=RU(),u=MU(),c=bt(),f=$i(),p=lf(),y=kt(),m=jl();function g(se){if(v(se)&&(j(se),S(se))){I(se);return}T(se,()=>(0,e.topBoolOrEmptySchema)(se))}Vi.validateFunctionCode=g;function T({gen:se,validateName:de,schema:Ae,schemaEnv:je,opts:Ye},Je){Ye.code.es5?se.func(de,(0,c._)`${f.default.data}, ${f.default.valCxt}`,je.$async,()=>{se.code((0,c._)`"use strict"; ${E(Ae,Ye)}`),R(se,Ye),se.code(Je)}):se.func(de,(0,c._)`${f.default.data}, ${M(Ye)}`,je.$async,()=>se.code(E(Ae,Ye)).code(Je))}function M(se){return(0,c._)`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${se.dynamicRef?(0,c._)`, ${f.default.dynamicAnchors}={}`:c.nil}}={}`}function R(se,de){se.if(f.default.valCxt,()=>{se.var(f.default.instancePath,(0,c._)`${f.default.valCxt}.${f.default.instancePath}`),se.var(f.default.parentData,(0,c._)`${f.default.valCxt}.${f.default.parentData}`),se.var(f.default.parentDataProperty,(0,c._)`${f.default.valCxt}.${f.default.parentDataProperty}`),se.var(f.default.rootData,(0,c._)`${f.default.valCxt}.${f.default.rootData}`),de.dynamicRef&&se.var(f.default.dynamicAnchors,(0,c._)`${f.default.valCxt}.${f.default.dynamicAnchors}`)},()=>{se.var(f.default.instancePath,(0,c._)`""`),se.var(f.default.parentData,(0,c._)`undefined`),se.var(f.default.parentDataProperty,(0,c._)`undefined`),se.var(f.default.rootData,f.default.data),de.dynamicRef&&se.var(f.default.dynamicAnchors,(0,c._)`{}`)})}function I(se){const{schema:de,opts:Ae,gen:je}=se;T(se,()=>{Ae.$comment&&de.$comment&&be(se),K(se),je.let(f.default.vErrors,null),je.let(f.default.errors,0),Ae.unevaluated&&N(se),V(se),ye(se)})}function N(se){const{gen:de,validateName:Ae}=se;se.evaluated=de.const("evaluated",(0,c._)`${Ae}.evaluated`),de.if((0,c._)`${se.evaluated}.dynamicProps`,()=>de.assign((0,c._)`${se.evaluated}.props`,(0,c._)`undefined`)),de.if((0,c._)`${se.evaluated}.dynamicItems`,()=>de.assign((0,c._)`${se.evaluated}.items`,(0,c._)`undefined`))}function E(se,de){const Ae=typeof se=="object"&&se[de.schemaId];return Ae&&(de.code.source||de.code.process)?(0,c._)`/*# sourceURL=${Ae} */`:c.nil}function P(se,de){if(v(se)&&(j(se),S(se))){O(se,de);return}(0,e.boolOrEmptySchema)(se,de)}function S({schema:se,self:de}){if(typeof se=="boolean")return!se;for(const Ae in se)if(de.RULES.all[Ae])return!0;return!1}function v(se){return typeof se.schema!="boolean"}function O(se,de){const{schema:Ae,gen:je,opts:Ye}=se;Ye.$comment&&Ae.$comment&&be(se),ae(se),_e(se);const Je=je.const("_errs",f.default.errors);V(se,Je),je.var(de,(0,c._)`${Je} === ${f.default.errors}`)}function j(se){(0,y.checkUnknownRules)(se),U(se)}function V(se,de){if(se.opts.jtd)return Ne(se,[],!1,de);const Ae=(0,a.getSchemaTypes)(se.schema),je=(0,a.coerceAndCheckDataType)(se,Ae);Ne(se,Ae,!je,de)}function U(se){const{schema:de,errSchemaPath:Ae,opts:je,self:Ye}=se;de.$ref&&je.ignoreKeywordsWithRef&&(0,y.schemaHasRulesButRef)(de,Ye.RULES)&&Ye.logger.warn(`$ref: keywords ignored in schema at path "${Ae}"`)}function K(se){const{schema:de,opts:Ae}=se;de.default!==void 0&&Ae.useDefaults&&Ae.strictSchema&&(0,y.checkStrictMode)(se,"default is ignored in the schema root")}function ae(se){const de=se.schema[se.opts.schemaId];de&&(se.baseId=(0,p.resolveUrl)(se.opts.uriResolver,se.baseId,de))}function _e(se){if(se.schema.$async&&!se.schemaEnv.$async)throw new Error("async schema in sync schema")}function be({gen:se,schemaEnv:de,schema:Ae,errSchemaPath:je,opts:Ye}){const Je=Ae.$comment;if(Ye.$comment===!0)se.code((0,c._)`${f.default.self}.logger.log(${Je})`);else if(typeof Ye.$comment=="function"){const Vt=(0,c.str)`${je}/$comment`,Lt=se.scopeValue("root",{ref:de.root});se.code((0,c._)`${f.default.self}.opts.$comment(${Je}, ${Vt}, ${Lt}.schema)`)}}function ye(se){const{gen:de,schemaEnv:Ae,validateName:je,ValidationError:Ye,opts:Je}=se;Ae.$async?de.if((0,c._)`${f.default.errors} === 0`,()=>de.return(f.default.data),()=>de.throw((0,c._)`new ${Ye}(${f.default.vErrors})`)):(de.assign((0,c._)`${je}.errors`,f.default.vErrors),Je.unevaluated&&Me(se),de.return((0,c._)`${f.default.errors} === 0`))}function Me({gen:se,evaluated:de,props:Ae,items:je}){Ae instanceof c.Name&&se.assign((0,c._)`${de}.props`,Ae),je instanceof c.Name&&se.assign((0,c._)`${de}.items`,je)}function Ne(se,de,Ae,je){const{gen:Ye,schema:Je,data:Vt,allErrors:Lt,opts:rr,self:Bt}=se,{RULES:Ft}=Bt;if(Je.$ref&&(rr.ignoreKeywordsWithRef||!(0,y.schemaHasRulesButRef)(Je,Ft))){Ye.block(()=>Re(se,"$ref",Ft.all.$ref.definition));return}rr.jtd||we(se,de),Ye.block(()=>{for(const sr of Ft.rules)Hr(sr);Hr(Ft.post)});function Hr(sr){(0,t.shouldUseGroup)(Je,sr)&&(sr.type?(Ye.if((0,n.checkDataType)(sr.type,Vt,rr.strictNumbers)),qe(se,sr),de.length===1&&de[0]===sr.type&&Ae&&(Ye.else(),(0,n.reportTypeError)(se)),Ye.endIf()):qe(se,sr),Lt||Ye.if((0,c._)`${f.default.errors} === ${je||0}`))}}function qe(se,de){const{gen:Ae,schema:je,opts:{useDefaults:Ye}}=se;Ye&&(0,i.assignDefaults)(se,de.type),Ae.block(()=>{for(const Je of de.rules)(0,t.shouldUseRule)(je,Je)&&Re(se,Je.keyword,Je.definition,de.type)})}function we(se,de){se.schemaEnv.meta||!se.opts.strictTypes||(ue(se,de),se.opts.allowUnionTypes||X(se,de),C(se,se.dataTypes))}function ue(se,de){if(de.length){if(!se.dataTypes.length){se.dataTypes=de;return}de.forEach(Ae=>{k(se.dataTypes,Ae)||W(se,`type "${Ae}" not allowed by context "${se.dataTypes.join(",")}"`)}),L(se,de)}}function X(se,de){de.length>1&&!(de.length===2&&de.includes("null"))&&W(se,"use allowUnionTypes to allow union type keyword")}function C(se,de){const Ae=se.self.RULES.all;for(const je in Ae){const Ye=Ae[je];if(typeof Ye=="object"&&(0,t.shouldUseRule)(se.schema,Ye)){const{type:Je}=Ye.definition;Je.length&&!Je.some(Vt=>B(de,Vt))&&W(se,`missing type "${Je.join(",")}" for keyword "${je}"`)}}}function B(se,de){return se.includes(de)||de==="number"&&se.includes("integer")}function k(se,de){return se.includes(de)||de==="integer"&&se.includes("number")}function L(se,de){const Ae=[];for(const je of se.dataTypes)k(de,je)?Ae.push(je):de.includes("integer")&&je==="number"&&Ae.push("integer");se.dataTypes=Ae}function W(se,de){const Ae=se.schemaEnv.baseId+se.errSchemaPath;de+=` at "${Ae}" (strictTypes)`,(0,y.checkStrictMode)(se,de,se.opts.strictTypes)}class oe{constructor(de,Ae,je){if((0,o.validateKeywordUsage)(de,Ae,je),this.gen=de.gen,this.allErrors=de.allErrors,this.keyword=je,this.data=de.data,this.schema=de.schema[je],this.$data=Ae.$data&&de.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,y.schemaRefOrVal)(de,this.schema,je,this.$data),this.schemaType=Ae.schemaType,this.parentSchema=de.schema,this.params={},this.it=de,this.def=Ae,this.$data)this.schemaCode=de.gen.const("vSchema",Ce(this.$data,de));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Ae.schemaType,Ae.allowUndefined))throw new Error(`${je} value must be ${JSON.stringify(Ae.schemaType)}`);("code"in Ae?Ae.trackErrors:Ae.errors!==!1)&&(this.errsCount=de.gen.const("_errs",f.default.errors))}result(de,Ae,je){this.failResult((0,c.not)(de),Ae,je)}failResult(de,Ae,je){this.gen.if(de),je?je():this.error(),Ae?(this.gen.else(),Ae(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(de,Ae){this.failResult((0,c.not)(de),void 0,Ae)}fail(de){if(de===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(de),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(de){if(!this.$data)return this.fail(de);const{schemaCode:Ae}=this;this.fail((0,c._)`${Ae} !== undefined && (${(0,c.or)(this.invalid$data(),de)})`)}error(de,Ae,je){if(Ae){this.setParams(Ae),this._error(de,je),this.setParams({});return}this._error(de,je)}_error(de,Ae){(de?m.reportExtraError:m.reportError)(this,this.def.error,Ae)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(de){this.allErrors||this.gen.if(de)}setParams(de,Ae){Ae?Object.assign(this.params,de):this.params=de}block$data(de,Ae,je=c.nil){this.gen.block(()=>{this.check$data(de,je),Ae()})}check$data(de=c.nil,Ae=c.nil){if(!this.$data)return;const{gen:je,schemaCode:Ye,schemaType:Je,def:Vt}=this;je.if((0,c.or)((0,c._)`${Ye} === undefined`,Ae)),de!==c.nil&&je.assign(de,!0),(Je.length||Vt.validateSchema)&&(je.elseIf(this.invalid$data()),this.$dataError(),de!==c.nil&&je.assign(de,!1)),je.else()}invalid$data(){const{gen:de,schemaCode:Ae,schemaType:je,def:Ye,it:Je}=this;return(0,c.or)(Vt(),Lt());function Vt(){if(je.length){if(!(Ae instanceof c.Name))throw new Error("ajv implementation error");const rr=Array.isArray(je)?je:[je];return(0,c._)`${(0,n.checkDataTypes)(rr,Ae,Je.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function Lt(){if(Ye.validateSchema){const rr=de.scopeValue("validate$data",{ref:Ye.validateSchema});return(0,c._)`!${rr}(${Ae})`}return c.nil}}subschema(de,Ae){const je=(0,u.getSubschema)(this.it,de);(0,u.extendSubschemaData)(je,this.it,de),(0,u.extendSubschemaMode)(je,de);const Ye={...this.it,...je,items:void 0,props:void 0};return P(Ye,Ae),Ye}mergeEvaluated(de,Ae){const{it:je,gen:Ye}=this;je.opts.unevaluated&&(je.props!==!0&&de.props!==void 0&&(je.props=y.mergeEvaluated.props(Ye,de.props,je.props,Ae)),je.items!==!0&&de.items!==void 0&&(je.items=y.mergeEvaluated.items(Ye,de.items,je.items,Ae)))}mergeValidEvaluated(de,Ae){const{it:je,gen:Ye}=this;if(je.opts.unevaluated&&(je.props!==!0||je.items!==!0))return Ye.if(Ae,()=>this.mergeEvaluated(de,c.Name)),!0}}Vi.KeywordCxt=oe;function Re(se,de,Ae,je){const Ye=new oe(se,Ae,de);"code"in Ae?Ae.code(Ye,je):Ye.$data&&Ae.validate?(0,o.funcKeywordCode)(Ye,Ae):"macro"in Ae?(0,o.macroKeywordCode)(Ye,Ae):(Ae.compile||Ae.validate)&&(0,o.funcKeywordCode)(Ye,Ae)}const Se=/^\/(?:[^~]|~0|~1)*$/,Ue=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ce(se,{dataLevel:de,dataNames:Ae,dataPathArr:je}){let Ye,Je;if(se==="")return f.default.rootData;if(se[0]==="/"){if(!Se.test(se))throw new Error(`Invalid JSON-pointer: ${se}`);Ye=se,Je=f.default.rootData}else{const Bt=Ue.exec(se);if(!Bt)throw new Error(`Invalid JSON-pointer: ${se}`);const Ft=+Bt[1];if(Ye=Bt[2],Ye==="#"){if(Ft>=de)throw new Error(rr("property/index",Ft));return je[de-Ft]}if(Ft>de)throw new Error(rr("data",Ft));if(Je=Ae[de-Ft],!Ye)return Je}let Vt=Je;const Lt=Ye.split("/");for(const Bt of Lt)Bt&&(Je=(0,c._)`${Je}${(0,c.getProperty)((0,y.unescapeJsonPointer)(Bt))}`,Vt=(0,c._)`${Vt} && ${Je}`);return Vt;function rr(Bt,Ft){return`Cannot access ${Bt} ${Ft} levels up, current level is ${de}`}}return Vi.getData=Ce,Vi}var Uc={},aS;function Rb(){if(aS)return Uc;aS=1,Object.defineProperty(Uc,"__esModule",{value:!0});class e extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}return Uc.default=e,Uc}var Bc={},oS;function cf(){if(oS)return Bc;oS=1,Object.defineProperty(Bc,"__esModule",{value:!0});const e=lf();class a extends Error{constructor(n,i,o,u){super(u||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Bc.default=a,Bc}var mn={},sS;function Mb(){if(sS)return mn;sS=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.resolveSchema=mn.getCompilingSchema=mn.resolveRef=mn.compileSchema=mn.SchemaEnv=void 0;const e=bt(),a=Rb(),t=$i(),n=lf(),i=kt(),o=Ll();class u{constructor(N){var E;this.refs={},this.dynamicAnchors={};let P;typeof N.schema=="object"&&(P=N.schema),this.schema=N.schema,this.schemaId=N.schemaId,this.root=N.root||this,this.baseId=(E=N.baseId)!==null&&E!==void 0?E:(0,n.normalizeId)(P?.[N.schemaId||"$id"]),this.schemaPath=N.schemaPath,this.localRefs=N.localRefs,this.meta=N.meta,this.$async=P?.$async,this.refs={}}}mn.SchemaEnv=u;function c(I){const N=y.call(this,I);if(N)return N;const E=(0,n.getFullPath)(this.opts.uriResolver,I.root.baseId),{es5:P,lines:S}=this.opts.code,{ownProperties:v}=this.opts,O=new e.CodeGen(this.scope,{es5:P,lines:S,ownProperties:v});let j;I.$async&&(j=O.scopeValue("Error",{ref:a.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const V=O.scopeName("validate");I.validateName=V;const U={gen:O,allErrors:this.opts.allErrors,data:t.default.data,parentData:t.default.parentData,parentDataProperty:t.default.parentDataProperty,dataNames:[t.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:O.scopeValue("schema",this.opts.code.source===!0?{ref:I.schema,code:(0,e.stringify)(I.schema)}:{ref:I.schema}),validateName:V,ValidationError:j,schema:I.schema,schemaEnv:I,rootId:E,baseId:I.baseId||E,schemaPath:e.nil,errSchemaPath:I.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let K;try{this._compilations.add(I),(0,o.validateFunctionCode)(U),O.optimize(this.opts.code.optimize);const ae=O.toString();K=`${O.scopeRefs(t.default.scope)}return ${ae}`,this.opts.code.process&&(K=this.opts.code.process(K,I));const be=new Function(`${t.default.self}`,`${t.default.scope}`,K)(this,this.scope.get());if(this.scope.value(V,{ref:be}),be.errors=null,be.schema=I.schema,be.schemaEnv=I,I.$async&&(be.$async=!0),this.opts.code.source===!0&&(be.source={validateName:V,validateCode:ae,scopeValues:O._values}),this.opts.unevaluated){const{props:ye,items:Me}=U;be.evaluated={props:ye instanceof e.Name?void 0:ye,items:Me instanceof e.Name?void 0:Me,dynamicProps:ye instanceof e.Name,dynamicItems:Me instanceof e.Name},be.source&&(be.source.evaluated=(0,e.stringify)(be.evaluated))}return I.validate=be,I}catch(ae){throw delete I.validate,delete I.validateName,K&&this.logger.error("Error compiling schema, function code:",K),ae}finally{this._compilations.delete(I)}}mn.compileSchema=c;function f(I,N,E){var P;E=(0,n.resolveUrl)(this.opts.uriResolver,N,E);const S=I.refs[E];if(S)return S;let v=g.call(this,I,E);if(v===void 0){const O=(P=I.localRefs)===null||P===void 0?void 0:P[E],{schemaId:j}=this.opts;O&&(v=new u({schema:O,schemaId:j,root:I,baseId:N}))}if(v!==void 0)return I.refs[E]=p.call(this,v)}mn.resolveRef=f;function p(I){return(0,n.inlineRef)(I.schema,this.opts.inlineRefs)?I.schema:I.validate?I:c.call(this,I)}function y(I){for(const N of this._compilations)if(m(N,I))return N}mn.getCompilingSchema=y;function m(I,N){return I.schema===N.schema&&I.root===N.root&&I.baseId===N.baseId}function g(I,N){let E;for(;typeof(E=this.refs[N])=="string";)N=E;return E||this.schemas[N]||T.call(this,I,N)}function T(I,N){const E=this.opts.uriResolver.parse(N),P=(0,n._getFullPath)(this.opts.uriResolver,E);let S=(0,n.getFullPath)(this.opts.uriResolver,I.baseId,void 0);if(Object.keys(I.schema).length>0&&P===S)return R.call(this,E,I);const v=(0,n.normalizeId)(P),O=this.refs[v]||this.schemas[v];if(typeof O=="string"){const j=T.call(this,I,O);return typeof j?.schema!="object"?void 0:R.call(this,E,j)}if(typeof O?.schema=="object"){if(O.validate||c.call(this,O),v===(0,n.normalizeId)(N)){const{schema:j}=O,{schemaId:V}=this.opts,U=j[V];return U&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,U)),new u({schema:j,schemaId:V,root:I,baseId:S})}return R.call(this,E,O)}}mn.resolveSchema=T;const M=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function R(I,{baseId:N,schema:E,root:P}){var S;if(((S=I.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const j of I.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const V=E[(0,i.unescapeFragment)(j)];if(V===void 0)return;E=V;const U=typeof E=="object"&&E[this.opts.schemaId];!M.has(j)&&U&&(N=(0,n.resolveUrl)(this.opts.uriResolver,N,U))}let v;if(typeof E!="boolean"&&E.$ref&&!(0,i.schemaHasRulesButRef)(E,this.RULES)){const j=(0,n.resolveUrl)(this.opts.uriResolver,N,E.$ref);v=T.call(this,P,j)}const{schemaId:O}=this.opts;if(v=v||new u({schema:E,schemaId:O,root:P,baseId:N}),v.schema!==v.root.schema)return v}return mn}const CU="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",jU="Meta-schema for $data reference (JSON AnySchema extension proposal)",LU="object",DU=["$data"],qU={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},kU=!1,UU={$id:CU,description:jU,type:LU,required:DU,properties:qU,additionalProperties:kU};var Fc={},Du={exports:{}},sy,uS;function CD(){if(uS)return sy;uS=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),a=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function t(g){let T="",M=0,R=0;for(R=0;R<g.length;R++)if(M=g[R].charCodeAt(0),M!==48){if(!(M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102))return"";T+=g[R];break}for(R+=1;R<g.length;R++){if(M=g[R].charCodeAt(0),!(M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102))return"";T+=g[R]}return T}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(g){return g.length=0,!0}function o(g,T,M){if(g.length){const R=t(g);if(R!=="")T.push(R);else return M.error=!0,!1;g.length=0}return!0}function u(g){let T=0;const M={error:!1,address:"",zone:""},R=[],I=[];let N=!1,E=!1,P=o;for(let S=0;S<g.length;S++){const v=g[S];if(!(v==="["||v==="]"))if(v===":"){if(N===!0&&(E=!0),!P(I,R,M))break;if(++T>7){M.error=!0;break}S>0&&g[S-1]===":"&&(N=!0),R.push(":");continue}else if(v==="%"){if(!P(I,R,M))break;P=i}else{I.push(v);continue}}return I.length&&(P===i?M.zone=I.join(""):E?R.push(I.join("")):R.push(t(I))),M.address=R.join(""),M}function c(g){if(f(g,":")<2)return{host:g,isIPV6:!1};const T=u(g);if(T.error)return{host:g,isIPV6:!1};{let M=T.address,R=T.address;return T.zone&&(M+="%"+T.zone,R+="%25"+T.zone),{host:M,isIPV6:!0,escapedHost:R}}}function f(g,T){let M=0;for(let R=0;R<g.length;R++)g[R]===T&&M++;return M}function p(g){let T=g;const M=[];let R=-1,I=0;for(;I=T.length;){if(I===1){if(T===".")break;if(T==="/"){M.push("/");break}else{M.push(T);break}}else if(I===2){if(T[0]==="."){if(T[1]===".")break;if(T[1]==="/"){T=T.slice(2);continue}}else if(T[0]==="/"&&(T[1]==="."||T[1]==="/")){M.push("/");break}}else if(I===3&&T==="/.."){M.length!==0&&M.pop(),M.push("/");break}if(T[0]==="."){if(T[1]==="."){if(T[2]==="/"){T=T.slice(3);continue}}else if(T[1]==="/"){T=T.slice(2);continue}}else if(T[0]==="/"&&T[1]==="."){if(T[2]==="/"){T=T.slice(2);continue}else if(T[2]==="."&&T[3]==="/"){T=T.slice(3),M.length!==0&&M.pop();continue}}if((R=T.indexOf("/",1))===-1){M.push(T);break}else M.push(T.slice(0,R)),T=T.slice(R)}return M.join("")}function y(g,T){const M=T!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=M(g.scheme)),g.userinfo!==void 0&&(g.userinfo=M(g.userinfo)),g.host!==void 0&&(g.host=M(g.host)),g.path!==void 0&&(g.path=M(g.path)),g.query!==void 0&&(g.query=M(g.query)),g.fragment!==void 0&&(g.fragment=M(g.fragment)),g}function m(g){const T=[];if(g.userinfo!==void 0&&(T.push(g.userinfo),T.push("@")),g.host!==void 0){let M=unescape(g.host);if(!a(M)){const R=c(M);R.isIPV6===!0?M=`[${R.escapedHost}]`:M=g.host}T.push(M)}return(typeof g.port=="number"||typeof g.port=="string")&&(T.push(":"),T.push(String(g.port))),T.length?T.join(""):void 0}return sy={nonSimpleDomain:n,recomposeAuthority:m,normalizeComponentEncoding:y,removeDotSegments:p,isIPv4:a,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:t},sy}var uy,lS;function BU(){if(lS)return uy;lS=1;const{isUUID:e}=CD(),a=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,t=["http","https","ws","wss","urn","urn:uuid"];function n(v){return t.indexOf(v)!==-1}function i(v){return v.secure===!0?!0:v.secure===!1?!1:v.scheme?v.scheme.length===3&&(v.scheme[0]==="w"||v.scheme[0]==="W")&&(v.scheme[1]==="s"||v.scheme[1]==="S")&&(v.scheme[2]==="s"||v.scheme[2]==="S"):!1}function o(v){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v}function u(v){const O=String(v.scheme).toLowerCase()==="https";return(v.port===(O?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}function c(v){return v.secure=i(v),v.resourceName=(v.path||"/")+(v.query?"?"+v.query:""),v.path=void 0,v.query=void 0,v}function f(v){if((v.port===(i(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){const[O,j]=v.resourceName.split("?");v.path=O&&O!=="/"?O:void 0,v.query=j,v.resourceName=void 0}return v.fragment=void 0,v}function p(v,O){if(!v.path)return v.error="URN can not be parsed",v;const j=v.path.match(a);if(j){const V=O.scheme||v.scheme||"urn";v.nid=j[1].toLowerCase(),v.nss=j[2];const U=`${V}:${O.nid||v.nid}`,K=S(U);v.path=void 0,K&&(v=K.parse(v,O))}else v.error=v.error||"URN can not be parsed.";return v}function y(v,O){if(v.nid===void 0)throw new Error("URN without nid cannot be serialized");const j=O.scheme||v.scheme||"urn",V=v.nid.toLowerCase(),U=`${j}:${O.nid||V}`,K=S(U);K&&(v=K.serialize(v,O));const ae=v,_e=v.nss;return ae.path=`${V||O.nid}:${_e}`,O.skipEscape=!0,ae}function m(v,O){const j=v;return j.uuid=j.nss,j.nss=void 0,!O.tolerant&&(!j.uuid||!e(j.uuid))&&(j.error=j.error||"UUID is not valid."),j}function g(v){const O=v;return O.nss=(v.uuid||"").toLowerCase(),O}const T={scheme:"http",domainHost:!0,parse:o,serialize:u},M={scheme:"https",domainHost:T.domainHost,parse:o,serialize:u},R={scheme:"ws",domainHost:!0,parse:c,serialize:f},I={scheme:"wss",domainHost:R.domainHost,parse:R.parse,serialize:R.serialize},P={http:T,https:M,ws:R,wss:I,urn:{scheme:"urn",parse:p,serialize:y,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(P,null);function S(v){return v&&(P[v]||P[v.toLowerCase()])||void 0}return uy={wsIsSecure:i,SCHEMES:P,isValidSchemeName:n,getSchemeHandler:S},uy}var cS;function FU(){if(cS)return Du.exports;cS=1;const{normalizeIPv6:e,removeDotSegments:a,recomposeAuthority:t,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:o}=CD(),{SCHEMES:u,getSchemeHandler:c}=BU();function f(I,N){return typeof I=="string"?I=g(M(I,N),N):typeof I=="object"&&(I=M(g(I,N),N)),I}function p(I,N,E){const P=E?Object.assign({scheme:"null"},E):{scheme:"null"},S=y(M(I,P),M(N,P),P,!0);return P.skipEscape=!0,g(S,P)}function y(I,N,E,P){const S={};return P||(I=M(g(I,E),E),N=M(g(N,E),E)),E=E||{},!E.tolerant&&N.scheme?(S.scheme=N.scheme,S.userinfo=N.userinfo,S.host=N.host,S.port=N.port,S.path=a(N.path||""),S.query=N.query):(N.userinfo!==void 0||N.host!==void 0||N.port!==void 0?(S.userinfo=N.userinfo,S.host=N.host,S.port=N.port,S.path=a(N.path||""),S.query=N.query):(N.path?(N.path[0]==="/"?S.path=a(N.path):((I.userinfo!==void 0||I.host!==void 0||I.port!==void 0)&&!I.path?S.path="/"+N.path:I.path?S.path=I.path.slice(0,I.path.lastIndexOf("/")+1)+N.path:S.path=N.path,S.path=a(S.path)),S.query=N.query):(S.path=I.path,N.query!==void 0?S.query=N.query:S.query=I.query),S.userinfo=I.userinfo,S.host=I.host,S.port=I.port),S.scheme=I.scheme),S.fragment=N.fragment,S}function m(I,N,E){return typeof I=="string"?(I=unescape(I),I=g(n(M(I,E),!0),{...E,skipEscape:!0})):typeof I=="object"&&(I=g(n(I,!0),{...E,skipEscape:!0})),typeof N=="string"?(N=unescape(N),N=g(n(M(N,E),!0),{...E,skipEscape:!0})):typeof N=="object"&&(N=g(n(N,!0),{...E,skipEscape:!0})),I.toLowerCase()===N.toLowerCase()}function g(I,N){const E={host:I.host,scheme:I.scheme,userinfo:I.userinfo,port:I.port,path:I.path,query:I.query,nid:I.nid,nss:I.nss,uuid:I.uuid,fragment:I.fragment,reference:I.reference,resourceName:I.resourceName,secure:I.secure,error:""},P=Object.assign({},N),S=[],v=c(P.scheme||E.scheme);v&&v.serialize&&v.serialize(E,P),E.path!==void 0&&(P.skipEscape?E.path=unescape(E.path):(E.path=escape(E.path),E.scheme!==void 0&&(E.path=E.path.split("%3A").join(":")))),P.reference!=="suffix"&&E.scheme&&S.push(E.scheme,":");const O=t(E);if(O!==void 0&&(P.reference!=="suffix"&&S.push("//"),S.push(O),E.path&&E.path[0]!=="/"&&S.push("/")),E.path!==void 0){let j=E.path;!P.absolutePath&&(!v||!v.absolutePath)&&(j=a(j)),O===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),S.push(j)}return E.query!==void 0&&S.push("?",E.query),E.fragment!==void 0&&S.push("#",E.fragment),S.join("")}const T=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function M(I,N){const E=Object.assign({},N),P={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;E.reference==="suffix"&&(E.scheme?I=E.scheme+":"+I:I="//"+I);const v=I.match(T);if(v){if(P.scheme=v[1],P.userinfo=v[3],P.host=v[4],P.port=parseInt(v[5],10),P.path=v[6]||"",P.query=v[7],P.fragment=v[8],isNaN(P.port)&&(P.port=v[5]),P.host)if(i(P.host)===!1){const V=e(P.host);P.host=V.host.toLowerCase(),S=V.isIPV6}else S=!0;P.scheme===void 0&&P.userinfo===void 0&&P.host===void 0&&P.port===void 0&&P.query===void 0&&!P.path?P.reference="same-document":P.scheme===void 0?P.reference="relative":P.fragment===void 0?P.reference="absolute":P.reference="uri",E.reference&&E.reference!=="suffix"&&E.reference!==P.reference&&(P.error=P.error||"URI is not a "+E.reference+" reference.");const O=c(E.scheme||P.scheme);if(!E.unicodeSupport&&(!O||!O.unicodeSupport)&&P.host&&(E.domainHost||O&&O.domainHost)&&S===!1&&o(P.host))try{P.host=URL.domainToASCII(P.host.toLowerCase())}catch(j){P.error=P.error||"Host's domain name can not be converted to ASCII: "+j}(!O||O&&!O.skipNormalize)&&(I.indexOf("%")!==-1&&(P.scheme!==void 0&&(P.scheme=unescape(P.scheme)),P.host!==void 0&&(P.host=unescape(P.host))),P.path&&(P.path=escape(unescape(P.path))),P.fragment&&(P.fragment=encodeURI(decodeURIComponent(P.fragment)))),O&&O.parse&&O.parse(P,E)}else P.error=P.error||"URI can not be parsed.";return P}const R={SCHEMES:u,normalize:f,resolve:p,resolveComponent:y,equal:m,serialize:g,parse:M};return Du.exports=R,Du.exports.default=R,Du.exports.fastUri=R,Du.exports}var dS;function VU(){if(dS)return Fc;dS=1,Object.defineProperty(Fc,"__esModule",{value:!0});const e=FU();return e.code='require("ajv/dist/runtime/uri").default',Fc.default=e,Fc}var fS;function HU(){return fS||(fS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var a=Ll();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var t=bt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=Rb(),i=cf(),o=MD(),u=Mb(),c=bt(),f=lf(),p=ef(),y=kt(),m=UU,g=VU(),T=(X,C)=>new RegExp(X,C);T.code="new RegExp";const M=["removeAdditional","useDefaults","coerceTypes"],R=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),I={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},N={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=200;function P(X){var C,B,k,L,W,oe,Re,Se,Ue,Ce,se,de,Ae,je,Ye,Je,Vt,Lt,rr,Bt,Ft,Hr,sr,hn,Jr;const Qr=X.strict,ln=(C=X.code)===null||C===void 0?void 0:C.optimize,ur=ln===!0||ln===void 0?1:ln||0,cn=(k=(B=X.code)===null||B===void 0?void 0:B.regExp)!==null&&k!==void 0?k:T,Pr=(L=X.uriResolver)!==null&&L!==void 0?L:g.default;return{strictSchema:(oe=(W=X.strictSchema)!==null&&W!==void 0?W:Qr)!==null&&oe!==void 0?oe:!0,strictNumbers:(Se=(Re=X.strictNumbers)!==null&&Re!==void 0?Re:Qr)!==null&&Se!==void 0?Se:!0,strictTypes:(Ce=(Ue=X.strictTypes)!==null&&Ue!==void 0?Ue:Qr)!==null&&Ce!==void 0?Ce:"log",strictTuples:(de=(se=X.strictTuples)!==null&&se!==void 0?se:Qr)!==null&&de!==void 0?de:"log",strictRequired:(je=(Ae=X.strictRequired)!==null&&Ae!==void 0?Ae:Qr)!==null&&je!==void 0?je:!1,code:X.code?{...X.code,optimize:ur,regExp:cn}:{optimize:ur,regExp:cn},loopRequired:(Ye=X.loopRequired)!==null&&Ye!==void 0?Ye:E,loopEnum:(Je=X.loopEnum)!==null&&Je!==void 0?Je:E,meta:(Vt=X.meta)!==null&&Vt!==void 0?Vt:!0,messages:(Lt=X.messages)!==null&&Lt!==void 0?Lt:!0,inlineRefs:(rr=X.inlineRefs)!==null&&rr!==void 0?rr:!0,schemaId:(Bt=X.schemaId)!==null&&Bt!==void 0?Bt:"$id",addUsedSchema:(Ft=X.addUsedSchema)!==null&&Ft!==void 0?Ft:!0,validateSchema:(Hr=X.validateSchema)!==null&&Hr!==void 0?Hr:!0,validateFormats:(sr=X.validateFormats)!==null&&sr!==void 0?sr:!0,unicodeRegExp:(hn=X.unicodeRegExp)!==null&&hn!==void 0?hn:!0,int32range:(Jr=X.int32range)!==null&&Jr!==void 0?Jr:!0,uriResolver:Pr}}class S{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,...P(C)};const{es5:B,lines:k}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:R,es5:B,lines:k}),this.logger=_e(C.logger);const L=C.validateFormats;C.validateFormats=!1,this.RULES=(0,o.getRules)(),v.call(this,I,C,"NOT SUPPORTED"),v.call(this,N,C,"DEPRECATED","warn"),this._metaOpts=K.call(this),C.formats&&V.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&U.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),j.call(this),C.validateFormats=L}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:B,schemaId:k}=this.opts;let L=m;k==="id"&&(L={...m},L.id=L.$id,delete L.$id),B&&C&&this.addMetaSchema(L,L[k],!1)}defaultMeta(){const{meta:C,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[B]||C:void 0}validate(C,B){let k;if(typeof C=="string"){if(k=this.getSchema(C),!k)throw new Error(`no schema with key or ref "${C}"`)}else k=this.compile(C);const L=k(B);return"$async"in k||(this.errors=k.errors),L}compile(C,B){const k=this._addSchema(C,B);return k.validate||this._compileSchemaEnv(k)}compileAsync(C,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return L.call(this,C,B);async function L(Ce,se){await W.call(this,Ce.$schema);const de=this._addSchema(Ce,se);return de.validate||oe.call(this,de)}async function W(Ce){Ce&&!this.getSchema(Ce)&&await L.call(this,{$ref:Ce},!0)}async function oe(Ce){try{return this._compileSchemaEnv(Ce)}catch(se){if(!(se instanceof i.default))throw se;return Re.call(this,se),await Se.call(this,se.missingSchema),oe.call(this,Ce)}}function Re({missingSchema:Ce,missingRef:se}){if(this.refs[Ce])throw new Error(`AnySchema ${Ce} is loaded but ${se} cannot be resolved`)}async function Se(Ce){const se=await Ue.call(this,Ce);this.refs[Ce]||await W.call(this,se.$schema),this.refs[Ce]||this.addSchema(se,Ce,B)}async function Ue(Ce){const se=this._loading[Ce];if(se)return se;try{return await(this._loading[Ce]=k(Ce))}finally{delete this._loading[Ce]}}}addSchema(C,B,k,L=this.opts.validateSchema){if(Array.isArray(C)){for(const oe of C)this.addSchema(oe,void 0,k,L);return this}let W;if(typeof C=="object"){const{schemaId:oe}=this.opts;if(W=C[oe],W!==void 0&&typeof W!="string")throw new Error(`schema ${oe} must be string`)}return B=(0,f.normalizeId)(B||W),this._checkUnique(B),this.schemas[B]=this._addSchema(C,k,B,L,!0),this}addMetaSchema(C,B,k=this.opts.validateSchema){return this.addSchema(C,B,!0,k),this}validateSchema(C,B){if(typeof C=="boolean")return!0;let k;if(k=C.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const L=this.validate(k,C);if(!L&&B){const W="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(W);else throw new Error(W)}return L}getSchema(C){let B;for(;typeof(B=O.call(this,C))=="string";)C=B;if(B===void 0){const{schemaId:k}=this.opts,L=new u.SchemaEnv({schema:{},schemaId:k});if(B=u.resolveSchema.call(this,L,C),!B)return;this.refs[C]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=O.call(this,C);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const B=C;this._cache.delete(B);let k=C[this.opts.schemaId];return k&&(k=(0,f.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const B of C)this.addKeyword(B);return this}addKeyword(C,B){let k;if(typeof C=="string")k=C,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=k);else if(typeof C=="object"&&B===void 0){if(B=C,k=B.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ye.call(this,k,B),!B)return(0,y.eachItem)(k,W=>Me.call(this,W)),this;qe.call(this,B);const L={...B,type:(0,p.getJSONTypes)(B.type),schemaType:(0,p.getJSONTypes)(B.schemaType)};return(0,y.eachItem)(k,L.type.length===0?W=>Me.call(this,W,L):W=>L.type.forEach(oe=>Me.call(this,W,L,oe))),this}getKeyword(C){const B=this.RULES.all[C];return typeof B=="object"?B.definition:!!B}removeKeyword(C){const{RULES:B}=this;delete B.keywords[C],delete B.all[C];for(const k of B.rules){const L=k.rules.findIndex(W=>W.keyword===C);L>=0&&k.rules.splice(L,1)}return this}addFormat(C,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[C]=B,this}errorsText(C=this.errors,{separator:B=", ",dataVar:k="data"}={}){return!C||C.length===0?"No errors":C.map(L=>`${k}${L.instancePath} ${L.message}`).reduce((L,W)=>L+B+W)}$dataMetaSchema(C,B){const k=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const L of B){const W=L.split("/").slice(1);let oe=C;for(const Re of W)oe=oe[Re];for(const Re in k){const Se=k[Re];if(typeof Se!="object")continue;const{$data:Ue}=Se.definition,Ce=oe[Re];Ue&&Ce&&(oe[Re]=ue(Ce))}}return C}_removeAllSchemas(C,B){for(const k in C){const L=C[k];(!B||B.test(k))&&(typeof L=="string"?delete C[k]:L&&!L.meta&&(this._cache.delete(L.schema),delete C[k]))}}_addSchema(C,B,k,L=this.opts.validateSchema,W=this.opts.addUsedSchema){let oe;const{schemaId:Re}=this.opts;if(typeof C=="object")oe=C[Re];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let Se=this._cache.get(C);if(Se!==void 0)return Se;k=(0,f.normalizeId)(oe||k);const Ue=f.getSchemaRefs.call(this,C,k);return Se=new u.SchemaEnv({schema:C,schemaId:Re,meta:B,baseId:k,localRefs:Ue}),this._cache.set(Se.schema,Se),W&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=Se),L&&this.validateSchema(C,!0),Se}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):u.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const B=this.opts;this.opts=this._metaOpts;try{u.compileSchema.call(this,C)}finally{this.opts=B}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function v(X,C,B,k="error"){for(const L in X){const W=L;W in C&&this.logger[k](`${B}: option ${L}. ${X[W]}`)}}function O(X){return X=(0,f.normalizeId)(X),this.schemas[X]||this.refs[X]}function j(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const C in X)this.addSchema(X[C],C)}function V(){for(const X in this.opts.formats){const C=this.opts.formats[X];C&&this.addFormat(X,C)}}function U(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in X){const B=X[C];B.keyword||(B.keyword=C),this.addKeyword(B)}}function K(){const X={...this.opts};for(const C of M)delete X[C];return X}const ae={log(){},warn(){},error(){}};function _e(X){if(X===!1)return ae;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const be=/^[a-z_$][a-z0-9_$:-]*$/i;function ye(X,C){const{RULES:B}=this;if((0,y.eachItem)(X,k=>{if(B.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!be.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function Me(X,C,B){var k;const L=C?.post;if(B&&L)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:W}=this;let oe=L?W.post:W.rules.find(({type:Se})=>Se===B);if(oe||(oe={type:B,rules:[]},W.rules.push(oe)),W.keywords[X]=!0,!C)return;const Re={keyword:X,definition:{...C,type:(0,p.getJSONTypes)(C.type),schemaType:(0,p.getJSONTypes)(C.schemaType)}};C.before?Ne.call(this,oe,Re,C.before):oe.rules.push(Re),W.all[X]=Re,(k=C.implements)===null||k===void 0||k.forEach(Se=>this.addKeyword(Se))}function Ne(X,C,B){const k=X.rules.findIndex(L=>L.keyword===B);k>=0?X.rules.splice(k,0,C):(X.rules.push(C),this.logger.warn(`rule ${B} is not defined`))}function qe(X){let{metaSchema:C}=X;C!==void 0&&(X.$data&&this.opts.$data&&(C=ue(C)),X.validateSchema=this.compile(C,!0))}const we={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ue(X){return{anyOf:[X,we]}}})(ey)),ey}var Vc={},Hc={},zc={},pS;function zU(){if(pS)return zc;pS=1,Object.defineProperty(zc,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return zc.default=e,zc}var Ea={},yS;function WU(){if(yS)return Ea;yS=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.callRef=Ea.getValidate=void 0;const e=cf(),a=ai(),t=bt(),n=$i(),i=Mb(),o=kt(),u={keyword:"$ref",schemaType:"string",code(p){const{gen:y,schema:m,it:g}=p,{baseId:T,schemaEnv:M,validateName:R,opts:I,self:N}=g,{root:E}=M;if((m==="#"||m==="#/")&&T===E.baseId)return S();const P=i.resolveRef.call(N,E,T,m);if(P===void 0)throw new e.default(g.opts.uriResolver,T,m);if(P instanceof i.SchemaEnv)return v(P);return O(P);function S(){if(M===E)return f(p,R,M,M.$async);const j=y.scopeValue("root",{ref:E});return f(p,(0,t._)`${j}.validate`,E,E.$async)}function v(j){const V=c(p,j);f(p,V,j,j.$async)}function O(j){const V=y.scopeValue("schema",I.code.source===!0?{ref:j,code:(0,t.stringify)(j)}:{ref:j}),U=y.name("valid"),K=p.subschema({schema:j,dataTypes:[],schemaPath:t.nil,topSchemaRef:V,errSchemaPath:m},U);p.mergeEvaluated(K),p.ok(U)}}};function c(p,y){const{gen:m}=p;return y.validate?m.scopeValue("validate",{ref:y.validate}):(0,t._)`${m.scopeValue("wrapper",{ref:y})}.validate`}Ea.getValidate=c;function f(p,y,m,g){const{gen:T,it:M}=p,{allErrors:R,schemaEnv:I,opts:N}=M,E=N.passContext?n.default.this:t.nil;g?P():S();function P(){if(!I.$async)throw new Error("async schema referenced by sync schema");const j=T.let("valid");T.try(()=>{T.code((0,t._)`await ${(0,a.callValidateCode)(p,y,E)}`),O(y),R||T.assign(j,!0)},V=>{T.if((0,t._)`!(${V} instanceof ${M.ValidationError})`,()=>T.throw(V)),v(V),R||T.assign(j,!1)}),p.ok(j)}function S(){p.result((0,a.callValidateCode)(p,y,E),()=>O(y),()=>v(y))}function v(j){const V=(0,t._)`${j}.errors`;T.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${V} : ${n.default.vErrors}.concat(${V})`),T.assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`)}function O(j){var V;if(!M.opts.unevaluated)return;const U=(V=m?.validate)===null||V===void 0?void 0:V.evaluated;if(M.props!==!0)if(U&&!U.dynamicProps)U.props!==void 0&&(M.props=o.mergeEvaluated.props(T,U.props,M.props));else{const K=T.var("props",(0,t._)`${j}.evaluated.props`);M.props=o.mergeEvaluated.props(T,K,M.props,t.Name)}if(M.items!==!0)if(U&&!U.dynamicItems)U.items!==void 0&&(M.items=o.mergeEvaluated.items(T,U.items,M.items));else{const K=T.var("items",(0,t._)`${j}.evaluated.items`);M.items=o.mergeEvaluated.items(T,K,M.items,t.Name)}}}return Ea.callRef=f,Ea.default=u,Ea}var mS;function GU(){if(mS)return Hc;mS=1,Object.defineProperty(Hc,"__esModule",{value:!0});const e=zU(),a=WU(),t=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,a.default];return Hc.default=t,Hc}var Wc={},Gc={},hS;function KU(){if(hS)return Gc;hS=1,Object.defineProperty(Gc,"__esModule",{value:!0});const e=bt(),a=e.operators,t={maximum:{okStr:"<=",ok:a.LTE,fail:a.GT},minimum:{okStr:">=",ok:a.GTE,fail:a.LT},exclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},exclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},n={message:({keyword:o,schemaCode:u})=>(0,e.str)`must be ${t[o].okStr} ${u}`,params:({keyword:o,schemaCode:u})=>(0,e._)`{comparison: ${t[o].okStr}, limit: ${u}}`},i={keyword:Object.keys(t),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:u,data:c,schemaCode:f}=o;o.fail$data((0,e._)`${c} ${t[u].fail} ${f} || isNaN(${c})`)}};return Gc.default=i,Gc}var Kc={},gS;function YU(){if(gS)return Kc;gS=1,Object.defineProperty(Kc,"__esModule",{value:!0});const e=bt(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:o,schemaCode:u,it:c}=n,f=c.opts.multipleOfPrecision,p=i.let("res"),y=f?(0,e._)`Math.abs(Math.round(${p}) - ${p}) > 1e-${f}`:(0,e._)`${p} !== parseInt(${p})`;n.fail$data((0,e._)`(${u} === 0 || (${p} = ${o}/${u}, ${y}))`)}};return Kc.default=t,Kc}var Yc={},Xc={},vS;function XU(){if(vS)return Xc;vS=1,Object.defineProperty(Xc,"__esModule",{value:!0});function e(a){const t=a.length;let n=0,i=0,o;for(;i<t;)n++,o=a.charCodeAt(i++),o>=55296&&o<=56319&&i<t&&(o=a.charCodeAt(i),(o&64512)===56320&&i++);return n}return Xc.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Xc}var _S;function JU(){if(_S)return Yc;_S=1,Object.defineProperty(Yc,"__esModule",{value:!0});const e=bt(),a=kt(),t=XU(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:u}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${u} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:u,data:c,schemaCode:f,it:p}=o,y=u==="maxLength"?e.operators.GT:e.operators.LT,m=p.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,a.useFunc)(o.gen,t.default)}(${c})`;o.fail$data((0,e._)`${m} ${y} ${f}`)}};return Yc.default=i,Yc}var Jc={},ES;function QU(){if(ES)return Jc;ES=1,Object.defineProperty(Jc,"__esModule",{value:!0});const e=ai(),a=bt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,a.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,a._)`{pattern: ${i}}`},code(i){const{data:o,$data:u,schema:c,schemaCode:f,it:p}=i,y=p.opts.unicodeRegExp?"u":"",m=u?(0,a._)`(new RegExp(${f}, ${y}))`:(0,e.usePattern)(i,c);i.fail$data((0,a._)`!${m}.test(${o})`)}};return Jc.default=n,Jc}var Qc={},bS;function ZU(){if(bS)return Qc;bS=1,Object.defineProperty(Qc,"__esModule",{value:!0});const e=bt(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:u}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${u}`)}};return Qc.default=t,Qc}var Zc={},wS;function $U(){if(wS)return Zc;wS=1,Object.defineProperty(Zc,"__esModule",{value:!0});const e=ai(),a=bt(),t=kt(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,a.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,a._)`{missingProperty: ${o}}`},code(o){const{gen:u,schema:c,schemaCode:f,data:p,$data:y,it:m}=o,{opts:g}=m;if(!y&&c.length===0)return;const T=c.length>=g.loopRequired;if(m.allErrors?M():R(),g.strictRequired){const E=o.parentSchema.properties,{definedProperties:P}=o.it;for(const S of c)if(E?.[S]===void 0&&!P.has(S)){const v=m.schemaEnv.baseId+m.errSchemaPath,O=`required property "${S}" is not defined at "${v}" (strictRequired)`;(0,t.checkStrictMode)(m,O,m.opts.strictRequired)}}function M(){if(T||y)o.block$data(a.nil,I);else for(const E of c)(0,e.checkReportMissingProp)(o,E)}function R(){const E=u.let("missing");if(T||y){const P=u.let("valid",!0);o.block$data(P,()=>N(E,P)),o.ok(P)}else u.if((0,e.checkMissingProp)(o,c,E)),(0,e.reportMissingProp)(o,E),u.else()}function I(){u.forOf("prop",f,E=>{o.setParams({missingProperty:E}),u.if((0,e.noPropertyInData)(u,p,E,g.ownProperties),()=>o.error())})}function N(E,P){o.setParams({missingProperty:E}),u.forOf(E,f,()=>{u.assign(P,(0,e.propertyInData)(u,p,E,g.ownProperties)),u.if((0,a.not)(P),()=>{o.error(),u.break()})},a.nil)}}};return Zc.default=i,Zc}var $c={},TS;function xU(){if(TS)return $c;TS=1,Object.defineProperty($c,"__esModule",{value:!0});const e=bt(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:u}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${u}`)}};return $c.default=t,$c}var xc={},ed={},SS;function Nb(){if(SS)return ed;SS=1,Object.defineProperty(ed,"__esModule",{value:!0});const e=Ib();return e.code='require("ajv/dist/runtime/equal").default',ed.default=e,ed}var OS;function eB(){if(OS)return xc;OS=1,Object.defineProperty(xc,"__esModule",{value:!0});const e=ef(),a=bt(),t=kt(),n=Nb(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:u,j:c}})=>(0,a.str)`must NOT have duplicate items (items ## ${c} and ${u} are identical)`,params:({params:{i:u,j:c}})=>(0,a._)`{i: ${u}, j: ${c}}`},code(u){const{gen:c,data:f,$data:p,schema:y,parentSchema:m,schemaCode:g,it:T}=u;if(!p&&!y)return;const M=c.let("valid"),R=m.items?(0,e.getSchemaTypes)(m.items):[];u.block$data(M,I,(0,a._)`${g} === false`),u.ok(M);function I(){const S=c.let("i",(0,a._)`${f}.length`),v=c.let("j");u.setParams({i:S,j:v}),c.assign(M,!0),c.if((0,a._)`${S} > 1`,()=>(N()?E:P)(S,v))}function N(){return R.length>0&&!R.some(S=>S==="object"||S==="array")}function E(S,v){const O=c.name("item"),j=(0,e.checkDataTypes)(R,O,T.opts.strictNumbers,e.DataType.Wrong),V=c.const("indices",(0,a._)`{}`);c.for((0,a._)`;${S}--;`,()=>{c.let(O,(0,a._)`${f}[${S}]`),c.if(j,(0,a._)`continue`),R.length>1&&c.if((0,a._)`typeof ${O} == "string"`,(0,a._)`${O} += "_"`),c.if((0,a._)`typeof ${V}[${O}] == "number"`,()=>{c.assign(v,(0,a._)`${V}[${O}]`),u.error(),c.assign(M,!1).break()}).code((0,a._)`${V}[${O}] = ${S}`)})}function P(S,v){const O=(0,t.useFunc)(c,n.default),j=c.name("outer");c.label(j).for((0,a._)`;${S}--;`,()=>c.for((0,a._)`${v} = ${S}; ${v}--;`,()=>c.if((0,a._)`${O}(${f}[${S}], ${f}[${v}])`,()=>{u.error(),c.assign(M,!1).break(j)})))}}};return xc.default=o,xc}var td={},AS;function tB(){if(AS)return td;AS=1,Object.defineProperty(td,"__esModule",{value:!0});const e=bt(),a=kt(),t=Nb(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:u,data:c,$data:f,schemaCode:p,schema:y}=o;f||y&&typeof y=="object"?o.fail$data((0,e._)`!${(0,a.useFunc)(u,t.default)}(${c}, ${p})`):o.fail((0,e._)`${y} !== ${c}`)}};return td.default=i,td}var rd={},PS;function rB(){if(PS)return rd;PS=1,Object.defineProperty(rd,"__esModule",{value:!0});const e=bt(),a=kt(),t=Nb(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:u,data:c,$data:f,schema:p,schemaCode:y,it:m}=o;if(!f&&p.length===0)throw new Error("enum must have non-empty array");const g=p.length>=m.opts.loopEnum;let T;const M=()=>T??(T=(0,a.useFunc)(u,t.default));let R;if(g||f)R=u.let("valid"),o.block$data(R,I);else{if(!Array.isArray(p))throw new Error("ajv implementation error");const E=u.const("vSchema",y);R=(0,e.or)(...p.map((P,S)=>N(E,S)))}o.pass(R);function I(){u.assign(R,!1),u.forOf("v",y,E=>u.if((0,e._)`${M()}(${c}, ${E})`,()=>u.assign(R,!0).break()))}function N(E,P){const S=p[P];return typeof S=="object"&&S!==null?(0,e._)`${M()}(${c}, ${E}[${P}])`:(0,e._)`${c} === ${S}`}}};return rd.default=i,rd}var IS;function nB(){if(IS)return Wc;IS=1,Object.defineProperty(Wc,"__esModule",{value:!0});const e=KU(),a=YU(),t=JU(),n=QU(),i=ZU(),o=$U(),u=xU(),c=eB(),f=tB(),p=rB(),y=[e.default,a.default,t.default,n.default,i.default,o.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,p.default];return Wc.default=y,Wc}var nd={},Ys={},RS;function jD(){if(RS)return Ys;RS=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.validateAdditionalItems=void 0;const e=bt(),a=kt(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:u,it:c}=o,{items:f}=u;if(!Array.isArray(f)){(0,a.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,f)}};function i(o,u){const{gen:c,schema:f,data:p,keyword:y,it:m}=o;m.items=!0;const g=c.const("len",(0,e._)`${p}.length`);if(f===!1)o.setParams({len:u.length}),o.pass((0,e._)`${g} <= ${u.length}`);else if(typeof f=="object"&&!(0,a.alwaysValidSchema)(m,f)){const M=c.var("valid",(0,e._)`${g} <= ${u.length}`);c.if((0,e.not)(M),()=>T(M)),o.ok(M)}function T(M){c.forRange("i",u.length,g,R=>{o.subschema({keyword:y,dataProp:R,dataPropType:a.Type.Num},M),m.allErrors||c.if((0,e.not)(M),()=>c.break())})}}return Ys.validateAdditionalItems=i,Ys.default=n,Ys}var id={},Xs={},MS;function LD(){if(MS)return Xs;MS=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.validateTuple=void 0;const e=bt(),a=kt(),t=ai(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:u,it:c}=o;if(Array.isArray(u))return i(o,"additionalItems",u);c.items=!0,!(0,a.alwaysValidSchema)(c,u)&&o.ok((0,t.validateArray)(o))}};function i(o,u,c=o.schema){const{gen:f,parentSchema:p,data:y,keyword:m,it:g}=o;R(p),g.opts.unevaluated&&c.length&&g.items!==!0&&(g.items=a.mergeEvaluated.items(f,c.length,g.items));const T=f.name("valid"),M=f.const("len",(0,e._)`${y}.length`);c.forEach((I,N)=>{(0,a.alwaysValidSchema)(g,I)||(f.if((0,e._)`${M} > ${N}`,()=>o.subschema({keyword:m,schemaProp:N,dataProp:N},T)),o.ok(T))});function R(I){const{opts:N,errSchemaPath:E}=g,P=c.length,S=P===I.minItems&&(P===I.maxItems||I[u]===!1);if(N.strictTuples&&!S){const v=`"${m}" is ${P}-tuple, but minItems or maxItems/${u} are not specified or different at path "${E}"`;(0,a.checkStrictMode)(g,v,N.strictTuples)}}}return Xs.validateTuple=i,Xs.default=n,Xs}var NS;function iB(){if(NS)return id;NS=1,Object.defineProperty(id,"__esModule",{value:!0});const e=LD(),a={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,e.validateTuple)(t,"items")};return id.default=a,id}var ad={},CS;function aB(){if(CS)return ad;CS=1,Object.defineProperty(ad,"__esModule",{value:!0});const e=bt(),a=kt(),t=ai(),n=jD(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:u}})=>(0,e.str)`must NOT have more than ${u} items`,params:({params:{len:u}})=>(0,e._)`{limit: ${u}}`},code(u){const{schema:c,parentSchema:f,it:p}=u,{prefixItems:y}=f;p.items=!0,!(0,a.alwaysValidSchema)(p,c)&&(y?(0,n.validateAdditionalItems)(u,y):u.ok((0,t.validateArray)(u)))}};return ad.default=o,ad}var od={},jS;function oB(){if(jS)return od;jS=1,Object.defineProperty(od,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:u,parentSchema:c,data:f,it:p}=i;let y,m;const{minContains:g,maxContains:T}=c;p.opts.next?(y=g===void 0?1:g,m=T):y=1;const M=o.const("len",(0,e._)`${f}.length`);if(i.setParams({min:y,max:m}),m===void 0&&y===0){(0,a.checkStrictMode)(p,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&y>m){(0,a.checkStrictMode)(p,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,a.alwaysValidSchema)(p,u)){let P=(0,e._)`${M} >= ${y}`;m!==void 0&&(P=(0,e._)`${P} && ${M} <= ${m}`),i.pass(P);return}p.items=!0;const R=o.name("valid");m===void 0&&y===1?N(R,()=>o.if(R,()=>o.break())):y===0?(o.let(R,!0),m!==void 0&&o.if((0,e._)`${f}.length > 0`,I)):(o.let(R,!1),I()),i.result(R,()=>i.reset());function I(){const P=o.name("_valid"),S=o.let("count",0);N(P,()=>o.if(P,()=>E(S)))}function N(P,S){o.forRange("i",0,M,v=>{i.subschema({keyword:"contains",dataProp:v,dataPropType:a.Type.Num,compositeRule:!0},P),S()})}function E(P){o.code((0,e._)`${P}++`),m===void 0?o.if((0,e._)`${P} >= ${y}`,()=>o.assign(R,!0).break()):(o.if((0,e._)`${P} > ${m}`,()=>o.assign(R,!1).break()),y===1?o.assign(R,!0):o.if((0,e._)`${P} >= ${y}`,()=>o.assign(R,!0)))}}};return od.default=n,od}var ly={},LS;function sB(){return LS||(LS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const a=bt(),t=kt(),n=ai();e.error={message:({params:{property:f,depsCount:p,deps:y}})=>{const m=p===1?"property":"properties";return(0,a.str)`must have ${m} ${y} when property ${f} is present`},params:({params:{property:f,depsCount:p,deps:y,missingProperty:m}})=>(0,a._)`{property: ${f},
16
- missingProperty: ${m},
17
- depsCount: ${p},
18
- deps: ${y}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(f){const[p,y]=o(f);u(f,p),c(f,y)}};function o({schema:f}){const p={},y={};for(const m in f){if(m==="__proto__")continue;const g=Array.isArray(f[m])?p:y;g[m]=f[m]}return[p,y]}function u(f,p=f.schema){const{gen:y,data:m,it:g}=f;if(Object.keys(p).length===0)return;const T=y.let("missing");for(const M in p){const R=p[M];if(R.length===0)continue;const I=(0,n.propertyInData)(y,m,M,g.opts.ownProperties);f.setParams({property:M,depsCount:R.length,deps:R.join(", ")}),g.allErrors?y.if(I,()=>{for(const N of R)(0,n.checkReportMissingProp)(f,N)}):(y.if((0,a._)`${I} && (${(0,n.checkMissingProp)(f,R,T)})`),(0,n.reportMissingProp)(f,T),y.else())}}e.validatePropertyDeps=u;function c(f,p=f.schema){const{gen:y,data:m,keyword:g,it:T}=f,M=y.name("valid");for(const R in p)(0,t.alwaysValidSchema)(T,p[R])||(y.if((0,n.propertyInData)(y,m,R,T.opts.ownProperties),()=>{const I=f.subschema({keyword:g,schemaProp:R},M);f.mergeValidEvaluated(I,M)},()=>y.var(M,!0)),f.ok(M))}e.validateSchemaDeps=c,e.default=i})(ly)),ly}var sd={},DS;function uB(){if(DS)return sd;DS=1,Object.defineProperty(sd,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:u,data:c,it:f}=i;if((0,a.alwaysValidSchema)(f,u))return;const p=o.name("valid");o.forIn("key",c,y=>{i.setParams({propertyName:y}),i.subschema({keyword:"propertyNames",data:y,dataTypes:["string"],propertyName:y,compositeRule:!0},p),o.if((0,e.not)(p),()=>{i.error(!0),f.allErrors||o.break()})}),i.ok(p)}};return sd.default=n,sd}var ud={},qS;function DD(){if(qS)return ud;qS=1,Object.defineProperty(ud,"__esModule",{value:!0});const e=ai(),a=bt(),t=$i(),n=kt(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:u})=>(0,a._)`{additionalProperty: ${u.additionalProperty}}`},code(u){const{gen:c,schema:f,parentSchema:p,data:y,errsCount:m,it:g}=u;if(!m)throw new Error("ajv implementation error");const{allErrors:T,opts:M}=g;if(g.props=!0,M.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(g,f))return;const R=(0,e.allSchemaProperties)(p.properties),I=(0,e.allSchemaProperties)(p.patternProperties);N(),u.ok((0,a._)`${m} === ${t.default.errors}`);function N(){c.forIn("key",y,O=>{!R.length&&!I.length?S(O):c.if(E(O),()=>S(O))})}function E(O){let j;if(R.length>8){const V=(0,n.schemaRefOrVal)(g,p.properties,"properties");j=(0,e.isOwnProperty)(c,V,O)}else R.length?j=(0,a.or)(...R.map(V=>(0,a._)`${O} === ${V}`)):j=a.nil;return I.length&&(j=(0,a.or)(j,...I.map(V=>(0,a._)`${(0,e.usePattern)(u,V)}.test(${O})`))),(0,a.not)(j)}function P(O){c.code((0,a._)`delete ${y}[${O}]`)}function S(O){if(M.removeAdditional==="all"||M.removeAdditional&&f===!1){P(O);return}if(f===!1){u.setParams({additionalProperty:O}),u.error(),T||c.break();return}if(typeof f=="object"&&!(0,n.alwaysValidSchema)(g,f)){const j=c.name("valid");M.removeAdditional==="failing"?(v(O,j,!1),c.if((0,a.not)(j),()=>{u.reset(),P(O)})):(v(O,j),T||c.if((0,a.not)(j),()=>c.break()))}}function v(O,j,V){const U={keyword:"additionalProperties",dataProp:O,dataPropType:n.Type.Str};V===!1&&Object.assign(U,{compositeRule:!0,createErrors:!1,allErrors:!1}),u.subschema(U,j)}}};return ud.default=o,ud}var ld={},kS;function lB(){if(kS)return ld;kS=1,Object.defineProperty(ld,"__esModule",{value:!0});const e=Ll(),a=ai(),t=kt(),n=DD(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:u,schema:c,parentSchema:f,data:p,it:y}=o;y.opts.removeAdditional==="all"&&f.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(y,n.default,"additionalProperties"));const m=(0,a.allSchemaProperties)(c);for(const I of m)y.definedProperties.add(I);y.opts.unevaluated&&m.length&&y.props!==!0&&(y.props=t.mergeEvaluated.props(u,(0,t.toHash)(m),y.props));const g=m.filter(I=>!(0,t.alwaysValidSchema)(y,c[I]));if(g.length===0)return;const T=u.name("valid");for(const I of g)M(I)?R(I):(u.if((0,a.propertyInData)(u,p,I,y.opts.ownProperties)),R(I),y.allErrors||u.else().var(T,!0),u.endIf()),o.it.definedProperties.add(I),o.ok(T);function M(I){return y.opts.useDefaults&&!y.compositeRule&&c[I].default!==void 0}function R(I){o.subschema({keyword:"properties",schemaProp:I,dataProp:I},T)}}};return ld.default=i,ld}var cd={},US;function cB(){if(US)return cd;US=1,Object.defineProperty(cd,"__esModule",{value:!0});const e=ai(),a=bt(),t=kt(),n=kt(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:u,schema:c,data:f,parentSchema:p,it:y}=o,{opts:m}=y,g=(0,e.allSchemaProperties)(c),T=g.filter(S=>(0,t.alwaysValidSchema)(y,c[S]));if(g.length===0||T.length===g.length&&(!y.opts.unevaluated||y.props===!0))return;const M=m.strictSchema&&!m.allowMatchingProperties&&p.properties,R=u.name("valid");y.props!==!0&&!(y.props instanceof a.Name)&&(y.props=(0,n.evaluatedPropsToName)(u,y.props));const{props:I}=y;N();function N(){for(const S of g)M&&E(S),y.allErrors?P(S):(u.var(R,!0),P(S),u.if(R))}function E(S){for(const v in M)new RegExp(S).test(v)&&(0,t.checkStrictMode)(y,`property ${v} matches pattern ${S} (use allowMatchingProperties)`)}function P(S){u.forIn("key",f,v=>{u.if((0,a._)`${(0,e.usePattern)(o,S)}.test(${v})`,()=>{const O=T.includes(S);O||o.subschema({keyword:"patternProperties",schemaProp:S,dataProp:v,dataPropType:n.Type.Str},R),y.opts.unevaluated&&I!==!0?u.assign((0,a._)`${I}[${v}]`,!0):!O&&!y.allErrors&&u.if((0,a.not)(R),()=>u.break())})})}}};return cd.default=i,cd}var dd={},BS;function dB(){if(BS)return dd;BS=1,Object.defineProperty(dd,"__esModule",{value:!0});const e=kt(),a={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:n,schema:i,it:o}=t;if((0,e.alwaysValidSchema)(o,i)){t.fail();return}const u=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},u),t.failResult(u,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return dd.default=a,dd}var fd={},FS;function fB(){if(FS)return fd;FS=1,Object.defineProperty(fd,"__esModule",{value:!0});const a={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ai().validateUnion,error:{message:"must match a schema in anyOf"}};return fd.default=a,fd}var pd={},VS;function pB(){if(VS)return pd;VS=1,Object.defineProperty(pd,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:u,parentSchema:c,it:f}=i;if(!Array.isArray(u))throw new Error("ajv implementation error");if(f.opts.discriminator&&c.discriminator)return;const p=u,y=o.let("valid",!1),m=o.let("passing",null),g=o.name("_valid");i.setParams({passing:m}),o.block(T),i.result(y,()=>i.reset(),()=>i.error(!0));function T(){p.forEach((M,R)=>{let I;(0,a.alwaysValidSchema)(f,M)?o.var(g,!0):I=i.subschema({keyword:"oneOf",schemaProp:R,compositeRule:!0},g),R>0&&o.if((0,e._)`${g} && ${y}`).assign(y,!1).assign(m,(0,e._)`[${m}, ${R}]`).else(),o.if(g,()=>{o.assign(y,!0),o.assign(m,R),I&&i.mergeEvaluated(I,e.Name)})})}}};return pd.default=n,pd}var yd={},HS;function yB(){if(HS)return yd;HS=1,Object.defineProperty(yd,"__esModule",{value:!0});const e=kt(),a={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:i,it:o}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const u=n.name("valid");i.forEach((c,f)=>{if((0,e.alwaysValidSchema)(o,c))return;const p=t.subschema({keyword:"allOf",schemaProp:f},u);t.ok(u),t.mergeEvaluated(p)})}};return yd.default=a,yd}var md={},zS;function mB(){if(zS)return md;zS=1,Object.defineProperty(md,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:u,parentSchema:c,it:f}=o;c.then===void 0&&c.else===void 0&&(0,a.checkStrictMode)(f,'"if" without "then" and "else" is ignored');const p=i(f,"then"),y=i(f,"else");if(!p&&!y)return;const m=u.let("valid",!0),g=u.name("_valid");if(T(),o.reset(),p&&y){const R=u.let("ifClause");o.setParams({ifClause:R}),u.if(g,M("then",R),M("else",R))}else p?u.if(g,M("then")):u.if((0,e.not)(g),M("else"));o.pass(m,()=>o.error(!0));function T(){const R=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);o.mergeEvaluated(R)}function M(R,I){return()=>{const N=o.subschema({keyword:R},g);u.assign(m,g),o.mergeValidEvaluated(N,m),I?u.assign(I,(0,e._)`${R}`):o.setParams({ifClause:R})}}}};function i(o,u){const c=o.schema[u];return c!==void 0&&!(0,a.alwaysValidSchema)(o,c)}return md.default=n,md}var hd={},WS;function hB(){if(WS)return hd;WS=1,Object.defineProperty(hd,"__esModule",{value:!0});const e=kt(),a={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};return hd.default=a,hd}var GS;function gB(){if(GS)return nd;GS=1,Object.defineProperty(nd,"__esModule",{value:!0});const e=jD(),a=iB(),t=LD(),n=aB(),i=oB(),o=sB(),u=uB(),c=DD(),f=lB(),p=cB(),y=dB(),m=fB(),g=pB(),T=yB(),M=mB(),R=hB();function I(N=!1){const E=[y.default,m.default,g.default,T.default,M.default,R.default,u.default,c.default,o.default,f.default,p.default];return N?E.push(a.default,n.default):E.push(e.default,t.default),E.push(i.default),E}return nd.default=I,nd}var gd={},vd={},KS;function vB(){if(KS)return vd;KS=1,Object.defineProperty(vd,"__esModule",{value:!0});const e=bt(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:u,$data:c,schema:f,schemaCode:p,it:y}=n,{opts:m,errSchemaPath:g,schemaEnv:T,self:M}=y;if(!m.validateFormats)return;c?R():I();function R(){const N=o.scopeValue("formats",{ref:M.formats,code:m.code.formats}),E=o.const("fDef",(0,e._)`${N}[${p}]`),P=o.let("fType"),S=o.let("format");o.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>o.assign(P,(0,e._)`${E}.type || "string"`).assign(S,(0,e._)`${E}.validate`),()=>o.assign(P,(0,e._)`"string"`).assign(S,E)),n.fail$data((0,e.or)(v(),O()));function v(){return m.strictSchema===!1?e.nil:(0,e._)`${p} && !${S}`}function O(){const j=T.$async?(0,e._)`(${E}.async ? await ${S}(${u}) : ${S}(${u}))`:(0,e._)`${S}(${u})`,V=(0,e._)`(typeof ${S} == "function" ? ${j} : ${S}.test(${u}))`;return(0,e._)`${S} && ${S} !== true && ${P} === ${i} && !${V}`}}function I(){const N=M.formats[f];if(!N){v();return}if(N===!0)return;const[E,P,S]=O(N);E===i&&n.pass(j());function v(){if(m.strictSchema===!1){M.logger.warn(V());return}throw new Error(V());function V(){return`unknown format "${f}" ignored in schema at path "${g}"`}}function O(V){const U=V instanceof RegExp?(0,e.regexpCode)(V):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(f)}`:void 0,K=o.scopeValue("formats",{key:f,ref:V,code:U});return typeof V=="object"&&!(V instanceof RegExp)?[V.type||"string",V.validate,(0,e._)`${K}.validate`]:["string",V,K]}function j(){if(typeof N=="object"&&!(N instanceof RegExp)&&N.async){if(!T.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${u})`}return typeof P=="function"?(0,e._)`${S}(${u})`:(0,e._)`${S}.test(${u})`}}}};return vd.default=t,vd}var YS;function _B(){if(YS)return gd;YS=1,Object.defineProperty(gd,"__esModule",{value:!0});const a=[vB().default];return gd.default=a,gd}var to={},XS;function EB(){return XS||(XS=1,Object.defineProperty(to,"__esModule",{value:!0}),to.contentVocabulary=to.metadataVocabulary=void 0,to.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],to.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),to}var JS;function bB(){if(JS)return Vc;JS=1,Object.defineProperty(Vc,"__esModule",{value:!0});const e=GU(),a=nB(),t=gB(),n=_B(),i=EB(),o=[e.default,a.default,(0,t.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Vc.default=o,Vc}var _d={},qu={},QS;function wB(){if(QS)return qu;QS=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.DiscrError=void 0;var e;return(function(a){a.Tag="tag",a.Mapping="mapping"})(e||(qu.DiscrError=e={})),qu}var ZS;function TB(){if(ZS)return _d;ZS=1,Object.defineProperty(_d,"__esModule",{value:!0});const e=bt(),a=wB(),t=Mb(),n=cf(),i=kt(),u={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:f}})=>c===a.DiscrError.Tag?`tag "${f}" must be string`:`value of tag "${f}" must be in oneOf`,params:({params:{discrError:c,tag:f,tagName:p}})=>(0,e._)`{error: ${c}, tag: ${p}, tagValue: ${f}}`},code(c){const{gen:f,data:p,schema:y,parentSchema:m,it:g}=c,{oneOf:T}=m;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const M=y.propertyName;if(typeof M!="string")throw new Error("discriminator: requires propertyName");if(y.mapping)throw new Error("discriminator: mapping is not supported");if(!T)throw new Error("discriminator: requires oneOf keyword");const R=f.let("valid",!1),I=f.const("tag",(0,e._)`${p}${(0,e.getProperty)(M)}`);f.if((0,e._)`typeof ${I} == "string"`,()=>N(),()=>c.error(!1,{discrError:a.DiscrError.Tag,tag:I,tagName:M})),c.ok(R);function N(){const S=P();f.if(!1);for(const v in S)f.elseIf((0,e._)`${I} === ${v}`),f.assign(R,E(S[v]));f.else(),c.error(!1,{discrError:a.DiscrError.Mapping,tag:I,tagName:M}),f.endIf()}function E(S){const v=f.name("valid"),O=c.subschema({keyword:"oneOf",schemaProp:S},v);return c.mergeEvaluated(O,e.Name),v}function P(){var S;const v={},O=V(m);let j=!0;for(let ae=0;ae<T.length;ae++){let _e=T[ae];if(_e?.$ref&&!(0,i.schemaHasRulesButRef)(_e,g.self.RULES)){const ye=_e.$ref;if(_e=t.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,ye),_e instanceof t.SchemaEnv&&(_e=_e.schema),_e===void 0)throw new n.default(g.opts.uriResolver,g.baseId,ye)}const be=(S=_e?.properties)===null||S===void 0?void 0:S[M];if(typeof be!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${M}"`);j=j&&(O||V(_e)),U(be,ae)}if(!j)throw new Error(`discriminator: "${M}" must be required`);return v;function V({required:ae}){return Array.isArray(ae)&&ae.includes(M)}function U(ae,_e){if(ae.const)K(ae.const,_e);else if(ae.enum)for(const be of ae.enum)K(be,_e);else throw new Error(`discriminator: "properties/${M}" must have "const" or "enum"`)}function K(ae,_e){if(typeof ae!="string"||ae in v)throw new Error(`discriminator: "${M}" values must be unique strings`);v[ae]=_e}}}};return _d.default=u,_d}const SB="http://json-schema.org/draft-07/schema#",OB="http://json-schema.org/draft-07/schema#",AB="Core schema meta-schema",PB={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},IB=["object","boolean"],RB={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},MB={$schema:SB,$id:OB,title:AB,definitions:PB,type:IB,properties:RB,default:!0};var $S;function xo(){return $S||($S=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.MissingRefError=a.ValidationError=a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=a.Ajv=void 0;const t=HU(),n=bB(),i=TB(),o=MB,u=["/properties"],c="http://json-schema.org/draft-07/schema";class f extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(M=>this.addVocabulary(M)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const M=this.opts.$data?this.$dataMetaSchema(o,u):o;this.addMetaSchema(M,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}a.Ajv=f,e.exports=a=f,e.exports.Ajv=f,Object.defineProperty(a,"__esModule",{value:!0}),a.default=f;var p=Ll();Object.defineProperty(a,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var y=bt();Object.defineProperty(a,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(a,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(a,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(a,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(a,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(a,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var m=Rb();Object.defineProperty(a,"ValidationError",{enumerable:!0,get:function(){return m.default}});var g=cf();Object.defineProperty(a,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(qc,qc.exports)),qc.exports}var el={exports:{}},tl={exports:{}},rl={exports:{}},Ed={exports:{}},xS;function NB(){return xS||(xS=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=["undefined","string","number","object","function","boolean","symbol"];function i(){return{keyword:"typeof",schemaType:["string","array"],code(o){const{data:u,schema:c,schemaValue:f}=o;o.fail(typeof c=="string"?(0,t._)`typeof ${u} != ${c}`:(0,t._)`${f}.indexOf(typeof ${u}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:n},{type:"array",items:{type:"string",enum:n}}]}}}a.default=i,e.exports=i})(Ed,Ed.exports)),Ed.exports}var eO=rl.exports,tO;function CB(){return tO||(tO=1,(function(e,a){var t=eO&&eO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(NB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(rl,rl.exports)),rl.exports}var nl={exports:{}},bd={exports:{}},rO;function jB(){return rO||(rO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer<"u"&&(t.Buffer=Buffer),typeof Promise<"u"&&(t.Promise=Promise);const n=Object.assign(i,{CONSTRUCTORS:t});function i(){return{keyword:"instanceof",schemaType:["string","array"],compile(u){if(typeof u=="string"){const c=o(u);return f=>f instanceof c}if(Array.isArray(u)){const c=u.map(o);return f=>{for(const p of c)if(f instanceof p)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function o(u){const c=t[u];if(c)return c;throw new Error(`invalid "instanceof" keyword value ${u}`)}a.default=n,e.exports=n})(bd,bd.exports)),bd.exports}var nO=nl.exports,iO;function LB(){return iO||(iO=1,(function(e,a){var t=nO&&nO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(jB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(nl,nl.exports)),nl.exports}var il={exports:{}},al={exports:{}},wd={},aO;function qD(){if(aO)return wd;aO=1,Object.defineProperty(wd,"__esModule",{value:!0});function e(a){return()=>({keyword:a,type:"number",schemaType:"array",macro:function([n,i]){return t(n,i),a==="range"?{minimum:n,maximum:i}:{exclusiveMinimum:n,exclusiveMaximum:i}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function t(n,i){if(n>i||a==="exclusiveRange"&&n===i)throw new Error("There are no numbers in range")}}return wd.default=e,wd}var oO=al.exports,sO;function DB(){return sO||(sO=1,(function(e,a){var t=oO&&oO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(qD()).default)("range");a.default=i,e.exports=i})(al,al.exports)),al.exports}var uO=il.exports,lO;function qB(){return lO||(lO=1,(function(e,a){var t=uO&&uO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(DB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(il,il.exports)),il.exports}var ol={exports:{}},sl={exports:{}},cO=sl.exports,dO;function kB(){return dO||(dO=1,(function(e,a){var t=cO&&cO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(qD()).default)("exclusiveRange");a.default=i,e.exports=i})(sl,sl.exports)),sl.exports}var fO=ol.exports,pO;function UB(){return pO||(pO=1,(function(e,a){var t=fO&&fO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(kB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ol,ol.exports)),ol.exports}var ul={exports:{}},Td={exports:{}},ro={},yO;function df(){if(yO)return ro;yO=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.usePattern=ro.metaSchemaRef=void 0;const e=bt(),a="http://json-schema.org/schema";function t({defaultMeta:i}={}){return i===!1?{}:{$ref:i||a}}ro.metaSchemaRef=t;function n({gen:i,it:{opts:o}},u,c=o.unicodeRegExp?"u":""){const f=new RegExp(u,c);return i.scopeValue("pattern",{key:f.toString(),ref:f,code:(0,e._)`new RegExp(${u}, ${c})`})}return ro.usePattern=n,ro}var mO;function BB(){return mO||(mO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},o=/^\/(.*)\/([gimuy]*)$/;function u(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(c){const{data:f,schema:p}=c,y=m(p);c.pass((0,t._)`${y}.test(${f})`);function m(g){if(typeof g=="object")return(0,n.usePattern)(c,g.pattern,g.flags);const T=o.exec(g);if(T)return(0,n.usePattern)(c,T[1],T[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},i]}}}a.default=u,e.exports=u})(Td,Td.exports)),Td.exports}var hO=ul.exports,gO;function FB(){return gO||(gO=1,(function(e,a){var t=hO&&hO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(BB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ul,ul.exports)),ul.exports}var ll={exports:{}},Sd={exports:{}},vO;function VB(){return vO||(vO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n={trimStart:f=>f.trimStart(),trimEnd:f=>f.trimEnd(),trimLeft:f=>f.trimStart(),trimRight:f=>f.trimEnd(),trim:f=>f.trim(),toLowerCase:f=>f.toLowerCase(),toUpperCase:f=>f.toUpperCase(),toEnumCase:(f,p)=>p?.hash[c(f)]||f},i=Object.assign(o,{transform:n});function o(){return{keyword:"transform",schemaType:"array",before:"enum",code(f){const{gen:p,data:y,schema:m,parentSchema:g,it:T}=f,{parentData:M,parentDataProperty:R}=T,I=m;if(!I.length)return;let N;if(I.includes("toEnumCase")){const P=u(g);N=p.scopeValue("obj",{ref:P,code:(0,t.stringify)(P)})}p.if((0,t._)`typeof ${y} == "string" && ${M} !== undefined`,()=>{p.assign(y,E(I.slice())),p.assign((0,t._)`${M}[${R}]`,y)});function E(P){if(!P.length)return y;const S=P.pop();if(!(S in n))throw new Error(`transform: unknown transformation ${S}`);const v=p.scopeValue("func",{ref:n[S],code:(0,t._)`require("ajv-keywords/dist/definitions/transform").transform${(0,t.getProperty)(S)}`}),O=E(P);return N&&S==="toEnumCase"?(0,t._)`${v}(${O}, ${N})`:(0,t._)`${v}(${O})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(n)}}}}function u(f){const p={hash:{}};if(!f.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const y of f.enum){if(typeof y!="string")continue;const m=c(y);if(p.hash[m])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');p.hash[m]=y}return p}function c(f){return f.toLowerCase()}a.default=i,e.exports=i})(Sd,Sd.exports)),Sd.exports}var _O=ll.exports,EO;function HB(){return EO||(EO=1,(function(e,a){var t=_O&&_O.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(VB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ll,ll.exports)),ll.exports}var cl={exports:{}},Od={exports:{}},bO;function zB(){return bO||(bO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=Ib(),n=["number","integer","string","boolean","null"];function i(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(u,c){const f=o(u,c);return p=>{if(p.length<=1)return!0;for(let y=0;y<u.length;y++){const m=u[y];if(f[y]){const g={};for(const T of p){if(!T||typeof T!="object")continue;let M=T[m];if(!(M&&typeof M=="object")){if(typeof M=="string"&&(M='"'+M),g[M])return!1;g[M]=!0}}}else for(let g=p.length;g--;){const T=p[g];if(!(!T||typeof T!="object"))for(let M=g;M--;){const R=p[M];if(R&&typeof R=="object"&&t(T[m],R[m]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}a.default=i;function o(u,c){return u.map(f=>{var p,y,m;const g=(m=(y=(p=c.items)===null||p===void 0?void 0:p.properties)===null||y===void 0?void 0:y[f])===null||m===void 0?void 0:m.type;return Array.isArray(g)?!g.includes("object")&&!g.includes("array"):n.includes(g)})}e.exports=i})(Od,Od.exports)),Od.exports}var wO=cl.exports,TO;function WB(){return TO||(TO=1,(function(e,a){var t=wO&&wO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(zB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(cl,cl.exports)),cl.exports}var dl={exports:{}},Ad={exports:{}},SO;function GB(){return SO||(SO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});function t(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(n,i){if(!n)return!0;const o=Object.keys(i.properties);return o.length===0?!0:{required:o}},dependencies:["properties"]}}a.default=t,e.exports=t})(Ad,Ad.exports)),Ad.exports}var OO=dl.exports,AO;function KB(){return AO||(AO=1,(function(e,a){var t=OO&&OO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(GB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(dl,dl.exports)),dl.exports}var fl={exports:{}},pl={exports:{}},Pd={},PO;function kD(){if(PO)return Pd;PO=1,Object.defineProperty(Pd,"__esModule",{value:!0});function e(a){return()=>({keyword:a,type:"object",schemaType:"array",macro(t){return t.length===0?!0:t.length===1?{required:t}:{[a==="anyRequired"?"anyOf":"oneOf"]:t.map(i=>({required:[i]}))}},metaSchema:{type:"array",items:{type:"string"}}})}return Pd.default=e,Pd}var IO=pl.exports,RO;function YB(){return RO||(RO=1,(function(e,a){var t=IO&&IO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(kD()).default)("anyRequired");a.default=i,e.exports=i})(pl,pl.exports)),pl.exports}var MO=fl.exports,NO;function XB(){return NO||(NO=1,(function(e,a){var t=MO&&MO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(YB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(fl,fl.exports)),fl.exports}var yl={exports:{}},ml={exports:{}},CO=ml.exports,jO;function JB(){return jO||(jO=1,(function(e,a){var t=CO&&CO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(kD()).default)("oneRequired");a.default=i,e.exports=i})(ml,ml.exports)),ml.exports}var LO=yl.exports,DO;function QB(){return DO||(DO=1,(function(e,a){var t=LO&&LO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(JB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(yl,yl.exports)),yl.exports}var hl={exports:{}},Id={exports:{}},qO;function ZB(){return qO||(qO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={message:({params:{missingPattern:u}})=>(0,t.str)`should have property matching pattern '${u}'`,params:({params:{missingPattern:u}})=>(0,t._)`{missingPattern: ${u}}`};function o(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:i,code(u){const{gen:c,schema:f,data:p}=u;if(f.length===0)return;const y=c.let("valid",!0);for(const g of f)m(g);function m(g){const T=c.let("matched",!1);c.forIn("key",p,M=>{c.assign(T,(0,t._)`${(0,n.usePattern)(u,g)}.test(${M})`),c.if(T,()=>c.break())}),u.setParams({missingPattern:g}),c.assign(y,(0,t.and)(y,T)),u.pass(y)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}a.default=o,e.exports=o})(Id,Id.exports)),Id.exports}var kO=hl.exports,UO;function $B(){return UO||(UO=1,(function(e,a){var t=kO&&kO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(ZB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(hl,hl.exports)),hl.exports}var gl={exports:{}},Rd={exports:{}},BO;function xB(){return BO||(BO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});function t(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(n){return n.length===0?!0:n.length===1?{not:{required:n}}:{not:{anyOf:n.map(i=>({required:[i]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}a.default=t,e.exports=t})(Rd,Rd.exports)),Rd.exports}var FO=gl.exports,VO;function e3(){return VO||(VO=1,(function(e,a){var t=FO&&FO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(xB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(gl,gl.exports)),gl.exports}var vl={exports:{}},Md={exports:{}},HO;function t3(){return HO||(HO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=df();function n(u){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(c){const f=[];for(const p in c)f.push(i(p,c[p]));return{allOf:f}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,t.metaSchemaRef)(u)}}}a.default=n;function i(u,c){const f=u.split("/"),p={};let y=p;for(let m=1;m<f.length;m++){let g=f[m];const T=m===f.length-1;g=o(g);const M=y.properties={};let R;if(/[0-9]+/.test(g)){let I=+g;for(R=y.items=[],y.type=["object","array"];I--;)R.push({})}else y.type="object";y=T?c:{},M[g]=y,R&&R.push(y)}return p}function o(u){return u.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Md,Md.exports)),Md.exports}var zO=vl.exports,WO;function r3(){return WO||(WO=1,(function(e,a){var t=zO&&zO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(t3()),i=(o,u)=>o.addKeyword((0,n.default)(u));a.default=i,e.exports=i})(vl,vl.exports)),vl.exports}var _l={exports:{}},Nd={exports:{}},GO;function n3(){return GO||(GO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt();function n(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(o){const{schema:u,data:c}=o,f=u.map(y=>(0,t._)`(${p(y)}) === undefined`);o.fail((0,t.or)(...f));function p(y){if(y==="")throw new Error("empty JSON pointer not allowed");const m=y.split("/");let g=c;const T=m.map((M,R)=>R?g=(0,t._)`${g}${(0,t.getProperty)(i(M))}`:g);return(0,t.and)(...T)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}a.default=n;function i(o){return o.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Nd,Nd.exports)),Nd.exports}var KO=_l.exports,YO;function i3(){return YO||(YO=1,(function(e,a){var t=KO&&KO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(n3()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(_l,_l.exports)),_l.exports}var El={exports:{}},Cd={exports:{}},XO;function a3(){return XO||(XO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:y=>{var m;const g=(m=y?.max)!==null&&m!==void 0?m:2;return()=>Math.floor(Math.random()*g)},seq:y=>{var m;const g=(m=y?.name)!==null&&m!==void 0?m:"";return t[g]||(t[g]=0),()=>t[g]++}},i=Object.assign(o,{DEFAULTS:n});function o(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(y,m,g){if(!g.opts.useDefaults||g.compositeRule)return()=>!0;const T={};for(const R in y)T[R]=u(y[R]);const M=g.opts.useDefaults==="empty";return R=>{for(const I in y)(R[I]===void 0||M&&(R[I]===null||R[I]===""))&&(R[I]=T[I]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function u(y){return typeof y=="object"?c(y):f(y)}function c({func:y,args:m}){const g=n[y];return p(y,g),g(m)}function f(y=""){const m=n[y];return p(y,m),m()}function p(y,m){if(!m)throw new Error(`invalid "dynamicDefaults" keyword property value: ${y}`)}a.default=i,e.exports=i})(Cd,Cd.exports)),Cd.exports}var JO=El.exports,QO;function o3(){return QO||(QO=1,(function(e,a){var t=JO&&JO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(a3()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(El,El.exports)),El.exports}var bl={exports:{}},jd={exports:{}},ZO;function s3(){return ZO||(ZO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={message:({params:{schemaProp:u}})=>u?(0,t.str)`should match case "${u}" schema`:(0,t.str)`should match default case schema`,params:({params:{schemaProp:u}})=>u?(0,t._)`{failingCase: ${u}}`:(0,t._)`{failingDefault: true}`};function o(u){const c=(0,n.metaSchemaRef)(u);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:i,dependencies:["selectCases"],code(f){const{gen:p,schemaCode:y,parentSchema:m}=f;f.block$data(t.nil,()=>{const g=p.let("valid",!0),T=p.name("_valid"),M=p.const("value",(0,t._)`${y} === null ? "null" : ${y}`);p.if(!1);for(const R in m.selectCases){f.setParams({schemaProp:R}),p.elseIf((0,t._)`"" + ${M} == ${R}`);const I=f.subschema({keyword:"selectCases",schemaProp:R},T);f.mergeEvaluated(I,t.Name),p.assign(g,T)}if(p.else(),m.selectDefault!==void 0){f.setParams({schemaProp:void 0});const R=f.subschema({keyword:"selectDefault"},T);f.mergeEvaluated(R,t.Name),p.assign(g,T)}p.endIf(),f.pass(g)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:c}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:c}]}a.default=o,e.exports=o})(jd,jd.exports)),jd.exports}var $O=bl.exports,xO;function u3(){return xO||(xO=1,(function(e,a){var t=$O&&$O.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(s3()),i=(o,u)=>((0,n.default)(u).forEach(c=>o.addKeyword(c)),o);a.default=i,e.exports=i})(bl,bl.exports)),bl.exports}var eA=tl.exports,tA;function l3(){return tA||(tA=1,(function(e,a){var t=eA&&eA.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(CB()),i=t(LB()),o=t(qB()),u=t(UB()),c=t(FB()),f=t(HB()),p=t(WB()),y=t(KB()),m=t(XB()),g=t(QB()),T=t($B()),M=t(e3()),R=t(r3()),I=t(i3()),N=t(o3()),E=t(u3()),P={typeof:n.default,instanceof:i.default,range:o.default,exclusiveRange:u.default,regexp:c.default,transform:f.default,uniqueItemProperties:p.default,allRequired:y.default,anyRequired:m.default,oneRequired:g.default,patternRequired:T.default,prohibited:M.default,deepProperties:R.default,deepRequired:I.default,dynamicDefaults:N.default,select:E.default};a.default=P,e.exports=P})(tl,tl.exports)),tl.exports}var rA=el.exports,nA;function ff(){return nA||(nA=1,(function(e,a){var t=rA&&rA.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(l3()),i=(u,c)=>{if(Array.isArray(c)){for(const f of c)o(f)(u);return u}if(c)return o(c)(u),u;for(c in n.default)o(c)(u);return u};i.get=o;function o(u){const c=n.default[u];if(!c)throw new Error("Unknown keyword "+u);return c}a.default=i,e.exports=i,e.exports.default=i})(el,el.exports)),el.exports}var Ld={exports:{}},iA;function pf(){return iA||(iA=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=xo(),n=bt(),i=Al(),o=Ll(),u=jl(),c=$i(),f="errorMessage",p=new t.Name("emUsed"),y={required:"missingProperty",dependencies:"property",dependentRequired:"property"},m=/\$\{[^}]+\}/,g=/\$\{([^}]+)\}/g,T=/^""\s*\+\s*|\s*\+\s*""$/g;function M(I){return{keyword:f,schemaType:["string","object"],post:!0,code(N){const{gen:E,data:P,schema:S,schemaValue:v,it:O}=N;if(O.createErrors===!1)return;const j=S,V=n.strConcat(c.default.instancePath,O.errorPath);E.if(t._`${c.default.errors} > 0`,()=>{if(typeof j=="object"){const[k,L]=K(j);L&&ae(L),k&&_e(k),be(U(j))}const B=typeof j=="string"?j:j._;B&&ye(B),I.keepErrors||Me()});function U({properties:B,items:k}){const L={};if(B){L.props={};for(const W in B)L.props[W]=[]}if(k){L.items={};for(let W=0;W<k.length;W++)L.items[W]=[]}return L}function K(B){let k,L;for(const W in B){if(W==="properties"||W==="items")continue;const oe=B[W];if(typeof oe=="object"){k||(k={});const Re=k[W]={};for(const Se in oe)Re[Se]=[]}else L||(L={}),L[W]=[]}return[k,L]}function ae(B){const k=E.const("emErrors",t.stringify(B)),L=E.const("templates",ue(B,S));E.forOf("err",c.default.vErrors,Se=>E.if(Ne(Se,k),()=>E.code(t._`${k}[${Se}.keyword].push(${Se})`).assign(t._`${Se}.${p}`,!0)));const{singleError:W}=I;if(W){const Se=E.let("message",t._`""`),Ue=E.let("paramsErrors",t._`[]`);oe(Ce=>{E.if(Se,()=>E.code(t._`${Se} += ${typeof W=="string"?W:";"}`)),E.code(t._`${Se} += ${Re(Ce)}`),E.assign(Ue,t._`${Ue}.concat(${k}[${Ce}])`)}),u.reportError(N,{message:Se,params:t._`{errors: ${Ue}}`})}else oe(Se=>u.reportError(N,{message:Re(Se),params:t._`{errors: ${k}[${Se}]}`}));function oe(Se){E.forIn("key",k,Ue=>E.if(t._`${k}[${Ue}].length`,()=>Se(Ue)))}function Re(Se){return t._`${Se} in ${L} ? ${L}[${Se}]() : ${v}[${Se}]`}}function _e(B){const k=E.const("emErrors",t.stringify(B)),L=[];for(const Ue in B)L.push([Ue,ue(B[Ue],S[Ue])]);const W=E.const("templates",E.object(...L)),oe=E.scopeValue("obj",{ref:y,code:t.stringify(y)}),Re=E.let("emPropParams"),Se=E.let("emParamsErrors");E.forOf("err",c.default.vErrors,Ue=>E.if(Ne(Ue,k),()=>{E.assign(Re,t._`${oe}[${Ue}.keyword]`),E.assign(Se,t._`${k}[${Ue}.keyword][${Ue}.params[${Re}]]`),E.if(Se,()=>E.code(t._`${Se}.push(${Ue})`).assign(t._`${Ue}.${p}`,!0))})),E.forIn("key",k,Ue=>E.forIn("keyProp",t._`${k}[${Ue}]`,Ce=>{E.assign(Se,t._`${k}[${Ue}][${Ce}]`),E.if(t._`${Se}.length`,()=>{const se=E.const("tmpl",t._`${W}[${Ue}] && ${W}[${Ue}][${Ce}]`);u.reportError(N,{message:t._`${se} ? ${se}() : ${v}[${Ue}][${Ce}]`,params:t._`{errors: ${Se}}`})})}))}function be(B){const{props:k,items:L}=B;if(!k&&!L)return;const W=t._`typeof ${P} == "object"`,oe=t._`Array.isArray(${P})`,Re=E.let("emErrors");let Se,Ue;const Ce=E.let("templates");k&&L?(Se=E.let("emChildKwd"),E.if(W),E.if(oe,()=>{se(L,S.items),E.assign(Se,t.str`items`)},()=>{se(k,S.properties),E.assign(Se,t.str`properties`)}),Ue=t._`[${Se}]`):L?(E.if(oe),se(L,S.items),Ue=t._`.items`):k&&(E.if(n.and(W,n.not(oe))),se(k,S.properties),Ue=t._`.properties`),E.forOf("err",c.default.vErrors,de=>qe(de,Re,Ae=>E.code(t._`${Re}[${Ae}].push(${de})`).assign(t._`${de}.${p}`,!0))),E.forIn("key",Re,de=>E.if(t._`${Re}[${de}].length`,()=>{u.reportError(N,{message:t._`${de} in ${Ce} ? ${Ce}[${de}]() : ${v}${Ue}[${de}]`,params:t._`{errors: ${Re}[${de}]}`}),E.assign(t._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,t._`${V} + "/" + ${de}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),E.endIf();function se(de,Ae){E.assign(Re,t.stringify(de)),E.assign(Ce,ue(de,Ae))}}function ye(B){const k=E.const("emErrs",t._`[]`);E.forOf("err",c.default.vErrors,L=>E.if(we(L),()=>E.code(t._`${k}.push(${L})`).assign(t._`${L}.${p}`,!0))),E.if(t._`${k}.length`,()=>u.reportError(N,{message:X(B),params:t._`{errors: ${k}}`}))}function Me(){const B=E.const("emErrs",t._`[]`);E.forOf("err",c.default.vErrors,k=>E.if(t._`!${k}.${p}`,()=>E.code(t._`${B}.push(${k})`))),E.assign(c.default.vErrors,B).assign(c.default.errors,t._`${B}.length`)}function Ne(B,k){return n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,t._`${B}.instancePath === ${V}`,t._`${B}.keyword in ${k}`,t._`${B}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`/^\\/[^\\/]*$/.test(${B}.schemaPath.slice(${O.errSchemaPath.length}))`)}function qe(B,k,L){E.if(n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,t._`${B}.instancePath.indexOf(${V}) === 0`),()=>{const W=E.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:t._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),oe=E.const("emMatches",t._`${W}.exec(${B}.instancePath.slice(${V}.length))`),Re=E.const("emChild",t._`${oe} && ${oe}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);E.if(t._`${Re} !== undefined && ${Re} in ${k}`,()=>L(Re))})}function we(B){return n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,n.or(t._`${B}.instancePath === ${V}`,n.and(t._`${B}.instancePath.indexOf(${V}) === 0`,t._`${B}.instancePath[${V}.length] === "/"`)),t._`${B}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`${B}.schemaPath[${O.errSchemaPath}.length] === "/"`)}function ue(B,k){const L=[];for(const W in B){const oe=k[W];m.test(oe)&&L.push([W,C(oe)])}return E.object(...L)}function X(B){return m.test(B)?new i._Code(i.safeStringify(B).replace(g,(k,L)=>`" + JSON.stringify(${o.getData(L,O)}) + "`).replace(T,"")):t.stringify(B)}function C(B){return t._`function(){return ${X(B)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const R=(I,N={})=>{if(!I.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(I.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return I.addKeyword(M(N))};a.default=R,e.exports=R,e.exports.default=R})(Ld,Ld.exports)),Ld.exports}var aA;function He(){if(aA)return Yn;aA=1;var e=Yn&&Yn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.validateType=Yn.generateLazyValidator=Yn.Ajv=void 0;const a=e(xo());Yn.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(T=>g.addKeyword(T)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}Yn.generateLazyValidator=i;function o(u,c){return u.validate(c)}return Yn.validateType=o,Yn}var oA;function c3(){return oA||(oA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=He();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(xp)),xp}var cy={},sA;function d3(){return sA||(sA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=He();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(cy)),cy}var uA;function f3(){return uA||(uA=1,(function(e){var a=$a&&$a.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=$a&&$a.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(c3(),e),t(d3(),e)})($a)),$a}var no={},dy={},lA;function p3(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=He();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(dy)),dy}var fy={},py={},cA;function yf(){return cA||(cA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=He();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.EXOTIC="exotic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.EXOTIC]:50,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.EXOTIC]:"#E4FFB8",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.EXOTIC]:"#CAFF73",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(y){return n[y]}t.getMaxSupply=u;function c(y){return o[y]}t.getColor=c;function f(){return[t.UNIQUE,t.MYTHIC,t.EXOTIC,t.LEGENDARY,t.EPIC,t.RARE,t.UNCOMMON,t.COMMON]}t.getRarities=f;function p(y){return[i[y],o[y]]}t.getGradient=p})(e.Rarity||(e.Rarity={}))})(py)),py}var yy={},dA;function es(){return dA||(dA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=He();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(yy)),yy}var my={},hy={},fA;function Cb(){return fA||(fA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=He();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(hy)),hy}var gy={},vy={},pA;function UD(){return pA||(pA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=He();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(vy)),vy}var yA;function jb(){return yA||(yA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=es(),t=He(),n=UD();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(gy)),gy}var mA;function Lb(){return mA||(mA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=He(),t=Cb(),n=jb();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(my)),my}var io={},ao={},_y={},Ey={},hA;function ts(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=He();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(Ey)),Ey}var gA;function BD(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=es(),t=ts(),n=He();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(_y)),_y}var by={},vA;function y3(){return vA||(vA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=He(),t=BD();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(by)),by}var _A;function m3(){return _A||(_A=1,(function(e){var a=ao&&ao.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=ao&&ao.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(BD(),e),t(y3(),e)})(ao)),ao}var wy={},Ty={},EA;function FD(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=He();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Ty)),Ty}var Sy={},bA;function VD(){return bA||(bA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Sy)),Sy}var Oy={},wA;function HD(){return wA||(wA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=He();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Oy)),Oy}var Ay={},ku={},TA;function Db(){return TA||(TA=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.displayableProperties=void 0,ku.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),ku}var Py={},SA;function zD(){return SA||(SA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=He();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(Py)),Py}var Iy={},OA;function WD(){return OA||(OA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(Iy)),Iy}var AA;function h3(){return AA||(AA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=He(),t=Db(),n=FD(),i=HD(),o=zD(),u=WD(),c=VD();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Ay)),Ay}var PA;function g3(){return PA||(PA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=FD();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=VD();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=HD();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=h3();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=zD();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=WD();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(wy)),wy}var oo={},Ry={},My={},IA;function GD(){return IA||(IA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=He();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(My)),My}var RA;function KD(){return RA||(RA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=He(),t=GD();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Ry)),Ry}var Ny={},MA;function YD(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=He();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(Ny)),Ny}var Cy={},NA;function qb(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=yf(),t=He();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(Cy)),Cy}var jy={},so={},Ly={},CA;function v3(){return CA||(CA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=He();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(Ly)),Ly}var jA;function XD(){return jA||(jA=1,(function(e){var a=so&&so.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=so&&so.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(v3(),e)})(so)),so}var Dy={},LA;function kb(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const a=He();var t;(function(m){m.SINGLE="single",m.ANY="any",m.MULTIPLE="multiple",m.RANGE="range"})(t=e.MappingType||(e.MappingType={}));var n;(function(m){m.MAINNET="mainnet",m.BASE_MAINNET="base_mainnet",m.BASE_SEPOLIA="base_sepolia",m.MONAD_MAINNET="monad_mainnet",m.MONAD_TESTNET="monad_testnet",m.APE_MAINNET="ape_mainnet",m.APE_CALDERA="ape_caldera",m.MATIC="matic",m.SEPOLIA="sepolia",m.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var o;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.ANY}},required:["type"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(o=e.AnyMapping||(e.AnyMapping={}));var u;(function(m){m._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(T,M){if(!M||!M.from||!M.to)return!1;let{to:R,from:I}=M;return(typeof I!="bigint"||typeof R!="bigint")&&(I=BigInt(I),R=BigInt(R)),I<=R},errors:!1},m.schema={type:"object",properties:{type:{type:"string",const:t.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[m._fromLessThanOrEqualTo])})(u=e.RangeMapping||(e.RangeMapping={}));var c;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(c=e.MultipleMapping||(e.MultipleMapping={}));var f;(function(m){m.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)}},required:["type"],oneOf:[i.schema,o.schema,u.schema,c.schema]},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo])})(f=e.Mapping||(e.Mapping={})),(function(m){m._isMappingsValid={keyword:"_isMappingsValid",validate:function(T,M){try{y(M)}catch{return!1}return!0},errors:!1},m.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:f.schema}},minProperties:1,required:[],additionalProperties:!1};const g=Object.values(n).reduce((T,M)=>(T[M]=m.innerSchema,T),{});m.schema={type:"object",properties:g,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo,m._isMappingsValid])})(e.Mappings||(e.Mappings={}));class p extends Error{constructor(g,T,M){super(g),this.existingMapping=T,this.conflictingMapping=M}}e.AddMappingError=p;function y(m={}){const g={};for(const[v,O]of Object.entries(m)){g[v]={};for(const[j,V]of Object.entries(O))for(const U of V)P(v,j,U)}function T(){return JSON.parse(JSON.stringify(g))}function M(v,O,j){const V=BigInt(v);return V>=BigInt(O)&&V<=BigInt(j)}function R(v,O){switch(O.type){case t.SINGLE:return v.id===O.id;case t.MULTIPLE:return O.ids.includes(v.id);case t.RANGE:return M(v.id,O.from,O.to);default:return!1}}function I(v,O){switch(O.type){case t.SINGLE:return v.ids.includes(O.id);case t.MULTIPLE:return v.ids.some(j=>O.ids.includes(j));case t.RANGE:return v.ids.some(j=>M(j,O.from,O.to));default:return!1}}function N(v,O){switch(O.type){case t.SINGLE:return M(O.id,v.from,v.to);case t.MULTIPLE:return O.ids.some(j=>M(j,v.from,v.to));case t.RANGE:return BigInt(v.from)<=BigInt(O.to)&&BigInt(v.to)>=BigInt(O.from)}}function E(v,O){if(v.type===t.ANY||O.type===t.ANY)return!0;switch(v.type){case t.SINGLE:return R(v,O);case t.MULTIPLE:return I(v,O);case t.RANGE:return N(v,O)}}function P(v,O,j){var V,U;const K=O.toLowerCase();g[v]=(V=g[v])!==null&&V!==void 0?V:{},g[v][K]=(U=g[v][K])!==null&&U!==void 0?U:[];for(const ae of g[v][K])if(E(ae,j))throw new p(`Cannot add mapping to contract ${K} on network ${v} because it overlaps with existing mapping`,ae,j);g[v][K].push(j)}function S(v,O,j){var V;return!((V=g[v])===null||V===void 0)&&V[O]?g[v][O].some(U=>{switch(U.type){case t.SINGLE:return U.id===j;case t.ANY:return!0;case t.MULTIPLE:return U.ids.includes(j);case t.RANGE:return BigInt(j)>=BigInt(U.from)&&BigInt(j)<=BigInt(U.to)}}):!1}return{addMapping:P,getMappings:T,includesNft:S}}e.createMappingsHelper=y})(Dy)),Dy}var DA;function Ub(){return DA||(DA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const a=He(),t=XD(),n=kb();e.schema={type:"object",properties:{merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(c,f){var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function u(c){return o(c)}e.isThirdParty=u})(jy)),jy}var qy={},ky={},Jn={},qA;function JD(){if(qA)return Jn;qA=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.isBaseEmote=Jn.isBaseAvatar=Jn.requiredBaseItemProps=Jn.baseItemProperties=void 0;const e=KD(),a=YD(),t=Db();Jn.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Jn.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(o){if(!o||!o.id)return!1;const u=o.id.split(":"),c=u[1]==="decentraland",f=u[3]==="base-avatars";return u.length===5&&c&&f}Jn.isBaseAvatar=n;function i(o){if(!o||!o.id)return!1;const u=o.id.split(":");return u.length===5&&u[1]==="decentraland"&&u[3]==="base-emotes"}return Jn.isBaseEmote=i,Jn}var kA;function _3(){return kA||(kA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=He(),t=es(),n=Lb(),i=JD(),o=qb(),u=Ub(),c=jb(),f=kb();(function(p){p.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const y={keyword:"_isThirdParty",validate:(g,T)=>!g||(0,u.isThirdParty)(T),errors:!1},m={keyword:"_isBaseAvatar",validate:(g,T)=>!g||(0,i.isBaseAvatar)(T),errors:!1};p.validate=(0,a.generateLazyValidator)(p.schema,[y,m,f.RangeMapping._fromLessThanOrEqualTo,f.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(ky)),ky}var UA;function E3(){return UA||(UA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=Lb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=_3();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=es();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=UD();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=jb();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(qy)),qy}var Uy={},By={},Fy={},Vy={},BA;function QD(){return BA||(BA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=He();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Vy)),Vy}var Hy={},FA;function ZD(){return FA||(FA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=He(),t=Cb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(Hy)),Hy}var zy={},VA;function $D(){return VA||(VA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const a=He();var t;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(t=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,a.generateLazyValidator)(i.schema)})(t=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[t.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[t.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",t.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[t.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(t).reduce((o,u)=>(o[u]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${u} must contain valid animation data when provided`}),o),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(zy)),zy}var HA;function xD(){return HA||(HA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=QD(),t=He(),n=ZD(),i=$D();(function(o){o.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Fy)),Fy}var zA;function b3(){return zA||(zA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=eq(),t=He(),n=JD(),i=qb(),o=Ub(),u=xD();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.schema.properties),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(y,m)=>!y||(0,a.isThirdParty)(m),errors:!1},p={keyword:"_isBaseEmote",validate:(y,m)=>!y||(0,n.isBaseEmote)(m),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f,p,a.RangeMapping._fromLessThanOrEqualTo,a.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(By)),By}var Wy={},WA;function w3(){return WA||(WA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=He();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Wy)),Wy}var Gy={},GA;function T3(){return GA||(GA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const a=He();(function(t){t.SIMPLE_OUTCOME="so",t.MULTIPLE_OUTCOME="mo",t.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(Gy)),Gy}var KA;function S3(){return KA||(KA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=b3();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=ZD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=xD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=$D();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var o=QD();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return o.EmoteCategory}});var u=w3();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return u.EmotePlayMode}});var c=T3();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return c.EmoteOutcomeType}})})(Uy)),Uy}var YA;function eq(){return YA||(YA=1,(function(e){var a=oo&&oo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var T=Object.getOwnPropertyDescriptor(y,m);(!T||("get"in T?!y.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,T)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=oo&&oo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=KD();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=GD();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=YD();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Cb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=qb();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=Ub();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(kb(),e),t(E3(),e),t(S3(),e)})(oo)),oo}var Ky={},Yy={},XA;function Dl(){return XA||(XA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=He();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Yy)),Yy}var JA;function O3(){return JA||(JA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=ts(),t=Dl(),n=He();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Ky)),Ky}var Xy={},Jy={},QA;function tq(){return QA||(QA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=ts(),t=He();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Jy)),Jy}var ZA;function rq(){return ZA||(ZA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=ts(),t=tq(),n=He();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Xy)),Xy}var Qy={},$A;function A3(){return $A||($A=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Dl(),t=He();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Qy)),Qy}var uo={},Zy={},xA;function P3(){return xA||(xA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=es(),t=ts(),n=He();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Zy)),Zy}var eP;function I3(){return eP||(eP=1,(function(e){var a=uo&&uo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=uo&&uo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(P3(),e)})(uo)),uo}var lo={},$y={},tP;function nq(){return tP||(tP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(a){a.BADGE_GRANTED="badge_granted",a.BID_ACCEPTED="bid_accepted",a.BID_RECEIVED="bid_received",a.EVENTS_STARTED="events_started",a.EVENTS_STARTS_SOON="events_starts_soon",a.EVENT_CREATED="event_created",a.GOVERNANCE_ANNOUNCEMENT="governance_announcement",a.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",a.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",a.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",a.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",a.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",a.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",a.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",a.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",a.GOVERNANCE_TENDER_PASSED="governance_tender_passed",a.GOVERNANCE_WHALE_VOTE="governance_whale_vote",a.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",a.ITEM_SOLD="item_sold",a.ITEM_PUBLISHED="item_published",a.LAND_RENTAL_ENDED="rental_ended",a.LAND_RENTED="rental_started",a.REWARD_ASSIGNED="reward_assignment",a.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",a.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",a.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",a.REWARD_DELAYED="reward_delayed",a.REWARD_IN_PROGRESS="reward_in_progress",a.ROYALTIES_EARNED="royalties_earned",a.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",a.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",a.WORLDS_ACCESS_RESTORED="worlds_access_restored",a.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",a.WORLDS_MISSING_RESOURCES="worlds_missing_resources",a.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",a.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",a.CREDITS_GOAL_COMPLETED="credits_goal_completed",a.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",a.STREAMING_KEY_RESET="streaming_key_reset",a.STREAMING_KEY_REVOKE="streaming_key_revoke",a.STREAMING_KEY_EXPIRED="streaming_key_expired",a.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",a.STREAMING_PLACE_UPDATED="streaming_place_updated",a.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",a.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",a.CREDITS_REMINDER_USAGE="credits_reminder_usage",a.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",a.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",a.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",a.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",a.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",a.COMMUNITY_DELETED="community_deleted",a.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",a.COMMUNITY_RENAMED="community_renamed",a.COMMUNITY_MEMBER_BANNED="community_member_banned",a.COMMUNITY_MEMBER_REMOVED="community_member_removed",a.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",a.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",a.COMMUNITY_INVITE_RECEIVED="community_invite_received",a.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",a.COMMUNITY_POST_ADDED="community_post_added",a.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",a.USER_BANNED_FROM_SCENE="user_banned_from_scene",a.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",a.TRANSFER_RECEIVED="transfer_received"})(e.NotificationType||(e.NotificationType={})),(function(a){a.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})($y)),$y}var xy={},em={},rP;function iq(){return rP||(rP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const a=He(),t=nq(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(t.NotificationType).reduce((o,u)=>(o[u]=n,o),{});(function(o){o.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(t.NotificationType),additionalProperties:!1,properties:i}}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(em)),em}var tm={},nP;function aq(){return nP||(nP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(a){a.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const t=new RegExp(a.schema.pattern);a.validate=n=>t.test(n)})(e.Email||(e.Email={}))})(tm)),tm}var iP;function R3(){return iP||(iP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const a=He(),t=iq(),n=ts(),i=aq();(function(o){o.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:t.SubscriptionDetails.schema}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Subscription||(e.Subscription={}))})(xy)),xy}var aP;function M3(){return aP||(aP=1,(function(e){var a=lo&&lo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=lo&&lo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(nq(),e),t(R3(),e),t(iq(),e)})(lo)),lo}var co={},rm={},oP;function un(){return oP||(oP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(a){(function(t){t.BLOCKCHAIN="blockchain",t.CATALYST_DEPLOYMENT="catalyst-deployment",t.WORLD="world",t.CLIENT="client",t.WEB="web",t.MARKETPLACE="marketplace",t.REWARDS="rewards",t.BADGE="badge",t.ASSET_BUNDLE="asset-bundle",t.SOCIAL_SERVICE="social-service",t.CREDITS_SERVICE="credits-service",t.STREAMING="streaming",t.COMMS="comms",t.REFERRAL="referral",t.COMMUNITY="community",t.CAMERA="camera",t.EVENT="event",t.GOVERNANCE="governance"})(a.Type||(a.Type={})),(function(t){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received"})(t.Blockchain||(t.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(t.Marketplace||(t.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(t.CatalystDeployment||(t.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(t.Worlds||(t.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(t.Client||(t.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(t.Web||(t.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(t.Rewards||(t.Rewards={})),(function(n){n.GRANTED="badge-granted"})(t.Badge||(t.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(t.AssetBundle||(t.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(t.SocialService||(t.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(t.CreditsService||(t.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(t.Streaming||(t.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(t.Comms||(t.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(t.Referral||(t.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(t.Community||(t.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(t.Camera||(t.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended"})(t.Event||(t.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(t.Governance||(t.Governance={}))})(a.SubType||(a.SubType={}))})(e.Events||(e.Events={}))})(rm)),rm}var nm={},sP;function N3(){return sP||(sP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={}))})(nm)),nm}var im={},uP;function C3(){return uP||(uP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const a=Dl(),t=He(),n=rq(),i=un();(function(o){o.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:a.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(im)),im}var am={},lP;function j3(){return lP||(lP=1,Object.defineProperty(am,"__esModule",{value:!0})),am}var om={},cP;function L3(){return cP||(cP=1,Object.defineProperty(om,"__esModule",{value:!0})),om}var sm={},dP;function D3(){return dP||(dP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.MARKETPLACE},subType:{type:"string",const:t.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(sm)),sm}var um={},Uu={},fP;function mf(){if(fP)return Uu;fP=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.createEventSchema=void 0;function e(a,t,n){return{type:"object",properties:{type:{type:"string",const:a},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Uu.createEventSchema=e,Uu}var pP;function q3(){return pP||(pP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const a=He(),t=un(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},o={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_ASSIGNED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_DELAYED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(um)),um}var lm={},yP;function k3(){return yP||(yP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BADGE},subType:{type:"string",const:t.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(lm)),lm}var cm={},mP;function U3(){return mP||(mP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const a=He(),t=un(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_RESET,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(cm)),cm}var dm={},hP;function B3(){return hP||(hP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const a=He(),t=un();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(dm)),dm}var fm={},gP;function F3(){return gP||(gP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const a=He(),t=un(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.REFERRAL,t.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.REFERRAL,t.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(fm)),fm}var pm={},vP;function V3(){return vP||(vP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(pm)),pm}var ym={},_P;function H3(){return _P||(_P=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CAMERA},subType:{type:"string",const:t.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CAMERA},subType:{type:"string",const:t.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(ym)),ym}var mm={},EP;function z3(){return EP||(EP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const a=He(),t=un();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={}))})(mm)),mm}var hm={},bP;function W3(){return bP||(bP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const a=He(),t=un(),n=mf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.PROPOSAL_ENACTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.COAUTHOR_REQUESTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.PITCH_PASSED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.TENDER_PASSED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.VOTING_ENDED_VOTER,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.WHALE_VOTE,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.VOTED_ON_BEHALF,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.CLIFF_ENDED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(hm)),hm}var gm={},wP;function G3(){return wP||(wP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=void 0;const a=Dl(),t=He(),n=un();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:a.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(gm)),gm}var TP;function K3(){return TP||(TP=1,(function(e){var a=co&&co.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=co&&co.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(un(),e),t(N3(),e),t(C3(),e),t(j3(),e),t(L3(),e),t(D3(),e),t(q3(),e),t(k3(),e),t(U3(),e),t(B3(),e),t(F3(),e),t(V3(),e),t(H3(),e),t(z3(),e),t(W3(),e),t(G3(),e)})(co)),co}var SP;function Bb(){return SP||(SP=1,(function(e){var a=io&&io.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=io&&io.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(m3(),e),t(g3(),e),t(eq(),e),t(Db(),e),t(XD(),e),t(O3(),e),t(rq(),e),t(A3(),e),t(I3(),e),t(M3(),e),t(K3(),e)})(io)),io}var OP;function Y3(){return OP||(OP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=yf(),t=es(),n=Lb(),i=He(),o=Bb();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(fy)),fy}var AP;function X3(){return AP||(AP=1,(function(e){var a=no&&no.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=no&&no.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(p3(),e),t(Y3(),e)})(no)),no}var PP;function J3(){return PP||(PP=1,(function(e){var a=Za&&Za.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Za&&Za.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(f3(),e),t(X3(),e)})(Za)),Za}var fo={},vm={},IP;function Q3(){return IP||(IP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=He();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(vm)),vm}var _m={},Em={},RP;function oq(){return RP||(RP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=He(),t=si();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.MATIC_AMOY="Amoy",o.AVALANCHE_MAINNET="Avalanche",o.BINANCE_MAINNET="Binance Smart Chain",o.ARBITRUM_MAINNET="Arbitrum",o.OPTIMISM_MAINNET="Optimism",o.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return t.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return t.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return t.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return t.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return t.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return t.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(Em)),Em}var bm={},MP;function oi(){return MP||(MP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=He();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC",t.AVALANCHE="AVALANCHE",t.BSC="BINANCE SMART CHAIN",t.OPTIMISM="OPTIMISM",t.ARBITRUM="ARBITRUM",t.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(bm)),bm}var NP;function si(){return NP||(NP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=He(),t=oq(),n=oi();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI",p[p.MATIC_AMOY=80002]="MATIC_AMOY",p[p.BSC_MAINNET=56]="BSC_MAINNET",p[p.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",p[p.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",p[p.FANTOM_MAINNET=250]="FANTOM_MAINNET",p[p.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return t.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return t.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return t.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return t.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return t.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return t.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=u;function c(p){const y={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(p){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},y);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},y);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y)}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(_m)),_m}var wm={},CP;function Z3(){return CP||(CP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=He(),t=si(),n=oi();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(wm)),wm}var Tm={},Sm={},jP;function hf(){return jP||(jP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=He();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(Sm)),Sm}var LP;function $3(){return LP||(LP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=He(),t=si(),n=oi(),i=hf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(Tm)),Tm}var Om={},Am={},DP;function sq(){return DP||(DP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=He(),t=si(),n=Bb(),i=oi(),o=hf(),u=yf(),c=es();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(Am)),Am}var qP;function x3(){return qP||(qP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=He(),t=si(),n=oi(),i=sq(),o=hf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(Om)),Om}var Pm={},kP;function Fb(){return kP||(kP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=He();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(Pm)),Pm}var Im={},UP;function eF(){return UP||(UP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=He();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Im)),Im}var Rm={},BP;function tF(){return BP||(BP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=He(),t=si(),n=oi();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Rm)),Rm}var Mm={},FP;function rF(){return FP||(FP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Mm)),Mm}var Nm={},VP;function nF(){return VP||(VP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=He(),t=si(),n=Fb(),i=oi();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(Nm)),Nm}var Cm={},HP;function iF(){return HP||(HP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=He();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.MAGIC_TEST="magic_test",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(Cm)),Cm}var jm={},zP;function uq(){return zP||(zP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=He();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(jm)),jm}var Lm={},WP;function aF(){return WP||(WP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=He(),t=si(),n=uq(),i=oi();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(Lm)),Lm}var Dm={},GP;function oF(){return GP||(GP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=He(),t=si(),n=oi();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(Dm)),Dm}var qm={},KP;function sF(){return KP||(KP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(qm)),qm}var km={},YP;function uF(){return YP||(YP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=He();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(km)),km}var Um={},XP;function lF(){return XP||(XP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=He();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(Um)),Um}var Bm={},JP;function cF(){return JP||(JP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=He();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(Bm)),Bm}var Fm={},QP;function dF(){return QP||(QP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=He(),t=si(),n=Fb(),i=oi();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){const u={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};o.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...u.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(Fm)),Fm}var Vm={},ZP;function fF(){return ZP||(ZP=1,Object.defineProperty(Vm,"__esModule",{value:!0})),Vm}var Hm={},$P;function pF(){return $P||($P=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(a){a.BID="bid",a.PUBLIC_NFT_ORDER="public_nft_order",a.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(a){a[a.ERC20=1]="ERC20",a[a.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",a[a.ERC721=3]="ERC721",a[a.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(a){a.SENT="sent",a.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(Hm)),Hm}var po={},zm={},xP;function yF(){return xP||(xP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=He();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(zm)),zm}var Wm={},eI;function mF(){return eI||(eI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(a){a.AUTH="authentication",a.BUILDER="builder",a.MARKETPLACE="marketplace",a.PROFILE="profile",a.CONFIG="configurator"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(Wm)),Wm}var Gm={},tI;function hF(){return tI||(tI=1,Object.defineProperty(Gm,"__esModule",{value:!0})),Gm}var Km={},rI;function gF(){return rI||(rI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=He();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Km)),Km}var Ym={},nI;function vF(){return nI||(nI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=He();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(Ym)),Ym}var Xm={},iI;function _F(){return iI||(iI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const a=He();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(Xm)),Xm}var Jm={},aI;function EF(){return aI||(aI=1,Object.defineProperty(Jm,"__esModule",{value:!0})),Jm}var Qm={},oI;function bF(){return oI||(oI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=He();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(Qm)),Qm}var Zm={},sI;function wF(){return sI||(sI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=He();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(Zm)),Zm}var $m={},uI;function TF(){return uI||(uI=1,Object.defineProperty($m,"__esModule",{value:!0})),$m}var xm={},lI;function SF(){return lI||(lI=1,Object.defineProperty(xm,"__esModule",{value:!0})),xm}var eh={},cI;function OF(){return cI||(cI=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},dI;function AF(){return dI||(dI=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},fI;function PF(){return fI||(fI=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var nh={},pI;function IF(){return pI||(pI=1,Object.defineProperty(nh,"__esModule",{value:!0})),nh}var ih={},yI;function RF(){return yI||(yI=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},mI;function MF(){return mI||(mI=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var hI;function NF(){return hI||(hI=1,(function(e){var a=po&&po.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=po&&po.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(yF(),e),t(mF(),e),t(hF(),e),t(gF(),e),t(vF(),e),t(_F(),e),t(EF(),e),t(bF(),e),t(wF(),e),t(TF(),e),t(SF(),e),t(OF(),e),t(AF(),e),t(PF(),e),t(IF(),e),t(RF(),e),t(MF(),e)})(po)),po}var yo={},Bu={},gI;function CF(){if(gI)return Bu;gI=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.isSysLink=void 0;const e=a=>a!==null&&typeof a=="object"&&"sys"in a&&"id"in a.sys;return Bu.isSysLink=e,Bu}var Fu={},vI;function jF(){if(vI)return Fu;vI=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.ContentfulLocale=void 0;var e;return(function(a){a.enUS="en-US",a.es="es",a.zh="zh"})(e||(e={})),Fu.ContentfulLocale=e,Fu}var oh={},_I;function LF(){return _I||(_I=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var EI;function DF(){return EI||(EI=1,(function(e){var a=yo&&yo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=yo&&yo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(CF(),e),t(jF(),e),t(LF(),e)})(yo)),yo}var bI;function qF(){return bI||(bI=1,(function(e){var a=fo&&fo.__createBinding||(Object.create?(function(K,ae,_e,be){be===void 0&&(be=_e);var ye=Object.getOwnPropertyDescriptor(ae,_e);(!ye||("get"in ye?!ae.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return ae[_e]}}),Object.defineProperty(K,be,ye)}):(function(K,ae,_e,be){be===void 0&&(be=_e),K[be]=ae[_e]})),t=fo&&fo.__exportStar||function(K,ae){for(var _e in K)_e!=="default"&&!Object.prototype.hasOwnProperty.call(ae,_e)&&a(ae,K,_e)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=Q3();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=si();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var o=oq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return o.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return o.getChainId}});var u=Z3();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return u.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return u.CollectionSortBy}});var c=$3();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return c.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return c.ContractSortBy}});var f=x3();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return f.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return f.ItemSortBy}});var p=Fb();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return p.ListingStatus}});var y=eF();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return y.MetaTransaction}});var m=tF();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return m.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return m.MintSortBy}});var g=oi();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return g.Network}});var T=hf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return T.NFTCategory}});var M=sq();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return M.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return M.NFTSortBy}});var R=rF();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return R.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return R.CatalogSortDirection}});var I=nF();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return I.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return I.OrderSortBy}});var N=iF();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return N.ProviderType}});var E=yf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return E.Rarity}});var P=uq();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return P.SaleType}});var S=aF();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return S.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return S.SaleSortBy}});var v=oF();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return v.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return v.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return v.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return v.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return v.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return v.PeriodCreation}});var O=sF();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return O.AnalyticsDayDataSortBy}});var j=uF();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return j.Store}});var V=lF();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return V.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return V.GenderFilterOption}});var U=cF();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return U.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return U.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return U.isInsideWorldLimits}}),t(dF(),e),t(fF(),e),t(pF(),e),t(NF(),e),t(DF(),e)})(fo)),fo}var sh={},wI;function kF(){return wI||(wI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(sh)),sh}var mo={},uh={},Vu={},TI;function lq(){if(TI)return Vu;TI=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.isInExceptionBlock=void 0;function e(i,o){return i>=62&&i<=150&&o>=151&&o<=158}function a(i,o){return i>=151&&i<=162&&o>=144&&o<=158}function t(i,o){return i>=151&&i<=163&&o>=59&&o<=143}function n(i,o){return e(i,o)||a(i,o)||t(i,o)}return Vu.isInExceptionBlock=n,Vu}var SI;function UF(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const a=He(),t=lq();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(T,M){return!M||typeof M.x!="number"||typeof M.y!="number"?!1:c(M)||(0,t.isInExceptionBlock)(M.x,M.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:g,y:T}){return`${g},${T}`}n.parcelToString=i;function o(g){const T=g.match(/^(-?\d+),(-?\d+)$/);if(!T)return null;const[,M,R]=T,I=parseInt(M,10),N=parseInt(R,10);return{x:I,y:N}}n.stringToParcel=o;function u(g){const T=o(g);return T?n.validate(T):!1}n.isParcelStringValid=u;function c(g){const{x:T,y:M}=g;return T>=e.PARCEL_LIMITS.minX&&T<=e.PARCEL_LIMITS.maxX&&M>=e.PARCEL_LIMITS.minY&&M<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=c;function f(g){return(0,t.isInExceptionBlock)(g.x,g.y)}n.isExceptionParcel=f;function p(g){return c(g)||f(g)}n.isInBounds=p;function y(g){return n.validate(g)}n.isValid=y;function m(g){const T=o(g);return T?n.validate(T):!1}n.isValidString=m})(e.Parcel||(e.Parcel={}))})(uh)),uh}var ho={},OI;function BF(){if(OI)return ho;OI=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.validateUrlInstance=ho.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function a(T,M=2){let R=T;for(let I=0;I<M;I++)try{R=decodeURIComponent(R)}catch{break}return R.normalize("NFKC")}function t(T){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(T)}function n(T){return!!(T.username||T.password)}function i(T){return/\\/.test(T)}const o=["80","443"];function u(T,M){return!!T.port&&!M.includes(T.port)}function c(T){const M=T.toLowerCase();return!!(M==="localhost"||M.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(M)||M==="::1"||M==="[::1]"||M.startsWith("fe80:")||M.startsWith("fc00:"))}function f(T){if(T.startsWith("//"))return null;try{return{url:new URL(T),wasRelative:!1}}catch{try{return{url:new URL(T,"https://example.com"),wasRelative:!0}}catch{return null}}}function p(T){const M=a(String(T).toLowerCase());return!(t(M)||i(M))}function y(T){return!(!T||T.includes("..")||T.includes("//")||t(T)||i(T))}function m(T,M={}){const R=Object.assign(Object.assign({},e),M),I=[...o,...R.allowedPorts];if(!T||T.length===0||T.length>4096||t(T)||i(T))return!1;const N=a(T);if(t(N)||i(N)||T.startsWith("//"))return!1;const E=f(T);if(!E)return!1;const{url:P,wasRelative:S}=E;if(P.protocol!=="http:"&&P.protocol!=="https:"&&P.protocol!==""||n(P)||i(T)||i(P.href)||!S&&(u(P,I)||!R.allowLocalhost&&P.hostname&&c(P.hostname))||!y(P.pathname)||P.pathname.length>2048)return!1;const v=Array.from(P.searchParams.entries());if(v.length>50||(P.search?P.search.startsWith("?")?P.search.length-1:P.search.length:0)>2048)return!1;for(const[j,V]of v)if(j.length===0||!p(j)||!p(V)||j.length>128||V.length>1024)return!1;return!(P.hash&&t(P.hash))}ho.validateUrl=m;function g(T,M={}){return m(T.toString(),M)}return ho.validateUrlInstance=g,ho}var AI;function FF(){return AI||(AI=1,(function(e){var a=mo&&mo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=mo&&mo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(UF(),e),t(lq(),e),t(BF(),e)})(mo)),mo}var PI;function VF(){return PI||(PI=1,(function(e){var a=Kn&&Kn.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(c,f);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,p,y)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),t=Kn&&Kn.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),n=Kn&&Kn.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&a(c,u,f);return t(c,u),c},i=Kn&&Kn.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&a(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const o=n(J3());e.sdk=o,i(He(),e),i(qF(),e),i(Bb(),e),i(ts(),e),i(kF(),e),i(Dl(),e),i(tq(),e),i(aq(),e),i(FF(),e)})(Kn)),Kn}var Cn=VF(),go={},Hu={},Dd={exports:{}},qd={exports:{}},II;function Vb(){return II||(II=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;function t(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=a.default,e.exports.default=a.default})(qd,qd.exports)),qd.exports}var kd={exports:{}},RI;function HF(){return RI||(RI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=n;function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function n(i,o){for(var u=0;u<o.length;u++){var c=o[u];if(i===c||t(c)&&c.test(i))return!0}return!1}e.exports=a.default,e.exports.default=a.default})(kd,kd.exports)),kd.exports}var Ud={exports:{}},MI;function zF(){return MI||(MI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=function(i,o){return i.indexOf(o)!==-1};a.default=t,e.exports=a.default,e.exports.default=a.default})(Ud,Ud.exports)),Ud.exports}var Bd={exports:{}},Fd={exports:{}},NI;function cq(){return NI||(NI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var o in i)typeof n[o]>"u"&&(n[o]=i[o]);return n}e.exports=a.default,e.exports.default=a.default})(Fd,Fd.exports)),Fd.exports}var CI;function WF(){return CI||(CI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;var t=i(Vb()),n=i(cq());function i(c){return c&&c.__esModule?c:{default:c}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function u(c,f){(0,t.default)(c),f=(0,n.default)(f,o),f.allow_trailing_dot&&c[c.length-1]==="."&&(c=c.substring(0,c.length-1)),f.allow_wildcard===!0&&c.indexOf("*.")===0&&(c=c.substring(2));var p=c.split("."),y=p[p.length-1];return f.require_tld&&(p.length<2||!f.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(y)||/\s/.test(y))||!f.allow_numeric_tld&&/^\d+$/.test(y)?!1:p.every(function(m){return!(m.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!f.allow_underscores&&/_/.test(m))})}e.exports=a.default,e.exports.default=a.default})(Bd,Bd.exports)),Bd.exports}var Vd={exports:{}},jI;function GF(){return jI||(jI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=y;var t=n(Vb());function n(m){return m&&m.__esModule?m:{default:m}}function i(m){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},i(m)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",u="(".concat(o,"[.]){3}").concat(o),c=new RegExp("^".concat(u,"$")),f="(?:[0-9a-fA-F]{1,4})",p=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(u,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(u,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(u,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(u,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(u,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(u,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(u,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function y(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,t.default)(m);var T=(i(g)==="object"?g.version:arguments[1])||"";return T?T.toString()==="4"?c.test(m):T.toString()==="6"?p.test(m):!1:y(m,{version:4})||y(m,{version:6})}e.exports=a.default,e.exports.default=a.default})(Vd,Vd.exports)),Vd.exports}var LI;function KF(){return LI||(LI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=N;var t=f(Vb()),n=f(HF()),i=f(zF()),o=f(WF()),u=f(GF()),c=f(cq());function f(E){return E&&E.__esModule?E:{default:E}}function p(E,P){return M(E)||T(E,P)||m(E,P)||y()}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(E,P){if(E){if(typeof E=="string")return g(E,P);var S={}.toString.call(E).slice(8,-1);return S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set"?Array.from(E):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?g(E,P):void 0}}function g(E,P){(P==null||P>E.length)&&(P=E.length);for(var S=0,v=Array(P);S<P;S++)v[S]=E[S];return v}function T(E,P){var S=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(S!=null){var v,O,j,V,U=[],K=!0,ae=!1;try{if(j=(S=S.call(E)).next,P!==0)for(;!(K=(v=j.call(S)).done)&&(U.push(v.value),U.length!==P);K=!0);}catch(_e){ae=!0,O=_e}finally{try{if(!K&&S.return!=null&&(V=S.return(),Object(V)!==V))return}finally{if(ae)throw O}}return U}}function M(E){if(Array.isArray(E))return E}var R={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},I=/^\[([^\]]+)\](?::([0-9]+))?$/;function N(E,P){if((0,t.default)(E),!E||/[\s<>]/.test(E)||E.indexOf("mailto:")===0||(P=(0,c.default)(P,R),P.validate_length&&E.length>P.max_allowed_length)||!P.allow_fragments&&(0,i.default)(E,"#")||!P.allow_query_components&&((0,i.default)(E,"?")||(0,i.default)(E,"&")))return!1;var S,v,O,j,V,U,K,ae;K=E.split("#"),E=K.shift(),K=E.split("?"),E=K.shift();var _e=E.match(/^([a-z][a-z0-9+\-.]*):/i),be=!1,ye=function(de){return be=!0,S=de.toLowerCase(),P.require_valid_protocol&&P.protocols.indexOf(S)===-1?!1:E.substring(_e[0].length)};if(_e){var Me=_e[1],Ne=E.substring(_e[0].length),qe=Ne.slice(0,2)==="//";if(qe){if(E=ye(Me),E===!1)return!1}else{var we=Ne.indexOf("/"),ue=we===-1?Ne:Ne.substring(0,we),X=ue.indexOf("@");if(X!==-1){var C=ue.substring(0,X),B=/^[a-zA-Z0-9\-_.%:]*$/,k=B.test(C),L=/%[0-9a-fA-F]{2}/.test(C);if(k&&!L){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}else{var W=/^[0-9]/.test(Ne);if(W){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}}}else if(P.require_protocol)return!1;if(E.slice(0,2)==="//"){if(!be&&!P.allow_protocol_relative_urls)return!1;E=E.slice(2)}if(E==="")return!1;if(K=E.split("/"),E=K.shift(),E===""&&!P.require_host)return!0;if(K=E.split("@"),K.length>1){if(P.disallow_auth||K[0]===""||(v=K.shift(),v.indexOf(":")>=0&&v.split(":").length>2))return!1;var oe=v.split(":"),Re=p(oe,2),Se=Re[0],Ue=Re[1];if(Se===""&&Ue==="")return!1}j=K.join("@"),U=null,ae=null;var Ce=j.match(I);if(Ce?(O="",ae=Ce[1],U=Ce[2]||null):(K=j.split(":"),O=K.shift(),K.length&&(U=K.join(":"))),U!==null&&U.length>0){if(V=parseInt(U,10),!/^[0-9]+$/.test(U)||V<=0||V>65535)return!1}else if(P.require_port)return!1;return P.host_whitelist?(0,n.default)(O,P.host_whitelist):O===""&&!P.require_host?!0:!(!(0,u.default)(O)&&!(0,o.default)(O,P)&&(!ae||!(0,u.default)(ae,6))||(O=O||ae,P.host_blacklist&&(0,n.default)(O,P.host_blacklist)))}e.exports=a.default,e.exports.default=a.default})(Dd,Dd.exports)),Dd.exports}var Wi={},Hd={exports:{}},lh={},DI;function YF(){return DI||(DI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function a(U,K){return{validate:U,compare:K}}e.fullFormats={date:a(o,u),time:a(f,p),"date-time":a(m,g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:R,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:V,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:N,int32:{type:"number",validate:S},int64:{type:"number",validate:v},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:a(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,u),time:a(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":a(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function t(U){return U%4===0&&(U%100!==0||U%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(U){const K=n.exec(U);if(!K)return!1;const ae=+K[1],_e=+K[2],be=+K[3];return _e>=1&&_e<=12&&be>=1&&be<=(_e===2&&t(ae)?29:i[_e])}function u(U,K){if(U&&K)return U>K?1:U<K?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function f(U,K){const ae=c.exec(U);if(!ae)return!1;const _e=+ae[1],be=+ae[2],ye=+ae[3],Me=ae[5];return(_e<=23&&be<=59&&ye<=59||_e===23&&be===59&&ye===60)&&(!K||Me!=="")}function p(U,K){if(!(U&&K))return;const ae=c.exec(U),_e=c.exec(K);if(ae&&_e)return U=ae[1]+ae[2]+ae[3]+(ae[4]||""),K=_e[1]+_e[2]+_e[3]+(_e[4]||""),U>K?1:U<K?-1:0}const y=/t|\s/i;function m(U){const K=U.split(y);return K.length===2&&o(K[0])&&f(K[1],!0)}function g(U,K){if(!(U&&K))return;const[ae,_e]=U.split(y),[be,ye]=K.split(y),Me=u(ae,be);if(Me!==void 0)return Me||p(_e,ye)}const T=/\/|:/,M=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function R(U){return T.test(U)&&M.test(U)}const I=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function N(U){return I.lastIndex=0,I.test(U)}const E=-2147483648,P=2**31-1;function S(U){return Number.isInteger(U)&&U<=P&&U>=E}function v(U){return Number.isInteger(U)}function O(){return!0}const j=/[^\\]\\Z/;function V(U){if(j.test(U))return!1;try{return new RegExp(U),!0}catch{return!1}}})(lh)),lh}var ch={},qI;function XF(){return qI||(qI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const a=xo(),t=bt(),n=t.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:f})=>t.str`should be ${i[c].okStr} ${f}`,params:({keyword:c,schemaCode:f})=>t._`{comparison: ${i[c].okStr}, limit: ${f}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:f,data:p,schemaCode:y,keyword:m,it:g}=c,{opts:T,self:M}=g;if(!T.validateFormats)return;const R=new a.KeywordCxt(g,M.RULES.all.format.definition,"format");R.$data?I():N();function I(){const P=f.scopeValue("formats",{ref:M.formats,code:T.code.formats}),S=f.const("fmt",t._`${P}[${R.schemaCode}]`);c.fail$data(t.or(t._`typeof ${S} != "object"`,t._`${S} instanceof RegExp`,t._`typeof ${S}.compare != "function"`,E(S)))}function N(){const P=R.schema,S=M.formats[P];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${m}": format "${P}" does not define "compare" function`);const v=f.scopeValue("formats",{key:P,ref:S,code:T.code.formats?t._`${T.code.formats}${t.getProperty(P)}`:void 0});c.fail$data(E(v))}function E(P){return t._`${P}.compare(${p}, ${y}) ${i[m].fail} 0`}},dependencies:["format"]};const u=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=u})(ch)),ch}var kI;function JF(){return kI||(kI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=YF(),n=XF(),i=bt(),o=new i.Name("fullFormats"),u=new i.Name("fastFormats"),c=(p,y={keywords:!0})=>{if(Array.isArray(y))return f(p,y,t.fullFormats,o),p;const[m,g]=y.mode==="fast"?[t.fastFormats,u]:[t.fullFormats,o],T=y.formats||t.formatNames;return f(p,T,m,g),y.keywords&&n.default(p),p};c.get=(p,y="full")=>{const g=(y==="fast"?t.fastFormats:t.fullFormats)[p];if(!g)throw new Error(`Unknown format "${p}"`);return g};function f(p,y,m,g){var T,M;(T=(M=p.opts.code).formats)!==null&&T!==void 0||(M.formats=i._`require("ajv-formats/dist/formats").${g}`);for(const R of y)p.addFormat(R,m[R])}e.exports=a=c,Object.defineProperty(a,"__esModule",{value:!0}),a.default=c})(Hd,Hd.exports)),Hd.exports}var Qn={},vo={},_o={},dh={},Zn={},UI;function rt(){if(UI)return Zn;UI=1;var e=Zn&&Zn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.validateType=Zn.generateLazyValidator=Zn.Ajv=void 0;const a=e(xo());Zn.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(T=>g.addKeyword(T)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}Zn.generateLazyValidator=i;function o(u,c){return u.validate(c)}return Zn.validateType=o,Zn}var BI;function QF(){return BI||(BI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=rt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(dh)),dh}var fh={},FI;function ZF(){return FI||(FI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=rt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(fh)),fh}var VI;function $F(){return VI||(VI=1,(function(e){var a=_o&&_o.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=_o&&_o.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(QF(),e),t(ZF(),e)})(_o)),_o}var Eo={},ph={},HI;function xF(){return HI||(HI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=rt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(ph)),ph}var yh={},mh={},zI;function gf(){return zI||(zI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=rt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(mh)),mh}var hh={},WI;function rs(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=rt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(hh)),hh}var gh={},vh={},GI;function Hb(){return GI||(GI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=rt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(vh)),vh}var _h={},Eh={},KI;function dq(){return KI||(KI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=rt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Eh)),Eh}var YI;function zb(){return YI||(YI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=rs(),t=rt(),n=dq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(_h)),_h}var XI;function Wb(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=rt(),t=Hb(),n=zb();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(gh)),gh}var bo={},wo={},bh={},wh={},JI;function nu(){return JI||(JI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=rt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(wh)),wh}var QI;function fq(){return QI||(QI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=rs(),t=nu(),n=rt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(bh)),bh}var Th={},ZI;function eV(){return ZI||(ZI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=rt(),t=fq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Th)),Th}var $I;function tV(){return $I||($I=1,(function(e){var a=wo&&wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=wo&&wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(fq(),e),t(eV(),e)})(wo)),wo}var Sh={},Oh={},xI;function pq(){return xI||(xI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=rt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Oh)),Oh}var Ah={},eR;function yq(){return eR||(eR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Ah)),Ah}var Ph={},tR;function mq(){return tR||(tR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=rt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Ph)),Ph}var Ih={},zu={},rR;function Gb(){return rR||(rR=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.displayableProperties=void 0,zu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),zu}var Rh={},nR;function hq(){return nR||(nR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(Rh)),Rh}var Mh={},iR;function gq(){return iR||(iR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(Mh)),Mh}var aR;function rV(){return aR||(aR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=rt(),t=Gb(),n=pq(),i=mq(),o=hq(),u=gq(),c=yq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Ih)),Ih}var oR;function nV(){return oR||(oR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=pq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=yq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=mq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=rV();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=hq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=gq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(Sh)),Sh}var To={},Nh={},Ch={},sR;function vq(){return sR||(sR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=rt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Ch)),Ch}var uR;function _q(){return uR||(uR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=rt(),t=vq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Nh)),Nh}var jh={},lR;function Eq(){return lR||(lR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(jh)),jh}var Lh={},cR;function Kb(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=gf(),t=rt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(Lh)),Lh}var Dh={},qh={},dR;function bq(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(qh)),qh}var fR;function Yb(){return fR||(fR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=rt(),t=bq();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(Dh)),Dh}var kh={},Uh={},Gi={},pR;function wq(){if(pR)return Gi;pR=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.isBaseAvatar=Gi.requiredBaseItemProps=Gi.baseItemProperties=void 0;const e=_q(),a=Eq(),t=Gb();Gi.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Gi.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Gi.isBaseAvatar=n,Gi}var yR;function iV(){return yR||(yR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=rt(),t=rs(),n=Wb(),i=wq(),o=Kb(),u=Yb(),c=zb();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(Uh)),Uh}var mR;function aV(){return mR||(mR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=Wb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=iV();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=rs();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=dq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=zb();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(kh)),kh}var Bh={},Fh={},Vh={},Hh={},hR;function Tq(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=rt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Hh)),Hh}var zh={},gR;function Sq(){return gR||(gR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=rt(),t=Hb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(zh)),zh}var vR;function Oq(){return vR||(vR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Tq(),t=rt(),n=Sq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Vh)),Vh}var _R;function oV(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Aq(),t=rt(),n=wq(),i=Kb(),o=Yb(),u=Oq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(Fh)),Fh}var Wh={},ER;function sV(){return ER||(ER=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=rt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Wh)),Wh}var bR;function uV(){return bR||(bR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=oV();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Sq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Oq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Tq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=sV();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(Bh)),Bh}var wR;function Aq(){return wR||(wR=1,(function(e){var a=To&&To.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var T=Object.getOwnPropertyDescriptor(y,m);(!T||("get"in T?!y.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,T)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=To&&To.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=_q();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=vq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Eq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Hb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=Kb();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=Yb();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(aV(),e),t(uV(),e)})(To)),To}var So={},TR;function lV(){return TR||(TR=1,(function(e){var a=So&&So.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=So&&So.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(bq(),e)})(So)),So}var Gh={},Kh={},SR;function Xb(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=rt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Kh)),Kh}var OR;function cV(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=nu(),t=Xb(),n=rt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Gh)),Gh}var Yh={},Xh={},AR;function Pq(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=nu(),t=rt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Xh)),Xh}var PR;function dV(){return PR||(PR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=nu(),t=Pq(),n=rt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Yh)),Yh}var Jh={},IR;function fV(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Xb(),t=rt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Jh)),Jh}var Oo={},Qh={},RR;function pV(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=rs(),t=nu(),n=rt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Qh)),Qh}var MR;function yV(){return MR||(MR=1,(function(e){var a=Oo&&Oo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Oo&&Oo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(pV(),e)})(Oo)),Oo}var NR;function Jb(){return NR||(NR=1,(function(e){var a=bo&&bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=bo&&bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(tV(),e),t(nV(),e),t(Aq(),e),t(Gb(),e),t(lV(),e),t(cV(),e),t(dV(),e),t(fV(),e),t(yV(),e)})(bo)),bo}var CR;function mV(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=gf(),t=rs(),n=Wb(),i=rt(),o=Jb();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(yh)),yh}var jR;function hV(){return jR||(jR=1,(function(e){var a=Eo&&Eo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Eo&&Eo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(xF(),e),t(mV(),e)})(Eo)),Eo}var LR;function gV(){return LR||(LR=1,(function(e){var a=vo&&vo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=vo&&vo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t($F(),e),t(hV(),e)})(vo)),vo}var Zh={},$h={},xh={},DR;function Iq(){return DR||(DR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=rt(),t=li();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(xh)),xh}var eg={},qR;function ui(){return qR||(qR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=rt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(eg)),eg}var kR;function li(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=rt(),t=Iq(),n=ui();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})($h)),$h}var tg={},UR;function Qb(){return UR||(UR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=rt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(tg)),tg}var BR;function vV(){return BR||(BR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=rt(),t=li(),n=Qb(),i=ui();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(Zh)),Zh}var rg={},FR;function _V(){return FR||(FR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=rt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(rg)),rg}var ng={},VR;function EV(){return VR||(VR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=rt(),t=li(),n=ui();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(ng)),ng}var ig={},ag={},HR;function vf(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=rt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(ag)),ag}var zR;function bV(){return zR||(zR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=rt(),t=li(),n=ui(),i=vf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(ig)),ig}var og={},sg={},WR;function Rq(){return WR||(WR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=rt(),t=li(),n=Jb(),i=ui(),o=vf(),u=gf(),c=rs();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(sg)),sg}var GR;function wV(){return GR||(GR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=rt(),t=li(),n=ui(),i=Rq(),o=vf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(og)),og}var ug={},KR;function TV(){return KR||(KR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(ug)),ug}var lg={},YR;function SV(){return YR||(YR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=rt(),t=li(),n=ui();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(lg)),lg}var cg={},XR;function OV(){return XR||(XR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(cg)),cg}var dg={},JR;function AV(){return JR||(JR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=rt(),t=li(),n=Qb(),i=ui();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(dg)),dg}var fg={},QR;function PV(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=rt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(fg)),fg}var pg={},ZR;function Mq(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=rt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(pg)),pg}var yg={},$R;function IV(){return $R||($R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=rt(),t=li(),n=Mq(),i=ui();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(yg)),yg}var mg={},xR;function RV(){return xR||(xR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=rt(),t=li(),n=ui();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(mg)),mg}var hg={},eM;function MV(){return eM||(eM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(hg)),hg}var gg={},tM;function NV(){return tM||(tM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(gg)),gg}var vg={},rM;function CV(){return rM||(rM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=rt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(vg)),vg}var _g={},nM;function jV(){return nM||(nM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=rt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(_g)),_g}var Ao={},Eg={},iM;function LV(){return iM||(iM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=rt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(Eg)),Eg}var bg={},aM;function DV(){return aM||(aM=1,Object.defineProperty(bg,"__esModule",{value:!0})),bg}var wg={},oM;function qV(){return oM||(oM=1,Object.defineProperty(wg,"__esModule",{value:!0})),wg}var Tg={},sM;function kV(){return sM||(sM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=rt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Tg)),Tg}var Sg={},uM;function UV(){return uM||(uM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=rt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(Sg)),Sg}var Og={},lM;function BV(){return lM||(lM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=rt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(Og)),Og}var Ag={},cM;function FV(){return cM||(cM=1,Object.defineProperty(Ag,"__esModule",{value:!0})),Ag}var Pg={},dM;function VV(){return dM||(dM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=rt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(Pg)),Pg}var Ig={},fM;function HV(){return fM||(fM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=rt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(Ig)),Ig}var Rg={},pM;function zV(){return pM||(pM=1,Object.defineProperty(Rg,"__esModule",{value:!0})),Rg}var Mg={},yM;function WV(){return yM||(yM=1,Object.defineProperty(Mg,"__esModule",{value:!0})),Mg}var Ng={},mM;function GV(){return mM||(mM=1,Object.defineProperty(Ng,"__esModule",{value:!0})),Ng}var Cg={},hM;function KV(){return hM||(hM=1,Object.defineProperty(Cg,"__esModule",{value:!0})),Cg}var jg={},gM;function YV(){return gM||(gM=1,Object.defineProperty(jg,"__esModule",{value:!0})),jg}var Lg={},vM;function XV(){return vM||(vM=1,Object.defineProperty(Lg,"__esModule",{value:!0})),Lg}var Dg={},_M;function JV(){return _M||(_M=1,Object.defineProperty(Dg,"__esModule",{value:!0})),Dg}var qg={},EM;function QV(){return EM||(EM=1,Object.defineProperty(qg,"__esModule",{value:!0})),qg}var bM;function ZV(){return bM||(bM=1,(function(e){var a=Ao&&Ao.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ao&&Ao.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(LV(),e),t(DV(),e),t(qV(),e),t(kV(),e),t(UV(),e),t(BV(),e),t(FV(),e),t(VV(),e),t(HV(),e),t(zV(),e),t(WV(),e),t(GV(),e),t(KV(),e),t(YV(),e),t(XV(),e),t(JV(),e),t(QV(),e)})(Ao)),Ao}var kg={},wM;function $V(){return wM||(wM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(kg)),kg}var TM;function xV(){return TM||(TM=1,(function(e){var a=Qn&&Qn.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=Qn&&Qn.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=Qn&&Qn.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=Qn&&Qn.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(gV());e.sdk=o,i(rt(),e);var u=vV();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=_V();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=li();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Iq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=EV();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=bV();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=wV();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var T=Qb();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return T.ListingStatus}});var M=TV();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=SV();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=ui();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=vf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Rq();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=OV();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var S=AV();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return S.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return S.OrderSortBy}});var v=PV();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=gf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var j=Mq();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return j.SaleType}});var V=IV();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return V.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return V.SaleSortBy}});var U=RV();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=MV();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=NV();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=CV();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=jV();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(ZV(),e),i(Jb(),e),i(nu(),e),i($V(),e),i(Xb(),e),i(Pq(),e)})(Qn)),Qn}var SM;function Nq(){if(SM)return Wi;SM=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.LocalStorageUtils=Wi.Action=Wi.SINGLE_SIGN_ON_TARGET=void 0;const e=xo(),a=JF(),t=xV();Wi.SINGLE_SIGN_ON_TARGET="single-sign-on";var n;(function(u){u.GET_IDENTITY="get-identity",u.SET_IDENTITY="set-identity",u.GET_CONNECTION_DATA="get-connection-data",u.SET_CONNECTION_DATA="set-connection-data",u.INIT="init"})(n||(Wi.Action=n={}));var i;(function(u){u.IDENTITY_KEY="single-sign-on-v2-identity",u.CONNECTION_DATA_KEY="single-sign-on-v2-connection-data";function c(g){o.validateAddress(g);const T=localStorage.getItem(m(g));if(!T)return null;const M=JSON.parse(T);o.validateAuthIdentity(M);const R={...M,expiration:new Date(M.expiration)};return R.expiration=new Date(R.expiration),R.expiration.getTime()<=Date.now()?null:R}u.getIdentity=c;function f(g,T){o.validateAddress(g);const M=m(g);T?(o.validateAuthIdentity(JSON.parse(JSON.stringify(T))),localStorage.setItem(M,JSON.stringify(T))):localStorage.removeItem(M)}u.setIdentity=f;function p(){const g=localStorage.getItem(u.CONNECTION_DATA_KEY);if(!g)return null;const T=JSON.parse(g);return o.validateConnectionData(T),T}u.getConnectionData=p;function y(g){g?(o.validateConnectionData(g),localStorage.setItem(u.CONNECTION_DATA_KEY,JSON.stringify(g))):localStorage.removeItem(u.CONNECTION_DATA_KEY)}u.setConnectionData=y;function m(g){return`${u.IDENTITY_KEY}-${g}`}})(i||(Wi.LocalStorageUtils=i={}));var o;return(function(u){const c=new e.default;(0,a.default)(c);const f={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},p={type:"object",properties:{provider:t.ProviderType.schema,address:f},required:["address","provider"],additionalProperties:!1},y={type:"object",properties:{authChain:t.AuthChain.schema,expiration:{type:"string",format:"date-time"},ephemeralIdentity:{type:"object",properties:{address:{type:"string"},privateKey:{type:"string"},publicKey:{type:"string"}},required:["address","privateKey","publicKey"],additionalProperties:!1}},required:["ephemeralIdentity","authChain","expiration"],additionalProperties:!1},m=c.compile(p),g=c.compile(y),T=c.compile(f);function M(N){if(!m(N))throw new Error(`Invalid connection data: ${JSON.stringify(m.errors)}`)}u.validateConnectionData=M;function R(N){if(!g(N))throw new Error(`Invalid auth identity: ${JSON.stringify(g.errors)}`)}u.validateAuthIdentity=R;function I(N){if(!T(N))throw new Error(`Invalid address: ${JSON.stringify(T.errors)}`)}u.validateAddress=I})(o||(o={})),Wi}var OM;function eH(){if(OM)return Hu;OM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.SingleSignOn=void 0;const e=KF(),a=Nq(),t=a.SINGLE_SIGN_ON_TARGET;var n;(function(o){o[o.NOT_INITIALIZED=0]="NOT_INITIALIZED",o[o.INITIALIZING=1]="INITIALIZING",o[o.INITIALIZED=2]="INITIALIZED"})(n||(n={}));let i=class Cq{constructor(){this.initState=n.NOT_INITIALIZED,this.isLocal=!1,this.src=null,this.idCounter=1}static getInstance(){return this.instance||(this.instance=new Cq),this.instance}async init({src:u,isUrlOptions:c,timeout:f}={}){if(this.initState!==n.NOT_INITIALIZED){console.log("SSO cannot be initialized more than once");return}this.initState=n.INITIALIZING;try{if(!u)throw new Error("Using local by configuration");if(!(0,e.default)(u,{protocols:["https"],require_valid_protocol:!0,...c??{}}))throw new Error(`Invalid url: ${u}`);if(document.getElementById(t))throw new Error("SSO Element was not created by this client");const p=document.createElement("iframe");p.id=t,p.src=u,p.style.width="0",p.style.height="0",p.style.border="none",p.style.position="absolute",document.body.appendChild(p),await Promise.race([this.waitForInitMessage(),new Promise((y,m)=>setTimeout(()=>m(new Error("Initialization timeout")),f??2e3))]),console.log("SSO initialized")}catch(p){this.isLocal=!0,console.log("SSO initialized locally, reason: "+p.message)}this.initState=n.INITIALIZED,this.src=u??null}async setConnectionData(u){await this.handle(a.Action.SET_CONNECTION_DATA,u)}async getConnectionData(){return await this.handle(a.Action.GET_CONNECTION_DATA)}async setIdentity(u,c){await this.handle(a.Action.SET_IDENTITY,{address:u,identity:c})}async getIdentity(u){return await this.handle(a.Action.GET_IDENTITY,u)}async handle(u,c){if(this.initState!==n.INITIALIZED)throw new Error("SSO is not initialized");if(this.isLocal)switch(u){case a.Action.SET_CONNECTION_DATA:return a.LocalStorageUtils.setConnectionData(c);case a.Action.GET_CONNECTION_DATA:return a.LocalStorageUtils.getConnectionData();case a.Action.SET_IDENTITY:const{address:f,identity:p}=c;return a.LocalStorageUtils.setIdentity(f,p);case a.Action.GET_IDENTITY:return a.LocalStorageUtils.getIdentity(c);default:throw new Error("Unsupported action")}else{const f=this.getIframeWindow(),p=this.idCounter++,y=this.waitForActionResponse(p,u);return f.postMessage({target:a.SINGLE_SIGN_ON_TARGET,id:p,action:u,payload:c},this.src),y}}getIframeWindow(){const u=document.getElementById(t);if(!u)throw new Error("Unable to obtain the SSO iframe element");if(u.tagName!=="IFRAME")throw new Error("The SSO element is not an iframe");const c=u;if(new URL(c.src).origin!==new URL(this.src).origin)throw new Error("The SSO iframe src has been modified");const f=c.contentWindow;if(!f)throw new Error("Unable to obtain the SSO iframe window");return f}waitForInitMessage(){return new Promise((u,c)=>{const f=p=>{p.data.target!==a.SINGLE_SIGN_ON_TARGET||p.data.action!==a.Action.INIT||(window.removeEventListener("message",f),p.data.ok||c(new Error(p.data.payload)),u())};window.addEventListener("message",f)})}waitForActionResponse(u,c){return new Promise((f,p)=>{const y=({data:m})=>{m.target!==a.SINGLE_SIGN_ON_TARGET||m.id!==u||m.action!==c||(window.removeEventListener("message",y),m.ok?f(m.payload):p(m.payload))};window.addEventListener("message",y)})}};return Hu.SingleSignOn=i,i.instance=null,Hu}var AM;function tH(){return AM||(AM=1,(function(e){var a=go&&go.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=go&&go.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(eH(),e),t(Nq(),e)})(go)),go}var yb=tH(),Ug={},$n={},PM;function Xe(){if(PM)return $n;PM=1;var e=$n&&$n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($n,"__esModule",{value:!0}),$n.validateType=$n.generateLazyValidator=$n.Ajv=void 0;const a=e(xo());$n.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(T=>g.addKeyword(T)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}$n.generateLazyValidator=i;function o(u,c){return u.validate(c)}return $n.validateType=o,$n}var Bg={},IM;function jq(){return IM||(IM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=Xe(),t=Ln();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.MATIC_AMOY="Amoy",o.AVALANCHE_MAINNET="Avalanche",o.BINANCE_MAINNET="Binance Smart Chain",o.ARBITRUM_MAINNET="Arbitrum",o.OPTIMISM_MAINNET="Optimism",o.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return t.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return t.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return t.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return t.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return t.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return t.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(Bg)),Bg}var Fg={},RM;function ci(){return RM||(RM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=Xe();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC",t.AVALANCHE="AVALANCHE",t.BSC="BINANCE SMART CHAIN",t.OPTIMISM="OPTIMISM",t.ARBITRUM="ARBITRUM",t.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(Fg)),Fg}var MM;function Ln(){return MM||(MM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=Xe(),t=jq(),n=ci();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI",p[p.MATIC_AMOY=80002]="MATIC_AMOY",p[p.BSC_MAINNET=56]="BSC_MAINNET",p[p.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",p[p.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",p[p.FANTOM_MAINNET=250]="FANTOM_MAINNET",p[p.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return t.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return t.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return t.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return t.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return t.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return t.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=u;function c(p){const y={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(p){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},y);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},y);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y)}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(Ug)),Ug}var wt=Ln(),Vg={},NM;function Lq(){return NM||(NM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=Xe();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.MAGIC_TEST="magic_test",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(Vg)),Vg}var Ct=Lq(),Yi;(function(e){e.Update="Web3ReactUpdate",e.Error="Web3ReactError",e.Deactivate="Web3ReactDeactivate"})(Yi||(Yi={}));var zd={exports:{}},CM;function rH(){if(CM)return zd.exports;CM=1;var e=typeof Reflect=="object"?Reflect:null,a=e&&typeof e.apply=="function"?e.apply:function(v,O,j){return Function.prototype.apply.call(v,O,j)},t;e&&typeof e.ownKeys=="function"?t=e.ownKeys:Object.getOwnPropertySymbols?t=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:t=function(v){return Object.getOwnPropertyNames(v)};function n(S){console&&console.warn&&console.warn(S)}var i=Number.isNaN||function(v){return v!==v};function o(){o.init.call(this)}zd.exports=o,zd.exports.once=N,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var u=10;function c(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(S){if(typeof S!="number"||S<0||i(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");u=S}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function f(S){return S._maxListeners===void 0?o.defaultMaxListeners:S._maxListeners}o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(v){for(var O=[],j=1;j<arguments.length;j++)O.push(arguments[j]);var V=v==="error",U=this._events;if(U!==void 0)V=V&&U.error===void 0;else if(!V)return!1;if(V){var K;if(O.length>0&&(K=O[0]),K instanceof Error)throw K;var ae=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw ae.context=K,ae}var _e=U[v];if(_e===void 0)return!1;if(typeof _e=="function")a(_e,this,O);else for(var be=_e.length,ye=M(_e,be),j=0;j<be;++j)a(ye[j],this,O);return!0};function p(S,v,O,j){var V,U,K;if(c(O),U=S._events,U===void 0?(U=S._events=Object.create(null),S._eventsCount=0):(U.newListener!==void 0&&(S.emit("newListener",v,O.listener?O.listener:O),U=S._events),K=U[v]),K===void 0)K=U[v]=O,++S._eventsCount;else if(typeof K=="function"?K=U[v]=j?[O,K]:[K,O]:j?K.unshift(O):K.push(O),V=f(S),V>0&&K.length>V&&!K.warned){K.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=S,ae.type=v,ae.count=K.length,n(ae)}return S}o.prototype.addListener=function(v,O){return p(this,v,O,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(v,O){return p(this,v,O,!0)};function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(S,v,O){var j={fired:!1,wrapFn:void 0,target:S,type:v,listener:O},V=y.bind(j);return V.listener=O,j.wrapFn=V,V}o.prototype.once=function(v,O){return c(O),this.on(v,m(this,v,O)),this},o.prototype.prependOnceListener=function(v,O){return c(O),this.prependListener(v,m(this,v,O)),this},o.prototype.removeListener=function(v,O){var j,V,U,K,ae;if(c(O),V=this._events,V===void 0)return this;if(j=V[v],j===void 0)return this;if(j===O||j.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete V[v],V.removeListener&&this.emit("removeListener",v,j.listener||O));else if(typeof j!="function"){for(U=-1,K=j.length-1;K>=0;K--)if(j[K]===O||j[K].listener===O){ae=j[K].listener,U=K;break}if(U<0)return this;U===0?j.shift():R(j,U),j.length===1&&(V[v]=j[0]),V.removeListener!==void 0&&this.emit("removeListener",v,ae||O)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(v){var O,j,V;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[v]),this;if(arguments.length===0){var U=Object.keys(j),K;for(V=0;V<U.length;++V)K=U[V],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=j[v],typeof O=="function")this.removeListener(v,O);else if(O!==void 0)for(V=O.length-1;V>=0;V--)this.removeListener(v,O[V]);return this};function g(S,v,O){var j=S._events;if(j===void 0)return[];var V=j[v];return V===void 0?[]:typeof V=="function"?O?[V.listener||V]:[V]:O?I(V):M(V,V.length)}o.prototype.listeners=function(v){return g(this,v,!0)},o.prototype.rawListeners=function(v){return g(this,v,!1)},o.listenerCount=function(S,v){return typeof S.listenerCount=="function"?S.listenerCount(v):T.call(S,v)},o.prototype.listenerCount=T;function T(S){var v=this._events;if(v!==void 0){var O=v[S];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function M(S,v){for(var O=new Array(v),j=0;j<v;++j)O[j]=S[j];return O}function R(S,v){for(;v+1<S.length;v++)S[v]=S[v+1];S.pop()}function I(S){for(var v=new Array(S.length),O=0;O<v.length;++O)v[O]=S[O].listener||S[O];return v}function N(S,v){return new Promise(function(O,j){function V(K){S.removeListener(v,U),j(K)}function U(){typeof S.removeListener=="function"&&S.removeListener("error",V),O([].slice.call(arguments))}P(S,v,U,{once:!0}),v!=="error"&&E(S,V,{once:!0})})}function E(S,v,O){typeof S.on=="function"&&P(S,"error",v,O)}function P(S,v,O,j){if(typeof S.on=="function")j.once?S.once(v,O):S.on(v,O);else if(typeof S.addEventListener=="function")S.addEventListener(v,function V(U){j.once&&S.removeEventListener(v,V),O(U)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return zd.exports}var Dq=rH();const b6=B2(Dq);function nH(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}var iu=(function(e){nH(a,e);function a(n){var i,o=n===void 0?{}:n,u=o.supportedChainIds;return i=e.call(this)||this,i.supportedChainIds=u,i}var t=a.prototype;return t.emitUpdate=function(i){this.emit(Yi.Update,i)},t.emitError=function(i){this.emit(Yi.Error,i)},t.emitDeactivate=function(){this.emit(Yi.Deactivate)},a})(Dq.EventEmitter);const iH="modulepreload",aH=function(e){return"https://cdn.decentraland.org/@dcl-regenesislabs/mobile-hub/1.0.0-20717816491.commit-17f8927/"+e},jM={},Pl=function(a,t,n){let i=Promise.resolve();if(t&&t.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");i=f(t.map(p=>{if(p=aH(p),p in jM)return;jM[p]=!0;const y=p.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const g=document.createElement("link");if(g.rel=y?"stylesheet":iH,y||(g.as="script"),g.crossOrigin="",g.href=p,c&&g.setAttribute("nonce",c),document.head.appendChild(g),y)return new Promise((T,M)=>{g.addEventListener("load",T),g.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return i.then(u=>{for(const c of u||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};var xn={},Po={},Io={},Hg={},LM;function oH(){return LM||(LM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=Xe();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(Hg)),Hg}var zg={},DM;function sH(){return DM||(DM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=Xe();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(zg)),zg}var qM;function uH(){return qM||(qM=1,(function(e){var a=Io&&Io.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Io&&Io.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oH(),e),t(sH(),e)})(Io)),Io}var Ro={},Wg={},kM;function lH(){return kM||(kM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=Xe();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(Wg)),Wg}var Gg={},Kg={},UM;function _f(){return UM||(UM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=Xe();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.EXOTIC="exotic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.EXOTIC]:50,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.EXOTIC]:"#E4FFB8",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.EXOTIC]:"#CAFF73",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(y){return n[y]}t.getMaxSupply=u;function c(y){return o[y]}t.getColor=c;function f(){return[t.UNIQUE,t.MYTHIC,t.EXOTIC,t.LEGENDARY,t.EPIC,t.RARE,t.UNCOMMON,t.COMMON]}t.getRarities=f;function p(y){return[i[y],o[y]]}t.getGradient=p})(e.Rarity||(e.Rarity={}))})(Kg)),Kg}var Yg={},BM;function ns(){return BM||(BM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=Xe();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Yg)),Yg}var Xg={},Jg={},FM;function Zb(){return FM||(FM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=Xe();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(Jg)),Jg}var Qg={},Zg={},VM;function qq(){return VM||(VM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=Xe();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Zg)),Zg}var HM;function $b(){return HM||(HM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=ns(),t=Xe(),n=qq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Qg)),Qg}var zM;function xb(){return zM||(zM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=Xe(),t=Zb(),n=$b();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Xg)),Xg}var Mo={},No={},$g={},xg={},WM;function is(){return WM||(WM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=Xe();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(xg)),xg}var GM;function kq(){return GM||(GM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=ns(),t=is(),n=Xe();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})($g)),$g}var ev={},KM;function cH(){return KM||(KM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=Xe(),t=kq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(ev)),ev}var YM;function dH(){return YM||(YM=1,(function(e){var a=No&&No.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=No&&No.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(kq(),e),t(cH(),e)})(No)),No}var tv={},rv={},XM;function Uq(){return XM||(XM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=Xe();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(rv)),rv}var nv={},JM;function Bq(){return JM||(JM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(nv)),nv}var iv={},QM;function Fq(){return QM||(QM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=Xe();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(iv)),iv}var av={},Wu={},ZM;function e0(){return ZM||(ZM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.displayableProperties=void 0,Wu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Wu}var ov={},$M;function Vq(){return $M||($M=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(ov)),ov}var sv={},xM;function Hq(){return xM||(xM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(sv)),sv}var eN;function fH(){return eN||(eN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=Xe(),t=e0(),n=Uq(),i=Fq(),o=Vq(),u=Hq(),c=Bq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(av)),av}var tN;function pH(){return tN||(tN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=Uq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=Bq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=Fq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=fH();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=Vq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=Hq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(tv)),tv}var Co={},uv={},lv={},rN;function zq(){return rN||(rN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=Xe();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(lv)),lv}var nN;function Wq(){return nN||(nN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=Xe(),t=zq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(uv)),uv}var cv={},iN;function Gq(){return iN||(iN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(cv)),cv}var dv={},aN;function t0(){return aN||(aN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=_f(),t=Xe();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(dv)),dv}var fv={},jo={},pv={},oN;function yH(){return oN||(oN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(pv)),pv}var sN;function Kq(){return sN||(sN=1,(function(e){var a=jo&&jo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=jo&&jo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(yH(),e)})(jo)),jo}var yv={},uN;function r0(){return uN||(uN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const a=Xe();var t;(function(m){m.SINGLE="single",m.ANY="any",m.MULTIPLE="multiple",m.RANGE="range"})(t=e.MappingType||(e.MappingType={}));var n;(function(m){m.MAINNET="mainnet",m.MATIC="matic",m.SEPOLIA="sepolia",m.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var o;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.ANY}},required:["type"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(o=e.AnyMapping||(e.AnyMapping={}));var u;(function(m){m._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(T,M){if(!M||!M.from||!M.to)return!1;let{to:R,from:I}=M;return(typeof I!="bigint"||typeof R!="bigint")&&(I=BigInt(I),R=BigInt(R)),I<=R},errors:!1},m.schema={type:"object",properties:{type:{type:"string",const:t.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[m._fromLessThanOrEqualTo])})(u=e.RangeMapping||(e.RangeMapping={}));var c;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(c=e.MultipleMapping||(e.MultipleMapping={}));var f;(function(m){m.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)}},required:["type"],oneOf:[i.schema,o.schema,u.schema,c.schema]},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo])})(f=e.Mapping||(e.Mapping={})),(function(m){m._isMappingsValid={keyword:"_isMappingsValid",validate:function(T,M){try{y(M)}catch{return!1}return!0},errors:!1},m.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:f.schema}},minProperties:1,required:[],additionalProperties:!1};const g=Object.values(n).reduce((T,M)=>(T[M]=m.innerSchema,T),{});m.schema={type:"object",properties:g,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo,m._isMappingsValid])})(e.Mappings||(e.Mappings={}));class p extends Error{constructor(g,T,M){super(g),this.existingMapping=T,this.conflictingMapping=M}}e.AddMappingError=p;function y(m={}){const g={};for(const[v,O]of Object.entries(m)){g[v]={};for(const[j,V]of Object.entries(O))for(const U of V)P(v,j,U)}function T(){return JSON.parse(JSON.stringify(g))}function M(v,O,j){const V=BigInt(v);return V>=BigInt(O)&&V<=BigInt(j)}function R(v,O){switch(O.type){case t.SINGLE:return v.id===O.id;case t.MULTIPLE:return O.ids.includes(v.id);case t.RANGE:return M(v.id,O.from,O.to);default:return!1}}function I(v,O){switch(O.type){case t.SINGLE:return v.ids.includes(O.id);case t.MULTIPLE:return v.ids.some(j=>O.ids.includes(j));case t.RANGE:return v.ids.some(j=>M(j,O.from,O.to));default:return!1}}function N(v,O){switch(O.type){case t.SINGLE:return M(O.id,v.from,v.to);case t.MULTIPLE:return O.ids.some(j=>M(j,v.from,v.to));case t.RANGE:return BigInt(v.from)<=BigInt(O.to)&&BigInt(v.to)>=BigInt(O.from)}}function E(v,O){if(v.type===t.ANY||O.type===t.ANY)return!0;switch(v.type){case t.SINGLE:return R(v,O);case t.MULTIPLE:return I(v,O);case t.RANGE:return N(v,O)}}function P(v,O,j){var V,U;const K=O.toLowerCase();g[v]=(V=g[v])!==null&&V!==void 0?V:{},g[v][K]=(U=g[v][K])!==null&&U!==void 0?U:[];for(const ae of g[v][K])if(E(ae,j))throw new p(`Cannot add mapping to contract ${K} on network ${v} because it overlaps with existing mapping`,ae,j);g[v][K].push(j)}function S(v,O,j){var V;return!((V=g[v])===null||V===void 0)&&V[O]?g[v][O].some(U=>{switch(U.type){case t.SINGLE:return U.id===j;case t.ANY:return!0;case t.MULTIPLE:return U.ids.includes(j);case t.RANGE:return BigInt(j)>=BigInt(U.from)&&BigInt(j)<=BigInt(U.to)}}):!1}return{addMapping:P,getMappings:T,includesNft:S}}e.createMappingsHelper=y})(yv)),yv}var lN;function n0(){return lN||(lN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const a=Xe(),t=Kq(),n=r0();e.schema={type:"object",properties:{merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(c,f){var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function u(c){return o(c)}e.isThirdParty=u})(fv)),fv}var mv={},hv={},ei={},cN;function Yq(){if(cN)return ei;cN=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.isBaseEmote=ei.isBaseAvatar=ei.requiredBaseItemProps=ei.baseItemProperties=void 0;const e=Wq(),a=Gq(),t=e0();ei.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),ei.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(o){if(!o||!o.id)return!1;const u=o.id.split(":"),c=u[1]==="decentraland",f=u[3]==="base-avatars";return u.length===5&&c&&f}ei.isBaseAvatar=n;function i(o){if(!o||!o.id)return!1;const u=o.id.split(":");return u.length===5&&u[1]==="decentraland"&&u[3]==="base-emotes"}return ei.isBaseEmote=i,ei}var dN;function mH(){return dN||(dN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=Xe(),t=ns(),n=xb(),i=Yq(),o=t0(),u=n0(),c=$b(),f=r0();(function(p){p.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const y={keyword:"_isThirdParty",validate:(g,T)=>!g||(0,u.isThirdParty)(T),errors:!1},m={keyword:"_isBaseAvatar",validate:(g,T)=>!g||(0,i.isBaseAvatar)(T),errors:!1};p.validate=(0,a.generateLazyValidator)(p.schema,[y,m,f.RangeMapping._fromLessThanOrEqualTo,f.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(hv)),hv}var fN;function hH(){return fN||(fN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=xb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=mH();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=ns();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=qq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=$b();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(mv)),mv}var gv={},vv={},_v={},Ev={},pN;function Xq(){return pN||(pN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=Xe();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Ev)),Ev}var bv={},yN;function Jq(){return yN||(yN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=Xe(),t=Zb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(bv)),bv}var mN;function Qq(){return mN||(mN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Xq(),t=Xe(),n=Jq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(_v)),_v}var hN;function gH(){return hN||(hN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Zq(),t=Xe(),n=Yq(),i=t0(),o=n0(),u=Qq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.schema.properties),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(y,m)=>!y||(0,a.isThirdParty)(m),errors:!1},p={keyword:"_isBaseEmote",validate:(y,m)=>!y||(0,n.isBaseEmote)(m),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f,p,a.RangeMapping._fromLessThanOrEqualTo,a.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(vv)),vv}var wv={},gN;function vH(){return gN||(gN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=Xe();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(wv)),wv}var vN;function _H(){return vN||(vN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=gH();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Jq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Qq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Xq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=vH();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(gv)),gv}var _N;function Zq(){return _N||(_N=1,(function(e){var a=Co&&Co.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var T=Object.getOwnPropertyDescriptor(y,m);(!T||("get"in T?!y.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,T)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=Co&&Co.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=Wq();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=zq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Gq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Zb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=t0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=n0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(r0(),e),t(hH(),e),t(_H(),e)})(Co)),Co}var Tv={},Sv={},EN;function Ef(){return EN||(EN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=Xe();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Sv)),Sv}var bN;function EH(){return bN||(bN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=is(),t=Ef(),n=Xe();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Tv)),Tv}var Ov={},Av={},wN;function $q(){return wN||(wN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=is(),t=Xe();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Av)),Av}var TN;function xq(){return TN||(TN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=is(),t=$q(),n=Xe();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Ov)),Ov}var Pv={},SN;function bH(){return SN||(SN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Ef(),t=Xe();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Pv)),Pv}var Lo={},Iv={},ON;function wH(){return ON||(ON=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=ns(),t=is(),n=Xe();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Iv)),Iv}var AN;function TH(){return AN||(AN=1,(function(e){var a=Lo&&Lo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Lo&&Lo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(wH(),e)})(Lo)),Lo}var Do={},Rv={},PN;function ek(){return PN||(PN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationType=void 0,(function(a){a.BADGE_GRANTED="badge_granted",a.BID_ACCEPTED="bid_accepted",a.BID_RECEIVED="bid_received",a.EVENTS_STARTED="events_started",a.EVENTS_STARTS_SOON="events_starts_soon",a.GOVERNANCE_ANNOUNCEMENT="governance_announcement",a.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",a.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",a.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",a.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",a.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",a.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",a.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",a.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",a.GOVERNANCE_TENDER_PASSED="governance_tender_passed",a.GOVERNANCE_WHALE_VOTE="governance_whale_vote",a.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",a.ITEM_SOLD="item_sold",a.ITEM_PUBLISHED="item_published",a.LAND_RENTAL_ENDED="rental_ended",a.LAND_RENTED="rental_started",a.REWARD_ASSIGNED="reward_assignment",a.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",a.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",a.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",a.REWARD_DELAYED="reward_delayed",a.REWARD_IN_PROGRESS="reward_in_progress",a.ROYALTIES_EARNED="royalties_earned",a.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",a.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",a.WORLDS_ACCESS_RESTORED="worlds_access_restored",a.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",a.WORLDS_MISSING_RESOURCES="worlds_missing_resources",a.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",a.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"})(e.NotificationType||(e.NotificationType={}))})(Rv)),Rv}var Mv={},Nv={},IN;function tk(){return IN||(IN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const a=Xe(),t=ek(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(t.NotificationType).reduce((o,u)=>(o[u]=n,o),{});(function(o){o.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(t.NotificationType),additionalProperties:!1,properties:i}}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(Nv)),Nv}var Cv={},RN;function rk(){return RN||(RN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(a){a.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const t=new RegExp(a.schema.pattern);a.validate=n=>t.test(n)})(e.Email||(e.Email={}))})(Cv)),Cv}var MN;function SH(){return MN||(MN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const a=Xe(),t=tk(),n=is(),i=rk();(function(o){o.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:t.SubscriptionDetails.schema}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Subscription||(e.Subscription={}))})(Mv)),Mv}var NN;function OH(){return NN||(NN=1,(function(e){var a=Do&&Do.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Do&&Do.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(ek(),e),t(SH(),e),t(tk(),e)})(Do)),Do}var qo={},jv={},CN;function au(){return CN||(CN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(a){(function(t){t.BLOCKCHAIN="blockchain",t.CATALYST_DEPLOYMENT="catalyst-deployment",t.WORLD="world",t.CLIENT="client",t.MARKETPLACE="marketplace",t.REWARDS="rewards",t.BADGE="badge",t.ASSET_BUNDLE="asset-bundle",t.SOCIAL_SERVICE="social-service"})(a.Type||(a.Type={})),(function(t){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published"})(t.Blockchain||(t.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(t.Marketplace||(t.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(t.CatalystDeployment||(t.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment"})(t.Worlds||(t.Worlds={})),(function(n){n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(t.Client||(t.Client={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(t.Rewards||(t.Rewards={})),(function(n){n.GRANTED="badge-granted"})(t.Badge||(t.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(t.AssetBundle||(t.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(t.SocialService||(t.SocialService={}))})(a.SubType||(a.SubType={}))})(e.Events||(e.Events={}))})(jv)),jv}var Lv={},jN;function AH(){return jN||(jN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={}))})(Lv)),Lv}var Dv={},LN;function PH(){return LN||(LN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const a=Ef(),t=Xe(),n=xq(),i=au();(function(o){o.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:a.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Dv)),Dv}var qv={},DN;function IH(){return DN||(DN=1,Object.defineProperty(qv,"__esModule",{value:!0})),qv}var kv={},qN;function RH(){return qN||(qN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.MARKETPLACE},subType:{type:"string",const:t.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(kv)),kv}var Uv={},Gu={},kN;function MH(){if(kN)return Gu;kN=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.createEventSchema=void 0;function e(a,t,n){return{type:"object",properties:{type:{type:"string",const:a},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Gu.createEventSchema=e,Gu}var UN;function NH(){return UN||(UN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const a=Xe(),t=au(),n=MH(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},o={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_ASSIGNED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_DELAYED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(Uv)),Uv}var Bv={},BN;function CH(){return BN||(BN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BADGE},subType:{type:"string",const:t.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"}},required:["entityId","platform","statusCode","isLods","isWorld"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]},message:{type:"string",nullable:!0}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={}))})(Bv)),Bv}var FN;function jH(){return FN||(FN=1,(function(e){var a=qo&&qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=qo&&qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(au(),e),t(AH(),e),t(PH(),e),t(IH(),e),t(RH(),e),t(NH(),e),t(CH(),e)})(qo)),qo}var VN;function i0(){return VN||(VN=1,(function(e){var a=Mo&&Mo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Mo&&Mo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(dH(),e),t(pH(),e),t(Zq(),e),t(e0(),e),t(Kq(),e),t(EH(),e),t(xq(),e),t(bH(),e),t(TH(),e),t(OH(),e),t(jH(),e)})(Mo)),Mo}var HN;function LH(){return HN||(HN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=_f(),t=ns(),n=xb(),i=Xe(),o=i0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(Gg)),Gg}var zN;function DH(){return zN||(zN=1,(function(e){var a=Ro&&Ro.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ro&&Ro.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lH(),e),t(LH(),e)})(Ro)),Ro}var WN;function qH(){return WN||(WN=1,(function(e){var a=Po&&Po.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Po&&Po.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uH(),e),t(DH(),e)})(Po)),Po}var ko={},Fv={},GN;function kH(){return GN||(GN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=Xe();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(Fv)),Fv}var Vv={},KN;function UH(){return KN||(KN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=Xe(),t=Ln(),n=ci();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(Vv)),Vv}var Hv={},zv={},YN;function bf(){return YN||(YN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=Xe();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(zv)),zv}var XN;function BH(){return XN||(XN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=Xe(),t=Ln(),n=ci(),i=bf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(Hv)),Hv}var Wv={},Gv={},JN;function nk(){return JN||(JN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=Xe(),t=Ln(),n=i0(),i=ci(),o=bf(),u=_f(),c=ns();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(Gv)),Gv}var QN;function FH(){return QN||(QN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=Xe(),t=Ln(),n=ci(),i=nk(),o=bf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(Wv)),Wv}var Kv={},ZN;function a0(){return ZN||(ZN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=Xe();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(Kv)),Kv}var Yv={},$N;function VH(){return $N||($N=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Yv)),Yv}var Xv={},xN;function HH(){return xN||(xN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=Xe(),t=Ln(),n=ci();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Xv)),Xv}var Jv={},eC;function zH(){return eC||(eC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Jv)),Jv}var Qv={},tC;function WH(){return tC||(tC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=Xe(),t=Ln(),n=a0(),i=ci();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(Qv)),Qv}var Zv={},rC;function ik(){return rC||(rC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=Xe();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(Zv)),Zv}var $v={},nC;function GH(){return nC||(nC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=Xe(),t=Ln(),n=ik(),i=ci();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})($v)),$v}var xv={},iC;function KH(){return iC||(iC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=Xe(),t=Ln(),n=ci();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(xv)),xv}var e_={},aC;function YH(){return aC||(aC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(e_)),e_}var t_={},oC;function XH(){return oC||(oC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(t_)),t_}var r_={},sC;function JH(){return sC||(sC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=Xe();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(r_)),r_}var n_={},uC;function QH(){return uC||(uC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=Xe();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(n_)),n_}var i_={},lC;function ZH(){return lC||(lC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=Xe(),t=Ln(),n=a0(),i=ci();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){const u={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};o.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...u.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(i_)),i_}var a_={},cC;function $H(){return cC||(cC=1,Object.defineProperty(a_,"__esModule",{value:!0})),a_}var o_={},dC;function xH(){return dC||(dC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(a){a.BID="bid",a.PUBLIC_NFT_ORDER="public_nft_order",a.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(a){a[a.ERC20=1]="ERC20",a[a.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",a[a.ERC721=3]="ERC721",a[a.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(a){a.SENT="sent",a.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(o_)),o_}var Uo={},s_={},fC;function e4(){return fC||(fC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=Xe();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(s_)),s_}var u_={},pC;function t4(){return pC||(pC=1,Object.defineProperty(u_,"__esModule",{value:!0})),u_}var l_={},yC;function r4(){return yC||(yC=1,Object.defineProperty(l_,"__esModule",{value:!0})),l_}var c_={},mC;function n4(){return mC||(mC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=Xe();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(c_)),c_}var d_={},hC;function i4(){return hC||(hC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=Xe();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(d_)),d_}var f_={},gC;function a4(){return gC||(gC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=Xe();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(f_)),f_}var p_={},vC;function o4(){return vC||(vC=1,Object.defineProperty(p_,"__esModule",{value:!0})),p_}var y_={},_C;function s4(){return _C||(_C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=Xe();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(y_)),y_}var m_={},EC;function u4(){return EC||(EC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=Xe();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(m_)),m_}var h_={},bC;function l4(){return bC||(bC=1,Object.defineProperty(h_,"__esModule",{value:!0})),h_}var g_={},wC;function c4(){return wC||(wC=1,Object.defineProperty(g_,"__esModule",{value:!0})),g_}var v_={},TC;function d4(){return TC||(TC=1,Object.defineProperty(v_,"__esModule",{value:!0})),v_}var __={},SC;function f4(){return SC||(SC=1,Object.defineProperty(__,"__esModule",{value:!0})),__}var E_={},OC;function p4(){return OC||(OC=1,Object.defineProperty(E_,"__esModule",{value:!0})),E_}var b_={},AC;function y4(){return AC||(AC=1,Object.defineProperty(b_,"__esModule",{value:!0})),b_}var w_={},PC;function m4(){return PC||(PC=1,Object.defineProperty(w_,"__esModule",{value:!0})),w_}var T_={},IC;function h4(){return IC||(IC=1,Object.defineProperty(T_,"__esModule",{value:!0})),T_}var RC;function g4(){return RC||(RC=1,(function(e){var a=Uo&&Uo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Uo&&Uo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(e4(),e),t(t4(),e),t(r4(),e),t(n4(),e),t(i4(),e),t(a4(),e),t(o4(),e),t(s4(),e),t(u4(),e),t(l4(),e),t(c4(),e),t(d4(),e),t(f4(),e),t(p4(),e),t(y4(),e),t(m4(),e),t(h4(),e)})(Uo)),Uo}var Bo={},Ku={},MC;function v4(){if(MC)return Ku;MC=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.isSysLink=void 0;const e=a=>a!==null&&typeof a=="object"&&"sys"in a&&"id"in a.sys;return Ku.isSysLink=e,Ku}var Yu={},NC;function _4(){if(NC)return Yu;NC=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.ContentfulLocale=void 0;var e;return(function(a){a.enUS="en-US",a.es="es",a.zh="zh"})(e||(e={})),Yu.ContentfulLocale=e,Yu}var S_={},CC;function E4(){return CC||(CC=1,Object.defineProperty(S_,"__esModule",{value:!0})),S_}var jC;function b4(){return jC||(jC=1,(function(e){var a=Bo&&Bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Bo&&Bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(v4(),e),t(_4(),e),t(E4(),e)})(Bo)),Bo}var LC;function w4(){return LC||(LC=1,(function(e){var a=ko&&ko.__createBinding||(Object.create?(function(K,ae,_e,be){be===void 0&&(be=_e);var ye=Object.getOwnPropertyDescriptor(ae,_e);(!ye||("get"in ye?!ae.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return ae[_e]}}),Object.defineProperty(K,be,ye)}):(function(K,ae,_e,be){be===void 0&&(be=_e),K[be]=ae[_e]})),t=ko&&ko.__exportStar||function(K,ae){for(var _e in K)_e!=="default"&&!Object.prototype.hasOwnProperty.call(ae,_e)&&a(ae,K,_e)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=kH();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=Ln();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var o=jq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return o.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return o.getChainId}});var u=UH();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return u.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return u.CollectionSortBy}});var c=BH();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return c.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return c.ContractSortBy}});var f=FH();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return f.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return f.ItemSortBy}});var p=a0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return p.ListingStatus}});var y=VH();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return y.MetaTransaction}});var m=HH();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return m.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return m.MintSortBy}});var g=ci();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return g.Network}});var T=bf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return T.NFTCategory}});var M=nk();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return M.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return M.NFTSortBy}});var R=zH();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return R.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return R.CatalogSortDirection}});var I=WH();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return I.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return I.OrderSortBy}});var N=Lq();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return N.ProviderType}});var E=_f();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return E.Rarity}});var P=ik();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return P.SaleType}});var S=GH();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return S.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return S.SaleSortBy}});var v=KH();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return v.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return v.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return v.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return v.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return v.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return v.PeriodCreation}});var O=YH();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return O.AnalyticsDayDataSortBy}});var j=XH();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return j.Store}});var V=JH();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return V.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return V.GenderFilterOption}});var U=QH();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return U.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return U.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return U.isInsideWorldLimits}}),t(ZH(),e),t($H(),e),t(xH(),e),t(g4(),e),t(b4(),e)})(ko)),ko}var O_={},DC;function T4(){return DC||(DC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(O_)),O_}var qC;function S4(){return qC||(qC=1,(function(e){var a=xn&&xn.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(c,f);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,p,y)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),t=xn&&xn.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),n=xn&&xn.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&a(c,u,f);return t(c,u),c},i=xn&&xn.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&a(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const o=n(qH());e.sdk=o,i(Xe(),e),i(w4(),e),i(i0(),e),i(is(),e),i(T4(),e),i(Ef(),e),i($q(),e),i(rk(),e)})(xn)),xn}var eu=S4();const O4=Object.freeze({storageKey:"decentraland-connect-storage-key",[Ct.ProviderType.INJECTED]:{},[Ct.ProviderType.FORTMATIC]:{apiKeys:{[wt.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[wt.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:Js(Ct.ProviderType.FORTMATIC)},[Ct.ProviderType.NETWORK]:{urls:Js(Ct.ProviderType.NETWORK)},[Ct.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:Js(Ct.ProviderType.WALLET_LINK)},[Ct.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:Js(Ct.ProviderType.WALLET_CONNECT_V2),chains:{[wt.ChainId.ETHEREUM_MAINNET]:{chains:[wt.ChainId.ETHEREUM_MAINNET],optionalChains:[wt.ChainId.MATIC_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[wt.ChainId.ETHEREUM_SEPOLIA]:{chains:[wt.ChainId.ETHEREUM_SEPOLIA],optionalChains:[wt.ChainId.MATIC_AMOY]}}},[Ct.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[Ct.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]}});function Ji(){return O4}function Js(e){const a={[wt.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[wt.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[wt.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[wt.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[wt.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[wt.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[wt.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[wt.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[wt.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let t="";switch(e){case Ct.ProviderType.WALLET_LINK:t="walletlink";break;case Ct.ProviderType.FORTMATIC:t="fortmatic";break;case Ct.ProviderType.MAGIC:t="magic";break;case Ct.ProviderType.MAGIC_TEST:t="magic";break;case Ct.ProviderType.WALLET_CONNECT_V2:t="walletconnect-v2";break;case Ct.ProviderType.AUTH_SERVER:t="auth-server";break}if(t)for(const n in a)a[n]+=`?project=${t}`;return a}class A4 extends iu{constructor(a){const t=Ji()[eu.ProviderType.FORTMATIC],n=Object.keys(t.apiKeys).map(i=>Number(i));if(!n.includes(a))throw new Error(`Invariant error: Unsupported chainId ${a}`);super({supportedChainIds:n}),this.apiKey=t.apiKeys[a],this.chainId=a,this.rpcUrl=t.urls[a]}async activate(){if(!this.fortmatic){const{default:t}=await Pl(async()=>{const{default:n}=await import("./fortmatic-B79B8GDv.js").then(i=>i.f);return{default:n}},[]);this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const a=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:a}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(a=>a[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function mb(){return mb=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mb.apply(this,arguments)}function o0(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},hb(e)}function tf(e,a){return tf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tf(e,a)}function P4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Zd(e,a,t){return P4()?Zd=Reflect.construct:Zd=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&tf(p,u.prototype),p},Zd.apply(null,arguments)}function I4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rf(e){var a=typeof Map=="function"?new Map:void 0;return rf=function(n){if(n===null||!I4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return Zd(n,arguments,hb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tf(i,n)},rf(e)}function Wd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function Qs(e,a){try{var t=e()}catch(n){return a(n)}return t&&t.then?t.then(void 0,a):t}function Oi(e){return e.hasOwnProperty("result")?e.result:e}var A_=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="No Ethereum provider was found on window.ethereum.",t}return a})(rf(Error)),R4=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="The user rejected the request.",t}return a})(rf(Error)),M4=(function(e){o0(a,e);function a(n){var i;return i=e.call(this,n)||this,i.handleNetworkChanged=i.handleNetworkChanged.bind(Wd(i)),i.handleChainChanged=i.handleChainChanged.bind(Wd(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(Wd(i)),i.handleClose=i.handleClose.bind(Wd(i)),i}var t=a.prototype;return t.handleChainChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.handleAccountsChanged=function(i){i.length===0?this.emitDeactivate():this.emitUpdate({account:i[0]})},t.handleClose=function(i,o){this.emitDeactivate()},t.handleNetworkChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.activate=function(){try{var i=function(y){if(o)return y;function m(){return mb({provider:window.ethereum},c?{account:c}:{})}var g=(function(){if(!c)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&Oi(T)[0]})).then(function(T){c=T})})();return g&&g.then?g.then(m):m(g)},o=!1,u=this;if(!window.ethereum)throw new A_;window.ethereum.on&&(window.ethereum.on("chainChanged",u.handleChainChanged),window.ethereum.on("accountsChanged",u.handleAccountsChanged),window.ethereum.on("close",u.handleClose),window.ethereum.on("networkChanged",u.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var c,f=Qs(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(p){return Oi(p)[0]})).then(function(p){c=p})},function(p){if(p.code===4001)throw new R4});return Promise.resolve(f&&f.then?f.then(i):i(f))}catch(p){return Promise.reject(p)}},t.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(i){return Promise.reject(i)}},t.getChainId=function(){try{var i=function(){function f(){if(!o)try{o=Oi(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=Oi(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.send("net_version").then(Oi)).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(Oi)).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.getAccount=function(){try{var i=function(){function f(){return o||(o=Oi(window.ethereum.send({method:"eth_accounts"}))[0]),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.enable().then(function(m){return Oi(m)[0]})).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(c){return Oi(c)[0]})).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},t.isAuthorized=function(){try{return window.ethereum?Promise.resolve(Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(i){return Oi(i).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(i){return Promise.reject(i)}},a})(iu);class N4 extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const C4=60*1e3;class j4 extends M4{constructor(a){super({supportedChainIds:[a]})}async activate(){const a=new Promise((n,i)=>{setTimeout(()=>{i(new N4)},C4)}),t=super.activate();return Promise.race([t,a])}}var L4="Invariant failed";function kC(e,a){throw new Error(L4)}function ak(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Il(e,a)}function gb(e){return gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gb(e)}function Il(e,a){return Il=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Il(e,a)}function D4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function $d(e,a,t){return D4()?$d=Reflect.construct:$d=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&Il(p,u.prototype),p},$d.apply(null,arguments)}function q4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function vb(e){var a=typeof Map=="function"?new Map:void 0;return vb=function(n){if(n===null||!q4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return $d(n,arguments,gb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Il(i,n)},vb(e)}var P_=(function(e){ak(a,e);function a(t,n,i){var o;return o=e.call(this)||this,o.code=n,o.data=i,o.name=o.constructor.name,o.message=t,o}return a})(vb(Error)),k4=function(a,t){var n=this,i=this;this.isMetaMask=!1,this.sendAsync=function(u,c){console.log("sendAsync",u.method,u.params),i.request(u.method,u.params).then(function(f){return c(null,{jsonrpc:"2.0",id:u.id,result:f})}).catch(function(f){return c(f,null)})},this.request=function(u,c){try{return typeof u!="string"&&(c=u.params,u=u.method),Promise.resolve(fetch(n.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:u,params:c}),headers:{"Content-Type":"application/json"}})).then(function(f){if(!f.ok)throw new P_(f.status+": "+f.statusText,-32e3);return Promise.resolve(f.json()).then(function(p){if("error"in p){var y,m,g;throw new P_(p==null||(y=p.error)==null?void 0:y.message,p==null||(m=p.error)==null?void 0:m.code,p==null||(g=p.error)==null?void 0:g.data)}else{if("result"in p)return p.result;throw new P_("Received unexpected JSON-RPC response to "+u+" request.",-32e3,p)}})})}catch(f){return Promise.reject(f)}},this.chainId=a,this.url=t;var o=new URL(t);this.host=o.host,this.path=o.pathname},U4=(function(e){ak(a,e);function a(n){var i,o=n.urls,u=n.defaultChainId;return u||Object.keys(o).length===1||kC(),i=e.call(this,{supportedChainIds:Object.keys(o).map(function(c){return Number(c)})})||this,i.currentChainId=u||Number(Object.keys(o)[0]),i.providers=Object.keys(o).reduce(function(c,f){return c[Number(f)]=new k4(Number(f),o[Number(f)]),c},{}),i}var t=a.prototype;return t.activate=function(){try{var i=this;return Promise.resolve({provider:i.providers[i.currentChainId],chainId:i.currentChainId,account:null})}catch(o){return Promise.reject(o)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.providers[i.currentChainId])}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.currentChainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){return Promise.resolve(null)},t.deactivate=function(){},t.changeChainId=function(i){Object.keys(this.providers).includes(i.toString())||kC(),this.currentChainId=i,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:i})},a})(iu);class B4 extends U4{constructor(a){super({urls:Ji()[Ct.ProviderType.NETWORK].urls,defaultChainId:a})}}function _b(){return _b=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_b.apply(this,arguments)}function F4(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Eb(e,a)}function Eb(e,a){return Eb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Eb(e,a)}function UC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var V4=1,H4=(function(e){F4(a,e);function a(n){var i,o=n.url,u=n.appName,c=n.appLogoUrl,f=n.darkMode,p=n.supportedChainIds;return i=e.call(this,{supportedChainIds:p})||this,i.url=o,i.appName=u,i.appLogoUrl=c,i.darkMode=f||!1,i.handleChainChanged=i.handleChainChanged.bind(UC(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(UC(i)),i}var t=a.prototype;return t.activate=function(){try{var i=this,o=function(){return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(f){var p=f[0];return i.provider.on("chainChanged",i.handleChainChanged),i.provider.on("accountsChanged",i.handleAccountsChanged),{provider:i.provider,account:p}})},u=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)i.provider=window.ethereum;else{var c=(function(){if(!i.walletLink)return Promise.resolve(Pl(()=>import("./index-B88UDh6R.js").then(f=>f.i),[]).then(function(f){var p;return(p=f?.default)!=null?p:f})).then(function(f){i.walletLink=new f(_b({appName:i.appName,darkMode:i.darkMode},i.appLogoUrl?{appLogoUrl:i.appLogoUrl}:{})),i.provider=i.walletLink.makeWeb3Provider(i.url,V4)})})();if(c&&c.then)return c.then(function(){})}})();return Promise.resolve(u&&u.then?u.then(o):o(u))}catch(c){return Promise.reject(c)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.provider)}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.provider.chainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){try{var i=this;return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},t.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},t.close=function(){try{var i=this;return i.provider.close(),i.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},t.handleChainChanged=function(i){this.emitUpdate({chainId:i})},t.handleAccountsChanged=function(i){this.emitUpdate({account:i[0]})},a})(iu);class z4 extends H4{constructor(a){const t=Ji()[eu.ProviderType.WALLET_LINK];super({url:t.urls[a],appName:t.appName,supportedChainIds:[a]})}}class Ai extends iu{constructor(a){super({supportedChainIds:(()=>{const{chains:t,optionalChains:n}=Ai.configuration.chains[a];return[...t,...n]})()}),this.desiredChainId=a,this.activate=async()=>{const t=await Pl(()=>import("./index-Cf-uY5dQ.js").then(i=>i.R),[]).then(i=>{const{chains:o,optionalChains:u}=Ai.configuration.chains[this.desiredChainId];return i.default.init({projectId:Ai.configuration.projectId,rpcMap:Ai.configuration.urls,chains:o,optionalChains:u,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),n=await t.enable();return t.on("accountsChanged",this.handleAccountsChanged),t.on("chainChanged",this.handleChainChanged),t.on("disconnect",this.handleDisconnect),this.provider=t,{chainId:t.chainId,account:n[0],provider:t}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>this.provider?.session?.peer.metadata.name,this.deactivate=()=>{},this.close=async()=>{if(this.provider)return this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect()},this.handleAccountsChanged=t=>{this.emitUpdate({account:t[0]})},this.handleChainChanged=t=>{this.emitUpdate({chainId:t})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");return this.emitDeactivate()}}}Ai.configuration=Ji()[eu.ProviderType.WALLET_CONNECT_V2];Ai.clearStorage=e=>{e.removeRegExp(new RegExp("^wc@2:"))};class ok extends iu{constructor(a,t=!1){super({supportedChainIds:Ji()[eu.ProviderType.MAGIC].chains}),this.isTest=t,this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const i=await this.getProvider(),o=await i.request({method:"eth_accounts"});return this.account=o[0]??null,{provider:i,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const n=await this.magic.wallet.getProvider();return{...n,isMagic:!0,request:new Proxy(n.request,{apply:async(i,o,u)=>{if(u[0]?.method==="wallet_switchEthereumChain")try{const c=parseInt(u[0]?.params[0]?.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(c)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(c),this.emitUpdate({chainId:c}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return i.bind(n)(...u)}}),sendAsync:new Proxy(n.send,{apply:async(i,o,u)=>i.bind(n)(...u)})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{},this.buildMagicInstance=async n=>{const{Magic:i}=await Pl(async()=>{const{Magic:c}=await import("./index-8e4wv-tH.js");return{Magic:c}},__vite__mapDeps([0,1])),{OAuthExtension:o}=await Pl(async()=>{const{OAuthExtension:c}=await import("./index-QHMvomuf.js");return{OAuthExtension:c}},__vite__mapDeps([2,1])),u=Ji()[this.isTest?eu.ProviderType.MAGIC_TEST:eu.ProviderType.MAGIC];return new i(u.apiKey,{extensions:[new o],network:{rpcUrl:u.urls[n],chainId:n}})},this.chainId=a,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class W4 extends ok{constructor(a){super(a,!0)}}class G4{}class K4 extends G4{get(a){const t=window.localStorage.getItem(a);return t===null?void 0:t}set(a,t){window.localStorage.setItem(a,t)}remove(a){window.localStorage.removeItem(a)}removeRegExp(a){for(let t=localStorage.length-1;t>=0;t--){const n=localStorage.key(t);n&&a.test(n)&&localStorage.removeItem(n)}}}class nf{constructor(a){this.provider=a,this.id=0,this.on=(t,n)=>this.provider.on(t,n),this.emit=(t,...n)=>this.provider.emit(t,n),this.removeListener=(t,n)=>this.provider.removeListener(t,n),this.request=async({method:t,params:n})=>this.isModernProvider()?this.provider.request({method:t,params:n}):this.send(t,n),this.sendAsync=async(t,n)=>this.hasSendAsync()?this.provider.sendAsync(t,(i,o)=>{o&&!o.hasOwnProperty("result")?n(i,{id:0,jsonrpc:"2.0",result:o}):n(i,o)}):this.send(t,n)}static adapt(a){const t=new nf(a);return{...a,on:t.on,emit:t.emit,removeListener:t.removeListener,request:t.request,sendAsync:t.sendAsync,send:t.send.bind(t)}}async send(a,t){let n,i,o;const u=typeof t=="function";if(u){const c=a;i=c.params||[],n=c.method,o=t}else n=a,i=t||[],o=(c,f)=>{if(c)throw c;return f};if(this.isModernProvider()){const[c,f]=await this.provider.request({method:n,params:i}).then(y=>[null,y]).catch(y=>[y,void 0]);return o(c,u?{id:"",jsonrpc:"2.0",result:f}:f)}else{this.patchOldMobile();const[c,f]=u?await new Promise(p=>this.provider.send(a,(y,m)=>{p([y,m])})):await new Promise(p=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:n,params:i},(y,m)=>{p([m&&m.hasOwnProperty("error")?m.error:y,m&&m.hasOwnProperty("result")?m.result:m])}));return o(c,f)}}isModernProvider(){return typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync)}}class Y4{constructor(a){this.storage=a,this.getWalletName=()=>{if(this.connector instanceof Ai)return this.connector.getWalletName()},this.clearConnectionData=()=>{const{storageKey:t}=Ji();this.storage.remove(t),Ai.clearStorage(this.storage)},this.handleWeb3ReactDeactivate=async()=>{try{await this.disconnect()}catch(t){console.error(t)}}}async connect(a,t=wt.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(c){console.error("Error disconnecting previous connection",c)}const n=this.buildConnector(a,t);n.on(Yi.Deactivate,this.handleWeb3ReactDeactivate);let{provider:i,account:o}={};try{const c=await n.activate();i=c.provider,o=c.account}catch(c){throw console.error("Error activating the connector",c),c}(a===Ct.ProviderType.MAGIC||a===Ct.ProviderType.MAGIC_TEST)&&n.on(Yi.Update,({chainId:c})=>{c&&this.setConnectionData(a,c)});let u=t;if(a===Ct.ProviderType.INJECTED){const c=await i.request({method:"eth_chainId"});u=c?parseInt(c,16):u}return this.connector=n,this.setConnectionData(a,u),{provider:nf.adapt(i),providerType:a,account:o||"",chainId:u}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const a=this.getConnectionData();if(!a)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector)return{provider:await this.connector.getProvider(),providerType:a.providerType,chainId:a.chainId,account:await this.connector.getAccount()};const t=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(a.providerType,a.chainId));return this.promiseOfConnection=void 0,{...t,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const a=[Ct.ProviderType.FORTMATIC,Ct.ProviderType.WALLET_CONNECT,Ct.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?a.unshift(Ct.ProviderType.INJECTED):a.unshift(Ct.ProviderType.METAMASK_MOBILE),a}async disconnect(){this.connector&&(this.connector.removeAllListeners(Yi.Deactivate),this.connector.removeAllListeners(Yi.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async createProvider(a,t=wt.ChainId.ETHEREUM_MAINNET){const i=await this.buildConnector(a,t).getProvider();return nf.adapt(i)}buildConnector(a,t){switch(a){case Ct.ProviderType.INJECTED:return new j4(t);case Ct.ProviderType.FORTMATIC:return new A4(t);case Ct.ProviderType.MAGIC:return new ok(t);case Ct.ProviderType.MAGIC_TEST:return new W4(t);case Ct.ProviderType.WALLET_LINK:return new z4(t);case Ct.ProviderType.NETWORK:return new B4(t);case Ct.ProviderType.WALLET_CONNECT_V2:return new Ai(t);default:throw new Error(`Invalid provider ${a}`)}}getConnectionData(){const{storageKey:a}=Ji(),t=this.storage.get(a);return t?JSON.parse(t):void 0}setConnectionData(a,t){const{storageKey:n}=Ji(),i=JSON.stringify({providerType:a,chainId:t});this.storage.set(n,i)}isClosableConnector(){return this.connector&&typeof this.connector.close<"u"}}const I_=new Y4(new K4),X4=e=>/^decentraland.(zone|org|today)$/.test(e),J4=async(e,a="https://peer.decentraland.org")=>{try{const n=await(await fetch(`${a}/lambdas/profiles`,{method:"POST",body:JSON.stringify({ids:[e]})})).json();return n.length>0&&n[0]?.avatars?.length>0?n[0].avatars[0]:void 0}catch(t){console.error("Error fetching avatar:",t);return}},Q4=e=>({shouldUseBasePath:X4,fetchAvatar:a=>J4(a),...e,debug:e.debug??!1}),Z4=e=>({[Cn.ChainId.ETHEREUM_MAINNET]:"Ethereum Mainnet",[Cn.ChainId.ETHEREUM_SEPOLIA]:"Ethereum Sepolia",[Cn.ChainId.MATIC_MAINNET]:"Polygon Mainnet",[Cn.ChainId.MATIC_AMOY]:"Polygon Amoy"})[e]||`Chain ID ${e}`,$4=e=>{const a="0x"+e.toString(16),t=Z4(e);switch(e){case Cn.ChainId.MATIC_MAINNET:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-mainnet.maticvigil.com/"],blockExplorerUrls:["https://polygonscan.com/"]};case Cn.ChainId.MATIC_AMOY:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-amoy.polygon.technology/"],blockExplorerUrls:["https://www.oklink.com/amoy"]};case Cn.ChainId.ETHEREUM_SEPOLIA:return{chainId:a,chainName:t,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.infura.io/v3/"],blockExplorerUrls:["https://sepolia.etherscan.io"]};default:return{chainId:"0x1",chainName:"Ethereum Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.infura.io/v3/"],blockExplorerUrls:["https://etherscan.io"]}}},BC=async e=>{const a=await e.request({method:"eth_chainId"});return parseInt(a,16)},Fo=(e,a,t=!1)=>{t&&typeof console<"u"&&console.log(`[Auth] ${e}`,a||"")},x4=(e,a,t)=>{const i=new URLSearchParams(t).get("redirectTo"),o=e.shouldUseBasePath?.(window.location.host)?e.basePath:"",u=i?`${o}${i}`:`${o}${a}${t}`;return`${e.authUrl}/login?redirectTo=${encodeURIComponent(window.location.origin+u)}`},sk=fe.createContext(void 0),ez=({children:e,config:a})=>{const{pathname:t,search:n}=Ta(),i=fe.useMemo(()=>Q4(a),[a]),[o,u]=fe.useState(),[c,f]=fe.useState(),[p,y]=fe.useState(!1),[m,g]=fe.useState(!1),[T,M]=fe.useState(i.defaultChainId),R=fe.useCallback(()=>{Fo("Initiating sign in",{pathname:t,search:n},i.debug);const P=x4(i,t,n);Fo("Redirecting to auth",{redirectUrl:P},i.debug),window.location.replace(P)},[t,n,i]),I=fe.useCallback(()=>{try{Fo("Signing out",{wallet:o},i.debug),I_.disconnect(),o&&yb.LocalStorageUtils.setIdentity(o,null),u(void 0),f(void 0),y(!1),Fo("Sign out completed",void 0,i.debug)}catch(P){console.error("Error during sign-out:",P)}},[o,i.debug]),N=fe.useCallback(async(P=Cn.ChainId.ETHEREUM_MAINNET)=>{try{Fo("Changing network",{from:T,to:P},i.debug);const S=await I_.getProvider();if(!S){console.error("No provider available to switch network"),M(Cn.ChainId.ETHEREUM_MAINNET);return}M(P);try{await S.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x"+P.toString(16)}]});const v=await BC(S);v!==P&&console.warn("Chain ID did not change as expected"),Fo("Network changed successfully",{chainId:v},i.debug)}catch(v){const O=v;O.code===4902?(Fo("Adding new chain to wallet",{chainId:P},i.debug),await S.request({method:"wallet_addEthereumChain",params:[$4(P)]}),await BC(S)!==P&&(console.warn("Chain ID not set after adding network"),M(Cn.ChainId.ETHEREUM_MAINNET))):(console.error("Error switching network:",O),M(Cn.ChainId.ETHEREUM_MAINNET))}}catch(S){console.error("Error during network change:",S),M(Cn.ChainId.ETHEREUM_MAINNET)}},[T,i.debug]);fe.useEffect(()=>{(async()=>{try{g(!0),console.log("[Auth] Checking auth status...");const S=Object.keys(localStorage).filter(v=>v.includes("sign")||v.includes("identity")||v.includes("dcl"));console.log("[Auth] Relevant localStorage keys:",S);try{console.log("[Auth] Calling connection.tryPreviousConnection()...");const{account:v,chainId:O}=await I_.tryPreviousConnection();if(console.log("[Auth] tryPreviousConnection result:",{walletAddress:v,connectedChainId:O}),v){u(v),M(O);let j=!1;try{console.log("[Auth] Checking identity with LocalStorageUtils.getIdentity for:",v);const V=yb.LocalStorageUtils.getIdentity(v);console.log("[Auth] Identity from LocalStorageUtils:",V);const U=`single-sign-on-${v.toLowerCase()}`,K=localStorage.getItem(U);if(console.log("[Auth] Identity from v1 key ("+U+"):",K),V&&V.expiration){const ae=new Date(V.expiration),_e=new Date;console.log("[Auth] Identity expiration check:",{expiration:ae,now:_e,isValid:_e.getTime()<=ae.getTime()}),_e.getTime()<=ae.getTime()&&(j=!0)}}catch(V){console.error("[Auth] Error checking identity:",V)}if(console.log("[Auth] Setting isSignedIn to:",j),y(j),j&&i.fetchAvatar)try{const V=await i.fetchAvatar(v);V&&f(V)}catch(V){console.error("[Auth] Error fetching avatar:",V)}}else console.log("[Auth] No wallet address from tryPreviousConnection")}catch(v){console.error("[Auth] tryPreviousConnection failed:",v)}}catch(S){console.error("[Auth] Error checking auth status:",S)}finally{g(!1),console.log("[Auth] Auth check complete")}})()},[i.debug,i]);const E={wallet:o,avatar:c,chainId:T,isSignedIn:p,isConnecting:m,signIn:R,signOut:I,changeNetwork:N};return Ie.jsx(sk.Provider,{value:E,children:e})},s0=e=>{const a=fe.useContext(sk);if(a===void 0)throw new Error("useAuth must be used within an AuthProvider");return a};var Vo={},ti={},wl={exports:{}};var tz=wl.exports,FC;function wf(){return FC||(FC=1,(function(e,a){(function(t,n){n(a)})(tz,(function(t){function n(_){if(_.jsonrpc="2.0",!_.id||typeof _.id!="number"||Math.floor(_.id)!==_.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(_)}`);if(!_.method||typeof _.method!="string"||_.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(_)}`);if(!_.params||typeof _.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(_)}`);return _}var i={};function o(){let _,A;const q=new Promise(((Y,x)=>{_=ne=>{Y(ne),q.isPending=!1},A=ne=>{x(ne),q.isPending=!1}})).catch((Y=>Promise.reject(Y)));return q.resolve=_,q.reject=A,"finally"in q||(q.finally=Y=>{q.then(Y),q.catch(Y)}),q.isPending=!0,q}Object.defineProperty(i,"__esModule",{value:!0});var u=i.future=o;i.default=o;var c={exports:{}};(function(_){(function(){var A="input is invalid type",q=typeof window=="object",Y=q?window:{};Y.JS_SHA3_NO_WINDOW&&(q=!1);var x=!q&&typeof self=="object";!Y.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node?Y=U2:x&&(Y=self);var ne=!Y.JS_SHA3_NO_COMMON_JS&&_.exports,Oe=!Y.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ve="0123456789abcdef".split(""),it=[4,1024,262144,67108864],st=[0,8,16,24],fr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Ht=[224,256,384,512],ze=[128,256],_r=["hex","buffer","arrayBuffer","array","digest"],zt={128:168,256:136};!Y.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),!Oe||!Y.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});for(var Dt=function(b,H,Q){return function(G){return new Mt(b,H,b).update(G)[Q]()}},Tr=function(b,H,Q){return function(G,ee){return new Mt(b,H,ee).update(G)[Q]()}},wn=function(b,H,Q){return function(G,ee,$,re){return nr["cshake"+b].update(G,ee,$,re)[Q]()}},Gr=function(b,H,Q){return function(G,ee,$,re){return nr["kmac"+b].update(G,ee,$,re)[Q]()}},Er=function(b,H,Q,G){for(var ee=0;ee<_r.length;++ee){var $=_r[ee];b[$]=H(Q,G,$)}return b},Tn=function(b,H){var Q=Dt(b,H,"hex");return Q.create=function(){return new Mt(b,H,b)},Q.update=function(G){return Q.create().update(G)},Er(Q,Dt,b,H)},en=[{name:"keccak",padding:[1,256,65536,16777216],bits:Ht,createMethod:Tn},{name:"sha3",padding:[6,1536,393216,100663296],bits:Ht,createMethod:Tn},{name:"shake",padding:[31,7936,2031616,520093696],bits:ze,createMethod:function(b,H){var Q=Tr(b,H,"hex");return Q.create=function(G){return new Mt(b,H,G)},Q.update=function(G,ee){return Q.create(ee).update(G)},Er(Q,Tr,b,H)}},{name:"cshake",padding:it,bits:ze,createMethod:function(b,H){var Q=zt[b],G=wn(b,0,"hex");return G.create=function(ee,$,re){return $||re?new Mt(b,H,ee).bytepad([$,re],Q):nr["shake"+b].create(ee)},G.update=function(ee,$,re,pe){return G.create($,re,pe).update(ee)},Er(G,wn,b,H)}},{name:"kmac",padding:it,bits:ze,createMethod:function(b,H){var Q=zt[b],G=Gr(b,0,"hex");return G.create=function(ee,$,re){return new lr(b,H,$).bytepad(["KMAC",re],Q).bytepad([ee],Q)},G.update=function(ee,$,re,pe){return G.create(ee,re,pe).update($)},Er(G,Gr,b,H)}}],nr={},qr=[],pr=0;pr<en.length;++pr)for(var Sn=en[pr],Be=Sn.bits,dn=0;dn<Be.length;++dn){var kn=Sn.name+"_"+Be[dn];if(qr.push(kn),nr[kn]=Sn.createMethod(Be[dn],Sn.padding),Sn.name!=="sha3"){var mi=Sn.name+Be[dn];qr.push(mi),nr[mi]=nr[kn]}}function Mt(b,H,Q){this.blocks=[],this.s=[],this.padding=H,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(b<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(31&Q)>>3;for(var G=0;G<50;++G)this.s[G]=0}function lr(b,H,Q){Mt.call(this,b,H,Q)}Mt.prototype.update=function(b){if(this.finalized)throw new Error("finalize already called");var H,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);H=!0}for(var G,ee,$=this.blocks,re=this.byteCount,pe=b.length,ge=this.blockCount,he=0,We=this.s;he<pe;){if(this.reset)for(this.reset=!1,$[0]=this.block,G=1;G<ge+1;++G)$[G]=0;if(H)for(G=this.start;he<pe&&G<re;++he)$[G>>2]|=b[he]<<st[3&G++];else for(G=this.start;he<pe&&G<re;++he)(ee=b.charCodeAt(he))<128?$[G>>2]|=ee<<st[3&G++]:ee<2048?($[G>>2]|=(192|ee>>6)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):ee<55296||ee>=57344?($[G>>2]|=(224|ee>>12)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):(ee=65536+((1023&ee)<<10|1023&b.charCodeAt(++he)),$[G>>2]|=(240|ee>>18)<<st[3&G++],$[G>>2]|=(128|ee>>12&63)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]);if(this.lastByteIndex=G,G>=re){for(this.start=G-re,this.block=$[ge],G=0;G<ge;++G)We[G]^=$[G];z(We),this.reset=!0}else this.start=G}return this},Mt.prototype.encode=function(b,H){var Q=255&b,G=1,ee=[Q];for(Q=255&(b>>=8);Q>0;)ee.unshift(Q),Q=255&(b>>=8),++G;return H?ee.push(G):ee.unshift(G),this.update(ee),ee.length},Mt.prototype.encodeString=function(b){var H,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);H=!0}var G=0,ee=b.length;if(H)G=ee;else for(var $=0;$<b.length;++$){var re=b.charCodeAt($);re<128?G+=1:re<2048?G+=2:re<55296||re>=57344?G+=3:(re=65536+((1023&re)<<10|1023&b.charCodeAt(++$)),G+=4)}return G+=this.encode(8*G),this.update(b),G},Mt.prototype.bytepad=function(b,H){for(var Q=this.encode(H),G=0;G<b.length;++G)Q+=this.encodeString(b[G]);var ee=H-Q%H,$=[];return $.length=ee,this.update($),this},Mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,H=this.lastByteIndex,Q=this.blockCount,G=this.s;if(b[H>>2]|=this.padding[3&H],this.lastByteIndex===this.byteCount)for(b[0]=b[Q],H=1;H<Q+1;++H)b[H]=0;for(b[Q-1]|=2147483648,H=0;H<Q;++H)G[H]^=b[H];z(G)}},Mt.prototype.toString=Mt.prototype.hex=function(){this.finalize();for(var b,H=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe="";re<G;){for($=0;$<H&&re<G;++$,++re)b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b]+Ve[b>>12&15]+Ve[b>>8&15]+Ve[b>>20&15]+Ve[b>>16&15]+Ve[b>>28&15]+Ve[b>>24&15];re%H==0&&(z(Q),$=0)}return ee&&(b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b],ee>1&&(pe+=Ve[b>>12&15]+Ve[b>>8&15]),ee>2&&(pe+=Ve[b>>20&15]+Ve[b>>16&15])),pe},Mt.prototype.arrayBuffer=function(){this.finalize();var b,H=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe=this.outputBits>>3;b=ee?new ArrayBuffer(G+1<<2):new ArrayBuffer(pe);for(var ge=new Uint32Array(b);re<G;){for($=0;$<H&&re<G;++$,++re)ge[re]=Q[$];re%H==0&&z(Q)}return ee&&(ge[$]=Q[$],b=b.slice(0,pe)),b},Mt.prototype.buffer=Mt.prototype.arrayBuffer,Mt.prototype.digest=Mt.prototype.array=function(){this.finalize();for(var b,H,Q=this.blockCount,G=this.s,ee=this.outputBlocks,$=this.extraBytes,re=0,pe=0,ge=[];pe<ee;){for(re=0;re<Q&&pe<ee;++re,++pe)b=pe<<2,H=G[re],ge[b]=255&H,ge[b+1]=H>>8&255,ge[b+2]=H>>16&255,ge[b+3]=H>>24&255;pe%Q==0&&z(G)}return $&&(b=pe<<2,H=G[re],ge[b]=255&H,$>1&&(ge[b+1]=H>>8&255),$>2&&(ge[b+2]=H>>16&255)),ge},lr.prototype=new Mt,lr.prototype.finalize=function(){return this.encode(this.outputBits,!0),Mt.prototype.finalize.call(this)};var z=function(b){var H,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Un,hi,gi,Mr,On,mr,cr,Gt,cs,ds,ra,fs,ps,ys,Ra,ms,hs,gs,vs,_s,Es,bs,na,vi,ws,Ma,Na,Ca,ja,La,Bn,Ts,Ss,Os,Da,qa,_i,Ei,As,Ci,Ps,ka,ia,aa,Ua;for(G=0;G<48;G+=2)ee=b[0]^b[10]^b[20]^b[30]^b[40],$=b[1]^b[11]^b[21]^b[31]^b[41],re=b[2]^b[12]^b[22]^b[32]^b[42],pe=b[3]^b[13]^b[23]^b[33]^b[43],ge=b[4]^b[14]^b[24]^b[34]^b[44],he=b[5]^b[15]^b[25]^b[35]^b[45],We=b[6]^b[16]^b[26]^b[36]^b[46],dt=b[7]^b[17]^b[27]^b[37]^b[47],H=(yt=b[8]^b[18]^b[28]^b[38]^b[48])^(re<<1|pe>>>31),Q=(St=b[9]^b[19]^b[29]^b[39]^b[49])^(pe<<1|re>>>31),b[0]^=H,b[1]^=Q,b[10]^=H,b[11]^=Q,b[20]^=H,b[21]^=Q,b[30]^=H,b[31]^=Q,b[40]^=H,b[41]^=Q,H=ee^(ge<<1|he>>>31),Q=$^(he<<1|ge>>>31),b[2]^=H,b[3]^=Q,b[12]^=H,b[13]^=Q,b[22]^=H,b[23]^=Q,b[32]^=H,b[33]^=Q,b[42]^=H,b[43]^=Q,H=re^(We<<1|dt>>>31),Q=pe^(dt<<1|We>>>31),b[4]^=H,b[5]^=Q,b[14]^=H,b[15]^=Q,b[24]^=H,b[25]^=Q,b[34]^=H,b[35]^=Q,b[44]^=H,b[45]^=Q,H=ge^(yt<<1|St>>>31),Q=he^(St<<1|yt>>>31),b[6]^=H,b[7]^=Q,b[16]^=H,b[17]^=Q,b[26]^=H,b[27]^=Q,b[36]^=H,b[37]^=Q,b[46]^=H,b[47]^=Q,H=We^(ee<<1|$>>>31),Q=dt^($<<1|ee>>>31),b[8]^=H,b[9]^=Q,b[18]^=H,b[19]^=Q,b[28]^=H,b[29]^=Q,b[38]^=H,b[39]^=Q,b[48]^=H,b[49]^=Q,Wt=b[0],Yt=b[1],Ca=b[11]<<4|b[10]>>>28,ja=b[10]<<4|b[11]>>>28,ds=b[20]<<3|b[21]>>>29,ra=b[21]<<3|b[20]>>>29,ka=b[31]<<9|b[30]>>>23,ia=b[30]<<9|b[31]>>>23,vi=b[40]<<18|b[41]>>>14,ws=b[41]<<18|b[40]>>>14,ms=b[2]<<1|b[3]>>>31,hs=b[3]<<1|b[2]>>>31,Pt=b[13]<<12|b[12]>>>20,Nt=b[12]<<12|b[13]>>>20,La=b[22]<<10|b[23]>>>22,Bn=b[23]<<10|b[22]>>>22,fs=b[33]<<13|b[32]>>>19,ps=b[32]<<13|b[33]>>>19,aa=b[42]<<2|b[43]>>>30,Ua=b[43]<<2|b[42]>>>30,qa=b[5]<<30|b[4]>>>2,_i=b[4]<<30|b[5]>>>2,gs=b[14]<<6|b[15]>>>26,vs=b[15]<<6|b[14]>>>26,Qt=b[25]<<11|b[24]>>>21,Un=b[24]<<11|b[25]>>>21,Ts=b[34]<<15|b[35]>>>17,Ss=b[35]<<15|b[34]>>>17,ys=b[45]<<29|b[44]>>>3,Ra=b[44]<<29|b[45]>>>3,mr=b[6]<<28|b[7]>>>4,cr=b[7]<<28|b[6]>>>4,Ei=b[17]<<23|b[16]>>>9,As=b[16]<<23|b[17]>>>9,_s=b[26]<<25|b[27]>>>7,Es=b[27]<<25|b[26]>>>7,hi=b[36]<<21|b[37]>>>11,gi=b[37]<<21|b[36]>>>11,Os=b[47]<<24|b[46]>>>8,Da=b[46]<<24|b[47]>>>8,Ma=b[8]<<27|b[9]>>>5,Na=b[9]<<27|b[8]>>>5,Gt=b[18]<<20|b[19]>>>12,cs=b[19]<<20|b[18]>>>12,Ci=b[29]<<7|b[28]>>>25,Ps=b[28]<<7|b[29]>>>25,bs=b[38]<<8|b[39]>>>24,na=b[39]<<8|b[38]>>>24,Mr=b[48]<<14|b[49]>>>18,On=b[49]<<14|b[48]>>>18,b[0]=Wt^~Pt&Qt,b[1]=Yt^~Nt&Un,b[10]=mr^~Gt&ds,b[11]=cr^~cs&ra,b[20]=ms^~gs&_s,b[21]=hs^~vs&Es,b[30]=Ma^~Ca&La,b[31]=Na^~ja&Bn,b[40]=qa^~Ei&Ci,b[41]=_i^~As&Ps,b[2]=Pt^~Qt&hi,b[3]=Nt^~Un&gi,b[12]=Gt^~ds&fs,b[13]=cs^~ra&ps,b[22]=gs^~_s&bs,b[23]=vs^~Es&na,b[32]=Ca^~La&Ts,b[33]=ja^~Bn&Ss,b[42]=Ei^~Ci&ka,b[43]=As^~Ps&ia,b[4]=Qt^~hi&Mr,b[5]=Un^~gi&On,b[14]=ds^~fs&ys,b[15]=ra^~ps&Ra,b[24]=_s^~bs&vi,b[25]=Es^~na&ws,b[34]=La^~Ts&Os,b[35]=Bn^~Ss&Da,b[44]=Ci^~ka&aa,b[45]=Ps^~ia&Ua,b[6]=hi^~Mr&Wt,b[7]=gi^~On&Yt,b[16]=fs^~ys&mr,b[17]=ps^~Ra&cr,b[26]=bs^~vi&ms,b[27]=na^~ws&hs,b[36]=Ts^~Os&Ma,b[37]=Ss^~Da&Na,b[46]=ka^~aa&qa,b[47]=ia^~Ua&_i,b[8]=Mr^~Wt&Pt,b[9]=On^~Yt&Nt,b[18]=ys^~mr&Gt,b[19]=Ra^~cr&cs,b[28]=vi^~ms&gs,b[29]=ws^~hs&vs,b[38]=Os^~Ma&Ca,b[39]=Da^~Na&ja,b[48]=aa^~qa&Ei,b[49]=Ua^~_i&As,b[0]^=fr[G],b[1]^=fr[G+1]};if(ne)_.exports=nr;else for(pr=0;pr<qr.length;++pr)Y[qr[pr]]=nr[qr[pr]]})()})(c);var f=c.exports,p=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,m=Math.floor,g="[BigNumber Error] ",T=g+"Number primitive has more than 15 significant digits: ",M=1e14,R=14,I=9007199254740991,N=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,P=1e9;function S(_){var A=0|_;return _>0||_===A?A:A-1}function v(_){for(var A,q,Y=1,x=_.length,ne=_[0]+"";Y<x;){for(A=_[Y++]+"",q=R-A.length;q--;A="0"+A);ne+=A}for(x=ne.length;ne.charCodeAt(--x)===48;);return ne.slice(0,x+1||1)}function O(_,A){var q,Y,x=_.c,ne=A.c,Oe=_.s,Ve=A.s,it=_.e,st=A.e;if(!Oe||!Ve)return null;if(q=x&&!x[0],Y=ne&&!ne[0],q||Y)return q?Y?0:-Ve:Oe;if(Oe!=Ve)return Oe;if(q=Oe<0,Y=it==st,!x||!ne)return Y?0:!x^q?1:-1;if(!Y)return it>st^q?1:-1;for(Ve=(it=x.length)<(st=ne.length)?it:st,Oe=0;Oe<Ve;Oe++)if(x[Oe]!=ne[Oe])return x[Oe]>ne[Oe]^q?1:-1;return it==st?0:it>st^q?1:-1}function j(_,A,q,Y){if(_<A||_>q||_!==m(_))throw Error(g+(Y||"Argument")+(typeof _=="number"?_<A||_>q?" out of range: ":" not an integer: ":" not a primitive number: ")+String(_))}function V(_){var A=_.c.length-1;return S(_.e/R)==A&&_.c[A]%2!=0}function U(_,A){return(_.length>1?_.charAt(0)+"."+_.slice(1):_)+(A<0?"e":"e+")+A}function K(_,A,q){var Y,x;if(A<0){for(x=q+".";++A;x+=q);_=x+_}else if(++A>(Y=_.length)){for(x=q,A-=Y;--A;x+=q);_+=x}else A<Y&&(_=_.slice(0,A)+"."+_.slice(A));return _}var ae=(function _(A){var q,Y,x,ne,Oe,Ve,it,st,fr,Ht,ze=Be.prototype={constructor:Be,toString:null,valueOf:null},_r=new Be(1),zt=20,Dt=4,Tr=-7,wn=21,Gr=-1e7,Er=1e7,Tn=!1,en=1,nr=0,qr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},pr="0123456789abcdefghijklmnopqrstuvwxyz",Sn=!0;function Be(z,b){var H,Q,G,ee,$,re,pe,ge,he=this;if(!(he instanceof Be))return new Be(z,b);if(b==null){if(z&&z._isBigNumber===!0)return he.s=z.s,void(!z.c||z.e>Er?he.c=he.e=null:z.e<Gr?he.c=[he.e=0]:(he.e=z.e,he.c=z.c.slice()));if((re=typeof z=="number")&&0*z==0){if(he.s=1/z<0?(z=-z,-1):1,z===~~z){for(ee=0,$=z;$>=10;$/=10,ee++);return void(ee>Er?he.c=he.e=null:(he.e=ee,he.c=[z]))}ge=String(z)}else{if(!p.test(ge=String(z)))return x(he,ge,re);he.s=ge.charCodeAt(0)==45?(ge=ge.slice(1),-1):1}(ee=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),($=ge.search(/e/i))>0?(ee<0&&(ee=$),ee+=+ge.slice($+1),ge=ge.substring(0,$)):ee<0&&(ee=ge.length)}else{if(j(b,2,pr.length,"Base"),b==10&&Sn)return Mt(he=new Be(z),zt+he.e+1,Dt);if(ge=String(z),re=typeof z=="number"){if(0*z!=0)return x(he,ge,re,b);if(he.s=1/z<0?(ge=ge.slice(1),-1):1,Be.DEBUG&&ge.replace(/^0\.0*|\./,"").length>15)throw Error(T+z)}else he.s=ge.charCodeAt(0)===45?(ge=ge.slice(1),-1):1;for(H=pr.slice(0,b),ee=$=0,pe=ge.length;$<pe;$++)if(H.indexOf(Q=ge.charAt($))<0){if(Q=="."){if($>ee){ee=pe;continue}}else if(!G&&(ge==ge.toUpperCase()&&(ge=ge.toLowerCase())||ge==ge.toLowerCase()&&(ge=ge.toUpperCase()))){G=!0,$=-1,ee=0;continue}return x(he,String(z),re,b)}re=!1,(ee=(ge=Y(ge,b,10,he.s)).indexOf("."))>-1?ge=ge.replace(".",""):ee=ge.length}for($=0;ge.charCodeAt($)===48;$++);for(pe=ge.length;ge.charCodeAt(--pe)===48;);if(ge=ge.slice($,++pe)){if(pe-=$,re&&Be.DEBUG&&pe>15&&(z>I||z!==m(z)))throw Error(T+he.s*z);if((ee=ee-$-1)>Er)he.c=he.e=null;else if(ee<Gr)he.c=[he.e=0];else{if(he.e=ee,he.c=[],$=(ee+1)%R,ee<0&&($+=R),$<pe){for($&&he.c.push(+ge.slice(0,$)),pe-=R;$<pe;)he.c.push(+ge.slice($,$+=R));$=R-(ge=ge.slice($)).length}else $-=pe;for(;$--;ge+="0");he.c.push(+ge)}}else he.c=[he.e=0]}function dn(z,b,H,Q){var G,ee,$,re,pe;if(H==null?H=Dt:j(H,0,8),!z.c)return z.toString();if(G=z.c[0],$=z.e,b==null)pe=v(z.c),pe=Q==1||Q==2&&($<=Tr||$>=wn)?U(pe,$):K(pe,$,"0");else if(ee=(z=Mt(new Be(z),b,H)).e,re=(pe=v(z.c)).length,Q==1||Q==2&&(b<=ee||ee<=Tr)){for(;re<b;pe+="0",re++);pe=U(pe,ee)}else if(b-=$,pe=K(pe,ee,"0"),ee+1>re){if(--b>0)for(pe+=".";b--;pe+="0");}else if((b+=ee-re)>0)for(ee+1==re&&(pe+=".");b--;pe+="0");return z.s<0&&G?"-"+pe:pe}function kn(z,b){for(var H,Q=1,G=new Be(z[0]);Q<z.length;Q++){if(!(H=new Be(z[Q])).s){G=H;break}b.call(G,H)&&(G=H)}return G}function mi(z,b,H){for(var Q=1,G=b.length;!b[--G];b.pop());for(G=b[0];G>=10;G/=10,Q++);return(H=Q+H*R-1)>Er?z.c=z.e=null:H<Gr?z.c=[z.e=0]:(z.e=H,z.c=b),z}function Mt(z,b,H,Q){var G,ee,$,re,pe,ge,he,We=z.c,dt=N;if(We){e:{for(G=1,re=We[0];re>=10;re/=10,G++);if((ee=b-G)<0)ee+=R,$=b,he=(pe=We[ge=0])/dt[G-$-1]%10|0;else if((ge=y((ee+1)/R))>=We.length){if(!Q)break e;for(;We.length<=ge;We.push(0));pe=he=0,G=1,$=(ee%=R)-R+1}else{for(pe=re=We[ge],G=1;re>=10;re/=10,G++);he=($=(ee%=R)-R+G)<0?0:pe/dt[G-$-1]%10|0}if(Q=Q||b<0||We[ge+1]!=null||($<0?pe:pe%dt[G-$-1]),Q=H<4?(he||Q)&&(H==0||H==(z.s<0?3:2)):he>5||he==5&&(H==4||Q||H==6&&(ee>0?$>0?pe/dt[G-$]:0:We[ge-1])%10&1||H==(z.s<0?8:7)),b<1||!We[0])return We.length=0,Q?(b-=z.e+1,We[0]=dt[(R-b%R)%R],z.e=-b||0):We[0]=z.e=0,z;if(ee==0?(We.length=ge,re=1,ge--):(We.length=ge+1,re=dt[R-ee],We[ge]=$>0?m(pe/dt[G-$]%dt[$])*re:0),Q)for(;;){if(ge==0){for(ee=1,$=We[0];$>=10;$/=10,ee++);for($=We[0]+=re,re=1;$>=10;$/=10,re++);ee!=re&&(z.e++,We[0]==M&&(We[0]=1));break}if(We[ge]+=re,We[ge]!=M)break;We[ge--]=0,re=1}for(ee=We.length;We[--ee]===0;We.pop());}z.e>Er?z.c=z.e=null:z.e<Gr&&(z.c=[z.e=0])}return z}function lr(z){var b,H=z.e;return H===null?z.toString():(b=v(z.c),b=H<=Tr||H>=wn?U(b,H):K(b,H,"0"),z.s<0?"-"+b:b)}return Be.clone=_,Be.ROUND_UP=0,Be.ROUND_DOWN=1,Be.ROUND_CEIL=2,Be.ROUND_FLOOR=3,Be.ROUND_HALF_UP=4,Be.ROUND_HALF_DOWN=5,Be.ROUND_HALF_EVEN=6,Be.ROUND_HALF_CEIL=7,Be.ROUND_HALF_FLOOR=8,Be.EUCLID=9,Be.config=Be.set=function(z){var b,H;if(z!=null){if(typeof z!="object")throw Error(g+"Object expected: "+z);if(z.hasOwnProperty(b="DECIMAL_PLACES")&&(j(H=z[b],0,P,b),zt=H),z.hasOwnProperty(b="ROUNDING_MODE")&&(j(H=z[b],0,8,b),Dt=H),z.hasOwnProperty(b="EXPONENTIAL_AT")&&((H=z[b])&&H.pop?(j(H[0],-P,0,b),j(H[1],0,P,b),Tr=H[0],wn=H[1]):(j(H,-P,P,b),Tr=-(wn=H<0?-H:H))),z.hasOwnProperty(b="RANGE"))if((H=z[b])&&H.pop)j(H[0],-P,-1,b),j(H[1],1,P,b),Gr=H[0],Er=H[1];else{if(j(H,-P,P,b),!H)throw Error(g+b+" cannot be zero: "+H);Gr=-(Er=H<0?-H:H)}if(z.hasOwnProperty(b="CRYPTO")){if((H=z[b])!==!!H)throw Error(g+b+" not true or false: "+H);if(H){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Tn=!H,Error(g+"crypto unavailable");Tn=H}else Tn=H}if(z.hasOwnProperty(b="MODULO_MODE")&&(j(H=z[b],0,9,b),en=H),z.hasOwnProperty(b="POW_PRECISION")&&(j(H=z[b],0,P,b),nr=H),z.hasOwnProperty(b="FORMAT")){if(typeof(H=z[b])!="object")throw Error(g+b+" not an object: "+H);qr=H}if(z.hasOwnProperty(b="ALPHABET")){if(typeof(H=z[b])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(H))throw Error(g+b+" invalid: "+H);Sn=H.slice(0,10)=="0123456789",pr=H}}return{DECIMAL_PLACES:zt,ROUNDING_MODE:Dt,EXPONENTIAL_AT:[Tr,wn],RANGE:[Gr,Er],CRYPTO:Tn,MODULO_MODE:en,POW_PRECISION:nr,FORMAT:qr,ALPHABET:pr}},Be.isBigNumber=function(z){if(!z||z._isBigNumber!==!0)return!1;if(!Be.DEBUG)return!0;var b,H,Q=z.c,G=z.e,ee=z.s;e:if({}.toString.call(Q)=="[object Array]"){if((ee===1||ee===-1)&&G>=-P&&G<=P&&G===m(G)){if(Q[0]===0){if(G===0&&Q.length===1)return!0;break e}if((b=(G+1)%R)<1&&(b+=R),String(Q[0]).length==b){for(b=0;b<Q.length;b++)if((H=Q[b])<0||H>=M||H!==m(H))break e;if(H!==0)return!0}}}else if(Q===null&&G===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(g+"Invalid BigNumber: "+z)},Be.maximum=Be.max=function(){return kn(arguments,ze.lt)},Be.minimum=Be.min=function(){return kn(arguments,ze.gt)},Be.random=(ne=9007199254740992,Oe=Math.random()*ne&2097151?function(){return m(Math.random()*ne)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(z){var b,H,Q,G,ee,$=0,re=[],pe=new Be(_r);if(z==null?z=zt:j(z,0,P),G=y(z/R),Tn)if(crypto.getRandomValues){for(b=crypto.getRandomValues(new Uint32Array(G*=2));$<G;)(ee=131072*b[$]+(b[$+1]>>>11))>=9e15?(H=crypto.getRandomValues(new Uint32Array(2)),b[$]=H[0],b[$+1]=H[1]):(re.push(ee%1e14),$+=2);$=G/2}else{if(!crypto.randomBytes)throw Tn=!1,Error(g+"crypto unavailable");for(b=crypto.randomBytes(G*=7);$<G;)(ee=281474976710656*(31&b[$])+1099511627776*b[$+1]+4294967296*b[$+2]+16777216*b[$+3]+(b[$+4]<<16)+(b[$+5]<<8)+b[$+6])>=9e15?crypto.randomBytes(7).copy(b,$):(re.push(ee%1e14),$+=7);$=G/7}if(!Tn)for(;$<G;)(ee=Oe())<9e15&&(re[$++]=ee%1e14);for(G=re[--$],z%=R,G&&z&&(ee=N[R-z],re[$]=m(G/ee)*ee);re[$]===0;re.pop(),$--);if($<0)re=[Q=0];else{for(Q=-1;re[0]===0;re.splice(0,1),Q-=R);for($=1,ee=re[0];ee>=10;ee/=10,$++);$<R&&(Q-=R-$)}return pe.e=Q,pe.c=re,pe}),Be.sum=function(){for(var z=1,b=arguments,H=new Be(b[0]);z<b.length;)H=H.plus(b[z++]);return H},Y=(function(){var z="0123456789";function b(H,Q,G,ee){for(var $,re,pe=[0],ge=0,he=H.length;ge<he;){for(re=pe.length;re--;pe[re]*=Q);for(pe[0]+=ee.indexOf(H.charAt(ge++)),$=0;$<pe.length;$++)pe[$]>G-1&&(pe[$+1]==null&&(pe[$+1]=0),pe[$+1]+=pe[$]/G|0,pe[$]%=G)}return pe.reverse()}return function(H,Q,G,ee,$){var re,pe,ge,he,We,dt,yt,St,Wt=H.indexOf("."),Yt=zt,Pt=Dt;for(Wt>=0&&(he=nr,nr=0,H=H.replace(".",""),dt=(St=new Be(Q)).pow(H.length-Wt),nr=he,St.c=b(K(v(dt.c),dt.e,"0"),10,G,z),St.e=St.c.length),ge=he=(yt=b(H,Q,G,$?(re=pr,z):(re=z,pr))).length;yt[--he]==0;yt.pop());if(!yt[0])return re.charAt(0);if(Wt<0?--ge:(dt.c=yt,dt.e=ge,dt.s=ee,yt=(dt=q(dt,St,Yt,Pt,G)).c,We=dt.r,ge=dt.e),Wt=yt[pe=ge+Yt+1],he=G/2,We=We||pe<0||yt[pe+1]!=null,We=Pt<4?(Wt!=null||We)&&(Pt==0||Pt==(dt.s<0?3:2)):Wt>he||Wt==he&&(Pt==4||We||Pt==6&&1&yt[pe-1]||Pt==(dt.s<0?8:7)),pe<1||!yt[0])H=We?K(re.charAt(1),-Yt,re.charAt(0)):re.charAt(0);else{if(yt.length=pe,We)for(--G;++yt[--pe]>G;)yt[pe]=0,pe||(++ge,yt=[1].concat(yt));for(he=yt.length;!yt[--he];);for(Wt=0,H="";Wt<=he;H+=re.charAt(yt[Wt++]));H=K(H,ge,re.charAt(0))}return H}})(),q=(function(){function z(Q,G,ee){var $,re,pe,ge,he=0,We=Q.length,dt=G%E,yt=G/E|0;for(Q=Q.slice();We--;)he=((re=dt*(pe=Q[We]%E)+($=yt*pe+(ge=Q[We]/E|0)*dt)%E*E+he)/ee|0)+($/E|0)+yt*ge,Q[We]=re%ee;return he&&(Q=[he].concat(Q)),Q}function b(Q,G,ee,$){var re,pe;if(ee!=$)pe=ee>$?1:-1;else for(re=pe=0;re<ee;re++)if(Q[re]!=G[re]){pe=Q[re]>G[re]?1:-1;break}return pe}function H(Q,G,ee,$){for(var re=0;ee--;)Q[ee]-=re,re=Q[ee]<G[ee]?1:0,Q[ee]=re*$+Q[ee]-G[ee];for(;!Q[0]&&Q.length>1;Q.splice(0,1));}return function(Q,G,ee,$,re){var pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Un,hi,gi,Mr,On,mr=Q.s==G.s?1:-1,cr=Q.c,Gt=G.c;if(!(cr&&cr[0]&&Gt&&Gt[0]))return new Be(Q.s&&G.s&&(cr?!Gt||cr[0]!=Gt[0]:Gt)?cr&&cr[0]==0||!Gt?0*mr:mr/0:NaN);for(Yt=(Wt=new Be(mr)).c=[],mr=ee+(ge=Q.e-G.e)+1,re||(re=M,ge=S(Q.e/R)-S(G.e/R),mr=mr/R|0),he=0;Gt[he]==(cr[he]||0);he++);if(Gt[he]>(cr[he]||0)&&ge--,mr<0)Yt.push(1),We=!0;else{for(hi=cr.length,Mr=Gt.length,he=0,mr+=2,(dt=m(re/(Gt[0]+1)))>1&&(Gt=z(Gt,dt,re),cr=z(cr,dt,re),Mr=Gt.length,hi=cr.length),Un=Mr,Nt=(Pt=cr.slice(0,Mr)).length;Nt<Mr;Pt[Nt++]=0);On=Gt.slice(),On=[0].concat(On),gi=Gt[0],Gt[1]>=re/2&&gi++;do{if(dt=0,(pe=b(Gt,Pt,Mr,Nt))<0){if(Qt=Pt[0],Mr!=Nt&&(Qt=Qt*re+(Pt[1]||0)),(dt=m(Qt/gi))>1)for(dt>=re&&(dt=re-1),St=(yt=z(Gt,dt,re)).length,Nt=Pt.length;b(yt,Pt,St,Nt)==1;)dt--,H(yt,Mr<St?On:Gt,St,re),St=yt.length,pe=1;else dt==0&&(pe=dt=1),St=(yt=Gt.slice()).length;if(St<Nt&&(yt=[0].concat(yt)),H(Pt,yt,Nt,re),Nt=Pt.length,pe==-1)for(;b(Gt,Pt,Mr,Nt)<1;)dt++,H(Pt,Mr<Nt?On:Gt,Nt,re),Nt=Pt.length}else pe===0&&(dt++,Pt=[0]);Yt[he++]=dt,Pt[0]?Pt[Nt++]=cr[Un]||0:(Pt=[cr[Un]],Nt=1)}while((Un++<hi||Pt[0]!=null)&&mr--);We=Pt[0]!=null,Yt[0]||Yt.splice(0,1)}if(re==M){for(he=1,mr=Yt[0];mr>=10;mr/=10,he++);Mt(Wt,ee+(Wt.e=he+ge*R-1)+1,$,We)}else Wt.e=ge,Wt.r=+We;return Wt}})(),Ve=/^(-?)0([xbo])(?=\w[\w.]*$)/i,it=/^([^.]+)\.$/,st=/^\.([^.]+)$/,fr=/^-?(Infinity|NaN)$/,Ht=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(z,b,H,Q){var G,ee=H?b:b.replace(Ht,"");if(fr.test(ee))z.s=isNaN(ee)?null:ee<0?-1:1;else{if(!H&&(ee=ee.replace(Ve,(function($,re,pe){return G=(pe=pe.toLowerCase())=="x"?16:pe=="b"?2:8,Q&&Q!=G?$:re})),Q&&(G=Q,ee=ee.replace(it,"$1").replace(st,"0.$1")),b!=ee))return new Be(ee,G);if(Be.DEBUG)throw Error(g+"Not a"+(Q?" base "+Q:"")+" number: "+b);z.s=null}z.c=z.e=null},ze.absoluteValue=ze.abs=function(){var z=new Be(this);return z.s<0&&(z.s=1),z},ze.comparedTo=function(z,b){return O(this,new Be(z,b))},ze.decimalPlaces=ze.dp=function(z,b){var H,Q,G,ee=this;if(z!=null)return j(z,0,P),b==null?b=Dt:j(b,0,8),Mt(new Be(ee),z+ee.e+1,b);if(!(H=ee.c))return null;if(Q=((G=H.length-1)-S(this.e/R))*R,G=H[G])for(;G%10==0;G/=10,Q--);return Q<0&&(Q=0),Q},ze.dividedBy=ze.div=function(z,b){return q(this,new Be(z,b),zt,Dt)},ze.dividedToIntegerBy=ze.idiv=function(z,b){return q(this,new Be(z,b),0,1)},ze.exponentiatedBy=ze.pow=function(z,b){var H,Q,G,ee,$,re,pe,ge,he=this;if((z=new Be(z)).c&&!z.isInteger())throw Error(g+"Exponent not an integer: "+lr(z));if(b!=null&&(b=new Be(b)),$=z.e>14,!he.c||!he.c[0]||he.c[0]==1&&!he.e&&he.c.length==1||!z.c||!z.c[0])return ge=new Be(Math.pow(+lr(he),$?z.s*(2-V(z)):+lr(z))),b?ge.mod(b):ge;if(re=z.s<0,b){if(b.c?!b.c[0]:!b.s)return new Be(NaN);(Q=!re&&he.isInteger()&&b.isInteger())&&(he=he.mod(b))}else{if(z.e>9&&(he.e>0||he.e<-1||(he.e==0?he.c[0]>1||$&&he.c[1]>=24e7:he.c[0]<8e13||$&&he.c[0]<=9999975e7)))return ee=he.s<0&&V(z)?-0:0,he.e>-1&&(ee=1/ee),new Be(re?1/ee:ee);nr&&(ee=y(nr/R+2))}for($?(H=new Be(.5),re&&(z.s=1),pe=V(z)):pe=(G=Math.abs(+lr(z)))%2,ge=new Be(_r);;){if(pe){if(!(ge=ge.times(he)).c)break;ee?ge.c.length>ee&&(ge.c.length=ee):Q&&(ge=ge.mod(b))}if(G){if((G=m(G/2))===0)break;pe=G%2}else if(Mt(z=z.times(H),z.e+1,1),z.e>14)pe=V(z);else{if((G=+lr(z))==0)break;pe=G%2}he=he.times(he),ee?he.c&&he.c.length>ee&&(he.c.length=ee):Q&&(he=he.mod(b))}return Q?ge:(re&&(ge=_r.div(ge)),b?ge.mod(b):ee?Mt(ge,nr,Dt,void 0):ge)},ze.integerValue=function(z){var b=new Be(this);return z==null?z=Dt:j(z,0,8),Mt(b,b.e+1,z)},ze.isEqualTo=ze.eq=function(z,b){return O(this,new Be(z,b))===0},ze.isFinite=function(){return!!this.c},ze.isGreaterThan=ze.gt=function(z,b){return O(this,new Be(z,b))>0},ze.isGreaterThanOrEqualTo=ze.gte=function(z,b){return(b=O(this,new Be(z,b)))===1||b===0},ze.isInteger=function(){return!!this.c&&S(this.e/R)>this.c.length-2},ze.isLessThan=ze.lt=function(z,b){return O(this,new Be(z,b))<0},ze.isLessThanOrEqualTo=ze.lte=function(z,b){return(b=O(this,new Be(z,b)))===-1||b===0},ze.isNaN=function(){return!this.s},ze.isNegative=function(){return this.s<0},ze.isPositive=function(){return this.s>0},ze.isZero=function(){return!!this.c&&this.c[0]==0},ze.minus=function(z,b){var H,Q,G,ee,$=this,re=$.s;if(b=(z=new Be(z,b)).s,!re||!b)return new Be(NaN);if(re!=b)return z.s=-b,$.plus(z);var pe=$.e/R,ge=z.e/R,he=$.c,We=z.c;if(!pe||!ge){if(!he||!We)return he?(z.s=-b,z):new Be(We?$:NaN);if(!he[0]||!We[0])return We[0]?(z.s=-b,z):new Be(he[0]?$:Dt==3?-0:0)}if(pe=S(pe),ge=S(ge),he=he.slice(),re=pe-ge){for((ee=re<0)?(re=-re,G=he):(ge=pe,G=We),G.reverse(),b=re;b--;G.push(0));G.reverse()}else for(Q=(ee=(re=he.length)<(b=We.length))?re:b,re=b=0;b<Q;b++)if(he[b]!=We[b]){ee=he[b]<We[b];break}if(ee&&(G=he,he=We,We=G,z.s=-z.s),(b=(Q=We.length)-(H=he.length))>0)for(;b--;he[H++]=0);for(b=M-1;Q>re;){if(he[--Q]<We[Q]){for(H=Q;H&&!he[--H];he[H]=b);--he[H],he[Q]+=M}he[Q]-=We[Q]}for(;he[0]==0;he.splice(0,1),--ge);return he[0]?mi(z,he,ge):(z.s=Dt==3?-1:1,z.c=[z.e=0],z)},ze.modulo=ze.mod=function(z,b){var H,Q,G=this;return z=new Be(z,b),!G.c||!z.s||z.c&&!z.c[0]?new Be(NaN):!z.c||G.c&&!G.c[0]?new Be(G):(en==9?(Q=z.s,z.s=1,H=q(G,z,0,3),z.s=Q,H.s*=Q):H=q(G,z,0,en),(z=G.minus(H.times(z))).c[0]||en!=1||(z.s=G.s),z)},ze.multipliedBy=ze.times=function(z,b){var H,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt=this,Nt=Pt.c,Qt=(z=new Be(z,b)).c;if(!(Nt&&Qt&&Nt[0]&&Qt[0]))return!Pt.s||!z.s||Nt&&!Nt[0]&&!Qt||Qt&&!Qt[0]&&!Nt?z.c=z.e=z.s=null:(z.s*=Pt.s,Nt&&Qt?(z.c=[0],z.e=0):z.c=z.e=null),z;for(Q=S(Pt.e/R)+S(z.e/R),z.s*=Pt.s,(pe=Nt.length)<(We=Qt.length)&&(St=Nt,Nt=Qt,Qt=St,G=pe,pe=We,We=G),G=pe+We,St=[];G--;St.push(0));for(Wt=M,Yt=E,G=We;--G>=0;){for(H=0,dt=Qt[G]%Yt,yt=Qt[G]/Yt|0,ee=G+($=pe);ee>G;)H=((ge=dt*(ge=Nt[--$]%Yt)+(re=yt*ge+(he=Nt[$]/Yt|0)*dt)%Yt*Yt+St[ee]+H)/Wt|0)+(re/Yt|0)+yt*he,St[ee--]=ge%Wt;St[ee]=H}return H?++Q:St.splice(0,1),mi(z,St,Q)},ze.negated=function(){var z=new Be(this);return z.s=-z.s||null,z},ze.plus=function(z,b){var H,Q=this,G=Q.s;if(b=(z=new Be(z,b)).s,!G||!b)return new Be(NaN);if(G!=b)return z.s=-b,Q.minus(z);var ee=Q.e/R,$=z.e/R,re=Q.c,pe=z.c;if(!ee||!$){if(!re||!pe)return new Be(G/0);if(!re[0]||!pe[0])return pe[0]?z:new Be(re[0]?Q:0*G)}if(ee=S(ee),$=S($),re=re.slice(),G=ee-$){for(G>0?($=ee,H=pe):(G=-G,H=re),H.reverse();G--;H.push(0));H.reverse()}for((G=re.length)-(b=pe.length)<0&&(H=pe,pe=re,re=H,b=G),G=0;b;)G=(re[--b]=re[b]+pe[b]+G)/M|0,re[b]=M===re[b]?0:re[b]%M;return G&&(re=[G].concat(re),++$),mi(z,re,$)},ze.precision=ze.sd=function(z,b){var H,Q,G,ee=this;if(z!=null&&z!==!!z)return j(z,1,P),b==null?b=Dt:j(b,0,8),Mt(new Be(ee),z,b);if(!(H=ee.c))return null;if(Q=(G=H.length-1)*R+1,G=H[G]){for(;G%10==0;G/=10,Q--);for(G=H[0];G>=10;G/=10,Q++);}return z&&ee.e+1>Q&&(Q=ee.e+1),Q},ze.shiftedBy=function(z){return j(z,-9007199254740991,I),this.times("1e"+z)},ze.squareRoot=ze.sqrt=function(){var z,b,H,Q,G,ee=this,$=ee.c,re=ee.s,pe=ee.e,ge=zt+4,he=new Be("0.5");if(re!==1||!$||!$[0])return new Be(!re||re<0&&(!$||$[0])?NaN:$?ee:1/0);if((re=Math.sqrt(+lr(ee)))==0||re==1/0?(((b=v($)).length+pe)%2==0&&(b+="0"),re=Math.sqrt(+b),pe=S((pe+1)/2)-(pe<0||pe%2),H=new Be(b=re==1/0?"5e"+pe:(b=re.toExponential()).slice(0,b.indexOf("e")+1)+pe)):H=new Be(re+""),H.c[0]){for((re=(pe=H.e)+ge)<3&&(re=0);;)if(G=H,H=he.times(G.plus(q(ee,G,ge,1))),v(G.c).slice(0,re)===(b=v(H.c)).slice(0,re)){if(H.e<pe&&--re,(b=b.slice(re-3,re+1))!="9999"&&(Q||b!="4999")){+b&&(+b.slice(1)||b.charAt(0)!="5")||(Mt(H,H.e+zt+2,1),z=!H.times(H).eq(ee));break}if(!Q&&(Mt(G,G.e+zt+2,0),G.times(G).eq(ee))){H=G;break}ge+=4,re+=4,Q=1}}return Mt(H,H.e+zt+1,Dt,z)},ze.toExponential=function(z,b){return z!=null&&(j(z,0,P),z++),dn(this,z,b,1)},ze.toFixed=function(z,b){return z!=null&&(j(z,0,P),z=z+this.e+1),dn(this,z,b)},ze.toFormat=function(z,b,H){var Q,G=this;if(H==null)z!=null&&b&&typeof b=="object"?(H=b,b=null):z&&typeof z=="object"?(H=z,z=b=null):H=qr;else if(typeof H!="object")throw Error(g+"Argument not an object: "+H);if(Q=G.toFixed(z,b),G.c){var ee,$=Q.split("."),re=+H.groupSize,pe=+H.secondaryGroupSize,ge=H.groupSeparator||"",he=$[0],We=$[1],dt=G.s<0,yt=dt?he.slice(1):he,St=yt.length;if(pe&&(ee=re,re=pe,pe=ee,St-=ee),re>0&&St>0){for(ee=St%re||re,he=yt.substr(0,ee);ee<St;ee+=re)he+=ge+yt.substr(ee,re);pe>0&&(he+=ge+yt.slice(ee)),dt&&(he="-"+he)}Q=We?he+(H.decimalSeparator||"")+((pe=+H.fractionGroupSize)?We.replace(new RegExp("\\d{"+pe+"}\\B","g"),"$&"+(H.fractionGroupSeparator||"")):We):he}return(H.prefix||"")+Q+(H.suffix||"")},ze.toFraction=function(z){var b,H,Q,G,ee,$,re,pe,ge,he,We,dt,yt=this,St=yt.c;if(z!=null&&(!(re=new Be(z)).isInteger()&&(re.c||re.s!==1)||re.lt(_r)))throw Error(g+"Argument "+(re.isInteger()?"out of range: ":"not an integer: ")+lr(re));if(!St)return new Be(yt);for(b=new Be(_r),ge=H=new Be(_r),Q=pe=new Be(_r),dt=v(St),ee=b.e=dt.length-yt.e-1,b.c[0]=N[($=ee%R)<0?R+$:$],z=!z||re.comparedTo(b)>0?ee>0?b:ge:re,$=Er,Er=1/0,re=new Be(dt),pe.c[0]=0;he=q(re,b,0,1),(G=H.plus(he.times(Q))).comparedTo(z)!=1;)H=Q,Q=G,ge=pe.plus(he.times(G=ge)),pe=G,b=re.minus(he.times(G=b)),re=G;return G=q(z.minus(H),Q,0,1),pe=pe.plus(G.times(ge)),H=H.plus(G.times(Q)),pe.s=ge.s=yt.s,We=q(ge,Q,ee*=2,Dt).minus(yt).abs().comparedTo(q(pe,H,ee,Dt).minus(yt).abs())<1?[ge,Q]:[pe,H],Er=$,We},ze.toNumber=function(){return+lr(this)},ze.toPrecision=function(z,b){return z!=null&&j(z,1,P),dn(this,z,b,2)},ze.toString=function(z){var b,H=this,Q=H.s,G=H.e;return G===null?Q?(b="Infinity",Q<0&&(b="-"+b)):b="NaN":(z==null?b=G<=Tr||G>=wn?U(v(H.c),G):K(v(H.c),G,"0"):z===10&&Sn?b=K(v((H=Mt(new Be(H),zt+G+1,Dt)).c),H.e,"0"):(j(z,2,pr.length,"Base"),b=Y(K(v(H.c),G,"0"),10,z,Q,!0)),Q<0&&H.c[0]&&(b="-"+b)),b},ze.valueOf=ze.toJSON=function(){return lr(this)},ze._isBigNumber=!0,ze[Symbol.toStringTag]="BigNumber",ze[Symbol.for("nodejs.util.inspect.custom")]=ze.valueOf,A!=null&&Be.set(A),Be})();const _e={ROUNDING_MODE:ae.ROUND_DOWN};function be(_){return new TextEncoder().encode(_)}function ye(_){return typeof _=="string"?ye(we(_)):new TextDecoder().decode(_)}ae.config(_e);const Me="UNKNOWN_ERROR",Ne="INVALID_ARGUMENT";function qe(_,A=Me,q={}){const Y=[];Object.keys(q).forEach((Oe=>{try{Y.push(Oe+"="+JSON.stringify(q[Oe]))}catch{Y.push(Oe+"="+JSON.stringify(q[Oe].toString()))}}));const x=_;Y.length&&(_+=" ("+Y.join(", ")+")");const ne=new Error(_);return ne.reason=x,ne.code=A,Object.keys(q).forEach((function(Oe){ne[Oe]=q[Oe]})),ne}function we(_){if(typeof _!="string")throw new Error("hexToBytes only accept strings, got: "+typeof _);if(_.substr(0,2)==="0x")return we(_.substr(2));const A=new Uint8Array(Math.ceil(_.length/2));let q=0;for(let Y=0;Y<_.length;Y+=2){const x=parseInt(_.substr(Y,2),16);if(isNaN(x))throw new Error("Cannot read hex string:"+JSON.stringify(_));A[q]=x,q++}return A}function ue(_){return Array.from(_).map((A=>A.toString(16).padStart(2,"0"))).join("")}function X(_,A){if(typeof _=="string"){if(A&&A.encoding==="hex"&&typeof _=="string"){let q=_;q.length>2&&q.substr(0,2)==="0x"&&(q=q.substr(2));const Y=we(q);return f.keccak256(Y)}return f.keccak256(be(_))}return f.keccak256(_)}const C={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function B(_,A,q){return new Array(A-_.length+1).join(q||"0")+_}function k(_){let A="",q=0;const Y=_.length;for(_.substring(0,2)==="0x"&&(q=2);q<Y;q+=2){const x=parseInt(_.substr(q,2),16);A+=String.fromCharCode(x)}return A}function L(_){return Zr(_)&&_.name&&_.name.indexOf("(")!==-1?_.name:_.name+"("+oe(!1,_.inputs||[]).join(",")+")"}function W(..._){const A=_.reduce(((x,ne)=>x+ne.length),0),q=new Uint8Array(A);let Y=0;for(const x of _)q.set(x,Y),Y+=x.length;return q}function oe(_,A){const q=[];return A.forEach((function(Y){if(typeof Y.components=="object"){if(Y.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let x="";const ne=Y.type.indexOf("[");ne>=0&&(x=Y.type.substring(ne));const Oe=oe(_,Y.components);q.push("("+Oe.join(",")+")"+x)}else q.push(Y.type)})),q}function Re(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(0,A):_}function Se(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(A+1,q-A-1).replace(" ",""):""}function Ue(_){return _==null?_:Lt(_).toNumber()}function Ce(_){return Lt(_).toNumber()}function se(_){return Pr(_)?_.toString(10):""+_}function de(_){return typeof _=="string"&&!_.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?"0x"+_:Je(_)}function Ae(_){if(typeof _=="string")return _.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?Je(_):"0x"+ue(be(_));if(_ instanceof Uint8Array)return"0x"+ue(_);throw new Error(`toStringData: Error trying to convert ${_} (${typeof _}) to a hex string.`)}function je(_){return typeof _=="boolean"?_:Lt(_).toNumber()!==0}function Ye(_){const A=Lt(_),q=A.toString(16);return A.isLessThan(0)?"-0x"+q.substr(1):"0x"+q}function Je(_){if(vn(_))return Ye(+_);if(Pr(_))return Ye(_);if(gn(_)){const A=_;if(A.indexOf("-0x")===0)return Ye(A);if(A.indexOf("0x")===0)return A;if(!isFinite(A))return ue(be(A))}if(_ instanceof Uint8Array)return"0x"+ue(_);if($r(_)||Zr(_))throw new Error("toHex can only be called with scalar values, not objects or arrays");return Ye(_)}function Vt(_){const A=_?_.toLowerCase():"ether",q=C[A];if(q===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(C,null,2));return new ae(q,10)}function Lt(_){let A=_||0;return Pr(A)?A:(typeof A=="string"&&(A=A.trim()),typeof A!="string"||A.indexOf("0x")!==0&&A.indexOf("-0x")!==0?A instanceof Uint8Array?new ae(ue(A),16):new ae(A,10):new ae(A.replace("0x","").toLowerCase(),16))}function rr(_){return new ae(new Array(_).fill("1").join(""),2)}function Bt(_,A=256){const q=Lt(_).integerValue();return q.isLessThan(0)?rr(A).plus(q).plus(1):q}function Ft(_,A){return B(_.toString(2),A,"0")[0]==="1"}function Hr(_){if(typeof _!="string")throw qe("invalid address",Ne,{arg:"address",value:_});if(_.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return _.trim().substring(0,2)!=="0x"&&(_="0x"+_),ln(_);throw qe("invalid address",Ne,{arg:"address",value:_})}function sr(_,A=256){if(Ft(_,A)){const q=rr(A);return _.minus(q).minus(1)}return _}function hn(_){return/^0x[0-9a-f]{40}$/i.test(_)}function Jr(_){return!!/^(0x)?[0-9a-f]{40}$/i.test(_)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(_)&&!/^(0x)?[0-9A-F]{40}$/.test(_))||Qr(_))}function Qr(_){const A=_.replace("0x",""),q=X(A.toLowerCase());for(let Y=0;Y<40;Y++)if(parseInt(q[Y],16)>7&&A[Y].toUpperCase()!==A[Y]||parseInt(q[Y],16)<=7&&A[Y].toLowerCase()!==A[Y])return!1;return!0}function ln(_){if(_===void 0)return"";const A=_.toLowerCase().replace("0x",""),q=X(A);let Y="0x";for(let x=0;x<A.length;x++)parseInt(q[x],16)>7?Y+=A[x].toUpperCase():Y+=A[x];return Y}function ur(_){if(!Array.isArray(_))throw new Error(`Value was not an array: ${JSON.stringify(_)}`);return _}function cn(_){return hn(_)?_:/^[0-9a-f]{40}$/.test(_)?"0x"+_:"0x"+B(Je(_).substr(2),40)}function Pr(_){return _ instanceof ae}function gn(_){return typeof _=="string"||_&&_.constructor&&_.constructor.name==="String"}function Zr(_){return _!==null&&!Array.isArray(_)&&typeof _=="object"}function vn(_){return typeof _=="boolean"}function $r(_){return Array.isArray(_)}var xi,_n;function Ii(_,A){if(!_)throw new Error("jsonrpc method should be specified!");if(typeof _!="string")throw new Error(`jsonrpc must be a string, got ${typeof _}!`);return t.messageId++,{jsonrpc:"2.0",id:t.messageId,method:_,params:A||[]}}function Ri(_){return Array.isArray(_)?_.every(A):A(_);function A(q){return!!q&&(q.error===void 0||q.error===null)&&q.jsonrpc==="2.0"&&q.id!==null&&"result"in q&&q.result!==void 0}}t.TransactionStatus=void 0,(xi=t.TransactionStatus||(t.TransactionStatus={})).pending="pending",xi.confirmed="confirmed",xi.failed="failed",t.TransactionType=void 0,(_n=t.TransactionType||(t.TransactionType={})).queued="queued",_n.dropped="dropped",_n.replaced="replaced",_n.pending="pending",_n.reverted="reverted",_n.confirmed="confirmed",t.messageId=0;function pi(_){return Lt(_)}function Mi(_){return _==="latest"||_==="pending"||_==="earliest"}function Ir(_){return _===void 0?"latest":Ot(_)}function Ot(_){return _==null?null:Mi(_)?_:Je(_)}function zr(_){return _.from&&(_.from=Pe(_.from)),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function xr(_){if(typeof _!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(_));if(_.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(_));if(_.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(_));return _}function te(_){if(typeof _!="object")throw new Error("Did not provide transaction options");if(!_.from)throw new Error('Missing "from" in transaction options');return _.from=Pe(_.from),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function F(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.nonce=Ce(_.nonce),_.gas=Ce(_.gas),_.gasPrice=Lt(_.gasPrice),_.value=Lt(_.value),_):null}function Z(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.cumulativeGasUsed=Ce(_.cumulativeGasUsed),_.gasUsed=Ce(_.gasUsed),_.logs&&$r(_.logs)&&(_.logs=_.logs.map((function(A){return Te(A)}))),_.status=Ce(_.status||""),_):null}function ce(_){return _?(_.gasLimit=Ce(_.gasLimit),_.gasUsed=Ce(_.gasUsed),_.size=Ce(_.size),_.timestamp=Ce(_.timestamp),_.number!==null&&(_.number=Ce(_.number)),_.difficulty=Lt(_.difficulty),_.totalDifficulty=Lt(_.totalDifficulty),$r(_.transactions)&&_.transactions.forEach((function(A,q){gn(A)||(_.transactions[q]=F(A)||_.transactions[q])})),_):null}function Te(_){return _&&(_.blockNumber&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex&&(_.transactionIndex=Ce(_.transactionIndex)),_.logIndex&&(_.logIndex=Ce(_.logIndex)),_)}function Pe(_){if(hn(_))return _;if(Jr(_))return"0x"+_;throw new Error(`Invalid address: ${JSON.stringify(_)}`)}function Ge(_){return _}function Ke(_){return _&&(_.startingBlock=Ce(_.startingBlock),_.currentBlock=Ce(_.currentBlock),_.highestBlock=Ce(_.highestBlock),_.knownStates&&(_.knownStates=Ce(_.knownStates),_.pulledStates=Ce(_.pulledStates)),_)}function mt(_){if(_===null)throw qe("cannot convert null value to array",Ne,{arg:"value",value:_});if(_ instanceof Uint8Array)return new Uint8Array(_);if(typeof _=="string"){const A=_.match(/^(0x)?[0-9a-fA-F]*$/);if(!A)throw qe("invalid hexidecimal string",Ne,{arg:"value",value:_});if(A[1]!=="0x")throw qe("hex string must have 0x prefix",Ne,{arg:"value",value:_});(_=_.substring(2)).length%2&&(_="0"+_);const q=[];for(let Y=0;Y<_.length;Y+=2)q.push(parseInt(_.substr(Y,2),16));return new Uint8Array(q)}if((function(A){if(!A||parseInt(String(A.length))!==A.length||typeof A=="string")return!1;for(let q=0;q<A.length;q++){const Y=A[q];if(Y<0||Y>=256||parseInt(String(Y))!==Y)return!1}return!0})(_))return new Uint8Array(_);throw qe("invalid arrayify value",void 0,{arg:"value",value:_,type:typeof _})}function ut(_,A,q){Object.defineProperty(_,A,{enumerable:!0,value:q,writable:!1})}const _t=new ae(-1),Tt=new ae(0),At=new ae(1),xt=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Jt(_){return(function(A,q){function Y(Oe){return new Error('unexpected character "'+A[Oe]+'" at position '+Oe+' in "'+A+'"')}const x={type:"",name:"",state:{allowType:!0}};let ne=x;for(let Oe=0;Oe<A.length;Oe++){const Ve=A[Oe];switch(Ve){case"(":if(!ne.state.allowParams)throw Y(Oe);ne.state.allowType=!1,ne.type=gr(ne.type),ne.components=[{type:"",name:"",parent:ne,state:{allowType:!0}}],ne=ne.components[0];break;case")":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const it=ne;if(ne=ne.parent,!ne)throw Y(Oe);delete it.parent,ne.state.allowParams=!1,ne.state.allowName=!0,ne.state.allowArray=!0;break;case",":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const st={type:"",name:"",parent:ne.parent,state:{allowType:!0}};ne.parent.components.push(st),delete ne.parent,ne=st;break;case" ":ne.state.allowType&&ne.type!==""&&(ne.type=gr(ne.type),delete ne.state.allowType,ne.state.allowName=!0,ne.state.allowParams=!0),ne.state.allowName&&ne.name!==""&&(ne.name==="indexed"?(ne.indexed=!0,ne.name=""):ne.state.allowName=!1);break;case"[":if(!ne.state.allowArray)throw Y(Oe);ne.type+=Ve,ne.state.allowArray=!1,ne.state.allowName=!1,ne.state.readArray=!0;break;case"]":if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve,ne.state.readArray=!1,ne.state.allowArray=!0,ne.state.allowName=!0;break;default:if(ne.state.allowType)ne.type+=Ve,ne.state.allowParams=!0,ne.state.allowArray=!0;else if(ne.state.allowName)ne.name+=Ve,delete ne.state.allowArray;else{if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve}}}if(ne.parent)throw new Error("unexpected eof");return delete x.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),x.type=gr(x.type),x})(_)}function gr(_){return _.match(/^uint($|[^1-9])/)?_="uint256"+_.substring(4):_.match(/^int($|[^1-9])/)&&(_="int256"+_.substring(3)),_}const Dr=new RegExp(/^bytes([0-9]*)$/),En=new RegExp(/^(u?int)([0-9]*)$/),Dn=new RegExp(/^(.*)\[([0-9]*)\]$/),ea=function(_,A){const q=_.match(En);return q&&parseInt(q[2])<=48?A.toNumber():A};class Rr{constructor(A,q,Y,x="",ne){this.coerceFunc=A,this.name=q,this.type=Y,this.localName=x,this.dynamic=ne}}class yi extends Rr{constructor(A){super(A.coerceFunc,A.name,A.type,void 0,A.dynamic),ut(this,"coder",A)}encode(A){return this.coder.encode(A)}decode(A,q){return this.coder.decode(A,q)}}class uu extends Rr{constructor(A,q){super(A,"null","",q,!1)}encode(A){return mt([])}decode(A,q){if(q>A.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function Sa(_,A){return new ae(_.toString(2).substr(-A),2)}class kl extends Rr{constructor(A,q,Y,x){const ne=(Y?"int":"uint")+8*q;super(A,ne,ne,x,!1),this.size=q,this.signed=Y}encode(A){try{let q=Lt(A);if(this.signed){let x=Sa(xt,8*this.size-1);if(q.gt(x))throw new Error("out-of-bounds");if(x=x.plus(At).multipliedBy(_t),q.lt(x))throw new Error("out-of-bounds")}else if(q.lt(Tt)||q.gt(Sa(xt,8*this.size)))throw new Error("out-of-bounds");q=Sa(Bt(q,8*this.size),8*this.size),this.signed&&(q=Bt(sr(q,8*this.size),256));const Y=B(Bt(q).toString(16),64);if(Y.indexOf("NaN")!==-1)throw qe("invalid number value, NaN",Ne,{arg:this.localName,coderType:this.name,value:A,v:q,twosComplement:Bt(q),twosComplement16:Bt(q).toString(16),pad:B(Bt(q).toString(16),64),size:this.size});return we(Y)}catch(q){throw qe("invalid number value",Ne,{arg:this.localName,coderType:this.name,value:A,message:q.toString()})}}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});const Y=32-this.size;let x=new ae(ue(A.slice(q+Y,q+32)),16);return x=this.signed?sr(x,8*this.size):Sa(x,8*this.size),{consumed:32,value:this.coerceFunc(this.name,x)}}}const qn=new kl((function(_,A){return A}),32,!1,"none");class er extends Rr{constructor(A,q,Y){const x="bytes"+q;super(A,x,x,Y,!1),this.length=q}encode(A){const q=new Uint8Array(32);try{if(typeof A=="string"&&A.length%2!=0)throw new Error("hex string cannot be odd-length");const Y=mt(A);if(Y.length>this.length)throw new Error("incorrect data length");q.set(Y)}catch(Y){throw qe("invalid "+this.name+" value. Use hex strings or Uint8Array",Ne,{arg:this.localName,coderType:this.name,value:Y.value||A,details:Y.message})}return q}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});return{consumed:32,value:this.coerceFunc(this.name,A.slice(q,q+this.length))}}}function Ul(_){const A=32*Math.ceil(_.length/32),q=new Uint8Array(A-_.length);return W(qn.encode(_.length),_,q)}function ss(_,A,q){if(_.length<A+32)throw qe("insufficient data for dynamicBytes length",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32))});let Y=qn.decode(_,A).value;try{Y=Y.toNumber()}catch(x){throw x("dynamic bytes count too large",Ne,{arg:q,coderType:"dynamicBytes",value:Y.toString()})}if(_.length<A+32+Y)throw qe("insufficient data for dynamicBytes type",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32+Y))});return{consumed:32+32*Math.ceil(Y/32),value:_.slice(A+32,A+32+Y)}}function Oa(_){return 32*Math.ceil(_/32)}function Aa(_,A){if(!Array.isArray(A)){if(!A||typeof A!="object")throw qe("invalid tuple value",Ne,{coderType:"tuple",value:A});{const it=[];_.forEach((function(st){it.push(A[st.localName])})),A=it}}if(_.length!==A.length)throw qe("types/value length mismatch",Ne,{coderType:"tuple",value:A});const q=[];_.forEach((function(it,st){q.push({dynamic:it.dynamic,value:it.encode(A[st])})}));let Y=0,x=0;q.forEach((function(it){it.dynamic?(Y+=32,x+=Oa(it.value.length)):Y+=Oa(it.value.length)}));let ne=0,Oe=Y;const Ve=new Uint8Array(Y+x);return q.forEach((function(it){it.dynamic?(Ve.set(qn.encode(Oe),ne),ne+=32,Ve.set(it.value,Oe),Oe+=Oa(it.value.length)):(Ve.set(it.value,ne),ne+=Oa(it.value.length))})),Ve}class Pf extends Array{}class Bl extends Rr{constructor(A,q,Y,x){super(A,"array",q.type+"["+(Y>=0?Y:"")+"]",x,Y===-1||q.dynamic),this.coder=q,this.length=Y}encode(A){if(!Array.isArray(A))throw qe("expected array value",Ne,{arg:this.localName,coderType:"array",value:A});let q=this.length,Y=new Uint8Array(0);q===-1&&(q=A.length,Y=qn.encode(q)),(function(ne,Oe,Ve){if(Ve||(Ve=""),ne<Oe)throw qe("missing argument"+Ve,"MISSING_ARGUMENT",{count:ne,expectedCount:Oe});if(ne>Oe)throw qe("too many arguments"+Ve,"UNEXPECTED_ARGUMENT",{count:ne,expectedCount:Oe})})(q,A.length,"in coder array"+(this.localName?" "+this.localName:""));const x=[];for(let ne=0;ne<A.length;ne++)x.push(this.coder);return W(Y,Aa(x,A))}decode(A,q){let Y=0,x=this.length;if(x===-1){let Ve;try{Ve=qn.decode(A,q)}catch(it){throw qe("insufficient data for dynamic array length",Ne,{arg:this.localName,coderType:"array",value:it.value})}try{x=Ve.value.toNumber()}catch{throw qe("array count too large",Ne,{arg:this.localName,coderType:"array",value:Ve.value.toString()})}Y+=Ve.consumed,q+=Ve.consumed}const ne=[];for(let Ve=0;Ve<x;Ve++)ne.push(new yi(this.coder));const Oe=(function(Ve,it,st){const fr=st;let Ht=0;const ze=[];return Ve.forEach((function(_r){let zt;if(_r.dynamic){const Dt=qn.decode(it,st);zt=_r.decode(it,fr+Dt.value.toNumber()),zt.consumed=Dt.consumed}else zt=_r.decode(it,st);zt.value!==void 0&&ze.push(zt.value),st+=zt.consumed,Ht+=zt.consumed})),{value:ze,consumed:Ht}})(ne,A,q);return Oe.consumed+=Y,Oe.value=this.coerceFunc(this.type,Oe.value),Oe}}class ta extends Rr{constructor(A,q,Y){let x=!1;const ne=[];q.forEach((function(Oe){Oe.dynamic&&(x=!0),ne.push(Oe.type)})),super(A,"tuple","tuple("+ne.join(",")+")",Y,x),this.coders=q}encode(A){return Aa(this.coders,A)}decode(A,q){const Y=(function(x,ne,Oe){const Ve=Oe;let it=0;const st=new Pf;return x.forEach((function(fr){let Ht;if(fr.dynamic){const ze=qn.decode(ne,Oe);Ht=fr.decode(ne,Ve+ze.value.toNumber()),Ht.consumed=ze.consumed}else Ht=fr.decode(ne,Oe);Ht.value!==void 0&&st.push(Ht.value),Oe+=Ht.consumed,it+=Ht.consumed})),x.forEach((function(fr,Ht){let ze=fr.localName;ze&&(ze==="length"&&(ze="_length"),st[ze]!==null&&st[ze]!==void 0||(st[ze]=st[Ht]))})),{value:st,consumed:it}})(this.coders,A,q);return Y.value=this.coerceFunc(this.type,Y.value),Y}}const bn={address:class extends Rr{constructor(_,A){super(_,"address","address",A,!1)}encode(_){const A=new Uint8Array(32),q=_.trim();if(!Jr(q))throw qe("invalid address format",Ne,{arg:this.localName,coderType:"address",value:_});try{A.set(we(Pe(q)),12)}catch(Y){throw qe(`invalid address (${Y.message})`,Ne,{arg:this.localName,coderType:"address",value:_})}return A}decode(_,A){if(_.length<A+32)throw qe("insufficuent data for address type",Ne,{arg:this.localName,coderType:"address",value:Je(_.slice(A,A+32)),missingBytes:A+32-_.length});return{consumed:32,value:this.coerceFunc("address",Hr(Je(_.slice(A+12,A+32))))}}},bool:class extends Rr{constructor(_,A){super(_,"bool","bool",A,!1)}encode(_){return qn.encode(_?1:0)}decode(_,A){try{const q=qn.decode(_,A);return{consumed:q.consumed,value:this.coerceFunc("bool",!q.value.isZero())}}catch(q){throw q.reason==="insufficient data for uint256 type"?qe("insufficient data for boolean type",Ne,{arg:this.localName,coderType:"boolean",value:q.value}):q}}},string:class extends Rr{constructor(_,A){super(_,"string","string",A,!0)}encode(_){if(typeof _!="string")throw qe("invalid string value",Ne,{arg:this.localName,coderType:"string",value:_});return Ul(be(_))}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("string",ye(q.value)),q}},bytes:class extends Rr{constructor(_,A){super(_,"bytes","bytes",A,!0)}encode(_){try{return Ul(mt(_))}catch(A){throw A("invalid bytes value",Ne,{arg:this.localName,coderType:"bytes",value:A.value})}}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("bytes",q.value),q}},function:class extends er{constructor(_,A){super(_,24,A)}}};function us(_,A){const q=bn[A.type];if(q)return new q(_,A.name);let Y=A.type.match(En);if(Y){const x=parseInt(Y[2]||"256");if(x===0||x>256||x%8!=0)throw qe("invalid "+Y[1]+" bit length",Ne,{arg:"param",value:A});return new kl(_,x/8,Y[1]==="int",A.name)}if(Y=A.type.match(Dr),Y){const x=parseInt(Y[1]);if(x===0||x>32)throw qe("invalid bytes length",Ne,{arg:"param",value:A});return new er(_,x,A.name)}if(Y=A.type.match(Dn),Y){const x=Object.assign({},A),ne=parseInt(Y[2]||"-1");return x.type=Y[1],new Bl(_,us(_,x),ne,A.name)}if(A.type.substring(0,5)==="tuple")return(function(x,ne,Oe){ne||(ne=[]);const Ve=ne.map((it=>us(x,it)));return new ta(x,Ve,Oe)})(_,A.components,A.name);if(A.type==="")return new uu(_,A.name);throw qe("invalid type",Ne,{arg:"type",value:A.type,fullType:A})}class Wr{constructor(A){(function(q,Y){if(!(q instanceof Y))throw qe("missing new","MISSING_NEW",{name:Y.name})})(this,Wr),A||(A=ea),ut(this,"coerceFunc",A)}encode(A,q){if(A.length!==q.length)throw qe("types/values length mismatch",Ne,{count:{types:A.length,values:q.length},value:{types:A,values:q}});const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ta(this.coerceFunc,Y,"_").encode(q)}decode(A,q){const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ta(this.coerceFunc,Y,"_").decode(q,0).value}}const Fl=new Wr;var Vl,et;function $e(_,A,q,Y){var x,ne=arguments.length,Oe=ne<3?A:Y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(_,A,q,Y);else for(var Ve=_.length-1;Ve>=0;Ve--)(x=_[Ve])&&(Oe=(ne<3?x(Oe):ne>3?x(A,q,Oe):x(A,q))||Oe);return ne>3&&Oe&&Object.defineProperty(A,q,Oe),Oe}function xe(_,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,A)}t.coder=void 0,(Vl=t.coder||(t.coder={})).encodeParams=function(_,A){return ue(Fl.encode(_,A))},Vl.decodeParams=function(_,A){if(_.length>0&&(!A||A==="0x"||A==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return Fl.decode(_,we("0x"+A.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class ft{constructor(A){this.callName=A.callName,this.params=A.params||0,this.inputFormatter=A.inputFormatter||null,this.outputFormatter=A.outputFormatter}validateArgs(A){if(A.length!==this.params)throw q=this.callName,Y=A.length,x=this.params,new Error(`Invalid number of input parameters to RPC method "${q}" given: ${Y}, expected: ${x}`);var q,Y,x}formatInput(A){return this.inputFormatter?this.inputFormatter.map((function(q,Y){return q?q(A[Y]):A[Y]})):A}formatOutput(A){return A!==null?this.outputFormatter(A):null}toPayload(A){const q=this.formatInput(A);return this.validateArgs(q),{method:this.callName,params:q}}async execute(A,...q){const Y=this.toPayload(q);if(!A)throw new Error("Missing RequestManager in method#exec");const x=await A.sendAsync(Y);return this.formatOutput(x)}}class vr{constructor(A){this.getter=A.getter,this.outputFormatter=A.outputFormatter}formatOutput(A){return this.outputFormatter(A)}async execute(A,...q){const Y=await A.sendAsync({method:this.getter,params:[]});return this.formatOutput(Y)}}function Hl(_){return new Promise((A=>setTimeout(A,_)))}t.eth=void 0,(et=t.eth||(t.eth={})).eth_getBalance=new ft({callName:"eth_getBalance",params:2,inputFormatter:[Pe,Ir],outputFormatter:pi}),et.eth_getStorageAt=new ft({callName:"eth_getStorageAt",params:3,inputFormatter:[Pe,Je,Ir],outputFormatter:de}),et.eth_getCode=new ft({callName:"eth_getCode",params:2,inputFormatter:[Pe,Ir],outputFormatter:de}),et.eth_getBlockByHash=new ft({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getBlockByNumber=new ft({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getUncleByBlockHashAndIndex=new ft({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getUncleByBlockNumberAndIndex=new ft({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getBlockTransactionCountByHash=new ft({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getBlockTransactionCountByNumber=new ft({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockHash=new ft({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockNumber=new ft({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getTransactionByHash=new ft({callName:"eth_getTransactionByHash",params:1,inputFormatter:[xr],outputFormatter:F}),et.eth_getTransactionByBlockHashAndIndex=new ft({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionByBlockNumberAndIndex=new ft({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionReceipt=new ft({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[xr],outputFormatter:Z}),et.eth_getTransactionCount=new ft({callName:"eth_getTransactionCount",params:2,inputFormatter:[Pe,Ir],outputFormatter:Ce}),et.eth_sendRawTransaction=new ft({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:de}),et.web3_sha3=new ft({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:de}),et.eth_sendTransaction=new ft({callName:"eth_sendTransaction",params:1,inputFormatter:[te],outputFormatter:de}),et.eth_sign=new ft({callName:"eth_sign",params:2,inputFormatter:[Pe,null],outputFormatter:de}),et.eth_call=new ft({callName:"eth_call",params:2,inputFormatter:[zr,Ir],outputFormatter:de}),et.eth_estimateGas=new ft({callName:"eth_estimateGas",params:1,inputFormatter:[zr],outputFormatter:Ce}),et.eth_submitWork=new ft({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:je}),et.eth_getWork=new ft({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:ur}),et.eth_coinbase=new vr({getter:"eth_coinbase",outputFormatter:cn}),et.eth_mining=new vr({getter:"eth_mining",outputFormatter:je}),et.eth_hashrate=new vr({getter:"eth_hashrate",outputFormatter:Ce}),et.eth_syncing=new vr({getter:"eth_syncing",outputFormatter:Ke}),et.eth_gasPrice=new vr({getter:"eth_gasPrice",outputFormatter:pi}),et.eth_accounts=new vr({getter:"eth_accounts",outputFormatter:ur}),et.eth_blockNumber=new vr({getter:"eth_blockNumber",outputFormatter:Ce}),et.eth_protocolVersion=new vr({getter:"eth_protocolVersion",outputFormatter:Ce}),et.web3_clientVersion=new vr({getter:"web3_clientVersion",outputFormatter:se}),et.net_version=new vr({getter:"net_version",outputFormatter:se}),et.shh_version=new ft({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:Ce}),et.shh_post=new ft({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:je}),et.personal_newAccount=new ft({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:cn}),et.personal_importRawKey=new ft({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:cn}),et.personal_sign=new ft({callName:"personal_sign",params:3,inputFormatter:[Ae,Pe,null],outputFormatter:de}),et.personal_ecRecover=new ft({callName:"personal_ecRecover",params:2,inputFormatter:[Ae,null],outputFormatter:cn}),et.personal_unlockAccount=new ft({callName:"personal_unlockAccount",params:3,inputFormatter:[Pe,null,Ue],outputFormatter:je}),et.personal_sendTransaction=new ft({callName:"personal_sendTransaction",params:2,inputFormatter:[te,null],outputFormatter:de}),et.personal_lockAccount=new ft({callName:"personal_lockAccount",params:1,inputFormatter:[Pe],outputFormatter:je}),et.personal_listAccounts=new vr({getter:"personal_listAccounts",outputFormatter:ur}),et.net_listening=new vr({getter:"net_listening",outputFormatter:je}),et.net_peerCount=new vr({getter:"net_peerCount",outputFormatter:Ce}),et.eth_newFilter=new ft({callName:"eth_newFilter",params:1,inputFormatter:[Ge],outputFormatter:Je}),et.eth_getLogs=new ft({callName:"eth_getLogs",params:1,inputFormatter:[ur],outputFormatter:ur}),et.eth_newBlockFilter=new ft({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_newPendingTransactionFilter=new ft({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_uninstallFilter=new ft({callName:"eth_uninstallFilter",params:1,inputFormatter:[Je],outputFormatter:je}),et.eth_getFilterLogs=new ft({callName:"eth_getFilterLogs",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_getFilterChanges=new ft({callName:"eth_getFilterChanges",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_submitHashrate=new ft({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:je}),et.shh_newIdentity=new ft({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:de}),et.shh_hasIdentity=new ft({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newGroup=new ft({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:de}),et.shh_addToGroup=new ft({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newFilter=new ft({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Je}),et.shh_uninstallFilter=new ft({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_getLogs=new ft({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterMessages=new ft({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterChanges=new ft({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getMessages=new ft({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:ur});function at(_,A){const q=t.eth[A];if(!q)throw new Error(`Could not find the method/property named ${A.toString()}`);Object.defineProperty(_,A,{value:function(...Y){return q.execute(this,...Y)}})}class Ze{constructor(A){this.provider=A,this.requests=new Map}async sendAsync(A){const q=await this.provider;if(!q)throw new Error("Provider not set or invalid");const Y=Ii(A.method,A.params),x=u();return this.requests.set(Y.id,x),q.sendAsync(Y,((ne,Oe)=>{this.requests.delete(Y.id),ne?x.reject(ne):Ri(Oe)?x.resolve(Oe.result):x.reject((function(Ve){const it=Ve&&Ve.error&&Ve.error.message?Ve.error.message:"Invalid JSON RPC response: "+JSON.stringify(Ve);return new Error(it)})(Oe))})),x}setProvider(A){this.provider=A}async getConfirmedTransaction(A){const q=await this.waitForCompletion(A);if(this.isFailure(q))throw new Error(`Transaction "${A}" failed`);return q}async waitForCompletion(A,q){const Y=xr(A);if(await this.isTxDropped(Y,q)){const x=await this.getTransactionAndReceipt(Y);return Object.assign(Object.assign({},x),{status:t.TransactionStatus.failed})}for(;;){const x=await this.getTransactionAndReceipt(Y);if(!this.isPending(x)&&x.receipt)return Object.assign(Object.assign({},x),{status:this.isFailure(x)?t.TransactionStatus.failed:t.TransactionStatus.confirmed});await Hl(2e3)}}async getTransaction(A){let q,Y=null;const x=xr(A);try{const Oe=(await this.eth_accounts())[0];Oe&&(Y=await this.eth_getTransactionCount(Oe,"latest"))}catch{Y=null}try{if(q=await this.eth_getTransactionByHash(x),q===null)return null}catch{return null}if(q.blockNumber===null){if(Y!==null){if(q.nonce<Y)return{hash:x,type:t.TransactionType.replaced,nonce:q.nonce};if(q.nonce>Y)return{hash:x,type:t.TransactionType.queued,nonce:q.nonce}}return Object.assign({type:t.TransactionType.pending},q)}let ne;try{if(ne=await this.eth_getTransactionReceipt(x),ne===null||ne.status===0)return Object.assign({type:t.TransactionType.reverted},q)}catch{return null}return Object.assign(Object.assign({type:t.TransactionType.confirmed},q),{receipt:ne})}async isTxDropped(A,q=15){let Y=q;for(;Y>0;){if(await this.getTransactionAndReceipt(A)!==null)return!1;Y-=1,await Hl(2e3)}return!0}async getTransactionAndReceipt(A){A=xr(A);const[q,Y]=await Promise.all([this.eth_getTransactionByHash(A),this.eth_getTransactionReceipt(A)]);return Object.assign(Object.assign({},q),{receipt:Y})}isPending(A){return A&&A.blockNumber===null}isFailure(A){return A&&(!A.receipt||A.receipt.status===0)}}$e([at,xe("design:type",Function)],Ze.prototype,"web3_clientVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"web3_sha3",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_peerCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_listening",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_protocolVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_syncing",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_coinbase",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_mining",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_hashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_gasPrice",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_accounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_blockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBalance",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getStorageAt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getCode",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendRawTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_call",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_estimateGas",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionReceipt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newBlockFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newPendingTransactionFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitHashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_post",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_hasIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_addToGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getMessages",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_unlockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_newAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_listAccounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_lockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_importRawKey",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_ecRecover",void 0);class lu{constructor(A){this.json=A,this._inputTypes=A.inputs||[],this._outputTypes=A.outputs||[],this._constant=!!A.constant,this._payable=!!A.payable||A.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in A&&!A.constant||A.stateMutability==="nonpayable",this._name=L(A)}extractDefaultBlock(A){return A.length>this._inputTypes.length&&!Zr(A[A.length-1])&&Ir(A.pop())||"latest"}validateArgs(A){if(A.some((ne=>ne===void 0)))throw new Error("Invalid call, some arguments are undefined");const q=A.filter((function(ne){return!(Zr(ne)===!0&&$r(ne)===!1&&Pr(ne)===!1&&!(ne instanceof Uint8Array))}));if(q.length!==this._inputTypes.length)throw Y=q.length,x=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${Y}, expected: ${x}`);var Y,x}toPayload(A){let q={to:void 0,data:void 0,value:void 0,from:void 0};A.length>this._inputTypes.length&&Zr(A[A.length-1])&&(q=A.pop()),this.validateArgs(A);const Y=this.signature();let x=t.coder.encodeParams(this._inputTypes,A);return x.indexOf("0x")===0&&(x=x.substr(2)),q.data="0x"+Y+x,q}signature(){return X(this._name).slice(0,8)}unpackOutput(A){if(!A)return;const q=A.length>=2?A.slice(2):A,Y=t.coder.decodeParams(this._outputTypes,q);return Y.length===1?Y[0]:Y}async execute(A,q,...Y){if(!A)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const x=this.toPayload(Y);if(x.to=q,x.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!x.from)throw new Error('Missing "from" in transaction options');return await A.eth_sendTransaction(x)}{const x=this.extractDefaultBlock(Y),ne=this.toPayload(Y);ne.to=q;const Oe=await A.eth_call(ne,x);return this.unpackOutput(Oe)}}estimateGas(A,q,...Y){if(!(A instanceof Ze))throw new Error("estimateGas needs to receive a RequestManager as first argument");const x=this.toPayload(Y);return x.to=q,A.eth_estimateGas(x)}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}attachToContract(A){const q=this.displayName(),Y=Object.assign(((...x)=>this.execute(A.requestManager,A.address,...x)),{estimateGas:this.estimateGas.bind(this,A.requestManager,A.address),toPayload:(...x)=>this.toPayload(x),toRPCMessage:(...x)=>{const ne=this.extractDefaultBlock(x),Oe=this.toPayload(x);return Oe.to=A.address,{method:"eth_call",params:[Oe,ne]}},unpackOutput:x=>this.unpackOutput(x)});A[q]||(A[q]=Y),A[q][this.typeName()]=Y}}function ls(_){if(_==null)return null;const A=String(_).toString();return A.indexOf("0x")===0?A:ue(be(A))}class Ni{constructor(A){this.requestManager=A,this.isStarted=!1,this.isDisposed=!1,this.formatter=q=>q,this.filterId=u(),this.callbacks=[],this.stopSemaphore=u()}async watch(A){if(this.isDisposed)throw new Error("The filter was disposed");A&&(this.callbacks.push(A),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const A=await this.getNewFilter();if(!A)throw new Error("Could not create a filter, response: "+JSON.stringify(A));this.filterId.resolve(A)}catch(A){throw A}this.stopSemaphore=u(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const A=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${A}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const q=await this.getChanges();q&&this.callbacks.forEach((Y=>{this.formatter?q.forEach((x=>{Y(this.formatter(x))})):q.forEach((x=>Y(x)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=u(),setTimeout((A=()=>this.poll(),function(){A().catch((q=>console.error(q)))}),500))}else this.stopSemaphore.resolve(1);var A}}class Pa extends Ni{constructor(A,q,Y=(x=>x)){super(A),this.requestManager=A,this.options=q,this.formatter=Y,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(x){return ls(x)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?Ot(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?Ot(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const A=await this.filterId;return this.requestManager.eth_getFilterLogs(A)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const A=await this.filterId;return this.requestManager.eth_getFilterChanges(A)}async uninstall(){const A=await this.filterId;return this.requestManager.eth_uninstallFilter(A)}}class Ia{constructor(A,q,Y){this.requestManager=A,this.address=Y,this._anonymous=!1,this._params=q.inputs||[],this._name=L(q),this._anonymous=q.anonymous||!1}types(A){return this._params.filter((function(q){return q.indexed===A}))}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}signature(){return X(this._name)}encode(A={},q={}){const Y={topics:[],address:this.address};q.fromBlock!==void 0&&(Y.fromBlock=Ot(q.fromBlock)||void 0),q.toBlock!==void 0&&(Y.toBlock=Ot(q.toBlock)||void 0),Y.topics=Y.topics||[],this._anonymous||Y.topics.push("0x"+this.signature());const x=this._params.filter((function(ne){return ne.indexed===!0})).map((function(ne){const Oe=A[ne.name];return Oe==null?null:$r(Oe)?Oe.map((function(Ve){return"0x"+t.coder.encodeParams([ne],[Ve])})):"0x"+t.coder.encodeParams([ne],[Oe])}));return Y.topics=Y.topics.concat(x),Y}decode(A){A.data=A.data||"",A.topics=A.topics||[];const q=(this._anonymous?A.topics:A.topics.slice(1)).map((function(Ve){return Ve.slice(2)})).join(""),Y=t.coder.decodeParams(this.types(!0),q),x=A.data.slice(2),ne=t.coder.decodeParams(this.types(!1),x),Oe=this._params.reduce((function(Ve,it){return Ve[it.name]=it.indexed?Y.shift():ne.shift(),Ve}),{});return Object.assign(Object.assign({},Te(A)),{event:this.displayName(),address:A.address,args:Oe})}async execute(A,q){const Y=this.encode(A,q),x=this.decode.bind(this);return new Pa(this.requestManager,Y,x)}attachToContract(A){const q=this.execute.bind(this),Y=this.displayName();A.events[Y]||(A.events[Y]=q),A.events[Y][this.typeName()]=this.execute.bind(this,A)}}class Ut{constructor(A,q,Y){this._requestManager=A,this._json=q,this._address=Y}encode(A={}){const q={address:this._address};return A.fromBlock!==void 0&&(q.fromBlock=Ot(A.fromBlock)||void 0),A.toBlock!==void 0&&(q.toBlock=Ot(A.toBlock)||void 0),q}decode(A){A.data=A.data||"";const q=$r(A.topics)&&gn(A.topics[0])?A.topics[0].slice(2):"",Y=this._json.filter((function(x){return q===X(L(x))}))[0];return Y?new Ia(this._requestManager,Y,this._address).decode(A):Te(A)}async execute(A){const q=this.encode(A),Y=this.decode.bind(this);return new Pa(this._requestManager,q,Y)}getAllEventsFunction(){return this.execute.bind(this)}}class cu{constructor(A,q,Y){var x;this.requestManager=A,this.abi=q,this.address=Y,this.events={},this.transactionHash=null,this.address=Y,this.abi=q,(x=this).abi.filter((function(ne){return ne.type==="function"})).map((function(ne){return new lu(ne)})).forEach((function(ne){ne.attachToContract(x)})),this.allEvents=(function(ne){const Oe=ne.abi.filter((function(it){return it.type==="event"})),Ve=new Ut(ne.requestManager,Oe,ne.address);return Oe.map((function(it){return new Ia(ne.requestManager,it,ne.address)})).forEach((function(it){it.attachToContract(ne)})),Ve.getAllEventsFunction()})(this)}}t.AbstractFilter=Ni,t.BigNumber=ae,t.Contract=cu,t.ContractFactory=class{constructor(_,A){this.requestManager=_,this.abi=A}async deploy(..._){let A;const q=_[_.length-1];if(Zr(q)&&!$r(q)&&(A=_.pop()),!A)throw new Error("Missing options object");if(!A.data||typeof A.data!="string")throw new Error("Invalid options.data");if(Ce(A.value)>0&&!(this.abi.filter((function(st){return st.type==="constructor"&&st.inputs.length===_.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const Y=(x=this.abi,ne=_,x.filter((function(st){return st.type==="constructor"&&st.inputs&&st.inputs.length===ne.length})).map((function(st){return st.inputs||[]})).map((function(st){return t.coder.encodeParams(st,ne)}))[0]||"");var x,ne;A.data+=Y,A.gas||(A.gas=await this.requestManager.eth_estimateGas(A));const Oe=await this.requestManager.eth_sendTransaction(A);if(!Oe)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const Ve=await(async function(st,fr){const Ht=u();let ze=0;const _r=()=>{ze++,ze>50?Ht.reject(new Error("Contract transaction couldn't be found after 50 blocks")):st.eth_getTransactionReceipt(fr).then((Tr=>{Tr&&Tr.blockHash?Ht.resolve(Tr):setTimeout(_r,1e3)}),(Tr=>Ht.reject(Tr)))};_r();const zt=await Ht,Dt=await st.eth_getCode(zt.contractAddress,"latest");if(Dt&&Dt.length>3)return zt.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Dt,receipt:zt})})(this.requestManager,Oe),it=await this.at(Ve);return it.transactionHash=Oe,it}async at(_){if(!Jr(_))throw new TypeError(`Invalid address ${JSON.stringify(_)}`);return new cu(this.requestManager,this.abi,_)}},t.EthBlockFilter=class extends Pa{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},t.EthFilter=Pa,t.EthPendingTransactionFilter=class extends Pa{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},t.HTTPProvider=class{constructor(_,A={}){this.host=_,this.options=A,this.debug=!1,this.host=_||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){try{let q=null;q=_ instanceof Array?_.map((ne=>n(ne))):n(_);const Y=this.options.fetch||globalThis.fetch;if(Y===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const x={body:JSON.stringify(q),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+x.body),Y(this.host,x).then((async ne=>{if(ne.ok){const Oe=await ne.json();this.debug&&console.log("RECV << "+JSON.stringify(Oe)),Oe.error?A(Object.assign(new Error(Oe.error.json||Oe.error),Oe.error)):A(null,Oe)}else this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(new Error("External error. response code: "+ne.status))}),(ne=>{this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(ne)}))}catch(q){this.debug&&console.log("ERR << "+JSON.stringify(q)),A(q)}}},t.Method=ft,t.Property=vr,t.RequestManager=Ze,t.SHHFilter=class extends Ni{constructor(_,A){super(_),this.requestManager=_,this.options=A,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(q){return ls(q)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const _=await this.filterId;return this.requestManager.shh_getMessages(_)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const _=await this.filterId;return this.requestManager.shh_getFilterChanges(_)}async uninstall(){const _=await this.filterId;return this.requestManager.shh_uninstallFilter(_)}},t.SolidityEvent=Ia,t.SolidityFunction=lu,t.WebSocketProvider=class{constructor(_,A={}){this.url=_,this.options=A,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const _=this.connection;this.timeout(new Error("Provider disposed.")),_.then((A=>A.close())).catch((A=>{this.debug&&console.error(A)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){const q=[];let Y;if(_ instanceof Array)Y=Promise.all(_.map((x=>{const ne=u();try{const Oe=n(x);q.push(Oe),this.responseCallbacks.set(Oe.id,ne)}catch(Oe){ne.reject(Oe)}return ne})));else{const x=u();try{const ne=n(_);q.push(ne),this.responseCallbacks.set(ne.id,x)}catch(ne){x.reject(ne)}Y=x}Y.then((x=>A(null,x)),(x=>A(x))),this.connection.then((x=>{q.forEach((ne=>{const Oe=JSON.stringify(ne);this.debug&&console.log("SEND >> "+Oe),x.send(Oe)}))}),(x=>{A(x)}))}parseResponse(_){const A=[];return _.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((q=>{let Y=q;this.lastChunk&&(Y=this.lastChunk+Y);let x=null;try{x=JSON.parse(Y)}catch{return this.lastChunk=Y,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",x&&A.push(x)})),A}processMessage(_){if("id"in _){const A=_.id,q=this.responseCallbacks.get(A);if(!q)return void console.error("Error: Received a response for an unknown request",_);this.responseCallbacks.delete(A),_.error!==void 0&&_.error!==null?q.reject(Object.assign(new Error(_.error.message||_.error),_.error)):"result"in _&&q.resolve(_)}else this.notificationCallbacks.forEach((A=>A(null,_)))}timeout(_){this.connection&&this.connection.isPending||(this.connection=u());const A=_||new Error("Connection timeout");this.responseCallbacks.forEach((q=>q.reject(A))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((q=>q.close())).catch((q=>{this.debug&&console.error(q)})),this.connection&&this.connection.isPending||(this.connection=u()),this.lastChunk="";const _=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!_)throw new Error("Please provide a WebSocketConstructor");const A=new _(this.url,this.options.protocol);A.onopen=()=>{this.connection.resolve(A)},A.onerror=q=>{const Y=new Error("Error in web socket");Y.data=q,this.timeout(Y)},A.onclose=q=>{this.timeout(new Error(`Connection closed (${q&&q.reason||"Unknown reason"})`))},A.onmessage=q=>{const Y=typeof q.data=="string"?q.data:"";this.debug&&console.log("RECV << "+q.data),this.parseResponse(Y).forEach((x=>{x instanceof Array?x.forEach((ne=>this.processMessage(ne))):this.processMessage(x)}))}}},t.bytesToHex=ue,t.bytesToUtf8String=ye,t.concatBytes=W,t.default=Ze,t.extractDisplayName=Re,t.extractTypeName=Se,t.fromAscii=function(_,A=0){let q="";for(let Y=0;Y<_.length;Y++){const x=_.charCodeAt(Y).toString(16);q+=x.length<2?"0"+x:x}return"0x"+q.padEnd(A,"0")},t.fromDecimal=Ye,t.fromTwosComplement=sr,t.fromWei=function(_,A){const q=Lt(_).dividedBy(Vt(A));return Pr(_)?q:q.toString(10)},t.getAddress=Hr,t.getValueOfUnit=Vt,t.hexToBytes=we,t.inputAddressFormatter=Pe,t.inputBlockNumberFormatter=Ot,t.inputCallFormatter=zr,t.inputDefaultBlockNumberFormatter=Ir,t.inputFilterOptions=Ge,t.inputPostFormatter=function(_){return _?(_.ttl=Ye(_.ttl),_.workToProve=Ye(_.workToProve),_.priority=Ye(_.priority),$r(_.topics)||(_.topics=_.topics?[_.topics]:[]),_.topics=_.topics.map((function(A){return A.indexOf("0x")===0?A:"0x"+ue(be(A))})),_):null},t.inputTransactionFormatter=te,t.inputTransactionId=xr,t.isAddress=Jr,t.isArray=$r,t.isBigNumber=Pr,t.isBloom=function(_){return!!/^(0x)?[0-9a-f]{512}$/i.test(_)&&!!/^(0x)?[0-9a-f]{512}$/i.test(_)},t.isBoolean=vn,t.isChecksumAddress=Qr,t.isFunction=function(_){return typeof _=="function"},t.isHex=function(_){return typeof _=="string"&&/^0x[0-9a-fA-F]+$/.test(_)},t.isJson=function(_){try{return!!JSON.parse(_)}catch{return!1}},t.isObject=Zr,t.isPredefinedBlockNumber=Mi,t.isStrictAddress=hn,t.isString=gn,t.isTopic=function(_){return!!/^(0x)?[0-9a-f]{64}$/i.test(_)&&!!/^(0x)?[0-9a-f]{64}$/i.test(_)},t.isValidResponse=Ri,t.outputBigNumberFormatter=pi,t.outputBlockFormatter=ce,t.outputLogFormatter=Te,t.outputPostFormatter=function(_){return _?(_.expiry=Ce(_.expiry),_.sent=Ce(_.sent),_.ttl=Ce(_.ttl),_.workProved=Ce(_.workProved),_.topics||(_.topics=[]),_.topics=_.topics.map((function(A){return k(A)})),_):null},t.outputSyncingFormatter=Ke,t.outputTransactionFormatter=F,t.outputTransactionReceiptFormatter=Z,t.padLeft=B,t.padRight=function(_,A,q){return _+new Array(A-_.length+1).join(q||"0")},t.sha3=X,t.signedIsNegative=Ft,t.stringToUtf8Bytes=be,t.toAddress=cn,t.toArray=ur,t.toAscii=k,t.toBatchPayload=function(_){return _.map((function(A){return Ii(A.method,A.params)}))},t.toBigNumber=Lt,t.toBoolean=je,t.toChecksumAddress=ln,t.toData=de,t.toDecimal=Ce,t.toHex=Je,t.toJsonRpcRequest=Ii,t.toNullDecimal=Ue,t.toString=se,t.toStringData=Ae,t.toTwosComplement=Bt,t.toWei=function(_,A){const q=Lt(_).times(Vt(A));return Pr(_)?q:q.toString(10)},t.transformToFullName=L,Object.defineProperty(t,"__esModule",{value:!0})}))})(wl,wl.exports)),wl.exports}var Xu={},VC;function rz(){if(VC)return Xu;VC=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.SignatureValidator=void 0;const e=wf();async function a(t,n){const i=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(t,i).at(n)}return Xu.SignatureValidator=a,Xu}var R_={},ri={},Ho={},zo={},M_={},ni={},HC;function nt(){if(HC)return ni;HC=1;var e=ni&&ni.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.validateType=ni.generateLazyValidator=ni.Ajv=void 0;const a=e(xo());ni.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(T=>g.addKeyword(T)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}ni.generateLazyValidator=i;function o(u,c){return u.validate(c)}return ni.validateType=o,ni}var zC;function nz(){return zC||(zC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=nt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(M_)),M_}var N_={},WC;function iz(){return WC||(WC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=nt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(N_)),N_}var GC;function az(){return GC||(GC=1,(function(e){var a=zo&&zo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=zo&&zo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(nz(),e),t(iz(),e)})(zo)),zo}var Wo={},C_={},KC;function oz(){return KC||(KC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=nt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(C_)),C_}var j_={},L_={},YC;function Tf(){return YC||(YC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=nt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(L_)),L_}var D_={},XC;function as(){return XC||(XC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=nt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(D_)),D_}var q_={},k_={},JC;function u0(){return JC||(JC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=nt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(k_)),k_}var U_={},B_={},QC;function uk(){return QC||(QC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=nt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(B_)),B_}var ZC;function l0(){return ZC||(ZC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=as(),t=nt(),n=uk();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(U_)),U_}var $C;function c0(){return $C||($C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=nt(),t=u0(),n=l0();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(q_)),q_}var Go={},Ko={},F_={},V_={},xC;function ou(){return xC||(xC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=nt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(V_)),V_}var ej;function lk(){return ej||(ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=as(),t=ou(),n=nt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(F_)),F_}var H_={},tj;function sz(){return tj||(tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=nt(),t=lk();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(H_)),H_}var rj;function uz(){return rj||(rj=1,(function(e){var a=Ko&&Ko.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ko&&Ko.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lk(),e),t(sz(),e)})(Ko)),Ko}var z_={},W_={},nj;function ck(){return nj||(nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=nt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(W_)),W_}var G_={},ij;function dk(){return ij||(ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(G_)),G_}var K_={},aj;function fk(){return aj||(aj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=nt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(K_)),K_}var Y_={},Ju={},oj;function d0(){return oj||(oj=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.displayableProperties=void 0,Ju.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Ju}var X_={},sj;function pk(){return sj||(sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(X_)),X_}var J_={},uj;function yk(){return uj||(uj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(J_)),J_}var lj;function lz(){return lj||(lj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=nt(),t=d0(),n=ck(),i=fk(),o=pk(),u=yk(),c=dk();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Y_)),Y_}var cj;function cz(){return cj||(cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=ck();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=dk();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=fk();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=lz();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=pk();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=yk();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(z_)),z_}var Yo={},Q_={},Z_={},dj;function mk(){return dj||(dj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=nt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Z_)),Z_}var fj;function hk(){return fj||(fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=nt(),t=mk();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Q_)),Q_}var $_={},pj;function gk(){return pj||(pj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})($_)),$_}var x_={},yj;function f0(){return yj||(yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=Tf(),t=nt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(x_)),x_}var eE={},tE={},mj;function vk(){return mj||(mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(tE)),tE}var hj;function p0(){return hj||(hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=nt(),t=vk();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(eE)),eE}var rE={},nE={},Ki={},gj;function _k(){if(gj)return Ki;gj=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.isBaseAvatar=Ki.requiredBaseItemProps=Ki.baseItemProperties=void 0;const e=hk(),a=gk(),t=d0();Ki.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Ki.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Ki.isBaseAvatar=n,Ki}var vj;function dz(){return vj||(vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=nt(),t=as(),n=c0(),i=_k(),o=f0(),u=p0(),c=l0();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(nE)),nE}var _j;function fz(){return _j||(_j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=c0();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=dz();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=as();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=uk();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=l0();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(rE)),rE}var iE={},aE={},oE={},sE={},Ej;function Ek(){return Ej||(Ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=nt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(sE)),sE}var uE={},bj;function bk(){return bj||(bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=nt(),t=u0();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(uE)),uE}var wj;function wk(){return wj||(wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Ek(),t=nt(),n=bk();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(oE)),oE}var Tj;function pz(){return Tj||(Tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Tk(),t=nt(),n=_k(),i=f0(),o=p0(),u=wk();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(aE)),aE}var lE={},Sj;function yz(){return Sj||(Sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=nt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(lE)),lE}var Oj;function mz(){return Oj||(Oj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=pz();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=bk();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=wk();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Ek();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=yz();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(iE)),iE}var Aj;function Tk(){return Aj||(Aj=1,(function(e){var a=Yo&&Yo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var T=Object.getOwnPropertyDescriptor(y,m);(!T||("get"in T?!y.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,T)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=Yo&&Yo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=hk();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=mk();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=gk();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=u0();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=f0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=p0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(fz(),e),t(mz(),e)})(Yo)),Yo}var Xo={},Pj;function hz(){return Pj||(Pj=1,(function(e){var a=Xo&&Xo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Xo&&Xo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(vk(),e)})(Xo)),Xo}var cE={},dE={},Ij;function y0(){return Ij||(Ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=nt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(dE)),dE}var Rj;function gz(){return Rj||(Rj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=ou(),t=y0(),n=nt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(cE)),cE}var fE={},pE={},Mj;function Sk(){return Mj||(Mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=ou(),t=nt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(pE)),pE}var Nj;function vz(){return Nj||(Nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=ou(),t=Sk(),n=nt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(fE)),fE}var yE={},Cj;function _z(){return Cj||(Cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=y0(),t=nt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(yE)),yE}var Jo={},mE={},jj;function Ez(){return jj||(jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=as(),t=ou(),n=nt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(mE)),mE}var Lj;function bz(){return Lj||(Lj=1,(function(e){var a=Jo&&Jo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Jo&&Jo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Ez(),e)})(Jo)),Jo}var Dj;function m0(){return Dj||(Dj=1,(function(e){var a=Go&&Go.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Go&&Go.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uz(),e),t(cz(),e),t(Tk(),e),t(d0(),e),t(hz(),e),t(gz(),e),t(vz(),e),t(_z(),e),t(bz(),e)})(Go)),Go}var qj;function wz(){return qj||(qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=Tf(),t=as(),n=c0(),i=nt(),o=m0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(j_)),j_}var kj;function Tz(){return kj||(kj=1,(function(e){var a=Wo&&Wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Wo&&Wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oz(),e),t(wz(),e)})(Wo)),Wo}var Uj;function Sz(){return Uj||(Uj=1,(function(e){var a=Ho&&Ho.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ho&&Ho.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(az(),e),t(Tz(),e)})(Ho)),Ho}var hE={},gE={},vE={},Bj;function Ok(){return Bj||(Bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=nt(),t=fi();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(vE)),vE}var _E={},Fj;function di(){return Fj||(Fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=nt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(_E)),_E}var Vj;function fi(){return Vj||(Vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=nt(),t=Ok(),n=di();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(gE)),gE}var EE={},Hj;function h0(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=nt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(EE)),EE}var zj;function Oz(){return zj||(zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=nt(),t=fi(),n=h0(),i=di();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(hE)),hE}var bE={},Wj;function Az(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=nt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(bE)),bE}var wE={},Gj;function Pz(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=nt(),t=fi(),n=di();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(wE)),wE}var TE={},SE={},Kj;function Sf(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=nt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(SE)),SE}var Yj;function Iz(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=nt(),t=fi(),n=di(),i=Sf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(TE)),TE}var OE={},AE={},Xj;function Ak(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=nt(),t=fi(),n=m0(),i=di(),o=Sf(),u=Tf(),c=as();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(AE)),AE}var Jj;function Rz(){return Jj||(Jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=nt(),t=fi(),n=di(),i=Ak(),o=Sf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(OE)),OE}var PE={},Qj;function Mz(){return Qj||(Qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(PE)),PE}var IE={},Zj;function Nz(){return Zj||(Zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=nt(),t=fi(),n=di();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(IE)),IE}var RE={},$j;function Cz(){return $j||($j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(RE)),RE}var ME={},xj;function jz(){return xj||(xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=nt(),t=fi(),n=h0(),i=di();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(ME)),ME}var NE={},eL;function Lz(){return eL||(eL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=nt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(NE)),NE}var CE={},tL;function Pk(){return tL||(tL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=nt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(CE)),CE}var jE={},rL;function Dz(){return rL||(rL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=nt(),t=fi(),n=Pk(),i=di();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(jE)),jE}var LE={},nL;function qz(){return nL||(nL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=nt(),t=fi(),n=di();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(LE)),LE}var DE={},iL;function kz(){return iL||(iL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(DE)),DE}var qE={},aL;function Uz(){return aL||(aL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(qE)),qE}var kE={},oL;function Bz(){return oL||(oL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=nt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(kE)),kE}var UE={},sL;function Fz(){return sL||(sL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=nt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(UE)),UE}var Qo={},BE={},uL;function Vz(){return uL||(uL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=nt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(BE)),BE}var FE={},lL;function Hz(){return lL||(lL=1,Object.defineProperty(FE,"__esModule",{value:!0})),FE}var VE={},cL;function zz(){return cL||(cL=1,Object.defineProperty(VE,"__esModule",{value:!0})),VE}var HE={},dL;function Wz(){return dL||(dL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=nt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(HE)),HE}var zE={},fL;function Gz(){return fL||(fL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=nt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(zE)),zE}var WE={},pL;function Kz(){return pL||(pL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=nt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(WE)),WE}var GE={},yL;function Yz(){return yL||(yL=1,Object.defineProperty(GE,"__esModule",{value:!0})),GE}var KE={},mL;function Xz(){return mL||(mL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=nt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(KE)),KE}var YE={},hL;function Jz(){return hL||(hL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=nt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(YE)),YE}var XE={},gL;function Qz(){return gL||(gL=1,Object.defineProperty(XE,"__esModule",{value:!0})),XE}var JE={},vL;function Zz(){return vL||(vL=1,Object.defineProperty(JE,"__esModule",{value:!0})),JE}var QE={},_L;function $z(){return _L||(_L=1,Object.defineProperty(QE,"__esModule",{value:!0})),QE}var ZE={},EL;function xz(){return EL||(EL=1,Object.defineProperty(ZE,"__esModule",{value:!0})),ZE}var $E={},bL;function e5(){return bL||(bL=1,Object.defineProperty($E,"__esModule",{value:!0})),$E}var xE={},wL;function t5(){return wL||(wL=1,Object.defineProperty(xE,"__esModule",{value:!0})),xE}var eb={},TL;function r5(){return TL||(TL=1,Object.defineProperty(eb,"__esModule",{value:!0})),eb}var tb={},SL;function n5(){return SL||(SL=1,Object.defineProperty(tb,"__esModule",{value:!0})),tb}var OL;function i5(){return OL||(OL=1,(function(e){var a=Qo&&Qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Qo&&Qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Vz(),e),t(Hz(),e),t(zz(),e),t(Wz(),e),t(Gz(),e),t(Kz(),e),t(Yz(),e),t(Xz(),e),t(Jz(),e),t(Qz(),e),t(Zz(),e),t($z(),e),t(xz(),e),t(e5(),e),t(t5(),e),t(r5(),e),t(n5(),e)})(Qo)),Qo}var rb={},AL;function a5(){return AL||(AL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(rb)),rb}var PL;function o5(){return PL||(PL=1,(function(e){var a=ri&&ri.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=ri&&ri.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=ri&&ri.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=ri&&ri.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(Sz());e.sdk=o,i(nt(),e);var u=Oz();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=Az();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=fi();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Ok();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=Pz();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=Iz();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=Rz();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var T=h0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return T.ListingStatus}});var M=Mz();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=Nz();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=di();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=Sf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Ak();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=Cz();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var S=jz();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return S.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return S.OrderSortBy}});var v=Lz();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=Tf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var j=Pk();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return j.SaleType}});var V=Dz();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return V.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return V.SaleSortBy}});var U=qz();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=kz();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=Uz();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=Bz();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=Fz();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(i5(),e),i(m0(),e),i(ou(),e),i(a5(),e),i(y0(),e),i(Sk(),e)})(ri)),ri}var IL;function Ik(){return IL||(IL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const a=o5();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return a.AuthChain}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return a.AuthLinkType}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return a.AuthLink}})})(R_)),R_}var Qu={},RL;function s5(){if(RL)return Qu;RL=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.moveMinutes=void 0;function e(a){const t=new Date;return t.setMinutes(t.getMinutes()+a),t}return Qu.moveMinutes=e,Qu}var Gd={},ML;function u5(){if(ML)return Gd;ML=1,Object.defineProperty(Gd,"__esModule",{value:!0});const e=wf();class a{constructor(n,i=!0){this.requestManager=n,this.checkedBlocks={},this.saveBlocks=i,i&&(this.savedBlocks={}),this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),i=await this.getBlockWrapper(1);this.blockTime=(n.timestamp-i.timestamp)/Number(n.number)-1,this.firstTimestamp=i.timestamp}async getDate(n,i=!0){const o=n/1e3,u=Date.now()/1e3;if((typeof this.firstTimestamp>"u"||typeof this.blockTime>"u")&&await this.fillBlockTime(),o<this.firstTimestamp)return{block:1,timestamp:o};if(o>=u||o>this.savedBlocks.latest.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:o};this.checkedBlocks[o]=[];const c=await this.getBlockWrapper(Math.ceil((o-this.firstTimestamp/this.blockTime)/1e3));return{block:await this.findBetter(o,c,i),timestamp:o}}async findBetter(n,i,o,u=this.blockTime){if(await this.isBetterBlock(n,i,o))return i.number;const c=n-i.timestamp;let f=Math.ceil(c/u);f===0&&(f=c<0?-1:1);const p=await this.getBlockWrapper(this.getNextBlock(n,i.number,f));return u=Math.abs((i.timestamp-p.timestamp)/(i.number-p.number)),this.findBetter(n,p,o,u)}async isBetterBlock(n,i,o){const u=i.timestamp;if(o){if(u<n)return!1;const c=await this.getBlockWrapper(i.number-1);if(u>=n&&c.timestamp<n)return!0}else{if(u>=n)return!1;const c=await this.getBlockWrapper(i.number+1);if(u<n&&c.timestamp>=n)return!0}return!1}getNextBlock(n,i,o){const u=i+o;return this.checkedBlocks[n].includes(u)?this.getNextBlock(n,i,o<0?++o:--o):(this.checkedBlocks[n].push(u),u)}async getBlockWrapper(n){if(!this.saveBlocks){const o=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(o.number).toNumber(),timestamp:(0,e.toBigNumber)(o.timestamp).toNumber()}}if(this.savedBlocks[n.toString()])return this.savedBlocks[n];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:i}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[n.toString()]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(i).toNumber()},this.requests++,this.savedBlocks[n.toString()]}}return Gd.default=a,Gd}var Lr={},nb={},ib={},Vr={},NL;function g0(){if(NL)return Vr;NL=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.output=Vr.exists=Vr.hash=Vr.bytes=Vr.bool=Vr.number=void 0;function e(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}Vr.number=e;function a(c){if(typeof c!="boolean")throw new Error(`Expected boolean, not ${c}`)}Vr.bool=a;function t(c,...f){if(!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length>0&&!f.includes(c.length))throw new TypeError(`Expected Uint8Array of length ${f}, not of length=${c.length}`)}Vr.bytes=t;function n(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(c.outputLen),e(c.blockLen)}Vr.hash=n;function i(c,f=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(f&&c.finished)throw new Error("Hash#digest() has already been called")}Vr.exists=i;function o(c,f){t(c);const p=f.outputLen;if(c.length<p)throw new Error(`digestInto() expects output buffer of length at least ${p}`)}Vr.output=o;const u={number:e,bool:a,bytes:t,hash:n,exists:i,output:o};return Vr.default=u,Vr}var ab={},Zu={},CL;function l5(){return CL||(CL=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.crypto=void 0,Zu.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}),Zu}var jL;function Rl(){return jL||(jL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const a=l5(),t=S=>new Uint8Array(S.buffer,S.byteOffset,S.byteLength);e.u8=t;const n=S=>new Uint32Array(S.buffer,S.byteOffset,Math.floor(S.byteLength/4));e.u32=n;const i=S=>new DataView(S.buffer,S.byteOffset,S.byteLength);e.createView=i;const o=(S,v)=>S<<32-v|S>>>v;if(e.rotr=o,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const u=Array.from({length:256},(S,v)=>v.toString(16).padStart(2,"0"));function c(S){if(!(S instanceof Uint8Array))throw new Error("Uint8Array expected");let v="";for(let O=0;O<S.length;O++)v+=u[S[O]];return v}e.bytesToHex=c;function f(S){if(typeof S!="string")throw new TypeError("hexToBytes: expected string, got "+typeof S);if(S.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const v=new Uint8Array(S.length/2);for(let O=0;O<v.length;O++){const j=O*2,V=S.slice(j,j+2),U=Number.parseInt(V,16);if(Number.isNaN(U)||U<0)throw new Error("Invalid byte sequence");v[O]=U}return v}e.hexToBytes=f;const p=async()=>{};e.nextTick=p;async function y(S,v,O){let j=Date.now();for(let V=0;V<S;V++){O(V);const U=Date.now()-j;U>=0&&U<v||(await(0,e.nextTick)(),j+=U)}}e.asyncLoop=y;function m(S){if(typeof S!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof S}`);return new TextEncoder().encode(S)}e.utf8ToBytes=m;function g(S){if(typeof S=="string"&&(S=m(S)),!(S instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof S})`);return S}e.toBytes=g;function T(...S){if(!S.every(j=>j instanceof Uint8Array))throw new Error("Uint8Array list expected");if(S.length===1)return S[0];const v=S.reduce((j,V)=>j+V.length,0),O=new Uint8Array(v);for(let j=0,V=0;j<S.length;j++){const U=S[j];O.set(U,V),V+=U.length}return O}e.concatBytes=T;class M{clone(){return this._cloneInto()}}e.Hash=M;const R=S=>Object.prototype.toString.call(S)==="[object Object]"&&S.constructor===Object;function I(S,v){if(v!==void 0&&(typeof v!="object"||!R(v)))throw new TypeError("Options should be object or undefined");return Object.assign(S,v)}e.checkOpts=I;function N(S){const v=j=>S().update(g(j)).digest(),O=S();return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=()=>S(),v}e.wrapConstructor=N;function E(S){const v=(j,V)=>S(V).update(g(j)).digest(),O=S({});return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=j=>S(j),v}e.wrapConstructorWithOpts=E;function P(S=32){if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(S));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(S).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=P})(ab)),ab}var LL;function c5(){return LL||(LL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const a=g0(),t=Rl();class n extends t.Hash{constructor(u,c){super(),this.finished=!1,this.destroyed=!1,a.default.hash(u);const f=(0,t.toBytes)(c);if(this.iHash=u.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const p=this.blockLen,y=new Uint8Array(p);y.set(f.length>p?u.create().update(f).digest():f);for(let m=0;m<y.length;m++)y[m]^=54;this.iHash.update(y),this.oHash=u.create();for(let m=0;m<y.length;m++)y[m]^=106;this.oHash.update(y),y.fill(0)}update(u){return a.default.exists(this),this.iHash.update(u),this}digestInto(u){a.default.exists(this),a.default.bytes(u,this.outputLen),this.finished=!0,this.iHash.digestInto(u),this.oHash.update(u),this.oHash.digestInto(u),this.destroy()}digest(){const u=new Uint8Array(this.oHash.outputLen);return this.digestInto(u),u}_cloneInto(u){u||(u=Object.create(Object.getPrototypeOf(this),{}));const{oHash:c,iHash:f,finished:p,destroyed:y,blockLen:m,outputLen:g}=this;return u=u,u.finished=p,u.destroyed=y,u.blockLen=m,u.outputLen=g,u.oHash=c._cloneInto(u.oHash),u.iHash=f._cloneInto(u.iHash),u}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const i=(o,u,c)=>new n(o,u).update(c).digest();e.hmac=i,e.hmac.create=(o,u)=>new n(o,u)})(ib)),ib}var Zo={},$u={},DL;function d5(){if(DL)return $u;DL=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.SHA2=void 0;const e=g0(),a=Rl();function t(i,o,u,c){if(typeof i.setBigUint64=="function")return i.setBigUint64(o,u,c);const f=BigInt(32),p=BigInt(4294967295),y=Number(u>>f&p),m=Number(u&p),g=c?4:0,T=c?0:4;i.setUint32(o+g,y,c),i.setUint32(o+T,m,c)}class n extends a.Hash{constructor(o,u,c,f){super(),this.blockLen=o,this.outputLen=u,this.padOffset=c,this.isLE=f,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,a.createView)(this.buffer)}update(o){e.default.exists(this);const{view:u,buffer:c,blockLen:f}=this;o=(0,a.toBytes)(o);const p=o.length;for(let y=0;y<p;){const m=Math.min(f-this.pos,p-y);if(m===f){const g=(0,a.createView)(o);for(;f<=p-y;y+=f)this.process(g,y);continue}c.set(o.subarray(y,y+m),this.pos),this.pos+=m,y+=m,this.pos===f&&(this.process(u,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){e.default.exists(this),e.default.output(o,this),this.finished=!0;const{buffer:u,view:c,blockLen:f,isLE:p}=this;let{pos:y}=this;u[y++]=128,this.buffer.subarray(y).fill(0),this.padOffset>f-y&&(this.process(c,0),y=0);for(let R=y;R<f;R++)u[R]=0;t(c,f-8,BigInt(this.length*8),p),this.process(c,0);const m=(0,a.createView)(o),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const T=g/4,M=this.get();if(T>M.length)throw new Error("_sha2: outputLen bigger than state");for(let R=0;R<T;R++)m.setUint32(4*R,M[R],p)}digest(){const{buffer:o,outputLen:u}=this;this.digestInto(o);const c=o.slice(0,u);return this.destroy(),c}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:u,buffer:c,length:f,finished:p,destroyed:y,pos:m}=this;return o.length=f,o.pos=m,o.finished=p,o.destroyed=y,f%u&&o.buffer.set(c),o}}return $u.SHA2=n,$u}var qL;function Rk(){if(qL)return Zo;qL=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.sha224=Zo.sha256=void 0;const e=d5(),a=Rl(),t=(p,y,m)=>p&y^~p&m,n=(p,y,m)=>p&y^p&m^y&m,i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends e.SHA2{constructor(){super(64,32,8,!1),this.A=o[0]|0,this.B=o[1]|0,this.C=o[2]|0,this.D=o[3]|0,this.E=o[4]|0,this.F=o[5]|0,this.G=o[6]|0,this.H=o[7]|0}get(){const{A:y,B:m,C:g,D:T,E:M,F:R,G:I,H:N}=this;return[y,m,g,T,M,R,I,N]}set(y,m,g,T,M,R,I,N){this.A=y|0,this.B=m|0,this.C=g|0,this.D=T|0,this.E=M|0,this.F=R|0,this.G=I|0,this.H=N|0}process(y,m){for(let S=0;S<16;S++,m+=4)u[S]=y.getUint32(m,!1);for(let S=16;S<64;S++){const v=u[S-15],O=u[S-2],j=(0,a.rotr)(v,7)^(0,a.rotr)(v,18)^v>>>3,V=(0,a.rotr)(O,17)^(0,a.rotr)(O,19)^O>>>10;u[S]=V+u[S-7]+j+u[S-16]|0}let{A:g,B:T,C:M,D:R,E:I,F:N,G:E,H:P}=this;for(let S=0;S<64;S++){const v=(0,a.rotr)(I,6)^(0,a.rotr)(I,11)^(0,a.rotr)(I,25),O=P+v+t(I,N,E)+i[S]+u[S]|0,V=((0,a.rotr)(g,2)^(0,a.rotr)(g,13)^(0,a.rotr)(g,22))+n(g,T,M)|0;P=E,E=N,N=I,I=R+O|0,R=M,M=T,T=g,g=O+V|0}g=g+this.A|0,T=T+this.B|0,M=M+this.C|0,R=R+this.D|0,I=I+this.E|0,N=N+this.F|0,E=E+this.G|0,P=P+this.H|0,this.set(g,T,M,R,I,N,E,P)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return Zo.sha256=(0,a.wrapConstructor)(()=>new c),Zo.sha224=(0,a.wrapConstructor)(()=>new f),Zo}var ob={};const f5={},p5=Object.freeze(Object.defineProperty({__proto__:null,default:f5},Symbol.toStringTag,{value:"Module"})),y5=F2(p5);var kL;function UL(){return kL||(kL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const a=y5,t=BigInt(0),n=BigInt(1),i=BigInt(2),o=BigInt(3),u=BigInt(8),c=Object.freeze({a:t,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:n,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});e.CURVE=c;const f=(te,F)=>(te+F/i)/F,p={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(te){const{n:F}=c,Z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),ce=-n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Te=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Pe=Z,Ge=BigInt("0x100000000000000000000000000000000"),Ke=f(Pe*te,F),mt=f(-ce*te,F);let ut=k(te-Ke*Z-mt*Te,F),_t=k(-Ke*ce-mt*Pe,F);const Tt=ut>Ge,At=_t>Ge;if(Tt&&(ut=F-ut),At&&(_t=F-_t),ut>Ge||_t>Ge)throw new Error("splitScalarEndo: Endomorphism failed, k="+te);return{k1neg:Tt,k1:ut,k2neg:At,k2:_t}}},y=32,m=32,g=32,T=y+1,M=2*y+1;function R(te){const{a:F,b:Z}=c,ce=k(te*te),Te=k(ce*te);return k(Te+F*te+Z)}const I=c.a===t;class N extends Error{constructor(F){super(F)}}function E(te){if(!(te instanceof P))throw new TypeError("JacobianPoint expected")}class P{constructor(F,Z,ce){this.x=F,this.y=Z,this.z=ce}static fromAffine(F){if(!(F instanceof O))throw new TypeError("JacobianPoint#fromAffine: expected Point");return F.equals(O.ZERO)?P.ZERO:new P(F.x,F.y,n)}static toAffineBatch(F){const Z=Re(F.map(ce=>ce.z));return F.map((ce,Te)=>ce.toAffine(Z[Te]))}static normalizeZ(F){return P.toAffineBatch(F).map(P.fromAffine)}equals(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F,mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt);return _t===Tt&&At===xt}negate(){return new P(this.x,k(-this.y),this.z)}double(){const{x:F,y:Z,z:ce}=this,Te=k(F*F),Pe=k(Z*Z),Ge=k(Pe*Pe),Ke=F+Pe,mt=k(i*(k(Ke*Ke)-Te-Ge)),ut=k(o*Te),_t=k(ut*ut),Tt=k(_t-i*mt),At=k(ut*(mt-Tt)-u*Ge),xt=k(i*Z*ce);return new P(Tt,At,xt)}add(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F;if(Pe===t||Ge===t)return this;if(Z===t||ce===t)return F;const mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt),Jt=k(Tt-_t),gr=k(xt-At);if(Jt===t)return gr===t?this.double():P.ZERO;const Dr=k(Jt*Jt),En=k(Jt*Dr),Dn=k(_t*Dr),ea=k(gr*gr-En-i*Dn),Rr=k(gr*(Dn-ea)-At*En),yi=k(Te*Ke*Jt);return new P(ea,Rr,yi)}subtract(F){return this.add(F.negate())}multiplyUnsafe(F){const Z=P.ZERO;if(typeof F=="bigint"&&F===t)return Z;let ce=B(F);if(ce===n)return this;if(!I){let Tt=Z,At=this;for(;ce>t;)ce&n&&(Tt=Tt.add(At)),At=At.double(),ce>>=n;return Tt}let{k1neg:Te,k1:Pe,k2neg:Ge,k2:Ke}=p.splitScalar(ce),mt=Z,ut=Z,_t=this;for(;Pe>t||Ke>t;)Pe&n&&(mt=mt.add(_t)),Ke&n&&(ut=ut.add(_t)),_t=_t.double(),Pe>>=n,Ke>>=n;return Te&&(mt=mt.negate()),Ge&&(ut=ut.negate()),ut=new P(k(ut.x*p.beta),ut.y,ut.z),mt.add(ut)}precomputeWindow(F){const Z=I?128/F+1:256/F+1,ce=[];let Te=this,Pe=Te;for(let Ge=0;Ge<Z;Ge++){Pe=Te,ce.push(Pe);for(let Ke=1;Ke<2**(F-1);Ke++)Pe=Pe.add(Te),ce.push(Pe);Te=Pe.double()}return ce}wNAF(F,Z){!Z&&this.equals(P.BASE)&&(Z=O.BASE);const ce=Z&&Z._WINDOW_SIZE||1;if(256%ce)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let Te=Z&&v.get(Z);Te||(Te=this.precomputeWindow(ce),Z&&ce!==1&&(Te=P.normalizeZ(Te),v.set(Z,Te)));let Pe=P.ZERO,Ge=P.BASE;const Ke=1+(I?128/ce:256/ce),mt=2**(ce-1),ut=BigInt(2**ce-1),_t=2**ce,Tt=BigInt(ce);for(let At=0;At<Ke;At++){const xt=At*mt;let Jt=Number(F&ut);F>>=Tt,Jt>mt&&(Jt-=_t,F+=n);const gr=xt,Dr=xt+Math.abs(Jt)-1,En=At%2!==0,Dn=Jt<0;Jt===0?Ge=Ge.add(S(En,Te[gr])):Pe=Pe.add(S(Dn,Te[Dr]))}return{p:Pe,f:Ge}}multiply(F,Z){let ce=B(F),Te,Pe;if(I){const{k1neg:Ge,k1:Ke,k2neg:mt,k2:ut}=p.splitScalar(ce);let{p:_t,f:Tt}=this.wNAF(Ke,Z),{p:At,f:xt}=this.wNAF(ut,Z);_t=S(Ge,_t),At=S(mt,At),At=new P(k(At.x*p.beta),At.y,At.z),Te=_t.add(At),Pe=Tt.add(xt)}else{const{p:Ge,f:Ke}=this.wNAF(ce,Z);Te=Ge,Pe=Ke}return P.normalizeZ([Te,Pe])[0]}toAffine(F){const{x:Z,y:ce,z:Te}=this,Pe=this.equals(P.ZERO);F==null&&(F=Pe?u:oe(Te));const Ge=F,Ke=k(Ge*Ge),mt=k(Ke*Ge),ut=k(Z*Ke),_t=k(ce*mt),Tt=k(Te*Ge);if(Pe)return O.ZERO;if(Tt!==n)throw new Error("invZ was invalid");return new O(ut,_t)}}P.BASE=new P(c.Gx,c.Gy,n),P.ZERO=new P(t,n,t);function S(te,F){const Z=F.negate();return te?Z:F}const v=new WeakMap;class O{constructor(F,Z){this.x=F,this.y=Z}_setWindowSize(F){this._WINDOW_SIZE=F,v.delete(this)}hasEvenY(){return this.y%i===t}static fromCompressedHex(F){const Z=F.length===32,ce=X(Z?F:F.subarray(1));if(!je(ce))throw new Error("Point is not on curve");const Te=R(ce);let Pe=W(Te);const Ge=(Pe&n)===n;Z?Ge&&(Pe=k(-Pe)):(F[0]&1)===1!==Ge&&(Pe=k(-Pe));const Ke=new O(ce,Pe);return Ke.assertValidity(),Ke}static fromUncompressedHex(F){const Z=X(F.subarray(1,y+1)),ce=X(F.subarray(y+1,y*2+1)),Te=new O(Z,ce);return Te.assertValidity(),Te}static fromHex(F){const Z=C(F),ce=Z.length,Te=Z[0];if(ce===y)return this.fromCompressedHex(Z);if(ce===T&&(Te===2||Te===3))return this.fromCompressedHex(Z);if(ce===M&&Te===4)return this.fromUncompressedHex(Z);throw new Error(`Point.fromHex: received invalid point. Expected 32-${T} compressed bytes or ${M} uncompressed bytes, not ${ce}`)}static fromPrivateKey(F){return O.BASE.multiply(Je(F))}static fromSignature(F,Z,ce){const{r:Te,s:Pe}=Lt(Z);if(![0,1,2,3].includes(ce))throw new Error("Cannot recover: invalid recovery bit");const Ge=Ue(C(F)),{n:Ke}=c,mt=ce===2||ce===3?Te+Ke:Te,ut=oe(mt,Ke),_t=k(-Ge*ut,Ke),Tt=k(Pe*ut,Ke),At=ce&1?"03":"02",xt=O.fromHex(At+Me(mt)),Jt=O.BASE.multiplyAndAddUnsafe(xt,_t,Tt);if(!Jt)throw new Error("Cannot recover signature: point at infinify");return Jt.assertValidity(),Jt}toRawBytes(F=!1){return ue(this.toHex(F))}toHex(F=!1){const Z=Me(this.x);return F?`${this.hasEvenY()?"02":"03"}${Z}`:`04${Z}${Me(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const F="Point is not on elliptic curve",{x:Z,y:ce}=this;if(!je(Z)||!je(ce))throw new Error(F);const Te=k(ce*ce),Pe=R(Z);if(k(Te-Pe)!==t)throw new Error(F)}equals(F){return this.x===F.x&&this.y===F.y}negate(){return new O(this.x,k(-this.y))}double(){return P.fromAffine(this).double().toAffine()}add(F){return P.fromAffine(this).add(P.fromAffine(F)).toAffine()}subtract(F){return this.add(F.negate())}multiply(F){return P.fromAffine(this).multiply(F,this).toAffine()}multiplyAndAddUnsafe(F,Z,ce){const Te=P.fromAffine(this),Pe=Z===t||Z===n||this!==O.BASE?Te.multiplyUnsafe(Z):Te.multiply(Z),Ge=P.fromAffine(F).multiplyUnsafe(ce),Ke=Pe.add(Ge);return Ke.equals(P.ZERO)?void 0:Ke.toAffine()}}e.Point=O,O.BASE=new O(c.Gx,c.Gy),O.ZERO=new O(t,t);function j(te){return Number.parseInt(te[0],16)>=8?"00"+te:te}function V(te){if(te.length<2||te[0]!==2)throw new Error(`Invalid signature integer tag: ${be(te)}`);const F=te[1],Z=te.subarray(2,F+2);if(!F||Z.length!==F)throw new Error("Invalid signature integer: wrong length");if(Z[0]===0&&Z[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:X(Z),left:te.subarray(F+2)}}function U(te){if(te.length<2||te[0]!=48)throw new Error(`Invalid signature tag: ${be(te)}`);if(te[1]!==te.length-2)throw new Error("Invalid signature: incorrect length");const{data:F,left:Z}=V(te.subarray(2)),{data:ce,left:Te}=V(Z);if(Te.length)throw new Error(`Invalid signature: left bytes after parsing: ${be(Te)}`);return{r:F,s:ce}}class K{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromCompact(F){const Z=F instanceof Uint8Array,ce="Signature.fromCompact";if(typeof F!="string"&&!Z)throw new TypeError(`${ce}: Expected string or Uint8Array`);const Te=Z?be(F):F;if(Te.length!==128)throw new Error(`${ce}: Expected 64-byte hex`);return new K(we(Te.slice(0,64)),we(Te.slice(64,128)))}static fromDER(F){const Z=F instanceof Uint8Array;if(typeof F!="string"&&!Z)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:ce,s:Te}=U(Z?F:ue(F));return new K(ce,Te)}static fromHex(F){return this.fromDER(F)}assertValidity(){const{r:F,s:Z}=this;if(!Ae(F))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Ae(Z))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const F=c.n>>n;return this.s>F}normalizeS(){return this.hasHighS()?new K(this.r,k(-this.s,c.n)):this}toDERRawBytes(){return ue(this.toDERHex())}toDERHex(){const F=j(qe(this.s)),Z=j(qe(this.r)),ce=F.length/2,Te=Z.length/2,Pe=qe(ce),Ge=qe(Te);return`30${qe(Te+ce+4)}02${Ge}${Z}02${Pe}${F}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return ue(this.toCompactHex())}toCompactHex(){return Me(this.r)+Me(this.s)}}e.Signature=K;function ae(...te){if(!te.every(ce=>ce instanceof Uint8Array))throw new Error("Uint8Array list expected");if(te.length===1)return te[0];const F=te.reduce((ce,Te)=>ce+Te.length,0),Z=new Uint8Array(F);for(let ce=0,Te=0;ce<te.length;ce++){const Pe=te[ce];Z.set(Pe,Te),Te+=Pe.length}return Z}const _e=Array.from({length:256},(te,F)=>F.toString(16).padStart(2,"0"));function be(te){if(!(te instanceof Uint8Array))throw new Error("Expected Uint8Array");let F="";for(let Z=0;Z<te.length;Z++)F+=_e[te[Z]];return F}const ye=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function Me(te){if(typeof te!="bigint")throw new Error("Expected bigint");if(!(t<=te&&te<ye))throw new Error("Expected number 0 <= n < 2^256");return te.toString(16).padStart(64,"0")}function Ne(te){const F=ue(Me(te));if(F.length!==32)throw new Error("Error: expected 32 bytes");return F}function qe(te){const F=te.toString(16);return F.length&1?`0${F}`:F}function we(te){if(typeof te!="string")throw new TypeError("hexToNumber: expected string, got "+typeof te);return BigInt(`0x${te}`)}function ue(te){if(typeof te!="string")throw new TypeError("hexToBytes: expected string, got "+typeof te);if(te.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+te.length);const F=new Uint8Array(te.length/2);for(let Z=0;Z<F.length;Z++){const ce=Z*2,Te=te.slice(ce,ce+2),Pe=Number.parseInt(Te,16);if(Number.isNaN(Pe)||Pe<0)throw new Error("Invalid byte sequence");F[Z]=Pe}return F}function X(te){return we(be(te))}function C(te){return te instanceof Uint8Array?Uint8Array.from(te):ue(te)}function B(te){if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)return BigInt(te);if(typeof te=="bigint"&&Ae(te))return te;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function k(te,F=c.P){const Z=te%F;return Z>=t?Z:F+Z}function L(te,F){const{P:Z}=c;let ce=te;for(;F-- >t;)ce*=ce,ce%=Z;return ce}function W(te){const{P:F}=c,Z=BigInt(6),ce=BigInt(11),Te=BigInt(22),Pe=BigInt(23),Ge=BigInt(44),Ke=BigInt(88),mt=te*te*te%F,ut=mt*mt*te%F,_t=L(ut,o)*ut%F,Tt=L(_t,o)*ut%F,At=L(Tt,i)*mt%F,xt=L(At,ce)*At%F,Jt=L(xt,Te)*xt%F,gr=L(Jt,Ge)*Jt%F,Dr=L(gr,Ke)*gr%F,En=L(Dr,Ge)*Jt%F,Dn=L(En,o)*ut%F,ea=L(Dn,Pe)*xt%F,Rr=L(ea,Z)*mt%F,yi=L(Rr,i);if(yi*yi%F!==te)throw new Error("Cannot find square root");return yi}function oe(te,F=c.P){if(te===t||F<=t)throw new Error(`invert: expected positive integers, got n=${te} mod=${F}`);let Z=k(te,F),ce=F,Te=t,Pe=n;for(;Z!==t;){const Ke=ce/Z,mt=ce%Z,ut=Te-Pe*Ke;ce=Z,Z=mt,Te=Pe,Pe=ut}if(ce!==n)throw new Error("invert: does not exist");return k(Te,F)}function Re(te,F=c.P){const Z=new Array(te.length),ce=te.reduce((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=Pe,k(Pe*Ge,F)),n),Te=oe(ce,F);return te.reduceRight((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=k(Pe*Z[Ke],F),k(Pe*Ge,F)),Te),Z}function Se(te){const F=te.length*8-m*8,Z=X(te);return F>0?Z>>BigInt(F):Z}function Ue(te,F=!1){const Z=Se(te);if(F)return Z;const{n:ce}=c;return Z>=ce?Z-ce:Z}let Ce,se;class de{constructor(F,Z){if(this.hashLen=F,this.qByteLen=Z,typeof F!="number"||F<2)throw new Error("hashLen must be a number");if(typeof Z!="number"||Z<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(F).fill(1),this.k=new Uint8Array(F).fill(0),this.counter=0}hmac(...F){return e.utils.hmacSha256(this.k,...F)}hmacSync(...F){return se(this.k,...F)}checkSync(){if(typeof se!="function")throw new N("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(F=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),F),this.v=await this.hmac(this.v),F.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),F),this.v=await this.hmac(this.v))}reseedSync(F=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),F),this.v=this.hmacSync(this.v),F.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),F),this.v=this.hmacSync(this.v))}async generate(){this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=await this.hmac(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}generateSync(){this.checkSync(),this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=this.hmacSync(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}}function Ae(te){return t<te&&te<c.n}function je(te){return t<te&&te<c.P}function Ye(te,F,Z,ce=!0){const{n:Te}=c,Pe=Ue(te,!0);if(!Ae(Pe))return;const Ge=oe(Pe,Te),Ke=O.BASE.multiply(Pe),mt=k(Ke.x,Te);if(mt===t)return;const ut=k(Ge*k(F+Z*mt,Te),Te);if(ut===t)return;let _t=new K(mt,ut),Tt=(Ke.x===_t.r?0:2)|Number(Ke.y&n);return ce&&_t.hasHighS()&&(_t=_t.normalizeS(),Tt^=1),{sig:_t,recovery:Tt}}function Je(te){let F;if(typeof te=="bigint")F=te;else if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)F=BigInt(te);else if(typeof te=="string"){if(te.length!==2*m)throw new Error("Expected 32 bytes of private key");F=we(te)}else if(te instanceof Uint8Array){if(te.length!==m)throw new Error("Expected 32 bytes of private key");F=X(te)}else throw new TypeError("Expected valid private key");if(!Ae(F))throw new Error("Expected private key: 0 < key < n");return F}function Vt(te){return te instanceof O?(te.assertValidity(),te):O.fromHex(te)}function Lt(te){if(te instanceof K)return te.assertValidity(),te;try{return K.fromDER(te)}catch{return K.fromCompact(te)}}function rr(te,F=!1){return O.fromPrivateKey(te).toRawBytes(F)}e.getPublicKey=rr;function Bt(te,F,Z,ce=!1){return O.fromSignature(te,F,Z).toRawBytes(ce)}e.recoverPublicKey=Bt;function Ft(te){const F=te instanceof Uint8Array,Z=typeof te=="string",ce=(F||Z)&&te.length;return F?ce===T||ce===M:Z?ce===T*2||ce===M*2:te instanceof O}function Hr(te,F,Z=!1){if(Ft(te))throw new TypeError("getSharedSecret: first arg must be private key");if(!Ft(F))throw new TypeError("getSharedSecret: second arg must be public key");const ce=Vt(F);return ce.assertValidity(),ce.multiply(Je(te)).toRawBytes(Z)}e.getSharedSecret=Hr;function sr(te){const F=te.length>y?te.slice(0,y):te;return X(F)}function hn(te){const F=sr(te),Z=k(F,c.n);return Jr(Z<t?F:Z)}function Jr(te){return Ne(te)}function Qr(te,F,Z){if(te==null)throw new Error(`sign: expected valid message hash, not "${te}"`);const ce=C(te),Te=Je(F),Pe=[Jr(Te),hn(ce)];if(Z!=null){Z===!0&&(Z=e.utils.randomBytes(y));const mt=C(Z);if(mt.length!==y)throw new Error(`sign: Expected ${y} bytes of extra data`);Pe.push(mt)}const Ge=ae(...Pe),Ke=sr(ce);return{seed:Ge,m:Ke,d:Te}}function ln(te,F){const{sig:Z,recovery:ce}=te,{der:Te,recovered:Pe}=Object.assign({canonical:!0,der:!0},F),Ge=Te?Z.toDERRawBytes():Z.toCompactRawBytes();return Pe?[Ge,ce]:Ge}async function ur(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Qr(te,F,Z.extraEntropy),Ge=new de(g,m);await Ge.reseed(ce);let Ke;for(;!(Ke=Ye(await Ge.generate(),Te,Pe,Z.canonical));)await Ge.reseed();return ln(Ke,Z)}e.sign=ur;function cn(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Qr(te,F,Z.extraEntropy),Ge=new de(g,m);Ge.reseedSync(ce);let Ke;for(;!(Ke=Ye(Ge.generateSync(),Te,Pe,Z.canonical));)Ge.reseedSync();return ln(Ke,Z)}e.signSync=cn;const Pr={strict:!0};function gn(te,F,Z,ce=Pr){let Te;try{Te=Lt(te),F=C(F)}catch{return!1}const{r:Pe,s:Ge}=Te;if(ce.strict&&Te.hasHighS())return!1;const Ke=Ue(F);let mt;try{mt=Vt(Z)}catch{return!1}const{n:ut}=c,_t=oe(Ge,ut),Tt=k(Ke*_t,ut),At=k(Pe*_t,ut),xt=O.BASE.multiplyAndAddUnsafe(mt,Tt,At);return xt?k(xt.x,ut)===Pe:!1}e.verify=gn;function Zr(te){return k(X(te),c.n)}class vn{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromHex(F){const Z=C(F);if(Z.length!==64)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${Z.length}`);const ce=X(Z.subarray(0,32)),Te=X(Z.subarray(32,64));return new vn(ce,Te)}assertValidity(){const{r:F,s:Z}=this;if(!je(F)||!Ae(Z))throw new Error("Invalid signature")}toHex(){return Me(this.r)+Me(this.s)}toRawBytes(){return ue(this.toHex())}}function $r(te){return O.fromPrivateKey(te).toRawX()}class xi{constructor(F,Z,ce=e.utils.randomBytes()){if(F==null)throw new TypeError(`sign: Expected valid message, not "${F}"`);this.m=C(F);const{x:Te,scalar:Pe}=this.getScalar(Je(Z));if(this.px=Te,this.d=Pe,this.rand=C(ce),this.rand.length!==32)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(F){const Z=O.fromPrivateKey(F),ce=Z.hasEvenY()?F:c.n-F;return{point:Z,scalar:ce,x:Z.toRawX()}}initNonce(F,Z){return Ne(F^X(Z))}finalizeNonce(F){const Z=k(X(F),c.n);if(Z===t)throw new Error("sign: Creation of signature failed. k is zero");const{point:ce,x:Te,scalar:Pe}=this.getScalar(Z);return{R:ce,rx:Te,k:Pe}}finalizeSig(F,Z,ce,Te){return new vn(F.x,k(Z+ce*Te,c.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHash,Ge=this.initNonce(Z,await Pe(zr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(await Pe(zr.nonce,Ge,ce,F)),_t=Zr(await Pe(zr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return await Mi(Tt,F,ce)||this.error(),Tt}calcSync(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHashSync,Ge=this.initNonce(Z,Pe(zr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(Pe(zr.nonce,Ge,ce,F)),_t=Zr(Pe(zr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return Ir(Tt,F,ce)||this.error(),Tt}}async function _n(te,F,Z){return new xi(te,F,Z).calc()}function Ii(te,F,Z){return new xi(te,F,Z).calcSync()}function Ri(te,F,Z){const ce=te instanceof vn,Te=ce?te:vn.fromHex(te);return ce&&Te.assertValidity(),{...Te,m:C(F),P:Vt(Z)}}function pi(te,F,Z,ce){const Te=O.BASE.multiplyAndAddUnsafe(F,Je(Z),k(-ce,c.n));return!(!Te||!Te.hasEvenY()||Te.x!==te)}async function Mi(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Ri(te,F,Z),Ke=Zr(await e.utils.taggedHash(zr.challenge,Ne(ce),Ge.toRawX(),Pe));return pi(ce,Ge,Te,Ke)}catch{return!1}}function Ir(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Ri(te,F,Z),Ke=Zr(e.utils.taggedHashSync(zr.challenge,Ne(ce),Ge.toRawX(),Pe));return pi(ce,Ge,Te,Ke)}catch(ce){if(ce instanceof N)throw ce;return!1}}e.schnorr={Signature:vn,getPublicKey:$r,sign:_n,verify:Mi,signSync:Ii,verifySync:Ir},O.BASE._setWindowSize(8);const Ot={node:a,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},zr={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},xr={};e.utils={bytesToHex:be,hexToBytes:ue,concatBytes:ae,mod:k,invert:oe,isValidPrivateKey(te){try{return Je(te),!0}catch{return!1}},_bigintTo32Bytes:Ne,_normalizePrivateKey:Je,hashToPrivateKey:te=>{te=C(te);const F=m+8;if(te.length<F||te.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const Z=k(X(te),c.n-n)+n;return Ne(Z)},randomBytes:(te=32)=>{if(Ot.web)return Ot.web.getRandomValues(new Uint8Array(te));if(Ot.node){const{randomBytes:F}=Ot.node;return Uint8Array.from(F(te))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(m+8)),precompute(te=8,F=O.BASE){const Z=F===O.BASE?F:new O(F.x,F.y);return Z._setWindowSize(te),Z.multiply(o),Z},sha256:async(...te)=>{if(Ot.web){const F=await Ot.web.subtle.digest("SHA-256",ae(...te));return new Uint8Array(F)}else if(Ot.node){const{createHash:F}=Ot.node,Z=F("sha256");return te.forEach(ce=>Z.update(ce)),Uint8Array.from(Z.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(te,...F)=>{if(Ot.web){const Z=await Ot.web.subtle.importKey("raw",te,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),ce=ae(...F),Te=await Ot.web.subtle.sign("HMAC",Z,ce);return new Uint8Array(Te)}else if(Ot.node){const{createHmac:Z}=Ot.node,ce=Z("sha256",te);return F.forEach(Te=>ce.update(Te)),Uint8Array.from(ce.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(te,...F)=>{let Z=xr[te];if(Z===void 0){const ce=await e.utils.sha256(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),xr[te]=Z}return e.utils.sha256(Z,...F)},taggedHashSync:(te,...F)=>{if(typeof Ce!="function")throw new N("sha256Sync is undefined, you need to set it");let Z=xr[te];if(Z===void 0){const ce=Ce(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),xr[te]=Z}return Ce(Z,...F)},_JacobianPoint:P},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get(){return Ce},set(te){Ce||(Ce=te)}},hmacSha256Sync:{configurable:!1,get(){return se},set(te){se||(se=te)}}})})(ob)),ob}var BL;function v0(){return BL||(BL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.schnorr=e.Signature=e.Point=e.CURVE=e.utils=e.getSharedSecret=e.recoverPublicKey=e.verify=e.signSync=e.sign=e.getPublicKey=void 0;const a=c5(),t=Rk(),n=UL();var i=UL();Object.defineProperty(e,"getPublicKey",{enumerable:!0,get:function(){return i.getPublicKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return i.sign}}),Object.defineProperty(e,"signSync",{enumerable:!0,get:function(){return i.signSync}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return i.verify}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return i.recoverPublicKey}}),Object.defineProperty(e,"getSharedSecret",{enumerable:!0,get:function(){return i.getSharedSecret}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return i.utils}}),Object.defineProperty(e,"CURVE",{enumerable:!0,get:function(){return i.CURVE}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return i.Point}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return i.Signature}}),Object.defineProperty(e,"schnorr",{enumerable:!0,get:function(){return i.schnorr}}),n.utils.hmacSha256Sync=(o,...u)=>{const c=a.hmac.create(t.sha256,o);return u.forEach(f=>c.update(f)),c.digest()}})(nb)),nb}var vt={};function FL(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tl={exports:{}},VL=Tl.exports,HL;function Mk(){return HL||(HL=1,(function(e,a){var t=VL&&VL.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(a,"__esModule",{value:!0}),a.crypto=a.wrapHash=a.equalsBytes=a.hexToBytes=a.bytesToUtf8=a.utf8ToBytes=a.createView=a.concatBytes=a.toHex=a.bytesToHex=a.assertBytes=a.assertBool=void 0;const n=t(g0()),i=Rl(),o=n.default.bool;a.assertBool=o;const u=n.default.bytes;a.assertBytes=u;var c=Rl();Object.defineProperty(a,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(a,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(a,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}});function f(g){if(!(g instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof g}`);return new TextDecoder().decode(g)}a.bytesToUtf8=f;function p(g){const T=g.startsWith("0x")?g.substring(2):g;return(0,i.hexToBytes)(T)}a.hexToBytes=p;function y(g,T){if(g.length!==T.length)return!1;for(let M=0;M<g.length;M++)if(g[M]!==T[M])return!1;return!0}a.equalsBytes=y;function m(g){return T=>(n.default.bytes(T),g(T))}a.wrapHash=m,a.crypto=(()=>{const g=typeof self=="object"&&"crypto"in self?self.crypto:void 0,T=typeof FL=="function"&&FL.bind(e);return{node:T&&!g?T("crypto"):void 0,web:g}})()})(Tl,Tl.exports)),Tl.exports}var zL;function m5(){if(zL)return vt;zL=1;var e=vt&&vt.__createBinding||(Object.create?(function(ue,X,C,B){B===void 0&&(B=C);var k=Object.getOwnPropertyDescriptor(X,C);(!k||("get"in k?!X.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return X[C]}}),Object.defineProperty(ue,B,k)}):(function(ue,X,C,B){B===void 0&&(B=C),ue[B]=X[C]})),a=vt&&vt.__setModuleDefault||(Object.create?(function(ue,X){Object.defineProperty(ue,"default",{enumerable:!0,value:X})}):function(ue,X){ue.default=X}),t=vt&&vt.__importStar||function(ue){if(ue&&ue.__esModule)return ue;var X={};if(ue!=null)for(var C in ue)C!=="default"&&Object.prototype.hasOwnProperty.call(ue,C)&&e(X,ue,C);return a(X,ue),X};Object.defineProperty(vt,"__esModule",{value:!0}),vt.contextRandomize=vt.ecdh=vt.signatureNormalize=vt.signatureImport=vt.signatureExport=vt.privateKeyTweakMul=vt.publicKeyTweakMul=vt.publicKeyTweakAdd=vt.publicKeyCombine=vt.publicKeyNegate=vt.privateKeyNegate=vt.privateKeyTweakAdd=vt.ecdsaVerify=vt.ecdsaRecover=vt.ecdsaSign=vt.publicKeyConvert=vt.publicKeyVerify=vt.publicKeyCreate=vt.privateKeyVerify=vt.createPrivateKey=vt.createPrivateKeySync=void 0;const n=Rk(),i=t(v0()),o=Mk();function u(ue){if(typeof ue!="string")throw new TypeError("hexToNumber: expected string, got "+typeof ue);return BigInt(`0x${ue}`)}const c=ue=>u((0,o.toHex)(ue)),f=ue=>ue.toString(16).padStart(64,"0"),p=ue=>(0,o.hexToBytes)(f(ue)),{mod:y}=i.utils,m=i.CURVE.n;function g(ue=B=>new Uint8Array(B),X,C){return typeof ue=="function"&&(ue=ue(X)),(0,o.assertBytes)(ue,X),C&&ue.set(C),ue}function T(ue){return(0,o.assertBytes)(ue,64),i.Signature.fromCompact(ue)}function M(){return i.utils.randomPrivateKey()}vt.createPrivateKeySync=M;async function R(){return M()}vt.createPrivateKey=R;function I(ue){return(0,o.assertBytes)(ue,32),i.utils.isValidPrivateKey(ue)}vt.privateKeyVerify=I;function N(ue,X=!0,C){(0,o.assertBytes)(ue,32),(0,o.assertBool)(X);const B=i.getPublicKey(ue,X);return g(C,X?33:65,B)}vt.publicKeyCreate=N;function E(ue){(0,o.assertBytes)(ue,33,65);try{return i.Point.fromHex(ue),!0}catch{return!1}}vt.publicKeyVerify=E;function P(ue,X=!0,C){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).toRawBytes(X);return g(C,X?33:65,B)}vt.publicKeyConvert=P;function S(ue,X,C={noncefn:void 0,data:void 0},B){if((0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32),typeof C!="object"||C===null)throw new TypeError("secp256k1.ecdsaSign: options should be object");if(C&&(C.noncefn!==void 0||C.data!==void 0))throw new Error("Secp256k1: noncefn && data is unsupported");const[k,L]=i.signSync(ue,X,{recovered:!0,der:!1});return{signature:g(B,64,k),recid:L}}vt.ecdsaSign=S;function v(ue,X,C,B=!0,k){(0,o.assertBytes)(C,32),(0,o.assertBool)(B);const L=T(ue).toHex(),W=i.Point.fromSignature(C,L,X);return g(k,B?33:65,W.toRawBytes(B))}vt.ecdsaRecover=v;function O(ue,X,C){(0,o.assertBytes)(ue,64),(0,o.assertBytes)(X,32),(0,o.assertBytes)(C,33,65),(0,o.assertBytes)(ue,64);const B=c(ue.slice(0,32)),k=c(ue.slice(32,64));if(B>=m||k>=m)throw new Error("Cannot parse signature");const L=i.Point.fromHex(C);let W;try{W=T(ue)}catch{return!1}return i.verify(W,X,L)}vt.ecdsaVerify=O;function j(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);let C=c(X);if(C===0n)throw new Error("Tweak must not be zero");if(C>=m)throw new Error("Tweak bigger than curve order");if(C+=c(ue),C>=m&&(C-=m),C===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(C))),ue}vt.privateKeyTweakAdd=j;function V(ue){(0,o.assertBytes)(ue,32);const X=y(-c(ue),m);return ue.set((0,o.hexToBytes)(f(X))),ue}vt.privateKeyNegate=V;function U(ue,X=!0,C){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).negate();return g(C,X?33:65,B.toRawBytes(X))}vt.publicKeyNegate=U;function K(ue,X=!0,C){if(!Array.isArray(ue)||!ue.length)throw new TypeError(`Expected array with one or more items, not ${ue}`);for(const k of ue)(0,o.assertBytes)(k,33,65);(0,o.assertBool)(X);const B=ue.map(k=>i.Point.fromHex(k)).reduce((k,L)=>k.add(L),i.Point.ZERO);if(B.equals(i.Point.ZERO))throw new Error("Combined result must not be zero");return g(C,X?33:65,B.toRawBytes(X))}vt.publicKeyCombine=K;function ae(ue,X,C=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(C);const k=i.Point.fromHex(ue),L=i.Point.fromPrivateKey(X),W=k.add(L);if(L.equals(i.Point.ZERO)||W.equals(i.Point.ZERO))throw new Error("Tweak must not be zero");return g(B,C?33:65,W.toRawBytes(C))}vt.publicKeyTweakAdd=ae;function _e(ue,X,C=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(C);const k=c(X);if(k===0n)throw new Error("Tweak must not be zero");if(k<=1||k>=m)throw new Error("Tweak is zero or bigger than curve order");const L=i.Point.fromHex(ue).multiply(k);return g(B,C?33:65,L.toRawBytes(C))}vt.publicKeyTweakMul=_e;function be(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);const C=c(X);if(C<=1||C>=m)throw new Error("Tweak is zero or bigger than curve order");const B=y(C*c(ue),m);if(B===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(B))),ue}vt.privateKeyTweakMul=be;function ye(ue,X){const C=T(ue).toRawBytes();return g(X,72,T(ue).toRawBytes()).slice(0,C.length)}vt.signatureExport=ye;function Me(ue,X){(0,o.assertBytes)(ue);const C=i.Signature.fromDER(ue);return g(X,64,(0,o.hexToBytes)(C.toCompactHex()))}vt.signatureImport=Me;function Ne(ue){const X=T(ue);return X.s>m/2n&&ue.set(p(m-X.s),32),ue}vt.signatureNormalize=Ne;function qe(ue,X,C={},B){if((0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),typeof C!="object"||C===null)throw new TypeError("secp256k1.ecdh: options should be object");C.data!==void 0&&(0,o.assertBytes)(C.data);const k=i.Point.fromHex(i.getSharedSecret(X,ue));if(C.hashfn===void 0)return g(B,32,(0,n.sha256)(k.toRawBytes(!0)));if(typeof C.hashfn!="function")throw new TypeError("secp256k1.ecdh: options.hashfn should be function");C.xbuf!==void 0&&(0,o.assertBytes)(C.xbuf,32),C.ybuf!==void 0&&(0,o.assertBytes)(C.ybuf,32),(0,o.assertBytes)(B,32);const L=C.xbuf||new Uint8Array(32);L.set(p(k.x));const W=C.ybuf||new Uint8Array(32);W.set(p(k.y));const oe=C.hashfn(L,W,C.data);if(!(oe instanceof Uint8Array)||oe.length!==32)throw new Error("secp256k1.ecdh: invalid options.hashfn output");return g(B,32,oe)}vt.ecdh=qe;function we(ue){ue!==null&&(0,o.assertBytes)(ue,32)}return vt.contextRandomize=we,vt}var WL;function Nk(){if(WL)return Lr;WL=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.createUnsafeIdentity=Lr.computeAddress=Lr.ethSign=Lr.createEthereumMessageHash=Lr.sign=Lr.recoverAddressFromEthSignature=Lr.recoverPublicKey=void 0;const e=wf(),a=v0(),t=m5();function n(m,g){if(m.length!==65)throw new Error("Invalid signature length"+m.length);const T=m.slice(0,m.length-1),M=m[64]===28?1:0;return(0,t.ecdsaRecover)(T,M,g,!1).slice(1)}Lr.recoverPublicKey=n;function i(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const g=m[64];if(g===0||g===1){const T=new Uint8Array(m);return T[64]=g+27,T}return m}function o(m,g){if(typeof m=="string"){if((0,e.isHex)(m))return o((0,e.hexToBytes)(m),g);throw new Error("String signatures must be encoded in hex")}return p(n(i(m),c(g)))}Lr.recoverAddressFromEthSignature=o;function u(m,g){const T=(0,t.ecdsaSign)(g,m),M=T.recid===1?"1c":"1b";return(0,e.toHex)(T.signature)+M}Lr.sign=u;function c(m){const g=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,T=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
20
- `),(0,e.stringToUtf8Bytes)(String(g.length)),g);return(0,e.hexToBytes)((0,e.sha3)(T))}Lr.createEthereumMessageHash=c;function f(m,g){return u(m,c(g))}Lr.ethSign=f;function p(m){const g=m.length===65&&m[0]===4?m.slice(1):m;return(0,e.getAddress)((0,e.sha3)(g).substring(24))}Lr.computeAddress=p;function y(){const m=a.utils.randomPrivateKey(),g=(0,a.getPublicKey)(m).slice(1),T=p(g);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(g),address:T}}return Lr.createUnsafeIdentity=y,Lr}var GL;function h5(){return GL||(GL=1,(function(e){var a=ti&&ti.__createBinding||(Object.create?(function(U,K,ae,_e){_e===void 0&&(_e=ae);var be=Object.getOwnPropertyDescriptor(K,ae);(!be||("get"in be?!K.__esModule:be.writable||be.configurable))&&(be={enumerable:!0,get:function(){return K[ae]}}),Object.defineProperty(U,_e,be)}):(function(U,K,ae,_e){_e===void 0&&(_e=ae),U[_e]=K[ae]})),t=ti&&ti.__setModuleDefault||(Object.create?(function(U,K){Object.defineProperty(U,"default",{enumerable:!0,value:K})}):function(U,K){U.default=K}),n=ti&&ti.__importStar||function(U){if(U&&U.__esModule)return U;var K={};if(U!=null)for(var ae in U)ae!=="default"&&Object.prototype.hasOwnProperty.call(U,ae)&&a(K,U,ae);return t(K,U),K},i=ti&&ti.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(e,"__esModule",{value:!0}),e.isValidEIP1271Signature=e.parseEmphemeralPayload=e.getSignedIdentitySignatureType=e.getEphemeralSignatureType=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0;const o=n(wf()),u=rz(),c=Ik(),f=s5(),p=i(u5()),y=Nk();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const m=132;var g;(function(U){async function K(X,C,B,k=Date.now()){let L="";if(!U.isValidAuthChain(C))return{ok:!1,message:"ERROR: Malformed authChain"};for(const oe of C){const Re=V(oe.type);try{const{nextAuthority:Se}=await Re(L,oe,{provider:B,dateToValidateExpirationInMillis:k});L=Se||""}catch(Se){return{ok:!1,message:`ERROR. Link type: ${oe.type}. ${Se.message}.`}}}const W=L===X;return{ok:W,message:W?void 0:`ERROR: Invalid final authority. Expected: ${X}. Current ${L}.`}}U.validateSignature=K;function ae(X){for(const[C,B]of X.entries())if(C===0&&B.type!==c.AuthLinkType.SIGNER||B.type===c.AuthLinkType.SIGNER&&C!==0)return!1;return!0}U.isValidAuthChain=ae;function _e(X){return(0,o.hexToBytes)((0,o.sha3)((0,o.stringToUtf8Bytes)(X)))}U.createEIP1271MessageHash=_e;function be(X,C,B){return[{type:c.AuthLinkType.SIGNER,payload:C,signature:""},{type:S(B),payload:X,signature:B}]}U.createSimpleAuthChain=be;function ye(X,C,B,k){const L=(0,f.moveMinutes)(B),W=U.getEphemeralMessage(C.address,L),oe=U.createSignature(X,W),Re=U.createSignature(C,k);return[{type:c.AuthLinkType.SIGNER,payload:X.address,signature:""},{type:c.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:W,signature:oe},{type:c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:k,signature:Re}]}U.createAuthChain=ye;async function Me(X,C,B,k){const L=new Date;L.setMinutes(L.getMinutes()+B);const W=U.getEphemeralMessage(C.address,L),oe=await k(W),Re=[{type:c.AuthLinkType.SIGNER,payload:X,signature:""},{type:P(oe),payload:W,signature:oe}];return{ephemeralIdentity:C,expiration:L,authChain:Re}}U.initializeAuthChain=Me;function Ne(X,C){const B=U.createSignature(X.ephemeralIdentity,C);return[...X.authChain,{type:c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:C,signature:B}]}U.signPayload=Ne,U.createEthereumMessageHash=y.createEthereumMessageHash;function qe(X,C){return(0,y.ethSign)((0,o.hexToBytes)(X.privateKey),C)}U.createSignature=qe;function we(X){return X.length>0&&X[0].type===c.AuthLinkType.SIGNER?X[0].payload:"Invalid-Owner-Address"}U.ownerAddress=we;function ue(X,C){return`Decentraland Login
21
- Ephemeral address: ${X}
22
- Expiration: ${C.toISOString()}`}U.getEphemeralMessage=ue})(g=e.Authenticator||(e.Authenticator={}));const T=async(U,K)=>({nextAuthority:K.payload});e.SIGNER_VALIDATOR=T;const M=async(U,K)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const ae=(0,y.recoverAddressFromEthSignature)(K.signature,K.payload),_e=U.toLocaleLowerCase(),be=ae.toLocaleLowerCase();if(_e===be)return{nextAuthority:K.payload};throw new Error(`Invalid signer address. Expected: ${_e}. Actual: ${be}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=M;const R=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:_e,ephemeralAddress:be,expiration:ye}=v(K.payload),Me=ae.dateToValidateExpirationInMillis?ae.dateToValidateExpirationInMillis:Date.now();if(ye>Me){const Ne=(0,y.recoverAddressFromEthSignature)(K.signature,_e),qe=U.toLocaleLowerCase(),we=Ne.toLocaleLowerCase();if(qe===we)return{nextAuthority:be};throw new Error(`Invalid signer address. Expected: ${qe}. Actual: ${we}`)}throw new Error(`Ephemeral key expired. Expiration: ${ye}. Test: ${Me}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=R;const I=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:_e,ephemeralAddress:be,expiration:ye}=v(K.payload),Me=ae?.dateToValidateExpirationInMillis?ae?.dateToValidateExpirationInMillis:Date.now();if(ye>Me&&await j(ae.provider,U,_e,K.signature,Me))return{nextAuthority:be};throw new Error(`Ephemeral key expired. Expiration: ${ye}. Test: ${Me}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=I;const N=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await j(ae.provider,U,K.payload,K.signature,ae.dateToValidateExpirationInMillis))return{nextAuthority:K.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=N;const E=async(U,K)=>({error:"Error Validator."});function P(U){return U.length===m?c.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:c.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}e.getEphemeralSignatureType=P;function S(U){return U.length===m?c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:c.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}e.getSignedIdentitySignatureType=S;function v(U){const K=U.replace(/\r/g,""),ae=K.split(`
23
- `),_e=ae[1].substring(19),be=ae[2].substring(12),ye=Date.parse(be);return{message:K,ephemeralAddress:_e,expiration:ye}}e.parseEmphemeralPayload=v;async function O(U,K,ae,_e){const be=g.createEIP1271MessageHash(K),ye=(0,o.hexToBytes)(ae);let Me;try{Me=(0,o.bytesToHex)(await U.isValidSignature(be,ye,_e))}catch{}if(Me===e.ERC1654_MAGIC_VALUE)return!0;const Ne=(0,y.createEthereumMessageHash)(K);try{Me=(0,o.bytesToHex)(await U.isValidSignature(Ne,ye,_e))}catch{}return Me===e.ERC1654_MAGIC_VALUE}e.isValidEIP1271Signature=O;async function j(U,K,ae,_e,be){if(!U)throw new Error("Missing provider");const ye=new o.default(U),Me=await(0,u.SignatureValidator)(ye,K);let Ne=await O(Me,ae,_e);if(Ne)return!0;const qe=new p.default(ye);try{const{block:we}=await qe.getDate(be,!1);if(Ne=await O(Me,ae,_e,we),Ne)return!0}catch(we){throw new Error(`Invalid validation. Error: ${we.message}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${Ne}`)}function V(U){switch(U){case c.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case c.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case c.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case c.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return E}}})(ti)),ti}var KL;function g5(){return KL||(KL=1,(function(e){var a=Vo&&Vo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Vo&&Vo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(h5(),e),t(Ik(),e)})(Vo)),Vo}var bb=g5(),Ck=Nk(),v5=v0(),YL=Mk(),sb={},xu={},ub={},$o={},XL;function _5(){if(XL)return $o;XL=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.getEnvFromQueryParam=$o.getEnvFromTLD=void 0;const e=_0();function a(n){const{host:i}=n;return i.endsWith(".org")||i.endsWith(".co")?e.Env.PRODUCTION:i.endsWith(".today")||i.endsWith(".net")?e.Env.STAGING:i.endsWith(".io")||i.endsWith(".zone")?e.Env.DEVELOPMENT:null}$o.getEnvFromTLD=a;function t(n){const i=new URLSearchParams(n.search),o=i.get("ENV")||i.get("env");if(o){const u=o.toLowerCase();if((0,e.isEnv)(u))return u}return null}return $o.getEnvFromQueryParam=t,$o}var JL;function _0(){return JL||(JL=1,(function(e){var a={};Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=e.getDefaultEnv=e.parseEnvVar=e.isEnv=e.getEnvList=e.Env=void 0;const t=_5();var n;(function(p){p.DEVELOPMENT="dev",p.STAGING="stg",p.PRODUCTION="prod"})(n=e.Env||(e.Env={}));function i(){return Object.values(n)}e.getEnvList=i;function o(p){return i().includes(p)}e.isEnv=o;function u(p){if(o(p))return p;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${p}", possible values are ${i().map(y=>`"${y}"`).join(", ")}.`)}e.parseEnvVar=u;function c(p={}){const{DCL_DEFAULT_ENV:y,REACT_APP_DCL_DEFAULT_ENV:m,VITE_DCL_DEFAULT_ENV:g,GATSBY_DCL_DEFAULT_ENV:T}=p;if(y&&m&&y!==m)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(y&&g&&y!==g)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(y&&T&&y!==T)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(m&&T&&m!==T)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return y?u(y):m?u(m):g?u(g):T?u(T):n.PRODUCTION}e.getDefaultEnv=c;function f(p){if(typeof window<"u"){const m=(0,t.getEnvFromQueryParam)(window.location);if(m)return m;const g=(0,t.getEnvFromTLD)(window.location);if(g)return g}return c(typeof p>"u"&&typeof process=="object"&&typeof a=="object"?a:p)}e.getEnv=f})(ub)),ub}var QL;function E5(){if(QL)return xu;QL=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.createConfig=void 0;const e=_0();function a(t,n){const i=(0,e.getEnv)(n?.systemEnvVariables),o=t[i];return{get:(u,c="")=>{if(!o)throw new Error(`Could not find a config for env=${i}`);return u in o?o[u]:c},is:u=>i===u,getEnv:()=>i}}return xu.createConfig=a,xu}var ZL;function b5(){return ZL||(ZL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=e.Env=e.createConfig=void 0;var a=E5();Object.defineProperty(e,"createConfig",{enumerable:!0,get:function(){return a.createConfig}});var t=_0();Object.defineProperty(e,"Env",{enumerable:!0,get:function(){return t.Env}}),Object.defineProperty(e,"getEnv",{enumerable:!0,get:function(){return t.getEnv}})})(sb)),sb}var lb=b5();const w5="11155111",T5="development",S5="https://decentraland.zone/auth",O5="https://peer.decentraland.zone",A5="https://mobile-bff.decentraland.zone",P5={CHAIN_ID:w5,ENVIRONMENT:T5,AUTH_URL:S5,PEER_URL:O5,MOBILE_BFF_URL:A5},I5="1",R5="production",M5="https://decentraland.org/auth",N5="https://peer.decentraland.org",C5="https://mobile-bff.decentraland.org",j5={CHAIN_ID:I5,ENVIRONMENT:R5,AUTH_URL:M5,PEER_URL:N5,MOBILE_BFF_URL:C5},af=lb.createConfig({[lb.Env.DEVELOPMENT]:P5,[lb.Env.PRODUCTION]:j5},{systemEnvVariables:{REACT_APP_DCL_DEFAULT_ENV:"dev"}});let Kd=null;const L5="ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";function D5(e){const a=YL.hexToBytes(e),t=v5.getPublicKey(a,!1).slice(1),n=Ck.computeAddress(t);return{privateKey:"0x"+e,publicKey:"0x"+YL.bytesToHex(t),address:n}}async function jk(){if(Kd)return Kd;const e=D5(L5),a=Ck.createUnsafeIdentity();return Kd={identity:await bb.Authenticator.initializeAuthChain(e.address,a,60,async n=>bb.Authenticator.createSignature(e,n)),address:e.address},console.log("[DEV] Using dev identity:",e.address),Kd}function of(){return af.get("USE_DEV_IDENTITY","false")==="true"}const q5=()=>{const{avatar:e,wallet:a,isSignedIn:t,isConnecting:n,signIn:i,signOut:o}=s0(),[u,c]=fe.useState(!1),[f,p]=fe.useState(null),y=e?.avatar?.snapshots?.face256;return fe.useEffect(()=>{of()&&jk().then(({address:m})=>p(m))},[]),n?Ie.jsx("div",{className:"navbar-container",children:Ie.jsx("div",{className:"navbar-bar",children:Ie.jsx("button",{className:"navbar-button",disabled:!0,children:"Connecting..."})})}):of()?Ie.jsx("div",{className:"navbar-container",children:Ie.jsx("div",{className:"navbar-bar",children:Ie.jsxs("div",{className:"navbar-dev-badge",children:["DEV",f&&Ie.jsxs("span",{className:"navbar-dev-address",children:[f.slice(0,6),"...",f.slice(-4)]})]})})}):t?Ie.jsxs("div",{className:"navbar-container",children:[Ie.jsx("div",{className:"navbar-bar",children:Ie.jsx("button",{className:"navbar-avatar-button",onClick:()=>c(!u),children:y?Ie.jsx("img",{src:y,alt:"Avatar",className:"navbar-avatar"}):Ie.jsx("span",{className:"navbar-avatar-placeholder",children:a?.slice(2,4).toUpperCase()})})}),u&&Ie.jsxs(Ie.Fragment,{children:[Ie.jsx("div",{className:"navbar-backdrop",onClick:()=>c(!1)}),Ie.jsxs("div",{className:"navbar-menu",children:[Ie.jsxs("div",{className:"navbar-menu-address",children:[a?.slice(0,6),"...",a?.slice(-4)]}),Ie.jsx("button",{className:"navbar-menu-item",onClick:()=>{c(!1),o()},children:"Sign Out"})]})]})]}):Ie.jsx("div",{className:"navbar-container",children:Ie.jsx("div",{className:"navbar-bar",children:Ie.jsxs("button",{className:"navbar-button",onClick:i,children:[Ie.jsx("span",{className:"navbar-button-icon",children:"👤"}),"Sign In"]})})})},Lk=fe.createContext(null),ba=40,wa=8,Dk=-152,qk=-167,$L=-150,xL=163,eD=-150,tD=158,Pi=4,rD=.5,nD=10,E0=1,b0=0,w0=0,k5="https://media.githubusercontent.com/media/genesis-city/parcels/new-client-images/maps/lod-0/3/",U5="#1a1a1a",B5="#1a1a1a",iD={viewport:{centerX:b0,centerY:w0,zoom:E0,width:0,height:0},interaction:{isDragging:!1,dragStartX:0,dragStartY:0,hoveredParcel:null}};function Zs(e,a,t){return Math.max(a,Math.min(t,e))}function F5(e,a){switch(a.type){case"SET_VIEWPORT_SIZE":return{...e,viewport:{...e.viewport,width:a.payload.width,height:a.payload.height}};case"PAN":{const t=Zs(e.viewport.centerX+a.payload.deltaX,$L,xL),n=Zs(e.viewport.centerY+a.payload.deltaY,eD,tD);return{...e,viewport:{...e.viewport,centerX:t,centerY:n}}}case"ZOOM":{const t=Zs(e.viewport.zoom*a.payload.factor,rD,nD);return{...e,viewport:{...e.viewport,zoom:t}}}case"SET_CENTER":return{...e,viewport:{...e.viewport,centerX:Zs(a.payload.x,$L,xL),centerY:Zs(a.payload.y,eD,tD)}};case"SET_ZOOM":return{...e,viewport:{...e.viewport,zoom:Zs(a.payload,rD,nD)}};case"START_DRAG":return{...e,interaction:{...e.interaction,isDragging:!0,dragStartX:a.payload.x,dragStartY:a.payload.y}};case"END_DRAG":return{...e,interaction:{...e.interaction,isDragging:!1}};case"UPDATE_DRAG_START":return{...e,interaction:{...e.interaction,dragStartX:a.payload.x,dragStartY:a.payload.y}};case"SET_HOVERED_PARCEL":return{...e,interaction:{...e.interaction,hoveredParcel:a.payload}};case"RESET_VIEW":return{...e,viewport:{...e.viewport,centerX:b0,centerY:w0,zoom:E0}};default:return e}}function V5({children:e,initialCenter:a,initialZoom:t}){const n={...iD,viewport:{...iD.viewport,centerX:a?.x??b0,centerY:a?.y??w0,zoom:t??E0}},[i,o]=fe.useReducer(F5,n);return Ie.jsx(Lk.Provider,{value:{state:i,dispatch:o},children:e})}const kk=fe.createContext(null),H5="x-identity-auth-chain-",z5="x-identity-timestamp",W5="x-identity-metadata";function aD(e,a,t,n={}){const i=new URL(e).pathname,o={...t,headers:{...G5(t?.method??"get",i,{origin:location.origin,...n},u=>bb.Authenticator.signPayload(a,u)),...t?.headers}};return fetch(e,o)}function G5(e,a,t,n){const i={},o=K5(e,a,JSON.stringify(t),n);return o.authChain.forEach((u,c)=>{i[`${H5}${c}`]=JSON.stringify(u)}),i[z5]=o.timestamp.toString(),i[W5]=o.metadata,i}function K5(e,a,t,n){const i=Date.now(),u=[e.toLowerCase(),a.toLowerCase(),i.toString(),t].join(":").toLowerCase();return{authChain:n(u),metadata:t,timestamp:i}}function Y5(e,a){return async function(n,i,o={}){try{if(of()){const{identity:u}=await jk();return aD(n,u,i||{},o)}if(a&&e){const u=yb.LocalStorageUtils.getIdentity(e);if(u&&u.expiration){const c=new Date(u.expiration);if(new Date().getTime()<=c.getTime())return aD(n,u,i||{},o)}}return fetch(n,i)}catch(u){return console.warn("Error in authenticatedFetch, falling back to regular fetch:",u),fetch(n,i)}}}const X5=()=>{const{wallet:e,isSignedIn:a}=s0();return fe.useCallback((n,i,o={})=>Y5(e,a)(n,i,o),[e,a])},Of=af.get("MOBILE_BFF_URL");function T0(e){return{id:e.id,name:e.name,description:e.description||"",color:e.color,tags:e.tags||[],parcels:e.parcels||[],createdAt:new Date(e.createdAt).getTime(),updatedAt:new Date(e.updatedAt).getTime()}}async function J5(e){const t=await(await e(`${Of}/backoffice/scene-groups`)).json();if(!t.ok)throw new Error(t.error||"Failed to fetch scene groups");return(t.data||[]).map(T0)}async function Q5(e,a){const n=await(await e(`${Of}/backoffice/scene-groups`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json();if(!n.ok||!n.data)throw new Error(n.error||"Failed to create scene group");return T0(n.data)}async function Z5(e,a,t){const i=await(await e(`${Of}/backoffice/scene-groups/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json();if(!i.ok||!i.data)throw new Error(i.error||"Failed to update scene group");return T0(i.data)}async function $5(e,a){const n=await(await e(`${Of}/backoffice/scene-groups/${a}`,{method:"DELETE"})).json();if(!n.ok)throw new Error(n.error||"Failed to delete scene group")}const x5={mode:"view",groups:[],selectedParcels:[],selectionColor:null,editingGroupId:null,sidebarOpen:!1,isLoading:!1,error:null};function oD(e,a){return e.x===a.x&&e.y===a.y}function eW(e,a){switch(a.type){case"SET_MODE":return{...e,mode:a.payload,sidebarOpen:a.payload==="groups"?!0:e.sidebarOpen,selectedParcels:a.payload==="groups"?e.selectedParcels:[],selectionColor:a.payload==="groups"?e.selectionColor:null,editingGroupId:a.payload==="groups"?e.editingGroupId:null};case"ADD_GROUP":return{...e,groups:[...e.groups,a.payload],selectedParcels:[],selectionColor:null,isLoading:!1,error:null};case"UPDATE_GROUP":return{...e,groups:e.groups.map(t=>t.id===a.payload.id?a.payload:t),editingGroupId:null,isLoading:!1,error:null};case"DELETE_GROUP":return{...e,groups:e.groups.filter(t=>t.id!==a.payload),editingGroupId:e.editingGroupId===a.payload?null:e.editingGroupId,isLoading:!1,error:null};case"SET_SELECTED_PARCELS":return{...e,selectedParcels:a.payload};case"TOGGLE_PARCEL_SELECTION":{const t=a.payload,n=e.selectedParcels.some(i=>oD(i,t));return{...e,selectedParcels:n?e.selectedParcels.filter(i=>!oD(i,t)):[...e.selectedParcels,t]}}case"CLEAR_SELECTION":return{...e,selectedParcels:[],selectionColor:null};case"SET_EDITING_GROUP":return{...e,editingGroupId:a.payload,sidebarOpen:a.payload!==null?!0:e.sidebarOpen};case"TOGGLE_SIDEBAR":return{...e,sidebarOpen:!e.sidebarOpen};case"SET_SIDEBAR_OPEN":return{...e,sidebarOpen:a.payload};case"SET_SELECTION_COLOR":return{...e,selectionColor:a.payload};case"LOAD_GROUPS":return{...e,groups:a.payload,isLoading:!1,error:null};case"SET_LOADING":return{...e,isLoading:a.payload};case"SET_ERROR":return{...e,error:a.payload,isLoading:!1};default:return e}}function tW({children:e}){const[a,t]=fe.useReducer(eW,x5),n=X5(),{isSignedIn:i}=s0();fe.useEffect(()=>{if(!(i||of())){t({type:"LOAD_GROUPS",payload:[]});return}(async()=>{t({type:"SET_LOADING",payload:!0});try{const y=await J5(n);t({type:"LOAD_GROUPS",payload:y})}catch(y){console.error("Failed to load groups:",y),t({type:"SET_ERROR",payload:y instanceof Error?y.message:"Failed to load groups"})}})()},[i,n]);const o=fe.useCallback(async f=>{t({type:"SET_LOADING",payload:!0});try{const p=await Q5(n,f);return t({type:"ADD_GROUP",payload:p}),t({type:"CLEAR_SELECTION"}),p}catch(p){return console.error("Failed to create group:",p),t({type:"SET_ERROR",payload:p instanceof Error?p.message:"Failed to create group"}),null}},[n]),u=fe.useCallback(async(f,p)=>{t({type:"SET_LOADING",payload:!0});try{const y=await Z5(n,f,p);return t({type:"UPDATE_GROUP",payload:y}),y}catch(y){return console.error("Failed to update group:",y),t({type:"SET_ERROR",payload:y instanceof Error?y.message:"Failed to update group"}),null}},[n]),c=fe.useCallback(async f=>{t({type:"SET_LOADING",payload:!0});try{return await $5(n,f),t({type:"DELETE_GROUP",payload:f}),!0}catch(p){return console.error("Failed to delete group:",p),t({type:"SET_ERROR",payload:p instanceof Error?p.message:"Failed to delete group"}),!1}},[n]);return Ie.jsx(kk.Provider,{value:{state:a,dispatch:t,createGroup:o,updateGroup:u,deleteGroup:c},children:e})}function S0(){const e=fe.useContext(kk);if(!e)throw new Error("useGroupsContext must be used within a GroupsProvider");return e}function os(){return S0().state}function ql(){return S0().dispatch}function Uk(){const{createGroup:e,updateGroup:a,deleteGroup:t}=S0();return{createGroup:e,updateGroup:a,deleteGroup:t}}function Bk(){const e=fe.useContext(Lk);if(!e)throw new Error("useMapContext must be used within a MapProvider");return e}function su(){return Bk().state}function Af(){return Bk().dispatch}function rW(e){const a=Af(),t=fe.useRef(null),n=fe.useCallback(()=>{if(e.current){const{width:i,height:o}=e.current.getBoundingClientRect();a({type:"SET_VIEWPORT_SIZE",payload:{width:i,height:o}})}},[e,a]);return fe.useEffect(()=>{const i=e.current;if(i)return n(),t.current=new ResizeObserver(()=>{n()}),t.current.observe(i),()=>{t.current?.disconnect()}},[e,n]),{updateSize:n}}function sD(e,a){const t=e-Dk,n=a-qk,i=Math.floor(t/ba),o=Math.floor(n/ba);return{x:Math.max(0,Math.min(wa-1,i)),y:Math.max(0,Math.min(wa-1,o))}}function Yd(e,a,t){const{centerX:n,centerY:i,zoom:o,width:u,height:c}=t,f=Pi*o,p=e-u/2,y=a-c/2,m=p/f,g=-y/f;return{x:Math.floor(n+m),y:Math.floor(i+g)}}function O0(e,a,t){const{centerX:n,centerY:i,zoom:o,width:u,height:c}=t,f=Pi*o,p=u/2+(e-n)*f,y=c/2-(a-i)*f;return{screenX:p,screenY:y}}function nW(e){const{centerX:a,centerY:t,zoom:n,width:i,height:o}=e,u=Pi*n,c=i/2/u+ba,f=o/2/u+ba,p=a-c,y=a+c,m=t-f,g=t+f,T=sD(p,m),M=sD(y,g),R=[];for(let I=T.x;I<=M.x;I++)for(let N=T.y;N<=M.y;N++)I>=0&&I<wa&&N>=0&&N<wa&&R.push({x:I,y:N});return R}function iW(e,a){return`${k5}${e}%2C${a}.jpg`}function aW(e,a,t){const n=Pi*t.zoom,i=ba*n,o=Dk+e*ba,u=qk+a*ba,c=t.width/2+(o-t.centerX)*n,f=t.height/2-(u+ba-t.centerY)*n;return{x:c,y:f,width:i,height:i}}function Xd(e,a){return`${e},${a}`}class oW{cache=new Map;loading=new Map;maxCacheSize;onTileLoaded;constructor(a=100,t){this.maxCacheSize=a,this.onTileLoaded=t}setOnTileLoaded(a){this.onTileLoaded=a}getCached(a,t){const n=Xd(a,t),i=this.cache.get(n);return i?(i.lastAccessed=Date.now(),i.image):null}isLoading(a,t){const n=Xd(a,t);return this.loading.has(n)}async loadTile(a,t){const n=Xd(a,t),i=this.cache.get(n);if(i)return i.lastAccessed=Date.now(),i.image;const o=this.loading.get(n);if(o)return o;const u=new Promise((c,f)=>{const p=new Image;p.crossOrigin="anonymous",p.onload=()=>{this.cache.set(n,{image:p,lastAccessed:Date.now()}),this.loading.delete(n),this.evictIfNeeded(),this.onTileLoaded?.(),c(p)},p.onerror=y=>{this.loading.delete(n),f(y)},p.src=iW(a,t)});return this.loading.set(n,u),u}preloadTiles(a){for(const t of a){const n=Xd(t.x,t.y);!this.cache.has(n)&&!this.loading.has(n)&&this.loadTile(t.x,t.y).catch(()=>{})}}evictIfNeeded(){if(this.cache.size<=this.maxCacheSize)return;const t=Array.from(this.cache.entries()).sort((n,i)=>n[1].lastAccessed-i[1].lastAccessed).slice(0,this.cache.size-this.maxCacheSize);for(const[n]of t)this.cache.delete(n)}clear(){this.cache.clear(),this.loading.clear()}getStats(){return{cached:this.cache.size,loading:this.loading.size}}}let cb=null;function sW(e){return cb||(cb=new oW(100,e)),cb}function uW(){const{viewport:e}=su(),[a,t]=fe.useState(0),n=fe.useRef(sW());fe.useEffect(()=>{n.current.setOnTileLoaded(()=>{t(c=>c+1)})},[]);const i=nW(e);fe.useEffect(()=>{for(const c of i){const f=wa-1-c.y;n.current.getCached(c.x,f)||n.current.loadTile(c.x,f).catch(()=>{})}},[i]);const o=fe.useCallback((c,f)=>n.current.getCached(c,f),[a]),u=fe.useCallback(c=>{n.current.preloadTiles(c)},[]);return{visibleTiles:i,getTile:o,preloadAdjacentTiles:u,renderTrigger:a}}function lW({canvasRef:e,onParcelClick:a}){const{viewport:t,interaction:n}=su(),i=Af(),o=fe.useRef(null),u=fe.useRef(null),c=fe.useCallback(R=>{R.preventDefault(),o.current={x:R.clientX,y:R.clientY},i({type:"START_DRAG",payload:{x:R.clientX,y:R.clientY}})},[i]),f=fe.useCallback(R=>{const I=e.current;if(!I)return;const N=I.getBoundingClientRect(),E=R.clientX-N.left,P=R.clientY-N.top,S=Yd(E,P,t);if(i({type:"SET_HOVERED_PARCEL",payload:S}),n.isDragging){const v=R.clientX-n.dragStartX,O=R.clientY-n.dragStartY,j=Pi*t.zoom,V=-v/j,U=O/j;i({type:"PAN",payload:{deltaX:V,deltaY:U}}),i({type:"UPDATE_DRAG_START",payload:{x:R.clientX,y:R.clientY}})}},[e,t,n,i]),p=fe.useCallback(R=>{if(o.current){const I=Math.abs(R.clientX-o.current.x),N=Math.abs(R.clientY-o.current.y);if(I<5&&N<5&&a){const E=e.current;if(E){const P=E.getBoundingClientRect(),S=R.clientX-P.left,v=R.clientY-P.top,O=Yd(S,v,t);a(O)}}}o.current=null,i({type:"END_DRAG"})},[e,t,a,i]),y=fe.useCallback(()=>{i({type:"SET_HOVERED_PARCEL",payload:null}),i({type:"END_DRAG"}),o.current=null},[i]),m=fe.useCallback(R=>{R.preventDefault();const I=e.current;if(!I)return;const N=I.getBoundingClientRect(),E=R.clientX-N.left,P=R.clientY-N.top,S=Yd(E,P,t),v=R.deltaY>0?.97:1.03,O=Math.max(.5,Math.min(10,t.zoom*v)),j=Pi*O,V=S.x-(E-t.width/2)/j,U=S.y+(P-t.height/2)/j;i({type:"SET_ZOOM",payload:O}),i({type:"SET_CENTER",payload:{x:V,y:U}})},[e,t,i]),g=fe.useCallback(R=>{if(R.preventDefault(),R.touches.length===1){const I=R.touches[0];o.current={x:I.clientX,y:I.clientY},i({type:"START_DRAG",payload:{x:I.clientX,y:I.clientY}})}else if(R.touches.length===2){const I=R.touches[0].clientX-R.touches[1].clientX,N=R.touches[0].clientY-R.touches[1].clientY;u.current=Math.sqrt(I*I+N*N)}},[i]),T=fe.useCallback(R=>{if(R.preventDefault(),R.touches.length===1&&n.isDragging){const I=R.touches[0],N=I.clientX-n.dragStartX,E=I.clientY-n.dragStartY,P=Pi*t.zoom,S=-N/P,v=E/P;i({type:"PAN",payload:{deltaX:S,deltaY:v}}),i({type:"UPDATE_DRAG_START",payload:{x:I.clientX,y:I.clientY}})}else if(R.touches.length===2&&u.current!==null){const I=R.touches[0].clientX-R.touches[1].clientX,N=R.touches[0].clientY-R.touches[1].clientY,E=Math.sqrt(I*I+N*N),P=E/u.current;i({type:"ZOOM",payload:{factor:P}}),u.current=E}},[n,t.zoom,i]),M=fe.useCallback(R=>{if(R.touches.length===0){if(o.current&&a){const I=e.current;if(I){const N=I.getBoundingClientRect(),E=o.current.x-N.left,P=o.current.y-N.top,S=Yd(E,P,t);a(S)}}o.current=null,u.current=null,i({type:"END_DRAG"})}else if(R.touches.length===1){u.current=null;const I=R.touches[0];i({type:"UPDATE_DRAG_START",payload:{x:I.clientX,y:I.clientY}})}},[e,t,a,i]);return fe.useEffect(()=>{const R=e.current;if(R)return R.addEventListener("mousedown",c),R.addEventListener("mousemove",f),R.addEventListener("mouseup",p),R.addEventListener("mouseleave",y),R.addEventListener("wheel",m,{passive:!1}),R.addEventListener("touchstart",g,{passive:!1}),R.addEventListener("touchmove",T,{passive:!1}),R.addEventListener("touchend",M),()=>{R.removeEventListener("mousedown",c),R.removeEventListener("mousemove",f),R.removeEventListener("mouseup",p),R.removeEventListener("mouseleave",y),R.removeEventListener("wheel",m),R.removeEventListener("touchstart",g),R.removeEventListener("touchmove",T),R.removeEventListener("touchend",M)}},[e,c,f,p,y,m,g,T,M]),{isDragging:n.isDragging,hoveredParcel:n.hoveredParcel}}function cW({onParcelClick:e}){const a=fe.useRef(null),t=fe.useRef(null),n=fe.useRef(null),{viewport:i,interaction:o}=su(),{getTile:u,renderTrigger:c}=uW();rW(t);const{isDragging:f}=lW({canvasRef:a,onParcelClick:e}),p=fe.useCallback(()=>{const m=a.current;if(!m)return;const g=m.getContext("2d");if(!g)return;const T=window.devicePixelRatio||1,{width:M,height:R}=i;(m.width!==M*T||m.height!==R*T)&&(m.width=M*T,m.height=R*T,m.style.width=`${M}px`,m.style.height=`${R}px`,g.scale(T,T)),g.fillStyle=B5,g.fillRect(0,0,M,R);for(let I=0;I<wa;I++)for(let N=0;N<wa;N++){const E=aW(I,N,i);if(E.x+E.width<0||E.x>M||E.y+E.height<0||E.y>R)continue;const P=wa-1-N,S=u(I,P);S?g.drawImage(S,E.x,E.y,E.width,E.height):(g.fillStyle=U5,g.fillRect(E.x,E.y,E.width,E.height))}if(o.hoveredParcel){const{hoveredParcel:I}=o,N=Pi*i.zoom,{screenX:E,screenY:P}=O0(I.x,I.y,i),S=E,v=P-N,O=N,j=Math.max(4,O*.25),V=Math.max(1,O*.08);g.strokeStyle="white",g.lineWidth=V,g.lineCap="square",g.beginPath(),g.moveTo(S,v+j),g.lineTo(S,v),g.lineTo(S+j,v),g.stroke(),g.beginPath(),g.moveTo(S+O-j,v),g.lineTo(S+O,v),g.lineTo(S+O,v+j),g.stroke(),g.beginPath(),g.moveTo(S,v+O-j),g.lineTo(S,v+O),g.lineTo(S+j,v+O),g.stroke(),g.beginPath(),g.moveTo(S+O-j,v+O),g.lineTo(S+O,v+O),g.lineTo(S+O,v+O-j),g.stroke()}},[i,u,o]);fe.useEffect(()=>{const m=()=>{p(),n.current=requestAnimationFrame(m)};return n.current=requestAnimationFrame(m),()=>{n.current!==null&&cancelAnimationFrame(n.current)}},[p,c]);const y=f?"grabbing":"grab";return Ie.jsx("div",{ref:t,style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:Ie.jsx("canvas",{ref:a,style:{display:"block",cursor:y,touchAction:"none"}})})}const dW="_mapView_1v33h_1",fW="_controls_1v33h_11",pW="_controlButton_1v33h_21",yW="_coordinateDisplay_1v33h_45",xs={mapView:dW,controls:fW,controlButton:pW,coordinateDisplay:yW};function mW(){const e=Af(),a=()=>{e({type:"ZOOM",payload:{factor:1.5}})},t=()=>{e({type:"ZOOM",payload:{factor:.67}})},n=()=>{e({type:"RESET_VIEW"})};return Ie.jsxs("div",{className:xs.controls,children:[Ie.jsx("button",{className:xs.controlButton,onClick:a,title:"Zoom In","aria-label":"Zoom In",children:"+"}),Ie.jsx("button",{className:xs.controlButton,onClick:t,title:"Zoom Out","aria-label":"Zoom Out",children:"-"}),Ie.jsx("button",{className:xs.controlButton,onClick:n,title:"Reset View","aria-label":"Reset View",children:"⌂"})]})}function hW(){const{interaction:e}=su(),{hoveredParcel:a}=e;return a?Ie.jsxs("div",{className:xs.coordinateDisplay,children:[a.x,", ",a.y]}):null}const gW="#00D9FF",vW=.3,_W=2;function EW(){const{viewport:e}=su(),{selectedParcels:a,selectionColor:t}=os(),n=t||gW,i=Pi*e.zoom,o=fe.useMemo(()=>a.map(u=>{const{screenX:c,screenY:f}=O0(u.x,u.y,e);return{key:`${u.x},${u.y}`,x:c,y:f-i,width:i,height:i}}),[a,e,i]);return a.length===0?null:Ie.jsx("svg",{style:{position:"absolute",top:0,left:0,width:e.width,height:e.height,pointerEvents:"none",overflow:"hidden"},children:o.map(u=>Ie.jsx("rect",{x:u.x,y:u.y,width:u.width,height:u.height,fill:n,fillOpacity:vW,stroke:n,strokeWidth:_W,strokeDasharray:"4 2"},u.key))})}const bW=.2,wW=1.5,TW=2;function SW(){const{viewport:e}=su(),{groups:a,editingGroupId:t}=os(),n=Pi*e.zoom,i=fe.useMemo(()=>{const o=[];return a.forEach(u=>{const c=u.id===t;u.parcels.forEach(f=>{const{screenX:p,screenY:y}=O0(f.x,f.y,e);o.push({key:`${u.id}-${f.x},${f.y}`,x:p,y:y-n,width:n,height:n,color:u.color,isEditing:c})})}),o},[a,t,e,n]);return a.length===0?null:Ie.jsx("svg",{style:{position:"absolute",top:0,left:0,width:e.width,height:e.height,pointerEvents:"none",overflow:"hidden"},children:i.map(o=>Ie.jsx("rect",{x:o.x,y:o.y,width:o.width,height:o.height,fill:o.color,fillOpacity:bW,stroke:o.color,strokeWidth:o.isEditing?TW:wW,strokeDasharray:o.isEditing?"6 3":void 0},o.key))})}const OW="_sidebar_kugfy_1",AW="_sidebarCollapsed_kugfy_15",PW="_toggleButton_kugfy_19",IW="_header_kugfy_42",RW="_headerTitle_kugfy_47",MW="_content_kugfy_54",NW="_footer_kugfy_60",CW="_button_kugfy_67",jW="_buttonPrimary_kugfy_78",LW="_buttonSecondary_kugfy_92",DW="_groupCard_kugfy_111",qW="_groupCardHeader_kugfy_124",kW="_groupColorDot_kugfy_131",UW="_groupName_kugfy_138",BW="_groupMeta_kugfy_146",FW="_groupTags_kugfy_152",VW="_tag_kugfy_158",HW="_groupActions_kugfy_166",zW="_actionButton_kugfy_174",WW="_form_kugfy_189",GW="_formGroup_kugfy_195",KW="_label_kugfy_201",YW="_input_kugfy_207",XW="_textarea_kugfy_221",JW="_colorPicker_kugfy_226",QW="_colorOption_kugfy_232",ZW="_colorOptionSelected_kugfy_245",$W="_colorOptionDisabled_kugfy_249",xW="_tagsInput_kugfy_258",e6="_tagInForm_kugfy_269",t6="_tagRemove_kugfy_280",r6="_tagInput_kugfy_290",n6="_emptyState_kugfy_304",i6="_emptyStateIcon_kugfy_310",a6="_emptyStateText_kugfy_316",o6="_selectionInfo_kugfy_322",s6="_selectionInfoText_kugfy_330",u6="_errorMessage_kugfy_337",pt={sidebar:OW,sidebarCollapsed:AW,toggleButton:PW,header:IW,headerTitle:RW,content:MW,footer:NW,button:CW,buttonPrimary:jW,buttonSecondary:LW,groupCard:DW,groupCardHeader:qW,groupColorDot:kW,groupName:UW,groupMeta:BW,groupTags:FW,tag:VW,groupActions:HW,actionButton:zW,form:WW,formGroup:GW,label:KW,input:YW,textarea:XW,colorPicker:JW,colorOption:QW,colorOptionSelected:ZW,colorOptionDisabled:$W,tagsInput:xW,tagInForm:e6,tagRemove:t6,tagInput:r6,emptyState:n6,emptyStateIcon:i6,emptyStateText:a6,selectionInfo:o6,selectionInfoText:s6,errorMessage:u6};function l6({group:e,onEdit:a,onDelete:t,onClick:n}){const i=u=>{u.stopPropagation(),a(e)},o=u=>{u.stopPropagation(),confirm(`Delete group "${e.name}"?`)&&t(e.id)};return Ie.jsxs("div",{className:pt.groupCard,onClick:()=>n(e),children:[Ie.jsxs("div",{className:pt.groupCardHeader,children:[Ie.jsx("div",{className:pt.groupColorDot,style:{backgroundColor:e.color}}),Ie.jsx("h4",{className:pt.groupName,children:e.name})]}),Ie.jsxs("p",{className:pt.groupMeta,children:[e.parcels.length," parcel",e.parcels.length!==1?"s":"",e.description&&` • ${e.description}`]}),e.tags.length>0&&Ie.jsx("div",{className:pt.groupTags,children:e.tags.map(u=>Ie.jsx("span",{className:pt.tag,children:u},u))}),Ie.jsxs("div",{className:pt.groupActions,children:[Ie.jsx("button",{className:pt.actionButton,onClick:i,children:"Edit"}),Ie.jsx("button",{className:pt.actionButton,onClick:o,children:"Delete"})]})]})}function c6({onEditGroup:e}){const{groups:a,isLoading:t,error:n}=os(),i=ql(),o=Af(),{deleteGroup:u}=Uk(),c=async p=>{await u(p)},f=p=>{if(i({type:"SET_EDITING_GROUP",payload:p.id}),p.parcels.length>0){const y=p.parcels.map(E=>E.x),m=p.parcels.map(E=>E.y),g=Math.min(...y),T=Math.max(...y),M=Math.min(...m),R=Math.max(...m),I=(g+T)/2,N=(M+R)/2;o({type:"SET_CENTER",payload:{x:I,y:N}}),o({type:"SET_ZOOM",payload:4})}};return t&&a.length===0?Ie.jsx("div",{className:pt.emptyState,children:Ie.jsx("p",{className:pt.emptyStateText,children:"Loading groups..."})}):n&&a.length===0?Ie.jsx("div",{className:pt.emptyState,children:Ie.jsx("p",{className:pt.emptyStateText,style:{color:"#ff6b6b"},children:n})}):a.length===0?Ie.jsxs("div",{className:pt.emptyState,children:[Ie.jsx("div",{className:pt.emptyStateIcon,children:"□"}),Ie.jsx("p",{className:pt.emptyStateText,children:"No groups yet. Click parcels on the map to select them, then create a group."})]}):Ie.jsx("div",{children:a.map(p=>Ie.jsx(l6,{group:p,onEdit:e,onDelete:c,onClick:f},p.id))})}const Sl=["#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FFEAA7","#DDA0DD","#98D8C8","#F7DC6F","#BB8FCE","#85C1E9"];function d6(e){const a=new Set(e.map(n=>n.color));return Sl.find(n=>!a.has(n))||Sl[e.length%Sl.length]}function f6({editingGroup:e,selectedParcels:a,onCancel:t,onSave:n}){const{groups:i,error:o}=os(),u=ql(),{createGroup:c,updateGroup:f}=Uk(),[p,y]=fe.useState(!1),m="#00D9FF",g=fe.useMemo(()=>{const ye=new Set(i.filter(Me=>Me.id!==e?.id).map(Me=>Me.color));return ye.add(m),ye},[i,e?.id]),T=fe.useCallback(()=>e?.color?e.color:Sl.find(Me=>!g.has(Me))||d6(i),[e?.color,g,i]),[M,R]=fe.useState(e?.name||""),[I,N]=fe.useState(e?.description||""),[E,P]=fe.useState(T),[S,v]=fe.useState(e?.tags||[]),[O,j]=fe.useState(""),V=e?.parcels||a,U=!!e;fe.useEffect(()=>{U||u({type:"SET_SELECTION_COLOR",payload:E})},[E,U,u]),fe.useEffect(()=>(U||u({type:"SET_SELECTION_COLOR",payload:E}),()=>{u({type:"SET_SELECTION_COLOR",payload:null})}),[]);const K=async ye=>{if(ye.preventDefault(),!(!M.trim()||V.length===0||p)){y(!0);try{U&&e?await f(e.id,{name:M.trim(),description:I.trim(),color:E,tags:S})&&n():await c({name:M.trim(),description:I.trim(),color:E,tags:S,parcels:[...V]})&&n()}finally{y(!1)}}},ae=fe.useCallback(()=>{const ye=O.trim().toLowerCase();ye&&!S.includes(ye)&&v([...S,ye]),j("")},[O,S]),_e=ye=>{ye.key==="Enter"?(ye.preventDefault(),ae()):ye.key==="Backspace"&&!O&&S.length>0&&v(S.slice(0,-1))},be=ye=>{v(S.filter(Me=>Me!==ye))};return Ie.jsxs("form",{className:pt.form,onSubmit:K,children:[Ie.jsx("div",{className:pt.selectionInfo,children:Ie.jsxs("p",{className:pt.selectionInfoText,children:[V.length," parcel",V.length!==1?"s":""," selected"]})}),Ie.jsxs("div",{className:pt.formGroup,children:[Ie.jsx("label",{className:pt.label,children:"Name *"}),Ie.jsx("input",{type:"text",className:pt.input,value:M,onChange:ye=>R(ye.target.value),placeholder:"Enter group name",autoFocus:!0})]}),Ie.jsxs("div",{className:pt.formGroup,children:[Ie.jsx("label",{className:pt.label,children:"Description"}),Ie.jsx("textarea",{className:`${pt.input} ${pt.textarea}`,value:I,onChange:ye=>N(ye.target.value),placeholder:"Optional description"})]}),Ie.jsxs("div",{className:pt.formGroup,children:[Ie.jsx("label",{className:pt.label,children:"Color"}),Ie.jsx("div",{className:pt.colorPicker,children:Sl.map(ye=>{const Me=g.has(ye),Ne=E===ye;return Ie.jsx("button",{type:"button",className:`${pt.colorOption} ${Ne?pt.colorOptionSelected:""} ${Me?pt.colorOptionDisabled:""}`,style:{backgroundColor:ye},onClick:()=>!Me&&P(ye),disabled:Me,title:Me?"Color already in use":void 0},ye)})})]}),Ie.jsxs("div",{className:pt.formGroup,children:[Ie.jsx("label",{className:pt.label,children:"Tags"}),Ie.jsxs("div",{className:pt.tagsInput,children:[S.map(ye=>Ie.jsxs("span",{className:pt.tagInForm,children:[ye,Ie.jsx("button",{type:"button",className:pt.tagRemove,onClick:()=>be(ye),children:"×"})]},ye)),Ie.jsx("input",{type:"text",className:pt.tagInput,value:O,onChange:ye=>j(ye.target.value),onKeyDown:_e,onBlur:ae,placeholder:"Add tag..."})]})]}),o&&Ie.jsx("div",{className:pt.errorMessage,children:o}),Ie.jsxs("div",{className:pt.footer,style:{padding:0,borderTop:"none"},children:[Ie.jsx("button",{type:"button",className:`${pt.button} ${pt.buttonSecondary}`,onClick:t,disabled:p,children:"Cancel"}),Ie.jsx("button",{type:"submit",className:`${pt.button} ${pt.buttonPrimary}`,disabled:!M.trim()||V.length===0||p,children:p?"Saving...":U?"Save Changes":"Create Group"})]})]})}function p6(){const{sidebarOpen:e,selectedParcels:a,groups:t,editingGroupId:n}=os(),i=ql(),[o,u]=fe.useState("list"),c=fe.useMemo(()=>o==="edit"&&n&&t.find(I=>I.id===n)||null,[o,n,t]),f=()=>{i({type:"TOGGLE_SIDEBAR"})},p=()=>{u("create")},y=I=>{i({type:"SET_EDITING_GROUP",payload:I.id}),u("edit")},m=()=>{u("list"),i({type:"SET_EDITING_GROUP",payload:null})},g=()=>{u("list"),i({type:"SET_EDITING_GROUP",payload:null})},T=()=>{i({type:"CLEAR_SELECTION"})},M=`${pt.sidebar} ${e?"":pt.sidebarCollapsed}`,R=()=>{switch(o){case"create":return"Create Group";case"edit":return"Edit Group";default:return"Scene Groups"}};return Ie.jsxs("div",{className:M,children:[Ie.jsx("button",{className:pt.toggleButton,onClick:f,children:e?">":"<"}),Ie.jsx("div",{className:pt.header,children:Ie.jsx("h3",{className:pt.headerTitle,children:R()})}),Ie.jsxs("div",{className:pt.content,children:[o==="list"&&Ie.jsxs(Ie.Fragment,{children:[a.length>0&&Ie.jsx("div",{className:pt.selectionInfo,children:Ie.jsxs("p",{className:pt.selectionInfoText,children:[a.length," parcel",a.length!==1?"s":""," selected"]})}),Ie.jsx(c6,{onEditGroup:y})]}),(o==="create"||o==="edit")&&Ie.jsx(f6,{editingGroup:c,selectedParcels:a,onCancel:m,onSave:g})]}),o==="list"&&Ie.jsx("div",{className:pt.footer,children:a.length>0?Ie.jsxs(Ie.Fragment,{children:[Ie.jsx("button",{className:`${pt.button} ${pt.buttonSecondary}`,onClick:T,children:"Clear"}),Ie.jsx("button",{className:`${pt.button} ${pt.buttonPrimary}`,onClick:p,children:"Create Group"})]}):Ie.jsx("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:"13px",margin:0},children:"Click parcels on the map to select them"})})]})}const y6=[{mode:"view",icon:"👁",label:"View"},{mode:"groups",icon:"▦",label:"Scene Groups"}];function m6(){const{mode:e}=os(),a=ql(),t=n=>{a({type:"SET_MODE",payload:n})};return Ie.jsx("div",{style:$s.container,children:Ie.jsx("div",{style:$s.bar,children:y6.map(n=>Ie.jsxs("button",{style:{...$s.button,...n.mode===e?$s.buttonActive:{}},onClick:()=>t(n.mode),title:n.label,children:[Ie.jsx("span",{style:$s.icon,children:n.icon}),Ie.jsx("span",{style:$s.label,children:n.label})]},n.mode))})})}const $s={container:{position:"absolute",top:16,left:"50%",transform:"translateX(-50%)",zIndex:100},bar:{display:"flex",gap:4,padding:4,background:"rgba(28, 28, 32, 0.95)",borderRadius:12,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)"},button:{display:"flex",alignItems:"center",gap:8,padding:"10px 16px",border:"none",borderRadius:8,background:"transparent",color:"rgba(255, 255, 255, 0.7)",fontSize:14,cursor:"pointer",transition:"all 0.2s ease",whiteSpace:"nowrap"},buttonActive:{background:"rgba(255, 255, 255, 0.1)",color:"#00D9FF"},icon:{fontSize:16},label:{fontWeight:500}};function h6({onParcelClick:e}){const{mode:a}=os(),t=ql(),n=fe.useCallback(o=>{a==="groups"&&t({type:"TOGGLE_PARCEL_SELECTION",payload:o}),e?.(o)},[a,t,e]),i=a==="groups";return Ie.jsxs("div",{className:xs.mapView,children:[Ie.jsx(cW,{onParcelClick:n}),Ie.jsx(SW,{}),i&&Ie.jsx(EW,{}),Ie.jsx(mW,{}),Ie.jsx(hW,{}),Ie.jsx(m6,{}),i&&Ie.jsx(p6,{})]})}function g6({initialCenter:e,initialZoom:a,onParcelClick:t}){return Ie.jsx(V5,{initialCenter:e,initialZoom:a,children:Ie.jsx(tW,{children:Ie.jsx(h6,{onParcelClick:t})})})}function uD(){const e=a=>{console.log("Clicked parcel:",a.x,a.y)};return Ie.jsx(g6,{onParcelClick:e})}const v6={defaultChainId:Number(af.get("CHAIN_ID")),authUrl:af.get("AUTH_URL"),basePath:"/mobile-hub"},_6=/^decentraland.(zone|org|today)$/.test(window.location.host)?"/mobile-hub":"/";function E6(){return Ie.jsx(gU,{basename:_6,children:Ie.jsxs(ez,{config:v6,children:[Ie.jsx(q5,{}),Ie.jsxs(Y1,{children:[Ie.jsx(fb,{path:"/",element:Ie.jsx(uD,{})}),Ie.jsx(fb,{path:"*",element:Ie.jsx(uD,{})})]})]})})}J2.createRoot(document.getElementById("root")).render(Ie.jsx(fe.StrictMode,{children:Ie.jsx(E6,{})}));export{Pl as _,B2 as a,rH as b,U2 as c,Dq as e,F2 as g,y5 as r,b6 as x};