diff --git a/assets/CustomJsonLdSerializer-B2oQjduZ.js b/assets/CustomJsonLdSerializer-DTZy0vPJ.js similarity index 99% rename from assets/CustomJsonLdSerializer-B2oQjduZ.js rename to assets/CustomJsonLdSerializer-DTZy0vPJ.js index ef2530f..3ced4f1 100644 --- a/assets/CustomJsonLdSerializer-B2oQjduZ.js +++ b/assets/CustomJsonLdSerializer-DTZy0vPJ.js @@ -1,2 +1,2 @@ -import{S as hi}from"./index-BOvYCoiN.js";import{a as Ye,e as lt,b as Ie,d as $e,s as bi}from"./main-UPTG37W_.js";var un={exports:{}},vt={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},dn={exports:{}};(function(e){const t=Ie,{kResistStopPropagation:r,SymbolDispose:i}=H,l=globalThis.AbortSignal||Ye().AbortSignal,s=globalThis.AbortController||Ye().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,g=globalThis.Blob||t.Blob,R=typeof g<"u"?function(u){return u instanceof g}:function(u){return!1},h=(c,u)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let b=0;b{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let b=0;b{c=b,u=A}),resolve:c,reject:u}},promisify(c){return new Promise((u,m)=>{c((b,...A)=>b?m(b):u(...A))})},debuglog(){return function(){}},format(c,...u){return c.replace(/%([sdifj])/g,function(...[m,b]){const A=u.shift();return b==="f"?A.toFixed(6):b==="j"?JSON.stringify(A):b==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof d},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:R,deprecate(c,u){return c},addAbortListener:lt.addAbortListener||function(u,m){if(u===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",u);h(u,"signal"),_(m,"listener");let b;return u.aborted?queueMicrotask(()=>m()):(u.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),b=()=>{u.removeEventListener("abort",m)}),{__proto__:null,[i](){var A;(A=b)===null||A===void 0||A()}}},AbortSignalAny:l.any||function(u){if(u.length===1)return u[0];const m=new s,b=()=>m.abort();return u.forEach(A=>{h(A,"signals"),A.addEventListener("abort",b,{once:!0})}),m.signal.addEventListener("abort",()=>{u.forEach(A=>A.removeEventListener("abort",b))},{once:!0}),m.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(dn);var te=dn.exports,er={};const{format:pi,inspect:nt,AggregateError:_i}=te,yi=globalThis.AggregateError||_i,wi=Symbol("kIsNodeError"),gi=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Si=/^([A-Z][a-z0-9]*)+$/,Ei="__node_internal_",at={};function ve(e,t){if(!e)throw new at.ERR_INTERNAL_ASSERTION(t)}function Rr(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ri(e,t,r){if(typeof t=="function")return ve(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return ve(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:pi(t,...r)}function Q(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(Ri(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[wi]=!0,at[e]=i}function Ar(e){const t=Ei+e.name;return Object.defineProperty(e,"name",{value:t}),e}function Ai(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new yi([t,e],t.message);return r.code=t.code,r}return e||t}let mi=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new at.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Q("ERR_ASSERTION","%s",Error);Q("ERR_INVALID_ARG_TYPE",(e,t,r)=>{ve(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const l=[],s=[],d=[];for(const R of t)ve(typeof R=="string","All expected entries have to be of type string"),gi.includes(R)?l.push(R.toLowerCase()):Si.test(R)?s.push(R):(ve(R!=="object",'The value "object" should be written as "Object"'),d.push(R));if(s.length>0){const R=l.indexOf("object");R!==-1&&(l.splice(l,R,1),s.push("Object"))}if(l.length>0){switch(l.length){case 1:i+=`of type ${l[0]}`;break;case 2:i+=`one of type ${l[0]} or ${l[1]}`;break;default:{const R=l.pop();i+=`one of type ${l.join(", ")}, or ${R}`}}(s.length>0||d.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const R=s.pop();i+=`an instance of ${s.join(", ")}, or ${R}`}}d.length>0&&(i+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(i+="an "),i+=`${d[0]}`;break;case 2:i+=`one of ${d[0]} or ${d[1]}`;break;default:{const R=d.pop();i+=`one of ${d.join(", ")}, or ${R}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var g;if((g=r.constructor)!==null&&g!==void 0&&g.name)i+=`. Received an instance of ${r.constructor.name}`;else{const R=nt(r,{depth:-1});i+=`. Received ${R}`}}else{let R=nt(r,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),i+=`. Received type ${typeof r} (${R})`}return i},TypeError);Q("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=nt(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Q("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const l=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${l}.`},TypeError);Q("ERR_MISSING_ARGS",(...e)=>{ve(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Q("ERR_OUT_OF_RANGE",(e,t,r)=>{ve(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Rr(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Rr(i)),i+="n"):i=nt(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Q("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Q("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Q("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Q("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Q("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Q("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Q("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Q("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Q("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Q("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ie={AbortError:mi,aggregateTwoErrors:Ar(Ai),hideStackFrames:Ar,codes:at};const{ArrayIsArray:tr,ArrayPrototypeIncludes:cn,ArrayPrototypeJoin:hn,ArrayPrototypeMap:vi,NumberIsInteger:rr,NumberIsNaN:Ti,NumberMAX_SAFE_INTEGER:Ii,NumberMIN_SAFE_INTEGER:$i,NumberParseInt:Ni,ObjectPrototypeHasOwnProperty:Di,RegExpPrototypeExec:bn,String:Mi,StringPrototypeToUpperCase:ki,StringPrototypeTrim:Pi}=H,{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:Li,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:Fe,ERR_OUT_OF_RANGE:Te,ERR_UNKNOWN_SIGNAL:mr}}=ie,{normalizeEncoding:Oi}=te,{isAsyncFunction:xi,isArrayBufferView:Wi}=te.types,vr={};function Ci(e){return e===(e|0)}function Fi(e){return e===e>>>0}const ji=/^[0-7]+$/,Ui="must be a 32-bit unsigned integer or an octal string";function Bi(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(bn(ji,e)===null)throw new Fe(t,e,Ui);e=Ni(e,8)}return pn(e,t),e}const Gi=ae((e,t,r=$i,i=Ii)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),Vi=ae((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),pn=ae((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);const i=r?1:0,l=4294967295;if(el)throw new Te(t,`>= ${i} && <= ${l}`,e)});function nr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function Hi(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&Ti(e))throw new Te(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const qi=ae((e,t,r)=>{if(!cn(r,e)){const l="must be one of: "+hn(vi(r,s=>typeof s=="string"?`'${s}'`:Mi(s)),", ");throw new Fe(t,e,l)}});function _n(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function Tt(e,t,r){return e==null||!Di(e,t)?r:e[t]}const Yi=ae((e,t,r=null)=>{const i=Tt(r,"allowArray",!1),l=Tt(r,"allowFunction",!1);if(!Tt(r,"nullable",!1)&&e===null||!i&&tr(e)||typeof e!="object"&&(!l||typeof e!="function"))throw new ee(t,"Object",e)}),Ki=ae((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),st=ae((e,t,r=0)=>{if(!tr(e))throw new ee(t,"Array",e);if(e.length{if(!Wi(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function eo(e,t){const r=Oi(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Fe("encoding",t,`is invalid for data of length ${i}`)}function to(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Pi(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Li(t,e,r);return e|0}const yn=ae((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),ro=ae((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),no=ae((e,t)=>{if(typeof e!="function"||xi(e))throw new ee(t,"Function",e)}),io=ae((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function oo(e,t,r){if(!cn(r,e))throw new ee(t,`('${hn(r,"|")}')`,e)}const lo=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Tr(e,t){if(typeof e>"u"||!bn(lo,e))throw new Fe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function ao(e){if(typeof e=="string")return Tr(e,"hints"),e;if(tr(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var Ke={isInt32:Ci,isUint32:Fi,parseFileMode:Bi,validateArray:st,validateStringArray:zi,validateBooleanArray:Ji,validateAbortSignalArray:Xi,validateBoolean:_n,validateBuffer:Zi,validateDictionary:Ki,validateEncoding:eo,validateFunction:ro,validateInt32:Vi,validateInteger:Gi,validateNumber:Hi,validateObject:Yi,validateOneOf:qi,validatePlainFunction:no,validatePort:to,validateSignalName:Qi,validateString:nr,validateUint32:pn,validateUndefined:io,validateUnion:oo,validateAbortSignal:yn,validateLinkHeaderValue:ao},ir={exports:{}};const{SymbolAsyncIterator:Ir,SymbolIterator:$r,SymbolFor:Ne}=H,wn=Ne("nodejs.stream.destroyed"),gn=Ne("nodejs.stream.errored"),Gt=Ne("nodejs.stream.readable"),Vt=Ne("nodejs.stream.writable"),Sn=Ne("nodejs.stream.disturbed"),so=Ne("nodejs.webstream.isClosedPromise"),fo=Ne("nodejs.webstream.controllerErrorFunction");function ft(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function ut(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function uo(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function de(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function En(e){return!!(e&&!de(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Rn(e){return!!(e&&!de(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function An(e){return!!(e&&!de(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function co(e){return En(e)||Rn(e)||An(e)}function ho(e,t){return e==null?!1:t===!0?typeof e[Ir]=="function":t===!1?typeof e[$r]=="function":typeof e[Ir]=="function"||typeof e[$r]=="function"}function dt(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[wn]||i!=null&&i.destroyed)}function mn(e){if(!ut(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function bo(e,t){if(!ut(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function po(e){if(!ft(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function vn(e,t){if(!ft(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Tn(e){return e&&e[Gt]!=null?e[Gt]:typeof(e==null?void 0:e.readable)!="boolean"?null:dt(e)?!1:ft(e)&&e.readable&&!vn(e)}function In(e){return e&&e[Vt]!=null?e[Vt]:typeof(e==null?void 0:e.writable)!="boolean"?null:dt(e)?!1:ut(e)&&e.writable&&!mn(e)}function _o(e,t){return de(e)?dt(e)?!0:!((t==null?void 0:t.readable)!==!1&&Tn(e)||(t==null?void 0:t.writable)!==!1&&In(e)):null}function yo(e){var t,r;return de(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function wo(e){var t,r;return de(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function go(e){if(!de(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&$n(e)?e._closed:null}function $n(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Nn(e){return typeof e._sent100=="boolean"&&$n(e)}function So(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function Eo(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&Nn(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function Ro(e){var t;return!!(e&&((t=e[Sn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function Ao(e){var t,r,i,l,s,d,g,R,h,_;return!!(e&&((t=(r=(i=(l=(s=(d=e[gn])!==null&&d!==void 0?d:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&l!==void 0?l:(g=e._readableState)===null||g===void 0?void 0:g.errorEmitted)!==null&&i!==void 0?i:(R=e._writableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&r!==void 0?r:(h=e._readableState)===null||h===void 0?void 0:h.errored)!==null&&t!==void 0?t:!((_=e._writableState)===null||_===void 0)&&_.errored))}var ye={isDestroyed:dt,kIsDestroyed:wn,isDisturbed:Ro,kIsDisturbed:Sn,isErrored:Ao,kIsErrored:gn,isReadable:Tn,kIsReadable:Gt,kIsClosedPromise:so,kControllerErrorFunction:fo,kIsWritable:Vt,isClosed:go,isDuplexNodeStream:uo,isFinished:_o,isIterable:ho,isReadableNodeStream:ft,isReadableStream:En,isReadableEnded:po,isReadableFinished:vn,isReadableErrored:wo,isNodeStream:de,isWebStream:co,isWritable:In,isWritableNodeStream:ut,isWritableStream:Rn,isWritableEnded:mn,isWritableFinished:bo,isWritableErrored:yo,isServerRequest:So,isServerResponse:Nn,willEmitClose:Eo,isTransformStream:An};const ge=$e,{AbortError:Dn,codes:mo}=ie,{ERR_INVALID_ARG_TYPE:vo,ERR_STREAM_PREMATURE_CLOSE:Nr}=mo,{kEmptyObject:Ht,once:qt}=te,{validateAbortSignal:To,validateFunction:Io,validateObject:$o,validateBoolean:No}=Ke,{Promise:Do,PromisePrototypeThen:Mo,SymbolDispose:Mn}=H,{isClosed:ko,isReadable:Dr,isReadableNodeStream:It,isReadableStream:Po,isReadableFinished:Mr,isReadableErrored:kr,isWritable:Pr,isWritableNodeStream:Lr,isWritableStream:Lo,isWritableFinished:Or,isWritableErrored:xr,isNodeStream:Oo,willEmitClose:xo,kIsClosedPromise:Wo}=ye;let We;function Co(e){return e.setHeader&&typeof e.abort=="function"}const Yt=()=>{};function kn(e,t,r){var i,l;if(arguments.length===2?(r=t,t=Ht):t==null?t=Ht:$o(t,"options"),Io(r,"callback"),To(t.signal,"options.signal"),r=qt(r),Po(e)||Lo(e))return Fo(e,t,r);if(!Oo(e))throw new vo("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:It(e),d=(l=t.writable)!==null&&l!==void 0?l:Lr(e),g=e._writableState,R=e._readableState,h=()=>{e.writable||c()};let _=xo(e)&&It(e)===s&&Lr(e)===d,v=Or(e,!1);const c=()=>{v=!0,e.destroyed&&(_=!1),!(_&&(!e.readable||s))&&(!s||u)&&r.call(e)};let u=Mr(e,!1);const m=()=>{u=!0,e.destroyed&&(_=!1),!(_&&(!e.writable||d))&&(!d||v)&&r.call(e)},b=P=>{r.call(e,P)};let A=ko(e);const k=()=>{A=!0;const P=xr(e)||kr(e);if(P&&typeof P!="boolean")return r.call(e,P);if(s&&!u&&It(e,!0)&&!Mr(e,!1))return r.call(e,new Nr);if(d&&!v&&!Or(e,!1))return r.call(e,new Nr);r.call(e)},M=()=>{A=!0;const P=xr(e)||kr(e);if(P&&typeof P!="boolean")return r.call(e,P);r.call(e)},y=()=>{e.req.on("finish",c)};Co(e)?(e.on("complete",c),_||e.on("abort",k),e.req?y():e.on("request",y)):d&&!g&&(e.on("end",h),e.on("close",h)),!_&&typeof e.aborted=="boolean"&&e.on("aborted",k),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",b),e.on("close",k),A?ge.nextTick(k):g!=null&&g.errorEmitted||R!=null&&R.errorEmitted?_||ge.nextTick(M):(!s&&(!_||Dr(e))&&(v||Pr(e)===!1)||!d&&(!_||Pr(e))&&(u||Dr(e)===!1)||R&&e.req&&e.aborted)&&ge.nextTick(M);const j=()=>{r=Yt,e.removeListener("aborted",k),e.removeListener("complete",c),e.removeListener("abort",k),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",b),e.removeListener("close",k)};if(t.signal&&!A){const P=()=>{const J=r;j(),J.call(e,new Dn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)ge.nextTick(P);else{We=We||te.addAbortListener;const J=We(t.signal,P),oe=r;r=qt((...B)=>{J[Mn](),oe.apply(e,B)})}}return j}function Fo(e,t,r){let i=!1,l=Yt;if(t.signal)if(l=()=>{i=!0,r.call(e,new Dn(void 0,{cause:t.signal.reason}))},t.signal.aborted)ge.nextTick(l);else{We=We||te.addAbortListener;const d=We(t.signal,l),g=r;r=qt((...R)=>{d[Mn](),g.apply(e,R)})}const s=(...d)=>{i||ge.nextTick(()=>r.apply(e,d))};return Mo(e[Wo].promise,s,s),Yt}function jo(e,t){var r;let i=!1;return t===null&&(t=Ht),(r=t)!==null&&r!==void 0&&r.cleanup&&(No(t.cleanup,"cleanup"),i=t.cleanup),new Do((l,s)=>{const d=kn(e,t,g=>{i&&d(),g?s(g):l()})})}ir.exports=kn;ir.exports.finished=jo;var Se=ir.exports;const fe=$e,{aggregateTwoErrors:Uo,codes:{ERR_MULTIPLE_CALLBACK:Bo},AbortError:Go}=ie,{Symbol:Pn}=H,{kIsDestroyed:Vo,isDestroyed:Ho,isFinished:qo,isServerRequest:Yo}=ye,Ln=Pn("kDestroy"),Kt=Pn("kConstruct");function On(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Ko(e,t){const r=this._readableState,i=this._writableState,l=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(On(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),l.constructed?Wr(this,e,t):this.once(Ln,function(s){Wr(this,Uo(s,e),t)}),this)}function Wr(e,t,r){let i=!1;function l(s){if(i)return;i=!0;const d=e._readableState,g=e._writableState;On(s,g,d),g&&(g.closed=!0),d&&(d.closed=!0),typeof r=="function"&&r(s),s?fe.nextTick(zo,e,s):fe.nextTick(xn,e)}try{e._destroy(t||null,l)}catch(s){l(s)}}function zo(e,t){zt(e,t),xn(e)}function xn(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function zt(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Jo(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Jt(e,t,r){const i=e._readableState,l=e._writableState;if(l!=null&&l.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||l!=null&&l.autoDestroy?e.destroy(t):t&&(t.stack,l&&!l.errored&&(l.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(zt,e,t):zt(e,t))}function Xo(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Kt,t),!(e.listenerCount(Kt)>1)&&fe.nextTick(Qo,e)}function Qo(e){let t=!1;function r(i){if(t){Jt(e,i??new Bo);return}t=!0;const l=e._readableState,s=e._writableState,d=s||l;l&&(l.constructed=!0),s&&(s.constructed=!0),d.destroyed?e.emit(Ln,i):i?Jt(e,i,!0):fe.nextTick(Zo,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function Zo(e){e.emit(Kt)}function Cr(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Wn(e){e.emit("close")}function el(e,t){e.emit("error",t),fe.nextTick(Wn,e)}function tl(e,t){!e||Ho(e)||(!t&&!qo(e)&&(t=new Go),Yo(e)?(e.socket=null,e.destroy(t)):Cr(e)?e.abort():Cr(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(el,e,t):fe.nextTick(Wn,e),e.destroyed||(e[Vo]=!0))}var je={construct:Xo,destroyer:tl,destroy:Ko,undestroy:Jo,errorOrDestroy:Jt};const{ArrayIsArray:rl,ObjectSetPrototypeOf:Cn}=H,{EventEmitter:ct}=lt;function ht(e){ct.call(this,e)}Cn(ht.prototype,ct.prototype);Cn(ht,ct);ht.prototype.pipe=function(e,t){const r=this;function i(_){e.writable&&e.write(_)===!1&&r.pause&&r.pause()}r.on("data",i);function l(){r.readable&&r.resume&&r.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",d),r.on("close",g));let s=!1;function d(){s||(s=!0,e.end())}function g(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function R(_){h(),ct.listenerCount(this,"error")===0&&this.emit("error",_)}Xt(r,"error",R),Xt(e,"error",R);function h(){r.removeListener("data",i),e.removeListener("drain",l),r.removeListener("end",d),r.removeListener("close",g),r.removeListener("error",R),e.removeListener("error",R),r.removeListener("end",h),r.removeListener("close",h),e.removeListener("close",h)}return r.on("end",h),r.on("close",h),e.on("close",h),e.emit("pipe",r),e};function Xt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):rl(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var or={Stream:ht,prependListener:Xt},Fn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ie,{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=ye,g=Se,{ERR_INVALID_ARG_TYPE:R}=i;let h;const _=(v,c)=>{if(typeof v!="object"||!("aborted"in v))throw new R(c,"AbortSignal",v)};e.exports.addAbortSignal=function(c,u){if(_(c,"signal"),!l(u)&&!s(u))throw new R("stream",["ReadableStream","WritableStream","Stream"],u);return e.exports.addAbortSignalNoValidate(c,u)},e.exports.addAbortSignalNoValidate=function(v,c){if(typeof v!="object"||!("aborted"in v))return c;const u=l(c)?()=>{c.destroy(new r(void 0,{cause:v.reason}))}:()=>{c[d](new r(void 0,{cause:v.reason}))};if(v.aborted)u();else{h=h||te.addAbortListener;const m=h(v,u);g(c,m[t])}return c}})(Fn);var bt=Fn.exports;const{StringPrototypeSlice:Fr,SymbolIterator:nl,TypedArrayPrototypeSet:Qe,Uint8Array:il}=H,{Buffer:$t}=Ie,{inspect:ol}=te;var ll=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return $t.alloc(0);const r=$t.allocUnsafe(t>>>0);let i=this.head,l=0;for(;i;)Qe(r,i.data,l),l+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(ts.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++l,i.next?this.head=i.next:this.head=this.tail=null):(r+=Fr(s,0,t),this.head=i,i.data=Fr(s,t));break}++l}while((i=i.next)!==null);return this.length-=l,r}_getBuffer(t){const r=$t.allocUnsafe(t),i=t;let l=this.head,s=0;do{const d=l.data;if(t>d.length)Qe(r,d,i-t),t-=d.length;else{t===d.length?(Qe(r,d,i-t),++s,l.next?this.head=l.next:this.head=this.tail=null):(Qe(r,new il(d.buffer,d.byteOffset,t),i-t),this.head=l,l.data=d.slice(t));break}++s}while((l=l.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return ol(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:al,NumberIsInteger:sl}=H,{validateInteger:fl}=Ke,{ERR_INVALID_ARG_VALUE:ul}=ie.codes;let jn=16*1024,Un=16;function dl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Bn(e){return e?Un:jn}function cl(e,t){fl(t,"value",0),e?Un=t:jn=t}function hl(e,t,r,i){const l=dl(t,i,r);if(l!=null){if(!sl(l)||l<0){const s=i?`options.${r}`:"options.highWaterMark";throw new ul(s,l)}return al(l)}return Bn(e.objectMode)}var pt={getHighWaterMark:hl,getDefaultHighWaterMark:Bn,setDefaultHighWaterMark:cl};const jr=$e,{PromisePrototypeThen:bl,SymbolAsyncIterator:Ur,SymbolIterator:Br}=H,{Buffer:pl}=Ie,{ERR_INVALID_ARG_TYPE:_l,ERR_STREAM_NULL_VALUES:yl}=ie.codes;function wl(e,t,r){let i;if(typeof t=="string"||t instanceof pl)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let l;if(t&&t[Ur])l=!0,i=t[Ur]();else if(t&&t[Br])l=!1,i=t[Br]();else throw new _l("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;s._read=function(){d||(d=!0,R())},s._destroy=function(h,_){bl(g(h),()=>jr.nextTick(_,h),v=>jr.nextTick(_,v||h))};async function g(h){const _=h!=null,v=typeof i.throw=="function";if(_&&v){const{value:c,done:u}=await i.throw(h);if(await c,u)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function R(){for(;;){try{const{value:h,done:_}=l?await i.next():i.next();if(_)s.push(null);else{const v=h&&typeof h.then=="function"?await h:h;if(v===null)throw d=!1,new yl;if(s.push(v))continue;d=!1}}catch(h){s.destroy(h)}break}}return s}var Gn=wl,Nt,Gr;function _t(){if(Gr)return Nt;Gr=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:d,ObjectSetPrototypeOf:g,Promise:R,SafeSet:h,SymbolAsyncDispose:_,SymbolAsyncIterator:v,Symbol:c}=H;Nt=D,D.ReadableState=he;const{EventEmitter:u}=lt,{Stream:m,prependListener:b}=or,{Buffer:A}=Ie,{addAbortSignal:k}=bt,M=Se;let y=te.debuglog("stream",n=>{y=n});const j=ll,P=je,{getHighWaterMark:J,getDefaultHighWaterMark:oe}=pt,{aggregateTwoErrors:B,codes:{ERR_INVALID_ARG_TYPE:q,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ne,ERR_STREAM_PUSH_AFTER_EOF:x,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:w},AbortError:W}=ie,{validateObject:L}=Ke,O=c("kPaused"),{StringDecoder:Y}=bi,K=Gn;g(D.prototype,m.prototype),g(D,m);const V=()=>{},{errorOrDestroy:z}=P,C=1,ce=2,N=4,X=8,se=16,ke=32,Pe=64,Le=128,Ue=256,wt=512,Be=1024,Oe=2048,a=4096,f=8192,p=16384,I=32768,$=65536,U=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(o){o?this.state|=n:this.state&=~n}}}s(he.prototype,{objectMode:F(C),ended:F(ce),endEmitted:F(N),reading:F(X),constructed:F(se),sync:F(ke),needReadable:F(Pe),emittedReadable:F(Le),readableListening:F(Ue),resumeScheduled:F(wt),errorEmitted:F(Be),emitClose:F(Oe),autoDestroy:F(a),destroyed:F(f),closed:F(p),closeEmitted:F(I),multiAwaitDrain:F($),readingMore:F(U),dataEmitted:F(G)});function he(n,o,S){typeof S!="boolean"&&(S=o instanceof pe()),this.state=Oe|a|se|ke,n&&n.objectMode&&(this.state|=C),S&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?J(this,n,"readableHighWaterMark",S):oe(!1),this.buffer=new j,this.length=0,this.pipes=[],this.flowing=null,this[O]=null,n&&n.emitClose===!1&&(this.state&=~Oe),n&&n.autoDestroy===!1&&(this.state&=~a),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new Y(n.encoding),this.encoding=n.encoding)}function D(n){if(!(this instanceof D))return new D(n);const o=this instanceof pe();this._readableState=new he(n,this,o),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!o&&k(n.signal,this)),m.call(this,n),P.construct(this,()=>{this._readableState.needReadable&&Xe(this,this._readableState)})}D.prototype.destroy=P.destroy,D.prototype._undestroy=P.undestroy,D.prototype._destroy=function(n,o){o(n)},D.prototype[u.captureRejectionSymbol]=function(n){this.destroy(n)},D.prototype[_]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new W,this.destroy(n)),new R((o,S)=>M(this,E=>E&&E!==n?S(E):o(null)))},D.prototype.push=function(n,o){return we(this,n,o,!1)},D.prototype.unshift=function(n,o){return we(this,n,o,!0)};function we(n,o,S,E){y("readableAddChunk",o);const T=n._readableState;let Z;if(T.state&C||(typeof o=="string"?(S=S||T.defaultEncoding,T.encoding!==S&&(E&&T.encoding?o=A.from(o,S).toString(T.encoding):(o=A.from(o,S),S=""))):o instanceof A?S="":m._isUint8Array(o)?(o=m._uint8ArrayToBuffer(o),S=""):o!=null&&(Z=new q("chunk",["string","Buffer","Uint8Array"],o))),Z)z(n,Z);else if(o===null)T.state&=~X,ni(n,T);else if(T.state&C||o&&o.length>0)if(E)if(T.state&N)z(n,new w);else{if(T.destroyed||T.errored)return!1;gt(n,T,o,!0)}else if(T.ended)z(n,new x);else{if(T.destroyed||T.errored)return!1;T.state&=~X,T.decoder&&!S?(o=T.decoder.write(o),T.objectMode||o.length!==0?gt(n,T,o,!1):Xe(n,T)):gt(n,T,o,!1)}else E||(T.state&=~X,Xe(n,T));return!T.ended&&(T.length0?(o.state&$?o.awaitDrainWriters.clear():o.awaitDrainWriters=null,o.dataEmitted=!0,n.emit("data",S)):(o.length+=o.objectMode?1:S.length,E?o.buffer.unshift(S):o.buffer.push(S),o.state&Pe&&Je(n)),Xe(n,o)}D.prototype.isPaused=function(){const n=this._readableState;return n[O]===!0||n.flowing===!1},D.prototype.setEncoding=function(n){const o=new Y(n);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;const S=this._readableState.buffer;let E="";for(const T of S)E+=o.write(T);return S.clear(),E!==""&&S.push(E),this._readableState.length=E.length,this};const ti=1073741824;function ri(n){if(n>ti)throw new ne("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function dr(n,o){return n<=0||o.length===0&&o.ended?0:o.state&C?1:i(n)?o.flowing&&o.length?o.buffer.first().length:o.length:n<=o.length?n:o.ended?o.length:0}D.prototype.read=function(n){y("read",n),n===void 0?n=NaN:r(n)||(n=l(n,10));const o=this._readableState,S=n;if(n>o.highWaterMark&&(o.highWaterMark=ri(n)),n!==0&&(o.state&=~Le),n===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return y("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?St(this):Je(this),null;if(n=dr(n,o),n===0&&o.ended)return o.length===0&&St(this),null;let E=(o.state&Pe)!==0;if(y("need readable",E),(o.length===0||o.length-n0?T=_r(n,o):T=null,T===null?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.multiAwaitDrain?o.awaitDrainWriters.clear():o.awaitDrainWriters=null),o.length===0&&(o.ended||(o.needReadable=!0),S!==n&&o.ended&&St(this)),T!==null&&!o.errorEmitted&&!o.closeEmitted&&(o.dataEmitted=!0,this.emit("data",T)),T};function ni(n,o){if(y("onEofChunk"),!o.ended){if(o.decoder){const S=o.decoder.end();S&&S.length&&(o.buffer.push(S),o.length+=o.objectMode?1:S.length)}o.ended=!0,o.sync?Je(n):(o.needReadable=!1,o.emittedReadable=!0,cr(n))}}function Je(n){const o=n._readableState;y("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(y("emitReadable",o.flowing),o.emittedReadable=!0,e.nextTick(cr,n))}function cr(n){const o=n._readableState;y("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&!o.errored&&(o.length||o.ended)&&(n.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,br(n)}function Xe(n,o){!o.readingMore&&o.constructed&&(o.readingMore=!0,e.nextTick(ii,n,o))}function ii(n,o){for(;!o.reading&&!o.ended&&(o.length1&&E.pipes.includes(n)&&(y("false write response, pause",E.awaitDrainWriters.size),E.awaitDrainWriters.add(n)),S.pause()),Ee||(Ee=oi(S,n),n.on("drain",Ee))}S.on("data",Er);function Er(Re){y("ondata");const be=n.write(Re);y("dest.write",be),be===!1&&Sr()}function Rt(Re){if(y("onerror",Re),Ge(),n.removeListener("error",Rt),n.listenerCount("error")===0){const be=n._writableState||n._readableState;be&&!be.errorEmitted?z(n,Re):n.emit("error",Re)}}b(n,"error",Rt);function At(){n.removeListener("finish",mt),Ge()}n.once("close",At);function mt(){y("onfinish"),n.removeListener("close",At),Ge()}n.once("finish",mt);function Ge(){y("unpipe"),S.unpipe(n)}return n.emit("pipe",S),n.writableNeedDrain===!0?Sr():E.flowing||(y("pipe resume"),S.resume()),n};function oi(n,o){return function(){const E=n._readableState;E.awaitDrainWriters===o?(y("pipeOnDrain",1),E.awaitDrainWriters=null):E.multiAwaitDrain&&(y("pipeOnDrain",E.awaitDrainWriters.size),E.awaitDrainWriters.delete(o)),(!E.awaitDrainWriters||E.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}D.prototype.unpipe=function(n){const o=this._readableState,S={hasUnpiped:!1};if(o.pipes.length===0)return this;if(!n){const T=o.pipes;o.pipes=[],this.pause();for(let Z=0;Z0,E.flowing!==!1&&this.resume()):n==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,y("on readable",E.length,E.reading),E.length?Je(this):E.reading||e.nextTick(li,this)),S},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(n,o){const S=m.prototype.removeListener.call(this,n,o);return n==="readable"&&e.nextTick(hr,this),S},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(n){const o=m.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(hr,this),o};function hr(n){const o=n._readableState;o.readableListening=n.listenerCount("readable")>0,o.resumeScheduled&&o[O]===!1?o.flowing=!0:n.listenerCount("data")>0?n.resume():o.readableListening||(o.flowing=null)}function li(n){y("readable nexttick read 0"),n.read(0)}D.prototype.resume=function(){const n=this._readableState;return n.flowing||(y("resume"),n.flowing=!n.readableListening,ai(this,n)),n[O]=!1,this};function ai(n,o){o.resumeScheduled||(o.resumeScheduled=!0,e.nextTick(si,n,o))}function si(n,o){y("resume",o.reading),o.reading||n.read(0),o.resumeScheduled=!1,n.emit("resume"),br(n),o.flowing&&!o.reading&&n.read(0)}D.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this};function br(n){const o=n._readableState;for(y("flow",o.flowing);o.flowing&&n.read()!==null;);}D.prototype.wrap=function(n){let o=!1;n.on("data",E=>{!this.push(E)&&n.pause&&(o=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",E=>{z(this,E)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{o&&n.resume&&(o=!1,n.resume())};const S=d(n);for(let E=1;E{T=le?B(T,le):null,S(),S=V});try{for(;;){const le=n.destroyed?null:n.read();if(le!==null)yield le;else{if(T)throw T;if(T===null)return;await new R(E)}}}catch(le){throw T=B(T,le),T}finally{(T||(o==null?void 0:o.destroyOnReturn)!==!1)&&(T===void 0||n._readableState.autoDestroy)?P.destroyer(n,null):(n.off("readable",E),Z())}}s(D.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(n){this._readableState&&(this._readableState.flowing=n)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(he.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(n){this[O]=!!n}}}),D._fromList=_r;function _r(n,o){if(o.length===0)return null;let S;return o.objectMode?S=o.buffer.shift():!n||n>=o.length?(o.decoder?S=o.buffer.join(""):o.buffer.length===1?S=o.buffer.first():S=o.buffer.concat(o.length),o.buffer.clear()):S=o.buffer.consume(n,o.decoder),S}function St(n){const o=n._readableState;y("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,e.nextTick(ui,o,n))}function ui(n,o){if(y("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,o.emit("end"),o.writable&&o.allowHalfOpen===!1)e.nextTick(di,o);else if(n.autoDestroy){const S=o._writableState;(!S||S.autoDestroy&&(S.finished||S.writable===!1))&&o.destroy()}}}function di(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}D.from=function(n,o){return K(D,n,o)};let Et;function yr(){return Et===void 0&&(Et={}),Et}return D.fromWeb=function(n,o){return yr().newStreamReadableFromReadableStream(n,o)},D.toWeb=function(n,o){return yr().newReadableStreamFromStreamReadable(n,o)},D.wrap=function(n,o){var S,E;return new D({objectMode:(S=(E=n.readableObjectMode)!==null&&E!==void 0?E:n.objectMode)!==null&&S!==void 0?S:!0,...o,destroy(T,Z){P.destroyer(n,T),Z(T)}}).wrap(n)},Nt}var Dt,Vr;function lr(){if(Vr)return Dt;Vr=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:g,Symbol:R,SymbolHasInstance:h}=H;Dt=L,L.WritableState=w;const{EventEmitter:_}=lt,v=or.Stream,{Buffer:c}=Ie,u=je,{addAbortSignal:m}=bt,{getHighWaterMark:b,getDefaultHighWaterMark:A}=pt,{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:j,ERR_STREAM_DESTROYED:P,ERR_STREAM_ALREADY_FINISHED:J,ERR_STREAM_NULL_VALUES:oe,ERR_STREAM_WRITE_AFTER_END:B,ERR_UNKNOWN_ENCODING:q}=ie.codes,{errorOrDestroy:re}=u;d(L.prototype,v.prototype),d(L,v);function ne(){}const x=R("kOnFinished");function w(a,f,p){typeof p!="boolean"&&(p=f instanceof pe()),this.objectMode=!!(a&&a.objectMode),p&&(this.objectMode=this.objectMode||!!(a&&a.writableObjectMode)),this.highWaterMark=a?b(this,a,"writableHighWaterMark",p):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const I=!!(a&&a.decodeStrings===!1);this.decodeStrings=!I,this.defaultEncoding=a&&a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=z.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,W(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!a||a.emitClose!==!1,this.autoDestroy=!a||a.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function W(a){a.buffered=[],a.bufferedIndex=0,a.allBuffers=!0,a.allNoop=!0}w.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},l(w.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function L(a){const f=this instanceof pe();if(!f&&!i(L,this))return new L(a);this._writableState=new w(a,this,f),a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final),typeof a.construct=="function"&&(this._construct=a.construct),a.signal&&m(a.signal,this)),v.call(this,a),u.construct(this,()=>{const p=this._writableState;p.writing||X(this,p),Le(this,p)})}l(L,h,{__proto__:null,value:function(a){return i(this,a)?!0:this!==L?!1:a&&a._writableState instanceof w}}),L.prototype.pipe=function(){re(this,new j)};function O(a,f,p,I){const $=a._writableState;if(typeof p=="function")I=p,p=$.defaultEncoding;else{if(!p)p=$.defaultEncoding;else if(p!=="buffer"&&!c.isEncoding(p))throw new q(p);typeof I!="function"&&(I=ne)}if(f===null)throw new oe;if(!$.objectMode)if(typeof f=="string")$.decodeStrings!==!1&&(f=c.from(f,p),p="buffer");else if(f instanceof c)p="buffer";else if(v._isUint8Array(f))f=v._uint8ArrayToBuffer(f),p="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],f);let U;return $.ending?U=new B:$.destroyed&&(U=new P("write")),U?(e.nextTick(I,U),re(a,U,!0),U):($.pendingcb++,Y(a,$,f,p,I))}L.prototype.write=function(a,f,p){return O(this,a,f,p)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){const a=this._writableState;a.corked&&(a.corked--,a.writing||X(this,a))},L.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=g(f)),!c.isEncoding(f))throw new q(f);return this._writableState.defaultEncoding=f,this};function Y(a,f,p,I,$){const U=f.objectMode?1:p.length;f.length+=U;const G=f.lengthp.bufferedIndex&&X(a,p),I?p.afterWriteTickInfo!==null&&p.afterWriteTickInfo.cb===$?p.afterWriteTickInfo.count++:(p.afterWriteTickInfo={count:1,cb:$,stream:a,state:p},e.nextTick(C,p.afterWriteTickInfo)):ce(a,p,1,$))}function C({stream:a,state:f,count:p,cb:I}){return f.afterWriteTickInfo=null,ce(a,f,p,I)}function ce(a,f,p,I){for(!f.ending&&!a.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,a.emit("drain"));p-- >0;)f.pendingcb--,I();f.destroyed&&N(f),Le(a,f)}function N(a){if(a.writing)return;for(let $=a.bufferedIndex;$1&&a._writev){f.pendingcb-=U-1;const F=f.allNoop?ne:D=>{for(let we=G;we256?(p.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}L.prototype._write=function(a,f,p){if(this._writev)this._writev([{chunk:a,encoding:f}],p);else throw new M("_write()")},L.prototype._writev=null,L.prototype.end=function(a,f,p){const I=this._writableState;typeof a=="function"?(p=a,a=null,f=null):typeof f=="function"&&(p=f,f=null);let $;if(a!=null){const U=O(this,a,f);U instanceof r&&($=U)}return I.corked&&(I.corked=1,this.uncork()),$||(!I.errored&&!I.ending?(I.ending=!0,Le(this,I,!0),I.ended=!0):I.finished?$=new J("end"):I.destroyed&&($=new P("end"))),typeof p=="function"&&($||I.finished?e.nextTick(p,$):I[x].push(p)),this};function se(a){return a.ending&&!a.destroyed&&a.constructed&&a.length===0&&!a.errored&&a.buffered.length===0&&!a.finished&&!a.writing&&!a.errorEmitted&&!a.closeEmitted}function ke(a,f){let p=!1;function I($){if(p){re(a,$??y());return}if(p=!0,f.pendingcb--,$){const U=f[x].splice(0);for(let G=0;G{se($)?Ue(I,$):$.pendingcb--},a,f)):se(f)&&(f.pendingcb++,Ue(a,f))))}function Ue(a,f){f.pendingcb--,f.finished=!0;const p=f[x].splice(0);for(let I=0;I{if(N!=null)throw new m("nully","body",N)},N=>{b(C,N)});return C=new q({objectMode:!0,readable:!1,write:Y,final(N){K(async()=>{try{await ce,e.nextTick(N,null)}catch(X){e.nextTick(N,X)}})},destroy:V})}throw new m("Iterable, AsyncIterable or AsyncFunction",W,O)}if(J(w))return x(w.arrayBuffer());if(l(w))return j(q,w,{objectMode:!0,writable:!1});if(h(w==null?void 0:w.readable)&&_(w==null?void 0:w.writable))return q.fromWeb(w);if(typeof(w==null?void 0:w.writable)=="object"||typeof(w==null?void 0:w.readable)=="object"){const O=w!=null&&w.readable?d(w==null?void 0:w.readable)?w==null?void 0:w.readable:x(w.readable):void 0,Y=w!=null&&w.writable?g(w==null?void 0:w.writable)?w==null?void 0:w.writable:x(w.writable):void 0;return ne({readable:O,writable:Y})}const L=w==null?void 0:w.then;if(typeof L=="function"){let O;return B(L,w,Y=>{Y!=null&&O.push(Y),O.push(null)},Y=>{b(O,Y)}),O=new q({objectMode:!0,writable:!1,read(){}})}throw new u(W,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],w)};function re(x){let{promise:w,resolve:W}=y();const L=new oe,O=L.signal;return{value:x(async function*(){for(;;){const K=w;w=null;const{chunk:V,done:z,cb:C}=await K;if(e.nextTick(C),z)return;if(O.aborted)throw new c(void 0,{cause:O.reason});({promise:w,resolve:W}=y()),yield V}}(),{signal:O}),write(K,V,z){const C=W;W=null,C({chunk:K,done:!1,cb:z})},final(K){const V=W;W=null,V({done:!0,cb:K})},destroy(K,V){L.abort(),V(K)}}}function ne(x){const w=x.readable&&typeof x.readable.read!="function"?k.wrap(x.readable):x.readable,W=x.writable;let L=!!r(w),O=!!i(W),Y,K,V,z,C;function ce(N){const X=z;z=null,X?X(N):N&&C.destroy(N)}return C=new q({readableObjectMode:!!(w!=null&&w.readableObjectMode),writableObjectMode:!!(W!=null&&W.writableObjectMode),readable:L,writable:O}),O&&(v(W,N=>{O=!1,N&&b(w,N),ce(N)}),C._write=function(N,X,se){W.write(N,X)?se():Y=se},C._final=function(N){W.end(),K=N},W.on("drain",function(){if(Y){const N=Y;Y=null,N()}}),W.on("finish",function(){if(K){const N=K;K=null,N()}})),L&&(v(w,N=>{L=!1,N&&b(w,N),ce(N)}),w.on("readable",function(){if(V){const N=V;V=null,N()}}),w.on("end",function(){C.push(null)}),C._read=function(){for(;;){const N=w.read();if(N===null){V=C._read;return}if(!C.push(N))return}}),C._destroy=function(N,X){!N&&z!==null&&(N=new c),V=null,Y=null,K=null,z===null?X(N):(z=X,b(W,N),b(w,N))},C}return Mt}var kt,qr;function pe(){if(qr)return kt;qr=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;kt=d;const l=_t(),s=lr();i(d.prototype,l.prototype),i(d,l);{const _=r(s.prototype);for(let v=0;v<_.length;v++){const c=_[v];d.prototype[c]||(d.prototype[c]=s.prototype[c])}}function d(_){if(!(this instanceof d))return new d(_);l.call(this,_),s.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(d.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});let g;function R(){return g===void 0&&(g={}),g}d.fromWeb=function(_,v){return R().newStreamDuplexFromReadableWritablePair(_,v)},d.toWeb=function(_){return R().newReadableWritablePairFromDuplex(_)};let h;return d.from=function(_){return h||(h=gl()),h(_,"body")},kt}const{ObjectSetPrototypeOf:Vn,Symbol:Sl}=H;var Hn=_e;const{ERR_METHOD_NOT_IMPLEMENTED:El}=ie.codes,ar=pe(),{getHighWaterMark:Rl}=pt;Vn(_e.prototype,ar.prototype);Vn(_e,ar);const He=Sl("kCallback");function _e(e){if(!(this instanceof _e))return new _e(e);const t=e?Rl(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),ar.call(this,e),this._readableState.sync=!1,this[He]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Al)}function Qt(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function Al(){this._final!==Qt&&Qt.call(this)}_e.prototype._final=Qt;_e.prototype._transform=function(e,t,r){throw new El("_transform()")};_e.prototype._write=function(e,t,r){const i=this._readableState,l=this._writableState,s=i.length;this._transform(e,t,(d,g)=>{if(d){r(d);return}g!=null&&this.push(g),l.ended||s===i.length||i.length{i=!0});const l=it(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,Nl.destroyer(e,s||new kl("pipe")))},cleanup:l}}function jl(e){return Ol(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Ft(e){if(me(e))return e;if(rt(e))return Ul(e);throw new Zt("val",["Readable","Iterable","AsyncIterable"],e)}async function*Ul(e){Wt||(Wt=_t()),yield*Wt.prototype[Tl].call(e)}async function Ze(e,t,r,{end:i}){let l,s=null;const d=h=>{if(h&&(l=h),s){const _=s;s=null,_()}},g=()=>new vl((h,_)=>{l?_(l):s=()=>{l?_(l):h()}});t.on("drain",d);const R=it(t,{readable:!1},d);try{t.writableNeedDrain&&await g();for await(const h of e)t.write(h)||await g();i&&(t.end(),await g()),r()}catch(h){r(l!==h?Dl(l,h):h)}finally{R(),t.off("drain",d)}}async function jt(e,t,r,{end:i}){xe(t)&&(t=t.writable);const l=t.getWriter();try{for await(const s of e)await l.ready,l.write(s).catch(()=>{});await l.ready,i&&await l.close(),r()}catch(s){try{await l.abort(s),r(s)}catch(d){r(d)}}}function Bl(...e){return Kn(e,$l(jl(e)))}function Kn(e,t,r){if(e.length===1&&ml(e[0])&&(e=e[0]),e.length<2)throw new Ml("streams");const i=new Fl,l=i.signal,s=r==null?void 0:r.signal,d=[];xl(s,"options.signal");function g(){m(new Ll)}Ct=Ct||te.addAbortListener;let R;s&&(R=Ct(s,g));let h,_;const v=[];let c=0;function u(M){m(M,--c===0)}function m(M,y){var j;if(M&&(!h||h.code==="ERR_STREAM_PREMATURE_CLOSE")&&(h=M),!(!h&&!y)){for(;v.length;)v.shift()(h);(j=R)===null||j===void 0||j[Il](),i.abort(),y&&(h||d.forEach(P=>P()),Ve.nextTick(t,h,_))}}let b;for(let M=0;M0,J=j||(r==null?void 0:r.end)!==!1,oe=M===e.length-1;if(Kr(y)){let B=function(q){q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&u(q)};if(J){const{destroy:q,cleanup:re}=zr(y,j,P);v.push(q),Lt(y)&&oe&&d.push(re)}y.on("error",B),Lt(y)&&oe&&d.push(()=>{y.removeListener("error",B)})}if(M===0)if(typeof y=="function"){if(b=y({signal:l}),!me(b))throw new Pt("Iterable, AsyncIterable or Stream","source",b)}else me(y)||rt(y)||xe(y)?b=y:b=Yr.from(y);else if(typeof y=="function"){if(xe(b)){var A;b=Ft((A=b)===null||A===void 0?void 0:A.readable)}else b=Ft(b);if(b=y(b,{signal:l}),j){if(!me(b,!0))throw new Pt("AsyncIterable",`transform[${M-1}]`,b)}else{var k;xt||(xt=Yn);const B=new xt({objectMode:!0}),q=(k=b)===null||k===void 0?void 0:k.then;if(typeof q=="function")c++,q.call(b,x=>{_=x,x!=null&&B.write(x),J&&B.end(),Ve.nextTick(u)},x=>{B.destroy(x),Ve.nextTick(u,x)});else if(me(b,!0))c++,Ze(b,B,u,{end:J});else if(Ot(b)||xe(b)){const x=b.readable||b;c++,Ze(x,B,u,{end:J})}else throw new Pt("AsyncIterable or Promise","destination",b);b=B;const{destroy:re,cleanup:ne}=zr(b,!1,!0);v.push(re),oe&&d.push(ne)}}else if(Kr(y)){if(rt(b)){c+=2;const B=Gl(b,y,u,{end:J});Lt(y)&&oe&&d.push(B)}else if(xe(b)||Ot(b)){const B=b.readable||b;c++,Ze(B,y,u,{end:J})}else if(me(b))c++,Ze(b,y,u,{end:J});else throw new Zt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=y}else if(Wl(y)){if(rt(b))c++,jt(Ft(b),y,u,{end:J});else if(Ot(b)||me(b))c++,jt(b,y,u,{end:J});else if(xe(b))c++,jt(b.readable,y,u,{end:J});else throw new Zt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=y}else b=Yr.from(y)}return(l!=null&&l.aborted||s!=null&&s.aborted)&&Ve.nextTick(g),b}function Gl(e,t,r,{end:i}){let l=!1;if(t.on("close",()=>{l||r(new Pl)}),e.pipe(t,{end:!1}),i){let s=function(){l=!0,t.end()};Cl(e)?Ve.nextTick(s):e.once("end",s)}else r();return it(e,{readable:!0,writable:!1},s=>{const d=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&d&&d.ended&&!d.errored&&!d.errorEmitted?e.once("end",r).once("error",r):r(s)}),it(t,{readable:!1,writable:!0},r)}var fr={pipelineImpl:Kn,pipeline:Bl};const{pipeline:Vl}=fr,et=pe(),{destroyer:Hl}=je,{isNodeStream:tt,isReadable:Jr,isWritable:Xr,isWebStream:Ut,isTransformStream:Ae,isWritableStream:Qr,isReadableStream:Zr}=ye,{AbortError:ql,codes:{ERR_INVALID_ARG_VALUE:en,ERR_MISSING_ARGS:Yl}}=ie,Kl=Se;var zn=function(...t){if(t.length===0)throw new Yl("streams");if(t.length===1)return et.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=et.from(t[0])),typeof t[t.length-1]=="function"){const u=t.length-1;t[u]=et.from(t[u])}for(let u=0;u0&&!(Xr(t[u])||Qr(t[u])||Ae(t[u])))throw new en(`streams[${u}]`,r[u],"must be writable")}let i,l,s,d,g;function R(u){const m=d;d=null,m?m(u):u?g.destroy(u):!c&&!v&&g.destroy()}const h=t[0],_=Vl(t,R),v=!!(Xr(h)||Qr(h)||Ae(h)),c=!!(Jr(_)||Zr(_)||Ae(_));if(g=new et({writableObjectMode:!!(h!=null&&h.writableObjectMode),readableObjectMode:!!(_!=null&&_.readableObjectMode),writable:v,readable:c}),v){if(tt(h))g._write=function(m,b,A){h.write(m,b)?A():i=A},g._final=function(m){h.end(),l=m},h.on("drain",function(){if(i){const m=i;i=null,m()}});else if(Ut(h)){const b=(Ae(h)?h.writable:h).getWriter();g._write=async function(A,k,M){try{await b.ready,b.write(A).catch(()=>{}),M()}catch(y){M(y)}},g._final=async function(A){try{await b.ready,b.close().catch(()=>{}),l=A}catch(k){A(k)}}}const u=Ae(_)?_.readable:_;Kl(u,()=>{if(l){const m=l;l=null,m()}})}if(c){if(tt(_))_.on("readable",function(){if(s){const u=s;s=null,u()}}),_.on("end",function(){g.push(null)}),g._read=function(){for(;;){const u=_.read();if(u===null){s=g._read;return}if(!g.push(u))return}};else if(Ut(_)){const m=(Ae(_)?_.readable:_).getReader();g._read=async function(){for(;;)try{const{value:b,done:A}=await m.read();if(!g.push(b))return;if(A){g.push(null);return}}catch{return}}}}return g._destroy=function(u,m){!u&&d!==null&&(u=new ql),s=null,i=null,l=null,d===null?m(u):(d=m,tt(_)&&Hl(_,u))},g};const zl=globalThis.AbortController||Ye().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jl,ERR_INVALID_ARG_TYPE:ze,ERR_MISSING_ARGS:Xl,ERR_OUT_OF_RANGE:Ql},AbortError:ue}=ie,{validateAbortSignal:De,validateInteger:tn,validateObject:Me}=Ke,Zl=H.Symbol("kWeak"),ea=H.Symbol("kResistStopPropagation"),{finished:ta}=Se,ra=zn,{addAbortSignalNoValidate:na}=bt,{isWritable:ia,isNodeStream:oa}=ye,{deprecate:la}=te,{ArrayPrototypePush:aa,Boolean:sa,MathFloor:rn,Number:fa,NumberIsNaN:ua,Promise:nn,PromiseReject:on,PromiseResolve:da,PromisePrototypeThen:ln,Symbol:Jn}=H,ot=Jn("kEmpty"),an=Jn("kEof");function ca(e,t){if(t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),oa(e)&&!ia(e))throw new Jl("stream",e,"must be writable");const r=ra(this,e);return t!=null&&t.signal&&na(t.signal,r),r}function yt(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=rn(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=rn(t.highWaterMark)),tn(r,"options.concurrency",1),tn(i,"options.highWaterMark",0),i+=r,(async function*(){const s=te.AbortSignalAny([t==null?void 0:t.signal].filter(sa)),d=this,g=[],R={signal:s};let h,_,v=!1,c=0;function u(){v=!0,m()}function m(){c-=1,b()}function b(){_&&!v&&c=i||c>=r)&&await new nn(M=>{_=M})}g.push(an)}catch(k){const M=on(k);ln(M,m,u),g.push(M)}finally{v=!0,h&&(h(),h=null)}}A();try{for(;;){for(;g.length>0;){const k=await g[0];if(k===an)return;if(s.aborted)throw new ue;k!==ot&&(yield k),g.shift(),b()}await new nn(k=>{h=k})}}finally{v=!0,_&&(_(),_=null)}}).call(this)}function ha(e=void 0){return e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const l of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ue({cause:e.signal.reason});yield[r++,l]}}).call(this)}async function Xn(e,t=void 0){for await(const r of ur.call(this,e,t))return!0;return!1}async function ba(e,t=void 0){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);return!await Xn.call(this,async(...r)=>!await e(...r),t)}async function pa(e,t){for await(const r of ur.call(this,e,t))return r}async function _a(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l),ot}for await(const i of yt.call(this,r,t));}function ur(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l)?i:ot}return yt.call(this,r,t)}class ya extends Xl{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function wa(e,t,r){var i;if(typeof e!="function")throw new ze("reducer",["Function","AsyncFunction"],e);r!=null&&Me(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let l=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const h=new ue(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await ta(this.destroy(h)),h}const s=new zl,d=s.signal;if(r!=null&&r.signal){const h={once:!0,[Zl]:this,[ea]:!0};r.signal.addEventListener("abort",()=>s.abort(),h)}let g=!1;try{for await(const h of this){var R;if(g=!0,r!=null&&(R=r.signal)!==null&&R!==void 0&&R.aborted)throw new ue;l?t=await e(t,h,{signal:d}):(t=h,l=!0)}if(!g&&!l)throw new ya}finally{s.abort()}return t}async function ga(e){e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new ue(void 0,{cause:e.signal.reason});aa(t,i)}return t}function Sa(e,t){const r=yt.call(this,e,t);return(async function*(){for await(const l of r)yield*l}).call(this)}function Qn(e){if(e=fa(e),ua(e))return 0;if(e<0)throw new Ql("number",">= 0",e);return e}function Ea(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Qn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;e--<=0&&(yield s)}}).call(this)}function Ra(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Qn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;if(e-- >0&&(yield s),e<=0)return}}).call(this)}er.streamReturningOperators={asIndexedPairs:la(ha,"readable.asIndexedPairs will be removed in a future version."),drop:Ea,filter:ur,flatMap:Sa,map:yt,take:Ra,compose:ca};er.promiseReturningOperators={every:ba,forEach:_a,reduce:wa,toArray:ga,some:Xn,find:pa};var Bt,sn;function Zn(){if(sn)return Bt;sn=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:l}=ye,{pipelineImpl:s}=fr,{finished:d}=Se;ei();function g(...R){return new t((h,_)=>{let v,c;const u=R[R.length-1];if(u&&typeof u=="object"&&!i(u)&&!r(u)&&!l(u)){const m=e(R);v=m.signal,c=m.end}s(R,(m,b)=>{m?_(m):h(b)},{signal:v,end:c})})}return Bt={finished:d,pipeline:g},Bt}var fn;function ei(){if(fn)return vt.exports;fn=1;const{Buffer:e}=Ie,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:l}}=te,{streamReturningOperators:s,promiseReturningOperators:d}=er,{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=ie,R=zn,{setDefaultHighWaterMark:h,getDefaultHighWaterMark:_}=pt,{pipeline:v}=fr,{destroyer:c}=je,u=Se,m=Zn(),b=ye,A=vt.exports=or.Stream;A.isDestroyed=b.isDestroyed,A.isDisturbed=b.isDisturbed,A.isErrored=b.isErrored,A.isReadable=b.isReadable,A.isWritable=b.isWritable,A.Readable=_t();for(const M of r(s)){let j=function(...P){if(new.target)throw g();return A.Readable.from(i(y,this,P))};const y=s[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(const M of r(d)){let j=function(...P){if(new.target)throw g();return i(y,this,P)};const y=d[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}A.Writable=lr(),A.Duplex=pe(),A.Transform=Hn,A.PassThrough=Yn,A.pipeline=v;const{addAbortSignal:k}=bt;return A.addAbortSignal=k,A.finished=u,A.destroy=c,A.compose=R,A.setDefaultHighWaterMark=h,A.getDefaultHighWaterMark=_,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),t(v,l,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),t(u,l,{__proto__:null,enumerable:!0,get(){return m.finished}}),A.Stream=A,A._isUint8Array=function(y){return y instanceof Uint8Array},A._uint8ArrayToBuffer=function(y){return e.from(y.buffer,y.byteOffset,y.byteLength)},vt.exports}(function(e){const t=ei(),r=Zn(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(un);var Aa=un.exports;class ma{constructor(t){this.stream=t,this.array=[]}push(t){this.array.push(t)}end(){this.stream.push(this.array),this.stream.push(null)}}class va{constructor(t){this.stream=t,this.first=!0,this.stream.push("[")}push(t){this.first?this.first=!1:this.stream.push(","),this.stream.push(JSON.stringify(t))}end(){this.stream.push("]"),this.stream.push(null)}}class qe extends Aa.Readable{constructor(t,{encoding:r="object"}={}){if(super({objectMode:!0,read:()=>{}}),r==="object"&&(this.encoder=new ma(this)),r==="string"&&(this.encoder=new va(this)),!this.encoder)throw new Error(`unknown encoding: ${r}`);t.on("data",i=>{const l={};let s=l;i.graph.termType!=="DefaultGraph"&&(l["@id"]=i.graph.value,l["@graph"]={},s=l["@graph"]),s["@id"]=qe.subjectValue(i.subject),i.predicate.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?s["@type"]=qe.subjectValue(i.object):s[i.predicate.value]=qe.objectValue(i.object),this.encoder.push(l)}),t.on("end",()=>this.encoder.end()),t.on("error",i=>this.emit("error",i))}static subjectValue(t){return t.termType==="BlankNode"?"_:"+t.value:t.value}static objectValue(t){return t.termType==="NamedNode"?{"@id":t.value}:t.termType==="BlankNode"?{"@id":"_:"+t.value}:t.language?{"@language":t.language,"@value":t.value}:t.datatype&&t.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?{"@type":t.datatype.value,"@value":t.value}:t.value}}class Ta extends hi{constructor(t){super(qe,t)}}class Ma extends Ta{constructor({...t}={}){super({encoding:"string",...t})}}export{Ma as default}; diff --git a/assets/CustomRdfXmlParser-j_ZzoDnu.js b/assets/CustomRdfXmlParser-BnFBQjMk.js similarity index 99% rename from assets/CustomRdfXmlParser-j_ZzoDnu.js rename to assets/CustomRdfXmlParser-BnFBQjMk.js index 29fedeb..d723cbe 100644 --- a/assets/CustomRdfXmlParser-j_ZzoDnu.js +++ b/assets/CustomRdfXmlParser-BnFBQjMk.js @@ -1,4 +1,4 @@ -import{a as pt,e as Pt,b as je,d as Be,s as vo,c as ve}from"./main-UPTG37W_.js";import{r as Co,a as Io}from"./index-BlwBIAJx.js";var pn={},tt={},it={},_n={};(function(t){/** +import{a as pt,e as Pt,b as je,d as Be,s as vo,c as ve}from"./main-CO-45Vwa.js";import{r as Co,a as Io}from"./index-keipGPtm.js";var pn={},tt={},it={},_n={};(function(t){/** * Character classes and associated utilities for the 5th edition of XML 1.0. * * @author Louis-Dominique Dubeau diff --git a/assets/N3StreamParser-BYVXsYqX.js b/assets/N3StreamParser-Bkfk54FL.js similarity index 99% rename from assets/N3StreamParser-BYVXsYqX.js rename to assets/N3StreamParser-Bkfk54FL.js index 44acefa..2ef0986 100644 --- a/assets/N3StreamParser-BYVXsYqX.js +++ b/assets/N3StreamParser-Bkfk54FL.js @@ -1,3 +1,3 @@ -import{g as Fn,b as Ee,a as et,e as gt,d as $e,s as Wn}from"./main-UPTG37W_.js";/*! queue-microtask. MIT License. Feross Aboukhadijeh */let Mr;var Bn=typeof queueMicrotask=="function"?queueMicrotask.bind(window):e=>(Mr||(Mr=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0));const Un=Fn(Bn),Ye="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Ke="http://www.w3.org/2001/XMLSchema#",Mt="http://www.w3.org/2000/10/swap/",ue={xsd:{decimal:`${Ke}decimal`,boolean:`${Ke}boolean`,double:`${Ke}double`,integer:`${Ke}integer`,string:`${Ke}string`},rdf:{type:`${Ye}type`,nil:`${Ye}nil`,first:`${Ye}first`,rest:`${Ye}rest`,langString:`${Ye}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Mt}reify#forSome`,forAll:`${Mt}reify#forAll`},log:{implies:`${Mt}log#implies`}},{xsd:at}=ue,Gn=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Or={"\\":"\\","'":"'",'"':'"',n:` +import{g as Fn,b as Ee,a as et,e as gt,d as $e,s as Wn}from"./main-CO-45Vwa.js";/*! queue-microtask. MIT License. Feross Aboukhadijeh */let Mr;var Bn=typeof queueMicrotask=="function"?queueMicrotask.bind(window):e=>(Mr||(Mr=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0));const Un=Fn(Bn),Ye="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Ke="http://www.w3.org/2001/XMLSchema#",Mt="http://www.w3.org/2000/10/swap/",ue={xsd:{decimal:`${Ke}decimal`,boolean:`${Ke}boolean`,double:`${Ke}double`,integer:`${Ke}integer`,string:`${Ke}string`},rdf:{type:`${Ye}type`,nil:`${Ye}nil`,first:`${Ye}first`,rest:`${Ye}rest`,langString:`${Ye}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Mt}reify#forSome`,forAll:`${Mt}reify#forAll`},log:{implies:`${Mt}log#implies`}},{xsd:at}=ue,Gn=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Or={"\\":"\\","'":"'",'"':'"',n:` `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},qn=/[\x00-\x20<>\\"\{\}\|\^\`]/,Hn={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Vn=/$0^/;class zn{constructor(t){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,t=t||{},this._lineMode=!!t.lineMode){this._n3Mode=!1;for(const r in this)!(r in Hn)&&this[r]instanceof RegExp&&(this[r]=Vn)}else this._n3Mode=t.n3!==!1;this.comments=!!t.comments,this._literalClosingPos=0}_tokenizeToEnd(t,r){let i=this._input,a=i.length;for(;;){let d,y;for(;d=this._newline.exec(i);)this.comments&&(y=this._comment.exec(d[0]))&&o("comment",y[1],"",this._line,d[0].length),i=i.substr(d[0].length,i.length),a=i.length,this._line++;if(!d&&(d=this._whitespace.exec(i))&&(i=i.substr(d[0].length,i.length)),this._endOfFile.test(i))return r&&(this.comments&&(y=this._comment.exec(i))&&o("comment",y[1],"",this._line,i.length),i=null,o("eof","","",this._line,0)),this._input=i;const _=this._line,g=i[0];let w="",c="",h="",p=null,b=0,A=!1;switch(g){case"^":if(i.length<3)break;if(i[1]==="^"){if(this._previousMarker="^^",i=i.substr(2),i[0]!=="<"){A=!0;break}}else{this._n3Mode&&(b=1,w="^");break}case"<":if(p=this._unescapedIri.exec(i))w="IRI",c=p[1];else if(p=this._iri.exec(i)){if(c=this._unescape(p[1]),c===null||qn.test(c))return l(this);w="IRI"}else i.length>1&&i[1]==="<"?(w="<<",b=2):this._n3Mode&&i.length>1&&i[1]==="="&&(w="inverse",b=2,c=">");break;case">":i.length>1&&i[1]===">"&&(w=">>",b=2);break;case"_":((p=this._blank.exec(i))||r&&(p=this._blank.exec(`${i} `)))&&(w="blank",h="_",c=p[1]);break;case'"':if(p=this._simpleQuotedString.exec(i))c=p[1];else if({value:c,matchLength:b}=this._parseLiteral(i),c===null)return l(this);(p!==null||b!==0)&&(w="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(p=this._simpleApostropheString.exec(i))c=p[1];else if({value:c,matchLength:b}=this._parseLiteral(i),c===null)return l(this);(p!==null||b!==0)&&(w="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(p=this._variable.exec(i))&&(w="var",c=p[0]);break;case"@":this._previousMarker==="literal"&&(p=this._langcode.exec(i))?(w="langcode",c=p[1]):(p=this._keyword.exec(i))&&(w=p[0]);break;case".":if(i.length===1?r:i[1]<"0"||i[1]>"9"){w=".",b=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(p=this._number.exec(i)||r&&(p=this._number.exec(`${i} `)))&&(w="literal",c=p[0],h=typeof p[1]=="string"?at.double:typeof p[2]=="string"?at.decimal:at.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(p=this._sparqlKeyword.exec(i))?w=p[0].toUpperCase():A=!0;break;case"f":case"t":(p=this._boolean.exec(i))?(w="literal",c=p[0],h=at.boolean):A=!0;break;case"a":(p=this._shortPredicates.exec(i))?(w="abbreviation",c="a"):A=!0;break;case"=":this._n3Mode&&i.length>1&&(w="abbreviation",i[1]!==">"?(b=1,c="="):(b=2,c=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(b=1,w=g);break;case"{":!this._lineMode&&i.length>=2&&(i[1]==="|"?(w="{|",b=2):(w=g,b=1));break;case"|":i.length>=2&&i[1]==="}"&&(w="|}",b=2);break;default:A=!0}if(A&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(p=this._prefix.exec(i))?(w="prefix",c=p[1]||""):((p=this._prefixed.exec(i))||r&&(p=this._prefixed.exec(`${i} `)))&&(w="prefixed",h=p[1]||"",c=this._unescape(p[2]))),this._previousMarker==="^^")switch(w){case"prefixed":w="type";break;case"IRI":w="typeIRI";break;default:w=""}if(!w)return r||!/^'''|^"""/.test(i)&&/\n|\r/.test(i)?l(this):this._input=i;const $=b||p[0].length,N=o(w,c,h,_,$);this.previousToken=N,this._previousMarker=w,i=i.substr($,i.length)}function o(d,y,_,g,w){const c=i?a-i.length:a,h=c+w,p={type:d,value:y,prefix:_,line:g,start:c,end:h};return t(null,p),p}function l(d){t(d._syntaxError(/^\S*/.exec(i)[0]))}}_unescape(t){let r=!1;const i=t.replace(Gn,(a,o,l,d)=>{if(typeof o=="string")return String.fromCharCode(Number.parseInt(o,16));if(typeof l=="string"){let y=Number.parseInt(l,16);return y<=65535?String.fromCharCode(Number.parseInt(l,16)):String.fromCharCode(55296+((y-=65536)>>10),56320+(y&1023))}return d in Or?Or[d]:(r=!0,"")});return r?null:i}_parseLiteral(t){if(t.length>=3){const r=t.match(/^(?:"""|"|'''|'|)/)[0],i=r.length;let a=Math.max(this._literalClosingPos,i);for(;(a=t.indexOf(r,a))>0;){let o=0;for(;t[a-o-1]==="\\";)o++;if(o%2===0){const l=t.substring(i,a),d=l.split(/\r\n|\r|\n/).length-1,y=a+i;if(i===1&&d!==0||i===3&&this._lineMode)break;return this._line+=d,{value:this._unescape(l),matchLength:y}}a++}this._literalClosingPos=t.length-i+1}return{value:"",matchLength:0}}_syntaxError(t){this._input=null;const r=new Error(`Unexpected "${t}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(t){return t.startsWith("\uFEFF")?t.substr(1):t}tokenize(t,r){if(this._line=1,typeof t=="string")if(this._input=this._readStartingBom(t),typeof r=="function")Un(()=>this._tokenizeToEnd(r,!0));else{const i=[];let a;if(this._tokenizeToEnd((o,l)=>o?a=o:i.push(l),!0),a)throw a;return i}else this._pendingBuffer=null,typeof t.setEncoding=="function"&&t.setEncoding("utf8"),t.on("data",i=>{this._input!==null&&i.length!==0&&(this._pendingBuffer&&(i=Ee.Buffer.concat([this._pendingBuffer,i]),this._pendingBuffer=null),i[i.length-1]&128?this._pendingBuffer=i:(typeof this._input>"u"?this._input=this._readStartingBom(typeof i=="string"?i:i.toString()):this._input+=i,this._tokenizeToEnd(r,!1)))}),t.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),t.on("error",r)}}const{rdf:Qn,xsd:Ie}=ue;let Ge,Yn=0;const tr={namedNode:Ii,blankNode:Ni,variable:$i,literal:Pi,defaultGraph:Xn,quad:rr,triple:rr,fromTerm:Je,fromQuad:ki};class ce{constructor(t){this.id=t}get value(){return this.id}equals(t){return t instanceof ce?this.id===t.id:!!t&&this.termType===t.termType&&this.value===t.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class vi extends ce{get termType(){return"NamedNode"}}class We extends ce{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const t=this.id;let r=t.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===Ie.string?new We(`"${e}"`):new We(`"${e}"^^${r}`)}function $i(e){return new Jn(e)}function Xn(){return Ge}function rr(e,t,r,i){return new Ti(e,t,r,i)}function Je(e){if(e instanceof ce)return e;switch(e.termType){case"NamedNode":return Ii(e.value);case"BlankNode":return Ni(e.value);case"Variable":return $i(e.value);case"DefaultGraph":return Ge;case"Literal":return Pi(e.value,e.language||e.datatype);case"Quad":return ki(e);default:throw new Error(`Unexpected termType: ${e.termType}`)}}function ki(e){if(e instanceof Ti)return e;if(e.termType!=="Quad")throw new Error(`Unexpected termType: ${e.termType}`);return rr(Je(e.subject),Je(e.predicate),Je(e.object),Je(e.graph))}let Cr=0;class Di{constructor(t){this._contextStack=[],this._graph=null,t=t||{},this._setBase(t.baseIRI),t.factory&&ji(this,t.factory);const r=typeof t.format=="string"?t.format.match(/\w*$/)[0].toLowerCase():"",i=/turtle/.test(r),a=/trig/.test(r),o=/triple/.test(r),l=/quad/.test(r),d=this._n3Mode=/n3/.test(r),y=o||l;(this._supportsNamedGraphs=!(i||d))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(i||a||o||d),this._supportsRDFStar=r===""||/star|\*$/.test(r),y&&(this._resolveRelativeIRI=_=>null),this._blankNodePrefix=typeof t.blankNodePrefix!="string"?"":t.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=t.lexer||new zn({lineMode:y,n3:d}),this._explicitQuantifiers=!!t.explicitQuantifiers}static _resetBlankNodePrefix(){Cr=0}_setBase(t){if(!t)this._base="",this._basePath="";else{const r=t.indexOf("#");r>=0&&(t=t.substr(0,r)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}}_saveContext(t,r,i,a,o){const l=this._n3Mode;this._contextStack.push({type:t,subject:i,predicate:a,object:o,graph:r,inverse:l?this._inversePredicate:!1,blankPrefix:l?this._prefixes._:"",quantified:l?this._quantified:null}),l&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(t,r){const i=this._contextStack.pop();if(!i||i.type!==t)return this._error(`Unexpected ${r.type}`,r);this._subject=i.subject,this._predicate=i.predicate,this._object=i.object,this._graph=i.graph,this._n3Mode&&(this._inversePredicate=i.inverse,this._prefixes._=i.blankPrefix,this._quantified=i.quantified)}_readInTopContext(t){switch(t.type){case"eof":return this._graph!==null?this._error("Unclosed graph",t):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(t)}}_readEntity(t,r){let i;switch(t.type){case"IRI":case"typeIRI":const a=this._resolveIRI(t.value);if(a===null)return this._error("Invalid IRI",t);i=this._factory.namedNode(a);break;case"type":case"prefixed":const o=this._prefixes[t.prefix];if(o===void 0)return this._error(`Undefined prefix "${t.prefix}:"`,t);i=this._factory.namedNode(o+t.value);break;case"blank":i=this._factory.blankNode(this._prefixes[t.prefix]+t.value);break;case"var":i=this._factory.variable(t.value.substr(1));break;default:return this._error(`Expected entity but got ${t.type}`,t)}return!r&&this._n3Mode&&i.id in this._quantified&&(i=this._quantified[i.id]),i}_readSubject(t){switch(this._predicate=null,t.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(t.prefix.length===0)return this._literalValue=t.value,this._completeSubjectLiteral;this._subject=this._factory.literal(t.value,this._factory.namedNode(t.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if((this._subject=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(t){const r=t.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,t):(this._subject=null,r==="]"?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",t);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",t);default:if((this._predicate=this._readEntity(t))===void 0)return}return this._readObject}_readObject(t){switch(t.type){case"literal":if(t.prefix.length===0)return this._literalValue=t.value,this._readDataTypeOrLang;this._object=this._factory.literal(t.value,this._factory.namedNode(t.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",t);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if((this._object=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(t){return t.type==="{"?this._readGraph(t):this._readPredicate(t)}_readGraph(t){return t.type!=="{"?this._error(`Expected graph but got ${t.type}`,t):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(t){return t.type==="]"?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))}_readBlankNodeTail(t){if(t.type!=="]")return this._readBlankNodePunctuation(t);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",t),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}_readListItem(t){let r=null,i=null,a=this._readListItem;const o=this._subject,l=this._contextStack,d=l[l.length-1];switch(t.type){case"[":this._saveContext("blank",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this._subject=r=this._factory.blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",t),l.length!==0&&l[l.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;i=this.RDF_NIL;break;case"literal":t.prefix.length===0?(this._literalValue=t.value,a=this._readListItemDataTypeOrLang):(r=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",t);default:if((r=this._readEntity(t))===void 0)return}if(i===null&&(this._subject=i=this._factory.blankNode()),o===null?d.predicate===null?d.subject=i:d.object=i:this._emit(o,this.RDF_REST,i,this._graph),r!==null){if(this._n3Mode&&(t.type==="IRI"||t.type==="prefixed"))return this._saveContext("item",this._graph,i,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(i,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(t){return this._completeObjectLiteral(t,!1)}_readListItemDataTypeOrLang(t){return this._completeObjectLiteral(t,!0)}_completeLiteral(t){let r=this._factory.literal(this._literalValue);switch(t.type){case"type":case"typeIRI":const i=this._readEntity(t);if(i===void 0)return;r=this._factory.literal(this._literalValue,i),t=null;break;case"langcode":r=this._factory.literal(this._literalValue,t.value),t=null;break}return{token:t,literal:r}}_completeSubjectLiteral(t){return this._subject=this._completeLiteral(t).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(t,r){const i=this._completeLiteral(t);if(i)return this._object=i.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),i.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(i.token))}_readFormulaTail(t){return t.type!=="}"?this._readPunctuation(t):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",t),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(t){let r,i=this._graph;const a=this._subject,o=this._inversePredicate;switch(t.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,o&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",t);const l=this._predicate,d=this._object;this._subject=this._factory.quad(a,l,d,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",t);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(i=this._readEntity(t))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}if(a!==null){const l=this._predicate,d=this._object;o?this._emit(d,l,a,i):this._emit(a,l,d,i)}return r}_readBlankNodePunctuation(t){let r;switch(t.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(t){return t.type!=="."?this._error("Expected dot to follow quad",t):this._readInTopContext}_readPrefix(t){return t.type!=="prefix"?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}_readPrefixIRI(t){if(t.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,t);const r=this._readEntity(t);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(t){const r=t.type==="IRI"&&this._resolveIRI(t.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}_readNamedGraphLabel(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}_readNamedGraphBlankLabel(t){return t.type!=="]"?this._error("Invalid graph label",t):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(t){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(t)):t.type!=="."?this._error("Expected declaration to end with a dot",t):this._readInTopContext}_readQuantifierList(t){let r;switch(t.type){case"IRI":case"prefixed":if((r=this._readEntity(t,!0))!==void 0)break;default:return this._error(`Unexpected ${t.type}`,t)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(t){return t.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(t))}_getPathReader(t){return this._afterPath=t,this._readPath}_readPath(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,i=r.length&&r[r.length-1];if(i&&i.type==="item"){const a=this._subject;this._restoreContext("item",t),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(t)}}_readForwardPath(t){let r,i;const a=this._factory.blankNode();if((i=this._readEntity(t))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,i,a,this._graph),this._readPath}_readBackwardPath(t){const r=this._factory.blankNode();let i,a;if((i=this._readEntity(t))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,i,a,this._graph),this._readPath}_readRDFStarTailOrGraph(t){return t.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(t))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,t):this._readRDFStarTail(t)}_readRDFStarTail(t){if(t.type!==">>")return this._error(`Expected >> but got ${t.type}`,t);const r=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",t),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(t,r,i,a){this._callback(null,this._factory.quad(t,r,i,a||this.DEFAULTGRAPH))}_error(t,r){const i=new Error(`${t} on line ${r.line}.`);i.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(i),this._callback=lt}_resolveIRI(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}_resolveRelativeIRI(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return(t[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}_removeDotSegments(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;const r=t.length;let i="",a=-1,o=-1,l=0,d="/";for(;a=o&&(i=i.substr(0,l)),d!=="/")return`${i}/${t.substr(a+1)}`;l=a+1}}}d=t[++a]}return i+t.substring(l)}parse(t,r,i){let a,o,l;if(r&&(r.onQuad||r.onPrefix||r.onComment)?(a=r.onQuad,o=r.onPrefix,l=r.onComment):(a=r,o=i),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${Cr++}_`,this._prefixCallback=o||lt,this._inversePredicate=!1,this._quantified=Object.create(null),!a){const y=[];let _;if(this._callback=(g,w)=>{g?_=g:w&&y.push(w)},this._lexer.tokenize(t).every(g=>this._readCallback=this._readCallback(g)),_)throw _;return y}let d=(y,_)=>{y!==null?(this._callback(y),this._callback=lt):this._readCallback&&(this._readCallback=this._readCallback(_))};l&&(this._lexer.comments=!0,d=(y,_)=>{y!==null?(this._callback(y),this._callback=lt):this._readCallback&&(_.type==="comment"?l(_.value):this._readCallback=this._readCallback(_))}),this._callback=a,this._lexer.tokenize(t,d)}}function lt(){}function ji(e,t){e._factory=t,e.DEFAULTGRAPH=t.defaultGraph(),e.RDF_FIRST=t.namedNode(ue.rdf.first),e.RDF_REST=t.namedNode(ue.rdf.rest),e.RDF_NIL=t.namedNode(ue.rdf.nil),e.N3_FORALL=t.namedNode(ue.r.forAll),e.N3_FORSOME=t.namedNode(ue.r.forSome),e.ABBREVIATIONS={a:t.namedNode(ue.rdf.type),"=":t.namedNode(ue.owl.sameAs),">":t.namedNode(ue.log.implies)},e.QUANTIFIERS_GRAPH=t.namedNode("urn:n3:quantifiers")}ji(Di.prototype,tr);var Li={exports:{}},Ot={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Mi={exports:{}};(function(e){const t=Ee,{kResistStopPropagation:r,SymbolDispose:i}=H,a=globalThis.AbortSignal||et().AbortSignal,o=globalThis.AbortController||et().AbortController,l=Object.getPrototypeOf(async function(){}).constructor,d=globalThis.Blob||t.Blob,y=typeof d<"u"?function(h){return h instanceof d}:function(h){return!1},_=(c,h)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(h,"AbortSignal",c)},g=(c,h)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(h,"Function",c)};class w extends Error{constructor(h){if(!Array.isArray(h))throw new TypeError(`Expected input to be an Array, got ${typeof h}`);let p="";for(let b=0;b{c=b,h=A}),resolve:c,reject:h}},promisify(c){return new Promise((h,p)=>{c((b,...A)=>b?p(b):h(...A))})},debuglog(){return function(){}},format(c,...h){return c.replace(/%([sdifj])/g,function(...[p,b]){const A=h.shift();return b==="f"?A.toFixed(6):b==="j"?JSON.stringify(A):b==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof l},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:y,deprecate(c,h){return c},addAbortListener:gt.addAbortListener||function(h,p){if(h===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",h);_(h,"signal"),g(p,"listener");let b;return h.aborted?queueMicrotask(()=>p()):(h.addEventListener("abort",p,{__proto__:null,once:!0,[r]:!0}),b=()=>{h.removeEventListener("abort",p)}),{__proto__:null,[i](){var A;(A=b)===null||A===void 0||A()}}},AbortSignalAny:a.any||function(h){if(h.length===1)return h[0];const p=new o,b=()=>p.abort();return h.forEach(A=>{_(A,"signals"),A.addEventListener("abort",b,{once:!0})}),p.signal.addEventListener("abort",()=>{h.forEach(A=>A.removeEventListener("abort",b))},{once:!0}),p.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Mi);var te=Mi.exports,_r={};const{format:ea,inspect:_t,AggregateError:ta}=te,ra=globalThis.AggregateError||ta,ia=Symbol("kIsNodeError"),na=["string","function","number","object","Function","Object","boolean","bigint","symbol"],aa=/^([A-Z][a-z0-9]*)+$/,sa="__node_internal_",yt={};function Ne(e,t){if(!e)throw new yt.ERR_INTERNAL_ASSERTION(t)}function Fr(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function oa(e,t,r){if(typeof t=="function")return Ne(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return Ne(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:ea(t,...r)}function Z(e,t,r){r||(r=Error);class i extends r{constructor(...o){super(oa(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[ia]=!0,yt[e]=i}function Wr(e){const t=sa+e.name;return Object.defineProperty(e,"name",{value:t}),e}function la(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new ra([t,e],t.message);return r.code=t.code,r}return e||t}let ua=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new yt.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Z("ERR_ASSERTION","%s",Error);Z("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ne(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const a=[],o=[],l=[];for(const y of t)Ne(typeof y=="string","All expected entries have to be of type string"),na.includes(y)?a.push(y.toLowerCase()):aa.test(y)?o.push(y):(Ne(y!=="object",'The value "object" should be written as "Object"'),l.push(y));if(o.length>0){const y=a.indexOf("object");y!==-1&&(a.splice(a,y,1),o.push("Object"))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{const y=a.pop();i+=`one of type ${a.join(", ")}, or ${y}`}}(o.length>0||l.length>0)&&(i+=" or ")}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const y=o.pop();i+=`an instance of ${o.join(", ")}, or ${y}`}}l.length>0&&(i+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+="an "),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{const y=l.pop();i+=`one of ${l.join(", ")}, or ${y}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var d;if((d=r.constructor)!==null&&d!==void 0&&d.name)i+=`. Received an instance of ${r.constructor.name}`;else{const y=_t(r,{depth:-1});i+=`. Received ${y}`}}else{let y=_t(r,{colors:!1});y.length>25&&(y=`${y.slice(0,25)}...`),i+=`. Received type ${typeof r} (${y})`}return i},TypeError);Z("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=_t(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Z("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const a=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${a}.`},TypeError);Z("ERR_MISSING_ARGS",(...e)=>{Ne(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Z("ERR_OUT_OF_RANGE",(e,t,r)=>{Ne(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Fr(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Fr(i)),i+="n"):i=_t(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Z("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ne={AbortError:ua,aggregateTwoErrors:Wr(la),hideStackFrames:Wr,codes:yt};const{ArrayIsArray:br,ArrayPrototypeIncludes:Oi,ArrayPrototypeJoin:Ci,ArrayPrototypeMap:fa,NumberIsInteger:pr,NumberIsNaN:da,NumberMAX_SAFE_INTEGER:ca,NumberMIN_SAFE_INTEGER:ha,NumberParseInt:_a,ObjectPrototypeHasOwnProperty:ba,RegExpPrototypeExec:Fi,String:pa,StringPrototypeToUpperCase:ga,StringPrototypeTrim:ya}=H,{hideStackFrames:oe,codes:{ERR_SOCKET_BAD_PORT:wa,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:qe,ERR_OUT_OF_RANGE:Pe,ERR_UNKNOWN_SIGNAL:Br}}=ne,{normalizeEncoding:Sa}=te,{isAsyncFunction:Ra,isArrayBufferView:Ea}=te.types,Ur={};function ma(e){return e===(e|0)}function xa(e){return e===e>>>0}const Aa=/^[0-7]+$/,va="must be a 32-bit unsigned integer or an octal string";function Ta(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Fi(Aa,e)===null)throw new qe(t,e,va);e=_a(e,8)}return Wi(e,t),e}const Ia=oe((e,t,r=ha,i=ca)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);if(ei)throw new Pe(t,`>= ${r} && <= ${i}`,e)}),Na=oe((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);if(ei)throw new Pe(t,`>= ${r} && <= ${i}`,e)}),Wi=oe((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);const i=r?1:0,a=4294967295;if(ea)throw new Pe(t,`>= ${i} && <= ${a}`,e)});function gr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function Pa(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&da(e))throw new Pe(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const $a=oe((e,t,r)=>{if(!Oi(r,e)){const a="must be one of: "+Ci(fa(r,o=>typeof o=="string"?`'${o}'`:pa(o)),", ");throw new qe(t,e,a)}});function Bi(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function Ct(e,t,r){return e==null||!ba(e,t)?r:e[t]}const ka=oe((e,t,r=null)=>{const i=Ct(r,"allowArray",!1),a=Ct(r,"allowFunction",!1);if(!Ct(r,"nullable",!1)&&e===null||!i&&br(e)||typeof e!="object"&&(!a||typeof e!="function"))throw new ee(t,"Object",e)}),Da=oe((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),wt=oe((e,t,r=0)=>{if(!br(e))throw new ee(t,"Array",e);if(e.length{if(!Ea(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function Fa(e,t){const r=Sa(t),i=e.length;if(r==="hex"&&i%2!==0)throw new qe("encoding",t,`is invalid for data of length ${i}`)}function Wa(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&ya(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new wa(t,e,r);return e|0}const Ui=oe((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),Ba=oe((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),Ua=oe((e,t)=>{if(typeof e!="function"||Ra(e))throw new ee(t,"Function",e)}),Ga=oe((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function qa(e,t,r){if(!Oi(r,e))throw new ee(t,`('${Ci(r,"|")}')`,e)}const Ha=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Gr(e,t){if(typeof e>"u"||!Fi(Ha,e))throw new qe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function Va(e){if(typeof e=="string")return Gr(e,"hints"),e;if(br(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var tt={isInt32:ma,isUint32:xa,parseFileMode:Ta,validateArray:wt,validateStringArray:ja,validateBooleanArray:La,validateAbortSignalArray:Ma,validateBoolean:Bi,validateBuffer:Ca,validateDictionary:Da,validateEncoding:Fa,validateFunction:Ba,validateInt32:Na,validateInteger:Ia,validateNumber:Pa,validateObject:ka,validateOneOf:$a,validatePlainFunction:Ua,validatePort:Wa,validateSignalName:Oa,validateString:gr,validateUint32:Wi,validateUndefined:Ga,validateUnion:qa,validateAbortSignal:Ui,validateLinkHeaderValue:Va},yr={exports:{}};const{SymbolAsyncIterator:qr,SymbolIterator:Hr,SymbolFor:ke}=H,Gi=ke("nodejs.stream.destroyed"),qi=ke("nodejs.stream.errored"),ir=ke("nodejs.stream.readable"),nr=ke("nodejs.stream.writable"),Hi=ke("nodejs.stream.disturbed"),za=ke("nodejs.webstream.isClosedPromise"),Qa=ke("nodejs.webstream.controllerErrorFunction");function St(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function Rt(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function Ya(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function he(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Vi(e){return!!(e&&!he(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function zi(e){return!!(e&&!he(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Qi(e){return!!(e&&!he(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function Ka(e){return Vi(e)||zi(e)||Qi(e)}function Ja(e,t){return e==null?!1:t===!0?typeof e[qr]=="function":t===!1?typeof e[Hr]=="function":typeof e[qr]=="function"||typeof e[Hr]=="function"}function Et(e){if(!he(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[Gi]||i!=null&&i.destroyed)}function Yi(e){if(!Rt(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Za(e,t){if(!Rt(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function Xa(e){if(!St(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Ki(e,t){if(!St(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Ji(e){return e&&e[ir]!=null?e[ir]:typeof(e==null?void 0:e.readable)!="boolean"?null:Et(e)?!1:St(e)&&e.readable&&!Ki(e)}function Zi(e){return e&&e[nr]!=null?e[nr]:typeof(e==null?void 0:e.writable)!="boolean"?null:Et(e)?!1:Rt(e)&&e.writable&&!Yi(e)}function es(e,t){return he(e)?Et(e)?!0:!((t==null?void 0:t.readable)!==!1&&Ji(e)||(t==null?void 0:t.writable)!==!1&&Zi(e)):null}function ts(e){var t,r;return he(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function rs(e){var t,r;return he(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function is(e){if(!he(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&Xi(e)?e._closed:null}function Xi(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function en(e){return typeof e._sent100=="boolean"&&Xi(e)}function ns(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function as(e){if(!he(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&en(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function ss(e){var t;return!!(e&&((t=e[Hi])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function os(e){var t,r,i,a,o,l,d,y,_,g;return!!(e&&((t=(r=(i=(a=(o=(l=e[qi])!==null&&l!==void 0?l:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&a!==void 0?a:(d=e._readableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&i!==void 0?i:(y=e._writableState)===null||y===void 0?void 0:y.errorEmitted)!==null&&r!==void 0?r:(_=e._readableState)===null||_===void 0?void 0:_.errored)!==null&&t!==void 0?t:!((g=e._writableState)===null||g===void 0)&&g.errored))}var we={isDestroyed:Et,kIsDestroyed:Gi,isDisturbed:ss,kIsDisturbed:Hi,isErrored:os,kIsErrored:qi,isReadable:Ji,kIsReadable:ir,kIsClosedPromise:za,kControllerErrorFunction:Qa,kIsWritable:nr,isClosed:is,isDuplexNodeStream:Ya,isFinished:es,isIterable:Ja,isReadableNodeStream:St,isReadableStream:Vi,isReadableEnded:Xa,isReadableFinished:Ki,isReadableErrored:rs,isNodeStream:he,isWebStream:Ka,isWritable:Zi,isWritableNodeStream:Rt,isWritableStream:zi,isWritableEnded:Yi,isWritableFinished:Za,isWritableErrored:ts,isServerRequest:ns,isServerResponse:en,willEmitClose:as,isTransformStream:Qi};const Re=$e,{AbortError:tn,codes:ls}=ne,{ERR_INVALID_ARG_TYPE:us,ERR_STREAM_PREMATURE_CLOSE:Vr}=ls,{kEmptyObject:ar,once:sr}=te,{validateAbortSignal:fs,validateFunction:ds,validateObject:cs,validateBoolean:hs}=tt,{Promise:_s,PromisePrototypeThen:bs,SymbolDispose:rn}=H,{isClosed:ps,isReadable:zr,isReadableNodeStream:Ft,isReadableStream:gs,isReadableFinished:Qr,isReadableErrored:Yr,isWritable:Kr,isWritableNodeStream:Jr,isWritableStream:ys,isWritableFinished:Zr,isWritableErrored:Xr,isNodeStream:ws,willEmitClose:Ss,kIsClosedPromise:Rs}=we;let Be;function Es(e){return e.setHeader&&typeof e.abort=="function"}const or=()=>{};function nn(e,t,r){var i,a;if(arguments.length===2?(r=t,t=ar):t==null?t=ar:cs(t,"options"),ds(r,"callback"),fs(t.signal,"options.signal"),r=sr(r),gs(e)||ys(e))return ms(e,t,r);if(!ws(e))throw new us("stream",["ReadableStream","WritableStream","Stream"],e);const o=(i=t.readable)!==null&&i!==void 0?i:Ft(e),l=(a=t.writable)!==null&&a!==void 0?a:Jr(e),d=e._writableState,y=e._readableState,_=()=>{e.writable||c()};let g=Ss(e)&&Ft(e)===o&&Jr(e)===l,w=Zr(e,!1);const c=()=>{w=!0,e.destroyed&&(g=!1),!(g&&(!e.readable||o))&&(!o||h)&&r.call(e)};let h=Qr(e,!1);const p=()=>{h=!0,e.destroyed&&(g=!1),!(g&&(!e.writable||l))&&(!l||w)&&r.call(e)},b=D=>{r.call(e,D)};let A=ps(e);const $=()=>{A=!0;const D=Xr(e)||Yr(e);if(D&&typeof D!="boolean")return r.call(e,D);if(o&&!h&&Ft(e,!0)&&!Qr(e,!1))return r.call(e,new Vr);if(l&&!w&&!Zr(e,!1))return r.call(e,new Vr);r.call(e)},N=()=>{A=!0;const D=Xr(e)||Yr(e);if(D&&typeof D!="boolean")return r.call(e,D);r.call(e)},R=()=>{e.req.on("finish",c)};Es(e)?(e.on("complete",c),g||e.on("abort",$),e.req?R():e.on("request",R)):l&&!d&&(e.on("end",_),e.on("close",_)),!g&&typeof e.aborted=="boolean"&&e.on("aborted",$),e.on("end",p),e.on("finish",c),t.error!==!1&&e.on("error",b),e.on("close",$),A?Re.nextTick($):d!=null&&d.errorEmitted||y!=null&&y.errorEmitted?g||Re.nextTick(N):(!o&&(!g||zr(e))&&(w||Kr(e)===!1)||!l&&(!g||Kr(e))&&(h||zr(e)===!1)||y&&e.req&&e.aborted)&&Re.nextTick(N);const W=()=>{r=or,e.removeListener("aborted",$),e.removeListener("complete",c),e.removeListener("abort",$),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",_),e.removeListener("close",_),e.removeListener("finish",c),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",$)};if(t.signal&&!A){const D=()=>{const K=r;W(),K.call(e,new tn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)Re.nextTick(D);else{Be=Be||te.addAbortListener;const K=Be(t.signal,D),ae=r;r=sr((...U)=>{K[rn](),ae.apply(e,U)})}}return W}function ms(e,t,r){let i=!1,a=or;if(t.signal)if(a=()=>{i=!0,r.call(e,new tn(void 0,{cause:t.signal.reason}))},t.signal.aborted)Re.nextTick(a);else{Be=Be||te.addAbortListener;const l=Be(t.signal,a),d=r;r=sr((...y)=>{l[rn](),d.apply(e,y)})}const o=(...l)=>{i||Re.nextTick(()=>r.apply(e,l))};return bs(e[Rs].promise,o,o),or}function xs(e,t){var r;let i=!1;return t===null&&(t=ar),(r=t)!==null&&r!==void 0&&r.cleanup&&(hs(t.cleanup,"cleanup"),i=t.cleanup),new _s((a,o)=>{const l=nn(e,t,d=>{i&&l(),d?o(d):a()})})}yr.exports=nn;yr.exports.finished=xs;var me=yr.exports;const fe=$e,{aggregateTwoErrors:As,codes:{ERR_MULTIPLE_CALLBACK:vs},AbortError:Ts}=ne,{Symbol:an}=H,{kIsDestroyed:Is,isDestroyed:Ns,isFinished:Ps,isServerRequest:$s}=we,sn=an("kDestroy"),lr=an("kConstruct");function on(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function ks(e,t){const r=this._readableState,i=this._writableState,a=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(on(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),a.constructed?ei(this,e,t):this.once(sn,function(o){ei(this,As(o,e),t)}),this)}function ei(e,t,r){let i=!1;function a(o){if(i)return;i=!0;const l=e._readableState,d=e._writableState;on(o,d,l),d&&(d.closed=!0),l&&(l.closed=!0),typeof r=="function"&&r(o),o?fe.nextTick(Ds,e,o):fe.nextTick(ln,e)}try{e._destroy(t||null,a)}catch(o){a(o)}}function Ds(e,t){ur(e,t),ln(e)}function ln(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function ur(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function js(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function fr(e,t,r){const i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(ur,e,t):ur(e,t))}function Ls(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(lr,t),!(e.listenerCount(lr)>1)&&fe.nextTick(Ms,e)}function Ms(e){let t=!1;function r(i){if(t){fr(e,i??new vs);return}t=!0;const a=e._readableState,o=e._writableState,l=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),l.destroyed?e.emit(sn,i):i?fr(e,i,!0):fe.nextTick(Os,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function Os(e){e.emit(lr)}function ti(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function un(e){e.emit("close")}function Cs(e,t){e.emit("error",t),fe.nextTick(un,e)}function Fs(e,t){!e||Ns(e)||(!t&&!Ps(e)&&(t=new Ts),$s(e)?(e.socket=null,e.destroy(t)):ti(e)?e.abort():ti(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(Cs,e,t):fe.nextTick(un,e),e.destroyed||(e[Is]=!0))}var He={construct:Ls,destroyer:Fs,destroy:ks,undestroy:js,errorOrDestroy:fr};const{ArrayIsArray:Ws,ObjectSetPrototypeOf:fn}=H,{EventEmitter:mt}=gt;function xt(e){mt.call(this,e)}fn(xt.prototype,mt.prototype);fn(xt,mt);xt.prototype.pipe=function(e,t){const r=this;function i(g){e.writable&&e.write(g)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",l),r.on("close",d));let o=!1;function l(){o||(o=!0,e.end())}function d(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function y(g){_(),mt.listenerCount(this,"error")===0&&this.emit("error",g)}dr(r,"error",y),dr(e,"error",y);function _(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",l),r.removeListener("close",d),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",_),r.removeListener("close",_),e.removeListener("close",_)}return r.on("end",_),r.on("close",_),e.on("close",_),e.emit("pipe",r),e};function dr(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Ws(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var wr={Stream:xt,prependListener:dr},dn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ne,{isNodeStream:a,isWebStream:o,kControllerErrorFunction:l}=we,d=me,{ERR_INVALID_ARG_TYPE:y}=i;let _;const g=(w,c)=>{if(typeof w!="object"||!("aborted"in w))throw new y(c,"AbortSignal",w)};e.exports.addAbortSignal=function(c,h){if(g(c,"signal"),!a(h)&&!o(h))throw new y("stream",["ReadableStream","WritableStream","Stream"],h);return e.exports.addAbortSignalNoValidate(c,h)},e.exports.addAbortSignalNoValidate=function(w,c){if(typeof w!="object"||!("aborted"in w))return c;const h=a(c)?()=>{c.destroy(new r(void 0,{cause:w.reason}))}:()=>{c[l](new r(void 0,{cause:w.reason}))};if(w.aborted)h();else{_=_||te.addAbortListener;const p=_(w,h);d(c,p[t])}return c}})(dn);var At=dn.exports;const{StringPrototypeSlice:ri,SymbolIterator:Bs,TypedArrayPrototypeSet:ut,Uint8Array:Us}=H,{Buffer:Wt}=Ee,{inspect:Gs}=te;var qs=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return Wt.alloc(0);const r=Wt.allocUnsafe(t>>>0);let i=this.head,a=0;for(;i;)ut(r,i.data,a),a+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(to.length)r+=o,t-=o.length;else{t===o.length?(r+=o,++a,i.next?this.head=i.next:this.head=this.tail=null):(r+=ri(o,0,t),this.head=i,i.data=ri(o,t));break}++a}while((i=i.next)!==null);return this.length-=a,r}_getBuffer(t){const r=Wt.allocUnsafe(t),i=t;let a=this.head,o=0;do{const l=a.data;if(t>l.length)ut(r,l,i-t),t-=l.length;else{t===l.length?(ut(r,l,i-t),++o,a.next?this.head=a.next:this.head=this.tail=null):(ut(r,new Us(l.buffer,l.byteOffset,t),i-t),this.head=a,a.data=l.slice(t));break}++o}while((a=a.next)!==null);return this.length-=o,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return Gs(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:Hs,NumberIsInteger:Vs}=H,{validateInteger:zs}=tt,{ERR_INVALID_ARG_VALUE:Qs}=ne.codes;let cn=16*1024,hn=16;function Ys(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _n(e){return e?hn:cn}function Ks(e,t){zs(t,"value",0),e?hn=t:cn=t}function Js(e,t,r,i){const a=Ys(t,i,r);if(a!=null){if(!Vs(a)||a<0){const o=i?`options.${r}`:"options.highWaterMark";throw new Qs(o,a)}return Hs(a)}return _n(e.objectMode)}var vt={getHighWaterMark:Js,getDefaultHighWaterMark:_n,setDefaultHighWaterMark:Ks};const ii=$e,{PromisePrototypeThen:Zs,SymbolAsyncIterator:ni,SymbolIterator:ai}=H,{Buffer:Xs}=Ee,{ERR_INVALID_ARG_TYPE:eo,ERR_STREAM_NULL_VALUES:to}=ne.codes;function ro(e,t,r){let i;if(typeof t=="string"||t instanceof Xs)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let a;if(t&&t[ni])a=!0,i=t[ni]();else if(t&&t[ai])a=!1,i=t[ai]();else throw new eo("iterable",["Iterable"],t);const o=new e({objectMode:!0,highWaterMark:1,...r});let l=!1;o._read=function(){l||(l=!0,y())},o._destroy=function(_,g){Zs(d(_),()=>ii.nextTick(g,_),w=>ii.nextTick(g,w||_))};async function d(_){const g=_!=null,w=typeof i.throw=="function";if(g&&w){const{value:c,done:h}=await i.throw(_);if(await c,h)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function y(){for(;;){try{const{value:_,done:g}=a?await i.next():i.next();if(g)o.push(null);else{const w=_&&typeof _.then=="function"?await _:_;if(w===null)throw l=!1,new to;if(o.push(w))continue;l=!1}}catch(_){o.destroy(_)}break}}return o}var bn=ro,Bt,si;function Tt(){if(si)return Bt;si=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:o,ObjectKeys:l,ObjectSetPrototypeOf:d,Promise:y,SafeSet:_,SymbolAsyncDispose:g,SymbolAsyncIterator:w,Symbol:c}=H;Bt=k,k.ReadableState=be;const{EventEmitter:h}=gt,{Stream:p,prependListener:b}=wr,{Buffer:A}=Ee,{addAbortSignal:$}=At,N=me;let R=te.debuglog("stream",n=>{R=n});const W=qs,D=He,{getHighWaterMark:K,getDefaultHighWaterMark:ae}=vt,{aggregateTwoErrors:U,codes:{ERR_INVALID_ARG_TYPE:V,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ie,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:E},AbortError:O}=ne,{validateObject:j}=tt,L=c("kPaused"),{StringDecoder:z}=Wn,Q=bn;d(k.prototype,p.prototype),d(k,p);const q=()=>{},{errorOrDestroy:Y}=D,C=1,_e=2,P=4,J=8,le=16,Le=32,Me=64,Oe=128,Ve=256,Nt=512,ze=1024,Ce=2048,u=4096,f=8192,S=16384,T=32768,I=65536,B=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(s){s?this.state|=n:this.state&=~n}}}o(be.prototype,{objectMode:F(C),ended:F(_e),endEmitted:F(P),reading:F(J),constructed:F(le),sync:F(Le),needReadable:F(Me),emittedReadable:F(Oe),readableListening:F(Ve),resumeScheduled:F(Nt),errorEmitted:F(ze),emitClose:F(Ce),autoDestroy:F(u),destroyed:F(f),closed:F(S),closeEmitted:F(T),multiAwaitDrain:F(I),readingMore:F(B),dataEmitted:F(G)});function be(n,s,m){typeof m!="boolean"&&(m=s instanceof ge()),this.state=Ce|u|le|Le,n&&n.objectMode&&(this.state|=C),m&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?K(this,n,"readableHighWaterMark",m):ae(!1),this.buffer=new W,this.length=0,this.pipes=[],this.flowing=null,this[L]=null,n&&n.emitClose===!1&&(this.state&=~Ce),n&&n.autoDestroy===!1&&(this.state&=~u),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new z(n.encoding),this.encoding=n.encoding)}function k(n){if(!(this instanceof k))return new k(n);const s=this instanceof ge();this._readableState=new be(n,this,s),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!s&&$(n.signal,this)),p.call(this,n),D.construct(this,()=>{this._readableState.needReadable&&nt(this,this._readableState)})}k.prototype.destroy=D.destroy,k.prototype._undestroy=D.undestroy,k.prototype._destroy=function(n,s){s(n)},k.prototype[h.captureRejectionSymbol]=function(n){this.destroy(n)},k.prototype[g]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new O,this.destroy(n)),new y((s,m)=>N(this,x=>x&&x!==n?m(x):s(null)))},k.prototype.push=function(n,s){return Se(this,n,s,!1)},k.prototype.unshift=function(n,s){return Se(this,n,s,!0)};function Se(n,s,m,x){R("readableAddChunk",s);const v=n._readableState;let X;if(v.state&C||(typeof s=="string"?(m=m||v.defaultEncoding,v.encoding!==m&&(x&&v.encoding?s=A.from(s,m).toString(v.encoding):(s=A.from(s,m),m=""))):s instanceof A?m="":p._isUint8Array(s)?(s=p._uint8ArrayToBuffer(s),m=""):s!=null&&(X=new V("chunk",["string","Buffer","Uint8Array"],s))),X)Y(n,X);else if(s===null)v.state&=~J,Nn(n,v);else if(v.state&C||s&&s.length>0)if(x)if(v.state&P)Y(n,new E);else{if(v.destroyed||v.errored)return!1;Pt(n,v,s,!0)}else if(v.ended)Y(n,new M);else{if(v.destroyed||v.errored)return!1;v.state&=~J,v.decoder&&!m?(s=v.decoder.write(s),v.objectMode||s.length!==0?Pt(n,v,s,!1):nt(n,v)):Pt(n,v,s,!1)}else x||(v.state&=~J,nt(n,v));return!v.ended&&(v.length0?(s.state&I?s.awaitDrainWriters.clear():s.awaitDrainWriters=null,s.dataEmitted=!0,n.emit("data",m)):(s.length+=s.objectMode?1:m.length,x?s.buffer.unshift(m):s.buffer.push(m),s.state&Me&&it(n)),nt(n,s)}k.prototype.isPaused=function(){const n=this._readableState;return n[L]===!0||n.flowing===!1},k.prototype.setEncoding=function(n){const s=new z(n);this._readableState.decoder=s,this._readableState.encoding=this._readableState.decoder.encoding;const m=this._readableState.buffer;let x="";for(const v of m)x+=s.write(v);return m.clear(),x!==""&&m.push(x),this._readableState.length=x.length,this};const Tn=1073741824;function In(n){if(n>Tn)throw new ie("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function Ar(n,s){return n<=0||s.length===0&&s.ended?0:s.state&C?1:i(n)?s.flowing&&s.length?s.buffer.first().length:s.length:n<=s.length?n:s.ended?s.length:0}k.prototype.read=function(n){R("read",n),n===void 0?n=NaN:r(n)||(n=a(n,10));const s=this._readableState,m=n;if(n>s.highWaterMark&&(s.highWaterMark=In(n)),n!==0&&(s.state&=~Oe),n===0&&s.needReadable&&((s.highWaterMark!==0?s.length>=s.highWaterMark:s.length>0)||s.ended))return R("read: emitReadable",s.length,s.ended),s.length===0&&s.ended?$t(this):it(this),null;if(n=Ar(n,s),n===0&&s.ended)return s.length===0&&$t(this),null;let x=(s.state&Me)!==0;if(R("need readable",x),(s.length===0||s.length-n0?v=Pr(n,s):v=null,v===null?(s.needReadable=s.length<=s.highWaterMark,n=0):(s.length-=n,s.multiAwaitDrain?s.awaitDrainWriters.clear():s.awaitDrainWriters=null),s.length===0&&(s.ended||(s.needReadable=!0),m!==n&&s.ended&&$t(this)),v!==null&&!s.errorEmitted&&!s.closeEmitted&&(s.dataEmitted=!0,this.emit("data",v)),v};function Nn(n,s){if(R("onEofChunk"),!s.ended){if(s.decoder){const m=s.decoder.end();m&&m.length&&(s.buffer.push(m),s.length+=s.objectMode?1:m.length)}s.ended=!0,s.sync?it(n):(s.needReadable=!1,s.emittedReadable=!0,vr(n))}}function it(n){const s=n._readableState;R("emitReadable",s.needReadable,s.emittedReadable),s.needReadable=!1,s.emittedReadable||(R("emitReadable",s.flowing),s.emittedReadable=!0,e.nextTick(vr,n))}function vr(n){const s=n._readableState;R("emitReadable_",s.destroyed,s.length,s.ended),!s.destroyed&&!s.errored&&(s.length||s.ended)&&(n.emit("readable"),s.emittedReadable=!1),s.needReadable=!s.flowing&&!s.ended&&s.length<=s.highWaterMark,Ir(n)}function nt(n,s){!s.readingMore&&s.constructed&&(s.readingMore=!0,e.nextTick(Pn,n,s))}function Pn(n,s){for(;!s.reading&&!s.ended&&(s.length1&&x.pipes.includes(n)&&(R("false write response, pause",x.awaitDrainWriters.size),x.awaitDrainWriters.add(n)),m.pause()),xe||(xe=$n(m,n),n.on("drain",xe))}m.on("data",Lr);function Lr(Ae){R("ondata");const pe=n.write(Ae);R("dest.write",pe),pe===!1&&jr()}function Dt(Ae){if(R("onerror",Ae),Qe(),n.removeListener("error",Dt),n.listenerCount("error")===0){const pe=n._writableState||n._readableState;pe&&!pe.errorEmitted?Y(n,Ae):n.emit("error",Ae)}}b(n,"error",Dt);function jt(){n.removeListener("finish",Lt),Qe()}n.once("close",jt);function Lt(){R("onfinish"),n.removeListener("close",jt),Qe()}n.once("finish",Lt);function Qe(){R("unpipe"),m.unpipe(n)}return n.emit("pipe",m),n.writableNeedDrain===!0?jr():x.flowing||(R("pipe resume"),m.resume()),n};function $n(n,s){return function(){const x=n._readableState;x.awaitDrainWriters===s?(R("pipeOnDrain",1),x.awaitDrainWriters=null):x.multiAwaitDrain&&(R("pipeOnDrain",x.awaitDrainWriters.size),x.awaitDrainWriters.delete(s)),(!x.awaitDrainWriters||x.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}k.prototype.unpipe=function(n){const s=this._readableState,m={hasUnpiped:!1};if(s.pipes.length===0)return this;if(!n){const v=s.pipes;s.pipes=[],this.pause();for(let X=0;X0,x.flowing!==!1&&this.resume()):n==="readable"&&!x.endEmitted&&!x.readableListening&&(x.readableListening=x.needReadable=!0,x.flowing=!1,x.emittedReadable=!1,R("on readable",x.length,x.reading),x.length?it(this):x.reading||e.nextTick(kn,this)),m},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(n,s){const m=p.prototype.removeListener.call(this,n,s);return n==="readable"&&e.nextTick(Tr,this),m},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(n){const s=p.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(Tr,this),s};function Tr(n){const s=n._readableState;s.readableListening=n.listenerCount("readable")>0,s.resumeScheduled&&s[L]===!1?s.flowing=!0:n.listenerCount("data")>0?n.resume():s.readableListening||(s.flowing=null)}function kn(n){R("readable nexttick read 0"),n.read(0)}k.prototype.resume=function(){const n=this._readableState;return n.flowing||(R("resume"),n.flowing=!n.readableListening,Dn(this,n)),n[L]=!1,this};function Dn(n,s){s.resumeScheduled||(s.resumeScheduled=!0,e.nextTick(jn,n,s))}function jn(n,s){R("resume",s.reading),s.reading||n.read(0),s.resumeScheduled=!1,n.emit("resume"),Ir(n),s.flowing&&!s.reading&&n.read(0)}k.prototype.pause=function(){return R("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(R("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[L]=!0,this};function Ir(n){const s=n._readableState;for(R("flow",s.flowing);s.flowing&&n.read()!==null;);}k.prototype.wrap=function(n){let s=!1;n.on("data",x=>{!this.push(x)&&n.pause&&(s=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",x=>{Y(this,x)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{s&&n.resume&&(s=!1,n.resume())};const m=l(n);for(let x=1;x{v=se?U(v,se):null,m(),m=q});try{for(;;){const se=n.destroyed?null:n.read();if(se!==null)yield se;else{if(v)throw v;if(v===null)return;await new y(x)}}}catch(se){throw v=U(v,se),v}finally{(v||(s==null?void 0:s.destroyOnReturn)!==!1)&&(v===void 0||n._readableState.autoDestroy)?D.destroyer(n,null):(n.off("readable",x),X())}}o(k.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(n){this._readableState&&(this._readableState.flowing=n)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),o(be.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[L]!==!1},set(n){this[L]=!!n}}}),k._fromList=Pr;function Pr(n,s){if(s.length===0)return null;let m;return s.objectMode?m=s.buffer.shift():!n||n>=s.length?(s.decoder?m=s.buffer.join(""):s.buffer.length===1?m=s.buffer.first():m=s.buffer.concat(s.length),s.buffer.clear()):m=s.buffer.consume(n,s.decoder),m}function $t(n){const s=n._readableState;R("endReadable",s.endEmitted),s.endEmitted||(s.ended=!0,e.nextTick(Mn,s,n))}function Mn(n,s){if(R("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,s.emit("end"),s.writable&&s.allowHalfOpen===!1)e.nextTick(On,s);else if(n.autoDestroy){const m=s._writableState;(!m||m.autoDestroy&&(m.finished||m.writable===!1))&&s.destroy()}}}function On(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}k.from=function(n,s){return Q(k,n,s)};let kt;function $r(){return kt===void 0&&(kt={}),kt}return k.fromWeb=function(n,s){return $r().newStreamReadableFromReadableStream(n,s)},k.toWeb=function(n,s){return $r().newReadableStreamFromStreamReadable(n,s)},k.wrap=function(n,s){var m,x;return new k({objectMode:(m=(x=n.readableObjectMode)!==null&&x!==void 0?x:n.objectMode)!==null&&m!==void 0?m:!0,...s,destroy(v,X){D.destroyer(n,v),X(v)}}).wrap(n)},Bt}var Ut,oi;function Sr(){if(oi)return Ut;oi=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:o,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:d,Symbol:y,SymbolHasInstance:_}=H;Ut=j,j.WritableState=E;const{EventEmitter:g}=gt,w=wr.Stream,{Buffer:c}=Ee,h=He,{addAbortSignal:p}=At,{getHighWaterMark:b,getDefaultHighWaterMark:A}=vt,{ERR_INVALID_ARG_TYPE:$,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:R,ERR_STREAM_CANNOT_PIPE:W,ERR_STREAM_DESTROYED:D,ERR_STREAM_ALREADY_FINISHED:K,ERR_STREAM_NULL_VALUES:ae,ERR_STREAM_WRITE_AFTER_END:U,ERR_UNKNOWN_ENCODING:V}=ne.codes,{errorOrDestroy:re}=h;l(j.prototype,w.prototype),l(j,w);function ie(){}const M=y("kOnFinished");function E(u,f,S){typeof S!="boolean"&&(S=f instanceof ge()),this.objectMode=!!(u&&u.objectMode),S&&(this.objectMode=this.objectMode||!!(u&&u.writableObjectMode)),this.highWaterMark=u?b(this,u,"writableHighWaterMark",S):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const T=!!(u&&u.decodeStrings===!1);this.decodeStrings=!T,this.defaultEncoding=u&&u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Y.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!u||u.emitClose!==!1,this.autoDestroy=!u||u.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function O(u){u.buffered=[],u.bufferedIndex=0,u.allBuffers=!0,u.allNoop=!0}E.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},a(E.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function j(u){const f=this instanceof ge();if(!f&&!i(j,this))return new j(u);this._writableState=new E(u,this,f),u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final),typeof u.construct=="function"&&(this._construct=u.construct),u.signal&&p(u.signal,this)),w.call(this,u),h.construct(this,()=>{const S=this._writableState;S.writing||J(this,S),Oe(this,S)})}a(j,_,{__proto__:null,value:function(u){return i(this,u)?!0:this!==j?!1:u&&u._writableState instanceof E}}),j.prototype.pipe=function(){re(this,new W)};function L(u,f,S,T){const I=u._writableState;if(typeof S=="function")T=S,S=I.defaultEncoding;else{if(!S)S=I.defaultEncoding;else if(S!=="buffer"&&!c.isEncoding(S))throw new V(S);typeof T!="function"&&(T=ie)}if(f===null)throw new ae;if(!I.objectMode)if(typeof f=="string")I.decodeStrings!==!1&&(f=c.from(f,S),S="buffer");else if(f instanceof c)S="buffer";else if(w._isUint8Array(f))f=w._uint8ArrayToBuffer(f),S="buffer";else throw new $("chunk",["string","Buffer","Uint8Array"],f);let B;return I.ending?B=new U:I.destroyed&&(B=new D("write")),B?(e.nextTick(T,B),re(u,B,!0),B):(I.pendingcb++,z(u,I,f,S,T))}j.prototype.write=function(u,f,S){return L(this,u,f,S)===!0},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){const u=this._writableState;u.corked&&(u.corked--,u.writing||J(this,u))},j.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=d(f)),!c.isEncoding(f))throw new V(f);return this._writableState.defaultEncoding=f,this};function z(u,f,S,T,I){const B=f.objectMode?1:S.length;f.length+=B;const G=f.lengthS.bufferedIndex&&J(u,S),T?S.afterWriteTickInfo!==null&&S.afterWriteTickInfo.cb===I?S.afterWriteTickInfo.count++:(S.afterWriteTickInfo={count:1,cb:I,stream:u,state:S},e.nextTick(C,S.afterWriteTickInfo)):_e(u,S,1,I))}function C({stream:u,state:f,count:S,cb:T}){return f.afterWriteTickInfo=null,_e(u,f,S,T)}function _e(u,f,S,T){for(!f.ending&&!u.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,u.emit("drain"));S-- >0;)f.pendingcb--,T();f.destroyed&&P(f),Oe(u,f)}function P(u){if(u.writing)return;for(let I=u.bufferedIndex;I1&&u._writev){f.pendingcb-=B-1;const F=f.allNoop?ie:k=>{for(let Se=G;Se256?(S.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}j.prototype._write=function(u,f,S){if(this._writev)this._writev([{chunk:u,encoding:f}],S);else throw new N("_write()")},j.prototype._writev=null,j.prototype.end=function(u,f,S){const T=this._writableState;typeof u=="function"?(S=u,u=null,f=null):typeof f=="function"&&(S=f,f=null);let I;if(u!=null){const B=L(this,u,f);B instanceof r&&(I=B)}return T.corked&&(T.corked=1,this.uncork()),I||(!T.errored&&!T.ending?(T.ending=!0,Oe(this,T,!0),T.ended=!0):T.finished?I=new K("end"):T.destroyed&&(I=new D("end"))),typeof S=="function"&&(I||T.finished?e.nextTick(S,I):T[M].push(S)),this};function le(u){return u.ending&&!u.destroyed&&u.constructed&&u.length===0&&!u.errored&&u.buffered.length===0&&!u.finished&&!u.writing&&!u.errorEmitted&&!u.closeEmitted}function Le(u,f){let S=!1;function T(I){if(S){re(u,I??R());return}if(S=!0,f.pendingcb--,I){const B=f[M].splice(0);for(let G=0;G{le(I)?Ve(T,I):I.pendingcb--},u,f)):le(f)&&(f.pendingcb++,Ve(u,f))))}function Ve(u,f){f.pendingcb--,f.finished=!0;const S=f[M].splice(0);for(let T=0;T{if(P!=null)throw new p("nully","body",P)},P=>{b(C,P)});return C=new V({objectMode:!0,readable:!1,write:z,final(P){Q(async()=>{try{await _e,e.nextTick(P,null)}catch(J){e.nextTick(P,J)}})},destroy:q})}throw new p("Iterable, AsyncIterable or AsyncFunction",O,L)}if(K(E))return M(E.arrayBuffer());if(a(E))return W(V,E,{objectMode:!0,writable:!1});if(_(E==null?void 0:E.readable)&&g(E==null?void 0:E.writable))return V.fromWeb(E);if(typeof(E==null?void 0:E.writable)=="object"||typeof(E==null?void 0:E.readable)=="object"){const L=E!=null&&E.readable?l(E==null?void 0:E.readable)?E==null?void 0:E.readable:M(E.readable):void 0,z=E!=null&&E.writable?d(E==null?void 0:E.writable)?E==null?void 0:E.writable:M(E.writable):void 0;return ie({readable:L,writable:z})}const j=E==null?void 0:E.then;if(typeof j=="function"){let L;return U(j,E,z=>{z!=null&&L.push(z),L.push(null)},z=>{b(L,z)}),L=new V({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function re(M){let{promise:E,resolve:O}=R();const j=new ae,L=j.signal;return{value:M(async function*(){for(;;){const Q=E;E=null;const{chunk:q,done:Y,cb:C}=await Q;if(e.nextTick(C),Y)return;if(L.aborted)throw new c(void 0,{cause:L.reason});({promise:E,resolve:O}=R()),yield q}}(),{signal:L}),write(Q,q,Y){const C=O;O=null,C({chunk:Q,done:!1,cb:Y})},final(Q){const q=O;O=null,q({done:!0,cb:Q})},destroy(Q,q){j.abort(),q(Q)}}}function ie(M){const E=M.readable&&typeof M.readable.read!="function"?$.wrap(M.readable):M.readable,O=M.writable;let j=!!r(E),L=!!i(O),z,Q,q,Y,C;function _e(P){const J=Y;Y=null,J?J(P):P&&C.destroy(P)}return C=new V({readableObjectMode:!!(E!=null&&E.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:j,writable:L}),L&&(w(O,P=>{L=!1,P&&b(E,P),_e(P)}),C._write=function(P,J,le){O.write(P,J)?le():z=le},C._final=function(P){O.end(),Q=P},O.on("drain",function(){if(z){const P=z;z=null,P()}}),O.on("finish",function(){if(Q){const P=Q;Q=null,P()}})),j&&(w(E,P=>{j=!1,P&&b(E,P),_e(P)}),E.on("readable",function(){if(q){const P=q;q=null,P()}}),E.on("end",function(){C.push(null)}),C._read=function(){for(;;){const P=E.read();if(P===null){q=C._read;return}if(!C.push(P))return}}),C._destroy=function(P,J){!P&&Y!==null&&(P=new c),q=null,z=null,Q=null,Y===null?J(P):(Y=J,b(O,P),b(E,P))},C}return Gt}var qt,ui;function ge(){if(ui)return qt;ui=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;qt=l;const a=Tt(),o=Sr();i(l.prototype,a.prototype),i(l,a);{const g=r(o.prototype);for(let w=0;w{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function oo(){this._final!==cr&&cr.call(this)}ye.prototype._final=cr;ye.prototype._transform=function(e,t,r){throw new ao("_transform()")};ye.prototype._write=function(e,t,r){const i=this._readableState,a=this._writableState,o=i.length;this._transform(e,t,(l,d)=>{if(l){r(l);return}d!=null&&this.push(d),a.ended||o===i.length||i.length{i=!0});const a=bt(e,{readable:t,writable:r},o=>{i=!o});return{destroy:o=>{i||(i=!0,_o.destroyer(e,o||new go("pipe")))},cleanup:a}}function Ao(e){return So(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Jt(e){if(Te(e))return e;if(ht(e))return vo(e);throw new hr("val",["Readable","Iterable","AsyncIterable"],e)}async function*vo(e){Yt||(Yt=Tt()),yield*Yt.prototype[fo].call(e)}async function ft(e,t,r,{end:i}){let a,o=null;const l=_=>{if(_&&(a=_),o){const g=o;o=null,g()}},d=()=>new uo((_,g)=>{a?g(a):o=()=>{a?g(a):_()}});t.on("drain",l);const y=bt(t,{readable:!1},l);try{t.writableNeedDrain&&await d();for await(const _ of e)t.write(_)||await d();i&&(t.end(),await d()),r()}catch(_){r(a!==_?bo(a,_):_)}finally{y(),t.off("drain",l)}}async function Zt(e,t,r,{end:i}){Fe(t)&&(t=t.writable);const a=t.getWriter();try{for await(const o of e)await a.ready,a.write(o).catch(()=>{});await a.ready,i&&await a.close(),r()}catch(o){try{await a.abort(o),r(o)}catch(l){r(l)}}}function To(...e){return Sn(e,ho(Ao(e)))}function Sn(e,t,r){if(e.length===1&&lo(e[0])&&(e=e[0]),e.length<2)throw new po("streams");const i=new xo,a=i.signal,o=r==null?void 0:r.signal,l=[];Ro(o,"options.signal");function d(){p(new wo)}Kt=Kt||te.addAbortListener;let y;o&&(y=Kt(o,d));let _,g;const w=[];let c=0;function h(N){p(N,--c===0)}function p(N,R){var W;if(N&&(!_||_.code==="ERR_STREAM_PREMATURE_CLOSE")&&(_=N),!(!_&&!R)){for(;w.length;)w.shift()(_);(W=y)===null||W===void 0||W[co](),i.abort(),R&&(_||l.forEach(D=>D()),Ze.nextTick(t,_,g))}}let b;for(let N=0;N0,K=W||(r==null?void 0:r.end)!==!1,ae=N===e.length-1;if(di(R)){let U=function(V){V&&V.name!=="AbortError"&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"&&h(V)};if(K){const{destroy:V,cleanup:re}=ci(R,W,D);w.push(V),Vt(R)&&ae&&l.push(re)}R.on("error",U),Vt(R)&&ae&&l.push(()=>{R.removeListener("error",U)})}if(N===0)if(typeof R=="function"){if(b=R({signal:a}),!Te(b))throw new Ht("Iterable, AsyncIterable or Stream","source",b)}else Te(R)||ht(R)||Fe(R)?b=R:b=fi.from(R);else if(typeof R=="function"){if(Fe(b)){var A;b=Jt((A=b)===null||A===void 0?void 0:A.readable)}else b=Jt(b);if(b=R(b,{signal:a}),W){if(!Te(b,!0))throw new Ht("AsyncIterable",`transform[${N-1}]`,b)}else{var $;Qt||(Qt=wn);const U=new Qt({objectMode:!0}),V=($=b)===null||$===void 0?void 0:$.then;if(typeof V=="function")c++,V.call(b,M=>{g=M,M!=null&&U.write(M),K&&U.end(),Ze.nextTick(h)},M=>{U.destroy(M),Ze.nextTick(h,M)});else if(Te(b,!0))c++,ft(b,U,h,{end:K});else if(zt(b)||Fe(b)){const M=b.readable||b;c++,ft(M,U,h,{end:K})}else throw new Ht("AsyncIterable or Promise","destination",b);b=U;const{destroy:re,cleanup:ie}=ci(b,!1,!0);w.push(re),ae&&l.push(ie)}}else if(di(R)){if(ht(b)){c+=2;const U=Io(b,R,h,{end:K});Vt(R)&&ae&&l.push(U)}else if(Fe(b)||zt(b)){const U=b.readable||b;c++,ft(U,R,h,{end:K})}else if(Te(b))c++,ft(b,R,h,{end:K});else throw new hr("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=R}else if(Eo(R)){if(ht(b))c++,Zt(Jt(b),R,h,{end:K});else if(zt(b)||Te(b))c++,Zt(b,R,h,{end:K});else if(Fe(b))c++,Zt(b.readable,R,h,{end:K});else throw new hr("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=R}else b=fi.from(R)}return(a!=null&&a.aborted||o!=null&&o.aborted)&&Ze.nextTick(d),b}function Io(e,t,r,{end:i}){let a=!1;if(t.on("close",()=>{a||r(new yo)}),e.pipe(t,{end:!1}),i){let o=function(){a=!0,t.end()};mo(e)?Ze.nextTick(o):e.once("end",o)}else r();return bt(e,{readable:!0,writable:!1},o=>{const l=e._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&l&&l.ended&&!l.errored&&!l.errorEmitted?e.once("end",r).once("error",r):r(o)}),bt(t,{readable:!1,writable:!0},r)}var mr={pipelineImpl:Sn,pipeline:To};const{pipeline:No}=mr,dt=ge(),{destroyer:Po}=He,{isNodeStream:ct,isReadable:hi,isWritable:_i,isWebStream:Xt,isTransformStream:ve,isWritableStream:bi,isReadableStream:pi}=we,{AbortError:$o,codes:{ERR_INVALID_ARG_VALUE:gi,ERR_MISSING_ARGS:ko}}=ne,Do=me;var Rn=function(...t){if(t.length===0)throw new ko("streams");if(t.length===1)return dt.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=dt.from(t[0])),typeof t[t.length-1]=="function"){const h=t.length-1;t[h]=dt.from(t[h])}for(let h=0;h0&&!(_i(t[h])||bi(t[h])||ve(t[h])))throw new gi(`streams[${h}]`,r[h],"must be writable")}let i,a,o,l,d;function y(h){const p=l;l=null,p?p(h):h?d.destroy(h):!c&&!w&&d.destroy()}const _=t[0],g=No(t,y),w=!!(_i(_)||bi(_)||ve(_)),c=!!(hi(g)||pi(g)||ve(g));if(d=new dt({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(g!=null&&g.readableObjectMode),writable:w,readable:c}),w){if(ct(_))d._write=function(p,b,A){_.write(p,b)?A():i=A},d._final=function(p){_.end(),a=p},_.on("drain",function(){if(i){const p=i;i=null,p()}});else if(Xt(_)){const b=(ve(_)?_.writable:_).getWriter();d._write=async function(A,$,N){try{await b.ready,b.write(A).catch(()=>{}),N()}catch(R){N(R)}},d._final=async function(A){try{await b.ready,b.close().catch(()=>{}),a=A}catch($){A($)}}}const h=ve(g)?g.readable:g;Do(h,()=>{if(a){const p=a;a=null,p()}})}if(c){if(ct(g))g.on("readable",function(){if(o){const h=o;o=null,h()}}),g.on("end",function(){d.push(null)}),d._read=function(){for(;;){const h=g.read();if(h===null){o=d._read;return}if(!d.push(h))return}};else if(Xt(g)){const p=(ve(g)?g.readable:g).getReader();d._read=async function(){for(;;)try{const{value:b,done:A}=await p.read();if(!d.push(b))return;if(A){d.push(null);return}}catch{return}}}}return d._destroy=function(h,p){!h&&l!==null&&(h=new $o),o=null,i=null,a=null,l===null?p(h):(l=p,ct(g)&&Po(g,h))},d};const jo=globalThis.AbortController||et().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Lo,ERR_INVALID_ARG_TYPE:rt,ERR_MISSING_ARGS:Mo,ERR_OUT_OF_RANGE:Oo},AbortError:de}=ne,{validateAbortSignal:De,validateInteger:yi,validateObject:je}=tt,Co=H.Symbol("kWeak"),Fo=H.Symbol("kResistStopPropagation"),{finished:Wo}=me,Bo=Rn,{addAbortSignalNoValidate:Uo}=At,{isWritable:Go,isNodeStream:qo}=we,{deprecate:Ho}=te,{ArrayPrototypePush:Vo,Boolean:zo,MathFloor:wi,Number:Qo,NumberIsNaN:Yo,Promise:Si,PromiseReject:Ri,PromiseResolve:Ko,PromisePrototypeThen:Ei,Symbol:En}=H,pt=En("kEmpty"),mi=En("kEof");function Jo(e,t){if(t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),qo(e)&&!Go(e))throw new Lo("stream",e,"must be writable");const r=Bo(this,e);return t!=null&&t.signal&&Uo(t.signal,r),r}function It(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=wi(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=wi(t.highWaterMark)),yi(r,"options.concurrency",1),yi(i,"options.highWaterMark",0),i+=r,(async function*(){const o=te.AbortSignalAny([t==null?void 0:t.signal].filter(zo)),l=this,d=[],y={signal:o};let _,g,w=!1,c=0;function h(){w=!0,p()}function p(){c-=1,b()}function b(){g&&!w&&c=i||c>=r)&&await new Si(N=>{g=N})}d.push(mi)}catch($){const N=Ri($);Ei(N,p,h),d.push(N)}finally{w=!0,_&&(_(),_=null)}}A();try{for(;;){for(;d.length>0;){const $=await d[0];if($===mi)return;if(o.aborted)throw new de;$!==pt&&(yield $),d.shift(),b()}await new Si($=>{_=$})}}finally{w=!0,g&&(g(),g=null)}}).call(this)}function Zo(e=void 0){return e!=null&&je(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new de({cause:e.signal.reason});yield[r++,a]}}).call(this)}async function mn(e,t=void 0){for await(const r of xr.call(this,e,t))return!0;return!1}async function Xo(e,t=void 0){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);return!await mn.call(this,async(...r)=>!await e(...r),t)}async function el(e,t){for await(const r of xr.call(this,e,t))return r}async function tl(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a),pt}for await(const i of It.call(this,r,t));}function xr(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a)?i:pt}return It.call(this,r,t)}class rl extends Mo{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function il(e,t,r){var i;if(typeof e!="function")throw new rt("reducer",["Function","AsyncFunction"],e);r!=null&&je(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const _=new de(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await Wo(this.destroy(_)),_}const o=new jo,l=o.signal;if(r!=null&&r.signal){const _={once:!0,[Co]:this,[Fo]:!0};r.signal.addEventListener("abort",()=>o.abort(),_)}let d=!1;try{for await(const _ of this){var y;if(d=!0,r!=null&&(y=r.signal)!==null&&y!==void 0&&y.aborted)throw new de;a?t=await e(t,_,{signal:l}):(t=_,a=!0)}if(!d&&!a)throw new rl}finally{o.abort()}return t}async function nl(e){e!=null&&je(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new de(void 0,{cause:e.signal.reason});Vo(t,i)}return t}function al(e,t){const r=It.call(this,e,t);return(async function*(){for await(const a of r)yield*a}).call(this)}function xn(e){if(e=Qo(e),Yo(e))return 0;if(e<0)throw new Oo("number",">= 0",e);return e}function sl(e,t=void 0){return t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=xn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new de;for await(const o of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new de;e--<=0&&(yield o)}}).call(this)}function ol(e,t=void 0){return t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=xn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new de;for await(const o of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new de;if(e-- >0&&(yield o),e<=0)return}}).call(this)}_r.streamReturningOperators={asIndexedPairs:Ho(Zo,"readable.asIndexedPairs will be removed in a future version."),drop:sl,filter:xr,flatMap:al,map:It,take:ol,compose:Jo};_r.promiseReturningOperators={every:Xo,forEach:tl,reduce:il,toArray:nl,some:mn,find:el};var er,xi;function An(){if(xi)return er;xi=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:a}=we,{pipelineImpl:o}=mr,{finished:l}=me;vn();function d(...y){return new t((_,g)=>{let w,c;const h=y[y.length-1];if(h&&typeof h=="object"&&!i(h)&&!r(h)&&!a(h)){const p=e(y);w=p.signal,c=p.end}o(y,(p,b)=>{p?g(p):_(b)},{signal:w,end:c})})}return er={finished:l,pipeline:d},er}var Ai;function vn(){if(Ai)return Ot.exports;Ai=1;const{Buffer:e}=Ee,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:a}}=te,{streamReturningOperators:o,promiseReturningOperators:l}=_r,{codes:{ERR_ILLEGAL_CONSTRUCTOR:d}}=ne,y=Rn,{setDefaultHighWaterMark:_,getDefaultHighWaterMark:g}=vt,{pipeline:w}=mr,{destroyer:c}=He,h=me,p=An(),b=we,A=Ot.exports=wr.Stream;A.isDestroyed=b.isDestroyed,A.isDisturbed=b.isDisturbed,A.isErrored=b.isErrored,A.isReadable=b.isReadable,A.isWritable=b.isWritable,A.Readable=Tt();for(const N of r(o)){let W=function(...D){if(new.target)throw d();return A.Readable.from(i(R,this,D))};const R=o[N];t(W,"name",{__proto__:null,value:R.name}),t(W,"length",{__proto__:null,value:R.length}),t(A.Readable.prototype,N,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}for(const N of r(l)){let W=function(...D){if(new.target)throw d();return i(R,this,D)};const R=l[N];t(W,"name",{__proto__:null,value:R.name}),t(W,"length",{__proto__:null,value:R.length}),t(A.Readable.prototype,N,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}A.Writable=Sr(),A.Duplex=ge(),A.Transform=gn,A.PassThrough=wn,A.pipeline=w;const{addAbortSignal:$}=At;return A.addAbortSignal=$,A.finished=h,A.destroy=c,A.compose=y,A.setDefaultHighWaterMark=_,A.getDefaultHighWaterMark=g,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return p}}),t(w,a,{__proto__:null,enumerable:!0,get(){return p.pipeline}}),t(h,a,{__proto__:null,enumerable:!0,get(){return p.finished}}),A.Stream=A,A._isUint8Array=function(R){return R instanceof Uint8Array},A._uint8ArrayToBuffer=function(R){return e.from(R.buffer,R.byteOffset,R.byteLength)},Ot.exports}(function(e){const t=vn(),r=An(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(Li);var ll=Li.exports;class cl extends ll.Transform{constructor(t){super({decodeStrings:!0}),this._readableState.objectMode=!0;const r=new Di(t);let i,a;const o={onQuad:(l,d)=>{l&&this.emit("error",l)||d&&this.push(d)},onPrefix:(l,d)=>{this.emit("prefix",l,d)}};t&&t.comments&&(o.onComment=l=>{this.emit("comment",l)}),r.parse({on:(l,d)=>{switch(l){case"data":i=d;break;case"end":a=d;break}}},o),this._transform=(l,d,y)=>{i(l),y()},this._flush=l=>{a(),l()}}import(t){return t.on("data",r=>{this.write(r)}),t.on("end",()=>{this.end()}),t.on("error",r=>{this.emit("error",r)}),this}}export{Kn as B,tr as D,We as L,cl as N,Ti as Q,ce as T,Jn as V,ot as a,ll as b,zn as c,Di as d,vi as e,Zn as f,ue as n,st as t}; diff --git a/assets/index-DjJhAlRP.js b/assets/index-BMw9Z_By.js similarity index 99% rename from assets/index-DjJhAlRP.js rename to assets/index-BMw9Z_By.js index b5924eb..f79f567 100644 --- a/assets/index-DjJhAlRP.js +++ b/assets/index-BMw9Z_By.js @@ -1,4 +1,4 @@ -import{S as Fs}from"./index-BOvYCoiN.js";import{I as sa,M as gi,P as Ws,N as la,U as ca,h as Js,g as Us,a as hn,e as Bn,b as Ot,d as Lt,s as Hs}from"./main-UPTG37W_.js";import{c as Bs}from"./canonicalize-Bd8h0v92.js";var da={};/*! +import{S as Fs}from"./index-BOvYCoiN.js";import{I as sa,M as gi,P as Ws,N as la,U as ca,h as Js,g as Us,a as hn,e as Bn,b as Ot,d as Lt,s as Hs}from"./main-CO-45Vwa.js";import{c as Bs}from"./canonicalize-Bd8h0v92.js";var da={};/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. */const Vi=sa,Vs=gi,Gs=Ws,Gi=la;var ua=class{constructor({createMessageDigest:t=()=>new Vs("sha256"),canonicalIdMap:n=new Map,maxDeepIterations:r=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new Vi("_:c14n",n),this.createMessageDigest=t,this.maxDeepIterations=r,this.quads=null,this.deepIterations=null}async main(t){this.deepIterations=new Map,this.quads=t;for(const f of t)this._addBlankNodeQuadInfo({quad:f,component:f.subject}),this._addBlankNodeQuadInfo({quad:f,component:f.object}),this._addBlankNodeQuadInfo({quad:f,component:f.graph});const n=new Map,r=[...this.blankNodeInfo.keys()];let o=0;for(const f of r)++o%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:f,hashToBlankNodes:n});const a=[...n.keys()].sort(),i=[];for(const f of a){const c=n.get(f);if(c.length>1){i.push(c);continue}const p=c[0];this.canonicalIssuer.getId(p)}for(const f of i){const c=[];for(const p of f){if(this.canonicalIssuer.hasId(p))continue;const g=new Vi("_:b");g.getId(p);const d=await this.hashNDegreeQuads(p,g);c.push(d)}c.sort(qs);for(const p of c){const g=p.issuer.getOldIds();for(const d of g)this.canonicalIssuer.getId(d)}}const l=[];for(const f of this.quads){const c=Gi.serializeQuadComponents(this._componentWithCanonicalId(f.subject),f.predicate,this._componentWithCanonicalId(f.object),this._componentWithCanonicalId(f.graph));l.push(c)}return l.sort(),l.join("")}async hashFirstDegreeQuads(t){const n=[],r=this.blankNodeInfo.get(t),o=r.quads;for(const i of o){const l={subject:null,predicate:i.predicate,object:null,graph:null};l.subject=this.modifyFirstDegreeComponent(t,i.subject,"subject"),l.object=this.modifyFirstDegreeComponent(t,i.object,"object"),l.graph=this.modifyFirstDegreeComponent(t,i.graph,"graph"),n.push(Gi.serializeQuad(l))}n.sort();const a=this.createMessageDigest();for(const i of n)a.update(i);return r.hash=await a.digest(),r.hash}async hashRelatedBlankNode(t,n,r,o){let a;this.canonicalIssuer.hasId(t)?a=this.canonicalIssuer.getId(t):r.hasId(t)?a=r.getId(t):a=this.blankNodeInfo.get(t).hash;const i=this.createMessageDigest();return i.update(o),o!=="g"&&i.update(this.getRelatedPredicate(n)),i.update(a),i.digest()}async hashNDegreeQuads(t,n){const r=this.deepIterations.get(t)||0;if(r>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(t,r+1);const o=this.createMessageDigest(),a=await this.createHashToRelated(t,n),i=[...a.keys()].sort();for(const l of i){o.update(l);let f="",c;const p=new Gs(a.get(l));let g=0;for(;p.hasNext();){const d=p.next();++g%3===0&&await this._yield();let s=n.clone(),u="";const y=[];let w=!1;for(const v of d)if(this.canonicalIssuer.hasId(v)?u+=this.canonicalIssuer.getId(v):(s.hasId(v)||y.push(v),u+=s.getId(v)),f.length!==0&&u>f){w=!0;break}if(!w){for(const v of y){const E=await this.hashNDegreeQuads(v,s);if(u+=s.getId(v),u+=`<${E.hash}>`,s=E.issuer,f.length!==0&&u>f){w=!0;break}}w||(f.length===0||u`}async createHashToRelated(t,n){const r=new Map,o=this.blankNodeInfo.get(t).quads;let a=0;for(const i of o)++a%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:i,component:i.subject,position:"s",id:t,issuer:n,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:i,component:i.object,position:"o",id:t,issuer:n,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:i,component:i.graph,position:"g",id:t,issuer:n,hashToRelated:r})]);return r}async _hashAndTrackBlankNode({id:t,hashToBlankNodes:n}){const r=await this.hashFirstDegreeQuads(t),o=n.get(r);o?o.push(t):n.set(r,[t])}_addBlankNodeQuadInfo({quad:t,component:n}){if(n.termType!=="BlankNode")return;const r=n.value,o=this.blankNodeInfo.get(r);o?o.quads.add(t):this.blankNodeInfo.set(r,{quads:new Set([t]),hash:null})}async _addRelatedBlankNodeHash({quad:t,component:n,position:r,id:o,issuer:a,hashToRelated:i}){if(!(n.termType==="BlankNode"&&n.value!==o))return;const l=n.value,f=await this.hashRelatedBlankNode(l,t,a,r),c=i.get(f);c?c.push(l):i.set(f,[l])}_componentWithCanonicalId(t){return t.termType==="BlankNode"&&!t.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(t.value)}:t}async _yield(){return new Promise(t=>setImmediate(t))}};function qs(e,t){return e.hasht.hash?1:0}/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. diff --git a/assets/index-C7nnL0Je.js b/assets/index-CpxM9Dlb.js similarity index 99% rename from assets/index-C7nnL0Je.js rename to assets/index-CpxM9Dlb.js index 492447d..913d891 100644 --- a/assets/index-C7nnL0Je.js +++ b/assets/index-CpxM9Dlb.js @@ -1,3 +1,3 @@ -import{S as ci}from"./index-BOvYCoiN.js";import{a as qe,e as ot,b as Ie,d as $e,s as bi,t as hi}from"./main-UPTG37W_.js";import{r as pi}from"./readable-BmS1kvD9.js";var fn={exports:{}},mt={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},un={exports:{}};(function(e){const t=Ie,{kResistStopPropagation:r,SymbolDispose:i}=H,l=globalThis.AbortSignal||qe().AbortSignal,s=globalThis.AbortController||qe().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,g=globalThis.Blob||t.Blob,R=typeof g<"u"?function(u){return u instanceof g}:function(u){return!1},b=(c,u)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let h=0;h{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let h=0;h{c=h,u=A}),resolve:c,reject:u}},promisify(c){return new Promise((u,m)=>{c((h,...A)=>h?m(h):u(...A))})},debuglog(){return function(){}},format(c,...u){return c.replace(/%([sdifj])/g,function(...[m,h]){const A=u.shift();return h==="f"?A.toFixed(6):h==="j"?JSON.stringify(A):h==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof d},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:R,deprecate(c,u){return c},addAbortListener:ot.addAbortListener||function(u,m){if(u===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",u);b(u,"signal"),_(m,"listener");let h;return u.aborted?queueMicrotask(()=>m()):(u.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),h=()=>{u.removeEventListener("abort",m)}),{__proto__:null,[i](){var A;(A=h)===null||A===void 0||A()}}},AbortSignalAny:l.any||function(u){if(u.length===1)return u[0];const m=new s,h=()=>m.abort();return u.forEach(A=>{b(A,"signals"),A.addEventListener("abort",h,{once:!0})}),m.signal.addEventListener("abort",()=>{u.forEach(A=>A.removeEventListener("abort",h))},{once:!0}),m.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(un);var te=un.exports,Zt={};const{format:_i,inspect:rt,AggregateError:yi}=te,wi=globalThis.AggregateError||yi,gi=Symbol("kIsNodeError"),Si=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ei=/^([A-Z][a-z0-9]*)+$/,Ri="__node_internal_",lt={};function ve(e,t){if(!e)throw new lt.ERR_INTERNAL_ASSERTION(t)}function Er(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ai(e,t,r){if(typeof t=="function")return ve(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return ve(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:_i(t,...r)}function Q(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(Ai(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[gi]=!0,lt[e]=i}function Rr(e){const t=Ri+e.name;return Object.defineProperty(e,"name",{value:t}),e}function mi(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new wi([t,e],t.message);return r.code=t.code,r}return e||t}let vi=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new lt.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Q("ERR_ASSERTION","%s",Error);Q("ERR_INVALID_ARG_TYPE",(e,t,r)=>{ve(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const l=[],s=[],d=[];for(const R of t)ve(typeof R=="string","All expected entries have to be of type string"),Si.includes(R)?l.push(R.toLowerCase()):Ei.test(R)?s.push(R):(ve(R!=="object",'The value "object" should be written as "Object"'),d.push(R));if(s.length>0){const R=l.indexOf("object");R!==-1&&(l.splice(l,R,1),s.push("Object"))}if(l.length>0){switch(l.length){case 1:i+=`of type ${l[0]}`;break;case 2:i+=`one of type ${l[0]} or ${l[1]}`;break;default:{const R=l.pop();i+=`one of type ${l.join(", ")}, or ${R}`}}(s.length>0||d.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const R=s.pop();i+=`an instance of ${s.join(", ")}, or ${R}`}}d.length>0&&(i+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(i+="an "),i+=`${d[0]}`;break;case 2:i+=`one of ${d[0]} or ${d[1]}`;break;default:{const R=d.pop();i+=`one of ${d.join(", ")}, or ${R}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var g;if((g=r.constructor)!==null&&g!==void 0&&g.name)i+=`. Received an instance of ${r.constructor.name}`;else{const R=rt(r,{depth:-1});i+=`. Received ${R}`}}else{let R=rt(r,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),i+=`. Received type ${typeof r} (${R})`}return i},TypeError);Q("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=rt(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Q("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const l=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${l}.`},TypeError);Q("ERR_MISSING_ARGS",(...e)=>{ve(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Q("ERR_OUT_OF_RANGE",(e,t,r)=>{ve(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Er(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Er(i)),i+="n"):i=rt(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Q("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Q("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Q("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Q("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Q("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Q("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Q("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Q("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Q("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Q("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ie={AbortError:vi,aggregateTwoErrors:Rr(mi),hideStackFrames:Rr,codes:lt};const{ArrayIsArray:er,ArrayPrototypeIncludes:dn,ArrayPrototypeJoin:cn,ArrayPrototypeMap:Ti,NumberIsInteger:tr,NumberIsNaN:Ii,NumberMAX_SAFE_INTEGER:$i,NumberMIN_SAFE_INTEGER:Ni,NumberParseInt:Di,ObjectPrototypeHasOwnProperty:Mi,RegExpPrototypeExec:bn,String:ki,StringPrototypeToUpperCase:Pi,StringPrototypeTrim:Li}=H,{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:Oi,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:Fe,ERR_OUT_OF_RANGE:Te,ERR_UNKNOWN_SIGNAL:Ar}}=ie,{normalizeEncoding:Wi}=te,{isAsyncFunction:xi,isArrayBufferView:Ci}=te.types,mr={};function Fi(e){return e===(e|0)}function ji(e){return e===e>>>0}const Ui=/^[0-7]+$/,Bi="must be a 32-bit unsigned integer or an octal string";function Gi(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(bn(Ui,e)===null)throw new Fe(t,e,Bi);e=Di(e,8)}return hn(e,t),e}const Vi=ae((e,t,r=Ni,i=$i)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),Hi=ae((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),hn=ae((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);const i=r?1:0,l=4294967295;if(el)throw new Te(t,`>= ${i} && <= ${l}`,e)});function rr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function qi(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&Ii(e))throw new Te(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const Yi=ae((e,t,r)=>{if(!dn(r,e)){const l="must be one of: "+cn(Ti(r,s=>typeof s=="string"?`'${s}'`:ki(s)),", ");throw new Fe(t,e,l)}});function pn(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function vt(e,t,r){return e==null||!Mi(e,t)?r:e[t]}const zi=ae((e,t,r=null)=>{const i=vt(r,"allowArray",!1),l=vt(r,"allowFunction",!1);if(!vt(r,"nullable",!1)&&e===null||!i&&er(e)||typeof e!="object"&&(!l||typeof e!="function"))throw new ee(t,"Object",e)}),Ki=ae((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),at=ae((e,t,r=0)=>{if(!er(e))throw new ee(t,"Array",e);if(e.length{if(!Ci(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function to(e,t){const r=Wi(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Fe("encoding",t,`is invalid for data of length ${i}`)}function ro(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Li(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Oi(t,e,r);return e|0}const _n=ae((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),no=ae((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),io=ae((e,t)=>{if(typeof e!="function"||xi(e))throw new ee(t,"Function",e)}),oo=ae((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function lo(e,t,r){if(!dn(r,e))throw new ee(t,`('${cn(r,"|")}')`,e)}const ao=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function vr(e,t){if(typeof e>"u"||!bn(ao,e))throw new Fe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function so(e){if(typeof e=="string")return vr(e,"hints"),e;if(er(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var Ye={isInt32:Fi,isUint32:ji,parseFileMode:Gi,validateArray:at,validateStringArray:Xi,validateBooleanArray:Ji,validateAbortSignalArray:Qi,validateBoolean:pn,validateBuffer:eo,validateDictionary:Ki,validateEncoding:to,validateFunction:no,validateInt32:Hi,validateInteger:Vi,validateNumber:qi,validateObject:zi,validateOneOf:Yi,validatePlainFunction:io,validatePort:ro,validateSignalName:Zi,validateString:rr,validateUint32:hn,validateUndefined:oo,validateUnion:lo,validateAbortSignal:_n,validateLinkHeaderValue:so},nr={exports:{}};const{SymbolAsyncIterator:Tr,SymbolIterator:Ir,SymbolFor:Ne}=H,yn=Ne("nodejs.stream.destroyed"),wn=Ne("nodejs.stream.errored"),Bt=Ne("nodejs.stream.readable"),Gt=Ne("nodejs.stream.writable"),gn=Ne("nodejs.stream.disturbed"),fo=Ne("nodejs.webstream.isClosedPromise"),uo=Ne("nodejs.webstream.controllerErrorFunction");function st(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function ft(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function co(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function de(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Sn(e){return!!(e&&!de(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function En(e){return!!(e&&!de(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Rn(e){return!!(e&&!de(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function bo(e){return Sn(e)||En(e)||Rn(e)}function ho(e,t){return e==null?!1:t===!0?typeof e[Tr]=="function":t===!1?typeof e[Ir]=="function":typeof e[Tr]=="function"||typeof e[Ir]=="function"}function ut(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[yn]||i!=null&&i.destroyed)}function An(e){if(!ft(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function po(e,t){if(!ft(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function _o(e){if(!st(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function mn(e,t){if(!st(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function vn(e){return e&&e[Bt]!=null?e[Bt]:typeof(e==null?void 0:e.readable)!="boolean"?null:ut(e)?!1:st(e)&&e.readable&&!mn(e)}function Tn(e){return e&&e[Gt]!=null?e[Gt]:typeof(e==null?void 0:e.writable)!="boolean"?null:ut(e)?!1:ft(e)&&e.writable&&!An(e)}function yo(e,t){return de(e)?ut(e)?!0:!((t==null?void 0:t.readable)!==!1&&vn(e)||(t==null?void 0:t.writable)!==!1&&Tn(e)):null}function wo(e){var t,r;return de(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function go(e){var t,r;return de(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function So(e){if(!de(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&In(e)?e._closed:null}function In(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function $n(e){return typeof e._sent100=="boolean"&&In(e)}function Eo(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function Ro(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&$n(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function Ao(e){var t;return!!(e&&((t=e[gn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function mo(e){var t,r,i,l,s,d,g,R,b,_;return!!(e&&((t=(r=(i=(l=(s=(d=e[wn])!==null&&d!==void 0?d:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&l!==void 0?l:(g=e._readableState)===null||g===void 0?void 0:g.errorEmitted)!==null&&i!==void 0?i:(R=e._writableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&r!==void 0?r:(b=e._readableState)===null||b===void 0?void 0:b.errored)!==null&&t!==void 0?t:!((_=e._writableState)===null||_===void 0)&&_.errored))}var ye={isDestroyed:ut,kIsDestroyed:yn,isDisturbed:Ao,kIsDisturbed:gn,isErrored:mo,kIsErrored:wn,isReadable:vn,kIsReadable:Bt,kIsClosedPromise:fo,kControllerErrorFunction:uo,kIsWritable:Gt,isClosed:So,isDuplexNodeStream:co,isFinished:yo,isIterable:ho,isReadableNodeStream:st,isReadableStream:Sn,isReadableEnded:_o,isReadableFinished:mn,isReadableErrored:go,isNodeStream:de,isWebStream:bo,isWritable:Tn,isWritableNodeStream:ft,isWritableStream:En,isWritableEnded:An,isWritableFinished:po,isWritableErrored:wo,isServerRequest:Eo,isServerResponse:$n,willEmitClose:Ro,isTransformStream:Rn};const ge=$e,{AbortError:Nn,codes:vo}=ie,{ERR_INVALID_ARG_TYPE:To,ERR_STREAM_PREMATURE_CLOSE:$r}=vo,{kEmptyObject:Vt,once:Ht}=te,{validateAbortSignal:Io,validateFunction:$o,validateObject:No,validateBoolean:Do}=Ye,{Promise:Mo,PromisePrototypeThen:ko,SymbolDispose:Dn}=H,{isClosed:Po,isReadable:Nr,isReadableNodeStream:Tt,isReadableStream:Lo,isReadableFinished:Dr,isReadableErrored:Mr,isWritable:kr,isWritableNodeStream:Pr,isWritableStream:Oo,isWritableFinished:Lr,isWritableErrored:Or,isNodeStream:Wo,willEmitClose:xo,kIsClosedPromise:Co}=ye;let xe;function Fo(e){return e.setHeader&&typeof e.abort=="function"}const qt=()=>{};function Mn(e,t,r){var i,l;if(arguments.length===2?(r=t,t=Vt):t==null?t=Vt:No(t,"options"),$o(r,"callback"),Io(t.signal,"options.signal"),r=Ht(r),Lo(e)||Oo(e))return jo(e,t,r);if(!Wo(e))throw new To("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:Tt(e),d=(l=t.writable)!==null&&l!==void 0?l:Pr(e),g=e._writableState,R=e._readableState,b=()=>{e.writable||c()};let _=xo(e)&&Tt(e)===s&&Pr(e)===d,v=Lr(e,!1);const c=()=>{v=!0,e.destroyed&&(_=!1),!(_&&(!e.readable||s))&&(!s||u)&&r.call(e)};let u=Dr(e,!1);const m=()=>{u=!0,e.destroyed&&(_=!1),!(_&&(!e.writable||d))&&(!d||v)&&r.call(e)},h=P=>{r.call(e,P)};let A=Po(e);const k=()=>{A=!0;const P=Or(e)||Mr(e);if(P&&typeof P!="boolean")return r.call(e,P);if(s&&!u&&Tt(e,!0)&&!Dr(e,!1))return r.call(e,new $r);if(d&&!v&&!Lr(e,!1))return r.call(e,new $r);r.call(e)},M=()=>{A=!0;const P=Or(e)||Mr(e);if(P&&typeof P!="boolean")return r.call(e,P);r.call(e)},y=()=>{e.req.on("finish",c)};Fo(e)?(e.on("complete",c),_||e.on("abort",k),e.req?y():e.on("request",y)):d&&!g&&(e.on("end",b),e.on("close",b)),!_&&typeof e.aborted=="boolean"&&e.on("aborted",k),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",h),e.on("close",k),A?ge.nextTick(k):g!=null&&g.errorEmitted||R!=null&&R.errorEmitted?_||ge.nextTick(M):(!s&&(!_||Nr(e))&&(v||kr(e)===!1)||!d&&(!_||kr(e))&&(u||Nr(e)===!1)||R&&e.req&&e.aborted)&&ge.nextTick(M);const j=()=>{r=qt,e.removeListener("aborted",k),e.removeListener("complete",c),e.removeListener("abort",k),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",b),e.removeListener("close",b),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",h),e.removeListener("close",k)};if(t.signal&&!A){const P=()=>{const X=r;j(),X.call(e,new Nn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)ge.nextTick(P);else{xe=xe||te.addAbortListener;const X=xe(t.signal,P),oe=r;r=Ht((...B)=>{X[Dn](),oe.apply(e,B)})}}return j}function jo(e,t,r){let i=!1,l=qt;if(t.signal)if(l=()=>{i=!0,r.call(e,new Nn(void 0,{cause:t.signal.reason}))},t.signal.aborted)ge.nextTick(l);else{xe=xe||te.addAbortListener;const d=xe(t.signal,l),g=r;r=Ht((...R)=>{d[Dn](),g.apply(e,R)})}const s=(...d)=>{i||ge.nextTick(()=>r.apply(e,d))};return ko(e[Co].promise,s,s),qt}function Uo(e,t){var r;let i=!1;return t===null&&(t=Vt),(r=t)!==null&&r!==void 0&&r.cleanup&&(Do(t.cleanup,"cleanup"),i=t.cleanup),new Mo((l,s)=>{const d=Mn(e,t,g=>{i&&d(),g?s(g):l()})})}nr.exports=Mn;nr.exports.finished=Uo;var Se=nr.exports;const fe=$e,{aggregateTwoErrors:Bo,codes:{ERR_MULTIPLE_CALLBACK:Go},AbortError:Vo}=ie,{Symbol:kn}=H,{kIsDestroyed:Ho,isDestroyed:qo,isFinished:Yo,isServerRequest:zo}=ye,Pn=kn("kDestroy"),Yt=kn("kConstruct");function Ln(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Ko(e,t){const r=this._readableState,i=this._writableState,l=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(Ln(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),l.constructed?Wr(this,e,t):this.once(Pn,function(s){Wr(this,Bo(s,e),t)}),this)}function Wr(e,t,r){let i=!1;function l(s){if(i)return;i=!0;const d=e._readableState,g=e._writableState;Ln(s,g,d),g&&(g.closed=!0),d&&(d.closed=!0),typeof r=="function"&&r(s),s?fe.nextTick(Xo,e,s):fe.nextTick(On,e)}try{e._destroy(t||null,l)}catch(s){l(s)}}function Xo(e,t){zt(e,t),On(e)}function On(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function zt(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Jo(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Kt(e,t,r){const i=e._readableState,l=e._writableState;if(l!=null&&l.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||l!=null&&l.autoDestroy?e.destroy(t):t&&(t.stack,l&&!l.errored&&(l.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(zt,e,t):zt(e,t))}function Qo(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Yt,t),!(e.listenerCount(Yt)>1)&&fe.nextTick(Zo,e)}function Zo(e){let t=!1;function r(i){if(t){Kt(e,i??new Go);return}t=!0;const l=e._readableState,s=e._writableState,d=s||l;l&&(l.constructed=!0),s&&(s.constructed=!0),d.destroyed?e.emit(Pn,i):i?Kt(e,i,!0):fe.nextTick(el,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function el(e){e.emit(Yt)}function xr(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Wn(e){e.emit("close")}function tl(e,t){e.emit("error",t),fe.nextTick(Wn,e)}function rl(e,t){!e||qo(e)||(!t&&!Yo(e)&&(t=new Vo),zo(e)?(e.socket=null,e.destroy(t)):xr(e)?e.abort():xr(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(tl,e,t):fe.nextTick(Wn,e),e.destroyed||(e[Ho]=!0))}var je={construct:Qo,destroyer:rl,destroy:Ko,undestroy:Jo,errorOrDestroy:Kt};const{ArrayIsArray:nl,ObjectSetPrototypeOf:xn}=H,{EventEmitter:dt}=ot;function ct(e){dt.call(this,e)}xn(ct.prototype,dt.prototype);xn(ct,dt);ct.prototype.pipe=function(e,t){const r=this;function i(_){e.writable&&e.write(_)===!1&&r.pause&&r.pause()}r.on("data",i);function l(){r.readable&&r.resume&&r.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",d),r.on("close",g));let s=!1;function d(){s||(s=!0,e.end())}function g(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function R(_){b(),dt.listenerCount(this,"error")===0&&this.emit("error",_)}Xt(r,"error",R),Xt(e,"error",R);function b(){r.removeListener("data",i),e.removeListener("drain",l),r.removeListener("end",d),r.removeListener("close",g),r.removeListener("error",R),e.removeListener("error",R),r.removeListener("end",b),r.removeListener("close",b),e.removeListener("close",b)}return r.on("end",b),r.on("close",b),e.on("close",b),e.emit("pipe",r),e};function Xt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):nl(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var ir={Stream:ct,prependListener:Xt},Cn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ie,{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=ye,g=Se,{ERR_INVALID_ARG_TYPE:R}=i;let b;const _=(v,c)=>{if(typeof v!="object"||!("aborted"in v))throw new R(c,"AbortSignal",v)};e.exports.addAbortSignal=function(c,u){if(_(c,"signal"),!l(u)&&!s(u))throw new R("stream",["ReadableStream","WritableStream","Stream"],u);return e.exports.addAbortSignalNoValidate(c,u)},e.exports.addAbortSignalNoValidate=function(v,c){if(typeof v!="object"||!("aborted"in v))return c;const u=l(c)?()=>{c.destroy(new r(void 0,{cause:v.reason}))}:()=>{c[d](new r(void 0,{cause:v.reason}))};if(v.aborted)u();else{b=b||te.addAbortListener;const m=b(v,u);g(c,m[t])}return c}})(Cn);var bt=Cn.exports;const{StringPrototypeSlice:Cr,SymbolIterator:il,TypedArrayPrototypeSet:Je,Uint8Array:ol}=H,{Buffer:It}=Ie,{inspect:ll}=te;var al=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return It.alloc(0);const r=It.allocUnsafe(t>>>0);let i=this.head,l=0;for(;i;)Je(r,i.data,l),l+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(ts.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++l,i.next?this.head=i.next:this.head=this.tail=null):(r+=Cr(s,0,t),this.head=i,i.data=Cr(s,t));break}++l}while((i=i.next)!==null);return this.length-=l,r}_getBuffer(t){const r=It.allocUnsafe(t),i=t;let l=this.head,s=0;do{const d=l.data;if(t>d.length)Je(r,d,i-t),t-=d.length;else{t===d.length?(Je(r,d,i-t),++s,l.next?this.head=l.next:this.head=this.tail=null):(Je(r,new ol(d.buffer,d.byteOffset,t),i-t),this.head=l,l.data=d.slice(t));break}++s}while((l=l.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return ll(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:sl,NumberIsInteger:fl}=H,{validateInteger:ul}=Ye,{ERR_INVALID_ARG_VALUE:dl}=ie.codes;let Fn=16*1024,jn=16;function cl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Un(e){return e?jn:Fn}function bl(e,t){ul(t,"value",0),e?jn=t:Fn=t}function hl(e,t,r,i){const l=cl(t,i,r);if(l!=null){if(!fl(l)||l<0){const s=i?`options.${r}`:"options.highWaterMark";throw new dl(s,l)}return sl(l)}return Un(e.objectMode)}var ht={getHighWaterMark:hl,getDefaultHighWaterMark:Un,setDefaultHighWaterMark:bl};const Fr=$e,{PromisePrototypeThen:pl,SymbolAsyncIterator:jr,SymbolIterator:Ur}=H,{Buffer:_l}=Ie,{ERR_INVALID_ARG_TYPE:yl,ERR_STREAM_NULL_VALUES:wl}=ie.codes;function gl(e,t,r){let i;if(typeof t=="string"||t instanceof _l)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let l;if(t&&t[jr])l=!0,i=t[jr]();else if(t&&t[Ur])l=!1,i=t[Ur]();else throw new yl("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;s._read=function(){d||(d=!0,R())},s._destroy=function(b,_){pl(g(b),()=>Fr.nextTick(_,b),v=>Fr.nextTick(_,v||b))};async function g(b){const _=b!=null,v=typeof i.throw=="function";if(_&&v){const{value:c,done:u}=await i.throw(b);if(await c,u)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function R(){for(;;){try{const{value:b,done:_}=l?await i.next():i.next();if(_)s.push(null);else{const v=b&&typeof b.then=="function"?await b:b;if(v===null)throw d=!1,new wl;if(s.push(v))continue;d=!1}}catch(b){s.destroy(b)}break}}return s}var Bn=gl,$t,Br;function pt(){if(Br)return $t;Br=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:d,ObjectSetPrototypeOf:g,Promise:R,SafeSet:b,SymbolAsyncDispose:_,SymbolAsyncIterator:v,Symbol:c}=H;$t=D,D.ReadableState=be;const{EventEmitter:u}=ot,{Stream:m,prependListener:h}=ir,{Buffer:A}=Ie,{addAbortSignal:k}=bt,M=Se;let y=te.debuglog("stream",n=>{y=n});const j=al,P=je,{getHighWaterMark:X,getDefaultHighWaterMark:oe}=ht,{aggregateTwoErrors:B,codes:{ERR_INVALID_ARG_TYPE:q,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ne,ERR_STREAM_PUSH_AFTER_EOF:W,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:w},AbortError:x}=ie,{validateObject:L}=Ye,O=c("kPaused"),{StringDecoder:Y}=bi,z=Bn;g(D.prototype,m.prototype),g(D,m);const V=()=>{},{errorOrDestroy:K}=P,C=1,ce=2,N=4,J=8,se=16,ke=32,Pe=64,Le=128,Ue=256,yt=512,Be=1024,Oe=2048,a=4096,f=8192,p=16384,I=32768,$=65536,U=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(o){o?this.state|=n:this.state&=~n}}}s(be.prototype,{objectMode:F(C),ended:F(ce),endEmitted:F(N),reading:F(J),constructed:F(se),sync:F(ke),needReadable:F(Pe),emittedReadable:F(Le),readableListening:F(Ue),resumeScheduled:F(yt),errorEmitted:F(Be),emitClose:F(Oe),autoDestroy:F(a),destroyed:F(f),closed:F(p),closeEmitted:F(I),multiAwaitDrain:F($),readingMore:F(U),dataEmitted:F(G)});function be(n,o,S){typeof S!="boolean"&&(S=o instanceof pe()),this.state=Oe|a|se|ke,n&&n.objectMode&&(this.state|=C),S&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?X(this,n,"readableHighWaterMark",S):oe(!1),this.buffer=new j,this.length=0,this.pipes=[],this.flowing=null,this[O]=null,n&&n.emitClose===!1&&(this.state&=~Oe),n&&n.autoDestroy===!1&&(this.state&=~a),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new Y(n.encoding),this.encoding=n.encoding)}function D(n){if(!(this instanceof D))return new D(n);const o=this instanceof pe();this._readableState=new be(n,this,o),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!o&&k(n.signal,this)),m.call(this,n),P.construct(this,()=>{this._readableState.needReadable&&Xe(this,this._readableState)})}D.prototype.destroy=P.destroy,D.prototype._undestroy=P.undestroy,D.prototype._destroy=function(n,o){o(n)},D.prototype[u.captureRejectionSymbol]=function(n){this.destroy(n)},D.prototype[_]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new x,this.destroy(n)),new R((o,S)=>M(this,E=>E&&E!==n?S(E):o(null)))},D.prototype.push=function(n,o){return we(this,n,o,!1)},D.prototype.unshift=function(n,o){return we(this,n,o,!0)};function we(n,o,S,E){y("readableAddChunk",o);const T=n._readableState;let Z;if(T.state&C||(typeof o=="string"?(S=S||T.defaultEncoding,T.encoding!==S&&(E&&T.encoding?o=A.from(o,S).toString(T.encoding):(o=A.from(o,S),S=""))):o instanceof A?S="":m._isUint8Array(o)?(o=m._uint8ArrayToBuffer(o),S=""):o!=null&&(Z=new q("chunk",["string","Buffer","Uint8Array"],o))),Z)K(n,Z);else if(o===null)T.state&=~J,ri(n,T);else if(T.state&C||o&&o.length>0)if(E)if(T.state&N)K(n,new w);else{if(T.destroyed||T.errored)return!1;wt(n,T,o,!0)}else if(T.ended)K(n,new W);else{if(T.destroyed||T.errored)return!1;T.state&=~J,T.decoder&&!S?(o=T.decoder.write(o),T.objectMode||o.length!==0?wt(n,T,o,!1):Xe(n,T)):wt(n,T,o,!1)}else E||(T.state&=~J,Xe(n,T));return!T.ended&&(T.length0?(o.state&$?o.awaitDrainWriters.clear():o.awaitDrainWriters=null,o.dataEmitted=!0,n.emit("data",S)):(o.length+=o.objectMode?1:S.length,E?o.buffer.unshift(S):o.buffer.push(S),o.state&Pe&&Ke(n)),Xe(n,o)}D.prototype.isPaused=function(){const n=this._readableState;return n[O]===!0||n.flowing===!1},D.prototype.setEncoding=function(n){const o=new Y(n);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;const S=this._readableState.buffer;let E="";for(const T of S)E+=o.write(T);return S.clear(),E!==""&&S.push(E),this._readableState.length=E.length,this};const ei=1073741824;function ti(n){if(n>ei)throw new ne("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function ur(n,o){return n<=0||o.length===0&&o.ended?0:o.state&C?1:i(n)?o.flowing&&o.length?o.buffer.first().length:o.length:n<=o.length?n:o.ended?o.length:0}D.prototype.read=function(n){y("read",n),n===void 0?n=NaN:r(n)||(n=l(n,10));const o=this._readableState,S=n;if(n>o.highWaterMark&&(o.highWaterMark=ti(n)),n!==0&&(o.state&=~Le),n===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return y("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?gt(this):Ke(this),null;if(n=ur(n,o),n===0&&o.ended)return o.length===0&>(this),null;let E=(o.state&Pe)!==0;if(y("need readable",E),(o.length===0||o.length-n0?T=pr(n,o):T=null,T===null?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.multiAwaitDrain?o.awaitDrainWriters.clear():o.awaitDrainWriters=null),o.length===0&&(o.ended||(o.needReadable=!0),S!==n&&o.ended&>(this)),T!==null&&!o.errorEmitted&&!o.closeEmitted&&(o.dataEmitted=!0,this.emit("data",T)),T};function ri(n,o){if(y("onEofChunk"),!o.ended){if(o.decoder){const S=o.decoder.end();S&&S.length&&(o.buffer.push(S),o.length+=o.objectMode?1:S.length)}o.ended=!0,o.sync?Ke(n):(o.needReadable=!1,o.emittedReadable=!0,dr(n))}}function Ke(n){const o=n._readableState;y("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(y("emitReadable",o.flowing),o.emittedReadable=!0,e.nextTick(dr,n))}function dr(n){const o=n._readableState;y("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&!o.errored&&(o.length||o.ended)&&(n.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,br(n)}function Xe(n,o){!o.readingMore&&o.constructed&&(o.readingMore=!0,e.nextTick(ni,n,o))}function ni(n,o){for(;!o.reading&&!o.ended&&(o.length1&&E.pipes.includes(n)&&(y("false write response, pause",E.awaitDrainWriters.size),E.awaitDrainWriters.add(n)),S.pause()),Ee||(Ee=ii(S,n),n.on("drain",Ee))}S.on("data",Sr);function Sr(Re){y("ondata");const he=n.write(Re);y("dest.write",he),he===!1&&gr()}function Et(Re){if(y("onerror",Re),Ge(),n.removeListener("error",Et),n.listenerCount("error")===0){const he=n._writableState||n._readableState;he&&!he.errorEmitted?K(n,Re):n.emit("error",Re)}}h(n,"error",Et);function Rt(){n.removeListener("finish",At),Ge()}n.once("close",Rt);function At(){y("onfinish"),n.removeListener("close",Rt),Ge()}n.once("finish",At);function Ge(){y("unpipe"),S.unpipe(n)}return n.emit("pipe",S),n.writableNeedDrain===!0?gr():E.flowing||(y("pipe resume"),S.resume()),n};function ii(n,o){return function(){const E=n._readableState;E.awaitDrainWriters===o?(y("pipeOnDrain",1),E.awaitDrainWriters=null):E.multiAwaitDrain&&(y("pipeOnDrain",E.awaitDrainWriters.size),E.awaitDrainWriters.delete(o)),(!E.awaitDrainWriters||E.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}D.prototype.unpipe=function(n){const o=this._readableState,S={hasUnpiped:!1};if(o.pipes.length===0)return this;if(!n){const T=o.pipes;o.pipes=[],this.pause();for(let Z=0;Z0,E.flowing!==!1&&this.resume()):n==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,y("on readable",E.length,E.reading),E.length?Ke(this):E.reading||e.nextTick(oi,this)),S},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(n,o){const S=m.prototype.removeListener.call(this,n,o);return n==="readable"&&e.nextTick(cr,this),S},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(n){const o=m.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(cr,this),o};function cr(n){const o=n._readableState;o.readableListening=n.listenerCount("readable")>0,o.resumeScheduled&&o[O]===!1?o.flowing=!0:n.listenerCount("data")>0?n.resume():o.readableListening||(o.flowing=null)}function oi(n){y("readable nexttick read 0"),n.read(0)}D.prototype.resume=function(){const n=this._readableState;return n.flowing||(y("resume"),n.flowing=!n.readableListening,li(this,n)),n[O]=!1,this};function li(n,o){o.resumeScheduled||(o.resumeScheduled=!0,e.nextTick(ai,n,o))}function ai(n,o){y("resume",o.reading),o.reading||n.read(0),o.resumeScheduled=!1,n.emit("resume"),br(n),o.flowing&&!o.reading&&n.read(0)}D.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this};function br(n){const o=n._readableState;for(y("flow",o.flowing);o.flowing&&n.read()!==null;);}D.prototype.wrap=function(n){let o=!1;n.on("data",E=>{!this.push(E)&&n.pause&&(o=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",E=>{K(this,E)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{o&&n.resume&&(o=!1,n.resume())};const S=d(n);for(let E=1;E{T=le?B(T,le):null,S(),S=V});try{for(;;){const le=n.destroyed?null:n.read();if(le!==null)yield le;else{if(T)throw T;if(T===null)return;await new R(E)}}}catch(le){throw T=B(T,le),T}finally{(T||(o==null?void 0:o.destroyOnReturn)!==!1)&&(T===void 0||n._readableState.autoDestroy)?P.destroyer(n,null):(n.off("readable",E),Z())}}s(D.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(n){this._readableState&&(this._readableState.flowing=n)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(be.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(n){this[O]=!!n}}}),D._fromList=pr;function pr(n,o){if(o.length===0)return null;let S;return o.objectMode?S=o.buffer.shift():!n||n>=o.length?(o.decoder?S=o.buffer.join(""):o.buffer.length===1?S=o.buffer.first():S=o.buffer.concat(o.length),o.buffer.clear()):S=o.buffer.consume(n,o.decoder),S}function gt(n){const o=n._readableState;y("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,e.nextTick(fi,o,n))}function fi(n,o){if(y("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,o.emit("end"),o.writable&&o.allowHalfOpen===!1)e.nextTick(ui,o);else if(n.autoDestroy){const S=o._writableState;(!S||S.autoDestroy&&(S.finished||S.writable===!1))&&o.destroy()}}}function ui(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}D.from=function(n,o){return z(D,n,o)};let St;function _r(){return St===void 0&&(St={}),St}return D.fromWeb=function(n,o){return _r().newStreamReadableFromReadableStream(n,o)},D.toWeb=function(n,o){return _r().newReadableStreamFromStreamReadable(n,o)},D.wrap=function(n,o){var S,E;return new D({objectMode:(S=(E=n.readableObjectMode)!==null&&E!==void 0?E:n.objectMode)!==null&&S!==void 0?S:!0,...o,destroy(T,Z){P.destroyer(n,T),Z(T)}}).wrap(n)},$t}var Nt,Gr;function or(){if(Gr)return Nt;Gr=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:g,Symbol:R,SymbolHasInstance:b}=H;Nt=L,L.WritableState=w;const{EventEmitter:_}=ot,v=ir.Stream,{Buffer:c}=Ie,u=je,{addAbortSignal:m}=bt,{getHighWaterMark:h,getDefaultHighWaterMark:A}=ht,{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:j,ERR_STREAM_DESTROYED:P,ERR_STREAM_ALREADY_FINISHED:X,ERR_STREAM_NULL_VALUES:oe,ERR_STREAM_WRITE_AFTER_END:B,ERR_UNKNOWN_ENCODING:q}=ie.codes,{errorOrDestroy:re}=u;d(L.prototype,v.prototype),d(L,v);function ne(){}const W=R("kOnFinished");function w(a,f,p){typeof p!="boolean"&&(p=f instanceof pe()),this.objectMode=!!(a&&a.objectMode),p&&(this.objectMode=this.objectMode||!!(a&&a.writableObjectMode)),this.highWaterMark=a?h(this,a,"writableHighWaterMark",p):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const I=!!(a&&a.decodeStrings===!1);this.decodeStrings=!I,this.defaultEncoding=a&&a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=K.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,x(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!a||a.emitClose!==!1,this.autoDestroy=!a||a.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[W]=[]}function x(a){a.buffered=[],a.bufferedIndex=0,a.allBuffers=!0,a.allNoop=!0}w.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},l(w.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function L(a){const f=this instanceof pe();if(!f&&!i(L,this))return new L(a);this._writableState=new w(a,this,f),a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final),typeof a.construct=="function"&&(this._construct=a.construct),a.signal&&m(a.signal,this)),v.call(this,a),u.construct(this,()=>{const p=this._writableState;p.writing||J(this,p),Le(this,p)})}l(L,b,{__proto__:null,value:function(a){return i(this,a)?!0:this!==L?!1:a&&a._writableState instanceof w}}),L.prototype.pipe=function(){re(this,new j)};function O(a,f,p,I){const $=a._writableState;if(typeof p=="function")I=p,p=$.defaultEncoding;else{if(!p)p=$.defaultEncoding;else if(p!=="buffer"&&!c.isEncoding(p))throw new q(p);typeof I!="function"&&(I=ne)}if(f===null)throw new oe;if(!$.objectMode)if(typeof f=="string")$.decodeStrings!==!1&&(f=c.from(f,p),p="buffer");else if(f instanceof c)p="buffer";else if(v._isUint8Array(f))f=v._uint8ArrayToBuffer(f),p="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],f);let U;return $.ending?U=new B:$.destroyed&&(U=new P("write")),U?(e.nextTick(I,U),re(a,U,!0),U):($.pendingcb++,Y(a,$,f,p,I))}L.prototype.write=function(a,f,p){return O(this,a,f,p)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){const a=this._writableState;a.corked&&(a.corked--,a.writing||J(this,a))},L.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=g(f)),!c.isEncoding(f))throw new q(f);return this._writableState.defaultEncoding=f,this};function Y(a,f,p,I,$){const U=f.objectMode?1:p.length;f.length+=U;const G=f.lengthp.bufferedIndex&&J(a,p),I?p.afterWriteTickInfo!==null&&p.afterWriteTickInfo.cb===$?p.afterWriteTickInfo.count++:(p.afterWriteTickInfo={count:1,cb:$,stream:a,state:p},e.nextTick(C,p.afterWriteTickInfo)):ce(a,p,1,$))}function C({stream:a,state:f,count:p,cb:I}){return f.afterWriteTickInfo=null,ce(a,f,p,I)}function ce(a,f,p,I){for(!f.ending&&!a.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,a.emit("drain"));p-- >0;)f.pendingcb--,I();f.destroyed&&N(f),Le(a,f)}function N(a){if(a.writing)return;for(let $=a.bufferedIndex;$1&&a._writev){f.pendingcb-=U-1;const F=f.allNoop?ne:D=>{for(let we=G;we256?(p.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}L.prototype._write=function(a,f,p){if(this._writev)this._writev([{chunk:a,encoding:f}],p);else throw new M("_write()")},L.prototype._writev=null,L.prototype.end=function(a,f,p){const I=this._writableState;typeof a=="function"?(p=a,a=null,f=null):typeof f=="function"&&(p=f,f=null);let $;if(a!=null){const U=O(this,a,f);U instanceof r&&($=U)}return I.corked&&(I.corked=1,this.uncork()),$||(!I.errored&&!I.ending?(I.ending=!0,Le(this,I,!0),I.ended=!0):I.finished?$=new X("end"):I.destroyed&&($=new P("end"))),typeof p=="function"&&($||I.finished?e.nextTick(p,$):I[W].push(p)),this};function se(a){return a.ending&&!a.destroyed&&a.constructed&&a.length===0&&!a.errored&&a.buffered.length===0&&!a.finished&&!a.writing&&!a.errorEmitted&&!a.closeEmitted}function ke(a,f){let p=!1;function I($){if(p){re(a,$??y());return}if(p=!0,f.pendingcb--,$){const U=f[W].splice(0);for(let G=0;G{se($)?Ue(I,$):$.pendingcb--},a,f)):se(f)&&(f.pendingcb++,Ue(a,f))))}function Ue(a,f){f.pendingcb--,f.finished=!0;const p=f[W].splice(0);for(let I=0;I{if(N!=null)throw new m("nully","body",N)},N=>{h(C,N)});return C=new q({objectMode:!0,readable:!1,write:Y,final(N){z(async()=>{try{await ce,e.nextTick(N,null)}catch(J){e.nextTick(N,J)}})},destroy:V})}throw new m("Iterable, AsyncIterable or AsyncFunction",x,O)}if(X(w))return W(w.arrayBuffer());if(l(w))return j(q,w,{objectMode:!0,writable:!1});if(b(w==null?void 0:w.readable)&&_(w==null?void 0:w.writable))return q.fromWeb(w);if(typeof(w==null?void 0:w.writable)=="object"||typeof(w==null?void 0:w.readable)=="object"){const O=w!=null&&w.readable?d(w==null?void 0:w.readable)?w==null?void 0:w.readable:W(w.readable):void 0,Y=w!=null&&w.writable?g(w==null?void 0:w.writable)?w==null?void 0:w.writable:W(w.writable):void 0;return ne({readable:O,writable:Y})}const L=w==null?void 0:w.then;if(typeof L=="function"){let O;return B(L,w,Y=>{Y!=null&&O.push(Y),O.push(null)},Y=>{h(O,Y)}),O=new q({objectMode:!0,writable:!1,read(){}})}throw new u(x,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],w)};function re(W){let{promise:w,resolve:x}=y();const L=new oe,O=L.signal;return{value:W(async function*(){for(;;){const z=w;w=null;const{chunk:V,done:K,cb:C}=await z;if(e.nextTick(C),K)return;if(O.aborted)throw new c(void 0,{cause:O.reason});({promise:w,resolve:x}=y()),yield V}}(),{signal:O}),write(z,V,K){const C=x;x=null,C({chunk:z,done:!1,cb:K})},final(z){const V=x;x=null,V({done:!0,cb:z})},destroy(z,V){L.abort(),V(z)}}}function ne(W){const w=W.readable&&typeof W.readable.read!="function"?k.wrap(W.readable):W.readable,x=W.writable;let L=!!r(w),O=!!i(x),Y,z,V,K,C;function ce(N){const J=K;K=null,J?J(N):N&&C.destroy(N)}return C=new q({readableObjectMode:!!(w!=null&&w.readableObjectMode),writableObjectMode:!!(x!=null&&x.writableObjectMode),readable:L,writable:O}),O&&(v(x,N=>{O=!1,N&&h(w,N),ce(N)}),C._write=function(N,J,se){x.write(N,J)?se():Y=se},C._final=function(N){x.end(),z=N},x.on("drain",function(){if(Y){const N=Y;Y=null,N()}}),x.on("finish",function(){if(z){const N=z;z=null,N()}})),L&&(v(w,N=>{L=!1,N&&h(w,N),ce(N)}),w.on("readable",function(){if(V){const N=V;V=null,N()}}),w.on("end",function(){C.push(null)}),C._read=function(){for(;;){const N=w.read();if(N===null){V=C._read;return}if(!C.push(N))return}}),C._destroy=function(N,J){!N&&K!==null&&(N=new c),V=null,Y=null,z=null,K===null?J(N):(K=J,h(x,N),h(w,N))},C}return Dt}var Mt,Hr;function pe(){if(Hr)return Mt;Hr=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;Mt=d;const l=pt(),s=or();i(d.prototype,l.prototype),i(d,l);{const _=r(s.prototype);for(let v=0;v<_.length;v++){const c=_[v];d.prototype[c]||(d.prototype[c]=s.prototype[c])}}function d(_){if(!(this instanceof d))return new d(_);l.call(this,_),s.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(d.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});let g;function R(){return g===void 0&&(g={}),g}d.fromWeb=function(_,v){return R().newStreamDuplexFromReadableWritablePair(_,v)},d.toWeb=function(_){return R().newReadableWritablePairFromDuplex(_)};let b;return d.from=function(_){return b||(b=Sl()),b(_,"body")},Mt}const{ObjectSetPrototypeOf:Gn,Symbol:El}=H;var Vn=_e;const{ERR_METHOD_NOT_IMPLEMENTED:Rl}=ie.codes,lr=pe(),{getHighWaterMark:Al}=ht;Gn(_e.prototype,lr.prototype);Gn(_e,lr);const He=El("kCallback");function _e(e){if(!(this instanceof _e))return new _e(e);const t=e?Al(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),lr.call(this,e),this._readableState.sync=!1,this[He]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ml)}function Jt(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function ml(){this._final!==Jt&&Jt.call(this)}_e.prototype._final=Jt;_e.prototype._transform=function(e,t,r){throw new Rl("_transform()")};_e.prototype._write=function(e,t,r){const i=this._readableState,l=this._writableState,s=i.length;this._transform(e,t,(d,g)=>{if(d){r(d);return}g!=null&&this.push(g),l.ended||s===i.length||i.length{i=!0});const l=nt(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,Dl.destroyer(e,s||new Pl("pipe")))},cleanup:l}}function Ul(e){return Wl(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Ct(e){if(me(e))return e;if(tt(e))return Bl(e);throw new Qt("val",["Readable","Iterable","AsyncIterable"],e)}async function*Bl(e){Wt||(Wt=pt()),yield*Wt.prototype[Il].call(e)}async function Qe(e,t,r,{end:i}){let l,s=null;const d=b=>{if(b&&(l=b),s){const _=s;s=null,_()}},g=()=>new Tl((b,_)=>{l?_(l):s=()=>{l?_(l):b()}});t.on("drain",d);const R=nt(t,{readable:!1},d);try{t.writableNeedDrain&&await g();for await(const b of e)t.write(b)||await g();i&&(t.end(),await g()),r()}catch(b){r(l!==b?Ml(l,b):b)}finally{R(),t.off("drain",d)}}async function Ft(e,t,r,{end:i}){We(t)&&(t=t.writable);const l=t.getWriter();try{for await(const s of e)await l.ready,l.write(s).catch(()=>{});await l.ready,i&&await l.close(),r()}catch(s){try{await l.abort(s),r(s)}catch(d){r(d)}}}function Gl(...e){return Yn(e,Nl(Ul(e)))}function Yn(e,t,r){if(e.length===1&&vl(e[0])&&(e=e[0]),e.length<2)throw new kl("streams");const i=new jl,l=i.signal,s=r==null?void 0:r.signal,d=[];xl(s,"options.signal");function g(){m(new Ol)}xt=xt||te.addAbortListener;let R;s&&(R=xt(s,g));let b,_;const v=[];let c=0;function u(M){m(M,--c===0)}function m(M,y){var j;if(M&&(!b||b.code==="ERR_STREAM_PREMATURE_CLOSE")&&(b=M),!(!b&&!y)){for(;v.length;)v.shift()(b);(j=R)===null||j===void 0||j[$l](),i.abort(),y&&(b||d.forEach(P=>P()),Ve.nextTick(t,b,_))}}let h;for(let M=0;M0,X=j||(r==null?void 0:r.end)!==!1,oe=M===e.length-1;if(Yr(y)){let B=function(q){q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&u(q)};if(X){const{destroy:q,cleanup:re}=zr(y,j,P);v.push(q),Pt(y)&&oe&&d.push(re)}y.on("error",B),Pt(y)&&oe&&d.push(()=>{y.removeListener("error",B)})}if(M===0)if(typeof y=="function"){if(h=y({signal:l}),!me(h))throw new kt("Iterable, AsyncIterable or Stream","source",h)}else me(y)||tt(y)||We(y)?h=y:h=qr.from(y);else if(typeof y=="function"){if(We(h)){var A;h=Ct((A=h)===null||A===void 0?void 0:A.readable)}else h=Ct(h);if(h=y(h,{signal:l}),j){if(!me(h,!0))throw new kt("AsyncIterable",`transform[${M-1}]`,h)}else{var k;Ot||(Ot=qn);const B=new Ot({objectMode:!0}),q=(k=h)===null||k===void 0?void 0:k.then;if(typeof q=="function")c++,q.call(h,W=>{_=W,W!=null&&B.write(W),X&&B.end(),Ve.nextTick(u)},W=>{B.destroy(W),Ve.nextTick(u,W)});else if(me(h,!0))c++,Qe(h,B,u,{end:X});else if(Lt(h)||We(h)){const W=h.readable||h;c++,Qe(W,B,u,{end:X})}else throw new kt("AsyncIterable or Promise","destination",h);h=B;const{destroy:re,cleanup:ne}=zr(h,!1,!0);v.push(re),oe&&d.push(ne)}}else if(Yr(y)){if(tt(h)){c+=2;const B=Vl(h,y,u,{end:X});Pt(y)&&oe&&d.push(B)}else if(We(h)||Lt(h)){const B=h.readable||h;c++,Qe(B,y,u,{end:X})}else if(me(h))c++,Qe(h,y,u,{end:X});else throw new Qt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=y}else if(Cl(y)){if(tt(h))c++,Ft(Ct(h),y,u,{end:X});else if(Lt(h)||me(h))c++,Ft(h,y,u,{end:X});else if(We(h))c++,Ft(h.readable,y,u,{end:X});else throw new Qt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=y}else h=qr.from(y)}return(l!=null&&l.aborted||s!=null&&s.aborted)&&Ve.nextTick(g),h}function Vl(e,t,r,{end:i}){let l=!1;if(t.on("close",()=>{l||r(new Ll)}),e.pipe(t,{end:!1}),i){let s=function(){l=!0,t.end()};Fl(e)?Ve.nextTick(s):e.once("end",s)}else r();return nt(e,{readable:!0,writable:!1},s=>{const d=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&d&&d.ended&&!d.errored&&!d.errorEmitted?e.once("end",r).once("error",r):r(s)}),nt(t,{readable:!1,writable:!0},r)}var sr={pipelineImpl:Yn,pipeline:Gl};const{pipeline:Hl}=sr,Ze=pe(),{destroyer:ql}=je,{isNodeStream:et,isReadable:Kr,isWritable:Xr,isWebStream:jt,isTransformStream:Ae,isWritableStream:Jr,isReadableStream:Qr}=ye,{AbortError:Yl,codes:{ERR_INVALID_ARG_VALUE:Zr,ERR_MISSING_ARGS:zl}}=ie,Kl=Se;var zn=function(...t){if(t.length===0)throw new zl("streams");if(t.length===1)return Ze.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Ze.from(t[0])),typeof t[t.length-1]=="function"){const u=t.length-1;t[u]=Ze.from(t[u])}for(let u=0;u0&&!(Xr(t[u])||Jr(t[u])||Ae(t[u])))throw new Zr(`streams[${u}]`,r[u],"must be writable")}let i,l,s,d,g;function R(u){const m=d;d=null,m?m(u):u?g.destroy(u):!c&&!v&&g.destroy()}const b=t[0],_=Hl(t,R),v=!!(Xr(b)||Jr(b)||Ae(b)),c=!!(Kr(_)||Qr(_)||Ae(_));if(g=new Ze({writableObjectMode:!!(b!=null&&b.writableObjectMode),readableObjectMode:!!(_!=null&&_.readableObjectMode),writable:v,readable:c}),v){if(et(b))g._write=function(m,h,A){b.write(m,h)?A():i=A},g._final=function(m){b.end(),l=m},b.on("drain",function(){if(i){const m=i;i=null,m()}});else if(jt(b)){const h=(Ae(b)?b.writable:b).getWriter();g._write=async function(A,k,M){try{await h.ready,h.write(A).catch(()=>{}),M()}catch(y){M(y)}},g._final=async function(A){try{await h.ready,h.close().catch(()=>{}),l=A}catch(k){A(k)}}}const u=Ae(_)?_.readable:_;Kl(u,()=>{if(l){const m=l;l=null,m()}})}if(c){if(et(_))_.on("readable",function(){if(s){const u=s;s=null,u()}}),_.on("end",function(){g.push(null)}),g._read=function(){for(;;){const u=_.read();if(u===null){s=g._read;return}if(!g.push(u))return}};else if(jt(_)){const m=(Ae(_)?_.readable:_).getReader();g._read=async function(){for(;;)try{const{value:h,done:A}=await m.read();if(!g.push(h))return;if(A){g.push(null);return}}catch{return}}}}return g._destroy=function(u,m){!u&&d!==null&&(u=new Yl),s=null,i=null,l=null,d===null?m(u):(d=m,et(_)&&ql(_,u))},g};const Xl=globalThis.AbortController||qe().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jl,ERR_INVALID_ARG_TYPE:ze,ERR_MISSING_ARGS:Ql,ERR_OUT_OF_RANGE:Zl},AbortError:ue}=ie,{validateAbortSignal:De,validateInteger:en,validateObject:Me}=Ye,ea=H.Symbol("kWeak"),ta=H.Symbol("kResistStopPropagation"),{finished:ra}=Se,na=zn,{addAbortSignalNoValidate:ia}=bt,{isWritable:oa,isNodeStream:la}=ye,{deprecate:aa}=te,{ArrayPrototypePush:sa,Boolean:fa,MathFloor:tn,Number:ua,NumberIsNaN:da,Promise:rn,PromiseReject:nn,PromiseResolve:ca,PromisePrototypeThen:on,Symbol:Kn}=H,it=Kn("kEmpty"),ln=Kn("kEof");function ba(e,t){if(t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),la(e)&&!oa(e))throw new Jl("stream",e,"must be writable");const r=na(this,e);return t!=null&&t.signal&&ia(t.signal,r),r}function _t(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=tn(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=tn(t.highWaterMark)),en(r,"options.concurrency",1),en(i,"options.highWaterMark",0),i+=r,(async function*(){const s=te.AbortSignalAny([t==null?void 0:t.signal].filter(fa)),d=this,g=[],R={signal:s};let b,_,v=!1,c=0;function u(){v=!0,m()}function m(){c-=1,h()}function h(){_&&!v&&c=i||c>=r)&&await new rn(M=>{_=M})}g.push(ln)}catch(k){const M=nn(k);on(M,m,u),g.push(M)}finally{v=!0,b&&(b(),b=null)}}A();try{for(;;){for(;g.length>0;){const k=await g[0];if(k===ln)return;if(s.aborted)throw new ue;k!==it&&(yield k),g.shift(),h()}await new rn(k=>{b=k})}}finally{v=!0,_&&(_(),_=null)}}).call(this)}function ha(e=void 0){return e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const l of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ue({cause:e.signal.reason});yield[r++,l]}}).call(this)}async function Xn(e,t=void 0){for await(const r of fr.call(this,e,t))return!0;return!1}async function pa(e,t=void 0){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);return!await Xn.call(this,async(...r)=>!await e(...r),t)}async function _a(e,t){for await(const r of fr.call(this,e,t))return r}async function ya(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l),it}for await(const i of _t.call(this,r,t));}function fr(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l)?i:it}return _t.call(this,r,t)}class wa extends Ql{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function ga(e,t,r){var i;if(typeof e!="function")throw new ze("reducer",["Function","AsyncFunction"],e);r!=null&&Me(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let l=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const b=new ue(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await ra(this.destroy(b)),b}const s=new Xl,d=s.signal;if(r!=null&&r.signal){const b={once:!0,[ea]:this,[ta]:!0};r.signal.addEventListener("abort",()=>s.abort(),b)}let g=!1;try{for await(const b of this){var R;if(g=!0,r!=null&&(R=r.signal)!==null&&R!==void 0&&R.aborted)throw new ue;l?t=await e(t,b,{signal:d}):(t=b,l=!0)}if(!g&&!l)throw new wa}finally{s.abort()}return t}async function Sa(e){e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new ue(void 0,{cause:e.signal.reason});sa(t,i)}return t}function Ea(e,t){const r=_t.call(this,e,t);return(async function*(){for await(const l of r)yield*l}).call(this)}function Jn(e){if(e=ua(e),da(e))return 0;if(e<0)throw new Zl("number",">= 0",e);return e}function Ra(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Jn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;e--<=0&&(yield s)}}).call(this)}function Aa(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Jn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;if(e-- >0&&(yield s),e<=0)return}}).call(this)}Zt.streamReturningOperators={asIndexedPairs:aa(ha,"readable.asIndexedPairs will be removed in a future version."),drop:Ra,filter:fr,flatMap:Ea,map:_t,take:Aa,compose:ba};Zt.promiseReturningOperators={every:pa,forEach:ya,reduce:ga,toArray:Sa,some:Xn,find:_a};var Ut,an;function Qn(){if(an)return Ut;an=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:l}=ye,{pipelineImpl:s}=sr,{finished:d}=Se;Zn();function g(...R){return new t((b,_)=>{let v,c;const u=R[R.length-1];if(u&&typeof u=="object"&&!i(u)&&!r(u)&&!l(u)){const m=e(R);v=m.signal,c=m.end}s(R,(m,h)=>{m?_(m):b(h)},{signal:v,end:c})})}return Ut={finished:d,pipeline:g},Ut}var sn;function Zn(){if(sn)return mt.exports;sn=1;const{Buffer:e}=Ie,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:l}}=te,{streamReturningOperators:s,promiseReturningOperators:d}=Zt,{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=ie,R=zn,{setDefaultHighWaterMark:b,getDefaultHighWaterMark:_}=ht,{pipeline:v}=sr,{destroyer:c}=je,u=Se,m=Qn(),h=ye,A=mt.exports=ir.Stream;A.isDestroyed=h.isDestroyed,A.isDisturbed=h.isDisturbed,A.isErrored=h.isErrored,A.isReadable=h.isReadable,A.isWritable=h.isWritable,A.Readable=pt();for(const M of r(s)){let j=function(...P){if(new.target)throw g();return A.Readable.from(i(y,this,P))};const y=s[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(const M of r(d)){let j=function(...P){if(new.target)throw g();return i(y,this,P)};const y=d[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}A.Writable=or(),A.Duplex=pe(),A.Transform=Vn,A.PassThrough=qn,A.pipeline=v;const{addAbortSignal:k}=bt;return A.addAbortSignal=k,A.finished=u,A.destroy=c,A.compose=R,A.setDefaultHighWaterMark=b,A.getDefaultHighWaterMark=_,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),t(v,l,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),t(u,l,{__proto__:null,enumerable:!0,get(){return m.finished}}),A.Stream=A,A._isUint8Array=function(y){return y instanceof Uint8Array},A._uint8ArrayToBuffer=function(y){return e.from(y.buffer,y.byteOffset,y.byteLength)},mt.exports}(function(e){const t=Zn(),r=Qn(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(fn);var ma=fn.exports;class va{constructor(t){const r=new ma.Transform({objectMode:!0,transform:(i,l,s)=>{s(null,`${hi(i)} `)}});return t.pipe(r),pi(r)}}class Ma extends ci{constructor(){super(va)}}export{Ma as default}; diff --git a/assets/index-RV_eTkg7.js b/assets/index-d5GvA7NS.js similarity index 99% rename from assets/index-RV_eTkg7.js rename to assets/index-d5GvA7NS.js index fedd4f4..3da0591 100644 --- a/assets/index-RV_eTkg7.js +++ b/assets/index-d5GvA7NS.js @@ -1,4 +1,4 @@ -import{S as Pf}from"./index-BOvYCoiN.js";import{b as be,c as dt,a as Ge,e as ct,d as Ie,s as ks,f as kf}from"./main-UPTG37W_.js";import{r as Mf}from"./readable-BmS1kvD9.js";import{r as ao,a as Vf}from"./index-BlwBIAJx.js";import{c as jf}from"./canonicalize-Bd8h0v92.js";var Ms={},dr={},{Buffer:ft}=be,re={},Vs=re.LEFT_BRACE=1,Ur=re.RIGHT_BRACE=2,js=re.LEFT_BRACKET=3,ki=re.RIGHT_BRACKET=4,Wr=re.COLON=5,Kr=re.COMMA=6,Fs=re.TRUE=7,Us=re.FALSE=8,Ws=re.NULL=9,Jr=re.STRING=10,Bs=re.NUMBER=11,It=re.START=17,Gs=re.STOP=18,Do=re.TRUE1=33,Lo=re.TRUE2=34,Po=re.TRUE3=35,ko=re.FALSE1=49,Mo=re.FALSE2=50,Vo=re.FALSE3=51,jo=re.FALSE4=52,Fo=re.NULL1=65,Uo=re.NULL2=66,Wo=re.NULL3=67,Bo=re.NUMBER1=81,Qn=re.NUMBER3=83,Ve=re.STRING1=97,Go=re.STRING2=98,Ho=re.STRING3=99,Ff=re.STRING4=100,Uf=re.STRING5=101,Ko=re.STRING6=102,Wt=re.VALUE=113,Zn=re.KEY=114,Cr=re.OBJECT=129,Nr=re.ARRAY=130,Wf=92,Bf=47,Gf=8,Hf=12,Kf=10,Jf=13,qf=9,so=64*1024;function Or(e){return ft.alloc?ft.alloc(e):new ft(e)}function ut(){this.tState=It,this.value=void 0,this.string=void 0,this.stringBuffer=Or(so),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Wt,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Or(2),3:Or(3),4:Or(4)},this.offset=-1}ut.toknam=function(e){for(var t=Object.keys(re),r=0,n=t.length;r=so&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=e};$e.appendStringBuf=function(e,t,r){var n=e.length;typeof t=="number"&&(typeof r=="number"?r<0?n=e.length-t+r:n=r-t:n=e.length-t),n<0&&(n=0),this.stringBufferOffset+n>so&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),e.copy(this.stringBuffer,this.stringBufferOffset,t,r),this.stringBufferOffset+=n};$e.write=function(e){typeof e=="string"&&(e=new ft(e));for(var t,r=0,n=e.length;r=48&&t<64)this.string=String.fromCharCode(t),this.tState=Qn;else if(!(t===32||t===9||t===10||t===13))return this.charError(e,r)}else if(this.tState===Ve)if(t=e[r],this.bytes_remaining>0){for(var o=0;o=128){if(t<=193||t>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+ut.toknam(this.tState)));if(t>=194&&t<=223&&(this.bytes_in_sequence=2),t>=224&&t<=239&&(this.bytes_in_sequence=3),t>=240&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>e.length){for(var a=0;a<=e.length-1-r;a++)this.temp_buffs[this.bytes_in_sequence][a]=e[r+a];this.bytes_remaining=r+this.bytes_in_sequence-e.length,r=e.length-1}else this.appendStringBuf(e,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(t===34)this.tState=It,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Jr,this.string),this.offset+=ft.byteLength(this.string,"utf8")+1,this.string=void 0;else if(t===92)this.tState=Go;else if(t>=32)this.appendStringChar(t);else return this.charError(e,r);else if(this.tState===Go)if(t=e[r],t===34)this.appendStringChar(t),this.tState=Ve;else if(t===92)this.appendStringChar(Wf),this.tState=Ve;else if(t===47)this.appendStringChar(Bf),this.tState=Ve;else if(t===98)this.appendStringChar(Gf),this.tState=Ve;else if(t===102)this.appendStringChar(Hf),this.tState=Ve;else if(t===110)this.appendStringChar(Kf),this.tState=Ve;else if(t===114)this.appendStringChar(Jf),this.tState=Ve;else if(t===116)this.appendStringChar(qf),this.tState=Ve;else if(t===117)this.unicode="",this.tState=Ho;else return this.charError(e,r);else if(this.tState===Ho||this.tState===Ff||this.tState===Uf||this.tState===Ko)if(t=e[r],t>=48&&t<64||t>64&&t<=70||t>96&&t<=102){if(this.unicode+=String.fromCharCode(t),this.tState++===Ko){var i=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&i>=56320&&i<57344?(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate,i))),this.highSurrogate=void 0):this.highSurrogate===void 0&&i>=55296&&i<56320?this.highSurrogate=i:(this.highSurrogate!==void 0&&(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new ft(String.fromCharCode(i)))),this.tState=Ve}}else return this.charError(e,r);else if(this.tState===Bo||this.tState===Qn)switch(t=e[r],t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=Qn;break;default:this.tState=It;var l=this.numberReviver(this.string,e,r);if(l)return l;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===Do)if(e[r]===114)this.tState=Lo;else return this.charError(e,r);else if(this.tState===Lo)if(e[r]===117)this.tState=Po;else return this.charError(e,r);else if(this.tState===Po)if(e[r]===101)this.tState=It,this.onToken(Fs,!0),this.offset+=3;else return this.charError(e,r);else if(this.tState===ko)if(e[r]===97)this.tState=Mo;else return this.charError(e,r);else if(this.tState===Mo)if(e[r]===108)this.tState=Vo;else return this.charError(e,r);else if(this.tState===Vo)if(e[r]===115)this.tState=jo;else return this.charError(e,r);else if(this.tState===jo)if(e[r]===101)this.tState=It,this.onToken(Us,!1),this.offset+=4;else return this.charError(e,r);else if(this.tState===Fo)if(e[r]===117)this.tState=Uo;else return this.charError(e,r);else if(this.tState===Uo)if(e[r]===108)this.tState=Wo;else return this.charError(e,r);else if(this.tState===Wo)if(e[r]===108)this.tState=It,this.onToken(Ws,null),this.offset+=3;else return this.charError(e,r)};$e.onToken=function(e,t){};$e.parseError=function(e,t){this.tState=Gs,this.onError(new Error("Unexpected "+ut.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+ut.toknam(this.state)))};$e.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};$e.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=Wt)};$e.emit=function(e){this.mode&&(this.state=Kr),this.onValue(e)};$e.onValue=function(e){};$e.onToken=function(e,t){if(this.state===Wt)if(e===Jr||e===Bs||e===Fs||e===Us||e===Ws)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===Vs)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Zn,this.mode=Cr;else if(e===js)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Nr,this.state=Wt;else if(e===Ur)if(this.mode===Cr)this.pop();else return this.parseError(e,t);else if(e===ki)if(this.mode===Nr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t);else if(this.state===Zn)if(e===Jr)this.key=t,this.state=Wr;else if(e===Ur)this.pop();else return this.parseError(e,t);else if(this.state===Wr)if(e===Wr)this.state=Wt;else return this.parseError(e,t);else if(this.state===Kr)if(e===Kr)this.mode===Nr?(this.key++,this.state=Wt):this.mode===Cr&&(this.state=Zn);else if(e===ki&&this.mode===Nr||e===Ur&&this.mode===Cr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t)};$e.numberReviver=function(e,t,r){var n=Number(e);if(isNaN(n))return this.charError(t,r);e.match(/[0-9]+/)==e&&n.toString()!=e?this.onToken(Jr,e):this.onToken(Bs,n)};ut.C=re;var Yf=ut,Se={},en={},Jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ERROR_CODES=e.ErrorCoded=void 0;class t extends Error{constructor(n,o){super(n),this.code=o}}e.ErrorCoded=t,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(e.ERROR_CODES||(e.ERROR_CODES={}))})(Jt);var Ar={},zf=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,Xf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Qf=/\s|\uFEFF|\xA0/,Zf=/\r?\n[\x20\x09]+/g,ed=/[;,"]/,td=/[;,"]|\s/,rd=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,Xe={IDLE:1,URI:2,ATTR:4};function Jo(e){return e.replace(Xf,"")}function Br(e){return Qf.test(e)}function nd(e,t){for(;Br(e[t]);)t++;return t}function qo(e){return td.test(e)||!rd.test(e)}function id(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>r in t&&e[r]===t[r])}class ae{constructor(t){this.refs=[],t&&this.parse(t)}rel(t){for(var r=[],n=t.toLowerCase(),o=0;oid(r,t))||this.refs.push(t),this}has(t,r){t=t.toLowerCase(),r=r.toLowerCase();for(var n=0;n",a);if(l===-1)throw new Error("Expected end of URI delimiter at offset "+a);i={uri:t.slice(a+1,l)},a=l,n=Xe.URI}else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);a++}else if(n===Xe.URI)if(Br(t[a])){a++;continue}else if(t[a]===";")n=Xe.ATTR,a++;else if(t[a]===",")n=Xe.IDLE,a++;else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);else if(n===Xe.ATTR){if(t[a]===";"||Br(t[a])){a++;continue}var l=t.indexOf("=",a);l===-1&&(l=t.indexOf(";",a)),l===-1&&(l=t.length);var d=Jo(t.slice(a,l)).toLowerCase(),u="";if(a=l+1,a=nd(t,a),t[a]==='"')for(a++;a"),t.push(r);return t.join(", ")}}ae.isCompatibleEncoding=function(e){return zf.test(e)};ae.parse=function(e,t){return new ae().parse(e,t)};ae.isSingleOccurenceAttr=function(e){return e==="rel"||e==="type"||e==="media"||e==="title"||e==="title*"};ae.isTokenAttr=function(e){return e==="rel"||e==="type"||e==="anchor"};ae.escapeQuotes=function(e){return e.replace(/"/g,'\\"')};ae.expandRelations=function(e){var t=e.rel.split(" ");return t.map(function(r){var n=Object.assign({},e);return n.rel=r,n})};ae.parseExtendedValue=function(e){var t=/([^']+)?(?:'([^']*)')?(.+)/.exec(e);return{language:t[2].toLowerCase(),encoding:ae.isCompatibleEncoding(t[1])?null:t[1].toLowerCase(),value:ae.isCompatibleEncoding(t[1])?decodeURIComponent(t[3]):t[3]}};ae.formatExtendedAttribute=function(e,t){var r=(t.encoding||"utf-8").toUpperCase(),n=t.language||"en",o="";return be.Buffer.isBuffer(t.value)&&ae.isCompatibleEncoding(r)?o=t.value.toString(r):be.Buffer.isBuffer(t.value)?o=t.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):o=encodeURIComponent(t.value),e+"="+r+"'"+n+"'"+o};ae.formatAttribute=function(e,t){return Array.isArray(t)?t.map(r=>ae.formatAttribute(e,r)).join("; "):e[e.length-1]==="*"||typeof t!="string"?ae.formatExtendedAttribute(e,t):(ae.isTokenAttr(e)?t=qo(t)?'"'+ae.escapeQuotes(t)+'"':ae.escapeQuotes(t):qo(t)&&(t=encodeURIComponent(t),t=t.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),t='"'+t+'"'),e+"="+t)};var Hs=ae;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.FetchDocumentLoader=void 0;const Yo=Jt,od=Hs,ad=ao;class sd{constructor(t){this.fetcher=t}async load(t){const r=await(this.fetcher||fetch)(t,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const o=n.indexOf(";");o>0&&(n=n.substr(0,o))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let o;if(r.headers.forEach((a,i)=>{if(i==="link"){const l=(0,od.parse)(a);for(const d of l.get("type","application/ld+json"))if(d.rel==="alternate"){if(o)throw new Error("Multiple JSON-LD alternate links were found on "+t);o=(0,ad.resolve)(d.uri,t)}}}),o)return this.load(o)}throw new Yo.ErrorCoded(`Unsupported JSON-LD media type ${n}`,Yo.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}Ar.FetchDocumentLoader=sd;var lo={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.Util=void 0;let xe=class Qe{static isCompactIri(t){return t.indexOf(":")>0&&!(t&&t[0]==="#")}static getPrefix(t,r){if(t&&t[0]==="#")return null;const n=t.indexOf(":");if(n>=0){if(t.length>n+1&&t.charAt(n+1)==="/"&&t.charAt(n+2)==="/")return null;const o=t.substr(0,n);if(o==="_")return null;if(r[o])return o}return null}static getContextValueId(t){if(t===null||typeof t=="string")return t;const r=t["@id"];return r||null}static isSimpleTermDefinitionPrefix(t,r){return!Qe.isPotentialKeyword(t)&&(r.allowPrefixNonGenDelims||typeof t=="string"&&(t[0]==="_"||Qe.isPrefixIriEndingWithGenDelim(t)))}static isPotentialKeyword(t){return typeof t=="string"&&Qe.KEYWORD_REGEX.test(t)}static isPrefixIriEndingWithGenDelim(t){return Qe.ENDS_WITH_GEN_DELIM.test(t)}static isPrefixValue(t){return t&&(typeof t=="string"||t&&typeof t=="object")}static isValidIri(t){return!!(t&&Qe.IRI_REGEX.test(t))}static isValidIriWeak(t){return!!t&&t[0]!==":"&&Qe.IRI_REGEX_WEAK.test(t)}static isValidKeyword(t){return Qe.VALID_KEYWORDS[t]}static isTermProtected(t,r){const n=t[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(t){for(const r of Object.keys(t))if(Qe.isTermProtected(t,r))return!0;return!1}static isReservedInternalKeyword(t){return t.startsWith("@__")}static deepEqual(t,r){const n=Object.keys(t),o=Object.keys(r);return n.length!==o.length?!1:n.every(a=>{const i=t[a],l=r[a];return i===l||i!==null&&l!==null&&typeof i=="object"&&typeof l=="object"&&this.deepEqual(i,l)})}};xe.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;xe.IRI_REGEX_WEAK=/(?::[^:])|\//;xe.KEYWORD_REGEX=/^@[a-z]+$/i;xe.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;xe.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;xe.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;xe.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};xe.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];xe.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];xe.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];xe.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];xe.CONTAINERS_1_0=["@list","@set","@index"];qt.Util=xe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultExpandOptions=e.JsonLdContextNormalized=void 0;const t=ao,r=Jt,n=qt;class o{constructor(i){this.contextRaw=i}getContextRaw(){return this.contextRaw}expandTerm(i,l,d=e.defaultExpandOptions){const u=this.contextRaw[i];if(u===null||u&&u["@id"]===null)return null;let h=!0;if(u&&l){const S=n.Util.getContextValueId(u);if(S&&S!==i)if(typeof S!="string"||!n.Util.isValidIri(S)&&!n.Util.isValidKeyword(S))n.Util.isPotentialKeyword(S)||(h=!1);else return S}const _=n.Util.getPrefix(i,this.contextRaw),b=this.contextRaw["@vocab"],c=(!!b||b==="")&&b.indexOf(":")<0,E=this.contextRaw["@base"],g=n.Util.isPotentialKeyword(i);if(_){const S=this.contextRaw[_],T=n.Util.getContextValueId(S);if(T){if(typeof S=="string"||!d.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(T,d))return i}else if(T[0]!=="_"&&!g&&!S["@prefix"]&&!(i in this.contextRaw))return i;return T+i.substr(_.length+1)}}else if(l&&(b||b===""||d.allowVocabRelativeToBase&&E&&c)&&!g&&!n.Util.isCompactIri(i))if(c){if(d.allowVocabRelativeToBase)return(b||E?(0,t.resolve)(b,E):"")+i;throw new r.ErrorCoded(`Relative vocab expansion for term '${i}' with vocab '${b}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return b+i;else if(!l&&E&&!g&&!n.Util.isCompactIri(i))return(0,t.resolve)(i,E);if(h)return i;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${i}': '${JSON.stringify(u)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(i,l){if(l&&this.contextRaw["@vocab"]&&i.startsWith(this.contextRaw["@vocab"]))return i.substr(this.contextRaw["@vocab"].length);if(!l&&this.contextRaw["@base"]&&i.startsWith(this.contextRaw["@base"]))return i.substr(this.contextRaw["@base"].length);const d={prefix:"",suffix:i};for(const u in this.contextRaw){const h=this.contextRaw[u];if(h&&!n.Util.isPotentialKeyword(u)){const _=n.Util.getContextValueId(h);if(i.startsWith(_)){const b=i.substr(_.length);if(b)b.length=0&&(a!=="@type"||typeof o[a]=="object"&&!(o[a]["@protected"]||o[a]["@container"]==="@set")))throw new D.ErrorCoded(`Keywords can not be aliased to something else. +import{S as Pf}from"./index-BOvYCoiN.js";import{b as be,c as dt,a as Ge,e as ct,d as Ie,s as ks,f as kf}from"./main-CO-45Vwa.js";import{r as Mf}from"./readable-BmS1kvD9.js";import{r as ao,a as Vf}from"./index-keipGPtm.js";import{c as jf}from"./canonicalize-Bd8h0v92.js";var Ms={},dr={},{Buffer:ft}=be,re={},Vs=re.LEFT_BRACE=1,Ur=re.RIGHT_BRACE=2,js=re.LEFT_BRACKET=3,ki=re.RIGHT_BRACKET=4,Wr=re.COLON=5,Kr=re.COMMA=6,Fs=re.TRUE=7,Us=re.FALSE=8,Ws=re.NULL=9,Jr=re.STRING=10,Bs=re.NUMBER=11,It=re.START=17,Gs=re.STOP=18,Do=re.TRUE1=33,Lo=re.TRUE2=34,Po=re.TRUE3=35,ko=re.FALSE1=49,Mo=re.FALSE2=50,Vo=re.FALSE3=51,jo=re.FALSE4=52,Fo=re.NULL1=65,Uo=re.NULL2=66,Wo=re.NULL3=67,Bo=re.NUMBER1=81,Qn=re.NUMBER3=83,Ve=re.STRING1=97,Go=re.STRING2=98,Ho=re.STRING3=99,Ff=re.STRING4=100,Uf=re.STRING5=101,Ko=re.STRING6=102,Wt=re.VALUE=113,Zn=re.KEY=114,Cr=re.OBJECT=129,Nr=re.ARRAY=130,Wf=92,Bf=47,Gf=8,Hf=12,Kf=10,Jf=13,qf=9,so=64*1024;function Or(e){return ft.alloc?ft.alloc(e):new ft(e)}function ut(){this.tState=It,this.value=void 0,this.string=void 0,this.stringBuffer=Or(so),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Wt,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Or(2),3:Or(3),4:Or(4)},this.offset=-1}ut.toknam=function(e){for(var t=Object.keys(re),r=0,n=t.length;r=so&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=e};$e.appendStringBuf=function(e,t,r){var n=e.length;typeof t=="number"&&(typeof r=="number"?r<0?n=e.length-t+r:n=r-t:n=e.length-t),n<0&&(n=0),this.stringBufferOffset+n>so&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),e.copy(this.stringBuffer,this.stringBufferOffset,t,r),this.stringBufferOffset+=n};$e.write=function(e){typeof e=="string"&&(e=new ft(e));for(var t,r=0,n=e.length;r=48&&t<64)this.string=String.fromCharCode(t),this.tState=Qn;else if(!(t===32||t===9||t===10||t===13))return this.charError(e,r)}else if(this.tState===Ve)if(t=e[r],this.bytes_remaining>0){for(var o=0;o=128){if(t<=193||t>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+ut.toknam(this.tState)));if(t>=194&&t<=223&&(this.bytes_in_sequence=2),t>=224&&t<=239&&(this.bytes_in_sequence=3),t>=240&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>e.length){for(var a=0;a<=e.length-1-r;a++)this.temp_buffs[this.bytes_in_sequence][a]=e[r+a];this.bytes_remaining=r+this.bytes_in_sequence-e.length,r=e.length-1}else this.appendStringBuf(e,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(t===34)this.tState=It,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Jr,this.string),this.offset+=ft.byteLength(this.string,"utf8")+1,this.string=void 0;else if(t===92)this.tState=Go;else if(t>=32)this.appendStringChar(t);else return this.charError(e,r);else if(this.tState===Go)if(t=e[r],t===34)this.appendStringChar(t),this.tState=Ve;else if(t===92)this.appendStringChar(Wf),this.tState=Ve;else if(t===47)this.appendStringChar(Bf),this.tState=Ve;else if(t===98)this.appendStringChar(Gf),this.tState=Ve;else if(t===102)this.appendStringChar(Hf),this.tState=Ve;else if(t===110)this.appendStringChar(Kf),this.tState=Ve;else if(t===114)this.appendStringChar(Jf),this.tState=Ve;else if(t===116)this.appendStringChar(qf),this.tState=Ve;else if(t===117)this.unicode="",this.tState=Ho;else return this.charError(e,r);else if(this.tState===Ho||this.tState===Ff||this.tState===Uf||this.tState===Ko)if(t=e[r],t>=48&&t<64||t>64&&t<=70||t>96&&t<=102){if(this.unicode+=String.fromCharCode(t),this.tState++===Ko){var i=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&i>=56320&&i<57344?(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate,i))),this.highSurrogate=void 0):this.highSurrogate===void 0&&i>=55296&&i<56320?this.highSurrogate=i:(this.highSurrogate!==void 0&&(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new ft(String.fromCharCode(i)))),this.tState=Ve}}else return this.charError(e,r);else if(this.tState===Bo||this.tState===Qn)switch(t=e[r],t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=Qn;break;default:this.tState=It;var l=this.numberReviver(this.string,e,r);if(l)return l;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===Do)if(e[r]===114)this.tState=Lo;else return this.charError(e,r);else if(this.tState===Lo)if(e[r]===117)this.tState=Po;else return this.charError(e,r);else if(this.tState===Po)if(e[r]===101)this.tState=It,this.onToken(Fs,!0),this.offset+=3;else return this.charError(e,r);else if(this.tState===ko)if(e[r]===97)this.tState=Mo;else return this.charError(e,r);else if(this.tState===Mo)if(e[r]===108)this.tState=Vo;else return this.charError(e,r);else if(this.tState===Vo)if(e[r]===115)this.tState=jo;else return this.charError(e,r);else if(this.tState===jo)if(e[r]===101)this.tState=It,this.onToken(Us,!1),this.offset+=4;else return this.charError(e,r);else if(this.tState===Fo)if(e[r]===117)this.tState=Uo;else return this.charError(e,r);else if(this.tState===Uo)if(e[r]===108)this.tState=Wo;else return this.charError(e,r);else if(this.tState===Wo)if(e[r]===108)this.tState=It,this.onToken(Ws,null),this.offset+=3;else return this.charError(e,r)};$e.onToken=function(e,t){};$e.parseError=function(e,t){this.tState=Gs,this.onError(new Error("Unexpected "+ut.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+ut.toknam(this.state)))};$e.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};$e.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=Wt)};$e.emit=function(e){this.mode&&(this.state=Kr),this.onValue(e)};$e.onValue=function(e){};$e.onToken=function(e,t){if(this.state===Wt)if(e===Jr||e===Bs||e===Fs||e===Us||e===Ws)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===Vs)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Zn,this.mode=Cr;else if(e===js)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Nr,this.state=Wt;else if(e===Ur)if(this.mode===Cr)this.pop();else return this.parseError(e,t);else if(e===ki)if(this.mode===Nr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t);else if(this.state===Zn)if(e===Jr)this.key=t,this.state=Wr;else if(e===Ur)this.pop();else return this.parseError(e,t);else if(this.state===Wr)if(e===Wr)this.state=Wt;else return this.parseError(e,t);else if(this.state===Kr)if(e===Kr)this.mode===Nr?(this.key++,this.state=Wt):this.mode===Cr&&(this.state=Zn);else if(e===ki&&this.mode===Nr||e===Ur&&this.mode===Cr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t)};$e.numberReviver=function(e,t,r){var n=Number(e);if(isNaN(n))return this.charError(t,r);e.match(/[0-9]+/)==e&&n.toString()!=e?this.onToken(Jr,e):this.onToken(Bs,n)};ut.C=re;var Yf=ut,Se={},en={},Jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ERROR_CODES=e.ErrorCoded=void 0;class t extends Error{constructor(n,o){super(n),this.code=o}}e.ErrorCoded=t,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(e.ERROR_CODES||(e.ERROR_CODES={}))})(Jt);var Ar={},zf=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,Xf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Qf=/\s|\uFEFF|\xA0/,Zf=/\r?\n[\x20\x09]+/g,ed=/[;,"]/,td=/[;,"]|\s/,rd=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,Xe={IDLE:1,URI:2,ATTR:4};function Jo(e){return e.replace(Xf,"")}function Br(e){return Qf.test(e)}function nd(e,t){for(;Br(e[t]);)t++;return t}function qo(e){return td.test(e)||!rd.test(e)}function id(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>r in t&&e[r]===t[r])}class ae{constructor(t){this.refs=[],t&&this.parse(t)}rel(t){for(var r=[],n=t.toLowerCase(),o=0;oid(r,t))||this.refs.push(t),this}has(t,r){t=t.toLowerCase(),r=r.toLowerCase();for(var n=0;n",a);if(l===-1)throw new Error("Expected end of URI delimiter at offset "+a);i={uri:t.slice(a+1,l)},a=l,n=Xe.URI}else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);a++}else if(n===Xe.URI)if(Br(t[a])){a++;continue}else if(t[a]===";")n=Xe.ATTR,a++;else if(t[a]===",")n=Xe.IDLE,a++;else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);else if(n===Xe.ATTR){if(t[a]===";"||Br(t[a])){a++;continue}var l=t.indexOf("=",a);l===-1&&(l=t.indexOf(";",a)),l===-1&&(l=t.length);var d=Jo(t.slice(a,l)).toLowerCase(),u="";if(a=l+1,a=nd(t,a),t[a]==='"')for(a++;a"),t.push(r);return t.join(", ")}}ae.isCompatibleEncoding=function(e){return zf.test(e)};ae.parse=function(e,t){return new ae().parse(e,t)};ae.isSingleOccurenceAttr=function(e){return e==="rel"||e==="type"||e==="media"||e==="title"||e==="title*"};ae.isTokenAttr=function(e){return e==="rel"||e==="type"||e==="anchor"};ae.escapeQuotes=function(e){return e.replace(/"/g,'\\"')};ae.expandRelations=function(e){var t=e.rel.split(" ");return t.map(function(r){var n=Object.assign({},e);return n.rel=r,n})};ae.parseExtendedValue=function(e){var t=/([^']+)?(?:'([^']*)')?(.+)/.exec(e);return{language:t[2].toLowerCase(),encoding:ae.isCompatibleEncoding(t[1])?null:t[1].toLowerCase(),value:ae.isCompatibleEncoding(t[1])?decodeURIComponent(t[3]):t[3]}};ae.formatExtendedAttribute=function(e,t){var r=(t.encoding||"utf-8").toUpperCase(),n=t.language||"en",o="";return be.Buffer.isBuffer(t.value)&&ae.isCompatibleEncoding(r)?o=t.value.toString(r):be.Buffer.isBuffer(t.value)?o=t.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):o=encodeURIComponent(t.value),e+"="+r+"'"+n+"'"+o};ae.formatAttribute=function(e,t){return Array.isArray(t)?t.map(r=>ae.formatAttribute(e,r)).join("; "):e[e.length-1]==="*"||typeof t!="string"?ae.formatExtendedAttribute(e,t):(ae.isTokenAttr(e)?t=qo(t)?'"'+ae.escapeQuotes(t)+'"':ae.escapeQuotes(t):qo(t)&&(t=encodeURIComponent(t),t=t.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),t='"'+t+'"'),e+"="+t)};var Hs=ae;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.FetchDocumentLoader=void 0;const Yo=Jt,od=Hs,ad=ao;class sd{constructor(t){this.fetcher=t}async load(t){const r=await(this.fetcher||fetch)(t,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const o=n.indexOf(";");o>0&&(n=n.substr(0,o))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let o;if(r.headers.forEach((a,i)=>{if(i==="link"){const l=(0,od.parse)(a);for(const d of l.get("type","application/ld+json"))if(d.rel==="alternate"){if(o)throw new Error("Multiple JSON-LD alternate links were found on "+t);o=(0,ad.resolve)(d.uri,t)}}}),o)return this.load(o)}throw new Yo.ErrorCoded(`Unsupported JSON-LD media type ${n}`,Yo.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}Ar.FetchDocumentLoader=sd;var lo={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.Util=void 0;let xe=class Qe{static isCompactIri(t){return t.indexOf(":")>0&&!(t&&t[0]==="#")}static getPrefix(t,r){if(t&&t[0]==="#")return null;const n=t.indexOf(":");if(n>=0){if(t.length>n+1&&t.charAt(n+1)==="/"&&t.charAt(n+2)==="/")return null;const o=t.substr(0,n);if(o==="_")return null;if(r[o])return o}return null}static getContextValueId(t){if(t===null||typeof t=="string")return t;const r=t["@id"];return r||null}static isSimpleTermDefinitionPrefix(t,r){return!Qe.isPotentialKeyword(t)&&(r.allowPrefixNonGenDelims||typeof t=="string"&&(t[0]==="_"||Qe.isPrefixIriEndingWithGenDelim(t)))}static isPotentialKeyword(t){return typeof t=="string"&&Qe.KEYWORD_REGEX.test(t)}static isPrefixIriEndingWithGenDelim(t){return Qe.ENDS_WITH_GEN_DELIM.test(t)}static isPrefixValue(t){return t&&(typeof t=="string"||t&&typeof t=="object")}static isValidIri(t){return!!(t&&Qe.IRI_REGEX.test(t))}static isValidIriWeak(t){return!!t&&t[0]!==":"&&Qe.IRI_REGEX_WEAK.test(t)}static isValidKeyword(t){return Qe.VALID_KEYWORDS[t]}static isTermProtected(t,r){const n=t[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(t){for(const r of Object.keys(t))if(Qe.isTermProtected(t,r))return!0;return!1}static isReservedInternalKeyword(t){return t.startsWith("@__")}static deepEqual(t,r){const n=Object.keys(t),o=Object.keys(r);return n.length!==o.length?!1:n.every(a=>{const i=t[a],l=r[a];return i===l||i!==null&&l!==null&&typeof i=="object"&&typeof l=="object"&&this.deepEqual(i,l)})}};xe.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;xe.IRI_REGEX_WEAK=/(?::[^:])|\//;xe.KEYWORD_REGEX=/^@[a-z]+$/i;xe.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;xe.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;xe.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;xe.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};xe.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];xe.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];xe.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];xe.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];xe.CONTAINERS_1_0=["@list","@set","@index"];qt.Util=xe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultExpandOptions=e.JsonLdContextNormalized=void 0;const t=ao,r=Jt,n=qt;class o{constructor(i){this.contextRaw=i}getContextRaw(){return this.contextRaw}expandTerm(i,l,d=e.defaultExpandOptions){const u=this.contextRaw[i];if(u===null||u&&u["@id"]===null)return null;let h=!0;if(u&&l){const S=n.Util.getContextValueId(u);if(S&&S!==i)if(typeof S!="string"||!n.Util.isValidIri(S)&&!n.Util.isValidKeyword(S))n.Util.isPotentialKeyword(S)||(h=!1);else return S}const _=n.Util.getPrefix(i,this.contextRaw),b=this.contextRaw["@vocab"],c=(!!b||b==="")&&b.indexOf(":")<0,E=this.contextRaw["@base"],g=n.Util.isPotentialKeyword(i);if(_){const S=this.contextRaw[_],T=n.Util.getContextValueId(S);if(T){if(typeof S=="string"||!d.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(T,d))return i}else if(T[0]!=="_"&&!g&&!S["@prefix"]&&!(i in this.contextRaw))return i;return T+i.substr(_.length+1)}}else if(l&&(b||b===""||d.allowVocabRelativeToBase&&E&&c)&&!g&&!n.Util.isCompactIri(i))if(c){if(d.allowVocabRelativeToBase)return(b||E?(0,t.resolve)(b,E):"")+i;throw new r.ErrorCoded(`Relative vocab expansion for term '${i}' with vocab '${b}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return b+i;else if(!l&&E&&!g&&!n.Util.isCompactIri(i))return(0,t.resolve)(i,E);if(h)return i;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${i}': '${JSON.stringify(u)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(i,l){if(l&&this.contextRaw["@vocab"]&&i.startsWith(this.contextRaw["@vocab"]))return i.substr(this.contextRaw["@vocab"].length);if(!l&&this.contextRaw["@base"]&&i.startsWith(this.contextRaw["@base"]))return i.substr(this.contextRaw["@base"].length);const d={prefix:"",suffix:i};for(const u in this.contextRaw){const h=this.contextRaw[u];if(h&&!n.Util.isPotentialKeyword(u)){const _=n.Util.getContextValueId(h);if(i.startsWith(_)){const b=i.substr(_.length);if(b)b.length=0&&(a!=="@type"||typeof o[a]=="object"&&!(o[a]["@protected"]||o[a]["@container"]==="@set")))throw new D.ErrorCoded(`Keywords can not be aliased to something else. Tried mapping ${a} to ${JSON.stringify(i)}`,D.ERROR_CODES.KEYWORD_REDEFINITION);if(q.Util.ALIAS_RANGE_BLACKLIST.indexOf(q.Util.getContextValueId(i))>=0)throw new D.ErrorCoded(`Aliasing to certain keywords is not allowed. Tried mapping ${a} to ${JSON.stringify(i)}`,D.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(i&&q.Util.isPotentialKeyword(q.Util.getContextValueId(i))&&i["@prefix"]===!0)throw new D.ErrorCoded(`Tried to use keyword aliases as prefix: '${a}': '${JSON.stringify(i)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);for(;q.Util.isPrefixValue(o[a]);){const l=o[a];let d=!1;if(typeof l=="string")o[a]=t.expandTerm(l,!0),d=d||l!==o[a];else{const u=l["@id"],h=l["@type"],_=!("@prefix"in l)||q.Util.isValidIri(a);if("@id"in l)u!=null&&typeof u=="string"&&(o[a]=Object.assign(Object.assign({},o[a]),{"@id":t.expandTerm(u,!0)}),d=d||u!==o[a]["@id"]);else if(!q.Util.isPotentialKeyword(a)&&_){const b=t.expandTerm(a,!0);b!==a&&(o[a]=Object.assign(Object.assign({},o[a]),{"@id":b}),d=!0)}if(h&&typeof h=="string"&&h!=="@vocab"&&(!l["@container"]||!l["@container"]["@type"])&&_){let b=t.expandTerm(h,!0);r&&h===b&&(b=t.expandTerm(h,!1)),b!==h&&(d=!0,o[a]=Object.assign(Object.assign({},o[a]),{"@type":b}))}}if(!d)break}}}normalize(t,{processingMode:r,normalizeLanguageTags:n}){if(n||r===1)for(const o of Object.keys(t))if(o==="@language"&&typeof t[o]=="string")t[o]=t[o].toLowerCase();else{const a=t[o];if(a&&typeof a=="object"&&typeof a["@language"]=="string"){const i=a["@language"].toLowerCase();i!==a["@language"]&&(t[o]=Object.assign(Object.assign({},a),{"@language":i}))}}}containersToHash(t){for(const r of Object.keys(t)){const n=t[r];if(n&&typeof n=="object"){if(typeof n["@container"]=="string")t[r]=Object.assign(Object.assign({},n),{"@container":{[n["@container"]]:!0}});else if(Array.isArray(n["@container"])){const o={};for(const a of n["@container"])o[a]=!0;t[r]=Object.assign(Object.assign({},n),{"@container":o})}}}}applyScopedProtected(t,{processingMode:r},n){if(r&&r>=1.1&&t["@protected"]){for(const o of Object.keys(t))if(!q.Util.isReservedInternalKeyword(o)&&!q.Util.isPotentialKeyword(o)&&!q.Util.isTermProtected(t,o)){const a=t[o];a&&typeof a=="object"?"@protected"in t[o]||(t[o]=Object.assign(Object.assign({},t[o]),{"@protected":!0})):(t[o]={"@id":a,"@protected":!0},q.Util.isSimpleTermDefinitionPrefix(a,n)&&(t[o]=Object.assign(Object.assign({},t[o]),{"@prefix":!0})))}delete t["@protected"]}}validateKeywordRedefinitions(t,r,n,o){for(const a of o??Object.keys(r))if(q.Util.isTermProtected(t,a)&&(typeof r[a]=="string"?r[a]={"@id":r[a],"@protected":!0}:r[a]=Object.assign(Object.assign({},r[a]),{"@protected":!0}),!q.Util.deepEqual(t[a],r[a])))throw new D.ErrorCoded(`Attempted to override the protected keyword ${a} from ${JSON.stringify(q.Util.getContextValueId(t[a]))} to ${JSON.stringify(q.Util.getContextValueId(r[a]))}`,D.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(t,{processingMode:r}){for(const n of Object.keys(t)){if(q.Util.isReservedInternalKeyword(n))continue;if(n==="")throw new D.ErrorCoded(`The empty term is not allowed, got: '${n}': '${JSON.stringify(t[n])}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);const o=t[n],a=typeof o;if(q.Util.isPotentialKeyword(n)){switch(n.substr(1)){case"vocab":if(o!==null&&a!=="string")throw new D.ErrorCoded(`Found an invalid @vocab IRI: ${o}`,D.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(o!==null&&a!=="string")throw new D.ErrorCoded(`Found an invalid @base IRI: ${t[n]}`,D.ERROR_CODES.INVALID_BASE_IRI);break;case"language":o!==null&&Ze.validateLanguage(o,!0,D.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(o!==null&&a!=="number")throw new D.ErrorCoded(`Found an invalid @version number: ${o}`,D.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":o!==null&&Ze.validateDirection(o,!0);break;case"propagate":if(r===1)throw new D.ErrorCoded(`Found an illegal @propagate keyword: ${o}`,D.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(o!==null&&a!=="boolean")throw new D.ErrorCoded(`Found an invalid @propagate value: ${o}`,D.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(q.Util.isValidKeyword(n)&&q.Util.isValidKeyword(q.Util.getContextValueId(o)))throw new D.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${q.Util.getContextValueId(o)}'`,D.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(o!==null)switch(a){case"string":if(q.Util.getPrefix(o,t)===n)throw new D.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.CYCLIC_IRI_MAPPING);if(q.Util.isValidIriWeak(n)){if(o==="@type")throw new D.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${o}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIri(o)&&o!==new je.JsonLdContextNormalized(t).expandTerm(n))throw new D.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${o}'`,D.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!q.Util.isCompactIri(n)&&!("@id"in o)&&(o["@type"]==="@id"?!t["@base"]:!t["@vocab"]))throw new D.ErrorCoded(`Missing @id in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);for(const i of Object.keys(o)){const l=o[i];if(l)switch(i){case"@id":if(q.Util.isValidKeyword(l)&&l!=="@type"&&l!=="@id"&&l!=="@graph"&&l!=="@nest")throw new D.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIriWeak(n)){if(l==="@type")throw new D.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIri(l)&&l!==new je.JsonLdContextNormalized(t).expandTerm(n))throw new D.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof l!="string")throw new D.ErrorCoded(`Detected non-string @id in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.getPrefix(l,t)===n)throw new D.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(o["@container"]==="@type"&&l!=="@id"&&l!=="@vocab")throw new D.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${n}': '${l}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof l!="string")throw new D.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(a)}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);if(l!=="@id"&&l!=="@vocab"&&(r===1||l!=="@json")&&(r===1||l!=="@none")&&(l[0]==="_"||!q.Util.isValidIri(l)))throw new D.ErrorCoded(`A context @type must be an absolute IRI, found: '${n}': '${l}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof l=="string"&&o["@id"]&&o["@id"]!==l)throw new D.ErrorCoded(`Found non-matching @id and @reverse term values in '${n}':'${l}' and '${o["@id"]}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in o)throw new D.ErrorCoded(`@nest is not allowed in the reverse property '${n}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(r===1&&(Object.keys(l).length>1||q.Util.CONTAINERS_1_0.indexOf(Object.keys(l)[0])<0))throw new D.ErrorCoded(`Invalid term @container for '${n}' ('${Object.keys(l)}') in 1.0, must be only one of ${q.Util.CONTAINERS_1_0.join(", ")}`,D.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const d of Object.keys(l)){if(d==="@list"&&o["@reverse"])throw new D.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${n}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(q.Util.CONTAINERS.indexOf(d)<0)throw new D.ErrorCoded(`Invalid term @container for '${n}' ('${d}'), must be one of ${q.Util.CONTAINERS.join(", ")}`,D.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":Ze.validateLanguage(l,!0,D.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":Ze.validateDirection(l,!0);break;case"@prefix":if(l!==null&&typeof l!="boolean")throw new D.ErrorCoded(`Found an invalid term @prefix boolean in: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in o)&&!q.Util.isValidIri(n))throw new D.ErrorCoded(`Invalid @prefix definition for '${n}' ('${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(r===1||!o["@container"]||!o["@container"]["@index"])throw new D.ErrorCoded(`Attempt to add illegal key to value object: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(q.Util.isPotentialKeyword(l)&&l!=="@nest")throw new D.ErrorCoded(`Found an invalid term @nest value in: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new D.ErrorCoded(`Found an invalid term value: '${n}': '${o}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(t,r,n){return typeof t=="string"||(n&&!("@base"in t)&&r.parentContext&&typeof r.parentContext=="object"&&"@base"in r.parentContext&&(t["@base"]=r.parentContext["@base"],r.parentContext["@__baseDocument"]&&(t["@__baseDocument"]=!0)),r.baseIRI&&!r.external&&("@base"in t?t["@base"]!==null&&typeof t["@base"]=="string"&&!q.Util.isValidIri(t["@base"])&&(t["@base"]=(0,zo.resolve)(t["@base"],r.parentContext&&r.parentContext["@base"]||r.baseIRI)):(t["@base"]=r.baseIRI,t["@__baseDocument"]=!0))),t}normalizeContextIri(t,r){if(!q.Util.isValidIri(t))try{t=(0,zo.resolve)(t,r)}catch{throw new Error(`Invalid context IRI: ${t}`)}return this.redirectSchemaOrgHttps&&t.startsWith("http://schema.org")&&(t="https://schema.org/"),t}async parseInnerContexts(t,r,n){for(const o of n??Object.keys(t)){const a=t[o];if(a&&typeof a=="object"&&"@context"in a&&a["@context"]!==null&&!r.ignoreScopedContexts){if(this.validateContext)try{const i=Object.assign(Object.assign({},t),{[o]:Object.assign({},t[o])});delete i[o]["@context"],await this.parse(a["@context"],Object.assign(Object.assign({},r),{external:!1,parentContext:i,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(i){throw new D.ErrorCoded(i.message,D.ERROR_CODES.INVALID_SCOPED_CONTEXT)}t[o]=Object.assign(Object.assign({},a),{"@context":(await this.parse(a["@context"],Object.assign(Object.assign({},r),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:t}))).getContextRaw()})}}return t}async parse(t,r={},n={}){const{baseIRI:o,parentContext:a,external:i,processingMode:l=Ze.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:d,ignoreProtection:u,minimalProcessing:h}=r,_=r.remoteContexts||{};if(Object.keys(_).length>=this.remoteContextsDepthLimit)throw new D.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(_),D.ERROR_CODES.CONTEXT_OVERFLOW);if(t==null){if(!u&&a&&q.Util.hasProtectedTerms(a))throw new D.ErrorCoded("Illegal context nullification when terms are protected",D.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new je.JsonLdContextNormalized(this.applyBaseEntry({},r,!1))}else if(typeof t=="string"){const b=this.normalizeContextIri(t,o),c=this.getOverriddenLoad(b,r);if(c)return new je.JsonLdContextNormalized(c);const E=await this.parse(await this.load(b),Object.assign(Object.assign({},r),{baseIRI:b,external:!0,remoteContexts:Object.assign(Object.assign({},_),{[b]:!0})}));return this.applyBaseEntry(E.getContextRaw(),r,!0),E}else if(Array.isArray(t)){const b=[],c=await Promise.all(t.map((g,S)=>{if(typeof g=="string"){const T=this.normalizeContextIri(g,o);b[S]=T;const $=this.getOverriddenLoad(T,r);return $||this.load(T)}else return g}));if(h)return new je.JsonLdContextNormalized(c);const E=await c.reduce((g,S,T)=>g.then($=>this.parse(S,Object.assign(Object.assign({},r),{baseIRI:b[T]||r.baseIRI,external:!!b[T]||r.external,parentContext:$.getContextRaw(),remoteContexts:b[T]?Object.assign(Object.assign({},_),{[b[T]]:!0}):_}),{skipValidation:T=1.1){if(typeof t["@import"]!="string")throw new D.ErrorCoded("An @import value must be a string, but got "+typeof t["@import"],D.ERROR_CODES.INVALID_IMPORT_VALUE);b=await this.loadImportContext(this.normalizeContextIri(t["@import"],o)),delete t["@import"]}else throw new D.ErrorCoded("Context importing is not supported in JSON-LD 1.0",D.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(b,{processingMode:l},je.defaultExpandOptions);const c=Object.assign(b,t);this.idifyReverseTerms(c),this.normalize(c,{processingMode:l,normalizeLanguageTags:d}),this.applyScopedProtected(c,{processingMode:l},je.defaultExpandOptions);const E=Object.keys(c),g=[];if(typeof a=="object")for(const T in a)T in c?g.push(T):c[T]=a[T];await this.parseInnerContexts(c,r,E);const S=new je.JsonLdContextNormalized(c);return(c&&c["@version"]||Ze.DEFAULT_PROCESSING_MODE)>=1.1&&(t["@vocab"]&&typeof t["@vocab"]=="string"||t["@vocab"]==="")&&(a&&"@vocab"in a&&t["@vocab"].indexOf(":")<0?c["@vocab"]=a["@vocab"]+t["@vocab"]:(q.Util.isCompactIri(t["@vocab"])||t["@vocab"]in c)&&(c["@vocab"]=S.expandTerm(t["@vocab"],!0))),this.expandPrefixedTerms(S,this.expandContentTypeToBase,E),!u&&a&&l>=1.1&&this.validateKeywordRedefinitions(a,c,je.defaultExpandOptions,g),this.validateContext&&!n.skipValidation&&this.validate(c,{processingMode:l}),S}else throw new D.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${t}`,D.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(t){const r=this.documentCache[t];if(r)return r;let n;try{n=await this.documentLoader.load(t)}catch(o){throw new D.ErrorCoded(`Failed to load remote context ${t}: ${o.message}`,D.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in n))throw new D.ErrorCoded(`Missing @context in remote context at ${t}`,D.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[t]=n["@context"]}getOverriddenLoad(t,r){if(t in(r.remoteContexts||{})){if(r.ignoreRemoteScopedContexts)return t;throw new D.ErrorCoded("Detected a cyclic context inclusion of "+t,D.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(t){let r=await this.load(t);if(typeof r!="object"||Array.isArray(r))throw new D.ErrorCoded("An imported context must be a single object: "+t,D.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in r)throw new D.ErrorCoded("An imported context can not import another context: "+t,D.ERROR_CODES.INVALID_CONTEXT_ENTRY);return r=Object.assign({},r),this.containersToHash(r),r}}Ze.DEFAULT_PROCESSING_MODE=1.1;en.ContextParser=Ze;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});var Js={};Object.defineProperty(Js,"__esModule",{value:!0});(function(e){var t=dt&&dt.__createBinding||(Object.create?function(n,o,a,i){i===void 0&&(i=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,l)}:function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]}),r=dt&&dt.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(en,e),r(Jt,e),r(Ar,e),r(Ks,e),r(Js,e),r(lo,e),r(qt,e)})(Se);var qs={exports:{}},ei={exports:{}},se={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Ys={exports:{}};(function(e){const t=be,{kResistStopPropagation:r,SymbolDispose:n}=se,o=globalThis.AbortSignal||Ge().AbortSignal,a=globalThis.AbortController||Ge().AbortController,i=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||t.Blob,d=typeof l<"u"?function(c){return c instanceof l}:function(c){return!1},u=(b,c)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(c,"AbortSignal",b)},h=(b,c)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(c,"Function",b)};class _ extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let E="";for(let g=0;g{b=g,c=S}),resolve:b,reject:c}},promisify(b){return new Promise((c,E)=>{b((g,...S)=>g?E(g):c(...S))})},debuglog(){return function(){}},format(b,...c){return b.replace(/%([sdifj])/g,function(...[E,g]){const S=c.shift();return g==="f"?S.toFixed(6):g==="j"?JSON.stringify(S):g==="s"&&typeof S=="object"?`${S.constructor!==Object?S.constructor.name:""} {}`.trim():S.toString()})},inspect(b){switch(typeof b){case"string":if(b.includes("'"))if(b.includes('"')){if(!b.includes("`")&&!b.includes("${"))return`\`${b}\``}else return`"${b}"`;return`'${b}'`;case"number":return isNaN(b)?"NaN":Object.is(b,-0)?String(b):b;case"bigint":return`${String(b)}n`;case"boolean":case"undefined":return String(b);case"object":return"{}"}},types:{isAsyncFunction(b){return b instanceof i},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:d,deprecate(b,c){return b},addAbortListener:ct.addAbortListener||function(c,E){if(c===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",c);u(c,"signal"),h(E,"listener");let g;return c.aborted?queueMicrotask(()=>E()):(c.addEventListener("abort",E,{__proto__:null,once:!0,[r]:!0}),g=()=>{c.removeEventListener("abort",E)}),{__proto__:null,[n](){var S;(S=g)===null||S===void 0||S()}}},AbortSignalAny:o.any||function(c){if(c.length===1)return c[0];const E=new a,g=()=>E.abort();return c.forEach(S=>{u(S,"signals"),S.addEventListener("abort",g,{once:!0})}),E.signal.addEventListener("abort",()=>{c.forEach(S=>S.removeEventListener("abort",g))},{once:!0}),E.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Ys);var Re=Ys.exports,fo={};const{format:fd,inspect:qr,AggregateError:dd}=Re,ud=globalThis.AggregateError||dd,cd=Symbol("kIsNodeError"),hd=["string","function","number","object","Function","Object","boolean","bigint","symbol"],bd=/^([A-Z][a-z0-9]*)+$/,pd="__node_internal_",tn={};function Tt(e,t){if(!e)throw new tn.ERR_INTERNAL_ASSERTION(t)}function Xo(e){let t="",r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function yd(e,t,r){if(typeof t=="function")return Tt(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const n=(t.match(/%[dfijoOs]/g)||[]).length;return Tt(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?t:fd(t,...r)}function pe(e,t,r){r||(r=Error);class n extends r{constructor(...a){super(yd(e,t,a))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[cd]=!0,tn[e]=n}function Qo(e){const t=pd+e.name;return Object.defineProperty(e,"name",{value:t}),e}function gd(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new ud([t,e],t.message);return r.code=t.code,r}return e||t}let _d=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new tn.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};pe("ERR_ASSERTION","%s",Error);pe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Tt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],a=[],i=[];for(const d of t)Tt(typeof d=="string","All expected entries have to be of type string"),hd.includes(d)?o.push(d.toLowerCase()):bd.test(d)?a.push(d):(Tt(d!=="object",'The value "object" should be written as "Object"'),i.push(d));if(a.length>0){const d=o.indexOf("object");d!==-1&&(o.splice(o,d,1),a.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const d=o.pop();n+=`one of type ${o.join(", ")}, or ${d}`}}(a.length>0||i.length>0)&&(n+=" or ")}if(a.length>0){switch(a.length){case 1:n+=`an instance of ${a[0]}`;break;case 2:n+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const d=a.pop();n+=`an instance of ${a.join(", ")}, or ${d}`}}i.length>0&&(n+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(n+="an "),n+=`${i[0]}`;break;case 2:n+=`one of ${i[0]} or ${i[1]}`;break;default:{const d=i.pop();n+=`one of ${i.join(", ")}, or ${d}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var l;if((l=r.constructor)!==null&&l!==void 0&&l.name)n+=`. Received an instance of ${r.constructor.name}`;else{const d=qr(r,{depth:-1});n+=`. Received ${d}`}}else{let d=qr(r,{colors:!1});d.length>25&&(d=`${d.slice(0,25)}...`),n+=`. Received type ${typeof r} (${d})`}return n},TypeError);pe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=qr(t);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);pe("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;const o=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${o}.`},TypeError);pe("ERR_MISSING_ARGS",(...e)=>{Tt(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);pe("ERR_OUT_OF_RANGE",(e,t,r)=>{Tt(t,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Xo(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=Xo(n)),n+="n"):n=qr(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);pe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);pe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);pe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);pe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);pe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var me={AbortError:_d,aggregateTwoErrors:Qo(gd),hideStackFrames:Qo,codes:tn};const{ArrayIsArray:uo,ArrayPrototypeIncludes:zs,ArrayPrototypeJoin:Xs,ArrayPrototypeMap:wd,NumberIsInteger:co,NumberIsNaN:Ed,NumberMAX_SAFE_INTEGER:Sd,NumberMIN_SAFE_INTEGER:Rd,NumberParseInt:Ad,ObjectPrototypeHasOwnProperty:Id,RegExpPrototypeExec:Qs,String:md,StringPrototypeToUpperCase:vd,StringPrototypeTrim:Td}=se,{hideStackFrames:De,codes:{ERR_SOCKET_BAD_PORT:Cd,ERR_INVALID_ARG_TYPE:ge,ERR_INVALID_ARG_VALUE:Yt,ERR_OUT_OF_RANGE:Nt,ERR_UNKNOWN_SIGNAL:Zo}}=me,{normalizeEncoding:Nd}=Re,{isAsyncFunction:Od,isArrayBufferView:$d}=Re.types,ea={};function xd(e){return e===(e|0)}function Dd(e){return e===e>>>0}const Ld=/^[0-7]+$/,Pd="must be a 32-bit unsigned integer or an octal string";function kd(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Qs(Ld,e)===null)throw new Yt(t,e,Pd);e=Ad(e,8)}return Zs(e,t),e}const Md=De((e,t,r=Rd,n=Sd)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);if(en)throw new Nt(t,`>= ${r} && <= ${n}`,e)}),Vd=De((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);if(en)throw new Nt(t,`>= ${r} && <= ${n}`,e)}),Zs=De((e,t,r=!1)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);const n=r?1:0,o=4294967295;if(eo)throw new Nt(t,`>= ${n} && <= ${o}`,e)});function ho(e,t){if(typeof e!="string")throw new ge(t,"string",e)}function jd(e,t,r=void 0,n){if(typeof e!="number")throw new ge(t,"number",e);if(r!=null&&en||(r!=null||n!=null)&&Ed(e))throw new Nt(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}const Fd=De((e,t,r)=>{if(!zs(r,e)){const o="must be one of: "+Xs(wd(r,a=>typeof a=="string"?`'${a}'`:md(a)),", ");throw new Yt(t,e,o)}});function el(e,t){if(typeof e!="boolean")throw new ge(t,"boolean",e)}function ti(e,t,r){return e==null||!Id(e,t)?r:e[t]}const Ud=De((e,t,r=null)=>{const n=ti(r,"allowArray",!1),o=ti(r,"allowFunction",!1);if(!ti(r,"nullable",!1)&&e===null||!n&&uo(e)||typeof e!="object"&&(!o||typeof e!="function"))throw new ge(t,"Object",e)}),Wd=De((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ge(t,"a dictionary",e)}),rn=De((e,t,r=0)=>{if(!uo(e))throw new ge(t,"Array",e);if(e.length{if(!$d(e))throw new ge(t,["Buffer","TypedArray","DataView"],e)});function qd(e,t){const r=Nd(t),n=e.length;if(r==="hex"&&n%2!==0)throw new Yt("encoding",t,`is invalid for data of length ${n}`)}function Yd(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Td(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Cd(t,e,r);return e|0}const tl=De((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ge(t,"AbortSignal",e)}),zd=De((e,t)=>{if(typeof e!="function")throw new ge(t,"Function",e)}),Xd=De((e,t)=>{if(typeof e!="function"||Od(e))throw new ge(t,"Function",e)}),Qd=De((e,t)=>{if(e!==void 0)throw new ge(t,"undefined",e)});function Zd(e,t,r){if(!zs(r,e))throw new ge(t,`('${Xs(r,"|")}')`,e)}const eu=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ta(e,t){if(typeof e>"u"||!Qs(eu,e))throw new Yt(t,e,'must be an array or string of format "; rel=preload; as=style"')}function tu(e){if(typeof e=="string")return ta(e,"hints"),e;if(uo(e)){const t=e.length;let r="";if(t===0)return r;for(let n=0;n; rel=preload; as=style"')}var Ir={isInt32:xd,isUint32:Dd,parseFileMode:kd,validateArray:rn,validateStringArray:Bd,validateBooleanArray:Gd,validateAbortSignalArray:Hd,validateBoolean:el,validateBuffer:Jd,validateDictionary:Wd,validateEncoding:qd,validateFunction:zd,validateInt32:Vd,validateInteger:Md,validateNumber:jd,validateObject:Ud,validateOneOf:Fd,validatePlainFunction:Xd,validatePort:Yd,validateSignalName:Kd,validateString:ho,validateUint32:Zs,validateUndefined:Qd,validateUnion:Zd,validateAbortSignal:tl,validateLinkHeaderValue:tu},bo={exports:{}};const{SymbolAsyncIterator:ra,SymbolIterator:na,SymbolFor:$t}=se,rl=$t("nodejs.stream.destroyed"),nl=$t("nodejs.stream.errored"),Mi=$t("nodejs.stream.readable"),Vi=$t("nodejs.stream.writable"),il=$t("nodejs.stream.disturbed"),ru=$t("nodejs.webstream.isClosedPromise"),nu=$t("nodejs.webstream.controllerErrorFunction");function nn(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function on(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function iu(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Je(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function ol(e){return!!(e&&!Je(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function al(e){return!!(e&&!Je(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function sl(e){return!!(e&&!Je(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function ou(e){return ol(e)||al(e)||sl(e)}function au(e,t){return e==null?!1:t===!0?typeof e[ra]=="function":t===!1?typeof e[na]=="function":typeof e[ra]=="function"||typeof e[na]=="function"}function an(e){if(!Je(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[rl]||n!=null&&n.destroyed)}function ll(e){if(!on(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function su(e,t){if(!on(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function lu(e){if(!nn(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function fl(e,t){if(!nn(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function dl(e){return e&&e[Mi]!=null?e[Mi]:typeof(e==null?void 0:e.readable)!="boolean"?null:an(e)?!1:nn(e)&&e.readable&&!fl(e)}function ul(e){return e&&e[Vi]!=null?e[Vi]:typeof(e==null?void 0:e.writable)!="boolean"?null:an(e)?!1:on(e)&&e.writable&&!ll(e)}function fu(e,t){return Je(e)?an(e)?!0:!((t==null?void 0:t.readable)!==!1&&dl(e)||(t==null?void 0:t.writable)!==!1&&ul(e)):null}function du(e){var t,r;return Je(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function uu(e){var t,r;return Je(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function cu(e){if(!Je(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&cl(e)?e._closed:null}function cl(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function hl(e){return typeof e._sent100=="boolean"&&cl(e)}function hu(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function bu(e){if(!Je(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&hl(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function pu(e){var t;return!!(e&&((t=e[il])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function yu(e){var t,r,n,o,a,i,l,d,u,h;return!!(e&&((t=(r=(n=(o=(a=(i=e[nl])!==null&&i!==void 0?i:e.readableErrored)!==null&&a!==void 0?a:e.writableErrored)!==null&&o!==void 0?o:(l=e._readableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(d=e._writableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:!((h=e._writableState)===null||h===void 0)&&h.errored))}var it={isDestroyed:an,kIsDestroyed:rl,isDisturbed:pu,kIsDisturbed:il,isErrored:yu,kIsErrored:nl,isReadable:dl,kIsReadable:Mi,kIsClosedPromise:ru,kControllerErrorFunction:nu,kIsWritable:Vi,isClosed:cu,isDuplexNodeStream:iu,isFinished:fu,isIterable:au,isReadableNodeStream:nn,isReadableStream:ol,isReadableEnded:lu,isReadableFinished:fl,isReadableErrored:uu,isNodeStream:Je,isWebStream:ou,isWritable:ul,isWritableNodeStream:on,isWritableStream:al,isWritableEnded:ll,isWritableFinished:su,isWritableErrored:du,isServerRequest:hu,isServerResponse:hl,willEmitClose:bu,isTransformStream:sl};const st=Ie,{AbortError:bl,codes:gu}=me,{ERR_INVALID_ARG_TYPE:_u,ERR_STREAM_PREMATURE_CLOSE:ia}=gu,{kEmptyObject:ji,once:Fi}=Re,{validateAbortSignal:wu,validateFunction:Eu,validateObject:Su,validateBoolean:Ru}=Ir,{Promise:Au,PromisePrototypeThen:Iu,SymbolDispose:pl}=se,{isClosed:mu,isReadable:oa,isReadableNodeStream:ri,isReadableStream:vu,isReadableFinished:aa,isReadableErrored:sa,isWritable:la,isWritableNodeStream:fa,isWritableStream:Tu,isWritableFinished:da,isWritableErrored:ua,isNodeStream:Cu,willEmitClose:Nu,kIsClosedPromise:Ou}=it;let Bt;function $u(e){return e.setHeader&&typeof e.abort=="function"}const Ui=()=>{};function yl(e,t,r){var n,o;if(arguments.length===2?(r=t,t=ji):t==null?t=ji:Su(t,"options"),Eu(r,"callback"),wu(t.signal,"options.signal"),r=Fi(r),vu(e)||Tu(e))return xu(e,t,r);if(!Cu(e))throw new _u("stream",["ReadableStream","WritableStream","Stream"],e);const a=(n=t.readable)!==null&&n!==void 0?n:ri(e),i=(o=t.writable)!==null&&o!==void 0?o:fa(e),l=e._writableState,d=e._readableState,u=()=>{e.writable||b()};let h=Nu(e)&&ri(e)===a&&fa(e)===i,_=da(e,!1);const b=()=>{_=!0,e.destroyed&&(h=!1),!(h&&(!e.readable||a))&&(!a||c)&&r.call(e)};let c=aa(e,!1);const E=()=>{c=!0,e.destroyed&&(h=!1),!(h&&(!e.writable||i))&&(!i||_)&&r.call(e)},g=v=>{r.call(e,v)};let S=mu(e);const T=()=>{S=!0;const v=ua(e)||sa(e);if(v&&typeof v!="boolean")return r.call(e,v);if(a&&!c&&ri(e,!0)&&!aa(e,!1))return r.call(e,new ia);if(i&&!_&&!da(e,!1))return r.call(e,new ia);r.call(e)},$=()=>{S=!0;const v=ua(e)||sa(e);if(v&&typeof v!="boolean")return r.call(e,v);r.call(e)},w=()=>{e.req.on("finish",b)};$u(e)?(e.on("complete",b),h||e.on("abort",T),e.req?w():e.on("request",w)):i&&!l&&(e.on("end",u),e.on("close",u)),!h&&typeof e.aborted=="boolean"&&e.on("aborted",T),e.on("end",E),e.on("finish",b),t.error!==!1&&e.on("error",g),e.on("close",T),S?st.nextTick(T):l!=null&&l.errorEmitted||d!=null&&d.errorEmitted?h||st.nextTick($):(!a&&(!h||oa(e))&&(_||la(e)===!1)||!i&&(!h||la(e))&&(c||oa(e)===!1)||d&&e.req&&e.aborted)&&st.nextTick($);const B=()=>{r=Ui,e.removeListener("aborted",T),e.removeListener("complete",b),e.removeListener("abort",T),e.removeListener("request",w),e.req&&e.req.removeListener("finish",b),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",b),e.removeListener("end",E),e.removeListener("error",g),e.removeListener("close",T)};if(t.signal&&!S){const v=()=>{const x=r;B(),x.call(e,new bl(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)st.nextTick(v);else{Bt=Bt||Re.addAbortListener;const x=Bt(t.signal,v),U=r;r=Fi((...F)=>{x[pl](),U.apply(e,F)})}}return B}function xu(e,t,r){let n=!1,o=Ui;if(t.signal)if(o=()=>{n=!0,r.call(e,new bl(void 0,{cause:t.signal.reason}))},t.signal.aborted)st.nextTick(o);else{Bt=Bt||Re.addAbortListener;const i=Bt(t.signal,o),l=r;r=Fi((...d)=>{i[pl](),l.apply(e,d)})}const a=(...i)=>{n||st.nextTick(()=>r.apply(e,i))};return Iu(e[Ou].promise,a,a),Ui}function Du(e,t){var r;let n=!1;return t===null&&(t=ji),(r=t)!==null&&r!==void 0&&r.cleanup&&(Ru(t.cleanup,"cleanup"),n=t.cleanup),new Au((o,a)=>{const i=yl(e,t,l=>{n&&i(),l?a(l):o()})})}bo.exports=yl;bo.exports.finished=Du;var ht=bo.exports;const We=Ie,{aggregateTwoErrors:Lu,codes:{ERR_MULTIPLE_CALLBACK:Pu},AbortError:ku}=me,{Symbol:gl}=se,{kIsDestroyed:Mu,isDestroyed:Vu,isFinished:ju,isServerRequest:Fu}=it,_l=gl("kDestroy"),Wi=gl("kConstruct");function wl(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Uu(e,t){const r=this._readableState,n=this._writableState,o=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(wl(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?ca(this,e,t):this.once(_l,function(a){ca(this,Lu(a,e),t)}),this)}function ca(e,t,r){let n=!1;function o(a){if(n)return;n=!0;const i=e._readableState,l=e._writableState;wl(a,l,i),l&&(l.closed=!0),i&&(i.closed=!0),typeof r=="function"&&r(a),a?We.nextTick(Wu,e,a):We.nextTick(El,e)}try{e._destroy(t||null,o)}catch(a){o(a)}}function Wu(e,t){Bi(e,t),El(e)}function El(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function Bi(e,t){const r=e._readableState,n=e._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Bu(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Gi(e,t,r){const n=e._readableState,o=e._writableState;if(o!=null&&o.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||o!=null&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),n&&!n.errored&&(n.errored=t),r?We.nextTick(Bi,e,t):Bi(e,t))}function Gu(e,t){if(typeof e._construct!="function")return;const r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(Wi,t),!(e.listenerCount(Wi)>1)&&We.nextTick(Hu,e)}function Hu(e){let t=!1;function r(n){if(t){Gi(e,n??new Pu);return}t=!0;const o=e._readableState,a=e._writableState,i=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),i.destroyed?e.emit(_l,n):n?Gi(e,n,!0):We.nextTick(Ku,e)}try{e._construct(n=>{We.nextTick(r,n)})}catch(n){We.nextTick(r,n)}}function Ku(e){e.emit(Wi)}function ha(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Sl(e){e.emit("close")}function Ju(e,t){e.emit("error",t),We.nextTick(Sl,e)}function qu(e,t){!e||Vu(e)||(!t&&!ju(e)&&(t=new ku),Fu(e)?(e.socket=null,e.destroy(t)):ha(e)?e.abort():ha(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?We.nextTick(Ju,e,t):We.nextTick(Sl,e),e.destroyed||(e[Mu]=!0))}var zt={construct:Gu,destroyer:qu,destroy:Uu,undestroy:Bu,errorOrDestroy:Gi};const{ArrayIsArray:Yu,ObjectSetPrototypeOf:Rl}=se,{EventEmitter:sn}=ct;function ln(e){sn.call(this,e)}Rl(ln.prototype,sn.prototype);Rl(ln,sn);ln.prototype.pipe=function(e,t){const r=this;function n(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",n);function o(){r.readable&&r.resume&&r.resume()}e.on("drain",o),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",i),r.on("close",l));let a=!1;function i(){a||(a=!0,e.end())}function l(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function d(h){u(),sn.listenerCount(this,"error")===0&&this.emit("error",h)}Hi(r,"error",d),Hi(e,"error",d);function u(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",i),r.removeListener("close",l),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};function Hi(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Yu(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var po={Stream:ln,prependListener:Hi},Al={exports:{}};(function(e){const{SymbolDispose:t}=se,{AbortError:r,codes:n}=me,{isNodeStream:o,isWebStream:a,kControllerErrorFunction:i}=it,l=ht,{ERR_INVALID_ARG_TYPE:d}=n;let u;const h=(_,b)=>{if(typeof _!="object"||!("aborted"in _))throw new d(b,"AbortSignal",_)};e.exports.addAbortSignal=function(b,c){if(h(b,"signal"),!o(c)&&!a(c))throw new d("stream",["ReadableStream","WritableStream","Stream"],c);return e.exports.addAbortSignalNoValidate(b,c)},e.exports.addAbortSignalNoValidate=function(_,b){if(typeof _!="object"||!("aborted"in _))return b;const c=o(b)?()=>{b.destroy(new r(void 0,{cause:_.reason}))}:()=>{b[i](new r(void 0,{cause:_.reason}))};if(_.aborted)c();else{u=u||Re.addAbortListener;const E=u(_,c);l(b,E[t])}return b}})(Al);var fn=Al.exports;const{StringPrototypeSlice:ba,SymbolIterator:zu,TypedArrayPrototypeSet:$r,Uint8Array:Xu}=se,{Buffer:ni}=be,{inspect:Qu}=Re;var Zu=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=t+r.data;return n}concat(t){if(this.length===0)return ni.alloc(0);const r=ni.allocUnsafe(t>>>0);let n=this.head,o=0;for(;n;)$r(r,n.data,o),o+=n.data.length,n=n.next;return r}consume(t,r){const n=this.head.data;if(ta.length)r+=a,t-=a.length;else{t===a.length?(r+=a,++o,n.next?this.head=n.next:this.head=this.tail=null):(r+=ba(a,0,t),this.head=n,n.data=ba(a,t));break}++o}while((n=n.next)!==null);return this.length-=o,r}_getBuffer(t){const r=ni.allocUnsafe(t),n=t;let o=this.head,a=0;do{const i=o.data;if(t>i.length)$r(r,i,n-t),t-=i.length;else{t===i.length?($r(r,i,n-t),++a,o.next?this.head=o.next:this.head=this.tail=null):($r(r,new Xu(i.buffer,i.byteOffset,t),n-t),this.head=o,o.data=i.slice(t));break}++a}while((o=o.next)!==null);return this.length-=a,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return Qu(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:ec,NumberIsInteger:tc}=se,{validateInteger:rc}=Ir,{ERR_INVALID_ARG_VALUE:nc}=me.codes;let Il=16*1024,ml=16;function ic(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vl(e){return e?ml:Il}function oc(e,t){rc(t,"value",0),e?ml=t:Il=t}function ac(e,t,r,n){const o=ic(t,n,r);if(o!=null){if(!tc(o)||o<0){const a=n?`options.${r}`:"options.highWaterMark";throw new nc(a,o)}return ec(o)}return vl(e.objectMode)}var dn={getHighWaterMark:ac,getDefaultHighWaterMark:vl,setDefaultHighWaterMark:oc};const pa=Ie,{PromisePrototypeThen:sc,SymbolAsyncIterator:ya,SymbolIterator:ga}=se,{Buffer:lc}=be,{ERR_INVALID_ARG_TYPE:fc,ERR_STREAM_NULL_VALUES:dc}=me.codes;function uc(e,t,r){let n;if(typeof t=="string"||t instanceof lc)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let o;if(t&&t[ya])o=!0,n=t[ya]();else if(t&&t[ga])o=!1,n=t[ga]();else throw new fc("iterable",["Iterable"],t);const a=new e({objectMode:!0,highWaterMark:1,...r});let i=!1;a._read=function(){i||(i=!0,d())},a._destroy=function(u,h){sc(l(u),()=>pa.nextTick(h,u),_=>pa.nextTick(h,_||u))};async function l(u){const h=u!=null,_=typeof n.throw=="function";if(h&&_){const{value:b,done:c}=await n.throw(u);if(await b,c)return}if(typeof n.return=="function"){const{value:b}=await n.return();await b}}async function d(){for(;;){try{const{value:u,done:h}=o?await n.next():n.next();if(h)a.push(null);else{const _=u&&typeof u.then=="function"?await u:u;if(_===null)throw i=!1,new dc;if(a.push(_))continue;i=!1}}catch(u){a.destroy(u)}break}}return a}var Tl=uc,ii,_a;function un(){if(_a)return ii;_a=1;const e=Ie,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:a,ObjectKeys:i,ObjectSetPrototypeOf:l,Promise:d,SafeSet:u,SymbolAsyncDispose:h,SymbolAsyncIterator:_,Symbol:b}=se;ii=P,P.ReadableState=ue;const{EventEmitter:c}=ct,{Stream:E,prependListener:g}=po,{Buffer:S}=be,{addAbortSignal:T}=fn,$=ht;let w=Re.debuglog("stream",s=>{w=s});const B=Zu,v=zt,{getHighWaterMark:x,getDefaultHighWaterMark:U}=dn,{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:ee,ERR_OUT_OF_RANGE:J,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:V}=me,{validateObject:M}=Ir,j=b("kPaused"),{StringDecoder:X}=ks,Q=Tl;l(P.prototype,E.prototype),l(P,E);const z=()=>{},{errorOrDestroy:Z}=v,G=1,de=2,L=4,te=8,fe=16,Te=32,Ce=64,Ne=128,Pe=256,pt=512,ke=1024,Oe=2048,p=4096,y=8192,A=16384,N=32768,O=65536,K=1<<17,Y=1<<18;function H(s){return{enumerable:!1,get(){return(this.state&s)!==0},set(f){f?this.state|=s:this.state&=~s}}}a(ue.prototype,{objectMode:H(G),ended:H(de),endEmitted:H(L),reading:H(te),constructed:H(fe),sync:H(Te),needReadable:H(Ce),emittedReadable:H(Ne),readableListening:H(Pe),resumeScheduled:H(pt),errorEmitted:H(ke),emitClose:H(Oe),autoDestroy:H(p),destroyed:H(y),closed:H(A),closeEmitted:H(N),multiAwaitDrain:H(O),readingMore:H(K),dataEmitted:H(Y)});function ue(s,f,I){typeof I!="boolean"&&(I=f instanceof et()),this.state=Oe|p|fe|Te,s&&s.objectMode&&(this.state|=G),I&&s&&s.readableObjectMode&&(this.state|=G),this.highWaterMark=s?x(this,s,"readableHighWaterMark",I):U(!1),this.buffer=new B,this.length=0,this.pipes=[],this.flowing=null,this[j]=null,s&&s.emitClose===!1&&(this.state&=~Oe),s&&s.autoDestroy===!1&&(this.state&=~p),this.errored=null,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,s&&s.encoding&&(this.decoder=new X(s.encoding),this.encoding=s.encoding)}function P(s){if(!(this instanceof P))return new P(s);const f=this instanceof et();this._readableState=new ue(s,this,f),s&&(typeof s.read=="function"&&(this._read=s.read),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.construct=="function"&&(this._construct=s.construct),s.signal&&!f&&T(s.signal,this)),E.call(this,s),v.construct(this,()=>{this._readableState.needReadable&&ze(this,this._readableState)})}P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(s,f){f(s)},P.prototype[c.captureRejectionSymbol]=function(s){this.destroy(s)},P.prototype[h]=function(){let s;return this.destroyed||(s=this.readableEnded?null:new V,this.destroy(s)),new d((f,I)=>$(this,m=>m&&m!==s?I(m):f(null)))},P.prototype.push=function(s,f){return he(this,s,f,!1)},P.prototype.unshift=function(s,f){return he(this,s,f,!0)};function he(s,f,I,m){w("readableAddChunk",f);const C=s._readableState;let ne;if(C.state&G||(typeof f=="string"?(I=I||C.defaultEncoding,C.encoding!==I&&(m&&C.encoding?f=S.from(f,I).toString(C.encoding):(f=S.from(f,I),I=""))):f instanceof S?I="":E._isUint8Array(f)?(f=E._uint8ArrayToBuffer(f),I=""):f!=null&&(ne=new W("chunk",["string","Buffer","Uint8Array"],f))),ne)Z(s,ne);else if(f===null)C.state&=~te,Wn(s,C);else if(C.state&G||f&&f.length>0)if(m)if(C.state&L)Z(s,new R);else{if(C.destroyed||C.errored)return!1;yt(s,C,f,!0)}else if(C.ended)Z(s,new k);else{if(C.destroyed||C.errored)return!1;C.state&=~te,C.decoder&&!I?(f=C.decoder.write(f),C.objectMode||f.length!==0?yt(s,C,f,!1):ze(s,C)):yt(s,C,f,!1)}else m||(C.state&=~te,ze(s,C));return!C.ended&&(C.length0?(f.state&O?f.awaitDrainWriters.clear():f.awaitDrainWriters=null,f.dataEmitted=!0,s.emit("data",I)):(f.length+=f.objectMode?1:I.length,m?f.buffer.unshift(I):f.buffer.push(I),f.state&Ce&&Ye(s)),ze(s,f)}P.prototype.isPaused=function(){const s=this._readableState;return s[j]===!0||s.flowing===!1},P.prototype.setEncoding=function(s){const f=new X(s);this._readableState.decoder=f,this._readableState.encoding=this._readableState.decoder.encoding;const I=this._readableState.buffer;let m="";for(const C of I)m+=f.write(C);return I.clear(),m!==""&&I.push(m),this._readableState.length=m.length,this};const Fn=1073741824;function Un(s){if(s>Fn)throw new J("size","<= 1GiB",s);return s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++,s}function Zt(s,f){return s<=0||f.length===0&&f.ended?0:f.state&G?1:n(s)?f.flowing&&f.length?f.buffer.first().length:f.length:s<=f.length?s:f.ended?f.length:0}P.prototype.read=function(s){w("read",s),s===void 0?s=NaN:r(s)||(s=o(s,10));const f=this._readableState,I=s;if(s>f.highWaterMark&&(f.highWaterMark=Un(s)),s!==0&&(f.state&=~Ne),s===0&&f.needReadable&&((f.highWaterMark!==0?f.length>=f.highWaterMark:f.length>0)||f.ended))return w("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?gt(this):Ye(this),null;if(s=Zt(s,f),s===0&&f.ended)return f.length===0&>(this),null;let m=(f.state&Ce)!==0;if(w("need readable",m),(f.length===0||f.length-s0?C=ir(s,f):C=null,C===null?(f.needReadable=f.length<=f.highWaterMark,s=0):(f.length-=s,f.multiAwaitDrain?f.awaitDrainWriters.clear():f.awaitDrainWriters=null),f.length===0&&(f.ended||(f.needReadable=!0),I!==s&&f.ended&>(this)),C!==null&&!f.errorEmitted&&!f.closeEmitted&&(f.dataEmitted=!0,this.emit("data",C)),C};function Wn(s,f){if(w("onEofChunk"),!f.ended){if(f.decoder){const I=f.decoder.end();I&&I.length&&(f.buffer.push(I),f.length+=f.objectMode?1:I.length)}f.ended=!0,f.sync?Ye(s):(f.needReadable=!1,f.emittedReadable=!0,er(s))}}function Ye(s){const f=s._readableState;w("emitReadable",f.needReadable,f.emittedReadable),f.needReadable=!1,f.emittedReadable||(w("emitReadable",f.flowing),f.emittedReadable=!0,e.nextTick(er,s))}function er(s){const f=s._readableState;w("emitReadable_",f.destroyed,f.length,f.ended),!f.destroyed&&!f.errored&&(f.length||f.ended)&&(s.emit("readable"),f.emittedReadable=!1),f.needReadable=!f.flowing&&!f.ended&&f.length<=f.highWaterMark,rr(s)}function ze(s,f){!f.readingMore&&f.constructed&&(f.readingMore=!0,e.nextTick(Bn,s,f))}function Bn(s,f){for(;!f.reading&&!f.ended&&(f.length1&&m.pipes.includes(s)&&(w("false write response, pause",m.awaitDrainWriters.size),m.awaitDrainWriters.add(s)),I.pause()),we||(we=Gn(I,s),s.on("drain",we))}I.on("data",fr);function fr(Ee){w("ondata");const ce=s.write(Ee);w("dest.write",ce),ce===!1&&lr()}function wt(Ee){if(w("onerror",Ee),Me(),s.removeListener("error",wt),s.listenerCount("error")===0){const ce=s._writableState||s._readableState;ce&&!ce.errorEmitted?Z(s,Ee):s.emit("error",Ee)}}g(s,"error",wt);function Et(){s.removeListener("finish",St),Me()}s.once("close",Et);function St(){w("onfinish"),s.removeListener("close",Et),Me()}s.once("finish",St);function Me(){w("unpipe"),I.unpipe(s)}return s.emit("pipe",I),s.writableNeedDrain===!0?lr():m.flowing||(w("pipe resume"),I.resume()),s};function Gn(s,f){return function(){const m=s._readableState;m.awaitDrainWriters===f?(w("pipeOnDrain",1),m.awaitDrainWriters=null):m.multiAwaitDrain&&(w("pipeOnDrain",m.awaitDrainWriters.size),m.awaitDrainWriters.delete(f)),(!m.awaitDrainWriters||m.awaitDrainWriters.size===0)&&s.listenerCount("data")&&s.resume()}}P.prototype.unpipe=function(s){const f=this._readableState,I={hasUnpiped:!1};if(f.pipes.length===0)return this;if(!s){const C=f.pipes;f.pipes=[],this.pause();for(let ne=0;ne0,m.flowing!==!1&&this.resume()):s==="readable"&&!m.endEmitted&&!m.readableListening&&(m.readableListening=m.needReadable=!0,m.flowing=!1,m.emittedReadable=!1,w("on readable",m.length,m.reading),m.length?Ye(this):m.reading||e.nextTick(Hn,this)),I},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(s,f){const I=E.prototype.removeListener.call(this,s,f);return s==="readable"&&e.nextTick(tr,this),I},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(s){const f=E.prototype.removeAllListeners.apply(this,arguments);return(s==="readable"||s===void 0)&&e.nextTick(tr,this),f};function tr(s){const f=s._readableState;f.readableListening=s.listenerCount("readable")>0,f.resumeScheduled&&f[j]===!1?f.flowing=!0:s.listenerCount("data")>0?s.resume():f.readableListening||(f.flowing=null)}function Hn(s){w("readable nexttick read 0"),s.read(0)}P.prototype.resume=function(){const s=this._readableState;return s.flowing||(w("resume"),s.flowing=!s.readableListening,Kn(this,s)),s[j]=!1,this};function Kn(s,f){f.resumeScheduled||(f.resumeScheduled=!0,e.nextTick(Jn,s,f))}function Jn(s,f){w("resume",f.reading),f.reading||s.read(0),f.resumeScheduled=!1,s.emit("resume"),rr(s),f.flowing&&!f.reading&&s.read(0)}P.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function rr(s){const f=s._readableState;for(w("flow",f.flowing);f.flowing&&s.read()!==null;);}P.prototype.wrap=function(s){let f=!1;s.on("data",m=>{!this.push(m)&&s.pause&&(f=!0,s.pause())}),s.on("end",()=>{this.push(null)}),s.on("error",m=>{Z(this,m)}),s.on("close",()=>{this.destroy()}),s.on("destroy",()=>{this.destroy()}),this._read=()=>{f&&s.resume&&(f=!1,s.resume())};const I=i(s);for(let m=1;m{C=oe?F(C,oe):null,I(),I=z});try{for(;;){const oe=s.destroyed?null:s.read();if(oe!==null)yield oe;else{if(C)throw C;if(C===null)return;await new d(m)}}}catch(oe){throw C=F(C,oe),C}finally{(C||(f==null?void 0:f.destroyOnReturn)!==!1)&&(C===void 0||s._readableState.autoDestroy)?v.destroyer(s,null):(s.off("readable",m),ne())}}a(P.prototype,{readable:{__proto__:null,get(){const s=this._readableState;return!!s&&s.readable!==!1&&!s.destroyed&&!s.errorEmitted&&!s.endEmitted},set(s){this._readableState&&(this._readableState.readable=!!s)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(s){this._readableState&&(this._readableState.flowing=s)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(s){this._readableState&&(this._readableState.destroyed=s)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),a(ue.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(s){this[j]=!!s}}}),P._fromList=ir;function ir(s,f){if(f.length===0)return null;let I;return f.objectMode?I=f.buffer.shift():!s||s>=f.length?(f.decoder?I=f.buffer.join(""):f.buffer.length===1?I=f.buffer.first():I=f.buffer.concat(f.length),f.buffer.clear()):I=f.buffer.consume(s,f.decoder),I}function gt(s){const f=s._readableState;w("endReadable",f.endEmitted),f.endEmitted||(f.ended=!0,e.nextTick(Yn,f,s))}function Yn(s,f){if(w("endReadableNT",s.endEmitted,s.length),!s.errored&&!s.closeEmitted&&!s.endEmitted&&s.length===0){if(s.endEmitted=!0,f.emit("end"),f.writable&&f.allowHalfOpen===!1)e.nextTick(zn,f);else if(s.autoDestroy){const I=f._writableState;(!I||I.autoDestroy&&(I.finished||I.writable===!1))&&f.destroy()}}}function zn(s){s.writable&&!s.writableEnded&&!s.destroyed&&s.end()}P.from=function(s,f){return Q(P,s,f)};let _t;function or(){return _t===void 0&&(_t={}),_t}return P.fromWeb=function(s,f){return or().newStreamReadableFromReadableStream(s,f)},P.toWeb=function(s,f){return or().newReadableStreamFromStreamReadable(s,f)},P.wrap=function(s,f){var I,m;return new P({objectMode:(I=(m=s.readableObjectMode)!==null&&m!==void 0?m:s.objectMode)!==null&&I!==void 0?I:!0,...f,destroy(C,ne){v.destroyer(s,C),ne(C)}}).wrap(s)},ii}var oi,wa;function yo(){if(wa)return oi;wa=1;const e=Ie,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:o,ObjectDefineProperties:a,ObjectSetPrototypeOf:i,StringPrototypeToLowerCase:l,Symbol:d,SymbolHasInstance:u}=se;oi=M,M.WritableState=R;const{EventEmitter:h}=ct,_=po.Stream,{Buffer:b}=be,c=zt,{addAbortSignal:E}=fn,{getHighWaterMark:g,getDefaultHighWaterMark:S}=dn,{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:$,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:v,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:U,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:W}=me.codes,{errorOrDestroy:ee}=c;i(M.prototype,_.prototype),i(M,_);function J(){}const k=d("kOnFinished");function R(p,y,A){typeof A!="boolean"&&(A=y instanceof et()),this.objectMode=!!(p&&p.objectMode),A&&(this.objectMode=this.objectMode||!!(p&&p.writableObjectMode)),this.highWaterMark=p?g(this,p,"writableHighWaterMark",A):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const N=!!(p&&p.decodeStrings===!1);this.decodeStrings=!N,this.defaultEncoding=p&&p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Z.bind(void 0,y),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,V(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!p||p.emitClose!==!1,this.autoDestroy=!p||p.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[k]=[]}function V(p){p.buffered=[],p.bufferedIndex=0,p.allBuffers=!0,p.allNoop=!0}R.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},o(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function M(p){const y=this instanceof et();if(!y&&!n(M,this))return new M(p);this._writableState=new R(p,this,y),p&&(typeof p.write=="function"&&(this._write=p.write),typeof p.writev=="function"&&(this._writev=p.writev),typeof p.destroy=="function"&&(this._destroy=p.destroy),typeof p.final=="function"&&(this._final=p.final),typeof p.construct=="function"&&(this._construct=p.construct),p.signal&&E(p.signal,this)),_.call(this,p),c.construct(this,()=>{const A=this._writableState;A.writing||te(this,A),Ne(this,A)})}o(M,u,{__proto__:null,value:function(p){return n(this,p)?!0:this!==M?!1:p&&p._writableState instanceof R}}),M.prototype.pipe=function(){ee(this,new B)};function j(p,y,A,N){const O=p._writableState;if(typeof A=="function")N=A,A=O.defaultEncoding;else{if(!A)A=O.defaultEncoding;else if(A!=="buffer"&&!b.isEncoding(A))throw new W(A);typeof N!="function"&&(N=J)}if(y===null)throw new U;if(!O.objectMode)if(typeof y=="string")O.decodeStrings!==!1&&(y=b.from(y,A),A="buffer");else if(y instanceof b)A="buffer";else if(_._isUint8Array(y))y=_._uint8ArrayToBuffer(y),A="buffer";else throw new T("chunk",["string","Buffer","Uint8Array"],y);let K;return O.ending?K=new F:O.destroyed&&(K=new v("write")),K?(e.nextTick(N,K),ee(p,K,!0),K):(O.pendingcb++,X(p,O,y,A,N))}M.prototype.write=function(p,y,A){return j(this,p,y,A)===!0},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){const p=this._writableState;p.corked&&(p.corked--,p.writing||te(this,p))},M.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=l(y)),!b.isEncoding(y))throw new W(y);return this._writableState.defaultEncoding=y,this};function X(p,y,A,N,O){const K=y.objectMode?1:A.length;y.length+=K;const Y=y.lengthA.bufferedIndex&&te(p,A),N?A.afterWriteTickInfo!==null&&A.afterWriteTickInfo.cb===O?A.afterWriteTickInfo.count++:(A.afterWriteTickInfo={count:1,cb:O,stream:p,state:A},e.nextTick(G,A.afterWriteTickInfo)):de(p,A,1,O))}function G({stream:p,state:y,count:A,cb:N}){return y.afterWriteTickInfo=null,de(p,y,A,N)}function de(p,y,A,N){for(!y.ending&&!p.destroyed&&y.length===0&&y.needDrain&&(y.needDrain=!1,p.emit("drain"));A-- >0;)y.pendingcb--,N();y.destroyed&&L(y),Ne(p,y)}function L(p){if(p.writing)return;for(let O=p.bufferedIndex;O1&&p._writev){y.pendingcb-=K-1;const H=y.allNoop?J:P=>{for(let he=Y;he256?(A.splice(0,Y),y.bufferedIndex=0):y.bufferedIndex=Y}y.bufferProcessing=!1}M.prototype._write=function(p,y,A){if(this._writev)this._writev([{chunk:p,encoding:y}],A);else throw new $("_write()")},M.prototype._writev=null,M.prototype.end=function(p,y,A){const N=this._writableState;typeof p=="function"?(A=p,p=null,y=null):typeof y=="function"&&(A=y,y=null);let O;if(p!=null){const K=j(this,p,y);K instanceof r&&(O=K)}return N.corked&&(N.corked=1,this.uncork()),O||(!N.errored&&!N.ending?(N.ending=!0,Ne(this,N,!0),N.ended=!0):N.finished?O=new x("end"):N.destroyed&&(O=new v("end"))),typeof A=="function"&&(O||N.finished?e.nextTick(A,O):N[k].push(A)),this};function fe(p){return p.ending&&!p.destroyed&&p.constructed&&p.length===0&&!p.errored&&p.buffered.length===0&&!p.finished&&!p.writing&&!p.errorEmitted&&!p.closeEmitted}function Te(p,y){let A=!1;function N(O){if(A){ee(p,O??w());return}if(A=!0,y.pendingcb--,O){const K=y[k].splice(0);for(let Y=0;Y{fe(O)?Pe(N,O):O.pendingcb--},p,y)):fe(y)&&(y.pendingcb++,Pe(p,y))))}function Pe(p,y){y.pendingcb--,y.finished=!0;const A=y[k].splice(0);for(let N=0;N{if(L!=null)throw new E("nully","body",L)},L=>{g(G,L)});return G=new W({objectMode:!0,readable:!1,write:X,final(L){Q(async()=>{try{await de,e.nextTick(L,null)}catch(te){e.nextTick(L,te)}})},destroy:z})}throw new E("Iterable, AsyncIterable or AsyncFunction",V,j)}if(x(R))return k(R.arrayBuffer());if(o(R))return B(W,R,{objectMode:!0,writable:!1});if(u(R==null?void 0:R.readable)&&h(R==null?void 0:R.writable))return W.fromWeb(R);if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){const j=R!=null&&R.readable?i(R==null?void 0:R.readable)?R==null?void 0:R.readable:k(R.readable):void 0,X=R!=null&&R.writable?l(R==null?void 0:R.writable)?R==null?void 0:R.writable:k(R.writable):void 0;return J({readable:j,writable:X})}const M=R==null?void 0:R.then;if(typeof M=="function"){let j;return F(M,R,X=>{X!=null&&j.push(X),j.push(null)},X=>{g(j,X)}),j=new W({objectMode:!0,writable:!1,read(){}})}throw new c(V,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function ee(k){let{promise:R,resolve:V}=w();const M=new U,j=M.signal;return{value:k(async function*(){for(;;){const Q=R;R=null;const{chunk:z,done:Z,cb:G}=await Q;if(e.nextTick(G),Z)return;if(j.aborted)throw new b(void 0,{cause:j.reason});({promise:R,resolve:V}=w()),yield z}}(),{signal:j}),write(Q,z,Z){const G=V;V=null,G({chunk:Q,done:!1,cb:Z})},final(Q){const z=V;V=null,z({done:!0,cb:Q})},destroy(Q,z){M.abort(),z(Q)}}}function J(k){const R=k.readable&&typeof k.readable.read!="function"?T.wrap(k.readable):k.readable,V=k.writable;let M=!!r(R),j=!!n(V),X,Q,z,Z,G;function de(L){const te=Z;Z=null,te?te(L):L&&G.destroy(L)}return G=new W({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(V!=null&&V.writableObjectMode),readable:M,writable:j}),j&&(_(V,L=>{j=!1,L&&g(R,L),de(L)}),G._write=function(L,te,fe){V.write(L,te)?fe():X=fe},G._final=function(L){V.end(),Q=L},V.on("drain",function(){if(X){const L=X;X=null,L()}}),V.on("finish",function(){if(Q){const L=Q;Q=null,L()}})),M&&(_(R,L=>{M=!1,L&&g(R,L),de(L)}),R.on("readable",function(){if(z){const L=z;z=null,L()}}),R.on("end",function(){G.push(null)}),G._read=function(){for(;;){const L=R.read();if(L===null){z=G._read;return}if(!G.push(L))return}}),G._destroy=function(L,te){!L&&Z!==null&&(L=new b),z=null,X=null,Q=null,Z===null?te(L):(Z=te,g(V,L),g(R,L))},G}return ai}var si,Sa;function et(){if(Sa)return si;Sa=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:n}=se;si=i;const o=un(),a=yo();n(i.prototype,o.prototype),n(i,o);{const h=r(a.prototype);for(let _=0;_{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function yc(){this._final!==Ki&&Ki.call(this)}tt.prototype._final=Ki;tt.prototype._transform=function(e,t,r){throw new bc("_transform()")};tt.prototype._write=function(e,t,r){const n=this._readableState,o=this._writableState,a=n.length;this._transform(e,t,(i,l)=>{if(i){r(i);return}l!=null&&this.push(l),o.ended||a===n.length||n.length{n=!0});const o=Yr(e,{readable:t,writable:r},a=>{n=!a});return{destroy:a=>{n||(n=!0,Rc.destroyer(e,a||new mc("pipe")))},cleanup:o}}function Dc(e){return Cc(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function bi(e){if(mt(e))return e;if(Gr(e))return Lc(e);throw new Ji("val",["Readable","Iterable","AsyncIterable"],e)}async function*Lc(e){ci||(ci=un()),yield*ci.prototype[wc].call(e)}async function xr(e,t,r,{end:n}){let o,a=null;const i=u=>{if(u&&(o=u),a){const h=a;a=null,h()}},l=()=>new _c((u,h)=>{o?h(o):a=()=>{o?h(o):u()}});t.on("drain",i);const d=Yr(t,{readable:!1},i);try{t.writableNeedDrain&&await l();for await(const u of e)t.write(u)||await l();n&&(t.end(),await l()),r()}catch(u){r(o!==u?Ac(o,u):u)}finally{d(),t.off("drain",i)}}async function pi(e,t,r,{end:n}){jt(t)&&(t=t.writable);const o=t.getWriter();try{for await(const a of e)await o.ready,o.write(a).catch(()=>{});await o.ready,n&&await o.close(),r()}catch(a){try{await o.abort(a),r(a)}catch(i){r(i)}}}function Pc(...e){return xl(e,Sc(Dc(e)))}function xl(e,t,r){if(e.length===1&&gc(e[0])&&(e=e[0]),e.length<2)throw new Ic("streams");const n=new xc,o=n.signal,a=r==null?void 0:r.signal,i=[];Nc(a,"options.signal");function l(){E(new Tc)}hi=hi||Re.addAbortListener;let d;a&&(d=hi(a,l));let u,h;const _=[];let b=0;function c($){E($,--b===0)}function E($,w){var B;if($&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=$),!(!u&&!w)){for(;_.length;)_.shift()(u);(B=d)===null||B===void 0||B[Ec](),n.abort(),w&&(u||i.forEach(v=>v()),_r.nextTick(t,u,h))}}let g;for(let $=0;$0,x=B||(r==null?void 0:r.end)!==!1,U=$===e.length-1;if(Aa(w)){let F=function(W){W&&W.name!=="AbortError"&&W.code!=="ERR_STREAM_PREMATURE_CLOSE"&&c(W)};if(x){const{destroy:W,cleanup:ee}=Ia(w,B,v);_.push(W),fi(w)&&U&&i.push(ee)}w.on("error",F),fi(w)&&U&&i.push(()=>{w.removeListener("error",F)})}if($===0)if(typeof w=="function"){if(g=w({signal:o}),!mt(g))throw new li("Iterable, AsyncIterable or Stream","source",g)}else mt(w)||Gr(w)||jt(w)?g=w:g=Ra.from(w);else if(typeof w=="function"){if(jt(g)){var S;g=bi((S=g)===null||S===void 0?void 0:S.readable)}else g=bi(g);if(g=w(g,{signal:o}),B){if(!mt(g,!0))throw new li("AsyncIterable",`transform[${$-1}]`,g)}else{var T;ui||(ui=$l);const F=new ui({objectMode:!0}),W=(T=g)===null||T===void 0?void 0:T.then;if(typeof W=="function")b++,W.call(g,k=>{h=k,k!=null&&F.write(k),x&&F.end(),_r.nextTick(c)},k=>{F.destroy(k),_r.nextTick(c,k)});else if(mt(g,!0))b++,xr(g,F,c,{end:x});else if(di(g)||jt(g)){const k=g.readable||g;b++,xr(k,F,c,{end:x})}else throw new li("AsyncIterable or Promise","destination",g);g=F;const{destroy:ee,cleanup:J}=Ia(g,!1,!0);_.push(ee),U&&i.push(J)}}else if(Aa(w)){if(Gr(g)){b+=2;const F=kc(g,w,c,{end:x});fi(w)&&U&&i.push(F)}else if(jt(g)||di(g)){const F=g.readable||g;b++,xr(F,w,c,{end:x})}else if(mt(g))b++,xr(g,w,c,{end:x});else throw new Ji("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else if(Oc(w)){if(Gr(g))b++,pi(bi(g),w,c,{end:x});else if(di(g)||mt(g))b++,pi(g,w,c,{end:x});else if(jt(g))b++,pi(g.readable,w,c,{end:x});else throw new Ji("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else g=Ra.from(w)}return(o!=null&&o.aborted||a!=null&&a.aborted)&&_r.nextTick(l),g}function kc(e,t,r,{end:n}){let o=!1;if(t.on("close",()=>{o||r(new vc)}),e.pipe(t,{end:!1}),n){let a=function(){o=!0,t.end()};$c(e)?_r.nextTick(a):e.once("end",a)}else r();return Yr(e,{readable:!0,writable:!1},a=>{const i=e._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted?e.once("end",r).once("error",r):r(a)}),Yr(t,{readable:!1,writable:!0},r)}var wo={pipelineImpl:xl,pipeline:Pc};const{pipeline:Mc}=wo,Dr=et(),{destroyer:Vc}=zt,{isNodeStream:Lr,isReadable:ma,isWritable:va,isWebStream:yi,isTransformStream:Rt,isWritableStream:Ta,isReadableStream:Ca}=it,{AbortError:jc,codes:{ERR_INVALID_ARG_VALUE:Na,ERR_MISSING_ARGS:Fc}}=me,Uc=ht;var Dl=function(...t){if(t.length===0)throw new Fc("streams");if(t.length===1)return Dr.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Dr.from(t[0])),typeof t[t.length-1]=="function"){const c=t.length-1;t[c]=Dr.from(t[c])}for(let c=0;c0&&!(va(t[c])||Ta(t[c])||Rt(t[c])))throw new Na(`streams[${c}]`,r[c],"must be writable")}let n,o,a,i,l;function d(c){const E=i;i=null,E?E(c):c?l.destroy(c):!b&&!_&&l.destroy()}const u=t[0],h=Mc(t,d),_=!!(va(u)||Ta(u)||Rt(u)),b=!!(ma(h)||Ca(h)||Rt(h));if(l=new Dr({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:_,readable:b}),_){if(Lr(u))l._write=function(E,g,S){u.write(E,g)?S():n=S},l._final=function(E){u.end(),o=E},u.on("drain",function(){if(n){const E=n;n=null,E()}});else if(yi(u)){const g=(Rt(u)?u.writable:u).getWriter();l._write=async function(S,T,$){try{await g.ready,g.write(S).catch(()=>{}),$()}catch(w){$(w)}},l._final=async function(S){try{await g.ready,g.close().catch(()=>{}),o=S}catch(T){S(T)}}}const c=Rt(h)?h.readable:h;Uc(c,()=>{if(o){const E=o;o=null,E()}})}if(b){if(Lr(h))h.on("readable",function(){if(a){const c=a;a=null,c()}}),h.on("end",function(){l.push(null)}),l._read=function(){for(;;){const c=h.read();if(c===null){a=l._read;return}if(!l.push(c))return}};else if(yi(h)){const E=(Rt(h)?h.readable:h).getReader();l._read=async function(){for(;;)try{const{value:g,done:S}=await E.read();if(!l.push(g))return;if(S){l.push(null);return}}catch{return}}}}return l._destroy=function(c,E){!c&&i!==null&&(c=new jc),a=null,n=null,o=null,i===null?E(c):(i=E,Lr(h)&&Vc(h,c))},l};const Wc=globalThis.AbortController||Ge().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Bc,ERR_INVALID_ARG_TYPE:mr,ERR_MISSING_ARGS:Gc,ERR_OUT_OF_RANGE:Hc},AbortError:He}=me,{validateAbortSignal:xt,validateInteger:Oa,validateObject:Dt}=Ir,Kc=se.Symbol("kWeak"),Jc=se.Symbol("kResistStopPropagation"),{finished:qc}=ht,Yc=Dl,{addAbortSignalNoValidate:zc}=fn,{isWritable:Xc,isNodeStream:Qc}=it,{deprecate:Zc}=Re,{ArrayPrototypePush:eh,Boolean:th,MathFloor:$a,Number:rh,NumberIsNaN:nh,Promise:xa,PromiseReject:Da,PromiseResolve:ih,PromisePrototypeThen:La,Symbol:Ll}=se,zr=Ll("kEmpty"),Pa=Ll("kEof");function oh(e,t){if(t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),Qc(e)&&!Xc(e))throw new Bc("stream",e,"must be writable");const r=Yc(this,e);return t!=null&&t.signal&&zc(t.signal,r),r}function cn(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=$a(t.concurrency));let n=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(n=$a(t.highWaterMark)),Oa(r,"options.concurrency",1),Oa(n,"options.highWaterMark",0),n+=r,(async function*(){const a=Re.AbortSignalAny([t==null?void 0:t.signal].filter(th)),i=this,l=[],d={signal:a};let u,h,_=!1,b=0;function c(){_=!0,E()}function E(){b-=1,g()}function g(){h&&!_&&b=n||b>=r)&&await new xa($=>{h=$})}l.push(Pa)}catch(T){const $=Da(T);La($,E,c),l.push($)}finally{_=!0,u&&(u(),u=null)}}S();try{for(;;){for(;l.length>0;){const T=await l[0];if(T===Pa)return;if(a.aborted)throw new He;T!==zr&&(yield T),l.shift(),g()}await new xa(T=>{u=T})}}finally{_=!0,h&&(h(),h=null)}}).call(this)}function ah(e=void 0){return e!=null&&Dt(e,"options"),(e==null?void 0:e.signal)!=null&&xt(e.signal,"options.signal"),(async function*(){let r=0;for await(const o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new He({cause:e.signal.reason});yield[r++,o]}}).call(this)}async function Pl(e,t=void 0){for await(const r of Eo.call(this,e,t))return!0;return!1}async function sh(e,t=void 0){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);return!await Pl.call(this,async(...r)=>!await e(...r),t)}async function lh(e,t){for await(const r of Eo.call(this,e,t))return r}async function fh(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o),zr}for await(const n of cn.call(this,r,t));}function Eo(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o)?n:zr}return cn.call(this,r,t)}let dh=class extends Gc{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function uh(e,t,r){var n;if(typeof e!="function")throw new mr("reducer",["Function","AsyncFunction"],e);r!=null&&Dt(r,"options"),(r==null?void 0:r.signal)!=null&&xt(r.signal,"options.signal");let o=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new He(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await qc(this.destroy(u)),u}const a=new Wc,i=a.signal;if(r!=null&&r.signal){const u={once:!0,[Kc]:this,[Jc]:!0};r.signal.addEventListener("abort",()=>a.abort(),u)}let l=!1;try{for await(const u of this){var d;if(l=!0,r!=null&&(d=r.signal)!==null&&d!==void 0&&d.aborted)throw new He;o?t=await e(t,u,{signal:i}):(t=u,o=!0)}if(!l&&!o)throw new dh}finally{a.abort()}return t}async function ch(e){e!=null&&Dt(e,"options"),(e==null?void 0:e.signal)!=null&&xt(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new He(void 0,{cause:e.signal.reason});eh(t,n)}return t}function hh(e,t){const r=cn.call(this,e,t);return(async function*(){for await(const o of r)yield*o}).call(this)}function kl(e){if(e=rh(e),nh(e))return 0;if(e<0)throw new Hc("number",">= 0",e);return e}function bh(e,t=void 0){return t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),e=kl(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new He;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new He;e--<=0&&(yield a)}}).call(this)}function ph(e,t=void 0){return t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),e=kl(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new He;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new He;if(e-- >0&&(yield a),e<=0)return}}).call(this)}fo.streamReturningOperators={asIndexedPairs:Zc(ah,"readable.asIndexedPairs will be removed in a future version."),drop:bh,filter:Eo,flatMap:hh,map:cn,take:ph,compose:oh};fo.promiseReturningOperators={every:sh,forEach:fh,reduce:uh,toArray:ch,some:Pl,find:lh};var gi,ka;function Ml(){if(ka)return gi;ka=1;const{ArrayPrototypePop:e,Promise:t}=se,{isIterable:r,isNodeStream:n,isWebStream:o}=it,{pipelineImpl:a}=wo,{finished:i}=ht;Vl();function l(...d){return new t((u,h)=>{let _,b;const c=d[d.length-1];if(c&&typeof c=="object"&&!n(c)&&!r(c)&&!o(c)){const E=e(d);_=E.signal,b=E.end}a(d,(E,g)=>{E?h(E):u(g)},{signal:_,end:b})})}return gi={finished:i,pipeline:l},gi}var Ma;function Vl(){if(Ma)return ei.exports;Ma=1;const{Buffer:e}=be,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:n}=se,{promisify:{custom:o}}=Re,{streamReturningOperators:a,promiseReturningOperators:i}=fo,{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=me,d=Dl,{setDefaultHighWaterMark:u,getDefaultHighWaterMark:h}=dn,{pipeline:_}=wo,{destroyer:b}=zt,c=ht,E=Ml(),g=it,S=ei.exports=po.Stream;S.isDestroyed=g.isDestroyed,S.isDisturbed=g.isDisturbed,S.isErrored=g.isErrored,S.isReadable=g.isReadable,S.isWritable=g.isWritable,S.Readable=un();for(const $ of r(a)){let B=function(...v){if(new.target)throw l();return S.Readable.from(n(w,this,v))};const w=a[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}for(const $ of r(i)){let B=function(...v){if(new.target)throw l();return n(w,this,v)};const w=i[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}S.Writable=yo(),S.Duplex=et(),S.Transform=Nl,S.PassThrough=$l,S.pipeline=_;const{addAbortSignal:T}=fn;return S.addAbortSignal=T,S.finished=c,S.destroy=b,S.compose=d,S.setDefaultHighWaterMark=u,S.getDefaultHighWaterMark=h,t(S,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return E}}),t(_,o,{__proto__:null,enumerable:!0,get(){return E.pipeline}}),t(c,o,{__proto__:null,enumerable:!0,get(){return E.finished}}),S.Stream=S,S._isUint8Array=function(w){return w instanceof Uint8Array},S._uint8ArrayToBuffer=function(w){return e.from(w.buffer,w.byteOffset,w.byteLength)},ei.exports}(function(e){const t=Vl(),r=Ml(),n=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=n,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(qs);var yh=qs.exports,hn={},ur={},cr={},bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.ContainerHandlerIdentifier=void 0;class gh{canCombineWithGraph(){return!0}async handle(t,r,n,o,a,i){let l;if(r.emittedStack[i+1]&&r.idStack[i+1])l=r.idStack[i+1][0];else{const h=await n.getContainerKey(o[i],o,i)!==null?await n.resourceToTerm(await r.getContext(o),o[i]):n.dataFactory.blankNode();if(!h){r.emittedStack[i]=!1;return}l=h,r.idStack[i+1]=[l]}let d=r.idStack[i];d||(d=r.idStack[i]=[]),d.some(u=>u.equals(l))||d.push(l),await r.handlePendingContainerFlushBuffers()||(r.emittedStack[i]=!1)}}bn.ContainerHandlerIdentifier=gh;var hr={},br={},Va;function pn(){if(Va)return br;Va=1,Object.defineProperty(br,"__esModule",{value:!0}),br.EntryHandlerPredicate=void 0;const e=Se,t=Lt();let r=class jl{static async handlePredicateObject(o,a,i,l,d,u,h,_,b){const c=await a.getPropertiesDepth(i,l),E=await a.getDepthOffsetGraph(l,i),g=l-E,S=o.idStack[c];if(S&&!b)for(const T of S)if(E>=0){const w=o.idStack[g-1];if(w)for(const B of w)a.emitQuadChecked(l,T,d,u,B,h,_);else h?(a.validateReverseSubject(u),o.getUnidentifiedGraphBufferSafe(g-1).push({subject:u,predicate:d,object:T,isEmbedded:_})):o.getUnidentifiedGraphBufferSafe(g-1).push({subject:T,predicate:d,object:u,isEmbedded:_})}else{const w=await a.getGraphContainerValue(i,c);a.emitQuadChecked(l,T,d,u,w,h,_)}else if(h&&a.validateReverseSubject(u),b){if(o.rdfstar){o.idStack[l]&&o.emitError(new e.ErrorCoded(`Found an illegal @id inside an annotation: ${o.idStack[l][0].value}`,e.ERROR_CODES.INVALID_ANNOTATION));for(let w=0;w=0;w--){const B=T[w];B.depth>c&&($.nestedAnnotations.push(B),T.splice(w,1))}}}else o.getUnidentifiedValueBufferSafe(c).push({predicate:d,object:u,reverse:h,isEmbedded:_})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(o,a,i,l,d){const u=i[l];if(u){const h=await o.getContext(i);if(!o.jsonLiteralStack[l]&&await a.predicateToTerm(h,i[l]))return t.Util.getContextValueType(h,u)==="@json"&&(o.jsonLiteralStack[l+1]=!0),!0}return!1}async test(o,a,i,l,d){return l[d]}async handle(o,a,i,l,d,u,h){const _=l[u],b=await o.getContext(l),c=await a.predicateToTerm(b,i);if(c){const E=await a.valueToTerm(b,i,d,u,l);if(E.length)for(let g of E){let S=await a.unaliasKeywordParent(l,u);const T=t.Util.isPropertyReverse(b,_,S);let $=0;for(;S==="@reverse"||typeof S=="number";)typeof S=="number"?$++:u--,S=await a.unaliasKeywordParent(l,u-$);const w=t.Util.isPropertyInEmbeddedNode(S);a.validateReverseInEmbeddedNode(i,T,w);const B=t.Util.isPropertyInAnnotationObject(S);if(d){const v="@list"in t.Util.getContextValueContainer(b,i);if(v||d["@list"]){if((v&&!Array.isArray(d)&&!d["@list"]||d["@list"]&&!Array.isArray(d["@list"]))&&g!==a.rdfNil){const x=a.dataFactory.blankNode();o.emitQuad(u,a.dataFactory.quad(x,a.rdfRest,a.rdfNil,a.getDefaultGraph())),o.emitQuad(u,a.dataFactory.quad(x,a.rdfFirst,g,a.getDefaultGraph())),g=x}if(T&&!o.allowSubjectList)throw new e.ErrorCoded(`Found illegal list value in subject position at ${i}`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await jl.handlePredicateObject(o,a,l,u,c,g,T,w,B)}}}};return br.EntryHandlerPredicate=r,br}var ja;function _h(){if(ja)return hr;ja=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.ContainerHandlerIndex=void 0;const e=Se,t=pn(),r=Lt();let n=class{canCombineWithGraph(){return!0}async handle(a,i,l,d,u,h){if(!Array.isArray(u)){const _="@graph"in a,b=await i.getContext(d),c=d[h-1],E=r.Util.getContextValueIndex(b,c);if(E){if(e.Util.isPotentialKeyword(E))throw new e.ErrorCoded(`Keywords can not be used as @index value, got: ${E}`,e.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof E!="string")throw new e.ErrorCoded(`@index values must be strings, got: ${E}`,e.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof u!="object"){if(r.Util.getContextValueType(b,c)!=="@id")throw new e.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${u}`,e.ERROR_CODES.INVALID_VALUE_OBJECT);const T=l.resourceToTerm(b,u);T&&(i.idStack[h+1]=[T])}const S=l.createVocabOrBaseTerm(b,E);if(S){const T=await l.valueToTerm(b,E,await l.getContainerKey(d[h],d,h),h,d);if(_){const $=await l.getGraphContainerValue(d,h+1);for(const w of T)i.emitQuad(h,l.dataFactory.quad($,S,w,l.getDefaultGraph()))}else for(const $ of T)await t.EntryHandlerPredicate.handlePredicateObject(i,l,d,h+1,S,$,!1,!1,!1)}}const g=_?2:1;await i.newOnValueJob(d.slice(0,d.length-g),u,h-g,!0),await i.handlePendingContainerFlushBuffers()}i.emittedStack[h]=!1}};return hr.ContainerHandlerIndex=n,hr}var yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.ContainerHandlerLanguage=void 0;const Fa=Se;class wh{canCombineWithGraph(){return!1}async handle(t,r,n,o,a,i){const l=await n.getContainerKey(o[i],o,i);if(Array.isArray(a))a=a.map(d=>({"@value":d,"@language":l}));else{if(typeof a!="string")throw new Fa.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(a)}', but expected string`,Fa.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);a={"@value":a,"@language":l}}await r.newOnValueJob(o.slice(0,o.length-1),a,i-1,!0),r.emittedStack[i]=!1}}yn.ContainerHandlerLanguage=wh;var pr={},Ua;function Eh(){if(Ua)return pr;Ua=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.ContainerHandlerType=void 0;const e=pn(),t=Lt();let r=class{canCombineWithGraph(){return!1}async handle(o,a,i,l,d,u){if(!Array.isArray(d)){if(typeof d=="string"){const b=await a.getContext(l),E=t.Util.getContextValueType(b,l[u-1])==="@vocab"?await i.createVocabOrBaseTerm(b,d):await i.resourceToTerm(b,d);if(E){const g={"@id":E.termType==="NamedNode"?E.value:d};await a.newOnValueJob(l.slice(0,l.length-1),g,u-1,!0),a.idStack[u+1]=[E]}}else{const b=!!a.idStack[u+1];b||delete a.idStack[u],await a.newOnValueJob(l.slice(0,l.length-1),d,u-1,!0),b||(a.idStack[u+1]=a.idStack[u])}const h=await i.getContainerKey(l[u],l,u),_=h!==null?i.createVocabOrBaseTerm(await a.getContext(l),h):null;_&&await e.EntryHandlerPredicate.handlePredicateObject(a,i,l,u+1,i.rdfType,_,!1,!1,!1),await a.handlePendingContainerFlushBuffers()}a.emittedStack[u]=!1}};return pr.ContainerHandlerType=r,pr}var Wa;function Fl(){if(Wa)return cr;Wa=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.EntryHandlerContainer=void 0;const e=bn,t=_h(),r=yn,n=Eh(),o=Lt();let a=class at{static isSimpleGraphContainer(l){return"@graph"in l&&("@set"in l&&Object.keys(l).length===2||Object.keys(l).length===1)}static isComplexGraphContainer(l){return"@graph"in l&&("@set"in l&&Object.keys(l).length>2||!("@set"in l)&&Object.keys(l).length>1)}static getContainerGraphIndex(l,d,u){let h=at.isSimpleGraphContainer(l),_="";for(let b=d;b=0;c--)if(typeof d[c]!="number"){const E=o.Util.getContextValue(b,"@container",d[c],!1);if(E&&at.isSimpleGraphContainer(E))return{containers:E,depth:c+1,fallback:!1};const g=o.Util.getContextValue(b,"@container",d[c-1],!1);if(g){const S="@graph"in g;for(const T in at.CONTAINER_HANDLERS)if(g[T])return S?at.CONTAINER_HANDLERS[T].canCombineWithGraph()?{containers:g,depth:c,fallback:!1}:h:_?h:{containers:g,depth:c,fallback:!1};return h}else{if(_)return h;_=!0}}return h}static async isBufferableContainerHandler(l,d,u){const h=await at.getContainerHandler(l,d,u);return!h.fallback&&!("@graph"in h.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(l,d,u,h,_){return!!await this.test(l,d,null,u,h)}async test(l,d,u,h,_){const b=o.Util.getContextValueContainer(await l.getContext(h,2),h[_-1]);for(const c in at.CONTAINER_HANDLERS)if(b[c])return{containers:b,handler:at.CONTAINER_HANDLERS[c]};return null}async handle(l,d,u,h,_,b,c){return c.handler.handle(c.containers,l,d,h,_,b)}};return a.CONTAINER_HANDLERS={"@id":new e.ContainerHandlerIdentifier,"@index":new t.ContainerHandlerIndex,"@language":new r.ContainerHandlerLanguage,"@type":new n.ContainerHandlerType},cr.EntryHandlerContainer=a,cr}var Ba;function Lt(){if(Ba)return ur;Ba=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.Util=void 0;const e=Se,t=Vf,r=Fl(),n=jf;let o=class ie{constructor(i){this.parsingContext=i.parsingContext,this.dataFactory=i.dataFactory||new t.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ie.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ie.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ie.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ie.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ie.RDF+"JSON")}static getContextValue(i,l,d,u){const h=i.getContextRaw()[d];if(!h)return u;const _=h[l];return _===void 0?u:_}static getContextValueContainer(i,l){return ie.getContextValue(i,"@container",l,{"@set":!0})}static getContextValueType(i,l){const d=ie.getContextValue(i,"@type",l,null);return d==="@none"?null:d}static getContextValueLanguage(i,l){return ie.getContextValue(i,"@language",l,i.getContextRaw()["@language"]||null)}static getContextValueDirection(i,l){return ie.getContextValue(i,"@direction",l,i.getContextRaw()["@direction"]||null)}static isContextValueReverse(i,l){return!!ie.getContextValue(i,"@reverse",l,null)}static getContextValueIndex(i,l){return ie.getContextValue(i,"@index",l,i.getContextRaw()["@index"]||null)}static isPropertyReverse(i,l,d){return d==="@reverse"!==ie.isContextValueReverse(i,l)}static isPropertyInEmbeddedNode(i){return i==="@id"}static isPropertyInAnnotationObject(i){return i==="@annotation"}static isValidIri(i){return i!==null&&e.Util.isValidIri(i)}static isPrefixArray(i,l){if(i.length>l.length)return!1;for(let d=0;d1)throw new e.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${l}'`,e.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in d){if(Object.keys(d).length>1)throw new e.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${l}'`,e.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const b=d["@list"];return Array.isArray(b)?b.length===0?[this.rdfNil]:this.parsingContext.idStack[u+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(h),l,b,u-1,h.slice(0,-1))}else{if("@reverse"in d&&typeof d["@reverse"]=="boolean")return[];if("@graph"in ie.getContextValueContainer(await this.parsingContext.getContext(h),l)){const b=this.parsingContext.graphContainerTermStack[u+1];return b?Object.values(b):[this.dataFactory.blankNode()]}else if("@id"in d){if(Object.keys(d).length>1&&(i=await this.parsingContext.getContext(h,0)),"@context"in d&&(i=await this.parsingContext.parseContext(d["@context"],i.getContextRaw())),d["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(i,d["@id"]));{const b=d["@id"];let c;if(typeof b=="object")if(this.parsingContext.rdfstar)c=this.parsingContext.idStack[u+1][0];else throw new e.ErrorCoded(`Found illegal @id '${d}'`,e.ERROR_CODES.INVALID_ID_VALUE);else c=this.resourceToTerm(i,b);return this.nullableTermToArray(c)}}else return this.parsingContext.emittedStack[u+1]||d&&typeof d=="object"&&Object.keys(d).length===0?this.parsingContext.idStack[u+1]||(this.parsingContext.idStack[u+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,d,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,(!!d).toString(),this.dataFactory.namedNode(ie.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,d,this.dataFactory.namedNode(d%1===0&&d<1e21?ie.XSD_INTEGER:ie.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${_}`)),[]}}async getContextSelfOrPropertyScoped(i,l){const d=i.getContextRaw()[l];return d&&typeof d=="object"&&"@context"in d&&(i=await this.parsingContext.parseContext(d,i.getContextRaw(),!0)),i}nullableTermToArray(i){return i?[i]:[]}predicateToTerm(i,l){const d=i.expandTerm(l,!0,this.parsingContext.getExpandOptions());if(!d)return null;if(d[0]==="_"&&d[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(d.substr(2)):null;if(ie.isValidIri(d))return this.dataFactory.namedNode(d);if(d&&this.parsingContext.strictValues)this.parsingContext.emitError(new e.ErrorCoded(`Invalid predicate IRI: ${d}`,e.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(i,l){if(l.startsWith("_:"))return this.dataFactory.blankNode(l.substr(2));const d=i.expandTerm(l,!1,this.parsingContext.getExpandOptions());if(!ie.isValidIri(d))if(d&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${d}`));else return null;return this.dataFactory.namedNode(d)}createVocabOrBaseTerm(i,l){if(l.startsWith("_:"))return this.dataFactory.blankNode(l.substr(2));const d=this.parsingContext.getExpandOptions();let u=i.expandTerm(l,!0,d);if(u===l&&(u=i.expandTerm(l,!1,d)),!ie.isValidIri(u))if(u&&this.parsingContext.strictValues&&!u.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${u}`));else return null;return this.dataFactory.namedNode(u)}intToString(i,l){return typeof i=="number"?Number.isFinite(i)?i%1===0&&(!l||l.value!==ie.XSD_DOUBLE)?Number(i).toString():i.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):i>0?"INF":"-INF":i}stringValueToTerm(i,l,d,u,h){const _=ie.getContextValueType(l,d);if(_)if(_==="@id"){if(!h)return this.resourceToTerm(l,this.intToString(u,h))}else if(_==="@vocab"){if(!h)return this.createVocabOrBaseTerm(l,this.intToString(u,h))}else h=this.dataFactory.namedNode(_);if(!h){const b=ie.getContextValueLanguage(l,d),c=ie.getContextValueDirection(l,d);return c&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(i,this.intToString(u,h),b,c):this.dataFactory.literal(this.intToString(u,h),b)}return this.dataFactory.literal(this.intToString(u,h),h)}createLanguageDirectionLiteral(i,l,d,u){if(this.parsingContext.rdfDirection==="i18n-datatype")return d||(d=""),this.dataFactory.literal(l,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${d}_${u}`));{const h=this.dataFactory.blankNode(),_=this.getDefaultGraph();return this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"value"),this.dataFactory.literal(l),_)),d&&this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"language"),this.dataFactory.literal(d),_)),this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"direction"),this.dataFactory.literal(u),_)),h}}valueToJsonString(i){return n(i)}async unaliasKeyword(i,l,d,u,h){if(Number.isInteger(i))return i;if(!u){const _=this.parsingContext.unaliasedKeywordCacheStack[d];if(_)return _}if(!e.Util.isPotentialKeyword(i)){h=h||await this.parsingContext.getContext(l);let _=h.getContextRaw()[i];_&&typeof _=="object"&&(_=_["@id"]),e.Util.isValidKeyword(_)&&(i=_)}return u?i:this.parsingContext.unaliasedKeywordCacheStack[d]=i}async unaliasKeywordParent(i,l){return await this.unaliasKeyword(l>0&&i[l-1],i,l-1)}async unaliasKeywords(i,l,d,u){const h={};for(const _ in i)h[await this.unaliasKeyword(_,l,d+1,!0,u)]=i[_];return h}async isLiteral(i,l){for(let d=l;d>=0;d--){if(await this.unaliasKeyword(i[d],i,d)==="@annotation")return!1;if(this.parsingContext.literalStack[d]||this.parsingContext.jsonLiteralStack[d])return!0}return!1}async getDepthOffsetGraph(i,l){for(let d=i-1;d>0;d--)if(await this.unaliasKeyword(l[d],l,d)==="@graph"){const u=(await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,l,d)).containers;return r.EntryHandlerContainer.isComplexGraphContainer(u)?-1:i-d-1}return-1}validateReverseSubject(i){if(i.termType==="Literal")throw new e.ErrorCoded(`Found illegal literal in subject position: ${i.value}`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(i,l){let d=this.getDefaultGraph();const{containers:u,depth:h}=await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,i,l);if("@graph"in u){const _=r.EntryHandlerContainer.getContainerGraphIndex(u,h,i),b=this.parsingContext.graphContainerTermStack[h];if(d=b?b[_]:null,!d){let c=null;if("@id"in u){const E=await this.getContainerKey(i[h],i,h);E!==null&&(c=await this.resourceToTerm(await this.parsingContext.getContext(i),E))}c||(c=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[h]||(this.parsingContext.graphContainerTermStack[h]={}),d=this.parsingContext.graphContainerTermStack[h][_]=c}}return d}async getPropertiesDepth(i,l){let d=l;for(let u=l-1;u>0;u--)if(typeof i[u]!="number"){const h=await this.unaliasKeyword(i[u],i,u);if(h==="@reverse")return u;if(h==="@nest")d=u;else return d}return d}async getContainerKey(i,l,d){const u=await this.unaliasKeyword(i,l,d);return u==="@none"?null:u}validateReverseInEmbeddedNode(i,l,d){if(d&&l&&!this.parsingContext.rdfstarReverseInEmbedded)throw new e.ErrorCoded(`Illegal reverse property in embedded node in ${i}`,e.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(i,l,d,u,h,_,b){let c;if(_?(this.validateReverseSubject(u),c=this.dataFactory.quad(u,d,l,h)):c=this.dataFactory.quad(l,d,u,h),b){if(c.graph.termType!=="DefaultGraph"&&(c=this.dataFactory.quad(c.subject,c.predicate,c.object)),this.parsingContext.idStack[i-1])throw new e.ErrorCoded("Illegal multiple properties in an embedded node",e.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[i-1]=[c]}else this.parsingContext.emitQuad(i,c);const E=this.parsingContext.annotationsBuffer[i];if(E){for(const g of E)this.emitAnnotation(i,c,g);delete this.parsingContext.annotationsBuffer[i]}}emitAnnotation(i,l,d){let u;d.reverse?(this.validateReverseSubject(d.object),u=this.dataFactory.quad(d.object,d.predicate,l)):u=this.dataFactory.quad(l,d.predicate,d.object),this.parsingContext.emitQuad(i,u);for(const h of d.nestedAnnotations)this.emitAnnotation(i,u,h)}};return o.XSD="http://www.w3.org/2001/XMLSchema#",o.XSD_BOOLEAN=o.XSD+"boolean",o.XSD_INTEGER=o.XSD+"integer",o.XSD_DOUBLE=o.XSD+"double",o.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",ur.Util=o,ur}Object.defineProperty(hn,"__esModule",{value:!0});hn.EntryHandlerArrayValue=void 0;const Sh=Lt(),Ga=Se;class Rh{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return this.test(t,r,null,n,o)}async test(t,r,n,o,a){return typeof o[a]=="number"}async handle(t,r,n,o,a,i){let l=await r.unaliasKeywordParent(o,i);if(l==="@list"){let d=null,u=0;for(let h=i-2;h>0;h--){const _=o[h];if(typeof _=="string"||typeof _=="number"){u=h,d=_;break}}if(d!==null){const h=await r.valueToTerm(await t.getContext(o),d,a,i,o);for(const _ of h)await this.handleListElement(t,r,_,a,i,o.slice(0,u),u);h.length===0&&await this.handleListElement(t,r,null,a,i,o.slice(0,u),u)}}else if(l==="@set")await t.newOnValueJob(o.slice(0,-2),a,i-2,!1);else if(l!==void 0&&l!=="@type"){for(let u=i-1;u>0;u--)if(typeof o[u]!="number"){l=await r.unaliasKeyword(o[u],o,u);break}const d=await t.getContext(o.slice(0,-1));if("@list"in Sh.Util.getContextValueContainer(d,l)){t.emittedStack[i+1]=!0;const u=await r.valueToTerm(await t.getContext(o),l,a,i,o);for(const h of u)await this.handleListElement(t,r,h,a,i,o.slice(0,-1),i-1);u.length===0&&await this.handleListElement(t,r,null,a,i,o.slice(0,-1),i-1)}else t.shiftStack(i,1),await t.newOnValueJob(o.slice(0,-1),a,i-1,!1),t.contextTree.removeContext(o.slice(0,-1))}}async handleListElement(t,r,n,o,a,i,l){let d=t.listPointerStack[a];if(o!==null&&(await r.unaliasKeywords(o,i,a))["@value"]!==null){if(!d||!d.value){const u=r.dataFactory.blankNode();d={value:u,listRootDepth:l,listId:u}}else{const u=r.dataFactory.blankNode();t.emitQuad(a,r.dataFactory.quad(d.value,r.rdfRest,u,r.getDefaultGraph())),d.value=u}n&&t.emitQuad(a,r.dataFactory.quad(d.value,r.rdfFirst,n,r.getDefaultGraph()))}else d||(d={listRootDepth:l,listId:r.rdfNil});t.listPointerStack[a]=d,t.rdfstar&&t.annotationsBuffer[a]&&t.emitError(new Ga.ErrorCoded("Found an illegal annotation inside a list",Ga.ERROR_CODES.INVALID_ANNOTATION))}}hn.EntryHandlerArrayValue=Rh;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.EntryHandlerInvalidFallback=void 0;class Ah{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return!1}async test(t,r,n,o,a){return!0}async handle(t,r,n,o,a,i){t.emittedStack[i]=!1}}gn.EntryHandlerInvalidFallback=Ah;var _n={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.EntryHandlerKeyword=void 0;class Ih{constructor(t){this.keyword=t}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return!1}async test(t,r,n,o,a){return n===this.keyword}}Fe.EntryHandlerKeyword=Ih;Object.defineProperty(_n,"__esModule",{value:!0});_n.EntryHandlerKeywordContext=void 0;const Ha=Se,mh=Fe;class vh extends mh.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){t.streamingProfile&&(t.processingStack[i]||t.processingType[i]||t.idStack[i]!==void 0)&&t.emitError(new Ha.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",Ha.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const l=t.getContext(o),d=t.parseContext(a,(await l).getContextRaw());t.contextTree.setContext(o.slice(0,-1),d),t.emitContext(a),await t.validateContext(await d)}}_n.EntryHandlerKeywordContext=vh;var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.EntryHandlerKeywordGraph=void 0;const Th=Fe;class Ch extends Th.EntryHandlerKeyword{constructor(){super("@graph")}async handle(t,r,n,o,a,i){t.graphStack[i+1]=!0}}wn.EntryHandlerKeywordGraph=Ch;var En={};Object.defineProperty(En,"__esModule",{value:!0});En.EntryHandlerKeywordId=void 0;const Ue=Se,Nh=Fe;class Oh extends Nh.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){if(typeof a!="string"){if(t.rdfstar&&typeof a=="object"){const d=Object.keys(a);d.length===1&&d[0]==="@id"&&t.emitError(new Ue.ErrorCoded(`Invalid embedded node without property with @id ${a["@id"]}`,Ue.ERROR_CODES.INVALID_EMBEDDED_NODE))}else t.emitError(new Ue.ErrorCoded(`Found illegal @id '${a}'`,Ue.ERROR_CODES.INVALID_ID_VALUE));return}const l=await r.getPropertiesDepth(o,i);if(t.idStack[l]!==void 0&&(t.idStack[l][0].listHead?t.emitError(new Ue.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${o[i-1]}'`,Ue.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):t.emitError(new Ue.ErrorCoded(`Found duplicate @ids '${t.idStack[l][0].value}' and '${a}'`,Ue.ERROR_CODES.COLLIDING_KEYWORDS))),t.rdfstar&&t.annotationsBuffer[i])for(const d of t.annotationsBuffer[i])d.depth===i&&t.emitError(new Ue.ErrorCoded(`Found an illegal @id inside an annotation: ${a}`,Ue.ERROR_CODES.INVALID_ANNOTATION));t.idStack[l]=r.nullableTermToArray(await r.resourceToTerm(await t.getContext(o),a))}}En.EntryHandlerKeywordId=Oh;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.EntryHandlerKeywordIncluded=void 0;const Vt=Se,$h=Fe;class xh extends $h.EntryHandlerKeyword{constructor(){super("@included")}async handle(t,r,n,o,a,i){typeof a!="object"&&t.emitError(new Vt.ErrorCoded(`Found illegal @included '${a}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE));const l=await r.unaliasKeywords(a,o,i,await t.getContext(o));"@value"in l&&t.emitError(new Vt.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(a)}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in l&&t.emitError(new Vt.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(a)}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE)),t.emittedStack[i]=!1}}Sn.EntryHandlerKeywordIncluded=xh;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.EntryHandlerKeywordNest=void 0;const Pr=Se,Dh=Fe;class Lh extends Dh.EntryHandlerKeyword{constructor(){super("@nest")}async handle(t,r,n,o,a,i){typeof a!="object"&&t.emitError(new Pr.ErrorCoded(`Found invalid @nest entry for '${n}': '${a}'`,Pr.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(a,o,i,await t.getContext(o))&&t.emitError(new Pr.ErrorCoded(`Found an invalid @value node for '${n}'`,Pr.ERROR_CODES.INVALID_NEST_VALUE)),t.emittedStack[i]=!1}}Rn.EntryHandlerKeywordNest=Lh;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.EntryHandlerKeywordType=void 0;const yr=Se,kr=Lt(),Ph=pn(),kh=Fe;class Mh extends kh.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){const l=o[i],d=await t.getContext(o),u=r.rdfType,h=await r.unaliasKeywordParent(o,i),_=kr.Util.isPropertyReverse(d,l,h),b=kr.Util.isPropertyInEmbeddedNode(h);r.validateReverseInEmbeddedNode(n,_,b);const c=kr.Util.isPropertyInAnnotationObject(h),E=Array.isArray(a)?a:[a];for(const T of E){typeof T!="string"&&t.emitError(new yr.ErrorCoded(`Found illegal @type '${T}'`,yr.ERROR_CODES.INVALID_TYPE_VALUE));const $=r.createVocabOrBaseTerm(d,T);$&&await Ph.EntryHandlerPredicate.handlePredicateObject(t,r,o,i,u,$,_,b,c)}let g=Promise.resolve(d),S=!1;for(const T of E.sort()){const $=kr.Util.getContextValue(d,"@context",T,null);$&&(S=!0,g=g.then(w=>t.parseContext($,w.getContextRaw())))}t.streamingProfile&&(S||!t.streamingProfileAllowOutOfOrderPlainType)&&(t.processingStack[i]||t.idStack[i])&&t.emitError(new yr.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",yr.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),S&&(g=g.then(T=>T.getContextRaw()["@propagate"]!==!0?new yr.JsonLdContextNormalized(Object.assign(Object.assign({},T.getContextRaw()),{"@propagate":!1,"@__propagateFallback":d.getContextRaw()})):T),t.contextTree.setContext(o.slice(0,o.length-1),g)),t.processingType[i]=!0}}An.EntryHandlerKeywordType=Mh;var In={};Object.defineProperty(In,"__esModule",{value:!0});In.EntryHandlerKeywordUnknownFallback=void 0;const Sr=Se;class mn{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){const i=await r.unaliasKeyword(n[o],n,o);return Sr.Util.isPotentialKeyword(i)?!(!a&&i==="@list"):!1}async test(t,r,n,o,a){return Sr.Util.isPotentialKeyword(n)}async handle(t,r,n,o,a,i){const l=mn.VALID_KEYWORDS_TYPES[n];l!==void 0?l&&typeof a!==l.type&&t.emitError(new Sr.ErrorCoded(`Invalid value type for '${n}' with value '${a}'`,l.errorCode)):t.strictValues&&t.emitError(new Error(`Unknown keyword '${n}' with value '${a}'`)),t.emittedStack[i]=!1}}mn.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:Sr.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:Sr.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};In.EntryHandlerKeywordUnknownFallback=mn;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.EntryHandlerKeywordValue=void 0;const Vh=Fe;class jh extends Vh.EntryHandlerKeyword{constructor(){super("@value")}async validate(t,r,n,o,a){const i=n[o];return i&&!t.literalStack[o]&&await this.test(t,r,i,n,o)&&(t.literalStack[o]=!0),super.validate(t,r,n,o,a)}async test(t,r,n,o,a){return await r.unaliasKeyword(o[a],o.slice(0,o.length-1),a-1,!0)==="@value"}async handle(t,r,n,o,a,i){t.literalStack[i]=!0,delete t.unidentifiedValuesBuffer[i],delete t.unidentifiedGraphsBuffer[i],t.emittedStack[i]=!1}}vn.EntryHandlerKeywordValue=jh;var gr={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ContextTree=void 0;class So{constructor(){this.subTrees={}}getContext(t){if(t.length>0){const[r,...n]=t,o=this.subTrees[r];if(o){const a=o.getContext(n);if(a)return a.then(({context:i,depth:l})=>({context:i,depth:l+1}))}}return this.context?this.context.then(r=>({context:r,depth:0})):null}setContext(t,r){if(t.length===0)this.context=r;else{const[n,...o]=t;let a=this.subTrees[n];a||(a=this.subTrees[n]=new So),a.setContext(o,r)}}removeContext(t){this.setContext(t,null)}}Tn.ContextTree=So;var Ka;function Fh(){if(Ka)return gr;Ka=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.ParsingContext=void 0;const e=Se,t=Jt,r=Tn,n=Wl();let o=class Ul{constructor(i){this.contextParser=new e.ContextParser({documentLoader:i.documentLoader,skipValidation:i.skipContextValidation}),this.streamingProfile=!!i.streamingProfile,this.baseIRI=i.baseIRI,this.produceGeneralizedRdf=!!i.produceGeneralizedRdf,this.allowSubjectList=!!i.allowSubjectList,this.processingMode=i.processingMode||n.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!i.strictValues,this.validateValueIndexes=!!i.validateValueIndexes,this.defaultGraph=i.defaultGraph,this.rdfDirection=i.rdfDirection,this.normalizeLanguageTags=i.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=i.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=i.rdfstar!==!1,this.rdfstarReverseInEmbedded=i.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new r.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=i.parser,i.context?(this.rootContext=this.parseContext(i.context),this.rootContext.then(l=>this.validateContext(l))):this.rootContext=Promise.resolve(new e.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(i,l,d){return this.contextParser.parse(i,{baseIRI:this.baseIRI,ignoreProtection:d,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:l,processingMode:this.activeProcessingMode})}validateContext(i){const l=i.getContextRaw()["@version"];if(l){if(this.activeProcessingMode&&l>this.activeProcessingMode)throw new t.ErrorCoded(`Unsupported JSON-LD version '${l}' under active processing mode ${this.activeProcessingMode}.`,t.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&l0&&d.context.getContextRaw()["@propagate"]===!1&&d.depth!==l&&!u);return d.depth===0&&d.context.getContextRaw()["@propagate"]===!1&&d.depth!==l&&(d.context=new e.JsonLdContextNormalized({})),d}async newOnValueJob(i,l,d,u){await this.parser.newOnValueJob(i,l,d,u)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const i of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(i.depth,i.keys),this.parser.flushStacks(i.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(i,l){i===1&&(this.topLevelProperties=!0),this.parser.push(l)}emitError(i){this.parser.emit("error",i)}emitContext(i){this.parser.emit("context",i)}getUnidentifiedValueBufferSafe(i){let l=this.unidentifiedValuesBuffer[i];return l||(l=[],this.unidentifiedValuesBuffer[i]=l),l}getUnidentifiedGraphBufferSafe(i){let l=this.unidentifiedGraphsBuffer[i];return l||(l=[],this.unidentifiedGraphsBuffer[i]=l),l}getAnnotationsBufferSafe(i){let l=this.annotationsBuffer[i];return l||(l=[],this.annotationsBuffer[i]=l),l}getExpandOptions(){return Ul.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(i,l){const d=this.idStack[i+l];if(d&&(this.idStack[i]=d,this.emittedStack[i]=!0,delete this.idStack[i+l]),this.pendingContainerFlushBuffers.length)for(const u of this.pendingContainerFlushBuffers)u.depth>=i+l&&(u.depth-=l,u.keys.splice(i,l));this.unidentifiedValuesBuffer[i+l]&&(this.unidentifiedValuesBuffer[i]=this.unidentifiedValuesBuffer[i+l],delete this.unidentifiedValuesBuffer[i+l]),this.annotationsBuffer[i+l-1]&&(this.annotationsBuffer[i-1]||(this.annotationsBuffer[i-1]=[]),this.annotationsBuffer[i-1]=[...this.annotationsBuffer[i-1],...this.annotationsBuffer[i+l-1]],delete this.annotationsBuffer[i+l-1])}};return o.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},gr.ParsingContext=o,gr}var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.EntryHandlerKeywordAnnotation=void 0;const Uh=Fe,Ja=Se;class Wh extends Uh.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(t,r,n,o,a,i){(typeof a=="string"||typeof a=="object"&&a["@value"])&&t.emitError(new Ja.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(a)}`,Ja.ERROR_CODES.INVALID_ANNOTATION))}}Cn.EntryHandlerKeywordAnnotation=Wh;var qa;function Wl(){if(qa)return dr;qa=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.JsonLdParser=void 0;const e=Yf,t=Se,r=yh,n=hn,o=Fl(),a=gn,i=pn(),l=_n,d=wn,u=En,h=Sn,_=Rn,b=An,c=In,E=vn,g=Fh(),S=Lt(),T=Hs,$=Cn;let w=class Ft extends r.Transform{constructor(v){super({readableObjectMode:!0}),v=v||{},this.options=v,this.parsingContext=new g.ParsingContext(Object.assign({parser:this},v)),this.util=new S.Util({dataFactory:v.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new e,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(v,x,U,F){let W,ee=["application/activity+json"];if(F&&F.wellKnownMediaTypes&&(ee=F.wellKnownMediaTypes),x!=="application/ld+json"&&!ee.includes(x)){if(x!=="application/json"&&!x.endsWith("+json"))throw new t.ErrorCoded(`Unsupported JSON-LD media type ${x}`,t.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(U&&U.has("Link")&&U.forEach((k,R)=>{if(R==="link"){const V=(0,T.parse)(k);for(const M of V.get("rel","http://www.w3.org/ns/json-ld#context")){if(W)throw new t.ErrorCoded("Multiple JSON-LD context link headers were found on "+v,t.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);W=M.uri}}}),!W&&!(F!=null&&F.ignoreMissingContextLinkHeader))throw new t.ErrorCoded(`Missing context link header for media type ${x} on ${v}`,t.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let J;if(U&&U.has("Content-Type")){const k=U.get("Content-Type"),R=/; *profile=([^"]*)/.exec(k);R&&R[1]==="http://www.w3.org/ns/json-ld#streaming"&&(J=!0)}return new Ft(Object.assign({baseIRI:v,context:W,streamingProfile:J},F||{}))}import(v){if("pipe"in v){v.on("error",U=>x.emit("error",U));const x=v.pipe(new Ft(this.options));return x}else{const x=new r.PassThrough({readableObjectMode:!0});v.on("error",F=>U.emit("error",F)),v.on("data",F=>x.push(F)),v.on("end",()=>x.push(null));const U=x.pipe(new Ft(this.options));return U}}_transform(v,x,U){this.jsonParser.write(v),this.lastOnValueJob.then(()=>U(),F=>U(F))}async newOnValueJob(v,x,U,F){let W=!0;if(F&&U1&&(R=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let V=Math.max(1,this.parsingContext.validationStack.length-1);V=0?this.parsingContext.idStack[v-R-1]:[await this.util.getGraphContainerValue(x,v)];if(V)for(const M of V){this.parsingContext.emittedStack[v]=!0;for(const j of W)this.util.emitQuadChecked(v,k,j.predicate,j.object,M,j.reverse,j.isEmbedded)}else{const M=this.parsingContext.getUnidentifiedGraphBufferSafe(v-await this.util.getDepthOffsetGraph(v,x)-1);for(const j of W)j.reverse?M.push({object:k,predicate:j.predicate,subject:j.object,isEmbedded:j.isEmbedded}):M.push({object:j.object,predicate:j.predicate,subject:k,isEmbedded:j.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(v,1),this.parsingContext.literalStack.splice(v,1),this.parsingContext.jsonLiteralStack.splice(v,1)}const ee=this.parsingContext.unidentifiedGraphsBuffer[v];if(ee){for(const k of U){const R=v===1&&k.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():k;this.parsingContext.emittedStack[v]=!0;for(const V of ee)this.parsingContext.emitQuad(v,this.util.dataFactory.quad(V.subject,V.predicate,V.object,R))}this.parsingContext.unidentifiedGraphsBuffer.splice(v,1)}const J=this.parsingContext.annotationsBuffer[v];if(J){J.length>0&&v===1&&this.parsingContext.emitError(new t.ErrorCoded("Annotations can not be made on top-level nodes",t.ERROR_CODES.INVALID_ANNOTATION));const k=this.parsingContext.getAnnotationsBufferSafe(v-1);for(const R of J)k.push(R);delete this.parsingContext.annotationsBuffer[v]}}async validateKey(v,x,U){for(const F of Ft.ENTRY_HANDLERS)if(await F.validate(this.parsingContext,this.util,v,x,U))return{valid:!0,property:U||F.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=v=>{const x=this.jsonParser.stack.length,U=new Array(x+1).fill(0).map((F,W)=>W===x?this.jsonParser.key:this.jsonParser.stack[W].key);if(!this.isParsingContextInner(x)){const F=()=>this.newOnValueJob(U,v,x,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(U.slice(0,-1)))if(U[x]==="@context"){let W=this.contextJobs[x];W||(W=this.contextJobs[x]=[]),W.push(F)}else this.contextAwaitingJobs.push({job:F,keys:U,depth:x});else this.lastOnValueJob=this.lastOnValueJob.then(F);!this.parsingContext.streamingProfile&&x===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=v=>{this.emit("error",v)}}isParsingContextInner(v){for(let x=v;x>0;x--)if(this.jsonParser.stack[x-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const x of this.contextJobs)if(x)for(const U of x)await U();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const v=[];for(const x of this.contextAwaitingJobs)await this.util.unaliasKeyword(x.keys[x.depth],x.keys,x.depth,!0)==="@type"||typeof x.keys[x.depth]=="number"&&await this.util.unaliasKeyword(x.keys[x.depth-1],x.keys,x.depth-1,!0)==="@type"?this.typeJobs.push({job:x.job,keys:x.keys.slice(0,x.keys.length-1)}):v.push(x);for(const x of v){if(this.typeJobs.length>0){const U=[],F=[];for(let J=0;JJ.keys.length-k.keys.length);for(const J of W)await J.job();const ee=F.sort().reverse();for(const J of ee)this.typeJobs.splice(J,1)}await x.job()}}};return w.DEFAULT_PROCESSING_MODE="1.1",w.ENTRY_HANDLERS=[new n.EntryHandlerArrayValue,new l.EntryHandlerKeywordContext,new u.EntryHandlerKeywordId,new h.EntryHandlerKeywordIncluded,new d.EntryHandlerKeywordGraph,new _.EntryHandlerKeywordNest,new b.EntryHandlerKeywordType,new E.EntryHandlerKeywordValue,new $.EntryHandlerKeywordAnnotation,new o.EntryHandlerContainer,new c.EntryHandlerKeywordUnknownFallback,new i.EntryHandlerPredicate,new a.EntryHandlerInvalidFallback],dr.JsonLdParser=w,dr}(function(e){var t=dt&&dt.__createBinding||(Object.create?function(n,o,a,i){i===void 0&&(i=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,l)}:function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]}),r=dt&&dt.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Wl(),e)})(Ms);var Bl={exports:{}},_i={exports:{}},le={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Gl={exports:{}};(function(e){const t=be,{kResistStopPropagation:r,SymbolDispose:n}=le,o=globalThis.AbortSignal||Ge().AbortSignal,a=globalThis.AbortController||Ge().AbortController,i=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||t.Blob,d=typeof l<"u"?function(c){return c instanceof l}:function(c){return!1},u=(b,c)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(c,"AbortSignal",b)},h=(b,c)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(c,"Function",b)};class _ extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let E="";for(let g=0;g0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const h=e.indexOf("?");return h>0&&(e=e.substr(0,h)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const h=t.indexOf(":");if(h<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return l(t,h)}const a=t.indexOf(":");if(a>=0)return l(t,a);const u=e.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const n=e.substr(0,u+1);if(t.indexOf("//")===0)return n+l(t,a);let s;if(e.indexOf("//",u)===u+1){if(s=e.indexOf("/",u+3),s<0)return e.length>u+3?e+"/"+l(t,a):n+l(t,a)}else if(s=e.indexOf("/",u+1),s<0)return n+l(t,a);if(t.indexOf("/")===0)return e.substr(0,s)+v(t);let c=e.substr(s);const O=c.lastIndexOf("/");return O>=0&&Oa.join("")).join("/")}o.removeDotSegments=v;function l(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const a=t.indexOf("/",r);if(a<0)return t;const u=t.substr(0,a),n=t.substr(a);return u+v(n)}o.removeDotSegmentsOfPath=l;function T(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(o,t)})(S);var D={},m={};Object.defineProperty(m,"__esModule",{value:!0});m.BlankNode=void 0;class G{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}}m.BlankNode=G;var y={},N={};Object.defineProperty(N,"__esModule",{value:!0});N.DefaultGraph=void 0;class g{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}}N.DefaultGraph=g;g.INSTANCE=new g;var p={},i={};Object.defineProperty(i,"__esModule",{value:!0});i.NamedNode=void 0;class ${constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}}i.NamedNode=$;Object.defineProperty(p,"__esModule",{value:!0});p.Literal=void 0;const j=i;class f{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=f.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=f.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}}p.Literal=f;f.RDF_LANGUAGE_STRING=new j.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");f.XSD_STRING=new j.NamedNode("http://www.w3.org/2001/XMLSchema#string");var b={};Object.defineProperty(b,"__esModule",{value:!0});b.Quad=void 0;class B{constructor(e,r,a,u){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=a,this.graph=u}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}}b.Quad=B;var _={};Object.defineProperty(_,"__esModule",{value:!0});_.Variable=void 0;class q{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}}_.Variable=q;Object.defineProperty(y,"__esModule",{value:!0});y.DataFactory=void 0;const x=m,C=N,w=p,F=i,L=b,k=_;let M=0;class Q{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${M++}_`}namedNode(e){return new F.NamedNode(e)}blankNode(e){return new x.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new w.Literal(e,r)}variable(e){return new k.Variable(e)}defaultGraph(){return C.DefaultGraph.INSTANCE}quad(e,r,a,u){return new L.Quad(e,r,a,u||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(w.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}}y.DataFactory=Q;(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(m,t),r(y,t),r(N,t),r(p,t),r(i,t),r(b,t),r(_,t)})(D);export{D as a,S as r}; +import{c as d}from"./main-CO-45Vwa.js";var S={},o={};Object.defineProperty(o,"__esModule",{value:!0});o.removeDotSegmentsOfPath=o.removeDotSegments=o.resolve=void 0;function P(t,e){e=e||"";const r=e.indexOf("#");if(r>0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const h=e.indexOf("?");return h>0&&(e=e.substr(0,h)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const h=t.indexOf(":");if(h<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return l(t,h)}const a=t.indexOf(":");if(a>=0)return l(t,a);const u=e.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const n=e.substr(0,u+1);if(t.indexOf("//")===0)return n+l(t,a);let s;if(e.indexOf("//",u)===u+1){if(s=e.indexOf("/",u+3),s<0)return e.length>u+3?e+"/"+l(t,a):n+l(t,a)}else if(s=e.indexOf("/",u+1),s<0)return n+l(t,a);if(t.indexOf("/")===0)return e.substr(0,s)+v(t);let c=e.substr(s);const O=c.lastIndexOf("/");return O>=0&&Oa.join("")).join("/")}o.removeDotSegments=v;function l(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const a=t.indexOf("/",r);if(a<0)return t;const u=t.substr(0,a),n=t.substr(a);return u+v(n)}o.removeDotSegmentsOfPath=l;function T(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(o,t)})(S);var D={},m={};Object.defineProperty(m,"__esModule",{value:!0});m.BlankNode=void 0;class G{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}}m.BlankNode=G;var y={},N={};Object.defineProperty(N,"__esModule",{value:!0});N.DefaultGraph=void 0;class g{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}}N.DefaultGraph=g;g.INSTANCE=new g;var p={},i={};Object.defineProperty(i,"__esModule",{value:!0});i.NamedNode=void 0;class ${constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}}i.NamedNode=$;Object.defineProperty(p,"__esModule",{value:!0});p.Literal=void 0;const j=i;class f{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=f.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=f.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}}p.Literal=f;f.RDF_LANGUAGE_STRING=new j.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");f.XSD_STRING=new j.NamedNode("http://www.w3.org/2001/XMLSchema#string");var b={};Object.defineProperty(b,"__esModule",{value:!0});b.Quad=void 0;class B{constructor(e,r,a,u){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=a,this.graph=u}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}}b.Quad=B;var _={};Object.defineProperty(_,"__esModule",{value:!0});_.Variable=void 0;class q{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}}_.Variable=q;Object.defineProperty(y,"__esModule",{value:!0});y.DataFactory=void 0;const x=m,C=N,w=p,F=i,L=b,k=_;let M=0;class Q{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${M++}_`}namedNode(e){return new F.NamedNode(e)}blankNode(e){return new x.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new w.Literal(e,r)}variable(e){return new k.Variable(e)}defaultGraph(){return C.DefaultGraph.INSTANCE}quad(e,r,a,u){return new L.Quad(e,r,a,u||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(w.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}}y.DataFactory=Q;(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(m,t),r(y,t),r(N,t),r(p,t),r(i,t),r(b,t),r(_,t)})(D);export{D as a,S as r}; diff --git a/assets/index-DCe_24Mq.js b/assets/index-wrpfIQEt.js similarity index 99% rename from assets/index-DCe_24Mq.js rename to assets/index-wrpfIQEt.js index da88bb0..0876fca 100644 --- a/assets/index-DCe_24Mq.js +++ b/assets/index-wrpfIQEt.js @@ -1,4 +1,4 @@ -import{D as j,n as T,T as L,b as z,t as D,a as E,c as V,d as Z,N as H,e as J,L as X,B as Y,V as ee,f as te,Q as G}from"./N3StreamParser-BYVXsYqX.js";import"./main-UPTG37W_.js";function ie(o){return!!o&&o.termType==="NamedNode"}function se(o){return!!o&&o.termType==="BlankNode"}function re(o){return!!o&&o.termType==="Literal"}function ne(o){return!!o&&o.termType==="Variable"}function O(o){return!!o&&o.termType==="DefaultGraph"}function ae(o){return O(o.graph)}function ue(o,e){return C({"":o.value||o},e)("")}function C(o,e){const t=Object.create(null);for(const s in o)i(s,o[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const oe=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:le,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +import{D as j,n as T,T as L,b as z,t as D,a as E,c as V,d as Z,N as H,e as J,L as X,B as Y,V as ee,f as te,Q as G}from"./N3StreamParser-Bkfk54FL.js";import"./main-CO-45Vwa.js";function ie(o){return!!o&&o.termType==="NamedNode"}function se(o){return!!o&&o.termType==="BlankNode"}function re(o){return!!o&&o.termType==="Literal"}function ne(o){return!!o&&o.termType==="Variable"}function O(o){return!!o&&o.termType==="DefaultGraph"}function ae(o){return O(o.graph)}function ue(o,e){return C({"":o.value||o},e)("")}function C(o,e){const t=Object.create(null);for(const s in o)i(s,o[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const oe=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:le,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. `:` } `)+(N.equals(s)?"":`${this._encodeIriOrBlank(s)} { diff --git a/assets/main-Br7cBokn.js b/assets/main-B94FsnA1.js similarity index 99% rename from assets/main-Br7cBokn.js rename to assets/main-B94FsnA1.js index fe529f0..8a4d6d9 100644 --- a/assets/main-Br7cBokn.js +++ b/assets/main-B94FsnA1.js @@ -1,4 +1,4 @@ -import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-UPTG37W_.js";import{m as Ts}from"./main-DD61z6wK.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` +import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-CO-45Vwa.js";import{m as Ts}from"./main-BEQE4T9J.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${t}'`)}else{if(n)return n;if(e)return String.fromCodePoint(parseInt(e,16));if(_)return String.fromCodePoint(parseInt(_,16));if(a)throw a[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${a}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(a)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},Us=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,qt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,zt=v=>v.replace(Us,Se),Gt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(qt,Se),v.slice(n)]}else return[v.replace(qt,Se),""]},Ms=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\.))/g,Vt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,Bt=v=>v.replace(Ms,Se),Zt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(Vt,Se),v.slice(n)]}else return[v.replace(Vt,Se),""]},[es,Kt,Xt,Wt,Yt]=(()=>{function v(n){let e=RegExp.prototype.exec.call(this,n);if(e){let _=e[0].length-e[1].length;e.index+=_,e[0]=e[0].slice(_)}return e}let t=(()=>{try{new RegExp("(?(_.exec=a,_)}return n=>n()})();return[t(()=>new RegExp("(?new RegExp('(?new RegExp("(?new RegExp('(?new RegExp("(?(Ge.lastIndex=t,[Ge.exec(v),Ge.lastIndex]),Qt=(v,t)=>(Ve.lastIndex=t,[Ve.exec(v),Ve.lastIndex]);function Hs(v,t,n,e){let _=Math.min(t,Math.abs(t-15)),a=v.s;return v.error(` \`${a.substr(_,_+90).replace(/[\n\t]/g," ")}\` ${" ".repeat(t-_)}^ diff --git a/assets/main-DD61z6wK.js b/assets/main-BEQE4T9J.js similarity index 98% rename from assets/main-DD61z6wK.js rename to assets/main-BEQE4T9J.js index 4dc6e53..65e3c29 100644 --- a/assets/main-DD61z6wK.js +++ b/assets/main-BEQE4T9J.js @@ -1,2 +1,2 @@ -import{b as d,p as f,r as b}from"./main-UPTG37W_.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` +import{b as d,p as f,r as b}from"./main-CO-45Vwa.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` `)}}class y extends p{_transform(e,s,i){i(null,{type:"quad",value:e})}}h.QuadsToOther=p;var W={...u,Readable:c,Writable:m,Duplex:w,Transform:h,QuadsToOther:p,quads_to_json(){return new S},quads_to_writable(){return new y},source(l,e=null){return!e&&typeof l=="string"&&(e="utf8"),new c({objectMode:!e&&typeof l!="string"&&!d.Buffer.isBuffer(l),read(){this.push(l,e),this.push(null)}})}};export{W as m}; diff --git a/assets/main-yWOklOAz.js b/assets/main-BIUkwmxE.js similarity index 98% rename from assets/main-yWOklOAz.js rename to assets/main-BIUkwmxE.js index 79d4808..45c34cd 100644 --- a/assets/main-yWOklOAz.js +++ b/assets/main-BIUkwmxE.js @@ -1,4 +1,4 @@ -import{g as z,m as O}from"./main-UPTG37W_.js";import{m as F}from"./main-CakvuChy.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` +import{g as z,m as O}from"./main-CO-45Vwa.js";import{m as F}from"./main-DQofh_ad.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` `:` . `,n="";try{for(let _ in i){if(!j.test(_))throw new Error(`Invlalid prefix id for application/trig RDF serialization format: '${_}'`);n+=`${a} ${_}: ${p.namedNode(i[_]).verbose()}${l}`}}catch(_){queueMicrotask(()=>{this.emit("error",_)})}n&&this.push(n)}_serialize_prefixes(e){let i=this._xc_state===2?` diff --git a/assets/main-UPTG37W_.js b/assets/main-CO-45Vwa.js similarity index 97% rename from assets/main-UPTG37W_.js rename to assets/main-CO-45Vwa.js index 2db2285..d4c128a 100644 --- a/assets/main-UPTG37W_.js +++ b/assets/main-CO-45Vwa.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-RV_eTkg7.js","assets/index-BOvYCoiN.js","assets/readable-BmS1kvD9.js","assets/index-BlwBIAJx.js","assets/canonicalize-Bd8h0v92.js","assets/index-BQuzNdW2.js","assets/N3StreamParser-BYVXsYqX.js","assets/CustomRdfXmlParser-j_ZzoDnu.js","assets/index-C7nnL0Je.js","assets/CustomJsonLdSerializer-B2oQjduZ.js","assets/main-zTQ0tXXK.js","assets/main-CakvuChy.js","assets/main--2A8lBXz.js","assets/main-DD61z6wK.js","assets/main-CQ6G9sma.js","assets/main-yWOklOAz.js","assets/main-Br7cBokn.js","assets/main-DcNn2okZ.js","assets/index-DjJhAlRP.js","assets/index-DCe_24Mq.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-d5GvA7NS.js","assets/index-BOvYCoiN.js","assets/readable-BmS1kvD9.js","assets/index-keipGPtm.js","assets/canonicalize-Bd8h0v92.js","assets/index-jd32SyoQ.js","assets/N3StreamParser-Bkfk54FL.js","assets/CustomRdfXmlParser-BnFBQjMk.js","assets/index-CpxM9Dlb.js","assets/CustomJsonLdSerializer-DTZy0vPJ.js","assets/main-iH2f1yx-.js","assets/main-DQofh_ad.js","assets/main-Rstpr1kO.js","assets/main-BEQE4T9J.js","assets/main-DvYAR6pV.js","assets/main-BIUkwmxE.js","assets/main-B94FsnA1.js","assets/main-V12eunPc.js","assets/index-BMw9Z_By.js","assets/index-wrpfIQEt.js"])))=>i.map(i=>d[i]); var pfn=Object.defineProperty;var F6t=r=>{throw TypeError(r)};var gfn=(r,o,l)=>o in r?pfn(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l;var M8e=(r,o,l)=>gfn(r,typeof o!="symbol"?o+"":o,l),O8e=(r,o,l)=>o.has(r)||F6t("Cannot "+l);var Kh=(r,o,l)=>(O8e(r,o,"read from private field"),l?l.call(r):o.get(r)),Zx=(r,o,l)=>o.has(r)?F6t("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,l),s3=(r,o,l,a)=>(O8e(r,o,"write to private field"),a?a.call(r,l):o.set(r,l),l),_8e=(r,o,l)=>(O8e(r,o,"access private method"),l);const Kne=Object.freeze(Object.defineProperty({__proto__:null,get _void(){return Nkn},get acl(){return u3n},get as(){return f3n},get bibo(){return h3n},get cc(){return g3n},get cert(){return w3n},get cnt(){return v3n},get constant(){return k3n},get crm(){return S3n},get csvw(){return E3n},get ctag(){return I3n},get dash(){return _3n},get dashSparql(){return M3n},get dbo(){return A3n},get dc11(){return $3n},get dcam(){return D3n},get dcat(){return B3n},get dcmitype(){return z3n},get dcterms(){return K3n},get default(){return tEt},get dig(){return G3n},get discipline(){return V3n},get doap(){return X3n},get dpv(){return J3n},get dqv(){return Z3n},get dtype(){return t4n},get duv(){return r4n},get earl(){return o4n},get ebucore(){return l4n},get exif(){return u4n},get foaf(){return f4n},get frbr(){return h4n},get geo(){return g4n},get geof(){return w4n},get geor(){return v4n},get gml(){return k4n},get gn(){return S4n},get gr(){return E4n},get grddl(){return I4n},get gs1(){return M4n},get gtfs(){return _4n},get http(){return A4n},get hydra(){return $4n},get ical(){return D4n},get la(){return B4n},get ldp(){return z4n},get list(){return K4n},get locn(){return G4n},get log(){return V4n},get lvont(){return X4n},get m4i(){return J4n},get ma(){return Z4n},get mads(){return t6n},get math(){return r6n},get oa(){return o6n},get og(){return l6n},get oidc(){return u6n},get org(){return f6n},get owl(){return h6n},get pim(){return g6n},get prefix(){return w6n},get prov(){return v6n},get qb(){return k6n},get qkdv(){return S6n},get quantitykind(){return E6n},get qudt(){return I6n},get rdau(){return M6n},get rdf(){return Zv},get rdfa(){return R6n},get rdfs(){return L6n},get rev(){return j6n},get rico(){return N6n},get rif(){return Jkn},get rr(){return F6n},get rss(){return H6n},get schema(){return U6n},get sd(){return W6n},get sdmx(){return q6n},get sem(){return Y6n},get set(){return Q6n},get sf(){return ekn},get sh(){return nkn},get shex(){return ikn},get shsh(){return skn},get sioc(){return ckn},get skos(){return akn},get skosxl(){return dkn},get solid(){return pkn},get sosa(){return bkn},get sou(){return mkn},get ssn(){return ykn},get stat(){return Ckn},get string(){return xkn},get test(){return Tkn},get time(){return Pkn},get unit(){return Okn},get v(){return Zkn},get vaem(){return Rkn},get vann(){return Lkn},get vcard(){return jkn},get vs(){return Fkn},get wdr(){return t5n},get wdrs(){return Hkn},get wgs(){return Ukn},get xhv(){return Wkn},get xkos(){return qkn},get xml(){return r5n},get xsd(){return FF}},Symbol.toStringTag,{value:"Module"}));(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))a(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const w of g.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&a(w)}).observe(document,{childList:!0,subtree:!0});function l(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function a(p){if(p.ep)return;p.ep=!0;const g=l(p);fetch(p.href,g)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -1585,13 +1585,13 @@ ${o}`,Iwn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Pwn=Obj * @author Feross Aboukhadijeh * @license MIT */(function(r){const o=Qre,l=d9e,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=y,r.SlowBuffer=Z,r.INSPECT_MAX_BYTES=50;const p=2147483647;r.kMaxLength=p,y.TYPED_ARRAY_SUPPORT=g(),!y.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g(){try{const de=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(de,G),de.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function w(de){if(de>p)throw new RangeError('The value "'+de+'" is invalid for option "size"');const G=new Uint8Array(de);return Object.setPrototypeOf(G,y.prototype),G}function y(de,G,Y){if(typeof de=="number"){if(typeof G=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(de)}return S(de,G,Y)}y.poolSize=8192;function S(de,G,Y){if(typeof de=="string")return _(de,G);if(ArrayBuffer.isView(de))return j(de);if(de==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(Ct(de,ArrayBuffer)||de&&Ct(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ct(de,SharedArrayBuffer)||de&&Ct(de.buffer,SharedArrayBuffer)))return K(de,G,Y);if(typeof de=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const De=de.valueOf&&de.valueOf();if(De!=null&&De!==de)return y.from(De,G,Y);const gt=q(de);if(gt)return gt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof de[Symbol.toPrimitive]=="function")return y.from(de[Symbol.toPrimitive]("string"),G,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}y.from=function(de,G,Y){return S(de,G,Y)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function E(de){if(typeof de!="number")throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function I(de,G,Y){return E(de),de<=0?w(de):G!==void 0?typeof Y=="string"?w(de).fill(G,Y):w(de).fill(G):w(de)}y.alloc=function(de,G,Y){return I(de,G,Y)};function M(de){return E(de),w(de<0?0:Q(de)|0)}y.allocUnsafe=function(de){return M(de)},y.allocUnsafeSlow=function(de){return M(de)};function _(de,G){if((typeof G!="string"||G==="")&&(G="utf8"),!y.isEncoding(G))throw new TypeError("Unknown encoding: "+G);const Y=X(de,G)|0;let De=w(Y);const gt=De.write(de,G);return gt!==Y&&(De=De.slice(0,gt)),De}function R(de){const G=de.length<0?0:Q(de.length)|0,Y=w(G);for(let De=0;De=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return de|0}function Z(de){return+de!=de&&(de=0),y.alloc(+de)}y.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==y.prototype},y.compare=function(G,Y){if(Ct(G,Uint8Array)&&(G=y.from(G,G.offset,G.byteLength)),Ct(Y,Uint8Array)&&(Y=y.from(Y,Y.offset,Y.byteLength)),!y.isBuffer(G)||!y.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Y)return 0;let De=G.length,gt=Y.length;for(let Kt=0,Ut=Math.min(De,gt);Ktgt.length?(y.isBuffer(Ut)||(Ut=y.from(Ut)),Ut.copy(gt,Kt)):Uint8Array.prototype.set.call(gt,Ut,Kt);else if(y.isBuffer(Ut))Ut.copy(gt,Kt);else throw new TypeError('"list" argument must be an Array of Buffers');Kt+=Ut.length}return gt};function X(de,G){if(y.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||Ct(de,ArrayBuffer))return de.byteLength;if(typeof de!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);const Y=de.length,De=arguments.length>2&&arguments[2]===!0;if(!De&&Y===0)return 0;let gt=!1;for(;;)switch(G){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return ge(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Lt(de).length;default:if(gt)return De?-1:ge(de).length;G=(""+G).toLowerCase(),gt=!0}}y.byteLength=X;function ie(de,G,Y){let De=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,G>>>=0,Y<=G))return"";for(de||(de="utf8");;)switch(de){case"hex":return un(this,G,Y);case"utf8":case"utf-8":return He(this,G,Y);case"ascii":return At(this,G,Y);case"latin1":case"binary":return Jt(this,G,Y);case"base64":return U(this,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,G,Y);default:if(De)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),De=!0}}y.prototype._isBuffer=!0;function je(de,G,Y){const De=de[G];de[G]=de[Y],de[Y]=De}y.prototype.swap16=function(){const G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;YY&&(G+=" ... "),""},a&&(y.prototype[a]=y.prototype.inspect),y.prototype.compare=function(G,Y,De,gt,Kt){if(Ct(G,Uint8Array)&&(G=y.from(G,G.offset,G.byteLength)),!y.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(Y===void 0&&(Y=0),De===void 0&&(De=G?G.length:0),gt===void 0&&(gt=0),Kt===void 0&&(Kt=this.length),Y<0||De>G.length||gt<0||Kt>this.length)throw new RangeError("out of range index");if(gt>=Kt&&Y>=De)return 0;if(gt>=Kt)return-1;if(Y>=De)return 1;if(Y>>>=0,De>>>=0,gt>>>=0,Kt>>>=0,this===G)return 0;let Ut=Kt-gt,so=De-Y;const rl=Math.min(Ut,so),Ro=this.slice(gt,Kt),Ao=G.slice(Y,De);for(let zs=0;zs2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,Kn(Y)&&(Y=gt?0:de.length-1),Y<0&&(Y=de.length+Y),Y>=de.length){if(gt)return-1;Y=de.length-1}else if(Y<0)if(gt)Y=0;else return-1;if(typeof G=="string"&&(G=y.from(G,De)),y.isBuffer(G))return G.length===0?-1:mt(de,G,Y,De,gt);if(typeof G=="number")return G=G&255,typeof Uint8Array.prototype.indexOf=="function"?gt?Uint8Array.prototype.indexOf.call(de,G,Y):Uint8Array.prototype.lastIndexOf.call(de,G,Y):mt(de,[G],Y,De,gt);throw new TypeError("val must be string, number or Buffer")}function mt(de,G,Y,De,gt){let Kt=1,Ut=de.length,so=G.length;if(De!==void 0&&(De=String(De).toLowerCase(),De==="ucs2"||De==="ucs-2"||De==="utf16le"||De==="utf-16le")){if(de.length<2||G.length<2)return-1;Kt=2,Ut/=2,so/=2,Y/=2}function rl(Ao,zs){return Kt===1?Ao[zs]:Ao.readUInt16BE(zs*Kt)}let Ro;if(gt){let Ao=-1;for(Ro=Y;RoUt&&(Y=Ut-so),Ro=Y;Ro>=0;Ro--){let Ao=!0;for(let zs=0;zsgt&&(De=gt)):De=gt;const Kt=G.length;De>Kt/2&&(De=Kt/2);let Ut;for(Ut=0;Ut>>0,isFinite(De)?(De=De>>>0,gt===void 0&&(gt="utf8")):(gt=De,De=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Kt=this.length-Y;if((De===void 0||De>Kt)&&(De=Kt),G.length>0&&(De<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");gt||(gt="utf8");let Ut=!1;for(;;)switch(gt){case"hex":return bt(this,G,Y,De);case"utf8":case"utf-8":return ce(this,G,Y,De);case"ascii":case"latin1":case"binary":return Be(this,G,Y,De);case"base64":return ae(this,G,Y,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,G,Y,De);default:if(Ut)throw new TypeError("Unknown encoding: "+gt);gt=(""+gt).toLowerCase(),Ut=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(de,G,Y){return G===0&&Y===de.length?o.fromByteArray(de):o.fromByteArray(de.slice(G,Y))}function He(de,G,Y){Y=Math.min(de.length,Y);const De=[];let gt=G;for(;gt239?4:Kt>223?3:Kt>191?2:1;if(gt+so<=Y){let rl,Ro,Ao,zs;switch(so){case 1:Kt<128&&(Ut=Kt);break;case 2:rl=de[gt+1],(rl&192)===128&&(zs=(Kt&31)<<6|rl&63,zs>127&&(Ut=zs));break;case 3:rl=de[gt+1],Ro=de[gt+2],(rl&192)===128&&(Ro&192)===128&&(zs=(Kt&15)<<12|(rl&63)<<6|Ro&63,zs>2047&&(zs<55296||zs>57343)&&(Ut=zs));break;case 4:rl=de[gt+1],Ro=de[gt+2],Ao=de[gt+3],(rl&192)===128&&(Ro&192)===128&&(Ao&192)===128&&(zs=(Kt&15)<<18|(rl&63)<<12|(Ro&63)<<6|Ao&63,zs>65535&&zs<1114112&&(Ut=zs))}}Ut===null?(Ut=65533,so=1):Ut>65535&&(Ut-=65536,De.push(Ut>>>10&1023|55296),Ut=56320|Ut&1023),De.push(Ut),gt+=so}return ft(De)}const yt=4096;function ft(de){const G=de.length;if(G<=yt)return String.fromCharCode.apply(String,de);let Y="",De=0;for(;DeDe)&&(Y=De);let gt="";for(let Kt=G;KtDe&&(G=De),Y<0?(Y+=De,Y<0&&(Y=0)):Y>De&&(Y=De),YY)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(G,Y,De){G=G>>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G],Kt=1,Ut=0;for(;++Ut>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G+--Y],Kt=1;for(;Y>0&&(Kt*=256);)gt+=this[G+--Y]*Kt;return gt},y.prototype.readUint8=y.prototype.readUInt8=function(G,Y){return G=G>>>0,Y||qt(G,1,this.length),this[G]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(G,Y){return G=G>>>0,Y||qt(G,2,this.length),this[G]|this[G+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(G,Y){return G=G>>>0,Y||qt(G,2,this.length),this[G]<<8|this[G+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},y.prototype.readBigUInt64LE=Rn(function(G){G=G>>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=Y+this[++G]*2**8+this[++G]*2**16+this[++G]*2**24,Kt=this[++G]+this[++G]*2**8+this[++G]*2**16+De*2**24;return BigInt(gt)+(BigInt(Kt)<>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=Y*2**24+this[++G]*2**16+this[++G]*2**8+this[++G],Kt=this[++G]*2**24+this[++G]*2**16+this[++G]*2**8+De;return(BigInt(gt)<>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G],Kt=1,Ut=0;for(;++Ut=Kt&&(gt-=Math.pow(2,8*Y)),gt},y.prototype.readIntBE=function(G,Y,De){G=G>>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=Y,Kt=1,Ut=this[G+--gt];for(;gt>0&&(Kt*=256);)Ut+=this[G+--gt]*Kt;return Kt*=128,Ut>=Kt&&(Ut-=Math.pow(2,8*Y)),Ut},y.prototype.readInt8=function(G,Y){return G=G>>>0,Y||qt(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},y.prototype.readInt16LE=function(G,Y){G=G>>>0,Y||qt(G,2,this.length);const De=this[G]|this[G+1]<<8;return De&32768?De|4294901760:De},y.prototype.readInt16BE=function(G,Y){G=G>>>0,Y||qt(G,2,this.length);const De=this[G+1]|this[G]<<8;return De&32768?De|4294901760:De},y.prototype.readInt32LE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},y.prototype.readInt32BE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},y.prototype.readBigInt64LE=Rn(function(G){G=G>>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=this[G+4]+this[G+5]*2**8+this[G+6]*2**16+(De<<24);return(BigInt(gt)<>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=(Y<<24)+this[++G]*2**16+this[++G]*2**8+this[++G];return(BigInt(gt)<>>0,Y||qt(G,4,this.length),l.read(this,G,!0,23,4)},y.prototype.readFloatBE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),l.read(this,G,!1,23,4)},y.prototype.readDoubleLE=function(G,Y){return G=G>>>0,Y||qt(G,8,this.length),l.read(this,G,!0,52,8)},y.prototype.readDoubleBE=function(G,Y){return G=G>>>0,Y||qt(G,8,this.length),l.read(this,G,!1,52,8)};function on(de,G,Y,De,gt,Kt){if(!y.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>gt||Gde.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,De=De>>>0,!gt){const so=Math.pow(2,8*De)-1;on(this,G,Y,De,so,0)}let Kt=1,Ut=0;for(this[Y]=G&255;++Ut>>0,De=De>>>0,!gt){const so=Math.pow(2,8*De)-1;on(this,G,Y,De,so,0)}let Kt=De-1,Ut=1;for(this[Y+Kt]=G&255;--Kt>=0&&(Ut*=256);)this[Y+Kt]=G/Ut&255;return Y+De},y.prototype.writeUint8=y.prototype.writeUInt8=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,1,255,0),this[Y]=G&255,Y+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,65535,0),this[Y]=G&255,this[Y+1]=G>>>8,Y+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,65535,0),this[Y]=G>>>8,this[Y+1]=G&255,Y+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,4294967295,0),this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=G&255,Y+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,4294967295,0),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255,Y+4};function Rt(de,G,Y,De,gt){Ce(G,De,gt,de,Y,7);let Kt=Number(G&BigInt(4294967295));de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt;let Ut=Number(G>>BigInt(32)&BigInt(4294967295));return de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Y}function an(de,G,Y,De,gt){Ce(G,De,gt,de,Y,7);let Kt=Number(G&BigInt(4294967295));de[Y+7]=Kt,Kt=Kt>>8,de[Y+6]=Kt,Kt=Kt>>8,de[Y+5]=Kt,Kt=Kt>>8,de[Y+4]=Kt;let Ut=Number(G>>BigInt(32)&BigInt(4294967295));return de[Y+3]=Ut,Ut=Ut>>8,de[Y+2]=Ut,Ut=Ut>>8,de[Y+1]=Ut,Ut=Ut>>8,de[Y]=Ut,Y+8}y.prototype.writeBigUInt64LE=Rn(function(G,Y=0){return Rt(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=Rn(function(G,Y=0){return an(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,!gt){const rl=Math.pow(2,8*De-1);on(this,G,Y,De,rl-1,-rl)}let Kt=0,Ut=1,so=0;for(this[Y]=G&255;++Kt>0)-so&255;return Y+De},y.prototype.writeIntBE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,!gt){const rl=Math.pow(2,8*De-1);on(this,G,Y,De,rl-1,-rl)}let Kt=De-1,Ut=1,so=0;for(this[Y+Kt]=G&255;--Kt>=0&&(Ut*=256);)G<0&&so===0&&this[Y+Kt+1]!==0&&(so=1),this[Y+Kt]=(G/Ut>>0)-so&255;return Y+De},y.prototype.writeInt8=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,1,127,-128),G<0&&(G=255+G+1),this[Y]=G&255,Y+1},y.prototype.writeInt16LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,32767,-32768),this[Y]=G&255,this[Y+1]=G>>>8,Y+2},y.prototype.writeInt16BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,32767,-32768),this[Y]=G>>>8,this[Y+1]=G&255,Y+2},y.prototype.writeInt32LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,2147483647,-2147483648),this[Y]=G&255,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24,Y+4},y.prototype.writeInt32BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255,Y+4},y.prototype.writeBigInt64LE=Rn(function(G,Y=0){return Rt(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=Rn(function(G,Y=0){return an(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zn(de,G,Y,De,gt,Kt){if(Y+De>de.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function kt(de,G,Y,De,gt){return G=+G,Y=Y>>>0,gt||Zn(de,G,Y,4),l.write(de,G,Y,De,23,4),Y+4}y.prototype.writeFloatLE=function(G,Y,De){return kt(this,G,Y,!0,De)},y.prototype.writeFloatBE=function(G,Y,De){return kt(this,G,Y,!1,De)};function Ze(de,G,Y,De,gt){return G=+G,Y=Y>>>0,gt||Zn(de,G,Y,8),l.write(de,G,Y,De,52,8),Y+8}y.prototype.writeDoubleLE=function(G,Y,De){return Ze(this,G,Y,!0,De)},y.prototype.writeDoubleBE=function(G,Y,De){return Ze(this,G,Y,!1,De)},y.prototype.copy=function(G,Y,De,gt){if(!y.isBuffer(G))throw new TypeError("argument should be a Buffer");if(De||(De=0),!gt&>!==0&&(gt=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),gt>0&>=this.length)throw new RangeError("Index out of range");if(gt<0)throw new RangeError("sourceEnd out of bounds");gt>this.length&&(gt=this.length),G.length-Y>>0,De=De===void 0?this.length:De>>>0,G||(G=0);let Kt;if(typeof G=="number")for(Kt=Y;Kt2**32?gt=pr(String(Y)):typeof Y=="bigint"&&(gt=String(Y),(Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))&&(gt=pr(gt)),gt+="n"),De+=` It must be ${G}. Received ${gt}`,De},RangeError);function pr(de){let G="",Y=de.length;const De=de[0]==="-"?1:0;for(;Y>=De+4;Y-=3)G=`_${de.slice(Y-3,Y)}${G}`;return`${de.slice(0,Y)}${G}`}function ye(de,G,Y){ee(G,"offset"),(de[G]===void 0||de[G+Y]===void 0)&&V(G,de.length-(Y+1))}function Ce(de,G,Y,De,gt,Kt){if(de>Y||de= 0${Ut} and < 2${Ut} ** ${(Kt+1)*8}${Ut}`:so=`>= -(2${Ut} ** ${(Kt+1)*8-1}${Ut}) and < 2 ** ${(Kt+1)*8-1}${Ut}`,new Xt.ERR_OUT_OF_RANGE("value",so,de)}ye(De,gt,Kt)}function ee(de,G){if(typeof de!="number")throw new Xt.ERR_INVALID_ARG_TYPE(G,"number",de)}function V(de,G,Y){throw Math.floor(de)!==de?(ee(de,Y),new Xt.ERR_OUT_OF_RANGE("offset","an integer",de)):G<0?new Xt.ERR_BUFFER_OUT_OF_BOUNDS:new Xt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${G}`,de)}const oe=/[^+/0-9A-Za-z-_]/g;function ue(de){if(de=de.split("=")[0],de=de.trim().replace(oe,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function ge(de,G){G=G||1/0;let Y;const De=de.length;let gt=null;const Kt=[];for(let Ut=0;Ut55295&&Y<57344){if(!gt){if(Y>56319){(G-=3)>-1&&Kt.push(239,191,189);continue}else if(Ut+1===De){(G-=3)>-1&&Kt.push(239,191,189);continue}gt=Y;continue}if(Y<56320){(G-=3)>-1&&Kt.push(239,191,189),gt=Y;continue}Y=(gt-55296<<10|Y-56320)+65536}else gt&&(G-=3)>-1&&Kt.push(239,191,189);if(gt=null,Y<128){if((G-=1)<0)break;Kt.push(Y)}else if(Y<2048){if((G-=2)<0)break;Kt.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((G-=3)<0)break;Kt.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((G-=4)<0)break;Kt.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return Kt}function Ge(de){const G=[];for(let Y=0;Y>8,gt=Y%256,Kt.push(gt),Kt.push(De);return Kt}function Lt(de){return o.toByteArray(ue(de))}function tn(de,G,Y,De){let gt;for(gt=0;gt=G.length||gt>=de.length);++gt)G[gt+Y]=de[gt];return gt}function Ct(de,G){return de instanceof G||de!=null&&de.constructor!=null&&de.constructor.name!=null&&de.constructor.name===G.name}function Kn(de){return de!==de}const dn=function(){const de="0123456789abcdef",G=new Array(256);for(let Y=0;Y<16;++Y){const De=Y*16;for(let gt=0;gt<16;++gt)G[De+gt]=de[Y]+de[gt]}return G}();function Rn(de){return typeof BigInt>"u"?br:de}function br(){throw new Error("BigInt not supported")}})(dm);var qa={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,o){return r.includes(o)},ArrayPrototypeIndexOf(r,o){return r.indexOf(o)},ArrayPrototypeJoin(r,o){return r.join(o)},ArrayPrototypeMap(r,o){return r.map(o)},ArrayPrototypePop(r,o){return r.pop(o)},ArrayPrototypePush(r,o){return r.push(o)},ArrayPrototypeSlice(r,o,l){return r.slice(o,l)},Error,FunctionPrototypeCall(r,o,...l){return r.call(o,...l)},FunctionPrototypeSymbolHasInstance(r,o){return Function.prototype[Symbol.hasInstance].call(r,o)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,o){return Object.defineProperties(r,o)},ObjectDefineProperty(r,o,l){return Object.defineProperty(r,o,l)},ObjectGetOwnPropertyDescriptor(r,o){return Object.getOwnPropertyDescriptor(r,o)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,o){return Object.setPrototypeOf(r,o)},Promise,PromisePrototypeCatch(r,o){return r.catch(o)},PromisePrototypeThen(r,o,l){return r.then(o,l)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,o){return r.test(o)},SafeSet:Set,String,StringPrototypeSlice(r,o,l){return r.slice(o,l)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(r,o,l){return r.set(o,l)},Boolean,Uint8Array},K9t={exports:{}},aF={exports:{}},b5t;function xz(){if(b5t)return aF.exports;b5t=1;const{AbortController:r,AbortSignal:o}=typeof self<"u"?self:typeof window<"u"?window:void 0;return aF.exports=r,aF.exports.AbortSignal=o,aF.exports.default=r,aF.exports}var h9e={exports:{}},o_=typeof Reflect=="object"?Reflect:null,w5t=o_&&typeof o_.apply=="function"?o_.apply:function(o,l,a){return Function.prototype.apply.call(o,l,a)},xne;o_&&typeof o_.ownKeys=="function"?xne=o_.ownKeys:Object.getOwnPropertySymbols?xne=function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:xne=function(o){return Object.getOwnPropertyNames(o)};function zwn(r){console&&console.warn&&console.warn(r)}var U9t=Number.isNaN||function(o){return o!==o};function Gc(){Gc.init.call(this)}h9e.exports=Gc;h9e.exports.once=Gwn;Gc.EventEmitter=Gc;Gc.prototype._events=void 0;Gc.prototype._eventsCount=0;Gc.prototype._maxListeners=void 0;var m5t=10;function Zre(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Gc,"defaultMaxListeners",{enumerable:!0,get:function(){return m5t},set:function(r){if(typeof r!="number"||r<0||U9t(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");m5t=r}});Gc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Gc.prototype.setMaxListeners=function(o){if(typeof o!="number"||o<0||U9t(o))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+o+".");return this._maxListeners=o,this};function G9t(r){return r._maxListeners===void 0?Gc.defaultMaxListeners:r._maxListeners}Gc.prototype.getMaxListeners=function(){return G9t(this)};Gc.prototype.emit=function(o){for(var l=[],a=1;a0&&(w=l[0]),w instanceof Error)throw w;var y=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw y.context=w,y}var S=g[o];if(S===void 0)return!1;if(typeof S=="function")w5t(S,this,l);else for(var E=S.length,I=Y9t(S,E),a=0;a0&&w.length>p&&!w.warned){w.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=r,y.type=o,y.count=w.length,zwn(y)}return r}Gc.prototype.addListener=function(o,l){return W9t(this,o,l,!1)};Gc.prototype.on=Gc.prototype.addListener;Gc.prototype.prependListener=function(o,l){return W9t(this,o,l,!0)};function Hwn(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V9t(r,o,l){var a={fired:!1,wrapFn:void 0,target:r,type:o,listener:l},p=Hwn.bind(a);return p.listener=l,a.wrapFn=p,p}Gc.prototype.once=function(o,l){return Zre(l),this.on(o,V9t(this,o,l)),this};Gc.prototype.prependOnceListener=function(o,l){return Zre(l),this.prependListener(o,V9t(this,o,l)),this};Gc.prototype.removeListener=function(o,l){var a,p,g,w,y;if(Zre(l),p=this._events,p===void 0)return this;if(a=p[o],a===void 0)return this;if(a===l||a.listener===l)--this._eventsCount===0?this._events=Object.create(null):(delete p[o],p.removeListener&&this.emit("removeListener",o,a.listener||l));else if(typeof a!="function"){for(g=-1,w=a.length-1;w>=0;w--)if(a[w]===l||a[w].listener===l){y=a[w].listener,g=w;break}if(g<0)return this;g===0?a.shift():Kwn(a,g),a.length===1&&(p[o]=a[0]),p.removeListener!==void 0&&this.emit("removeListener",o,y||l)}return this};Gc.prototype.off=Gc.prototype.removeListener;Gc.prototype.removeAllListeners=function(o){var l,a,p;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[o]),this;if(arguments.length===0){var g=Object.keys(a),w;for(p=0;p=0;p--)this.removeListener(o,l[p]);return this};function q9t(r,o,l){var a=r._events;if(a===void 0)return[];var p=a[o];return p===void 0?[]:typeof p=="function"?l?[p.listener||p]:[p]:l?Uwn(p):Y9t(p,p.length)}Gc.prototype.listeners=function(o){return q9t(this,o,!0)};Gc.prototype.rawListeners=function(o){return q9t(this,o,!1)};Gc.listenerCount=function(r,o){return typeof r.listenerCount=="function"?r.listenerCount(o):X9t.call(r,o)};Gc.prototype.listenerCount=X9t;function X9t(r){var o=this._events;if(o!==void 0){var l=o[r];if(typeof l=="function")return 1;if(l!==void 0)return l.length}return 0}Gc.prototype.eventNames=function(){return this._eventsCount>0?xne(this._events):[]};function Y9t(r,o){for(var l=new Array(o),a=0;a{if(_!==void 0&&(_===null||typeof _!="object"||!("aborted"in _)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",_)},I=(_,R)=>{if(typeof _!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",_)};class M extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let j="";for(let K=0;K{_=K,R=q}),resolve:_,reject:R}},promisify(_){return new Promise((R,j)=>{_((K,...q)=>K?j(K):R(...q))})},debuglog(){return function(){}},format(_,...R){return _.replace(/%([sdifj])/g,function(...[j,K]){const q=R.shift();return K==="f"?q.toFixed(6):K==="j"?JSON.stringify(q):K==="s"&&typeof q=="object"?`${q.constructor!==Object?q.constructor.name:""} {}`.trim():q.toString()})},inspect(_){switch(typeof _){case"string":if(_.includes("'"))if(_.includes('"')){if(!_.includes("`")&&!_.includes("${"))return`\`${_}\``}else return`"${_}"`;return`'${_}'`;case"number":return isNaN(_)?"NaN":Object.is(_,-0)?String(_):_;case"bigint":return`${String(_)}n`;case"boolean":case"undefined":return String(_);case"object":return"{}"}},types:{isAsyncFunction(_){return _ instanceof w},isArrayBufferView(_){return ArrayBuffer.isView(_)}},isBlob:S,deprecate(_,R){return _},addAbortListener:F_.addAbortListener||function(R,j){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);E(R,"signal"),I(j,"listener");let K;return R.aborted?queueMicrotask(()=>j()):(R.addEventListener("abort",j,{__proto__:null,once:!0,[l]:!0}),K=()=>{R.removeEventListener("abort",j)}),{__proto__:null,[a](){var q;(q=K)===null||q===void 0||q()}}},AbortSignalAny:p.any||function(R){if(R.length===1)return R[0];const j=new g,K=()=>j.abort();return R.forEach(q=>{E(q,"signals"),q.addEventListener("abort",K,{once:!0})}),j.signal.addEventListener("abort",()=>{R.forEach(q=>q.removeEventListener("abort",K))},{once:!0}),j.signal}},r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(K9t);var Np=K9t.exports,p9e={};const{format:Vwn,inspect:rre,AggregateError:qwn}=Np,Xwn=globalThis.AggregateError||qwn,Ywn=Symbol("kIsNodeError"),Jwn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Qwn=/^([A-Z][a-z0-9]*)+$/,Zwn="__node_internal_",eie={};function TE(r,o){if(!r)throw new eie.ERR_INTERNAL_ASSERTION(o)}function v5t(r){let o="",l=r.length;const a=r[0]==="-"?1:0;for(;l>=a+4;l-=3)o=`_${r.slice(l-3,l)}${o}`;return`${r.slice(0,l)}${o}`}function emn(r,o,l){if(typeof o=="function")return TE(o.length<=l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${o.length}).`),o(...l);const a=(o.match(/%[dfijoOs]/g)||[]).length;return TE(a===l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${a}).`),l.length===0?o:Vwn(o,...l)}function Xh(r,o,l){l||(l=Error);class a extends l{constructor(...g){super(emn(r,o,g))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:l.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=r,a.prototype[Ywn]=!0,eie[r]=a}function y5t(r){const o=Zwn+r.name;return Object.defineProperty(r,"name",{value:o}),r}function tmn(r,o){if(r&&o&&r!==o){if(Array.isArray(o.errors))return o.errors.push(r),o;const l=new Xwn([o,r],o.message);return l.code=o.code,l}return r||o}let nmn=class extends Error{constructor(o="The operation was aborted",l=void 0){if(l!==void 0&&typeof l!="object")throw new eie.ERR_INVALID_ARG_TYPE("options","Object",l);super(o,l),this.code="ABORT_ERR",this.name="AbortError"}};Xh("ERR_ASSERTION","%s",Error);Xh("ERR_INVALID_ARG_TYPE",(r,o,l)=>{TE(typeof r=="string","'name' must be a string"),Array.isArray(o)||(o=[o]);let a="The ";r.endsWith(" argument")?a+=`${r} `:a+=`"${r}" ${r.includes(".")?"property":"argument"} `,a+="must be ";const p=[],g=[],w=[];for(const S of o)TE(typeof S=="string","All expected entries have to be of type string"),Jwn.includes(S)?p.push(S.toLowerCase()):Qwn.test(S)?g.push(S):(TE(S!=="object",'The value "object" should be written as "Object"'),w.push(S));if(g.length>0){const S=p.indexOf("object");S!==-1&&(p.splice(p,S,1),g.push("Object"))}if(p.length>0){switch(p.length){case 1:a+=`of type ${p[0]}`;break;case 2:a+=`one of type ${p[0]} or ${p[1]}`;break;default:{const S=p.pop();a+=`one of type ${p.join(", ")}, or ${S}`}}(g.length>0||w.length>0)&&(a+=" or ")}if(g.length>0){switch(g.length){case 1:a+=`an instance of ${g[0]}`;break;case 2:a+=`an instance of ${g[0]} or ${g[1]}`;break;default:{const S=g.pop();a+=`an instance of ${g.join(", ")}, or ${S}`}}w.length>0&&(a+=" or ")}switch(w.length){case 0:break;case 1:w[0].toLowerCase()!==w[0]&&(a+="an "),a+=`${w[0]}`;break;case 2:a+=`one of ${w[0]} or ${w[1]}`;break;default:{const S=w.pop();a+=`one of ${w.join(", ")}, or ${S}`}}if(l==null)a+=`. Received ${l}`;else if(typeof l=="function"&&l.name)a+=`. Received function ${l.name}`;else if(typeof l=="object"){var y;if((y=l.constructor)!==null&&y!==void 0&&y.name)a+=`. Received an instance of ${l.constructor.name}`;else{const S=rre(l,{depth:-1});a+=`. Received ${S}`}}else{let S=rre(l,{colors:!1});S.length>25&&(S=`${S.slice(0,25)}...`),a+=`. Received type ${typeof l} (${S})`}return a},TypeError);Xh("ERR_INVALID_ARG_VALUE",(r,o,l="is invalid")=>{let a=rre(o);return a.length>128&&(a=a.slice(0,128)+"..."),`The ${r.includes(".")?"property":"argument"} '${r}' ${l}. Received ${a}`},TypeError);Xh("ERR_INVALID_RETURN_VALUE",(r,o,l)=>{var a;const p=l!=null&&(a=l.constructor)!==null&&a!==void 0&&a.name?`instance of ${l.constructor.name}`:`type ${typeof l}`;return`Expected ${r} to be returned from the "${o}" function but got ${p}.`},TypeError);Xh("ERR_MISSING_ARGS",(...r)=>{TE(r.length>0,"At least one arg needs to be specified");let o;const l=r.length;switch(r=(Array.isArray(r)?r:[r]).map(a=>`"${a}"`).join(" or "),l){case 1:o+=`The ${r[0]} argument`;break;case 2:o+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const a=r.pop();o+=`The ${r.join(", ")}, and ${a} arguments`}break}return`${o} must be specified`},TypeError);Xh("ERR_OUT_OF_RANGE",(r,o,l)=>{TE(o,'Missing "range" argument');let a;return Number.isInteger(l)&&Math.abs(l)>2**32?a=v5t(String(l)):typeof l=="bigint"?(a=String(l),(l>2n**32n||l<-(2n**32n))&&(a=v5t(a)),a+="n"):a=rre(l),`The value of "${r}" is out of range. It must be ${o}. Received ${a}`},RangeError);Xh("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xh("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xh("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xh("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xh("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xh("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xh("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xh("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xh("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xh("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xh("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Yg={AbortError:nmn,aggregateTwoErrors:y5t(tmn),hideStackFrames:y5t,codes:eie};const{ArrayIsArray:g9e,ArrayPrototypeIncludes:Q9t,ArrayPrototypeJoin:Z9t,ArrayPrototypeMap:rmn,NumberIsInteger:b9e,NumberIsNaN:imn,NumberMAX_SAFE_INTEGER:omn,NumberMIN_SAFE_INTEGER:smn,NumberParseInt:lmn,ObjectPrototypeHasOwnProperty:cmn,RegExpPrototypeExec:ext,String:umn,StringPrototypeToUpperCase:amn,StringPrototypeTrim:fmn}=qa,{hideStackFrames:hm,codes:{ERR_SOCKET_BAD_PORT:dmn,ERR_INVALID_ARG_TYPE:L1,ERR_INVALID_ARG_VALUE:z_,ERR_OUT_OF_RANGE:NE,ERR_UNKNOWN_SIGNAL:k5t}}=Yg,{normalizeEncoding:hmn}=Np,{isAsyncFunction:pmn,isArrayBufferView:gmn}=Np.types,C5t={};function bmn(r){return r===(r|0)}function wmn(r){return r===r>>>0}const mmn=/^[0-7]+$/,vmn="must be a 32-bit unsigned integer or an octal string";function ymn(r,o,l){if(typeof r>"u"&&(r=l),typeof r=="string"){if(ext(mmn,r)===null)throw new z_(o,r,vmn);r=lmn(r,8)}return txt(r,o),r}const kmn=hm((r,o,l=smn,a=omn)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),Cmn=hm((r,o,l=-2147483648,a=2147483647)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),txt=hm((r,o,l=!1)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);const a=l?1:0,p=4294967295;if(rp)throw new NE(o,`>= ${a} && <= ${p}`,r)});function w9e(r,o){if(typeof r!="string")throw new L1(o,"string",r)}function Smn(r,o,l=void 0,a){if(typeof r!="number")throw new L1(o,"number",r);if(l!=null&&ra||(l!=null||a!=null)&&imn(r))throw new NE(o,`${l!=null?`>= ${l}`:""}${l!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}const xmn=hm((r,o,l)=>{if(!Q9t(l,r)){const p="must be one of: "+Z9t(rmn(l,g=>typeof g=="string"?`'${g}'`:umn(g)),", ");throw new z_(o,r,p)}});function nxt(r,o){if(typeof r!="boolean")throw new L1(o,"boolean",r)}function Q8e(r,o,l){return r==null||!cmn(r,o)?l:r[o]}const Emn=hm((r,o,l=null)=>{const a=Q8e(l,"allowArray",!1),p=Q8e(l,"allowFunction",!1);if(!Q8e(l,"nullable",!1)&&r===null||!a&&g9e(r)||typeof r!="object"&&(!p||typeof r!="function"))throw new L1(o,"Object",r)}),Tmn=hm((r,o)=>{if(r!=null&&typeof r!="object"&&typeof r!="function")throw new L1(o,"a dictionary",r)}),tie=hm((r,o,l=0)=>{if(!g9e(r))throw new L1(o,"Array",r);if(r.length{if(!gmn(r))throw new L1(o,["Buffer","TypedArray","DataView"],r)});function Rmn(r,o){const l=hmn(o),a=r.length;if(l==="hex"&&a%2!==0)throw new z_("encoding",o,`is invalid for data of length ${a}`)}function Amn(r,o="Port",l=!0){if(typeof r!="number"&&typeof r!="string"||typeof r=="string"&&fmn(r).length===0||+r!==+r>>>0||r>65535||r===0&&!l)throw new dmn(o,r,l);return r|0}const rxt=hm((r,o)=>{if(r!==void 0&&(r===null||typeof r!="object"||!("aborted"in r)))throw new L1(o,"AbortSignal",r)}),Lmn=hm((r,o)=>{if(typeof r!="function")throw new L1(o,"Function",r)}),$mn=hm((r,o)=>{if(typeof r!="function"||pmn(r))throw new L1(o,"Function",r)}),jmn=hm((r,o)=>{if(r!==void 0)throw new L1(o,"undefined",r)});function Dmn(r,o,l){if(!Q9t(l,r))throw new L1(o,`('${Z9t(l,"|")}')`,r)}const Nmn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function S5t(r,o){if(typeof r>"u"||!ext(Nmn,r))throw new z_(o,r,'must be an array or string of format "; rel=preload; as=style"')}function Bmn(r){if(typeof r=="string")return S5t(r,"hints"),r;if(g9e(r)){const o=r.length;let l="";if(o===0)return l;for(let a=0;a; rel=preload; as=style"')}var SH={isInt32:bmn,isUint32:wmn,parseFileMode:ymn,validateArray:tie,validateStringArray:Imn,validateBooleanArray:Pmn,validateAbortSignalArray:Mmn,validateBoolean:nxt,validateBuffer:_mn,validateDictionary:Tmn,validateEncoding:Rmn,validateFunction:Lmn,validateInt32:Cmn,validateInteger:kmn,validateNumber:Smn,validateObject:Emn,validateOneOf:xmn,validatePlainFunction:$mn,validatePort:Amn,validateSignalName:Omn,validateString:w9e,validateUint32:txt,validateUndefined:jmn,validateUnion:Dmn,validateAbortSignal:rxt,validateLinkHeaderValue:Bmn},m9e={exports:{}},ixt={exports:{}},Tf=ixt.exports={},a3,f3;function k7e(){throw new Error("setTimeout has not been defined")}function C7e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a3=setTimeout:a3=k7e}catch{a3=k7e}try{typeof clearTimeout=="function"?f3=clearTimeout:f3=C7e}catch{f3=C7e}})();function oxt(r){if(a3===setTimeout)return setTimeout(r,0);if((a3===k7e||!a3)&&setTimeout)return a3=setTimeout,setTimeout(r,0);try{return a3(r,0)}catch{try{return a3.call(null,r,0)}catch{return a3.call(this,r,0)}}}function Fmn(r){if(f3===clearTimeout)return clearTimeout(r);if((f3===C7e||!f3)&&clearTimeout)return f3=clearTimeout,clearTimeout(r);try{return f3(r)}catch{try{return f3.call(null,r)}catch{return f3.call(this,r)}}}var H6=[],s_=!1,vE,Ene=-1;function zmn(){!s_||!vE||(s_=!1,vE.length?H6=vE.concat(H6):Ene=-1,H6.length&&sxt())}function sxt(){if(!s_){var r=oxt(zmn);s_=!0;for(var o=H6.length;o;){for(vE=H6,H6=[];++Ene1)for(var l=1;l{};function Cxt(r,o,l){var a,p;if(arguments.length===2?(l=o,o=E7e):o==null?o=E7e:lvn(o,"options"),svn(l,"callback"),ovn(o.signal,"options.signal"),l=T7e(l),dvn(r)||hvn(r))return mvn(r,o,l);if(!pvn(r))throw new ivn("stream",["ReadableStream","WritableStream","Stream"],r);const g=(a=o.readable)!==null&&a!==void 0?a:Z8e(r),w=(p=o.writable)!==null&&p!==void 0?p:_5t(r),y=r._writableState,S=r._readableState,E=()=>{r.writable||_()};let I=gvn(r)&&Z8e(r)===g&&_5t(r)===w,M=R5t(r,!1);const _=()=>{M=!0,r.destroyed&&(I=!1),!(I&&(!r.readable||g))&&(!g||R)&&l.call(r)};let R=P5t(r,!1);const j=()=>{R=!0,r.destroyed&&(I=!1),!(I&&(!r.writable||w))&&(!w||M)&&l.call(r)},K=je=>{l.call(r,je)};let q=fvn(r);const Q=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);if(g&&!R&&Z8e(r,!0)&&!P5t(r,!1))return l.call(r,new T5t);if(w&&!M&&!R5t(r,!1))return l.call(r,new T5t);l.call(r)},Z=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);l.call(r)},X=()=>{r.req.on("finish",_)};wvn(r)?(r.on("complete",_),I||r.on("abort",Q),r.req?X():r.on("request",X)):w&&!y&&(r.on("end",E),r.on("close",E)),!I&&typeof r.aborted=="boolean"&&r.on("aborted",Q),r.on("end",j),r.on("finish",_),o.error!==!1&&r.on("error",K),r.on("close",Q),q?wC.nextTick(Q):y!=null&&y.errorEmitted||S!=null&&S.errorEmitted?I||wC.nextTick(Z):(!g&&(!I||I5t(r))&&(M||O5t(r)===!1)||!w&&(!I||O5t(r))&&(R||I5t(r)===!1)||S&&r.req&&r.aborted)&&wC.nextTick(Z);const ie=()=>{l=I7e,r.removeListener("aborted",Q),r.removeListener("complete",_),r.removeListener("abort",Q),r.removeListener("request",X),r.req&&r.req.removeListener("finish",_),r.removeListener("end",E),r.removeListener("close",E),r.removeListener("finish",_),r.removeListener("end",j),r.removeListener("error",K),r.removeListener("close",Q)};if(o.signal&&!q){const je=()=>{const et=l;ie(),et.call(r,new yxt(void 0,{cause:o.signal.reason}))};if(o.signal.aborted)wC.nextTick(je);else{l_=l_||Np.addAbortListener;const et=l_(o.signal,je),mt=l;l=T7e((...bt)=>{et[kxt](),mt.apply(r,bt)})}}return ie}function mvn(r,o,l){let a=!1,p=I7e;if(o.signal)if(p=()=>{a=!0,l.call(r,new yxt(void 0,{cause:o.signal.reason}))},o.signal.aborted)wC.nextTick(p);else{l_=l_||Np.addAbortListener;const w=l_(o.signal,p),y=l;l=T7e((...S)=>{w[kxt](),y.apply(r,S)})}const g=(...w)=>{a||wC.nextTick(()=>l.apply(r,w))};return avn(r[bvn].promise,g,g),I7e}function vvn(r,o){var l;let a=!1;return o===null&&(o=E7e),(l=o)!==null&&l!==void 0&&l.cleanup&&(cvn(o.cleanup,"cleanup"),a=o.cleanup),new uvn((p,g)=>{const w=Cxt(r,o,y=>{a&&w(),y?g(y):p()})})}m9e.exports=Cxt;m9e.exports.finished=vvn;var WC=m9e.exports;const y3=GC,{aggregateTwoErrors:yvn,codes:{ERR_MULTIPLE_CALLBACK:kvn},AbortError:Cvn}=Yg,{Symbol:Sxt}=qa,{kIsDestroyed:Svn,isDestroyed:xvn,isFinished:Evn,isServerRequest:Tvn}=sk,xxt=Sxt("kDestroy"),P7e=Sxt("kConstruct");function Ext(r,o,l){r&&(r.stack,o&&!o.errored&&(o.errored=r),l&&!l.errored&&(l.errored=r))}function Ivn(r,o){const l=this._readableState,a=this._writableState,p=a||l;return a!=null&&a.destroyed||l!=null&&l.destroyed?(typeof o=="function"&&o(),this):(Ext(r,a,l),a&&(a.destroyed=!0),l&&(l.destroyed=!0),p.constructed?L5t(this,r,o):this.once(xxt,function(g){L5t(this,yvn(g,r),o)}),this)}function L5t(r,o,l){let a=!1;function p(g){if(a)return;a=!0;const w=r._readableState,y=r._writableState;Ext(g,y,w),y&&(y.closed=!0),w&&(w.closed=!0),typeof l=="function"&&l(g),g?y3.nextTick(Pvn,r,g):y3.nextTick(Txt,r)}try{r._destroy(o||null,p)}catch(g){p(g)}}function Pvn(r,o){M7e(r,o),Txt(r)}function Txt(r){const o=r._readableState,l=r._writableState;l&&(l.closeEmitted=!0),o&&(o.closeEmitted=!0),(l!=null&&l.emitClose||o!=null&&o.emitClose)&&r.emit("close")}function M7e(r,o){const l=r._readableState,a=r._writableState;a!=null&&a.errorEmitted||l!=null&&l.errorEmitted||(a&&(a.errorEmitted=!0),l&&(l.errorEmitted=!0),r.emit("error",o))}function Mvn(){const r=this._readableState,o=this._writableState;r&&(r.constructed=!0,r.closed=!1,r.closeEmitted=!1,r.destroyed=!1,r.errored=null,r.errorEmitted=!1,r.reading=!1,r.ended=r.readable===!1,r.endEmitted=r.readable===!1),o&&(o.constructed=!0,o.destroyed=!1,o.closed=!1,o.closeEmitted=!1,o.errored=null,o.errorEmitted=!1,o.finalCalled=!1,o.prefinished=!1,o.ended=o.writable===!1,o.ending=o.writable===!1,o.finished=o.writable===!1)}function O7e(r,o,l){const a=r._readableState,p=r._writableState;if(p!=null&&p.destroyed||a!=null&&a.destroyed)return this;a!=null&&a.autoDestroy||p!=null&&p.autoDestroy?r.destroy(o):o&&(o.stack,p&&!p.errored&&(p.errored=o),a&&!a.errored&&(a.errored=o),l?y3.nextTick(M7e,r,o):M7e(r,o))}function Ovn(r,o){if(typeof r._construct!="function")return;const l=r._readableState,a=r._writableState;l&&(l.constructed=!1),a&&(a.constructed=!1),r.once(P7e,o),!(r.listenerCount(P7e)>1)&&y3.nextTick(_vn,r)}function _vn(r){let o=!1;function l(a){if(o){O7e(r,a??new kvn);return}o=!0;const p=r._readableState,g=r._writableState,w=g||p;p&&(p.constructed=!0),g&&(g.constructed=!0),w.destroyed?r.emit(xxt,a):a?O7e(r,a,!0):y3.nextTick(Rvn,r)}try{r._construct(a=>{y3.nextTick(l,a)})}catch(a){y3.nextTick(l,a)}}function Rvn(r){r.emit(P7e)}function $5t(r){return(r==null?void 0:r.setHeader)&&typeof r.abort=="function"}function Ixt(r){r.emit("close")}function Avn(r,o){r.emit("error",o),y3.nextTick(Ixt,r)}function Lvn(r,o){!r||xvn(r)||(!o&&!Evn(r)&&(o=new Cvn),Tvn(r)?(r.socket=null,r.destroy(o)):$5t(r)?r.abort():$5t(r.req)?r.req.abort():typeof r.destroy=="function"?r.destroy(o):typeof r.close=="function"?r.close():o?y3.nextTick(Avn,r,o):y3.nextTick(Ixt,r),r.destroyed||(r[Svn]=!0))}var H_={construct:Ovn,destroyer:Lvn,destroy:Ivn,undestroy:Mvn,errorOrDestroy:O7e};const{ArrayIsArray:$vn,ObjectSetPrototypeOf:Pxt}=qa,{EventEmitter:oie}=F_;function sie(r){oie.call(this,r)}Pxt(sie.prototype,oie.prototype);Pxt(sie,oie);sie.prototype.pipe=function(r,o){const l=this;function a(I){r.writable&&r.write(I)===!1&&l.pause&&l.pause()}l.on("data",a);function p(){l.readable&&l.resume&&l.resume()}r.on("drain",p),!r._isStdio&&(!o||o.end!==!1)&&(l.on("end",w),l.on("close",y));let g=!1;function w(){g||(g=!0,r.end())}function y(){g||(g=!0,typeof r.destroy=="function"&&r.destroy())}function S(I){E(),oie.listenerCount(this,"error")===0&&this.emit("error",I)}_7e(l,"error",S),_7e(r,"error",S);function E(){l.removeListener("data",a),r.removeListener("drain",p),l.removeListener("end",w),l.removeListener("close",y),l.removeListener("error",S),r.removeListener("error",S),l.removeListener("end",E),l.removeListener("close",E),r.removeListener("close",E)}return l.on("end",E),l.on("close",E),r.on("close",E),r.emit("pipe",l),r};function _7e(r,o,l){if(typeof r.prependListener=="function")return r.prependListener(o,l);!r._events||!r._events[o]?r.on(o,l):$vn(r._events[o])?r._events[o].unshift(l):r._events[o]=[l,r._events[o]]}var v9e={Stream:sie,prependListener:_7e},Mxt={exports:{}};(function(r){const{SymbolDispose:o}=qa,{AbortError:l,codes:a}=Yg,{isNodeStream:p,isWebStream:g,kControllerErrorFunction:w}=sk,y=WC,{ERR_INVALID_ARG_TYPE:S}=a;let E;const I=(M,_)=>{if(typeof M!="object"||!("aborted"in M))throw new S(_,"AbortSignal",M)};r.exports.addAbortSignal=function(_,R){if(I(_,"signal"),!p(R)&&!g(R))throw new S("stream",["ReadableStream","WritableStream","Stream"],R);return r.exports.addAbortSignalNoValidate(_,R)},r.exports.addAbortSignalNoValidate=function(M,_){if(typeof M!="object"||!("aborted"in M))return _;const R=p(_)?()=>{_.destroy(new l(void 0,{cause:M.reason}))}:()=>{_[w](new l(void 0,{cause:M.reason}))};if(M.aborted)R();else{E=E||Np.addAbortListener;const j=E(M,R);y(_,j[o])}return _}})(Mxt);var lie=Mxt.exports;const{StringPrototypeSlice:j5t,SymbolIterator:jvn,TypedArrayPrototypeSet:Wte,Uint8Array:Dvn}=qa,{Buffer:eCe}=dm,{inspect:Nvn}=Np;var Bvn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,a=""+l.data;for(;(l=l.next)!==null;)a+=o+l.data;return a}concat(o){if(this.length===0)return eCe.alloc(0);const l=eCe.allocUnsafe(o>>>0);let a=this.head,p=0;for(;a;)Wte(l,a.data,p),p+=a.data.length,a=a.next;return l}consume(o,l){const a=this.head.data;if(og.length)l+=g,o-=g.length;else{o===g.length?(l+=g,++p,a.next?this.head=a.next:this.head=this.tail=null):(l+=j5t(g,0,o),this.head=a,a.data=j5t(g,o));break}++p}while((a=a.next)!==null);return this.length-=p,l}_getBuffer(o){const l=eCe.allocUnsafe(o),a=o;let p=this.head,g=0;do{const w=p.data;if(o>w.length)Wte(l,w,a-o),o-=w.length;else{o===w.length?(Wte(l,w,a-o),++g,p.next?this.head=p.next:this.head=this.tail=null):(Wte(l,new Dvn(w.buffer,w.byteOffset,o),a-o),this.head=p,p.data=w.slice(o));break}++g}while((p=p.next)!==null);return this.length-=g,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return Nvn(this,{...l,depth:0,customInspect:!1})}};const{MathFloor:Fvn,NumberIsInteger:zvn}=qa,{validateInteger:Hvn}=SH,{ERR_INVALID_ARG_VALUE:Kvn}=Yg.codes;let Oxt=16*1024,_xt=16;function Uvn(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function Rxt(r){return r?_xt:Oxt}function Gvn(r,o){Hvn(o,"value",0),r?_xt=o:Oxt=o}function Wvn(r,o,l,a){const p=Uvn(o,a,l);if(p!=null){if(!zvn(p)||p<0){const g=a?`options.${l}`:"options.highWaterMark";throw new Kvn(g,p)}return Fvn(p)}return Rxt(r.objectMode)}var cie={getHighWaterMark:Wvn,getDefaultHighWaterMark:Rxt,setDefaultHighWaterMark:Gvn},ire={},R7e={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(r,o){var l=dm,a=l.Buffer;function p(w,y){for(var S in w)y[S]=w[S]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=l:(p(l,o),o.Buffer=g);function g(w,y,S){return a(w,y,S)}g.prototype=Object.create(a.prototype),p(a,g),g.from=function(w,y,S){if(typeof w=="number")throw new TypeError("Argument must not be a number");return a(w,y,S)},g.alloc=function(w,y,S){if(typeof w!="number")throw new TypeError("Argument must be a number");var E=a(w);return y!==void 0?typeof S=="string"?E.fill(y,S):E.fill(y):E.fill(0),E},g.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return a(w)},g.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(w)}})(R7e,R7e.exports);var Vvn=R7e.exports,y9e=Vvn.Buffer,D5t=y9e.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function qvn(r){if(!r)return"utf8";for(var o;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(o)return;r=(""+r).toLowerCase(),o=!0}}function Xvn(r){var o=qvn(r);if(typeof o!="string"&&(y9e.isEncoding===D5t||!D5t(r)))throw new Error("Unknown encoding: "+r);return o||r}ire.StringDecoder=xH;function xH(r){this.encoding=Xvn(r);var o;switch(this.encoding){case"utf16le":this.text=tyn,this.end=nyn,o=4;break;case"utf8":this.fillLast=Qvn,o=4;break;case"base64":this.text=ryn,this.end=iyn,o=3;break;default:this.write=oyn,this.end=syn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y9e.allocUnsafe(o)}xH.prototype.write=function(r){if(r.length===0)return"";var o,l;if(this.lastNeed){if(o=this.fillLast(r),o===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;return l>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Yvn(r,o,l){var a=o.length-1;if(a=0?(p>0&&(r.lastNeed=p-1),p):--a=0?(p>0&&(r.lastNeed=p-2),p):--a=0?(p>0&&(p===2?p=0:r.lastNeed=p-3),p):0))}function Jvn(r,o,l){if((o[0]&192)!==128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return r.lastNeed=2,"�"}}function Qvn(r){var o=this.lastTotal-this.lastNeed,l=Jvn(this,r);if(l!==void 0)return l;if(this.lastNeed<=r.length)return r.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,o,0,r.length),this.lastNeed-=r.length}function Zvn(r,o){var l=Yvn(this,r,o);if(!this.lastNeed)return r.toString("utf8",o);this.lastTotal=l;var a=r.length-(l-this.lastNeed);return r.copy(this.lastChar,0,a),r.toString("utf8",o,a)}function eyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+"�":o}function tyn(r,o){if((r.length-o)%2===0){var l=r.toString("utf16le",o);if(l){var a=l.charCodeAt(l.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",o,r.length-1)}function nyn(r){var o=r&&r.length?this.write(r):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,l)}return o}function ryn(r,o){var l=(r.length-o)%3;return l===0?r.toString("base64",o):(this.lastNeed=3-l,this.lastTotal=3,l===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",o,r.length-l))}function iyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function oyn(r){return r.toString(this.encoding)}function syn(r){return r&&r.length?this.write(r):""}const N5t=GC,{PromisePrototypeThen:lyn,SymbolAsyncIterator:B5t,SymbolIterator:F5t}=qa,{Buffer:cyn}=dm,{ERR_INVALID_ARG_TYPE:uyn,ERR_STREAM_NULL_VALUES:ayn}=Yg.codes;function fyn(r,o,l){let a;if(typeof o=="string"||o instanceof cyn)return new r({objectMode:!0,...l,read(){this.push(o),this.push(null)}});let p;if(o&&o[B5t])p=!0,a=o[B5t]();else if(o&&o[F5t])p=!1,a=o[F5t]();else throw new uyn("iterable",["Iterable"],o);const g=new r({objectMode:!0,highWaterMark:1,...l});let w=!1;g._read=function(){w||(w=!0,S())},g._destroy=function(E,I){lyn(y(E),()=>N5t.nextTick(I,E),M=>N5t.nextTick(I,M||E))};async function y(E){const I=E!=null,M=typeof a.throw=="function";if(I&&M){const{value:_,done:R}=await a.throw(E);if(await _,R)return}if(typeof a.return=="function"){const{value:_}=await a.return();await _}}async function S(){for(;;){try{const{value:E,done:I}=p?await a.next():a.next();if(I)g.push(null);else{const M=E&&typeof E.then=="function"?await E:E;if(M===null)throw w=!1,new ayn;if(g.push(M))continue;w=!1}}catch(E){g.destroy(E)}break}}return g}var Axt=fyn,nCe,z5t;function uie(){if(z5t)return nCe;z5t=1;const r=GC,{ArrayPrototypeIndexOf:o,NumberIsInteger:l,NumberIsNaN:a,NumberParseInt:p,ObjectDefineProperties:g,ObjectKeys:w,ObjectSetPrototypeOf:y,Promise:S,SafeSet:E,SymbolAsyncDispose:I,SymbolAsyncIterator:M,Symbol:_}=qa;nCe=Ct,Ct.ReadableState=tn;const{EventEmitter:R}=F_,{Stream:j,prependListener:K}=v9e,{Buffer:q}=dm,{addAbortSignal:Q}=lie,Z=WC;let X=Np.debuglog("stream",Ne=>{X=Ne});const ie=Bvn,je=H_,{getHighWaterMark:et,getDefaultHighWaterMark:mt}=cie,{aggregateTwoErrors:bt,codes:{ERR_INVALID_ARG_TYPE:ce,ERR_METHOD_NOT_IMPLEMENTED:Be,ERR_OUT_OF_RANGE:ae,ERR_STREAM_PUSH_AFTER_EOF:xe,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:He}=Yg,{validateObject:yt}=SH,ft=_("kPaused"),{StringDecoder:At}=ire,Jt=Axt;y(Ct.prototype,j.prototype),y(Ct,j);const un=()=>{},{errorOrDestroy:kn}=je,qt=1,on=2,Rt=4,an=8,Zn=16,kt=32,Ze=64,Xt=128,Mn=256,pr=512,ye=1024,Ce=2048,ee=4096,V=8192,oe=16384,ue=32768,ge=65536,Ge=1<<17,$t=1<<18;function Lt(Ne){return{enumerable:!1,get(){return(this.state&Ne)!==0},set(Xe){Xe?this.state|=Ne:this.state&=~Ne}}}g(tn.prototype,{objectMode:Lt(qt),ended:Lt(on),endEmitted:Lt(Rt),reading:Lt(an),constructed:Lt(Zn),sync:Lt(kt),needReadable:Lt(Ze),emittedReadable:Lt(Xt),readableListening:Lt(Mn),resumeScheduled:Lt(pr),errorEmitted:Lt(ye),emitClose:Lt(Ce),autoDestroy:Lt(ee),destroyed:Lt(V),closed:Lt(oe),closeEmitted:Lt(ue),multiAwaitDrain:Lt(ge),readingMore:Lt(Ge),dataEmitted:Lt($t)});function tn(Ne,Xe,Pr){typeof Pr!="boolean"&&(Pr=Xe instanceof X6()),this.state=Ce|ee|Zn|kt,Ne&&Ne.objectMode&&(this.state|=qt),Pr&&Ne&&Ne.readableObjectMode&&(this.state|=qt),this.highWaterMark=Ne?et(this,Ne,"readableHighWaterMark",Pr):mt(!1),this.buffer=new ie,this.length=0,this.pipes=[],this.flowing=null,this[ft]=null,Ne&&Ne.emitClose===!1&&(this.state&=~Ce),Ne&&Ne.autoDestroy===!1&&(this.state&=~ee),this.errored=null,this.defaultEncoding=Ne&&Ne.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Ne&&Ne.encoding&&(this.decoder=new At(Ne.encoding),this.encoding=Ne.encoding)}function Ct(Ne){if(!(this instanceof Ct))return new Ct(Ne);const Xe=this instanceof X6();this._readableState=new tn(Ne,this,Xe),Ne&&(typeof Ne.read=="function"&&(this._read=Ne.read),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy),typeof Ne.construct=="function"&&(this._construct=Ne.construct),Ne.signal&&!Xe&&Q(Ne.signal,this)),j.call(this,Ne),je.construct(this,()=>{this._readableState.needReadable&>(this,this._readableState)})}Ct.prototype.destroy=je.destroy,Ct.prototype._undestroy=je.undestroy,Ct.prototype._destroy=function(Ne,Xe){Xe(Ne)},Ct.prototype[R.captureRejectionSymbol]=function(Ne){this.destroy(Ne)},Ct.prototype[I]=function(){let Ne;return this.destroyed||(Ne=this.readableEnded?null:new He,this.destroy(Ne)),new S((Xe,Pr)=>Z(this,Cr=>Cr&&Cr!==Ne?Pr(Cr):Xe(null)))},Ct.prototype.push=function(Ne,Xe){return Kn(this,Ne,Xe,!1)},Ct.prototype.unshift=function(Ne,Xe){return Kn(this,Ne,Xe,!0)};function Kn(Ne,Xe,Pr,Cr){X("readableAddChunk",Xe);const Gr=Ne._readableState;let lu;if(Gr.state&qt||(typeof Xe=="string"?(Pr=Pr||Gr.defaultEncoding,Gr.encoding!==Pr&&(Cr&&Gr.encoding?Xe=q.from(Xe,Pr).toString(Gr.encoding):(Xe=q.from(Xe,Pr),Pr=""))):Xe instanceof q?Pr="":j._isUint8Array(Xe)?(Xe=j._uint8ArrayToBuffer(Xe),Pr=""):Xe!=null&&(lu=new ce("chunk",["string","Buffer","Uint8Array"],Xe))),lu)kn(Ne,lu);else if(Xe===null)Gr.state&=~an,G(Ne,Gr);else if(Gr.state&qt||Xe&&Xe.length>0)if(Cr)if(Gr.state&Rt)kn(Ne,new U);else{if(Gr.destroyed||Gr.errored)return!1;dn(Ne,Gr,Xe,!0)}else if(Gr.ended)kn(Ne,new xe);else{if(Gr.destroyed||Gr.errored)return!1;Gr.state&=~an,Gr.decoder&&!Pr?(Xe=Gr.decoder.write(Xe),Gr.objectMode||Xe.length!==0?dn(Ne,Gr,Xe,!1):gt(Ne,Gr)):dn(Ne,Gr,Xe,!1)}else Cr||(Gr.state&=~an,gt(Ne,Gr));return!Gr.ended&&(Gr.length0?(Xe.state&ge?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null,Xe.dataEmitted=!0,Ne.emit("data",Pr)):(Xe.length+=Xe.objectMode?1:Pr.length,Cr?Xe.buffer.unshift(Pr):Xe.buffer.push(Pr),Xe.state&Ze&&Y(Ne)),gt(Ne,Xe)}Ct.prototype.isPaused=function(){const Ne=this._readableState;return Ne[ft]===!0||Ne.flowing===!1},Ct.prototype.setEncoding=function(Ne){const Xe=new At(Ne);this._readableState.decoder=Xe,this._readableState.encoding=this._readableState.decoder.encoding;const Pr=this._readableState.buffer;let Cr="";for(const Gr of Pr)Cr+=Xe.write(Gr);return Pr.clear(),Cr!==""&&Pr.push(Cr),this._readableState.length=Cr.length,this};const Rn=1073741824;function br(Ne){if(Ne>Rn)throw new ae("size","<= 1GiB",Ne);return Ne--,Ne|=Ne>>>1,Ne|=Ne>>>2,Ne|=Ne>>>4,Ne|=Ne>>>8,Ne|=Ne>>>16,Ne++,Ne}function de(Ne,Xe){return Ne<=0||Xe.length===0&&Xe.ended?0:Xe.state&qt?1:a(Ne)?Xe.flowing&&Xe.length?Xe.buffer.first().length:Xe.length:Ne<=Xe.length?Ne:Xe.ended?Xe.length:0}Ct.prototype.read=function(Ne){X("read",Ne),Ne===void 0?Ne=NaN:l(Ne)||(Ne=p(Ne,10));const Xe=this._readableState,Pr=Ne;if(Ne>Xe.highWaterMark&&(Xe.highWaterMark=br(Ne)),Ne!==0&&(Xe.state&=~Xt),Ne===0&&Xe.needReadable&&((Xe.highWaterMark!==0?Xe.length>=Xe.highWaterMark:Xe.length>0)||Xe.ended))return X("read: emitReadable",Xe.length,Xe.ended),Xe.length===0&&Xe.ended?_d(this):Y(this),null;if(Ne=de(Ne,Xe),Ne===0&&Xe.ended)return Xe.length===0&&_d(this),null;let Cr=(Xe.state&Ze)!==0;if(X("need readable",Cr),(Xe.length===0||Xe.length-Ne0?Gr=L3(Ne,Xe):Gr=null,Gr===null?(Xe.needReadable=Xe.length<=Xe.highWaterMark,Ne=0):(Xe.length-=Ne,Xe.multiAwaitDrain?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null),Xe.length===0&&(Xe.ended||(Xe.needReadable=!0),Pr!==Ne&&Xe.ended&&_d(this)),Gr!==null&&!Xe.errorEmitted&&!Xe.closeEmitted&&(Xe.dataEmitted=!0,this.emit("data",Gr)),Gr};function G(Ne,Xe){if(X("onEofChunk"),!Xe.ended){if(Xe.decoder){const Pr=Xe.decoder.end();Pr&&Pr.length&&(Xe.buffer.push(Pr),Xe.length+=Xe.objectMode?1:Pr.length)}Xe.ended=!0,Xe.sync?Y(Ne):(Xe.needReadable=!1,Xe.emittedReadable=!0,De(Ne))}}function Y(Ne){const Xe=Ne._readableState;X("emitReadable",Xe.needReadable,Xe.emittedReadable),Xe.needReadable=!1,Xe.emittedReadable||(X("emitReadable",Xe.flowing),Xe.emittedReadable=!0,r.nextTick(De,Ne))}function De(Ne){const Xe=Ne._readableState;X("emitReadable_",Xe.destroyed,Xe.length,Xe.ended),!Xe.destroyed&&!Xe.errored&&(Xe.length||Xe.ended)&&(Ne.emit("readable"),Xe.emittedReadable=!1),Xe.needReadable=!Xe.flowing&&!Xe.ended&&Xe.length<=Xe.highWaterMark,zs(Ne)}function gt(Ne,Xe){!Xe.readingMore&&Xe.constructed&&(Xe.readingMore=!0,r.nextTick(Kt,Ne,Xe))}function Kt(Ne,Xe){for(;!Xe.reading&&!Xe.ended&&(Xe.length1&&Cr.pipes.includes(Ne)&&(X("false write response, pause",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.add(Ne)),Pr.pause()),mb||(mb=Ut(Pr,Ne),Ne.on("drain",mb))}Pr.on("data",wy);function wy(Qg){X("ondata");const zp=Ne.write(Qg);X("dest.write",zp),zp===!1&&j1()}function uk(Qg){if(X("onerror",Qg),Fp(),Ne.removeListener("error",uk),Ne.listenerCount("error")===0){const zp=Ne._writableState||Ne._readableState;zp&&!zp.errorEmitted?kn(Ne,Qg):Ne.emit("error",Qg)}}K(Ne,"error",uk);function j3(){Ne.removeListener("finish",ak),Fp()}Ne.once("close",j3);function ak(){X("onfinish"),Ne.removeListener("close",j3),Fp()}Ne.once("finish",ak);function Fp(){X("unpipe"),Pr.unpipe(Ne)}return Ne.emit("pipe",Pr),Ne.writableNeedDrain===!0?j1():Cr.flowing||(X("pipe resume"),Pr.resume()),Ne};function Ut(Ne,Xe){return function(){const Cr=Ne._readableState;Cr.awaitDrainWriters===Xe?(X("pipeOnDrain",1),Cr.awaitDrainWriters=null):Cr.multiAwaitDrain&&(X("pipeOnDrain",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.delete(Xe)),(!Cr.awaitDrainWriters||Cr.awaitDrainWriters.size===0)&&Ne.listenerCount("data")&&Ne.resume()}}Ct.prototype.unpipe=function(Ne){const Xe=this._readableState,Pr={hasUnpiped:!1};if(Xe.pipes.length===0)return this;if(!Ne){const Gr=Xe.pipes;Xe.pipes=[],this.pause();for(let lu=0;lu0,Cr.flowing!==!1&&this.resume()):Ne==="readable"&&!Cr.endEmitted&&!Cr.readableListening&&(Cr.readableListening=Cr.needReadable=!0,Cr.flowing=!1,Cr.emittedReadable=!1,X("on readable",Cr.length,Cr.reading),Cr.length?Y(this):Cr.reading||r.nextTick(rl,this)),Pr},Ct.prototype.addListener=Ct.prototype.on,Ct.prototype.removeListener=function(Ne,Xe){const Pr=j.prototype.removeListener.call(this,Ne,Xe);return Ne==="readable"&&r.nextTick(so,this),Pr},Ct.prototype.off=Ct.prototype.removeListener,Ct.prototype.removeAllListeners=function(Ne){const Xe=j.prototype.removeAllListeners.apply(this,arguments);return(Ne==="readable"||Ne===void 0)&&r.nextTick(so,this),Xe};function so(Ne){const Xe=Ne._readableState;Xe.readableListening=Ne.listenerCount("readable")>0,Xe.resumeScheduled&&Xe[ft]===!1?Xe.flowing=!0:Ne.listenerCount("data")>0?Ne.resume():Xe.readableListening||(Xe.flowing=null)}function rl(Ne){X("readable nexttick read 0"),Ne.read(0)}Ct.prototype.resume=function(){const Ne=this._readableState;return Ne.flowing||(X("resume"),Ne.flowing=!Ne.readableListening,Ro(this,Ne)),Ne[ft]=!1,this};function Ro(Ne,Xe){Xe.resumeScheduled||(Xe.resumeScheduled=!0,r.nextTick(Ao,Ne,Xe))}function Ao(Ne,Xe){X("resume",Xe.reading),Xe.reading||Ne.read(0),Xe.resumeScheduled=!1,Ne.emit("resume"),zs(Ne),Xe.flowing&&!Xe.reading&&Ne.read(0)}Ct.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ft]=!0,this};function zs(Ne){const Xe=Ne._readableState;for(X("flow",Xe.flowing);Xe.flowing&&Ne.read()!==null;);}Ct.prototype.wrap=function(Ne){let Xe=!1;Ne.on("data",Cr=>{!this.push(Cr)&&Ne.pause&&(Xe=!0,Ne.pause())}),Ne.on("end",()=>{this.push(null)}),Ne.on("error",Cr=>{kn(this,Cr)}),Ne.on("close",()=>{this.destroy()}),Ne.on("destroy",()=>{this.destroy()}),this._read=()=>{Xe&&Ne.resume&&(Xe=!1,Ne.resume())};const Pr=w(Ne);for(let Cr=1;Cr{Gr=Rd?bt(Gr,Rd):null,Pr(),Pr=un});try{for(;;){const Rd=Ne.destroyed?null:Ne.read();if(Rd!==null)yield Rd;else{if(Gr)throw Gr;if(Gr===null)return;await new S(Cr)}}}catch(Rd){throw Gr=bt(Gr,Rd),Gr}finally{(Gr||(Xe==null?void 0:Xe.destroyOnReturn)!==!1)&&(Gr===void 0||Ne._readableState.autoDestroy)?je.destroyer(Ne,null):(Ne.off("readable",Cr),lu())}}g(Ct.prototype,{readable:{__proto__:null,get(){const Ne=this._readableState;return!!Ne&&Ne.readable!==!1&&!Ne.destroyed&&!Ne.errorEmitted&&!Ne.endEmitted},set(Ne){this._readableState&&(this._readableState.readable=!!Ne)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ne){this._readableState&&(this._readableState.flowing=Ne)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Ne){this._readableState&&(this._readableState.destroyed=Ne)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),g(tn.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ft]!==!1},set(Ne){this[ft]=!!Ne}}}),Ct._fromList=L3;function L3(Ne,Xe){if(Xe.length===0)return null;let Pr;return Xe.objectMode?Pr=Xe.buffer.shift():!Ne||Ne>=Xe.length?(Xe.decoder?Pr=Xe.buffer.join(""):Xe.buffer.length===1?Pr=Xe.buffer.first():Pr=Xe.buffer.concat(Xe.length),Xe.buffer.clear()):Pr=Xe.buffer.consume(Ne,Xe.decoder),Pr}function _d(Ne){const Xe=Ne._readableState;X("endReadable",Xe.endEmitted),Xe.endEmitted||(Xe.ended=!0,r.nextTick(YC,Xe,Ne))}function YC(Ne,Xe){if(X("endReadableNT",Ne.endEmitted,Ne.length),!Ne.errored&&!Ne.closeEmitted&&!Ne.endEmitted&&Ne.length===0){if(Ne.endEmitted=!0,Xe.emit("end"),Xe.writable&&Xe.allowHalfOpen===!1)r.nextTick(sT,Xe);else if(Ne.autoDestroy){const Pr=Xe._writableState;(!Pr||Pr.autoDestroy&&(Pr.finished||Pr.writable===!1))&&Xe.destroy()}}}function sT(Ne){Ne.writable&&!Ne.writableEnded&&!Ne.destroyed&&Ne.end()}Ct.from=function(Ne,Xe){return Jt(Ct,Ne,Xe)};let $1;function JC(){return $1===void 0&&($1={}),$1}return Ct.fromWeb=function(Ne,Xe){return JC().newStreamReadableFromReadableStream(Ne,Xe)},Ct.toWeb=function(Ne,Xe){return JC().newReadableStreamFromStreamReadable(Ne,Xe)},Ct.wrap=function(Ne,Xe){var Pr,Cr;return new Ct({objectMode:(Pr=(Cr=Ne.readableObjectMode)!==null&&Cr!==void 0?Cr:Ne.objectMode)!==null&&Pr!==void 0?Pr:!0,...Xe,destroy(Gr,lu){je.destroyer(Ne,Gr),lu(Gr)}}).wrap(Ne)},nCe}var rCe,H5t;function k9e(){if(H5t)return rCe;H5t=1;const r=GC,{ArrayPrototypeSlice:o,Error:l,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:p,ObjectDefineProperties:g,ObjectSetPrototypeOf:w,StringPrototypeToLowerCase:y,Symbol:S,SymbolHasInstance:E}=qa;rCe=yt,yt.WritableState=U;const{EventEmitter:I}=F_,M=v9e.Stream,{Buffer:_}=dm,R=H_,{addAbortSignal:j}=lie,{getHighWaterMark:K,getDefaultHighWaterMark:q}=cie,{ERR_INVALID_ARG_TYPE:Q,ERR_METHOD_NOT_IMPLEMENTED:Z,ERR_MULTIPLE_CALLBACK:X,ERR_STREAM_CANNOT_PIPE:ie,ERR_STREAM_DESTROYED:je,ERR_STREAM_ALREADY_FINISHED:et,ERR_STREAM_NULL_VALUES:mt,ERR_STREAM_WRITE_AFTER_END:bt,ERR_UNKNOWN_ENCODING:ce}=Yg.codes,{errorOrDestroy:Be}=R;w(yt.prototype,M.prototype),w(yt,M);function ae(){}const xe=S("kOnFinished");function U(ee,V,oe){typeof oe!="boolean"&&(oe=V instanceof X6()),this.objectMode=!!(ee&&ee.objectMode),oe&&(this.objectMode=this.objectMode||!!(ee&&ee.writableObjectMode)),this.highWaterMark=ee?K(this,ee,"writableHighWaterMark",oe):q(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ue=!!(ee&&ee.decodeStrings===!1);this.decodeStrings=!ue,this.defaultEncoding=ee&&ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=kn.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,He(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!ee||ee.emitClose!==!1,this.autoDestroy=!ee||ee.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[xe]=[]}function He(ee){ee.buffered=[],ee.bufferedIndex=0,ee.allBuffers=!0,ee.allNoop=!0}U.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},p(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function yt(ee){const V=this instanceof X6();if(!V&&!a(yt,this))return new yt(ee);this._writableState=new U(ee,this,V),ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final),typeof ee.construct=="function"&&(this._construct=ee.construct),ee.signal&&j(ee.signal,this)),M.call(this,ee),R.construct(this,()=>{const oe=this._writableState;oe.writing||an(this,oe),Xt(this,oe)})}p(yt,E,{__proto__:null,value:function(ee){return a(this,ee)?!0:this!==yt?!1:ee&&ee._writableState instanceof U}}),yt.prototype.pipe=function(){Be(this,new ie)};function ft(ee,V,oe,ue){const ge=ee._writableState;if(typeof oe=="function")ue=oe,oe=ge.defaultEncoding;else{if(!oe)oe=ge.defaultEncoding;else if(oe!=="buffer"&&!_.isEncoding(oe))throw new ce(oe);typeof ue!="function"&&(ue=ae)}if(V===null)throw new mt;if(!ge.objectMode)if(typeof V=="string")ge.decodeStrings!==!1&&(V=_.from(V,oe),oe="buffer");else if(V instanceof _)oe="buffer";else if(M._isUint8Array(V))V=M._uint8ArrayToBuffer(V),oe="buffer";else throw new Q("chunk",["string","Buffer","Uint8Array"],V);let Ge;return ge.ending?Ge=new bt:ge.destroyed&&(Ge=new je("write")),Ge?(r.nextTick(ue,Ge),Be(ee,Ge,!0),Ge):(ge.pendingcb++,At(ee,ge,V,oe,ue))}yt.prototype.write=function(ee,V,oe){return ft(this,ee,V,oe)===!0},yt.prototype.cork=function(){this._writableState.corked++},yt.prototype.uncork=function(){const ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||an(this,ee))},yt.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=y(V)),!_.isEncoding(V))throw new ce(V);return this._writableState.defaultEncoding=V,this};function At(ee,V,oe,ue,ge){const Ge=V.objectMode?1:oe.length;V.length+=Ge;const $t=V.lengthoe.bufferedIndex&&an(ee,oe),ue?oe.afterWriteTickInfo!==null&&oe.afterWriteTickInfo.cb===ge?oe.afterWriteTickInfo.count++:(oe.afterWriteTickInfo={count:1,cb:ge,stream:ee,state:oe},r.nextTick(qt,oe.afterWriteTickInfo)):on(ee,oe,1,ge))}function qt({stream:ee,state:V,count:oe,cb:ue}){return V.afterWriteTickInfo=null,on(ee,V,oe,ue)}function on(ee,V,oe,ue){for(!V.ending&&!ee.destroyed&&V.length===0&&V.needDrain&&(V.needDrain=!1,ee.emit("drain"));oe-- >0;)V.pendingcb--,ue();V.destroyed&&Rt(V),Xt(ee,V)}function Rt(ee){if(ee.writing)return;for(let ge=ee.bufferedIndex;ge1&&ee._writev){V.pendingcb-=Ge-1;const Lt=V.allNoop?ae:Ct=>{for(let Kn=$t;Kn256?(oe.splice(0,$t),V.bufferedIndex=0):V.bufferedIndex=$t}V.bufferProcessing=!1}yt.prototype._write=function(ee,V,oe){if(this._writev)this._writev([{chunk:ee,encoding:V}],oe);else throw new Z("_write()")},yt.prototype._writev=null,yt.prototype.end=function(ee,V,oe){const ue=this._writableState;typeof ee=="function"?(oe=ee,ee=null,V=null):typeof V=="function"&&(oe=V,V=null);let ge;if(ee!=null){const Ge=ft(this,ee,V);Ge instanceof l&&(ge=Ge)}return ue.corked&&(ue.corked=1,this.uncork()),ge||(!ue.errored&&!ue.ending?(ue.ending=!0,Xt(this,ue,!0),ue.ended=!0):ue.finished?ge=new et("end"):ue.destroyed&&(ge=new je("end"))),typeof oe=="function"&&(ge||ue.finished?r.nextTick(oe,ge):ue[xe].push(oe)),this};function Zn(ee){return ee.ending&&!ee.destroyed&&ee.constructed&&ee.length===0&&!ee.errored&&ee.buffered.length===0&&!ee.finished&&!ee.writing&&!ee.errorEmitted&&!ee.closeEmitted}function kt(ee,V){let oe=!1;function ue(ge){if(oe){Be(ee,ge??X());return}if(oe=!0,V.pendingcb--,ge){const Ge=V[xe].splice(0);for(let $t=0;$t{Zn(ge)?Mn(ue,ge):ge.pendingcb--},ee,V)):Zn(V)&&(V.pendingcb++,Mn(ee,V))))}function Mn(ee,V){V.pendingcb--,V.finished=!0;const oe=V[xe].splice(0);for(let ue=0;ue{if(Rt!=null)throw new j("nully","body",Rt)},Rt=>{K(qt,Rt)});return qt=new ce({objectMode:!0,readable:!1,write:At,final(Rt){Jt(async()=>{try{await on,r.nextTick(Rt,null)}catch(an){r.nextTick(Rt,an)}})},destroy:un})}throw new j("Iterable, AsyncIterable or AsyncFunction",He,ft)}if(et(U))return xe(U.arrayBuffer());if(p(U))return ie(ce,U,{objectMode:!0,writable:!1});if(E(U==null?void 0:U.readable)&&I(U==null?void 0:U.writable))return ce.fromWeb(U);if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const ft=U!=null&&U.readable?w(U==null?void 0:U.readable)?U==null?void 0:U.readable:xe(U.readable):void 0,At=U!=null&&U.writable?y(U==null?void 0:U.writable)?U==null?void 0:U.writable:xe(U.writable):void 0;return ae({readable:ft,writable:At})}const yt=U==null?void 0:U.then;if(typeof yt=="function"){let ft;return bt(yt,U,At=>{At!=null&&ft.push(At),ft.push(null)},At=>{K(ft,At)}),ft=new ce({objectMode:!0,writable:!1,read(){}})}throw new R(He,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function Be(xe){let{promise:U,resolve:He}=X();const yt=new mt,ft=yt.signal;return{value:xe(async function*(){for(;;){const Jt=U;U=null;const{chunk:un,done:kn,cb:qt}=await Jt;if(r.nextTick(qt),kn)return;if(ft.aborted)throw new _(void 0,{cause:ft.reason});({promise:U,resolve:He}=X()),yield un}}(),{signal:ft}),write(Jt,un,kn){const qt=He;He=null,qt({chunk:Jt,done:!1,cb:kn})},final(Jt){const un=He;He=null,un({done:!0,cb:Jt})},destroy(Jt,un){yt.abort(),un(Jt)}}}function ae(xe){const U=xe.readable&&typeof xe.readable.read!="function"?Q.wrap(xe.readable):xe.readable,He=xe.writable;let yt=!!l(U),ft=!!a(He),At,Jt,un,kn,qt;function on(Rt){const an=kn;kn=null,an?an(Rt):Rt&&qt.destroy(Rt)}return qt=new ce({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(He!=null&&He.writableObjectMode),readable:yt,writable:ft}),ft&&(M(He,Rt=>{ft=!1,Rt&&K(U,Rt),on(Rt)}),qt._write=function(Rt,an,Zn){He.write(Rt,an)?Zn():At=Zn},qt._final=function(Rt){He.end(),Jt=Rt},He.on("drain",function(){if(At){const Rt=At;At=null,Rt()}}),He.on("finish",function(){if(Jt){const Rt=Jt;Jt=null,Rt()}})),yt&&(M(U,Rt=>{yt=!1,Rt&&K(U,Rt),on(Rt)}),U.on("readable",function(){if(un){const Rt=un;un=null,Rt()}}),U.on("end",function(){qt.push(null)}),qt._read=function(){for(;;){const Rt=U.read();if(Rt===null){un=qt._read;return}if(!qt.push(Rt))return}}),qt._destroy=function(Rt,an){!Rt&&kn!==null&&(Rt=new _),un=null,At=null,Jt=null,kn===null?an(Rt):(kn=an,K(He,Rt),K(U,Rt))},qt}return iCe}var oCe,U5t;function X6(){if(U5t)return oCe;U5t=1;const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:l,ObjectSetPrototypeOf:a}=qa;oCe=w;const p=uie(),g=k9e();a(w.prototype,p.prototype),a(w,p);{const I=l(g.prototype);for(let M=0;M{if(o){r?r(o):this.destroy(o);return}l!=null&&this.push(l),this.push(null),r&&r()}):(this.push(null),r&&r())}function byn(){this._final!==A7e&&A7e.call(this)}Y6.prototype._final=A7e;Y6.prototype._transform=function(r,o,l){throw new pyn("_transform()")};Y6.prototype._write=function(r,o,l){const a=this._readableState,p=this._writableState,g=a.length;this._transform(r,o,(w,y)=>{if(w){l(w);return}y!=null&&this.push(y),p.ended||g===a.length||a.length{a=!0});const p=ore(r,{readable:o,writable:l},g=>{a=!g});return{destroy:g=>{a||(a=!0,Cyn.destroyer(r,g||new Eyn("pipe")))},cleanup:p}}function Ayn(r){return Pyn(r[r.length-1],"streams[stream.length - 1]"),r.pop()}function dCe(r){if(dE(r))return r;if(Tne(r))return Lyn(r);throw new L7e("val",["Readable","Iterable","AsyncIterable"],r)}async function*Lyn(r){aCe||(aCe=uie()),yield*aCe.prototype[vyn].call(r)}async function Vte(r,o,l,{end:a}){let p,g=null;const w=E=>{if(E&&(p=E),g){const I=g;g=null,I()}},y=()=>new myn((E,I)=>{p?I(p):g=()=>{p?I(p):E()}});o.on("drain",w);const S=ore(o,{readable:!1},w);try{o.writableNeedDrain&&await y();for await(const E of r)o.write(E)||await y();a&&(o.end(),await y()),l()}catch(E){l(p!==E?Syn(p,E):E)}finally{S(),o.off("drain",w)}}async function hCe(r,o,l,{end:a}){UO(o)&&(o=o.writable);const p=o.getWriter();try{for await(const g of r)await p.ready,p.write(g).catch(()=>{});await p.ready,a&&await p.close(),l()}catch(g){try{await p.abort(g),l(g)}catch(w){l(w)}}}function $yn(...r){return Nxt(r,kyn(Ayn(r)))}function Nxt(r,o,l){if(r.length===1&&wyn(r[0])&&(r=r[0]),r.length<2)throw new xyn("streams");const a=new Ryn,p=a.signal,g=l==null?void 0:l.signal,w=[];Myn(g,"options.signal");function y(){j(new Iyn)}fCe=fCe||Np.addAbortListener;let S;g&&(S=fCe(g,y));let E,I;const M=[];let _=0;function R(Z){j(Z,--_===0)}function j(Z,X){var ie;if(Z&&(!E||E.code==="ERR_STREAM_PREMATURE_CLOSE")&&(E=Z),!(!E&&!X)){for(;M.length;)M.shift()(E);(ie=S)===null||ie===void 0||ie[yyn](),a.abort(),X&&(E||w.forEach(je=>je()),yF.nextTick(o,E,I))}}let K;for(let Z=0;Z0,et=ie||(l==null?void 0:l.end)!==!1,mt=Z===r.length-1;if(W5t(X)){let bt=function(ce){ce&&ce.name!=="AbortError"&&ce.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(ce)};if(et){const{destroy:ce,cleanup:Be}=V5t(X,ie,je);M.push(ce),lCe(X)&&mt&&w.push(Be)}X.on("error",bt),lCe(X)&&mt&&w.push(()=>{X.removeListener("error",bt)})}if(Z===0)if(typeof X=="function"){if(K=X({signal:p}),!dE(K))throw new sCe("Iterable, AsyncIterable or Stream","source",K)}else dE(X)||Tne(X)||UO(X)?K=X:K=G5t.from(X);else if(typeof X=="function"){if(UO(K)){var q;K=dCe((q=K)===null||q===void 0?void 0:q.readable)}else K=dCe(K);if(K=X(K,{signal:p}),ie){if(!dE(K,!0))throw new sCe("AsyncIterable",`transform[${Z-1}]`,K)}else{var Q;uCe||(uCe=Dxt);const bt=new uCe({objectMode:!0}),ce=(Q=K)===null||Q===void 0?void 0:Q.then;if(typeof ce=="function")_++,ce.call(K,xe=>{I=xe,xe!=null&&bt.write(xe),et&&bt.end(),yF.nextTick(R)},xe=>{bt.destroy(xe),yF.nextTick(R,xe)});else if(dE(K,!0))_++,Vte(K,bt,R,{end:et});else if(cCe(K)||UO(K)){const xe=K.readable||K;_++,Vte(xe,bt,R,{end:et})}else throw new sCe("AsyncIterable or Promise","destination",K);K=bt;const{destroy:Be,cleanup:ae}=V5t(K,!1,!0);M.push(Be),mt&&w.push(ae)}}else if(W5t(X)){if(Tne(K)){_+=2;const bt=jyn(K,X,R,{end:et});lCe(X)&&mt&&w.push(bt)}else if(UO(K)||cCe(K)){const bt=K.readable||K;_++,Vte(bt,X,R,{end:et})}else if(dE(K))_++,Vte(K,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else if(Oyn(X)){if(Tne(K))_++,hCe(dCe(K),X,R,{end:et});else if(cCe(K)||dE(K))_++,hCe(K,X,R,{end:et});else if(UO(K))_++,hCe(K.readable,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else K=G5t.from(X)}return(p!=null&&p.aborted||g!=null&&g.aborted)&&yF.nextTick(y),K}function jyn(r,o,l,{end:a}){let p=!1;if(o.on("close",()=>{p||l(new Tyn)}),r.pipe(o,{end:!1}),a){let g=function(){p=!0,o.end()};_yn(r)?yF.nextTick(g):r.once("end",g)}else l();return ore(r,{readable:!0,writable:!1},g=>{const w=r._readableState;g&&g.code==="ERR_STREAM_PREMATURE_CLOSE"&&w&&w.ended&&!w.errored&&!w.errorEmitted?r.once("end",l).once("error",l):l(g)}),ore(o,{readable:!1,writable:!0},l)}var x9e={pipelineImpl:Nxt,pipeline:$yn};const{pipeline:Dyn}=x9e,qte=X6(),{destroyer:Nyn}=H_,{isNodeStream:Xte,isReadable:q5t,isWritable:X5t,isWebStream:pCe,isTransformStream:iE,isWritableStream:Y5t,isReadableStream:J5t}=sk,{AbortError:Byn,codes:{ERR_INVALID_ARG_VALUE:Q5t,ERR_MISSING_ARGS:Fyn}}=Yg,zyn=WC;var Bxt=function(...o){if(o.length===0)throw new Fyn("streams");if(o.length===1)return qte.from(o[0]);const l=[...o];if(typeof o[0]=="function"&&(o[0]=qte.from(o[0])),typeof o[o.length-1]=="function"){const R=o.length-1;o[R]=qte.from(o[R])}for(let R=0;R0&&!(X5t(o[R])||Y5t(o[R])||iE(o[R])))throw new Q5t(`streams[${R}]`,l[R],"must be writable")}let a,p,g,w,y;function S(R){const j=w;w=null,j?j(R):R?y.destroy(R):!_&&!M&&y.destroy()}const E=o[0],I=Dyn(o,S),M=!!(X5t(E)||Y5t(E)||iE(E)),_=!!(q5t(I)||J5t(I)||iE(I));if(y=new qte({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!(I!=null&&I.readableObjectMode),writable:M,readable:_}),M){if(Xte(E))y._write=function(j,K,q){E.write(j,K)?q():a=q},y._final=function(j){E.end(),p=j},E.on("drain",function(){if(a){const j=a;a=null,j()}});else if(pCe(E)){const K=(iE(E)?E.writable:E).getWriter();y._write=async function(q,Q,Z){try{await K.ready,K.write(q).catch(()=>{}),Z()}catch(X){Z(X)}},y._final=async function(q){try{await K.ready,K.close().catch(()=>{}),p=q}catch(Q){q(Q)}}}const R=iE(I)?I.readable:I;zyn(R,()=>{if(p){const j=p;p=null,j()}})}if(_){if(Xte(I))I.on("readable",function(){if(g){const R=g;g=null,R()}}),I.on("end",function(){y.push(null)}),y._read=function(){for(;;){const R=I.read();if(R===null){g=y._read;return}if(!y.push(R))return}};else if(pCe(I)){const j=(iE(I)?I.readable:I).getReader();y._read=async function(){for(;;)try{const{value:K,done:q}=await j.read();if(!y.push(K))return;if(q){y.push(null);return}}catch{return}}}}return y._destroy=function(R,j){!R&&w!==null&&(R=new Byn),g=null,a=null,p=null,w===null?j(R):(w=j,Xte(I)&&Nyn(I,R))},y};const Hyn=globalThis.AbortController||xz().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Kyn,ERR_INVALID_ARG_TYPE:EH,ERR_MISSING_ARGS:Uyn,ERR_OUT_OF_RANGE:Gyn},AbortError:x3}=Yg,{validateAbortSignal:XE,validateInteger:Z5t,validateObject:YE}=SH,Wyn=qa.Symbol("kWeak"),Vyn=qa.Symbol("kResistStopPropagation"),{finished:qyn}=WC,Xyn=Bxt,{addAbortSignalNoValidate:Yyn}=lie,{isWritable:Jyn,isNodeStream:Qyn}=sk,{deprecate:Zyn}=Np,{ArrayPrototypePush:e2n,Boolean:t2n,MathFloor:e8t,Number:n2n,NumberIsNaN:r2n,Promise:t8t,PromiseReject:n8t,PromiseResolve:i2n,PromisePrototypeThen:r8t,Symbol:Fxt}=qa,sre=Fxt("kEmpty"),i8t=Fxt("kEof");function o2n(r,o){if(o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),Qyn(r)&&!Jyn(r))throw new Kyn("stream",r,"must be writable");const l=Xyn(this,r);return o!=null&&o.signal&&Yyn(o.signal,l),l}function aie(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal");let l=1;(o==null?void 0:o.concurrency)!=null&&(l=e8t(o.concurrency));let a=l-1;return(o==null?void 0:o.highWaterMark)!=null&&(a=e8t(o.highWaterMark)),Z5t(l,"options.concurrency",1),Z5t(a,"options.highWaterMark",0),a+=l,(async function*(){const g=Np.AbortSignalAny([o==null?void 0:o.signal].filter(t2n)),w=this,y=[],S={signal:g};let E,I,M=!1,_=0;function R(){M=!0,j()}function j(){_-=1,K()}function K(){I&&!M&&_=a||_>=l)&&await new t8t(Z=>{I=Z})}y.push(i8t)}catch(Q){const Z=n8t(Q);r8t(Z,j,R),y.push(Z)}finally{M=!0,E&&(E(),E=null)}}q();try{for(;;){for(;y.length>0;){const Q=await y[0];if(Q===i8t)return;if(g.aborted)throw new x3;Q!==sre&&(yield Q),y.shift(),K()}await new t8t(Q=>{E=Q})}}finally{M=!0,I&&(I(),I=null)}}).call(this)}function s2n(r=void 0){return r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal"),(async function*(){let l=0;for await(const p of this){var a;if(r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted)throw new x3({cause:r.signal.reason});yield[l++,p]}}).call(this)}async function zxt(r,o=void 0){for await(const l of E9e.call(this,r,o))return!0;return!1}async function l2n(r,o=void 0){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);return!await zxt.call(this,async(...l)=>!await r(...l),o)}async function c2n(r,o){for await(const l of E9e.call(this,r,o))return l}async function u2n(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p),sre}for await(const a of aie.call(this,l,o));}function E9e(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p)?a:sre}return aie.call(this,l,o)}class a2n extends Uyn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function f2n(r,o,l){var a;if(typeof r!="function")throw new EH("reducer",["Function","AsyncFunction"],r);l!=null&&YE(l,"options"),(l==null?void 0:l.signal)!=null&&XE(l.signal,"options.signal");let p=arguments.length>1;if(l!=null&&(a=l.signal)!==null&&a!==void 0&&a.aborted){const E=new x3(void 0,{cause:l.signal.reason});throw this.once("error",()=>{}),await qyn(this.destroy(E)),E}const g=new Hyn,w=g.signal;if(l!=null&&l.signal){const E={once:!0,[Wyn]:this,[Vyn]:!0};l.signal.addEventListener("abort",()=>g.abort(),E)}let y=!1;try{for await(const E of this){var S;if(y=!0,l!=null&&(S=l.signal)!==null&&S!==void 0&&S.aborted)throw new x3;p?o=await r(o,E,{signal:w}):(o=E,p=!0)}if(!y&&!p)throw new a2n}finally{g.abort()}return o}async function d2n(r){r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal");const o=[];for await(const a of this){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new x3(void 0,{cause:r.signal.reason});e2n(o,a)}return o}function h2n(r,o){const l=aie.call(this,r,o);return(async function*(){for await(const p of l)yield*p}).call(this)}function Hxt(r){if(r=n2n(r),r2n(r))return 0;if(r<0)throw new Gyn("number",">= 0",r);return r}function p2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;r--<=0&&(yield g)}}).call(this)}function g2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;if(r-- >0&&(yield g),r<=0)return}}).call(this)}p9e.streamReturningOperators={asIndexedPairs:Zyn(s2n,"readable.asIndexedPairs will be removed in a future version."),drop:p2n,filter:E9e,flatMap:h2n,map:aie,take:g2n,compose:o2n};p9e.promiseReturningOperators={every:l2n,forEach:u2n,reduce:f2n,toArray:d2n,some:zxt,find:c2n};var gCe,o8t;function Kxt(){if(o8t)return gCe;o8t=1;const{ArrayPrototypePop:r,Promise:o}=qa,{isIterable:l,isNodeStream:a,isWebStream:p}=sk,{pipelineImpl:g}=x9e,{finished:w}=WC;Uxt();function y(...S){return new o((E,I)=>{let M,_;const R=S[S.length-1];if(R&&typeof R=="object"&&!a(R)&&!l(R)&&!p(R)){const j=r(S);M=j.signal,_=j.end}g(S,(j,K)=>{j?I(j):E(K)},{signal:M,end:_})})}return gCe={finished:w,pipeline:y},gCe}var s8t;function Uxt(){if(s8t)return Y8e.exports;s8t=1;const{Buffer:r}=dm,{ObjectDefineProperty:o,ObjectKeys:l,ReflectApply:a}=qa,{promisify:{custom:p}}=Np,{streamReturningOperators:g,promiseReturningOperators:w}=p9e,{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=Yg,S=Bxt,{setDefaultHighWaterMark:E,getDefaultHighWaterMark:I}=cie,{pipeline:M}=x9e,{destroyer:_}=H_,R=WC,j=Kxt(),K=sk,q=Y8e.exports=v9e.Stream;q.isDestroyed=K.isDestroyed,q.isDisturbed=K.isDisturbed,q.isErrored=K.isErrored,q.isReadable=K.isReadable,q.isWritable=K.isWritable,q.Readable=uie();for(const Z of l(g)){let ie=function(...je){if(new.target)throw y();return q.Readable.from(a(X,this,je))};const X=g[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}for(const Z of l(w)){let ie=function(...je){if(new.target)throw y();return a(X,this,je)};const X=w[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}q.Writable=k9e(),q.Duplex=X6(),q.Transform=$xt,q.PassThrough=Dxt,q.pipeline=M;const{addAbortSignal:Q}=lie;return q.addAbortSignal=Q,q.finished=R,q.destroy=_,q.compose=S,q.setDefaultHighWaterMark=E,q.getDefaultHighWaterMark=I,o(q,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),o(M,p,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),o(R,p,{__proto__:null,enumerable:!0,get(){return j.finished}}),q.Stream=q,q._isUint8Array=function(X){return X instanceof Uint8Array},q._uint8ArrayToBuffer=function(X){return r.from(X.buffer,X.byteOffset,X.byteLength)},Y8e.exports}(function(r){const o=Uxt(),l=Kxt(),a=o.Readable.destroy;r.exports=o.Readable,r.exports._uint8ArrayToBuffer=o._uint8ArrayToBuffer,r.exports._isUint8Array=o._isUint8Array,r.exports.isDisturbed=o.isDisturbed,r.exports.isErrored=o.isErrored,r.exports.isReadable=o.isReadable,r.exports.Readable=o.Readable,r.exports.Writable=o.Writable,r.exports.Duplex=o.Duplex,r.exports.Transform=o.Transform,r.exports.PassThrough=o.PassThrough,r.exports.addAbortSignal=o.addAbortSignal,r.exports.finished=o.finished,r.exports.destroy=o.destroy,r.exports.destroy=a,r.exports.pipeline=o.pipeline,r.exports.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get(){return l}}),r.exports.Stream=o.Stream,r.exports.default=r.exports})(z9t);var b2n=z9t.exports;class w2n{constructor(o,...l){this.load=F9t(async()=>{const a=await o();return new a(...l)})}import(o,l){const a=new b2n.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const g=(await this.load()).import(o,l);g.on("prefix",(w,y)=>{a.emit("prefix",w,y)}),g.on("error",w=>{a.emit("error",w),a.emit("end")}),g.pipe(a)}),a}}function pm(r){return class extends w2n{constructor(...o){super(r,...o)}}}const m2n=new tre,v2n=new tre,wb={parsers:m2n,serializers:v2n},y2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-RV_eTkg7.js");return{default:r}},__vite__mapDeps([0,1,2,3,4]))).default),TH=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-BQuzNdW2.js");return{default:r}},__vite__mapDeps([5,1,2,6]))).default),k2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomRdfXmlParser-j_ZzoDnu.js");return{default:r}},__vite__mapDeps([7,3]))).default),fie=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-C7nnL0Je.js");return{default:r}},__vite__mapDeps([8,1,2]))).default),C2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomJsonLdSerializer-B2oQjduZ.js");return{default:r}},__vite__mapDeps([9,1]))).default);wb.parsers.set("application/ld+json",new y2n);wb.parsers.set("application/trig",new TH);wb.parsers.set("application/n-quads",new TH);wb.parsers.set("application/n-triples",new TH);wb.parsers.set("text/n3",new TH);wb.parsers.set("text/turtle",new TH);wb.parsers.set("application/rdf+xml",new k2n);wb.serializers.set("application/ld+json",new C2n);wb.serializers.set("application/n-quads",new fie);wb.serializers.set("application/n-triples",new fie);wb.serializers.set("text/n3",new fie);wb.serializers.set("text/turtle",new fie);var $7e={exports:{}},Gxt=F_.EventEmitter;const S2n={},x2n=Object.freeze(Object.defineProperty({__proto__:null,default:S2n},Symbol.toStringTag,{value:"Module"})),die=Rwn(x2n);var bCe,l8t;function E2n(){if(l8t)return bCe;l8t=1;function r(j,K){var q=Object.keys(j);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(j);K&&(Q=Q.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),q.push.apply(q,Q)}return q}function o(j){for(var K=1;K0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(q){var Q={data:q,next:this.head};this.length===0&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var Q=this.head,Z=""+Q.data;Q=Q.next;)Z+=q+Q.data;return Z}},{key:"concat",value:function(q){if(this.length===0)return E.alloc(0);for(var Q=E.allocUnsafe(q>>>0),Z=this.head,X=0;Z;)R(Z.data,Q,X),X+=Z.data.length,Z=Z.next;return Q}},{key:"consume",value:function(q,Q){var Z;return qie.length?ie.length:q;if(je===ie.length?X+=ie:X+=ie.slice(0,q),q-=je,q===0){je===ie.length?(++Z,Q.next?this.head=Q.next:this.head=this.tail=null):(this.head=Q,Q.data=ie.slice(je));break}++Z}return this.length-=Z,X}},{key:"_getBuffer",value:function(q){var Q=E.allocUnsafe(q),Z=this.head,X=1;for(Z.data.copy(Q),q-=Z.data.length;Z=Z.next;){var ie=Z.data,je=q>ie.length?ie.length:q;if(ie.copy(Q,Q.length-q,0,je),q-=je,q===0){je===ie.length?(++X,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=ie.slice(je));break}++X}return this.length-=X,Q}},{key:_,value:function(q,Q){return M(this,o(o({},Q),{},{depth:0,customInspect:!1}))}}]),j}(),bCe}function T2n(r,o){var l=this,a=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return a||p?(o?o(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Uc.nextTick(j7e,this,r)):Uc.nextTick(j7e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(g){!o&&g?l._writableState?l._writableState.errorEmitted?Uc.nextTick(Ine,l):(l._writableState.errorEmitted=!0,Uc.nextTick(c8t,l,g)):Uc.nextTick(c8t,l,g):o?(Uc.nextTick(Ine,l),o(g)):Uc.nextTick(Ine,l)}),this)}function c8t(r,o){j7e(r,o),Ine(r)}function Ine(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function I2n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function j7e(r,o){r.emit("error",o)}function P2n(r,o){var l=r._readableState,a=r._writableState;l&&l.autoDestroy||a&&a.autoDestroy?r.destroy(o):r.emit("error",o)}var Wxt={destroy:T2n,undestroy:I2n,errorOrDestroy:P2n},JE={};function M2n(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o}var Vxt={};function gm(r,o,l){l||(l=Error);function a(g,w,y){return typeof o=="string"?o:o(g,w,y)}var p=function(g){M2n(w,g);function w(y,S,E){return g.call(this,a(y,S,E))||this}return w}(l);p.prototype.name=l.name,p.prototype.code=r,Vxt[r]=p}function u8t(r,o){if(Array.isArray(r)){var l=r.length;return r=r.map(function(a){return String(a)}),l>2?"one of ".concat(o," ").concat(r.slice(0,l-1).join(", "),", or ")+r[l-1]:l===2?"one of ".concat(o," ").concat(r[0]," or ").concat(r[1]):"of ".concat(o," ").concat(r[0])}else return"of ".concat(o," ").concat(String(r))}function O2n(r,o,l){return r.substr(0,o.length)===o}function _2n(r,o,l){return(l===void 0||l>r.length)&&(l=r.length),r.substring(l-o.length,l)===o}function R2n(r,o,l){return typeof l!="number"&&(l=0),l+o.length>r.length?!1:r.indexOf(o,l)!==-1}gm("ERR_INVALID_OPT_VALUE",function(r,o){return'The value "'+o+'" is invalid for option "'+r+'"'},TypeError);gm("ERR_INVALID_ARG_TYPE",function(r,o,l){var a;typeof o=="string"&&O2n(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var p;if(_2n(r," argument"))p="The ".concat(r," ").concat(a," ").concat(u8t(o,"type"));else{var g=R2n(r,".")?"property":"argument";p='The "'.concat(r,'" ').concat(g," ").concat(a," ").concat(u8t(o,"type"))}return p+=". Received type ".concat(typeof l),p},TypeError);gm("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");gm("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});gm("ERR_STREAM_PREMATURE_CLOSE","Premature close");gm("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});gm("ERR_MULTIPLE_CALLBACK","Callback called multiple times");gm("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");gm("ERR_STREAM_WRITE_AFTER_END","write after end");gm("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);gm("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);gm("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");JE.codes=Vxt;var A2n=JE.codes.ERR_INVALID_OPT_VALUE;function L2n(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function $2n(r,o,l,a){var p=L2n(o,a,l);if(p!=null){if(!(isFinite(p)&&Math.floor(p)===p)||p<0){var g=a?l:"highWaterMark";throw new A2n(g,p)}return Math.floor(p)}return r.objectMode?16:16*1024}var qxt={getHighWaterMark:$2n},D7e={exports:{}};typeof Object.create=="function"?D7e.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:D7e.exports=function(o,l){if(l){o.super_=l;var a=function(){};a.prototype=l.prototype,o.prototype=new a,o.prototype.constructor=o}};var IH=D7e.exports,j2n=D2n;function D2n(r,o){if(wCe("noDeprecation"))return r;var l=!1;function a(){if(!l){if(wCe("throwDeprecation"))throw new Error(o);wCe("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return r.apply(this,arguments)}return a}function wCe(r){try{if(!window.localStorage)return!1}catch{return!1}var o=window.localStorage[r];return o==null?!1:String(o).toLowerCase()==="true"}var mCe,a8t;function Xxt(){if(a8t)return mCe;a8t=1,mCe=bt;function r(kt){var Ze=this;this.next=null,this.entry=null,this.finish=function(){Zn(Ze,kt)}}var o;bt.WritableState=et;var l={deprecate:j2n},a=Gxt,p=dm.Buffer,g=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function w(kt){return p.from(kt)}function y(kt){return p.isBuffer(kt)||kt instanceof g}var S=Wxt,E=qxt,I=E.getHighWaterMark,M=JE.codes,_=M.ERR_INVALID_ARG_TYPE,R=M.ERR_METHOD_NOT_IMPLEMENTED,j=M.ERR_MULTIPLE_CALLBACK,K=M.ERR_STREAM_CANNOT_PIPE,q=M.ERR_STREAM_DESTROYED,Q=M.ERR_STREAM_NULL_VALUES,Z=M.ERR_STREAM_WRITE_AFTER_END,X=M.ERR_UNKNOWN_ENCODING,ie=S.errorOrDestroy;IH(bt,a);function je(){}function et(kt,Ze,Xt){o=o||x_(),kt=kt||{},typeof Xt!="boolean"&&(Xt=Ze instanceof o),this.objectMode=!!kt.objectMode,Xt&&(this.objectMode=this.objectMode||!!kt.writableObjectMode),this.highWaterMark=I(this,kt,"writableHighWaterMark",Xt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Mn=kt.decodeStrings===!1;this.decodeStrings=!Mn,this.defaultEncoding=kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pr){ft(Ze,pr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=kt.emitClose!==!1,this.autoDestroy=!!kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}et.prototype.getBuffer=function(){for(var Ze=this.bufferedRequest,Xt=[];Ze;)Xt.push(Ze),Ze=Ze.next;return Xt},function(){try{Object.defineProperty(et.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var mt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mt=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(Ze){return mt.call(this,Ze)?!0:this!==bt?!1:Ze&&Ze._writableState instanceof et}})):mt=function(Ze){return Ze instanceof this};function bt(kt){o=o||x_();var Ze=this instanceof o;if(!Ze&&!mt.call(bt,this))return new bt(kt);this._writableState=new et(kt,this,Ze),this.writable=!0,kt&&(typeof kt.write=="function"&&(this._write=kt.write),typeof kt.writev=="function"&&(this._writev=kt.writev),typeof kt.destroy=="function"&&(this._destroy=kt.destroy),typeof kt.final=="function"&&(this._final=kt.final)),a.call(this)}bt.prototype.pipe=function(){ie(this,new K)};function ce(kt,Ze){var Xt=new Z;ie(kt,Xt),Uc.nextTick(Ze,Xt)}function Be(kt,Ze,Xt,Mn){var pr;return Xt===null?pr=new Q:typeof Xt!="string"&&!Ze.objectMode&&(pr=new _("chunk",["string","Buffer"],Xt)),pr?(ie(kt,pr),Uc.nextTick(Mn,pr),!1):!0}bt.prototype.write=function(kt,Ze,Xt){var Mn=this._writableState,pr=!1,ye=!Mn.objectMode&&y(kt);return ye&&!p.isBuffer(kt)&&(kt=w(kt)),typeof Ze=="function"&&(Xt=Ze,Ze=null),ye?Ze="buffer":Ze||(Ze=Mn.defaultEncoding),typeof Xt!="function"&&(Xt=je),Mn.ending?ce(this,Xt):(ye||Be(this,Mn,kt,Xt))&&(Mn.pendingcb++,pr=xe(this,Mn,ye,kt,Ze,Xt)),pr},bt.prototype.cork=function(){this._writableState.corked++},bt.prototype.uncork=function(){var kt=this._writableState;kt.corked&&(kt.corked--,!kt.writing&&!kt.corked&&!kt.bufferProcessing&&kt.bufferedRequest&&un(this,kt))},bt.prototype.setDefaultEncoding=function(Ze){if(typeof Ze=="string"&&(Ze=Ze.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ze+"").toLowerCase())>-1))throw new X(Ze);return this._writableState.defaultEncoding=Ze,this},Object.defineProperty(bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ae(kt,Ze,Xt){return!kt.objectMode&&kt.decodeStrings!==!1&&typeof Ze=="string"&&(Ze=p.from(Ze,Xt)),Ze}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function xe(kt,Ze,Xt,Mn,pr,ye){if(!Xt){var Ce=ae(Ze,Mn,pr);Mn!==Ce&&(Xt=!0,pr="buffer",Mn=Ce)}var ee=Ze.objectMode?1:Mn.length;Ze.length+=ee;var V=Ze.length0)if(typeof Ce!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ce)!==a.prototype&&(Ce=g(Ce)),V)ue.endEmitted?je(ye,new Q):ae(ye,ue,Ce,!0);else if(ue.ended)je(ye,new K);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!ee?(Ce=ue.decoder.write(Ce),ue.objectMode||Ce.length!==0?ae(ye,ue,Ce,!1):un(ye,ue)):ae(ye,ue,Ce,!1)}else V||(ue.reading=!1,un(ye,ue))}return!ue.ended&&(ue.length=U?ye=U:(ye--,ye|=ye>>>1,ye|=ye>>>2,ye|=ye>>>4,ye|=ye>>>8,ye|=ye>>>16,ye++),ye}function yt(ye,Ce){return ye<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:ye!==ye?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(ye>Ce.highWaterMark&&(Ce.highWaterMark=He(ye)),ye<=Ce.length?ye:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}ce.prototype.read=function(ye){S("read",ye),ye=parseInt(ye,10);var Ce=this._readableState,ee=ye;if(ye!==0&&(Ce.emittedReadable=!1),ye===0&&Ce.needReadable&&((Ce.highWaterMark!==0?Ce.length>=Ce.highWaterMark:Ce.length>0)||Ce.ended))return S("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?Xt(this):At(this),null;if(ye=yt(ye,Ce),ye===0&&Ce.ended)return Ce.length===0&&Xt(this),null;var V=Ce.needReadable;S("need readable",V),(Ce.length===0||Ce.length-ye0?oe=Ze(ye,Ce):oe=null,oe===null?(Ce.needReadable=Ce.length<=Ce.highWaterMark,ye=0):(Ce.length-=ye,Ce.awaitDrain=0),Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),ee!==ye&&Ce.ended&&Xt(this)),oe!==null&&this.emit("data",oe),oe};function ft(ye,Ce){if(S("onEofChunk"),!Ce.ended){if(Ce.decoder){var ee=Ce.decoder.end();ee&&ee.length&&(Ce.buffer.push(ee),Ce.length+=Ce.objectMode?1:ee.length)}Ce.ended=!0,Ce.sync?At(ye):(Ce.needReadable=!1,Ce.emittedReadable||(Ce.emittedReadable=!0,Jt(ye)))}}function At(ye){var Ce=ye._readableState;S("emitReadable",Ce.needReadable,Ce.emittedReadable),Ce.needReadable=!1,Ce.emittedReadable||(S("emitReadable",Ce.flowing),Ce.emittedReadable=!0,Uc.nextTick(Jt,ye))}function Jt(ye){var Ce=ye._readableState;S("emitReadable_",Ce.destroyed,Ce.length,Ce.ended),!Ce.destroyed&&(Ce.length||Ce.ended)&&(ye.emit("readable"),Ce.emittedReadable=!1),Ce.needReadable=!Ce.flowing&&!Ce.ended&&Ce.length<=Ce.highWaterMark,kt(ye)}function un(ye,Ce){Ce.readingMore||(Ce.readingMore=!0,Uc.nextTick(kn,ye,Ce))}function kn(ye,Ce){for(;!Ce.reading&&!Ce.ended&&(Ce.length1&&pr(V.pipes,ye)!==-1)&&!Lt&&(S("false write response, pause",V.awaitDrain),V.awaitDrain++),ee.pause())}function Kn(de){S("onerror",de),br(),ye.removeListener("error",Kn),o(ye,"error")===0&&je(ye,de)}mt(ye,"error",Kn);function dn(){ye.removeListener("finish",Rn),br()}ye.once("close",dn);function Rn(){S("onfinish"),ye.removeListener("close",dn),br()}ye.once("finish",Rn);function br(){S("unpipe"),ee.unpipe(ye)}return ye.emit("pipe",ee),V.flowing||(S("pipe resume"),ee.resume()),ye};function qt(ye){return function(){var ee=ye._readableState;S("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&o(ye,"data")&&(ee.flowing=!0,kt(ye))}}ce.prototype.unpipe=function(ye){var Ce=this._readableState,ee={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return ye&&ye!==Ce.pipes?this:(ye||(ye=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,ye&&ye.emit("unpipe",this,ee),this);if(!ye){var V=Ce.pipes,oe=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var ue=0;ue0,V.flowing!==!1&&this.resume()):ye==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,S("on readable",V.length,V.reading),V.length?At(this):V.reading||Uc.nextTick(Rt,this)),ee},ce.prototype.addListener=ce.prototype.on,ce.prototype.removeListener=function(ye,Ce){var ee=l.prototype.removeListener.call(this,ye,Ce);return ye==="readable"&&Uc.nextTick(on,this),ee},ce.prototype.removeAllListeners=function(ye){var Ce=l.prototype.removeAllListeners.apply(this,arguments);return(ye==="readable"||ye===void 0)&&Uc.nextTick(on,this),Ce};function on(ye){var Ce=ye._readableState;Ce.readableListening=ye.listenerCount("readable")>0,Ce.resumeScheduled&&!Ce.paused?Ce.flowing=!0:ye.listenerCount("data")>0&&ye.resume()}function Rt(ye){S("readable nexttick read 0"),ye.read(0)}ce.prototype.resume=function(){var ye=this._readableState;return ye.flowing||(S("resume"),ye.flowing=!ye.readableListening,an(this,ye)),ye.paused=!1,this};function an(ye,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,Uc.nextTick(Zn,ye,Ce))}function Zn(ye,Ce){S("resume",Ce.reading),Ce.reading||ye.read(0),Ce.resumeScheduled=!1,ye.emit("resume"),kt(ye),Ce.flowing&&!Ce.reading&&ye.read(0)}ce.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kt(ye){var Ce=ye._readableState;for(S("flow",Ce.flowing);Ce.flowing&&ye.read()!==null;);}ce.prototype.wrap=function(ye){var Ce=this,ee=this._readableState,V=!1;ye.on("end",function(){if(S("wrapped end"),ee.decoder&&!ee.ended){var ge=ee.decoder.end();ge&&ge.length&&Ce.push(ge)}Ce.push(null)}),ye.on("data",function(ge){if(S("wrapped data"),ee.decoder&&(ge=ee.decoder.write(ge)),!(ee.objectMode&&ge==null)&&!(!ee.objectMode&&(!ge||!ge.length))){var Ge=Ce.push(ge);Ge||(V=!0,ye.pause())}});for(var oe in ye)this[oe]===void 0&&typeof ye[oe]=="function"&&(this[oe]=function(Ge){return function(){return ye[Ge].apply(ye,arguments)}}(oe));for(var ue=0;ue=Ce.length?(Ce.decoder?ee=Ce.buffer.join(""):Ce.buffer.length===1?ee=Ce.buffer.first():ee=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):ee=Ce.buffer.consume(ye,Ce.decoder),ee}function Xt(ye){var Ce=ye._readableState;S("endReadable",Ce.endEmitted),Ce.endEmitted||(Ce.ended=!0,Uc.nextTick(Mn,Ce,ye))}function Mn(ye,Ce){if(S("endReadableNT",ye.endEmitted,ye.length),!ye.endEmitted&&ye.length===0&&(ye.endEmitted=!0,Ce.readable=!1,Ce.emit("end"),ye.autoDestroy)){var ee=Ce._writableState;(!ee||ee.autoDestroy&&ee.finished)&&Ce.destroy()}}typeof Symbol=="function"&&(ce.from=function(ye,Ce){return ie===void 0&&(ie=H2n()),ie(ce,ye,Ce)});function pr(ye,Ce){for(var ee=0,V=ye.length;ee0;return e3n(w,S,E,function(I){p||(p=I),I&&g.forEach(m8t),!S&&(g.forEach(m8t),a(p))})});return o.reduce(t3n)}var i3n=r3n;(function(r,o){o=r.exports=Jxt(),o.Stream=o,o.Readable=o,o.Writable=Xxt(),o.Duplex=x_(),o.Transform=Qxt,o.PassThrough=X2n,o.finished=T9e,o.pipeline=i3n})($7e,$7e.exports);var I9e=$7e.exports;const o3n=_3(I9e);class tEt{init(){this.ns=Kne}}const s3n=new CH,l3n={apply:(r,o,l)=>r(l[0]),get:(r,o)=>r(o)};function Gn(r,{factory:o=s3n}={}){const l=(a="")=>o.namedNode(`${r}${a.raw||a}`);return typeof Proxy>"u"?l:new Proxy(l,l3n)}const c3n=Gn("http://www.w3.org/ns/auth/acl#"),u3n=c3n,a3n=Gn("https://www.w3.org/ns/activitystreams#"),f3n=a3n,d3n=Gn("http://purl.org/ontology/bibo/"),h3n=d3n,p3n=Gn("http://creativecommons.org/ns#"),g3n=p3n,b3n=Gn("http://www.w3.org/ns/auth/cert#"),w3n=b3n,m3n=Gn("http://www.w3.org/2011/content#"),v3n=m3n,y3n=Gn("http://qudt.org/vocab/constant/"),k3n=y3n,C3n=Gn("http://www.cidoc-crm.org/cidoc-crm/"),S3n=C3n,x3n=Gn("http://www.w3.org/ns/csvw#"),E3n=x3n,T3n=Gn("http://commontag.org/ns#"),I3n=T3n,P3n=Gn("http://datashapes.org/sparql#"),M3n=P3n,O3n=Gn("http://datashapes.org/dash#"),_3n=O3n,R3n=Gn("http://dbpedia.org/ontology/"),A3n=R3n,L3n=Gn("http://purl.org/dc/elements/1.1/"),$3n=L3n,j3n=Gn("http://purl.org/dc/dcam/"),D3n=j3n,N3n=Gn("http://www.w3.org/ns/dcat#"),B3n=N3n,F3n=Gn("http://purl.org/dc/dcmitype/"),z3n=F3n,H3n=Gn("http://purl.org/dc/terms/"),K3n=H3n,U3n=Gn("http://www.ics.forth.gr/isl/CRMdig/"),G3n=U3n,W3n=Gn("http://qudt.org/vocab/discipline/"),V3n=W3n,q3n=Gn("http://usefulinc.com/ns/doap#"),X3n=q3n,Y3n=Gn("http://www.w3.org/ns/dpv#"),J3n=Y3n,Q3n=Gn("http://www.w3.org/ns/dqv#"),Z3n=Q3n,e4n=Gn("http://www.linkedmodel.org/schema/dtype#"),t4n=e4n,n4n=Gn("http://www.w3.org/ns/duv#"),r4n=n4n,i4n=Gn("http://www.w3.org/ns/earl#"),o4n=i4n,s4n=Gn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),l4n=s4n,c4n=Gn("http://www.w3.org/2003/12/exif/ns#"),u4n=c4n,a4n=Gn("http://xmlns.com/foaf/0.1/"),f4n=a4n,d4n=Gn("http://purl.org/vocab/frbr/core#"),h4n=d4n,p4n=Gn("http://www.opengis.net/ont/geosparql#"),g4n=p4n,b4n=Gn("http://www.opengis.net/def/function/geosparql/"),w4n=b4n,m4n=Gn("http://www.opengis.net/def/rule/geosparql/"),v4n=m4n,y4n=Gn("http://www.opengis.net/ont/gml#"),k4n=y4n,C4n=Gn("http://www.geonames.org/ontology#"),S4n=C4n,x4n=Gn("http://purl.org/goodrelations/v1#"),E4n=x4n,T4n=Gn("http://www.w3.org/2003/g/data-view#"),I4n=T4n,P4n=Gn("https://gs1.org/voc/"),M4n=P4n,O4n=Gn("http://vocab.gtfs.org/terms#"),_4n=O4n,R4n=Gn("http://www.w3.org/2011/http#"),A4n=R4n,L4n=Gn("http://www.w3.org/ns/hydra/core#"),$4n=L4n,j4n=Gn("http://www.w3.org/2002/12/cal/icaltzd#"),D4n=j4n,N4n=Gn("https://linked.art/ns/terms/"),B4n=N4n,F4n=Gn("http://www.w3.org/ns/ldp#"),z4n=F4n,H4n=Gn("http://www.w3.org/2000/10/swap/list#"),K4n=H4n,U4n=Gn("http://www.w3.org/ns/locn#"),G4n=U4n,W4n=Gn("http://www.w3.org/2000/10/swap/log#"),V4n=W4n,q4n=Gn("http://lexvo.org/ontology#"),X4n=q4n,Y4n=Gn("http://w3id.org/nfdi4ing/metadata4ing#"),J4n=Y4n,Q4n=Gn("http://www.w3.org/ns/ma-ont#"),Z4n=Q4n,e6n=Gn("http://www.loc.gov/mads/rdf/v1#"),t6n=e6n,n6n=Gn("http://www.w3.org/2000/10/swap/math#"),r6n=n6n,i6n=Gn("http://www.w3.org/ns/oa#"),o6n=i6n,s6n=Gn("http://ogp.me/ns#"),l6n=s6n,c6n=Gn("http://www.w3.org/ns/solid/oidc#"),u6n=c6n,a6n=Gn("http://www.w3.org/ns/org#"),f6n=a6n,d6n=Gn("http://www.w3.org/2002/07/owl#"),h6n=d6n,p6n=Gn("http://www.w3.org/ns/pim/space#"),g6n=p6n,b6n=Gn("http://qudt.org/vocab/prefix/"),w6n=b6n,m6n=Gn("http://www.w3.org/ns/prov#"),v6n=m6n,y6n=Gn("http://purl.org/linked-data/cube#"),k6n=y6n,C6n=Gn("http://qudt.org/vocab/dimensionvector/"),S6n=C6n,x6n=Gn("http://qudt.org/vocab/quantitykind/"),E6n=x6n,T6n=Gn("http://qudt.org/schema/qudt/"),I6n=T6n,P6n=Gn("http://rdaregistry.info/Elements/u/"),M6n=P6n,O6n=Gn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),Zv=O6n,_6n=Gn("http://www.w3.org/ns/rdfa#"),R6n=_6n,A6n=Gn("http://www.w3.org/2000/01/rdf-schema#"),L6n=A6n,$6n=Gn("http://purl.org/stuff/rev#"),j6n=$6n,D6n=Gn("https://www.ica.org/standards/RiC/ontology#"),N6n=D6n,B6n=Gn("http://www.w3.org/ns/r2rml#"),F6n=B6n,z6n=Gn("http://purl.org/rss/1.0/"),H6n=z6n,K6n=Gn("http://schema.org/"),U6n=K6n,G6n=Gn("http://www.w3.org/ns/sparql-service-description#"),W6n=G6n,V6n=Gn("http://purl.org/linked-data/sdmx#"),q6n=V6n,X6n=Gn("http://semanticweb.cs.vu.nl/2009/11/sem/"),Y6n=X6n,J6n=Gn("http://www.w3.org/2000/10/swap/set#"),Q6n=J6n,Z6n=Gn("http://www.opengis.net/ont/sf#"),ekn=Z6n,tkn=Gn("http://www.w3.org/ns/shacl#"),nkn=tkn,rkn=Gn("http://www.w3.org/ns/shex#"),ikn=rkn,okn=Gn("https://www.w3.org/ns/shacl-shacl#"),skn=okn,lkn=Gn("http://rdfs.org/sioc/ns#"),ckn=lkn,ukn=Gn("http://www.w3.org/2004/02/skos/core#"),akn=ukn,fkn=Gn("http://www.w3.org/2008/05/skos-xl#"),dkn=fkn,hkn=Gn("http://www.w3.org/ns/solid/terms#"),pkn=hkn,gkn=Gn("http://www.w3.org/ns/sosa/"),bkn=gkn,wkn=Gn("http://qudt.org/vocab/sou/"),mkn=wkn,vkn=Gn("http://www.w3.org/ns/ssn/"),ykn=vkn,kkn=Gn("http://www.w3.org/ns/posix/stat#"),Ckn=kkn,Skn=Gn("http://www.w3.org/2000/10/swap/string#"),xkn=Skn,Ekn=Gn("http://www.w3.org/2006/03/test-description#"),Tkn=Ekn,Ikn=Gn("http://www.w3.org/2006/time#"),Pkn=Ikn,Mkn=Gn("http://qudt.org/vocab/unit/"),Okn=Mkn,_kn=Gn("http://www.linkedmodel.org/schema/vaem#"),Rkn=_kn,Akn=Gn("http://purl.org/vocab/vann/"),Lkn=Akn,$kn=Gn("http://www.w3.org/2006/vcard/ns#"),jkn=$kn,Dkn=Gn("http://rdfs.org/ns/void#"),Nkn=Dkn,Bkn=Gn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),Fkn=Bkn,zkn=Gn("http://www.w3.org/2007/05/powder-s#"),Hkn=zkn,Kkn=Gn("http://www.w3.org/2003/01/geo/wgs84_pos#"),Ukn=Kkn,Gkn=Gn("http://www.w3.org/1999/xhtml/vocab#"),Wkn=Gkn,Vkn=Gn("http://rdf-vocabulary.ddialliance.org/xkos#"),qkn=Vkn,Xkn=Gn("http://www.w3.org/2001/XMLSchema#"),FF=Xkn,Ykn=Gn("http://www.w3.org/2007/rif#"),Jkn=Ykn,Qkn=Gn("http://rdf.data-vocabulary.org/#"),Zkn=Qkn,e5n=Gn("http://www.w3.org/2007/05/powder#"),t5n=e5n,n5n=Gn("http://www.w3.org/XML/1998/namespace/"),r5n=n5n;function i5n(r){return"_:"+r.value}function o5n(r,o){return[...r].map(l=>o(l)).join(` +`;super(j),this.name="AggregateError",this.errors=R}}r.exports={AggregateError:M,kEmptyObject:Object.freeze({}),once(_){let R=!1;return function(...j){R||(R=!0,_.apply(this,j))}},createDeferredPromise:function(){let _,R;return{promise:new Promise((K,q)=>{_=K,R=q}),resolve:_,reject:R}},promisify(_){return new Promise((R,j)=>{_((K,...q)=>K?j(K):R(...q))})},debuglog(){return function(){}},format(_,...R){return _.replace(/%([sdifj])/g,function(...[j,K]){const q=R.shift();return K==="f"?q.toFixed(6):K==="j"?JSON.stringify(q):K==="s"&&typeof q=="object"?`${q.constructor!==Object?q.constructor.name:""} {}`.trim():q.toString()})},inspect(_){switch(typeof _){case"string":if(_.includes("'"))if(_.includes('"')){if(!_.includes("`")&&!_.includes("${"))return`\`${_}\``}else return`"${_}"`;return`'${_}'`;case"number":return isNaN(_)?"NaN":Object.is(_,-0)?String(_):_;case"bigint":return`${String(_)}n`;case"boolean":case"undefined":return String(_);case"object":return"{}"}},types:{isAsyncFunction(_){return _ instanceof w},isArrayBufferView(_){return ArrayBuffer.isView(_)}},isBlob:S,deprecate(_,R){return _},addAbortListener:F_.addAbortListener||function(R,j){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);E(R,"signal"),I(j,"listener");let K;return R.aborted?queueMicrotask(()=>j()):(R.addEventListener("abort",j,{__proto__:null,once:!0,[l]:!0}),K=()=>{R.removeEventListener("abort",j)}),{__proto__:null,[a](){var q;(q=K)===null||q===void 0||q()}}},AbortSignalAny:p.any||function(R){if(R.length===1)return R[0];const j=new g,K=()=>j.abort();return R.forEach(q=>{E(q,"signals"),q.addEventListener("abort",K,{once:!0})}),j.signal.addEventListener("abort",()=>{R.forEach(q=>q.removeEventListener("abort",K))},{once:!0}),j.signal}},r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(K9t);var Np=K9t.exports,p9e={};const{format:Vwn,inspect:rre,AggregateError:qwn}=Np,Xwn=globalThis.AggregateError||qwn,Ywn=Symbol("kIsNodeError"),Jwn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Qwn=/^([A-Z][a-z0-9]*)+$/,Zwn="__node_internal_",eie={};function TE(r,o){if(!r)throw new eie.ERR_INTERNAL_ASSERTION(o)}function v5t(r){let o="",l=r.length;const a=r[0]==="-"?1:0;for(;l>=a+4;l-=3)o=`_${r.slice(l-3,l)}${o}`;return`${r.slice(0,l)}${o}`}function emn(r,o,l){if(typeof o=="function")return TE(o.length<=l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${o.length}).`),o(...l);const a=(o.match(/%[dfijoOs]/g)||[]).length;return TE(a===l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${a}).`),l.length===0?o:Vwn(o,...l)}function Xh(r,o,l){l||(l=Error);class a extends l{constructor(...g){super(emn(r,o,g))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:l.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=r,a.prototype[Ywn]=!0,eie[r]=a}function y5t(r){const o=Zwn+r.name;return Object.defineProperty(r,"name",{value:o}),r}function tmn(r,o){if(r&&o&&r!==o){if(Array.isArray(o.errors))return o.errors.push(r),o;const l=new Xwn([o,r],o.message);return l.code=o.code,l}return r||o}let nmn=class extends Error{constructor(o="The operation was aborted",l=void 0){if(l!==void 0&&typeof l!="object")throw new eie.ERR_INVALID_ARG_TYPE("options","Object",l);super(o,l),this.code="ABORT_ERR",this.name="AbortError"}};Xh("ERR_ASSERTION","%s",Error);Xh("ERR_INVALID_ARG_TYPE",(r,o,l)=>{TE(typeof r=="string","'name' must be a string"),Array.isArray(o)||(o=[o]);let a="The ";r.endsWith(" argument")?a+=`${r} `:a+=`"${r}" ${r.includes(".")?"property":"argument"} `,a+="must be ";const p=[],g=[],w=[];for(const S of o)TE(typeof S=="string","All expected entries have to be of type string"),Jwn.includes(S)?p.push(S.toLowerCase()):Qwn.test(S)?g.push(S):(TE(S!=="object",'The value "object" should be written as "Object"'),w.push(S));if(g.length>0){const S=p.indexOf("object");S!==-1&&(p.splice(p,S,1),g.push("Object"))}if(p.length>0){switch(p.length){case 1:a+=`of type ${p[0]}`;break;case 2:a+=`one of type ${p[0]} or ${p[1]}`;break;default:{const S=p.pop();a+=`one of type ${p.join(", ")}, or ${S}`}}(g.length>0||w.length>0)&&(a+=" or ")}if(g.length>0){switch(g.length){case 1:a+=`an instance of ${g[0]}`;break;case 2:a+=`an instance of ${g[0]} or ${g[1]}`;break;default:{const S=g.pop();a+=`an instance of ${g.join(", ")}, or ${S}`}}w.length>0&&(a+=" or ")}switch(w.length){case 0:break;case 1:w[0].toLowerCase()!==w[0]&&(a+="an "),a+=`${w[0]}`;break;case 2:a+=`one of ${w[0]} or ${w[1]}`;break;default:{const S=w.pop();a+=`one of ${w.join(", ")}, or ${S}`}}if(l==null)a+=`. Received ${l}`;else if(typeof l=="function"&&l.name)a+=`. Received function ${l.name}`;else if(typeof l=="object"){var y;if((y=l.constructor)!==null&&y!==void 0&&y.name)a+=`. Received an instance of ${l.constructor.name}`;else{const S=rre(l,{depth:-1});a+=`. Received ${S}`}}else{let S=rre(l,{colors:!1});S.length>25&&(S=`${S.slice(0,25)}...`),a+=`. Received type ${typeof l} (${S})`}return a},TypeError);Xh("ERR_INVALID_ARG_VALUE",(r,o,l="is invalid")=>{let a=rre(o);return a.length>128&&(a=a.slice(0,128)+"..."),`The ${r.includes(".")?"property":"argument"} '${r}' ${l}. Received ${a}`},TypeError);Xh("ERR_INVALID_RETURN_VALUE",(r,o,l)=>{var a;const p=l!=null&&(a=l.constructor)!==null&&a!==void 0&&a.name?`instance of ${l.constructor.name}`:`type ${typeof l}`;return`Expected ${r} to be returned from the "${o}" function but got ${p}.`},TypeError);Xh("ERR_MISSING_ARGS",(...r)=>{TE(r.length>0,"At least one arg needs to be specified");let o;const l=r.length;switch(r=(Array.isArray(r)?r:[r]).map(a=>`"${a}"`).join(" or "),l){case 1:o+=`The ${r[0]} argument`;break;case 2:o+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const a=r.pop();o+=`The ${r.join(", ")}, and ${a} arguments`}break}return`${o} must be specified`},TypeError);Xh("ERR_OUT_OF_RANGE",(r,o,l)=>{TE(o,'Missing "range" argument');let a;return Number.isInteger(l)&&Math.abs(l)>2**32?a=v5t(String(l)):typeof l=="bigint"?(a=String(l),(l>2n**32n||l<-(2n**32n))&&(a=v5t(a)),a+="n"):a=rre(l),`The value of "${r}" is out of range. It must be ${o}. Received ${a}`},RangeError);Xh("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xh("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xh("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xh("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xh("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xh("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xh("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xh("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xh("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xh("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xh("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Yg={AbortError:nmn,aggregateTwoErrors:y5t(tmn),hideStackFrames:y5t,codes:eie};const{ArrayIsArray:g9e,ArrayPrototypeIncludes:Q9t,ArrayPrototypeJoin:Z9t,ArrayPrototypeMap:rmn,NumberIsInteger:b9e,NumberIsNaN:imn,NumberMAX_SAFE_INTEGER:omn,NumberMIN_SAFE_INTEGER:smn,NumberParseInt:lmn,ObjectPrototypeHasOwnProperty:cmn,RegExpPrototypeExec:ext,String:umn,StringPrototypeToUpperCase:amn,StringPrototypeTrim:fmn}=qa,{hideStackFrames:hm,codes:{ERR_SOCKET_BAD_PORT:dmn,ERR_INVALID_ARG_TYPE:L1,ERR_INVALID_ARG_VALUE:z_,ERR_OUT_OF_RANGE:NE,ERR_UNKNOWN_SIGNAL:k5t}}=Yg,{normalizeEncoding:hmn}=Np,{isAsyncFunction:pmn,isArrayBufferView:gmn}=Np.types,C5t={};function bmn(r){return r===(r|0)}function wmn(r){return r===r>>>0}const mmn=/^[0-7]+$/,vmn="must be a 32-bit unsigned integer or an octal string";function ymn(r,o,l){if(typeof r>"u"&&(r=l),typeof r=="string"){if(ext(mmn,r)===null)throw new z_(o,r,vmn);r=lmn(r,8)}return txt(r,o),r}const kmn=hm((r,o,l=smn,a=omn)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),Cmn=hm((r,o,l=-2147483648,a=2147483647)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),txt=hm((r,o,l=!1)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);const a=l?1:0,p=4294967295;if(rp)throw new NE(o,`>= ${a} && <= ${p}`,r)});function w9e(r,o){if(typeof r!="string")throw new L1(o,"string",r)}function Smn(r,o,l=void 0,a){if(typeof r!="number")throw new L1(o,"number",r);if(l!=null&&ra||(l!=null||a!=null)&&imn(r))throw new NE(o,`${l!=null?`>= ${l}`:""}${l!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}const xmn=hm((r,o,l)=>{if(!Q9t(l,r)){const p="must be one of: "+Z9t(rmn(l,g=>typeof g=="string"?`'${g}'`:umn(g)),", ");throw new z_(o,r,p)}});function nxt(r,o){if(typeof r!="boolean")throw new L1(o,"boolean",r)}function Q8e(r,o,l){return r==null||!cmn(r,o)?l:r[o]}const Emn=hm((r,o,l=null)=>{const a=Q8e(l,"allowArray",!1),p=Q8e(l,"allowFunction",!1);if(!Q8e(l,"nullable",!1)&&r===null||!a&&g9e(r)||typeof r!="object"&&(!p||typeof r!="function"))throw new L1(o,"Object",r)}),Tmn=hm((r,o)=>{if(r!=null&&typeof r!="object"&&typeof r!="function")throw new L1(o,"a dictionary",r)}),tie=hm((r,o,l=0)=>{if(!g9e(r))throw new L1(o,"Array",r);if(r.length{if(!gmn(r))throw new L1(o,["Buffer","TypedArray","DataView"],r)});function Rmn(r,o){const l=hmn(o),a=r.length;if(l==="hex"&&a%2!==0)throw new z_("encoding",o,`is invalid for data of length ${a}`)}function Amn(r,o="Port",l=!0){if(typeof r!="number"&&typeof r!="string"||typeof r=="string"&&fmn(r).length===0||+r!==+r>>>0||r>65535||r===0&&!l)throw new dmn(o,r,l);return r|0}const rxt=hm((r,o)=>{if(r!==void 0&&(r===null||typeof r!="object"||!("aborted"in r)))throw new L1(o,"AbortSignal",r)}),Lmn=hm((r,o)=>{if(typeof r!="function")throw new L1(o,"Function",r)}),$mn=hm((r,o)=>{if(typeof r!="function"||pmn(r))throw new L1(o,"Function",r)}),jmn=hm((r,o)=>{if(r!==void 0)throw new L1(o,"undefined",r)});function Dmn(r,o,l){if(!Q9t(l,r))throw new L1(o,`('${Z9t(l,"|")}')`,r)}const Nmn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function S5t(r,o){if(typeof r>"u"||!ext(Nmn,r))throw new z_(o,r,'must be an array or string of format "; rel=preload; as=style"')}function Bmn(r){if(typeof r=="string")return S5t(r,"hints"),r;if(g9e(r)){const o=r.length;let l="";if(o===0)return l;for(let a=0;a; rel=preload; as=style"')}var SH={isInt32:bmn,isUint32:wmn,parseFileMode:ymn,validateArray:tie,validateStringArray:Imn,validateBooleanArray:Pmn,validateAbortSignalArray:Mmn,validateBoolean:nxt,validateBuffer:_mn,validateDictionary:Tmn,validateEncoding:Rmn,validateFunction:Lmn,validateInt32:Cmn,validateInteger:kmn,validateNumber:Smn,validateObject:Emn,validateOneOf:xmn,validatePlainFunction:$mn,validatePort:Amn,validateSignalName:Omn,validateString:w9e,validateUint32:txt,validateUndefined:jmn,validateUnion:Dmn,validateAbortSignal:rxt,validateLinkHeaderValue:Bmn},m9e={exports:{}},ixt={exports:{}},Tf=ixt.exports={},a3,f3;function k7e(){throw new Error("setTimeout has not been defined")}function C7e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a3=setTimeout:a3=k7e}catch{a3=k7e}try{typeof clearTimeout=="function"?f3=clearTimeout:f3=C7e}catch{f3=C7e}})();function oxt(r){if(a3===setTimeout)return setTimeout(r,0);if((a3===k7e||!a3)&&setTimeout)return a3=setTimeout,setTimeout(r,0);try{return a3(r,0)}catch{try{return a3.call(null,r,0)}catch{return a3.call(this,r,0)}}}function Fmn(r){if(f3===clearTimeout)return clearTimeout(r);if((f3===C7e||!f3)&&clearTimeout)return f3=clearTimeout,clearTimeout(r);try{return f3(r)}catch{try{return f3.call(null,r)}catch{return f3.call(this,r)}}}var H6=[],s_=!1,vE,Ene=-1;function zmn(){!s_||!vE||(s_=!1,vE.length?H6=vE.concat(H6):Ene=-1,H6.length&&sxt())}function sxt(){if(!s_){var r=oxt(zmn);s_=!0;for(var o=H6.length;o;){for(vE=H6,H6=[];++Ene1)for(var l=1;l{};function Cxt(r,o,l){var a,p;if(arguments.length===2?(l=o,o=E7e):o==null?o=E7e:lvn(o,"options"),svn(l,"callback"),ovn(o.signal,"options.signal"),l=T7e(l),dvn(r)||hvn(r))return mvn(r,o,l);if(!pvn(r))throw new ivn("stream",["ReadableStream","WritableStream","Stream"],r);const g=(a=o.readable)!==null&&a!==void 0?a:Z8e(r),w=(p=o.writable)!==null&&p!==void 0?p:_5t(r),y=r._writableState,S=r._readableState,E=()=>{r.writable||_()};let I=gvn(r)&&Z8e(r)===g&&_5t(r)===w,M=R5t(r,!1);const _=()=>{M=!0,r.destroyed&&(I=!1),!(I&&(!r.readable||g))&&(!g||R)&&l.call(r)};let R=P5t(r,!1);const j=()=>{R=!0,r.destroyed&&(I=!1),!(I&&(!r.writable||w))&&(!w||M)&&l.call(r)},K=je=>{l.call(r,je)};let q=fvn(r);const Q=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);if(g&&!R&&Z8e(r,!0)&&!P5t(r,!1))return l.call(r,new T5t);if(w&&!M&&!R5t(r,!1))return l.call(r,new T5t);l.call(r)},Z=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);l.call(r)},X=()=>{r.req.on("finish",_)};wvn(r)?(r.on("complete",_),I||r.on("abort",Q),r.req?X():r.on("request",X)):w&&!y&&(r.on("end",E),r.on("close",E)),!I&&typeof r.aborted=="boolean"&&r.on("aborted",Q),r.on("end",j),r.on("finish",_),o.error!==!1&&r.on("error",K),r.on("close",Q),q?wC.nextTick(Q):y!=null&&y.errorEmitted||S!=null&&S.errorEmitted?I||wC.nextTick(Z):(!g&&(!I||I5t(r))&&(M||O5t(r)===!1)||!w&&(!I||O5t(r))&&(R||I5t(r)===!1)||S&&r.req&&r.aborted)&&wC.nextTick(Z);const ie=()=>{l=I7e,r.removeListener("aborted",Q),r.removeListener("complete",_),r.removeListener("abort",Q),r.removeListener("request",X),r.req&&r.req.removeListener("finish",_),r.removeListener("end",E),r.removeListener("close",E),r.removeListener("finish",_),r.removeListener("end",j),r.removeListener("error",K),r.removeListener("close",Q)};if(o.signal&&!q){const je=()=>{const et=l;ie(),et.call(r,new yxt(void 0,{cause:o.signal.reason}))};if(o.signal.aborted)wC.nextTick(je);else{l_=l_||Np.addAbortListener;const et=l_(o.signal,je),mt=l;l=T7e((...bt)=>{et[kxt](),mt.apply(r,bt)})}}return ie}function mvn(r,o,l){let a=!1,p=I7e;if(o.signal)if(p=()=>{a=!0,l.call(r,new yxt(void 0,{cause:o.signal.reason}))},o.signal.aborted)wC.nextTick(p);else{l_=l_||Np.addAbortListener;const w=l_(o.signal,p),y=l;l=T7e((...S)=>{w[kxt](),y.apply(r,S)})}const g=(...w)=>{a||wC.nextTick(()=>l.apply(r,w))};return avn(r[bvn].promise,g,g),I7e}function vvn(r,o){var l;let a=!1;return o===null&&(o=E7e),(l=o)!==null&&l!==void 0&&l.cleanup&&(cvn(o.cleanup,"cleanup"),a=o.cleanup),new uvn((p,g)=>{const w=Cxt(r,o,y=>{a&&w(),y?g(y):p()})})}m9e.exports=Cxt;m9e.exports.finished=vvn;var WC=m9e.exports;const y3=GC,{aggregateTwoErrors:yvn,codes:{ERR_MULTIPLE_CALLBACK:kvn},AbortError:Cvn}=Yg,{Symbol:Sxt}=qa,{kIsDestroyed:Svn,isDestroyed:xvn,isFinished:Evn,isServerRequest:Tvn}=sk,xxt=Sxt("kDestroy"),P7e=Sxt("kConstruct");function Ext(r,o,l){r&&(r.stack,o&&!o.errored&&(o.errored=r),l&&!l.errored&&(l.errored=r))}function Ivn(r,o){const l=this._readableState,a=this._writableState,p=a||l;return a!=null&&a.destroyed||l!=null&&l.destroyed?(typeof o=="function"&&o(),this):(Ext(r,a,l),a&&(a.destroyed=!0),l&&(l.destroyed=!0),p.constructed?L5t(this,r,o):this.once(xxt,function(g){L5t(this,yvn(g,r),o)}),this)}function L5t(r,o,l){let a=!1;function p(g){if(a)return;a=!0;const w=r._readableState,y=r._writableState;Ext(g,y,w),y&&(y.closed=!0),w&&(w.closed=!0),typeof l=="function"&&l(g),g?y3.nextTick(Pvn,r,g):y3.nextTick(Txt,r)}try{r._destroy(o||null,p)}catch(g){p(g)}}function Pvn(r,o){M7e(r,o),Txt(r)}function Txt(r){const o=r._readableState,l=r._writableState;l&&(l.closeEmitted=!0),o&&(o.closeEmitted=!0),(l!=null&&l.emitClose||o!=null&&o.emitClose)&&r.emit("close")}function M7e(r,o){const l=r._readableState,a=r._writableState;a!=null&&a.errorEmitted||l!=null&&l.errorEmitted||(a&&(a.errorEmitted=!0),l&&(l.errorEmitted=!0),r.emit("error",o))}function Mvn(){const r=this._readableState,o=this._writableState;r&&(r.constructed=!0,r.closed=!1,r.closeEmitted=!1,r.destroyed=!1,r.errored=null,r.errorEmitted=!1,r.reading=!1,r.ended=r.readable===!1,r.endEmitted=r.readable===!1),o&&(o.constructed=!0,o.destroyed=!1,o.closed=!1,o.closeEmitted=!1,o.errored=null,o.errorEmitted=!1,o.finalCalled=!1,o.prefinished=!1,o.ended=o.writable===!1,o.ending=o.writable===!1,o.finished=o.writable===!1)}function O7e(r,o,l){const a=r._readableState,p=r._writableState;if(p!=null&&p.destroyed||a!=null&&a.destroyed)return this;a!=null&&a.autoDestroy||p!=null&&p.autoDestroy?r.destroy(o):o&&(o.stack,p&&!p.errored&&(p.errored=o),a&&!a.errored&&(a.errored=o),l?y3.nextTick(M7e,r,o):M7e(r,o))}function Ovn(r,o){if(typeof r._construct!="function")return;const l=r._readableState,a=r._writableState;l&&(l.constructed=!1),a&&(a.constructed=!1),r.once(P7e,o),!(r.listenerCount(P7e)>1)&&y3.nextTick(_vn,r)}function _vn(r){let o=!1;function l(a){if(o){O7e(r,a??new kvn);return}o=!0;const p=r._readableState,g=r._writableState,w=g||p;p&&(p.constructed=!0),g&&(g.constructed=!0),w.destroyed?r.emit(xxt,a):a?O7e(r,a,!0):y3.nextTick(Rvn,r)}try{r._construct(a=>{y3.nextTick(l,a)})}catch(a){y3.nextTick(l,a)}}function Rvn(r){r.emit(P7e)}function $5t(r){return(r==null?void 0:r.setHeader)&&typeof r.abort=="function"}function Ixt(r){r.emit("close")}function Avn(r,o){r.emit("error",o),y3.nextTick(Ixt,r)}function Lvn(r,o){!r||xvn(r)||(!o&&!Evn(r)&&(o=new Cvn),Tvn(r)?(r.socket=null,r.destroy(o)):$5t(r)?r.abort():$5t(r.req)?r.req.abort():typeof r.destroy=="function"?r.destroy(o):typeof r.close=="function"?r.close():o?y3.nextTick(Avn,r,o):y3.nextTick(Ixt,r),r.destroyed||(r[Svn]=!0))}var H_={construct:Ovn,destroyer:Lvn,destroy:Ivn,undestroy:Mvn,errorOrDestroy:O7e};const{ArrayIsArray:$vn,ObjectSetPrototypeOf:Pxt}=qa,{EventEmitter:oie}=F_;function sie(r){oie.call(this,r)}Pxt(sie.prototype,oie.prototype);Pxt(sie,oie);sie.prototype.pipe=function(r,o){const l=this;function a(I){r.writable&&r.write(I)===!1&&l.pause&&l.pause()}l.on("data",a);function p(){l.readable&&l.resume&&l.resume()}r.on("drain",p),!r._isStdio&&(!o||o.end!==!1)&&(l.on("end",w),l.on("close",y));let g=!1;function w(){g||(g=!0,r.end())}function y(){g||(g=!0,typeof r.destroy=="function"&&r.destroy())}function S(I){E(),oie.listenerCount(this,"error")===0&&this.emit("error",I)}_7e(l,"error",S),_7e(r,"error",S);function E(){l.removeListener("data",a),r.removeListener("drain",p),l.removeListener("end",w),l.removeListener("close",y),l.removeListener("error",S),r.removeListener("error",S),l.removeListener("end",E),l.removeListener("close",E),r.removeListener("close",E)}return l.on("end",E),l.on("close",E),r.on("close",E),r.emit("pipe",l),r};function _7e(r,o,l){if(typeof r.prependListener=="function")return r.prependListener(o,l);!r._events||!r._events[o]?r.on(o,l):$vn(r._events[o])?r._events[o].unshift(l):r._events[o]=[l,r._events[o]]}var v9e={Stream:sie,prependListener:_7e},Mxt={exports:{}};(function(r){const{SymbolDispose:o}=qa,{AbortError:l,codes:a}=Yg,{isNodeStream:p,isWebStream:g,kControllerErrorFunction:w}=sk,y=WC,{ERR_INVALID_ARG_TYPE:S}=a;let E;const I=(M,_)=>{if(typeof M!="object"||!("aborted"in M))throw new S(_,"AbortSignal",M)};r.exports.addAbortSignal=function(_,R){if(I(_,"signal"),!p(R)&&!g(R))throw new S("stream",["ReadableStream","WritableStream","Stream"],R);return r.exports.addAbortSignalNoValidate(_,R)},r.exports.addAbortSignalNoValidate=function(M,_){if(typeof M!="object"||!("aborted"in M))return _;const R=p(_)?()=>{_.destroy(new l(void 0,{cause:M.reason}))}:()=>{_[w](new l(void 0,{cause:M.reason}))};if(M.aborted)R();else{E=E||Np.addAbortListener;const j=E(M,R);y(_,j[o])}return _}})(Mxt);var lie=Mxt.exports;const{StringPrototypeSlice:j5t,SymbolIterator:jvn,TypedArrayPrototypeSet:Wte,Uint8Array:Dvn}=qa,{Buffer:eCe}=dm,{inspect:Nvn}=Np;var Bvn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,a=""+l.data;for(;(l=l.next)!==null;)a+=o+l.data;return a}concat(o){if(this.length===0)return eCe.alloc(0);const l=eCe.allocUnsafe(o>>>0);let a=this.head,p=0;for(;a;)Wte(l,a.data,p),p+=a.data.length,a=a.next;return l}consume(o,l){const a=this.head.data;if(og.length)l+=g,o-=g.length;else{o===g.length?(l+=g,++p,a.next?this.head=a.next:this.head=this.tail=null):(l+=j5t(g,0,o),this.head=a,a.data=j5t(g,o));break}++p}while((a=a.next)!==null);return this.length-=p,l}_getBuffer(o){const l=eCe.allocUnsafe(o),a=o;let p=this.head,g=0;do{const w=p.data;if(o>w.length)Wte(l,w,a-o),o-=w.length;else{o===w.length?(Wte(l,w,a-o),++g,p.next?this.head=p.next:this.head=this.tail=null):(Wte(l,new Dvn(w.buffer,w.byteOffset,o),a-o),this.head=p,p.data=w.slice(o));break}++g}while((p=p.next)!==null);return this.length-=g,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return Nvn(this,{...l,depth:0,customInspect:!1})}};const{MathFloor:Fvn,NumberIsInteger:zvn}=qa,{validateInteger:Hvn}=SH,{ERR_INVALID_ARG_VALUE:Kvn}=Yg.codes;let Oxt=16*1024,_xt=16;function Uvn(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function Rxt(r){return r?_xt:Oxt}function Gvn(r,o){Hvn(o,"value",0),r?_xt=o:Oxt=o}function Wvn(r,o,l,a){const p=Uvn(o,a,l);if(p!=null){if(!zvn(p)||p<0){const g=a?`options.${l}`:"options.highWaterMark";throw new Kvn(g,p)}return Fvn(p)}return Rxt(r.objectMode)}var cie={getHighWaterMark:Wvn,getDefaultHighWaterMark:Rxt,setDefaultHighWaterMark:Gvn},ire={},R7e={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(r,o){var l=dm,a=l.Buffer;function p(w,y){for(var S in w)y[S]=w[S]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=l:(p(l,o),o.Buffer=g);function g(w,y,S){return a(w,y,S)}g.prototype=Object.create(a.prototype),p(a,g),g.from=function(w,y,S){if(typeof w=="number")throw new TypeError("Argument must not be a number");return a(w,y,S)},g.alloc=function(w,y,S){if(typeof w!="number")throw new TypeError("Argument must be a number");var E=a(w);return y!==void 0?typeof S=="string"?E.fill(y,S):E.fill(y):E.fill(0),E},g.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return a(w)},g.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(w)}})(R7e,R7e.exports);var Vvn=R7e.exports,y9e=Vvn.Buffer,D5t=y9e.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function qvn(r){if(!r)return"utf8";for(var o;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(o)return;r=(""+r).toLowerCase(),o=!0}}function Xvn(r){var o=qvn(r);if(typeof o!="string"&&(y9e.isEncoding===D5t||!D5t(r)))throw new Error("Unknown encoding: "+r);return o||r}ire.StringDecoder=xH;function xH(r){this.encoding=Xvn(r);var o;switch(this.encoding){case"utf16le":this.text=tyn,this.end=nyn,o=4;break;case"utf8":this.fillLast=Qvn,o=4;break;case"base64":this.text=ryn,this.end=iyn,o=3;break;default:this.write=oyn,this.end=syn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y9e.allocUnsafe(o)}xH.prototype.write=function(r){if(r.length===0)return"";var o,l;if(this.lastNeed){if(o=this.fillLast(r),o===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;return l>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Yvn(r,o,l){var a=o.length-1;if(a=0?(p>0&&(r.lastNeed=p-1),p):--a=0?(p>0&&(r.lastNeed=p-2),p):--a=0?(p>0&&(p===2?p=0:r.lastNeed=p-3),p):0))}function Jvn(r,o,l){if((o[0]&192)!==128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return r.lastNeed=2,"�"}}function Qvn(r){var o=this.lastTotal-this.lastNeed,l=Jvn(this,r);if(l!==void 0)return l;if(this.lastNeed<=r.length)return r.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,o,0,r.length),this.lastNeed-=r.length}function Zvn(r,o){var l=Yvn(this,r,o);if(!this.lastNeed)return r.toString("utf8",o);this.lastTotal=l;var a=r.length-(l-this.lastNeed);return r.copy(this.lastChar,0,a),r.toString("utf8",o,a)}function eyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+"�":o}function tyn(r,o){if((r.length-o)%2===0){var l=r.toString("utf16le",o);if(l){var a=l.charCodeAt(l.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",o,r.length-1)}function nyn(r){var o=r&&r.length?this.write(r):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,l)}return o}function ryn(r,o){var l=(r.length-o)%3;return l===0?r.toString("base64",o):(this.lastNeed=3-l,this.lastTotal=3,l===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",o,r.length-l))}function iyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function oyn(r){return r.toString(this.encoding)}function syn(r){return r&&r.length?this.write(r):""}const N5t=GC,{PromisePrototypeThen:lyn,SymbolAsyncIterator:B5t,SymbolIterator:F5t}=qa,{Buffer:cyn}=dm,{ERR_INVALID_ARG_TYPE:uyn,ERR_STREAM_NULL_VALUES:ayn}=Yg.codes;function fyn(r,o,l){let a;if(typeof o=="string"||o instanceof cyn)return new r({objectMode:!0,...l,read(){this.push(o),this.push(null)}});let p;if(o&&o[B5t])p=!0,a=o[B5t]();else if(o&&o[F5t])p=!1,a=o[F5t]();else throw new uyn("iterable",["Iterable"],o);const g=new r({objectMode:!0,highWaterMark:1,...l});let w=!1;g._read=function(){w||(w=!0,S())},g._destroy=function(E,I){lyn(y(E),()=>N5t.nextTick(I,E),M=>N5t.nextTick(I,M||E))};async function y(E){const I=E!=null,M=typeof a.throw=="function";if(I&&M){const{value:_,done:R}=await a.throw(E);if(await _,R)return}if(typeof a.return=="function"){const{value:_}=await a.return();await _}}async function S(){for(;;){try{const{value:E,done:I}=p?await a.next():a.next();if(I)g.push(null);else{const M=E&&typeof E.then=="function"?await E:E;if(M===null)throw w=!1,new ayn;if(g.push(M))continue;w=!1}}catch(E){g.destroy(E)}break}}return g}var Axt=fyn,nCe,z5t;function uie(){if(z5t)return nCe;z5t=1;const r=GC,{ArrayPrototypeIndexOf:o,NumberIsInteger:l,NumberIsNaN:a,NumberParseInt:p,ObjectDefineProperties:g,ObjectKeys:w,ObjectSetPrototypeOf:y,Promise:S,SafeSet:E,SymbolAsyncDispose:I,SymbolAsyncIterator:M,Symbol:_}=qa;nCe=Ct,Ct.ReadableState=tn;const{EventEmitter:R}=F_,{Stream:j,prependListener:K}=v9e,{Buffer:q}=dm,{addAbortSignal:Q}=lie,Z=WC;let X=Np.debuglog("stream",Ne=>{X=Ne});const ie=Bvn,je=H_,{getHighWaterMark:et,getDefaultHighWaterMark:mt}=cie,{aggregateTwoErrors:bt,codes:{ERR_INVALID_ARG_TYPE:ce,ERR_METHOD_NOT_IMPLEMENTED:Be,ERR_OUT_OF_RANGE:ae,ERR_STREAM_PUSH_AFTER_EOF:xe,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:He}=Yg,{validateObject:yt}=SH,ft=_("kPaused"),{StringDecoder:At}=ire,Jt=Axt;y(Ct.prototype,j.prototype),y(Ct,j);const un=()=>{},{errorOrDestroy:kn}=je,qt=1,on=2,Rt=4,an=8,Zn=16,kt=32,Ze=64,Xt=128,Mn=256,pr=512,ye=1024,Ce=2048,ee=4096,V=8192,oe=16384,ue=32768,ge=65536,Ge=1<<17,$t=1<<18;function Lt(Ne){return{enumerable:!1,get(){return(this.state&Ne)!==0},set(Xe){Xe?this.state|=Ne:this.state&=~Ne}}}g(tn.prototype,{objectMode:Lt(qt),ended:Lt(on),endEmitted:Lt(Rt),reading:Lt(an),constructed:Lt(Zn),sync:Lt(kt),needReadable:Lt(Ze),emittedReadable:Lt(Xt),readableListening:Lt(Mn),resumeScheduled:Lt(pr),errorEmitted:Lt(ye),emitClose:Lt(Ce),autoDestroy:Lt(ee),destroyed:Lt(V),closed:Lt(oe),closeEmitted:Lt(ue),multiAwaitDrain:Lt(ge),readingMore:Lt(Ge),dataEmitted:Lt($t)});function tn(Ne,Xe,Pr){typeof Pr!="boolean"&&(Pr=Xe instanceof X6()),this.state=Ce|ee|Zn|kt,Ne&&Ne.objectMode&&(this.state|=qt),Pr&&Ne&&Ne.readableObjectMode&&(this.state|=qt),this.highWaterMark=Ne?et(this,Ne,"readableHighWaterMark",Pr):mt(!1),this.buffer=new ie,this.length=0,this.pipes=[],this.flowing=null,this[ft]=null,Ne&&Ne.emitClose===!1&&(this.state&=~Ce),Ne&&Ne.autoDestroy===!1&&(this.state&=~ee),this.errored=null,this.defaultEncoding=Ne&&Ne.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Ne&&Ne.encoding&&(this.decoder=new At(Ne.encoding),this.encoding=Ne.encoding)}function Ct(Ne){if(!(this instanceof Ct))return new Ct(Ne);const Xe=this instanceof X6();this._readableState=new tn(Ne,this,Xe),Ne&&(typeof Ne.read=="function"&&(this._read=Ne.read),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy),typeof Ne.construct=="function"&&(this._construct=Ne.construct),Ne.signal&&!Xe&&Q(Ne.signal,this)),j.call(this,Ne),je.construct(this,()=>{this._readableState.needReadable&>(this,this._readableState)})}Ct.prototype.destroy=je.destroy,Ct.prototype._undestroy=je.undestroy,Ct.prototype._destroy=function(Ne,Xe){Xe(Ne)},Ct.prototype[R.captureRejectionSymbol]=function(Ne){this.destroy(Ne)},Ct.prototype[I]=function(){let Ne;return this.destroyed||(Ne=this.readableEnded?null:new He,this.destroy(Ne)),new S((Xe,Pr)=>Z(this,Cr=>Cr&&Cr!==Ne?Pr(Cr):Xe(null)))},Ct.prototype.push=function(Ne,Xe){return Kn(this,Ne,Xe,!1)},Ct.prototype.unshift=function(Ne,Xe){return Kn(this,Ne,Xe,!0)};function Kn(Ne,Xe,Pr,Cr){X("readableAddChunk",Xe);const Gr=Ne._readableState;let lu;if(Gr.state&qt||(typeof Xe=="string"?(Pr=Pr||Gr.defaultEncoding,Gr.encoding!==Pr&&(Cr&&Gr.encoding?Xe=q.from(Xe,Pr).toString(Gr.encoding):(Xe=q.from(Xe,Pr),Pr=""))):Xe instanceof q?Pr="":j._isUint8Array(Xe)?(Xe=j._uint8ArrayToBuffer(Xe),Pr=""):Xe!=null&&(lu=new ce("chunk",["string","Buffer","Uint8Array"],Xe))),lu)kn(Ne,lu);else if(Xe===null)Gr.state&=~an,G(Ne,Gr);else if(Gr.state&qt||Xe&&Xe.length>0)if(Cr)if(Gr.state&Rt)kn(Ne,new U);else{if(Gr.destroyed||Gr.errored)return!1;dn(Ne,Gr,Xe,!0)}else if(Gr.ended)kn(Ne,new xe);else{if(Gr.destroyed||Gr.errored)return!1;Gr.state&=~an,Gr.decoder&&!Pr?(Xe=Gr.decoder.write(Xe),Gr.objectMode||Xe.length!==0?dn(Ne,Gr,Xe,!1):gt(Ne,Gr)):dn(Ne,Gr,Xe,!1)}else Cr||(Gr.state&=~an,gt(Ne,Gr));return!Gr.ended&&(Gr.length0?(Xe.state&ge?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null,Xe.dataEmitted=!0,Ne.emit("data",Pr)):(Xe.length+=Xe.objectMode?1:Pr.length,Cr?Xe.buffer.unshift(Pr):Xe.buffer.push(Pr),Xe.state&Ze&&Y(Ne)),gt(Ne,Xe)}Ct.prototype.isPaused=function(){const Ne=this._readableState;return Ne[ft]===!0||Ne.flowing===!1},Ct.prototype.setEncoding=function(Ne){const Xe=new At(Ne);this._readableState.decoder=Xe,this._readableState.encoding=this._readableState.decoder.encoding;const Pr=this._readableState.buffer;let Cr="";for(const Gr of Pr)Cr+=Xe.write(Gr);return Pr.clear(),Cr!==""&&Pr.push(Cr),this._readableState.length=Cr.length,this};const Rn=1073741824;function br(Ne){if(Ne>Rn)throw new ae("size","<= 1GiB",Ne);return Ne--,Ne|=Ne>>>1,Ne|=Ne>>>2,Ne|=Ne>>>4,Ne|=Ne>>>8,Ne|=Ne>>>16,Ne++,Ne}function de(Ne,Xe){return Ne<=0||Xe.length===0&&Xe.ended?0:Xe.state&qt?1:a(Ne)?Xe.flowing&&Xe.length?Xe.buffer.first().length:Xe.length:Ne<=Xe.length?Ne:Xe.ended?Xe.length:0}Ct.prototype.read=function(Ne){X("read",Ne),Ne===void 0?Ne=NaN:l(Ne)||(Ne=p(Ne,10));const Xe=this._readableState,Pr=Ne;if(Ne>Xe.highWaterMark&&(Xe.highWaterMark=br(Ne)),Ne!==0&&(Xe.state&=~Xt),Ne===0&&Xe.needReadable&&((Xe.highWaterMark!==0?Xe.length>=Xe.highWaterMark:Xe.length>0)||Xe.ended))return X("read: emitReadable",Xe.length,Xe.ended),Xe.length===0&&Xe.ended?_d(this):Y(this),null;if(Ne=de(Ne,Xe),Ne===0&&Xe.ended)return Xe.length===0&&_d(this),null;let Cr=(Xe.state&Ze)!==0;if(X("need readable",Cr),(Xe.length===0||Xe.length-Ne0?Gr=L3(Ne,Xe):Gr=null,Gr===null?(Xe.needReadable=Xe.length<=Xe.highWaterMark,Ne=0):(Xe.length-=Ne,Xe.multiAwaitDrain?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null),Xe.length===0&&(Xe.ended||(Xe.needReadable=!0),Pr!==Ne&&Xe.ended&&_d(this)),Gr!==null&&!Xe.errorEmitted&&!Xe.closeEmitted&&(Xe.dataEmitted=!0,this.emit("data",Gr)),Gr};function G(Ne,Xe){if(X("onEofChunk"),!Xe.ended){if(Xe.decoder){const Pr=Xe.decoder.end();Pr&&Pr.length&&(Xe.buffer.push(Pr),Xe.length+=Xe.objectMode?1:Pr.length)}Xe.ended=!0,Xe.sync?Y(Ne):(Xe.needReadable=!1,Xe.emittedReadable=!0,De(Ne))}}function Y(Ne){const Xe=Ne._readableState;X("emitReadable",Xe.needReadable,Xe.emittedReadable),Xe.needReadable=!1,Xe.emittedReadable||(X("emitReadable",Xe.flowing),Xe.emittedReadable=!0,r.nextTick(De,Ne))}function De(Ne){const Xe=Ne._readableState;X("emitReadable_",Xe.destroyed,Xe.length,Xe.ended),!Xe.destroyed&&!Xe.errored&&(Xe.length||Xe.ended)&&(Ne.emit("readable"),Xe.emittedReadable=!1),Xe.needReadable=!Xe.flowing&&!Xe.ended&&Xe.length<=Xe.highWaterMark,zs(Ne)}function gt(Ne,Xe){!Xe.readingMore&&Xe.constructed&&(Xe.readingMore=!0,r.nextTick(Kt,Ne,Xe))}function Kt(Ne,Xe){for(;!Xe.reading&&!Xe.ended&&(Xe.length1&&Cr.pipes.includes(Ne)&&(X("false write response, pause",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.add(Ne)),Pr.pause()),mb||(mb=Ut(Pr,Ne),Ne.on("drain",mb))}Pr.on("data",wy);function wy(Qg){X("ondata");const zp=Ne.write(Qg);X("dest.write",zp),zp===!1&&j1()}function uk(Qg){if(X("onerror",Qg),Fp(),Ne.removeListener("error",uk),Ne.listenerCount("error")===0){const zp=Ne._writableState||Ne._readableState;zp&&!zp.errorEmitted?kn(Ne,Qg):Ne.emit("error",Qg)}}K(Ne,"error",uk);function j3(){Ne.removeListener("finish",ak),Fp()}Ne.once("close",j3);function ak(){X("onfinish"),Ne.removeListener("close",j3),Fp()}Ne.once("finish",ak);function Fp(){X("unpipe"),Pr.unpipe(Ne)}return Ne.emit("pipe",Pr),Ne.writableNeedDrain===!0?j1():Cr.flowing||(X("pipe resume"),Pr.resume()),Ne};function Ut(Ne,Xe){return function(){const Cr=Ne._readableState;Cr.awaitDrainWriters===Xe?(X("pipeOnDrain",1),Cr.awaitDrainWriters=null):Cr.multiAwaitDrain&&(X("pipeOnDrain",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.delete(Xe)),(!Cr.awaitDrainWriters||Cr.awaitDrainWriters.size===0)&&Ne.listenerCount("data")&&Ne.resume()}}Ct.prototype.unpipe=function(Ne){const Xe=this._readableState,Pr={hasUnpiped:!1};if(Xe.pipes.length===0)return this;if(!Ne){const Gr=Xe.pipes;Xe.pipes=[],this.pause();for(let lu=0;lu0,Cr.flowing!==!1&&this.resume()):Ne==="readable"&&!Cr.endEmitted&&!Cr.readableListening&&(Cr.readableListening=Cr.needReadable=!0,Cr.flowing=!1,Cr.emittedReadable=!1,X("on readable",Cr.length,Cr.reading),Cr.length?Y(this):Cr.reading||r.nextTick(rl,this)),Pr},Ct.prototype.addListener=Ct.prototype.on,Ct.prototype.removeListener=function(Ne,Xe){const Pr=j.prototype.removeListener.call(this,Ne,Xe);return Ne==="readable"&&r.nextTick(so,this),Pr},Ct.prototype.off=Ct.prototype.removeListener,Ct.prototype.removeAllListeners=function(Ne){const Xe=j.prototype.removeAllListeners.apply(this,arguments);return(Ne==="readable"||Ne===void 0)&&r.nextTick(so,this),Xe};function so(Ne){const Xe=Ne._readableState;Xe.readableListening=Ne.listenerCount("readable")>0,Xe.resumeScheduled&&Xe[ft]===!1?Xe.flowing=!0:Ne.listenerCount("data")>0?Ne.resume():Xe.readableListening||(Xe.flowing=null)}function rl(Ne){X("readable nexttick read 0"),Ne.read(0)}Ct.prototype.resume=function(){const Ne=this._readableState;return Ne.flowing||(X("resume"),Ne.flowing=!Ne.readableListening,Ro(this,Ne)),Ne[ft]=!1,this};function Ro(Ne,Xe){Xe.resumeScheduled||(Xe.resumeScheduled=!0,r.nextTick(Ao,Ne,Xe))}function Ao(Ne,Xe){X("resume",Xe.reading),Xe.reading||Ne.read(0),Xe.resumeScheduled=!1,Ne.emit("resume"),zs(Ne),Xe.flowing&&!Xe.reading&&Ne.read(0)}Ct.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ft]=!0,this};function zs(Ne){const Xe=Ne._readableState;for(X("flow",Xe.flowing);Xe.flowing&&Ne.read()!==null;);}Ct.prototype.wrap=function(Ne){let Xe=!1;Ne.on("data",Cr=>{!this.push(Cr)&&Ne.pause&&(Xe=!0,Ne.pause())}),Ne.on("end",()=>{this.push(null)}),Ne.on("error",Cr=>{kn(this,Cr)}),Ne.on("close",()=>{this.destroy()}),Ne.on("destroy",()=>{this.destroy()}),this._read=()=>{Xe&&Ne.resume&&(Xe=!1,Ne.resume())};const Pr=w(Ne);for(let Cr=1;Cr{Gr=Rd?bt(Gr,Rd):null,Pr(),Pr=un});try{for(;;){const Rd=Ne.destroyed?null:Ne.read();if(Rd!==null)yield Rd;else{if(Gr)throw Gr;if(Gr===null)return;await new S(Cr)}}}catch(Rd){throw Gr=bt(Gr,Rd),Gr}finally{(Gr||(Xe==null?void 0:Xe.destroyOnReturn)!==!1)&&(Gr===void 0||Ne._readableState.autoDestroy)?je.destroyer(Ne,null):(Ne.off("readable",Cr),lu())}}g(Ct.prototype,{readable:{__proto__:null,get(){const Ne=this._readableState;return!!Ne&&Ne.readable!==!1&&!Ne.destroyed&&!Ne.errorEmitted&&!Ne.endEmitted},set(Ne){this._readableState&&(this._readableState.readable=!!Ne)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ne){this._readableState&&(this._readableState.flowing=Ne)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Ne){this._readableState&&(this._readableState.destroyed=Ne)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),g(tn.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ft]!==!1},set(Ne){this[ft]=!!Ne}}}),Ct._fromList=L3;function L3(Ne,Xe){if(Xe.length===0)return null;let Pr;return Xe.objectMode?Pr=Xe.buffer.shift():!Ne||Ne>=Xe.length?(Xe.decoder?Pr=Xe.buffer.join(""):Xe.buffer.length===1?Pr=Xe.buffer.first():Pr=Xe.buffer.concat(Xe.length),Xe.buffer.clear()):Pr=Xe.buffer.consume(Ne,Xe.decoder),Pr}function _d(Ne){const Xe=Ne._readableState;X("endReadable",Xe.endEmitted),Xe.endEmitted||(Xe.ended=!0,r.nextTick(YC,Xe,Ne))}function YC(Ne,Xe){if(X("endReadableNT",Ne.endEmitted,Ne.length),!Ne.errored&&!Ne.closeEmitted&&!Ne.endEmitted&&Ne.length===0){if(Ne.endEmitted=!0,Xe.emit("end"),Xe.writable&&Xe.allowHalfOpen===!1)r.nextTick(sT,Xe);else if(Ne.autoDestroy){const Pr=Xe._writableState;(!Pr||Pr.autoDestroy&&(Pr.finished||Pr.writable===!1))&&Xe.destroy()}}}function sT(Ne){Ne.writable&&!Ne.writableEnded&&!Ne.destroyed&&Ne.end()}Ct.from=function(Ne,Xe){return Jt(Ct,Ne,Xe)};let $1;function JC(){return $1===void 0&&($1={}),$1}return Ct.fromWeb=function(Ne,Xe){return JC().newStreamReadableFromReadableStream(Ne,Xe)},Ct.toWeb=function(Ne,Xe){return JC().newReadableStreamFromStreamReadable(Ne,Xe)},Ct.wrap=function(Ne,Xe){var Pr,Cr;return new Ct({objectMode:(Pr=(Cr=Ne.readableObjectMode)!==null&&Cr!==void 0?Cr:Ne.objectMode)!==null&&Pr!==void 0?Pr:!0,...Xe,destroy(Gr,lu){je.destroyer(Ne,Gr),lu(Gr)}}).wrap(Ne)},nCe}var rCe,H5t;function k9e(){if(H5t)return rCe;H5t=1;const r=GC,{ArrayPrototypeSlice:o,Error:l,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:p,ObjectDefineProperties:g,ObjectSetPrototypeOf:w,StringPrototypeToLowerCase:y,Symbol:S,SymbolHasInstance:E}=qa;rCe=yt,yt.WritableState=U;const{EventEmitter:I}=F_,M=v9e.Stream,{Buffer:_}=dm,R=H_,{addAbortSignal:j}=lie,{getHighWaterMark:K,getDefaultHighWaterMark:q}=cie,{ERR_INVALID_ARG_TYPE:Q,ERR_METHOD_NOT_IMPLEMENTED:Z,ERR_MULTIPLE_CALLBACK:X,ERR_STREAM_CANNOT_PIPE:ie,ERR_STREAM_DESTROYED:je,ERR_STREAM_ALREADY_FINISHED:et,ERR_STREAM_NULL_VALUES:mt,ERR_STREAM_WRITE_AFTER_END:bt,ERR_UNKNOWN_ENCODING:ce}=Yg.codes,{errorOrDestroy:Be}=R;w(yt.prototype,M.prototype),w(yt,M);function ae(){}const xe=S("kOnFinished");function U(ee,V,oe){typeof oe!="boolean"&&(oe=V instanceof X6()),this.objectMode=!!(ee&&ee.objectMode),oe&&(this.objectMode=this.objectMode||!!(ee&&ee.writableObjectMode)),this.highWaterMark=ee?K(this,ee,"writableHighWaterMark",oe):q(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ue=!!(ee&&ee.decodeStrings===!1);this.decodeStrings=!ue,this.defaultEncoding=ee&&ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=kn.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,He(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!ee||ee.emitClose!==!1,this.autoDestroy=!ee||ee.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[xe]=[]}function He(ee){ee.buffered=[],ee.bufferedIndex=0,ee.allBuffers=!0,ee.allNoop=!0}U.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},p(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function yt(ee){const V=this instanceof X6();if(!V&&!a(yt,this))return new yt(ee);this._writableState=new U(ee,this,V),ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final),typeof ee.construct=="function"&&(this._construct=ee.construct),ee.signal&&j(ee.signal,this)),M.call(this,ee),R.construct(this,()=>{const oe=this._writableState;oe.writing||an(this,oe),Xt(this,oe)})}p(yt,E,{__proto__:null,value:function(ee){return a(this,ee)?!0:this!==yt?!1:ee&&ee._writableState instanceof U}}),yt.prototype.pipe=function(){Be(this,new ie)};function ft(ee,V,oe,ue){const ge=ee._writableState;if(typeof oe=="function")ue=oe,oe=ge.defaultEncoding;else{if(!oe)oe=ge.defaultEncoding;else if(oe!=="buffer"&&!_.isEncoding(oe))throw new ce(oe);typeof ue!="function"&&(ue=ae)}if(V===null)throw new mt;if(!ge.objectMode)if(typeof V=="string")ge.decodeStrings!==!1&&(V=_.from(V,oe),oe="buffer");else if(V instanceof _)oe="buffer";else if(M._isUint8Array(V))V=M._uint8ArrayToBuffer(V),oe="buffer";else throw new Q("chunk",["string","Buffer","Uint8Array"],V);let Ge;return ge.ending?Ge=new bt:ge.destroyed&&(Ge=new je("write")),Ge?(r.nextTick(ue,Ge),Be(ee,Ge,!0),Ge):(ge.pendingcb++,At(ee,ge,V,oe,ue))}yt.prototype.write=function(ee,V,oe){return ft(this,ee,V,oe)===!0},yt.prototype.cork=function(){this._writableState.corked++},yt.prototype.uncork=function(){const ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||an(this,ee))},yt.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=y(V)),!_.isEncoding(V))throw new ce(V);return this._writableState.defaultEncoding=V,this};function At(ee,V,oe,ue,ge){const Ge=V.objectMode?1:oe.length;V.length+=Ge;const $t=V.lengthoe.bufferedIndex&&an(ee,oe),ue?oe.afterWriteTickInfo!==null&&oe.afterWriteTickInfo.cb===ge?oe.afterWriteTickInfo.count++:(oe.afterWriteTickInfo={count:1,cb:ge,stream:ee,state:oe},r.nextTick(qt,oe.afterWriteTickInfo)):on(ee,oe,1,ge))}function qt({stream:ee,state:V,count:oe,cb:ue}){return V.afterWriteTickInfo=null,on(ee,V,oe,ue)}function on(ee,V,oe,ue){for(!V.ending&&!ee.destroyed&&V.length===0&&V.needDrain&&(V.needDrain=!1,ee.emit("drain"));oe-- >0;)V.pendingcb--,ue();V.destroyed&&Rt(V),Xt(ee,V)}function Rt(ee){if(ee.writing)return;for(let ge=ee.bufferedIndex;ge1&&ee._writev){V.pendingcb-=Ge-1;const Lt=V.allNoop?ae:Ct=>{for(let Kn=$t;Kn256?(oe.splice(0,$t),V.bufferedIndex=0):V.bufferedIndex=$t}V.bufferProcessing=!1}yt.prototype._write=function(ee,V,oe){if(this._writev)this._writev([{chunk:ee,encoding:V}],oe);else throw new Z("_write()")},yt.prototype._writev=null,yt.prototype.end=function(ee,V,oe){const ue=this._writableState;typeof ee=="function"?(oe=ee,ee=null,V=null):typeof V=="function"&&(oe=V,V=null);let ge;if(ee!=null){const Ge=ft(this,ee,V);Ge instanceof l&&(ge=Ge)}return ue.corked&&(ue.corked=1,this.uncork()),ge||(!ue.errored&&!ue.ending?(ue.ending=!0,Xt(this,ue,!0),ue.ended=!0):ue.finished?ge=new et("end"):ue.destroyed&&(ge=new je("end"))),typeof oe=="function"&&(ge||ue.finished?r.nextTick(oe,ge):ue[xe].push(oe)),this};function Zn(ee){return ee.ending&&!ee.destroyed&&ee.constructed&&ee.length===0&&!ee.errored&&ee.buffered.length===0&&!ee.finished&&!ee.writing&&!ee.errorEmitted&&!ee.closeEmitted}function kt(ee,V){let oe=!1;function ue(ge){if(oe){Be(ee,ge??X());return}if(oe=!0,V.pendingcb--,ge){const Ge=V[xe].splice(0);for(let $t=0;$t{Zn(ge)?Mn(ue,ge):ge.pendingcb--},ee,V)):Zn(V)&&(V.pendingcb++,Mn(ee,V))))}function Mn(ee,V){V.pendingcb--,V.finished=!0;const oe=V[xe].splice(0);for(let ue=0;ue{if(Rt!=null)throw new j("nully","body",Rt)},Rt=>{K(qt,Rt)});return qt=new ce({objectMode:!0,readable:!1,write:At,final(Rt){Jt(async()=>{try{await on,r.nextTick(Rt,null)}catch(an){r.nextTick(Rt,an)}})},destroy:un})}throw new j("Iterable, AsyncIterable or AsyncFunction",He,ft)}if(et(U))return xe(U.arrayBuffer());if(p(U))return ie(ce,U,{objectMode:!0,writable:!1});if(E(U==null?void 0:U.readable)&&I(U==null?void 0:U.writable))return ce.fromWeb(U);if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const ft=U!=null&&U.readable?w(U==null?void 0:U.readable)?U==null?void 0:U.readable:xe(U.readable):void 0,At=U!=null&&U.writable?y(U==null?void 0:U.writable)?U==null?void 0:U.writable:xe(U.writable):void 0;return ae({readable:ft,writable:At})}const yt=U==null?void 0:U.then;if(typeof yt=="function"){let ft;return bt(yt,U,At=>{At!=null&&ft.push(At),ft.push(null)},At=>{K(ft,At)}),ft=new ce({objectMode:!0,writable:!1,read(){}})}throw new R(He,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function Be(xe){let{promise:U,resolve:He}=X();const yt=new mt,ft=yt.signal;return{value:xe(async function*(){for(;;){const Jt=U;U=null;const{chunk:un,done:kn,cb:qt}=await Jt;if(r.nextTick(qt),kn)return;if(ft.aborted)throw new _(void 0,{cause:ft.reason});({promise:U,resolve:He}=X()),yield un}}(),{signal:ft}),write(Jt,un,kn){const qt=He;He=null,qt({chunk:Jt,done:!1,cb:kn})},final(Jt){const un=He;He=null,un({done:!0,cb:Jt})},destroy(Jt,un){yt.abort(),un(Jt)}}}function ae(xe){const U=xe.readable&&typeof xe.readable.read!="function"?Q.wrap(xe.readable):xe.readable,He=xe.writable;let yt=!!l(U),ft=!!a(He),At,Jt,un,kn,qt;function on(Rt){const an=kn;kn=null,an?an(Rt):Rt&&qt.destroy(Rt)}return qt=new ce({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(He!=null&&He.writableObjectMode),readable:yt,writable:ft}),ft&&(M(He,Rt=>{ft=!1,Rt&&K(U,Rt),on(Rt)}),qt._write=function(Rt,an,Zn){He.write(Rt,an)?Zn():At=Zn},qt._final=function(Rt){He.end(),Jt=Rt},He.on("drain",function(){if(At){const Rt=At;At=null,Rt()}}),He.on("finish",function(){if(Jt){const Rt=Jt;Jt=null,Rt()}})),yt&&(M(U,Rt=>{yt=!1,Rt&&K(U,Rt),on(Rt)}),U.on("readable",function(){if(un){const Rt=un;un=null,Rt()}}),U.on("end",function(){qt.push(null)}),qt._read=function(){for(;;){const Rt=U.read();if(Rt===null){un=qt._read;return}if(!qt.push(Rt))return}}),qt._destroy=function(Rt,an){!Rt&&kn!==null&&(Rt=new _),un=null,At=null,Jt=null,kn===null?an(Rt):(kn=an,K(He,Rt),K(U,Rt))},qt}return iCe}var oCe,U5t;function X6(){if(U5t)return oCe;U5t=1;const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:l,ObjectSetPrototypeOf:a}=qa;oCe=w;const p=uie(),g=k9e();a(w.prototype,p.prototype),a(w,p);{const I=l(g.prototype);for(let M=0;M{if(o){r?r(o):this.destroy(o);return}l!=null&&this.push(l),this.push(null),r&&r()}):(this.push(null),r&&r())}function byn(){this._final!==A7e&&A7e.call(this)}Y6.prototype._final=A7e;Y6.prototype._transform=function(r,o,l){throw new pyn("_transform()")};Y6.prototype._write=function(r,o,l){const a=this._readableState,p=this._writableState,g=a.length;this._transform(r,o,(w,y)=>{if(w){l(w);return}y!=null&&this.push(y),p.ended||g===a.length||a.length{a=!0});const p=ore(r,{readable:o,writable:l},g=>{a=!g});return{destroy:g=>{a||(a=!0,Cyn.destroyer(r,g||new Eyn("pipe")))},cleanup:p}}function Ayn(r){return Pyn(r[r.length-1],"streams[stream.length - 1]"),r.pop()}function dCe(r){if(dE(r))return r;if(Tne(r))return Lyn(r);throw new L7e("val",["Readable","Iterable","AsyncIterable"],r)}async function*Lyn(r){aCe||(aCe=uie()),yield*aCe.prototype[vyn].call(r)}async function Vte(r,o,l,{end:a}){let p,g=null;const w=E=>{if(E&&(p=E),g){const I=g;g=null,I()}},y=()=>new myn((E,I)=>{p?I(p):g=()=>{p?I(p):E()}});o.on("drain",w);const S=ore(o,{readable:!1},w);try{o.writableNeedDrain&&await y();for await(const E of r)o.write(E)||await y();a&&(o.end(),await y()),l()}catch(E){l(p!==E?Syn(p,E):E)}finally{S(),o.off("drain",w)}}async function hCe(r,o,l,{end:a}){UO(o)&&(o=o.writable);const p=o.getWriter();try{for await(const g of r)await p.ready,p.write(g).catch(()=>{});await p.ready,a&&await p.close(),l()}catch(g){try{await p.abort(g),l(g)}catch(w){l(w)}}}function $yn(...r){return Nxt(r,kyn(Ayn(r)))}function Nxt(r,o,l){if(r.length===1&&wyn(r[0])&&(r=r[0]),r.length<2)throw new xyn("streams");const a=new Ryn,p=a.signal,g=l==null?void 0:l.signal,w=[];Myn(g,"options.signal");function y(){j(new Iyn)}fCe=fCe||Np.addAbortListener;let S;g&&(S=fCe(g,y));let E,I;const M=[];let _=0;function R(Z){j(Z,--_===0)}function j(Z,X){var ie;if(Z&&(!E||E.code==="ERR_STREAM_PREMATURE_CLOSE")&&(E=Z),!(!E&&!X)){for(;M.length;)M.shift()(E);(ie=S)===null||ie===void 0||ie[yyn](),a.abort(),X&&(E||w.forEach(je=>je()),yF.nextTick(o,E,I))}}let K;for(let Z=0;Z0,et=ie||(l==null?void 0:l.end)!==!1,mt=Z===r.length-1;if(W5t(X)){let bt=function(ce){ce&&ce.name!=="AbortError"&&ce.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(ce)};if(et){const{destroy:ce,cleanup:Be}=V5t(X,ie,je);M.push(ce),lCe(X)&&mt&&w.push(Be)}X.on("error",bt),lCe(X)&&mt&&w.push(()=>{X.removeListener("error",bt)})}if(Z===0)if(typeof X=="function"){if(K=X({signal:p}),!dE(K))throw new sCe("Iterable, AsyncIterable or Stream","source",K)}else dE(X)||Tne(X)||UO(X)?K=X:K=G5t.from(X);else if(typeof X=="function"){if(UO(K)){var q;K=dCe((q=K)===null||q===void 0?void 0:q.readable)}else K=dCe(K);if(K=X(K,{signal:p}),ie){if(!dE(K,!0))throw new sCe("AsyncIterable",`transform[${Z-1}]`,K)}else{var Q;uCe||(uCe=Dxt);const bt=new uCe({objectMode:!0}),ce=(Q=K)===null||Q===void 0?void 0:Q.then;if(typeof ce=="function")_++,ce.call(K,xe=>{I=xe,xe!=null&&bt.write(xe),et&&bt.end(),yF.nextTick(R)},xe=>{bt.destroy(xe),yF.nextTick(R,xe)});else if(dE(K,!0))_++,Vte(K,bt,R,{end:et});else if(cCe(K)||UO(K)){const xe=K.readable||K;_++,Vte(xe,bt,R,{end:et})}else throw new sCe("AsyncIterable or Promise","destination",K);K=bt;const{destroy:Be,cleanup:ae}=V5t(K,!1,!0);M.push(Be),mt&&w.push(ae)}}else if(W5t(X)){if(Tne(K)){_+=2;const bt=jyn(K,X,R,{end:et});lCe(X)&&mt&&w.push(bt)}else if(UO(K)||cCe(K)){const bt=K.readable||K;_++,Vte(bt,X,R,{end:et})}else if(dE(K))_++,Vte(K,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else if(Oyn(X)){if(Tne(K))_++,hCe(dCe(K),X,R,{end:et});else if(cCe(K)||dE(K))_++,hCe(K,X,R,{end:et});else if(UO(K))_++,hCe(K.readable,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else K=G5t.from(X)}return(p!=null&&p.aborted||g!=null&&g.aborted)&&yF.nextTick(y),K}function jyn(r,o,l,{end:a}){let p=!1;if(o.on("close",()=>{p||l(new Tyn)}),r.pipe(o,{end:!1}),a){let g=function(){p=!0,o.end()};_yn(r)?yF.nextTick(g):r.once("end",g)}else l();return ore(r,{readable:!0,writable:!1},g=>{const w=r._readableState;g&&g.code==="ERR_STREAM_PREMATURE_CLOSE"&&w&&w.ended&&!w.errored&&!w.errorEmitted?r.once("end",l).once("error",l):l(g)}),ore(o,{readable:!1,writable:!0},l)}var x9e={pipelineImpl:Nxt,pipeline:$yn};const{pipeline:Dyn}=x9e,qte=X6(),{destroyer:Nyn}=H_,{isNodeStream:Xte,isReadable:q5t,isWritable:X5t,isWebStream:pCe,isTransformStream:iE,isWritableStream:Y5t,isReadableStream:J5t}=sk,{AbortError:Byn,codes:{ERR_INVALID_ARG_VALUE:Q5t,ERR_MISSING_ARGS:Fyn}}=Yg,zyn=WC;var Bxt=function(...o){if(o.length===0)throw new Fyn("streams");if(o.length===1)return qte.from(o[0]);const l=[...o];if(typeof o[0]=="function"&&(o[0]=qte.from(o[0])),typeof o[o.length-1]=="function"){const R=o.length-1;o[R]=qte.from(o[R])}for(let R=0;R0&&!(X5t(o[R])||Y5t(o[R])||iE(o[R])))throw new Q5t(`streams[${R}]`,l[R],"must be writable")}let a,p,g,w,y;function S(R){const j=w;w=null,j?j(R):R?y.destroy(R):!_&&!M&&y.destroy()}const E=o[0],I=Dyn(o,S),M=!!(X5t(E)||Y5t(E)||iE(E)),_=!!(q5t(I)||J5t(I)||iE(I));if(y=new qte({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!(I!=null&&I.readableObjectMode),writable:M,readable:_}),M){if(Xte(E))y._write=function(j,K,q){E.write(j,K)?q():a=q},y._final=function(j){E.end(),p=j},E.on("drain",function(){if(a){const j=a;a=null,j()}});else if(pCe(E)){const K=(iE(E)?E.writable:E).getWriter();y._write=async function(q,Q,Z){try{await K.ready,K.write(q).catch(()=>{}),Z()}catch(X){Z(X)}},y._final=async function(q){try{await K.ready,K.close().catch(()=>{}),p=q}catch(Q){q(Q)}}}const R=iE(I)?I.readable:I;zyn(R,()=>{if(p){const j=p;p=null,j()}})}if(_){if(Xte(I))I.on("readable",function(){if(g){const R=g;g=null,R()}}),I.on("end",function(){y.push(null)}),y._read=function(){for(;;){const R=I.read();if(R===null){g=y._read;return}if(!y.push(R))return}};else if(pCe(I)){const j=(iE(I)?I.readable:I).getReader();y._read=async function(){for(;;)try{const{value:K,done:q}=await j.read();if(!y.push(K))return;if(q){y.push(null);return}}catch{return}}}}return y._destroy=function(R,j){!R&&w!==null&&(R=new Byn),g=null,a=null,p=null,w===null?j(R):(w=j,Xte(I)&&Nyn(I,R))},y};const Hyn=globalThis.AbortController||xz().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Kyn,ERR_INVALID_ARG_TYPE:EH,ERR_MISSING_ARGS:Uyn,ERR_OUT_OF_RANGE:Gyn},AbortError:x3}=Yg,{validateAbortSignal:XE,validateInteger:Z5t,validateObject:YE}=SH,Wyn=qa.Symbol("kWeak"),Vyn=qa.Symbol("kResistStopPropagation"),{finished:qyn}=WC,Xyn=Bxt,{addAbortSignalNoValidate:Yyn}=lie,{isWritable:Jyn,isNodeStream:Qyn}=sk,{deprecate:Zyn}=Np,{ArrayPrototypePush:e2n,Boolean:t2n,MathFloor:e8t,Number:n2n,NumberIsNaN:r2n,Promise:t8t,PromiseReject:n8t,PromiseResolve:i2n,PromisePrototypeThen:r8t,Symbol:Fxt}=qa,sre=Fxt("kEmpty"),i8t=Fxt("kEof");function o2n(r,o){if(o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),Qyn(r)&&!Jyn(r))throw new Kyn("stream",r,"must be writable");const l=Xyn(this,r);return o!=null&&o.signal&&Yyn(o.signal,l),l}function aie(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal");let l=1;(o==null?void 0:o.concurrency)!=null&&(l=e8t(o.concurrency));let a=l-1;return(o==null?void 0:o.highWaterMark)!=null&&(a=e8t(o.highWaterMark)),Z5t(l,"options.concurrency",1),Z5t(a,"options.highWaterMark",0),a+=l,(async function*(){const g=Np.AbortSignalAny([o==null?void 0:o.signal].filter(t2n)),w=this,y=[],S={signal:g};let E,I,M=!1,_=0;function R(){M=!0,j()}function j(){_-=1,K()}function K(){I&&!M&&_=a||_>=l)&&await new t8t(Z=>{I=Z})}y.push(i8t)}catch(Q){const Z=n8t(Q);r8t(Z,j,R),y.push(Z)}finally{M=!0,E&&(E(),E=null)}}q();try{for(;;){for(;y.length>0;){const Q=await y[0];if(Q===i8t)return;if(g.aborted)throw new x3;Q!==sre&&(yield Q),y.shift(),K()}await new t8t(Q=>{E=Q})}}finally{M=!0,I&&(I(),I=null)}}).call(this)}function s2n(r=void 0){return r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal"),(async function*(){let l=0;for await(const p of this){var a;if(r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted)throw new x3({cause:r.signal.reason});yield[l++,p]}}).call(this)}async function zxt(r,o=void 0){for await(const l of E9e.call(this,r,o))return!0;return!1}async function l2n(r,o=void 0){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);return!await zxt.call(this,async(...l)=>!await r(...l),o)}async function c2n(r,o){for await(const l of E9e.call(this,r,o))return l}async function u2n(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p),sre}for await(const a of aie.call(this,l,o));}function E9e(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p)?a:sre}return aie.call(this,l,o)}class a2n extends Uyn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function f2n(r,o,l){var a;if(typeof r!="function")throw new EH("reducer",["Function","AsyncFunction"],r);l!=null&&YE(l,"options"),(l==null?void 0:l.signal)!=null&&XE(l.signal,"options.signal");let p=arguments.length>1;if(l!=null&&(a=l.signal)!==null&&a!==void 0&&a.aborted){const E=new x3(void 0,{cause:l.signal.reason});throw this.once("error",()=>{}),await qyn(this.destroy(E)),E}const g=new Hyn,w=g.signal;if(l!=null&&l.signal){const E={once:!0,[Wyn]:this,[Vyn]:!0};l.signal.addEventListener("abort",()=>g.abort(),E)}let y=!1;try{for await(const E of this){var S;if(y=!0,l!=null&&(S=l.signal)!==null&&S!==void 0&&S.aborted)throw new x3;p?o=await r(o,E,{signal:w}):(o=E,p=!0)}if(!y&&!p)throw new a2n}finally{g.abort()}return o}async function d2n(r){r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal");const o=[];for await(const a of this){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new x3(void 0,{cause:r.signal.reason});e2n(o,a)}return o}function h2n(r,o){const l=aie.call(this,r,o);return(async function*(){for await(const p of l)yield*p}).call(this)}function Hxt(r){if(r=n2n(r),r2n(r))return 0;if(r<0)throw new Gyn("number",">= 0",r);return r}function p2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;r--<=0&&(yield g)}}).call(this)}function g2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;if(r-- >0&&(yield g),r<=0)return}}).call(this)}p9e.streamReturningOperators={asIndexedPairs:Zyn(s2n,"readable.asIndexedPairs will be removed in a future version."),drop:p2n,filter:E9e,flatMap:h2n,map:aie,take:g2n,compose:o2n};p9e.promiseReturningOperators={every:l2n,forEach:u2n,reduce:f2n,toArray:d2n,some:zxt,find:c2n};var gCe,o8t;function Kxt(){if(o8t)return gCe;o8t=1;const{ArrayPrototypePop:r,Promise:o}=qa,{isIterable:l,isNodeStream:a,isWebStream:p}=sk,{pipelineImpl:g}=x9e,{finished:w}=WC;Uxt();function y(...S){return new o((E,I)=>{let M,_;const R=S[S.length-1];if(R&&typeof R=="object"&&!a(R)&&!l(R)&&!p(R)){const j=r(S);M=j.signal,_=j.end}g(S,(j,K)=>{j?I(j):E(K)},{signal:M,end:_})})}return gCe={finished:w,pipeline:y},gCe}var s8t;function Uxt(){if(s8t)return Y8e.exports;s8t=1;const{Buffer:r}=dm,{ObjectDefineProperty:o,ObjectKeys:l,ReflectApply:a}=qa,{promisify:{custom:p}}=Np,{streamReturningOperators:g,promiseReturningOperators:w}=p9e,{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=Yg,S=Bxt,{setDefaultHighWaterMark:E,getDefaultHighWaterMark:I}=cie,{pipeline:M}=x9e,{destroyer:_}=H_,R=WC,j=Kxt(),K=sk,q=Y8e.exports=v9e.Stream;q.isDestroyed=K.isDestroyed,q.isDisturbed=K.isDisturbed,q.isErrored=K.isErrored,q.isReadable=K.isReadable,q.isWritable=K.isWritable,q.Readable=uie();for(const Z of l(g)){let ie=function(...je){if(new.target)throw y();return q.Readable.from(a(X,this,je))};const X=g[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}for(const Z of l(w)){let ie=function(...je){if(new.target)throw y();return a(X,this,je)};const X=w[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}q.Writable=k9e(),q.Duplex=X6(),q.Transform=$xt,q.PassThrough=Dxt,q.pipeline=M;const{addAbortSignal:Q}=lie;return q.addAbortSignal=Q,q.finished=R,q.destroy=_,q.compose=S,q.setDefaultHighWaterMark=E,q.getDefaultHighWaterMark=I,o(q,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),o(M,p,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),o(R,p,{__proto__:null,enumerable:!0,get(){return j.finished}}),q.Stream=q,q._isUint8Array=function(X){return X instanceof Uint8Array},q._uint8ArrayToBuffer=function(X){return r.from(X.buffer,X.byteOffset,X.byteLength)},Y8e.exports}(function(r){const o=Uxt(),l=Kxt(),a=o.Readable.destroy;r.exports=o.Readable,r.exports._uint8ArrayToBuffer=o._uint8ArrayToBuffer,r.exports._isUint8Array=o._isUint8Array,r.exports.isDisturbed=o.isDisturbed,r.exports.isErrored=o.isErrored,r.exports.isReadable=o.isReadable,r.exports.Readable=o.Readable,r.exports.Writable=o.Writable,r.exports.Duplex=o.Duplex,r.exports.Transform=o.Transform,r.exports.PassThrough=o.PassThrough,r.exports.addAbortSignal=o.addAbortSignal,r.exports.finished=o.finished,r.exports.destroy=o.destroy,r.exports.destroy=a,r.exports.pipeline=o.pipeline,r.exports.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get(){return l}}),r.exports.Stream=o.Stream,r.exports.default=r.exports})(z9t);var b2n=z9t.exports;class w2n{constructor(o,...l){this.load=F9t(async()=>{const a=await o();return new a(...l)})}import(o,l){const a=new b2n.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const g=(await this.load()).import(o,l);g.on("prefix",(w,y)=>{a.emit("prefix",w,y)}),g.on("error",w=>{a.emit("error",w),a.emit("end")}),g.pipe(a)}),a}}function pm(r){return class extends w2n{constructor(...o){super(r,...o)}}}const m2n=new tre,v2n=new tre,wb={parsers:m2n,serializers:v2n},y2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-d5GvA7NS.js");return{default:r}},__vite__mapDeps([0,1,2,3,4]))).default),TH=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-jd32SyoQ.js");return{default:r}},__vite__mapDeps([5,1,2,6]))).default),k2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomRdfXmlParser-BnFBQjMk.js");return{default:r}},__vite__mapDeps([7,3]))).default),fie=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-CpxM9Dlb.js");return{default:r}},__vite__mapDeps([8,1,2]))).default),C2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomJsonLdSerializer-DTZy0vPJ.js");return{default:r}},__vite__mapDeps([9,1]))).default);wb.parsers.set("application/ld+json",new y2n);wb.parsers.set("application/trig",new TH);wb.parsers.set("application/n-quads",new TH);wb.parsers.set("application/n-triples",new TH);wb.parsers.set("text/n3",new TH);wb.parsers.set("text/turtle",new TH);wb.parsers.set("application/rdf+xml",new k2n);wb.serializers.set("application/ld+json",new C2n);wb.serializers.set("application/n-quads",new fie);wb.serializers.set("application/n-triples",new fie);wb.serializers.set("text/n3",new fie);wb.serializers.set("text/turtle",new fie);var $7e={exports:{}},Gxt=F_.EventEmitter;const S2n={},x2n=Object.freeze(Object.defineProperty({__proto__:null,default:S2n},Symbol.toStringTag,{value:"Module"})),die=Rwn(x2n);var bCe,l8t;function E2n(){if(l8t)return bCe;l8t=1;function r(j,K){var q=Object.keys(j);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(j);K&&(Q=Q.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),q.push.apply(q,Q)}return q}function o(j){for(var K=1;K0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(q){var Q={data:q,next:this.head};this.length===0&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var Q=this.head,Z=""+Q.data;Q=Q.next;)Z+=q+Q.data;return Z}},{key:"concat",value:function(q){if(this.length===0)return E.alloc(0);for(var Q=E.allocUnsafe(q>>>0),Z=this.head,X=0;Z;)R(Z.data,Q,X),X+=Z.data.length,Z=Z.next;return Q}},{key:"consume",value:function(q,Q){var Z;return qie.length?ie.length:q;if(je===ie.length?X+=ie:X+=ie.slice(0,q),q-=je,q===0){je===ie.length?(++Z,Q.next?this.head=Q.next:this.head=this.tail=null):(this.head=Q,Q.data=ie.slice(je));break}++Z}return this.length-=Z,X}},{key:"_getBuffer",value:function(q){var Q=E.allocUnsafe(q),Z=this.head,X=1;for(Z.data.copy(Q),q-=Z.data.length;Z=Z.next;){var ie=Z.data,je=q>ie.length?ie.length:q;if(ie.copy(Q,Q.length-q,0,je),q-=je,q===0){je===ie.length?(++X,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=ie.slice(je));break}++X}return this.length-=X,Q}},{key:_,value:function(q,Q){return M(this,o(o({},Q),{},{depth:0,customInspect:!1}))}}]),j}(),bCe}function T2n(r,o){var l=this,a=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return a||p?(o?o(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Uc.nextTick(j7e,this,r)):Uc.nextTick(j7e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(g){!o&&g?l._writableState?l._writableState.errorEmitted?Uc.nextTick(Ine,l):(l._writableState.errorEmitted=!0,Uc.nextTick(c8t,l,g)):Uc.nextTick(c8t,l,g):o?(Uc.nextTick(Ine,l),o(g)):Uc.nextTick(Ine,l)}),this)}function c8t(r,o){j7e(r,o),Ine(r)}function Ine(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function I2n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function j7e(r,o){r.emit("error",o)}function P2n(r,o){var l=r._readableState,a=r._writableState;l&&l.autoDestroy||a&&a.autoDestroy?r.destroy(o):r.emit("error",o)}var Wxt={destroy:T2n,undestroy:I2n,errorOrDestroy:P2n},JE={};function M2n(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o}var Vxt={};function gm(r,o,l){l||(l=Error);function a(g,w,y){return typeof o=="string"?o:o(g,w,y)}var p=function(g){M2n(w,g);function w(y,S,E){return g.call(this,a(y,S,E))||this}return w}(l);p.prototype.name=l.name,p.prototype.code=r,Vxt[r]=p}function u8t(r,o){if(Array.isArray(r)){var l=r.length;return r=r.map(function(a){return String(a)}),l>2?"one of ".concat(o," ").concat(r.slice(0,l-1).join(", "),", or ")+r[l-1]:l===2?"one of ".concat(o," ").concat(r[0]," or ").concat(r[1]):"of ".concat(o," ").concat(r[0])}else return"of ".concat(o," ").concat(String(r))}function O2n(r,o,l){return r.substr(0,o.length)===o}function _2n(r,o,l){return(l===void 0||l>r.length)&&(l=r.length),r.substring(l-o.length,l)===o}function R2n(r,o,l){return typeof l!="number"&&(l=0),l+o.length>r.length?!1:r.indexOf(o,l)!==-1}gm("ERR_INVALID_OPT_VALUE",function(r,o){return'The value "'+o+'" is invalid for option "'+r+'"'},TypeError);gm("ERR_INVALID_ARG_TYPE",function(r,o,l){var a;typeof o=="string"&&O2n(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var p;if(_2n(r," argument"))p="The ".concat(r," ").concat(a," ").concat(u8t(o,"type"));else{var g=R2n(r,".")?"property":"argument";p='The "'.concat(r,'" ').concat(g," ").concat(a," ").concat(u8t(o,"type"))}return p+=". Received type ".concat(typeof l),p},TypeError);gm("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");gm("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});gm("ERR_STREAM_PREMATURE_CLOSE","Premature close");gm("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});gm("ERR_MULTIPLE_CALLBACK","Callback called multiple times");gm("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");gm("ERR_STREAM_WRITE_AFTER_END","write after end");gm("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);gm("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);gm("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");JE.codes=Vxt;var A2n=JE.codes.ERR_INVALID_OPT_VALUE;function L2n(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function $2n(r,o,l,a){var p=L2n(o,a,l);if(p!=null){if(!(isFinite(p)&&Math.floor(p)===p)||p<0){var g=a?l:"highWaterMark";throw new A2n(g,p)}return Math.floor(p)}return r.objectMode?16:16*1024}var qxt={getHighWaterMark:$2n},D7e={exports:{}};typeof Object.create=="function"?D7e.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:D7e.exports=function(o,l){if(l){o.super_=l;var a=function(){};a.prototype=l.prototype,o.prototype=new a,o.prototype.constructor=o}};var IH=D7e.exports,j2n=D2n;function D2n(r,o){if(wCe("noDeprecation"))return r;var l=!1;function a(){if(!l){if(wCe("throwDeprecation"))throw new Error(o);wCe("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return r.apply(this,arguments)}return a}function wCe(r){try{if(!window.localStorage)return!1}catch{return!1}var o=window.localStorage[r];return o==null?!1:String(o).toLowerCase()==="true"}var mCe,a8t;function Xxt(){if(a8t)return mCe;a8t=1,mCe=bt;function r(kt){var Ze=this;this.next=null,this.entry=null,this.finish=function(){Zn(Ze,kt)}}var o;bt.WritableState=et;var l={deprecate:j2n},a=Gxt,p=dm.Buffer,g=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function w(kt){return p.from(kt)}function y(kt){return p.isBuffer(kt)||kt instanceof g}var S=Wxt,E=qxt,I=E.getHighWaterMark,M=JE.codes,_=M.ERR_INVALID_ARG_TYPE,R=M.ERR_METHOD_NOT_IMPLEMENTED,j=M.ERR_MULTIPLE_CALLBACK,K=M.ERR_STREAM_CANNOT_PIPE,q=M.ERR_STREAM_DESTROYED,Q=M.ERR_STREAM_NULL_VALUES,Z=M.ERR_STREAM_WRITE_AFTER_END,X=M.ERR_UNKNOWN_ENCODING,ie=S.errorOrDestroy;IH(bt,a);function je(){}function et(kt,Ze,Xt){o=o||x_(),kt=kt||{},typeof Xt!="boolean"&&(Xt=Ze instanceof o),this.objectMode=!!kt.objectMode,Xt&&(this.objectMode=this.objectMode||!!kt.writableObjectMode),this.highWaterMark=I(this,kt,"writableHighWaterMark",Xt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Mn=kt.decodeStrings===!1;this.decodeStrings=!Mn,this.defaultEncoding=kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pr){ft(Ze,pr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=kt.emitClose!==!1,this.autoDestroy=!!kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}et.prototype.getBuffer=function(){for(var Ze=this.bufferedRequest,Xt=[];Ze;)Xt.push(Ze),Ze=Ze.next;return Xt},function(){try{Object.defineProperty(et.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var mt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mt=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(Ze){return mt.call(this,Ze)?!0:this!==bt?!1:Ze&&Ze._writableState instanceof et}})):mt=function(Ze){return Ze instanceof this};function bt(kt){o=o||x_();var Ze=this instanceof o;if(!Ze&&!mt.call(bt,this))return new bt(kt);this._writableState=new et(kt,this,Ze),this.writable=!0,kt&&(typeof kt.write=="function"&&(this._write=kt.write),typeof kt.writev=="function"&&(this._writev=kt.writev),typeof kt.destroy=="function"&&(this._destroy=kt.destroy),typeof kt.final=="function"&&(this._final=kt.final)),a.call(this)}bt.prototype.pipe=function(){ie(this,new K)};function ce(kt,Ze){var Xt=new Z;ie(kt,Xt),Uc.nextTick(Ze,Xt)}function Be(kt,Ze,Xt,Mn){var pr;return Xt===null?pr=new Q:typeof Xt!="string"&&!Ze.objectMode&&(pr=new _("chunk",["string","Buffer"],Xt)),pr?(ie(kt,pr),Uc.nextTick(Mn,pr),!1):!0}bt.prototype.write=function(kt,Ze,Xt){var Mn=this._writableState,pr=!1,ye=!Mn.objectMode&&y(kt);return ye&&!p.isBuffer(kt)&&(kt=w(kt)),typeof Ze=="function"&&(Xt=Ze,Ze=null),ye?Ze="buffer":Ze||(Ze=Mn.defaultEncoding),typeof Xt!="function"&&(Xt=je),Mn.ending?ce(this,Xt):(ye||Be(this,Mn,kt,Xt))&&(Mn.pendingcb++,pr=xe(this,Mn,ye,kt,Ze,Xt)),pr},bt.prototype.cork=function(){this._writableState.corked++},bt.prototype.uncork=function(){var kt=this._writableState;kt.corked&&(kt.corked--,!kt.writing&&!kt.corked&&!kt.bufferProcessing&&kt.bufferedRequest&&un(this,kt))},bt.prototype.setDefaultEncoding=function(Ze){if(typeof Ze=="string"&&(Ze=Ze.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ze+"").toLowerCase())>-1))throw new X(Ze);return this._writableState.defaultEncoding=Ze,this},Object.defineProperty(bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ae(kt,Ze,Xt){return!kt.objectMode&&kt.decodeStrings!==!1&&typeof Ze=="string"&&(Ze=p.from(Ze,Xt)),Ze}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function xe(kt,Ze,Xt,Mn,pr,ye){if(!Xt){var Ce=ae(Ze,Mn,pr);Mn!==Ce&&(Xt=!0,pr="buffer",Mn=Ce)}var ee=Ze.objectMode?1:Mn.length;Ze.length+=ee;var V=Ze.length0)if(typeof Ce!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ce)!==a.prototype&&(Ce=g(Ce)),V)ue.endEmitted?je(ye,new Q):ae(ye,ue,Ce,!0);else if(ue.ended)je(ye,new K);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!ee?(Ce=ue.decoder.write(Ce),ue.objectMode||Ce.length!==0?ae(ye,ue,Ce,!1):un(ye,ue)):ae(ye,ue,Ce,!1)}else V||(ue.reading=!1,un(ye,ue))}return!ue.ended&&(ue.length=U?ye=U:(ye--,ye|=ye>>>1,ye|=ye>>>2,ye|=ye>>>4,ye|=ye>>>8,ye|=ye>>>16,ye++),ye}function yt(ye,Ce){return ye<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:ye!==ye?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(ye>Ce.highWaterMark&&(Ce.highWaterMark=He(ye)),ye<=Ce.length?ye:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}ce.prototype.read=function(ye){S("read",ye),ye=parseInt(ye,10);var Ce=this._readableState,ee=ye;if(ye!==0&&(Ce.emittedReadable=!1),ye===0&&Ce.needReadable&&((Ce.highWaterMark!==0?Ce.length>=Ce.highWaterMark:Ce.length>0)||Ce.ended))return S("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?Xt(this):At(this),null;if(ye=yt(ye,Ce),ye===0&&Ce.ended)return Ce.length===0&&Xt(this),null;var V=Ce.needReadable;S("need readable",V),(Ce.length===0||Ce.length-ye0?oe=Ze(ye,Ce):oe=null,oe===null?(Ce.needReadable=Ce.length<=Ce.highWaterMark,ye=0):(Ce.length-=ye,Ce.awaitDrain=0),Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),ee!==ye&&Ce.ended&&Xt(this)),oe!==null&&this.emit("data",oe),oe};function ft(ye,Ce){if(S("onEofChunk"),!Ce.ended){if(Ce.decoder){var ee=Ce.decoder.end();ee&&ee.length&&(Ce.buffer.push(ee),Ce.length+=Ce.objectMode?1:ee.length)}Ce.ended=!0,Ce.sync?At(ye):(Ce.needReadable=!1,Ce.emittedReadable||(Ce.emittedReadable=!0,Jt(ye)))}}function At(ye){var Ce=ye._readableState;S("emitReadable",Ce.needReadable,Ce.emittedReadable),Ce.needReadable=!1,Ce.emittedReadable||(S("emitReadable",Ce.flowing),Ce.emittedReadable=!0,Uc.nextTick(Jt,ye))}function Jt(ye){var Ce=ye._readableState;S("emitReadable_",Ce.destroyed,Ce.length,Ce.ended),!Ce.destroyed&&(Ce.length||Ce.ended)&&(ye.emit("readable"),Ce.emittedReadable=!1),Ce.needReadable=!Ce.flowing&&!Ce.ended&&Ce.length<=Ce.highWaterMark,kt(ye)}function un(ye,Ce){Ce.readingMore||(Ce.readingMore=!0,Uc.nextTick(kn,ye,Ce))}function kn(ye,Ce){for(;!Ce.reading&&!Ce.ended&&(Ce.length1&&pr(V.pipes,ye)!==-1)&&!Lt&&(S("false write response, pause",V.awaitDrain),V.awaitDrain++),ee.pause())}function Kn(de){S("onerror",de),br(),ye.removeListener("error",Kn),o(ye,"error")===0&&je(ye,de)}mt(ye,"error",Kn);function dn(){ye.removeListener("finish",Rn),br()}ye.once("close",dn);function Rn(){S("onfinish"),ye.removeListener("close",dn),br()}ye.once("finish",Rn);function br(){S("unpipe"),ee.unpipe(ye)}return ye.emit("pipe",ee),V.flowing||(S("pipe resume"),ee.resume()),ye};function qt(ye){return function(){var ee=ye._readableState;S("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&o(ye,"data")&&(ee.flowing=!0,kt(ye))}}ce.prototype.unpipe=function(ye){var Ce=this._readableState,ee={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return ye&&ye!==Ce.pipes?this:(ye||(ye=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,ye&&ye.emit("unpipe",this,ee),this);if(!ye){var V=Ce.pipes,oe=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var ue=0;ue0,V.flowing!==!1&&this.resume()):ye==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,S("on readable",V.length,V.reading),V.length?At(this):V.reading||Uc.nextTick(Rt,this)),ee},ce.prototype.addListener=ce.prototype.on,ce.prototype.removeListener=function(ye,Ce){var ee=l.prototype.removeListener.call(this,ye,Ce);return ye==="readable"&&Uc.nextTick(on,this),ee},ce.prototype.removeAllListeners=function(ye){var Ce=l.prototype.removeAllListeners.apply(this,arguments);return(ye==="readable"||ye===void 0)&&Uc.nextTick(on,this),Ce};function on(ye){var Ce=ye._readableState;Ce.readableListening=ye.listenerCount("readable")>0,Ce.resumeScheduled&&!Ce.paused?Ce.flowing=!0:ye.listenerCount("data")>0&&ye.resume()}function Rt(ye){S("readable nexttick read 0"),ye.read(0)}ce.prototype.resume=function(){var ye=this._readableState;return ye.flowing||(S("resume"),ye.flowing=!ye.readableListening,an(this,ye)),ye.paused=!1,this};function an(ye,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,Uc.nextTick(Zn,ye,Ce))}function Zn(ye,Ce){S("resume",Ce.reading),Ce.reading||ye.read(0),Ce.resumeScheduled=!1,ye.emit("resume"),kt(ye),Ce.flowing&&!Ce.reading&&ye.read(0)}ce.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kt(ye){var Ce=ye._readableState;for(S("flow",Ce.flowing);Ce.flowing&&ye.read()!==null;);}ce.prototype.wrap=function(ye){var Ce=this,ee=this._readableState,V=!1;ye.on("end",function(){if(S("wrapped end"),ee.decoder&&!ee.ended){var ge=ee.decoder.end();ge&&ge.length&&Ce.push(ge)}Ce.push(null)}),ye.on("data",function(ge){if(S("wrapped data"),ee.decoder&&(ge=ee.decoder.write(ge)),!(ee.objectMode&&ge==null)&&!(!ee.objectMode&&(!ge||!ge.length))){var Ge=Ce.push(ge);Ge||(V=!0,ye.pause())}});for(var oe in ye)this[oe]===void 0&&typeof ye[oe]=="function"&&(this[oe]=function(Ge){return function(){return ye[Ge].apply(ye,arguments)}}(oe));for(var ue=0;ue=Ce.length?(Ce.decoder?ee=Ce.buffer.join(""):Ce.buffer.length===1?ee=Ce.buffer.first():ee=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):ee=Ce.buffer.consume(ye,Ce.decoder),ee}function Xt(ye){var Ce=ye._readableState;S("endReadable",Ce.endEmitted),Ce.endEmitted||(Ce.ended=!0,Uc.nextTick(Mn,Ce,ye))}function Mn(ye,Ce){if(S("endReadableNT",ye.endEmitted,ye.length),!ye.endEmitted&&ye.length===0&&(ye.endEmitted=!0,Ce.readable=!1,Ce.emit("end"),ye.autoDestroy)){var ee=Ce._writableState;(!ee||ee.autoDestroy&&ee.finished)&&Ce.destroy()}}typeof Symbol=="function"&&(ce.from=function(ye,Ce){return ie===void 0&&(ie=H2n()),ie(ce,ye,Ce)});function pr(ye,Ce){for(var ee=0,V=ye.length;ee0;return e3n(w,S,E,function(I){p||(p=I),I&&g.forEach(m8t),!S&&(g.forEach(m8t),a(p))})});return o.reduce(t3n)}var i3n=r3n;(function(r,o){o=r.exports=Jxt(),o.Stream=o,o.Readable=o,o.Writable=Xxt(),o.Duplex=x_(),o.Transform=Qxt,o.PassThrough=X2n,o.finished=T9e,o.pipeline=i3n})($7e,$7e.exports);var I9e=$7e.exports;const o3n=_3(I9e);class tEt{init(){this.ns=Kne}}const s3n=new CH,l3n={apply:(r,o,l)=>r(l[0]),get:(r,o)=>r(o)};function Gn(r,{factory:o=s3n}={}){const l=(a="")=>o.namedNode(`${r}${a.raw||a}`);return typeof Proxy>"u"?l:new Proxy(l,l3n)}const c3n=Gn("http://www.w3.org/ns/auth/acl#"),u3n=c3n,a3n=Gn("https://www.w3.org/ns/activitystreams#"),f3n=a3n,d3n=Gn("http://purl.org/ontology/bibo/"),h3n=d3n,p3n=Gn("http://creativecommons.org/ns#"),g3n=p3n,b3n=Gn("http://www.w3.org/ns/auth/cert#"),w3n=b3n,m3n=Gn("http://www.w3.org/2011/content#"),v3n=m3n,y3n=Gn("http://qudt.org/vocab/constant/"),k3n=y3n,C3n=Gn("http://www.cidoc-crm.org/cidoc-crm/"),S3n=C3n,x3n=Gn("http://www.w3.org/ns/csvw#"),E3n=x3n,T3n=Gn("http://commontag.org/ns#"),I3n=T3n,P3n=Gn("http://datashapes.org/sparql#"),M3n=P3n,O3n=Gn("http://datashapes.org/dash#"),_3n=O3n,R3n=Gn("http://dbpedia.org/ontology/"),A3n=R3n,L3n=Gn("http://purl.org/dc/elements/1.1/"),$3n=L3n,j3n=Gn("http://purl.org/dc/dcam/"),D3n=j3n,N3n=Gn("http://www.w3.org/ns/dcat#"),B3n=N3n,F3n=Gn("http://purl.org/dc/dcmitype/"),z3n=F3n,H3n=Gn("http://purl.org/dc/terms/"),K3n=H3n,U3n=Gn("http://www.ics.forth.gr/isl/CRMdig/"),G3n=U3n,W3n=Gn("http://qudt.org/vocab/discipline/"),V3n=W3n,q3n=Gn("http://usefulinc.com/ns/doap#"),X3n=q3n,Y3n=Gn("http://www.w3.org/ns/dpv#"),J3n=Y3n,Q3n=Gn("http://www.w3.org/ns/dqv#"),Z3n=Q3n,e4n=Gn("http://www.linkedmodel.org/schema/dtype#"),t4n=e4n,n4n=Gn("http://www.w3.org/ns/duv#"),r4n=n4n,i4n=Gn("http://www.w3.org/ns/earl#"),o4n=i4n,s4n=Gn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),l4n=s4n,c4n=Gn("http://www.w3.org/2003/12/exif/ns#"),u4n=c4n,a4n=Gn("http://xmlns.com/foaf/0.1/"),f4n=a4n,d4n=Gn("http://purl.org/vocab/frbr/core#"),h4n=d4n,p4n=Gn("http://www.opengis.net/ont/geosparql#"),g4n=p4n,b4n=Gn("http://www.opengis.net/def/function/geosparql/"),w4n=b4n,m4n=Gn("http://www.opengis.net/def/rule/geosparql/"),v4n=m4n,y4n=Gn("http://www.opengis.net/ont/gml#"),k4n=y4n,C4n=Gn("http://www.geonames.org/ontology#"),S4n=C4n,x4n=Gn("http://purl.org/goodrelations/v1#"),E4n=x4n,T4n=Gn("http://www.w3.org/2003/g/data-view#"),I4n=T4n,P4n=Gn("https://gs1.org/voc/"),M4n=P4n,O4n=Gn("http://vocab.gtfs.org/terms#"),_4n=O4n,R4n=Gn("http://www.w3.org/2011/http#"),A4n=R4n,L4n=Gn("http://www.w3.org/ns/hydra/core#"),$4n=L4n,j4n=Gn("http://www.w3.org/2002/12/cal/icaltzd#"),D4n=j4n,N4n=Gn("https://linked.art/ns/terms/"),B4n=N4n,F4n=Gn("http://www.w3.org/ns/ldp#"),z4n=F4n,H4n=Gn("http://www.w3.org/2000/10/swap/list#"),K4n=H4n,U4n=Gn("http://www.w3.org/ns/locn#"),G4n=U4n,W4n=Gn("http://www.w3.org/2000/10/swap/log#"),V4n=W4n,q4n=Gn("http://lexvo.org/ontology#"),X4n=q4n,Y4n=Gn("http://w3id.org/nfdi4ing/metadata4ing#"),J4n=Y4n,Q4n=Gn("http://www.w3.org/ns/ma-ont#"),Z4n=Q4n,e6n=Gn("http://www.loc.gov/mads/rdf/v1#"),t6n=e6n,n6n=Gn("http://www.w3.org/2000/10/swap/math#"),r6n=n6n,i6n=Gn("http://www.w3.org/ns/oa#"),o6n=i6n,s6n=Gn("http://ogp.me/ns#"),l6n=s6n,c6n=Gn("http://www.w3.org/ns/solid/oidc#"),u6n=c6n,a6n=Gn("http://www.w3.org/ns/org#"),f6n=a6n,d6n=Gn("http://www.w3.org/2002/07/owl#"),h6n=d6n,p6n=Gn("http://www.w3.org/ns/pim/space#"),g6n=p6n,b6n=Gn("http://qudt.org/vocab/prefix/"),w6n=b6n,m6n=Gn("http://www.w3.org/ns/prov#"),v6n=m6n,y6n=Gn("http://purl.org/linked-data/cube#"),k6n=y6n,C6n=Gn("http://qudt.org/vocab/dimensionvector/"),S6n=C6n,x6n=Gn("http://qudt.org/vocab/quantitykind/"),E6n=x6n,T6n=Gn("http://qudt.org/schema/qudt/"),I6n=T6n,P6n=Gn("http://rdaregistry.info/Elements/u/"),M6n=P6n,O6n=Gn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),Zv=O6n,_6n=Gn("http://www.w3.org/ns/rdfa#"),R6n=_6n,A6n=Gn("http://www.w3.org/2000/01/rdf-schema#"),L6n=A6n,$6n=Gn("http://purl.org/stuff/rev#"),j6n=$6n,D6n=Gn("https://www.ica.org/standards/RiC/ontology#"),N6n=D6n,B6n=Gn("http://www.w3.org/ns/r2rml#"),F6n=B6n,z6n=Gn("http://purl.org/rss/1.0/"),H6n=z6n,K6n=Gn("http://schema.org/"),U6n=K6n,G6n=Gn("http://www.w3.org/ns/sparql-service-description#"),W6n=G6n,V6n=Gn("http://purl.org/linked-data/sdmx#"),q6n=V6n,X6n=Gn("http://semanticweb.cs.vu.nl/2009/11/sem/"),Y6n=X6n,J6n=Gn("http://www.w3.org/2000/10/swap/set#"),Q6n=J6n,Z6n=Gn("http://www.opengis.net/ont/sf#"),ekn=Z6n,tkn=Gn("http://www.w3.org/ns/shacl#"),nkn=tkn,rkn=Gn("http://www.w3.org/ns/shex#"),ikn=rkn,okn=Gn("https://www.w3.org/ns/shacl-shacl#"),skn=okn,lkn=Gn("http://rdfs.org/sioc/ns#"),ckn=lkn,ukn=Gn("http://www.w3.org/2004/02/skos/core#"),akn=ukn,fkn=Gn("http://www.w3.org/2008/05/skos-xl#"),dkn=fkn,hkn=Gn("http://www.w3.org/ns/solid/terms#"),pkn=hkn,gkn=Gn("http://www.w3.org/ns/sosa/"),bkn=gkn,wkn=Gn("http://qudt.org/vocab/sou/"),mkn=wkn,vkn=Gn("http://www.w3.org/ns/ssn/"),ykn=vkn,kkn=Gn("http://www.w3.org/ns/posix/stat#"),Ckn=kkn,Skn=Gn("http://www.w3.org/2000/10/swap/string#"),xkn=Skn,Ekn=Gn("http://www.w3.org/2006/03/test-description#"),Tkn=Ekn,Ikn=Gn("http://www.w3.org/2006/time#"),Pkn=Ikn,Mkn=Gn("http://qudt.org/vocab/unit/"),Okn=Mkn,_kn=Gn("http://www.linkedmodel.org/schema/vaem#"),Rkn=_kn,Akn=Gn("http://purl.org/vocab/vann/"),Lkn=Akn,$kn=Gn("http://www.w3.org/2006/vcard/ns#"),jkn=$kn,Dkn=Gn("http://rdfs.org/ns/void#"),Nkn=Dkn,Bkn=Gn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),Fkn=Bkn,zkn=Gn("http://www.w3.org/2007/05/powder-s#"),Hkn=zkn,Kkn=Gn("http://www.w3.org/2003/01/geo/wgs84_pos#"),Ukn=Kkn,Gkn=Gn("http://www.w3.org/1999/xhtml/vocab#"),Wkn=Gkn,Vkn=Gn("http://rdf-vocabulary.ddialliance.org/xkos#"),qkn=Vkn,Xkn=Gn("http://www.w3.org/2001/XMLSchema#"),FF=Xkn,Ykn=Gn("http://www.w3.org/2007/rif#"),Jkn=Ykn,Qkn=Gn("http://rdf.data-vocabulary.org/#"),Zkn=Qkn,e5n=Gn("http://www.w3.org/2007/05/powder#"),t5n=e5n,n5n=Gn("http://www.w3.org/XML/1998/namespace/"),r5n=n5n;function i5n(r){return"_:"+r.value}function o5n(r,o){return[...r].map(l=>o(l)).join(` `)+` `}function s5n(){return""}function nEt(r){return"<"+r.value+">"}const l5n=/["\\\\\n\r]/,c5n=/["\\\\\n\r]/g,u5n={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function a5n(r){return u5n[r]}function f5n(r){return l5n.test(r)?r.replace(c5n,a5n):r}function d5n(r){const o=f5n(r.value);return r.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+o+'"':r.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+o+'"@'+r.language:'"'+o+'"^^'+nEt(r.datatype)}function h5n(r,o){const l=o(r.subject),a=o(r.predicate),p=o(r.object),g=o(r.graph);return`${l} ${a} ${p} ${g?g+" ":""}.`}function p5n(r){return"?"+r.value}function w3(r){if(!r)return null;if(r.termType==="BlankNode")return i5n(r);if(r.termType==="DefaultGraph")return s5n();if(r.termType==="Literal")return d5n(r);if(r.termType==="NamedNode")return nEt(r);if(r.termType==="Quad"||r.subject&&r.predicate&&r.object&&r.graph)return h5n(r,w3);if(r.termType==="Variable")return p5n(r);if(r[Symbol.iterator])return o5n(r,w3);throw new Error(`unknown termType ${r.termType}`)}class kF{constructor(o){if(this.index=new Map,o)for(const[l,a]of o)this.set(l,a)}get size(){return this.index.size}clear(){this.index.clear()}delete(o){return this.index.delete(w3(o))}*entries(){for(const[,{term:o,value:l}]of this.index)yield[o,l]}forEach(o,l){for(const a of this.entries())o.call(l,a[1],a[0],this)}get(o){const l=this.index.get(w3(o));return l&&l.value}has(o){return this.index.has(w3(o))}*keys(){for(const[,{term:o}]of this.index)yield o}set(o,l){const a=w3(o);return this.index.set(a,{term:o,value:l}),this}*values(){for(const[,{value:o}]of this.index)yield o}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}var rEt={exports:{}};const g5n=die,b5n=/([\x00-\x20<>"{}|^`\\]|%(?![0-9A-F][0-9A-F]))/g,w5n=(r,o)=>{let l=o.codePointAt(0).toString(16)+"";return l.length>4?"\\U"+l.padStart(8,"0"):"\\u"+l.padStart(4,"0")},lre=r=>r.replace(b5n,w5n),P9e=/^(?:[\u0000-@[-`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?[\u0000-,\/:-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].*)|.+\.)$/,iEt=/^(?:\\|[\u0000-\/;-@[-^`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?(?:\\|[\u0000-,\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff]).+)|(?:.+?(?:\\|[\u0000-,.\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff])))$/,m5n=/^([Tt](rue)?|TRUE)$/,v5n=/^([Ff](alse)?|FALSE)$/,y5n="xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx",k5n=/[xy]/g,CF=()=>{let r=Date.now();return typeof performance<"u"&&(r+=performance.now()),y5n.replace(k5n,o=>{let l=(r+Math.random()*16)%16|0;return r=Math.floor(r/16),(o==="x"?l:l&3|8).toString(16)})},gie=Symbol("prefix-cache"),C5n=/[$^*()+[\\{}|.?]/g,S5n="((?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])(?:(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}.:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])*(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%]))?)$";function v8t(r,o=!1){let l=[],a={};for(let p in r){let g=r[p];o&&P9e.test(p)||(a[g]=p,l.push(g.replace(C5n,"\\$&")))}return l.length?(r[gie]={_r_iris:new RegExp(`^(${l.join("|")})${S5n}`,"u"),_h_inverse:a},Object.freeze(r)):r}const oEt=(r,o)=>{let l=o[gie];if(l){let a=l._r_iris.exec(r);if(a)return l._h_inverse[a[1]]+":"+a[2]}else{let a="",p="",g=-1;for(let w in o){let y=o[w];if(r.indexOf(y)===0&&y.length>g&&!P9e.test(w)){let S=r.slice(y.length);iEt.test(S)||(p=S,a=w,g=y.length)}}if(g!==-1)return a+":"+p}return"<"+r+">"},PH=(r,o={})=>{let l=o[gie];if(l){let a=l._r_iris.exec(r);if(a)return l._h_inverse[a[1]]+":"+a[2]}else{let a="",p=-1;for(let g in o){let w=o[g];r.startsWith(w)&&w.length>p&&(a=g,p=w.length)}if(p!==-1)return a+":"+r.slice(p)}return">"+r},x5n=/^([^:]*):(.*)$/;function sEt(r,o={},l=!1){switch(r[0]){case">":return"<"+r.slice(1)+">";case"_":return r.length<=2||r[2]==="#"?new Tz()[l?"verbose":"terse"]():r;case'"':return JSON.stringify(r.slice(1));case"@":{let a=r.indexOf('"');return JSON.stringify(r.slice(a+1))+r.slice(0,a)}case"^":{let a=r.indexOf('"');return JSON.stringify(r.slice(a+1))+"^^"+sEt(r.slice(1,a),o,l)}case"*":return"";case"<":case"`":return Qo.c1(r).terse(o);default:{if(r==="a")return l?"":"a";let[,a,p]=x5n.exec(r);return l||iEt.test(p)||P9e.test(a)?"<"+o[a]+p+">":r}}}class VC{valueOf(){return this.concise()}toString(){return this.concise()}equals(o){return o?this===o||o.termType===this.termType&&o.value===this.value:!1}}Object.assign(VC.prototype,{isGraphyTerm:!0});class Id extends VC{constructor(o){super(),this.value=o}concise(o={}){return PH(this.value,o)}terse(o={},l=!1){return oEt(lre(this.value),o)}verbose(){return"<"+lre(this.value)+">"}isolate(){return{termType:"NamedNode",value:this.value}}}Object.assign(Id.prototype,{termType:"NamedNode",isNamedNode:!0});const N7e=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");N7e.isRdfTypeAlias=!0;const lEt=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),E5n=lEt.isolate(),T5n=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),y8t=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),I5n=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),P5n=new Id("http://www.w3.org/2001/XMLSchema#date"),M5n=new Id("http://www.w3.org/2001/XMLSchema#dateTime"),MC=new Id("http://www.w3.org/2001/XMLSchema#string");class bie extends VC{equals(o){return o?this===o||o.termType==="Literal"&&o.value===this.value&&this.datatype.equals(o.datatype)&&o.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(o){return this.language?"@"+this.language+'"'+this.value:"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+l)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(bie.prototype,{datatype:MC,language:"",termType:"Literal",isLiteral:!0,isSimple:!1});class SF extends bie{constructor(o,l){super(),this.value=o,this.language=(l[0]==="@"?l.slice(1):l).toLowerCase()}verbose(){return JSON.stringify(this.value)+"@"+this.language}concise(){return"@"+this.language+'"'+this.value}terse(){return JSON.stringify(this.value)+"@"+this.language}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:E5n}}}Object.assign(SF.prototype,{datatype:lEt,isLanguaged:!0});class K_ extends bie{verbose(){return JSON.stringify(this.value)+"^^"+this.datatype.verbose()}concise(o){return"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+"^^"+l}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(K_.prototype,{isDatatyped:!0});class Yte extends K_{constructor(o,l){super(),this.value=o,this.datatype=l}}class cEt extends VC{constructor(o){super(),this.value=o}get isSimple(){return!this.language&&!this.datatype.equals(MC)}get isLanguaged(){return!!this.language}get isDatatyped(){return MC.equals(this.datatype)}equals(o){return o?this===o||o.termType==="Literal"&&o.value===this.value&&this.datatype.equals(o.datatype)&&o.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(o){return this.language?"@"+this.language+'"'+this.value:"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+l)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(cEt.prototype,{datatype:MC,language:"",termType:"Literal",isLiteral:!0});class hE extends bie{constructor(o){super(),this.value=o}verbose(){return JSON.stringify(this.value)}concise(){return'"'+this.value}terse(){return JSON.stringify(this.value)}}Object.assign(hE.prototype,{isSimple:!0});const uEt=new Id("http://www.w3.org/2001/XMLSchema#integer");class IE extends K_{static from(o){let l=new IE(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+uEt.concise(o)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value}}Object.assign(IE.prototype,{datatype:uEt,isNumeric:!0,isInteger:!0});const MH=new Id("http://www.w3.org/2001/XMLSchema#double");class k3 extends K_{static from(o){let l=new k3(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+MH.concise(o)+'"'+this.value}terse(){return this.number.toExponential()}}Object.assign(k3.prototype,{datatype:MH,isNumeric:!0,isDouble:!0});const aEt=new Id("http://www.w3.org/2001/XMLSchema#decimal");class PE extends K_{static from(o){let l=new PE(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+aEt.concise(o)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value+(this.value.includes(".")?"":".0")}}Object.assign(PE.prototype,{datatype:aEt,isNumeric:!0,isDecimal:!0});const fEt=new Id("http://www.w3.org/2001/XMLSchema#boolean");class g3 extends K_{static from(o){let l=new g3(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.boolean=o}concise(o={}){return"^"+fEt.concise(o)+'"'+this.value}terse(){return this.value+""}}Object.assign(g3.prototype,{datatype:fEt,isBoolean:!0});class dEt extends k3{constructor(){super(1/0),this.value="INF"}terse(o){return'"INF"^^'+MH.terse(o)}}Object.assign(dEt.prototype,{isInfinite:!0});class hEt extends k3{constructor(){super(-1/0),this.value="-INF"}terse(o){return'"-INF"^^'+MH.terse(o)}}Object.assign(hEt.prototype,{isInfinite:!0});class pEt extends k3{constructor(){super(NaN),this.value="NaN"}terse(o){return'"NaN"^^'+MH.terse(o)}}Object.assign(pEt.prototype,{isNaN:!0});function yE(r,o=!1){this.value=r,this.isAnonymous=o}yE.prototype=Object.assign(Object.create(VC.prototype),{termType:"BlankNode",isBlankNode:!0,concise(){return"_:"+this.value},terse(){return"_:"+this.value},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}}});function Tz(){}Tz.prototype=Object.assign(Object.create(yE.prototype),{isAnonymous:!0,isEphemeral:!0,concise(){return"_:#"+this.value},terse(){return"[]"},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}},equals(){return!1}});Object.defineProperty(Tz.prototype,"value",{get(){return"_"+CF()}});class gEt extends VC{constructor(o){super(),this.value=o}concise(){return"?"+this.value}terse(){throw new Error("Cannot call .terse() on 'Variable' term type")}verbose(){throw new Error("Cannot call .verbose() on 'Variable' term type")}isolate(){return{termType:"Variable",value:this.value}}}Object.assign(gEt.prototype,{termType:"Variable",isVariable:!0});function Iz(){}Iz.prototype=Object.assign(Object.create(VC.prototype),{value:"",termType:"DefaultGraph",isDefaultGraph:!0,concise(){return"*"},terse(){return""},verbose(){return""},isolate(){return{termType:"DefaultGraph",value:""}}});Object.assign(Object.create(VC.prototype),{value:"",termType:"NoGraph",concise(){return""},terse(){return""},verbose(){return""},isolate(){return{termType:"NoGraph",value:""}}});const cre=new Iz;function Qv(r,o,l,a=cre){this.subject=r,this.predicate=o,this.object=l,this.graph=a}Object.assign(Qv.prototype,{isGraphyQuad:!0,equals(r){return r?this===r||this.object.equals(r.object)&&this.subject.equals(r.subject)&&this.predicate.equals(r.predicate)&&this.graph.equals(r.graph):!1},valueOf(){return this.verbose()},concise(r={}){return[this.subject.concise(r),this.predicate.concise(r),this.object.concise(r),this.graph.concise(r)]},terse(r){let o=this.graph.isDefaultGraph;return(o?"":this.graph.terse(r)+" { ")+this.subject.terse(r)+" "+this.predicate.terse(r)+" "+this.object.terse(r)+" ."+(o?"":" }")},verbose(){return this.subject.verbose()+" "+this.predicate.verbose()+" "+this.object.verbose()+" "+(this.graph.isDefaultGraph?"":this.graph.verbose()+" ")+"."},isolate(){return{subject:this.subject.isolate(),predicate:this.predicate.isolate(),object:this.object.isolate(),graph:this.graph.isolate()}}});let k8t={namedNode(r){return new Id(r)},blankNode(r,o){return new yE(r,o)},literal(r){return new cEt(r)},defaultGraph(){return new Iz},quad(r,o,l,a){return new Qv(r,o,l,a||cre)},integer(r){return IE.from(r)},double(r){return k3.from(r)},decimal(r){return PE.from(r)},boolean(r){return new g3(r)}};const Qo=rEt.exports={concise:PH,adopt(r){let o=Object.create(r),l=!1;if(typeof r.boolean!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#boolean");o.boolean=p=>r.literal(p+"",a),l=!0}if(typeof r.double!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#double");o.double=p=>r.literal(p+"",a),l=!0}if(typeof r.decimal!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#decimal");o.decimal=p=>r.literal(p+"",a),l=!0}if(typeof r.integer!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#integer");o.integer=p=>r.literal(p+"",a),l=!0}return typeof r.simpleLiteral!="function"&&(o.simpleLiteral=a=>r.literal(a),l=!0),typeof r.languagedLiteral!="function"&&(o.languagedLiteral=(a,p)=>r.literal(a,p),l=!0),typeof r.datatypedLiteral!="function"&&(o.datatypedLiteral=(a,p)=>r.literal(a,p),l=!0),l?o:r},raw:k8t,unfiltered:{...k8t,literal(r,o){return!o||MC.equals(o)?new hE(r):typeof o=="string"?new SF(r,o):MC.equals(o)?new hE(r):new Yte(r,o)},simpleLiteral(r){return new hE(r)},languagedLiteral(r,o){return new SF(r,o)},datatypedLiteral(r,o){return MC.equals(o)?new hE(r):new Yte(r,o)}},number(r){return typeof r=="number"&&(!Number.isFinite(r)||Number.isNaN(r))?Qo.double(r):Number.isInteger(r)||typeof r=="bigint"?Qo.integer(r):Qo.decimal(r)},date(r){return Qo.literal(r.toISOString().replace(/T.+$/,"Z"),P5n)},dateTime(r){return Qo.literal(r.toISOString(),M5n)},namedNode(r){return new Id(r)},ephemeral(){return new Tz},anonymous(){return new Tz},blankNode(r){if(r){if(typeof r=="string")return new yE(r)}else return new yE("_"+CF(),!0);throw new TypeError(`factory.blankNode(label) expects 'label' parameter to be falsy or a string; instead found: ${r}`)},literal(r,o){return!o||MC.equals(o)?new hE(r):typeof o=="string"?new SF(r,o):new Yte(r,o)},integer(r){let o=typeof r;if(o==="number"){if(Number.isFinite(r)){if(!Number.isInteger(r))throw new Error("Number is not an integer: "+r)}else throw Number.isNaN(r)?new Error("XSD integer cannot encode NaN. Try using double"):new Error("XSD integer cannot encode +/-infinity. Try using double");return new IE(r)}else if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:integer");let l=+r;if(Number.isNaN(l)||!Number.isInteger(l))throw new Error("Invalid integer string: "+r);return new IE(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:integer"):r===null?new Error("Refusing to serialize null value as xsd:integer"):new Error("XSD integer expects a number type or integer string")},double(r){let o=typeof r;if(o==="number")return Number.isFinite(r)?new k3(r):Number.isNaN(r)?new pEt:r>0?new dEt:new hEt;if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:double");let l=+r;if(Number.isNaN(l))throw new Error("Invalid decimal string: "+r);return new k3(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:double"):r===null?new Error("Refusing to serialize null value as xsd:double"):new Error("XSD double expects a number type or double string")},decimal(r){let o=typeof r;if(o==="number"){if(!Number.isFinite(r))throw Number.isNaN(r)?new Error("XSD decimal cannot encode NaN. Try using double"):new Error("XSD decimal cannot encode +/-infinity. Try using double");return new PE(r)}else if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:decimal");let l=+r;if(Number.isNaN(l))throw new Error("Invalid decimal string: "+r);return new PE(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:decimal"):r===null?new Error("Refusing to serialize null value as xsd:decimal"):new Error("XSD decimal expects a number type or decimal string")},boolean(r){let o=typeof r;if(o==="boolean")return new g3(r);if(o==="number"){if(r===1)return new g3(!0);if(r===0)return new g3(!1);throw new Error("Boolean value 'w_value' must be either a '1' or '0' if using numbers")}else if(o==="string"){if(m5n.test(r))return new g3(!0);if(v5n.test(r))return new g3(!1);throw r===""?new Error("Refusing to serialize empty string as xsd:boolean"):new Error("Invalid boolean string: "+r)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:boolean"):r===null?new Error("Refusing to serialize null value as xsd:boolean"):new Error("XSD boolean expects a boolean type or boolean string")},defaultGraph(){return new Iz},variable(r){return new gEt(r)},triple(r,o,l){let a=new Error("It is strongly encouraged to use .quad() instead of .triple()");return console.warn(a.stack.replace(/^(\s*)Error:/,"$1Warning:")),new Qv(r,o,l)},quad(r,o,l,a){return new Qv(r,o,l,a||cre)},term(r,o){return typeof r=="string"?Qo.c1(r,o):Qo.from.rdfjs_term(r)},c1(r,o={}){switch(r[0]){case"^":{let l=r.indexOf('"');if(l===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${r}'`);let a=r.slice(1,l);return Qo.literal(r.slice(l+1),Qo.c1_node_explicit(a,o))}case"@":{let l=r.indexOf('"');if(l===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${r}'`);let a=r.slice(1,l);return Qo.literal(r.slice(l+1),a)}case'"':return Qo.literal(r.slice(1));default:return Qo.c1_node(r,o)}},c1_node(r,o={}){if(r==="a")return N7e;if(r==="*")return Qo.defaultGraph();if(r[0]==="_"){if(r[1]!==":")throw new Error(`Invliad concise-term string, prefixes are not allowed to start with an underscore: '${r}'`);return r[2]==="#"||r.length===2?Qo.ephemeral():Qo.blankNode(r.slice(2))}return Qo.c1_node_explicit(r,o)},c1_named_node(r,o={}){return r==="a"?N7e:Qo.c1_node_explicit(r,o)},c1_node_explicit(r,o={}){switch(r[0]){case">":return Qo.namedNode(r.slice(1));case"<":throw new Error(`Whoops! It looks like this concise-term string starts with a '<' character. Remember to use '>' if you are trying to make an absolute IRI reference. Invalid concise-term string '${r}'`);case"`":throw new Error(`The backtick character '\`' is reserved for concise-struct key directives and should not be used in the object position. Invalid concise-term string '${r}'`);default:return this.c1_prefixed_node(r,o)}},c1_prefixed_node(r,o={}){let l=r.indexOf(":");if(l===-1)throw new Error(`A relative or prefixed node must include a ':' character. Invalid concise-term string for node: '${r}'`);let a=r.slice(0,l),p=r.slice(l+1);if(a in o)return Qo.namedNode(o[a]+p);throw new Error(`Prefix not defined: '${a}'`)},c1_to_nt:sEt,*quads(r,o={}){for(let l in r)yield*Qo.triples(r[l],o,l)},*triples(r,o={},l="*"){let a=Qo.c1(l,o);for(let p in r){let g=Qo.c1(p,o),w=r[p];yield*Qo.pairs(a,g,w,o)}},*pairs(r,o,l,a={}){for(let p in l){let g=Qo.c1(p,a),w=l[p];yield*Qo.objects(r,o,g,w,a)}},*collection(r,o,l,a={}){yield*Qo.objects(r,o,T5n,l[0],a);let p=l.slice(1);if(!p.length)yield new Qv(o,y8t,I5n,r);else{let g=Qo.blankNode();yield new Qv(o,y8t,g,r),yield*Qo.collection(r,g,p,a)}},*objects(r,o,l,a,p,g=!1){switch(typeof a){case"string":{yield new Qv(o,l,Qo.c1(a,p),r);break}case"number":{yield new Qv(o,l,Qo.number(a),r);break}case"object":{if(Array.isArray(a))if(g){let y=Qo.blankNode();yield new Qv(o,l,y,r),yield*Qo.collection(r,y,a,p)}else for(let y of a)yield*Qo.objects(r,o,l,y,p,!0);else{let y=Qo.blankNode();yield new Qv(o,l,y,r),yield*Qo.pairs(r,y,a,p)}break}default:throw new Error(`invalid object type: ${typeof a}`)}},from:{term(r){return r===null||r.isGraphyTerm?r:Qo.from.rdfjs_term(r)},quad(r){if(r===null||r.isGraphyQuad)return r;let o=Qo.from;return new Qv(o.rdfjs_term(r.subject),o.rdfjs_term(r.predicate),o.rdfjs_term(r.object),r.graph?o.rdfjs_term(r.graph):cre)},rdfjs_term(r){switch(r.termType){case"NamedNode":return new Id(r.value);case"BlankNode":return new yE(r.value);case"Literal":return Qo.literal(r.value,r.language?r.language:r.datatype?new Id(r.datatype.value):null);case"DefaultGraph":return new Iz;default:throw new TypeError(`invalid termType: ${r.termType}`)}},sparql_result(r){switch(r.type){case"uri":return new Id(r.value);case"literal":case"typed-literal":return"xml:lang"in r?new SF(r.value,r["xml:lang"]):"datatype"in r&&r.datatype!=="http://www.w3.org/2001/XMLSchema#string"?new Yte(r.value,new Id(r.datatype)):new hE(r.value);case"bnode":return new yE(r.value);default:throw new Error(`unexpected SPARQL Result JSON Format Term type: ${r.type}`)}}},to:{boolean:r=>g3.from(r),integer:r=>IE.from(r),decimal:r=>PE.from(r),double:r=>k3.from(r)},comment(r={}){return`\`[${CF()}]${JSON.stringify({...r,type:"comment"})}`},newlines(){return`\`[${CF()}]{"type":"newlines"}`},config(r){if(typeof r!="string")throw new TypeError(`Expected 'key' argument to be a string, instead found ${typeof r}`);return`\`[${CF()}]{"type":"config","value":${JSON.stringify(r)}}`},hash(r){let o=Qo.from.quad(r),l=g5n.createHash("sha256");return l.update(o.verbose()),l.digest("hex")},cache_prefixes:v8t,cachePrefixes:v8t,terse:oEt,clean_iri:lre,cleanIri:lre,$_PREFIX_CACHE:gie};Object.assign(Qo,{c3:Qo.triples,c4:Qo.quads,fromTerm:Qo.from.term,fromQuad:Qo.from.quad});var O5n=rEt.exports;const C8t=_3(O5n),_5n={rif:"http://www.w3.org/2007/rif#",v:"http://rdf.data-vocabulary.org/#",wdr:"http://www.w3.org/2007/05/powder#",xml:"http://www.w3.org/XML/1998/namespace/"},R5n={acl:"http://www.w3.org/ns/auth/acl#",as:"https://www.w3.org/ns/activitystreams#",bibo:"http://purl.org/ontology/bibo/",cc:"http://creativecommons.org/ns#",cert:"http://www.w3.org/ns/auth/cert#",cnt:"http://www.w3.org/2011/content#",constant:"http://qudt.org/vocab/constant/",crm:"http://www.cidoc-crm.org/cidoc-crm/",csvw:"http://www.w3.org/ns/csvw#",ctag:"http://commontag.org/ns#","dash-sparql":"http://datashapes.org/sparql#",dash:"http://datashapes.org/dash#",dbo:"http://dbpedia.org/ontology/",dc11:"http://purl.org/dc/elements/1.1/",dcam:"http://purl.org/dc/dcam/",dcat:"http://www.w3.org/ns/dcat#",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",dig:"http://www.ics.forth.gr/isl/CRMdig/",discipline:"http://qudt.org/vocab/discipline/",doap:"http://usefulinc.com/ns/doap#",dpv:"http://www.w3.org/ns/dpv#",dqv:"http://www.w3.org/ns/dqv#",dtype:"http://www.linkedmodel.org/schema/dtype#",duv:"http://www.w3.org/ns/duv#",earl:"http://www.w3.org/ns/earl#",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",exif:"http://www.w3.org/2003/12/exif/ns#",foaf:"http://xmlns.com/foaf/0.1/",frbr:"http://purl.org/vocab/frbr/core#",geo:"http://www.opengis.net/ont/geosparql#",geof:"http://www.opengis.net/def/function/geosparql/",geor:"http://www.opengis.net/def/rule/geosparql/",gml:"http://www.opengis.net/ont/gml#",gn:"http://www.geonames.org/ontology#",gr:"http://purl.org/goodrelations/v1#",grddl:"http://www.w3.org/2003/g/data-view#",gs1:"https://gs1.org/voc/",gtfs:"http://vocab.gtfs.org/terms#",http:"http://www.w3.org/2011/http#",hydra:"http://www.w3.org/ns/hydra/core#",ical:"http://www.w3.org/2002/12/cal/icaltzd#",la:"https://linked.art/ns/terms/",ldp:"http://www.w3.org/ns/ldp#",list:"http://www.w3.org/2000/10/swap/list#",locn:"http://www.w3.org/ns/locn#",log:"http://www.w3.org/2000/10/swap/log#",lvont:"http://lexvo.org/ontology#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",ma:"http://www.w3.org/ns/ma-ont#",mads:"http://www.loc.gov/mads/rdf/v1#",math:"http://www.w3.org/2000/10/swap/math#",oa:"http://www.w3.org/ns/oa#",og:"http://ogp.me/ns#",oidc:"http://www.w3.org/ns/solid/oidc#",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pim:"http://www.w3.org/ns/pim/space#",prefix:"http://qudt.org/vocab/prefix/",prov:"http://www.w3.org/ns/prov#",qb:"http://purl.org/linked-data/cube#",qkdv:"http://qudt.org/vocab/dimensionvector/",quantitykind:"http://qudt.org/vocab/quantitykind/",qudt:"http://qudt.org/schema/qudt/",rdau:"http://rdaregistry.info/Elements/u/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfa:"http://www.w3.org/ns/rdfa#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rev:"http://purl.org/stuff/rev#",rico:"https://www.ica.org/standards/RiC/ontology#",rr:"http://www.w3.org/ns/r2rml#",rss:"http://purl.org/rss/1.0/",schema:"http://schema.org/",sd:"http://www.w3.org/ns/sparql-service-description#",sdmx:"http://purl.org/linked-data/sdmx#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",set:"http://www.w3.org/2000/10/swap/set#",sf:"http://www.opengis.net/ont/sf#",sh:"http://www.w3.org/ns/shacl#",shex:"http://www.w3.org/ns/shex#",shsh:"http://www.w3.org/ns/shacl-shacl#",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",solid:"http://www.w3.org/ns/solid/terms#",sosa:"http://www.w3.org/ns/sosa/",sou:"http://qudt.org/vocab/sou/",ssn:"http://www.w3.org/ns/ssn/",stat:"http://www.w3.org/ns/posix/stat#",string:"http://www.w3.org/2000/10/swap/string#",test:"http://www.w3.org/2006/03/test-description#",time:"http://www.w3.org/2006/time#",unit:"http://qudt.org/vocab/unit/",vaem:"http://www.linkedmodel.org/schema/vaem#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",void:"http://rdfs.org/ns/void#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",vso:"http://purl.org/vso/ns#",wdrs:"http://www.w3.org/2007/05/powder-s#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",xsd:"http://www.w3.org/2001/XMLSchema#"},B7e={...R5n,..._5n};function bEt(r,o={}){const l={...B7e,...o},a=Array.from(Object.entries(l)).filter(([,p])=>r.startsWith(p));if(a.length){a.sort(([,g],[,w])=>w.length-g.length);const p=a[0];return r.replace(new RegExp(`^${p[1]}`),`${p[0]}:`)}return""}class wEt{constructor(o){this.term=o}toTerm(){const o=`"""${this.term.value.replace(/"$/,'\\"')}"""`;return{terse:l=>o+this.langOrDatatype(l),verbose:l=>o+this.langOrDatatype(l)}}langOrDatatype(o){if(this.term.language)return`@${this.term.language}`;if(this.term.datatype.equals(FF.string))return"";const l=bEt(this.term.datatype.value,o);return l?`^^${l}`:`^^<${this.term.datatype.value}>`}}const mEt=new Map([[wEt,r=>r.toTerm()]]);function A5n(r){return r.has(Zv.first)&&r.has(Zv.rest)}class L5n extends o3n.Transform{constructor({prefixes:o={},strict:l=!1,preserveListNodeProperties:a=!1}={}){super({objectMode:!0}),this.prefixes=o,this.graphs=new kF,this.blankNodes=new kF,this.strict=l,this.preserveListNodeProperties=a}_transform({subject:o,predicate:l,object:a,graph:p},g,w){const y=this.getGraph(p),S=y.get(o)||{predicates:new kF},E=S.predicates.get(l)||[];if(S.predicates.set(l,[...E,a]),a.termType==="BlankNode"){const I=this.blankNodes.get(a)||0;this.blankNodes.set(a,I+1)}y.set(o,S),w()}_flush(){const o=[...this.graphs].reduce((l,[a,p])=>{const g=this.toHashKey(a);let w=l[g]||{};return w=[...p].reduce(this.toConciseHash(a).bind(this),w),{...l,[g]:w}},{});this.push({type:this.strict?"c4r":"c4",value:o}),this.push(null)}toConciseHash(o){return(l,[a,{predicates:p}])=>{if(!this.strict&&this.blankNodes.get(a)===1)return l;const g=this.toHashKey(a);return{...l,[g]:this.createPropertyMap(o,p)}}}createPropertyMap(o,l,a=0){const p=g=>{if(!this.strict&&this.blankNodes.get(g)===1){const w=this.graphs.get(o).get(g);if(w)return this.createPropertyMap(o,w.predicates,a+1)}return this.toHashKey(g)};if(!this.strict&&A5n(l)&&!this.preserveListNodeProperties){const[g]=l.get(Zv.first),[w]=l.get(Zv.rest);if(a===0){let S;if(w.equals(Zv.nil))S=this.toHashKey(Zv.nil);else{const E=p(w);S=Array.isArray(E)?[...E]:[E]}return{[this.toHashKey(Zv.first)]:[p(g)],[this.toHashKey(Zv.rest)]:[S]}}if(w.equals(Zv.nil))return[p(g)];const y=p(w);return[p(g),...y]}return[...l].reduce((g,[w,y])=>{const S=this.toHashKey(w),E=y.map(p.bind(this));return{...g,[S]:E}},{})}getGraph(o){const l=this.graphs.get(o)||new kF;return this.graphs.set(o,l),l}literalHash(o){if(o.datatype&&!this.strict)switch(o.datatype.value){case FF.integer.value:{const l=+o.value;if(Number.isInteger(l))return l;break}case FF.decimal.value:{const l=+o.value;if(!Number.isNaN(l)&&!Number.isInteger(l))return l;break}case FF.boolean.value:{if(o.value==="true")return!0;if(o.value==="false")return!1;break}}return o.value.includes(` -`)?new wEt(o):C8t.fromTerm(o).concise(this.prefixes)}toHashKey(o){return o.termType==="Literal"?this.literalHash(o):o.equals(Zv.type)?"a":C8t.fromTerm(o).concise(this.prefixes)}}async function M9e(r,o={}){const l=(await r).default;return class{constructor(a={}){this.defaults=a}import(a,{preserveListNodeProperties:p,...g}={}){const w={...this.defaults.prefixes||{},...g.prefixes||{}},y=l({prefixes:w,coercions:o.coercions});return a.pipe(new L5n({prefixes:w,strict:o.strict,preserveListNodeProperties:p})).pipe(y),y}}}const vEt=pm(()=>M9e(Xg(()=>import("./main-zTQ0tXXK.js").then(r=>r.m),__vite__mapDeps([10,11,12,13])),{coercions:mEt})),$5n=pm(()=>M9e(Xg(()=>import("./main-CQ6G9sma.js").then(r=>r.m),__vite__mapDeps([14,12,13])),{strict:!0})),j5n=pm(()=>M9e(Xg(()=>import("./main-yWOklOAz.js").then(r=>r.m),__vite__mapDeps([15,11,12,13])),{strict:!0,coercions:mEt}));async function yEt(r){const o=(await r).default;return class{import(l,a){return l.pipe(a?o(a):o())}}}const kEt=pm(()=>yEt(Xg(()=>import("./main-Br7cBokn.js").then(r=>r.m),__vite__mapDeps([16,13])))),CEt=pm(()=>yEt(Xg(()=>import("./main-DcNn2okZ.js").then(r=>r.m),__vite__mapDeps([17,13])))),D5n=pm(async()=>{const r=(await Xg(async()=>{const{default:o}=await import("./index-DjJhAlRP.js");return{default:o}},__vite__mapDeps([18,1,4]))).default;return class extends r{constructor({prefixes:l={},...a}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...a}),this.prefixes=l}import(l,{prefixes:a={}}={}){const p={...this.prefixes,...a};return super.import(l,{context:p})}}}),N5n=pm(async()=>{const r=await Xg(()=>import("./index-DCe_24Mq.js"),__vite__mapDeps([19,6]));return class{import(o,l){return new r.StreamParser({format:"text/n3"}).import(o,{...l})}}}),bm=new j9t({});bm.import(wb);const py={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};bm.serializers.set(py.jsonLd,new D5n);bm.serializers.set(py.notation3,new vEt);bm.serializers.set(py.turtle,new vEt);bm.serializers.set(py.trig,new j5n);bm.serializers.set(py.rdfXml,new $5n);bm.parsers.set(py.notation3,new N5n);bm.parsers.set(py.turtle,new kEt);bm.parsers.set(py.trig,new kEt);bm.parsers.set(py.ntriples,new CEt);bm.parsers.set(py.nquads,new CEt);/** +`)?new wEt(o):C8t.fromTerm(o).concise(this.prefixes)}toHashKey(o){return o.termType==="Literal"?this.literalHash(o):o.equals(Zv.type)?"a":C8t.fromTerm(o).concise(this.prefixes)}}async function M9e(r,o={}){const l=(await r).default;return class{constructor(a={}){this.defaults=a}import(a,{preserveListNodeProperties:p,...g}={}){const w={...this.defaults.prefixes||{},...g.prefixes||{}},y=l({prefixes:w,coercions:o.coercions});return a.pipe(new L5n({prefixes:w,strict:o.strict,preserveListNodeProperties:p})).pipe(y),y}}}const vEt=pm(()=>M9e(Xg(()=>import("./main-iH2f1yx-.js").then(r=>r.m),__vite__mapDeps([10,11,12,13])),{coercions:mEt})),$5n=pm(()=>M9e(Xg(()=>import("./main-DvYAR6pV.js").then(r=>r.m),__vite__mapDeps([14,12,13])),{strict:!0})),j5n=pm(()=>M9e(Xg(()=>import("./main-BIUkwmxE.js").then(r=>r.m),__vite__mapDeps([15,11,12,13])),{strict:!0,coercions:mEt}));async function yEt(r){const o=(await r).default;return class{import(l,a){return l.pipe(a?o(a):o())}}}const kEt=pm(()=>yEt(Xg(()=>import("./main-B94FsnA1.js").then(r=>r.m),__vite__mapDeps([16,13])))),CEt=pm(()=>yEt(Xg(()=>import("./main-V12eunPc.js").then(r=>r.m),__vite__mapDeps([17,13])))),D5n=pm(async()=>{const r=(await Xg(async()=>{const{default:o}=await import("./index-BMw9Z_By.js");return{default:o}},__vite__mapDeps([18,1,4]))).default;return class extends r{constructor({prefixes:l={},...a}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...a}),this.prefixes=l}import(l,{prefixes:a={}}={}){const p={...this.prefixes,...a};return super.import(l,{context:p})}}}),N5n=pm(async()=>{const r=await Xg(()=>import("./index-wrpfIQEt.js"),__vite__mapDeps([19,6]));return class{import(o,l){return new r.StreamParser({format:"text/n3"}).import(o,{...l})}}}),bm=new j9t({});bm.import(wb);const py={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};bm.serializers.set(py.jsonLd,new D5n);bm.serializers.set(py.notation3,new vEt);bm.serializers.set(py.turtle,new vEt);bm.serializers.set(py.trig,new j5n);bm.serializers.set(py.rdfXml,new $5n);bm.parsers.set(py.notation3,new N5n);bm.parsers.set(py.turtle,new kEt);bm.parsers.set(py.trig,new kEt);bm.parsers.set(py.ntriples,new CEt);bm.parsers.set(py.nquads,new CEt);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -2013,7 +2013,7 @@ span.CodeMirror-selectedtext { background: none; }
-
`}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(o){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(o)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:o}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[$Ce]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[R6]&&(this.codeMirror.editor.off("blur",this[R6]),this.codeMirror.editor.off("change",this[R6])),this.autoParse?(this[R6]=O7n(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[R6])):(this[R6]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[R6])))}async __beginParse(){this[$Ce]&&await this.parse(),this[$Ce]=!1}async __highlightError(o){if(!this.ready)return;let l={line:0,ch:0},a={line:0,ch:Number.MAX_SAFE_INTEGER};o&&o.from&&(l=o.from,this.codeMirror.editor.scrollIntoView(l)),o&&o.to&&(a=o.to);const p=o?o.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(l,a,{attributes:{part:"error",title:p}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((o,[l,a])=>!a||!l||typeof a!="string"||typeof l!="string"?o:{...o,[l]:a},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(r,o){var l=r.indentUnit,a=o.statementIndent,p=o.jsonld,g=o.json||p,w=o.typescript,y=o.wordCharacters||/[\w$\xa1-\uffff]/,S=function(){function we(Ad){return{type:Ad,style:"keyword"}}var We=we("keyword a"),En=we("keyword b"),fr=we("keyword c"),xo=we("keyword d"),_s=we("operator"),tc={type:"atom",style:"atom"};return{if:we("if"),while:We,with:We,else:En,do:En,try:En,finally:En,return:xo,break:xo,continue:xo,new:we("new"),delete:fr,void:fr,throw:fr,debugger:we("debugger"),var:we("var"),const:we("var"),let:we("var"),function:we("function"),catch:we("catch"),for:we("for"),switch:we("switch"),case:we("case"),default:we("default"),in:_s,typeof:_s,instanceof:_s,true:tc,false:tc,null:tc,undefined:tc,NaN:tc,Infinity:tc,this:we("this"),class:we("class"),super:we("atom"),yield:fr,export:we("export"),import:we("import"),extends:fr,await:fr}}(),E=/[+\-*&%=<>!?|~^@]/,I=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(we){for(var We=!1,En,fr=!1;(En=we.next())!=null;){if(!We){if(En=="/"&&!fr)return;En=="["?fr=!0:fr&&En=="]"&&(fr=!1)}We=!We&&En=="\\"}}var _,R;function j(we,We,En){return _=we,R=En,We}function K(we,We){var En=we.next();if(En=='"'||En=="'")return We.tokenize=q(En),We.tokenize(we,We);if(En=="."&&we.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(En=="."&&we.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(En))return j(En);if(En=="="&&we.eat(">"))return j("=>","operator");if(En=="0"&&we.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(En))return we.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(En=="/")return we.eat("*")?(We.tokenize=Q,Q(we,We)):we.eat("/")?(we.skipToEnd(),j("comment","comment")):Y_(we,We,1)?(M(we),we.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(we.eat("="),j("operator","operator",we.current()));if(En=="`")return We.tokenize=Z,Z(we,We);if(En=="#")return we.skipToEnd(),j("error","error");if(En=="<"&&we.match("!--")||En=="-"&&we.match("->"))return we.skipToEnd(),j("comment","comment");if(E.test(En))return(En!=">"||!We.lexical||We.lexical.type!=">")&&(we.eat("=")?(En=="!"||En=="=")&&we.eat("="):/[<>*+\-]/.test(En)&&(we.eat(En),En==">"&&we.eat(En))),j("operator","operator",we.current());if(y.test(En)){we.eatWhile(y);var fr=we.current();if(We.lastType!="."){if(S.propertyIsEnumerable(fr)){var xo=S[fr];return j(xo.type,xo.style,fr)}if(fr=="async"&&we.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",fr)}return j("variable","variable",fr)}}function q(we){return function(We,En){var fr=!1,xo;if(p&&We.peek()=="@"&&We.match(I))return En.tokenize=K,j("jsonld-keyword","meta");for(;(xo=We.next())!=null&&!(xo==we&&!fr);)fr=!fr&&xo=="\\";return fr||(En.tokenize=K),j("string","string")}}function Q(we,We){for(var En=!1,fr;fr=we.next();){if(fr=="/"&&En){We.tokenize=K;break}En=fr=="*"}return j("comment","comment")}function Z(we,We){for(var En=!1,fr;(fr=we.next())!=null;){if(!En&&(fr=="`"||fr=="$"&&we.eat("{"))){We.tokenize=K;break}En=!En&&fr=="\\"}return j("quasi","string-2",we.current())}var X="([{}])";function ie(we,We){We.fatArrowAt&&(We.fatArrowAt=null);var En=we.string.indexOf("=>",we.start);if(!(En<0)){if(w){var fr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(we.string.slice(we.start,En));fr&&(En=fr.index)}for(var xo=0,_s=!1,tc=En-1;tc>=0;--tc){var Ad=we.string.charAt(tc),Zg=X.indexOf(Ad);if(Zg>=0&&Zg<3){if(!xo){++tc;break}if(--xo==0){Ad=="("&&(_s=!0);break}}else if(Zg>=3&&Zg<6)++xo;else if(y.test(Ad))_s=!0;else if(/["'\/`]/.test(Ad))for(;;--tc){if(tc==0)return;var FH=we.string.charAt(tc-1);if(FH==Ad&&we.string.charAt(tc-2)!="\\"){tc--;break}}else if(_s&&!xo){++tc;break}}_s&&!xo&&(We.fatArrowAt=tc)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function et(we,We,En,fr,xo,_s){this.indented=we,this.column=We,this.type=En,this.prev=xo,this.info=_s,fr!=null&&(this.align=fr)}function mt(we,We){for(var En=we.localVars;En;En=En.next)if(En.name==We)return!0;for(var fr=we.context;fr;fr=fr.prev)for(var En=fr.vars;En;En=En.next)if(En.name==We)return!0}function bt(we,We,En,fr,xo){var _s=we.cc;for(ce.state=we,ce.stream=xo,ce.marked=null,ce.cc=_s,ce.style=We,we.lexical.hasOwnProperty("align")||(we.lexical.align=!0);;){var tc=_s.length?_s.pop():g?Ze:Zn;if(tc(En,fr)){for(;_s.length&&_s[_s.length-1].lex;)_s.pop()();return ce.marked?ce.marked:En=="variable"&&mt(we,fr)?"variable-2":We}}}var ce={state:null,column:null,marked:null,cc:null};function Be(){for(var we=arguments.length-1;we>=0;we--)ce.cc.push(arguments[we])}function ae(){return Be.apply(null,arguments),!0}function xe(we,We){for(var En=We;En;En=En.next)if(En.name==we)return!0;return!1}function U(we){var We=ce.state;if(ce.marked="def",We.context){if(We.lexical.info=="var"&&We.context&&We.context.block){var En=He(we,We.context);if(En!=null){We.context=En;return}}else if(!xe(we,We.localVars)){We.localVars=new At(we,We.localVars);return}}o.globalVars&&!xe(we,We.globalVars)&&(We.globalVars=new At(we,We.globalVars))}function He(we,We){if(We)if(We.block){var En=He(we,We.prev);return En?En==We.prev?We:new ft(En,We.vars,!0):null}else return xe(we,We.vars)?We:new ft(We.prev,new At(we,We.vars),!1);else return null}function yt(we){return we=="public"||we=="private"||we=="protected"||we=="abstract"||we=="readonly"}function ft(we,We,En){this.prev=we,this.vars=We,this.block=En}function At(we,We){this.name=we,this.next=We}var Jt=new At("this",new At("arguments",null));function un(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!1),ce.state.localVars=Jt}function kn(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!0),ce.state.localVars=null}function qt(){ce.state.localVars=ce.state.context.vars,ce.state.context=ce.state.context.prev}qt.lex=!0;function on(we,We){var En=function(){var fr=ce.state,xo=fr.indented;if(fr.lexical.type=="stat")xo=fr.lexical.indented;else for(var _s=fr.lexical;_s&&_s.type==")"&&_s.align;_s=_s.prev)xo=_s.indented;fr.lexical=new et(xo,ce.stream.column(),we,null,fr.lexical,We)};return En.lex=!0,En}function Rt(){var we=ce.state;we.lexical.prev&&(we.lexical.type==")"&&(we.indented=we.lexical.indented),we.lexical=we.lexical.prev)}Rt.lex=!0;function an(we){function We(En){return En==we?ae():we==";"||En=="}"||En==")"||En=="]"?Be():ae(We)}return We}function Zn(we,We){return we=="var"?ae(on("vardef",We),L3,an(";"),Rt):we=="keyword a"?ae(on("form"),Mn,Zn,Rt):we=="keyword b"?ae(on("form"),Zn,Rt):we=="keyword d"?ce.stream.match(/^\s*$/,!1)?ae():ae(on("stat"),ye,an(";"),Rt):we=="debugger"?ae(an(";")):we=="{"?ae(on("}"),kn,G,Rt,qt):we==";"?ae():we=="if"?(ce.state.lexical.info=="else"&&ce.state.cc[ce.state.cc.length-1]==Rt&&ce.state.cc.pop()(),ae(on("form"),Mn,Zn,Rt,Ne)):we=="function"?ae(Gr):we=="for"?ae(on("form"),Xe,Zn,Rt):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form",we=="class"?we:We),ck,Rt)):we=="variable"?w&&We=="declare"?(ce.marked="keyword",ae(Zn)):w&&(We=="module"||We=="enum"||We=="type")&&ce.stream.match(/^\s*\w/,!1)?(ce.marked="keyword",We=="enum"?ae(QC):We=="type"?ae(Rd,an("operator"),Ut,an(";")):ae(on("form"),_d,an("{"),on("}"),G,Rt,Rt)):w&&We=="namespace"?(ce.marked="keyword",ae(on("form"),Ze,Zn,Rt)):w&&We=="abstract"?(ce.marked="keyword",ae(Zn)):ae(on("stat"),tn):we=="switch"?ae(on("form"),Mn,an("{"),on("}","switch"),kn,G,Rt,Rt,qt):we=="case"?ae(Ze,an(":")):we=="default"?ae(an(":")):we=="catch"?ae(on("form"),un,kt,Zn,Rt,qt):we=="export"?ae(on("stat"),uk,Rt):we=="import"?ae(on("stat"),ak,Rt):we=="async"?ae(Zn):We=="@"?ae(Ze,Zn):Be(on("stat"),Ze,an(";"),Rt)}function kt(we){if(we=="(")return ae(Jg,an(")"))}function Ze(we,We){return pr(we,We,!1)}function Xt(we,We){return pr(we,We,!0)}function Mn(we){return we!="("?Be():ae(on(")"),Ze,an(")"),Rt)}function pr(we,We,En){if(ce.state.fatArrowAt==ce.stream.start){var fr=En?ge:ue;if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,an("=>"),fr,qt);if(we=="variable")return Be(un,_d,an("=>"),fr,qt)}var xo=En?ee:Ce;return je.hasOwnProperty(we)?ae(xo):we=="function"?ae(Gr,xo):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form"),mb,Rt)):we=="keyword c"||we=="async"?ae(En?Xt:Ze):we=="("?ae(on(")"),ye,an(")"),Rt,xo):we=="operator"||we=="spread"?ae(En?Xt:Ze):we=="["?ae(on("]"),BH,Rt,xo):we=="{"?de(Kn,"}",null,xo):we=="quasi"?Be(V,xo):we=="new"?ae(Ge(En)):we=="import"?ae(Ze):ae()}function ye(we){return we.match(/[;\}\)\],]/)?Be():Be(Ze)}function Ce(we,We){return we==","?ae(Ze):ee(we,We,!1)}function ee(we,We,En){var fr=En==!1?Ce:ee,xo=En==!1?Ze:Xt;if(we=="=>")return ae(un,En?ge:ue,qt);if(we=="operator")return/\+\+|--/.test(We)||w&&We=="!"?ae(fr):w&&We=="<"&&ce.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?ae(on(">"),br(Ut,">"),Rt,fr):We=="?"?ae(Ze,an(":"),xo):ae(xo);if(we=="quasi")return Be(V,fr);if(we!=";"){if(we=="(")return de(Xt,")","call",fr);if(we==".")return ae(Ct,fr);if(we=="[")return ae(on("]"),ye,an("]"),Rt,fr);if(w&&We=="as")return ce.marked="keyword",ae(Ut,fr);if(we=="regexp")return ce.state.lastType=ce.marked="operator",ce.stream.backUp(ce.stream.pos-ce.stream.start-1),ae(xo)}}function V(we,We){return we!="quasi"?Be():We.slice(We.length-2)!="${"?ae(V):ae(Ze,oe)}function oe(we){if(we=="}")return ce.marked="string-2",ce.state.tokenize=Z,ae(V)}function ue(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Ze)}function ge(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Xt)}function Ge(we){return function(We){return We=="."?ae(we?Lt:$t):We=="variable"&&w?ae(zs,we?ee:Ce):Be(we?Xt:Ze)}}function $t(we,We){if(We=="target")return ce.marked="keyword",ae(Ce)}function Lt(we,We){if(We=="target")return ce.marked="keyword",ae(ee)}function tn(we){return we==":"?ae(Rt,Zn):Be(Ce,an(";"),Rt)}function Ct(we){if(we=="variable")return ce.marked="property",ae()}function Kn(we,We){if(we=="async")return ce.marked="property",ae(Kn);if(we=="variable"||ce.style=="keyword"){if(ce.marked="property",We=="get"||We=="set")return ae(dn);var En;return w&&ce.state.fatArrowAt==ce.stream.start&&(En=ce.stream.match(/^\s*:\s*/,!1))&&(ce.state.fatArrowAt=ce.stream.pos+En[0].length),ae(Rn)}else{if(we=="number"||we=="string")return ce.marked=p?"property":ce.style+" property",ae(Rn);if(we=="jsonld-keyword")return ae(Rn);if(w&&yt(We))return ce.marked="keyword",ae(Kn);if(we=="[")return ae(Ze,Y,an("]"),Rn);if(we=="spread")return ae(Xt,Rn);if(We=="*")return ce.marked="keyword",ae(Kn);if(we==":")return Be(Rn)}}function dn(we){return we!="variable"?Be(Rn):(ce.marked="property",ae(Gr))}function Rn(we){if(we==":")return ae(Xt);if(we=="(")return Be(Gr)}function br(we,We,En){function fr(xo,_s){if(En?En.indexOf(xo)>-1:xo==","){var tc=ce.state.lexical;return tc.info=="call"&&(tc.pos=(tc.pos||0)+1),ae(function(Ad,Zg){return Ad==We||Zg==We?Be():Be(we)},fr)}return xo==We||_s==We?ae():En&&En.indexOf(";")>-1?Be(we):ae(an(We))}return function(xo,_s){return xo==We||_s==We?ae():Be(we,fr)}}function de(we,We,En){for(var fr=3;fr"),Ut)}function so(we){if(we=="=>")return ae(Ut)}function rl(we,We){if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(rl);if(We=="?"||we=="number"||we=="string")return ae(rl);if(we==":")return ae(Ut);if(we=="[")return ae(an("variable"),De,an("]"),rl);if(we=="(")return Be(lu,rl)}function Ro(we,We){return we=="variable"&&ce.stream.match(/^\s*[?:]/,!1)||We=="?"?ae(Ro):we==":"?ae(Ut):we=="spread"?ae(Ro):Be(Ut)}function Ao(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao);if(We=="|"||we=="."||We=="&")return ae(Ut);if(we=="[")return ae(Ut,an("]"),Ao);if(We=="extends"||We=="implements")return ce.marked="keyword",ae(Ut);if(We=="?")return ae(Ut,an(":"),Ut)}function zs(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao)}function by(){return Be(Ut,oT)}function oT(we,We){if(We=="=")return ae(Ut)}function L3(we,We){return We=="enum"?(ce.marked="keyword",ae(QC)):Be(_d,Y,$1,JC)}function _d(we,We){if(w&&yt(We))return ce.marked="keyword",ae(_d);if(we=="variable")return U(We),ae();if(we=="spread")return ae(_d);if(we=="[")return de(sT,"]");if(we=="{")return de(YC,"}")}function YC(we,We){return we=="variable"&&!ce.stream.match(/^\s*:/,!1)?(U(We),ae($1)):(we=="variable"&&(ce.marked="property"),we=="spread"?ae(_d):we=="}"?Be():we=="["?ae(Ze,an("]"),an(":"),YC):ae(an(":"),_d,$1))}function sT(){return Be(_d,$1)}function $1(we,We){if(We=="=")return ae(Xt)}function JC(we){if(we==",")return ae(L3)}function Ne(we,We){if(we=="keyword b"&&We=="else")return ae(on("form","else"),Zn,Rt)}function Xe(we,We){if(We=="await")return ae(Xe);if(we=="(")return ae(on(")"),Pr,Rt)}function Pr(we){return we=="var"?ae(L3,Cr):we=="variable"?ae(Cr):Be(Cr)}function Cr(we,We){return we==")"?ae():we==";"?ae(Cr):We=="in"||We=="of"?(ce.marked="keyword",ae(Ze,Cr)):Be(Ze,Cr)}function Gr(we,We){if(We=="*")return ce.marked="keyword",ae(Gr);if(we=="variable")return U(We),ae(Gr);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,Zn,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,Gr)}function lu(we,We){if(We=="*")return ce.marked="keyword",ae(lu);if(we=="variable")return U(We),ae(lu);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,lu)}function Rd(we,We){if(we=="keyword"||we=="variable")return ce.marked="type",ae(Rd);if(We=="<")return ae(on(">"),br(by,">"),Rt)}function Jg(we,We){return We=="@"&&ae(Ze,Jg),we=="spread"?ae(Jg):w&&yt(We)?(ce.marked="keyword",ae(Jg)):w&&we=="this"?ae(Y,$1):Be(_d,Y,$1)}function mb(we,We){return we=="variable"?ck(we,We):$3(we,We)}function ck(we,We){if(we=="variable")return U(We),ae($3)}function $3(we,We){if(We=="<")return ae(on(">"),br(by,">"),Rt,$3);if(We=="extends"||We=="implements"||w&&we==",")return We=="implements"&&(ce.marked="keyword"),ae(w?Ut:Ze,$3);if(we=="{")return ae(on("}"),j1,Rt)}function j1(we,We){if(we=="async"||we=="variable"&&(We=="static"||We=="get"||We=="set"||w&&yt(We))&&ce.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ce.marked="keyword",ae(j1);if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(w?wy:Gr,j1);if(we=="number"||we=="string")return ae(w?wy:Gr,j1);if(we=="[")return ae(Ze,Y,an("]"),w?wy:Gr,j1);if(We=="*")return ce.marked="keyword",ae(j1);if(w&&we=="(")return Be(lu,j1);if(we==";"||we==",")return ae(j1);if(we=="}")return ae();if(We=="@")return ae(Ze,j1)}function wy(we,We){if(We=="?")return ae(wy);if(we==":")return ae(Ut,$1);if(We=="=")return ae(Xt);var En=ce.state.lexical.prev,fr=En&&En.info=="interface";return Be(fr?lu:Gr)}function uk(we,We){return We=="*"?(ce.marked="keyword",ae(lT,an(";"))):We=="default"?(ce.marked="keyword",ae(Ze,an(";"))):we=="{"?ae(br(j3,"}"),lT,an(";")):Be(Zn)}function j3(we,We){if(We=="as")return ce.marked="keyword",ae(an("variable"));if(we=="variable")return Be(Xt,j3)}function ak(we){return we=="string"?ae():we=="("?Be(Ze):Be(Fp,Qg,lT)}function Fp(we,We){return we=="{"?de(Fp,"}"):(we=="variable"&&U(We),We=="*"&&(ce.marked="keyword"),ae(zp))}function Qg(we){if(we==",")return ae(Fp,Qg)}function zp(we,We){if(We=="as")return ce.marked="keyword",ae(Fp)}function lT(we,We){if(We=="from")return ce.marked="keyword",ae(Ze)}function BH(we){return we=="]"?ae():Be(br(Xt,"]"))}function QC(){return Be(on("form"),_d,an("{"),on("}"),br(cT,"}"),Rt,Rt)}function cT(){return Be(_d,$1)}function ZC(we,We){return we.lastType=="operator"||we.lastType==","||E.test(We.charAt(0))||/[,.]/.test(We.charAt(0))}function Y_(we,We,En){return We.tokenize==K&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(We.lastType)||We.lastType=="quasi"&&/\{\s*$/.test(we.string.slice(0,we.pos-(En||0)))}return{startState:function(we){var We={tokenize:K,lastType:"sof",cc:[],lexical:new et((we||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new ft(null,null,!1),indented:we||0};return o.globalVars&&typeof o.globalVars=="object"&&(We.globalVars=o.globalVars),We},token:function(we,We){if(we.sol()&&(We.lexical.hasOwnProperty("align")||(We.lexical.align=!1),We.indented=we.indentation(),ie(we,We)),We.tokenize!=Q&&we.eatSpace())return null;var En=We.tokenize(we,We);return _=="comment"?En:(We.lastType=_=="operator"&&(R=="++"||R=="--")?"incdec":_,bt(We,En,_,R,we))},indent:function(we,We){if(we.tokenize==Q)return CodeMirror.Pass;if(we.tokenize!=K)return 0;var En=We&&We.charAt(0),fr=we.lexical,xo;if(!/^\s*else\b/.test(We))for(var _s=we.cc.length-1;_s>=0;--_s){var tc=we.cc[_s];if(tc==Rt)fr=fr.prev;else if(tc!=Ne)break}for(;(fr.type=="stat"||fr.type=="form")&&(En=="}"||(xo=we.cc[we.cc.length-1])&&(xo==Ce||xo==ee)&&!/^[,\.=+\-*:?[\(]/.test(We));)fr=fr.prev;a&&fr.type==")"&&fr.prev.type=="stat"&&(fr=fr.prev);var Ad=fr.type,Zg=En==Ad;return Ad=="vardef"?fr.indented+(we.lastType=="operator"||we.lastType==","?fr.info.length+1:0):Ad=="form"&&En=="{"?fr.indented:Ad=="form"?fr.indented+l:Ad=="stat"?fr.indented+(ZC(we,We)?a||l:0):fr.info=="switch"&&!Zg&&o.doubleIndentSwitch!=!1?fr.indented+(/^(?:case|default)\b/.test(We)?l:2*l):fr.align?fr.column+(Zg?0:1):fr.indented+(Zg?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:p,jsonMode:g,expressionAllowed:Y_,skipExpression:function(we){var We=we.cc[we.cc.length-1];(We==Ze||We==Xt)&&we.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(r){var o=r.indentUnit,l;function a(I){return new RegExp("^(?:"+I.join("|")+")$","i")}a([]);var p=a(["@prefix","@base","a"]),g=/[*+\-<>=&|]/;function w(I,M){var _=I.next();if(l=null,_=="<"&&!I.match(/^[\s\u00a0=]/,!1))return I.match(/^[^\s\u00a0>]*>?/),"atom";if(_=='"'||_=="'")return M.tokenize=y(_),M.tokenize(I,M);if(/[{}\(\),\.;\[\]]/.test(_))return l=_,null;if(_=="#")return I.skipToEnd(),"comment";if(g.test(_))return I.eatWhile(g),null;if(_==":")return"operator";if(I.eatWhile(/[_\w\d]/),I.peek()==":")return"variable-3";var R=I.current();return p.test(R)?"meta":_>="A"&&_<="Z"?"comment":"keyword";var R=I.current()}function y(I){return function(M,_){for(var R=!1,j;(j=M.next())!=null;){if(j==I&&!R){_.tokenize=w;break}R=!R&&j=="\\"}return"string"}}function S(I,M,_){I.context={prev:I.context,indent:I.indent,col:_,type:M}}function E(I){I.indent=I.context.indent,I.context=I.context.prev}return{startState:function(){return{tokenize:w,context:null,indent:0,col:0}},token:function(I,M){if(I.sol()&&(M.context&&M.context.align==null&&(M.context.align=!1),M.indent=I.indentation()),I.eatSpace())return null;var _=M.tokenize(I,M);if(_!="comment"&&M.context&&M.context.align==null&&M.context.type!="pattern"&&(M.context.align=!0),l=="(")S(M,")",I.column());else if(l=="[")S(M,"]",I.column());else if(l=="{")S(M,"}",I.column());else if(/[\]\}\)]/.test(l)){for(;M.context&&M.context.type=="pattern";)E(M);M.context&&l==M.context.type&&E(M)}else l=="."&&M.context&&M.context.type=="pattern"?E(M):/atom|string|variable/.test(_)&&M.context&&(/[\}\]]/.test(M.context.type)?S(M,"pattern",I.column()):M.context.type=="pattern"&&!M.context.align&&(M.context.align=!0,M.context.col=I.column()));return _},indent:function(I,M){var _=M&&M.charAt(0),R=I.context;if(/[\]\}]/.test(_))for(;R&&R.type=="pattern";)R=R.prev;var j=R&&_==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(j?0:1):R.indent+(j?0:o):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var r={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function o(l,a){var p=l.location,g;p==r.PRE_SUBJECT&&a=="<"?g=r.WRITING_SUB_URI:p==r.PRE_SUBJECT&&a=="_"?g=r.WRITING_BNODE_URI:p==r.PRE_PRED&&a=="<"?g=r.WRITING_PRED_URI:p==r.PRE_OBJ&&a=="<"?g=r.WRITING_OBJ_URI:p==r.PRE_OBJ&&a=="_"?g=r.WRITING_OBJ_BNODE:p==r.PRE_OBJ&&a=='"'?g=r.WRITING_OBJ_LITERAL:p==r.WRITING_SUB_URI&&a==">"||p==r.WRITING_BNODE_URI&&a==" "?g=r.PRE_PRED:p==r.WRITING_PRED_URI&&a==">"?g=r.PRE_OBJ:p==r.WRITING_OBJ_URI&&a==">"||p==r.WRITING_OBJ_BNODE&&a==" "||p==r.WRITING_OBJ_LITERAL&&a=='"'||p==r.WRITING_LIT_LANG&&a==" "||p==r.WRITING_LIT_TYPE&&a==">"?g=r.POST_OBJ:p==r.WRITING_OBJ_LITERAL&&a=="@"?g=r.WRITING_LIT_LANG:p==r.WRITING_OBJ_LITERAL&&a=="^"?g=r.WRITING_LIT_TYPE:a==" "&&(p==r.PRE_SUBJECT||p==r.PRE_PRED||p==r.PRE_OBJ||p==r.POST_OBJ)?g=p:p==r.POST_OBJ&&a=="."?g=r.PRE_SUBJECT:g=r.ERROR,l.location=g}return{startState:function(){return{location:r.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(l,a){var p=l.next();if(p=="<"){o(a,p);var g="";return l.eatWhile(function(I){return I!="#"&&I!=">"?(g+=I,!0):!1}),a.uris.push(g),l.match("#",!1)||(l.next(),o(a,">")),"variable"}if(p=="#"){var w="";return l.eatWhile(function(I){return I!=">"&&I!=" "?(w+=I,!0):!1}),a.anchors.push(w),"variable-2"}if(p==">")return o(a,">"),"variable";if(p=="_"){o(a,p);var y="";return l.eatWhile(function(I){return I!=" "?(y+=I,!0):!1}),a.bnodes.push(y),l.next(),o(a," "),"builtin"}if(p=='"')return o(a,p),l.eatWhile(function(I){return I!='"'}),l.next(),l.peek()!="@"&&l.peek()!="^"&&o(a,'"'),"string";if(p=="@"){o(a,"@");var S="";return l.eatWhile(function(I){return I!=" "?(S+=I,!0):!1}),a.langs.push(S),l.next(),o(a," "),"string-2"}if(p=="^"){l.next(),o(a,"^");var E="";return l.eatWhile(function(I){return I!=">"?(E+=I,!0):!1}),a.types.push(E),l.next(),o(a,">"),"variable"}p==" "&&o(a,p),p=="."&&o(a,p)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var A7n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},L7n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(r,o){var l=r.indentUnit,a={},p=o.htmlMode?A7n:L7n;for(var g in p)a[g]=p[g];for(var g in o)a[g]=o[g];var w,y;function S(ce,Be){function ae(He){return Be.tokenize=He,He(ce,Be)}var xe=ce.next();if(xe=="<")return ce.eat("!")?ce.eat("[")?ce.match("CDATA[")?ae(M("atom","]]>")):null:ce.match("--")?ae(M("comment","-->")):ce.match("DOCTYPE",!0,!0)?(ce.eatWhile(/[\w\._\-]/),ae(_(1))):null:ce.eat("?")?(ce.eatWhile(/[\w\._\-]/),Be.tokenize=M("meta","?>"),"meta"):(w=ce.eat("/")?"closeTag":"openTag",Be.tokenize=E,"tag bracket");if(xe=="&"){var U;return ce.eat("#")?ce.eat("x")?U=ce.eatWhile(/[a-fA-F\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\w\.\-:]/)&&ce.eat(";"),U?"atom":"error"}else return ce.eatWhile(/[^&<]/),null}S.isInText=!0;function E(ce,Be){var ae=ce.next();if(ae==">"||ae=="/"&&ce.eat(">"))return Be.tokenize=S,w=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return w="equals",null;if(ae=="<"){Be.tokenize=S,Be.state=q,Be.tagName=Be.tagStart=null;var xe=Be.tokenize(ce,Be);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(Be.tokenize=I(ae),Be.stringStartCol=ce.column(),Be.tokenize(ce,Be)):(ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function I(ce){var Be=function(ae,xe){for(;!ae.eol();)if(ae.next()==ce){xe.tokenize=E;break}return"string"};return Be.isInAttribute=!0,Be}function M(ce,Be){return function(ae,xe){for(;!ae.eol();){if(ae.match(Be)){xe.tokenize=S;break}ae.next()}return ce}}function _(ce){return function(Be,ae){for(var xe;(xe=Be.next())!=null;){if(xe=="<")return ae.tokenize=_(ce+1),ae.tokenize(Be,ae);if(xe==">")if(ce==1){ae.tokenize=S;break}else return ae.tokenize=_(ce-1),ae.tokenize(Be,ae)}return"meta"}}function R(ce,Be,ae){this.prev=ce.context,this.tagName=Be,this.indent=ce.indented,this.startOfLine=ae,(a.doNotIndent.hasOwnProperty(Be)||ce.context&&ce.context.noIndent)&&(this.noIndent=!0)}function j(ce){ce.context&&(ce.context=ce.context.prev)}function K(ce,Be){for(var ae;;){if(!ce.context||(ae=ce.context.tagName,!a.contextGrabbers.hasOwnProperty(ae)||!a.contextGrabbers[ae].hasOwnProperty(Be)))return;j(ce)}}function q(ce,Be,ae){return ce=="openTag"?(ae.tagStart=Be.column(),Q):ce=="closeTag"?Z:q}function Q(ce,Be,ae){return ce=="word"?(ae.tagName=Be.current(),y="tag",je):a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",je(ce,Be,ae)):(y="error",Q)}function Z(ce,Be,ae){if(ce=="word"){var xe=Be.current();return ae.context&&ae.context.tagName!=xe&&a.implicitlyClosed.hasOwnProperty(ae.context.tagName)&&j(ae),ae.context&&ae.context.tagName==xe||a.matchClosing===!1?(y="tag",X):(y="tag error",ie)}else return a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",X(ce,Be,ae)):(y="error",ie)}function X(ce,Be,ae){return ce!="endTag"?(y="error",X):(j(ae),q)}function ie(ce,Be,ae){return y="error",X(ce,Be,ae)}function je(ce,Be,ae){if(ce=="word")return y="attribute",et;if(ce=="endTag"||ce=="selfcloseTag"){var xe=ae.tagName,U=ae.tagStart;return ae.tagName=ae.tagStart=null,ce=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(xe)?K(ae,xe):(K(ae,xe),ae.context=new R(ae,xe,U==ae.indented)),q}return y="error",je}function et(ce,Be,ae){return ce=="equals"?mt:(a.allowMissing||(y="error"),je(ce,Be,ae))}function mt(ce,Be,ae){return ce=="string"?bt:ce=="word"&&a.allowUnquoted?(y="string",je):(y="error",je(ce,Be,ae))}function bt(ce,Be,ae){return ce=="string"?bt:je(ce,Be,ae)}return{startState:function(ce){var Be={tokenize:S,state:q,indented:ce||0,tagName:null,tagStart:null,context:null};return ce!=null&&(Be.baseIndent=ce),Be},token:function(ce,Be){if(!Be.tagName&&ce.sol()&&(Be.indented=ce.indentation()),ce.eatSpace())return null;w=null;var ae=Be.tokenize(ce,Be);return(ae||w)&&ae!="comment"&&(y=null,Be.state=Be.state(w||ae,ce,Be),y&&(ae=y=="error"?ae+" error":y)),ae},indent:function(ce,Be,ae){var xe=ce.context;if(ce.tokenize.isInAttribute)return ce.tagStart==ce.indented?ce.stringStartCol+1:ce.indented+l;if(xe&&xe.noIndent)return CodeMirror.Pass;if(ce.tokenize!=E&&ce.tokenize!=S)return ae?ae.match(/^(\s*)/)[0].length:0;if(ce.tagName)return a.multilineTagIndentPastTag!==!1?ce.tagStart+ce.tagName.length+2:ce.tagStart+l*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/$/,blockCommentStart:"",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(ce){ce.state==mt&&(ce.state=je)},xmlCurrentTag:function(ce){return ce.tagName?{name:ce.tagName,close:ce.type=="closeTag"}:null},xmlCurrentContext:function(ce){for(var Be=[],ae=ce.context;ae;ae=ae.prev)ae.tagName&&Be.push(ae.tagName);return Be.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const rne=Symbol("parsed quads");let $7n=class extends R7n{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[rne]}set quads(o){if(typeof o>"u"||o===null)return;const l=this[rne];this[rne]=o,this.requestUpdate("quads",l)}async updated(o){super.updated(o);let l=!1,a=!1;const p=this.quads&&this.quads.length>0;o.has("format")&&(l=p&&!this.noReserialize,a=!l),o.has("quads")&&(l=!0),(o.has("prefixes")||o.has("customPrefixes"))&&(l=p),a?this.parse():l&&this.__serialize()}async _parse(){const{toStream:o}=await Xg(async()=>{const{toStream:w}=await import("./stream-C3gkHwb7.js");return{toStream:w}},[]),l=o(this.value),a=[],p={},g=this.$rdf.formats.parsers.import(this.format,l);if(!g){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}g.on("prefix",(w,y)=>{p[w]=y});for await(const w of g)a.push(w);this[rne]=a,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:a}})),this.__notifyParsedPrefixes(p)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:o}=await Xg(async()=>{const{Readable:w}=await import("./stream-C3gkHwb7.js");return{Readable:w}},[]),l=[...this.quads||[]],a=new o({objectMode:!0,read(){if(l.length===0){this.push(null);return}this.push(l.shift())}}),p=this.$rdf.formats.serializers.import(this.format,a,{prefixes:await this._combinePrefixes()});if(!p){this.value=`No serializer found for media type ${this.format}`;return}let g="";for await(const w of p)g+=w;this.format===py.jsonLd&&(g=JSON.stringify(JSON.parse(g),null,2)),this.value=g,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:g}}))}_errorLine(o){const l={message:o.message};return o.context&&o.context.line&&(l.from={line:o.context.line-1,ch:0},l.to={line:o.context.line-1,ch:Number.MAX_SAFE_INTEGER}),l}__notifyParsedPrefixes(o){const l={},a={...o};for(const[p,g]of Object.entries(o))p in Kne&&(l[p]=g,delete a[p]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...l,...a}}}))}};const lIt=new u9e([D9t,CH]);lIt.formats.import(bm);window.customElements.define("rdf-editor",class extends mwn($7n,lIt){});var $ie=(r=>(r.JsonLD="application/ld+json",r.Trig="application/trig",r.NQuads="application/n-quads",r.NTriples="application/n-triples",r.Turtle="text/turtle",r.RdfXML="application/rdf+xml",r))($ie||{});const N6=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],kxe="com.zazuko.sketch",$ne=`${kxe}.text`,jne=`${kxe}.format`,jCe=`${kxe}.prefix`,j7n=5e3,D7n={class:"editor-container"},N7n=[".value","format","customPrefixes"],kCt="rdf,rdfs,sh",B7n=bc({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(r,{emit:o}){const l=r,a=o,p=Co([]),g=Co(null),w=Co($ie.Turtle);Os(()=>l.format,_=>{_!==w.value&&(w.value=_)});const y=Co("");function S(_){console.error("Parsing failed",_.detail)}function E(_){var q,Q;const R=(Q=(q=g.value)==null?void 0:q.codeMirror)==null?void 0:Q.value,j=_.detail.value,K={quads:j,rdfText:R,serializationFormat:l.format,prefix:p.value};j.length{const _={};return p.value.forEach(R=>{typeof R.uri=="string"?_[R.prefix]=R.uri:_[R.prefix]=R.uri.value}),kCt.split(",").forEach(R=>{delete _[R]}),_});return bb(()=>{const _=localStorage.getItem($ne),R=localStorage.getItem(jne),j=JSON.parse(localStorage.getItem(jCe)??"[]");_&&R&&N6.find(K=>K.type===R)&&Array.isArray(j)?(y.value=_,w.value=(N6.find(K=>K.type===R)??N6[0]).type,p.value=j,a("format-change",w.value)):(localStorage.removeItem($ne),localStorage.removeItem(jne),localStorage.removeItem(jCe))}),(_,R)=>(ve(),wt("div",D7n,[ar("rdf-editor",{".value":y.value,format:w.value,ref_key:"editorElement",ref:g,prefixes:kCt,customPrefixes:M.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:S,onQuadsChanged:E,onPrefixesParsed:I},null,40,N7n)]))}}),$H=(r,o)=>{const l=r.__vccOpts||r;for(const[a,p]of o)l[a]=p;return l},F7n=$H(B7n,[["__scopeId","data-v-abcbd41c"]]);function CCt({parent:r,child:o}){return new Proxy({},{get(a,p){return o[p]||r[p]},set(a,p,g){return o[p]=g,!0},has(a,p){return p in o||p in r},ownKeys(){const a=Object.getOwnPropertyNames(r),p=Object.getOwnPropertyNames(o);return[...new Set([...a,...p]).values()]},getOwnPropertyDescriptor(a,p){return{enumerable:!p.toString().startsWith("_"),configurable:!0}}})}class Gz{constructor(o,{parent:l,bind:a=!1}={}){if(this._parent=l,o instanceof u9e||o instanceof Gz)return CCt({parent:l,child:o});this._factories=o.slice();const p=l?CCt({parent:l,child:this}):this;for(const g of this._factories){typeof g.prototype.init=="function"&&g.prototype.init.call(p);for(const w of g.exports||[])a?this[w]=g.prototype[w].bind(p):this[w]=g.prototype[w]}return p}clone(){const o=new Gz(this._factories,this._parent);for(const l of o._factories)typeof l.prototype.clone=="function"&&l.prototype.clone.call(o,this);return o}}const{Readable:z7n}=I9e;function H7n(r){const o=r[Symbol.iterator](),l=new z7n({objectMode:!0,read:()=>{for(;;){const a=o.next().value;if(!a){l.push(null);return}if(!l.push(a))return}}});return l}var K7n=H7n;const cIt=_3(K7n),{promisify:U7n}=die,{finished:G7n}=I9e;async function W7n(r,o){return o.on("data",l=>r.add(l)),await U7n(G7n)(o),r}var V7n=W7n;const uIt=_3(V7n);var q7n=class aIt{constructor(o,l=new Map,a=0){this.prefix=o,this._existing=l,this.counter=a}clone(){const{prefix:o,_existing:l,counter:a}=this;return new aIt(o,new Map(l),a)}getId(o){const l=o&&this._existing.get(o);if(l)return l;const a=this.prefix+this.counter;return this.counter++,o&&this._existing.set(o,a),a}hasId(o){return this._existing.has(o)}getOldIds(){return[...this._existing.keys()]}};(function(r,o){if(r.setImmediate)return;var l=1,a={},p=!1,g=r.document,w;function y(Z){typeof Z!="function"&&(Z=new Function(""+Z));for(var X=new Array(arguments.length-1),ie=0;ie"u"?typeof window>"u"?_wn:window:self);/*! + `}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(o){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(o)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:o}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[$Ce]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[R6]&&(this.codeMirror.editor.off("blur",this[R6]),this.codeMirror.editor.off("change",this[R6])),this.autoParse?(this[R6]=O7n(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[R6])):(this[R6]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[R6])))}async __beginParse(){this[$Ce]&&await this.parse(),this[$Ce]=!1}async __highlightError(o){if(!this.ready)return;let l={line:0,ch:0},a={line:0,ch:Number.MAX_SAFE_INTEGER};o&&o.from&&(l=o.from,this.codeMirror.editor.scrollIntoView(l)),o&&o.to&&(a=o.to);const p=o?o.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(l,a,{attributes:{part:"error",title:p}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((o,[l,a])=>!a||!l||typeof a!="string"||typeof l!="string"?o:{...o,[l]:a},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(r,o){var l=r.indentUnit,a=o.statementIndent,p=o.jsonld,g=o.json||p,w=o.typescript,y=o.wordCharacters||/[\w$\xa1-\uffff]/,S=function(){function we(Ad){return{type:Ad,style:"keyword"}}var We=we("keyword a"),En=we("keyword b"),fr=we("keyword c"),xo=we("keyword d"),_s=we("operator"),tc={type:"atom",style:"atom"};return{if:we("if"),while:We,with:We,else:En,do:En,try:En,finally:En,return:xo,break:xo,continue:xo,new:we("new"),delete:fr,void:fr,throw:fr,debugger:we("debugger"),var:we("var"),const:we("var"),let:we("var"),function:we("function"),catch:we("catch"),for:we("for"),switch:we("switch"),case:we("case"),default:we("default"),in:_s,typeof:_s,instanceof:_s,true:tc,false:tc,null:tc,undefined:tc,NaN:tc,Infinity:tc,this:we("this"),class:we("class"),super:we("atom"),yield:fr,export:we("export"),import:we("import"),extends:fr,await:fr}}(),E=/[+\-*&%=<>!?|~^@]/,I=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(we){for(var We=!1,En,fr=!1;(En=we.next())!=null;){if(!We){if(En=="/"&&!fr)return;En=="["?fr=!0:fr&&En=="]"&&(fr=!1)}We=!We&&En=="\\"}}var _,R;function j(we,We,En){return _=we,R=En,We}function K(we,We){var En=we.next();if(En=='"'||En=="'")return We.tokenize=q(En),We.tokenize(we,We);if(En=="."&&we.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(En=="."&&we.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(En))return j(En);if(En=="="&&we.eat(">"))return j("=>","operator");if(En=="0"&&we.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(En))return we.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(En=="/")return we.eat("*")?(We.tokenize=Q,Q(we,We)):we.eat("/")?(we.skipToEnd(),j("comment","comment")):Y_(we,We,1)?(M(we),we.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(we.eat("="),j("operator","operator",we.current()));if(En=="`")return We.tokenize=Z,Z(we,We);if(En=="#")return we.skipToEnd(),j("error","error");if(En=="<"&&we.match("!--")||En=="-"&&we.match("->"))return we.skipToEnd(),j("comment","comment");if(E.test(En))return(En!=">"||!We.lexical||We.lexical.type!=">")&&(we.eat("=")?(En=="!"||En=="=")&&we.eat("="):/[<>*+\-]/.test(En)&&(we.eat(En),En==">"&&we.eat(En))),j("operator","operator",we.current());if(y.test(En)){we.eatWhile(y);var fr=we.current();if(We.lastType!="."){if(S.propertyIsEnumerable(fr)){var xo=S[fr];return j(xo.type,xo.style,fr)}if(fr=="async"&&we.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",fr)}return j("variable","variable",fr)}}function q(we){return function(We,En){var fr=!1,xo;if(p&&We.peek()=="@"&&We.match(I))return En.tokenize=K,j("jsonld-keyword","meta");for(;(xo=We.next())!=null&&!(xo==we&&!fr);)fr=!fr&&xo=="\\";return fr||(En.tokenize=K),j("string","string")}}function Q(we,We){for(var En=!1,fr;fr=we.next();){if(fr=="/"&&En){We.tokenize=K;break}En=fr=="*"}return j("comment","comment")}function Z(we,We){for(var En=!1,fr;(fr=we.next())!=null;){if(!En&&(fr=="`"||fr=="$"&&we.eat("{"))){We.tokenize=K;break}En=!En&&fr=="\\"}return j("quasi","string-2",we.current())}var X="([{}])";function ie(we,We){We.fatArrowAt&&(We.fatArrowAt=null);var En=we.string.indexOf("=>",we.start);if(!(En<0)){if(w){var fr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(we.string.slice(we.start,En));fr&&(En=fr.index)}for(var xo=0,_s=!1,tc=En-1;tc>=0;--tc){var Ad=we.string.charAt(tc),Zg=X.indexOf(Ad);if(Zg>=0&&Zg<3){if(!xo){++tc;break}if(--xo==0){Ad=="("&&(_s=!0);break}}else if(Zg>=3&&Zg<6)++xo;else if(y.test(Ad))_s=!0;else if(/["'\/`]/.test(Ad))for(;;--tc){if(tc==0)return;var FH=we.string.charAt(tc-1);if(FH==Ad&&we.string.charAt(tc-2)!="\\"){tc--;break}}else if(_s&&!xo){++tc;break}}_s&&!xo&&(We.fatArrowAt=tc)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function et(we,We,En,fr,xo,_s){this.indented=we,this.column=We,this.type=En,this.prev=xo,this.info=_s,fr!=null&&(this.align=fr)}function mt(we,We){for(var En=we.localVars;En;En=En.next)if(En.name==We)return!0;for(var fr=we.context;fr;fr=fr.prev)for(var En=fr.vars;En;En=En.next)if(En.name==We)return!0}function bt(we,We,En,fr,xo){var _s=we.cc;for(ce.state=we,ce.stream=xo,ce.marked=null,ce.cc=_s,ce.style=We,we.lexical.hasOwnProperty("align")||(we.lexical.align=!0);;){var tc=_s.length?_s.pop():g?Ze:Zn;if(tc(En,fr)){for(;_s.length&&_s[_s.length-1].lex;)_s.pop()();return ce.marked?ce.marked:En=="variable"&&mt(we,fr)?"variable-2":We}}}var ce={state:null,column:null,marked:null,cc:null};function Be(){for(var we=arguments.length-1;we>=0;we--)ce.cc.push(arguments[we])}function ae(){return Be.apply(null,arguments),!0}function xe(we,We){for(var En=We;En;En=En.next)if(En.name==we)return!0;return!1}function U(we){var We=ce.state;if(ce.marked="def",We.context){if(We.lexical.info=="var"&&We.context&&We.context.block){var En=He(we,We.context);if(En!=null){We.context=En;return}}else if(!xe(we,We.localVars)){We.localVars=new At(we,We.localVars);return}}o.globalVars&&!xe(we,We.globalVars)&&(We.globalVars=new At(we,We.globalVars))}function He(we,We){if(We)if(We.block){var En=He(we,We.prev);return En?En==We.prev?We:new ft(En,We.vars,!0):null}else return xe(we,We.vars)?We:new ft(We.prev,new At(we,We.vars),!1);else return null}function yt(we){return we=="public"||we=="private"||we=="protected"||we=="abstract"||we=="readonly"}function ft(we,We,En){this.prev=we,this.vars=We,this.block=En}function At(we,We){this.name=we,this.next=We}var Jt=new At("this",new At("arguments",null));function un(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!1),ce.state.localVars=Jt}function kn(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!0),ce.state.localVars=null}function qt(){ce.state.localVars=ce.state.context.vars,ce.state.context=ce.state.context.prev}qt.lex=!0;function on(we,We){var En=function(){var fr=ce.state,xo=fr.indented;if(fr.lexical.type=="stat")xo=fr.lexical.indented;else for(var _s=fr.lexical;_s&&_s.type==")"&&_s.align;_s=_s.prev)xo=_s.indented;fr.lexical=new et(xo,ce.stream.column(),we,null,fr.lexical,We)};return En.lex=!0,En}function Rt(){var we=ce.state;we.lexical.prev&&(we.lexical.type==")"&&(we.indented=we.lexical.indented),we.lexical=we.lexical.prev)}Rt.lex=!0;function an(we){function We(En){return En==we?ae():we==";"||En=="}"||En==")"||En=="]"?Be():ae(We)}return We}function Zn(we,We){return we=="var"?ae(on("vardef",We),L3,an(";"),Rt):we=="keyword a"?ae(on("form"),Mn,Zn,Rt):we=="keyword b"?ae(on("form"),Zn,Rt):we=="keyword d"?ce.stream.match(/^\s*$/,!1)?ae():ae(on("stat"),ye,an(";"),Rt):we=="debugger"?ae(an(";")):we=="{"?ae(on("}"),kn,G,Rt,qt):we==";"?ae():we=="if"?(ce.state.lexical.info=="else"&&ce.state.cc[ce.state.cc.length-1]==Rt&&ce.state.cc.pop()(),ae(on("form"),Mn,Zn,Rt,Ne)):we=="function"?ae(Gr):we=="for"?ae(on("form"),Xe,Zn,Rt):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form",we=="class"?we:We),ck,Rt)):we=="variable"?w&&We=="declare"?(ce.marked="keyword",ae(Zn)):w&&(We=="module"||We=="enum"||We=="type")&&ce.stream.match(/^\s*\w/,!1)?(ce.marked="keyword",We=="enum"?ae(QC):We=="type"?ae(Rd,an("operator"),Ut,an(";")):ae(on("form"),_d,an("{"),on("}"),G,Rt,Rt)):w&&We=="namespace"?(ce.marked="keyword",ae(on("form"),Ze,Zn,Rt)):w&&We=="abstract"?(ce.marked="keyword",ae(Zn)):ae(on("stat"),tn):we=="switch"?ae(on("form"),Mn,an("{"),on("}","switch"),kn,G,Rt,Rt,qt):we=="case"?ae(Ze,an(":")):we=="default"?ae(an(":")):we=="catch"?ae(on("form"),un,kt,Zn,Rt,qt):we=="export"?ae(on("stat"),uk,Rt):we=="import"?ae(on("stat"),ak,Rt):we=="async"?ae(Zn):We=="@"?ae(Ze,Zn):Be(on("stat"),Ze,an(";"),Rt)}function kt(we){if(we=="(")return ae(Jg,an(")"))}function Ze(we,We){return pr(we,We,!1)}function Xt(we,We){return pr(we,We,!0)}function Mn(we){return we!="("?Be():ae(on(")"),Ze,an(")"),Rt)}function pr(we,We,En){if(ce.state.fatArrowAt==ce.stream.start){var fr=En?ge:ue;if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,an("=>"),fr,qt);if(we=="variable")return Be(un,_d,an("=>"),fr,qt)}var xo=En?ee:Ce;return je.hasOwnProperty(we)?ae(xo):we=="function"?ae(Gr,xo):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form"),mb,Rt)):we=="keyword c"||we=="async"?ae(En?Xt:Ze):we=="("?ae(on(")"),ye,an(")"),Rt,xo):we=="operator"||we=="spread"?ae(En?Xt:Ze):we=="["?ae(on("]"),BH,Rt,xo):we=="{"?de(Kn,"}",null,xo):we=="quasi"?Be(V,xo):we=="new"?ae(Ge(En)):we=="import"?ae(Ze):ae()}function ye(we){return we.match(/[;\}\)\],]/)?Be():Be(Ze)}function Ce(we,We){return we==","?ae(Ze):ee(we,We,!1)}function ee(we,We,En){var fr=En==!1?Ce:ee,xo=En==!1?Ze:Xt;if(we=="=>")return ae(un,En?ge:ue,qt);if(we=="operator")return/\+\+|--/.test(We)||w&&We=="!"?ae(fr):w&&We=="<"&&ce.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?ae(on(">"),br(Ut,">"),Rt,fr):We=="?"?ae(Ze,an(":"),xo):ae(xo);if(we=="quasi")return Be(V,fr);if(we!=";"){if(we=="(")return de(Xt,")","call",fr);if(we==".")return ae(Ct,fr);if(we=="[")return ae(on("]"),ye,an("]"),Rt,fr);if(w&&We=="as")return ce.marked="keyword",ae(Ut,fr);if(we=="regexp")return ce.state.lastType=ce.marked="operator",ce.stream.backUp(ce.stream.pos-ce.stream.start-1),ae(xo)}}function V(we,We){return we!="quasi"?Be():We.slice(We.length-2)!="${"?ae(V):ae(Ze,oe)}function oe(we){if(we=="}")return ce.marked="string-2",ce.state.tokenize=Z,ae(V)}function ue(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Ze)}function ge(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Xt)}function Ge(we){return function(We){return We=="."?ae(we?Lt:$t):We=="variable"&&w?ae(zs,we?ee:Ce):Be(we?Xt:Ze)}}function $t(we,We){if(We=="target")return ce.marked="keyword",ae(Ce)}function Lt(we,We){if(We=="target")return ce.marked="keyword",ae(ee)}function tn(we){return we==":"?ae(Rt,Zn):Be(Ce,an(";"),Rt)}function Ct(we){if(we=="variable")return ce.marked="property",ae()}function Kn(we,We){if(we=="async")return ce.marked="property",ae(Kn);if(we=="variable"||ce.style=="keyword"){if(ce.marked="property",We=="get"||We=="set")return ae(dn);var En;return w&&ce.state.fatArrowAt==ce.stream.start&&(En=ce.stream.match(/^\s*:\s*/,!1))&&(ce.state.fatArrowAt=ce.stream.pos+En[0].length),ae(Rn)}else{if(we=="number"||we=="string")return ce.marked=p?"property":ce.style+" property",ae(Rn);if(we=="jsonld-keyword")return ae(Rn);if(w&&yt(We))return ce.marked="keyword",ae(Kn);if(we=="[")return ae(Ze,Y,an("]"),Rn);if(we=="spread")return ae(Xt,Rn);if(We=="*")return ce.marked="keyword",ae(Kn);if(we==":")return Be(Rn)}}function dn(we){return we!="variable"?Be(Rn):(ce.marked="property",ae(Gr))}function Rn(we){if(we==":")return ae(Xt);if(we=="(")return Be(Gr)}function br(we,We,En){function fr(xo,_s){if(En?En.indexOf(xo)>-1:xo==","){var tc=ce.state.lexical;return tc.info=="call"&&(tc.pos=(tc.pos||0)+1),ae(function(Ad,Zg){return Ad==We||Zg==We?Be():Be(we)},fr)}return xo==We||_s==We?ae():En&&En.indexOf(";")>-1?Be(we):ae(an(We))}return function(xo,_s){return xo==We||_s==We?ae():Be(we,fr)}}function de(we,We,En){for(var fr=3;fr"),Ut)}function so(we){if(we=="=>")return ae(Ut)}function rl(we,We){if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(rl);if(We=="?"||we=="number"||we=="string")return ae(rl);if(we==":")return ae(Ut);if(we=="[")return ae(an("variable"),De,an("]"),rl);if(we=="(")return Be(lu,rl)}function Ro(we,We){return we=="variable"&&ce.stream.match(/^\s*[?:]/,!1)||We=="?"?ae(Ro):we==":"?ae(Ut):we=="spread"?ae(Ro):Be(Ut)}function Ao(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao);if(We=="|"||we=="."||We=="&")return ae(Ut);if(we=="[")return ae(Ut,an("]"),Ao);if(We=="extends"||We=="implements")return ce.marked="keyword",ae(Ut);if(We=="?")return ae(Ut,an(":"),Ut)}function zs(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao)}function by(){return Be(Ut,oT)}function oT(we,We){if(We=="=")return ae(Ut)}function L3(we,We){return We=="enum"?(ce.marked="keyword",ae(QC)):Be(_d,Y,$1,JC)}function _d(we,We){if(w&&yt(We))return ce.marked="keyword",ae(_d);if(we=="variable")return U(We),ae();if(we=="spread")return ae(_d);if(we=="[")return de(sT,"]");if(we=="{")return de(YC,"}")}function YC(we,We){return we=="variable"&&!ce.stream.match(/^\s*:/,!1)?(U(We),ae($1)):(we=="variable"&&(ce.marked="property"),we=="spread"?ae(_d):we=="}"?Be():we=="["?ae(Ze,an("]"),an(":"),YC):ae(an(":"),_d,$1))}function sT(){return Be(_d,$1)}function $1(we,We){if(We=="=")return ae(Xt)}function JC(we){if(we==",")return ae(L3)}function Ne(we,We){if(we=="keyword b"&&We=="else")return ae(on("form","else"),Zn,Rt)}function Xe(we,We){if(We=="await")return ae(Xe);if(we=="(")return ae(on(")"),Pr,Rt)}function Pr(we){return we=="var"?ae(L3,Cr):we=="variable"?ae(Cr):Be(Cr)}function Cr(we,We){return we==")"?ae():we==";"?ae(Cr):We=="in"||We=="of"?(ce.marked="keyword",ae(Ze,Cr)):Be(Ze,Cr)}function Gr(we,We){if(We=="*")return ce.marked="keyword",ae(Gr);if(we=="variable")return U(We),ae(Gr);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,Zn,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,Gr)}function lu(we,We){if(We=="*")return ce.marked="keyword",ae(lu);if(we=="variable")return U(We),ae(lu);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,lu)}function Rd(we,We){if(we=="keyword"||we=="variable")return ce.marked="type",ae(Rd);if(We=="<")return ae(on(">"),br(by,">"),Rt)}function Jg(we,We){return We=="@"&&ae(Ze,Jg),we=="spread"?ae(Jg):w&&yt(We)?(ce.marked="keyword",ae(Jg)):w&&we=="this"?ae(Y,$1):Be(_d,Y,$1)}function mb(we,We){return we=="variable"?ck(we,We):$3(we,We)}function ck(we,We){if(we=="variable")return U(We),ae($3)}function $3(we,We){if(We=="<")return ae(on(">"),br(by,">"),Rt,$3);if(We=="extends"||We=="implements"||w&&we==",")return We=="implements"&&(ce.marked="keyword"),ae(w?Ut:Ze,$3);if(we=="{")return ae(on("}"),j1,Rt)}function j1(we,We){if(we=="async"||we=="variable"&&(We=="static"||We=="get"||We=="set"||w&&yt(We))&&ce.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ce.marked="keyword",ae(j1);if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(w?wy:Gr,j1);if(we=="number"||we=="string")return ae(w?wy:Gr,j1);if(we=="[")return ae(Ze,Y,an("]"),w?wy:Gr,j1);if(We=="*")return ce.marked="keyword",ae(j1);if(w&&we=="(")return Be(lu,j1);if(we==";"||we==",")return ae(j1);if(we=="}")return ae();if(We=="@")return ae(Ze,j1)}function wy(we,We){if(We=="?")return ae(wy);if(we==":")return ae(Ut,$1);if(We=="=")return ae(Xt);var En=ce.state.lexical.prev,fr=En&&En.info=="interface";return Be(fr?lu:Gr)}function uk(we,We){return We=="*"?(ce.marked="keyword",ae(lT,an(";"))):We=="default"?(ce.marked="keyword",ae(Ze,an(";"))):we=="{"?ae(br(j3,"}"),lT,an(";")):Be(Zn)}function j3(we,We){if(We=="as")return ce.marked="keyword",ae(an("variable"));if(we=="variable")return Be(Xt,j3)}function ak(we){return we=="string"?ae():we=="("?Be(Ze):Be(Fp,Qg,lT)}function Fp(we,We){return we=="{"?de(Fp,"}"):(we=="variable"&&U(We),We=="*"&&(ce.marked="keyword"),ae(zp))}function Qg(we){if(we==",")return ae(Fp,Qg)}function zp(we,We){if(We=="as")return ce.marked="keyword",ae(Fp)}function lT(we,We){if(We=="from")return ce.marked="keyword",ae(Ze)}function BH(we){return we=="]"?ae():Be(br(Xt,"]"))}function QC(){return Be(on("form"),_d,an("{"),on("}"),br(cT,"}"),Rt,Rt)}function cT(){return Be(_d,$1)}function ZC(we,We){return we.lastType=="operator"||we.lastType==","||E.test(We.charAt(0))||/[,.]/.test(We.charAt(0))}function Y_(we,We,En){return We.tokenize==K&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(We.lastType)||We.lastType=="quasi"&&/\{\s*$/.test(we.string.slice(0,we.pos-(En||0)))}return{startState:function(we){var We={tokenize:K,lastType:"sof",cc:[],lexical:new et((we||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new ft(null,null,!1),indented:we||0};return o.globalVars&&typeof o.globalVars=="object"&&(We.globalVars=o.globalVars),We},token:function(we,We){if(we.sol()&&(We.lexical.hasOwnProperty("align")||(We.lexical.align=!1),We.indented=we.indentation(),ie(we,We)),We.tokenize!=Q&&we.eatSpace())return null;var En=We.tokenize(we,We);return _=="comment"?En:(We.lastType=_=="operator"&&(R=="++"||R=="--")?"incdec":_,bt(We,En,_,R,we))},indent:function(we,We){if(we.tokenize==Q)return CodeMirror.Pass;if(we.tokenize!=K)return 0;var En=We&&We.charAt(0),fr=we.lexical,xo;if(!/^\s*else\b/.test(We))for(var _s=we.cc.length-1;_s>=0;--_s){var tc=we.cc[_s];if(tc==Rt)fr=fr.prev;else if(tc!=Ne)break}for(;(fr.type=="stat"||fr.type=="form")&&(En=="}"||(xo=we.cc[we.cc.length-1])&&(xo==Ce||xo==ee)&&!/^[,\.=+\-*:?[\(]/.test(We));)fr=fr.prev;a&&fr.type==")"&&fr.prev.type=="stat"&&(fr=fr.prev);var Ad=fr.type,Zg=En==Ad;return Ad=="vardef"?fr.indented+(we.lastType=="operator"||we.lastType==","?fr.info.length+1:0):Ad=="form"&&En=="{"?fr.indented:Ad=="form"?fr.indented+l:Ad=="stat"?fr.indented+(ZC(we,We)?a||l:0):fr.info=="switch"&&!Zg&&o.doubleIndentSwitch!=!1?fr.indented+(/^(?:case|default)\b/.test(We)?l:2*l):fr.align?fr.column+(Zg?0:1):fr.indented+(Zg?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:p,jsonMode:g,expressionAllowed:Y_,skipExpression:function(we){var We=we.cc[we.cc.length-1];(We==Ze||We==Xt)&&we.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(r){var o=r.indentUnit,l;function a(I){return new RegExp("^(?:"+I.join("|")+")$","i")}a([]);var p=a(["@prefix","@base","a"]),g=/[*+\-<>=&|]/;function w(I,M){var _=I.next();if(l=null,_=="<"&&!I.match(/^[\s\u00a0=]/,!1))return I.match(/^[^\s\u00a0>]*>?/),"atom";if(_=='"'||_=="'")return M.tokenize=y(_),M.tokenize(I,M);if(/[{}\(\),\.;\[\]]/.test(_))return l=_,null;if(_=="#")return I.skipToEnd(),"comment";if(g.test(_))return I.eatWhile(g),null;if(_==":")return"operator";if(I.eatWhile(/[_\w\d]/),I.peek()==":")return"variable-3";var R=I.current();return p.test(R)?"meta":_>="A"&&_<="Z"?"comment":"keyword";var R=I.current()}function y(I){return function(M,_){for(var R=!1,j;(j=M.next())!=null;){if(j==I&&!R){_.tokenize=w;break}R=!R&&j=="\\"}return"string"}}function S(I,M,_){I.context={prev:I.context,indent:I.indent,col:_,type:M}}function E(I){I.indent=I.context.indent,I.context=I.context.prev}return{startState:function(){return{tokenize:w,context:null,indent:0,col:0}},token:function(I,M){if(I.sol()&&(M.context&&M.context.align==null&&(M.context.align=!1),M.indent=I.indentation()),I.eatSpace())return null;var _=M.tokenize(I,M);if(_!="comment"&&M.context&&M.context.align==null&&M.context.type!="pattern"&&(M.context.align=!0),l=="(")S(M,")",I.column());else if(l=="[")S(M,"]",I.column());else if(l=="{")S(M,"}",I.column());else if(/[\]\}\)]/.test(l)){for(;M.context&&M.context.type=="pattern";)E(M);M.context&&l==M.context.type&&E(M)}else l=="."&&M.context&&M.context.type=="pattern"?E(M):/atom|string|variable/.test(_)&&M.context&&(/[\}\]]/.test(M.context.type)?S(M,"pattern",I.column()):M.context.type=="pattern"&&!M.context.align&&(M.context.align=!0,M.context.col=I.column()));return _},indent:function(I,M){var _=M&&M.charAt(0),R=I.context;if(/[\]\}]/.test(_))for(;R&&R.type=="pattern";)R=R.prev;var j=R&&_==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(j?0:1):R.indent+(j?0:o):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var r={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function o(l,a){var p=l.location,g;p==r.PRE_SUBJECT&&a=="<"?g=r.WRITING_SUB_URI:p==r.PRE_SUBJECT&&a=="_"?g=r.WRITING_BNODE_URI:p==r.PRE_PRED&&a=="<"?g=r.WRITING_PRED_URI:p==r.PRE_OBJ&&a=="<"?g=r.WRITING_OBJ_URI:p==r.PRE_OBJ&&a=="_"?g=r.WRITING_OBJ_BNODE:p==r.PRE_OBJ&&a=='"'?g=r.WRITING_OBJ_LITERAL:p==r.WRITING_SUB_URI&&a==">"||p==r.WRITING_BNODE_URI&&a==" "?g=r.PRE_PRED:p==r.WRITING_PRED_URI&&a==">"?g=r.PRE_OBJ:p==r.WRITING_OBJ_URI&&a==">"||p==r.WRITING_OBJ_BNODE&&a==" "||p==r.WRITING_OBJ_LITERAL&&a=='"'||p==r.WRITING_LIT_LANG&&a==" "||p==r.WRITING_LIT_TYPE&&a==">"?g=r.POST_OBJ:p==r.WRITING_OBJ_LITERAL&&a=="@"?g=r.WRITING_LIT_LANG:p==r.WRITING_OBJ_LITERAL&&a=="^"?g=r.WRITING_LIT_TYPE:a==" "&&(p==r.PRE_SUBJECT||p==r.PRE_PRED||p==r.PRE_OBJ||p==r.POST_OBJ)?g=p:p==r.POST_OBJ&&a=="."?g=r.PRE_SUBJECT:g=r.ERROR,l.location=g}return{startState:function(){return{location:r.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(l,a){var p=l.next();if(p=="<"){o(a,p);var g="";return l.eatWhile(function(I){return I!="#"&&I!=">"?(g+=I,!0):!1}),a.uris.push(g),l.match("#",!1)||(l.next(),o(a,">")),"variable"}if(p=="#"){var w="";return l.eatWhile(function(I){return I!=">"&&I!=" "?(w+=I,!0):!1}),a.anchors.push(w),"variable-2"}if(p==">")return o(a,">"),"variable";if(p=="_"){o(a,p);var y="";return l.eatWhile(function(I){return I!=" "?(y+=I,!0):!1}),a.bnodes.push(y),l.next(),o(a," "),"builtin"}if(p=='"')return o(a,p),l.eatWhile(function(I){return I!='"'}),l.next(),l.peek()!="@"&&l.peek()!="^"&&o(a,'"'),"string";if(p=="@"){o(a,"@");var S="";return l.eatWhile(function(I){return I!=" "?(S+=I,!0):!1}),a.langs.push(S),l.next(),o(a," "),"string-2"}if(p=="^"){l.next(),o(a,"^");var E="";return l.eatWhile(function(I){return I!=">"?(E+=I,!0):!1}),a.types.push(E),l.next(),o(a,">"),"variable"}p==" "&&o(a,p),p=="."&&o(a,p)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var A7n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},L7n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(r,o){var l=r.indentUnit,a={},p=o.htmlMode?A7n:L7n;for(var g in p)a[g]=p[g];for(var g in o)a[g]=o[g];var w,y;function S(ce,Be){function ae(He){return Be.tokenize=He,He(ce,Be)}var xe=ce.next();if(xe=="<")return ce.eat("!")?ce.eat("[")?ce.match("CDATA[")?ae(M("atom","]]>")):null:ce.match("--")?ae(M("comment","-->")):ce.match("DOCTYPE",!0,!0)?(ce.eatWhile(/[\w\._\-]/),ae(_(1))):null:ce.eat("?")?(ce.eatWhile(/[\w\._\-]/),Be.tokenize=M("meta","?>"),"meta"):(w=ce.eat("/")?"closeTag":"openTag",Be.tokenize=E,"tag bracket");if(xe=="&"){var U;return ce.eat("#")?ce.eat("x")?U=ce.eatWhile(/[a-fA-F\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\w\.\-:]/)&&ce.eat(";"),U?"atom":"error"}else return ce.eatWhile(/[^&<]/),null}S.isInText=!0;function E(ce,Be){var ae=ce.next();if(ae==">"||ae=="/"&&ce.eat(">"))return Be.tokenize=S,w=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return w="equals",null;if(ae=="<"){Be.tokenize=S,Be.state=q,Be.tagName=Be.tagStart=null;var xe=Be.tokenize(ce,Be);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(Be.tokenize=I(ae),Be.stringStartCol=ce.column(),Be.tokenize(ce,Be)):(ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function I(ce){var Be=function(ae,xe){for(;!ae.eol();)if(ae.next()==ce){xe.tokenize=E;break}return"string"};return Be.isInAttribute=!0,Be}function M(ce,Be){return function(ae,xe){for(;!ae.eol();){if(ae.match(Be)){xe.tokenize=S;break}ae.next()}return ce}}function _(ce){return function(Be,ae){for(var xe;(xe=Be.next())!=null;){if(xe=="<")return ae.tokenize=_(ce+1),ae.tokenize(Be,ae);if(xe==">")if(ce==1){ae.tokenize=S;break}else return ae.tokenize=_(ce-1),ae.tokenize(Be,ae)}return"meta"}}function R(ce,Be,ae){this.prev=ce.context,this.tagName=Be,this.indent=ce.indented,this.startOfLine=ae,(a.doNotIndent.hasOwnProperty(Be)||ce.context&&ce.context.noIndent)&&(this.noIndent=!0)}function j(ce){ce.context&&(ce.context=ce.context.prev)}function K(ce,Be){for(var ae;;){if(!ce.context||(ae=ce.context.tagName,!a.contextGrabbers.hasOwnProperty(ae)||!a.contextGrabbers[ae].hasOwnProperty(Be)))return;j(ce)}}function q(ce,Be,ae){return ce=="openTag"?(ae.tagStart=Be.column(),Q):ce=="closeTag"?Z:q}function Q(ce,Be,ae){return ce=="word"?(ae.tagName=Be.current(),y="tag",je):a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",je(ce,Be,ae)):(y="error",Q)}function Z(ce,Be,ae){if(ce=="word"){var xe=Be.current();return ae.context&&ae.context.tagName!=xe&&a.implicitlyClosed.hasOwnProperty(ae.context.tagName)&&j(ae),ae.context&&ae.context.tagName==xe||a.matchClosing===!1?(y="tag",X):(y="tag error",ie)}else return a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",X(ce,Be,ae)):(y="error",ie)}function X(ce,Be,ae){return ce!="endTag"?(y="error",X):(j(ae),q)}function ie(ce,Be,ae){return y="error",X(ce,Be,ae)}function je(ce,Be,ae){if(ce=="word")return y="attribute",et;if(ce=="endTag"||ce=="selfcloseTag"){var xe=ae.tagName,U=ae.tagStart;return ae.tagName=ae.tagStart=null,ce=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(xe)?K(ae,xe):(K(ae,xe),ae.context=new R(ae,xe,U==ae.indented)),q}return y="error",je}function et(ce,Be,ae){return ce=="equals"?mt:(a.allowMissing||(y="error"),je(ce,Be,ae))}function mt(ce,Be,ae){return ce=="string"?bt:ce=="word"&&a.allowUnquoted?(y="string",je):(y="error",je(ce,Be,ae))}function bt(ce,Be,ae){return ce=="string"?bt:je(ce,Be,ae)}return{startState:function(ce){var Be={tokenize:S,state:q,indented:ce||0,tagName:null,tagStart:null,context:null};return ce!=null&&(Be.baseIndent=ce),Be},token:function(ce,Be){if(!Be.tagName&&ce.sol()&&(Be.indented=ce.indentation()),ce.eatSpace())return null;w=null;var ae=Be.tokenize(ce,Be);return(ae||w)&&ae!="comment"&&(y=null,Be.state=Be.state(w||ae,ce,Be),y&&(ae=y=="error"?ae+" error":y)),ae},indent:function(ce,Be,ae){var xe=ce.context;if(ce.tokenize.isInAttribute)return ce.tagStart==ce.indented?ce.stringStartCol+1:ce.indented+l;if(xe&&xe.noIndent)return CodeMirror.Pass;if(ce.tokenize!=E&&ce.tokenize!=S)return ae?ae.match(/^(\s*)/)[0].length:0;if(ce.tagName)return a.multilineTagIndentPastTag!==!1?ce.tagStart+ce.tagName.length+2:ce.tagStart+l*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/$/,blockCommentStart:"",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(ce){ce.state==mt&&(ce.state=je)},xmlCurrentTag:function(ce){return ce.tagName?{name:ce.tagName,close:ce.type=="closeTag"}:null},xmlCurrentContext:function(ce){for(var Be=[],ae=ce.context;ae;ae=ae.prev)ae.tagName&&Be.push(ae.tagName);return Be.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const rne=Symbol("parsed quads");let $7n=class extends R7n{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[rne]}set quads(o){if(typeof o>"u"||o===null)return;const l=this[rne];this[rne]=o,this.requestUpdate("quads",l)}async updated(o){super.updated(o);let l=!1,a=!1;const p=this.quads&&this.quads.length>0;o.has("format")&&(l=p&&!this.noReserialize,a=!l),o.has("quads")&&(l=!0),(o.has("prefixes")||o.has("customPrefixes"))&&(l=p),a?this.parse():l&&this.__serialize()}async _parse(){const{toStream:o}=await Xg(async()=>{const{toStream:w}=await import("./stream-DR3nFz_Q.js");return{toStream:w}},[]),l=o(this.value),a=[],p={},g=this.$rdf.formats.parsers.import(this.format,l);if(!g){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}g.on("prefix",(w,y)=>{p[w]=y});for await(const w of g)a.push(w);this[rne]=a,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:a}})),this.__notifyParsedPrefixes(p)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:o}=await Xg(async()=>{const{Readable:w}=await import("./stream-DR3nFz_Q.js");return{Readable:w}},[]),l=[...this.quads||[]],a=new o({objectMode:!0,read(){if(l.length===0){this.push(null);return}this.push(l.shift())}}),p=this.$rdf.formats.serializers.import(this.format,a,{prefixes:await this._combinePrefixes()});if(!p){this.value=`No serializer found for media type ${this.format}`;return}let g="";for await(const w of p)g+=w;this.format===py.jsonLd&&(g=JSON.stringify(JSON.parse(g),null,2)),this.value=g,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:g}}))}_errorLine(o){const l={message:o.message};return o.context&&o.context.line&&(l.from={line:o.context.line-1,ch:0},l.to={line:o.context.line-1,ch:Number.MAX_SAFE_INTEGER}),l}__notifyParsedPrefixes(o){const l={},a={...o};for(const[p,g]of Object.entries(o))p in Kne&&(l[p]=g,delete a[p]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...l,...a}}}))}};const lIt=new u9e([D9t,CH]);lIt.formats.import(bm);window.customElements.define("rdf-editor",class extends mwn($7n,lIt){});var $ie=(r=>(r.JsonLD="application/ld+json",r.Trig="application/trig",r.NQuads="application/n-quads",r.NTriples="application/n-triples",r.Turtle="text/turtle",r.RdfXML="application/rdf+xml",r))($ie||{});const N6=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],kxe="com.zazuko.sketch",$ne=`${kxe}.text`,jne=`${kxe}.format`,jCe=`${kxe}.prefix`,j7n=5e3,D7n={class:"editor-container"},N7n=[".value","format","customPrefixes"],kCt="rdf,rdfs,sh",B7n=bc({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(r,{emit:o}){const l=r,a=o,p=Co([]),g=Co(null),w=Co($ie.Turtle);Os(()=>l.format,_=>{_!==w.value&&(w.value=_)});const y=Co("");function S(_){console.error("Parsing failed",_.detail)}function E(_){var q,Q;const R=(Q=(q=g.value)==null?void 0:q.codeMirror)==null?void 0:Q.value,j=_.detail.value,K={quads:j,rdfText:R,serializationFormat:l.format,prefix:p.value};j.length{const _={};return p.value.forEach(R=>{typeof R.uri=="string"?_[R.prefix]=R.uri:_[R.prefix]=R.uri.value}),kCt.split(",").forEach(R=>{delete _[R]}),_});return bb(()=>{const _=localStorage.getItem($ne),R=localStorage.getItem(jne),j=JSON.parse(localStorage.getItem(jCe)??"[]");_&&R&&N6.find(K=>K.type===R)&&Array.isArray(j)?(y.value=_,w.value=(N6.find(K=>K.type===R)??N6[0]).type,p.value=j,a("format-change",w.value)):(localStorage.removeItem($ne),localStorage.removeItem(jne),localStorage.removeItem(jCe))}),(_,R)=>(ve(),wt("div",D7n,[ar("rdf-editor",{".value":y.value,format:w.value,ref_key:"editorElement",ref:g,prefixes:kCt,customPrefixes:M.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:S,onQuadsChanged:E,onPrefixesParsed:I},null,40,N7n)]))}}),$H=(r,o)=>{const l=r.__vccOpts||r;for(const[a,p]of o)l[a]=p;return l},F7n=$H(B7n,[["__scopeId","data-v-abcbd41c"]]);function CCt({parent:r,child:o}){return new Proxy({},{get(a,p){return o[p]||r[p]},set(a,p,g){return o[p]=g,!0},has(a,p){return p in o||p in r},ownKeys(){const a=Object.getOwnPropertyNames(r),p=Object.getOwnPropertyNames(o);return[...new Set([...a,...p]).values()]},getOwnPropertyDescriptor(a,p){return{enumerable:!p.toString().startsWith("_"),configurable:!0}}})}class Gz{constructor(o,{parent:l,bind:a=!1}={}){if(this._parent=l,o instanceof u9e||o instanceof Gz)return CCt({parent:l,child:o});this._factories=o.slice();const p=l?CCt({parent:l,child:this}):this;for(const g of this._factories){typeof g.prototype.init=="function"&&g.prototype.init.call(p);for(const w of g.exports||[])a?this[w]=g.prototype[w].bind(p):this[w]=g.prototype[w]}return p}clone(){const o=new Gz(this._factories,this._parent);for(const l of o._factories)typeof l.prototype.clone=="function"&&l.prototype.clone.call(o,this);return o}}const{Readable:z7n}=I9e;function H7n(r){const o=r[Symbol.iterator](),l=new z7n({objectMode:!0,read:()=>{for(;;){const a=o.next().value;if(!a){l.push(null);return}if(!l.push(a))return}}});return l}var K7n=H7n;const cIt=_3(K7n),{promisify:U7n}=die,{finished:G7n}=I9e;async function W7n(r,o){return o.on("data",l=>r.add(l)),await U7n(G7n)(o),r}var V7n=W7n;const uIt=_3(V7n);var q7n=class aIt{constructor(o,l=new Map,a=0){this.prefix=o,this._existing=l,this.counter=a}clone(){const{prefix:o,_existing:l,counter:a}=this;return new aIt(o,new Map(l),a)}getId(o){const l=o&&this._existing.get(o);if(l)return l;const a=this.prefix+this.counter;return this.counter++,o&&this._existing.set(o,a),a}hasId(o){return this._existing.has(o)}getOldIds(){return[...this._existing.keys()]}};(function(r,o){if(r.setImmediate)return;var l=1,a={},p=!1,g=r.document,w;function y(Z){typeof Z!="function"&&(Z=new Function(""+Z));for(var X=new Array(arguments.length-1),ie=0;ie"u"?typeof window>"u"?_wn:window:self);/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. */const DCe=self.crypto||self.msCrypto;var X7n=class{constructor(o){if(!(DCe&&DCe.subtle))throw new Error("crypto.subtle not found.");if(o==="sha256")this.algorithm={name:"SHA-256"};else if(o==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${o}".`);this._content=""}update(o){this._content+=o}async digest(){const o=new TextEncoder().encode(this._content),l=new Uint8Array(await DCe.subtle.digest(this.algorithm,o));let a="";for(let p=0;pnew iSn("sha256"),canonicalIdMap:l=new Map,maxDeepIterations:a=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new xCt("_:c14n",l),this.createMessageDigest=o,this.maxDeepIterations=a,this.quads=null,this.deepIterations=null}main(o){this.deepIterations=new Map,this.quads=o;for(const y of o)this._addBlankNodeQuadInfo({quad:y,component:y.subject}),this._addBlankNodeQuadInfo({quad:y,component:y.object}),this._addBlankNodeQuadInfo({quad:y,component:y.graph});const l=new Map,a=[...this.blankNodeInfo.keys()];for(const y of a)this._hashAndTrackBlankNode({id:y,hashToBlankNodes:l});const p=[...l.keys()].sort(),g=[];for(const y of p){const S=l.get(y);if(S.length>1){g.push(S);continue}const E=S[0];this.canonicalIssuer.getId(E)}for(const y of g){const S=[];for(const E of y){if(this.canonicalIssuer.hasId(E))continue;const I=new xCt("_:b");I.getId(E);const M=this.hashNDegreeQuads(E,I);S.push(M)}S.sort(lSn);for(const E of S){const I=E.issuer.getOldIds();for(const M of I)this.canonicalIssuer.getId(M)}}const w=[];for(const y of this.quads){const S=ECt.serializeQuadComponents(this._componentWithCanonicalId({component:y.subject}),y.predicate,this._componentWithCanonicalId({component:y.object}),this._componentWithCanonicalId({component:y.graph}));w.push(S)}return w.sort(),w.join("")}hashFirstDegreeQuads(o){const l=[],a=this.blankNodeInfo.get(o),p=a.quads;for(const w of p){const y={subject:null,predicate:w.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(o,w.subject,"subject"),y.object=this.modifyFirstDegreeComponent(o,w.object,"object"),y.graph=this.modifyFirstDegreeComponent(o,w.graph,"graph"),l.push(ECt.serializeQuad(y))}l.sort();const g=this.createMessageDigest();for(const w of l)g.update(w);return a.hash=g.digest(),a.hash}hashRelatedBlankNode(o,l,a,p){let g;this.canonicalIssuer.hasId(o)?g=this.canonicalIssuer.getId(o):a.hasId(o)?g=a.getId(o):g=this.blankNodeInfo.get(o).hash;const w=this.createMessageDigest();return w.update(p),p!=="g"&&w.update(this.getRelatedPredicate(l)),w.update(g),w.digest()}hashNDegreeQuads(o,l){const a=this.deepIterations.get(o)||0;if(a>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(o,a+1);const p=this.createMessageDigest(),g=this.createHashToRelated(o,l),w=[...g.keys()].sort();for(const y of w){p.update(y);let S="",E;const I=new oSn(g.get(y));for(;I.hasNext();){const M=I.next();let _=l.clone(),R="";const j=[];let K=!1;for(const q of M)if(this.canonicalIssuer.hasId(q)?R+=this.canonicalIssuer.getId(q):(_.hasId(q)||j.push(q),R+=_.getId(q)),S.length!==0&&R>S){K=!0;break}if(!K){for(const q of j){const Q=this.hashNDegreeQuads(q,_);if(R+=_.getId(q),R+=`<${Q.hash}>`,_=Q.issuer,S.length!==0&&R>S){K=!0;break}}K||(S.length===0||R`}createHashToRelated(o,l){const a=new Map,p=this.blankNodeInfo.get(o).quads;for(const g of p)this._addRelatedBlankNodeHash({quad:g,component:g.subject,position:"s",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.object,position:"o",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.graph,position:"g",id:o,issuer:l,hashToRelated:a});return a}_hashAndTrackBlankNode({id:o,hashToBlankNodes:l}){const a=this.hashFirstDegreeQuads(o),p=l.get(a);p?p.push(o):l.set(a,[o])}_addBlankNodeQuadInfo({quad:o,component:l}){if(l.termType!=="BlankNode")return;const a=l.value,p=this.blankNodeInfo.get(a);p?p.quads.add(o):this.blankNodeInfo.set(a,{quads:new Set([o]),hash:null})}_addRelatedBlankNodeHash({quad:o,component:l,position:a,id:p,issuer:g,hashToRelated:w}){if(!(l.termType==="BlankNode"&&l.value!==p))return;const y=l.value,S=this.hashRelatedBlankNode(y,o,g,a),E=w.get(S);E?E.push(y):w.set(S,[y])}_componentWithCanonicalId({component:o}){return o.termType==="BlankNode"&&!o.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(o.value)}:o}};function lSn(r,o){return r.hasho.hash?1:0}const cSn=sSn;function uSn(r){return new cSn().main(r)}var aSn=uSn;const fIt=_3(aSn);function fSn(r,o){for(const l of o)r.add(l);return r}var dSn=fSn;const lSe=_3(dSn);function hSn(r,o,l,a,p){const g=r.match(o,l,a,p);for(const w of g)r.delete(w);return r}var pSn=hSn;const dIt=_3(pSn);function gSn(r,o){if(r.size!==o.size)return!1;for(const l of r)if(!o.has(l))return!1;return!0}var bSn=gSn;const hIt=_3(bSn),wSn=r=>class{constructor(){M8e(this,"dataset")}init(){const o=r(this);this.dataset=(l=[])=>new o([...l]),this.dataset.Class=o,this.dataset.addAll=lSe,this.dataset.deleteMatch=dIt,this.dataset.equals=hIt}},mSn=r=>class extends wSn(r){init(){super.init(),this.dataset.toCanonical=fIt,this.dataset.toStream=cIt,this.dataset.fromStream=o=>uIt(this.dataset(),o)}};let Cxe=class{namespace(o){return Gn(o,{factory:this})}};Cxe.exports=["namespace"];const Sxe=r=>{const o=r.namespace("http://www.w3.org/2001/XMLSchema#"),l=r.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:l.first,nil:l.nil,rest:l.rest,langString:l.langString,xsd:o}};function Gg(r,o){return typeof r>"u"||r===null?o:Array.isArray(r)?r:typeof r!="string"&&r[Symbol.iterator]?[...r]:[r]}const iT=new u9e([Cxe,CH]),{xsd:cSe}=Sxe(iT);function vSn(r,o=iT){return typeof r!="boolean"?null:o.literal(r.toString(),cSe("boolean"))}function ySn(r,o=iT){return typeof r!="number"?null:Number.isInteger(r)?o.literal(r.toString(10),cSe("integer")):o.literal(r.toString(10),cSe("double"))}function kSn(r,o=iT){return typeof r!="string"?null:o.literal(r)}function CSn(r,o=iT){return vSn(r,o)||ySn(r,o)||kSn(r,o)}function SSn(r,o){if(r&&typeof r!="string")throw new Error("Blank node identifier must be a string");return o.blankNode(r)}function xSn(r,o,l){if(typeof r=="string")return o=o&&(o.value||o.toString()),o&&o.indexOf(":")!==-1&&(o=l.namedNode(o)),l.literal(r.toString(),o);const a=CSn(r,l);if(!a)throw new Error("The value cannot be converted to a literal node");return a}function TCt(r,o){if(typeof r!="string")throw new Error("Named node must be an IRI string");return o.namedNode(r)}function pIt(r,o="Literal",l,a){if(r&&typeof r=="object"&&r.termType)return r;if(r&&r.constructor.name==="URL")return TCt(r.toString(),a);if(o==="BlankNode")return SSn(r,a);if(!(r===null||typeof r>"u")){if(o==="Literal")return xSn(r,l,a);if(o==="NamedNode")return TCt(r,a);throw new Error("unknown type")}}function ESn(r,o,l,a){return(typeof r>"u"||r===null)&&!o?r:(Gg(r)||[void 0]).reduce((p,g)=>typeof g=="object"&&g.terms?p.concat(g.terms):(p.push(pIt(g,o,l,a)),p),[])}const ICt=Sxe(iT);function TSn(r,o){const l=o.termType!=="Literal",a=ICt.langString.equals(o.datatype)||ICt.xsd.string.equals(o.datatype);if(l||!a)return r;const p=o.language.toLowerCase();return r.has(p)?r.get(p).push(o):r.set(p,[o]),r}function ISn(r){const o=r.reduce(TSn,new Map),l=[...o.entries()];return a=>{const p=a.toLowerCase();if(p==="*")return l[0]&&l[0][1];const g=o.get(p);if(g)return g;const w=l.find(([y])=>y.startsWith(p));return w&&w[1]}}function PSn(r,{language:o}){const l=typeof o=="string"?[o]:o,a=ISn(r);return l.map(a).find(Boolean)||[]}class xxe{constructor({dataset:o,graph:l,value:a,factory:p,namespace:g}){this.dataset=o,this.graph=l,this.factory=p,this.namespace=g,this.term=pIt(a,void 0,void 0,p)}clone({dataset:o=this.dataset,graph:l=this.graph,value:a,factory:p=this.factory,namespace:g=this.namespace}){return new xxe({dataset:o,graph:l,value:a,factory:p,namespace:g})}has(o,l){return this.matchProperty(Gg(this.term),o,l,Gg(this.graph),"subject").map(a=>this.clone({value:a}))}in(o){return this.matchProperty(null,o,Gg(this.term),Gg(this.graph),"subject").map(l=>this.clone({value:l}))}out(o,{language:l}={}){let a=this.matchProperty(Gg(this.term),o,null,Gg(this.graph),"object");return typeof l<"u"&&(a=PSn(a,{language:l})),a.map(p=>this.clone({value:p}))}addIn(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(p,g,this.term,this.graph))}),a.push(this.clone({value:p}))}),a}addOut(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(this.term,g,p,this.graph))}),a.push(this.clone({value:p}))}),a}addList(o,l){this.term&&o.forEach(a=>{const p=l.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,a,p[0]||this.namespace.nil,this.graph));for(let g=0;g{for(const a of this.dataset.match(this.term,l))this.deleteItems(a)})}deleteItems(o){let l=[o];for(;!l[l.length-1].object.equals(this.namespace.nil);){const a=l[l.length-1].object;l=l.concat([...this.dataset.match(a)])}l.forEach(a=>{this.dataset.delete(a)})}match(o,l,a,p){if(!o&&!l&&!a&&!p)return[...this.dataset];o=o||[null],l=l||[null],a=a||[null],p=p||[null];const g=[];for(const w of p)for(const y of o)for(const S of l)for(const E of a)for(const I of this.dataset.match(y,S,E,w))g.push(I);return g}matchProperty(o,l,a,p,g){return this.match(o,l,a,p).map(w=>w[g])}deleteMatch(o,l,a,p){this.match(o,l,a,p).forEach(g=>{this.dataset.delete(g)})}}class Ug{constructor({dataset:o,graph:l,term:a,value:p,factory:g,_context:w}){if(this.factory=g,this.namespace=Sxe(g),w){this._context=w;return}const y=a&&Gg(a)||p&&Gg(p)||[null];this._context=y.map(S=>new xxe({dataset:o,graph:l,value:S,factory:this.factory,namespace:this.namespace}))}get term(){const o=this.terms;if(o.length===1)return o[0]}get terms(){return this._context.map(o=>o.term).filter(Boolean)}get value(){const o=this.term;return o&&o.value}get values(){return this.terms.map(o=>o.value)}get dataset(){const o=this.datasets;if(o.length===1)return o[0]}get datasets(){return this._context.map(o=>o.dataset).filter(Boolean)}any(){return Ug.fromContext(this._context.map(o=>o.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let o=this;return{[Symbol.iterator]:()=>({next:()=>{if(!o.term||o.term.equals(this.namespace.nil))return{done:!0};const l=o.out(this.namespace.first);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${o.value}`);const a=o.out(this.namespace.rest);if(a.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${o.value}`);return o=a,{done:!1,value:l}}})}}toArray(){return this._context.map(o=>Ug.fromContext(o,this)).filter(o=>o.terms.some(Boolean))}filter(o){const l=this._context.map(a=>Ug.fromContext(a,this));return Ug.fromContext(this._context.filter((a,p)=>o(Ug.fromContext(a,this),p,l)),this)}forEach(o){return this.toArray().forEach(o),this}map(o){return this.toArray().map(o)}toString(){return this.values.join()}node(o,{type:l,datatype:a,language:p}={}){o=this._toTermArray(o,l,a||p)||[null];const g=o.reduce((w,y)=>w.concat(this._context.reduce((S,E)=>S.concat([E.clone({value:y})]),[])),[]);return Ug.fromContext(g,{factory:this.factory})}blankNode(o){return this.node(o,{type:"BlankNode"})}literal(o,l){return this.node(o,{type:"Literal",datatype:l})}namedNode(o){return this.node(o,{type:"NamedNode"})}in(o){o=this._toTermArray(o);const l=this._context.reduce((a,p)=>a.concat(p.in(o)),[]);return Ug.fromContext(l,this)}out(o,l={}){o=this._toTermArray(o);const a=this._context.reduce((p,g)=>p.concat(g.out(o,l)),[]);return Ug.fromContext(a,this)}has(o,l){o=this._toTermArray(o),l=this._toTermArray(l);const a=this._context.reduce((p,g)=>p.concat(g.has(o,l)),[]);return Ug.fromContext(a,this)}addIn(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addIn(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addOut(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addOut(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addList(o,l){if(!o||!l)throw new Error("predicate and items parameter is required");return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.addList(o,l)),this}deleteIn(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteIn(o,l)),this}deleteOut(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteOut(o,l)),this}deleteList(o){if(!o)throw new Error("predicate parameter is required");return o=this._toTermArray(o),this._context.forEach(l=>l.deleteList(o)),this}_toTermArray(o,l,a){return ESn(o,l,a,this.factory)}static fromContext(o,{factory:l}){return new Ug({_context:Gg(o),factory:l})}}function MSn({dataset:r,graph:o,term:l,value:a,factory:p=iT,_context:g}){return new Ug({dataset:r,graph:o,term:l,value:a,factory:p,_context:g})}class gIt{clownface({...o}={}){return!o.dataset&&typeof this.dataset=="function"&&(o.dataset=this.dataset()),MSn({...o,factory:this})}}gIt.exports=["clownface"];let bIt=class{termMap(o){return new kF(o)}};bIt.exports=["termMap"];function PCt(r){try{return w3(r)}catch{return null}}class yre{constructor(o){if(this.index=new Map,o)for(const l of o)this.add(l)}get size(){return this.index.size}add(o){const l=w3(o);return this.index.has(l)||this.index.set(l,o),this}clear(){this.index.clear()}delete(o){return o?this.index.delete(PCt(o)):!1}entries(){return this.values().entries()}forEach(o,l){return this.values().forEach(o,l)}has(o){return o?this.index.has(PCt(o)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let wIt=class{termSet(o){return new yre(o)}};wIt.exports=["termSet"];class OSn{constructor(){this.quadLevel=new Map}add(o,l){this.quadLevel.set(w3(o),l)}has(o,l){const a=this.quadLevel.get(w3(o));return a===void 0?!1:a<=l}}function FCe({backward:r,callback:o,dataset:l,filter:a,forward:p,term:g,visited:w=new OSn}){const y=(S,E)=>{const I=M=>{for(const _ of M){if(w.has(_,E))continue;w.add(_,E);const R={dataset:l,level:E,quad:_};a(R)&&(o(R),p&&y(_.object,E+1),r&&y(_.subject,E+1))}};p&&I(l.match(S)),r&&I(l.match(null,null,S))};y(g,0)}class _Sn{constructor(o,{backward:l=!1,factory:a,forward:p=!0}){this.backward=l,this.factory=a,this.filter=o,this.forward=p}forEach({term:o,dataset:l},a){FCe({backward:this.backward,callback:a,dataset:l,filter:this.filter,forward:this.forward,term:o})}match({term:o,dataset:l}){const a=this.factory.dataset();return FCe({backward:this.backward,callback:({quad:p})=>a.add(p),dataset:l,filter:this.filter,forward:this.forward,term:o}),a}reduce({term:o,dataset:l},a,p){let g=p;return FCe({backward:this.backward,callback:w=>{g=a(w,g)},dataset:l,filter:this.filter,forward:this.forward,term:o}),g}}class mIt{traverser(o,{backward:l=!1,forward:a=!0}={}){return new _Sn(o,{backward:l,factory:this,forward:a})}}mIt.exports=["traverser"];const RSn=new Gz([CH,D9t,Cxe,tEt,gIt,bIt,wIt,mIt]);function ASn(r,{checkOpen:o=!0}={}){return r!==null&&typeof r=="object"&&(r.writable||r.readable||!o||r.writable===void 0&&r.readable===void 0)&&typeof r.pipe=="function"}function LSn(r,{checkOpen:o=!0}={}){return ASn(r,{checkOpen:o})&&(r.readable||!o)&&typeof r.read=="function"&&typeof r.readable=="boolean"&&typeof r.readableObjectMode=="boolean"&&typeof r.destroy=="function"&&typeof r.destroyed=="boolean"}const $Sn=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var h3,dH,TC,ty,D_,vIt,yIt;class jSn{constructor(o,l){Zx(this,D_);Zx(this,h3);Zx(this,dH);Zx(this,TC,!1);Zx(this,ty);s3(this,h3,o),s3(this,dH,l)}next(){const o=()=>_8e(this,D_,vIt).call(this);return s3(this,ty,Kh(this,ty)?Kh(this,ty).then(o,o):o()),Kh(this,ty)}return(o){const l=()=>_8e(this,D_,yIt).call(this,o);return Kh(this,ty)?Kh(this,ty).then(l,l):l()}}h3=new WeakMap,dH=new WeakMap,TC=new WeakMap,ty=new WeakMap,D_=new WeakSet,vIt=async function(){if(Kh(this,TC))return{done:!0,value:void 0};let o;try{o=await Kh(this,h3).read()}catch(l){throw s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock(),l}return o.done&&(s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock()),o},yIt=async function(o){if(Kh(this,TC))return{done:!0,value:o};if(s3(this,TC,!0),!Kh(this,dH)){const l=Kh(this,h3).cancel(o);return Kh(this,h3).releaseLock(),await l,{done:!0,value:o}}return Kh(this,h3).releaseLock(),{done:!0,value:o}};const Exe=Symbol();function kIt(){return this[Exe].next()}Object.defineProperty(kIt,"name",{value:"next"});function CIt(r){return this[Exe].return(r)}Object.defineProperty(CIt,"name",{value:"return"});const DSn=Object.create($Sn,{next:{enumerable:!0,configurable:!0,writable:!0,value:kIt},return:{enumerable:!0,configurable:!0,writable:!0,value:CIt}});function NSn({preventCancel:r=!1}={}){const o=this.getReader(),l=new jSn(o,r),a=Object.create(DSn);return a[Exe]=l,a}const BSn=r=>{if(LSn(r,{checkOpen:!1})&&Txe.on!==void 0)return zSn(r);if(typeof(r==null?void 0:r[Symbol.asyncIterator])=="function")return r;if(FSn.call(r)==="[object ReadableStream]")return NSn.call(r);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:FSn}=Object.prototype,zSn=async function*(r){const o=new AbortController,l={};HSn(r,o,l);try{for await(const[a]of Txe.on(r,"data",{signal:o.signal}))yield a}catch(a){if(l.error!==void 0)throw l.error;if(!o.signal.aborted)throw a}finally{r.destroy()}},HSn=async(r,o,l)=>{try{await Txe.finished(r,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(a){l.error=a}finally{o.abort()}},Txe={},KSn=async(r,{init:o,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,finalize:y},{maxBuffer:S=Number.POSITIVE_INFINITY}={})=>{const E=BSn(r),I=o();I.length=0;try{for await(const M of E){const _=GSn(M),R=l[_](M,I);SIt({convertedChunk:R,state:I,getSize:a,truncateChunk:p,addChunk:g,maxBuffer:S})}return USn({state:I,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,maxBuffer:S}),y(I)}catch(M){const _=typeof M=="object"&&M!==null?M:new Error(M);throw _.bufferedData=y(I),_}},USn=({state:r,getSize:o,truncateChunk:l,addChunk:a,getFinalChunk:p,maxBuffer:g})=>{const w=p(r);w!==void 0&&SIt({convertedChunk:w,state:r,getSize:o,truncateChunk:l,addChunk:a,maxBuffer:g})},SIt=({convertedChunk:r,state:o,getSize:l,truncateChunk:a,addChunk:p,maxBuffer:g})=>{const w=l(r),y=o.length+w;if(y<=g){MCt(r,o,p,y);return}const S=a(r,g-o.length);throw S!==void 0&&MCt(S,o,p,g),new WSn},MCt=(r,o,l,a)=>{o.contents=l(r,o,a),o.length=a},GSn=r=>{var a;const o=typeof r;if(o==="string")return"string";if(o!=="object"||r===null)return"others";if((a=globalThis.Buffer)!=null&&a.isBuffer(r))return"buffer";const l=OCt.call(r);return l==="[object ArrayBuffer]"?"arrayBuffer":l==="[object DataView]"?"dataView":Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&OCt.call(r.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:OCt}=Object.prototype;class WSn extends Error{constructor(){super("maxBuffer exceeded");M8e(this,"name","MaxBufferError")}}const VSn=r=>r,qSn=({contents:r})=>r,XSn=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)},YSn=r=>r.length;async function JSn(r,o){return KSn(r,n9n,o)}const QSn=()=>({contents:"",textDecoder:new TextDecoder}),ine=(r,{textDecoder:o})=>o.decode(r,{stream:!0}),ZSn=(r,{contents:o})=>o+r,e9n=(r,o)=>r.slice(0,o),t9n=({textDecoder:r})=>{const o=r.decode();return o===""?void 0:o},n9n={init:QSn,convertChunk:{string:VSn,buffer:ine,arrayBuffer:ine,dataView:ine,typedArray:ine,others:XSn},getSize:YSn,truncateChunk:e9n,addChunk:ZSn,getFinalChunk:t9n,finalize:qSn};function cE(r){return typeof r=="string"||r instanceof String}const r9n="http://www.w3.org/2001/XMLSchema#string";function Wf(r){if(typeof r=="string")return r;if(!r)return"";if(typeof r.id<"u"&&r.termType!=="Quad")return r.id;let o,l,a,p;switch(r.termType){case"NamedNode":return r.value;case"BlankNode":return`_:${r.value}`;case"Variable":return`?${r.value}`;case"DefaultGraph":return"";case"Literal":return r.language?`"${r.value}"@${r.language}`:`"${r.value}"${r.datatype&&r.datatype.value!==r9n?`^^${r.datatype.value}`:""}`;case"Quad":return o=zCe(Wf(r.subject)),l=zCe(Wf(r.predicate)),a=zCe(Wf(r.object)),p=r.graph.termType==="DefaultGraph"?"":` ${Wf(r.graph)}`,`<<${o} ${l} ${a}${p}>>`;default:throw new Error(`Unexpected termType: ${r.termType}`)}}const i9n=/^"(.*".*)(?="[^"]*$)/;function zCe(r){return r.replace(i9n,(o,l)=>`"${l.replace(/"/g,'""')}`)}class o9n{constructor(o){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,o)for(const l of o)this.add(l)}get size(){let o=this._size;if(o!==null)return o;o=0;const l=this._graphs;let a,p;for(const g in l)for(const w in a=l[g].subjects)for(const y in p=a[w])o+=Object.keys(p[y]).length;return this._size=o,this._size}add(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph);let w=this._graphs[g];w||(w=this._graphs[g]={subjects:{},predicates:{},objects:{}},Object.freeze(w));const y=this._ids,S=this._entities;return l=y[l]||(y[S[++this._id]=l]=this._id),a=y[a]||(y[S[++this._id]=a]=this._id),p=y[p]||(y[S[++this._id]=p]=this._id),this._addToIndex(w.subjects,l,a,p),this._addToIndex(w.predicates,a,p,l),this._addToIndex(w.objects,p,l,a),this._setQuad(l,a,p,g,o),this._size=null,this}delete(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph),w=this._ids,y=this._graphs;let S,E,I;if(!(l=w[l])||!(a=w[a])||!(p=w[p])||!(S=y[g])||!(E=S.subjects[l])||!(I=E[a])||!(p in I))return this;this._removeFromIndex(S.subjects,l,a,p),this._removeFromIndex(S.predicates,a,p,l),this._removeFromIndex(S.objects,p,l,a),this._size!==null&&this._size--,this._deleteQuad(l,a,p,g);for(l in S.subjects)return this;return delete y[g],this}has(o){const l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object),g=Wf(o.graph),w=this._graphs[g];if(!w)return!1;const y=this._ids;let S,E,I;return cE(l)&&!(S=y[l])||cE(a)&&!(E=y[a])||cE(p)&&!(I=y[p])?!1:this._countInIndex(w.objects,I,S,E)===1}match(o,l,a,p){return this._createDataset(this._match(o,l,a,p))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(o,l,a,p){const g=o[l]||(o[l]={}),w=g[a]||(g[a]={}),y=p in w;return y||(w[p]=null),!y}_removeFromIndex(o,l,a,p){const g=o[l],w=g[a];delete w[p];for(const y in w)return;delete g[a];for(const y in g)return;delete o[l]}_findInIndex(o,l,a,p,g,w,y,S,E,I){let M,_,R;l&&((M=o,o={})[l]=M[l]);for(const j in o)if(_=o[j],_){a&&((M=_,_={})[a]=M[a]);for(const K in _)if(R=_[K],R){const q=p?p in R?[p]:[]:Object.keys(R);for(let Q=0;Qo(l,this))}filter(o){return new this.constructor([...this].filter(l=>o(l,this)))}map(o){return new this.constructor([...this].map(l=>o(l,this)))}match(...o){return super.match(...o)}merge(...[o]){return lSe(new this.constructor([...this]),o)}}function l9n(r){return class extends s9n{import(...[o]){return uIt(this,o)}toCanonical(){return fIt(this)}toStream(){return cIt(this)}async serialize({format:o,prefixes:l=[]}){const a=r.formats.serializers.get(o);return a?JSn(a.import(this.toStream(),{prefixes:l.reduce((p,g)=>Array.isArray(g)?{...p,[g[0]]:g[1]}:g in B7e?{...p,[g]:B7e[g]}:p,{})})):this.toCanonical()}}}function c9n(){return new Gz([mSn(l9n)],{parent:RSn})}const u9n=c9n(),uSe=u9n;var w_;class a9n{constructor(){Zx(this,w_,{})}update(o){s3(this,w_,{}),o.forEach(l=>{Kh(this,w_)[l.prefix]=l.uri})}get prefixes(){return Kh(this,w_)}}w_=new WeakMap;const xIt=new a9n;function h_(r){if(r.termType==="NamedNode"){const o=bEt(r.value,xIt.prefixes);return o||r.value}return r.value}function f9n(r){const o=[...r].map(g=>g.subject),l=[...r].filter(g=>!g.predicate.equals(uSe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(g=>g.object).filter(g=>g.termType==="BlankNode"||g.termType==="NamedNode");return[...new yre([...o,...l])].map(g=>{const S=[...[...r.match(g)].reduce((E,{predicate:I,object:M})=>{if(!E.has(I.value)){const _={id:I.value,term:I,name:h_(I),values:new yre};E.set(I.value,_)}return E.get(I.value).values.add(M),E},new Map).values()].sort((E,I)=>E.name==="rdf:type"?-1:I.name==="rdf:type"?1:E.name.localeCompare(I.name));return{id:g.value,term:g,name:h_(g),properties:S}})}function d9n(r){const o=new yre(r.map(a=>a.term));return r.flatMap(a=>a.properties.map(p=>({...p,resource:a}))).reduce((a,p)=>(p.values.forEach(g=>{const w=p.resource.term,y=g;o.has(y)&&a.push({source:w.value,target:y.value,sourceProperty:p.id,label:p.name})}),a),[])}function jie(r){return $re()?(_F(r),!0):!1}function B6(r){return typeof r=="function"?r():Lr(r)}const h9n=typeof window<"u"&&typeof document<"u",p9n=r=>typeof r<"u",g9n=Object.prototype.toString,b9n=r=>g9n.call(r)==="[object Object]",w9n=()=>{};function m9n(r,o){function l(...a){return new Promise((p,g)=>{Promise.resolve(r(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(p).catch(g)})}return l}const EIt=r=>r();function v9n(r=EIt){const o=Co(!0);function l(){o.value=!1}function a(){o.value=!0}const p=(...g)=>{o.value&&r(...g)};return{isActive:hH(o),pause:l,resume:a,eventFilter:p}}function _Ct(r,o=!1,l="Timeout"){return new Promise((a,p)=>{setTimeout(o?()=>p(l):a,r)})}function y9n(r,o,l={}){const{eventFilter:a=EIt,...p}=l;return Os(r,m9n(a,o),p)}function NO(r,o,l={}){const{eventFilter:a,...p}=l,{eventFilter:g,pause:w,resume:y,isActive:S}=v9n(a);return{stop:y9n(r,o,{...p,eventFilter:g}),pause:w,resume:y,isActive:S}}function k9n(r,o={}){if(!Ef(r))return edn(r);const l=Array.isArray(r.value)?Array.from({length:r.value.length}):{};for(const a in r.value)l[a]=Zfn(()=>({get(){return r.value[a]},set(p){var g;if((g=B6(o.replaceRef))!=null?g:!0)if(Array.isArray(r.value)){const y=[...r.value];y[a]=p,r.value=y}else{const y={...r.value,[a]:p};Object.setPrototypeOf(y,Object.getPrototypeOf(r.value)),r.value=y}else r.value[a]=p}}));return l}function aSe(r,o=!1){function l(M,{flush:_="sync",deep:R=!1,timeout:j,throwOnTimeout:K}={}){let q=null;const Z=[new Promise(X=>{q=Os(r,ie=>{M(ie)!==o&&(q==null||q(),X(ie))},{flush:_,deep:R,immediate:!0})})];return j!=null&&Z.push(_Ct(j,K).then(()=>B6(r)).finally(()=>q==null?void 0:q())),Promise.race(Z)}function a(M,_){if(!Ef(M))return l(ie=>ie===M,_);const{flush:R="sync",deep:j=!1,timeout:K,throwOnTimeout:q}=_??{};let Q=null;const X=[new Promise(ie=>{Q=Os([r,M],([je,et])=>{o!==(je===et)&&(Q==null||Q(),ie(je))},{flush:R,deep:j,immediate:!0})})];return K!=null&&X.push(_Ct(K,q).then(()=>B6(r)).finally(()=>(Q==null||Q(),B6(r)))),Promise.race(X)}function p(M){return l(_=>!!_,M)}function g(M){return a(null,M)}function w(M){return a(void 0,M)}function y(M){return l(Number.isNaN,M)}function S(M,_){return l(R=>{const j=Array.from(R);return j.includes(M)||j.includes(B6(M))},_)}function E(M){return I(1,M)}function I(M=1,_){let R=-1;return l(()=>(R+=1,R>=M),_)}return Array.isArray(B6(r))?{toMatch:l,toContains:S,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}:{toMatch:l,toBe:a,toBeTruthy:p,toBeNull:g,toBeNaN:y,toBeUndefined:w,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}}function fSe(r){return aSe(r)}function C9n(r){var o;const l=B6(r);return(o=l==null?void 0:l.$el)!=null?o:l}const TIt=h9n?window:void 0;function IIt(...r){let o,l,a,p;if(typeof r[0]=="string"||Array.isArray(r[0])?([l,a,p]=r,o=TIt):[o,l,a,p]=r,!o)return w9n;Array.isArray(l)||(l=[l]),Array.isArray(a)||(a=[a]);const g=[],w=()=>{g.forEach(I=>I()),g.length=0},y=(I,M,_,R)=>(I.addEventListener(M,_,R),()=>I.removeEventListener(M,_,R)),S=Os(()=>[C9n(o),B6(p)],([I,M])=>{if(w(),!I)return;const _=b9n(M)?{...M}:M;g.push(...l.flatMap(R=>a.map(j=>y(I,R,j,_))))},{immediate:!0,flush:"post"}),E=()=>{S(),w()};return jie(E),E}function S9n(r){return typeof r=="function"?r:typeof r=="string"?o=>o.key===r:Array.isArray(r)?o=>r.includes(o.key):()=>!0}function RCt(...r){let o,l,a={};r.length===3?(o=r[0],l=r[1],a=r[2]):r.length===2?typeof r[1]=="object"?(o=!0,l=r[0],a=r[1]):(o=r[0],l=r[1]):(o=!0,l=r[0]);const{target:p=TIt,eventName:g="keydown",passive:w=!1,dedupe:y=!1}=a,S=S9n(o);return IIt(p,g,I=>{I.repeat&&B6(y)||S(I)&&l(I)},w)}function x9n(r){return JSON.parse(JSON.stringify(r))}function HCe(r,o,l,a={}){var p,g,w;const{clone:y=!1,passive:S=!1,eventName:E,deep:I=!1,defaultValue:M,shouldEmit:_}=a,R=UC(),j=l||(R==null?void 0:R.emit)||((p=R==null?void 0:R.$emit)==null?void 0:p.bind(R))||((w=(g=R==null?void 0:R.proxy)==null?void 0:g.$emit)==null?void 0:w.bind(R==null?void 0:R.proxy));let K=E;o||(o="modelValue"),K=K||`update:${o.toString()}`;const q=X=>y?typeof y=="function"?y(X):x9n(X):X,Q=()=>p9n(r[o])?q(r[o]):M,Z=X=>{_?_(X)&&j(K,X):j(K,X)};if(S){const X=Q(),ie=Co(X);let je=!1;return Os(()=>r[o],et=>{je||(je=!0,ie.value=q(et),om(()=>je=!1))}),Os(ie,et=>{!je&&(et!==r[o]||I)&&Z(et)},{deep:I}),ie}else return ho({get(){return Q()},set(X){Z(X)}})}var E9n={value:()=>{}};function Die(){for(var r=0,o=arguments.length,l={},a;r=0&&(a=l.slice(p+1),l=l.slice(0,p)),l&&!o.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:a}})}Bne.prototype=Die.prototype={constructor:Bne,on:function(r,o){var l=this._,a=T9n(r+"",l),p,g=-1,w=a.length;if(arguments.length<2){for(;++g0)for(var l=new Array(p),a=0,p,g;a=0&&(o=r.slice(0,l))!=="xmlns"&&(r=r.slice(l+1)),LCt.hasOwnProperty(o)?{space:LCt[o],local:r}:r}function P9n(r){return function(){var o=this.ownerDocument,l=this.namespaceURI;return l===dSe&&o.documentElement.namespaceURI===dSe?o.createElement(r):o.createElementNS(l,r)}}function M9n(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function PIt(r){var o=Nie(r);return(o.local?M9n:P9n)(o)}function O9n(){}function Ixe(r){return r==null?O9n:function(){return this.querySelector(r)}}function _9n(r){typeof r!="function"&&(r=Ixe(r));for(var o=this._groups,l=o.length,a=new Array(l),p=0;p=X&&(X=Z+1);!(je=q[X])&&++X=0;)(w=a[p])&&(g&&w.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(w,g),g=w);return this}function nxn(r){r||(r=rxn);function o(M,_){return M&&_?r(M.__data__,_.__data__):!M-!_}for(var l=this._groups,a=l.length,p=new Array(a),g=0;go?1:r>=o?0:NaN}function ixn(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function oxn(){return Array.from(this)}function sxn(){for(var r=this._groups,o=0,l=r.length;o1?this.each((o==null?wxn:typeof o=="function"?vxn:mxn)(r,o,l??"")):A_(this.node(),r)}function A_(r,o){return r.style.getPropertyValue(o)||AIt(r).getComputedStyle(r,null).getPropertyValue(o)}function kxn(r){return function(){delete this[r]}}function Cxn(r,o){return function(){this[r]=o}}function Sxn(r,o){return function(){var l=o.apply(this,arguments);l==null?delete this[r]:this[r]=l}}function xxn(r,o){return arguments.length>1?this.each((o==null?kxn:typeof o=="function"?Sxn:Cxn)(r,o)):this.node()[r]}function LIt(r){return r.trim().split(/^|\s+/)}function Pxe(r){return r.classList||new $It(r)}function $It(r){this._node=r,this._names=LIt(r.getAttribute("class")||"")}$It.prototype={add:function(r){var o=this._names.indexOf(r);o<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var o=this._names.indexOf(r);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function jIt(r,o){for(var l=Pxe(r),a=-1,p=o.length;++a=0&&(l=o.slice(a+1),o=o.slice(0,a)),{type:o,name:l}})}function Qxn(r){return function(){var o=this.__on;if(o){for(var l=0,a=-1,p=o.length,g;l()=>r;function hSe(r,{sourceEvent:o,subject:l,target:a,identifier:p,active:g,x:w,y,dx:S,dy:E,dispatch:I}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:p,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:w,enumerable:!0,configurable:!0},y:{value:y,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:E,enumerable:!0,configurable:!0},_:{value:I}})}hSe.prototype.on=function(){var r=this._.on.apply(this._,arguments);return r===this._?this:r};function cEn(r){return!r.ctrlKey&&!r.button}function uEn(){return this.parentNode}function aEn(r,o){return o??{x:r.x,y:r.y}}function fEn(){return navigator.maxTouchPoints||"ontouchstart"in this}function dEn(){var r=cEn,o=uEn,l=aEn,a=fEn,p={},g=Die("start","drag","end"),w=0,y,S,E,I,M=0;function _(ie){ie.on("mousedown.drag",R).filter(a).on("touchstart.drag",q).on("touchmove.drag",Q,lEn).on("touchend.drag touchcancel.drag",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(ie,je){if(!(I||!r.call(this,ie,je))){var et=X(this,o.call(this,ie,je),ie,je,"mouse");et&&(oy(ie.view).on("mousemove.drag",j,Wz).on("mouseup.drag",K,Wz),FIt(ie.view),KCe(ie),E=!1,y=ie.clientX,S=ie.clientY,et("start",ie))}}function j(ie){if(p_(ie),!E){var je=ie.clientX-y,et=ie.clientY-S;E=je*je+et*et>M}p.mouse("drag",ie)}function K(ie){oy(ie.view).on("mousemove.drag mouseup.drag",null),zIt(ie.view,E),p_(ie),p.mouse("end",ie)}function q(ie,je){if(r.call(this,ie,je)){var et=ie.changedTouches,mt=o.call(this,ie,je),bt=et.length,ce,Be;for(ce=0;ce>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):l===8?sne(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):l===4?sne(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=pEn.exec(r))?new Wg(o[1],o[2],o[3],1):(o=gEn.exec(r))?new Wg(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=bEn.exec(r))?sne(o[1],o[2],o[3],o[4]):(o=wEn.exec(r))?sne(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=mEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,1):(o=vEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,o[4]):$Ct.hasOwnProperty(r)?NCt($Ct[r]):r==="transparent"?new Wg(NaN,NaN,NaN,0):null}function NCt(r){return new Wg(r>>16&255,r>>8&255,r&255,1)}function sne(r,o,l,a){return a<=0&&(r=o=l=NaN),new Wg(r,o,l,a)}function CEn(r){return r instanceof DH||(r=Xz(r)),r?(r=r.rgb(),new Wg(r.r,r.g,r.b,r.opacity)):new Wg}function pSe(r,o,l,a){return arguments.length===1?CEn(r):new Wg(r,o,l,a??1)}function Wg(r,o,l,a){this.r=+r,this.g=+o,this.b=+l,this.opacity=+a}Mxe(Wg,pSe,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Wg(AE(this.r),AE(this.g),AE(this.b),Sre(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BCt,formatHex:BCt,formatHex8:SEn,formatRgb:FCt,toString:FCt}));function BCt(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}`}function SEn(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}${SE((isNaN(this.opacity)?1:this.opacity)*255)}`}function FCt(){const r=Sre(this.opacity);return`${r===1?"rgb(":"rgba("}${AE(this.r)}, ${AE(this.g)}, ${AE(this.b)}${r===1?")":`, ${r})`}`}function Sre(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function AE(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function SE(r){return r=AE(r),(r<16?"0":"")+r.toString(16)}function zCt(r,o,l,a){return a<=0?r=o=l=NaN:l<=0||l>=1?r=o=NaN:o<=0&&(r=NaN),new sy(r,o,l,a)}function KIt(r){if(r instanceof sy)return new sy(r.h,r.s,r.l,r.opacity);if(r instanceof DH||(r=Xz(r)),!r)return new sy;if(r instanceof sy)return r;r=r.rgb();var o=r.r/255,l=r.g/255,a=r.b/255,p=Math.min(o,l,a),g=Math.max(o,l,a),w=NaN,y=g-p,S=(g+p)/2;return y?(o===g?w=(l-a)/y+(l0&&S<1?0:w,new sy(w,y,S,r.opacity)}function xEn(r,o,l,a){return arguments.length===1?KIt(r):new sy(r,o,l,a??1)}function sy(r,o,l,a){this.h=+r,this.s=+o,this.l=+l,this.opacity=+a}Mxe(sy,xEn,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new sy(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new sy(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,o=isNaN(r)||isNaN(this.s)?0:this.s,l=this.l,a=l+(l<.5?l:1-l)*o,p=2*l-a;return new Wg(UCe(r>=240?r-240:r+120,p,a),UCe(r,p,a),UCe(r<120?r+240:r-120,p,a),this.opacity)},clamp(){return new sy(HCt(this.h),lne(this.s),lne(this.l),Sre(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Sre(this.opacity);return`${r===1?"hsl(":"hsla("}${HCt(this.h)}, ${lne(this.s)*100}%, ${lne(this.l)*100}%${r===1?")":`, ${r})`}`}}));function HCt(r){return r=(r||0)%360,r<0?r+360:r}function lne(r){return Math.max(0,Math.min(1,r||0))}function UCe(r,o,l){return(r<60?o+(l-o)*r/60:r<180?l:r<240?o+(l-o)*(240-r)/60:o)*255}const UIt=r=>()=>r;function EEn(r,o){return function(l){return r+l*o}}function TEn(r,o,l){return r=Math.pow(r,l),o=Math.pow(o,l)-r,l=1/l,function(a){return Math.pow(r+a*o,l)}}function IEn(r){return(r=+r)==1?GIt:function(o,l){return l-o?TEn(o,l,r):UIt(isNaN(o)?l:o)}}function GIt(r,o){var l=o-r;return l?EEn(r,l):UIt(isNaN(r)?o:r)}const KCt=function r(o){var l=IEn(o);function a(p,g){var w=l((p=pSe(p)).r,(g=pSe(g)).r),y=l(p.g,g.g),S=l(p.b,g.b),E=GIt(p.opacity,g.opacity);return function(I){return p.r=w(I),p.g=y(I),p.b=S(I),p.opacity=E(I),p+""}}return a.gamma=r,a}(1);function vC(r,o){return r=+r,o=+o,function(l){return r*(1-l)+o*l}}var gSe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GCe=new RegExp(gSe.source,"g");function PEn(r){return function(){return r}}function MEn(r){return function(o){return r(o)+""}}function OEn(r,o){var l=gSe.lastIndex=GCe.lastIndex=0,a,p,g,w=-1,y=[],S=[];for(r=r+"",o=o+"";(a=gSe.exec(r))&&(p=GCe.exec(o));)(g=p.index)>l&&(g=o.slice(l,g),y[w]?y[w]+=g:y[++w]=g),(a=a[0])===(p=p[0])?y[w]?y[w]+=p:y[++w]=p:(y[++w]=null,S.push({i:w,x:vC(a,p)})),l=GCe.lastIndex;return l180?I+=360:I-E>180&&(E+=360),_.push({i:M.push(p(M)+"rotate(",null,a)-2,x:vC(E,I)})):I&&M.push(p(M)+"rotate("+I+a)}function y(E,I,M,_){E!==I?_.push({i:M.push(p(M)+"skewX(",null,a)-2,x:vC(E,I)}):I&&M.push(p(M)+"skewX("+I+a)}function S(E,I,M,_,R,j){if(E!==M||I!==_){var K=R.push(p(R)+"scale(",null,",",null,")");j.push({i:K-4,x:vC(E,M)},{i:K-2,x:vC(I,_)})}else(M!==1||_!==1)&&R.push(p(R)+"scale("+M+","+_+")")}return function(E,I){var M=[],_=[];return E=r(E),I=r(I),g(E.translateX,E.translateY,I.translateX,I.translateY,M,_),w(E.rotate,I.rotate,M,_),y(E.skewX,I.skewX,M,_),S(E.scaleX,E.scaleY,I.scaleX,I.scaleY,M,_),E=I=null,function(R){for(var j=-1,K=_.length,q;++j=0&&r._call.call(void 0,o),r=r._next;--L_}function WCt(){UE=(Ere=Yz.now())+Bie,L_=IF=0;try{FEn()}finally{L_=0,HEn(),UE=0}}function zEn(){var r=Yz.now(),o=r-Ere;o>qIt&&(Bie-=o,Ere=r)}function HEn(){for(var r,o=xre,l,a=1/0;o;)o._call?(a>o._time&&(a=o._time),r=o,o=o._next):(l=o._next,o._next=null,o=r?r._next=l:xre=l);PF=r,wSe(a)}function wSe(r){if(!L_){IF&&(IF=clearTimeout(IF));var o=r-UE;o>24?(r<1/0&&(IF=setTimeout(WCt,r-Yz.now()-Bie)),gF&&(gF=clearInterval(gF))):(gF||(Ere=Yz.now(),gF=setInterval(zEn,qIt)),L_=1,XIt(WCt))}}function VCt(r,o,l){var a=new Tre;return o=o==null?0:+o,a.restart(p=>{a.stop(),r(p+o)},o,l),a}var KEn=Die("start","end","cancel","interrupt"),UEn=[],JIt=0,qCt=1,mSe=2,Fne=3,XCt=4,vSe=5,zne=6;function Fie(r,o,l,a,p,g){var w=r.__transition;if(!w)r.__transition={};else if(l in w)return;GEn(r,l,{name:o,index:a,group:p,on:KEn,tween:UEn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:JIt})}function _xe(r,o){var l=gy(r,o);if(l.state>JIt)throw new Error("too late; already scheduled");return l}function A3(r,o){var l=gy(r,o);if(l.state>Fne)throw new Error("too late; already running");return l}function gy(r,o){var l=r.__transition;if(!l||!(l=l[o]))throw new Error("transition not found");return l}function GEn(r,o,l){var a=r.__transition,p;a[o]=l,l.timer=YIt(g,0,l.time);function g(E){l.state=qCt,l.timer.restart(w,l.delay,l.time),l.delay<=E&&w(E-l.delay)}function w(E){var I,M,_,R;if(l.state!==qCt)return S();for(I in a)if(R=a[I],R.name===l.name){if(R.state===Fne)return VCt(w);R.state===XCt?(R.state=zne,R.timer.stop(),R.on.call("interrupt",r,r.__data__,R.index,R.group),delete a[I]):+ImSe&&a.state=0&&(o=o.slice(0,l)),!o||o==="start"})}function kTn(r,o,l){var a,p,g=yTn(o)?_xe:A3;return function(){var w=g(this,r),y=w.on;y!==a&&(p=(a=y).copy()).on(o,l),w.on=p}}function CTn(r,o){var l=this._id;return arguments.length<2?gy(this.node(),l).on.on(r):this.each(kTn(l,r,o))}function STn(r){return function(){var o=this.parentNode;for(var l in this.__transition)if(+l!==r)return;o&&o.removeChild(this)}}function xTn(){return this.on("end.remove",STn(this._id))}function ETn(r){var o=this._name,l=this._id;typeof r!="function"&&(r=Ixe(r));for(var a=this._groups,p=a.length,g=new Array(p),w=0;w()=>r;function YTn(r,{sourceEvent:o,target:l,transform:a,dispatch:p}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:p}})}function U6(r,o,l){this.k=r,this.x=o,this.y=l}U6.prototype={constructor:U6,scale:function(r){return r===1?this:new U6(this.k*r,this.x,this.y)},translate:function(r,o){return r===0&o===0?this:new U6(this.k,this.x+this.k*r,this.y+this.k*o)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $_=new U6(1,0,0);U6.prototype;function WCe(r){r.stopImmediatePropagation()}function bF(r){r.preventDefault(),r.stopImmediatePropagation()}function JTn(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function QTn(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function YCt(){return this.__zoom||$_}function ZTn(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function eIn(){return navigator.maxTouchPoints||"ontouchstart"in this}function tIn(r,o,l){var a=r.invertX(o[0][0])-l[0][0],p=r.invertX(o[1][0])-l[1][0],g=r.invertY(o[0][1])-l[0][1],w=r.invertY(o[1][1])-l[1][1];return r.translate(p>a?(a+p)/2:Math.min(0,a)||Math.max(0,p),w>g?(g+w)/2:Math.min(0,g)||Math.max(0,w))}function nIn(){var r=JTn,o=QTn,l=tIn,a=ZTn,p=eIn,g=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],y=250,S=NEn,E=Die("start","zoom","end"),I,M,_,R=500,j=150,K=0,q=10;function Q(He){He.property("__zoom",YCt).on("wheel.zoom",bt,{passive:!1}).on("mousedown.zoom",ce).on("dblclick.zoom",Be).filter(p).on("touchstart.zoom",ae).on("touchmove.zoom",xe).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Q.transform=function(He,yt,ft,At){var Jt=He.selection?He.selection():He;Jt.property("__zoom",YCt),He!==Jt?je(He,yt,ft,At):Jt.interrupt().each(function(){et(this,arguments).event(At).start().zoom(null,typeof yt=="function"?yt.apply(this,arguments):yt).end()})},Q.scaleBy=function(He,yt,ft,At){Q.scaleTo(He,function(){var Jt=this.__zoom.k,un=typeof yt=="function"?yt.apply(this,arguments):yt;return Jt*un},ft,At)},Q.scaleTo=function(He,yt,ft,At){Q.transform(He,function(){var Jt=o.apply(this,arguments),un=this.__zoom,kn=ft==null?ie(Jt):typeof ft=="function"?ft.apply(this,arguments):ft,qt=un.invert(kn),on=typeof yt=="function"?yt.apply(this,arguments):yt;return l(X(Z(un,on),kn,qt),Jt,w)},ft,At)},Q.translateBy=function(He,yt,ft,At){Q.transform(He,function(){return l(this.__zoom.translate(typeof yt=="function"?yt.apply(this,arguments):yt,typeof ft=="function"?ft.apply(this,arguments):ft),o.apply(this,arguments),w)},null,At)},Q.translateTo=function(He,yt,ft,At,Jt){Q.transform(He,function(){var un=o.apply(this,arguments),kn=this.__zoom,qt=At==null?ie(un):typeof At=="function"?At.apply(this,arguments):At;return l($_.translate(qt[0],qt[1]).scale(kn.k).translate(typeof yt=="function"?-yt.apply(this,arguments):-yt,typeof ft=="function"?-ft.apply(this,arguments):-ft),un,w)},At,Jt)};function Z(He,yt){return yt=Math.max(g[0],Math.min(g[1],yt)),yt===He.k?He:new U6(yt,He.x,He.y)}function X(He,yt,ft){var At=yt[0]-ft[0]*He.k,Jt=yt[1]-ft[1]*He.k;return At===He.x&&Jt===He.y?He:new U6(He.k,At,Jt)}function ie(He){return[(+He[0][0]+ +He[1][0])/2,(+He[0][1]+ +He[1][1])/2]}function je(He,yt,ft,At){He.on("start.zoom",function(){et(this,arguments).event(At).start()}).on("interrupt.zoom end.zoom",function(){et(this,arguments).event(At).end()}).tween("zoom",function(){var Jt=this,un=arguments,kn=et(Jt,un).event(At),qt=o.apply(Jt,un),on=ft==null?ie(qt):typeof ft=="function"?ft.apply(Jt,un):ft,Rt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),an=Jt.__zoom,Zn=typeof yt=="function"?yt.apply(Jt,un):yt,kt=S(an.invert(on).concat(Rt/an.k),Zn.invert(on).concat(Rt/Zn.k));return function(Ze){if(Ze===1)Ze=Zn;else{var Xt=kt(Ze),Mn=Rt/Xt[2];Ze=new U6(Mn,on[0]-Xt[0]*Mn,on[1]-Xt[1]*Mn)}kn.zoom(null,Ze)}})}function et(He,yt,ft){return!ft&&He.__zooming||new mt(He,yt)}function mt(He,yt){this.that=He,this.args=yt,this.active=0,this.sourceEvent=null,this.extent=o.apply(He,yt),this.taps=0}mt.prototype={event:function(He){return He&&(this.sourceEvent=He),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(He,yt){return this.mouse&&He!=="mouse"&&(this.mouse[1]=yt.invert(this.mouse[0])),this.touch0&&He!=="touch"&&(this.touch0[1]=yt.invert(this.touch0[0])),this.touch1&&He!=="touch"&&(this.touch1[1]=yt.invert(this.touch1[0])),this.that.__zoom=yt,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(He){var yt=oy(this.that).datum();E.call(He,this.that,new YTn(He,{sourceEvent:this.sourceEvent,target:Q,type:He,transform:this.that.__zoom,dispatch:E}),yt)}};function bt(He,...yt){if(!r.apply(this,arguments))return;var ft=et(this,yt).event(He),At=this.__zoom,Jt=Math.max(g[0],Math.min(g[1],At.k*Math.pow(2,a.apply(this,arguments)))),un=d3(He);if(ft.wheel)(ft.mouse[0][0]!==un[0]||ft.mouse[0][1]!==un[1])&&(ft.mouse[1]=At.invert(ft.mouse[0]=un)),clearTimeout(ft.wheel);else{if(At.k===Jt)return;ft.mouse=[un,At.invert(un)],Hne(this),ft.start()}bF(He),ft.wheel=setTimeout(kn,j),ft.zoom("mouse",l(X(Z(At,Jt),ft.mouse[0],ft.mouse[1]),ft.extent,w));function kn(){ft.wheel=null,ft.end()}}function ce(He,...yt){if(_||!r.apply(this,arguments))return;var ft=He.currentTarget,At=et(this,yt,!0).event(He),Jt=oy(He.view).on("mousemove.zoom",on,!0).on("mouseup.zoom",Rt,!0),un=d3(He,ft),kn=He.clientX,qt=He.clientY;FIt(He.view),WCe(He),At.mouse=[un,this.__zoom.invert(un)],Hne(this),At.start();function on(an){if(bF(an),!At.moved){var Zn=an.clientX-kn,kt=an.clientY-qt;At.moved=Zn*Zn+kt*kt>K}At.event(an).zoom("mouse",l(X(At.that.__zoom,At.mouse[0]=d3(an,ft),At.mouse[1]),At.extent,w))}function Rt(an){Jt.on("mousemove.zoom mouseup.zoom",null),zIt(an.view,At.moved),bF(an),At.event(an).end()}}function Be(He,...yt){if(r.apply(this,arguments)){var ft=this.__zoom,At=d3(He.changedTouches?He.changedTouches[0]:He,this),Jt=ft.invert(At),un=ft.k*(He.shiftKey?.5:2),kn=l(X(Z(ft,un),At,Jt),o.apply(this,yt),w);bF(He),y>0?oy(this).transition().duration(y).call(je,kn,At,He):oy(this).call(Q.transform,kn,At,He)}}function ae(He,...yt){if(r.apply(this,arguments)){var ft=He.touches,At=ft.length,Jt=et(this,yt,He.changedTouches.length===At).event(He),un,kn,qt,on;for(WCe(He),kn=0;kn(r.Left="left",r.Top="top",r.Right="right",r.Bottom="bottom",r))(wi||{}),Axe=(r=>(r.Partial="partial",r.Full="full",r))(Axe||{}),bE=(r=>(r.Bezier="default",r.SimpleBezier="simple-bezier",r.Straight="straight",r.Step="step",r.SmoothStep="smoothstep",r))(bE||{}),GE=(r=>(r.Strict="strict",r.Loose="loose",r))(GE||{}),Ire=(r=>(r.Arrow="arrow",r.ArrowClosed="arrowclosed",r))(Ire||{}),ZF=(r=>(r.Free="free",r.Vertical="vertical",r.Horizontal="horizontal",r))(ZF||{});function ySe(r){var o,l;const a=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target,p=typeof(a==null?void 0:a.hasAttribute)=="function"?a.hasAttribute("contenteditable"):!1,g=typeof(a==null?void 0:a.closest)=="function"?a.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(a==null?void 0:a.nodeName)||p||!!g}function rIn(r){return r.ctrlKey||r.metaKey||r.shiftKey}function JCt(r,o,l,a){const p=o.replace("+",` + */const xCt=q7n,iSn=X7n,oSn=Y7n,ECt=Q7n;var sSn=class{constructor({createMessageDigest:o=()=>new iSn("sha256"),canonicalIdMap:l=new Map,maxDeepIterations:a=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new xCt("_:c14n",l),this.createMessageDigest=o,this.maxDeepIterations=a,this.quads=null,this.deepIterations=null}main(o){this.deepIterations=new Map,this.quads=o;for(const y of o)this._addBlankNodeQuadInfo({quad:y,component:y.subject}),this._addBlankNodeQuadInfo({quad:y,component:y.object}),this._addBlankNodeQuadInfo({quad:y,component:y.graph});const l=new Map,a=[...this.blankNodeInfo.keys()];for(const y of a)this._hashAndTrackBlankNode({id:y,hashToBlankNodes:l});const p=[...l.keys()].sort(),g=[];for(const y of p){const S=l.get(y);if(S.length>1){g.push(S);continue}const E=S[0];this.canonicalIssuer.getId(E)}for(const y of g){const S=[];for(const E of y){if(this.canonicalIssuer.hasId(E))continue;const I=new xCt("_:b");I.getId(E);const M=this.hashNDegreeQuads(E,I);S.push(M)}S.sort(lSn);for(const E of S){const I=E.issuer.getOldIds();for(const M of I)this.canonicalIssuer.getId(M)}}const w=[];for(const y of this.quads){const S=ECt.serializeQuadComponents(this._componentWithCanonicalId({component:y.subject}),y.predicate,this._componentWithCanonicalId({component:y.object}),this._componentWithCanonicalId({component:y.graph}));w.push(S)}return w.sort(),w.join("")}hashFirstDegreeQuads(o){const l=[],a=this.blankNodeInfo.get(o),p=a.quads;for(const w of p){const y={subject:null,predicate:w.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(o,w.subject,"subject"),y.object=this.modifyFirstDegreeComponent(o,w.object,"object"),y.graph=this.modifyFirstDegreeComponent(o,w.graph,"graph"),l.push(ECt.serializeQuad(y))}l.sort();const g=this.createMessageDigest();for(const w of l)g.update(w);return a.hash=g.digest(),a.hash}hashRelatedBlankNode(o,l,a,p){let g;this.canonicalIssuer.hasId(o)?g=this.canonicalIssuer.getId(o):a.hasId(o)?g=a.getId(o):g=this.blankNodeInfo.get(o).hash;const w=this.createMessageDigest();return w.update(p),p!=="g"&&w.update(this.getRelatedPredicate(l)),w.update(g),w.digest()}hashNDegreeQuads(o,l){const a=this.deepIterations.get(o)||0;if(a>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(o,a+1);const p=this.createMessageDigest(),g=this.createHashToRelated(o,l),w=[...g.keys()].sort();for(const y of w){p.update(y);let S="",E;const I=new oSn(g.get(y));for(;I.hasNext();){const M=I.next();let _=l.clone(),R="";const j=[];let K=!1;for(const q of M)if(this.canonicalIssuer.hasId(q)?R+=this.canonicalIssuer.getId(q):(_.hasId(q)||j.push(q),R+=_.getId(q)),S.length!==0&&R>S){K=!0;break}if(!K){for(const q of j){const Q=this.hashNDegreeQuads(q,_);if(R+=_.getId(q),R+=`<${Q.hash}>`,_=Q.issuer,S.length!==0&&R>S){K=!0;break}}K||(S.length===0||R`}createHashToRelated(o,l){const a=new Map,p=this.blankNodeInfo.get(o).quads;for(const g of p)this._addRelatedBlankNodeHash({quad:g,component:g.subject,position:"s",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.object,position:"o",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.graph,position:"g",id:o,issuer:l,hashToRelated:a});return a}_hashAndTrackBlankNode({id:o,hashToBlankNodes:l}){const a=this.hashFirstDegreeQuads(o),p=l.get(a);p?p.push(o):l.set(a,[o])}_addBlankNodeQuadInfo({quad:o,component:l}){if(l.termType!=="BlankNode")return;const a=l.value,p=this.blankNodeInfo.get(a);p?p.quads.add(o):this.blankNodeInfo.set(a,{quads:new Set([o]),hash:null})}_addRelatedBlankNodeHash({quad:o,component:l,position:a,id:p,issuer:g,hashToRelated:w}){if(!(l.termType==="BlankNode"&&l.value!==p))return;const y=l.value,S=this.hashRelatedBlankNode(y,o,g,a),E=w.get(S);E?E.push(y):w.set(S,[y])}_componentWithCanonicalId({component:o}){return o.termType==="BlankNode"&&!o.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(o.value)}:o}};function lSn(r,o){return r.hasho.hash?1:0}const cSn=sSn;function uSn(r){return new cSn().main(r)}var aSn=uSn;const fIt=_3(aSn);function fSn(r,o){for(const l of o)r.add(l);return r}var dSn=fSn;const lSe=_3(dSn);function hSn(r,o,l,a,p){const g=r.match(o,l,a,p);for(const w of g)r.delete(w);return r}var pSn=hSn;const dIt=_3(pSn);function gSn(r,o){if(r.size!==o.size)return!1;for(const l of r)if(!o.has(l))return!1;return!0}var bSn=gSn;const hIt=_3(bSn),wSn=r=>class{constructor(){M8e(this,"dataset")}init(){const o=r(this);this.dataset=(l=[])=>new o([...l]),this.dataset.Class=o,this.dataset.addAll=lSe,this.dataset.deleteMatch=dIt,this.dataset.equals=hIt}},mSn=r=>class extends wSn(r){init(){super.init(),this.dataset.toCanonical=fIt,this.dataset.toStream=cIt,this.dataset.fromStream=o=>uIt(this.dataset(),o)}};let Cxe=class{namespace(o){return Gn(o,{factory:this})}};Cxe.exports=["namespace"];const Sxe=r=>{const o=r.namespace("http://www.w3.org/2001/XMLSchema#"),l=r.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:l.first,nil:l.nil,rest:l.rest,langString:l.langString,xsd:o}};function Gg(r,o){return typeof r>"u"||r===null?o:Array.isArray(r)?r:typeof r!="string"&&r[Symbol.iterator]?[...r]:[r]}const iT=new u9e([Cxe,CH]),{xsd:cSe}=Sxe(iT);function vSn(r,o=iT){return typeof r!="boolean"?null:o.literal(r.toString(),cSe("boolean"))}function ySn(r,o=iT){return typeof r!="number"?null:Number.isInteger(r)?o.literal(r.toString(10),cSe("integer")):o.literal(r.toString(10),cSe("double"))}function kSn(r,o=iT){return typeof r!="string"?null:o.literal(r)}function CSn(r,o=iT){return vSn(r,o)||ySn(r,o)||kSn(r,o)}function SSn(r,o){if(r&&typeof r!="string")throw new Error("Blank node identifier must be a string");return o.blankNode(r)}function xSn(r,o,l){if(typeof r=="string")return o=o&&(o.value||o.toString()),o&&o.indexOf(":")!==-1&&(o=l.namedNode(o)),l.literal(r.toString(),o);const a=CSn(r,l);if(!a)throw new Error("The value cannot be converted to a literal node");return a}function TCt(r,o){if(typeof r!="string")throw new Error("Named node must be an IRI string");return o.namedNode(r)}function pIt(r,o="Literal",l,a){if(r&&typeof r=="object"&&r.termType)return r;if(r&&r.constructor.name==="URL")return TCt(r.toString(),a);if(o==="BlankNode")return SSn(r,a);if(!(r===null||typeof r>"u")){if(o==="Literal")return xSn(r,l,a);if(o==="NamedNode")return TCt(r,a);throw new Error("unknown type")}}function ESn(r,o,l,a){return(typeof r>"u"||r===null)&&!o?r:(Gg(r)||[void 0]).reduce((p,g)=>typeof g=="object"&&g.terms?p.concat(g.terms):(p.push(pIt(g,o,l,a)),p),[])}const ICt=Sxe(iT);function TSn(r,o){const l=o.termType!=="Literal",a=ICt.langString.equals(o.datatype)||ICt.xsd.string.equals(o.datatype);if(l||!a)return r;const p=o.language.toLowerCase();return r.has(p)?r.get(p).push(o):r.set(p,[o]),r}function ISn(r){const o=r.reduce(TSn,new Map),l=[...o.entries()];return a=>{const p=a.toLowerCase();if(p==="*")return l[0]&&l[0][1];const g=o.get(p);if(g)return g;const w=l.find(([y])=>y.startsWith(p));return w&&w[1]}}function PSn(r,{language:o}){const l=typeof o=="string"?[o]:o,a=ISn(r);return l.map(a).find(Boolean)||[]}class xxe{constructor({dataset:o,graph:l,value:a,factory:p,namespace:g}){this.dataset=o,this.graph=l,this.factory=p,this.namespace=g,this.term=pIt(a,void 0,void 0,p)}clone({dataset:o=this.dataset,graph:l=this.graph,value:a,factory:p=this.factory,namespace:g=this.namespace}){return new xxe({dataset:o,graph:l,value:a,factory:p,namespace:g})}has(o,l){return this.matchProperty(Gg(this.term),o,l,Gg(this.graph),"subject").map(a=>this.clone({value:a}))}in(o){return this.matchProperty(null,o,Gg(this.term),Gg(this.graph),"subject").map(l=>this.clone({value:l}))}out(o,{language:l}={}){let a=this.matchProperty(Gg(this.term),o,null,Gg(this.graph),"object");return typeof l<"u"&&(a=PSn(a,{language:l})),a.map(p=>this.clone({value:p}))}addIn(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(p,g,this.term,this.graph))}),a.push(this.clone({value:p}))}),a}addOut(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(this.term,g,p,this.graph))}),a.push(this.clone({value:p}))}),a}addList(o,l){this.term&&o.forEach(a=>{const p=l.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,a,p[0]||this.namespace.nil,this.graph));for(let g=0;g{for(const a of this.dataset.match(this.term,l))this.deleteItems(a)})}deleteItems(o){let l=[o];for(;!l[l.length-1].object.equals(this.namespace.nil);){const a=l[l.length-1].object;l=l.concat([...this.dataset.match(a)])}l.forEach(a=>{this.dataset.delete(a)})}match(o,l,a,p){if(!o&&!l&&!a&&!p)return[...this.dataset];o=o||[null],l=l||[null],a=a||[null],p=p||[null];const g=[];for(const w of p)for(const y of o)for(const S of l)for(const E of a)for(const I of this.dataset.match(y,S,E,w))g.push(I);return g}matchProperty(o,l,a,p,g){return this.match(o,l,a,p).map(w=>w[g])}deleteMatch(o,l,a,p){this.match(o,l,a,p).forEach(g=>{this.dataset.delete(g)})}}class Ug{constructor({dataset:o,graph:l,term:a,value:p,factory:g,_context:w}){if(this.factory=g,this.namespace=Sxe(g),w){this._context=w;return}const y=a&&Gg(a)||p&&Gg(p)||[null];this._context=y.map(S=>new xxe({dataset:o,graph:l,value:S,factory:this.factory,namespace:this.namespace}))}get term(){const o=this.terms;if(o.length===1)return o[0]}get terms(){return this._context.map(o=>o.term).filter(Boolean)}get value(){const o=this.term;return o&&o.value}get values(){return this.terms.map(o=>o.value)}get dataset(){const o=this.datasets;if(o.length===1)return o[0]}get datasets(){return this._context.map(o=>o.dataset).filter(Boolean)}any(){return Ug.fromContext(this._context.map(o=>o.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let o=this;return{[Symbol.iterator]:()=>({next:()=>{if(!o.term||o.term.equals(this.namespace.nil))return{done:!0};const l=o.out(this.namespace.first);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${o.value}`);const a=o.out(this.namespace.rest);if(a.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${o.value}`);return o=a,{done:!1,value:l}}})}}toArray(){return this._context.map(o=>Ug.fromContext(o,this)).filter(o=>o.terms.some(Boolean))}filter(o){const l=this._context.map(a=>Ug.fromContext(a,this));return Ug.fromContext(this._context.filter((a,p)=>o(Ug.fromContext(a,this),p,l)),this)}forEach(o){return this.toArray().forEach(o),this}map(o){return this.toArray().map(o)}toString(){return this.values.join()}node(o,{type:l,datatype:a,language:p}={}){o=this._toTermArray(o,l,a||p)||[null];const g=o.reduce((w,y)=>w.concat(this._context.reduce((S,E)=>S.concat([E.clone({value:y})]),[])),[]);return Ug.fromContext(g,{factory:this.factory})}blankNode(o){return this.node(o,{type:"BlankNode"})}literal(o,l){return this.node(o,{type:"Literal",datatype:l})}namedNode(o){return this.node(o,{type:"NamedNode"})}in(o){o=this._toTermArray(o);const l=this._context.reduce((a,p)=>a.concat(p.in(o)),[]);return Ug.fromContext(l,this)}out(o,l={}){o=this._toTermArray(o);const a=this._context.reduce((p,g)=>p.concat(g.out(o,l)),[]);return Ug.fromContext(a,this)}has(o,l){o=this._toTermArray(o),l=this._toTermArray(l);const a=this._context.reduce((p,g)=>p.concat(g.has(o,l)),[]);return Ug.fromContext(a,this)}addIn(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addIn(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addOut(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addOut(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addList(o,l){if(!o||!l)throw new Error("predicate and items parameter is required");return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.addList(o,l)),this}deleteIn(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteIn(o,l)),this}deleteOut(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteOut(o,l)),this}deleteList(o){if(!o)throw new Error("predicate parameter is required");return o=this._toTermArray(o),this._context.forEach(l=>l.deleteList(o)),this}_toTermArray(o,l,a){return ESn(o,l,a,this.factory)}static fromContext(o,{factory:l}){return new Ug({_context:Gg(o),factory:l})}}function MSn({dataset:r,graph:o,term:l,value:a,factory:p=iT,_context:g}){return new Ug({dataset:r,graph:o,term:l,value:a,factory:p,_context:g})}class gIt{clownface({...o}={}){return!o.dataset&&typeof this.dataset=="function"&&(o.dataset=this.dataset()),MSn({...o,factory:this})}}gIt.exports=["clownface"];let bIt=class{termMap(o){return new kF(o)}};bIt.exports=["termMap"];function PCt(r){try{return w3(r)}catch{return null}}class yre{constructor(o){if(this.index=new Map,o)for(const l of o)this.add(l)}get size(){return this.index.size}add(o){const l=w3(o);return this.index.has(l)||this.index.set(l,o),this}clear(){this.index.clear()}delete(o){return o?this.index.delete(PCt(o)):!1}entries(){return this.values().entries()}forEach(o,l){return this.values().forEach(o,l)}has(o){return o?this.index.has(PCt(o)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let wIt=class{termSet(o){return new yre(o)}};wIt.exports=["termSet"];class OSn{constructor(){this.quadLevel=new Map}add(o,l){this.quadLevel.set(w3(o),l)}has(o,l){const a=this.quadLevel.get(w3(o));return a===void 0?!1:a<=l}}function FCe({backward:r,callback:o,dataset:l,filter:a,forward:p,term:g,visited:w=new OSn}){const y=(S,E)=>{const I=M=>{for(const _ of M){if(w.has(_,E))continue;w.add(_,E);const R={dataset:l,level:E,quad:_};a(R)&&(o(R),p&&y(_.object,E+1),r&&y(_.subject,E+1))}};p&&I(l.match(S)),r&&I(l.match(null,null,S))};y(g,0)}class _Sn{constructor(o,{backward:l=!1,factory:a,forward:p=!0}){this.backward=l,this.factory=a,this.filter=o,this.forward=p}forEach({term:o,dataset:l},a){FCe({backward:this.backward,callback:a,dataset:l,filter:this.filter,forward:this.forward,term:o})}match({term:o,dataset:l}){const a=this.factory.dataset();return FCe({backward:this.backward,callback:({quad:p})=>a.add(p),dataset:l,filter:this.filter,forward:this.forward,term:o}),a}reduce({term:o,dataset:l},a,p){let g=p;return FCe({backward:this.backward,callback:w=>{g=a(w,g)},dataset:l,filter:this.filter,forward:this.forward,term:o}),g}}class mIt{traverser(o,{backward:l=!1,forward:a=!0}={}){return new _Sn(o,{backward:l,factory:this,forward:a})}}mIt.exports=["traverser"];const RSn=new Gz([CH,D9t,Cxe,tEt,gIt,bIt,wIt,mIt]);function ASn(r,{checkOpen:o=!0}={}){return r!==null&&typeof r=="object"&&(r.writable||r.readable||!o||r.writable===void 0&&r.readable===void 0)&&typeof r.pipe=="function"}function LSn(r,{checkOpen:o=!0}={}){return ASn(r,{checkOpen:o})&&(r.readable||!o)&&typeof r.read=="function"&&typeof r.readable=="boolean"&&typeof r.readableObjectMode=="boolean"&&typeof r.destroy=="function"&&typeof r.destroyed=="boolean"}const $Sn=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var h3,dH,TC,ty,D_,vIt,yIt;class jSn{constructor(o,l){Zx(this,D_);Zx(this,h3);Zx(this,dH);Zx(this,TC,!1);Zx(this,ty);s3(this,h3,o),s3(this,dH,l)}next(){const o=()=>_8e(this,D_,vIt).call(this);return s3(this,ty,Kh(this,ty)?Kh(this,ty).then(o,o):o()),Kh(this,ty)}return(o){const l=()=>_8e(this,D_,yIt).call(this,o);return Kh(this,ty)?Kh(this,ty).then(l,l):l()}}h3=new WeakMap,dH=new WeakMap,TC=new WeakMap,ty=new WeakMap,D_=new WeakSet,vIt=async function(){if(Kh(this,TC))return{done:!0,value:void 0};let o;try{o=await Kh(this,h3).read()}catch(l){throw s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock(),l}return o.done&&(s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock()),o},yIt=async function(o){if(Kh(this,TC))return{done:!0,value:o};if(s3(this,TC,!0),!Kh(this,dH)){const l=Kh(this,h3).cancel(o);return Kh(this,h3).releaseLock(),await l,{done:!0,value:o}}return Kh(this,h3).releaseLock(),{done:!0,value:o}};const Exe=Symbol();function kIt(){return this[Exe].next()}Object.defineProperty(kIt,"name",{value:"next"});function CIt(r){return this[Exe].return(r)}Object.defineProperty(CIt,"name",{value:"return"});const DSn=Object.create($Sn,{next:{enumerable:!0,configurable:!0,writable:!0,value:kIt},return:{enumerable:!0,configurable:!0,writable:!0,value:CIt}});function NSn({preventCancel:r=!1}={}){const o=this.getReader(),l=new jSn(o,r),a=Object.create(DSn);return a[Exe]=l,a}const BSn=r=>{if(LSn(r,{checkOpen:!1})&&Txe.on!==void 0)return zSn(r);if(typeof(r==null?void 0:r[Symbol.asyncIterator])=="function")return r;if(FSn.call(r)==="[object ReadableStream]")return NSn.call(r);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:FSn}=Object.prototype,zSn=async function*(r){const o=new AbortController,l={};HSn(r,o,l);try{for await(const[a]of Txe.on(r,"data",{signal:o.signal}))yield a}catch(a){if(l.error!==void 0)throw l.error;if(!o.signal.aborted)throw a}finally{r.destroy()}},HSn=async(r,o,l)=>{try{await Txe.finished(r,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(a){l.error=a}finally{o.abort()}},Txe={},KSn=async(r,{init:o,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,finalize:y},{maxBuffer:S=Number.POSITIVE_INFINITY}={})=>{const E=BSn(r),I=o();I.length=0;try{for await(const M of E){const _=GSn(M),R=l[_](M,I);SIt({convertedChunk:R,state:I,getSize:a,truncateChunk:p,addChunk:g,maxBuffer:S})}return USn({state:I,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,maxBuffer:S}),y(I)}catch(M){const _=typeof M=="object"&&M!==null?M:new Error(M);throw _.bufferedData=y(I),_}},USn=({state:r,getSize:o,truncateChunk:l,addChunk:a,getFinalChunk:p,maxBuffer:g})=>{const w=p(r);w!==void 0&&SIt({convertedChunk:w,state:r,getSize:o,truncateChunk:l,addChunk:a,maxBuffer:g})},SIt=({convertedChunk:r,state:o,getSize:l,truncateChunk:a,addChunk:p,maxBuffer:g})=>{const w=l(r),y=o.length+w;if(y<=g){MCt(r,o,p,y);return}const S=a(r,g-o.length);throw S!==void 0&&MCt(S,o,p,g),new WSn},MCt=(r,o,l,a)=>{o.contents=l(r,o,a),o.length=a},GSn=r=>{var a;const o=typeof r;if(o==="string")return"string";if(o!=="object"||r===null)return"others";if((a=globalThis.Buffer)!=null&&a.isBuffer(r))return"buffer";const l=OCt.call(r);return l==="[object ArrayBuffer]"?"arrayBuffer":l==="[object DataView]"?"dataView":Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&OCt.call(r.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:OCt}=Object.prototype;class WSn extends Error{constructor(){super("maxBuffer exceeded");M8e(this,"name","MaxBufferError")}}const VSn=r=>r,qSn=({contents:r})=>r,XSn=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)},YSn=r=>r.length;async function JSn(r,o){return KSn(r,n9n,o)}const QSn=()=>({contents:"",textDecoder:new TextDecoder}),ine=(r,{textDecoder:o})=>o.decode(r,{stream:!0}),ZSn=(r,{contents:o})=>o+r,e9n=(r,o)=>r.slice(0,o),t9n=({textDecoder:r})=>{const o=r.decode();return o===""?void 0:o},n9n={init:QSn,convertChunk:{string:VSn,buffer:ine,arrayBuffer:ine,dataView:ine,typedArray:ine,others:XSn},getSize:YSn,truncateChunk:e9n,addChunk:ZSn,getFinalChunk:t9n,finalize:qSn};function cE(r){return typeof r=="string"||r instanceof String}const r9n="http://www.w3.org/2001/XMLSchema#string";function Wf(r){if(typeof r=="string")return r;if(!r)return"";if(typeof r.id<"u"&&r.termType!=="Quad")return r.id;let o,l,a,p;switch(r.termType){case"NamedNode":return r.value;case"BlankNode":return`_:${r.value}`;case"Variable":return`?${r.value}`;case"DefaultGraph":return"";case"Literal":return r.language?`"${r.value}"@${r.language}`:`"${r.value}"${r.datatype&&r.datatype.value!==r9n?`^^${r.datatype.value}`:""}`;case"Quad":return o=zCe(Wf(r.subject)),l=zCe(Wf(r.predicate)),a=zCe(Wf(r.object)),p=r.graph.termType==="DefaultGraph"?"":` ${Wf(r.graph)}`,`<<${o} ${l} ${a}${p}>>`;default:throw new Error(`Unexpected termType: ${r.termType}`)}}const i9n=/^"(.*".*)(?="[^"]*$)/;function zCe(r){return r.replace(i9n,(o,l)=>`"${l.replace(/"/g,'""')}`)}class o9n{constructor(o){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,o)for(const l of o)this.add(l)}get size(){let o=this._size;if(o!==null)return o;o=0;const l=this._graphs;let a,p;for(const g in l)for(const w in a=l[g].subjects)for(const y in p=a[w])o+=Object.keys(p[y]).length;return this._size=o,this._size}add(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph);let w=this._graphs[g];w||(w=this._graphs[g]={subjects:{},predicates:{},objects:{}},Object.freeze(w));const y=this._ids,S=this._entities;return l=y[l]||(y[S[++this._id]=l]=this._id),a=y[a]||(y[S[++this._id]=a]=this._id),p=y[p]||(y[S[++this._id]=p]=this._id),this._addToIndex(w.subjects,l,a,p),this._addToIndex(w.predicates,a,p,l),this._addToIndex(w.objects,p,l,a),this._setQuad(l,a,p,g,o),this._size=null,this}delete(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph),w=this._ids,y=this._graphs;let S,E,I;if(!(l=w[l])||!(a=w[a])||!(p=w[p])||!(S=y[g])||!(E=S.subjects[l])||!(I=E[a])||!(p in I))return this;this._removeFromIndex(S.subjects,l,a,p),this._removeFromIndex(S.predicates,a,p,l),this._removeFromIndex(S.objects,p,l,a),this._size!==null&&this._size--,this._deleteQuad(l,a,p,g);for(l in S.subjects)return this;return delete y[g],this}has(o){const l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object),g=Wf(o.graph),w=this._graphs[g];if(!w)return!1;const y=this._ids;let S,E,I;return cE(l)&&!(S=y[l])||cE(a)&&!(E=y[a])||cE(p)&&!(I=y[p])?!1:this._countInIndex(w.objects,I,S,E)===1}match(o,l,a,p){return this._createDataset(this._match(o,l,a,p))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(o,l,a,p){const g=o[l]||(o[l]={}),w=g[a]||(g[a]={}),y=p in w;return y||(w[p]=null),!y}_removeFromIndex(o,l,a,p){const g=o[l],w=g[a];delete w[p];for(const y in w)return;delete g[a];for(const y in g)return;delete o[l]}_findInIndex(o,l,a,p,g,w,y,S,E,I){let M,_,R;l&&((M=o,o={})[l]=M[l]);for(const j in o)if(_=o[j],_){a&&((M=_,_={})[a]=M[a]);for(const K in _)if(R=_[K],R){const q=p?p in R?[p]:[]:Object.keys(R);for(let Q=0;Qo(l,this))}filter(o){return new this.constructor([...this].filter(l=>o(l,this)))}map(o){return new this.constructor([...this].map(l=>o(l,this)))}match(...o){return super.match(...o)}merge(...[o]){return lSe(new this.constructor([...this]),o)}}function l9n(r){return class extends s9n{import(...[o]){return uIt(this,o)}toCanonical(){return fIt(this)}toStream(){return cIt(this)}async serialize({format:o,prefixes:l=[]}){const a=r.formats.serializers.get(o);return a?JSn(a.import(this.toStream(),{prefixes:l.reduce((p,g)=>Array.isArray(g)?{...p,[g[0]]:g[1]}:g in B7e?{...p,[g]:B7e[g]}:p,{})})):this.toCanonical()}}}function c9n(){return new Gz([mSn(l9n)],{parent:RSn})}const u9n=c9n(),uSe=u9n;var w_;class a9n{constructor(){Zx(this,w_,{})}update(o){s3(this,w_,{}),o.forEach(l=>{Kh(this,w_)[l.prefix]=l.uri})}get prefixes(){return Kh(this,w_)}}w_=new WeakMap;const xIt=new a9n;function h_(r){if(r.termType==="NamedNode"){const o=bEt(r.value,xIt.prefixes);return o||r.value}return r.value}function f9n(r){const o=[...r].map(g=>g.subject),l=[...r].filter(g=>!g.predicate.equals(uSe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(g=>g.object).filter(g=>g.termType==="BlankNode"||g.termType==="NamedNode");return[...new yre([...o,...l])].map(g=>{const S=[...[...r.match(g)].reduce((E,{predicate:I,object:M})=>{if(!E.has(I.value)){const _={id:I.value,term:I,name:h_(I),values:new yre};E.set(I.value,_)}return E.get(I.value).values.add(M),E},new Map).values()].sort((E,I)=>E.name==="rdf:type"?-1:I.name==="rdf:type"?1:E.name.localeCompare(I.name));return{id:g.value===""?"_:nobody":g.value,term:g,name:h_(g),properties:S}})}function d9n(r){const o=new yre(r.map(a=>a.term));return r.flatMap(a=>a.properties.map(p=>({...p,resource:a}))).reduce((a,p)=>(p.values.forEach(g=>{const w=p.resource.term,y=g;o.has(y)&&a.push({source:w.value,target:y.value,sourceProperty:p.id,label:p.name})}),a),[])}function jie(r){return $re()?(_F(r),!0):!1}function B6(r){return typeof r=="function"?r():Lr(r)}const h9n=typeof window<"u"&&typeof document<"u",p9n=r=>typeof r<"u",g9n=Object.prototype.toString,b9n=r=>g9n.call(r)==="[object Object]",w9n=()=>{};function m9n(r,o){function l(...a){return new Promise((p,g)=>{Promise.resolve(r(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(p).catch(g)})}return l}const EIt=r=>r();function v9n(r=EIt){const o=Co(!0);function l(){o.value=!1}function a(){o.value=!0}const p=(...g)=>{o.value&&r(...g)};return{isActive:hH(o),pause:l,resume:a,eventFilter:p}}function _Ct(r,o=!1,l="Timeout"){return new Promise((a,p)=>{setTimeout(o?()=>p(l):a,r)})}function y9n(r,o,l={}){const{eventFilter:a=EIt,...p}=l;return Os(r,m9n(a,o),p)}function NO(r,o,l={}){const{eventFilter:a,...p}=l,{eventFilter:g,pause:w,resume:y,isActive:S}=v9n(a);return{stop:y9n(r,o,{...p,eventFilter:g}),pause:w,resume:y,isActive:S}}function k9n(r,o={}){if(!Ef(r))return edn(r);const l=Array.isArray(r.value)?Array.from({length:r.value.length}):{};for(const a in r.value)l[a]=Zfn(()=>({get(){return r.value[a]},set(p){var g;if((g=B6(o.replaceRef))!=null?g:!0)if(Array.isArray(r.value)){const y=[...r.value];y[a]=p,r.value=y}else{const y={...r.value,[a]:p};Object.setPrototypeOf(y,Object.getPrototypeOf(r.value)),r.value=y}else r.value[a]=p}}));return l}function aSe(r,o=!1){function l(M,{flush:_="sync",deep:R=!1,timeout:j,throwOnTimeout:K}={}){let q=null;const Z=[new Promise(X=>{q=Os(r,ie=>{M(ie)!==o&&(q==null||q(),X(ie))},{flush:_,deep:R,immediate:!0})})];return j!=null&&Z.push(_Ct(j,K).then(()=>B6(r)).finally(()=>q==null?void 0:q())),Promise.race(Z)}function a(M,_){if(!Ef(M))return l(ie=>ie===M,_);const{flush:R="sync",deep:j=!1,timeout:K,throwOnTimeout:q}=_??{};let Q=null;const X=[new Promise(ie=>{Q=Os([r,M],([je,et])=>{o!==(je===et)&&(Q==null||Q(),ie(je))},{flush:R,deep:j,immediate:!0})})];return K!=null&&X.push(_Ct(K,q).then(()=>B6(r)).finally(()=>(Q==null||Q(),B6(r)))),Promise.race(X)}function p(M){return l(_=>!!_,M)}function g(M){return a(null,M)}function w(M){return a(void 0,M)}function y(M){return l(Number.isNaN,M)}function S(M,_){return l(R=>{const j=Array.from(R);return j.includes(M)||j.includes(B6(M))},_)}function E(M){return I(1,M)}function I(M=1,_){let R=-1;return l(()=>(R+=1,R>=M),_)}return Array.isArray(B6(r))?{toMatch:l,toContains:S,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}:{toMatch:l,toBe:a,toBeTruthy:p,toBeNull:g,toBeNaN:y,toBeUndefined:w,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}}function fSe(r){return aSe(r)}function C9n(r){var o;const l=B6(r);return(o=l==null?void 0:l.$el)!=null?o:l}const TIt=h9n?window:void 0;function IIt(...r){let o,l,a,p;if(typeof r[0]=="string"||Array.isArray(r[0])?([l,a,p]=r,o=TIt):[o,l,a,p]=r,!o)return w9n;Array.isArray(l)||(l=[l]),Array.isArray(a)||(a=[a]);const g=[],w=()=>{g.forEach(I=>I()),g.length=0},y=(I,M,_,R)=>(I.addEventListener(M,_,R),()=>I.removeEventListener(M,_,R)),S=Os(()=>[C9n(o),B6(p)],([I,M])=>{if(w(),!I)return;const _=b9n(M)?{...M}:M;g.push(...l.flatMap(R=>a.map(j=>y(I,R,j,_))))},{immediate:!0,flush:"post"}),E=()=>{S(),w()};return jie(E),E}function S9n(r){return typeof r=="function"?r:typeof r=="string"?o=>o.key===r:Array.isArray(r)?o=>r.includes(o.key):()=>!0}function RCt(...r){let o,l,a={};r.length===3?(o=r[0],l=r[1],a=r[2]):r.length===2?typeof r[1]=="object"?(o=!0,l=r[0],a=r[1]):(o=r[0],l=r[1]):(o=!0,l=r[0]);const{target:p=TIt,eventName:g="keydown",passive:w=!1,dedupe:y=!1}=a,S=S9n(o);return IIt(p,g,I=>{I.repeat&&B6(y)||S(I)&&l(I)},w)}function x9n(r){return JSON.parse(JSON.stringify(r))}function HCe(r,o,l,a={}){var p,g,w;const{clone:y=!1,passive:S=!1,eventName:E,deep:I=!1,defaultValue:M,shouldEmit:_}=a,R=UC(),j=l||(R==null?void 0:R.emit)||((p=R==null?void 0:R.$emit)==null?void 0:p.bind(R))||((w=(g=R==null?void 0:R.proxy)==null?void 0:g.$emit)==null?void 0:w.bind(R==null?void 0:R.proxy));let K=E;o||(o="modelValue"),K=K||`update:${o.toString()}`;const q=X=>y?typeof y=="function"?y(X):x9n(X):X,Q=()=>p9n(r[o])?q(r[o]):M,Z=X=>{_?_(X)&&j(K,X):j(K,X)};if(S){const X=Q(),ie=Co(X);let je=!1;return Os(()=>r[o],et=>{je||(je=!0,ie.value=q(et),om(()=>je=!1))}),Os(ie,et=>{!je&&(et!==r[o]||I)&&Z(et)},{deep:I}),ie}else return ho({get(){return Q()},set(X){Z(X)}})}var E9n={value:()=>{}};function Die(){for(var r=0,o=arguments.length,l={},a;r=0&&(a=l.slice(p+1),l=l.slice(0,p)),l&&!o.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:a}})}Bne.prototype=Die.prototype={constructor:Bne,on:function(r,o){var l=this._,a=T9n(r+"",l),p,g=-1,w=a.length;if(arguments.length<2){for(;++g0)for(var l=new Array(p),a=0,p,g;a=0&&(o=r.slice(0,l))!=="xmlns"&&(r=r.slice(l+1)),LCt.hasOwnProperty(o)?{space:LCt[o],local:r}:r}function P9n(r){return function(){var o=this.ownerDocument,l=this.namespaceURI;return l===dSe&&o.documentElement.namespaceURI===dSe?o.createElement(r):o.createElementNS(l,r)}}function M9n(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function PIt(r){var o=Nie(r);return(o.local?M9n:P9n)(o)}function O9n(){}function Ixe(r){return r==null?O9n:function(){return this.querySelector(r)}}function _9n(r){typeof r!="function"&&(r=Ixe(r));for(var o=this._groups,l=o.length,a=new Array(l),p=0;p=X&&(X=Z+1);!(je=q[X])&&++X=0;)(w=a[p])&&(g&&w.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(w,g),g=w);return this}function nxn(r){r||(r=rxn);function o(M,_){return M&&_?r(M.__data__,_.__data__):!M-!_}for(var l=this._groups,a=l.length,p=new Array(a),g=0;go?1:r>=o?0:NaN}function ixn(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function oxn(){return Array.from(this)}function sxn(){for(var r=this._groups,o=0,l=r.length;o1?this.each((o==null?wxn:typeof o=="function"?vxn:mxn)(r,o,l??"")):A_(this.node(),r)}function A_(r,o){return r.style.getPropertyValue(o)||AIt(r).getComputedStyle(r,null).getPropertyValue(o)}function kxn(r){return function(){delete this[r]}}function Cxn(r,o){return function(){this[r]=o}}function Sxn(r,o){return function(){var l=o.apply(this,arguments);l==null?delete this[r]:this[r]=l}}function xxn(r,o){return arguments.length>1?this.each((o==null?kxn:typeof o=="function"?Sxn:Cxn)(r,o)):this.node()[r]}function LIt(r){return r.trim().split(/^|\s+/)}function Pxe(r){return r.classList||new $It(r)}function $It(r){this._node=r,this._names=LIt(r.getAttribute("class")||"")}$It.prototype={add:function(r){var o=this._names.indexOf(r);o<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var o=this._names.indexOf(r);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function jIt(r,o){for(var l=Pxe(r),a=-1,p=o.length;++a=0&&(l=o.slice(a+1),o=o.slice(0,a)),{type:o,name:l}})}function Qxn(r){return function(){var o=this.__on;if(o){for(var l=0,a=-1,p=o.length,g;l()=>r;function hSe(r,{sourceEvent:o,subject:l,target:a,identifier:p,active:g,x:w,y,dx:S,dy:E,dispatch:I}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:p,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:w,enumerable:!0,configurable:!0},y:{value:y,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:E,enumerable:!0,configurable:!0},_:{value:I}})}hSe.prototype.on=function(){var r=this._.on.apply(this._,arguments);return r===this._?this:r};function cEn(r){return!r.ctrlKey&&!r.button}function uEn(){return this.parentNode}function aEn(r,o){return o??{x:r.x,y:r.y}}function fEn(){return navigator.maxTouchPoints||"ontouchstart"in this}function dEn(){var r=cEn,o=uEn,l=aEn,a=fEn,p={},g=Die("start","drag","end"),w=0,y,S,E,I,M=0;function _(ie){ie.on("mousedown.drag",R).filter(a).on("touchstart.drag",q).on("touchmove.drag",Q,lEn).on("touchend.drag touchcancel.drag",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(ie,je){if(!(I||!r.call(this,ie,je))){var et=X(this,o.call(this,ie,je),ie,je,"mouse");et&&(oy(ie.view).on("mousemove.drag",j,Wz).on("mouseup.drag",K,Wz),FIt(ie.view),KCe(ie),E=!1,y=ie.clientX,S=ie.clientY,et("start",ie))}}function j(ie){if(p_(ie),!E){var je=ie.clientX-y,et=ie.clientY-S;E=je*je+et*et>M}p.mouse("drag",ie)}function K(ie){oy(ie.view).on("mousemove.drag mouseup.drag",null),zIt(ie.view,E),p_(ie),p.mouse("end",ie)}function q(ie,je){if(r.call(this,ie,je)){var et=ie.changedTouches,mt=o.call(this,ie,je),bt=et.length,ce,Be;for(ce=0;ce>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):l===8?sne(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):l===4?sne(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=pEn.exec(r))?new Wg(o[1],o[2],o[3],1):(o=gEn.exec(r))?new Wg(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=bEn.exec(r))?sne(o[1],o[2],o[3],o[4]):(o=wEn.exec(r))?sne(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=mEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,1):(o=vEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,o[4]):$Ct.hasOwnProperty(r)?NCt($Ct[r]):r==="transparent"?new Wg(NaN,NaN,NaN,0):null}function NCt(r){return new Wg(r>>16&255,r>>8&255,r&255,1)}function sne(r,o,l,a){return a<=0&&(r=o=l=NaN),new Wg(r,o,l,a)}function CEn(r){return r instanceof DH||(r=Xz(r)),r?(r=r.rgb(),new Wg(r.r,r.g,r.b,r.opacity)):new Wg}function pSe(r,o,l,a){return arguments.length===1?CEn(r):new Wg(r,o,l,a??1)}function Wg(r,o,l,a){this.r=+r,this.g=+o,this.b=+l,this.opacity=+a}Mxe(Wg,pSe,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Wg(AE(this.r),AE(this.g),AE(this.b),Sre(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BCt,formatHex:BCt,formatHex8:SEn,formatRgb:FCt,toString:FCt}));function BCt(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}`}function SEn(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}${SE((isNaN(this.opacity)?1:this.opacity)*255)}`}function FCt(){const r=Sre(this.opacity);return`${r===1?"rgb(":"rgba("}${AE(this.r)}, ${AE(this.g)}, ${AE(this.b)}${r===1?")":`, ${r})`}`}function Sre(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function AE(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function SE(r){return r=AE(r),(r<16?"0":"")+r.toString(16)}function zCt(r,o,l,a){return a<=0?r=o=l=NaN:l<=0||l>=1?r=o=NaN:o<=0&&(r=NaN),new sy(r,o,l,a)}function KIt(r){if(r instanceof sy)return new sy(r.h,r.s,r.l,r.opacity);if(r instanceof DH||(r=Xz(r)),!r)return new sy;if(r instanceof sy)return r;r=r.rgb();var o=r.r/255,l=r.g/255,a=r.b/255,p=Math.min(o,l,a),g=Math.max(o,l,a),w=NaN,y=g-p,S=(g+p)/2;return y?(o===g?w=(l-a)/y+(l0&&S<1?0:w,new sy(w,y,S,r.opacity)}function xEn(r,o,l,a){return arguments.length===1?KIt(r):new sy(r,o,l,a??1)}function sy(r,o,l,a){this.h=+r,this.s=+o,this.l=+l,this.opacity=+a}Mxe(sy,xEn,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new sy(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new sy(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,o=isNaN(r)||isNaN(this.s)?0:this.s,l=this.l,a=l+(l<.5?l:1-l)*o,p=2*l-a;return new Wg(UCe(r>=240?r-240:r+120,p,a),UCe(r,p,a),UCe(r<120?r+240:r-120,p,a),this.opacity)},clamp(){return new sy(HCt(this.h),lne(this.s),lne(this.l),Sre(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Sre(this.opacity);return`${r===1?"hsl(":"hsla("}${HCt(this.h)}, ${lne(this.s)*100}%, ${lne(this.l)*100}%${r===1?")":`, ${r})`}`}}));function HCt(r){return r=(r||0)%360,r<0?r+360:r}function lne(r){return Math.max(0,Math.min(1,r||0))}function UCe(r,o,l){return(r<60?o+(l-o)*r/60:r<180?l:r<240?o+(l-o)*(240-r)/60:o)*255}const UIt=r=>()=>r;function EEn(r,o){return function(l){return r+l*o}}function TEn(r,o,l){return r=Math.pow(r,l),o=Math.pow(o,l)-r,l=1/l,function(a){return Math.pow(r+a*o,l)}}function IEn(r){return(r=+r)==1?GIt:function(o,l){return l-o?TEn(o,l,r):UIt(isNaN(o)?l:o)}}function GIt(r,o){var l=o-r;return l?EEn(r,l):UIt(isNaN(r)?o:r)}const KCt=function r(o){var l=IEn(o);function a(p,g){var w=l((p=pSe(p)).r,(g=pSe(g)).r),y=l(p.g,g.g),S=l(p.b,g.b),E=GIt(p.opacity,g.opacity);return function(I){return p.r=w(I),p.g=y(I),p.b=S(I),p.opacity=E(I),p+""}}return a.gamma=r,a}(1);function vC(r,o){return r=+r,o=+o,function(l){return r*(1-l)+o*l}}var gSe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GCe=new RegExp(gSe.source,"g");function PEn(r){return function(){return r}}function MEn(r){return function(o){return r(o)+""}}function OEn(r,o){var l=gSe.lastIndex=GCe.lastIndex=0,a,p,g,w=-1,y=[],S=[];for(r=r+"",o=o+"";(a=gSe.exec(r))&&(p=GCe.exec(o));)(g=p.index)>l&&(g=o.slice(l,g),y[w]?y[w]+=g:y[++w]=g),(a=a[0])===(p=p[0])?y[w]?y[w]+=p:y[++w]=p:(y[++w]=null,S.push({i:w,x:vC(a,p)})),l=GCe.lastIndex;return l180?I+=360:I-E>180&&(E+=360),_.push({i:M.push(p(M)+"rotate(",null,a)-2,x:vC(E,I)})):I&&M.push(p(M)+"rotate("+I+a)}function y(E,I,M,_){E!==I?_.push({i:M.push(p(M)+"skewX(",null,a)-2,x:vC(E,I)}):I&&M.push(p(M)+"skewX("+I+a)}function S(E,I,M,_,R,j){if(E!==M||I!==_){var K=R.push(p(R)+"scale(",null,",",null,")");j.push({i:K-4,x:vC(E,M)},{i:K-2,x:vC(I,_)})}else(M!==1||_!==1)&&R.push(p(R)+"scale("+M+","+_+")")}return function(E,I){var M=[],_=[];return E=r(E),I=r(I),g(E.translateX,E.translateY,I.translateX,I.translateY,M,_),w(E.rotate,I.rotate,M,_),y(E.skewX,I.skewX,M,_),S(E.scaleX,E.scaleY,I.scaleX,I.scaleY,M,_),E=I=null,function(R){for(var j=-1,K=_.length,q;++j=0&&r._call.call(void 0,o),r=r._next;--L_}function WCt(){UE=(Ere=Yz.now())+Bie,L_=IF=0;try{FEn()}finally{L_=0,HEn(),UE=0}}function zEn(){var r=Yz.now(),o=r-Ere;o>qIt&&(Bie-=o,Ere=r)}function HEn(){for(var r,o=xre,l,a=1/0;o;)o._call?(a>o._time&&(a=o._time),r=o,o=o._next):(l=o._next,o._next=null,o=r?r._next=l:xre=l);PF=r,wSe(a)}function wSe(r){if(!L_){IF&&(IF=clearTimeout(IF));var o=r-UE;o>24?(r<1/0&&(IF=setTimeout(WCt,r-Yz.now()-Bie)),gF&&(gF=clearInterval(gF))):(gF||(Ere=Yz.now(),gF=setInterval(zEn,qIt)),L_=1,XIt(WCt))}}function VCt(r,o,l){var a=new Tre;return o=o==null?0:+o,a.restart(p=>{a.stop(),r(p+o)},o,l),a}var KEn=Die("start","end","cancel","interrupt"),UEn=[],JIt=0,qCt=1,mSe=2,Fne=3,XCt=4,vSe=5,zne=6;function Fie(r,o,l,a,p,g){var w=r.__transition;if(!w)r.__transition={};else if(l in w)return;GEn(r,l,{name:o,index:a,group:p,on:KEn,tween:UEn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:JIt})}function _xe(r,o){var l=gy(r,o);if(l.state>JIt)throw new Error("too late; already scheduled");return l}function A3(r,o){var l=gy(r,o);if(l.state>Fne)throw new Error("too late; already running");return l}function gy(r,o){var l=r.__transition;if(!l||!(l=l[o]))throw new Error("transition not found");return l}function GEn(r,o,l){var a=r.__transition,p;a[o]=l,l.timer=YIt(g,0,l.time);function g(E){l.state=qCt,l.timer.restart(w,l.delay,l.time),l.delay<=E&&w(E-l.delay)}function w(E){var I,M,_,R;if(l.state!==qCt)return S();for(I in a)if(R=a[I],R.name===l.name){if(R.state===Fne)return VCt(w);R.state===XCt?(R.state=zne,R.timer.stop(),R.on.call("interrupt",r,r.__data__,R.index,R.group),delete a[I]):+ImSe&&a.state=0&&(o=o.slice(0,l)),!o||o==="start"})}function kTn(r,o,l){var a,p,g=yTn(o)?_xe:A3;return function(){var w=g(this,r),y=w.on;y!==a&&(p=(a=y).copy()).on(o,l),w.on=p}}function CTn(r,o){var l=this._id;return arguments.length<2?gy(this.node(),l).on.on(r):this.each(kTn(l,r,o))}function STn(r){return function(){var o=this.parentNode;for(var l in this.__transition)if(+l!==r)return;o&&o.removeChild(this)}}function xTn(){return this.on("end.remove",STn(this._id))}function ETn(r){var o=this._name,l=this._id;typeof r!="function"&&(r=Ixe(r));for(var a=this._groups,p=a.length,g=new Array(p),w=0;w()=>r;function YTn(r,{sourceEvent:o,target:l,transform:a,dispatch:p}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:p}})}function U6(r,o,l){this.k=r,this.x=o,this.y=l}U6.prototype={constructor:U6,scale:function(r){return r===1?this:new U6(this.k*r,this.x,this.y)},translate:function(r,o){return r===0&o===0?this:new U6(this.k,this.x+this.k*r,this.y+this.k*o)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $_=new U6(1,0,0);U6.prototype;function WCe(r){r.stopImmediatePropagation()}function bF(r){r.preventDefault(),r.stopImmediatePropagation()}function JTn(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function QTn(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function YCt(){return this.__zoom||$_}function ZTn(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function eIn(){return navigator.maxTouchPoints||"ontouchstart"in this}function tIn(r,o,l){var a=r.invertX(o[0][0])-l[0][0],p=r.invertX(o[1][0])-l[1][0],g=r.invertY(o[0][1])-l[0][1],w=r.invertY(o[1][1])-l[1][1];return r.translate(p>a?(a+p)/2:Math.min(0,a)||Math.max(0,p),w>g?(g+w)/2:Math.min(0,g)||Math.max(0,w))}function nIn(){var r=JTn,o=QTn,l=tIn,a=ZTn,p=eIn,g=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],y=250,S=NEn,E=Die("start","zoom","end"),I,M,_,R=500,j=150,K=0,q=10;function Q(He){He.property("__zoom",YCt).on("wheel.zoom",bt,{passive:!1}).on("mousedown.zoom",ce).on("dblclick.zoom",Be).filter(p).on("touchstart.zoom",ae).on("touchmove.zoom",xe).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Q.transform=function(He,yt,ft,At){var Jt=He.selection?He.selection():He;Jt.property("__zoom",YCt),He!==Jt?je(He,yt,ft,At):Jt.interrupt().each(function(){et(this,arguments).event(At).start().zoom(null,typeof yt=="function"?yt.apply(this,arguments):yt).end()})},Q.scaleBy=function(He,yt,ft,At){Q.scaleTo(He,function(){var Jt=this.__zoom.k,un=typeof yt=="function"?yt.apply(this,arguments):yt;return Jt*un},ft,At)},Q.scaleTo=function(He,yt,ft,At){Q.transform(He,function(){var Jt=o.apply(this,arguments),un=this.__zoom,kn=ft==null?ie(Jt):typeof ft=="function"?ft.apply(this,arguments):ft,qt=un.invert(kn),on=typeof yt=="function"?yt.apply(this,arguments):yt;return l(X(Z(un,on),kn,qt),Jt,w)},ft,At)},Q.translateBy=function(He,yt,ft,At){Q.transform(He,function(){return l(this.__zoom.translate(typeof yt=="function"?yt.apply(this,arguments):yt,typeof ft=="function"?ft.apply(this,arguments):ft),o.apply(this,arguments),w)},null,At)},Q.translateTo=function(He,yt,ft,At,Jt){Q.transform(He,function(){var un=o.apply(this,arguments),kn=this.__zoom,qt=At==null?ie(un):typeof At=="function"?At.apply(this,arguments):At;return l($_.translate(qt[0],qt[1]).scale(kn.k).translate(typeof yt=="function"?-yt.apply(this,arguments):-yt,typeof ft=="function"?-ft.apply(this,arguments):-ft),un,w)},At,Jt)};function Z(He,yt){return yt=Math.max(g[0],Math.min(g[1],yt)),yt===He.k?He:new U6(yt,He.x,He.y)}function X(He,yt,ft){var At=yt[0]-ft[0]*He.k,Jt=yt[1]-ft[1]*He.k;return At===He.x&&Jt===He.y?He:new U6(He.k,At,Jt)}function ie(He){return[(+He[0][0]+ +He[1][0])/2,(+He[0][1]+ +He[1][1])/2]}function je(He,yt,ft,At){He.on("start.zoom",function(){et(this,arguments).event(At).start()}).on("interrupt.zoom end.zoom",function(){et(this,arguments).event(At).end()}).tween("zoom",function(){var Jt=this,un=arguments,kn=et(Jt,un).event(At),qt=o.apply(Jt,un),on=ft==null?ie(qt):typeof ft=="function"?ft.apply(Jt,un):ft,Rt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),an=Jt.__zoom,Zn=typeof yt=="function"?yt.apply(Jt,un):yt,kt=S(an.invert(on).concat(Rt/an.k),Zn.invert(on).concat(Rt/Zn.k));return function(Ze){if(Ze===1)Ze=Zn;else{var Xt=kt(Ze),Mn=Rt/Xt[2];Ze=new U6(Mn,on[0]-Xt[0]*Mn,on[1]-Xt[1]*Mn)}kn.zoom(null,Ze)}})}function et(He,yt,ft){return!ft&&He.__zooming||new mt(He,yt)}function mt(He,yt){this.that=He,this.args=yt,this.active=0,this.sourceEvent=null,this.extent=o.apply(He,yt),this.taps=0}mt.prototype={event:function(He){return He&&(this.sourceEvent=He),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(He,yt){return this.mouse&&He!=="mouse"&&(this.mouse[1]=yt.invert(this.mouse[0])),this.touch0&&He!=="touch"&&(this.touch0[1]=yt.invert(this.touch0[0])),this.touch1&&He!=="touch"&&(this.touch1[1]=yt.invert(this.touch1[0])),this.that.__zoom=yt,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(He){var yt=oy(this.that).datum();E.call(He,this.that,new YTn(He,{sourceEvent:this.sourceEvent,target:Q,type:He,transform:this.that.__zoom,dispatch:E}),yt)}};function bt(He,...yt){if(!r.apply(this,arguments))return;var ft=et(this,yt).event(He),At=this.__zoom,Jt=Math.max(g[0],Math.min(g[1],At.k*Math.pow(2,a.apply(this,arguments)))),un=d3(He);if(ft.wheel)(ft.mouse[0][0]!==un[0]||ft.mouse[0][1]!==un[1])&&(ft.mouse[1]=At.invert(ft.mouse[0]=un)),clearTimeout(ft.wheel);else{if(At.k===Jt)return;ft.mouse=[un,At.invert(un)],Hne(this),ft.start()}bF(He),ft.wheel=setTimeout(kn,j),ft.zoom("mouse",l(X(Z(At,Jt),ft.mouse[0],ft.mouse[1]),ft.extent,w));function kn(){ft.wheel=null,ft.end()}}function ce(He,...yt){if(_||!r.apply(this,arguments))return;var ft=He.currentTarget,At=et(this,yt,!0).event(He),Jt=oy(He.view).on("mousemove.zoom",on,!0).on("mouseup.zoom",Rt,!0),un=d3(He,ft),kn=He.clientX,qt=He.clientY;FIt(He.view),WCe(He),At.mouse=[un,this.__zoom.invert(un)],Hne(this),At.start();function on(an){if(bF(an),!At.moved){var Zn=an.clientX-kn,kt=an.clientY-qt;At.moved=Zn*Zn+kt*kt>K}At.event(an).zoom("mouse",l(X(At.that.__zoom,At.mouse[0]=d3(an,ft),At.mouse[1]),At.extent,w))}function Rt(an){Jt.on("mousemove.zoom mouseup.zoom",null),zIt(an.view,At.moved),bF(an),At.event(an).end()}}function Be(He,...yt){if(r.apply(this,arguments)){var ft=this.__zoom,At=d3(He.changedTouches?He.changedTouches[0]:He,this),Jt=ft.invert(At),un=ft.k*(He.shiftKey?.5:2),kn=l(X(Z(ft,un),At,Jt),o.apply(this,yt),w);bF(He),y>0?oy(this).transition().duration(y).call(je,kn,At,He):oy(this).call(Q.transform,kn,At,He)}}function ae(He,...yt){if(r.apply(this,arguments)){var ft=He.touches,At=ft.length,Jt=et(this,yt,He.changedTouches.length===At).event(He),un,kn,qt,on;for(WCe(He),kn=0;kn(r.Left="left",r.Top="top",r.Right="right",r.Bottom="bottom",r))(wi||{}),Axe=(r=>(r.Partial="partial",r.Full="full",r))(Axe||{}),bE=(r=>(r.Bezier="default",r.SimpleBezier="simple-bezier",r.Straight="straight",r.Step="step",r.SmoothStep="smoothstep",r))(bE||{}),GE=(r=>(r.Strict="strict",r.Loose="loose",r))(GE||{}),Ire=(r=>(r.Arrow="arrow",r.ArrowClosed="arrowclosed",r))(Ire||{}),ZF=(r=>(r.Free="free",r.Vertical="vertical",r.Horizontal="horizontal",r))(ZF||{});function ySe(r){var o,l;const a=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target,p=typeof(a==null?void 0:a.hasAttribute)=="function"?a.hasAttribute("contenteditable"):!1,g=typeof(a==null?void 0:a.closest)=="function"?a.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(a==null?void 0:a.nodeName)||p||!!g}function rIn(r){return r.ctrlKey||r.metaKey||r.shiftKey}function JCt(r,o,l,a){const p=o.replace("+",` `).replace(` `,` diff --git a/assets/main-CakvuChy.js b/assets/main-DQofh_ad.js similarity index 94% rename from assets/main-CakvuChy.js rename to assets/main-DQofh_ad.js index 0a8a59d..bdd0bfc 100644 --- a/assets/main-CakvuChy.js +++ b/assets/main-DQofh_ad.js @@ -1,3 +1,3 @@ -import{m as p}from"./main-UPTG37W_.js";import{m as w}from"./main--2A8lBXz.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` +import{m as p}from"./main-CO-45Vwa.js";import{m as w}from"./main-Rstpr1kO.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` `,this._xc_state=2),t&&t.width){let i=t.width,r=[];for(;e.length>i;){let n=e.slice(0,i+1),l=/^(.*[^\s])\s+/.exec(n);if(l){let o=l[1];r.push(o),e=e.slice(o.length).replace(/^\s+/,"")}else r.push(e.slice(0,i)),e=e.slice(i)}e=r.join(` `)}return s+(super._serialize_comment(e)||"")}_transcode_list(e,t=this._g_lists){if(e.length){let s=e[0],i=s;return Array.isArray(s)&&(i=this._transcode_list(s,t)),{[t.first]:i,[t.rest]:e.length===1?t.nil:this._transcode_list(e.slice(1),t)}}else return t.nil}_apply_directive(e,t){let s=u.exec(e);if(!s)throw new Error(`Invalid writable data event directive string: "${e}"`);let i;try{i=JSON.parse(s[1])}catch{throw new Error(`Unable to parse JSON in writable data event directive: "${s[1]}"`)}let r=i.type;switch(r){case"comment":{if(this._serialize_comment)return{write:this._serialize_comment(t+"",i)};break}case"newlines":{if(this._serialize_newlines)return{write:this._serialize_newlines(t)};break}case"config":switch(i.value){case"lists":{let n=this._a_list_serializers;n.push(this._serialize_list_object);let l=this._g_lists,o={first:t.first||l.first,rest:t.rest||l.rest,nil:t.nil||l.nil};return this._serialize_list_object=function(c,h){let f=this._transcode_list(c,o);return this._encode_objects(f,h)},{exit:()=>{this._serialize_list_object=n.pop()}}}default:throw new Error(`No such config key '${i.value}'`)}default:throw new Error(`Invalid writable data event directive type: '${r}'`)}return{}}_serialize_c4(e){let t=this._h_prefixes,s=[],i="";for(let r in e)r!=="*"&&s.push(r),i+=this._serialize_c3(e[r]);if(s.length){let r=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${s.map(n=>_.c1(n,t).verbose()).join(", ")}`;this.emit("warning",r)||console.warn(r)}return i}}var z=g;export{z as m}; diff --git a/assets/main-CQ6G9sma.js b/assets/main-DvYAR6pV.js similarity index 97% rename from assets/main-CQ6G9sma.js rename to assets/main-DvYAR6pV.js index 39e5fcb..d45b594 100644 --- a/assets/main-CQ6G9sma.js +++ b/assets/main-DvYAR6pV.js @@ -1,4 +1,4 @@ -import{g,m as z}from"./main-UPTG37W_.js";import{m as $}from"./main--2A8lBXz.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([A-Za-z_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` +import{g,m as z}from"./main-CO-45Vwa.js";import{m as $}from"./main-Rstpr1kO.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([A-Za-z_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` to <${s[t]}>`)}if(k.test(t))throw new Error(`Cannot serialize prefix '${t}' since it is reserved under the blanket XML namespace.`);r+=` xmlns${t?":"+t:""}="${j(s[t]).value}"`}return r&&this._update_prefixes(s,!0),r}_serialize_c3r(s){let i="";this._b_prefixes_open&&(i+=">",this._b_prefixes_open=!1);let e=this._h_prefixes;this._kt_subject!==null&&(i+=` diff --git a/assets/main--2A8lBXz.js b/assets/main-Rstpr1kO.js similarity index 96% rename from assets/main--2A8lBXz.js rename to assets/main-Rstpr1kO.js index 563fd9c..981f624 100644 --- a/assets/main--2A8lBXz.js +++ b/assets/main-Rstpr1kO.js @@ -1,4 +1,4 @@ -import{m as o}from"./main-UPTG37W_.js";import{m as f}from"./main-DD61z6wK.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` +import{m as o}from"./main-CO-45Vwa.js";import{m as f}from"./main-BEQE4T9J.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` # `)+` `}_serialize_newlines(e=1){return` `.repeat(e)}_serialize_c4r(e){let r=this._h_prefixes,t=[],i="";for(let s in e)s!=="*"&&t.push(s),i+=this._serialize_c3r(e[s]);if(t.length){let s=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${t.map(u=>h.c1(u,r).verbose()).join(", ")}`;this.emit("warning",s)||console.warn(s)}return i}_serialize_c3(){throw new Error(`Write event type 'c3' not supported by ${this.constructor.name}`)}_serialize_c4(){throw new Error(`Write event type 'c4' not supported by ${this.constructor.name}`)}_serialize_c3r(){throw new Error(`Write event type 'c3r' should have been implemented by subclass ${this.constructor.name}`)}_serialize_quad(){throw new Error(`Write event type 'quad' should have been implemented by subclass ${this.constructor.name}`)}_serialize_comment(){}_update_prefixes(e,r=!1){let t={...this._h_prefixes,...e};this._h_prefixes=h.cachePrefixes(t||{},r)}_transform(e,r,t){let i;try{i=this.serialize(e)}catch(s){return t(s),s}if(i)n._flush_buffer(this),this.push(i);else{let s=this._s_push.length;s>this._n_max_buffer?n._flush_buffer(this):s&&queueMicrotask(()=>n._flush_buffer(this))}t()}_queue(e){this._s_push+=e,this._s_push.length>this._n_max_buffer?n._flush_buffer(this):queueMicrotask(()=>n._flush_buffer(this))}serialize(e){switch(e.type){case void 0:return this._serialize_quad(e);case"c3r":return this._serialize_c3r(e.value);case"c4r":return this._serialize_c4r(e.value);case"array":{let r="";for(let t of e.value){let i=this.serialize(t);i?r+=i:this._s_push&&(r+=this._s_push,this._s_push="")}return r}case"quad":return this._serialize_quad(e.value);case"c3":return this._serialize_c3(e.value);case"c4":return this._serialize_c4(e.value);case"prefixes":return this._serialize_prefixes(e.value);case"comment":return this._serialize_comment(e.value);case"newline":case"newlines":return this._serialize_newlines(e.value);default:throw new Error(`no such writable data event type for RDF stream: '${e.type}'`)}}rinse(){this._reset(),n._flush_buffer(this)}_flush(){n._flush_buffer(this),this.push(null)}}Object.assign(n.prototype,{isGraphyWritable:!0,_serialize_prefixes:n.prototype._update_prefixes});var c=n;export{c as m}; diff --git a/assets/main-DcNn2okZ.js b/assets/main-V12eunPc.js similarity index 99% rename from assets/main-DcNn2okZ.js rename to assets/main-V12eunPc.js index d642ba0..db21151 100644 --- a/assets/main-DcNn2okZ.js +++ b/assets/main-V12eunPc.js @@ -1,4 +1,4 @@ -import{g as P,m as U}from"./main-UPTG37W_.js";import{m as z}from"./main-DD61z6wK.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` +import{g as P,m as U}from"./main-CO-45Vwa.js";import{m as z}from"./main-BEQE4T9J.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${e}'`)}else{if(t)return t;if(s)return String.fromCodePoint(parseInt(s,16));if(a)return String.fromCodePoint(parseInt(a,16));if(n)throw n[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${n}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(n)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},K=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,F=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,v=o=>o.replace(K,$),Y=o=>{let e=X.exec(o);if(e){let t=e.index;return[o.slice(0,t).replace(F,$),o.slice(t)]}else return[o.replace(F,$),""]},[X,D]=(()=>{function o(t){let s=RegExp.prototype.exec.call(this,t);if(s){let a=s[0].length-s[1].length;s.index+=a,s[0]=s[0].slice(a)}return s}let e=(()=>{try{new RegExp("(?(a.exec=n,a)}return t=>t()})();return[e(()=>new RegExp("(?new RegExp('(?]*)>|_:([^\x20\t<]+))[\x20\t]*<([^\\>]*)>[\x20\t]*(?:(?:(<[^\\>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"([^"\\]*)(?:(")(?:\^\^<([^\\>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,N=/(?:<([^>]*)>|_:([^\x20\t<]+))[\x20\t]*<([^>]*)>[\x20\t]*(?:(?:(<[^>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"((?:[^"\\]|\\.)*)(?:(")(?:\^\^<([^>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,O=/_:([^\x20\t<]+)/y;class ee extends w.Transform{constructor(e){super({decodeStrings:!1,writableObjectMode:!1,readableObjectMode:!0,flush:e.flush,transform:e.transform}),this.on("pipe",t=>{this._ds_input=t,typeof t.setEncoding=="function"&&t.setEncoding("utf8")})}pipe(e){let t=e;return t._writableState.objectMode?e.isGraphyWritable&&(e=w.quads_to_writable()):e=w.quads_to_json(),e!==t?(super.pipe(e),e.pipe(t)):super.pipe(t)}}class te{constructor(e){let{input:t=null,relax:s=!1,debug:a=!1}=e,n=e.allow_relative_iris||e.allowRelativeIRIs||e.allowRelativeIris||!1,d=this._dc_factory=C.adopt(e.dataFactory||e.data_factory||C.unfiltered),u=this._f_quad=d.quad;Object.assign(this,{s:e.prepend||"",n:0,_b_debug:a,_b_relax:s,_b_destroyed:!1,_b_trim_start:!0,_f_state:this.statement,_kt_subject:null,_kt_predicate:null,_kt_object:null,_s_literal:""}),this._kt_default_graph=d.defaultGraph(),this._kt_rdfs_lang_string=d.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");let x=this._r_clean=W;e.relaxed&&console.warn(new Error("no such option 'relaxed'; did you mean 'relax' ?").stack.replace(/^Error:/,"Warning:")),"validate"in e&&console.warn(new Error("option 'validate' has been removed and validation is now on by default. Use 'relax' option if you wish to disable validation.").stack.replace(/^Error:/,"Warning:"));let E=d.namedNode,A=d.blankNode,_=d.languagedLiteral,l=n?B:G,m=n?V:H,p=this;Object.assign(this,s?{create_named_node:E,create_named_node_escapeless:E,create_blank_node:A,create_languaged_literal:_}:{create_named_node(r){return l.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_named_node_escapeless(r){return m.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_blank_node(r){return Q.test(r)?A(r):p._error(`Invalid blank node label: "${r}"`)},create_languaged_literal(r,i){return J.test(i)?_(r,i):p._error(`Invalid literal language tag: ${i}`)}});let f,y=!1;if(f=this.transform=new ee({transform:(r,i,c)=>{y||(f.emit("ready"),y=!1);let h=this.s+=r;if(this._b_trim_start){x.lastIndex=0;let R=x.exec(h);this.emit_comments&&this.emit_comments(R[1]),this.i=x.lastIndex}else this.i=0;this.n=h.length;try{this.parse(!0)}catch(R){return f.destroy(R)}f.emit("progress",r.length),c()},flush:r=>{if(this.s.length){if(this.s+=` `,this._b_trim_start){x.lastIndex=0;let i=x.exec(this.s);this.emit_comments&&this.emit_comments(i[1]),this.i=x.lastIndex}else this.i=0;try{this.parse()}catch(i){return f.demolish(i)}if(this.s.length)return f.demolish(new Error(`parsing error occurred in state: statement ${this.s.substr(0,50)} diff --git a/assets/main-zTQ0tXXK.js b/assets/main-iH2f1yx-.js similarity index 97% rename from assets/main-zTQ0tXXK.js rename to assets/main-iH2f1yx-.js index 2325dd0..99f6979 100644 --- a/assets/main-zTQ0tXXK.js +++ b/assets/main-iH2f1yx-.js @@ -1,4 +1,4 @@ -import{g as T,m as S}from"./main-UPTG37W_.js";import{m as C}from"./main-CakvuChy.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` +import{g as T,m as S}from"./main-CO-45Vwa.js";import{m as C}from"./main-DQofh_ad.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` `:` . `,o="";try{for(let f in t){if(!k.test(f))throw new Error(`Invlalid prefix id for text/turtle RDF serialization format: '${f}'`);o+=`${_} ${f}: ${u.namedNode(t[f]).verbose()}${n}`}}catch(f){queueMicrotask(()=>{this.emit("error",f)})}o&&this.push(o)}_serialize_prefixes(e){let t=this._xc_state===2?` diff --git a/assets/stream-C3gkHwb7.js b/assets/stream-DR3nFz_Q.js similarity index 83% rename from assets/stream-C3gkHwb7.js rename to assets/stream-DR3nFz_Q.js index ddaf35b..831d1d2 100644 --- a/assets/stream-C3gkHwb7.js +++ b/assets/stream-DR3nFz_Q.js @@ -1 +1 @@ -import{p as a,b as n,g as o,r}from"./main-UPTG37W_.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; +import{p as a,b as n,g as o,r}from"./main-CO-45Vwa.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; diff --git a/index.html b/index.html index 5cc5c09..49a4156 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ Zazuko RDF Sketch - + diff --git a/service-worker.js b/service-worker.js index 18b4411..f8541bf 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,l)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>i(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map((s=>a[s]||o(s)))).then((s=>(l(...s),u)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/canonicalize-Bd8h0v92.js",revision:null},{url:"assets/CustomJsonLdSerializer-B2oQjduZ.js",revision:null},{url:"assets/CustomRdfXmlParser-j_ZzoDnu.js",revision:null},{url:"assets/index-BlwBIAJx.js",revision:null},{url:"assets/index-BOvYCoiN.js",revision:null},{url:"assets/index-BQuzNdW2.js",revision:null},{url:"assets/index-C7nnL0Je.js",revision:null},{url:"assets/index-DCe_24Mq.js",revision:null},{url:"assets/index-DjJhAlRP.js",revision:null},{url:"assets/index-RV_eTkg7.js",revision:null},{url:"assets/main--2A8lBXz.js",revision:null},{url:"assets/main-Br7cBokn.js",revision:null},{url:"assets/main-CakvuChy.js",revision:null},{url:"assets/main-Cn_tAjBT.css",revision:null},{url:"assets/main-CQ6G9sma.js",revision:null},{url:"assets/main-DcNn2okZ.js",revision:null},{url:"assets/main-DD61z6wK.js",revision:null},{url:"assets/main-UPTG37W_.js",revision:null},{url:"assets/main-yWOklOAz.js",revision:null},{url:"assets/main-zTQ0tXXK.js",revision:null},{url:"assets/N3StreamParser-BYVXsYqX.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/readable-BmS1kvD9.js",revision:null},{url:"assets/stream-C3gkHwb7.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"daf7a420f53b5f149d54fed22e412d27"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let a={};const o=s=>i(s,l),u={module:{uri:l},exports:a,require:o};e[l]=Promise.all(n.map((s=>u[s]||o(s)))).then((s=>(r(...s),a)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/canonicalize-Bd8h0v92.js",revision:null},{url:"assets/CustomJsonLdSerializer-DTZy0vPJ.js",revision:null},{url:"assets/CustomRdfXmlParser-BnFBQjMk.js",revision:null},{url:"assets/index-BMw9Z_By.js",revision:null},{url:"assets/index-BOvYCoiN.js",revision:null},{url:"assets/index-CpxM9Dlb.js",revision:null},{url:"assets/index-d5GvA7NS.js",revision:null},{url:"assets/index-jd32SyoQ.js",revision:null},{url:"assets/index-keipGPtm.js",revision:null},{url:"assets/index-wrpfIQEt.js",revision:null},{url:"assets/main-B94FsnA1.js",revision:null},{url:"assets/main-BEQE4T9J.js",revision:null},{url:"assets/main-BIUkwmxE.js",revision:null},{url:"assets/main-Cn_tAjBT.css",revision:null},{url:"assets/main-CO-45Vwa.js",revision:null},{url:"assets/main-DQofh_ad.js",revision:null},{url:"assets/main-DvYAR6pV.js",revision:null},{url:"assets/main-iH2f1yx-.js",revision:null},{url:"assets/main-Rstpr1kO.js",revision:null},{url:"assets/main-V12eunPc.js",revision:null},{url:"assets/N3StreamParser-Bkfk54FL.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/readable-BmS1kvD9.js",revision:null},{url:"assets/stream-DR3nFz_Q.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"aa065d042a6b13052bd252157cf7016c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));