seroval 0.11.6 → 0.12.1
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.
- package/README.md +29 -16
- package/dist/cjs/development/index.cjs +3088 -4876
- package/dist/cjs/development/index.cjs.map +4 -4
- package/dist/cjs/production/index.cjs +3 -3
- package/dist/esm/development/index.mjs +3085 -4875
- package/dist/esm/development/index.mjs.map +4 -4
- package/dist/esm/production/index.mjs +3 -3
- package/dist/types/core/Serializer.d.ts +6 -0
- package/dist/types/core/Serializer.d.ts.map +1 -0
- package/dist/types/core/UnsupportedTypeError.d.ts +1 -0
- package/dist/types/core/UnsupportedTypeError.d.ts.map +1 -0
- package/dist/types/core/assert.d.ts +1 -0
- package/dist/types/core/assert.d.ts.map +1 -0
- package/dist/types/core/base/async.d.ts +30 -0
- package/dist/types/core/base/async.d.ts.map +1 -0
- package/dist/types/core/base/stream.d.ts +40 -0
- package/dist/types/core/base/stream.d.ts.map +1 -0
- package/dist/types/core/base/sync.d.ts +32 -0
- package/dist/types/core/base/sync.d.ts.map +1 -0
- package/dist/types/core/base-primitives.d.ts +3 -1
- package/dist/types/core/base-primitives.d.ts.map +1 -0
- package/dist/types/core/compat.d.ts +1 -0
- package/dist/types/core/compat.d.ts.map +1 -0
- package/dist/types/core/constants.d.ts +19 -4
- package/dist/types/core/constants.d.ts.map +1 -0
- package/dist/types/core/constructors.d.ts +1 -0
- package/dist/types/core/constructors.d.ts.map +1 -0
- package/dist/types/core/cross/async.d.ts +8 -3
- package/dist/types/core/cross/async.d.ts.map +1 -0
- package/dist/types/core/cross/cross-parser.d.ts +8 -0
- package/dist/types/core/cross/cross-parser.d.ts.map +1 -0
- package/dist/types/core/cross/index.d.ts +12 -5
- package/dist/types/core/cross/index.d.ts.map +1 -0
- package/dist/types/core/cross/serialize.d.ts +23 -5
- package/dist/types/core/cross/serialize.d.ts.map +1 -0
- package/dist/types/core/cross/stream.d.ts +8 -3
- package/dist/types/core/cross/stream.d.ts.map +1 -0
- package/dist/types/core/cross/sync.d.ts +8 -3
- package/dist/types/core/cross/sync.d.ts.map +1 -0
- package/dist/types/core/get-identifier.d.ts +1 -0
- package/dist/types/core/get-identifier.d.ts.map +1 -0
- package/dist/types/core/keys.d.ts +1 -0
- package/dist/types/core/keys.d.ts.map +1 -0
- package/dist/types/core/literals.d.ts +1 -0
- package/dist/types/core/literals.d.ts.map +1 -0
- package/dist/types/core/parser-context.d.ts +23 -0
- package/dist/types/core/parser-context.d.ts.map +1 -0
- package/dist/types/core/plugin.d.ts +26 -0
- package/dist/types/core/plugin.d.ts.map +1 -0
- package/dist/types/core/promise-to-result.d.ts +1 -0
- package/dist/types/core/promise-to-result.d.ts.map +1 -0
- package/dist/types/core/reference.d.ts +1 -0
- package/dist/types/core/reference.d.ts.map +1 -0
- package/dist/types/core/serializer-context.old.d.ts +165 -0
- package/dist/types/core/serializer-context.old.d.ts.map +1 -0
- package/dist/types/core/shared.d.ts +4 -7
- package/dist/types/core/shared.d.ts.map +1 -0
- package/dist/types/core/string.d.ts +1 -0
- package/dist/types/core/string.d.ts.map +1 -0
- package/dist/types/core/tree/async.d.ts +8 -3
- package/dist/types/core/tree/async.d.ts.map +1 -0
- package/dist/types/core/tree/deserialize.d.ts +49 -2
- package/dist/types/core/tree/deserialize.d.ts.map +1 -0
- package/dist/types/core/tree/index.d.ts +10 -7
- package/dist/types/core/tree/index.d.ts.map +1 -0
- package/dist/types/core/tree/serialize.d.ts +37 -4
- package/dist/types/core/tree/serialize.d.ts.map +1 -0
- package/dist/types/core/tree/sync.d.ts +8 -3
- package/dist/types/core/tree/sync.d.ts.map +1 -0
- package/dist/types/core/types.d.ts +10 -3
- package/dist/types/core/types.d.ts.map +1 -0
- package/dist/types/core/web-api.d.ts +1 -0
- package/dist/types/core/web-api.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/core/Serializer.ts +20 -0
- package/src/core/base/async.ts +804 -0
- package/src/core/base/stream.ts +496 -0
- package/src/core/base/sync.ts +675 -0
- package/src/core/base-primitives.ts +22 -0
- package/src/core/constants.ts +61 -45
- package/src/core/cross/async.ts +6 -751
- package/src/core/cross/cross-parser.ts +9 -0
- package/src/core/cross/index.ts +62 -84
- package/src/core/cross/serialize.ts +71 -862
- package/src/core/cross/stream.ts +6 -873
- package/src/core/cross/sync.ts +6 -624
- package/src/core/is-serializable.new.ts +208 -0
- package/src/core/keys.ts +5 -3
- package/src/core/parser-context.ts +131 -0
- package/src/core/plugin.ts +55 -0
- package/src/core/serializer-context.new.ts +1168 -0
- package/src/core/serializer-context.old.ts +1126 -0
- package/src/core/shared.ts +46 -123
- package/src/core/tree/async.ts +6 -750
- package/src/core/tree/deserialize.ts +423 -420
- package/src/core/tree/index.ts +49 -91
- package/src/core/tree/parser.ts +45 -0
- package/src/core/tree/serialize.ts +122 -828
- package/src/core/tree/sync.ts +6 -624
- package/src/core/types.ts +13 -2
- package/src/example.ts +28 -0
- package/src/index.ts +3 -0
- package/dist/types/core/assignments.d.ts +0 -33
- package/dist/types/core/context.d.ts +0 -9
- package/dist/types/core/cross/context.d.ts +0 -37
- package/dist/types/core/cross/primitives.d.ts +0 -9
- package/dist/types/core/cross/web-api.d.ts +0 -4
- package/dist/types/core/tree/context.d.ts +0 -44
- package/dist/types/core/tree/primitives.d.ts +0 -9
- package/dist/types/core/tree/web-api.d.ts +0 -4
- package/src/core/assignments.ts +0 -159
- package/src/core/context.ts +0 -15
- package/src/core/cross/context.ts +0 -102
- package/src/core/cross/primitives.ts +0 -128
- package/src/core/cross/web-api.ts +0 -50
- package/src/core/tree/context.ts +0 -125
- package/src/core/tree/primitives.ts +0 -123
- package/src/core/tree/web-api.ts +0 -50
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function
|
|
3
|
-
`).replace(/\\r/g,"\r").replace(/\\b/g,"\b").replace(/\\t/g," ").replace(/\\f/g,"\f").replace(/\\x3C/g,"<").replace(/\\u2028/g,"\u2028").replace(/\\u2029/g,"\u2029")}var{toString:Un}=Object.prototype,P=class extends Error{constructor(n){super('Unsupported type "'+Un.call(n)+'"');this.value=n}};function de(e){return{t:2,i:void 0,s:e,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}var q=de(2),W=de(3),G=de(1),M=de(0),_r=de(4),Kr=de(5),Hr=de(6),qr=de(7);function $(e,r){if(!e)throw r}var ie="__SEROVAL_REFS__",X="_$",se="$R",Qe="s",er="f",nr="P",or="Ps",tr="Pf",rr="c",ar="S",Oe="Se",Wr=`self.${X}=self.${X}||{${nr}:function(s,f,p){return(p=new Promise(function(a,b){s=a,f=b})).${Qe}=s,p.${er}=f,p},uP:function(p){delete p.${Qe};delete p.${er}},${or}:function(p,d){p.${Qe}(d),p.status="success",p.value=d,this.uP(p)},${tr}:function(p,d){p.${er}(d),p.status="failure",p.value=d,this.uP(p)},uS:function(s){delete s.${rr}},${Oe}:function(s,t,d,c){switch(c=s.${rr},t){case 0:return c.enqueue(d);case 1:return(this.uS(s),c.error(d));case 2:return(this.uS(s),c.close())}},${ar}:function(s,c){return(s=new ReadableStream({start:function(x){c=x}})).${rr}=c,s}}`;function Gr(e){return e==null?`self.${se}=self.${se}||[];`:`(self.${se}=self.${se}||{})["${m(e)}"]=[]`}var sr=new Map,pe=new Map;function $r(e,r){return sr.set(r,e),pe.set(e,r),r}function h(e){return sr.has(e)}function xn(e){return pe.has(e)}function Xr(e){return $(h(e),new Error("Missing reference id")),sr.get(e)}function Yr(e){return $(xn(e),new Error("Missing reference for id:"+e)),pe.get(e)}typeof globalThis!==void 0?Object.defineProperty(globalThis,ie,{value:pe,configurable:!0,writable:!1,enumerable:!1}):typeof window!==void 0?Object.defineProperty(window,ie,{value:pe,configurable:!0,writable:!1,enumerable:!1}):typeof self!==void 0?Object.defineProperty(self,ie,{value:pe,configurable:!0,writable:!1,enumerable:!1}):typeof global!==void 0&&Object.defineProperty(global,ie,{value:pe,configurable:!0,writable:!1,enumerable:!1});function Y(e){switch(e){case 1/0:return Kr;case-1/0:return Hr;default:return e!==e?qr:Object.is(e,-0)?_r:{t:0,i:void 0,s:e,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}}function J(e){return{t:1,i:void 0,s:m(e),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Z(e){return{t:3,i:void 0,s:""+e,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function O(e){return{t:4,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Q(e,r){return{t:5,i:e,s:r.toISOString(),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function ee(e,r){return{t:6,i:e,s:void 0,l:void 0,c:r.source,m:r.flags,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function x(e,r){let n=new Uint8Array(r),o=n.length,t=new Array(o);for(let a=0;a<o;a++)t[a]=n[a];return{t:21,i:e,s:t,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Me(e,r){return $(r in Je,new Error("Only well-known symbols are supported.")),{t:17,i:e,s:Je[r],l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function T(e,r){return{t:20,i:e,s:m(Xr(r)),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function ue(e,r){let n=H(e,r);return e.reference.marked.has(n)?O(n):x(n,r)}function _e(e,r,n){return{t:15,i:r,s:void 0,l:n.length,c:n.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:ue(e,n.buffer),b:n.byteOffset,o:void 0}}function Ke(e,r,n){return{t:16,i:r,s:void 0,l:n.length,c:n.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:ue(e,n.buffer),b:n.byteOffset,o:void 0}}function He(e,r,n){return{t:22,i:r,s:void 0,l:n.byteLength,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:ue(e,n.buffer),b:n.byteOffset,o:void 0}}function qe(e,r){let n=H(e,r);return e.reference.marked.has(n)?O(n):h(r)?T(n,r):Me(n,r)}function We(e,r){$(h(r),new Error("Cannot serialize function without reference ID."));let n=H(e,r);return e.reference.marked.has(n)?O(n):T(n,r)}function K(e){return e instanceof EvalError?"EvalError":e instanceof RangeError?"RangeError":e instanceof ReferenceError?"ReferenceError":e instanceof SyntaxError?"SyntaxError":e instanceof TypeError?"TypeError":e instanceof URIError?"URIError":"Error"}function Jr(e){switch(e){case"Error":return Error;case"EvalError":return EvalError;case"RangeError":return RangeError;case"ReferenceError":return ReferenceError;case"SyntaxError":return SyntaxError;case"TypeError":return TypeError;case"URIError":return URIError;default:throw new Error(`Unknown Error constructor "${e}"`)}}function L(e,r){let n,o=K(r);r.name!==o?n={name:r.name}:r.constructor.name!==o&&(n={name:r.constructor.name});let t=Object.getOwnPropertyNames(r);for(let a of t)a!=="name"&&a!=="message"&&(a==="stack"?e.features&16&&(n=n||{},n[a]=r[a]):(n=n||{},n[a]=r[a]));return n}function p(e,r){if(!r||typeof r!="object"||Array.isArray(r))return!1;let n=r.constructor;if(e.features&2048)switch(n){case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return!1;default:break}if((e.features&4104)===4104)switch(n){case BigInt64Array:case BigUint64Array:return!1;default:break}return e.features&32&&n===Map||e.features&512&&n===Set||e.features&8192&&(typeof Headers!="undefined"&&n===Headers||typeof File!="undefined"&&n===File)?!1:e.features&1024?Symbol.iterator in r:!1}function Zr(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new Error(`Unknown TypedArray "${e}"`)}}var Vn=/^[$A-Z_][0-9A-Z_$]*$/i;function ye(e){let r=e[0];return(r==="$"||r==="_"||r>="A"&&r<="Z"||r>="a"&&r<="z")&&Vn.test(e)}function U(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}async function Qr(e,r,n){return{t:23,i:r,s:void 0,l:void 0,c:m(n.type),m:void 0,p:void 0,e:void 0,f:ue(e,await n.arrayBuffer()),a:void 0,b:void 0,o:void 0}}async function en(e,r,n){return{t:24,i:r,s:void 0,l:void 0,c:m(n.type),m:m(n.name),p:void 0,e:void 0,f:ue(e,await n.arrayBuffer()),a:void 0,b:n.lastModified,o:void 0}}function re(e,r){return{t:18,i:e,s:m(r.href),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function ne(e,r){return{t:19,i:e,s:m(r.toString()),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function oe(e,r){return{t:39,i:e,s:m(r.message),l:void 0,c:m(r.name),m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async function ze(e){try{return[1,await e]}catch(r){return[0,r]}}function ve(e,r){return{body:r,cache:e.cache,credentials:e.credentials,headers:e.headers,integrity:e.integrity,keepalive:e.keepalive,method:e.method,mode:e.mode,redirect:e.redirect,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}function ge(e){return{headers:e.headers,status:e.status,statusText:e.statusText}}function te(e){return{bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed}}function ae(e){return{detail:e.detail,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed}}async function Mn(e,r){let n=r.length,o=new Array(n),t=new Array(n),a;for(let s=0;s<n;s++)s in r&&(a=r[s],p(e,a)?t[s]=a:o[s]=await z(e,a));for(let s=0;s<n;s++)s in t&&(o[s]=await z(e,t[s]));return o}async function nn(e,r,n){return{t:9,i:r,s:void 0,l:n.length,c:void 0,m:void 0,p:void 0,e:void 0,a:await Mn(e,n),f:void 0,b:void 0,o:U(n)}}async function _n(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0;for(let[f,c]of n.entries())p(e,f)||p(e,c)?(s[i]=f,l[i]=c,i++):(t[d]=await z(e,f),a[d]=await z(e,c),d++);for(let f=0;f<i;f++)t[d+f]=await z(e,s[f]),a[d+f]=await z(e,l[f]);return{t:8,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:a,s:o},a:void 0,f:void 0,b:void 0,o:void 0}}async function Kn(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=0,l=0;for(let i of n.keys())p(e,i)?a[s++]=i:t[l++]=await z(e,i);for(let i=0;i<s;i++)t[l+i]=await z(e,a[i]);return{t:7,i:r,s:void 0,l:o,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}async function dr(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=await z(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=await z(e,l[u]);if(e.features&1024&&Symbol.iterator in r){t[o]=0;let u=Array.from(r);a[o]=await nn(e,H(e,u),u),o++}return{k:t,v:a,s:o}}async function on(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=await z(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=await z(e,l[u]);return{k:t,v:a,s:o}}async function Hn(e,r,n){let[o,t]=await ze(n);return{t:12,i:r,s:o,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await z(e,t),b:void 0,o:void 0}}async function ir(e,r,n,o){return{t:o?11:10,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:await dr(e,n),e:void 0,a:void 0,f:void 0,b:void 0,o:U(n)}}async function qn(e,r,n){let o=L(e,n),t=o?await dr(e,o):void 0;return{t:14,i:r,s:void 0,l:void 0,c:void 0,m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async function rn(e,r,n){let o=L(e,n),t=o?await dr(e,o):void 0;return{t:13,i:r,s:void 0,l:void 0,c:K(n),m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async function Wn(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:25,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await on(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}async function Gn(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:26,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await on(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}async function $n(e,r,n){return{t:27,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await z(e,n.valueOf()),b:void 0,o:void 0}}async function Xn(e,r,n){return{t:35,i:r,s:m(n.url),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:await he(e,ve(n,n.body?await n.clone().arrayBuffer():null)),a:void 0,b:void 0,o:void 0}}async function Yn(e,r,n){return{t:36,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:[n.body?ue(e,await n.clone().arrayBuffer()):M,await he(e,ge(n))],b:void 0,o:void 0}}async function Jn(e,r,n){return{t:37,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await he(e,te(n)),b:void 0,o:void 0}}async function Zn(e,r,n){return{t:38,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await he(e,ae(n)),b:void 0,o:void 0}}async function he(e,r){if(!r)return M;let n=H(e,r);if(e.reference.marked.has(n))return O(n);if(h(r))return T(n,r);if(Array.isArray(r))return nn(e,n,r);let o=r.constructor;switch(o){case Number:case Boolean:case String:case BigInt:return $n(e,n,r);case Date:return Q(n,r);case RegExp:return ee(n,r);case Object:return ir(e,n,r,!1);case void 0:return ir(e,n,r,!0);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return rn(e,n,r);default:break}if(e.features&2048)switch(o){case ArrayBuffer:return x(n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _e(e,n,r);case DataView:return He(e,n,r);default:break}if((e.features&4104)===4104)switch(o){case BigInt64Array:case BigUint64Array:return Ke(e,n,r);default:break}if(e.features&32&&o===Map)return _n(e,n,r);if(e.features&512&&o===Set)return Kn(e,n,r);if(e.features&256&&(o===Promise||r instanceof Promise))return Hn(e,n,r);if(e.features&8192){if(typeof URL!="undefined"&&o===URL)return re(n,r);if(typeof URLSearchParams!="undefined"&&o===URLSearchParams)return ne(n,r);if(typeof Blob!="undefined"&&o===Blob)return Qr(e,n,r);if(typeof File!="undefined"&&o===File)return en(e,n,r);if(typeof Headers!="undefined"&&o===Headers)return Wn(e,n,r);if(typeof FormData!="undefined"&&o===FormData)return Gn(e,n,r);if(typeof Request!="undefined"&&o===Request)return Xn(e,n,r);if(typeof Response!="undefined"&&o===Response)return Yn(e,n,r);if(typeof Event!="undefined"&&o===Event)return Jn(e,n,r);if(typeof CustomEvent!="undefined"&&o===CustomEvent)return Zn(e,n,r);if(typeof DOMException!="undefined"&&o===DOMException)return oe(n,r)}if(e.features&1&&typeof AggregateError!="undefined"&&(o===AggregateError||r instanceof AggregateError))return qn(e,n,r);if(r instanceof Error)return rn(e,n,r);if(e.features&1024&&Symbol.iterator in r)return ir(e,n,r,!!o);throw new P(r)}async function z(e,r){let n=typeof r;if(e.features&8&&n==="bigint")return Z(r);switch(n){case"boolean":return r?q:W;case"undefined":return G;case"string":return J(r);case"number":return Y(r);case"object":return he(e,r);case"symbol":return qe(e,r);case"function":return We(e,r);default:throw new P(r)}}function tn(e,r){switch(r){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}function C(e,r,n){return e.refs.has(r)&&e.values.set(r,n),n}function Qn(e,r){let n=r.l,o=C(e,r.i,new Array(n)),t;for(let a=0;a<n;a++)t=r.a[a],t&&(o[a]=w(e,t));return tn(o,r.o),o}function an(e,r,n){let o=r.s;if(o){let t,a,s=r.k,l=r.v;for(let i=0;i<o;i++)switch(t=s[i],a=w(e,l[i]),t){case 0:{let d=a;n[Symbol.iterator]=()=>d.values()}break;default:n[k(t)]=a;break}}return n}function eo(e,r){let n=C(e,r.i,r.t===10?{}:Object.create(null));return an(e,r.p,n),tn(n,r.o),n}function ro(e,r){let n=C(e,r.i,new Set),o=r.a;for(let t=0,a=r.l;t<a;t++)n.add(w(e,o[t]));return n}function no(e,r){let n=C(e,r.i,new Map),o=r.e.k,t=r.e.v;for(let a=0,s=r.e.s;a<s;a++)n.set(w(e,o[a]),w(e,t[a]));return n}function sn(e,r,n){if(r.p){let o=an(e,r.p,{});Object.assign(n,o)}return n}function oo(e,r){let n=C(e,r.i,new AggregateError([],k(r.m)));return sn(e,r,n)}function to(e,r){let n=Jr(r.c),o=C(e,r.i,new n(k(r.m)));return sn(e,r,o)}function ao(){let e,r;return{resolve(n){e(n)},reject(n){r(n)},promise:new Promise((n,o)=>{e=n,r=o})}}async function so(e,r){let n=ao(),o=C(e,r.i,n.promise),t=w(e,r.f);return r.s?n.resolve(t):n.reject(t),o}function io(e,r){let n=new Uint8Array(r.s);return C(e,r.i,n.buffer)}function uo(e,r){let n=Zr(r.c),o=w(e,r.f);return C(e,r.i,new n(o,r.b,r.l))}function fo(e,r){return C(e,r.i,new Date(r.s))}function lo(e,r){return C(e,r.i,new RegExp(r.c,r.m))}function co(e,r){return C(e,r.i,new URL(k(r.s)))}function mo(e,r){return C(e,r.i,new URLSearchParams(k(r.s)))}function So(e,r){return C(e,r.i,Yr(k(r.s)))}function po(e,r){let n=w(e,r.f);return C(e,r.i,new DataView(n,r.b,r.l))}function No(e,r){let n=w(e,r.f);return C(e,r.i,new Blob([n],{type:k(r.c)}))}function yo(e,r){let n=w(e,r.f);return C(e,r.i,new File([n],k(r.m),{type:k(r.c),lastModified:r.b}))}function vo(e,r){let n=C(e,r.i,new Headers),o=r.e.k,t=r.e.v;for(let a=0,s=r.e.s;a<s;a++)n.set(k(o[a]),w(e,t[a]));return n}function go(e,r){let n=C(e,r.i,new FormData),o=r.e.k,t=r.e.v;for(let a=0,s=r.e.s;a<s;a++)n.set(k(o[a]),w(e,t[a]));return n}function bo(e,r){return C(e,r.i,Object(w(e,r.f)))}function Co(e,r){return C(e,r.i,new Request(k(r.s),w(e,r.f)))}function Eo(e,r){return C(e,r.i,new Response(w(e,r.a[0]),w(e,r.a[1])))}function wo(e,r){return C(e,r.i,new Event(k(r.s),w(e,r.f)))}function Ao(e,r){return C(e,r.i,new CustomEvent(k(r.s),w(e,r.f)))}function Ro(e,r){return C(e,r.i,new DOMException(k(r.s),k(r.c)))}function w(e,r){switch(r.t){case 2:return jr(r);case 0:return r.s;case 1:return k(r.s);case 3:return BigInt(r.s);case 4:return e.values.get(r.i);case 9:return Qn(e,r);case 10:case 11:return eo(e,r);case 5:return fo(e,r);case 6:return lo(e,r);case 7:return ro(e,r);case 8:return no(e,r);case 21:return io(e,r);case 16:case 15:return uo(e,r);case 22:return po(e,r);case 14:return oo(e,r);case 13:return to(e,r);case 12:return so(e,r);case 17:return Fr[r.s];case 18:return co(e,r);case 19:return mo(e,r);case 20:return So(e,r);case 23:return No(e,r);case 24:return yo(e,r);case 25:return vo(e,r);case 26:return go(e,r);case 27:return bo(e,r);case 35:return Co(e,r);case 36:return Eo(e,r);case 37:return wo(e,r);case 38:return Ao(e,r);case 39:return Ro(e,r);default:throw new Error("invariant")}}function $e(e){switch(e.t){case"index":return e.s+"="+e.v;case"set":return e.s+".set("+e.k+","+e.v+")";case"add":return e.s+".add("+e.v+")";case"append":return e.s+".append("+e.k+","+e.v+")";default:return""}}var ko={3:"Object.freeze",2:"Object.seal",1:"Object.preventExtensions",0:void 0};function Po(e){let r=[],n=e[0],o=n,t;for(let a=1,s=e.length;a<s;a++){if(t=e[a],t.t===o.t)switch(t.t){case"index":t.v===o.v?n={t:"index",s:t.s,k:void 0,v:$e(n)}:(r.push(n),n=t);break;case"set":t.s===o.s?n={t:"set",s:$e(n),k:t.k,v:t.v}:(r.push(n),n=t);break;case"add":t.s===o.s?n={t:"add",s:$e(n),k:void 0,v:t.v}:(r.push(n),n=t);break;case"append":r.push(n),n=t;break;default:break}else r.push(n),n=t;o=t}return r.push(n),r}function fe(e){if(e.length){let r="",n=Po(e);for(let o=0,t=n.length;o<t;o++)r+=$e(n[o])+",";return r}}function Xe(e){let r="";for(let n=0,o=e.length;n<o;n++){let t=e[n];r+=ko[t.type]+"("+t.value+"),"}return r}function lr(e,r,n){r!==0&&(_(e,n),e.flags.push({type:r,value:A(e,n)}))}function dn(e){let r=fe(e.assignments),n=Xe(e.flags);return r?n?r+n:r:n}function un(e,r,n){e.assignments.push({t:"index",s:r,k:void 0,v:n})}function Oo(e,r,n){e.assignments.push({t:"add",s:A(e,r),k:void 0,v:n})}function ur(e,r,n,o){e.assignments.push({t:"set",s:A(e,r),k:n,v:o})}function zo(e,r,n,o){e.assignments.push({t:"append",s:A(e,r),k:n,v:o})}function Ie(e,r,n,o){un(e,A(e,r)+"["+n+"]",o)}function fr(e,r,n,o){_(e,r),un(e,A(e,r)+"."+n,o)}function g(e,r,n){return e.reference.marked.has(r)?A(e,r)+"="+n:n}function le(e,r){return r.t===4&&e.stack.includes(r.i)}function ho(e,r){let n=r.i;e.stack.push(n);let o="",t,a=!1,s=r.a;for(let l=0,i=r.l;l<i;l++)l!==0&&(o+=","),t=s[l],t?le(e,t)?(_(e,n),Ie(e,n,l,A(e,t.i)),a=!0):(o+=v(e,t),a=!1):a=!0;return e.stack.pop(),lr(e,r.o,r.i),g(e,n,"["+o+(a?",]":"]"))}function fn(e){return e.features&2?".values()":"[Symbol.iterator]()"}function Io(e,r){let n=e.stack;e.stack=[];let o=v(e,r)+fn(e);return e.stack=n,e.features&4?o="[Symbol.iterator]:()=>"+o:e.features&64?o="[Symbol.iterator](){return "+o+"}":o="[Symbol.iterator]:function(){return "+o+"}",o}function cr(e,r,n){let o=n.s;if(o===0)return"{}";let t="";e.stack.push(r);let a,s,l,i,d,f=!1,c=n.k,u=n.v;for(let b=0;b<o;b++)switch(a=c[b],s=u[b],a){case 0:t+=(f?",":"")+Io(e,s),f=!0;break;default:l=Number(a),i=l>=0||ye(a),le(e,s)?(d=A(e,s.i),_(e,r),i&&Number.isNaN(l)?fr(e,r,a,d):Ie(e,r,i?a:'"'+a+'"',d)):(t+=(f?",":"")+(i?a:'"'+a+'"')+":"+v(e,s),f=!0);break}return e.stack.pop(),"{"+t+"}"}function Bo(e,r,n,o){let t=cr(e,n,r);return t!=="{}"?"Object.assign("+o+","+t+")":o}function Do(e,r,n){e.stack.push(r);let o=[],t,a,s,l=n.k,i=n.v;for(let d=0,f=n.s;d<f;d++)switch(t=l[d],a=i[d],t){case 0:{let c=e.stack;e.stack=[];let u=v(e,a)+fn(e);e.stack=c,s=e.assignments,e.assignments=o,Ie(e,r,"Symbol.iterator",e.features&4?"()=>"+u:"function(){return "+u+"}"),e.assignments=s}break;default:{let c=v(e,a),u=Number(t),b=u>=0||ye(t);le(e,a)?b&&Number.isNaN(u)?fr(e,r,t,c):Ie(e,r,b?t:'"'+t+'"',c):(s=e.assignments,e.assignments=o,b&&Number.isNaN(u)?fr(e,r,t,c):Ie(e,r,b?t:'"'+t+'"',c),e.assignments=s)}}return e.stack.pop(),fe(o)}function mr(e,r,n,o){if(n)if(e.features&128)o=Bo(e,n,r,o);else{_(e,r);let t=Do(e,r,n);if(t)return"("+g(e,r,o)+","+t+A(e,r)+")"}return g(e,r,o)}var To="Object.create(null)";function Fo(e,r){return lr(e,r.o,r.i),mr(e,r.i,r.p,To)}function jo(e,r){return lr(e,r.o,r.i),g(e,r.i,cr(e,r.i,r.p))}function Lo(e,r){let n="new Set",o=r.l,t=r.i;if(o){let a="",s,l=!1,i=r.a;e.stack.push(t);for(let d=0;d<o;d++)s=i[d],le(e,s)?(_(e,t),Oo(e,t,A(e,s.i))):(a+=(l?",":"")+v(e,s),l=!0);e.stack.pop(),a&&(n+="(["+a+"])")}return g(e,t,n)}function Uo(e,r){let n="new Map",o=r.e.s,t=r.i;if(o){let a="",s,l,i,d,f,c=!1,u=r.e.k,b=r.e.v;e.stack.push(t);for(let S=0;S<o;S++)s=u[S],l=b[S],le(e,s)?(i=A(e,t),_(e,t),le(e,l)?(d=A(e,l.i),ur(e,t,i,d)):(f=e.stack,e.stack=[],ur(e,t,i,v(e,l)),e.stack=f)):le(e,l)?(d=A(e,l.i),_(e,t),f=e.stack,e.stack=[],ur(e,t,v(e,s),d),e.stack=f):(a+=(c?",[":"[")+v(e,s)+","+v(e,l)+"]",c=!0);e.stack.pop(),a&&(n+="(["+a+"])")}return g(e,t,n)}function xo(e,r){let n=r.i;e.stack.push(n);let o='new AggregateError([],"'+r.m+'")';return e.stack.pop(),mr(e,n,r.p,o)}function Vo(e,r){return mr(e,r.i,r.p,"new "+r.c+'("'+r.m+'")')}var Mo="Promise.resolve",_o="Promise.reject";function Ko(e,r){let n,o=r.f,t=r.i,a=r.s?Mo:_o;if(le(e,o)){let s=A(e,o.i);e.features&4?r.s?n=a+"().then(()=>"+s+")":n=a+"().catch(()=>{throw "+s+"})":r.s?n=a+"().then(function(){return "+s+"})":n=a+"().catch(function(){throw "+s+"})"}else{e.stack.push(t);let s=v(e,o);e.stack.pop(),n=a+"("+s+")"}return g(e,t,n)}function Ho(e,r){let n="new Uint8Array(",o=r.s,t=o.length;if(t){n+="[";for(let a=0;a<t;a++)n+=(a>0?",":"")+o[a];n+="]"}return g(e,r.i,n+").buffer")}function qo(e,r){return g(e,r.i,"new "+r.c+"("+v(e,r.f)+","+r.b+","+r.l+")")}function Wo(e,r){return g(e,r.i,'new Date("'+r.s+'")')}function Go(e,r){return g(e,r.i,"/"+r.c+"/"+r.m)}function $o(e,r){return g(e,r.i,'new URL("'+r.s+'")')}function Xo(e,r){return g(e,r.i,r.s?'new URLSearchParams("'+r.s+'")':"new URLSearchParams")}function Yo(e,r){return g(e,r.i,ie+'.get("'+r.s+'")')}function Jo(e,r){return g(e,r.i,"new DataView("+v(e,r.f)+","+r.b+","+r.l+")")}function Zo(e,r){return g(e,r.i,"new Blob(["+v(e,r.f)+'],{type:"'+r.c+'"})')}function Qo(e,r){return g(e,r.i,"new File(["+v(e,r.f)+'],"'+r.m+'",{type:"'+r.c+'",lastModified:'+r.b+"})")}function et(e,r){return g(e,r.i,"new Headers("+cr(e,r.i,r.e)+")")}function rt(e,r){let n,o,t=r.e.k,a=r.e.v,s=r.i,l=[],i;e.stack.push(s);for(let d=0,f=r.e.s;d<f;d++)o=t[d],n=v(e,a[d]),i=e.assignments,e.assignments=l,zo(e,s,'"'+o+'"',n),e.assignments=i;return e.stack.pop(),fe(l)}function nt(e,r){let n=r.e.s,o=r.i;n&&_(e,o);let t=g(e,o,"new FormData()");if(n){let a=rt(e,r);return"("+t+","+(a==null?"":a)+A(e,o)+")"}return t}function ot(e,r){return g(e,r.i,"Object("+v(e,r.f)+")")}function tt(e,r){return g(e,r.i,Le[r.s])}function at(e,r){return g(e,r.i,'new Request("'+r.s+'",'+v(e,r.f)+")")}function st(e,r){return g(e,r.i,"new Response("+v(e,r.a[0])+","+v(e,r.a[1])+")")}function it(e,r){return g(e,r.i,'new Event("'+r.s+'",'+v(e,r.f)+")")}function dt(e,r){return g(e,r.i,'new CustomEvent("'+r.s+'",'+v(e,r.f)+")")}function ut(e,r){return g(e,r.i,'new DOMException("'+r.s+'","'+r.c+'")')}function v(e,r){switch(r.t){case 0:return""+r.s;case 1:return'"'+r.s+'"';case 2:return Ue(r);case 3:return r.s+"n";case 4:return A(e,r.i);case 9:return ho(e,r);case 10:return jo(e,r);case 11:return Fo(e,r);case 5:return Wo(e,r);case 6:return Go(e,r);case 7:return Lo(e,r);case 8:return Uo(e,r);case 21:return Ho(e,r);case 16:case 15:return qo(e,r);case 22:return Jo(e,r);case 14:return xo(e,r);case 13:return Vo(e,r);case 12:return Ko(e,r);case 17:return tt(e,r);case 18:return $o(e,r);case 19:return Xo(e,r);case 20:return Yo(e,r);case 23:return Zo(e,r);case 24:return Qo(e,r);case 25:return et(e,r);case 26:return nt(e,r);case 27:return ot(e,r);case 35:return at(e,r);case 36:return st(e,r);case 37:return it(e,r);case 38:return dt(e,r);case 39:return ut(e,r);default:throw new Error("invariant")}}function ft(e,r){let n=r.length,o=new Array(n),t=new Array(n),a;for(let s=0;s<n;s++)s in r&&(a=r[s],p(e,a)?t[s]=a:o[s]=B(e,a));for(let s=0;s<n;s++)s in t&&(o[s]=B(e,t[s]));return o}function cn(e,r,n){return{t:9,i:r,s:void 0,l:n.length,c:void 0,m:void 0,p:void 0,e:void 0,a:ft(e,n),f:void 0,b:void 0,o:U(n)}}function lt(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0;for(let[f,c]of n.entries())p(e,f)||p(e,c)?(s[i]=f,l[i]=c,i++):(t[d]=B(e,f),a[d]=B(e,c),d++);for(let f=0;f<i;f++)t[d+f]=B(e,s[f]),a[d+f]=B(e,l[f]);return{t:8,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:a,s:o},a:void 0,f:void 0,b:void 0,o:void 0}}function ct(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=0,l=0;for(let i of n.keys())p(e,i)?a[s++]=i:t[l++]=B(e,i);for(let i=0;i<s;i++)t[l+i]=B(e,a[i]);return{t:7,i:r,s:void 0,l:o,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}function pr(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=B(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=B(e,l[u]);if(e.features&1024&&Symbol.iterator in r){t[o]=0;let u=Array.from(r),b=H(e,u);a[o]=cn(e,b,u),o++}return{k:t,v:a,s:o}}function mn(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=B(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=B(e,l[u]);return{k:t,v:a,s:o}}function Sr(e,r,n,o){return{t:o?11:10,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:pr(e,n),e:void 0,a:void 0,f:void 0,b:void 0,o:U(n)}}function mt(e,r,n){let o=L(e,n),t=o?pr(e,o):void 0;return{t:14,i:r,s:void 0,l:void 0,c:void 0,m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function ln(e,r,n){let o=L(e,n),t=o?pr(e,o):void 0;return{t:13,i:r,s:void 0,l:void 0,c:K(n),m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function St(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:25,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:mn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function pt(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:26,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:mn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function Nt(e,r,n){return{t:27,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:B(e,n.valueOf()),b:void 0,o:void 0}}function yt(e,r,n){return{t:37,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:Nr(e,te(n)),b:void 0,o:void 0}}function vt(e,r,n){return{t:38,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:Nr(e,ae(n)),b:void 0,o:void 0}}function Nr(e,r){if(!r)return M;let n=H(e,r);if(e.reference.marked.has(n))return O(n);if(h(r))return T(n,r);if(Array.isArray(r))return cn(e,n,r);let o=r.constructor;switch(o){case Number:case Boolean:case String:case BigInt:return Nt(e,n,r);case Date:return Q(n,r);case RegExp:return ee(n,r);case Object:return Sr(e,n,r,!1);case void 0:return Sr(e,n,r,!0);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return ln(e,n,r);default:break}if(e.features&2048)switch(o){case ArrayBuffer:return x(n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _e(e,n,r);case DataView:return He(e,n,r);default:break}if((e.features&4104)===4104)switch(o){case BigInt64Array:case BigUint64Array:return Ke(e,n,r);default:break}if(e.features&32&&o===Map)return lt(e,n,r);if(e.features&512&&o===Set)return ct(e,n,r);if(e.features&8192){if(typeof URL!="undefined"&&o===URL)return re(n,r);if(typeof URLSearchParams!="undefined"&&o===URLSearchParams)return ne(n,r);if(typeof Headers!="undefined"&&o===Headers)return St(e,n,r);if(typeof FormData!="undefined"&&o===FormData)return pt(e,n,r);if(typeof Event!="undefined"&&o===Event)return yt(e,n,r);if(typeof CustomEvent!="undefined"&&o===CustomEvent)return vt(e,n,r);if(typeof DOMException!="undefined"&&o===DOMException)return oe(n,r)}if(e.features&1&&typeof AggregateError!="undefined"&&(o===AggregateError||r instanceof AggregateError))return mt(e,n,r);if(r instanceof Error)return ln(e,n,r);if(e.features&1024&&Symbol.iterator in r)return Sr(e,n,r,!!o);throw new P(r)}function B(e,r){let n=typeof r;if(e.features&8&&n==="bigint")return Z(r);switch(n){case"boolean":return r?q:W;case"undefined":return G;case"string":return J(r);case"number":return Y(r);case"object":return Nr(e,r);case"symbol":return qe(e,r);case"function":return We(e,r);default:throw new P(r)}}function yr(e,r,n,o){if(r!=null&&e.vars.length){let t=dn(e),a=o;if(t){let l=A(e,r);a=o+","+t+l,o.startsWith(l+"=")||(a=l+"="+a)}let s=e.vars.length>1?e.vars.join(","):e.vars[0];return e.features&4?(s=e.vars.length>1||e.vars.length===0?"("+s+")":s,"("+s+"=>("+a+"))()"):"(function("+s+"){return "+a+"})()"}return n?"("+o+")":o}function vr(e,r){let n=Pe(r),o=B(n,e),t=Ve({markedRefs:n.reference.marked,features:n.features}),a=v(t,o);return yr(t,o.i,o.t===10,a)}async function gt(e,r){let n=Pe(r),o=await z(n,e),t=Ve({markedRefs:n.reference.marked,features:n.features}),a=v(t,o);return yr(t,o.i,o.t===10,a)}function bt(e){return(0,eval)(e)}function Ct(e,r){let n=Pe(r);return{t:B(n,e),f:n.features,m:Array.from(n.reference.marked)}}async function Et(e,r){let n=Pe(r);return{t:await z(n,e),f:n.features,m:Array.from(n.reference.marked)}}function wt(e){let r=Ve({features:e.f,markedRefs:e.m}),n=v(r,e.t);return yr(r,e.t.i,e.t.i===10,n)}function At(e){let r=Mr({markedRefs:e.m});return w(r,e.t)}function gr(e={}){return{scopeId:e.scopeId,refs:e.refs||new Map,features:16383^(e.disabledFeatures||0)}}function be(e,r){let n=e.refs.get(r);if(n==null){let o=e.refs.size;return e.refs.set(r,o),o}return n}function Sn(e){return{alive:!0,pending:0,refs:e.refs||new Map,features:16383^(e.disabledFeatures||0),onParse:e.onParse,onDone(){e.onDone&&e.onDone()},scopeId:e.scopeId}}function br(e){e.pending++}function Be(e){--e.pending<=0&&e.onDone()}function Ye(e){return{stack:[],assignments:[],features:e.features,flags:[]}}function ce(e,r){let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;return e.refs.set(r,o),x(o,r)}function Ce(e,r,n){return{t:15,i:r,s:void 0,l:n.length,c:n.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:ce(e,n.buffer),b:n.byteOffset,o:void 0}}function Ee(e,r,n){return{t:16,i:r,s:void 0,l:n.length,c:n.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:ce(e,n.buffer),b:n.byteOffset,o:void 0}}function we(e,r,n){return{t:22,i:r,s:void 0,l:n.byteLength,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:ce(e,n.buffer),b:n.byteOffset,o:void 0}}function Ae(e,r){let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;return e.refs.set(r,o),h(r)?T(o,r):Me(o,r)}function Re(e,r){$(h(r),new Error("Cannot serialize function without reference ID."));let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;return e.refs.set(r,o),T(o,r)}async function pn(e,r,n){return{t:23,i:r,s:void 0,l:void 0,c:m(n.type),m:void 0,p:void 0,e:void 0,f:ce(e,await n.arrayBuffer()),a:void 0,b:void 0,o:void 0}}async function Nn(e,r,n){return{t:24,i:r,s:void 0,l:void 0,c:m(n.type),m:m(n.name),p:void 0,e:void 0,f:ce(e,await n.arrayBuffer()),a:void 0,b:n.lastModified,o:void 0}}async function Rt(e,r){let n=r.length,o=new Array(n),t=new Array(n),a;for(let s=0;s<n;s++)s in r&&(a=r[s],p(e,a)?t[s]=a:o[s]=await D(e,a));for(let s=0;s<n;s++)s in t&&(o[s]=await D(e,t[s]));return o}async function vn(e,r,n){return{t:9,i:r,s:void 0,l:n.length,c:void 0,m:void 0,p:void 0,e:void 0,a:await Rt(e,n),f:void 0,b:void 0,o:U(n)}}async function kt(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0;for(let[f,c]of n.entries())p(e,f)||p(e,c)?(s[i]=f,l[i]=c,i++):(t[d]=await D(e,f),a[d]=await D(e,c),d++);for(let f=0;f<i;f++)t[d+f]=await D(e,s[f]),a[d+f]=await D(e,l[f]);return{t:8,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:a,s:o},a:void 0,f:void 0,b:void 0,o:void 0}}async function Pt(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=0,l=0;for(let i of n.keys())p(e,i)?a[s++]=i:t[l++]=await D(e,i);for(let i=0;i<s;i++)t[l+i]=await D(e,a[i]);return{t:7,i:r,s:void 0,l:o,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}async function Er(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=await D(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=await D(e,l[u]);if(e.features&1024&&Symbol.iterator in r){t[o]=0;let u=Array.from(r);a[o]=await vn(e,be(e,u),u),o++}return{k:t,v:a,s:o}}async function gn(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=await D(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=await D(e,l[u]);return{k:t,v:a,s:o}}async function Ot(e,r,n){let[o,t]=await ze(n);return{t:12,i:r,s:o,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await D(e,t),b:void 0,o:void 0}}async function Cr(e,r,n,o){return{t:o?11:10,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:await Er(e,n),e:void 0,a:void 0,f:void 0,b:void 0,o:U(n)}}async function zt(e,r,n){let o=L(e,n),t=o?await Er(e,o):void 0;return{t:14,i:r,s:void 0,l:void 0,c:void 0,m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async function yn(e,r,n){let o=L(e,n),t=o?await Er(e,o):void 0;return{t:13,i:r,s:void 0,l:void 0,c:K(n),m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async function ht(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:25,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await gn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}async function It(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:26,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await gn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}async function Bt(e,r,n){return{t:27,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await D(e,n.valueOf()),b:void 0,o:void 0}}async function Dt(e,r,n){return{t:35,i:r,s:m(n.url),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:await De(e,ve(n,n.body?await n.clone().arrayBuffer():null)),a:void 0,b:void 0,o:void 0}}async function Tt(e,r,n){return{t:36,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:[n.body?ce(e,await n.clone().arrayBuffer()):M,await De(e,ge(n))],b:void 0,o:void 0}}async function Ft(e,r,n){return{t:37,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await De(e,te(n)),b:void 0,o:void 0}}async function jt(e,r,n){return{t:38,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await De(e,ae(n)),b:void 0,o:void 0}}async function De(e,r){if(!r)return M;let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;if(e.refs.set(r,o),h(r))return T(o,r);if(Array.isArray(r))return vn(e,o,r);let t=r.constructor;switch(t){case Number:case Boolean:case String:case BigInt:return Bt(e,o,r);case Date:return Q(o,r);case RegExp:return ee(o,r);case Object:return Cr(e,o,r,!1);case void 0:return Cr(e,o,r,!0);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return yn(e,o,r);default:break}if(e.features&2048)switch(t){case ArrayBuffer:return x(o,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ce(e,o,r);case DataView:return we(e,o,r);default:break}if((e.features&4104)===4104)switch(t){case BigInt64Array:case BigUint64Array:return Ee(e,o,r);default:break}if(e.features&32&&t===Map)return kt(e,o,r);if(e.features&512&&t===Set)return Pt(e,o,r);if(e.features&256&&(t===Promise||r instanceof Promise))return Ot(e,o,r);if(e.features&8192){if(typeof URL!="undefined"&&t===URL)return re(o,r);if(typeof URLSearchParams!="undefined"&&t===URLSearchParams)return ne(o,r);if(typeof Blob!="undefined"&&t===Blob)return pn(e,o,r);if(typeof File!="undefined"&&t===File)return Nn(e,o,r);if(typeof Headers!="undefined"&&t===Headers)return ht(e,o,r);if(typeof FormData!="undefined"&&t===FormData)return It(e,o,r);if(typeof Request!="undefined"&&t===Request)return Dt(e,o,r);if(typeof Response!="undefined"&&t===Response)return Tt(e,o,r);if(typeof Event!="undefined"&&t===Event)return Ft(e,o,r);if(typeof CustomEvent!="undefined"&&t===CustomEvent)return jt(e,o,r);if(typeof DOMException!="undefined"&&t===DOMException)return oe(o,r)}if(e.features&1&&typeof AggregateError!="undefined"&&(t===AggregateError||r instanceof AggregateError))return zt(e,o,r);if(r instanceof Error)return yn(e,o,r);if(e.features&1024&&Symbol.iterator in r)return Cr(e,o,r,!!t);throw new P(r)}async function D(e,r){let n=typeof r;if(e.features&8&&n==="bigint")return Z(r);switch(n){case"boolean":return r?q:W;case"undefined":return G;case"string":return J(r);case"number":return Y(r);case"object":return De(e,r);case"symbol":return Ae(e,r);case"function":return Re(e,r);default:throw new P(r)}}function E(e){return se+"["+e+"]"}function Rr(e,r,n){r!==0&&e.flags.push({type:r,value:E(n)})}function bn(e){let r=fe(e.assignments),n=Xe(e.flags);return r?n?r+n:r:n}function Cn(e,r,n){e.assignments.push({t:"index",s:r,k:void 0,v:n})}function Lt(e,r,n){e.assignments.push({t:"add",s:E(r),k:void 0,v:n})}function wr(e,r,n,o){e.assignments.push({t:"set",s:E(r),k:n,v:o})}function Ut(e,r,n,o){e.assignments.push({t:"append",s:E(r),k:n,v:o})}function Te(e,r,n,o){Cn(e,E(r)+"["+n+"]",o)}function Ar(e,r,n,o){Cn(e,E(r)+"."+n,o)}function y(e,r){return E(e)+"="+r}function me(e,r){return r.t===4&&e.stack.includes(r.i)}function xt(e,r){let n=r.i;e.stack.push(n);let o="",t,a=!1,s=r.a;for(let l=0,i=r.l;l<i;l++)l!==0&&(o+=","),t=s[l],t?me(e,t)?(Te(e,n,l,E(t.i)),a=!0):(o+=N(e,t),a=!1):a=!0;return e.stack.pop(),Rr(e,r.o,r.i),y(n,"["+o+(a?",]":"]"))}function En(e){return e.features&2?".values()":"[Symbol.iterator]()"}function Vt(e,r){let n=e.stack;e.stack=[];let o=N(e,r)+En(e);return e.stack=n,e.features&4?o="[Symbol.iterator]:()=>"+o:e.features&64?o="[Symbol.iterator](){return "+o+"}":o="[Symbol.iterator]:function(){return "+o+"}",o}function kr(e,r,n){let o=n.s;if(o===0)return"{}";let t="";e.stack.push(r);let a,s,l,i,d,f=!1,c=n.k,u=n.v;for(let b=0;b<o;b++)switch(a=c[b],s=u[b],a){case 0:t+=(f?",":"")+Vt(e,s),f=!0;break;default:l=Number(a),i=l>=0||ye(a),me(e,s)?(d=E(s.i),i&&Number.isNaN(l)?Ar(e,r,a,d):Te(e,r,i?a:'"'+a+'"',d)):(t+=(f?",":"")+(i?a:'"'+a+'"')+":"+N(e,s),f=!0);break}return e.stack.pop(),"{"+t+"}"}function Mt(e,r,n,o){let t=kr(e,n,r);return t!=="{}"?"Object.assign("+o+","+t+")":o}function _t(e,r,n){e.stack.push(r);let o=[],t,a,s,l=n.k,i=n.v;for(let d=0,f=n.s;d<f;d++)switch(t=l[d],a=i[d],t){case 0:{let c=e.stack;e.stack=[];let u=N(e,a)+En(e);e.stack=c,s=e.assignments,e.assignments=o,Te(e,r,"Symbol.iterator",e.features&4?"()=>"+u:"function(){return "+u+"}"),e.assignments=s}break;default:{let c=N(e,a),u=Number(t),b=u>=0||ye(t);me(e,a)?b&&Number.isNaN(u)?Ar(e,r,t,c):Te(e,r,b?t:'"'+t+'"',c):(s=e.assignments,e.assignments=o,b&&Number.isNaN(u)?Ar(e,r,t,c):Te(e,r,b?t:'"'+t+'"',c),e.assignments=s)}}return e.stack.pop(),fe(o)}function Pr(e,r,n,o){if(n)if(e.features&128)o=Mt(e,n,r,o);else{let t=_t(e,r,n);if(t)return"("+y(r,o)+","+t+E(r)+")"}return y(r,o)}var Kt="Object.create(null)";function Ht(e,r){return Rr(e,r.o,r.i),Pr(e,r.i,r.p,Kt)}function qt(e,r){return Rr(e,r.o,r.i),y(r.i,kr(e,r.i,r.p))}function Wt(e,r){let n="new Set",o=r.l,t=r.i;if(o){let a="",s,l=!1,i=r.a;e.stack.push(t);for(let d=0;d<o;d++)s=i[d],me(e,s)?Lt(e,t,E(s.i)):(a+=(l?",":"")+N(e,s),l=!0);e.stack.pop(),a&&(n+="(["+a+"])")}return y(t,n)}function Gt(e,r){let n="new Map",o=r.e.s,t=r.i;if(o){let a="",s,l,i,d,f,c=!1,u=r.e.k,b=r.e.v;e.stack.push(t);for(let S=0;S<o;S++)s=u[S],l=b[S],me(e,s)?(i=E(t),me(e,l)?(d=E(l.i),wr(e,t,i,d)):(f=e.stack,e.stack=[],wr(e,t,i,N(e,l)),e.stack=f)):me(e,l)?(d=E(l.i),f=e.stack,e.stack=[],wr(e,t,N(e,s),d),e.stack=f):(a+=(c?",[":"[")+N(e,s)+","+N(e,l)+"]",c=!0);e.stack.pop(),a&&(n+="(["+a+"])")}return y(t,n)}function $t(e,r){let n=r.i;e.stack.push(n);let o='new AggregateError([],"'+r.m+'")';return e.stack.pop(),Pr(e,n,r.p,o)}function Xt(e,r){return Pr(e,r.i,r.p,"new "+r.c+'("'+r.m+'")')}var Yt="Promise.resolve",Jt="Promise.reject";function Zt(e,r){let n,o=r.f,t=r.i,a=r.s?Yt:Jt;if(me(e,o)){let s=E(o.i);e.features&4?r.s?n=a+"().then(()=>"+s+")":n=a+"().catch(()=>{throw "+s+"})":r.s?n=a+"().then(function(){return "+s+"})":n=a+"().catch(function(){throw "+s+"})"}else{e.stack.push(t);let s=N(e,o);e.stack.pop(),n=a+"("+s+")"}return y(t,n)}function Qt(e){let r="new Uint8Array(",n=e.s,o=n.length;if(o){r+="[";for(let t=0;t<o;t++)r+=(t>0?",":"")+n[t];r+="]"}return y(e.i,r+").buffer")}function ea(e,r){return y(r.i,"new "+r.c+"("+N(e,r.f)+","+r.b+","+r.l+")")}function ra(e){return y(e.i,'new Date("'+e.s+'")')}function na(e){return y(e.i,"/"+e.c+"/"+e.m)}function oa(e){return y(e.i,'new URL("'+e.s+'")')}function ta(e){return y(e.i,e.s?'new URLSearchParams("'+e.s+'")':"new URLSearchParams")}function aa(e){return y(e.i,ie+'.get("'+e.s+'")')}function sa(e,r){return y(r.i,"new DataView("+N(e,r.f)+","+r.b+","+r.l+")")}function ia(e,r){return y(r.i,"new Blob(["+N(e,r.f)+'],{type:"'+r.c+'"})')}function da(e,r){return y(r.i,"new File(["+N(e,r.f)+'],"'+r.m+'",{type:"'+r.c+'",lastModified:'+r.b+"})")}function ua(e,r){return y(r.i,"new Headers("+kr(e,r.i,r.e)+")")}function fa(e,r){let n,o,t=r.e.k,a=r.e.v,s=r.i,l=[],i;e.stack.push(s);for(let d=0,f=r.e.s;d<f;d++)o=t[d],n=N(e,a[d]),i=e.assignments,e.assignments=l,Ut(e,s,'"'+o+'"',n),e.assignments=i;return e.stack.pop(),fe(l)}function la(e,r){let n=r.e.s,o=r.i,t=y(o,"new FormData()");if(n){let a=fa(e,r);return"("+t+","+(a==null?"":a)+E(o)+")"}return t}function ca(e,r){return y(r.i,"Object("+N(e,r.f)+")")}function ma(e){return y(e.i,Le[e.s])}function Sa(e,r){return X+"."+or+"("+E(r.i)+","+N(e,r.f)+")"}function pa(e,r){return X+"."+tr+"("+E(r.i)+","+N(e,r.f)+")"}function Na(e){return y(e.i,X+"."+nr+"()")}function ya(e){return X+"."+Oe+"("+E(e.i)+",2)"}function va(e,r){return X+"."+Oe+"("+E(r.i)+",0,"+N(e,r.f)+")"}function ga(e,r){return X+"."+Oe+"("+E(r.i)+",1,"+N(e,r.f)+")"}function ba(e){return y(e.i,X+"."+ar+"()")}function Ca(e,r){return y(r.i,'new Request("'+r.s+'",'+N(e,r.f)+")")}function Ea(e,r){return y(r.i,"new Response("+N(e,r.a[0])+","+N(e,r.a[1])+")")}function wa(e,r){return y(r.i,'new Event("'+r.s+'",'+N(e,r.f)+")")}function Aa(e,r){return y(r.i,'new CustomEvent("'+r.s+'",'+N(e,r.f)+")")}function Ra(e){return y(e.i,'new DOMException("'+e.s+'","'+e.c+'")')}function N(e,r){switch(r.t){case 0:return""+r.s;case 1:return'"'+r.s+'"';case 2:return Ue(r);case 3:return r.s+"n";case 4:return E(r.i);case 9:return xt(e,r);case 10:return qt(e,r);case 11:return Ht(e,r);case 5:return ra(r);case 6:return na(r);case 7:return Wt(e,r);case 8:return Gt(e,r);case 21:return Qt(r);case 16:case 15:return ea(e,r);case 22:return sa(e,r);case 14:return $t(e,r);case 13:return Xt(e,r);case 12:return Zt(e,r);case 17:return ma(r);case 18:return oa(r);case 19:return ta(r);case 20:return aa(r);case 23:return ia(e,r);case 24:return da(e,r);case 25:return ua(e,r);case 26:return la(e,r);case 27:return ca(e,r);case 29:return Sa(e,r);case 30:return pa(e,r);case 28:return Na(r);case 33:return ya(r);case 31:return ba(r);case 32:return va(e,r);case 34:return ga(e,r);case 35:return Ca(e,r);case 36:return Ea(e,r);case 37:return wa(e,r);case 38:return Aa(e,r);case 39:return Ra(r);default:throw new Error("invariant")}}function ka(e,r){let n=r.length,o=new Array(n),t=new Array(n),a;for(let s=0;s<n;s++)s in r&&(a=r[s],p(e,a)?t[s]=a:o[s]=R(e,a));for(let s=0;s<n;s++)s in t&&(o[s]=R(e,t[s]));return o}function An(e,r,n){return{t:9,i:r,s:void 0,l:n.length,c:void 0,m:void 0,p:void 0,e:void 0,a:ka(e,n),f:void 0,b:void 0,o:U(n)}}function Pa(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0;for(let[f,c]of n.entries())p(e,f)||p(e,c)?(s[i]=f,l[i]=c,i++):(t[d]=R(e,f),a[d]=R(e,c),d++);for(let f=0;f<i;f++)t[d+f]=R(e,s[f]),a[d+f]=R(e,l[f]);return{t:8,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:a,s:o},a:void 0,f:void 0,b:void 0,o:void 0}}function Oa(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=0,l=0;for(let i of n.keys())p(e,i)?a[s++]=i:t[l++]=R(e,i);for(let i=0;i<s;i++)t[l+i]=R(e,a[i]);return{t:7,i:r,s:void 0,l:o,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}function zr(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=R(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=R(e,l[u]);if(e.features&1024&&Symbol.iterator in r){t[o]=0;let u=Array.from(r);a[o]=An(e,be(e,u),u),o++}return{k:t,v:a,s:o}}function Rn(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=R(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=R(e,l[u]);return{k:t,v:a,s:o}}function za(e,r,n){return n.then(o=>{e.alive&&(e.onParse({t:29,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:R(e,o),b:void 0,o:void 0},!1),Be(e))},o=>{e.alive&&(e.onParse({t:30,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:R(e,o),b:void 0,o:void 0},!1),Be(e))}),br(e),{t:28,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Or(e,r,n,o){return{t:o?11:10,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:zr(e,n),e:void 0,a:void 0,f:void 0,b:void 0,o:U(n)}}function ha(e,r,n){let o=L(e,n),t=o?zr(e,o):void 0;return{t:14,i:r,s:void 0,l:void 0,c:void 0,m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function wn(e,r,n){let o=L(e,n),t=o?zr(e,o):void 0;return{t:13,i:r,s:void 0,l:void 0,c:K(n),m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Ia(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:25,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:Rn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function Ba(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:26,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:Rn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function Da(e,r,n){return{t:27,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:R(e,n.valueOf()),b:void 0,o:void 0}}function kn(e,r,n){n.read().then(o=>{e.alive&&(o.done?(e.onParse({t:33,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0},!1),Be(e)):(e.onParse({t:32,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:R(e,o.value),b:void 0,o:void 0},!1),kn(e,r,n)))},o=>{e.alive&&(e.onParse({t:34,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:R(e,o),b:void 0,o:void 0},!1),Be(e))})}function Ta(e,r,n){return br(e),kn(e,r,n.getReader()),{t:31,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Fa(e,r,n){return{t:35,i:r,s:m(n.url),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:ke(e,ve(n,n.clone().body)),a:void 0,b:void 0,o:void 0}}function ja(e,r,n){return{t:36,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:[n.body?ke(e,n.clone().body):M,ke(e,ge(n))],b:void 0,o:void 0}}function La(e,r,n){return{t:37,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:ke(e,te(n)),b:void 0,o:void 0}}function Ua(e,r,n){return{t:38,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:ke(e,ae(n)),b:void 0,o:void 0}}function ke(e,r){if(!r)return M;let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;if(e.refs.set(r,o),h(r))return T(o,r);if(Array.isArray(r))return An(e,o,r);let t=r.constructor;switch(t){case Number:case Boolean:case String:case BigInt:case Function:case Symbol:return Da(e,o,r);case Date:return Q(o,r);case RegExp:return ee(o,r);case Object:return Or(e,o,r,!1);case void 0:return Or(e,o,r,!0);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return wn(e,o,r);default:break}if(e.features&2048)switch(t){case ArrayBuffer:return x(o,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ce(e,o,r);case DataView:return we(e,o,r);default:break}if((e.features&4104)===4104)switch(t){case BigInt64Array:case BigUint64Array:return Ee(e,o,r);default:break}if(e.features&32&&t===Map)return Pa(e,o,r);if(e.features&512&&t===Set)return Oa(e,o,r);if(e.features&256&&(t===Promise||r instanceof Promise))return za(e,o,r);if(e.features&8192){if(typeof URL!="undefined"&&t===URL)return re(o,r);if(typeof URLSearchParams!="undefined"&&t===URLSearchParams)return ne(o,r);if(typeof Headers!="undefined"&&t===Headers)return Ia(e,o,r);if(typeof FormData!="undefined"&&t===FormData)return Ba(e,o,r);if(typeof ReadableStream!="undefined"&&t===ReadableStream)return Ta(e,o,r);if(typeof Request!="undefined"&&t===Request)return Fa(e,o,r);if(typeof Response!="undefined"&&t===Response)return ja(e,o,r);if(typeof Event!="undefined"&&t===Event)return La(e,o,r);if(typeof CustomEvent!="undefined"&&t===CustomEvent)return Ua(e,o,r);if(typeof DOMException!="undefined"&&t===DOMException)return oe(o,r)}if(e.features&1&&typeof AggregateError!="undefined"&&(t===AggregateError||r instanceof AggregateError))return ha(e,o,r);if(r instanceof Error)return wn(e,o,r);if(e.features&1024&&Symbol.iterator in r)return Or(e,o,r,!!t);throw new P(r)}function R(e,r){let n=typeof r;if(e.features&8&&n==="bigint")return Z(r);switch(n){case"boolean":return r?q:W;case"undefined":return G;case"string":return J(r);case"number":return Y(r);case"object":return ke(e,r);case"symbol":return Ae(e,r);case"function":return Re(e,r);default:throw new P(r)}}function xa(e,r){let n=r.length,o=new Array(n),t=new Array(n),a;for(let s=0;s<n;s++)s in r&&(a=r[s],p(e,a)?t[s]=a:o[s]=F(e,a));for(let s=0;s<n;s++)s in t&&(o[s]=F(e,t[s]));return o}function On(e,r,n){return{t:9,i:r,s:void 0,l:n.length,c:void 0,m:void 0,p:void 0,e:void 0,a:xa(e,n),f:void 0,b:void 0,o:U(n)}}function Va(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0;for(let[f,c]of n.entries())p(e,f)||p(e,c)?(s[i]=f,l[i]=c,i++):(t[d]=F(e,f),a[d]=F(e,c),d++);for(let f=0;f<i;f++)t[d+f]=F(e,s[f]),a[d+f]=F(e,l[f]);return{t:8,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:a,s:o},a:void 0,f:void 0,b:void 0,o:void 0}}function Ma(e,r,n){let o=n.size,t=new Array(o),a=new Array(o),s=0,l=0;for(let i of n.keys())p(e,i)?a[s++]=i:t[l++]=F(e,i);for(let i=0;i<s;i++)t[l+i]=F(e,a[i]);return{t:7,i:r,s:void 0,l:o,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}function Ir(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=F(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=F(e,l[u]);if(e.features&1024&&Symbol.iterator in r){t[o]=0;let u=Array.from(r);a[o]=On(e,be(e,u),u),o++}return{k:t,v:a,s:o}}function zn(e,r){let n=Object.keys(r),o=n.length,t=new Array(o),a=new Array(o),s=new Array(o),l=new Array(o),i=0,d=0,f,c;for(let u of n)f=r[u],c=m(u),p(e,f)?(s[i]=c,l[i]=f,i++):(t[d]=c,a[d]=F(e,f),d++);for(let u=0;u<i;u++)t[d+u]=s[u],a[d+u]=F(e,l[u]);return{k:t,v:a,s:o}}function hr(e,r,n,o){return{t:o?11:10,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:Ir(e,n),e:void 0,a:void 0,f:void 0,b:void 0,o:U(n)}}function _a(e,r,n){let o=L(e,n),t=o?Ir(e,o):void 0;return{t:14,i:r,s:void 0,l:void 0,c:void 0,m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Pn(e,r,n){let o=L(e,n),t=o?Ir(e,o):void 0;return{t:13,i:r,s:void 0,l:void 0,c:K(n),m:m(n.message),p:t,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Ka(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:25,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:zn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function Ha(e,r,n){let o={};return n.forEach((t,a)=>{o[a]=t}),{t:26,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:zn(e,o),a:void 0,f:void 0,b:void 0,o:void 0}}function qa(e,r,n){return{t:27,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:F(e,n.valueOf()),b:void 0,o:void 0}}function Wa(e,r,n){return{t:37,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:Br(e,te(n)),b:void 0,o:void 0}}function Ga(e,r,n){return{t:38,i:r,s:m(n.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:Br(e,ae(n)),b:void 0,o:void 0}}function Br(e,r){if(!r)return M;let n=e.refs.get(r);if(n!=null)return O(n);let o=e.refs.size;if(e.refs.set(r,o),h(r))return T(o,r);if(Array.isArray(r))return On(e,o,r);let t=r.constructor;switch(t){case Number:case Boolean:case String:case BigInt:return qa(e,o,r);case Date:return Q(o,r);case RegExp:return ee(o,r);case Object:return hr(e,o,r,!1);case void 0:return hr(e,o,r,!0);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Pn(e,o,r);default:break}if(e.features&2048)switch(t){case ArrayBuffer:return x(o,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ce(e,o,r);case DataView:return we(e,o,r);default:break}if((e.features&4104)===4104)switch(t){case BigInt64Array:case BigUint64Array:return Ee(e,o,r);default:break}if(e.features&32&&t===Map)return Va(e,o,r);if(e.features&512&&t===Set)return Ma(e,o,r);if(e.features&8192){if(typeof URL!="undefined"&&t===URL)return re(o,r);if(typeof URLSearchParams!="undefined"&&t===URLSearchParams)return ne(o,r);if(typeof Headers!="undefined"&&t===Headers)return Ka(e,o,r);if(typeof FormData!="undefined"&&t===FormData)return Ha(e,o,r);if(typeof Event!="undefined"&&t===Event)return Wa(e,o,r);if(typeof CustomEvent!="undefined"&&t===CustomEvent)return Ga(e,o,r);if(typeof DOMException!="undefined"&&t===DOMException)return oe(o,r)}if(e.features&1&&typeof AggregateError!="undefined"&&(t===AggregateError||r instanceof AggregateError))return _a(e,o,r);if(r instanceof Error)return Pn(e,o,r);if(e.features&1024&&Symbol.iterator in r)return hr(e,o,r,!!t);throw new P(r)}function F(e,r){let n=typeof r;if(e.features&8&&n==="bigint")return Z(r);switch(n){case"boolean":return r?q:W;case"undefined":return G;case"string":return J(r);case"number":return Y(r);case"object":return Br(e,r);case"symbol":return Ae(e,r);case"function":return Re(e,r);default:throw new P(r)}}function Dr(e,r,n,o){if(n==null)return o;let t=bn(e),a=E(n),s=r==null?"":se,l=t?o+","+t:o;if(s==="")return t?"("+l+a+")":l;let i=r==null?"()":"("+se+'["'+m(r)+'"])',d=l+(t?a:"");return e.features&4?"("+s+"=>("+d+"))"+i:"(function("+s+"){return "+d+"})"+i}function $a(e,r){let n=gr(r),o=F(n,e),t=Ye({features:n.features}),a=N(t,o);return Dr(t,n.scopeId,o.i,a)}async function Xa(e,r){let n=gr(r),o=await D(n,e),t=Ye({features:n.features}),a=N(t,o);return Dr(t,n.scopeId,o.i,a)}function Tr(e,r){let n=Sn({scopeId:r.scopeId,refs:r.refs,disabledFeatures:r.disabledFeatures,onParse(o,t){let a=Ye({features:n.features});r.onSerialize(Dr(a,n.scopeId,o.i,N(a,o)),t)},onDone:r.onDone});return n.onParse(R(n,e),!0),n.pending<=0&&(n.onDone(),n.alive=!1),()=>{n.alive&&(n.alive=!1,n.onDone())}}var Fe=class{constructor(r){this.options=r;Se(this,"alive",!0);Se(this,"flushed",!1);Se(this,"done",!1);Se(this,"pending",0);Se(this,"cleanups",[]);Se(this,"refs",new Map)}write(r,n){this.alive&&!this.flushed&&(this.pending++,this.cleanups.push(Tr(n,{scopeId:this.options.scopeId,refs:this.refs,disabledFeatures:this.options.disabledFeatures,onSerialize:(o,t)=>{this.alive&&this.options.onData(t?this.options.globalIdentifier+'["'+m(r)+'"]='+o:o)},onDone:()=>{this.alive&&(this.pending--,this.pending<=0&&this.flushed&&!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0))}})))}flush(){this.alive&&(this.flushed=!0,this.pending<=0&&!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0))}close(){if(this.alive){for(let r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0),this.alive=!1}}};var Ya=vr;
|
|
1
|
+
"use strict";var ce=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var er=Object.getOwnPropertyNames;var rr=Object.prototype.hasOwnProperty;var tr=(a,e)=>{for(var r in e)ce(a,r,{get:e[r],enumerable:!0})},nr=(a,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of er(e))!rr.call(a,n)&&n!==r&&ce(a,n,{get:()=>e[n],enumerable:!(t=Qe(e,n))||t.enumerable});return a};var sr=a=>nr(ce({},"__esModule",{value:!0}),a);var Ir={};tr(Ir,{Feature:()=>h,GLOBAL_CONTEXT_API_SCRIPT:()=>Ue,Serializer:()=>Q,compileJSON:()=>Er,createPlugin:()=>Pr,createReference:()=>je,crossSerialize:()=>Ar,crossSerializeAsync:()=>wr,crossSerializeStream:()=>Ie,default:()=>Or,deserialize:()=>yr,fromJSON:()=>xr,getCrossReferenceHeader:()=>Me,serialize:()=>Oe,serializeAsync:()=>br,toJSON:()=>Nr,toJSONAsync:()=>Rr});module.exports=sr(Ir);var{toString:ar}=Object.prototype,m=class extends Error{constructor(r){super('Unsupported type "'+ar.call(r)+'"');this.value=r}};function S(a,e){if(!a)throw e}var Ce={0:"Symbol.asyncIterator",1:"Symbol.hasInstance",2:"Symbol.isConcatSpreadable",3:"Symbol.iterator",4:"Symbol.match",5:"Symbol.matchAll",6:"Symbol.replace",7:"Symbol.search",8:"Symbol.species",9:"Symbol.split",10:"Symbol.toPrimitive",11:"Symbol.toStringTag",12:"Symbol.unscopables"},pe={[Symbol.asyncIterator]:0,[Symbol.hasInstance]:1,[Symbol.isConcatSpreadable]:2,[Symbol.iterator]:3,[Symbol.match]:4,[Symbol.matchAll]:5,[Symbol.replace]:6,[Symbol.search]:7,[Symbol.species]:8,[Symbol.split]:9,[Symbol.toPrimitive]:10,[Symbol.toStringTag]:11,[Symbol.unscopables]:12},ke={0:Symbol.asyncIterator,1:Symbol.hasInstance,2:Symbol.isConcatSpreadable,3:Symbol.iterator,4:Symbol.match,5:Symbol.matchAll,6:Symbol.replace,7:Symbol.search,8:Symbol.species,9:Symbol.split,10:Symbol.toPrimitive,11:Symbol.toStringTag,12:Symbol.unscopables},ze={2:"!0",3:"!1",1:"void 0",0:"null",4:"-0",5:"1/0",6:"-1/0",7:"0/0"},Te={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN};var ee={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},Be={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError},u=Symbol("why");function R(a){return{t:2,i:void 0,s:a,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}var re=R(2),te=R(3),ne=R(1),E=R(0),De=R(4),Ve=R(5),Le=R(6),Fe=R(7);function ir(a){switch(a){case'"':return'\\"';case"\\":return"\\\\";case`
|
|
2
|
+
`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function l(a){let e="",r=0,t;for(let n=0,s=a.length;n<s;n++)t=ir(a[n]),t&&(e+=a.slice(r,n)+t,r=n+1);return r===0?e=a:e+=a.slice(r),e}function p(a){return a.replace(/\\"/g,'"').replace(/\\\\/g,"\\").replace(/\\n/g,`
|
|
3
|
+
`).replace(/\\r/g,"\r").replace(/\\b/g,"\b").replace(/\\t/g," ").replace(/\\f/g,"\f").replace(/\\x3C/g,"<").replace(/\\u2028/g,"\u2028").replace(/\\u2029/g,"\u2029")}var x="__SEROVAL_REFS__",b="_$",H="$R",me="s",Se="f",he="P",ve="Ps",be="Pf",ge="c",ye="S",K="Se",k=`self.${b}`,Ue=`${k}=${k}||{${he}:function(s,f,p){return(p=new Promise(function(a,b){s=a,f=b})).${me}=s,p.${Se}=f,p},uP:function(p){delete p.${me};delete p.${Se}},${ve}:function(p,d){p.${me}(d),p.status="success",p.value=d,this.uP(p)},${be}:function(p,d){p.${Se}(d),p.status="failure",p.value=d,this.uP(p)},uS:function(s){delete s.${ge}},${K}:function(s,t,d,c){switch(c=s.${ge},t){case 0:return c.enqueue(d);case 1:return(this.uS(s),c.error(d));case 2:return(this.uS(s),c.close())}},${ye}:function(s,c){return(s=new ReadableStream({start:function(x){c=x}})).${ge}=c,s}}`;function Me(a){return a==null?`${k}=${k}||[];`:`(${k}=${k}||{})["${l(a)}"]=[];`}var Ne=new Map,A=new Map;function je(a,e){return Ne.set(e,a),A.set(a,e),e}function w(a){return Ne.has(a)}function or(a){return A.has(a)}function _e(a){return S(w(a),new Error("Missing reference id")),Ne.get(a)}function qe(a){return S(or(a),new Error("Missing reference for id:"+a)),A.get(a)}typeof globalThis!==void 0?Object.defineProperty(globalThis,x,{value:A,configurable:!0,writable:!1,enumerable:!1}):typeof window!==void 0?Object.defineProperty(window,x,{value:A,configurable:!0,writable:!1,enumerable:!1}):typeof self!==void 0?Object.defineProperty(self,x,{value:A,configurable:!0,writable:!1,enumerable:!1}):typeof global!==void 0&&Object.defineProperty(global,x,{value:A,configurable:!0,writable:!1,enumerable:!1});function se(a){switch(a){case 1/0:return Ve;case-1/0:return Le;default:return a!==a?Fe:Object.is(a,-0)?De:{t:0,i:void 0,s:a,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}}function ae(a){return{t:1,i:void 0,s:l(a),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function ie(a){return{t:3,i:void 0,s:""+a,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Re(a){return{t:4,i:a,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function z(a,e){return{t:5,i:a,s:e.toISOString(),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function T(a,e){return{t:6,i:a,s:void 0,l:void 0,c:e.source,m:e.flags,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function B(a,e){let r=new Uint8Array(e),t=r.length,n=new Array(t);for(let s=0;s<t;s++)n[s]=r[s];return{t:21,i:a,s:n,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function oe(a,e){return S(e in pe,new Error("Only well-known symbols are supported.")),{t:17,i:a,s:pe[e],l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function Ee(a,e){return{t:20,i:a,s:l(_e(e)),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}function D(a,e,r){return{t:40,i:a,s:r,l:void 0,c:l(e),m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}var h=(f=>(f[f.AggregateError=1]="AggregateError",f[f.ArrayPrototypeValues=2]="ArrayPrototypeValues",f[f.ArrowFunction=4]="ArrowFunction",f[f.BigInt=8]="BigInt",f[f.ErrorPrototypeStack=16]="ErrorPrototypeStack",f[f.Map=32]="Map",f[f.MethodShorthand=64]="MethodShorthand",f[f.ObjectAssign=128]="ObjectAssign",f[f.Promise=256]="Promise",f[f.Set=512]="Set",f[f.Symbol=1024]="Symbol",f[f.TypedArray=2048]="TypedArray",f[f.BigIntTypedArray=4096]="BigIntTypedArray",f[f.WebAPI=8192]="WebAPI",f))(h||{});function de(a,e){return{body:e,cache:a.cache,credentials:a.credentials,headers:a.headers,integrity:a.integrity,keepalive:a.keepalive,method:a.method,mode:a.mode,redirect:a.redirect,referrer:a.referrer,referrerPolicy:a.referrerPolicy}}function le(a){return{headers:a.headers,status:a.status,statusText:a.statusText}}function ue(a){return{bubbles:a.bubbles,cancelable:a.cancelable,composed:a.composed}}function fe(a){return{detail:a.detail,bubbles:a.bubbles,cancelable:a.cancelable,composed:a.composed}}var V=class{constructor(e){this.marked=new Set;this.plugins=e.plugins,this.features=16383^(e.disabledFeatures||0),this.refs=e.refs||new Map}markRef(e){this.marked.add(e)}isMarked(e){return this.marked.has(e)}getReference(e){let r=this.refs.get(e);if(r!=null)return this.markRef(r),Re(r);let t=this.refs.size;return this.refs.set(e,t),w(e)?Ee(t,e):t}getStrictReference(e){let r=this.refs.get(e);if(r!=null)return this.markRef(r),Re(r);let t=this.refs.size;return this.refs.set(e,t),Ee(t,e)}isIterable(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let r=e.constructor,t=this.features;if(t&2048)switch(r){case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return!1;default:break}if((t&4104)===4104)switch(r){case BigInt64Array:case BigUint64Array:return!1;default:break}if(t&32&&r===Map||t&512&&r===Set||t&8192&&(typeof Headers!="undefined"&&r===Headers||typeof File!="undefined"&&r===File))return!1;let n=this.plugins;if(n)for(let s=0,i=n.length;s<i;s++){let o=n[s];if(o.test(e)&&o.isIterable&&o.isIterable(e))return!1}return t&1024?Symbol.iterator in e:!1}};async function xe(a){try{return[1,await a]}catch(e){return[0,e]}}function G(a){return a instanceof EvalError?1:a instanceof RangeError?2:a instanceof ReferenceError?3:a instanceof SyntaxError?4:a instanceof TypeError?5:a instanceof URIError?6:0}function Ke(a){switch(a){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new Error(`Unknown TypedArray "${a}"`)}}var lr=/^[$A-Z_][0-9A-Z_$]*$/i;function Ae(a){let e=a[0];return(e==="$"||e==="_"||e>="A"&&e<="Z"||e>="a"&&e<="z")&&lr.test(a)}function L(a){return Object.isFrozen(a)?3:Object.isSealed(a)?2:Object.isExtensible(a)?0:1}function F(a,e){let r,t=ee[G(a)];a.name!==t?r={name:a.name}:a.constructor.name!==t&&(r={name:a.constructor.name});let n=Object.getOwnPropertyNames(a);for(let s=0,i=n.length,o;s<i;s++)o=n[s],o!=="name"&&o!=="message"&&(o==="stack"?e&16&&(r=r||{},r[o]=a[o]):(r=r||{},r[o]=a[o]));return r}function U(a,e){return{t:18,i:a,s:l(e.href),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function M(a,e){return{t:19,i:a,s:l(e.toString()),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:void 0,b:void 0,o:void 0}}function j(a,e){return{t:39,i:a,s:l(e.message),l:void 0,c:l(e.name),m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}var P=class extends V{async parseItems(e){let r=e.length,t=[],n=[];for(let s=0,i;s<r;s++)s in e&&(i=e[s],this.isIterable(i)?n[s]=i:t[s]=await this.parse(i));for(let s=0;s<r;s++)s in n&&(t[s]=await this.parse(n[s]));return t}async parseArray(e,r){return{t:9,i:e,s:void 0,l:r.length,c:void 0,m:void 0,p:void 0,e:void 0,a:await this.parseItems(r),f:void 0,b:void 0,o:L(r)}}async parseBoxed(e,r){return{t:27,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(r.valueOf()),b:void 0,o:void 0}}async parseTypedArray(e,r){return{t:15,i:e,s:void 0,l:r.length,c:r.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(r.buffer),b:r.byteOffset,o:void 0}}async parseBigIntTypedArray(e,r){return{t:16,i:e,s:void 0,l:r.length,c:r.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(r.buffer),b:r.byteOffset,o:void 0}}async parseDataView(e,r){return{t:22,i:e,s:void 0,l:r.byteLength,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(r.buffer),b:r.byteOffset,o:void 0}}async parseProperties(e){let r=Object.entries(e),t=[],n=[],s=[],i=[];for(let o=0,d=r.length,c,g;o<d;o++)c=l(r[o][0]),g=r[o][1],this.isIterable(g)?(s.push(c),i.push(g)):(t.push(c),n.push(await this.parse(g)));for(let o=0,d=s.length;o<d;o++)t.push(s[o]),n.push(await this.parse(i[o]));return this.features&1024&&Symbol.iterator in e&&(t.push(0),n.push(await this.parse(Array.from(e)))),{k:t,v:n,s:t.length}}async parsePlainObject(e,r,t){return{t:t?11:10,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:await this.parseProperties(r),e:void 0,a:void 0,f:void 0,b:void 0,o:L(r)}}async parseError(e,r){let t=F(r,this.features),n=t?await this.parseProperties(t):void 0;return{t:13,i:e,s:G(r),l:void 0,c:void 0,m:l(r.message),p:n,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async parseMap(e,r){let t=[],n=[],s=[],i=[];for(let[o,d]of r.entries())this.isIterable(o)||this.isIterable(d)?(s.push(o),i.push(d)):(t.push(await this.parse(o)),n.push(await this.parse(d)));for(let o=0,d=s.length;o<d;o++)t.push(await this.parse(s[o])),n.push(await this.parse(i[o]));return{t:8,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:n,s:r.size},a:void 0,f:void 0,b:void 0,o:void 0}}async parseSet(e,r){let t=[],n=[];for(let s of r.keys())this.isIterable(s)?n.push(s):t.push(await this.parse(s));for(let s=0,i=n.length;s<i;s++)t.push(await this.parse(n[s]));return{t:7,i:e,s:void 0,l:r.size,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}async parseBlob(e,r){return{t:23,i:e,s:void 0,l:void 0,c:l(r.type),m:void 0,p:void 0,e:void 0,f:await this.parse(await r.arrayBuffer()),a:void 0,b:void 0,o:void 0}}async parseFile(e,r){return{t:24,i:e,s:void 0,l:void 0,c:l(r.type),m:l(r.name),p:void 0,e:void 0,f:await this.parse(await r.arrayBuffer()),a:void 0,b:r.lastModified,o:void 0}}async parsePlainProperties(e){let r=e.length,t=[],n=[],s=[],i=[];for(let o=0,d,c;o<r;o++)d=l(e[o][0]),c=e[o][1],this.isIterable(c)?(s.push(d),i.push(c)):(t.push(d),n.push(await this.parse(c)));for(let o=0,d=s.length;o<d;o++)t.push(s[o]),n.push(await this.parse(i[o]));return{k:t,v:n,s:r}}async parseHeaders(e,r){let t=[];return r.forEach((n,s)=>{t.push([s,n])}),{t:25,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await this.parsePlainProperties(t),a:void 0,f:void 0,b:void 0,o:void 0}}async parseFormData(e,r){let t=[];return r.forEach((n,s)=>{t.push([s,n])}),{t:26,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:await this.parsePlainProperties(t),a:void 0,f:void 0,b:void 0,o:void 0}}async parseRequest(e,r){return{t:35,i:e,s:l(r.url),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:await this.parse(de(r,r.body?await r.clone().arrayBuffer():null)),a:void 0,b:void 0,o:void 0}}async parseResponse(e,r){return{t:36,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:[r.body?await this.parse(await r.clone().arrayBuffer()):E,await this.parse(le(r))],b:void 0,o:void 0}}async parseEvent(e,r){return{t:37,i:e,s:l(r.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(ue(r)),b:void 0,o:void 0}}async parseCustomEvent(e,r){return{t:38,i:e,s:l(r.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(fe(r)),b:void 0,o:void 0}}async parseAggregateError(e,r){let t=F(r,this.features),n=t?await this.parseProperties(t):void 0;return{t:14,i:e,s:void 0,l:void 0,c:void 0,m:l(r.message),p:n,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}async parsePromise(e,r){let[t,n]=await xe(r);return{t:12,i:e,s:t,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:await this.parse(n),b:void 0,o:void 0}}async parsePlugin(e,r){let t=this.plugins;if(t)for(let n=0,s=t.length;n<s;n++){let i=t[n];if(i.parse.async&&i.test(r))return D(e,i.tag,await i.parse.async(r,this,{id:e}))}}async parseObject(e,r){if(Array.isArray(r))return this.parseArray(e,r);let t=r.constructor;switch(t){case Object:return this.parsePlainObject(e,r,!1);case void 0:return this.parsePlainObject(e,r,!0);case Date:return z(e,r);case RegExp:return T(e,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return this.parseError(e,r);case Number:case Boolean:case String:case BigInt:return this.parseBoxed(e,r);default:break}let n=this.features;if(n&256&&(t===Promise||r instanceof Promise))return this.parsePromise(e,r);if(n&2048)switch(t){case ArrayBuffer:return B(e,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return this.parseTypedArray(e,r);case DataView:return this.parseDataView(e,r);default:break}if((n&4104)===4104)switch(t){case BigInt64Array:case BigUint64Array:return this.parseBigIntTypedArray(e,r);default:break}if(n&32&&t===Map)return this.parseMap(e,r);if(n&512&&t===Set)return this.parseSet(e,r);if(n&8192)switch(t){case(typeof URL!="undefined"?URL:u):return U(e,r);case(typeof URLSearchParams!="undefined"?URLSearchParams:u):return M(e,r);case(typeof Blob!="undefined"?Blob:u):return this.parseBlob(e,r);case(typeof File!="undefined"?File:u):return this.parseFile(e,r);case(typeof Headers!="undefined"?Headers:u):return this.parseHeaders(e,r);case(typeof FormData!="undefined"?FormData:u):return this.parseFormData(e,r);case(typeof Request!="undefined"?Request:u):return this.parseRequest(e,r);case(typeof Response!="undefined"?Response:u):return this.parseResponse(e,r);case(typeof Event!="undefined"?Event:u):return this.parseEvent(e,r);case(typeof CustomEvent!="undefined"?CustomEvent:u):return this.parseCustomEvent(e,r);case(typeof DOMException!="undefined"?DOMException:u):return j(e,r);default:break}let s=await this.parsePlugin(e,r);if(s)return s;if(n&1&&typeof AggregateError!="undefined"&&(t===AggregateError||r instanceof AggregateError))return this.parseAggregateError(e,r);if(r instanceof Error)return this.parseError(e,r);if(n&1024&&Symbol.iterator in r)return this.parsePlainObject(e,r,!!t);throw new m(r)}async parse(e){switch(e){case!0:return re;case!1:return te;case void 0:return ne;case null:return E;default:break}switch(typeof e){case"string":return ae(e);case"number":return se(e);case"bigint":return S(this.features&8,new m(e)),ie(e);case"object":{let r=this.getReference(e);return typeof r=="number"?this.parseObject(r,e):r}case"symbol":{S(this.features&1024,new m(e));let r=this.getReference(e);return typeof r=="number"?oe(r,e):r}case"function":return S(w(e),new Error("Cannot serialize function without reference ID.")),this.getStrictReference(e);default:throw new m(e)}}};var _=class extends P{constructor(){super(...arguments);this.mode="vanilla"}};function Ge(a,e){switch(e){case 3:return Object.freeze(a);case 1:return Object.preventExtensions(a);case 2:return Object.seal(a);default:return a}}function ur(){let a,e;return{resolve(r){a(r)},reject(r){e(r)},promise:new Promise((r,t)=>{a=r,e=t})}}var W=class{constructor(e){this.values=new Map;this.plugins=e.plugins,this.refs=new Set(e.markedRefs)}assignIndexedValue(e,r){return this.refs.has(e)&&this.values.set(e,r),r}deserializeReference(e){return this.assignIndexedValue(e.i,qe(p(e.s)))}deserializeArray(e){let r=e.l,t=this.assignIndexedValue(e.i,new Array(r)),n;for(let s=0;s<r;s++)n=e.a[s],n&&(t[s]=this.deserialize(n));return Ge(t,e.o),t}deserializeProperties(e,r){let t=e.s;if(t){let n,s,i=e.k,o=e.v;for(let d=0;d<t;d++)switch(n=i[d],s=this.deserialize(o[d]),n){case 0:{let c=s;r[Symbol.iterator]=()=>c.values()}break;default:r[p(n)]=s;break}}return r}deserializeObject(e){let r=this.assignIndexedValue(e.i,e.t===10?{}:Object.create(null));return this.deserializeProperties(e.p,r),Ge(r,e.o),r}deserializeDate(e){return this.assignIndexedValue(e.i,new Date(e.s))}deserializeRegExp(e){return this.assignIndexedValue(e.i,new RegExp(e.c,e.m))}deserializeSet(e){let r=this.assignIndexedValue(e.i,new Set),t=e.a;for(let n=0,s=e.l;n<s;n++)r.add(this.deserialize(t[n]));return r}deserializeMap(e){let r=this.assignIndexedValue(e.i,new Map),t=e.e.k,n=e.e.v;for(let s=0,i=e.e.s;s<i;s++)r.set(this.deserialize(t[s]),this.deserialize(n[s]));return r}deserializeArrayBuffer(e){let r=new Uint8Array(e.s);return this.assignIndexedValue(e.i,r.buffer)}deserializeTypedArray(e){let r=Ke(e.c),t=this.deserialize(e.f);return this.assignIndexedValue(e.i,new r(t,e.b,e.l))}deserializeDataView(e){let r=this.deserialize(e.f);return this.assignIndexedValue(e.i,new DataView(r,e.b,e.l))}deserializeDictionary(e,r){if(e.p){let t=this.deserializeProperties(e.p,{});Object.assign(r,t)}return r}deserializeAggregateError(e){let r=this.assignIndexedValue(e.i,new AggregateError([],p(e.m)));return this.deserializeDictionary(e,r)}deserializeError(e){let r=Be[e.s],t=this.assignIndexedValue(e.i,new r(p(e.m)));return this.deserializeDictionary(e,t)}async deserializePromise(e){let r=ur(),t=this.assignIndexedValue(e.i,r.promise),n=this.deserialize(e.f);return e.s?r.resolve(n):r.reject(n),t}deserializeURL(e){return this.assignIndexedValue(e.i,new URL(p(e.s)))}deserializeURLSearchParams(e){return this.assignIndexedValue(e.i,new URLSearchParams(p(e.s)))}deserializeBlob(e){let r=this.deserialize(e.f);return this.assignIndexedValue(e.i,new Blob([r],{type:p(e.c)}))}deserializeFile(e){let r=this.deserialize(e.f);return this.assignIndexedValue(e.i,new File([r],p(e.m),{type:p(e.c),lastModified:e.b}))}deserializeHeaders(e){let r=this.assignIndexedValue(e.i,new Headers),t=e.e.k,n=e.e.v;for(let s=0,i=e.e.s;s<i;s++)r.set(p(t[s]),this.deserialize(n[s]));return r}deserializeFormData(e){let r=this.assignIndexedValue(e.i,new FormData),t=e.e.k,n=e.e.v;for(let s=0,i=e.e.s;s<i;s++)r.set(p(t[s]),this.deserialize(n[s]));return r}deserializeBoxed(e){return this.assignIndexedValue(e.i,Object(this.deserialize(e.f)))}deserializeRequest(e){return this.assignIndexedValue(e.i,new Request(p(e.s),this.deserialize(e.f)))}deserializeResponse(e){return this.assignIndexedValue(e.i,new Response(this.deserialize(e.a[0]),this.deserialize(e.a[1])))}deserializeEvent(e){return this.assignIndexedValue(e.i,new Event(p(e.s),this.deserialize(e.f)))}deserializeCustomEvent(e){return this.assignIndexedValue(e.i,new CustomEvent(p(e.s),this.deserialize(e.f)))}deserializeDOMException(e){return this.assignIndexedValue(e.i,new DOMException(p(e.s),p(e.c)))}deserializePlugin(e){let r=this.plugins;if(r)for(let t=0,n=r.length;t<n;t++){let s=r[t];if(s.tag===e.c)return s.deserialize(e.s,this,{id:e.i})}throw new Error('Missing plugin for tag "'+e.c+'".')}deserialize(e){switch(e.t){case 2:return Te[e.s];case 0:return e.s;case 1:return p(e.s);case 3:return BigInt(e.s);case 4:return this.values.get(e.i);case 20:return this.deserializeReference(e);case 9:return this.deserializeArray(e);case 10:case 11:return this.deserializeObject(e);case 5:return this.deserializeDate(e);case 6:return this.deserializeRegExp(e);case 7:return this.deserializeSet(e);case 8:return this.deserializeMap(e);case 21:return this.deserializeArrayBuffer(e);case 16:case 15:return this.deserializeTypedArray(e);case 22:return this.deserializeDataView(e);case 14:return this.deserializeAggregateError(e);case 13:return this.deserializeError(e);case 12:return this.deserializePromise(e);case 17:return ke[e.s];case 18:return this.deserializeURL(e);case 19:return this.deserializeURLSearchParams(e);case 23:return this.deserializeBlob(e);case 24:return this.deserializeFile(e);case 25:return this.deserializeHeaders(e);case 26:return this.deserializeFormData(e);case 27:return this.deserializeBoxed(e);case 35:return this.deserializeRequest(e);case 36:return this.deserializeResponse(e);case 37:return this.deserializeEvent(e);case 38:return this.deserializeCustomEvent(e);case 39:return this.deserializeDOMException(e);case 40:return this.deserializePlugin(e);default:throw new Error("invariant")}}};function $(a){switch(a.t){case"index":return a.s+"="+a.v;case"set":return a.s+".set("+a.k+","+a.v+")";case"add":return a.s+".add("+a.v+")";case"delete":return a.s+".delete("+a.k+")";default:return""}}function fr(a){let e=[],r=a[0];for(let t=1,n=a.length,s,i=r;t<n;t++)s=a[t],s.t==="index"&&s.v===i.v?r={t:"index",s:s.s,k:void 0,v:$(r)}:s.t==="set"&&s.s===i.s?r={t:"set",s:$(r),k:s.k,v:s.v}:s.t==="add"&&s.s===i.s?r={t:"add",s:$(r),k:void 0,v:s.v}:s.t==="delete"&&s.s===i.s?r={t:"delete",s:$(r),k:s.k,v:void 0}:(e.push(r),r=s),i=s;return e.push(r),e}function We(a){if(a.length){let e="",r=fr(a);for(let t=0,n=r.length;t<n;t++)e+=$(r[t])+",";return e}}var cr="Object.create(null)",pr="new Set",mr="new Map",Sr="Promise.resolve",gr="Promise.reject",$e="Symbol.iterator";var hr={0:"[]"},vr={3:"Object.freeze",2:"Object.seal",1:"Object.preventExtensions",0:void 0},O=class{constructor(e){this.stack=[];this.flags=[];this.assignments=[];this.specials=new Set;this.plugins=e.plugins,this.features=e.features,this.marked=new Set(e.markedRefs)}markRef(e){this.marked.add(e)}isMarked(e){return this.marked.has(e)}getSpecialReference(e){let r=this.getRefParam("_"+e);return this.specials.has(e)?r:(this.specials.add(e),r+"="+hr[e])}pushObjectFlag(e,r){e!==0&&(this.markRef(r),this.flags.push({type:e,value:this.getRefParam(r)}))}resolveFlags(){let e="";for(let r=0,t=this.flags,n=t.length;r<n;r++){let s=t[r];e+=vr[s.type]+"("+s.value+"),"}return e}resolvePatches(){let e=We(this.assignments),r=this.resolveFlags();return e?r?e+r:e:r}createAssignment(e,r){this.assignments.push({t:"index",s:e,k:void 0,v:r})}createAddAssignment(e,r){this.assignments.push({t:"add",s:this.getRefParam(e),k:void 0,v:r})}createSetAssignment(e,r,t){this.assignments.push({t:"set",s:this.getRefParam(e),k:r,v:t})}createDeleteAssignment(e,r){this.assignments.push({t:"delete",s:this.getRefParam(e),k:r,v:void 0})}createArrayAssign(e,r,t){this.createAssignment(this.getRefParam(e)+"["+r+"]",t)}createObjectAssign(e,r,t){this.createAssignment(this.getRefParam(e)+"."+r,t)}isIndexedValueInStack(e){return e.t===4&&this.stack.includes(e.i)}serializeReference(e){return this.assignIndexedValue(e.i,x+'.get("'+e.s+'")')}getIterableAccess(){return this.features&2?".values()":"["+$e+"]()"}serializeIterable(e){let r="["+$e+"]",t=this.stack;this.stack=[];let n=this.serialize(e)+this.getIterableAccess();return this.stack=t,this.features&4?n=":()=>"+n:this.features&64?n="(){return "+n+"}":n=":function(){return "+n+"}",r+n}serializeArrayItem(e,r,t){return r?this.isIndexedValueInStack(r)?(this.markRef(e),this.createArrayAssign(e,t,this.getRefParam(r.i)),""):this.serialize(r):""}serializeArray(e){let r=e.i;if(e.l){this.stack.push(r);let t=e.a,n=this.serializeArrayItem(r,t[0],0),s=n==="";for(let i=1,o=e.l,d;i<o;i++)d=this.serializeArrayItem(r,t[i],i),n+=","+d,s=d==="";return this.stack.pop(),this.pushObjectFlag(e.o,e.i),this.assignIndexedValue(r,"["+n+(s?",]":"]"))}return this.assignIndexedValue(r,"[]")}serializeProperty(e,r,t){switch(r){case 0:return this.serializeIterable(t);default:{let n=Number(r),s=n>=0||Ae(r);if(this.isIndexedValueInStack(t)){let i=this.getRefParam(t.i);return this.markRef(e),s&&n!==n?this.createObjectAssign(e,r,i):this.createArrayAssign(e,s?r:'"'+r+'"',i),""}return(s?r:'"'+r+'"')+":"+this.serialize(t)}}}serializeProperties(e,r){let t=r.s;if(t){this.stack.push(e);let n=r.k,s=r.v,i=this.serializeProperty(e,n[0],s[0]);for(let o=1,d=i;o<t;o++)d=this.serializeProperty(e,n[o],s[o]),i+=(d&&i&&",")+d;return this.stack.pop(),"{"+i+"}"}return"{}"}serializeObject(e){return this.pushObjectFlag(e.o,e.i),this.assignIndexedValue(e.i,this.serializeProperties(e.i,e.p))}serializeWithObjectAssign(e,r,t){let n=this.serializeProperties(r,e);return n!=="{}"?"Object.assign("+t+","+n+")":t}serializeAssignment(e,r,t,n){switch(t){case 0:{let s=this.stack;this.stack=[];let i=this.serialize(n)+this.getIterableAccess();this.stack=s;let o=this.assignments;this.assignments=r,this.createArrayAssign(e,this.getSpecialReference(0),this.features&4?"()=>"+i:"function(){return "+i+"}"),this.assignments=o}break;default:{let s=this.serialize(n),i=Number(t),o=i>=0||Ae(t);if(this.isIndexedValueInStack(n))o&&i!==i?this.createObjectAssign(e,t,s):this.createArrayAssign(e,o?t:'"'+t+'"',s);else{let d=this.assignments;this.assignments=r,o?this.createObjectAssign(e,t,s):this.createArrayAssign(e,o?t:'"'+t+'"',s),this.assignments=d}}}}serializeAssignments(e,r){let t=r.s;if(t){this.stack.push(e);let n=[],s=r.k,i=r.v;for(let o=0;o<t;o++)this.serializeAssignment(e,n,s[o],i[o]);return this.stack.pop(),We(n)}}serializeDictionary(e,r,t){if(r)if(this.features&128)t=this.serializeWithObjectAssign(r,e,t);else{this.markRef(e);let n=this.serializeAssignments(e,r);if(n)return"("+this.assignIndexedValue(e,t)+","+n+this.getRefParam(e)+")"}return this.assignIndexedValue(e,t)}serializeNullConstructor(e){return this.pushObjectFlag(e.o,e.i),this.serializeDictionary(e.i,e.p,cr)}serializeDate(e){return this.assignIndexedValue(e.i,'new Date("'+e.s+'")')}serializeRegExp(e){return this.assignIndexedValue(e.i,"/"+e.c+"/"+e.m)}serializeSetItem(e,r){return this.isIndexedValueInStack(r)?(this.markRef(e),this.createAddAssignment(e,this.getRefParam(r.i)),""):this.serialize(r)}serializeSet(e){let r=pr,t=e.l,n=e.i;if(t){let s=e.a;this.stack.push(n);let i=this.serializeSetItem(n,s[0]);for(let o=1,d=i;o<t;o++)d=this.serializeSetItem(n,s[o]),i+=(d&&i&&",")+d;this.stack.pop(),i&&(r+="(["+i+"])")}return this.assignIndexedValue(n,r)}serializeMapEntry(e,r,t){if(this.isIndexedValueInStack(r)){let n=this.getRefParam(r.i);if(this.markRef(e),this.isIndexedValueInStack(t)){let i=this.getRefParam(t.i);return this.createSetAssignment(e,n,i),""}if(t.t!==4&&t.i!=null&&this.isMarked(t.i)){let i="("+this.serialize(t)+",["+this.getSpecialReference(0)+","+this.getSpecialReference(0)+"])";return this.createSetAssignment(e,n,this.getRefParam(t.i)),this.createDeleteAssignment(e,this.getSpecialReference(0)),i}let s=this.stack;return this.stack=[],this.createSetAssignment(e,n,this.serialize(t)),this.stack=s,""}if(this.isIndexedValueInStack(t)){let n=this.getRefParam(t.i);if(this.markRef(e),r.t!==4&&r.i!=null&&this.isMarked(r.i)){let i="("+this.serialize(r)+",["+this.getSpecialReference(0)+","+this.getSpecialReference(0)+"])";return this.createSetAssignment(e,this.getRefParam(r.i),n),this.createDeleteAssignment(e,this.getSpecialReference(0)),i}let s=this.stack;return this.stack=[],this.createSetAssignment(e,this.serialize(r),n),this.stack=s,""}return"["+this.serialize(r)+","+this.serialize(t)+"]"}serializeMap(e){let r=mr,t=e.e.s,n=e.i;if(t){let s=e.e.k,i=e.e.v;this.stack.push(n);let o=this.serializeMapEntry(n,s[0],i[0]);for(let d=1,c=o;d<t;d++)c=this.serializeMapEntry(n,s[d],i[d]),o+=(c&&o&&",")+c;this.stack.pop(),o&&(r+="(["+o+"])")}return this.assignIndexedValue(n,r)}serializeArrayBuffer(e){let r="new Uint8Array(",t=e.s,n=t.length;if(n){r+="["+t[0];for(let s=1;s<n;s++)r+=","+t[s];r+="]"}return this.assignIndexedValue(e.i,r+").buffer")}serializeTypedArray(e){return this.assignIndexedValue(e.i,"new "+e.c+"("+this.serialize(e.f)+","+e.b+","+e.l+")")}serializeDataView(e){return this.assignIndexedValue(e.i,"new DataView("+this.serialize(e.f)+","+e.b+","+e.l+")")}serializeAggregateError(e){let r=e.i;this.stack.push(r);let t='new AggregateError([],"'+e.m+'")';return this.stack.pop(),this.serializeDictionary(r,e.p,t)}serializeError(e){return this.serializeDictionary(e.i,e.p,"new "+ee[e.s]+'("'+e.m+'")')}serializePromise(e){let r,t=e.f,n=e.i,s=e.s?Sr:gr;if(this.isIndexedValueInStack(t)){let i=this.getRefParam(t.i);this.features&4?e.s?r=s+"().then(()=>"+i+")":r=s+"().catch(()=>{throw "+i+"})":e.s?r=s+"().then(function(){return "+i+"})":r=s+"().catch(function(){throw "+i+"})"}else{this.stack.push(n);let i=this.serialize(t);this.stack.pop(),r=s+"("+i+")"}return this.assignIndexedValue(n,r)}serializeWKSymbol(e){return this.assignIndexedValue(e.i,Ce[e.s])}serializeURL(e){return this.assignIndexedValue(e.i,'new URL("'+e.s+'")')}serializeURLSearchParams(e){return this.assignIndexedValue(e.i,e.s?'new URLSearchParams("'+e.s+'")':"new URLSearchParams")}serializeBlob(e){return this.assignIndexedValue(e.i,"new Blob(["+this.serialize(e.f)+'],{type:"'+e.c+'"})')}serializeFile(e){return this.assignIndexedValue(e.i,"new File(["+this.serialize(e.f)+'],"'+e.m+'",{type:"'+e.c+'",lastModified:'+e.b+"})")}serializeHeaders(e){return this.assignIndexedValue(e.i,"new Headers("+this.serializeProperties(e.i,e.e)+")")}serializeFormDataEntry(e,r,t){return this.getRefParam(e)+'.append("'+r+'",'+this.serialize(t)+")"}serializeFormDataEntries(e,r){let t=e.e.k,n=e.e.v,s=e.i,i=this.serializeFormDataEntry(s,t[0],n[0]);for(let o=1;o<r;o++)i+=","+this.serializeFormDataEntry(s,t[o],n[o]);return i}serializeFormData(e){let r=e.e.s,t=e.i;r&&this.markRef(t);let n=this.assignIndexedValue(t,"new FormData()");if(r){let s=this.serializeFormDataEntries(e,r);return"("+n+","+(s?s+",":"")+this.getRefParam(t)+")"}return n}serializeBoxed(e){return this.assignIndexedValue(e.i,"Object("+this.serialize(e.f)+")")}serializeRequest(e){return this.assignIndexedValue(e.i,'new Request("'+e.s+'",'+this.serialize(e.f)+")")}serializeResponse(e){return this.assignIndexedValue(e.i,"new Response("+this.serialize(e.a[0])+","+this.serialize(e.a[1])+")")}serializeEvent(e){return this.assignIndexedValue(e.i,'new Event("'+e.s+'",'+this.serialize(e.f)+")")}serializeCustomEvent(e){return this.assignIndexedValue(e.i,'new CustomEvent("'+e.s+'",'+this.serialize(e.f)+")")}serializeDOMException(e){return this.assignIndexedValue(e.i,'new DOMException("'+e.s+'","'+e.c+'")')}serializePlugin(e){let r=this.plugins;if(r)for(let t=0,n=r.length;t<n;t++){let s=r[t];if(s.tag===e.c)return s.serialize(e.s,this,{id:e.i})}throw new Error('Missing plugin for tag "'+e.c+'".')}serialize(e){switch(e.t){case 2:return ze[e.s];case 0:return""+e.s;case 1:return'"'+e.s+'"';case 3:return e.s+"n";case 4:return this.getRefParam(e.i);case 20:return this.serializeReference(e);case 9:return this.serializeArray(e);case 10:return this.serializeObject(e);case 11:return this.serializeNullConstructor(e);case 5:return this.serializeDate(e);case 6:return this.serializeRegExp(e);case 7:return this.serializeSet(e);case 8:return this.serializeMap(e);case 21:return this.serializeArrayBuffer(e);case 16:case 15:return this.serializeTypedArray(e);case 22:return this.serializeDataView(e);case 14:return this.serializeAggregateError(e);case 13:return this.serializeError(e);case 12:return this.serializePromise(e);case 17:return this.serializeWKSymbol(e);case 18:return this.serializeURL(e);case 19:return this.serializeURLSearchParams(e);case 23:return this.serializeBlob(e);case 24:return this.serializeFile(e);case 25:return this.serializeHeaders(e);case 26:return this.serializeFormData(e);case 27:return this.serializeBoxed(e);case 28:return this.serializePromiseConstructor(e);case 29:return this.serializePromiseResolve(e);case 30:return this.serializePromiseReject(e);case 31:return this.serializeReadableStreamConstructor(e);case 32:return this.serializeReadableStreamEnqueue(e);case 34:return this.serializeReadableStreamError(e);case 33:return this.serializeReadableStreamClose(e);case 35:return this.serializeRequest(e);case 36:return this.serializeResponse(e);case 37:return this.serializeEvent(e);case 38:return this.serializeCustomEvent(e);case 39:return this.serializeDOMException(e);case 40:return this.serializePlugin(e);default:throw new Error("invariant")}}};var Je="hjkmoquxzABCDEFGHIJKLNPQRTUVWXYZ$_",Xe=Je.length,Ze="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$_",Ye=Ze.length;function Pe(a){let e=a%Xe,r=Je[e];for(a=(a-e)/Xe;a>0;)e=a%Ye,r+=Ze[e],a=(a-e)/Ye;return r}var I=class extends O{constructor(){super(...arguments);this.mode="vanilla";this.valid=new Map;this.vars=[]}markRef(r){this.marked.add(r)}getRefParam(r){let t=this.valid.get(r);t==null&&(t=this.valid.size,this.valid.set(r,t));let n=this.vars[t];return n==null&&(n=Pe(t),this.vars[t]=n),n}assignIndexedValue(r,t){return this.isMarked(r)?this.getRefParam(r)+"="+t:t}serializePromiseConstructor(r){throw new Error('Unsupported node type "'+r.t+'".')}serializePromiseResolve(r){throw new Error('Unsupported node type "'+r.t+'".')}serializePromiseReject(r){throw new Error('Unsupported node type "'+r.t+'".')}serializeReadableStreamConstructor(r){throw new Error('Unsupported node type "'+r.t+'".')}serializeReadableStreamEnqueue(r){throw new Error('Unsupported node type "'+r.t+'".')}serializeReadableStreamError(r){throw new Error('Unsupported node type "'+r.t+'".')}serializeReadableStreamClose(r){throw new Error('Unsupported node type "'+r.t+'".')}serializeTop(r){let t=this.serialize(r);if(r.i!=null&&this.vars.length){let n=this.resolvePatches(),s=t;if(n){let o=this.getRefParam(r.i);s=t+","+n+o,t.startsWith(o+"=")||(s=o+"="+s)}let i=this.vars.length>1?this.vars.join(","):this.vars[0];return this.features&4?(i=this.vars.length>1||this.vars.length===0?"("+i+")":i,"("+i+"=>("+s+"))()"):"(function("+i+"){return "+s+"})()"}return r.t===10?"("+t+")":t}};var y=class extends V{parseItems(e){let r=e.length,t=[],n=[];for(let s=0,i;s<r;s++)s in e&&(i=e[s],this.isIterable(i)?n[s]=i:t[s]=this.parse(i));for(let s=0;s<r;s++)s in n&&(t[s]=this.parse(n[s]));return t}parseArray(e,r){return{t:9,i:e,s:void 0,l:r.length,c:void 0,m:void 0,p:void 0,e:void 0,a:this.parseItems(r),f:void 0,b:void 0,o:L(r)}}parseProperties(e){let r=Object.entries(e),t=[],n=[],s=[],i=[];for(let o=0,d=r.length,c,g;o<d;o++)c=l(r[o][0]),g=r[o][1],this.isIterable(g)?(s.push(c),i.push(g)):(t.push(c),n.push(this.parse(g)));for(let o=0,d=s.length;o<d;o++)t.push(s[o]),n.push(this.parse(i[o]));return this.features&1024&&Symbol.iterator in e&&(t.push(0),n.push(this.parse(Array.from(e)))),{k:t,v:n,s:t.length}}parsePlainObject(e,r,t){return{t:t?11:10,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:this.parseProperties(r),e:void 0,a:void 0,f:void 0,b:void 0,o:L(r)}}parseBoxed(e,r){return{t:27,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(r.valueOf()),b:void 0,o:void 0}}parseTypedArray(e,r){return{t:15,i:e,s:void 0,l:r.length,c:r.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(r.buffer),b:r.byteOffset,o:void 0}}parseBigIntTypedArray(e,r){return{t:16,i:e,s:void 0,l:r.length,c:r.constructor.name,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(r.buffer),b:r.byteOffset,o:void 0}}parseDataView(e,r){return{t:22,i:e,s:void 0,l:r.byteLength,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(r.buffer),b:r.byteOffset,o:void 0}}parseError(e,r){let t=F(r,this.features),n=t?this.parseProperties(t):void 0;return{t:13,i:e,s:G(r),l:void 0,c:void 0,m:l(r.message),p:n,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}parseMap(e,r){let t=[],n=[],s=[],i=[];for(let[o,d]of r.entries())this.isIterable(o)||this.isIterable(d)?(s.push(o),i.push(d)):(t.push(this.parse(o)),n.push(this.parse(d)));for(let o=0,d=s.length;o<d;o++)t.push(this.parse(s[o])),n.push(this.parse(i[o]));return{t:8,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:{k:t,v:n,s:r.size},a:void 0,f:void 0,b:void 0,o:void 0}}parseSet(e,r){let t=[],n=[];for(let s of r.keys())this.isIterable(s)?n.push(s):t.push(this.parse(s));for(let s=0,i=n.length;s<i;s++)t.push(this.parse(n[s]));return{t:7,i:e,s:void 0,l:r.size,c:void 0,m:void 0,p:void 0,e:void 0,a:t,f:void 0,b:void 0,o:void 0}}parsePlainProperties(e){let r=e.length,t=[],n=[],s=[],i=[];for(let o=0,d,c;o<r;o++)d=l(e[o][0]),c=e[o][1],this.isIterable(c)?(s.push(d),i.push(c)):(t.push(d),n.push(this.parse(c)));for(let o=0,d=s.length;o<d;o++)t.push(s[o]),n.push(this.parse(i[o]));return{k:t,v:n,s:r}}parseHeaders(e,r){let t=[];return r.forEach((n,s)=>{t.push([s,n])}),{t:25,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:this.parsePlainProperties(t),a:void 0,f:void 0,b:void 0,o:void 0}}parseFormData(e,r){let t=[];return r.forEach((n,s)=>{t.push([s,n])}),{t:26,i:e,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:this.parsePlainProperties(t),a:void 0,f:void 0,b:void 0,o:void 0}}parseEvent(e,r){return{t:37,i:e,s:l(r.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(ue(r)),b:void 0,o:void 0}}parseCustomEvent(e,r){return{t:38,i:e,s:l(r.type),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:this.parse(fe(r)),b:void 0,o:void 0}}parseAggregateError(e,r){let t=F(r,this.features),n=t?this.parseProperties(t):void 0;return{t:14,i:e,s:void 0,l:void 0,c:void 0,m:l(r.message),p:n,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}parsePlugin(e,r){let t=this.plugins;if(t)for(let n=0,s=t.length;n<s;n++){let i=t[n];if(i.parse.sync&&i.test(r))return D(e,i.tag,i.parse.sync(r,this,{id:e}))}}parseObject(e,r){if(Array.isArray(r))return this.parseArray(e,r);let t=r.constructor;switch(t){case Object:return this.parsePlainObject(e,r,!1);case void 0:return this.parsePlainObject(e,r,!0);case Date:return z(e,r);case RegExp:return T(e,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return this.parseError(e,r);case Number:case Boolean:case String:case BigInt:return this.parseBoxed(e,r);default:break}let n=this.features;if(n&2048)switch(t){case ArrayBuffer:return B(e,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return this.parseTypedArray(e,r);case DataView:return this.parseDataView(e,r);default:break}if((n&4104)===4104)switch(t){case BigInt64Array:case BigUint64Array:return this.parseBigIntTypedArray(e,r);default:break}if(n&32&&t===Map)return this.parseMap(e,r);if(n&512&&t===Set)return this.parseSet(e,r);if(n&8192)switch(t){case(typeof URL!="undefined"?URL:u):return U(e,r);case(typeof URLSearchParams!="undefined"?URLSearchParams:u):return M(e,r);case(typeof Headers!="undefined"?Headers:u):return this.parseHeaders(e,r);case(typeof FormData!="undefined"?FormData:u):return this.parseFormData(e,r);case(typeof Event!="undefined"?Event:u):return this.parseEvent(e,r);case(typeof CustomEvent!="undefined"?CustomEvent:u):return this.parseCustomEvent(e,r);case(typeof DOMException!="undefined"?DOMException:u):return j(e,r);default:break}let s=this.parsePlugin(e,r);if(s)return s;if(n&1&&typeof AggregateError!="undefined"&&(t===AggregateError||r instanceof AggregateError))return this.parseAggregateError(e,r);if(r instanceof Error)return this.parseError(e,r);if(n&1024&&Symbol.iterator in r)return this.parsePlainObject(e,r,!!t);throw new m(r)}parse(e){switch(e){case!0:return re;case!1:return te;case void 0:return ne;case null:return E;default:break}switch(typeof e){case"string":return ae(e);case"number":return se(e);case"bigint":return S(this.features&8,new m(e)),ie(e);case"object":{let r=this.getReference(e);return typeof r=="number"?this.parseObject(r,e):r}case"symbol":{S(this.features&1024,new m(e));let r=this.getReference(e);return typeof r=="number"?oe(r,e):r}case"function":return S(w(e),new Error("Cannot serialize function without reference ID.")),this.getStrictReference(e);default:throw new m(e)}}};var q=class extends y{constructor(){super(...arguments);this.mode="vanilla"}};function Oe(a,e={}){let r=new q({plugins:e.plugins,disabledFeatures:e.disabledFeatures}),t=r.parse(a);return new I({plugins:e.plugins,features:r.features,markedRefs:r.marked}).serializeTop(t)}async function br(a,e={}){let r=new _({plugins:e.plugins,disabledFeatures:e.disabledFeatures}),t=await r.parse(a);return new I({plugins:e.plugins,features:r.features,markedRefs:r.marked}).serializeTop(t)}function yr(a){return(0,eval)(a)}function Nr(a,e={}){let r=new q({plugins:e.plugins,disabledFeatures:e.disabledFeatures});return{t:r.parse(a),f:r.features,m:Array.from(r.marked)}}async function Rr(a,e={}){let r=new _({plugins:e.plugins,disabledFeatures:e.disabledFeatures});return{t:await r.parse(a),f:r.features,m:Array.from(r.marked)}}function Er(a,e={}){return new I({plugins:e.plugins,features:a.f,markedRefs:a.m}).serializeTop(a.t)}function xr(a,e={}){return new W({plugins:e.plugins,markedRefs:a.m}).deserialize(a.t)}var X=class extends P{constructor(){super(...arguments);this.mode="cross"}};var C=class extends O{constructor(r){super(r);this.mode="cross";this.scopeId=r.scopeId}getRefParam(r){return typeof r=="string"?H+"."+r:H+"["+r+"]"}assignIndexedValue(r,t){return this.getRefParam(r)+"="+t}serializePromiseConstructor(r){return this.assignIndexedValue(r.i,b+"."+he+"()")}serializePromiseResolve(r){return b+"."+ve+"("+this.getRefParam(r.i)+","+this.serialize(r.f)+")"}serializePromiseReject(r){return b+"."+be+"("+this.getRefParam(r.i)+","+this.serialize(r.f)+")"}serializeReadableStreamConstructor(r){return this.assignIndexedValue(r.i,b+"."+ye+"()")}serializeReadableStreamEnqueue(r){return b+"."+K+"("+this.getRefParam(r.i)+",0,"+this.serialize(r.f)+")"}serializeReadableStreamError(r){return b+"."+K+"("+this.getRefParam(r.i)+",1,"+this.serialize(r.f)+")"}serializeReadableStreamClose(r){return b+"."+K+"("+this.getRefParam(r.i)+",2)"}serializeTop(r){let t=this.serialize(r),n=r.i;if(n==null)return t;let s=this.resolvePatches(),i=this.getRefParam(n),o=this.scopeId==null?"":H,d=s?t+","+s:t;if(o==="")return s?"("+d+i+")":d;let c=this.scopeId==null?"()":"("+H+'["'+l(this.scopeId)+'"])',g=d+(s?i:"");return this.features&4?"("+o+"=>("+g+"))"+c:"(function("+o+"){return "+g+"})"+c}};var Y=class extends y{constructor(r){super(r);this.alive=!0;this.pending=0;this.onParseCallback=r.onParse,this.onErrorCallback=r.onError,this.onDoneCallback=r.onDone}onParse(r,t){this.onParseCallback(r,t)}onError(r){if(this.onErrorCallback)this.onErrorCallback(r);else throw r}onDone(){this.onDoneCallback&&this.onDoneCallback()}push(r){this.onParse(this.parse(r),!1)}pushPendingState(){this.pending++}popPendingState(){--this.pending<=0&&this.onDone()}pushReadableStreamReader(r,t){t.read().then(n=>{if(this.alive)if(n.done)this.onParse({t:33,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0},!1),this.popPendingState();else{let s=this.parseWithError(n.value);s&&(this.onParse({t:32,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:s,b:void 0,o:void 0},!1),this.pushReadableStreamReader(r,t))}},n=>{if(this.alive){let s=this.parseWithError(n);s&&(this.onParse({t:34,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:s,b:void 0,o:void 0},!1),this.popPendingState())}})}parseReadableStream(r,t){let n=t.getReader();return this.pushPendingState(),this.pushReadableStreamReader(r,n),{t:31,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}parseRequest(r,t){return{t:35,i:r,s:l(t.url),l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:this.parse(de(t,t.clone().body)),a:void 0,b:void 0,o:void 0}}parseResponse(r,t){return{t:36,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,f:void 0,a:[t.body?this.parse(t.clone().body):E,this.parse(le(t))],b:void 0,o:void 0}}parsePromise(r,t){return t.then(n=>{let s=this.parseWithError(n);s&&(this.onParse({t:29,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:s,b:void 0,o:void 0},!1),this.popPendingState())},n=>{if(this.alive){let s=this.parseWithError(n);s&&(this.onParse({t:30,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:s,b:void 0,o:void 0},!1),this.popPendingState())}}),this.pushPendingState(),{t:28,i:r,s:void 0,l:void 0,c:void 0,m:void 0,p:void 0,e:void 0,a:void 0,f:void 0,b:void 0,o:void 0}}parsePlugin(r,t){let n=this.plugins;if(n)for(let s=0,i=n.length;s<i;s++){let o=n[s];if(o.parse.stream&&o.test(t))return D(r,o.tag,o.parse.stream(t,this,{id:r}))}}parseObject(r,t){if(Array.isArray(t))return this.parseArray(r,t);let n=t.constructor;switch(n){case Object:return this.parsePlainObject(r,t,!1);case void 0:return this.parsePlainObject(r,t,!0);case Date:return z(r,t);case RegExp:return T(r,t);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return this.parseError(r,t);case Number:case Boolean:case String:case BigInt:return this.parseBoxed(r,t);default:break}let s=this.features;if(s&256&&(n===Promise||t instanceof Promise))return this.parsePromise(r,t);if(s&2048)switch(n){case ArrayBuffer:return B(r,t);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return this.parseTypedArray(r,t);case DataView:return this.parseDataView(r,t);default:break}if((s&4104)===4104)switch(n){case BigInt64Array:case BigUint64Array:return this.parseBigIntTypedArray(r,t);default:break}if(s&32&&n===Map)return this.parseMap(r,t);if(s&512&&n===Set)return this.parseSet(r,t);if(s&8192)switch(n){case(typeof URL!="undefined"?URL:u):return U(r,t);case(typeof URLSearchParams!="undefined"?URLSearchParams:u):return M(r,t);case(typeof Headers!="undefined"?Headers:u):return this.parseHeaders(r,t);case(typeof FormData!="undefined"?FormData:u):return this.parseFormData(r,t);case(typeof ReadableStream!="undefined"?ReadableStream:u):return this.parseReadableStream(r,t);case(typeof Request!="undefined"?Request:u):return this.parseRequest(r,t);case(typeof Response!="undefined"?Response:u):return this.parseResponse(r,t);case(typeof Event!="undefined"?Event:u):return this.parseEvent(r,t);case(typeof CustomEvent!="undefined"?CustomEvent:u):return this.parseCustomEvent(r,t);case(typeof DOMException!="undefined"?DOMException:u):return j(r,t);default:break}let i=this.parsePlugin(r,t);if(i)return i;if(s&1&&typeof AggregateError!="undefined"&&(n===AggregateError||t instanceof AggregateError))return this.parseAggregateError(r,t);if(t instanceof Error)return this.parseError(r,t);if(s&1024&&Symbol.iterator in t)return this.parsePlainObject(r,t,!!n);throw new m(t)}parseWithError(r){try{return this.parse(r)}catch(t){this.onError(t);return}}start(r){let t=this.parseWithError(r);t&&(this.onParse(t,!0),this.pending<=0&&this.destroy())}destroy(){this.alive&&(this.onDone(),this.alive=!1)}isAlive(){return this.alive}};var J=class extends Y{constructor(){super(...arguments);this.mode="cross"}};var Z=class extends y{constructor(){super(...arguments);this.mode="cross"}};function Ar(a,e={}){let r=new Z({plugins:e.plugins,disabledFeatures:e.disabledFeatures,refs:e.refs}),t=r.parse(a);return new C({plugins:e.plugins,features:r.features,scopeId:e.scopeId,markedRefs:r.marked}).serializeTop(t)}async function wr(a,e={}){let r=new X({plugins:e.plugins,disabledFeatures:e.disabledFeatures,refs:e.refs}),t=await r.parse(a);return new C({plugins:e.plugins,features:r.features,scopeId:e.scopeId,markedRefs:r.marked}).serializeTop(t)}function Ie(a,e){let r=new J({refs:e.refs,disabledFeatures:e.disabledFeatures,onParse(t,n){let s=new C({plugins:e.plugins,features:r.features,scopeId:e.scopeId,markedRefs:r.marked}),i;try{i=s.serializeTop(t)}catch(o){e.onError&&e.onError(o);return}e.onSerialize(i,n)},onError:e.onError,onDone:e.onDone});return r.start(a),()=>{r.destroy()}}var Q=class{constructor(e){this.options=e;this.alive=!0;this.flushed=!1;this.done=!1;this.pending=0;this.cleanups=[];this.refs=new Map;this.keys=new Set;this.ids=0}write(e,r){this.alive&&!this.flushed&&(this.pending++,this.keys.add(e),this.cleanups.push(Ie(r,{scopeId:this.options.scopeId,refs:this.refs,disabledFeatures:this.options.disabledFeatures,onError:this.options.onError,onSerialize:(t,n)=>{this.alive&&this.options.onData(n?this.options.globalIdentifier+'["'+l(e)+'"]='+t:t)},onDone:()=>{this.alive&&(this.pending--,this.pending<=0&&this.flushed&&!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0))}})))}getNextID(){for(;this.keys.has(""+this.ids);)this.ids++;return""+this.ids}push(e){let r=this.getNextID();return this.write(r,e),r}flush(){this.alive&&(this.flushed=!0,this.pending<=0&&!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0))}close(){if(this.alive){for(let e=0,r=this.cleanups.length;e<r;e++)this.cleanups[e]();!this.done&&this.options.onDone&&(this.options.onDone(),this.done=!0),this.alive=!1}}};function Pr(a){return a}var Or=Oe;
|