diff --git a/docs/_app/immutable/chunks/16.Daqv5-z-.js b/docs/_app/immutable/chunks/16.DduAFaeW.js similarity index 53% rename from docs/_app/immutable/chunks/16.Daqv5-z-.js rename to docs/_app/immutable/chunks/16.DduAFaeW.js index 9f97c11..3ae9432 100644 --- a/docs/_app/immutable/chunks/16.Daqv5-z-.js +++ b/docs/_app/immutable/chunks/16.DduAFaeW.js @@ -1,28 +1,28 @@ -var AM=Object.defineProperty;var vM=(t,e,n)=>e in t?AM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _=(t,e,n)=>(vM(t,typeof e!="symbol"?e+"":e,n),n);import{s as $r,c as NM,u as CM,g as kM,a as TM,y as LM,f as Ug,n as wr}from"./scheduler.BRd-yEOV.js";import{S as Pr,i as Mr,t as Bd,j as jd,e as Gr,s as $l,v as __,c as Yr,g as aa,a as Pl,w as b_,f as Oc,h as Pn,x as w_,d as Ge,y as S_,k as O_,b as I_,l as x_,m as F_,n as $_}from"./index.BHR9i4nQ.js";import{_ as UM}from"./9.CIeohZ6G.js";import{_ as DM}from"./10.CIeohZ6G.js";import{_ as BM}from"./11.CIeohZ6G.js";import{_ as jM}from"./12.CIeohZ6G.js";import{h as qM}from"./utils.rIxyFrg4.js";function WM(t){return Ee(t)&&!tr(t)&&!la(t)&&Symbol.asyncIterator in t}function tr(t){return Array.isArray(t)}function P_(t){return typeof t=="bigint"}function fa(t){return typeof t=="boolean"}function M_(t){return t instanceof globalThis.Date}function KM(t){return typeof t=="function"}function HM(t){return Ee(t)&&!tr(t)&&!la(t)&&Symbol.iterator in t}function GM(t){return t===null}function Jr(t){return typeof t=="number"}function Ee(t){return typeof t=="object"&&t!==null}function YM(t){return t instanceof globalThis.RegExp}function ee(t){return typeof t=="string"}function zM(t){return typeof t=="symbol"}function la(t){return t instanceof globalThis.Uint8Array}function jt(t){return t===void 0}function JM(t){return t.map(e=>Uc(e))}function XM(t){return new Date(t.getTime())}function QM(t){return new Uint8Array(t)}function ZM(t){return new RegExp(t.source,t.flags)}function VM(t){const e=Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:Uc(t[s])}),{}),n=Object.getOwnPropertySymbols(t).reduce((i,s)=>({...i,[s]:Uc(t[s])}),{});return{...e,...n}}function Uc(t){return tr(t)?JM(t):M_(t)?XM(t):la(t)?QM(t):YM(t)?ZM(t):Ee(t)?VM(t):t}function tR(t){return Uc(t)}function Jn(t){return t.map(e=>H(e))}function H(t,e={}){return{...tR(t),...e}}class Ae extends Error{constructor(e){super(e)}}const Mn=Symbol.for("TypeBox.Transform"),da=Symbol.for("TypeBox.Readonly"),Ci=Symbol.for("TypeBox.Optional"),ha=Symbol.for("TypeBox.Hint"),U=Symbol.for("TypeBox.Kind"),eR=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function R_(t){try{return new RegExp(t),!0}catch{return!1}}function qd(t){if(!ee(t))return!1;for(let e=0;e=7&&n<=13||n===27||n===127)return!1}return!0}function E_(t){return Wd(t)||$t(t)}function ws(t){return jt(t)||P_(t)}function Mt(t){return jt(t)||Jr(t)}function Wd(t){return jt(t)||fa(t)}function xt(t){return jt(t)||ee(t)}function nR(t){return jt(t)||ee(t)&&qd(t)&&R_(t)}function rR(t){return jt(t)||ee(t)&&qd(t)}function A_(t){return jt(t)||$t(t)}function iR(t){return Ee(t)&&t[da]==="Readonly"}function Xn(t){return Ee(t)&&t[Ci]==="Optional"}function Nn(t){return ht(t,"Any")&&xt(t.$id)}function Un(t){return ht(t,"Array")&&t.type==="array"&&xt(t.$id)&&$t(t.items)&&Mt(t.minItems)&&Mt(t.maxItems)&&Wd(t.uniqueItems)&&A_(t.contains)&&Mt(t.minContains)&&Mt(t.maxContains)}function tu(t){return ht(t,"AsyncIterator")&&t.type==="AsyncIterator"&&xt(t.$id)&&$t(t.items)}function eu(t){return ht(t,"BigInt")&&t.type==="bigint"&&xt(t.$id)&&ws(t.exclusiveMaximum)&&ws(t.exclusiveMinimum)&&ws(t.maximum)&&ws(t.minimum)&&ws(t.multipleOf)}function ti(t){return ht(t,"Boolean")&&t.type==="boolean"&&xt(t.$id)}function ko(t){return ht(t,"Constructor")&&t.type==="Constructor"&&xt(t.$id)&&tr(t.parameters)&&t.parameters.every(e=>$t(e))&&$t(t.returns)}function ma(t){return ht(t,"Date")&&t.type==="Date"&&xt(t.$id)&&Mt(t.exclusiveMaximumTimestamp)&&Mt(t.exclusiveMinimumTimestamp)&&Mt(t.maximumTimestamp)&&Mt(t.minimumTimestamp)&&Mt(t.multipleOfTimestamp)}function To(t){return ht(t,"Function")&&t.type==="Function"&&xt(t.$id)&&tr(t.parameters)&&t.parameters.every(e=>$t(e))&&$t(t.returns)}function pn(t){return ht(t,"Integer")&&t.type==="integer"&&xt(t.$id)&&Mt(t.exclusiveMaximum)&&Mt(t.exclusiveMinimum)&&Mt(t.maximum)&&Mt(t.minimum)&&Mt(t.multipleOf)}function v_(t){return Ee(t)&&Object.entries(t).every(([e,n])=>qd(e)&&$t(n))}function pe(t){return ht(t,"Intersect")&&!(ee(t.type)&&t.type!=="object")&&tr(t.allOf)&&t.allOf.every(e=>$t(e)&&!ei(e))&&xt(t.type)&&(Wd(t.unevaluatedProperties)||A_(t.unevaluatedProperties))&&xt(t.$id)}function nu(t){return ht(t,"Iterator")&&t.type==="Iterator"&&xt(t.$id)&&$t(t.items)}function ht(t,e){return Ee(t)&&U in t&&t[U]===e}function N_(t){return gn(t)&&ee(t.const)}function C_(t){return gn(t)&&Jr(t.const)}function k_(t){return gn(t)&&fa(t.const)}function gn(t){return ht(t,"Literal")&&xt(t.$id)&&oR(t.const)}function oR(t){return fa(t)||Jr(t)||ee(t)}function ki(t){return ht(t,"MappedKey")&&tr(t.keys)&&t.keys.every(e=>Jr(e)||ee(e))}function Ze(t){return ht(t,"MappedResult")&&v_(t.properties)}function er(t){return ht(t,"Never")&&Ee(t.not)&&Object.getOwnPropertyNames(t.not).length===0}function po(t){return ht(t,"Not")&&$t(t.not)}function Kd(t){return ht(t,"Null")&&t.type==="null"&&xt(t.$id)}function le(t){return ht(t,"Number")&&t.type==="number"&&xt(t.$id)&&Mt(t.exclusiveMaximum)&&Mt(t.exclusiveMinimum)&&Mt(t.maximum)&&Mt(t.minimum)&&Mt(t.multipleOf)}function gt(t){return ht(t,"Object")&&t.type==="object"&&xt(t.$id)&&v_(t.properties)&&E_(t.additionalProperties)&&Mt(t.minProperties)&&Mt(t.maxProperties)}function Lo(t){return ht(t,"Promise")&&t.type==="Promise"&&xt(t.$id)&&$t(t.item)}function se(t){return ht(t,"Record")&&t.type==="object"&&xt(t.$id)&&E_(t.additionalProperties)&&Ee(t.patternProperties)&&(e=>{const n=Object.getOwnPropertyNames(e.patternProperties);return n.length===1&&R_(n[0])&&Ee(e.patternProperties)&&$t(e.patternProperties[n[0]])})(t)}function T_(t){return ht(t,"Ref")&&xt(t.$id)&&ee(t.$ref)}function go(t){return ht(t,"RegExp")&&xt(t.$id)&&ee(t.source)&&ee(t.flags)&&Mt(t.maxLength)&&Mt(t.minLength)}function Je(t){return ht(t,"String")&&t.type==="string"&&xt(t.$id)&&Mt(t.minLength)&&Mt(t.maxLength)&&nR(t.pattern)&&rR(t.format)}function Ts(t){return ht(t,"Symbol")&&t.type==="symbol"&&xt(t.$id)}function Cn(t){return ht(t,"TemplateLiteral")&&t.type==="string"&&ee(t.pattern)&&t.pattern[0]==="^"&&t.pattern[t.pattern.length-1]==="$"}function sR(t){return ht(t,"This")&&xt(t.$id)&&ee(t.$ref)}function ei(t){return Ee(t)&&Mn in t}function Rr(t){return ht(t,"Tuple")&&t.type==="array"&&xt(t.$id)&&Jr(t.minItems)&&Jr(t.maxItems)&&t.minItems===t.maxItems&&(jt(t.items)&&jt(t.additionalItems)&&t.minItems===0||tr(t.items)&&t.items.every(e=>$t(e)))}function Fi(t){return ht(t,"Undefined")&&t.type==="undefined"&&xt(t.$id)}function Nt(t){return ht(t,"Union")&&xt(t.$id)&&Ee(t)&&tr(t.anyOf)&&t.anyOf.every(e=>$t(e))}function ru(t){return ht(t,"Uint8Array")&&t.type==="Uint8Array"&&xt(t.$id)&&Mt(t.minByteLength)&&Mt(t.maxByteLength)}function kn(t){return ht(t,"Unknown")&&xt(t.$id)}function uR(t){return ht(t,"Unsafe")}function pa(t){return ht(t,"Void")&&t.type==="void"&&xt(t.$id)}function cR(t){return Ee(t)&&U in t&&ee(t[U])&&!eR.includes(t[U])}function $t(t){return Ee(t)&&(Nn(t)||Un(t)||ti(t)||eu(t)||tu(t)||ko(t)||ma(t)||To(t)||pn(t)||pe(t)||nu(t)||gn(t)||ki(t)||Ze(t)||er(t)||po(t)||Kd(t)||le(t)||gt(t)||Lo(t)||se(t)||T_(t)||go(t)||Je(t)||Ts(t)||Cn(t)||sR(t)||Rr(t)||Fi(t)||Nt(t)||ru(t)||kn(t)||uR(t)||pa(t)||cR(t))}const aR="(true|false)",Mc="(0|[1-9][0-9]*)",L_="(.*)",Ls=`^${Mc}$`,Dc=`^${L_}$`,Hd=new Map;function Gd(t){return Hd.has(t)}function fR(t,e){Hd.set(t,e)}function U_(t){return Hd.get(t)}const Yd=new Map;function ga(t){return Yd.has(t)}function lR(t,e){Yd.set(t,e)}function D_(t){return Yd.get(t)}function dR(t,e){return t.includes(e)}function hR(t){return[...new Set(t)]}function mR(t,e){return t.filter(n=>e.includes(n))}function pR(t,e){return t.reduce((n,i)=>mR(n,i),e)}function gR(t){return t.length===1?t[0]:t.length>1?pR(t.slice(1),t[0]):[]}function yR(t){return t.reduce((e,n)=>[...e,...n],[])}function Us(t={}){return{...t,[U]:"Any"}}function B_(t,e={}){return{...e,[U]:"Array",type:"array",items:H(t)}}function j_(t,e={}){return{...e,[U]:"AsyncIterator",type:"AsyncIterator",items:H(t)}}function _R(t,e){const{[e]:n,...i}=t;return i}function dn(t,e){return e.reduce((n,i)=>_R(n,i),t)}function ve(t={}){return{...t,[U]:"Never",not:{}}}function ge(t){return{[U]:"MappedResult",properties:t}}function q_(t,e,n){return{...n,[U]:"Constructor",type:"Constructor",parameters:Jn(t),returns:H(e)}}function ya(t,e,n){return{...n,[U]:"Function",type:"Function",parameters:Jn(t),returns:H(e)}}function Hl(t,e){return{...e,[U]:"Union",anyOf:Jn(t)}}function bR(t){return t.some(e=>Xn(e))}function Dg(t){return t.map(e=>Xn(e)?wR(e):e)}function wR(t){return dn(t,[Ci])}function SR(t,e){return bR(t)?Li(Hl(Dg(t),e)):Hl(Dg(t),e)}function Uo(t,e={}){return t.length===0?ve(e):t.length===1?H(t[0],e):SR(t,e)}function Ne(t,e={}){return t.length===0?ve(e):t.length===1?H(t[0],e):Hl(t,e)}class Bg extends Ae{}function zd(t,e,n){return t[e]===n&&t.charCodeAt(e-1)!==92}function _r(t,e){return zd(t,e,"(")}function Ds(t,e){return zd(t,e,")")}function W_(t,e){return zd(t,e,"|")}function OR(t){if(!(_r(t,0)&&Ds(t,t.length-1)))return!1;let e=0;for(let n=0;n0&&i.push(yo(f)),n=c+1}const s=t.slice(n);return s.length>0&&i.push(yo(s)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}function PR(t){function e(s,c){if(!_r(s,c))throw new Bg("TemplateLiteralParser: Index must point to open parens");let f=0;for(let d=c;d0&&i.push(yo(d)),s=f-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}function yo(t){return OR(t)?yo(IR(t)):xR(t)?$R(t):FR(t)?PR(t):{type:"const",const:t}}function Jd(t){return yo(t.slice(1,t.length-1))}class MR extends Ae{}function RR(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="0"&&t.expr[1].type==="const"&&t.expr[1].const==="[1-9][0-9]*"}function ER(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="true"&&t.expr[1].type==="const"&&t.expr[1].const==="false"}function AR(t){return t.type==="const"&&t.const===".*"}function Bs(t){return RR(t)||AR(t)?!1:ER(t)?!0:t.type==="and"?t.expr.every(e=>Bs(e)):t.type==="or"?t.expr.every(e=>Bs(e)):t.type==="const"?!0:(()=>{throw new MR("Unknown expression type")})()}function vR(t){const e=Jd(t.pattern);return Bs(e)}class NR extends Ae{}function*K_(t){if(t.length===1)return yield*t[0];for(const e of t[0])for(const n of K_(t.slice(1)))yield`${e}${n}`}function*CR(t){return yield*K_(t.expr.map(e=>[..._a(e)]))}function*kR(t){for(const e of t.expr)yield*_a(e)}function*TR(t){return yield t.const}function*_a(t){return t.type==="and"?yield*CR(t):t.type==="or"?yield*kR(t):t.type==="const"?yield*TR(t):(()=>{throw new NR("Unknown expression")})()}function H_(t){const e=Jd(t.pattern);return Bs(e)?[..._a(e)]:[]}function qt(t,e={}){return{...e,[U]:"Literal",const:t,type:typeof t}}function G_(t={}){return{...t,[U]:"Boolean",type:"boolean"}}function Xd(t={}){return{...t,[U]:"BigInt",type:"bigint"}}function Do(t={}){return{...t,[U]:"Number",type:"number"}}function Xr(t={}){return{...t,[U]:"String",type:"string"}}function*LR(t){const e=t.trim().replace(/"|'/g,"");return e==="boolean"?yield G_():e==="number"?yield Do():e==="bigint"?yield Xd():e==="string"?yield Xr():yield(()=>{const n=e.split("|").map(i=>qt(i.trim()));return n.length===0?ve():n.length===1?n[0]:Uo(n)})()}function*UR(t){if(t[1]!=="{"){const e=qt("$"),n=Gl(t.slice(1));return yield*[e,...n]}for(let e=2;eY_(n,e)).join("|")})`:le(t)?`${e}${Mc}`:pn(t)?`${e}${Mc}`:eu(t)?`${e}${Mc}`:Je(t)?`${e}${L_}`:gn(t)?`${e}${jR(t.const.toString())}`:ti(t)?`${e}${aR}`:(()=>{throw new BR(`Unexpected Kind '${t[U]}'`)})()}function jg(t){return`^${t.map(e=>Y_(e,"")).join("")}$`}function Bc(t){const n=H_(t).map(i=>qt(i));return Uo(n)}function z_(t,e={}){const n=ee(t)?jg(DR(t)):jg(t);return{...e,[U]:"TemplateLiteral",type:"string",pattern:n}}function qR(t){return H_(t).map(n=>n.toString())}function WR(t){return t.reduce((e,n)=>[...e,...ni(n)],[])}function KR(t){return[t.toString()]}function ni(t){return[...new Set(Cn(t)?qR(t):Nt(t)?WR(t.anyOf):gn(t)?KR(t.const):le(t)?["[number]"]:pn(t)?["[number]"]:[])]}function HR(t,e,n){return globalThis.Object.getOwnPropertyNames(e).reduce((i,s)=>({...i,[s]:iu(t,ni(e[s]),n)}),{})}function GR(t,e,n){return HR(t,e.properties,n)}function YR(t,e,n){const i=GR(t,e,n);return ge(i)}function J_(t,e){return t.map(n=>X_(n,e))}function zR(t){return t.filter(e=>!er(e))}function JR(t,e){return eb(zR(J_(t,e)))}function XR(t,e){return Uo(J_(t,e))}function QR(t,e){return e in t?t[e]:e==="[number]"?Uo(t):ve()}function ZR(t,e){return e==="[number]"?t:ve()}function VR(t,e){return e in t?t[e]:ve()}function X_(t,e){return pe(t)?JR(t.allOf,e):Nt(t)?XR(t.anyOf,e):Rr(t)?QR(t.items??[],e):Un(t)?ZR(t.items,e):gt(t)?VR(t.properties,e):ve()}function Q_(t,e){return e.map(n=>X_(t,n))}function qg(t,e){return Uo(Q_(t,e))}function iu(t,e,n={}){return Ze(e)?H(YR(t,e,n)):ki(e)?H(rE(t,e,n)):$t(e)?H(qg(t,ni(e)),n):H(qg(t,e),n)}function tE(t,e,n){return{[e]:iu(t,[e],n)}}function eE(t,e,n){return e.reduce((i,s)=>({...i,...tE(t,s,n)}),{})}function nE(t,e,n){return eE(t,e.keys,n)}function rE(t,e,n){const i=nE(t,e,n);return ge(i)}function Z_(t,e={}){return{...e,[U]:"Iterator",type:"Iterator",items:H(t)}}function iE(t,e={}){const n=globalThis.Object.getOwnPropertyNames(t),i=n.filter(d=>Xn(t[d])),s=n.filter(d=>!i.includes(d)),c=$t(e.additionalProperties)?{additionalProperties:H(e.additionalProperties)}:{},f=n.reduce((d,p)=>({...d,[p]:H(t[p])}),{});return s.length>0?{...e,...c,[U]:"Object",type:"object",properties:f,required:s}:{...e,...c,[U]:"Object",type:"object",properties:f}}const ue=iE;function V_(t,e={}){return{...e,[U]:"Promise",type:"Promise",item:H(t)}}function oE(t){return dn(H(t),[da])}function sE(t){return{...H(t),[da]:"Readonly"}}function uE(t,e){return e===!1?oE(t):sE(t)}function Ti(t,e){const n=e??!0;return Ze(t)?fE(t,n):uE(t,n)}function cE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Ti(t[i],e)}),{})}function aE(t,e){return cE(t.properties,e)}function fE(t,e){const n=aE(t,e);return ge(n)}function ou(t,e={}){const[n,i,s]=[!1,t.length,t.length];return t.length>0?{...e,[U]:"Tuple",type:"array",items:Jn(t),additionalItems:n,minItems:i,maxItems:s}:{...e,[U]:"Tuple",type:"array",minItems:i,maxItems:s}}function tb(t,e){return t in e?ln(t,e[t]):ge(e)}function lE(t){return{[t]:qt(t)}}function dE(t){return t.reduce((e,n)=>({...e,[n]:qt(n)}),{})}function hE(t,e){return dR(e,t)?lE(t):dE(e)}function mE(t,e){const n=hE(t,e);return tb(t,n)}function Ss(t,e){return e.map(n=>ln(t,n))}function pE(t,e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:ln(t,e[i])}),{})}function ln(t,e){return Xn(e)?Li(ln(t,dn(e,[Ci]))):iR(e)?Ti(ln(t,dn(e,[da]))):Ze(e)?tb(t,e.properties):ki(e)?mE(t,e.keys):ko(e)?q_(Ss(t,e.parameters),ln(t,e.returns)):To(e)?ya(Ss(t,e.parameters),ln(t,e.returns)):tu(e)?j_(ln(t,e.items)):nu(e)?Z_(ln(t,e.items)):pe(e)?Ui(Ss(t,e.allOf)):Nt(e)?Ne(Ss(t,e.anyOf)):Rr(e)?ou(Ss(t,e.items??[])):gt(e)?ue(pE(t,e.properties)):Un(e)?B_(ln(t,e.items)):Lo(e)?V_(ln(t,e.item)):e}function gE(t,e,n={}){return t.reduce((i,s)=>({...i,[s]:ln(s,e)}),{})}function yE(t,e,n={}){const i=$t(t)?ni(t):t,s=e({[U]:"MappedKey",keys:i}),c=gE(i,s);return H(ue(c),n)}function _E(t){return dn(H(t),[Ci])}function bE(t){return{...H(t),[Ci]:"Optional"}}function wE(t,e){return e===!1?_E(t):bE(t)}function Li(t,e){const n=e??!0;return Ze(t)?IE(t,n):wE(t,n)}function SE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Li(t[i],e)}),{})}function OE(t,e){return SE(t.properties,e)}function IE(t,e){const n=OE(t,e);return ge(n)}function Yl(t,e){const n=t.every(s=>gt(s)),i=$t(e.unevaluatedProperties)?{unevaluatedProperties:H(e.unevaluatedProperties)}:{};return e.unevaluatedProperties===!1||$t(e.unevaluatedProperties)||n?{...e,...i,[U]:"Intersect",type:"object",allOf:Jn(t)}:{...e,...i,[U]:"Intersect",allOf:Jn(t)}}function xE(t){return t.every(e=>Xn(e))}function FE(t){return dn(t,[Ci])}function Wg(t){return t.map(e=>Xn(e)?FE(e):e)}function $E(t,e){return xE(t)?Li(Yl(Wg(t),e)):Yl(Wg(t),e)}function eb(t,e={}){if(t.length===0)return ve(e);if(t.length===1)return H(t[0],e);if(t.some(n=>ei(n)))throw new Error("Cannot intersect transform types");return $E(t,e)}function Ui(t,e={}){if(t.length===0)return ve(e);if(t.length===1)return H(t[0],e);if(t.some(n=>ei(n)))throw new Error("Cannot intersect transform types");return Yl(t,e)}function nb(t){return t.map(e=>Qd(e))}function PE(t){return Ui(nb(t))}function ME(t){return Ne(nb(t))}function RE(t){return Qd(t)}function Qd(t){return pe(t)?PE(t.allOf):Nt(t)?ME(t.anyOf):Lo(t)?RE(t.item):t}function EE(t,e={}){return H(Qd(t),e)}function rb(t){return t.reduce((e,n)=>[...e,ri(n)],[])}function AE(t){const e=rb(t);return yR(e)}function vE(t){const e=rb(t);return gR(e)}function NE(t){return t.map((e,n)=>n.toString())}function CE(t){return["[number]"]}function kE(t){return globalThis.Object.getOwnPropertyNames(t)}function TE(t){return zl?globalThis.Object.getOwnPropertyNames(t).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function ri(t){return pe(t)?AE(t.allOf):Nt(t)?vE(t.anyOf):Rr(t)?NE(t.items??[]):Un(t)?CE(t.items):gt(t)?kE(t.properties):se(t)?TE(t.patternProperties):[]}let zl=!1;function jc(t){zl=!0;const e=ri(t);return zl=!1,`^(${e.map(i=>`(${i})`).join("|")})$`}function LE(t){return t.map(e=>e==="[number]"?Do():qt(e))}function ib(t,e={}){if(Ze(t))return BE(t,e);{const n=ri(t),i=LE(n),s=Uo(i);return H(s,e)}}function UE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:ib(t[i],e)}),{})}function DE(t,e){return UE(t.properties,e)}function BE(t,e){const n=DE(t,e);return ge(n)}function jE(t){return t.reduce((e,n)=>hR([...e,...ri(n)]),[])}function qE(t){return t.filter(e=>!er(e))}function WE(t,e){return t.reduce((n,i)=>qE([...n,...Q_(i,[e])]),[])}function KE(t,e){return e.reduce((n,i)=>({...n,[i]:eb(WE(t,i))}),{})}function HE(t,e={}){const n=jE(t),i=KE(t,n);return ue(i,e)}function ob(t={}){return{...t,[U]:"Date",type:"Date"}}function sb(t={}){return{...t,[U]:"Null",type:"null"}}function ub(t){return{...t,[U]:"Symbol",type:"symbol"}}function cb(t={}){return{...t,[U]:"Undefined",type:"undefined"}}function ab(t={}){return{...t,[U]:"Uint8Array",type:"Uint8Array"}}function su(t={}){return{...t,[U]:"Unknown"}}function GE(t){return t.map(e=>Zd(e,!1))}function YE(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:Ti(Zd(t[n],!1))}),{})}function Ic(t,e){return e===!0?t:Ti(t)}function Zd(t,e){return WM(t)||HM(t)?Ic(Us(),e):tr(t)?Ti(ou(GE(t))):la(t)?ab():M_(t)?ob():Ee(t)?Ic(ue(YE(t)),e):KM(t)?Ic(ya([],su()),e):jt(t)?cb():GM(t)?sb():zM(t)?ub():P_(t)?Xd():Jr(t)||fa(t)||ee(t)?qt(t):ue({})}function zE(t,e={}){return H(Zd(t,!0),e)}function JE(t,e={}){return ou(Jn(t.parameters),{...e})}function uu(t,e){return t.map(n=>nr(n,e))}function XE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:nr(t[i],e)}),{})}function QE(t,e){return t.parameters=uu(t.parameters,e),t.returns=nr(t.returns,e),t}function ZE(t,e){return t.parameters=uu(t.parameters,e),t.returns=nr(t.returns,e),t}function VE(t,e){return t.allOf=uu(t.allOf,e),t}function tA(t,e){return t.anyOf=uu(t.anyOf,e),t}function eA(t,e){return jt(t.items)||(t.items=uu(t.items,e)),t}function nA(t,e){return t.items=nr(t.items,e),t}function rA(t,e){return t.properties=XE(t.properties,e),t}function iA(t,e){return t.item=nr(t.item,e),t}function oA(t,e){return t.items=nr(t.items,e),t}function sA(t,e){return t.items=nr(t.items,e),t}function uA(t,e){const n=e.find(s=>s.$id===t.$ref);if(n===void 0)throw Error(`Unable to dereference schema with $id ${t.$ref}`);const i=dn(n,["$id"]);return nr(i,e)}function cA(t,e){return ko(t)?QE(t,e):To(t)?ZE(t,e):pe(t)?VE(t,e):Nt(t)?tA(t,e):Rr(t)?eA(t,e):Un(t)?nA(t,e):gt(t)?rA(t,e):Lo(t)?iA(t,e):tu(t)?oA(t,e):nu(t)?sA(t,e):T_(t)?uA(t,e):t}function nr(t,e){return cA(H(t),Jn(e))}function aA(t,e={}){if(jt(t))throw new Error("Enum undefined or empty");const n=globalThis.Object.getOwnPropertyNames(t).filter(c=>isNaN(c)).map(c=>t[c]),s=[...new Set(n)].map(c=>qt(c));return Ne(s,{...e,[ha]:"Enum"})}class fA extends Ae{}var F;(function(t){t[t.Union=0]="Union",t[t.True=1]="True",t[t.False=2]="False"})(F||(F={}));function hn(t){return t===F.False?t:F.True}function Bo(t){throw new fA(t)}function zt(t){return er(t)||pe(t)||Nt(t)||kn(t)||Nn(t)}function Jt(t,e){return er(e)?db():pe(e)?ba(t,e):Nt(e)?th(t,e):kn(e)?gb():Nn(e)?Vd():Bo("StructuralRight")}function Vd(t,e){return F.True}function lA(t,e){return pe(e)?ba(t,e):Nt(e)&&e.anyOf.some(n=>Nn(n)||kn(n))?F.True:Nt(e)?F.Union:kn(e)||Nn(e)?F.True:F.Union}function dA(t,e){return kn(t)?F.False:Nn(t)?F.Union:er(t)?F.True:F.False}function hA(t,e){return gt(e)&&wa(e)?F.True:zt(e)?Jt(t,e):Un(e)?hn(It(t.items,e.items)):F.False}function mA(t,e){return zt(e)?Jt(t,e):tu(e)?hn(It(t.items,e.items)):F.False}function pA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):eu(e)?F.True:F.False}function fb(t,e){return k_(t)||ti(t)?F.True:F.False}function gA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ti(e)?F.True:F.False}function yA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):ko(e)?t.parameters.length>e.parameters.length?F.False:t.parameters.every((n,i)=>hn(It(e.parameters[i],n))===F.True)?hn(It(t.returns,e.returns)):F.False:F.False}function _A(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ma(e)?F.True:F.False}function bA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):To(e)?t.parameters.length>e.parameters.length?F.False:t.parameters.every((n,i)=>hn(It(e.parameters[i],n))===F.True)?hn(It(t.returns,e.returns)):F.False:F.False}function lb(t,e){return gn(t)&&Jr(t.const)||le(t)||pn(t)?F.True:F.False}function wA(t,e){return pn(e)||le(e)?F.True:zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):F.False}function ba(t,e){return e.allOf.every(n=>It(t,n)===F.True)?F.True:F.False}function SA(t,e){return t.allOf.some(n=>It(n,e)===F.True)?F.True:F.False}function OA(t,e){return zt(e)?Jt(t,e):nu(e)?hn(It(t.items,e.items)):F.False}function IA(t,e){return gn(e)&&e.const===t.const?F.True:zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Je(e)?pb(t):le(e)?hb(t):pn(e)?lb(t):ti(e)?fb(t):F.False}function db(t,e){return F.False}function xA(t,e){return F.True}function Kg(t){let[e,n]=[t,0];for(;po(e);)e=e.not,n+=1;return n%2===0?e:su()}function FA(t,e){return po(t)?It(Kg(t),e):po(e)?It(t,Kg(e)):Bo("Invalid fallthrough for Not")}function $A(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Kd(e)?F.True:F.False}function hb(t,e){return C_(t)||le(t)||pn(t)?F.True:F.False}function PA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):pn(e)||le(e)?F.True:F.False}function Ue(t,e){return Object.getOwnPropertyNames(t.properties).length===e}function Hg(t){return wa(t)}function Gg(t){return Ue(t,0)||Ue(t,1)&&"description"in t.properties&&Nt(t.properties.description)&&t.properties.description.anyOf.length===2&&(Je(t.properties.description.anyOf[0])&&Fi(t.properties.description.anyOf[1])||Je(t.properties.description.anyOf[1])&&Fi(t.properties.description.anyOf[0]))}function Ml(t){return Ue(t,0)}function Yg(t){return Ue(t,0)}function MA(t){return Ue(t,0)}function RA(t){return Ue(t,0)}function EA(t){return wa(t)}function AA(t){const e=Do();return Ue(t,0)||Ue(t,1)&&"length"in t.properties&&hn(It(t.properties.length,e))===F.True}function vA(t){return Ue(t,0)}function wa(t){const e=Do();return Ue(t,0)||Ue(t,1)&&"length"in t.properties&&hn(It(t.properties.length,e))===F.True}function NA(t){const e=ya([Us()],Us());return Ue(t,0)||Ue(t,1)&&"then"in t.properties&&hn(It(t.properties.then,e))===F.True}function mb(t,e){return It(t,e)===F.False||Xn(t)&&!Xn(e)?F.False:F.True}function Fe(t,e){return kn(t)?F.False:Nn(t)?F.Union:er(t)||N_(t)&&Hg(e)||C_(t)&&Ml(e)||k_(t)&&Yg(e)||Ts(t)&&Gg(e)||eu(t)&&MA(e)||Je(t)&&Hg(e)||Ts(t)&&Gg(e)||le(t)&&Ml(e)||pn(t)&&Ml(e)||ti(t)&&Yg(e)||ru(t)&&EA(e)||ma(t)&&RA(e)||ko(t)&&vA(e)||To(t)&&AA(e)?F.True:se(t)&&Je(Jl(t))?e[ha]==="Record"?F.True:F.False:se(t)&&le(Jl(t))?Ue(e,0)?F.True:F.False:F.False}function CA(t,e){return zt(e)?Jt(t,e):se(e)?yn(t,e):gt(e)?(()=>{for(const n of Object.getOwnPropertyNames(e.properties)){if(!(n in t.properties)&&!Xn(e.properties[n]))return F.False;if(Xn(e.properties[n]))return F.True;if(mb(t.properties[n],e.properties[n])===F.False)return F.False}return F.True})():F.False}function kA(t,e){return zt(e)?Jt(t,e):gt(e)&&NA(e)?F.True:Lo(e)?hn(It(t.item,e.item)):F.False}function Jl(t){return Ls in t.patternProperties?Do():Dc in t.patternProperties?Xr():Bo("Unknown record key pattern")}function Xl(t){return Ls in t.patternProperties?t.patternProperties[Ls]:Dc in t.patternProperties?t.patternProperties[Dc]:Bo("Unable to get record value schema")}function yn(t,e){const[n,i]=[Jl(e),Xl(e)];return N_(t)&&le(n)&&hn(It(t,i))===F.True?F.True:ru(t)&&le(n)||Je(t)&&le(n)||Un(t)&&le(n)?It(t,i):gt(t)?(()=>{for(const s of Object.getOwnPropertyNames(t.properties))if(mb(i,t.properties[s])===F.False)return F.False;return F.True})():F.False}function TA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?It(Xl(t),Xl(e)):F.False}function LA(t,e){const n=go(t)?Xr():t,i=go(e)?Xr():e;return It(n,i)}function pb(t,e){return gn(t)&&ee(t.const)||Je(t)?F.True:F.False}function UA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Je(e)?F.True:F.False}function DA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Ts(e)?F.True:F.False}function BA(t,e){return Cn(t)?It(Bc(t),e):Cn(e)?It(t,Bc(e)):Bo("Invalid fallthrough for TemplateLiteral")}function jA(t,e){return Un(e)&&t.items!==void 0&&t.items.every(n=>It(n,e.items)===F.True)}function qA(t,e){return er(t)?F.True:kn(t)?F.False:Nn(t)?F.Union:F.False}function WA(t,e){return zt(e)?Jt(t,e):gt(e)&&wa(e)||Un(e)&&jA(t,e)?F.True:Rr(e)?jt(t.items)&&!jt(e.items)||!jt(t.items)&&jt(e.items)?F.False:jt(t.items)&&!jt(e.items)||t.items.every((n,i)=>It(n,e.items[i])===F.True)?F.True:F.False:F.False}function KA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ru(e)?F.True:F.False}function HA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):pa(e)?zA(t):Fi(e)?F.True:F.False}function th(t,e){return e.anyOf.some(n=>It(t,n)===F.True)?F.True:F.False}function GA(t,e){return t.anyOf.every(n=>It(n,e)===F.True)?F.True:F.False}function gb(t,e){return F.True}function YA(t,e){return er(e)?db():pe(e)?ba(t,e):Nt(e)?th(t,e):Nn(e)?Vd():Je(e)?pb(t):le(e)?hb(t):pn(e)?lb(t):ti(e)?fb(t):Un(e)?dA(t):Rr(e)?qA(t):gt(e)?Fe(t,e):kn(e)?F.True:F.False}function zA(t,e){return Fi(t)||Fi(t)?F.True:F.False}function JA(t,e){return pe(e)?ba(t,e):Nt(e)?th(t,e):kn(e)?gb():Nn(e)?Vd():gt(e)?Fe(t,e):pa(e)?F.True:F.False}function It(t,e){return Cn(t)||Cn(e)?BA(t,e):go(t)||go(e)?LA(t,e):po(t)||po(e)?FA(t,e):Nn(t)?lA(t,e):Un(t)?hA(t,e):eu(t)?pA(t,e):ti(t)?gA(t,e):tu(t)?mA(t,e):ko(t)?yA(t,e):ma(t)?_A(t,e):To(t)?bA(t,e):pn(t)?wA(t,e):pe(t)?SA(t,e):nu(t)?OA(t,e):gn(t)?IA(t,e):er(t)?xA():Kd(t)?$A(t,e):le(t)?PA(t,e):gt(t)?CA(t,e):se(t)?TA(t,e):Je(t)?UA(t,e):Ts(t)?DA(t,e):Rr(t)?WA(t,e):Lo(t)?kA(t,e):ru(t)?KA(t,e):Fi(t)?HA(t,e):Nt(t)?GA(t,e):kn(t)?YA(t,e):pa(t)?JA(t,e):Bo(`Unknown left type operand '${t[U]}'`)}function cu(t,e){return It(t,e)}function XA(t,e,n,i,s){return globalThis.Object.getOwnPropertyNames(t).reduce((c,f)=>({...c,[f]:eh(t[f],e,n,i,s)}),{})}function QA(t,e,n,i,s){return XA(t.properties,e,n,i,s)}function ZA(t,e,n,i,s){const c=QA(t,e,n,i,s);return ge(c)}function VA(t,e,n,i){const s=cu(t,e);return s===F.Union?Ne([n,i]):s===F.True?n:i}function eh(t,e,n,i,s={}){return Ze(t)?ZA(t,e,n,i,s):ki(t)?H(rv(t,e,n,i,s)):H(VA(t,e,n,i),s)}function tv(t,e,n,i,s){return{[t]:eh(qt(t),e,n,i,s)}}function ev(t,e,n,i,s){return t.reduce((c,f)=>({...c,...tv(f,e,n,i,s)}),{})}function nv(t,e,n,i,s){return ev(t.keys,e,n,i,s)}function rv(t,e,n,i,s){const c=nv(t,e,n,i,s);return ge(c)}function iv(t){return t.allOf.every(e=>au(e))}function ov(t){return t.anyOf.some(e=>au(e))}function sv(t){return!au(t.not)}function au(t){return t[U]==="Intersect"?iv(t):t[U]==="Union"?ov(t):t[U]==="Not"?sv(t):t[U]==="Undefined"}function uv(t,e){return nh(Bc(t),e)}function cv(t,e){const n=t.filter(i=>cu(i,e)===F.False);return n.length===1?n[0]:Ne(n)}function nh(t,e,n={}){return Cn(t)?H(uv(t,e),n):Ze(t)?H(lv(t,e),n):H(Nt(t)?cv(t.anyOf,e):cu(t,e)!==F.False?ve():t,n)}function av(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:nh(t[i],e)}),{})}function fv(t,e){return av(t.properties,e)}function lv(t,e){const n=fv(t,e);return ge(n)}function dv(t,e){return rh(Bc(t),e)}function hv(t,e){const n=t.filter(i=>cu(i,e)!==F.False);return n.length===1?n[0]:Ne(n)}function rh(t,e,n={}){return Cn(t)?H(dv(t,e),n):Ze(t)?H(gv(t,e),n):H(Nt(t)?hv(t.anyOf,e):cu(t,e)!==F.False?t:ve(),n)}function mv(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:rh(t[i],e)}),{})}function pv(t,e){return mv(t.properties,e)}function gv(t,e){const n=pv(t,e);return ge(n)}function yv(t,e={}){return H(t.returns,e)}function _v(t={}){return{...t,[U]:"Integer",type:"integer"}}function bv(t,e,n){return{[t]:jo(qt(t),e,n)}}function wv(t,e,n){return t.reduce((i,s)=>({...i,...bv(s,e,n)}),{})}function Sv(t,e,n){return wv(t.keys,e,n)}function Ov(t,e,n){const i=Sv(t,e,n);return ge(i)}function Iv(t){const[e,n]=[t.slice(0,1),t.slice(1)];return[e.toLowerCase(),n].join("")}function xv(t){const[e,n]=[t.slice(0,1),t.slice(1)];return[e.toUpperCase(),n].join("")}function Fv(t){return t.toUpperCase()}function $v(t){return t.toLowerCase()}function Pv(t,e,n){const i=Jd(t.pattern);if(!Bs(i))return{...t,pattern:yb(t.pattern,e)};const f=[..._a(i)].map(y=>qt(y)),d=_b(f,e),p=Ne(d);return z_([p],n)}function yb(t,e){return typeof t=="string"?e==="Uncapitalize"?Iv(t):e==="Capitalize"?xv(t):e==="Uppercase"?Fv(t):e==="Lowercase"?$v(t):t:t.toString()}function _b(t,e){return t.map(n=>jo(n,e))}function jo(t,e,n={}){return ki(t)?Ov(t,e,n):Cn(t)?Pv(t,e,t):Nt(t)?Ne(_b(t.anyOf,e),n):gn(t)?qt(yb(t.const,e),n):t}function Mv(t,e={}){return jo(t,"Capitalize",e)}function Rv(t,e={}){return jo(t,"Lowercase",e)}function Ev(t,e={}){return jo(t,"Uncapitalize",e)}function Av(t,e={}){return jo(t,"Uppercase",e)}function vv(t,e){return{...e,[U]:"Not",not:H(t)}}function Nv(t,e,n){return globalThis.Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:oh(t[s],e,n)}),{})}function Cv(t,e,n){return Nv(t.properties,e,n)}function kv(t,e,n){const i=Cv(t,e,n);return ge(i)}function Tv(t,e){return t.map(n=>ih(n,e))}function Lv(t,e){return t.map(n=>ih(n,e))}function Uv(t,e){const{[e]:n,...i}=t;return i}function Dv(t,e){return e.reduce((n,i)=>Uv(n,i),t)}function ih(t,e){return pe(t)?Ui(Tv(t.allOf,e)):Nt(t)?Ne(Lv(t.anyOf,e)):gt(t)?ue(Dv(t.properties,e)):ue({})}function oh(t,e,n={}){if(ki(e))return Wv(t,e,n);if(Ze(t))return kv(t,e,n);const i=$t(e)?ni(e):e,s=dn(t,[Mn,"$id","required"]),c=H(ih(t,i),n);return{...s,...c}}function Bv(t,e,n){return{[e]:oh(t,[e],n)}}function jv(t,e,n){return e.reduce((i,s)=>({...i,...Bv(t,s,n)}),{})}function qv(t,e,n){return jv(t,e.keys,n)}function Wv(t,e,n){const i=qv(t,e,n);return ge(i)}function Kv(t,e={}){return ou(Jn(t.parameters),{...e})}function zg(t){return t.map(e=>bb(e))}function Hv(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:Li(t[n])}),{})}function bb(t){return pe(t)?Ui(zg(t.allOf)):Nt(t)?Ne(zg(t.anyOf)):gt(t)?ue(Hv(t.properties)):ue({})}function wb(t,e={}){if(Ze(t))return zv(t,e);const n=dn(t,[Mn,"$id","required"]),i=H(bb(t),e);return{...n,...i}}function Gv(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:wb(t[i],e)}),{})}function Yv(t,e){return Gv(t.properties,e)}function zv(t,e){const n=Yv(t,e);return ge(n)}function Jv(t,e,n){return globalThis.Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:uh(t[s],e,n)}),{})}function Xv(t,e,n){return Jv(t.properties,e,n)}function Qv(t,e,n){const i=Xv(t,e,n);return ge(i)}function Zv(t,e){return t.map(n=>sh(n,e))}function Vv(t,e){return t.map(n=>sh(n,e))}function tN(t,e){return e.reduce((n,i)=>i in t?{...n,[i]:t[i]}:n,{})}function sh(t,e){return pe(t)?Ui(Zv(t.allOf,e)):Nt(t)?Ne(Vv(t.anyOf,e)):gt(t)?ue(tN(t.properties,e)):ue({})}function uh(t,e,n={}){if(ki(e))return iN(t,e,n);if(Ze(t))return Qv(t,e,n);const i=$t(e)?ni(e):e,s=dn(t,[Mn,"$id","required"]),c=H(sh(t,i),n);return{...s,...c}}function eN(t,e,n){return{[e]:uh(t,[e],n)}}function nN(t,e,n){return e.reduce((i,s)=>({...i,...eN(t,s,n)}),{})}function rN(t,e,n){return nN(t,e.keys,n)}function iN(t,e,n){const i=rN(t,e,n);return ge(i)}function oN(t){return Ti(Li(t))}function fu(t,e,n){return{...n,[U]:"Record",type:"object",patternProperties:{[t]:H(e)}}}function ch(t,e,n){const i=t.reduce((s,c)=>({...s,[c]:H(e)}),{});return ue(i,{...n,[ha]:"Record"})}function sN(t,e,n){return vR(t)?ch(ni(t),e,n):fu(t.pattern,e,n)}function uN(t,e,n){return ch(ni(Ne(t)),e,n)}function cN(t,e,n){return ch([t.toString()],e,n)}function aN(t,e,n){return fu(t.source,e,n)}function fN(t,e,n){const i=jt(t.pattern)?Dc:t.pattern;return fu(i,e,n)}function lN(t,e,n){return fu(Ls,e,n)}function dN(t,e,n){return fu(Ls,e,n)}function hN(t,e,n={}){return Nt(t)?uN(t.anyOf,e,n):Cn(t)?sN(t,e,n):gn(t)?cN(t.const,e,n):pn(t)?lN(t,e,n):le(t)?dN(t,e,n):go(t)?aN(t,e,n):Je(t)?fN(t,e,n):ve(n)}let mN=0;function pN(t,e={}){jt(e.$id)&&(e.$id=`T${mN++}`);const n=t({[U]:"This",$ref:`${e.$id}`});return n.$id=e.$id,H({...e,[ha]:"Recursive",...n})}function gN(t,e={}){if(ee(t))return{...e,[U]:"Ref",$ref:t};if(jt(t.$id))throw new Error("Reference target type must specify an $id");return{...e,[U]:"Ref",$ref:t.$id}}function yN(t,e={}){const n=ee(t)?new globalThis.RegExp(t):t;return{...e,[U]:"RegExp",type:"RegExp",source:n.source,flags:n.flags}}function Jg(t){return t.map(e=>Sb(e))}function _N(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:dn(t[n],[Ci])}),{})}function Sb(t){return pe(t)?Ui(Jg(t.allOf)):Nt(t)?Ne(Jg(t.anyOf)):gt(t)?ue(_N(t.properties)):ue({})}function Ob(t,e={}){if(Ze(t))return SN(t,e);{const n=dn(t,[Mn,"$id","required"]),i=H(Sb(t),e);return{...n,...i}}}function bN(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Ob(t[i],e)}),{})}function wN(t,e){return bN(t.properties,e)}function SN(t,e){const n=wN(t,e);return ge(n)}function ON(t){return pe(t)?[...t.allOf]:Nt(t)?[...t.anyOf]:Rr(t)?[...t.items??[]]:[]}function IN(t){return Jn(ON(t))}function xN(t,e={}){return H(t.returns,e)}function FN(t){return JSON.parse(JSON.stringify(t))}class $N{constructor(e){_(this,"schema");this.schema=e}Decode(e){return new PN(this.schema,e)}}class PN{constructor(e,n){_(this,"schema");_(this,"decode");this.schema=e,this.decode=n}EncodeTransform(e,n){const c={Encode:f=>n[Mn].Encode(e(f)),Decode:f=>this.decode(n[Mn].Decode(f))};return{...n,[Mn]:c}}EncodeSchema(e,n){const i={Decode:this.decode,Encode:e};return{...n,[Mn]:i}}Encode(e){const n=H(this.schema);return ei(n)?this.EncodeTransform(e,n):this.EncodeSchema(e,n)}}function MN(t){return new $N(t)}function Ib(t={}){return{...t,[U]:t[U]??"Unsafe"}}function RN(t={}){return{...t,[U]:"Void",type:"void"}}const EN=Object.freeze(Object.defineProperty({__proto__:null,Any:Us,Array:B_,AsyncIterator:j_,Awaited:EE,BigInt:Xd,Boolean:G_,Capitalize:Mv,Composite:HE,Const:zE,Constructor:q_,ConstructorParameters:JE,Date:ob,Deref:nr,Enum:aA,Exclude:nh,Extends:eh,Extract:rh,Function:ya,Index:iu,InstanceType:yv,Integer:_v,Intersect:Ui,Iterator:Z_,KeyOf:ib,Literal:qt,Lowercase:Rv,Mapped:yE,Never:ve,Not:vv,Null:sb,Number:Do,Object:ue,Omit:oh,Optional:Li,Parameters:Kv,Partial:wb,Pick:uh,Promise:V_,Readonly:Ti,ReadonlyOptional:oN,Record:hN,Recursive:pN,Ref:gN,RegExp:yN,Required:Ob,Rest:IN,ReturnType:xN,Strict:FN,String:Xr,Symbol:ub,TemplateLiteral:z_,Transform:MN,Tuple:ou,Uint8Array:ab,Uncapitalize:Ev,Undefined:cb,Union:Ne,Unknown:su,Unsafe:Ib,Uppercase:Av,Void:RN},Symbol.toStringTag,{value:"Module"})),ot=EN;ot.Object({organizations:ot.Union([ot.Literal("dyne"),ot.Literal("ff3300"),ot.Literal("freelance"),ot.Literal("la-scuola-open-source")]),projects:ot.Union([ot.Literal("join"),ot.Literal("reaction-diffusion"),ot.Literal("scabec"),ot.Literal("signroom")]),work_experiences:ot.Union([ot.Literal("2019-07_oggi_freelance_docente"),ot.Literal("2021-05_oggi_sos"),ot.Literal("2021-09_2022-03_sos"),ot.Literal("2022-10_oggi_dyne")])});const AN={organizations:["dyne","ff3300","freelance","la-scuola-open-source"],projects:["join","reaction-diffusion","scabec","signroom"],work_experiences:["2019-07_oggi_freelance_docente","2021-05_oggi_sos","2021-09_2022-03_sos","2022-10_oggi_dyne"]};const vN=t=>typeof t=="function",x=function(t,e){if(typeof t=="function")return function(){return t(arguments)?e.apply(this,arguments):n=>e(n,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(n,i){return arguments.length>=2?e(n,i):function(s){return e(s,n)}};case 3:return function(n,i,s){return arguments.length>=3?e(n,i,s):function(c){return e(c,n,i)}};case 4:return function(n,i,s,c){return arguments.length>=4?e(n,i,s,c):function(f){return e(f,n,i,s)}};case 5:return function(n,i,s,c,f){return arguments.length>=5?e(n,i,s,c,f):function(d){return e(d,n,i,s,c)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const n=arguments;return function(i){return e(i,...n)}}}},ie=t=>t,Sa=t=>()=>t,Xg=Sa(!0),Ql=Sa(!1),NN=Sa(void 0);function P(t,e,n,i,s,c,f,d,p){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return s(i(n(e(t))));case 6:return c(s(i(n(e(t)))));case 7:return f(c(s(i(n(e(t))))));case 8:return d(f(c(s(i(n(e(t)))))));case 9:return p(d(f(c(s(i(n(e(t))))))));default:{let y=arguments[0];for(let M=1;MCN,Zl=Symbol.for(`effect/GlobalValue/globalStoreId/${qc()}`);Zl in globalThis||(globalThis[Zl]=new Map);const Rl=globalThis[Zl],Rt=(t,e)=>(Rl.has(t)||Rl.set(t,e()),Rl.get(t)),kN=t=>typeof t=="string",Rc=t=>typeof t=="number",TN=t=>typeof t=="bigint",js=vN,LN=t=>typeof t=="object"&&t!==null,xb=t=>LN(t)||js(t),at=x(2,(t,e)=>xb(t)&&e in t),Fb=x(2,(t,e)=>at(t,"_tag")&&t._tag===e),oo=t=>t==null,$b=t=>at(t,Symbol.iterator),UN=t=>at(t,"then")&&"catch"in t&&js(t.then)&&js(t.catch),DN=335903614,BN=4150755663,jN=1481765933,qN=1284865837,WN=9007199254740992,KN=134217728;class Pb{constructor(e,n,i,s){_(this,"_state");return oo(n)&&oo(e)?(n=Math.random()*4294967295>>>0,e=0):oo(n)&&(n=e,e=0),oo(s)&&oo(i)?(s=this._state?this._state[3]:BN,i=this._state?this._state[2]:DN):oo(s)&&(s=i,i=0),this._state=new Int32Array([0,0,i>>>0,((s||0)|1)>>>0]),this._next(),Qg(this._state,this._state[0],this._state[1],e>>>0,n>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(e){this._state[0]=e[0],this._state[1]=e[1],this._state[2]=e[2],this._state[3]=e[3]|1}integer(e){if(!e)return this._next();if(e=e>>>0,!(e&e-1))return this._next()&e-1;let n=0;const i=(-e>>>0)%e>>>0;for(n=this._next();n>>0,n=this._state[1]>>>0;HN(this._state,e,n,jN,qN),Qg(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let i=e>>>18,s=(n>>>18|e<<14)>>>0;i=(i^e)>>>0,s=(s^n)>>>0;const c=(s>>>27|i<<5)>>>0,f=e>>>27,d=(-f>>>0&31)>>>0;return(c>>>f|c<>>0}}function HN(t,e,n,i,s){let c=(n>>>16)*(s&65535)>>>0,f=(n&65535)*(s>>>16)>>>0,d=(n&65535)*(s&65535)>>>0,p=(n>>>16)*(s>>>16)+((f>>>16)+(c>>>16))>>>0;f=f<<16>>>0,d=d+f>>>0,d>>>0>>0&&(p=p+1>>>0),c=c<<16>>>0,d=d+c>>>0,d>>>0>>0&&(p=p+1>>>0),p=p+Math.imul(n,i)>>>0,p=p+Math.imul(e,s)>>>0,t[0]=p,t[1]=d}function Qg(t,e,n,i,s){let c=e+i>>>0;const f=n+s>>>0;f>>>0>>0&&(c=c+1|0),t[0]=c,t[1]=f}const El=Rt(Symbol.for("effect/Hash/randomHashCache"),()=>new WeakMap),GN=Rt(Symbol.for("effect/Hash/pcgr"),()=>new Pb),rt=Symbol.for("effect/Hash"),K=t=>{switch(typeof t){case"number":return ah(t);case"bigint":return fe(t.toString(10));case"boolean":return fe(String(t));case"symbol":return fe(String(t));case"string":return fe(t);case"undefined":return fe("undefined");case"function":case"object":return t===null?fe("null"):YN(t)?t[rt]():lu(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},lu=t=>(El.has(t)||El.set(t,ah(GN.integer(Number.MAX_SAFE_INTEGER))),El.get(t)),_t=t=>e=>e*53^t,Oa=t=>t&3221225471|t>>>1&1073741824,YN=t=>at(t,rt),ah=t=>{if(t!==t||t===1/0)return 0;let e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)e^=t/=4294967295;return Oa(t)},fe=t=>{let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return Oa(e)},zN=(t,e)=>{let n=12289;for(let i=0;izN(t,Object.keys(t)),du=t=>{let e=6151;for(let n=0;nZg(t,arguments[0]):Zg(arguments[0],arguments[1])}function Zg(t,e){if(t===e)return!0;const n=typeof t;return n!==typeof e?!1:(n==="object"||n==="function")&&t!==null&&e!==null&&Wc(t)&&Wc(e)?K(t)===K(e)&&t[nt](e):!1}const Wc=t=>at(t,nt),fh=()=>ct,lh=t=>(e,n)=>e===n||t(e,n),JN=x(2,(t,e)=>lh((n,i)=>t(e(n),e(i)))),XN=t=>lh((e,n)=>{if(e.length!==n.length)return!1;for(let i=0;iat(t,"toJSON")&&js(t.toJSON)&&t.toJSON.length===0?t.toJSON():Array.isArray(t)?t.map(te):t,ye=t=>JSON.stringify(t,null,2),X=(t,e)=>{switch(e.length){case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let n=t;for(let i=0,s=e.length;it,_E:t=>t,_A:t=>t,_V:qc()},eC={_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},nC={_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},Ia={[vb]:_o,[ZN]:_o,[VN]:eC,[tC]:nC,[nt](t){return this===t},[rt](){return Wt(this,lu(this))},pipe(){return X(this,arguments)}},hh={[rt](){return Wt(this,Mb(this))},[nt](t){const e=Object.keys(this),n=Object.keys(t);if(e.length!==n.length)return!1;for(const i of e)if(!(i in t&&ct(this[i],t[i])))return!1;return!0}},rC={...Ia,_op:Rb},iC={...rC,...hh},Nb=Symbol.for("effect/Option"),Cb={...Ia,[Nb]:{_A:t=>t},[Kt](){return this.toJSON()},toString(){return ye(this.toJSON())}},oC=Object.assign(Object.create(Cb),{_tag:"Some",_op:"Some",[nt](t){return kb(t)&&Lb(t)&&ct(t.value,this.value)},[rt](){return Wt(this,_t(K(this._tag))(K(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:te(this.value)}}}),sC=K("None"),uC=Object.assign(Object.create(Cb),{_tag:"None",_op:"None",[nt](t){return kb(t)&&Tb(t)},[rt](){return sC},toJSON(){return{_id:"Option",_tag:this._tag}}}),kb=t=>at(t,Nb),Tb=t=>t._tag==="None",Lb=t=>t._tag==="Some",Ub=Object.create(uC),Db=t=>{const e=Object.create(oC);return e.value=t,e},Bb=Symbol.for("effect/Either"),jb={...Ia,[Bb]:{_R:t=>t},[Kt](){return this.toJSON()},toString(){return ye(this.toJSON())}},cC=Object.assign(Object.create(jb),{_tag:"Right",_op:"Right",[nt](t){return qb(t)&&Kb(t)&&ct(t.right,this.right)},[rt](){return _t(K(this._tag))(K(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:te(this.right)}}}),aC=Object.assign(Object.create(jb),{_tag:"Left",_op:"Left",[nt](t){return qb(t)&&Wb(t)&&ct(t.left,this.left)},[rt](){return _t(K(this._tag))(K(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:te(this.left)}}}),qb=t=>at(t,Bb),Wb=t=>t._tag==="Left",Kb=t=>t._tag==="Right",fC=t=>{const e=Object.create(aC);return e.left=t,e},lC=t=>{const e=Object.create(cC);return e.right=t,e},Hb=t=>(e,n)=>e===n?0:t(e,n),dC=Hb((t,e)=>tHb((n,i)=>t(e(n),e(i)))),mC=t=>x(2,(e,n)=>t(e,n)===1),Z=()=>Ub,bt=Db,Ye=Tb,Qn=Lb,Di=x(2,(t,{onNone:e,onSome:n})=>Ye(t)?e():n(t.value)),$i=x(2,(t,e)=>Ye(t)?e():t.value),mh=t=>t==null?Z():bt(t),gi=$i(NN),pC=x(2,(t,e)=>{if(Qn(t))return t.value;throw e()}),gC=pC(()=>new Error("getOrThrow called on a None")),yC=x(2,(t,e)=>Ye(t)?Z():bt(e(t.value))),Gb=x(2,(t,e)=>Ye(t)?Z():e(t.value)),_C=t=>x(2,(e,n)=>Ye(e)?!1:t(e.value,n)),bC=fh(),wC=_C(bC),br=lC,bo=fC,Es=Wb,xc=Kb,SC=x(2,(t,{onLeft:e,onRight:n})=>Es(t)?e(t.left):n(t.right)),OC=SC({onLeft:ie,onRight:ie}),Yb=t=>t.length>0,IC=x(2,(t,e)=>{const n=[];for(const i of FC(t))n.push(e(i,t[i]));return n}),xC=IC((t,e)=>[t,e]),FC=t=>Object.keys(t),$C=(...t)=>t,PC=(t,e)=>{const n=Math.max(1,Math.floor(t)),i=[e(0)];for(let s=1;sArray.isArray(t)?t:Array.from(t),Yc=x(2,(t,e)=>[e,...t]),MC=x(2,(t,e)=>[...t,e]),zb=x(2,(t,e)=>Yt(t).concat(Yt(e))),RC=t=>t.length===0,EC=RC,AC=Yb,Xe=Yb,Jb=(t,e)=>t<0||t>=e.length,vC=(t,e)=>Math.floor(Math.min(Math.max(0,t),e.length)),NC=x(2,(t,e)=>{const n=Math.floor(e);return Jb(n,t)?Z():bt(t[n])}),Xb=x(2,(t,e)=>{const n=Math.floor(e);if(Jb(n,t))throw new Error(`Index ${n} out of bounds`);return t[n]}),lo=NC(0),ze=Xb(0),CC=t=>Xe(t)?bt(Qb(t)):Z(),Qb=t=>t[t.length-1],wo=t=>t.slice(1),kC=(t,e)=>{let n=0;for(const i of t){if(!e(i,n))break;n++}return n},TC=x(2,(t,e)=>BC(t,kC(t,e))),LC=x(2,(t,e)=>{const n=Yt(t);return n.slice(vC(e,n),n.length)}),Vg=t=>Array.from(t).reverse(),zc=x(2,(t,e)=>{const n=Array.from(t);return n.sort(e),n}),ty=x(2,(t,e)=>UC(t,e,$C)),UC=x(3,(t,e,n)=>{const i=Yt(t),s=Yt(e);if(Xe(i)&&Xe(s)){const c=[n(ze(i),ze(s))],f=Math.min(i.length,s.length);for(let d=1;d{const n=Array.from(t),i=Math.floor(e);return Xe(n)?i>=1?jC(n,i):[[],n]:[n,[]]}),jC=x(2,(t,e)=>{const n=Math.max(1,Math.floor(e));return n>=t.length?[qC(t),[]]:[Yc(t.slice(1,n),ze(t)),t.slice(n)]}),qC=t=>t.slice(),WC=x(3,(t,e,n)=>{const i=Yt(t),s=Yt(e);return Xe(i)?Xe(s)?t0(n)(zb(i,s)):i:s}),Vl=x(2,(t,e)=>WC(t,e,DC)),So=()=>[],$n=t=>[t],zr=x(2,(t,e)=>t.map(e)),KC=x(2,(t,e)=>{if(EC(t))return[];const n=[];for(let i=0;i{const n=Yt(t),i=[];for(let s=0;sYt(t).reduce((i,s,c)=>n(i,s,c),e)),ey=(t,e)=>{const n=[];let i=t,s;for(;Qn(s=e(i));){const[c,f]=s.value;n.push(c),i=f}return n},ph=XN,t0=x(2,(t,e)=>{const n=Yt(t);if(Xe(n)){const i=[ze(n)],s=wo(n);for(const c of s)i.every(f=>!e(c,f))&&i.push(c);return i}return[]}),GC=t=>t0(t,fh()),qo=x(2,(t,e)=>Yt(t).join(e)),YC=Symbol.for("effect/Context/Tag"),zC="effect/STM",JC=Symbol.for(zC),XC={...Ia,_tag:"Tag",_op:"Tag",[JC]:_o,[YC]:{_Service:t=>t,_Identifier:t=>t},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[Kt](){return this.toJSON()},of(t){return t},context(t){return n0(this,t)}},QC=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;Error.stackTraceLimit=e;const i=Object.create(XC);return Object.defineProperty(i,"stack",{get(){return n.stack}}),i.key=t,i},e0=Symbol.for("effect/Context"),ZC={[e0]:{_Services:t=>t},[nt](t){if(tk(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!ct(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[rt](){return Wt(this,ah(this.unsafeMap.size))},pipe(){return X(this,arguments)},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(te)}},[Kt](){return this.toJSON()}},Oo=t=>{const e=Object.create(ZC);return e.unsafeMap=t,e},VC=t=>{const e=new Error(`Service not found${t.key?`: ${String(t.key)}`:""}`);if(t.stack){const n=t.stack.split(` +var EM=Object.defineProperty;var AM=(t,e,n)=>e in t?EM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _=(t,e,n)=>(AM(t,typeof e!="symbol"?e+"":e,n),n);import{s as $r,c as vM,u as NM,g as CM,a as kM,y as TM,f as Ug,n as wr}from"./scheduler.BRd-yEOV.js";import{S as Pr,i as Mr,t as Bd,j as jd,e as Gr,s as $l,v as y_,c as Yr,g as aa,a as Pl,w as __,f as Oc,h as Pn,x as b_,d as Ge,y as w_,k as S_,b as O_,l as I_,m as x_,n as F_}from"./index.BHR9i4nQ.js";import{_ as LM}from"./9.CIeohZ6G.js";import{_ as UM}from"./10.CIeohZ6G.js";import{_ as DM}from"./11.CIeohZ6G.js";import{_ as BM}from"./12.CIeohZ6G.js";import{h as jM}from"./utils.CpCCSDFZ.js";function qM(t){return Ee(t)&&!tr(t)&&!la(t)&&Symbol.asyncIterator in t}function tr(t){return Array.isArray(t)}function $_(t){return typeof t=="bigint"}function fa(t){return typeof t=="boolean"}function P_(t){return t instanceof globalThis.Date}function WM(t){return typeof t=="function"}function KM(t){return Ee(t)&&!tr(t)&&!la(t)&&Symbol.iterator in t}function HM(t){return t===null}function Jr(t){return typeof t=="number"}function Ee(t){return typeof t=="object"&&t!==null}function GM(t){return t instanceof globalThis.RegExp}function ee(t){return typeof t=="string"}function YM(t){return typeof t=="symbol"}function la(t){return t instanceof globalThis.Uint8Array}function jt(t){return t===void 0}function zM(t){return t.map(e=>Uc(e))}function JM(t){return new Date(t.getTime())}function XM(t){return new Uint8Array(t)}function QM(t){return new RegExp(t.source,t.flags)}function ZM(t){const e=Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:Uc(t[s])}),{}),n=Object.getOwnPropertySymbols(t).reduce((i,s)=>({...i,[s]:Uc(t[s])}),{});return{...e,...n}}function Uc(t){return tr(t)?zM(t):P_(t)?JM(t):la(t)?XM(t):GM(t)?QM(t):Ee(t)?ZM(t):t}function VM(t){return Uc(t)}function Jn(t){return t.map(e=>H(e))}function H(t,e={}){return{...VM(t),...e}}class Ae extends Error{constructor(e){super(e)}}const Mn=Symbol.for("TypeBox.Transform"),da=Symbol.for("TypeBox.Readonly"),Ci=Symbol.for("TypeBox.Optional"),ha=Symbol.for("TypeBox.Hint"),U=Symbol.for("TypeBox.Kind"),tR=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function M_(t){try{return new RegExp(t),!0}catch{return!1}}function qd(t){if(!ee(t))return!1;for(let e=0;e=7&&n<=13||n===27||n===127)return!1}return!0}function R_(t){return Wd(t)||$t(t)}function ws(t){return jt(t)||$_(t)}function Mt(t){return jt(t)||Jr(t)}function Wd(t){return jt(t)||fa(t)}function xt(t){return jt(t)||ee(t)}function eR(t){return jt(t)||ee(t)&&qd(t)&&M_(t)}function nR(t){return jt(t)||ee(t)&&qd(t)}function E_(t){return jt(t)||$t(t)}function rR(t){return Ee(t)&&t[da]==="Readonly"}function Xn(t){return Ee(t)&&t[Ci]==="Optional"}function Nn(t){return ht(t,"Any")&&xt(t.$id)}function Un(t){return ht(t,"Array")&&t.type==="array"&&xt(t.$id)&&$t(t.items)&&Mt(t.minItems)&&Mt(t.maxItems)&&Wd(t.uniqueItems)&&E_(t.contains)&&Mt(t.minContains)&&Mt(t.maxContains)}function tu(t){return ht(t,"AsyncIterator")&&t.type==="AsyncIterator"&&xt(t.$id)&&$t(t.items)}function eu(t){return ht(t,"BigInt")&&t.type==="bigint"&&xt(t.$id)&&ws(t.exclusiveMaximum)&&ws(t.exclusiveMinimum)&&ws(t.maximum)&&ws(t.minimum)&&ws(t.multipleOf)}function ti(t){return ht(t,"Boolean")&&t.type==="boolean"&&xt(t.$id)}function ko(t){return ht(t,"Constructor")&&t.type==="Constructor"&&xt(t.$id)&&tr(t.parameters)&&t.parameters.every(e=>$t(e))&&$t(t.returns)}function ma(t){return ht(t,"Date")&&t.type==="Date"&&xt(t.$id)&&Mt(t.exclusiveMaximumTimestamp)&&Mt(t.exclusiveMinimumTimestamp)&&Mt(t.maximumTimestamp)&&Mt(t.minimumTimestamp)&&Mt(t.multipleOfTimestamp)}function To(t){return ht(t,"Function")&&t.type==="Function"&&xt(t.$id)&&tr(t.parameters)&&t.parameters.every(e=>$t(e))&&$t(t.returns)}function pn(t){return ht(t,"Integer")&&t.type==="integer"&&xt(t.$id)&&Mt(t.exclusiveMaximum)&&Mt(t.exclusiveMinimum)&&Mt(t.maximum)&&Mt(t.minimum)&&Mt(t.multipleOf)}function A_(t){return Ee(t)&&Object.entries(t).every(([e,n])=>qd(e)&&$t(n))}function pe(t){return ht(t,"Intersect")&&!(ee(t.type)&&t.type!=="object")&&tr(t.allOf)&&t.allOf.every(e=>$t(e)&&!ei(e))&&xt(t.type)&&(Wd(t.unevaluatedProperties)||E_(t.unevaluatedProperties))&&xt(t.$id)}function nu(t){return ht(t,"Iterator")&&t.type==="Iterator"&&xt(t.$id)&&$t(t.items)}function ht(t,e){return Ee(t)&&U in t&&t[U]===e}function v_(t){return gn(t)&&ee(t.const)}function N_(t){return gn(t)&&Jr(t.const)}function C_(t){return gn(t)&&fa(t.const)}function gn(t){return ht(t,"Literal")&&xt(t.$id)&&iR(t.const)}function iR(t){return fa(t)||Jr(t)||ee(t)}function ki(t){return ht(t,"MappedKey")&&tr(t.keys)&&t.keys.every(e=>Jr(e)||ee(e))}function Ze(t){return ht(t,"MappedResult")&&A_(t.properties)}function er(t){return ht(t,"Never")&&Ee(t.not)&&Object.getOwnPropertyNames(t.not).length===0}function po(t){return ht(t,"Not")&&$t(t.not)}function Kd(t){return ht(t,"Null")&&t.type==="null"&&xt(t.$id)}function le(t){return ht(t,"Number")&&t.type==="number"&&xt(t.$id)&&Mt(t.exclusiveMaximum)&&Mt(t.exclusiveMinimum)&&Mt(t.maximum)&&Mt(t.minimum)&&Mt(t.multipleOf)}function gt(t){return ht(t,"Object")&&t.type==="object"&&xt(t.$id)&&A_(t.properties)&&R_(t.additionalProperties)&&Mt(t.minProperties)&&Mt(t.maxProperties)}function Lo(t){return ht(t,"Promise")&&t.type==="Promise"&&xt(t.$id)&&$t(t.item)}function se(t){return ht(t,"Record")&&t.type==="object"&&xt(t.$id)&&R_(t.additionalProperties)&&Ee(t.patternProperties)&&(e=>{const n=Object.getOwnPropertyNames(e.patternProperties);return n.length===1&&M_(n[0])&&Ee(e.patternProperties)&&$t(e.patternProperties[n[0]])})(t)}function k_(t){return ht(t,"Ref")&&xt(t.$id)&&ee(t.$ref)}function go(t){return ht(t,"RegExp")&&xt(t.$id)&&ee(t.source)&&ee(t.flags)&&Mt(t.maxLength)&&Mt(t.minLength)}function Je(t){return ht(t,"String")&&t.type==="string"&&xt(t.$id)&&Mt(t.minLength)&&Mt(t.maxLength)&&eR(t.pattern)&&nR(t.format)}function Ts(t){return ht(t,"Symbol")&&t.type==="symbol"&&xt(t.$id)}function Cn(t){return ht(t,"TemplateLiteral")&&t.type==="string"&&ee(t.pattern)&&t.pattern[0]==="^"&&t.pattern[t.pattern.length-1]==="$"}function oR(t){return ht(t,"This")&&xt(t.$id)&&ee(t.$ref)}function ei(t){return Ee(t)&&Mn in t}function Rr(t){return ht(t,"Tuple")&&t.type==="array"&&xt(t.$id)&&Jr(t.minItems)&&Jr(t.maxItems)&&t.minItems===t.maxItems&&(jt(t.items)&&jt(t.additionalItems)&&t.minItems===0||tr(t.items)&&t.items.every(e=>$t(e)))}function Fi(t){return ht(t,"Undefined")&&t.type==="undefined"&&xt(t.$id)}function Nt(t){return ht(t,"Union")&&xt(t.$id)&&Ee(t)&&tr(t.anyOf)&&t.anyOf.every(e=>$t(e))}function ru(t){return ht(t,"Uint8Array")&&t.type==="Uint8Array"&&xt(t.$id)&&Mt(t.minByteLength)&&Mt(t.maxByteLength)}function kn(t){return ht(t,"Unknown")&&xt(t.$id)}function sR(t){return ht(t,"Unsafe")}function pa(t){return ht(t,"Void")&&t.type==="void"&&xt(t.$id)}function uR(t){return Ee(t)&&U in t&&ee(t[U])&&!tR.includes(t[U])}function $t(t){return Ee(t)&&(Nn(t)||Un(t)||ti(t)||eu(t)||tu(t)||ko(t)||ma(t)||To(t)||pn(t)||pe(t)||nu(t)||gn(t)||ki(t)||Ze(t)||er(t)||po(t)||Kd(t)||le(t)||gt(t)||Lo(t)||se(t)||k_(t)||go(t)||Je(t)||Ts(t)||Cn(t)||oR(t)||Rr(t)||Fi(t)||Nt(t)||ru(t)||kn(t)||sR(t)||pa(t)||uR(t))}const cR="(true|false)",Mc="(0|[1-9][0-9]*)",T_="(.*)",Ls=`^${Mc}$`,Dc=`^${T_}$`,Hd=new Map;function Gd(t){return Hd.has(t)}function aR(t,e){Hd.set(t,e)}function L_(t){return Hd.get(t)}const Yd=new Map;function ga(t){return Yd.has(t)}function fR(t,e){Yd.set(t,e)}function U_(t){return Yd.get(t)}function lR(t,e){return t.includes(e)}function dR(t){return[...new Set(t)]}function hR(t,e){return t.filter(n=>e.includes(n))}function mR(t,e){return t.reduce((n,i)=>hR(n,i),e)}function pR(t){return t.length===1?t[0]:t.length>1?mR(t.slice(1),t[0]):[]}function gR(t){return t.reduce((e,n)=>[...e,...n],[])}function Us(t={}){return{...t,[U]:"Any"}}function D_(t,e={}){return{...e,[U]:"Array",type:"array",items:H(t)}}function B_(t,e={}){return{...e,[U]:"AsyncIterator",type:"AsyncIterator",items:H(t)}}function yR(t,e){const{[e]:n,...i}=t;return i}function dn(t,e){return e.reduce((n,i)=>yR(n,i),t)}function ve(t={}){return{...t,[U]:"Never",not:{}}}function ge(t){return{[U]:"MappedResult",properties:t}}function j_(t,e,n){return{...n,[U]:"Constructor",type:"Constructor",parameters:Jn(t),returns:H(e)}}function ya(t,e,n){return{...n,[U]:"Function",type:"Function",parameters:Jn(t),returns:H(e)}}function Hl(t,e){return{...e,[U]:"Union",anyOf:Jn(t)}}function _R(t){return t.some(e=>Xn(e))}function Dg(t){return t.map(e=>Xn(e)?bR(e):e)}function bR(t){return dn(t,[Ci])}function wR(t,e){return _R(t)?Li(Hl(Dg(t),e)):Hl(Dg(t),e)}function Uo(t,e={}){return t.length===0?ve(e):t.length===1?H(t[0],e):wR(t,e)}function Ne(t,e={}){return t.length===0?ve(e):t.length===1?H(t[0],e):Hl(t,e)}class Bg extends Ae{}function zd(t,e,n){return t[e]===n&&t.charCodeAt(e-1)!==92}function _r(t,e){return zd(t,e,"(")}function Ds(t,e){return zd(t,e,")")}function q_(t,e){return zd(t,e,"|")}function SR(t){if(!(_r(t,0)&&Ds(t,t.length-1)))return!1;let e=0;for(let n=0;n0&&i.push(yo(f)),n=c+1}const s=t.slice(n);return s.length>0&&i.push(yo(s)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}function $R(t){function e(s,c){if(!_r(s,c))throw new Bg("TemplateLiteralParser: Index must point to open parens");let f=0;for(let d=c;d0&&i.push(yo(d)),s=f-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}function yo(t){return SR(t)?yo(OR(t)):IR(t)?FR(t):xR(t)?$R(t):{type:"const",const:t}}function Jd(t){return yo(t.slice(1,t.length-1))}class PR extends Ae{}function MR(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="0"&&t.expr[1].type==="const"&&t.expr[1].const==="[1-9][0-9]*"}function RR(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="true"&&t.expr[1].type==="const"&&t.expr[1].const==="false"}function ER(t){return t.type==="const"&&t.const===".*"}function Bs(t){return MR(t)||ER(t)?!1:RR(t)?!0:t.type==="and"?t.expr.every(e=>Bs(e)):t.type==="or"?t.expr.every(e=>Bs(e)):t.type==="const"?!0:(()=>{throw new PR("Unknown expression type")})()}function AR(t){const e=Jd(t.pattern);return Bs(e)}class vR extends Ae{}function*W_(t){if(t.length===1)return yield*t[0];for(const e of t[0])for(const n of W_(t.slice(1)))yield`${e}${n}`}function*NR(t){return yield*W_(t.expr.map(e=>[..._a(e)]))}function*CR(t){for(const e of t.expr)yield*_a(e)}function*kR(t){return yield t.const}function*_a(t){return t.type==="and"?yield*NR(t):t.type==="or"?yield*CR(t):t.type==="const"?yield*kR(t):(()=>{throw new vR("Unknown expression")})()}function K_(t){const e=Jd(t.pattern);return Bs(e)?[..._a(e)]:[]}function qt(t,e={}){return{...e,[U]:"Literal",const:t,type:typeof t}}function H_(t={}){return{...t,[U]:"Boolean",type:"boolean"}}function Xd(t={}){return{...t,[U]:"BigInt",type:"bigint"}}function Do(t={}){return{...t,[U]:"Number",type:"number"}}function Xr(t={}){return{...t,[U]:"String",type:"string"}}function*TR(t){const e=t.trim().replace(/"|'/g,"");return e==="boolean"?yield H_():e==="number"?yield Do():e==="bigint"?yield Xd():e==="string"?yield Xr():yield(()=>{const n=e.split("|").map(i=>qt(i.trim()));return n.length===0?ve():n.length===1?n[0]:Uo(n)})()}function*LR(t){if(t[1]!=="{"){const e=qt("$"),n=Gl(t.slice(1));return yield*[e,...n]}for(let e=2;eG_(n,e)).join("|")})`:le(t)?`${e}${Mc}`:pn(t)?`${e}${Mc}`:eu(t)?`${e}${Mc}`:Je(t)?`${e}${T_}`:gn(t)?`${e}${BR(t.const.toString())}`:ti(t)?`${e}${cR}`:(()=>{throw new DR(`Unexpected Kind '${t[U]}'`)})()}function jg(t){return`^${t.map(e=>G_(e,"")).join("")}$`}function Bc(t){const n=K_(t).map(i=>qt(i));return Uo(n)}function Y_(t,e={}){const n=ee(t)?jg(UR(t)):jg(t);return{...e,[U]:"TemplateLiteral",type:"string",pattern:n}}function jR(t){return K_(t).map(n=>n.toString())}function qR(t){return t.reduce((e,n)=>[...e,...ni(n)],[])}function WR(t){return[t.toString()]}function ni(t){return[...new Set(Cn(t)?jR(t):Nt(t)?qR(t.anyOf):gn(t)?WR(t.const):le(t)?["[number]"]:pn(t)?["[number]"]:[])]}function KR(t,e,n){return globalThis.Object.getOwnPropertyNames(e).reduce((i,s)=>({...i,[s]:iu(t,ni(e[s]),n)}),{})}function HR(t,e,n){return KR(t,e.properties,n)}function GR(t,e,n){const i=HR(t,e,n);return ge(i)}function z_(t,e){return t.map(n=>J_(n,e))}function YR(t){return t.filter(e=>!er(e))}function zR(t,e){return tb(YR(z_(t,e)))}function JR(t,e){return Uo(z_(t,e))}function XR(t,e){return e in t?t[e]:e==="[number]"?Uo(t):ve()}function QR(t,e){return e==="[number]"?t:ve()}function ZR(t,e){return e in t?t[e]:ve()}function J_(t,e){return pe(t)?zR(t.allOf,e):Nt(t)?JR(t.anyOf,e):Rr(t)?XR(t.items??[],e):Un(t)?QR(t.items,e):gt(t)?ZR(t.properties,e):ve()}function X_(t,e){return e.map(n=>J_(t,n))}function qg(t,e){return Uo(X_(t,e))}function iu(t,e,n={}){return Ze(e)?H(GR(t,e,n)):ki(e)?H(nE(t,e,n)):$t(e)?H(qg(t,ni(e)),n):H(qg(t,e),n)}function VR(t,e,n){return{[e]:iu(t,[e],n)}}function tE(t,e,n){return e.reduce((i,s)=>({...i,...VR(t,s,n)}),{})}function eE(t,e,n){return tE(t,e.keys,n)}function nE(t,e,n){const i=eE(t,e,n);return ge(i)}function Q_(t,e={}){return{...e,[U]:"Iterator",type:"Iterator",items:H(t)}}function rE(t,e={}){const n=globalThis.Object.getOwnPropertyNames(t),i=n.filter(d=>Xn(t[d])),s=n.filter(d=>!i.includes(d)),c=$t(e.additionalProperties)?{additionalProperties:H(e.additionalProperties)}:{},f=n.reduce((d,p)=>({...d,[p]:H(t[p])}),{});return s.length>0?{...e,...c,[U]:"Object",type:"object",properties:f,required:s}:{...e,...c,[U]:"Object",type:"object",properties:f}}const ue=rE;function Z_(t,e={}){return{...e,[U]:"Promise",type:"Promise",item:H(t)}}function iE(t){return dn(H(t),[da])}function oE(t){return{...H(t),[da]:"Readonly"}}function sE(t,e){return e===!1?iE(t):oE(t)}function Ti(t,e){const n=e??!0;return Ze(t)?aE(t,n):sE(t,n)}function uE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Ti(t[i],e)}),{})}function cE(t,e){return uE(t.properties,e)}function aE(t,e){const n=cE(t,e);return ge(n)}function ou(t,e={}){const[n,i,s]=[!1,t.length,t.length];return t.length>0?{...e,[U]:"Tuple",type:"array",items:Jn(t),additionalItems:n,minItems:i,maxItems:s}:{...e,[U]:"Tuple",type:"array",minItems:i,maxItems:s}}function V_(t,e){return t in e?ln(t,e[t]):ge(e)}function fE(t){return{[t]:qt(t)}}function lE(t){return t.reduce((e,n)=>({...e,[n]:qt(n)}),{})}function dE(t,e){return lR(e,t)?fE(t):lE(e)}function hE(t,e){const n=dE(t,e);return V_(t,n)}function Ss(t,e){return e.map(n=>ln(t,n))}function mE(t,e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:ln(t,e[i])}),{})}function ln(t,e){return Xn(e)?Li(ln(t,dn(e,[Ci]))):rR(e)?Ti(ln(t,dn(e,[da]))):Ze(e)?V_(t,e.properties):ki(e)?hE(t,e.keys):ko(e)?j_(Ss(t,e.parameters),ln(t,e.returns)):To(e)?ya(Ss(t,e.parameters),ln(t,e.returns)):tu(e)?B_(ln(t,e.items)):nu(e)?Q_(ln(t,e.items)):pe(e)?Ui(Ss(t,e.allOf)):Nt(e)?Ne(Ss(t,e.anyOf)):Rr(e)?ou(Ss(t,e.items??[])):gt(e)?ue(mE(t,e.properties)):Un(e)?D_(ln(t,e.items)):Lo(e)?Z_(ln(t,e.item)):e}function pE(t,e,n={}){return t.reduce((i,s)=>({...i,[s]:ln(s,e)}),{})}function gE(t,e,n={}){const i=$t(t)?ni(t):t,s=e({[U]:"MappedKey",keys:i}),c=pE(i,s);return H(ue(c),n)}function yE(t){return dn(H(t),[Ci])}function _E(t){return{...H(t),[Ci]:"Optional"}}function bE(t,e){return e===!1?yE(t):_E(t)}function Li(t,e){const n=e??!0;return Ze(t)?OE(t,n):bE(t,n)}function wE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Li(t[i],e)}),{})}function SE(t,e){return wE(t.properties,e)}function OE(t,e){const n=SE(t,e);return ge(n)}function Yl(t,e){const n=t.every(s=>gt(s)),i=$t(e.unevaluatedProperties)?{unevaluatedProperties:H(e.unevaluatedProperties)}:{};return e.unevaluatedProperties===!1||$t(e.unevaluatedProperties)||n?{...e,...i,[U]:"Intersect",type:"object",allOf:Jn(t)}:{...e,...i,[U]:"Intersect",allOf:Jn(t)}}function IE(t){return t.every(e=>Xn(e))}function xE(t){return dn(t,[Ci])}function Wg(t){return t.map(e=>Xn(e)?xE(e):e)}function FE(t,e){return IE(t)?Li(Yl(Wg(t),e)):Yl(Wg(t),e)}function tb(t,e={}){if(t.length===0)return ve(e);if(t.length===1)return H(t[0],e);if(t.some(n=>ei(n)))throw new Error("Cannot intersect transform types");return FE(t,e)}function Ui(t,e={}){if(t.length===0)return ve(e);if(t.length===1)return H(t[0],e);if(t.some(n=>ei(n)))throw new Error("Cannot intersect transform types");return Yl(t,e)}function eb(t){return t.map(e=>Qd(e))}function $E(t){return Ui(eb(t))}function PE(t){return Ne(eb(t))}function ME(t){return Qd(t)}function Qd(t){return pe(t)?$E(t.allOf):Nt(t)?PE(t.anyOf):Lo(t)?ME(t.item):t}function RE(t,e={}){return H(Qd(t),e)}function nb(t){return t.reduce((e,n)=>[...e,ri(n)],[])}function EE(t){const e=nb(t);return gR(e)}function AE(t){const e=nb(t);return pR(e)}function vE(t){return t.map((e,n)=>n.toString())}function NE(t){return["[number]"]}function CE(t){return globalThis.Object.getOwnPropertyNames(t)}function kE(t){return zl?globalThis.Object.getOwnPropertyNames(t).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function ri(t){return pe(t)?EE(t.allOf):Nt(t)?AE(t.anyOf):Rr(t)?vE(t.items??[]):Un(t)?NE(t.items):gt(t)?CE(t.properties):se(t)?kE(t.patternProperties):[]}let zl=!1;function jc(t){zl=!0;const e=ri(t);return zl=!1,`^(${e.map(i=>`(${i})`).join("|")})$`}function TE(t){return t.map(e=>e==="[number]"?Do():qt(e))}function rb(t,e={}){if(Ze(t))return DE(t,e);{const n=ri(t),i=TE(n),s=Uo(i);return H(s,e)}}function LE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:rb(t[i],e)}),{})}function UE(t,e){return LE(t.properties,e)}function DE(t,e){const n=UE(t,e);return ge(n)}function BE(t){return t.reduce((e,n)=>dR([...e,...ri(n)]),[])}function jE(t){return t.filter(e=>!er(e))}function qE(t,e){return t.reduce((n,i)=>jE([...n,...X_(i,[e])]),[])}function WE(t,e){return e.reduce((n,i)=>({...n,[i]:tb(qE(t,i))}),{})}function KE(t,e={}){const n=BE(t),i=WE(t,n);return ue(i,e)}function ib(t={}){return{...t,[U]:"Date",type:"Date"}}function ob(t={}){return{...t,[U]:"Null",type:"null"}}function sb(t){return{...t,[U]:"Symbol",type:"symbol"}}function ub(t={}){return{...t,[U]:"Undefined",type:"undefined"}}function cb(t={}){return{...t,[U]:"Uint8Array",type:"Uint8Array"}}function su(t={}){return{...t,[U]:"Unknown"}}function HE(t){return t.map(e=>Zd(e,!1))}function GE(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:Ti(Zd(t[n],!1))}),{})}function Ic(t,e){return e===!0?t:Ti(t)}function Zd(t,e){return qM(t)||KM(t)?Ic(Us(),e):tr(t)?Ti(ou(HE(t))):la(t)?cb():P_(t)?ib():Ee(t)?Ic(ue(GE(t)),e):WM(t)?Ic(ya([],su()),e):jt(t)?ub():HM(t)?ob():YM(t)?sb():$_(t)?Xd():Jr(t)||fa(t)||ee(t)?qt(t):ue({})}function YE(t,e={}){return H(Zd(t,!0),e)}function zE(t,e={}){return ou(Jn(t.parameters),{...e})}function uu(t,e){return t.map(n=>nr(n,e))}function JE(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:nr(t[i],e)}),{})}function XE(t,e){return t.parameters=uu(t.parameters,e),t.returns=nr(t.returns,e),t}function QE(t,e){return t.parameters=uu(t.parameters,e),t.returns=nr(t.returns,e),t}function ZE(t,e){return t.allOf=uu(t.allOf,e),t}function VE(t,e){return t.anyOf=uu(t.anyOf,e),t}function tA(t,e){return jt(t.items)||(t.items=uu(t.items,e)),t}function eA(t,e){return t.items=nr(t.items,e),t}function nA(t,e){return t.properties=JE(t.properties,e),t}function rA(t,e){return t.item=nr(t.item,e),t}function iA(t,e){return t.items=nr(t.items,e),t}function oA(t,e){return t.items=nr(t.items,e),t}function sA(t,e){const n=e.find(s=>s.$id===t.$ref);if(n===void 0)throw Error(`Unable to dereference schema with $id ${t.$ref}`);const i=dn(n,["$id"]);return nr(i,e)}function uA(t,e){return ko(t)?XE(t,e):To(t)?QE(t,e):pe(t)?ZE(t,e):Nt(t)?VE(t,e):Rr(t)?tA(t,e):Un(t)?eA(t,e):gt(t)?nA(t,e):Lo(t)?rA(t,e):tu(t)?iA(t,e):nu(t)?oA(t,e):k_(t)?sA(t,e):t}function nr(t,e){return uA(H(t),Jn(e))}function cA(t,e={}){if(jt(t))throw new Error("Enum undefined or empty");const n=globalThis.Object.getOwnPropertyNames(t).filter(c=>isNaN(c)).map(c=>t[c]),s=[...new Set(n)].map(c=>qt(c));return Ne(s,{...e,[ha]:"Enum"})}class aA extends Ae{}var F;(function(t){t[t.Union=0]="Union",t[t.True=1]="True",t[t.False=2]="False"})(F||(F={}));function hn(t){return t===F.False?t:F.True}function Bo(t){throw new aA(t)}function zt(t){return er(t)||pe(t)||Nt(t)||kn(t)||Nn(t)}function Jt(t,e){return er(e)?lb():pe(e)?ba(t,e):Nt(e)?th(t,e):kn(e)?pb():Nn(e)?Vd():Bo("StructuralRight")}function Vd(t,e){return F.True}function fA(t,e){return pe(e)?ba(t,e):Nt(e)&&e.anyOf.some(n=>Nn(n)||kn(n))?F.True:Nt(e)?F.Union:kn(e)||Nn(e)?F.True:F.Union}function lA(t,e){return kn(t)?F.False:Nn(t)?F.Union:er(t)?F.True:F.False}function dA(t,e){return gt(e)&&wa(e)?F.True:zt(e)?Jt(t,e):Un(e)?hn(It(t.items,e.items)):F.False}function hA(t,e){return zt(e)?Jt(t,e):tu(e)?hn(It(t.items,e.items)):F.False}function mA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):eu(e)?F.True:F.False}function ab(t,e){return C_(t)||ti(t)?F.True:F.False}function pA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ti(e)?F.True:F.False}function gA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):ko(e)?t.parameters.length>e.parameters.length?F.False:t.parameters.every((n,i)=>hn(It(e.parameters[i],n))===F.True)?hn(It(t.returns,e.returns)):F.False:F.False}function yA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ma(e)?F.True:F.False}function _A(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):To(e)?t.parameters.length>e.parameters.length?F.False:t.parameters.every((n,i)=>hn(It(e.parameters[i],n))===F.True)?hn(It(t.returns,e.returns)):F.False:F.False}function fb(t,e){return gn(t)&&Jr(t.const)||le(t)||pn(t)?F.True:F.False}function bA(t,e){return pn(e)||le(e)?F.True:zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):F.False}function ba(t,e){return e.allOf.every(n=>It(t,n)===F.True)?F.True:F.False}function wA(t,e){return t.allOf.some(n=>It(n,e)===F.True)?F.True:F.False}function SA(t,e){return zt(e)?Jt(t,e):nu(e)?hn(It(t.items,e.items)):F.False}function OA(t,e){return gn(e)&&e.const===t.const?F.True:zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Je(e)?mb(t):le(e)?db(t):pn(e)?fb(t):ti(e)?ab(t):F.False}function lb(t,e){return F.False}function IA(t,e){return F.True}function Kg(t){let[e,n]=[t,0];for(;po(e);)e=e.not,n+=1;return n%2===0?e:su()}function xA(t,e){return po(t)?It(Kg(t),e):po(e)?It(t,Kg(e)):Bo("Invalid fallthrough for Not")}function FA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Kd(e)?F.True:F.False}function db(t,e){return N_(t)||le(t)||pn(t)?F.True:F.False}function $A(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):pn(e)||le(e)?F.True:F.False}function Ue(t,e){return Object.getOwnPropertyNames(t.properties).length===e}function Hg(t){return wa(t)}function Gg(t){return Ue(t,0)||Ue(t,1)&&"description"in t.properties&&Nt(t.properties.description)&&t.properties.description.anyOf.length===2&&(Je(t.properties.description.anyOf[0])&&Fi(t.properties.description.anyOf[1])||Je(t.properties.description.anyOf[1])&&Fi(t.properties.description.anyOf[0]))}function Ml(t){return Ue(t,0)}function Yg(t){return Ue(t,0)}function PA(t){return Ue(t,0)}function MA(t){return Ue(t,0)}function RA(t){return wa(t)}function EA(t){const e=Do();return Ue(t,0)||Ue(t,1)&&"length"in t.properties&&hn(It(t.properties.length,e))===F.True}function AA(t){return Ue(t,0)}function wa(t){const e=Do();return Ue(t,0)||Ue(t,1)&&"length"in t.properties&&hn(It(t.properties.length,e))===F.True}function vA(t){const e=ya([Us()],Us());return Ue(t,0)||Ue(t,1)&&"then"in t.properties&&hn(It(t.properties.then,e))===F.True}function hb(t,e){return It(t,e)===F.False||Xn(t)&&!Xn(e)?F.False:F.True}function Fe(t,e){return kn(t)?F.False:Nn(t)?F.Union:er(t)||v_(t)&&Hg(e)||N_(t)&&Ml(e)||C_(t)&&Yg(e)||Ts(t)&&Gg(e)||eu(t)&&PA(e)||Je(t)&&Hg(e)||Ts(t)&&Gg(e)||le(t)&&Ml(e)||pn(t)&&Ml(e)||ti(t)&&Yg(e)||ru(t)&&RA(e)||ma(t)&&MA(e)||ko(t)&&AA(e)||To(t)&&EA(e)?F.True:se(t)&&Je(Jl(t))?e[ha]==="Record"?F.True:F.False:se(t)&&le(Jl(t))?Ue(e,0)?F.True:F.False:F.False}function NA(t,e){return zt(e)?Jt(t,e):se(e)?yn(t,e):gt(e)?(()=>{for(const n of Object.getOwnPropertyNames(e.properties)){if(!(n in t.properties)&&!Xn(e.properties[n]))return F.False;if(Xn(e.properties[n]))return F.True;if(hb(t.properties[n],e.properties[n])===F.False)return F.False}return F.True})():F.False}function CA(t,e){return zt(e)?Jt(t,e):gt(e)&&vA(e)?F.True:Lo(e)?hn(It(t.item,e.item)):F.False}function Jl(t){return Ls in t.patternProperties?Do():Dc in t.patternProperties?Xr():Bo("Unknown record key pattern")}function Xl(t){return Ls in t.patternProperties?t.patternProperties[Ls]:Dc in t.patternProperties?t.patternProperties[Dc]:Bo("Unable to get record value schema")}function yn(t,e){const[n,i]=[Jl(e),Xl(e)];return v_(t)&&le(n)&&hn(It(t,i))===F.True?F.True:ru(t)&&le(n)||Je(t)&&le(n)||Un(t)&&le(n)?It(t,i):gt(t)?(()=>{for(const s of Object.getOwnPropertyNames(t.properties))if(hb(i,t.properties[s])===F.False)return F.False;return F.True})():F.False}function kA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?It(Xl(t),Xl(e)):F.False}function TA(t,e){const n=go(t)?Xr():t,i=go(e)?Xr():e;return It(n,i)}function mb(t,e){return gn(t)&&ee(t.const)||Je(t)?F.True:F.False}function LA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Je(e)?F.True:F.False}function UA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):Ts(e)?F.True:F.False}function DA(t,e){return Cn(t)?It(Bc(t),e):Cn(e)?It(t,Bc(e)):Bo("Invalid fallthrough for TemplateLiteral")}function BA(t,e){return Un(e)&&t.items!==void 0&&t.items.every(n=>It(n,e.items)===F.True)}function jA(t,e){return er(t)?F.True:kn(t)?F.False:Nn(t)?F.Union:F.False}function qA(t,e){return zt(e)?Jt(t,e):gt(e)&&wa(e)||Un(e)&&BA(t,e)?F.True:Rr(e)?jt(t.items)&&!jt(e.items)||!jt(t.items)&&jt(e.items)?F.False:jt(t.items)&&!jt(e.items)||t.items.every((n,i)=>It(n,e.items[i])===F.True)?F.True:F.False:F.False}function WA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):ru(e)?F.True:F.False}function KA(t,e){return zt(e)?Jt(t,e):gt(e)?Fe(t,e):se(e)?yn(t,e):pa(e)?YA(t):Fi(e)?F.True:F.False}function th(t,e){return e.anyOf.some(n=>It(t,n)===F.True)?F.True:F.False}function HA(t,e){return t.anyOf.every(n=>It(n,e)===F.True)?F.True:F.False}function pb(t,e){return F.True}function GA(t,e){return er(e)?lb():pe(e)?ba(t,e):Nt(e)?th(t,e):Nn(e)?Vd():Je(e)?mb(t):le(e)?db(t):pn(e)?fb(t):ti(e)?ab(t):Un(e)?lA(t):Rr(e)?jA(t):gt(e)?Fe(t,e):kn(e)?F.True:F.False}function YA(t,e){return Fi(t)||Fi(t)?F.True:F.False}function zA(t,e){return pe(e)?ba(t,e):Nt(e)?th(t,e):kn(e)?pb():Nn(e)?Vd():gt(e)?Fe(t,e):pa(e)?F.True:F.False}function It(t,e){return Cn(t)||Cn(e)?DA(t,e):go(t)||go(e)?TA(t,e):po(t)||po(e)?xA(t,e):Nn(t)?fA(t,e):Un(t)?dA(t,e):eu(t)?mA(t,e):ti(t)?pA(t,e):tu(t)?hA(t,e):ko(t)?gA(t,e):ma(t)?yA(t,e):To(t)?_A(t,e):pn(t)?bA(t,e):pe(t)?wA(t,e):nu(t)?SA(t,e):gn(t)?OA(t,e):er(t)?IA():Kd(t)?FA(t,e):le(t)?$A(t,e):gt(t)?NA(t,e):se(t)?kA(t,e):Je(t)?LA(t,e):Ts(t)?UA(t,e):Rr(t)?qA(t,e):Lo(t)?CA(t,e):ru(t)?WA(t,e):Fi(t)?KA(t,e):Nt(t)?HA(t,e):kn(t)?GA(t,e):pa(t)?zA(t,e):Bo(`Unknown left type operand '${t[U]}'`)}function cu(t,e){return It(t,e)}function JA(t,e,n,i,s){return globalThis.Object.getOwnPropertyNames(t).reduce((c,f)=>({...c,[f]:eh(t[f],e,n,i,s)}),{})}function XA(t,e,n,i,s){return JA(t.properties,e,n,i,s)}function QA(t,e,n,i,s){const c=XA(t,e,n,i,s);return ge(c)}function ZA(t,e,n,i){const s=cu(t,e);return s===F.Union?Ne([n,i]):s===F.True?n:i}function eh(t,e,n,i,s={}){return Ze(t)?QA(t,e,n,i,s):ki(t)?H(nv(t,e,n,i,s)):H(ZA(t,e,n,i),s)}function VA(t,e,n,i,s){return{[t]:eh(qt(t),e,n,i,s)}}function tv(t,e,n,i,s){return t.reduce((c,f)=>({...c,...VA(f,e,n,i,s)}),{})}function ev(t,e,n,i,s){return tv(t.keys,e,n,i,s)}function nv(t,e,n,i,s){const c=ev(t,e,n,i,s);return ge(c)}function rv(t){return t.allOf.every(e=>au(e))}function iv(t){return t.anyOf.some(e=>au(e))}function ov(t){return!au(t.not)}function au(t){return t[U]==="Intersect"?rv(t):t[U]==="Union"?iv(t):t[U]==="Not"?ov(t):t[U]==="Undefined"}function sv(t,e){return nh(Bc(t),e)}function uv(t,e){const n=t.filter(i=>cu(i,e)===F.False);return n.length===1?n[0]:Ne(n)}function nh(t,e,n={}){return Cn(t)?H(sv(t,e),n):Ze(t)?H(fv(t,e),n):H(Nt(t)?uv(t.anyOf,e):cu(t,e)!==F.False?ve():t,n)}function cv(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:nh(t[i],e)}),{})}function av(t,e){return cv(t.properties,e)}function fv(t,e){const n=av(t,e);return ge(n)}function lv(t,e){return rh(Bc(t),e)}function dv(t,e){const n=t.filter(i=>cu(i,e)!==F.False);return n.length===1?n[0]:Ne(n)}function rh(t,e,n={}){return Cn(t)?H(lv(t,e),n):Ze(t)?H(pv(t,e),n):H(Nt(t)?dv(t.anyOf,e):cu(t,e)!==F.False?t:ve(),n)}function hv(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:rh(t[i],e)}),{})}function mv(t,e){return hv(t.properties,e)}function pv(t,e){const n=mv(t,e);return ge(n)}function gv(t,e={}){return H(t.returns,e)}function yv(t={}){return{...t,[U]:"Integer",type:"integer"}}function _v(t,e,n){return{[t]:jo(qt(t),e,n)}}function bv(t,e,n){return t.reduce((i,s)=>({...i,..._v(s,e,n)}),{})}function wv(t,e,n){return bv(t.keys,e,n)}function Sv(t,e,n){const i=wv(t,e,n);return ge(i)}function Ov(t){const[e,n]=[t.slice(0,1),t.slice(1)];return[e.toLowerCase(),n].join("")}function Iv(t){const[e,n]=[t.slice(0,1),t.slice(1)];return[e.toUpperCase(),n].join("")}function xv(t){return t.toUpperCase()}function Fv(t){return t.toLowerCase()}function $v(t,e,n){const i=Jd(t.pattern);if(!Bs(i))return{...t,pattern:gb(t.pattern,e)};const f=[..._a(i)].map(y=>qt(y)),d=yb(f,e),p=Ne(d);return Y_([p],n)}function gb(t,e){return typeof t=="string"?e==="Uncapitalize"?Ov(t):e==="Capitalize"?Iv(t):e==="Uppercase"?xv(t):e==="Lowercase"?Fv(t):t:t.toString()}function yb(t,e){return t.map(n=>jo(n,e))}function jo(t,e,n={}){return ki(t)?Sv(t,e,n):Cn(t)?$v(t,e,t):Nt(t)?Ne(yb(t.anyOf,e),n):gn(t)?qt(gb(t.const,e),n):t}function Pv(t,e={}){return jo(t,"Capitalize",e)}function Mv(t,e={}){return jo(t,"Lowercase",e)}function Rv(t,e={}){return jo(t,"Uncapitalize",e)}function Ev(t,e={}){return jo(t,"Uppercase",e)}function Av(t,e){return{...e,[U]:"Not",not:H(t)}}function vv(t,e,n){return globalThis.Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:oh(t[s],e,n)}),{})}function Nv(t,e,n){return vv(t.properties,e,n)}function Cv(t,e,n){const i=Nv(t,e,n);return ge(i)}function kv(t,e){return t.map(n=>ih(n,e))}function Tv(t,e){return t.map(n=>ih(n,e))}function Lv(t,e){const{[e]:n,...i}=t;return i}function Uv(t,e){return e.reduce((n,i)=>Lv(n,i),t)}function ih(t,e){return pe(t)?Ui(kv(t.allOf,e)):Nt(t)?Ne(Tv(t.anyOf,e)):gt(t)?ue(Uv(t.properties,e)):ue({})}function oh(t,e,n={}){if(ki(e))return qv(t,e,n);if(Ze(t))return Cv(t,e,n);const i=$t(e)?ni(e):e,s=dn(t,[Mn,"$id","required"]),c=H(ih(t,i),n);return{...s,...c}}function Dv(t,e,n){return{[e]:oh(t,[e],n)}}function Bv(t,e,n){return e.reduce((i,s)=>({...i,...Dv(t,s,n)}),{})}function jv(t,e,n){return Bv(t,e.keys,n)}function qv(t,e,n){const i=jv(t,e,n);return ge(i)}function Wv(t,e={}){return ou(Jn(t.parameters),{...e})}function zg(t){return t.map(e=>_b(e))}function Kv(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:Li(t[n])}),{})}function _b(t){return pe(t)?Ui(zg(t.allOf)):Nt(t)?Ne(zg(t.anyOf)):gt(t)?ue(Kv(t.properties)):ue({})}function bb(t,e={}){if(Ze(t))return Yv(t,e);const n=dn(t,[Mn,"$id","required"]),i=H(_b(t),e);return{...n,...i}}function Hv(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:bb(t[i],e)}),{})}function Gv(t,e){return Hv(t.properties,e)}function Yv(t,e){const n=Gv(t,e);return ge(n)}function zv(t,e,n){return globalThis.Object.getOwnPropertyNames(t).reduce((i,s)=>({...i,[s]:uh(t[s],e,n)}),{})}function Jv(t,e,n){return zv(t.properties,e,n)}function Xv(t,e,n){const i=Jv(t,e,n);return ge(i)}function Qv(t,e){return t.map(n=>sh(n,e))}function Zv(t,e){return t.map(n=>sh(n,e))}function Vv(t,e){return e.reduce((n,i)=>i in t?{...n,[i]:t[i]}:n,{})}function sh(t,e){return pe(t)?Ui(Qv(t.allOf,e)):Nt(t)?Ne(Zv(t.anyOf,e)):gt(t)?ue(Vv(t.properties,e)):ue({})}function uh(t,e,n={}){if(ki(e))return rN(t,e,n);if(Ze(t))return Xv(t,e,n);const i=$t(e)?ni(e):e,s=dn(t,[Mn,"$id","required"]),c=H(sh(t,i),n);return{...s,...c}}function tN(t,e,n){return{[e]:uh(t,[e],n)}}function eN(t,e,n){return e.reduce((i,s)=>({...i,...tN(t,s,n)}),{})}function nN(t,e,n){return eN(t,e.keys,n)}function rN(t,e,n){const i=nN(t,e,n);return ge(i)}function iN(t){return Ti(Li(t))}function fu(t,e,n){return{...n,[U]:"Record",type:"object",patternProperties:{[t]:H(e)}}}function ch(t,e,n){const i=t.reduce((s,c)=>({...s,[c]:H(e)}),{});return ue(i,{...n,[ha]:"Record"})}function oN(t,e,n){return AR(t)?ch(ni(t),e,n):fu(t.pattern,e,n)}function sN(t,e,n){return ch(ni(Ne(t)),e,n)}function uN(t,e,n){return ch([t.toString()],e,n)}function cN(t,e,n){return fu(t.source,e,n)}function aN(t,e,n){const i=jt(t.pattern)?Dc:t.pattern;return fu(i,e,n)}function fN(t,e,n){return fu(Ls,e,n)}function lN(t,e,n){return fu(Ls,e,n)}function dN(t,e,n={}){return Nt(t)?sN(t.anyOf,e,n):Cn(t)?oN(t,e,n):gn(t)?uN(t.const,e,n):pn(t)?fN(t,e,n):le(t)?lN(t,e,n):go(t)?cN(t,e,n):Je(t)?aN(t,e,n):ve(n)}let hN=0;function mN(t,e={}){jt(e.$id)&&(e.$id=`T${hN++}`);const n=t({[U]:"This",$ref:`${e.$id}`});return n.$id=e.$id,H({...e,[ha]:"Recursive",...n})}function pN(t,e={}){if(ee(t))return{...e,[U]:"Ref",$ref:t};if(jt(t.$id))throw new Error("Reference target type must specify an $id");return{...e,[U]:"Ref",$ref:t.$id}}function gN(t,e={}){const n=ee(t)?new globalThis.RegExp(t):t;return{...e,[U]:"RegExp",type:"RegExp",source:n.source,flags:n.flags}}function Jg(t){return t.map(e=>wb(e))}function yN(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:dn(t[n],[Ci])}),{})}function wb(t){return pe(t)?Ui(Jg(t.allOf)):Nt(t)?Ne(Jg(t.anyOf)):gt(t)?ue(yN(t.properties)):ue({})}function Sb(t,e={}){if(Ze(t))return wN(t,e);{const n=dn(t,[Mn,"$id","required"]),i=H(wb(t),e);return{...n,...i}}}function _N(t,e){return globalThis.Object.getOwnPropertyNames(t).reduce((n,i)=>({...n,[i]:Sb(t[i],e)}),{})}function bN(t,e){return _N(t.properties,e)}function wN(t,e){const n=bN(t,e);return ge(n)}function SN(t){return pe(t)?[...t.allOf]:Nt(t)?[...t.anyOf]:Rr(t)?[...t.items??[]]:[]}function ON(t){return Jn(SN(t))}function IN(t,e={}){return H(t.returns,e)}function xN(t){return JSON.parse(JSON.stringify(t))}class FN{constructor(e){_(this,"schema");this.schema=e}Decode(e){return new $N(this.schema,e)}}class $N{constructor(e,n){_(this,"schema");_(this,"decode");this.schema=e,this.decode=n}EncodeTransform(e,n){const c={Encode:f=>n[Mn].Encode(e(f)),Decode:f=>this.decode(n[Mn].Decode(f))};return{...n,[Mn]:c}}EncodeSchema(e,n){const i={Decode:this.decode,Encode:e};return{...n,[Mn]:i}}Encode(e){const n=H(this.schema);return ei(n)?this.EncodeTransform(e,n):this.EncodeSchema(e,n)}}function PN(t){return new FN(t)}function Ob(t={}){return{...t,[U]:t[U]??"Unsafe"}}function MN(t={}){return{...t,[U]:"Void",type:"void"}}const RN=Object.freeze(Object.defineProperty({__proto__:null,Any:Us,Array:D_,AsyncIterator:B_,Awaited:RE,BigInt:Xd,Boolean:H_,Capitalize:Pv,Composite:KE,Const:YE,Constructor:j_,ConstructorParameters:zE,Date:ib,Deref:nr,Enum:cA,Exclude:nh,Extends:eh,Extract:rh,Function:ya,Index:iu,InstanceType:gv,Integer:yv,Intersect:Ui,Iterator:Q_,KeyOf:rb,Literal:qt,Lowercase:Mv,Mapped:gE,Never:ve,Not:Av,Null:ob,Number:Do,Object:ue,Omit:oh,Optional:Li,Parameters:Wv,Partial:bb,Pick:uh,Promise:Z_,Readonly:Ti,ReadonlyOptional:iN,Record:dN,Recursive:mN,Ref:pN,RegExp:gN,Required:Sb,Rest:ON,ReturnType:IN,Strict:xN,String:Xr,Symbol:sb,TemplateLiteral:Y_,Transform:PN,Tuple:ou,Uint8Array:cb,Uncapitalize:Rv,Undefined:ub,Union:Ne,Unknown:su,Unsafe:Ob,Uppercase:Ev,Void:MN},Symbol.toStringTag,{value:"Module"})),ot=RN;ot.Object({organizations:ot.Union([ot.Literal("dyne"),ot.Literal("ff3300"),ot.Literal("freelance"),ot.Literal("la-scuola-open-source")]),projects:ot.Union([ot.Literal("join"),ot.Literal("reaction-diffusion"),ot.Literal("scabec"),ot.Literal("signroom")]),work_experiences:ot.Union([ot.Literal("2019-07_oggi_freelance_docente"),ot.Literal("2021-05_oggi_sos"),ot.Literal("2021-09_2022-03_sos"),ot.Literal("2022-10_oggi_dyne")])});const EN={organizations:["dyne","ff3300","freelance","la-scuola-open-source"],projects:["join","reaction-diffusion","scabec","signroom"],work_experiences:["2019-07_oggi_freelance_docente","2021-05_oggi_sos","2021-09_2022-03_sos","2022-10_oggi_dyne"]};const AN=t=>typeof t=="function",x=function(t,e){if(typeof t=="function")return function(){return t(arguments)?e.apply(this,arguments):n=>e(n,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(n,i){return arguments.length>=2?e(n,i):function(s){return e(s,n)}};case 3:return function(n,i,s){return arguments.length>=3?e(n,i,s):function(c){return e(c,n,i)}};case 4:return function(n,i,s,c){return arguments.length>=4?e(n,i,s,c):function(f){return e(f,n,i,s)}};case 5:return function(n,i,s,c,f){return arguments.length>=5?e(n,i,s,c,f):function(d){return e(d,n,i,s,c)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const n=arguments;return function(i){return e(i,...n)}}}},ie=t=>t,Sa=t=>()=>t,Xg=Sa(!0),Ql=Sa(!1),vN=Sa(void 0);function P(t,e,n,i,s,c,f,d,p){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return s(i(n(e(t))));case 6:return c(s(i(n(e(t)))));case 7:return f(c(s(i(n(e(t))))));case 8:return d(f(c(s(i(n(e(t)))))));case 9:return p(d(f(c(s(i(n(e(t))))))));default:{let y=arguments[0];for(let M=1;MNN,Zl=Symbol.for(`effect/GlobalValue/globalStoreId/${qc()}`);Zl in globalThis||(globalThis[Zl]=new Map);const Rl=globalThis[Zl],Rt=(t,e)=>(Rl.has(t)||Rl.set(t,e()),Rl.get(t)),CN=t=>typeof t=="string",Rc=t=>typeof t=="number",kN=t=>typeof t=="bigint",js=AN,TN=t=>typeof t=="object"&&t!==null,Ib=t=>TN(t)||js(t),at=x(2,(t,e)=>Ib(t)&&e in t),xb=x(2,(t,e)=>at(t,"_tag")&&t._tag===e),oo=t=>t==null,Fb=t=>at(t,Symbol.iterator),LN=t=>at(t,"then")&&"catch"in t&&js(t.then)&&js(t.catch),UN=335903614,DN=4150755663,BN=1481765933,jN=1284865837,qN=9007199254740992,WN=134217728;class $b{constructor(e,n,i,s){_(this,"_state");return oo(n)&&oo(e)?(n=Math.random()*4294967295>>>0,e=0):oo(n)&&(n=e,e=0),oo(s)&&oo(i)?(s=this._state?this._state[3]:DN,i=this._state?this._state[2]:UN):oo(s)&&(s=i,i=0),this._state=new Int32Array([0,0,i>>>0,((s||0)|1)>>>0]),this._next(),Qg(this._state,this._state[0],this._state[1],e>>>0,n>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(e){this._state[0]=e[0],this._state[1]=e[1],this._state[2]=e[2],this._state[3]=e[3]|1}integer(e){if(!e)return this._next();if(e=e>>>0,!(e&e-1))return this._next()&e-1;let n=0;const i=(-e>>>0)%e>>>0;for(n=this._next();n>>0,n=this._state[1]>>>0;KN(this._state,e,n,BN,jN),Qg(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let i=e>>>18,s=(n>>>18|e<<14)>>>0;i=(i^e)>>>0,s=(s^n)>>>0;const c=(s>>>27|i<<5)>>>0,f=e>>>27,d=(-f>>>0&31)>>>0;return(c>>>f|c<>>0}}function KN(t,e,n,i,s){let c=(n>>>16)*(s&65535)>>>0,f=(n&65535)*(s>>>16)>>>0,d=(n&65535)*(s&65535)>>>0,p=(n>>>16)*(s>>>16)+((f>>>16)+(c>>>16))>>>0;f=f<<16>>>0,d=d+f>>>0,d>>>0>>0&&(p=p+1>>>0),c=c<<16>>>0,d=d+c>>>0,d>>>0>>0&&(p=p+1>>>0),p=p+Math.imul(n,i)>>>0,p=p+Math.imul(e,s)>>>0,t[0]=p,t[1]=d}function Qg(t,e,n,i,s){let c=e+i>>>0;const f=n+s>>>0;f>>>0>>0&&(c=c+1|0),t[0]=c,t[1]=f}const El=Rt(Symbol.for("effect/Hash/randomHashCache"),()=>new WeakMap),HN=Rt(Symbol.for("effect/Hash/pcgr"),()=>new $b),rt=Symbol.for("effect/Hash"),K=t=>{switch(typeof t){case"number":return ah(t);case"bigint":return fe(t.toString(10));case"boolean":return fe(String(t));case"symbol":return fe(String(t));case"string":return fe(t);case"undefined":return fe("undefined");case"function":case"object":return t===null?fe("null"):GN(t)?t[rt]():lu(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},lu=t=>(El.has(t)||El.set(t,ah(HN.integer(Number.MAX_SAFE_INTEGER))),El.get(t)),_t=t=>e=>e*53^t,Oa=t=>t&3221225471|t>>>1&1073741824,GN=t=>at(t,rt),ah=t=>{if(t!==t||t===1/0)return 0;let e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)e^=t/=4294967295;return Oa(t)},fe=t=>{let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return Oa(e)},YN=(t,e)=>{let n=12289;for(let i=0;iYN(t,Object.keys(t)),du=t=>{let e=6151;for(let n=0;nZg(t,arguments[0]):Zg(arguments[0],arguments[1])}function Zg(t,e){if(t===e)return!0;const n=typeof t;return n!==typeof e?!1:(n==="object"||n==="function")&&t!==null&&e!==null&&Wc(t)&&Wc(e)?K(t)===K(e)&&t[nt](e):!1}const Wc=t=>at(t,nt),fh=()=>ct,lh=t=>(e,n)=>e===n||t(e,n),zN=x(2,(t,e)=>lh((n,i)=>t(e(n),e(i)))),JN=t=>lh((e,n)=>{if(e.length!==n.length)return!1;for(let i=0;iat(t,"toJSON")&&js(t.toJSON)&&t.toJSON.length===0?t.toJSON():Array.isArray(t)?t.map(te):t,ye=t=>JSON.stringify(t,null,2),X=(t,e)=>{switch(e.length){case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let n=t;for(let i=0,s=e.length;it,_E:t=>t,_A:t=>t,_V:qc()},tC={_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},eC={_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},Ia={[Ab]:_o,[QN]:_o,[ZN]:tC,[VN]:eC,[nt](t){return this===t},[rt](){return Wt(this,lu(this))},pipe(){return X(this,arguments)}},hh={[rt](){return Wt(this,Pb(this))},[nt](t){const e=Object.keys(this),n=Object.keys(t);if(e.length!==n.length)return!1;for(const i of e)if(!(i in t&&ct(this[i],t[i])))return!1;return!0}},nC={...Ia,_op:Mb},rC={...nC,...hh},vb=Symbol.for("effect/Option"),Nb={...Ia,[vb]:{_A:t=>t},[Kt](){return this.toJSON()},toString(){return ye(this.toJSON())}},iC=Object.assign(Object.create(Nb),{_tag:"Some",_op:"Some",[nt](t){return Cb(t)&&Tb(t)&&ct(t.value,this.value)},[rt](){return Wt(this,_t(K(this._tag))(K(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:te(this.value)}}}),oC=K("None"),sC=Object.assign(Object.create(Nb),{_tag:"None",_op:"None",[nt](t){return Cb(t)&&kb(t)},[rt](){return oC},toJSON(){return{_id:"Option",_tag:this._tag}}}),Cb=t=>at(t,vb),kb=t=>t._tag==="None",Tb=t=>t._tag==="Some",Lb=Object.create(sC),Ub=t=>{const e=Object.create(iC);return e.value=t,e},Db=Symbol.for("effect/Either"),Bb={...Ia,[Db]:{_R:t=>t},[Kt](){return this.toJSON()},toString(){return ye(this.toJSON())}},uC=Object.assign(Object.create(Bb),{_tag:"Right",_op:"Right",[nt](t){return jb(t)&&Wb(t)&&ct(t.right,this.right)},[rt](){return _t(K(this._tag))(K(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:te(this.right)}}}),cC=Object.assign(Object.create(Bb),{_tag:"Left",_op:"Left",[nt](t){return jb(t)&&qb(t)&&ct(t.left,this.left)},[rt](){return _t(K(this._tag))(K(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:te(this.left)}}}),jb=t=>at(t,Db),qb=t=>t._tag==="Left",Wb=t=>t._tag==="Right",aC=t=>{const e=Object.create(cC);return e.left=t,e},fC=t=>{const e=Object.create(uC);return e.right=t,e},Kb=t=>(e,n)=>e===n?0:t(e,n),lC=Kb((t,e)=>tKb((n,i)=>t(e(n),e(i)))),hC=t=>x(2,(e,n)=>t(e,n)===1),Z=()=>Lb,bt=Ub,Ye=kb,Qn=Tb,Di=x(2,(t,{onNone:e,onSome:n})=>Ye(t)?e():n(t.value)),$i=x(2,(t,e)=>Ye(t)?e():t.value),mh=t=>t==null?Z():bt(t),gi=$i(vN),mC=x(2,(t,e)=>{if(Qn(t))return t.value;throw e()}),pC=mC(()=>new Error("getOrThrow called on a None")),gC=x(2,(t,e)=>Ye(t)?Z():bt(e(t.value))),Hb=x(2,(t,e)=>Ye(t)?Z():e(t.value)),yC=t=>x(2,(e,n)=>Ye(e)?!1:t(e.value,n)),_C=fh(),bC=yC(_C),br=fC,bo=aC,Es=qb,xc=Wb,wC=x(2,(t,{onLeft:e,onRight:n})=>Es(t)?e(t.left):n(t.right)),SC=wC({onLeft:ie,onRight:ie}),Gb=t=>t.length>0,OC=x(2,(t,e)=>{const n=[];for(const i of xC(t))n.push(e(i,t[i]));return n}),IC=OC((t,e)=>[t,e]),xC=t=>Object.keys(t),FC=(...t)=>t,$C=(t,e)=>{const n=Math.max(1,Math.floor(t)),i=[e(0)];for(let s=1;sArray.isArray(t)?t:Array.from(t),Yc=x(2,(t,e)=>[e,...t]),PC=x(2,(t,e)=>[...t,e]),Yb=x(2,(t,e)=>Yt(t).concat(Yt(e))),MC=t=>t.length===0,RC=MC,EC=Gb,Xe=Gb,zb=(t,e)=>t<0||t>=e.length,AC=(t,e)=>Math.floor(Math.min(Math.max(0,t),e.length)),vC=x(2,(t,e)=>{const n=Math.floor(e);return zb(n,t)?Z():bt(t[n])}),Jb=x(2,(t,e)=>{const n=Math.floor(e);if(zb(n,t))throw new Error(`Index ${n} out of bounds`);return t[n]}),lo=vC(0),ze=Jb(0),NC=t=>Xe(t)?bt(Xb(t)):Z(),Xb=t=>t[t.length-1],wo=t=>t.slice(1),CC=(t,e)=>{let n=0;for(const i of t){if(!e(i,n))break;n++}return n},kC=x(2,(t,e)=>DC(t,CC(t,e))),TC=x(2,(t,e)=>{const n=Yt(t);return n.slice(AC(e,n),n.length)}),Vg=t=>Array.from(t).reverse(),zc=x(2,(t,e)=>{const n=Array.from(t);return n.sort(e),n}),ty=x(2,(t,e)=>LC(t,e,FC)),LC=x(3,(t,e,n)=>{const i=Yt(t),s=Yt(e);if(Xe(i)&&Xe(s)){const c=[n(ze(i),ze(s))],f=Math.min(i.length,s.length);for(let d=1;d{const n=Array.from(t),i=Math.floor(e);return Xe(n)?i>=1?BC(n,i):[[],n]:[n,[]]}),BC=x(2,(t,e)=>{const n=Math.max(1,Math.floor(e));return n>=t.length?[jC(t),[]]:[Yc(t.slice(1,n),ze(t)),t.slice(n)]}),jC=t=>t.slice(),qC=x(3,(t,e,n)=>{const i=Yt(t),s=Yt(e);return Xe(i)?Xe(s)?Vb(n)(Yb(i,s)):i:s}),Vl=x(2,(t,e)=>qC(t,e,UC)),So=()=>[],$n=t=>[t],zr=x(2,(t,e)=>t.map(e)),WC=x(2,(t,e)=>{if(RC(t))return[];const n=[];for(let i=0;i{const n=Yt(t),i=[];for(let s=0;sYt(t).reduce((i,s,c)=>n(i,s,c),e)),ey=(t,e)=>{const n=[];let i=t,s;for(;Qn(s=e(i));){const[c,f]=s.value;n.push(c),i=f}return n},ph=JN,Vb=x(2,(t,e)=>{const n=Yt(t);if(Xe(n)){const i=[ze(n)],s=wo(n);for(const c of s)i.every(f=>!e(c,f))&&i.push(c);return i}return[]}),HC=t=>Vb(t,fh()),qo=x(2,(t,e)=>Yt(t).join(e)),GC=Symbol.for("effect/Context/Tag"),YC="effect/STM",zC=Symbol.for(YC),JC={...Ia,_tag:"Tag",_op:"Tag",[zC]:_o,[GC]:{_Service:t=>t,_Identifier:t=>t},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[Kt](){return this.toJSON()},of(t){return t},context(t){return e0(this,t)}},XC=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;Error.stackTraceLimit=e;const i=Object.create(JC);return Object.defineProperty(i,"stack",{get(){return n.stack}}),i.key=t,i},t0=Symbol.for("effect/Context"),QC={[t0]:{_Services:t=>t},[nt](t){if(VC(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!ct(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[rt](){return Wt(this,ah(this.unsafeMap.size))},pipe(){return X(this,arguments)},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(te)}},[Kt](){return this.toJSON()}},Oo=t=>{const e=Object.create(QC);return e.unsafeMap=t,e},ZC=t=>{const e=new Error(`Service not found${t.key?`: ${String(t.key)}`:""}`);if(t.stack){const n=t.stack.split(` `);if(n.length>2){const i=n[2].match(/at (.*)/);i&&(e.message=e.message+` (defined at ${i[1]})`)}}if(e.stack){const n=e.stack.split(` `);n.splice(1,3),e.stack=n.join(` -`)}return e},tk=t=>at(t,e0),ek=Oo(new Map),nk=()=>ek,n0=(t,e)=>Oo(new Map([[t.key,e]])),rk=x(3,(t,e,n)=>{const i=new Map(t.unsafeMap);return i.set(e.key,n),Oo(i)}),r0=x(2,(t,e)=>{if(!t.unsafeMap.has(e.key))throw VC(e);return t.unsafeMap.get(e.key)}),ik=r0,ok=x(2,(t,e)=>t.unsafeMap.has(e.key)?Db(t.unsafeMap.get(e.key)):Ub),sk=x(2,(t,e)=>{const n=new Map(t.unsafeMap);for(const[i,s]of e.unsafeMap)n.set(i,s);return Oo(n)}),Bi=QC,gh=nk,uk=n0,Os=rk,As=ik,ck=r0,mu=ok,ak=sk,i0=Symbol.for("effect/Chunk");function fk(t,e,n,i,s){for(let c=e;clh((e,n)=>e.length===n.length&&vs(e).every((i,s)=>t(i,ho(n,s)))),dk=lk(ct),hk={[i0]:{_A:t=>t},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Chunk",values:vs(this).map(te)}},[Kt](){return this.toJSON()},[nt](t){return s0(t)&&dk(this,t)},[rt](){return Wt(this,du(vs(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return o0[Symbol.iterator]();default:return vs(this)[Symbol.iterator]()}},pipe(){return X(this,arguments)}},Gt=t=>{const e=Object.create(hk);switch(e.backing=t,t._tag){case"IEmpty":{e.length=0,e.depth=0,e.left=e,e.right=e;break}case"IConcat":{e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break}case"IArray":{e.length=t.array.length,e.depth=0,e.left=Gn,e.right=Gn;break}case"ISingleton":{e.length=1,e.depth=0,e.left=Gn,e.right=Gn;break}case"ISlice":{e.length=t.length,e.depth=t.chunk.depth+1,e.left=Gn,e.right=Gn;break}}return e},s0=t=>at(t,i0),Gn=Gt({_tag:"IEmpty"}),Pi=()=>Gn,Ir=t=>Gt({_tag:"ISingleton",a:t}),u0=t=>s0(t)?t:Gt({_tag:"IArray",array:Yt(t)}),td=(t,e,n)=>{switch(t.backing._tag){case"IArray":{fk(t.backing.array,0,e,n,t.length);break}case"IConcat":{td(t.left,e,n),td(t.right,e,n+t.left.length);break}case"ISingleton":{e[n]=t.backing.a;break}case"ISlice":{let i=0,s=n;for(;i{switch(t.backing._tag){case"IEmpty":return o0;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return td(t,e,0),t.backing={_tag:"IArray",array:e},t.left=Gn,t.right=Gn,t.depth=0,e}}},Io=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Gt({_tag:"IArray",array:Vg(t.backing.array)});case"IConcat":return Gt({_tag:"IConcat",left:Io(t.backing.right),right:Io(t.backing.left)});case"ISlice":return c0(Vg(vs(t)))}},c0=t=>Gt({_tag:"IArray",array:t}),ho=x(2,(t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":{if(e!==0)throw new Error("Index out of bounds");return t.backing.a}case"IArray":{if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e]}case"IConcat":return eWr(Ir(e),t)),ed=x(2,(t,e)=>{if(e<=0)return t;if(e>=t.length)return Gn;switch(t.backing._tag){case"ISlice":return Gt({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?ed(t.right,e-t.left.length):Gt({_tag:"IConcat",left:ed(t.left,e),right:t.right});default:return Gt({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}}),Wr=x(2,(t,e)=>{if(t.backing._tag==="IEmpty")return e;if(e.backing._tag==="IEmpty")return t;const n=e.depth-t.depth;if(Math.abs(n)<=1)return Gt({_tag:"IConcat",left:t,right:e});if(n<-1)if(t.left.depth>=t.right.depth){const i=Wr(t.right,e);return Gt({_tag:"IConcat",left:t.left,right:i})}else{const i=Wr(t.right.right,e);if(i.depth===t.depth-3){const s=Gt({_tag:"IConcat",left:t.right.left,right:i});return Gt({_tag:"IConcat",left:t.left,right:s})}else{const s=Gt({_tag:"IConcat",left:t.left,right:t.right.left});return Gt({_tag:"IConcat",left:s,right:i})}}else if(e.right.depth>=e.left.depth){const i=Wr(t,e.left);return Gt({_tag:"IConcat",left:i,right:e.right})}else{const i=Wr(t,e.left.left);if(i.depth===e.depth-3){const s=Gt({_tag:"IConcat",left:i,right:e.left.right});return Gt({_tag:"IConcat",left:s,right:e.right})}else{const s=Gt({_tag:"IConcat",left:e.left.right,right:e.right});return Gt({_tag:"IConcat",left:i,right:s})}}}),mk=t=>t.length===0,xo=t=>t.length>0,a0=t=>ho(t,0),Fo=a0,bi=t=>ed(t,1),Mi=5,yh=Math.pow(2,Mi),pk=yh-1,gk=yh/2,yk=yh/4;function _k(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function $o(t,e){return e>>>t&pk}function ao(t){return 1<({value:t,previous:e});function mo(t,e,n,i){let s=i;if(!t){const c=i.length;s=new Array(c);for(let f=0;f=e;)i[p--]=i[p];return i[e]=n,i}let c=0,f=0;const d=new Array(s+1);for(;c1?new _h(e,this.hash,y):y[0]}const d=i(Z());return Ye(d)?this:(++f.value,d0(e,n,this.hash,this,s,new Ii(e,s,c,d)))}updateCollisionList(e,n,i,s,c,f,d){const p=s.length;for(let M=0;M=gk?Ik(e,y,pt,d,p):new Po(e,d|M,wk(C,A,pt,p)):this}const B=p[A],mt=B.modify(e,n+Mi,i,s,c,f);if(B===mt)return this;let tt=d,Ft;if(Rn(mt)){if(tt&=~M,!tt)return new Qr;if(p.length<=2&&Sk(p[A^1]))return p[A^1];Ft=l0(C,A,p)}else Ft=mo(C,A,mt,p);return C?(this.mask=tt,this.children=Ft,this):new Po(e,tt,Ft)}}class bh{constructor(e,n,i){_(this,"edit");_(this,"size");_(this,"children");_(this,"_tag","ArrayNode");this.edit=e,this.size=n,this.children=i}modify(e,n,i,s,c,f){let d=this.size;const p=this.children,y=$o(n,s),M=p[y],A=(M||new Qr).modify(e,n+Mi,i,s,c,f);if(M===A)return this;const N=xa(this,e);let C;if(Rn(M)&&!Rn(A))++d,C=mo(N,y,A,p);else if(!Rn(M)&&Rn(A)){if(--d,d<=yk)return Ok(e,d,y,p);C=mo(N,y,new Qr,p)}else C=mo(N,y,A,p);return N?(this.size=d,this.children=C,this):new bh(e,d,C)}}function Ok(t,e,n,i){const s=new Array(e-1);let c=0,f=0;for(let d=0,p=i.length;d>>=1;return c[e]=n,new bh(t,d+1,c)}function xk(t,e,n,i,s,c){if(n===s)return new _h(t,n,[c,i]);const f=$o(e,n),d=$o(e,s);if(f===d)return p=>new Po(t,ao(f)|ao(d),[p]);{const p=f[t,e])},[rt](){let t=K(h0);for(const e of this)t^=P(K(e[0]),_t(K(e[1])));return Wt(this,t)},[nt](t){if(Mk(t)){if(t._size!==this._size)return!1;for(const e of this){const n=P(t,Sh(e[0],K(e[0])));if(Ye(n))return!1;if(!ct(e[1],n.value))return!1}return!0}return!1},toString(){return ye(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(te)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},wh=(t,e,n,i)=>{const s=Object.create(Fk);return s._editable=t,s._edit=e,s._root=n,s._size=i,s};class Fa{constructor(e,n){_(this,"map");_(this,"f");_(this,"v");this.map=e,this.f=n,this.v=m0(this.map._root,this.f,void 0)}next(){if(Ye(this.v))return{done:!0,value:void 0};const e=this.v.value;return this.v=Jc(e.cont),{done:!1,value:e.value}}[Symbol.iterator](){return new Fa(this.map,this.f)}}const Jc=t=>t?p0(t[0],t[1],t[2],t[3],t[4]):Z(),m0=(t,e,n=void 0)=>{switch(t._tag){case"LeafNode":return Qn(t.value)?bt({value:e(t.key,t.value.value),cont:n}):Jc(n);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const i=t.children;return p0(i.length,i,0,e,n)}default:return Jc(n)}},p0=(t,e,n,i,s)=>{for(;n$k,Pk=(...t)=>g0(t),g0=t=>{const e=_0($a());for(const n of t)qs(e,n[0],n[1]);return Nk(e)},Mk=t=>at(t,nd),Rk=t=>t&&Rn(t._root),Ek=x(2,(t,e)=>Sh(t,e,K(e))),Sh=x(3,(t,e,n)=>{let i=t._root,s=0;for(;;)switch(i._tag){case"LeafNode":return ct(e,i.key)?i.value:Z();case"CollisionNode":{if(n===i.hash){const c=i.children;for(let f=0,d=c.length;fQn(Sh(t,e,K(e)))),qs=x(3,(t,e,n)=>b0(t,e,()=>bt(n))),vk=x(3,(t,e,n)=>t._editable?(t._root=e,t._size=n,t):e===t._root?t:wh(t._editable,t._edit,e,n)),y0=t=>new Fa(t,e=>e),Xc=t=>t._size,_0=t=>wh(!0,t._edit+1,t._root,t._size),Nk=t=>(t._editable=!1,t),b0=x(3,(t,e,n)=>Ck(t,e,K(e),n)),Ck=x(4,(t,e,n,i)=>{const s={value:t._size},c=t._root.modify(t._editable?t._edit:NaN,0,i,n,e,s);return P(t,vk(c,s.value))}),ny=x(2,(t,e)=>b0(t,e,Z)),kk=x(2,(t,e)=>Pa(t,$a(),(n,i,s)=>qs(n,s,e(i,s)))),Tk=x(2,(t,e)=>Pa(t,void 0,(n,i,s)=>e(i,s))),Pa=x(3,(t,e,n)=>{const i=t._root;if(i._tag==="LeafNode")return Qn(i.value)?n(e,i.value.value,i.key):e;if(i._tag==="EmptyNode")return e;const s=[i.children];let c;for(;c=s.pop();)for(let f=0,d=c.length;f{const e=Object.create(Lk);return e._keyMap=t,e},Uk=t=>at(t,rd),Dk=Ma($a()),Ra=()=>Dk,Bk=t=>{const e=Oh(Ra());for(const n of t)Ws(e,n);return Ih(e)},jk=(...t)=>{const e=Oh(Ra());for(const n of t)Ws(e,n);return Ih(e)},qk=x(2,(t,e)=>Ak(t._keyMap,e)),Wk=t=>Xc(t._keyMap),Oh=t=>Ma(_0(t._keyMap)),Ih=t=>(t._keyMap._editable=!1,t),S0=x(2,(t,e)=>{const n=Oh(t);return e(n),Ih(n)}),Ws=x(2,(t,e)=>t._keyMap._editable?(qs(e,!0)(t._keyMap),t):Ma(qs(e,!0)(t._keyMap))),O0=x(2,(t,e)=>t._keyMap._editable?(ny(e)(t._keyMap),t):Ma(ny(e)(t._keyMap))),Kk=x(2,(t,e)=>S0(t,n=>{for(const i of e)O0(n,i)})),Hk=x(2,(t,e)=>S0(Ra(),n=>{Gk(t,i=>Ws(n,i));for(const i of e)Ws(n,i)})),Gk=x(2,(t,e)=>Tk(t._keyMap,(n,i)=>e(i))),Yk=x(3,(t,e,n)=>Pa(t._keyMap,e,(i,s,c)=>n(i,c))),Ri=Ra,zk=Bk,xh=jk,Jk=qk,I0=Wk,Ns=Ws,x0=O0,ry=Kk,Ks=Hk,Qc=Yk,iy=Symbol.for("effect/MutableRef"),Xk={[iy]:iy,toString(){return ye(this.toJSON())},toJSON(){return{_id:"MutableRef",current:te(this.current)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},F0=t=>{const e=Object.create(Xk);return e.current=t,e},Ea=t=>t.current,Aa=x(2,(t,e)=>(t.current=e,t)),Fh="effect/FiberId",Hs=Symbol.for(Fh),Zc="None",id="Runtime",Qk="Composite",Zk=fe(`${Fh}-${Zc}`);var X6;let Vk=class{constructor(){_(this,X6,Hs);_(this,"_tag",Zc);_(this,"id",-1);_(this,"startTimeMillis",-1)}[(X6=Hs,rt)](){return Zk}[nt](e){return $0(e)&&e._tag===Zc}toString(){return ye(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[Kt](){return this.toJSON()}};var Q6;class t2{constructor(e,n){_(this,"id");_(this,"startTimeMillis");_(this,Q6,Hs);_(this,"_tag",id);this.id=e,this.startTimeMillis=n}[(Q6=Hs,rt)](){return Wt(this,fe(`${Fh}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[nt](e){return $0(e)&&e._tag===id&&this.id===e.id&&this.startTimeMillis===e.startTimeMillis}toString(){return ye(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[Kt](){return this.toJSON()}}const e2=new Vk,$0=t=>at(t,Hs),od=t=>{switch(t._tag){case Zc:return Ri();case id:return xh(t.id);case Qk:return P(od(t.left),Ks(od(t.right)))}},oy=Rt(Symbol.for("effect/Fiber/Id/_fiberCounter"),()=>F0(0)),P0=t=>Array.from(od(t)).map(n=>`#${n}`).join(","),n2=()=>{const t=Ea(oy);return P(oy,Aa(t+1)),new t2(t,Date.now())},$h=e2,r2=P0,M0=n2,Ph=$a,i2=Pk,o2=g0,s2=Rk,R0=Ek,E0=qs,A0=y0,u2=Xc,v0=kk,N0=Pa,Gs=Symbol.for("effect/List"),sd=t=>Array.from(t),c2=t=>JN(ph(t),sd),a2=c2(ct),f2={[Gs]:Gs,_tag:"Cons",toString(){return ye(this.toJSON())},toJSON(){return{_id:"List",_tag:"Cons",values:sd(this).map(te)}},[Kt](){return this.toJSON()},[nt](t){return k0(t)&&this._tag===t._tag&&a2(this,t)},[rt](){return Wt(this,du(sd(this)))},[Symbol.iterator](){let t=!1,e=this;return{next(){if(t)return this.return();if(e._tag==="Nil")return t=!0,this.return();const n=e.head;return e=e.tail,{done:t,value:n}},return(n){return t||(t=!0),{done:!0,value:n}}}},pipe(){return X(this,arguments)}},Vc=(t,e)=>{const n=Object.create(f2);return n.head=t,n.tail=e,n},l2=fe("Nil"),d2={[Gs]:Gs,_tag:"Nil",toString(){return ye(this.toJSON())},toJSON(){return{_id:"List",_tag:"Nil"}},[Kt](){return this.toJSON()},[rt](){return l2},[nt](t){return k0(t)&&this._tag===t._tag},[Symbol.iterator](){return{next(){return{done:!0,value:void 0}}}},pipe(){return X(this,arguments)}},C0=Object.create(d2),k0=t=>at(t,Gs),Sr=t=>t._tag==="Nil",T0=t=>t._tag==="Cons",h2=()=>C0,Ei=(t,e)=>Vc(t,e),Mo=h2,Mh=t=>Vc(t,C0),m2=x(2,(t,e)=>g2(e,t)),p2=x(2,(t,e)=>Ei(e,t)),g2=x(2,(t,e)=>{if(Sr(t))return e;if(Sr(e))return t;{const n=Vc(e.head,t);let i=n,s=e.tail;for(;!Sr(s);){const c=Vc(s.head,t);i.tail=c,i=c,s=s.tail}return n}}),y2=x(3,(t,e,n)=>{let i=e,s=t;for(;!Sr(s);)i=n(i,s.head),s=s.tail;return i}),_2=t=>{let e=Mo(),n=t;for(;!Sr(n);)e=p2(e,n.head),n=n.tail;return e},Wo=function(){function t(e){e&&Object.assign(this,e)}return t.prototype=hh,t}(),b2=Symbol.for("effect/DifferChunkPatch");function sy(t){return t}({...Wo.prototype,[b2]:0});const w2=Symbol.for("effect/DifferContextPatch");function uy(t){return t}const pu={...Wo.prototype,[w2]:{_Value:uy,_Patch:uy}},S2=Object.assign(Object.create(pu),{_tag:"Empty"}),O2=Object.create(S2),L0=()=>O2,I2=Object.assign(Object.create(pu),{_tag:"AndThen"}),x2=(t,e)=>{const n=Object.create(I2);return n.first=t,n.second=e,n},F2=Object.assign(Object.create(pu),{_tag:"AddService"}),$2=(t,e)=>{const n=Object.create(F2);return n.key=t,n.service=e,n},P2=Object.assign(Object.create(pu),{_tag:"RemoveService"}),M2=t=>{const e=Object.create(P2);return e.key=t,e},R2=Object.assign(Object.create(pu),{_tag:"UpdateService"}),E2=(t,e)=>{const n=Object.create(R2);return n.key=t,n.update=e,n},A2=(t,e)=>{const n=new Map(t.unsafeMap);let i=L0();for(const[s,c]of e.unsafeMap.entries())if(n.has(s)){const f=n.get(s);n.delete(s),ct(f,c)||(i=vc(E2(s,()=>c))(i))}else n.delete(s),i=vc($2(s,c))(i);for(const[s]of n.entries())i=vc(M2(s))(i);return i},vc=x(2,(t,e)=>x2(t,e)),v2=x(2,(t,e)=>{if(t._tag==="Empty")return e;let n=!1,i=Ir(t);const s=new Map(e.unsafeMap);for(;xo(i);){const f=Fo(i),d=bi(i);switch(f._tag){case"Empty":{i=d;break}case"AddService":{s.set(f.key,f.service),i=d;break}case"AndThen":{i=Tn(Tn(d,f.second),f.first);break}case"RemoveService":{s.delete(f.key),i=d;break}case"UpdateService":{s.set(f.key,f.update(s.get(f.key))),n=!0,i=d;break}}}if(!n)return Oo(s);const c=new Map;for(const[f]of e.unsafeMap)s.has(f)&&(c.set(f,s.get(f)),s.delete(f));for(const[f,d]of s)c.set(f,d);return Oo(c)}),N2=Symbol.for("effect/DifferHashMapPatch");function vl(t){return t}({...Wo.prototype,[N2]:0});const C2=Symbol.for("effect/DifferHashSetPatch");function Nl(t){return t}const va={...Wo.prototype,[C2]:{_Value:Nl,_Key:Nl,_Patch:Nl}},k2=Object.assign(Object.create(va),{_tag:"Empty"}),T2=Object.create(k2),U0=()=>T2,L2=Object.assign(Object.create(va),{_tag:"AndThen"}),U2=(t,e)=>{const n=Object.create(L2);return n.first=t,n.second=e,n},D2=Object.assign(Object.create(va),{_tag:"Add"}),B2=t=>{const e=Object.create(D2);return e.value=t,e},j2=Object.assign(Object.create(va),{_tag:"Remove"}),q2=t=>{const e=Object.create(j2);return e.value=t,e},W2=(t,e)=>{const[n,i]=Qc([t,U0()],([s,c],f)=>Jk(f)(s)?[x0(f)(s),c]:[s,ud(B2(f))(c)])(e);return Qc(i,(s,c)=>ud(q2(c))(s))(n)},ud=x(2,(t,e)=>U2(t,e)),K2=x(2,(t,e)=>{if(t._tag==="Empty")return e;let n=e,i=Ir(t);for(;xo(i);){const s=Fo(i),c=bi(i);switch(s._tag){case"Empty":{i=c;break}case"AndThen":{i=Tn(s.first)(Tn(s.second)(c));break}case"Add":{n=Ns(s.value)(n),i=c;break}case"Remove":n=x0(s.value)(n),i=c}}return n}),H2=Symbol.for("effect/DifferOrPatch");function Cl(t){return t}({...Wo.prototype,[H2]:0});const G2=Symbol.for("effect/DifferReadonlyArrayPatch");function cy(t){return t}const gu={...Wo.prototype,[G2]:{_Value:cy,_Patch:cy}},Y2=Object.assign(Object.create(gu),{_tag:"Empty"}),z2=Object.create(Y2),D0=()=>z2,J2=Object.assign(Object.create(gu),{_tag:"AndThen"}),X2=(t,e)=>{const n=Object.create(J2);return n.first=t,n.second=e,n},Q2=Object.assign(Object.create(gu),{_tag:"Append"}),Z2=t=>{const e=Object.create(Q2);return e.values=t,e},V2=Object.assign(Object.create(gu),{_tag:"Slice"}),tT=(t,e)=>{const n=Object.create(V2);return n.from=t,n.until=e,n},eT=Object.assign(Object.create(gu),{_tag:"Update"}),nT=(t,e)=>{const n=Object.create(eT);return n.index=t,n.patch=e,n},rT=t=>{let e=0,n=D0();for(;eX2(t,e)),iT=x(3,(t,e,n)=>{if(t._tag==="Empty")return e;let i=e.slice(),s=$n(t);for(;AC(s);){const c=ze(s),f=wo(s);switch(c._tag){case"Empty":{s=f;break}case"AndThen":{f.unshift(c.first,c.second),s=f;break}case"Append":{for(const d of c.values)i.push(d);s=f;break}case"Slice":{i=i.slice(c.from,c.until),s=f;break}case"Update":{i[c.index]=n.patch(c.patch,i[c.index]),s=f;break}}}return i}),oT=Symbol.for("effect/Differ"),sT={[oT]:{_P:ie,_V:ie}},Ko=t=>{const e=Object.create(sT);return e.empty=t.empty,e.diff=t.diff,e.combine=t.combine,e.patch=t.patch,e},uT=()=>Ko({empty:L0(),combine:(t,e)=>vc(e)(t),diff:(t,e)=>A2(t,e),patch:(t,e)=>v2(e)(t)}),cT=()=>Ko({empty:U0(),combine:(t,e)=>ud(e)(t),diff:(t,e)=>W2(t,e),patch:(t,e)=>K2(e)(t)}),aT=t=>Ko({empty:D0(),combine:(e,n)=>Nc(e,n),diff:(e,n)=>rT({oldValue:e,newValue:n,differ:t}),patch:(e,n)=>iT(e,n,t)}),B0=()=>fT((t,e)=>e),fT=t=>Ko({empty:ie,combine:(e,n)=>e===ie?n:n===ie?e:i=>n(e(i)),diff:(e,n)=>ct(e,n)?ie:Sa(n),patch:(e,n)=>t(n,e(n))}),Ys=255,j0=8,cd=t=>t&Ys,ad=t=>t>>j0&Ys,yu=(t,e)=>(t&Ys)+((e&t&Ys)<yu(t,t),hT=t=>yu(t,0),mT=x(2,(t,e)=>yu(cd(t)&~e,ad(t))),pT=x(2,(t,e)=>t|e),gT=t=>~t>>>0&Ys,yT=0,Ho=1,_T=2,q0=4,fd=16,W0=32,bT=t=>Na(t,W0),wT=x(2,(t,e)=>t|e),qr=t=>K0(t)&&!OT(t),K0=t=>Na(t,Ho),Na=x(2,(t,e)=>(t&e)!==0),H0=(...t)=>t.reduce((e,n)=>e|n,0),ST=H0(yT),ay=t=>Na(t,q0),OT=t=>Na(t,fd),Cc=x(2,(t,e)=>yu(t^e,e)),kc=x(2,(t,e)=>t&(gT(cd(e))|ad(e))|cd(e)&ad(e)),fy=Ko({empty:lT,diff:(t,e)=>Cc(t,e),combine:(t,e)=>pT(e)(t),patch:(t,e)=>kc(e,t)}),IT=dT,G0=hT,ly=mT,Y0=(t,e)=>({_tag:"Par",left:t,right:e}),Fc=(t,e)=>({_tag:"Seq",left:t,right:e}),xT=t=>{let e=Mh(t),n=Mo();for(;;){const[i,s]=y2(e,[z0(),Mo()],([c,f],d)=>{const[p,y]=FT(d);return[J0(c,p),m2(f,y)]});if(n=$T(n,i),Sr(s))return _2(n);e=s}throw new Error("BUG: BlockedRequests.flatten - please report an issue at https://github.com/Effect-TS/effect/issues")},FT=t=>{let e=t,n=z0(),i=Mo(),s=Mo();for(;;)switch(e._tag){case"Empty":{if(Sr(i))return[n,s];e=i.head,i=i.tail;break}case"Par":{i=Ei(e.right,i),e=e.left;break}case"Seq":{const c=e.left,f=e.right;switch(c._tag){case"Empty":{e=f;break}case"Par":{const d=c.left,p=c.right;e=Y0(Fc(d,f),Fc(p,f));break}case"Seq":{const d=c.left,p=c.right;e=Fc(d,Fc(p,f));break}case"Single":{e=c,s=Ei(f,s);break}}break}case"Single":{if(n=J0(n,RT(e.dataSource,e.blockedRequest)),Sr(i))return[n,s];e=i.head,i=i.tail;break}}throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues")},$T=(t,e)=>{if(Sr(t))return Mh(kl(e));if(ET(e))return t;const n=TT(t.head),i=AT(e);return n.length===1&&i.length===1&&ct(n[0],i[0])?Ei(kT(t.head,kl(e)),t.tail):Ei(kl(e),t)},PT=Symbol.for("effect/RequestBlock/RequestBlockParallel"),MT={_R:t=>t};var Z6;class Rh{constructor(e){_(this,"map");_(this,Z6,MT);this.map=e}}Z6=PT;const z0=()=>new Rh(Ph()),RT=(t,e)=>new Rh(i2([t,Array.of(e)])),J0=(t,e)=>new Rh(N0(t.map,e.map,(n,i,s)=>E0(n,s,Di(R0(n,s),{onNone:()=>i,onSome:c=>[...i,...c]})))),ET=t=>s2(t.map),AT=t=>Array.from(A0(t.map)),kl=t=>CT(v0(t.map,e=>Array.of(e))),vT=Symbol.for("effect/RequestBlock/RequestBlockSequential"),NT={_R:t=>t};var V6;class X0{constructor(e){_(this,"map");_(this,V6,NT);this.map=e}}V6=vT;const CT=t=>new X0(t),kT=(t,e)=>new X0(N0(e.map,t.map,(n,i,s)=>E0(n,s,Di(R0(n,s),{onNone:()=>[],onSome:c=>[...c,...i]})))),TT=t=>Array.from(A0(t.map)),LT=t=>Array.from(t.map),_u="Die",Ro="Empty",Go="Fail",bu="Interrupt",Eo="Parallel",Ao="Sequential",Q0="effect/Cause",Z0=Symbol.for(Q0),UT={_E:t=>t},Yo={[Z0]:UT,[rt](){return P(K(Q0),_t(K(zT(this))),Wt(this))},[nt](t){return DT(t)&&YT(this,t)},pipe(){return X(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:te(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:te(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:te(this.left),right:te(this.right)}}},toString(){return Ca(this)},[Kt](){return this.toJSON()}},zs=(()=>{const t=Object.create(Yo);return t._tag=Ro,t})(),ta=t=>{const e=Object.create(Yo);return e._tag=Go,e.error=t,e},Kr=t=>{const e=Object.create(Yo);return e._tag=_u,e.defect=t,e},wi=t=>{const e=Object.create(Yo);return e._tag=bu,e.fiberId=t,e},wu=(t,e)=>{const n=Object.create(Yo);return n._tag=Eo,n.left=t,n.right=e,n},En=(t,e)=>{const n=Object.create(Yo);return n._tag=Ao,n.left=t,n.right=e,n},DT=t=>at(t,Z0),BT=t=>t._tag===Ro?!0:vo(t,!0,(e,n)=>{switch(n._tag){case Ro:return bt(e);case _u:case Go:case bu:return bt(!1);default:return Z()}}),Eh=t=>Ah(void 0,QT)(t),jT=t=>Io(vo(t,Pi(),(e,n)=>n._tag===Go?bt(P(e,Tn(n.error))):Z())),qT=t=>Io(vo(t,Pi(),(e,n)=>n._tag===_u?bt(P(e,Tn(n.defect))):Z())),WT=t=>vo(t,Ri(),(e,n)=>n._tag===bu?bt(P(e,Ns(n.fiberId))):Z()),KT=t=>XT(t,e=>e._tag===Go?bt(e.error):Z()),HT=t=>{const e=KT(t);switch(e._tag){case"None":return br(t);case"Some":return bo(e.value)}},dy=t=>V0(t,{onEmpty:zs,onFail:()=>zs,onDie:e=>Kr(e),onInterrupt:e=>wi(e),onSequential:En,onParallel:wu}),GT=t=>V0(t,{onEmpty:zs,onFail:e=>Kr(e),onDie:e=>Kr(e),onInterrupt:e=>wi(e),onSequential:(e,n)=>En(e,n),onParallel:(e,n)=>wu(e,n)}),YT=(t,e)=>{let n=Ir(t),i=Ir(e);for(;xo(n)&&xo(i);){const[s,c]=P(Fo(n),vo([Ri(),Pi()],([p,y],M)=>{const[A,N]=ld(M);return bt([P(p,Ks(A)),P(y,Wr(N))])})),[f,d]=P(Fo(i),vo([Ri(),Pi()],([p,y],M)=>{const[A,N]=ld(M);return bt([P(p,Ks(A)),P(y,Wr(N))])}));if(!ct(s,f))return!1;n=c,i=d}return!0},zT=t=>JT(Ir(t),Pi()),JT=(t,e)=>{for(;;){const[n,i]=P(t,Vb([Ri(),Pi()],([c,f],d)=>{const[p,y]=ld(d);return[P(c,Ks(p)),P(f,Wr(y))]})),s=I0(n)>0?P(e,Tn(n)):e;if(mk(i))return Io(s);t=i,e=s}throw new Error("BUG: Cause.flattenCauseLoop - please report an issue at https://github.com/Effect-TS/effect/issues")},XT=x(2,(t,e)=>{const n=[t];for(;n.length>0;){const i=n.pop(),s=e(i);switch(s._tag){case"None":{switch(i._tag){case Ao:case Eo:{n.push(i.right),n.push(i.left);break}}break}case"Some":return s}}return Z()}),ld=t=>{let e=t;const n=[];let i=Ri(),s=Pi();for(;e!==void 0;)switch(e._tag){case Ro:{if(n.length===0)return[i,s];e=n.pop();break}case Go:{if(i=Ns(i,e.error),n.length===0)return[i,s];e=n.pop();break}case _u:{if(i=Ns(i,e.defect),n.length===0)return[i,s];e=n.pop();break}case bu:{if(i=Ns(i,e.fiberId),n.length===0)return[i,s];e=n.pop();break}case Ao:{switch(e.left._tag){case Ro:{e=e.right;break}case Ao:{e=En(e.left.left,En(e.left.right,e.right));break}case Eo:{e=wu(En(e.left.left,e.right),En(e.left.right,e.right));break}default:{s=Tn(s,e.right),e=e.left;break}}break}case Eo:{n.push(e.right),e=e.left;break}}throw new Error("BUG: Cause.evaluateCauseLoop - please report an issue at https://github.com/Effect-TS/effect/issues")},QT={emptyCase:Xg,failCase:Ql,dieCase:Ql,interruptCase:Xg,sequentialCase:(t,e,n)=>e&&n,parallelCase:(t,e,n)=>e&&n},hy="SequentialCase",my="ParallelCase",V0=x(2,(t,{onDie:e,onEmpty:n,onFail:i,onInterrupt:s,onParallel:c,onSequential:f})=>Ah(t,void 0,{emptyCase:()=>n,failCase:(d,p)=>i(p),dieCase:(d,p)=>e(p),interruptCase:(d,p)=>s(p),sequentialCase:(d,p,y)=>f(p,y),parallelCase:(d,p,y)=>c(p,y)})),vo=x(3,(t,e,n)=>{let i=e,s=t;const c=[];for(;s!==void 0;){const f=n(i,s);switch(i=Qn(f)?f.value:i,s._tag){case Ao:{c.push(s.right),s=s.left;break}case Eo:{c.push(s.right),s=s.left;break}default:{s=void 0;break}}s===void 0&&c.length>0&&(s=c.pop())}return i}),Ah=x(3,(t,e,n)=>{const i=[t],s=[];for(;i.length>0;){const f=i.pop();switch(f._tag){case Ro:{s.push(br(n.emptyCase(e)));break}case Go:{s.push(br(n.failCase(e,f.error)));break}case _u:{s.push(br(n.dieCase(e,f.defect)));break}case bu:{s.push(br(n.interruptCase(e,f.fiberId)));break}case Ao:{i.push(f.right),i.push(f.left),s.push(bo({_tag:hy}));break}case Eo:{i.push(f.right),i.push(f.left),s.push(bo({_tag:my}));break}}}const c=[];for(;s.length>0;){const f=s.pop();switch(f._tag){case"Left":{switch(f.left._tag){case hy:{const d=c.pop(),p=c.pop(),y=n.sequentialCase(e,d,p);c.push(y);break}case my:{const d=c.pop(),p=c.pop(),y=n.parallelCase(e,d,p);c.push(y);break}}break}case"Right":{c.push(f.right);break}}}if(c.length===0)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return c.pop()}),ZT=t=>{const e=t.split(` +`)}return e},VC=t=>at(t,t0),tk=Oo(new Map),ek=()=>tk,e0=(t,e)=>Oo(new Map([[t.key,e]])),nk=x(3,(t,e,n)=>{const i=new Map(t.unsafeMap);return i.set(e.key,n),Oo(i)}),n0=x(2,(t,e)=>{if(!t.unsafeMap.has(e.key))throw ZC(e);return t.unsafeMap.get(e.key)}),rk=n0,ik=x(2,(t,e)=>t.unsafeMap.has(e.key)?Ub(t.unsafeMap.get(e.key)):Lb),ok=x(2,(t,e)=>{const n=new Map(t.unsafeMap);for(const[i,s]of e.unsafeMap)n.set(i,s);return Oo(n)}),Bi=XC,gh=ek,sk=e0,Os=nk,As=rk,uk=n0,mu=ik,ck=ok,r0=Symbol.for("effect/Chunk");function ak(t,e,n,i,s){for(let c=e;clh((e,n)=>e.length===n.length&&vs(e).every((i,s)=>t(i,ho(n,s)))),lk=fk(ct),dk={[r0]:{_A:t=>t},toString(){return ye(this.toJSON())},toJSON(){return{_id:"Chunk",values:vs(this).map(te)}},[Kt](){return this.toJSON()},[nt](t){return o0(t)&&lk(this,t)},[rt](){return Wt(this,du(vs(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return i0[Symbol.iterator]();default:return vs(this)[Symbol.iterator]()}},pipe(){return X(this,arguments)}},Gt=t=>{const e=Object.create(dk);switch(e.backing=t,t._tag){case"IEmpty":{e.length=0,e.depth=0,e.left=e,e.right=e;break}case"IConcat":{e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break}case"IArray":{e.length=t.array.length,e.depth=0,e.left=Gn,e.right=Gn;break}case"ISingleton":{e.length=1,e.depth=0,e.left=Gn,e.right=Gn;break}case"ISlice":{e.length=t.length,e.depth=t.chunk.depth+1,e.left=Gn,e.right=Gn;break}}return e},o0=t=>at(t,r0),Gn=Gt({_tag:"IEmpty"}),Pi=()=>Gn,Ir=t=>Gt({_tag:"ISingleton",a:t}),s0=t=>o0(t)?t:Gt({_tag:"IArray",array:Yt(t)}),td=(t,e,n)=>{switch(t.backing._tag){case"IArray":{ak(t.backing.array,0,e,n,t.length);break}case"IConcat":{td(t.left,e,n),td(t.right,e,n+t.left.length);break}case"ISingleton":{e[n]=t.backing.a;break}case"ISlice":{let i=0,s=n;for(;i{switch(t.backing._tag){case"IEmpty":return i0;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return td(t,e,0),t.backing={_tag:"IArray",array:e},t.left=Gn,t.right=Gn,t.depth=0,e}}},Io=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Gt({_tag:"IArray",array:Vg(t.backing.array)});case"IConcat":return Gt({_tag:"IConcat",left:Io(t.backing.right),right:Io(t.backing.left)});case"ISlice":return u0(Vg(vs(t)))}},u0=t=>Gt({_tag:"IArray",array:t}),ho=x(2,(t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":{if(e!==0)throw new Error("Index out of bounds");return t.backing.a}case"IArray":{if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e]}case"IConcat":return eWr(Ir(e),t)),ed=x(2,(t,e)=>{if(e<=0)return t;if(e>=t.length)return Gn;switch(t.backing._tag){case"ISlice":return Gt({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?ed(t.right,e-t.left.length):Gt({_tag:"IConcat",left:ed(t.left,e),right:t.right});default:return Gt({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}}),Wr=x(2,(t,e)=>{if(t.backing._tag==="IEmpty")return e;if(e.backing._tag==="IEmpty")return t;const n=e.depth-t.depth;if(Math.abs(n)<=1)return Gt({_tag:"IConcat",left:t,right:e});if(n<-1)if(t.left.depth>=t.right.depth){const i=Wr(t.right,e);return Gt({_tag:"IConcat",left:t.left,right:i})}else{const i=Wr(t.right.right,e);if(i.depth===t.depth-3){const s=Gt({_tag:"IConcat",left:t.right.left,right:i});return Gt({_tag:"IConcat",left:t.left,right:s})}else{const s=Gt({_tag:"IConcat",left:t.left,right:t.right.left});return Gt({_tag:"IConcat",left:s,right:i})}}else if(e.right.depth>=e.left.depth){const i=Wr(t,e.left);return Gt({_tag:"IConcat",left:i,right:e.right})}else{const i=Wr(t,e.left.left);if(i.depth===e.depth-3){const s=Gt({_tag:"IConcat",left:i,right:e.left.right});return Gt({_tag:"IConcat",left:s,right:e.right})}else{const s=Gt({_tag:"IConcat",left:e.left.right,right:e.right});return Gt({_tag:"IConcat",left:i,right:s})}}}),hk=t=>t.length===0,xo=t=>t.length>0,c0=t=>ho(t,0),Fo=c0,bi=t=>ed(t,1),Mi=5,yh=Math.pow(2,Mi),mk=yh-1,pk=yh/2,gk=yh/4;function yk(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function $o(t,e){return e>>>t&mk}function ao(t){return 1<({value:t,previous:e});function mo(t,e,n,i){let s=i;if(!t){const c=i.length;s=new Array(c);for(let f=0;f=e;)i[p--]=i[p];return i[e]=n,i}let c=0,f=0;const d=new Array(s+1);for(;c1?new _h(e,this.hash,y):y[0]}const d=i(Z());return Ye(d)?this:(++f.value,l0(e,n,this.hash,this,s,new Ii(e,s,c,d)))}updateCollisionList(e,n,i,s,c,f,d){const p=s.length;for(let M=0;M=pk?Ok(e,y,pt,d,p):new Po(e,d|M,bk(C,A,pt,p)):this}const B=p[A],mt=B.modify(e,n+Mi,i,s,c,f);if(B===mt)return this;let tt=d,Ft;if(Rn(mt)){if(tt&=~M,!tt)return new Qr;if(p.length<=2&&wk(p[A^1]))return p[A^1];Ft=f0(C,A,p)}else Ft=mo(C,A,mt,p);return C?(this.mask=tt,this.children=Ft,this):new Po(e,tt,Ft)}}class bh{constructor(e,n,i){_(this,"edit");_(this,"size");_(this,"children");_(this,"_tag","ArrayNode");this.edit=e,this.size=n,this.children=i}modify(e,n,i,s,c,f){let d=this.size;const p=this.children,y=$o(n,s),M=p[y],A=(M||new Qr).modify(e,n+Mi,i,s,c,f);if(M===A)return this;const N=xa(this,e);let C;if(Rn(M)&&!Rn(A))++d,C=mo(N,y,A,p);else if(!Rn(M)&&Rn(A)){if(--d,d<=gk)return Sk(e,d,y,p);C=mo(N,y,new Qr,p)}else C=mo(N,y,A,p);return N?(this.size=d,this.children=C,this):new bh(e,d,C)}}function Sk(t,e,n,i){const s=new Array(e-1);let c=0,f=0;for(let d=0,p=i.length;d>>=1;return c[e]=n,new bh(t,d+1,c)}function Ik(t,e,n,i,s,c){if(n===s)return new _h(t,n,[c,i]);const f=$o(e,n),d=$o(e,s);if(f===d)return p=>new Po(t,ao(f)|ao(d),[p]);{const p=f[t,e])},[rt](){let t=K(d0);for(const e of this)t^=P(K(e[0]),_t(K(e[1])));return Wt(this,t)},[nt](t){if(Pk(t)){if(t._size!==this._size)return!1;for(const e of this){const n=P(t,Sh(e[0],K(e[0])));if(Ye(n))return!1;if(!ct(e[1],n.value))return!1}return!0}return!1},toString(){return ye(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(te)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},wh=(t,e,n,i)=>{const s=Object.create(xk);return s._editable=t,s._edit=e,s._root=n,s._size=i,s};class Fa{constructor(e,n){_(this,"map");_(this,"f");_(this,"v");this.map=e,this.f=n,this.v=h0(this.map._root,this.f,void 0)}next(){if(Ye(this.v))return{done:!0,value:void 0};const e=this.v.value;return this.v=Jc(e.cont),{done:!1,value:e.value}}[Symbol.iterator](){return new Fa(this.map,this.f)}}const Jc=t=>t?m0(t[0],t[1],t[2],t[3],t[4]):Z(),h0=(t,e,n=void 0)=>{switch(t._tag){case"LeafNode":return Qn(t.value)?bt({value:e(t.key,t.value.value),cont:n}):Jc(n);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const i=t.children;return m0(i.length,i,0,e,n)}default:return Jc(n)}},m0=(t,e,n,i,s)=>{for(;nFk,$k=(...t)=>p0(t),p0=t=>{const e=y0($a());for(const n of t)qs(e,n[0],n[1]);return vk(e)},Pk=t=>at(t,nd),Mk=t=>t&&Rn(t._root),Rk=x(2,(t,e)=>Sh(t,e,K(e))),Sh=x(3,(t,e,n)=>{let i=t._root,s=0;for(;;)switch(i._tag){case"LeafNode":return ct(e,i.key)?i.value:Z();case"CollisionNode":{if(n===i.hash){const c=i.children;for(let f=0,d=c.length;fQn(Sh(t,e,K(e)))),qs=x(3,(t,e,n)=>_0(t,e,()=>bt(n))),Ak=x(3,(t,e,n)=>t._editable?(t._root=e,t._size=n,t):e===t._root?t:wh(t._editable,t._edit,e,n)),g0=t=>new Fa(t,e=>e),Xc=t=>t._size,y0=t=>wh(!0,t._edit+1,t._root,t._size),vk=t=>(t._editable=!1,t),_0=x(3,(t,e,n)=>Nk(t,e,K(e),n)),Nk=x(4,(t,e,n,i)=>{const s={value:t._size},c=t._root.modify(t._editable?t._edit:NaN,0,i,n,e,s);return P(t,Ak(c,s.value))}),ny=x(2,(t,e)=>_0(t,e,Z)),Ck=x(2,(t,e)=>Pa(t,$a(),(n,i,s)=>qs(n,s,e(i,s)))),kk=x(2,(t,e)=>Pa(t,void 0,(n,i,s)=>e(i,s))),Pa=x(3,(t,e,n)=>{const i=t._root;if(i._tag==="LeafNode")return Qn(i.value)?n(e,i.value.value,i.key):e;if(i._tag==="EmptyNode")return e;const s=[i.children];let c;for(;c=s.pop();)for(let f=0,d=c.length;f{const e=Object.create(Tk);return e._keyMap=t,e},Lk=t=>at(t,rd),Uk=Ma($a()),Ra=()=>Uk,Dk=t=>{const e=Oh(Ra());for(const n of t)Ws(e,n);return Ih(e)},Bk=(...t)=>{const e=Oh(Ra());for(const n of t)Ws(e,n);return Ih(e)},jk=x(2,(t,e)=>Ek(t._keyMap,e)),qk=t=>Xc(t._keyMap),Oh=t=>Ma(y0(t._keyMap)),Ih=t=>(t._keyMap._editable=!1,t),w0=x(2,(t,e)=>{const n=Oh(t);return e(n),Ih(n)}),Ws=x(2,(t,e)=>t._keyMap._editable?(qs(e,!0)(t._keyMap),t):Ma(qs(e,!0)(t._keyMap))),S0=x(2,(t,e)=>t._keyMap._editable?(ny(e)(t._keyMap),t):Ma(ny(e)(t._keyMap))),Wk=x(2,(t,e)=>w0(t,n=>{for(const i of e)S0(n,i)})),Kk=x(2,(t,e)=>w0(Ra(),n=>{Hk(t,i=>Ws(n,i));for(const i of e)Ws(n,i)})),Hk=x(2,(t,e)=>kk(t._keyMap,(n,i)=>e(i))),Gk=x(3,(t,e,n)=>Pa(t._keyMap,e,(i,s,c)=>n(i,c))),Ri=Ra,Yk=Dk,xh=Bk,zk=jk,O0=qk,Ns=Ws,I0=S0,ry=Wk,Ks=Kk,Qc=Gk,iy=Symbol.for("effect/MutableRef"),Jk={[iy]:iy,toString(){return ye(this.toJSON())},toJSON(){return{_id:"MutableRef",current:te(this.current)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},x0=t=>{const e=Object.create(Jk);return e.current=t,e},Ea=t=>t.current,Aa=x(2,(t,e)=>(t.current=e,t)),Fh="effect/FiberId",Hs=Symbol.for(Fh),Zc="None",id="Runtime",Xk="Composite",Qk=fe(`${Fh}-${Zc}`);var X6;let Zk=class{constructor(){_(this,X6,Hs);_(this,"_tag",Zc);_(this,"id",-1);_(this,"startTimeMillis",-1)}[(X6=Hs,rt)](){return Qk}[nt](e){return F0(e)&&e._tag===Zc}toString(){return ye(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[Kt](){return this.toJSON()}};var Q6;class Vk{constructor(e,n){_(this,"id");_(this,"startTimeMillis");_(this,Q6,Hs);_(this,"_tag",id);this.id=e,this.startTimeMillis=n}[(Q6=Hs,rt)](){return Wt(this,fe(`${Fh}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[nt](e){return F0(e)&&e._tag===id&&this.id===e.id&&this.startTimeMillis===e.startTimeMillis}toString(){return ye(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[Kt](){return this.toJSON()}}const t2=new Zk,F0=t=>at(t,Hs),od=t=>{switch(t._tag){case Zc:return Ri();case id:return xh(t.id);case Xk:return P(od(t.left),Ks(od(t.right)))}},oy=Rt(Symbol.for("effect/Fiber/Id/_fiberCounter"),()=>x0(0)),$0=t=>Array.from(od(t)).map(n=>`#${n}`).join(","),e2=()=>{const t=Ea(oy);return P(oy,Aa(t+1)),new Vk(t,Date.now())},$h=t2,n2=$0,P0=e2,Ph=$a,r2=$k,i2=p0,o2=Mk,M0=Rk,R0=qs,E0=g0,s2=Xc,A0=Ck,v0=Pa,Gs=Symbol.for("effect/List"),sd=t=>Array.from(t),u2=t=>zN(ph(t),sd),c2=u2(ct),a2={[Gs]:Gs,_tag:"Cons",toString(){return ye(this.toJSON())},toJSON(){return{_id:"List",_tag:"Cons",values:sd(this).map(te)}},[Kt](){return this.toJSON()},[nt](t){return C0(t)&&this._tag===t._tag&&c2(this,t)},[rt](){return Wt(this,du(sd(this)))},[Symbol.iterator](){let t=!1,e=this;return{next(){if(t)return this.return();if(e._tag==="Nil")return t=!0,this.return();const n=e.head;return e=e.tail,{done:t,value:n}},return(n){return t||(t=!0),{done:!0,value:n}}}},pipe(){return X(this,arguments)}},Vc=(t,e)=>{const n=Object.create(a2);return n.head=t,n.tail=e,n},f2=fe("Nil"),l2={[Gs]:Gs,_tag:"Nil",toString(){return ye(this.toJSON())},toJSON(){return{_id:"List",_tag:"Nil"}},[Kt](){return this.toJSON()},[rt](){return f2},[nt](t){return C0(t)&&this._tag===t._tag},[Symbol.iterator](){return{next(){return{done:!0,value:void 0}}}},pipe(){return X(this,arguments)}},N0=Object.create(l2),C0=t=>at(t,Gs),Sr=t=>t._tag==="Nil",k0=t=>t._tag==="Cons",d2=()=>N0,Ei=(t,e)=>Vc(t,e),Mo=d2,Mh=t=>Vc(t,N0),h2=x(2,(t,e)=>p2(e,t)),m2=x(2,(t,e)=>Ei(e,t)),p2=x(2,(t,e)=>{if(Sr(t))return e;if(Sr(e))return t;{const n=Vc(e.head,t);let i=n,s=e.tail;for(;!Sr(s);){const c=Vc(s.head,t);i.tail=c,i=c,s=s.tail}return n}}),g2=x(3,(t,e,n)=>{let i=e,s=t;for(;!Sr(s);)i=n(i,s.head),s=s.tail;return i}),y2=t=>{let e=Mo(),n=t;for(;!Sr(n);)e=m2(e,n.head),n=n.tail;return e},Wo=function(){function t(e){e&&Object.assign(this,e)}return t.prototype=hh,t}(),_2=Symbol.for("effect/DifferChunkPatch");function sy(t){return t}({...Wo.prototype,[_2]:0});const b2=Symbol.for("effect/DifferContextPatch");function uy(t){return t}const pu={...Wo.prototype,[b2]:{_Value:uy,_Patch:uy}},w2=Object.assign(Object.create(pu),{_tag:"Empty"}),S2=Object.create(w2),T0=()=>S2,O2=Object.assign(Object.create(pu),{_tag:"AndThen"}),I2=(t,e)=>{const n=Object.create(O2);return n.first=t,n.second=e,n},x2=Object.assign(Object.create(pu),{_tag:"AddService"}),F2=(t,e)=>{const n=Object.create(x2);return n.key=t,n.service=e,n},$2=Object.assign(Object.create(pu),{_tag:"RemoveService"}),P2=t=>{const e=Object.create($2);return e.key=t,e},M2=Object.assign(Object.create(pu),{_tag:"UpdateService"}),R2=(t,e)=>{const n=Object.create(M2);return n.key=t,n.update=e,n},E2=(t,e)=>{const n=new Map(t.unsafeMap);let i=T0();for(const[s,c]of e.unsafeMap.entries())if(n.has(s)){const f=n.get(s);n.delete(s),ct(f,c)||(i=vc(R2(s,()=>c))(i))}else n.delete(s),i=vc(F2(s,c))(i);for(const[s]of n.entries())i=vc(P2(s))(i);return i},vc=x(2,(t,e)=>I2(t,e)),A2=x(2,(t,e)=>{if(t._tag==="Empty")return e;let n=!1,i=Ir(t);const s=new Map(e.unsafeMap);for(;xo(i);){const f=Fo(i),d=bi(i);switch(f._tag){case"Empty":{i=d;break}case"AddService":{s.set(f.key,f.service),i=d;break}case"AndThen":{i=Tn(Tn(d,f.second),f.first);break}case"RemoveService":{s.delete(f.key),i=d;break}case"UpdateService":{s.set(f.key,f.update(s.get(f.key))),n=!0,i=d;break}}}if(!n)return Oo(s);const c=new Map;for(const[f]of e.unsafeMap)s.has(f)&&(c.set(f,s.get(f)),s.delete(f));for(const[f,d]of s)c.set(f,d);return Oo(c)}),v2=Symbol.for("effect/DifferHashMapPatch");function vl(t){return t}({...Wo.prototype,[v2]:0});const N2=Symbol.for("effect/DifferHashSetPatch");function Nl(t){return t}const va={...Wo.prototype,[N2]:{_Value:Nl,_Key:Nl,_Patch:Nl}},C2=Object.assign(Object.create(va),{_tag:"Empty"}),k2=Object.create(C2),L0=()=>k2,T2=Object.assign(Object.create(va),{_tag:"AndThen"}),L2=(t,e)=>{const n=Object.create(T2);return n.first=t,n.second=e,n},U2=Object.assign(Object.create(va),{_tag:"Add"}),D2=t=>{const e=Object.create(U2);return e.value=t,e},B2=Object.assign(Object.create(va),{_tag:"Remove"}),j2=t=>{const e=Object.create(B2);return e.value=t,e},q2=(t,e)=>{const[n,i]=Qc([t,L0()],([s,c],f)=>zk(f)(s)?[I0(f)(s),c]:[s,ud(D2(f))(c)])(e);return Qc(i,(s,c)=>ud(j2(c))(s))(n)},ud=x(2,(t,e)=>L2(t,e)),W2=x(2,(t,e)=>{if(t._tag==="Empty")return e;let n=e,i=Ir(t);for(;xo(i);){const s=Fo(i),c=bi(i);switch(s._tag){case"Empty":{i=c;break}case"AndThen":{i=Tn(s.first)(Tn(s.second)(c));break}case"Add":{n=Ns(s.value)(n),i=c;break}case"Remove":n=I0(s.value)(n),i=c}}return n}),K2=Symbol.for("effect/DifferOrPatch");function Cl(t){return t}({...Wo.prototype,[K2]:0});const H2=Symbol.for("effect/DifferReadonlyArrayPatch");function cy(t){return t}const gu={...Wo.prototype,[H2]:{_Value:cy,_Patch:cy}},G2=Object.assign(Object.create(gu),{_tag:"Empty"}),Y2=Object.create(G2),U0=()=>Y2,z2=Object.assign(Object.create(gu),{_tag:"AndThen"}),J2=(t,e)=>{const n=Object.create(z2);return n.first=t,n.second=e,n},X2=Object.assign(Object.create(gu),{_tag:"Append"}),Q2=t=>{const e=Object.create(X2);return e.values=t,e},Z2=Object.assign(Object.create(gu),{_tag:"Slice"}),V2=(t,e)=>{const n=Object.create(Z2);return n.from=t,n.until=e,n},tT=Object.assign(Object.create(gu),{_tag:"Update"}),eT=(t,e)=>{const n=Object.create(tT);return n.index=t,n.patch=e,n},nT=t=>{let e=0,n=U0();for(;eJ2(t,e)),rT=x(3,(t,e,n)=>{if(t._tag==="Empty")return e;let i=e.slice(),s=$n(t);for(;EC(s);){const c=ze(s),f=wo(s);switch(c._tag){case"Empty":{s=f;break}case"AndThen":{f.unshift(c.first,c.second),s=f;break}case"Append":{for(const d of c.values)i.push(d);s=f;break}case"Slice":{i=i.slice(c.from,c.until),s=f;break}case"Update":{i[c.index]=n.patch(c.patch,i[c.index]),s=f;break}}}return i}),iT=Symbol.for("effect/Differ"),oT={[iT]:{_P:ie,_V:ie}},Ko=t=>{const e=Object.create(oT);return e.empty=t.empty,e.diff=t.diff,e.combine=t.combine,e.patch=t.patch,e},sT=()=>Ko({empty:T0(),combine:(t,e)=>vc(e)(t),diff:(t,e)=>E2(t,e),patch:(t,e)=>A2(e)(t)}),uT=()=>Ko({empty:L0(),combine:(t,e)=>ud(e)(t),diff:(t,e)=>q2(t,e),patch:(t,e)=>W2(e)(t)}),cT=t=>Ko({empty:U0(),combine:(e,n)=>Nc(e,n),diff:(e,n)=>nT({oldValue:e,newValue:n,differ:t}),patch:(e,n)=>rT(e,n,t)}),D0=()=>aT((t,e)=>e),aT=t=>Ko({empty:ie,combine:(e,n)=>e===ie?n:n===ie?e:i=>n(e(i)),diff:(e,n)=>ct(e,n)?ie:Sa(n),patch:(e,n)=>t(n,e(n))}),Ys=255,B0=8,cd=t=>t&Ys,ad=t=>t>>B0&Ys,yu=(t,e)=>(t&Ys)+((e&t&Ys)<yu(t,t),dT=t=>yu(t,0),hT=x(2,(t,e)=>yu(cd(t)&~e,ad(t))),mT=x(2,(t,e)=>t|e),pT=t=>~t>>>0&Ys,gT=0,Ho=1,yT=2,j0=4,fd=16,q0=32,_T=t=>Na(t,q0),bT=x(2,(t,e)=>t|e),qr=t=>W0(t)&&!ST(t),W0=t=>Na(t,Ho),Na=x(2,(t,e)=>(t&e)!==0),K0=(...t)=>t.reduce((e,n)=>e|n,0),wT=K0(gT),ay=t=>Na(t,j0),ST=t=>Na(t,fd),Cc=x(2,(t,e)=>yu(t^e,e)),kc=x(2,(t,e)=>t&(pT(cd(e))|ad(e))|cd(e)&ad(e)),fy=Ko({empty:fT,diff:(t,e)=>Cc(t,e),combine:(t,e)=>mT(e)(t),patch:(t,e)=>kc(e,t)}),OT=lT,H0=dT,ly=hT,G0=(t,e)=>({_tag:"Par",left:t,right:e}),Fc=(t,e)=>({_tag:"Seq",left:t,right:e}),IT=t=>{let e=Mh(t),n=Mo();for(;;){const[i,s]=g2(e,[Y0(),Mo()],([c,f],d)=>{const[p,y]=xT(d);return[z0(c,p),h2(f,y)]});if(n=FT(n,i),Sr(s))return y2(n);e=s}throw new Error("BUG: BlockedRequests.flatten - please report an issue at https://github.com/Effect-TS/effect/issues")},xT=t=>{let e=t,n=Y0(),i=Mo(),s=Mo();for(;;)switch(e._tag){case"Empty":{if(Sr(i))return[n,s];e=i.head,i=i.tail;break}case"Par":{i=Ei(e.right,i),e=e.left;break}case"Seq":{const c=e.left,f=e.right;switch(c._tag){case"Empty":{e=f;break}case"Par":{const d=c.left,p=c.right;e=G0(Fc(d,f),Fc(p,f));break}case"Seq":{const d=c.left,p=c.right;e=Fc(d,Fc(p,f));break}case"Single":{e=c,s=Ei(f,s);break}}break}case"Single":{if(n=z0(n,MT(e.dataSource,e.blockedRequest)),Sr(i))return[n,s];e=i.head,i=i.tail;break}}throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues")},FT=(t,e)=>{if(Sr(t))return Mh(kl(e));if(RT(e))return t;const n=kT(t.head),i=ET(e);return n.length===1&&i.length===1&&ct(n[0],i[0])?Ei(CT(t.head,kl(e)),t.tail):Ei(kl(e),t)},$T=Symbol.for("effect/RequestBlock/RequestBlockParallel"),PT={_R:t=>t};var Z6;class Rh{constructor(e){_(this,"map");_(this,Z6,PT);this.map=e}}Z6=$T;const Y0=()=>new Rh(Ph()),MT=(t,e)=>new Rh(r2([t,Array.of(e)])),z0=(t,e)=>new Rh(v0(t.map,e.map,(n,i,s)=>R0(n,s,Di(M0(n,s),{onNone:()=>i,onSome:c=>[...i,...c]})))),RT=t=>o2(t.map),ET=t=>Array.from(E0(t.map)),kl=t=>NT(A0(t.map,e=>Array.of(e))),AT=Symbol.for("effect/RequestBlock/RequestBlockSequential"),vT={_R:t=>t};var V6;class J0{constructor(e){_(this,"map");_(this,V6,vT);this.map=e}}V6=AT;const NT=t=>new J0(t),CT=(t,e)=>new J0(v0(e.map,t.map,(n,i,s)=>R0(n,s,Di(M0(n,s),{onNone:()=>[],onSome:c=>[...c,...i]})))),kT=t=>Array.from(E0(t.map)),TT=t=>Array.from(t.map),_u="Die",Ro="Empty",Go="Fail",bu="Interrupt",Eo="Parallel",Ao="Sequential",X0="effect/Cause",Q0=Symbol.for(X0),LT={_E:t=>t},Yo={[Q0]:LT,[rt](){return P(K(X0),_t(K(YT(this))),Wt(this))},[nt](t){return UT(t)&>(this,t)},pipe(){return X(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:te(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:te(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:te(this.left),right:te(this.right)}}},toString(){return Ca(this)},[Kt](){return this.toJSON()}},zs=(()=>{const t=Object.create(Yo);return t._tag=Ro,t})(),ta=t=>{const e=Object.create(Yo);return e._tag=Go,e.error=t,e},Kr=t=>{const e=Object.create(Yo);return e._tag=_u,e.defect=t,e},wi=t=>{const e=Object.create(Yo);return e._tag=bu,e.fiberId=t,e},wu=(t,e)=>{const n=Object.create(Yo);return n._tag=Eo,n.left=t,n.right=e,n},En=(t,e)=>{const n=Object.create(Yo);return n._tag=Ao,n.left=t,n.right=e,n},UT=t=>at(t,Q0),DT=t=>t._tag===Ro?!0:vo(t,!0,(e,n)=>{switch(n._tag){case Ro:return bt(e);case _u:case Go:case bu:return bt(!1);default:return Z()}}),Eh=t=>Ah(void 0,XT)(t),BT=t=>Io(vo(t,Pi(),(e,n)=>n._tag===Go?bt(P(e,Tn(n.error))):Z())),jT=t=>Io(vo(t,Pi(),(e,n)=>n._tag===_u?bt(P(e,Tn(n.defect))):Z())),qT=t=>vo(t,Ri(),(e,n)=>n._tag===bu?bt(P(e,Ns(n.fiberId))):Z()),WT=t=>JT(t,e=>e._tag===Go?bt(e.error):Z()),KT=t=>{const e=WT(t);switch(e._tag){case"None":return br(t);case"Some":return bo(e.value)}},dy=t=>Z0(t,{onEmpty:zs,onFail:()=>zs,onDie:e=>Kr(e),onInterrupt:e=>wi(e),onSequential:En,onParallel:wu}),HT=t=>Z0(t,{onEmpty:zs,onFail:e=>Kr(e),onDie:e=>Kr(e),onInterrupt:e=>wi(e),onSequential:(e,n)=>En(e,n),onParallel:(e,n)=>wu(e,n)}),GT=(t,e)=>{let n=Ir(t),i=Ir(e);for(;xo(n)&&xo(i);){const[s,c]=P(Fo(n),vo([Ri(),Pi()],([p,y],M)=>{const[A,N]=ld(M);return bt([P(p,Ks(A)),P(y,Wr(N))])})),[f,d]=P(Fo(i),vo([Ri(),Pi()],([p,y],M)=>{const[A,N]=ld(M);return bt([P(p,Ks(A)),P(y,Wr(N))])}));if(!ct(s,f))return!1;n=c,i=d}return!0},YT=t=>zT(Ir(t),Pi()),zT=(t,e)=>{for(;;){const[n,i]=P(t,Zb([Ri(),Pi()],([c,f],d)=>{const[p,y]=ld(d);return[P(c,Ks(p)),P(f,Wr(y))]})),s=O0(n)>0?P(e,Tn(n)):e;if(hk(i))return Io(s);t=i,e=s}throw new Error("BUG: Cause.flattenCauseLoop - please report an issue at https://github.com/Effect-TS/effect/issues")},JT=x(2,(t,e)=>{const n=[t];for(;n.length>0;){const i=n.pop(),s=e(i);switch(s._tag){case"None":{switch(i._tag){case Ao:case Eo:{n.push(i.right),n.push(i.left);break}}break}case"Some":return s}}return Z()}),ld=t=>{let e=t;const n=[];let i=Ri(),s=Pi();for(;e!==void 0;)switch(e._tag){case Ro:{if(n.length===0)return[i,s];e=n.pop();break}case Go:{if(i=Ns(i,e.error),n.length===0)return[i,s];e=n.pop();break}case _u:{if(i=Ns(i,e.defect),n.length===0)return[i,s];e=n.pop();break}case bu:{if(i=Ns(i,e.fiberId),n.length===0)return[i,s];e=n.pop();break}case Ao:{switch(e.left._tag){case Ro:{e=e.right;break}case Ao:{e=En(e.left.left,En(e.left.right,e.right));break}case Eo:{e=wu(En(e.left.left,e.right),En(e.left.right,e.right));break}default:{s=Tn(s,e.right),e=e.left;break}}break}case Eo:{n.push(e.right),e=e.left;break}}throw new Error("BUG: Cause.evaluateCauseLoop - please report an issue at https://github.com/Effect-TS/effect/issues")},XT={emptyCase:Xg,failCase:Ql,dieCase:Ql,interruptCase:Xg,sequentialCase:(t,e,n)=>e&&n,parallelCase:(t,e,n)=>e&&n},hy="SequentialCase",my="ParallelCase",Z0=x(2,(t,{onDie:e,onEmpty:n,onFail:i,onInterrupt:s,onParallel:c,onSequential:f})=>Ah(t,void 0,{emptyCase:()=>n,failCase:(d,p)=>i(p),dieCase:(d,p)=>e(p),interruptCase:(d,p)=>s(p),sequentialCase:(d,p,y)=>f(p,y),parallelCase:(d,p,y)=>c(p,y)})),vo=x(3,(t,e,n)=>{let i=e,s=t;const c=[];for(;s!==void 0;){const f=n(i,s);switch(i=Qn(f)?f.value:i,s._tag){case Ao:{c.push(s.right),s=s.left;break}case Eo:{c.push(s.right),s=s.left;break}default:{s=void 0;break}}s===void 0&&c.length>0&&(s=c.pop())}return i}),Ah=x(3,(t,e,n)=>{const i=[t],s=[];for(;i.length>0;){const f=i.pop();switch(f._tag){case Ro:{s.push(br(n.emptyCase(e)));break}case Go:{s.push(br(n.failCase(e,f.error)));break}case _u:{s.push(br(n.dieCase(e,f.defect)));break}case bu:{s.push(br(n.interruptCase(e,f.fiberId)));break}case Ao:{i.push(f.right),i.push(f.left),s.push(bo({_tag:hy}));break}case Eo:{i.push(f.right),i.push(f.left),s.push(bo({_tag:my}));break}}}const c=[];for(;s.length>0;){const f=s.pop();switch(f._tag){case"Left":{switch(f.left._tag){case hy:{const d=c.pop(),p=c.pop(),y=n.sequentialCase(e,d,p);c.push(y);break}case my:{const d=c.pop(),p=c.pop(),y=n.parallelCase(e,d,p);c.push(y);break}}break}case"Right":{c.push(f.right);break}}}if(c.length===0)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return c.pop()}),QT=t=>{const e=t.split(` `),n=[];for(let i=0;iEh(t)?"All fibers interrupted without errors.":t1(t).map(n=>{let i=n.message;if(n.stack&&(i+=`\r -${ZT(n.stack)}`),n.span){let s=n.span,c=0;for(;s&&s._tag==="Span"&&c<10;)i+=`\r +`)},Ca=t=>Eh(t)?"All fibers interrupted without errors.":V0(t).map(n=>{let i=n.message;if(n.stack&&(i+=`\r +${QT(n.stack)}`),n.span){let s=n.span,c=0;for(;s&&s._tag==="Span"&&c<10;)i+=`\r at ${s.name}`,s=gi(s.parent),c++}return i}).join(`\r `);class py{constructor(e,n,i){_(this,"message");_(this,"stack");_(this,"span");this.message=e,this.stack=n,this.span=i}toJSON(){const e={message:this.message};return this.stack&&(e.stack=this.stack),this.span&&(e.span=this.span),e}}const gy=t=>{if(typeof t=="string")return`Error: ${t}`;try{if(at(t,"toString")&&js(t.toString)&&t.toString!==Object.prototype.toString&&t.toString!==Array.prototype.toString)return t.toString()}catch{}return`Error: ${JSON.stringify(t)}`},yy=Symbol.for("effect/SpanAnnotation"),_y=t=>{var n;const e=at(t,yy)&&t[yy];return t instanceof Error?new py(gy(t),(n=t.stack)==null?void 0:n.split(` `).filter(i=>i.match(/at (.*)/)).join(` -`),e):new py(gy(t),void 0,e)},t1=t=>Ah(t,void 0,{emptyCase:()=>[],dieCase:(e,n)=>[_y(n)],failCase:(e,n)=>[_y(n)],interruptCase:()=>[],parallelCase:(e,n,i)=>[...n,...i],sequentialCase:(e,n,i)=>[...n,...i]}),ka="Pending",e1="Done",VT="effect/Deferred",tL=Symbol.for(VT),eL={_E:t=>t,_A:t=>t},vh=t=>({_tag:ka,joiners:t}),nL=t=>({_tag:e1,effect:t}),zn=t=>(Object.defineProperty(t,"name",{value:"effect_cutpoint"}),t),by=Symbol.for("effect/Tracer"),rL=t=>({[by]:by,...t}),dd=Bi("effect/Tracer"),n1=Bi("effect/ParentSpan"),iL=function(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;return function(n){let i="";for(let s=0;s{this.status={_tag:"Ended",endTime:e,exit:n,startTime:this.status.startTime}});_(this,"attribute",(e,n)=>{this.attributes.set(e,n)});_(this,"event",(e,n,i)=>{this.events.push([e,n,i??{}])});this.name=e,this.parent=n,this.context=i,this.links=s,this.startTime=c,this.status={_tag:"Started",startTime:c},this.attributes=new Map,this.spanId=`span${iL(16)}`}}const sL=rL({span:(t,e,n,i,s)=>new oL(t,e,n,i,s),context:t=>t()}),uL="effect/EffectError",hd=Symbol.for(uL),cL=t=>at(t,hd),aL=t=>({[hd]:hd,_tag:"EffectError",cause:t}),r1=(t,e)=>{const n=new De("Blocked");return n.i0=t,n.i1=e,n},fL=t=>{const e=new De("RunBlocked");return e.i0=t,e},Ta=Symbol.for("effect/Effect");class lL{constructor(e,n){_(this,"patch");_(this,"op");_(this,"_op",dh);this.patch=e,this.op=n}}var tK;class De{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,tK,_o);this._op=e}[(tK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}pipe(){return X(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,i0:te(this.i0),i1:te(this.i1),i2:te(this.i2)}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}var eK;class i1{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,eK,_o);this._op=e,this._tag=e}[(eK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}get cause(){return this.i0}pipe(){return X(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}var nK;class o1{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,nK,_o);this._op=e,this._tag=e}[(nK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}get value(){return this.i0}pipe(){return X(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:te(this.value)}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}const dL=t=>at(t,Ta),Zn=t=>{zn(t);const e=new De(Ab);return e.i0=t,e},hL=x(3,(t,e,n)=>Ua(i=>G(t,s=>G(s1(re(()=>i(e(s)))),c=>re(()=>n(s,c)).pipe(No({onFailure:f=>{switch(c._tag){case An:return xr(wu(c.i0,f));case vn:return xr(f)}},onSuccess:()=>c})))))),Su=x(2,(t,e)=>G(t,()=>At(e))),Ou=t=>Su(t,void 0),zo=(t,e=$h)=>re(()=>{zn(t);let n,i;function s(p){n?n(p):i===void 0&&(i=p)}const c=new De(Ec);c.i0=p=>{n=p,i&&p(i)},c.i1=e;let f,d;return t.length!==1?(d=new AbortController,f=t(s,d.signal)):f=t(s),f||d?h1(c,p=>(d&&d.abort(),f??Fr)):c}),wy=x(2,(t,e)=>Nh(t,{onFailure:e,onSuccess:At})),md=Symbol.for("effect/SpanAnnotation"),Sy=Symbol.for("effect/OriginalAnnotation"),mL=(t,e)=>Qn(e)?new Proxy(t,{has(n,i){return i===md||i===Sy||i in n},get(n,i){return i===md?e.value:i===Sy?t:n[i]}}):t,pL=t=>gL(()=>Kr(new KL(t))),Js=t=>Nh(t,{onFailure:e=>At(bo(e)),onSuccess:e=>At(br(e))}),s1=t=>bL(t,{onFailure:kt,onSuccess:Re}),Ie=t=>xb(t)&&!(md in t)?Zn(e=>xr(ta(mL(t,iU(e))))):xr(ta(t)),u1=t=>G(z(t),Ie),xr=t=>{const e=new i1(An);return e.i0=t,e},gL=t=>G(z(t),xr),yL=Zn(t=>At(t.id())),c1=t=>Zn(e=>t(e.id())),G=x(2,(t,e)=>{zn(e);const n=new De(Kc);return n.i0=t,n.i1=e,n}),_L=t=>{const e=new De("OnStep");return e.i0=t,e},a1=t=>G(t,ie),bL=x(2,(t,e)=>No(t,{onFailure:n=>At(e.onFailure(n)),onSuccess:n=>At(e.onSuccess(n))})),No=x(2,(t,e)=>{const n=new De(Hc);return n.i0=t,n.i1=e.onFailure,n.i2=e.onSuccess,zn(e.onFailure),zn(e.onSuccess),n}),Nh=x(2,(t,e)=>No(t,{onFailure:n=>{if(qT(n).length>0)return xr(GT(n));const s=jT(n);return s.length>0?e.onFailure(a0(s)):xr(n)},onSuccess:e.onSuccess})),Hr=x(2,(t,e)=>re(()=>{const n=Yt(t),i=new Array(n.length);let s=0;return Su(Th({while:()=>se(n[s],s),step:c=>{i[s++]=c}}),i)})),La=x(2,(t,e)=>re(()=>{const n=Yt(t);let i=0;return Th({while:()=>ie(n[i],i),step:()=>{i++}})})),f1=t=>{const e=new De(hu);return e.i0=IT(Ho),e.i1=()=>t,e},de=x(2,(t,e)=>G(t,n=>z(()=>e(n)))),l1=x(2,(t,e)=>Nh(t,{onFailure:n=>u1(()=>e.onFailure(n)),onSuccess:n=>z(()=>e.onSuccess(n))})),Ch=x(2,(t,e)=>No(t,{onFailure:n=>{const i=HT(n);switch(i._tag){case"Left":return u1(()=>e(i.left));case"Right":return xr(i.right)}},onSuccess:At})),d1=x(2,(t,e)=>Ua(n=>No(n(t),{onFailure:i=>{const s=kt(i);return No(e(s),{onFailure:c=>kt(En(i,c)),onSuccess:()=>s})},onSuccess:i=>{const s=Re(i);return Da(e(s),s)}}))),h1=x(2,(t,e)=>d1(t,zL({onFailure:n=>Eh(n)?Ou(e(WT(n))):Fr,onSuccess:()=>Fr}))),At=t=>{const e=new o1(vn);return e.i0=t,e},re=t=>G(z(t),ie),z=t=>{zn(t);const e=new De(Eb);return e.i0=t,e},kh=x(2,(t,e)=>G(t,n=>{const i=typeof e=="function"?e(n):e;return dL(i)?Su(i,n):UN(i)?zo(s=>{i.then(c=>s(At(n))).catch(c=>s(Ie(new P1(c))))}):At(n)})),wL=t=>Zn(e=>{const n=e.getFiberRef(pd),i=P(n,$i(()=>e.scope()));return t(ja(pd,bt(i)))}),m1=t=>{const e=new De(hu);return e.i0=G0(Ho),e.i1=()=>t,e},Ua=t=>{zn(t);const e=new De(hu);return e.i0=G0(Ho),e.i1=n=>K0(n)?t(f1):t(m1),e},Fr=At(void 0),SL=t=>{const e=new De(hu);return e.i0=t,e.i1=void 0,e},Th=t=>{const e=new De(Gc);return e.i0=t.while,e.i1=t.body,e.i2=t.step,zn(t.body),zn(t.step),zn(t.while),e},Lh=t=>{const e=new De(Ac);return typeof(t==null?void 0:t.priority)<"u"?UL(e,t.priority):e},p1=x(2,(t,e)=>G(t,n=>de(e,i=>[n,i]))),g1=x(2,(t,e)=>G(t,n=>Su(e,n))),Da=x(2,(t,e)=>G(t,()=>e)),OL=t=>G(yL,e=>P(t,y1(e))),y1=x(2,(t,e)=>G(t.interruptAsFork(e),()=>t.await)),IL={_tag:"All",syslog:0,label:"ALL",ordinal:Number.MIN_SAFE_INTEGER,pipe(){return X(this,arguments)}},xL={_tag:"Fatal",syslog:2,label:"FATAL",ordinal:5e4,pipe(){return X(this,arguments)}},FL={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return X(this,arguments)}},$L={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return X(this,arguments)}},_1={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return X(this,arguments)}},b1={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return X(this,arguments)}},PL={_tag:"Trace",syslog:7,label:"TRACE",ordinal:0,pipe(){return X(this,arguments)}},ML={_tag:"None",syslog:7,label:"OFF",ordinal:Number.MAX_SAFE_INTEGER,pipe(){return X(this,arguments)}},RL="effect/FiberRef",EL=Symbol.for(RL),AL={_A:t=>t},Ba=t=>S1(t,e=>[e,e]),w1=x(2,(t,e)=>G(Ba(t),e)),Oy=x(2,(t,e)=>S1(t,()=>[void 0,e])),S1=x(2,(t,e)=>Zn(n=>{const[i,s]=e(n.getFiberRef(t));return n.setFiberRef(t,s),At(i)})),ja=x(3,(t,e,n)=>hL(g1(Ba(e),Oy(e,n)),()=>t,i=>Oy(e,i))),Ve=(t,e)=>Jo(t,{differ:B0(),fork:(e==null?void 0:e.fork)??ie,join:e==null?void 0:e.join}),vL=t=>{const e=cT();return Jo(t,{differ:e,fork:e.empty})},NL=t=>{const e=aT(B0());return Jo(t,{differ:e,fork:e.empty})},O1=t=>{const e=uT();return Jo(t,{differ:e,fork:e.empty})},Jo=(t,e)=>({[EL]:AL,initial:t,diff:(n,i)=>e.differ.diff(n,i),combine:(n,i)=>e.differ.combine(n,i),patch:n=>i=>e.differ.patch(n,i),fork:e.fork,join:e.join??((n,i)=>i),pipe(){return X(this,arguments)}}),CL=t=>Jo(t,{differ:fy,fork:fy.empty}),ji=Rt(Symbol.for("effect/FiberRef/currentContext"),()=>O1(gh())),qa=Rt(Symbol.for("effect/FiberRef/currentSchedulingPriority"),()=>Ve(0)),I1=Rt(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),()=>Ve(2048)),kL=Rt(Symbol.for("effect/FiberRef/currentLogAnnotation"),()=>Ve(Ph())),TL=Rt(Symbol.for("effect/FiberRef/currentLogLevel"),()=>Ve(_1)),LL=Rt(Symbol.for("effect/FiberRef/currentLogSpan"),()=>Ve(Mo())),UL=x(2,(t,e)=>ja(t,qa,e)),DL=Rt(Symbol.for("effect/FiberRef/currentConcurrency"),()=>Ve("unbounded")),BL=Rt(Symbol.for("effect/FiberRef/currentRequestBatching"),()=>Ve(!0)),jL=Rt(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),()=>Ve(bt(b1))),Iy=Rt(Symbol.for("effect/FiberRef/currentMetricLabels"),()=>NL(So())),pd=Rt(Symbol.for("effect/FiberRef/currentForkScopeOverride"),()=>Ve(Z(),{fork:()=>Z(),join:(t,e)=>t})),$c=Rt(Symbol.for("effect/FiberRef/currentInterruptedCause"),()=>Ve(zs,{fork:()=>zs,join:(t,e)=>t})),qL=(t,e)=>t.addFinalizer(()=>Ou(e)),WL=(t,e)=>t.close(e),Wa=(t,e)=>t.fork(e),x1=function(){class t extends globalThis.Error{commit(){return Ie(this)}toString(){return this.message?`${this.name}: ${this.message}`:this.name}toJSON(){return{...this}}[Kt](){const n=this.stack;return n?`${this.toString()} +`),e):new py(gy(t),void 0,e)},V0=t=>Ah(t,void 0,{emptyCase:()=>[],dieCase:(e,n)=>[_y(n)],failCase:(e,n)=>[_y(n)],interruptCase:()=>[],parallelCase:(e,n,i)=>[...n,...i],sequentialCase:(e,n,i)=>[...n,...i]}),ka="Pending",t1="Done",ZT="effect/Deferred",VT=Symbol.for(ZT),tL={_E:t=>t,_A:t=>t},vh=t=>({_tag:ka,joiners:t}),eL=t=>({_tag:t1,effect:t}),zn=t=>(Object.defineProperty(t,"name",{value:"effect_cutpoint"}),t),by=Symbol.for("effect/Tracer"),nL=t=>({[by]:by,...t}),dd=Bi("effect/Tracer"),e1=Bi("effect/ParentSpan"),rL=function(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;return function(n){let i="";for(let s=0;s{this.status={_tag:"Ended",endTime:e,exit:n,startTime:this.status.startTime}});_(this,"attribute",(e,n)=>{this.attributes.set(e,n)});_(this,"event",(e,n,i)=>{this.events.push([e,n,i??{}])});this.name=e,this.parent=n,this.context=i,this.links=s,this.startTime=c,this.status={_tag:"Started",startTime:c},this.attributes=new Map,this.spanId=`span${rL(16)}`}}const oL=nL({span:(t,e,n,i,s)=>new iL(t,e,n,i,s),context:t=>t()}),sL="effect/EffectError",hd=Symbol.for(sL),uL=t=>at(t,hd),cL=t=>({[hd]:hd,_tag:"EffectError",cause:t}),n1=(t,e)=>{const n=new De("Blocked");return n.i0=t,n.i1=e,n},aL=t=>{const e=new De("RunBlocked");return e.i0=t,e},Ta=Symbol.for("effect/Effect");class fL{constructor(e,n){_(this,"patch");_(this,"op");_(this,"_op",dh);this.patch=e,this.op=n}}var tK;class De{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,tK,_o);this._op=e}[(tK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}pipe(){return X(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,i0:te(this.i0),i1:te(this.i1),i2:te(this.i2)}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}var eK;class r1{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,eK,_o);this._op=e,this._tag=e}[(eK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}get cause(){return this.i0}pipe(){return X(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}var nK;class i1{constructor(e){_(this,"_op");_(this,"i0");_(this,"i1");_(this,"i2");_(this,"trace");_(this,nK,_o);this._op=e,this._tag=e}[(nK=Ta,nt)](e){return this===e}[rt](){return Wt(this,lu(this))}get value(){return this.i0}pipe(){return X(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:te(this.value)}}toString(){return ye(this.toJSON())}[Kt](){return this.toJSON()}}const lL=t=>at(t,Ta),Zn=t=>{zn(t);const e=new De(Eb);return e.i0=t,e},dL=x(3,(t,e,n)=>Ua(i=>G(t,s=>G(o1(re(()=>i(e(s)))),c=>re(()=>n(s,c)).pipe(No({onFailure:f=>{switch(c._tag){case An:return xr(wu(c.i0,f));case vn:return xr(f)}},onSuccess:()=>c})))))),Su=x(2,(t,e)=>G(t,()=>At(e))),Ou=t=>Su(t,void 0),zo=(t,e=$h)=>re(()=>{zn(t);let n,i;function s(p){n?n(p):i===void 0&&(i=p)}const c=new De(Ec);c.i0=p=>{n=p,i&&p(i)},c.i1=e;let f,d;return t.length!==1?(d=new AbortController,f=t(s,d.signal)):f=t(s),f||d?d1(c,p=>(d&&d.abort(),f??Fr)):c}),wy=x(2,(t,e)=>Nh(t,{onFailure:e,onSuccess:At})),md=Symbol.for("effect/SpanAnnotation"),Sy=Symbol.for("effect/OriginalAnnotation"),hL=(t,e)=>Qn(e)?new Proxy(t,{has(n,i){return i===md||i===Sy||i in n},get(n,i){return i===md?e.value:i===Sy?t:n[i]}}):t,mL=t=>pL(()=>Kr(new WL(t))),Js=t=>Nh(t,{onFailure:e=>At(bo(e)),onSuccess:e=>At(br(e))}),o1=t=>_L(t,{onFailure:kt,onSuccess:Re}),Ie=t=>Ib(t)&&!(md in t)?Zn(e=>xr(ta(hL(t,rU(e))))):xr(ta(t)),s1=t=>G(z(t),Ie),xr=t=>{const e=new r1(An);return e.i0=t,e},pL=t=>G(z(t),xr),gL=Zn(t=>At(t.id())),u1=t=>Zn(e=>t(e.id())),G=x(2,(t,e)=>{zn(e);const n=new De(Kc);return n.i0=t,n.i1=e,n}),yL=t=>{const e=new De("OnStep");return e.i0=t,e},c1=t=>G(t,ie),_L=x(2,(t,e)=>No(t,{onFailure:n=>At(e.onFailure(n)),onSuccess:n=>At(e.onSuccess(n))})),No=x(2,(t,e)=>{const n=new De(Hc);return n.i0=t,n.i1=e.onFailure,n.i2=e.onSuccess,zn(e.onFailure),zn(e.onSuccess),n}),Nh=x(2,(t,e)=>No(t,{onFailure:n=>{if(jT(n).length>0)return xr(HT(n));const s=BT(n);return s.length>0?e.onFailure(c0(s)):xr(n)},onSuccess:e.onSuccess})),Hr=x(2,(t,e)=>re(()=>{const n=Yt(t),i=new Array(n.length);let s=0;return Su(Th({while:()=>se(n[s],s),step:c=>{i[s++]=c}}),i)})),La=x(2,(t,e)=>re(()=>{const n=Yt(t);let i=0;return Th({while:()=>ie(n[i],i),step:()=>{i++}})})),a1=t=>{const e=new De(hu);return e.i0=OT(Ho),e.i1=()=>t,e},de=x(2,(t,e)=>G(t,n=>z(()=>e(n)))),f1=x(2,(t,e)=>Nh(t,{onFailure:n=>s1(()=>e.onFailure(n)),onSuccess:n=>z(()=>e.onSuccess(n))})),Ch=x(2,(t,e)=>No(t,{onFailure:n=>{const i=KT(n);switch(i._tag){case"Left":return s1(()=>e(i.left));case"Right":return xr(i.right)}},onSuccess:At})),l1=x(2,(t,e)=>Ua(n=>No(n(t),{onFailure:i=>{const s=kt(i);return No(e(s),{onFailure:c=>kt(En(i,c)),onSuccess:()=>s})},onSuccess:i=>{const s=Re(i);return Da(e(s),s)}}))),d1=x(2,(t,e)=>l1(t,YL({onFailure:n=>Eh(n)?Ou(e(qT(n))):Fr,onSuccess:()=>Fr}))),At=t=>{const e=new i1(vn);return e.i0=t,e},re=t=>G(z(t),ie),z=t=>{zn(t);const e=new De(Rb);return e.i0=t,e},kh=x(2,(t,e)=>G(t,n=>{const i=typeof e=="function"?e(n):e;return lL(i)?Su(i,n):LN(i)?zo(s=>{i.then(c=>s(At(n))).catch(c=>s(Ie(new $1(c))))}):At(n)})),bL=t=>Zn(e=>{const n=e.getFiberRef(pd),i=P(n,$i(()=>e.scope()));return t(ja(pd,bt(i)))}),h1=t=>{const e=new De(hu);return e.i0=H0(Ho),e.i1=()=>t,e},Ua=t=>{zn(t);const e=new De(hu);return e.i0=H0(Ho),e.i1=n=>W0(n)?t(a1):t(h1),e},Fr=At(void 0),wL=t=>{const e=new De(hu);return e.i0=t,e.i1=void 0,e},Th=t=>{const e=new De(Gc);return e.i0=t.while,e.i1=t.body,e.i2=t.step,zn(t.body),zn(t.step),zn(t.while),e},Lh=t=>{const e=new De(Ac);return typeof(t==null?void 0:t.priority)<"u"?LL(e,t.priority):e},m1=x(2,(t,e)=>G(t,n=>de(e,i=>[n,i]))),p1=x(2,(t,e)=>G(t,n=>Su(e,n))),Da=x(2,(t,e)=>G(t,()=>e)),SL=t=>G(gL,e=>P(t,g1(e))),g1=x(2,(t,e)=>G(t.interruptAsFork(e),()=>t.await)),OL={_tag:"All",syslog:0,label:"ALL",ordinal:Number.MIN_SAFE_INTEGER,pipe(){return X(this,arguments)}},IL={_tag:"Fatal",syslog:2,label:"FATAL",ordinal:5e4,pipe(){return X(this,arguments)}},xL={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return X(this,arguments)}},FL={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return X(this,arguments)}},y1={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return X(this,arguments)}},_1={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return X(this,arguments)}},$L={_tag:"Trace",syslog:7,label:"TRACE",ordinal:0,pipe(){return X(this,arguments)}},PL={_tag:"None",syslog:7,label:"OFF",ordinal:Number.MAX_SAFE_INTEGER,pipe(){return X(this,arguments)}},ML="effect/FiberRef",RL=Symbol.for(ML),EL={_A:t=>t},Ba=t=>w1(t,e=>[e,e]),b1=x(2,(t,e)=>G(Ba(t),e)),Oy=x(2,(t,e)=>w1(t,()=>[void 0,e])),w1=x(2,(t,e)=>Zn(n=>{const[i,s]=e(n.getFiberRef(t));return n.setFiberRef(t,s),At(i)})),ja=x(3,(t,e,n)=>dL(p1(Ba(e),Oy(e,n)),()=>t,i=>Oy(e,i))),Ve=(t,e)=>Jo(t,{differ:D0(),fork:(e==null?void 0:e.fork)??ie,join:e==null?void 0:e.join}),AL=t=>{const e=uT();return Jo(t,{differ:e,fork:e.empty})},vL=t=>{const e=cT(D0());return Jo(t,{differ:e,fork:e.empty})},S1=t=>{const e=sT();return Jo(t,{differ:e,fork:e.empty})},Jo=(t,e)=>({[RL]:EL,initial:t,diff:(n,i)=>e.differ.diff(n,i),combine:(n,i)=>e.differ.combine(n,i),patch:n=>i=>e.differ.patch(n,i),fork:e.fork,join:e.join??((n,i)=>i),pipe(){return X(this,arguments)}}),NL=t=>Jo(t,{differ:fy,fork:fy.empty}),ji=Rt(Symbol.for("effect/FiberRef/currentContext"),()=>S1(gh())),qa=Rt(Symbol.for("effect/FiberRef/currentSchedulingPriority"),()=>Ve(0)),O1=Rt(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),()=>Ve(2048)),CL=Rt(Symbol.for("effect/FiberRef/currentLogAnnotation"),()=>Ve(Ph())),kL=Rt(Symbol.for("effect/FiberRef/currentLogLevel"),()=>Ve(y1)),TL=Rt(Symbol.for("effect/FiberRef/currentLogSpan"),()=>Ve(Mo())),LL=x(2,(t,e)=>ja(t,qa,e)),UL=Rt(Symbol.for("effect/FiberRef/currentConcurrency"),()=>Ve("unbounded")),DL=Rt(Symbol.for("effect/FiberRef/currentRequestBatching"),()=>Ve(!0)),BL=Rt(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),()=>Ve(bt(_1))),Iy=Rt(Symbol.for("effect/FiberRef/currentMetricLabels"),()=>vL(So())),pd=Rt(Symbol.for("effect/FiberRef/currentForkScopeOverride"),()=>Ve(Z(),{fork:()=>Z(),join:(t,e)=>t})),$c=Rt(Symbol.for("effect/FiberRef/currentInterruptedCause"),()=>Ve(zs,{fork:()=>zs,join:(t,e)=>t})),jL=(t,e)=>t.addFinalizer(()=>Ou(e)),qL=(t,e)=>t.close(e),Wa=(t,e)=>t.fork(e),I1=function(){class t extends globalThis.Error{commit(){return Ie(this)}toString(){return this.message?`${this.name}: ${this.message}`:this.name}toJSON(){return{...this}}[Kt](){const n=this.stack;return n?`${this.toString()} ${n.split(` `).slice(1).join(` -`)}`:this.toString()}}return Object.assign(t.prototype,iC),t}(),F1=(t,e)=>{class n extends x1{constructor(){super(...arguments);_(this,"_tag",e)}}return Object.assign(n.prototype,t),n.prototype.name=e,n},xy=Symbol.for("effect/Cause/errors/RuntimeException"),KL=F1({[xy]:xy},"RuntimeException"),HL=Symbol.for("effect/Cause/errors/InterruptedException"),GL=t=>at(t,HL),Fy=Symbol.for("effect/Cause/errors/NoSuchElement"),$1=F1({[Fy]:Fy},"NoSuchElementException"),$y=Symbol.for("effect/Cause/errors/UnknownException"),P1=function(){class t extends x1{constructor(i,s){super(s??(at(i,"message")&&kN(i.message)?i.message:void 0));_(this,"error");_(this,"_tag","UnknownException");this.error=i}}return Object.assign(t.prototype,{[$y]:$y,name:"UnknownException"}),t}(),Py=(t,e)=>XL(t,e!=null&&e.parallel?wu:En),My=t=>kt(ta(t)),kt=t=>{const e=new i1(An);return e.i0=t,e},YL=t=>kt(wi(t)),Tl=x(2,(t,e)=>{switch(t._tag){case An:return kt(t.i0);case vn:return Re(e(t.i0))}}),zL=x(2,(t,{onFailure:e,onSuccess:n})=>{switch(t._tag){case An:return e(t.i0);case vn:return n(t.i0)}}),Re=t=>{const e=new o1(vn);return e.i0=t,e},Si=Re(void 0),JL=x(3,(t,e,{onFailure:n,onSuccess:i})=>{switch(t._tag){case An:switch(e._tag){case vn:return kt(t.i0);case An:return kt(n(t.i0,e.i0))}case vn:switch(e._tag){case vn:return Re(i(t.i0,e.i0));case An:return kt(e.i0)}}}),XL=(t,e)=>{const n=u0(t);return xo(n)?P(bi(n),Vb(P(Fo(n),Tl(Ir)),(i,s)=>P(i,JL(s,{onSuccess:(c,f)=>P(c,Tn(f)),onFailure:e}))),Tl(Io),Tl(i=>Array.from(i)),bt):Z()},QL=t=>({[tL]:eL,state:F0(vh([])),blockingOn:t,pipe(){return X(this,arguments)}}),ZL=t=>zo(e=>{const n=Ea(t.state);switch(n._tag){case e1:return e(n.effect);case ka:return P(t.state,Aa(vh([e,...n.joiners]))),VL(t,e)}},t.blockingOn),M1=(t,e)=>{const n=Ea(t.state);if(n._tag===ka){P(t.state,Aa(nL(e)));for(let i=n.joiners.length-1;i>=0;i--)n.joiners[i](e)}},VL=(t,e)=>z(()=>{const n=Ea(t.state);n._tag===ka&&P(t.state,Aa(vh(n.joiners.filter(i=>i!==e))))}),tU=Ba(ji),eU=()=>tU,Iu=t=>G(eU(),t),nU=x(2,(t,e)=>ja(ji,e)(t)),rU=x(2,(t,e)=>Iu(n=>nU(t,e(n)))),iU=t=>{const e=t.getFiberRef(ji).unsafeMap.get(n1.key);return e!==void 0&&e._tag==="Span"?bt(e):Z()},gd=Symbol.for("effect/Duration"),oU=BigInt(1e3),yd=BigInt(1e9),Ry=/^(-?\d+(?:\.\d+)?)\s+(nanos|micros|millis|seconds|minutes|hours|days|weeks)$/,Zr=t=>{if(R1(t))return t;if(Rc(t))return _d(t);if(TN(t))return Ll(t);if(Array.isArray(t)){if(t.length===2&&Rc(t[0])&&Rc(t[1]))return Ll(BigInt(t[0])*yd+BigInt(t[1]))}else{Ry.lastIndex=0;const e=Ry.exec(t);if(e){const[n,i,s]=e,c=Number(i);switch(s){case"nanos":return Ll(BigInt(i));case"micros":return aU(BigInt(i));case"millis":return _d(c);case"seconds":return fU(c);case"minutes":return lU(c);case"hours":return dU(c);case"days":return hU(c);case"weeks":return mU(c)}}}throw new Error("Invalid duration input")},Ey={_tag:"Millis",millis:0},sU={_tag:"Infinity"},uU={[gd]:gd,[rt](){return Wt(this,Mb(this.value))},[nt](t){return R1(t)&&bU(this,t)},toString(){return`Duration(${wU(this)})`},toJSON(){switch(this.value._tag){case"Millis":return{_id:"Duration",_tag:"Millis",millis:this.value.millis};case"Nanos":return{_id:"Duration",_tag:"Nanos",hrtime:gU(this)};case"Infinity":return{_id:"Duration",_tag:"Infinity"}}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},Er=t=>{const e=Object.create(uU);return Rc(t)?isNaN(t)||t<0?e.value=Ey:Number.isFinite(t)?Number.isInteger(t)?e.value={_tag:"Millis",millis:t}:e.value={_tag:"Nanos",nanos:BigInt(Math.round(t*1e6))}:e.value=sU:tat(t,gd),cU=Er(0),Ll=t=>Er(t),aU=t=>Er(t*oU),_d=t=>Er(t),fU=t=>Er(t*1e3),lU=t=>Er(t*6e4),dU=t=>Er(t*36e5),hU=t=>Er(t*864e5),mU=t=>Er(t*6048e5),bd=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":return 1/0;case"Nanos":return Number(e.value.nanos)/1e6;case"Millis":return e.value.millis}},pU=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":throw new Error("Cannot convert infinite duration to nanos");case"Nanos":return e.value.nanos;case"Millis":return BigInt(Math.round(e.value.millis*1e6))}},gU=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":return[1/0,0];case"Nanos":return[Number(e.value.nanos/yd),Number(e.value.nanos%yd)];case"Millis":return[Math.floor(e.value.millis/1e3),Math.round(e.value.millis%1e3*1e6)]}},E1=x(3,(t,e,n)=>{const i=Zr(t),s=Zr(e);if(i.value._tag==="Infinity"||s.value._tag==="Infinity")return n.onMillis(bd(i),bd(s));if(i.value._tag==="Nanos"||s.value._tag==="Nanos"){const c=i.value._tag==="Nanos"?i.value.nanos:BigInt(Math.round(i.value.millis*1e6)),f=s.value._tag==="Nanos"?s.value.nanos:BigInt(Math.round(s.value.millis*1e6));return n.onNanos(c,f)}return n.onMillis(i.value.millis,s.value.millis)}),yU=(t,e)=>E1(t,e,{onMillis:(n,i)=>n===i,onNanos:(n,i)=>n===i}),_U=x(2,(t,e)=>E1(t,e,{onMillis:(n,i)=>n>=i,onNanos:(n,i)=>n>=i})),bU=x(2,(t,e)=>yU(Zr(t),Zr(e))),wU=t=>{const e=Zr(t),n=[];if(e.value._tag==="Infinity")return"Infinity";const i=pU(e);i%1000000n&&n.push(`${i%1000000n}ns`);const s=i/1000000n;s%1000n!==0n&&n.push(`${s%1000n}ms`);const c=s/1000n;c%60n!==0n&&n.push(`${c%60n}s`);const f=c/60n;f%60n!==0n&&n.push(`${f%60n}m`);const d=f/60n;d%24n!==0n&&n.push(`${d%24n}h`);const p=d/24n;return p!==0n&&n.push(`${p}d`),n.reverse().join(" ")},Ay=Symbol.for("effect/MutableHashMap"),SU={[Ay]:Ay,[Symbol.iterator](){return new Uh(this)},toString(){return ye(this.toJSON())},toJSON(){return{_id:"MutableHashMap",values:Array.from(this).map(te)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}};class Uh{constructor(e){_(this,"self");_(this,"referentialIterator");_(this,"bucketIterator");this.self=e,this.referentialIterator=e.referential[Symbol.iterator]()}next(){if(this.bucketIterator!==void 0)return this.bucketIterator.next();const e=this.referentialIterator.next();return e.done?(this.bucketIterator=new OU(this.self.buckets.values()),this.next()):e}[Symbol.iterator](){return new Uh(this.self)}}class OU{constructor(e){_(this,"backing");_(this,"currentBucket");this.backing=e}next(){if(this.currentBucket===void 0){const n=this.backing.next();if(n.done)return n;this.currentBucket=n.value[Symbol.iterator]()}const e=this.currentBucket.next();return e.done?(this.currentBucket=void 0,this.next()):e}}const IU=()=>{const t=Object.create(SU);return t.referential=new Map,t.buckets=new Map,t.bucketsSize=0,t},yi=x(2,(t,e)=>{if(Wc(e)===!1)return t.referential.has(e)?bt(t.referential.get(e)):Z();const n=e[rt](),i=t.buckets.get(n);return i===void 0?Z():xU(t,i,e)}),xU=(t,e,n,i=!1)=>{for(let s=0,c=e.length;sQn(yi(t,e))),xs=x(3,(t,e,n)=>{if(Wc(e)===!1)return t.referential.set(e,n),t;const i=e[rt](),s=t.buckets.get(i);return s===void 0?(t.buckets.set(i,[[e,n]]),t.bucketsSize++,t):(FU(t,s,e),s.push([e,n]),t.bucketsSize++,t)}),FU=(t,e,n)=>{for(let i=0,s=e.length;iPU)return Ql;let i=!1;const s=setTimeout(()=>{i=!0,t()},n);return()=>(clearTimeout(s),!i)}},Cy=function(){const t=BigInt(1e6);if(typeof performance>"u")return()=>BigInt(Date.now())*t;const e="timeOrigin"in performance&&typeof performance.timeOrigin=="number"?BigInt(Math.round(performance.timeOrigin*1e6)):BigInt(Date.now())*t-BigInt(Math.round(performance.now()*1e6));return()=>e+BigInt(Math.round(performance.now()*1e6))}(),MU=function(){const t=typeof process=="object"&&"hrtime"in process&&typeof process.hrtime.bigint=="function"?process.hrtime:void 0;if(!t)return Cy;const e=Cy()-t.bigint();return()=>e+t.bigint()}();var rK;class RU{constructor(){_(this,rK,vy);_(this,"currentTimeMillis",z(()=>this.unsafeCurrentTimeMillis()));_(this,"currentTimeNanos",z(()=>this.unsafeCurrentTimeNanos()))}unsafeCurrentTimeMillis(){return Date.now()}unsafeCurrentTimeNanos(){return MU()}scheduler(){return At(Ny)}sleep(e){return zo(n=>{const i=Ny.unsafeSchedule(()=>n(Fr),e);return Ou(z(i))})}}rK=vy;const EU=()=>new RU,Xs=dC,A1="And",v1="Or",N1="InvalidData",C1="MissingData",k1="SourceUnavailable",T1="Unsupported",AU="effect/ConfigError",ky=Symbol.for(AU),Xo={[ky]:ky},L1=(t,e)=>{const n=Object.create(Xo);return n._tag=A1,n.left=t,n.right=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} and ${this.right}`}}),n},U1=(t,e)=>{const n=Object.create(Xo);return n._tag=v1,n.left=t,n.right=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} or ${this.right}`}}),n},vU=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=N1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Invalid data at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},Ai=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=C1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Missing data at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},NU=(t,e,n,i={pathDelim:"."})=>{const s=Object.create(Xo);return s._tag=k1,s.path=t,s.message=e,s.cause=n,Object.defineProperty(s,"toString",{enumerable:!1,value(){return`(Source unavailable at ${P(this.path,qo(i.pathDelim))}: "${this.message}")`}}),s},CU=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=T1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Unsupported operation at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},Oi=x(2,(t,e)=>{switch(t._tag){case A1:return L1(Oi(t.left,e),Oi(t.right,e));case v1:return U1(Oi(t.left,e),Oi(t.right,e));case N1:return vU([...e,...t.path],t.message);case C1:return Ai([...e,...t.path],t.message);case k1:return NU([...e,...t.path],t.message,t.cause);case T1:return CU([...e,...t.path],t.message)}}),kU={_tag:"Empty"},Ul=x(2,(t,e)=>{let n=Mh(e),i=t;for(;T0(n);){const s=n.head;switch(s._tag){case"Empty":{n=n.tail;break}case"AndThen":{n=Ei(s.first,Ei(s.second,n.tail));break}case"MapName":{i=zr(i,s.f),n=n.tail;break}case"Nested":{i=Yc(i,s.name),n=n.tail;break}case"Unnested":{if(P(lo(i),wC(s.name)))i=wo(i),n=n.tail;else return bo(Ai(i,`Expected ${s.name} to be in path in ConfigProvider#unnested`));break}}}return br(i)}),TU="Constant",LU="Fail",UU="Fallback",DU="Described",BU="Lazy",jU="MapOrFail",qU="Nested",WU="Primitive",KU="Sequence",HU="HashMap",GU="ZipWith";var Ty={};const ea=(t,e)=>[...t,...e],YU="effect/ConfigProvider",Ly=Symbol.for(YU),zU=Bi("effect/ConfigProvider"),JU="effect/ConfigProviderFlat",Uy=Symbol.for(JU),XU=t=>({[Ly]:Ly,pipe(){return X(this,arguments)},...t}),QU=t=>({[Uy]:Uy,patch:t.patch,load:(e,n,i=!0)=>t.load(e,n,i),enumerateChildren:t.enumerateChildren}),ZU=t=>XU({load:e=>G(fn(t,So(),e,!1),n=>Di(lo(n),{onNone:()=>Ie(Ai(So(),`Expected a single value having structure: ${e}`)),onSome:At})),flattened:t}),VU=t=>{const{pathDelim:e,seqDelim:n}=Object.assign({},{pathDelim:"_",seqDelim:","},t),i=p=>P(p,qo(e)),s=p=>p.split(e),c=()=>typeof process<"u"&&"env"in process&&typeof Ty=="object"?Ty:{};return ZU(QU({load:(p,y,M=!0)=>{const A=i(p),N=c(),C=A in N?bt(N[A]):Z();return P(C,Ch(()=>Ai(p,`Expected ${A} to exist in the process context`)),G(B=>iD(B,p,y,n,M)))},enumerateChildren:p=>z(()=>{const y=c(),M=Object.keys(y),N=Array.from(M).map(C=>s(C.toUpperCase())).filter(C=>{for(let B=0;BC.slice(p.length,p.length+1));return zk(N)}),patch:kU}))},tD=(t,e,n,i)=>{const s=ey(n.length,p=>p>=i.length?Z():bt([t(p),p+1])),c=ey(i.length,p=>p>=n.length?Z():bt([e(p),p+1])),f=ea(n,s),d=ea(i,c);return[f,d]},eD=(t,e)=>{let n=e;if(n._tag==="Nested"){const i=t.slice();for(;n._tag==="Nested";)i.push(n.name),n=n.config;return i}return t},fn=(t,e,n,i)=>{const s=n;switch(s._tag){case TU:return At($n(s.value));case DU:return re(()=>fn(t,e,s.config,i));case LU:return Ie(Ai(e,s.message));case UU:return P(re(()=>fn(t,e,s.first,i)),wy(c=>s.condition(c)?P(fn(t,e,s.second,i),wy(f=>Ie(U1(c,f)))):Ie(c)));case BU:return re(()=>fn(t,e,s.config(),i));case jU:return re(()=>P(fn(t,e,s.original,i),G(Hr(c=>P(s.mapOrFail(c),Ch(Oi(eD(e,s.original))))))));case qU:return re(()=>fn(t,ea(e,$n(s.name)),s.config,i));case WU:return P(Ul(e,t.patch),G(c=>P(t.load(c,s,i),G(f=>{if(f.length===0){const d=P(CC(c),$i(()=>""));return Ie(Ai([],`Expected ${s.description} with name ${d}`))}return At(f)}))));case KU:return P(Ul(e,t.patch),G(c=>P(t.enumerateChildren(c),G(uD),G(f=>f.length===0?re(()=>de(fn(t,c,s.config,!0),$n)):P(Hr(f,d=>fn(t,MC(e,`[${d}]`),s.config,!0)),de(d=>{const p=HC(d);return p.length===0?$n(So()):$n(p)}))))));case HU:return re(()=>P(Ul(e,t.patch),G(c=>P(t.enumerateChildren(c),G(f=>P(f,Hr(d=>fn(t,ea(c,$n(d)),s.valueConfig,i)),de(d=>{if(d.length===0)return $n(Ph());const p=d.map(y=>Array.from(y));return P(oD(p),zr(y=>o2(ty(Yt(f),y))))})))))));case GU:return re(()=>P(fn(t,e,s.left,i),Js,G(c=>P(fn(t,e,s.right,i),Js,G(f=>{if(Es(c)&&Es(f))return Ie(L1(c.left,f.left));if(Es(c)&&xc(f))return Ie(c.left);if(xc(c)&&Es(f))return Ie(f.left);if(xc(c)&&xc(f)){const d=P(e,qo(".")),p=nD(e,d),[y,M]=tD(p,p,P(c.right,zr(br)),P(f.right,zr(br)));return P(y,ty(M),Hr(([A,N])=>P(p1(A,N),de(([C,B])=>s.zip(C,B)))))}throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues")})))))}},nD=(t,e)=>n=>bo(Ai(t,`The element at index ${n} in a sequence at path "${e}" was missing`)),rD=(t,e)=>t.split(new RegExp(`\\s*${sD(e)}\\s*`)),iD=(t,e,n,i,s)=>s?P(rD(t,i),Hr(c=>n.parse(c.trim())),Ch(Oi(e))):P(n.parse(t),l1({onFailure:Oi(e),onSuccess:$n})),oD=t=>Object.keys(t[0]).map(e=>t.map(n=>n[e])),sD=t=>t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),uD=t=>P(Hr(t,aD),l1({onFailure:()=>So(),onSuccess:zc(Xs)}),Js,de(OC)),cD=/^(\[(\d+)\])$/,aD=t=>{const e=t.match(cD);if(e!==null){const n=e[2];return P(n!==void 0&&n.length>0?bt(n):Z(),Gb(fD))}return Z()},fD=t=>{const e=Number.parseInt(t);return Number.isNaN(e)?Z():bt(e)},Dy=Symbol.for("effect/Console"),D1=Bi("effect/Console"),lD={[Dy]:Dy,assert(t,...e){return z(()=>{console.assert(t,...e)})},clear:z(()=>{console.clear()}),count(t){return z(()=>{console.count(t)})},countReset(t){return z(()=>{console.countReset(t)})},debug(...t){return z(()=>{console.debug(...t)})},dir(t,e){return z(()=>{console.dir(t,e)})},dirxml(...t){return z(()=>{console.dirxml(...t)})},error(...t){return z(()=>{console.error(...t)})},group(t){return t!=null&&t.collapsed?z(()=>console.groupCollapsed(t==null?void 0:t.label)):z(()=>console.group(t==null?void 0:t.label))},groupEnd:z(()=>{console.groupEnd()}),info(...t){return z(()=>{console.info(...t)})},log(...t){return z(()=>{console.log(...t)})},table(t,e){return z(()=>{console.table(t,e)})},time(t){return z(()=>console.time(t))},timeEnd(t){return z(()=>console.timeEnd(t))},timeLog(t,...e){return z(()=>{console.timeLog(t,...e)})},trace(...t){return z(()=>{console.trace(...t)})},warn(...t){return z(()=>{console.warn(...t)})},unsafe:console},dD="effect/Random",By=Symbol.for(dD),hD=Bi("effect/Random");var iK;class mD{constructor(e){_(this,"seed");_(this,iK,By);_(this,"PRNG");this.seed=e,this.PRNG=new Pb(e)}get next(){return z(()=>this.PRNG.number())}get nextBoolean(){return de(this.next,e=>e>.5)}get nextInt(){return z(()=>this.PRNG.integer(Number.MAX_SAFE_INTEGER))}nextRange(e,n){return de(this.next,i=>(n-e)*i+e)}nextIntBetween(e,n){return z(()=>this.PRNG.integer(n-e)+e)}shuffle(e){return pD(e,n=>this.nextIntBetween(0,n))}}iK=By;const pD=(t,e)=>re(()=>P(z(()=>Array.from(t)),G(n=>{const i=[];for(let s=n.length;s>=2;s=s-1)i.push(s);return P(i,La(s=>P(e(s),de(c=>gD(n,s-1,c)))),Su(u0(n)))}))),gD=(t,e,n)=>{const i=t[e];return t[e]=t[n],t[n]=i,t},yD=t=>new mD(t),_D=P(gh(),Os(Dh,EU()),Os(D1,lD),Os(hD,yD(Math.random()*4294967296>>>0)),Os(zU,VU()),Os(dd,sL)),Cs=Rt(Symbol.for("effect/DefaultServices/currentServices"),()=>O1(_D));function bD(t){return new Vr(t)}function wD(){return bD(new Map)}const jy=Symbol.for("effect/FiberRefs");var oK;class Vr{constructor(e){_(this,"locals");_(this,oK,jy);this.locals=e}pipe(){return X(this,arguments)}}oK=jy;const SD=(t,e,n,i=!1)=>{const s=t;let c=e,f=n,d=i,p;for(;p===void 0;)if(Xe(c)&&Xe(f)){const y=ze(c)[0],M=wo(c),A=ze(f)[0],N=ze(f)[1],C=wo(f);y.startTimeMillisA.startTimeMillis?c=M:y.idA.id?c=M:p=[N,d]}else p=[s.initial,!0];return p},OD=x(3,(t,e,n)=>{const i=new Map(t.locals);return n.locals.forEach((s,c)=>{const f=s[0][1];if(!s[0][0][nt](e)){if(!i.has(c)){if(ct(f,c.initial))return;i.set(c,[[e,c.join(c.initial,f)]]);return}const d=i.get(c),[p,y]=SD(c,d,s);if(y){const M=c.diff(p,f),A=d[0][1],N=c.join(A,c.patch(M)(A));if(!ct(A,N)){let C;const B=d[0][0];B[nt](e)?C=[[B,N],...d.slice(1)]:C=[[e,N],...d],i.set(c,C)}}}}),new Vr(i)}),ID=x(2,(t,e)=>{const n=new Map;return B1(t,n,e),new Vr(n)}),B1=(t,e,n)=>{t.locals.forEach((i,s)=>{const c=i[0][1],f=s.patch(s.fork)(c);ct(c,f)?e.set(s,i):e.set(s,[[n,f],...i])})},j1=x(2,(t,e)=>{const n=new Map(t.locals);return n.delete(e),new Vr(n)}),wd=x(2,(t,e)=>t.locals.has(e)?bt(ze(t.locals.get(e))[1]):Z()),Bh=x(2,(t,e)=>P(wd(t,e),$i(()=>e.initial))),Sd=x(2,(t,{fiberId:e,fiberRef:n,value:i})=>{if(t.locals.size===0)return new Vr(new Map([[n,[[e,i]]]]));const s=new Map(t.locals);return Od(s,e,n,i),new Vr(s)}),Od=(t,e,n,i)=>{const s=t.get(n)??[];let c;if(Xe(s)){const[f,d]=ze(s);if(f[nt](e)){if(ct(d,i))return;c=[[e,i],...s.slice(1)]}else c=[[e,i],...s]}else c=[[e,i]];t.set(n,c)},xD=x(2,(t,{entries:e,forkAs:n})=>{if(t.locals.size===0)return new Vr(new Map(e));const i=new Map(t.locals);return n!==void 0&&B1(t,i,n),e.forEach(([s,c])=>{c.length===1?Od(i,c[0][0],s,c[0][1]):c.forEach(([f,d])=>{Od(i,f,s,d)})}),new Vr(i)}),FD=Bh,$D=xD,PD=wD,MD=IL,RD=xL,ED=FL,AD=$L,vD=_1,ND=b1,CD=PL,kD=ML,TD=P(Xs,hC(t=>t.ordinal)),LD=mC(TD),UD=t=>{switch(t){case"All":return MD;case"Debug":return ND;case"Error":return ED;case"Fatal":return RD;case"Info":return vD;case"Trace":return CD;case"None":return kD;case"Warning":return AD}},DD=t=>e=>`${e.label.replace(/[\s="]/g,"_")}=${t-e.startTime}ms`,BD=DD,q1="Empty",W1="Add",K1="Remove",H1="Update",G1="AndThen",jD={_tag:q1},qD=(t,e)=>{const n=new Map(t.locals);let i=jD;for(const[s,c]of e.locals.entries()){const f=ze(c)[1],d=n.get(s);if(d!==void 0){const p=ze(d)[1];ct(p,f)||(i=Dl({_tag:H1,fiberRef:s,patch:s.diff(p,f)})(i))}else i=Dl({_tag:W1,fiberRef:s,value:f})(i);n.delete(s)}for(const[s]of n.entries())i=Dl({_tag:K1,fiberRef:s})(i);return i},Dl=x(2,(t,e)=>({_tag:G1,first:t,second:e})),WD=x(3,(t,e,n)=>{let i=n,s=$n(t);for(;Xe(s);){const c=ze(s),f=wo(s);switch(c._tag){case q1:{s=f;break}case W1:{i=Sd(i,{fiberId:e,fiberRef:c.fiberRef,value:c.value}),s=f;break}case K1:{i=j1(i,c.fiberRef),s=f;break}case H1:{const d=Bh(i,c.fiberRef);i=Sd(i,{fiberId:e,fiberRef:c.fiberRef,value:c.fiberRef.patch(c.patch)(d)}),s=f;break}case G1:{s=Yc(c.first)(Yc(c.second)(f));break}}}return i}),Y1="effect/MetricLabel",Id=Symbol.for(Y1);var sK;class KD{constructor(e,n){_(this,"key");_(this,"value");_(this,sK,Id);_(this,"_hash");this.key=e,this.value=n,this._hash=fe(Y1+this.key+this.value)}[(sK=Id,rt)](){return this._hash}[nt](e){return GD(e)&&this.key===e.key&&this.value===e.value}pipe(){return X(this,arguments)}}const HD=(t,e)=>new KD(t,e),GD=t=>at(t,Id),YD=t=>{let e,n;return typeof t=="function"?e=t:(e=t.try,n=t.catch),z(()=>{try{return e()}catch(i){throw aL(ta(n?n(i):new P1(i)))}})},qy=vb,zD="Sequential",JD="Parallel",XD="ParallelN",z1={_tag:zD},QD={_tag:JD},ZD=t=>({_tag:XD,parallelism:t}),xd=z1,Fd=QD,$d=ZD,VD=qD,tB=WD,Ka="effect/FiberStatus",vi=Symbol.for(Ka),na="Done",Wy="Running",Ky="Suspended",eB=fe(`${Ka}-${na}`);var uK;class nB{constructor(){_(this,uK,vi);_(this,"_tag",na)}[(uK=vi,rt)](){return eB}[nt](e){return jh(e)&&e._tag===na}}var cK;class rB{constructor(e){_(this,"runtimeFlags");_(this,cK,vi);_(this,"_tag",Wy);this.runtimeFlags=e}[(cK=vi,rt)](){return P(K(Ka),_t(K(this._tag)),_t(K(this.runtimeFlags)),Wt(this))}[nt](e){return jh(e)&&e._tag===Wy&&this.runtimeFlags===e.runtimeFlags}}var aK;class iB{constructor(e,n){_(this,"runtimeFlags");_(this,"blockingOn");_(this,aK,vi);_(this,"_tag",Ky);this.runtimeFlags=e,this.blockingOn=n}[(aK=vi,rt)](){return P(K(Ka),_t(K(this._tag)),_t(K(this.runtimeFlags)),_t(K(this.blockingOn)),Wt(this))}[nt](e){return jh(e)&&e._tag===Ky&&this.runtimeFlags===e.runtimeFlags&&ct(this.blockingOn,e.blockingOn)}}const oB=new nB,sB=t=>new rB(t),uB=(t,e)=>new iB(t,e),jh=t=>at(t,vi),cB=t=>t._tag===na,aB=oB,J1=sB,fB=uB,lB=cB;class X1{constructor(){_(this,"buckets",[])}scheduleTask(e,n){let i,s;for(s=0;s=this.maxNextTickBeforeTimer?setTimeout(()=>this.starveInternal(0),0):Promise.resolve(void 0).then(()=>this.starveInternal(e+1))}shouldYield(e){return e.currentOpCount>e.getFiberRef(I1)?e.getFiberRef(qa):!1}scheduleTask(e,n){this.tasks.scheduleTask(e,n),this.running||(this.running=!0,this.starve())}}const Q1=Rt(Symbol.for("effect/Scheduler/defaultScheduler"),()=>new dB(2048));class hB{constructor(){_(this,"tasks",new X1);_(this,"deferred",!1)}scheduleTask(e,n){this.deferred?Q1.scheduleTask(e,n):this.tasks.scheduleTask(e,n)}shouldYield(e){return e.currentOpCount>e.getFiberRef(I1)?e.getFiberRef(qa):!1}flush(){for(;this.tasks.buckets.length>0;){const e=this.tasks.buckets;this.tasks.buckets=[];for(const[n,i]of e)for(let s=0;sVe(Q1)),Z1=Rt(Symbol.for("effect/FiberRef/currentRequestMap"),()=>Ve(new Map)),Hy=(t,e,n,i)=>{switch(t){case void 0:return e();case"unbounded":return n();case"inherit":return w1(DL,s=>s==="unbounded"?n():s>1?i(s):e());default:return t>1?i(t):e()}},qh="InterruptSignal",Wh="Stateful",Kh="Resume",Hh="YieldNow",Bl=t=>({_tag:qh,cause:t}),Tc=t=>({_tag:Wh,onFiber:t}),so=t=>({_tag:Kh,effect:t}),mB=()=>({_tag:Hh}),pB="effect/FiberScope",ra=Symbol.for(pB);var fK;class gB{constructor(){_(this,fK,ra);_(this,"fiberId",$h);_(this,"roots",new Set)}add(e,n){this.roots.add(n),n.addObserver(()=>{this.roots.delete(n)})}}fK=ra;var lK;class yB{constructor(e,n){_(this,"fiberId");_(this,"parent");_(this,lK,ra);this.fiberId=e,this.parent=n}add(e,n){this.parent.tell(Tc(i=>{i.addChild(n),n.addObserver(()=>{i.removeChild(n)})}))}}lK=ra;const _B=t=>new yB(t.id(),t),Gh=Rt(Symbol.for("effect/FiberScope/Global"),()=>new gB),bB="effect/Fiber",wB=Symbol.for(bB),SB={_E:t=>t,_A:t=>t},OB="effect/Fiber",IB=Symbol.for(OB),xB=t=>t.await,FB=t=>g1(a1(t.await),t.inheritAll),pi="effect/FiberCurrent",$B="effect/Logger",PB=Symbol.for($B),MB={_Message:t=>t,_Output:t=>t},Yh=t=>({[PB]:MB,log:t,pipe(){return X(this,arguments)}}),RB=Yh(({annotations:t,cause:e,date:n,fiberId:i,logLevel:s,message:c,spans:f})=>{const d=n.getTime();let y=[`timestamp=${n.toISOString()}`,`level=${s.label}`,`fiber=${P0(i)}`].join(" ");const M=Md(c);if(M.length>0&&(y=y+" message=",y=jl(M,y)),e!=null&&e._tag!=="Empty"&&(y=y+" cause=",y=jl(Ca(e),y)),T0(f)){y=y+" ";let A=!0;for(const N of f)A?A=!1:y=y+" ",y=y+P(N,BD(d))}if(P(t,u2)>0){y=y+" ";let A=!0;for(const[N,C]of t)A?A=!1:y=y+" ",y=y+vB(N),y=y+"=",y=jl(Md(C),y)}return y}),Md=t=>{try{return typeof t=="object"?JSON.stringify(t):String(t)}catch{return String(t)}},EB=t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`,AB=/^[^\s"=]+$/,jl=(t,e)=>e+(t.match(AB)?t:EB(t)),vB=t=>t.replace(/[\s="]/g,"_"),V1="effect/MetricBoundaries",Rd=Symbol.for(V1);var dK;class NB{constructor(e){_(this,"values");_(this,dK,Rd);_(this,"_hash");this.values=e,this._hash=P(fe(V1),_t(du(this.values)))}[(dK=Rd,rt)](){return this._hash}[nt](e){return CB(e)&&ct(this.values,e.values)}pipe(){return X(this,arguments)}}const CB=t=>at(t,Rd),kB=t=>{const e=P(t,zb(Ir(Number.POSITIVE_INFINITY)),GC);return new NB(e)},TB=t=>P(PC(t.count-1,e=>t.start*Math.pow(t.factor,e)),c0,kB),LB="effect/MetricKeyType",tw=Symbol.for(LB),ew="effect/MetricKeyType/Counter",Ed=Symbol.for(ew),UB="effect/MetricKeyType/Frequency",DB=Symbol.for(UB),BB="effect/MetricKeyType/Gauge",jB=Symbol.for(BB),nw="effect/MetricKeyType/Histogram",Ad=Symbol.for(nw),qB="effect/MetricKeyType/Summary",WB=Symbol.for(qB),rw={_In:t=>t,_Out:t=>t};var hK,mK;class KB{constructor(e,n){_(this,"incremental");_(this,"bigint");_(this,hK,rw);_(this,mK,Ed);_(this,"_hash");this.incremental=e,this.bigint=n,this._hash=fe(ew)}[(hK=tw,mK=Ed,rt)](){return this._hash}[nt](e){return iw(e)}pipe(){return X(this,arguments)}}var pK,gK;class HB{constructor(e){_(this,"boundaries");_(this,pK,rw);_(this,gK,Ad);_(this,"_hash");this.boundaries=e,this._hash=P(fe(nw),_t(K(this.boundaries)))}[(pK=tw,gK=Ad,rt)](){return this._hash}[nt](e){return ow(e)&&ct(this.boundaries,e.boundaries)}pipe(){return X(this,arguments)}}const GB=t=>new KB((t==null?void 0:t.incremental)??!1,(t==null?void 0:t.bigint)??!1),YB=t=>new HB(t),iw=t=>at(t,Ed),zB=t=>at(t,DB),JB=t=>at(t,jB),ow=t=>at(t,Ad),XB=t=>at(t,WB),QB="effect/MetricKey",sw=Symbol.for(QB),ZB={_Type:t=>t},VB=ph(ct);var yK;class zh{constructor(e,n,i,s=[]){_(this,"name");_(this,"keyType");_(this,"description");_(this,"tags");_(this,yK,ZB);_(this,"_hash");this.name=e,this.keyType=n,this.description=i,this.tags=s,this._hash=P(fe(this.name+this.description),_t(K(this.keyType)),_t(du(this.tags)))}[(yK=sw,rt)](){return this._hash}[nt](e){return t3(e)&&this.name===e.name&&ct(this.keyType,e.keyType)&&ct(this.description,e.description)&&VB(this.tags,e.tags)}pipe(){return X(this,arguments)}}const t3=t=>at(t,sw),e3=(t,e)=>new zh(t,GB(e),mh(e==null?void 0:e.description)),n3=(t,e,n)=>new zh(t,YB(e),mh(n)),r3=x(2,(t,e)=>e.length===0?t:new zh(t.name,t.keyType,t.description,Vl(t.tags,e))),i3="effect/MetricState",xu=Symbol.for(i3),uw="effect/MetricState/Counter",vd=Symbol.for(uw),cw="effect/MetricState/Frequency",Nd=Symbol.for(cw),aw="effect/MetricState/Gauge",Cd=Symbol.for(aw),fw="effect/MetricState/Histogram",kd=Symbol.for(fw),lw="effect/MetricState/Summary",Td=Symbol.for(lw),Fu={_A:t=>t};var _K,bK;class o3{constructor(e){_(this,"count");_(this,_K,Fu);_(this,bK,vd);this.count=e}[(_K=xu,bK=vd,rt)](){return P(K(uw),_t(K(this.count)),Wt(this))}[nt](e){return g3(e)&&this.count===e.count}pipe(){return X(this,arguments)}}const s3=ph(ct);var wK,SK;class u3{constructor(e){_(this,"occurrences");_(this,wK,Fu);_(this,SK,Nd);_(this,"_hash");this.occurrences=e}[(wK=xu,SK=Nd,rt)](){return P(fe(cw),_t(du(Yt(this.occurrences.entries()))),Wt(this))}[nt](e){return y3(e)&&s3(Yt(this.occurrences.entries()),Yt(e.occurrences.entries()))}pipe(){return X(this,arguments)}}var OK,IK;class c3{constructor(e){_(this,"value");_(this,OK,Fu);_(this,IK,Cd);this.value=e}[(OK=xu,IK=Cd,rt)](){return P(K(aw),_t(K(this.value)),Wt(this))}[nt](e){return _3(e)&&this.value===e.value}pipe(){return X(this,arguments)}}var xK,FK;class a3{constructor(e,n,i,s,c){_(this,"buckets");_(this,"count");_(this,"min");_(this,"max");_(this,"sum");_(this,xK,Fu);_(this,FK,kd);this.buckets=e,this.count=n,this.min=i,this.max=s,this.sum=c}[(xK=xu,FK=kd,rt)](){return P(K(fw),_t(K(this.buckets)),_t(K(this.count)),_t(K(this.min)),_t(K(this.max)),_t(K(this.sum)),Wt(this))}[nt](e){return b3(e)&&ct(this.buckets,e.buckets)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return X(this,arguments)}}var $K,PK;class f3{constructor(e,n,i,s,c,f){_(this,"error");_(this,"quantiles");_(this,"count");_(this,"min");_(this,"max");_(this,"sum");_(this,$K,Fu);_(this,PK,Td);this.error=e,this.quantiles=n,this.count=i,this.min=s,this.max=c,this.sum=f}[($K=xu,PK=Td,rt)](){return P(K(lw),_t(K(this.error)),_t(K(this.quantiles)),_t(K(this.count)),_t(K(this.min)),_t(K(this.max)),_t(K(this.sum)),Wt(this))}[nt](e){return w3(e)&&this.error===e.error&&ct(this.quantiles,e.quantiles)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return X(this,arguments)}}const l3=t=>new o3(t),d3=t=>new u3(t),h3=t=>new c3(t),m3=t=>new a3(t.buckets,t.count,t.min,t.max,t.sum),p3=t=>new f3(t.error,t.quantiles,t.count,t.min,t.max,t.sum),g3=t=>at(t,vd),y3=t=>at(t,Nd),_3=t=>at(t,Cd),b3=t=>at(t,kd),w3=t=>at(t,Td),S3="effect/MetricHook",O3=Symbol.for(S3),I3={_In:t=>t,_Out:t=>t},$u=t=>({[O3]:I3,pipe(){return X(this,arguments)},...t}),Gy=BigInt(0),x3=t=>{let e=t.keyType.bigint?Gy:0;const n=t.keyType.incremental?t.keyType.bigint?i=>i>=Gy:i=>i>=0:i=>!0;return $u({get:()=>l3(e),update:i=>{n(i)&&(e=e+i)}})},F3=t=>{const e=new Map;return $u({get:()=>d3(e),update:i=>{const s=e.get(i)??0;e.set(i,s+1)}})},$3=(t,e)=>{let n=e;return $u({get:()=>h3(n),update:i=>{n=i}})},P3=t=>{const e=t.keyType.boundaries.values,n=e.length,i=new Uint32Array(n+1),s=new Float32Array(n);let c=0,f=0,d=Number.MAX_VALUE,p=Number.MIN_VALUE;P(e,zc(Xs),zr((A,N)=>{s[N]=A}));const y=A=>{let N=0,C=n;for(;N!==C;){const B=Math.floor(N+(C-N)/2),mt=s[B];A<=mt?C=B:N=B,C===N+1&&(A<=s[N]?C=N:N=C)}i[N]=i[N]+1,c=c+1,f=f+A,Ap&&(p=A)},M=()=>{const A=Array(n);let N=0;for(let C=0;Cm3({buckets:M(),count:c,min:d,max:p,sum:f}),update:y})},M3=t=>{const{error:e,maxAge:n,maxSize:i,quantiles:s}=t.keyType,c=P(s,zc(Xs)),f=Array(i);let d=0,p=0,y=0,M=Number.MAX_VALUE,A=Number.MIN_VALUE;const N=B=>{const mt=[];let tt=0;for(;tt!==i-1;){const Ft=f[tt];if(Ft!=null){const[pt,ft]=Ft,Xt=_d(B-pt);_U(Xt,cU)&&Xt<=n&&mt.push(ft)}tt=tt+1}return R3(e,c,zc(mt,Xs))},C=(B,mt)=>{if(i>0){d=d+1;const tt=d%i;f[tt]=[mt,B]}p=p+1,y=y+B,BA&&(A=B)};return $u({get:()=>p3({error:e,quantiles:N(Date.now()),count:p,min:M,max:A,sum:y}),update:([B,mt])=>C(B,mt)})},R3=(t,e,n)=>{const i=n.length;if(!Xe(e))return So();const s=e[0],c=e.slice(1),f=Yy(t,i,Z(),0,s,n),d=$n(f);return c.forEach(p=>{d.push(Yy(t,i,f.value,f.consumed,p,f.rest))}),zr(d,p=>[p.quantile,p.value])},Yy=(t,e,n,i,s,c)=>{let f=t,d=e,p=n,y=i,M=s,A=c,N=t,C=e,B=n,mt=i,tt=s,Ft=c;for(;;){if(!Xe(A))return{quantile:M,value:Z(),consumed:y,rest:[]};if(M===1)return{quantile:M,value:bt(Qb(A)),consumed:y+A.length,rest:[]};const pt=TC(A,_e=>_e<=A[0]),ft=M*d,Xt=f/2*ft,Ht=y+pt[0].length,_n=Math.abs(Ht-ft);if(Htft+Xt)return{quantile:M,value:p,consumed:y,rest:A};switch(p._tag){case"None":{N=f,C=d,B=lo(A),mt=Ht,tt=M,Ft=pt[1],f=N,d=C,p=B,y=mt,M=tt,A=Ft;continue}case"Some":{const _e=Math.abs(ft-p.value);if(_n<_e){N=f,C=d,B=lo(A),mt=Ht,tt=M,Ft=pt[1],f=N,d=C,p=B,y=mt,M=tt,A=Ft;continue}return{quantile:M,value:bt(p.value),consumed:y,rest:A}}}}throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues")},E3="effect/MetricPair",A3=Symbol.for(E3),v3={_Type:t=>t},N3=(t,e)=>({[A3]:v3,metricKey:t,metricState:e,pipe(){return X(this,arguments)}}),C3="effect/MetricRegistry",zy=Symbol.for(C3);var MK;class k3{constructor(){_(this,MK,zy);_(this,"map",IU())}snapshot(){const e=[];for(const[n,i]of this.map)e.push(N3(n,i.get()));return e}get(e){const n=P(this.map,yi(e),gi);if(n==null){if(iw(e.keyType))return this.getCounter(e);if(JB(e.keyType))return this.getGauge(e);if(zB(e.keyType))return this.getFrequency(e);if(ow(e.keyType))return this.getHistogram(e);if(XB(e.keyType))return this.getSummary(e);throw new Error("BUG: MetricRegistry.get - unknown MetricKeyType - please report an issue at https://github.com/Effect-TS/effect/issues")}else return n}getCounter(e){let n=P(this.map,yi(e),gi);if(n==null){const i=x3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getFrequency(e){let n=P(this.map,yi(e),gi);if(n==null){const i=F3();P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getGauge(e){let n=P(this.map,yi(e),gi);if(n==null){const i=$3(e,e.keyType.bigint?BigInt(0):0);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getHistogram(e){let n=P(this.map,yi(e),gi);if(n==null){const i=P3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getSummary(e){let n=P(this.map,yi(e),gi);if(n==null){const i=M3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}}MK=zy;const T3=()=>new k3,L3="effect/Metric",U3=Symbol.for(L3),D3={_Type:t=>t,_In:t=>t,_Out:t=>t},Jy=Rt(Symbol.for("effect/Metric/globalMetricRegistry"),()=>T3()),dw=function(t,e,n){return Object.assign(s=>kh(s,c=>z(()=>e(c,[]))),{[U3]:D3,keyType:t,unsafeUpdate:e,unsafeValue:n,register(){return this.unsafeValue([]),this},pipe(){return X(this,arguments)}})},Ha=(t,e)=>hw(e3(t,e)),hw=t=>{let e;const n=new WeakMap,i=s=>{if(s.length===0)return e!==void 0||(e=Jy.get(t)),e;let c=n.get(s);return c!==void 0||(c=Jy.get(r3(t,s)),n.set(s,c)),c};return dw(t.keyType,(s,c)=>i(c).update(s),s=>i(s).get())},B3=(t,e,n)=>hw(n3(t,e,n)),j3=x(3,(t,e,n)=>q3(t,[HD(e,n)])),q3=x(2,(t,e)=>dw(t.keyType,(n,i)=>t.unsafeUpdate(n,Vl(e,i)),n=>t.unsafeValue(Vl(e,n)))),W3="effect/Request",K3=Symbol.for(W3),H3={_E:t=>t,_A:t=>t};({...hh,[K3]:0});const G3=x(2,(t,e)=>w1(Z1,n=>z(()=>{if(n.has(t)){const i=n.get(t);i.state.completed||(i.state.completed=!0,M1(i.result,e))}}))),Y3="effect/Supervisor",Ga=Symbol.for(Y3),Jh={_T:t=>t};var RK;const om=class om{constructor(e,n){_(this,"underlying");_(this,"value0");_(this,RK,Jh);this.underlying=e,this.value0=n}get value(){return this.value0}onStart(e,n,i,s){this.underlying.onStart(e,n,i,s)}onEnd(e,n){this.underlying.onEnd(e,n)}onEffect(e,n){this.underlying.onEffect(e,n)}onSuspend(e){this.underlying.onSuspend(e)}onResume(e){this.underlying.onResume(e)}map(e){return new om(this,P(this.value,de(e)))}zip(e){return new oa(this,e)}};RK=Ga;let ia=om;var EK;const sm=class sm{constructor(e,n){_(this,"left");_(this,"right");_(this,"_tag","Zip");_(this,EK,Jh);this.left=e,this.right=n}get value(){return p1(this.left.value,this.right.value)}onStart(e,n,i,s){this.left.onStart(e,n,i,s),this.right.onStart(e,n,i,s)}onEnd(e,n){this.left.onEnd(e,n),this.right.onEnd(e,n)}onEffect(e,n){this.left.onEffect(e,n),this.right.onEffect(e,n)}onSuspend(e){this.left.onSuspend(e),this.right.onSuspend(e)}onResume(e){this.left.onResume(e),this.right.onResume(e)}map(e){return new ia(this,P(this.value,de(e)))}zip(e){return new sm(this,e)}};EK=Ga;let oa=sm;const mw=t=>at(t,Ga)&&Fb(t,"Zip");var AK;class z3{constructor(e){_(this,"effect");_(this,AK,Jh);this.effect=e}get value(){return this.effect}onStart(e,n,i,s){}onEnd(e,n){}onEffect(e,n){}onSuspend(e){}onResume(e){}map(e){return new ia(this,P(this.value,de(e)))}zip(e){return new oa(this,e)}onRun(e,n){return e()}}AK=Ga;const J3=t=>new z3(t),Ya=Rt("effect/Supervisor/none",()=>J3(Fr)),X3=Ko,pw="Empty",gw="AddSupervisor",yw="RemoveSupervisor",_w="AndThen",ks={_tag:pw},Lc=(t,e)=>({_tag:_w,first:t,second:e}),Q3=(t,e)=>Z3(e,Ir(t)),Z3=(t,e)=>{let n=t,i=e;for(;xo(i);){const s=Fo(i);switch(s._tag){case pw:{i=bi(i);break}case gw:{n=n.zip(s.supervisor),i=bi(i);break}case yw:{n=Ld(n,s.supervisor),i=bi(i);break}case _w:{i=Tn(s.first)(Tn(s.second)(bi(i)));break}}}return n},Ld=(t,e)=>ct(t,e)?Ya:mw(t)?Ld(t.left,e).zip(Ld(t.right,e)):t,sa=t=>ct(t,Ya)?Ri():mw(t)?P(sa(t.left),Ks(sa(t.right))):xh(t),V3=(t,e)=>{if(ct(t,e))return ks;const n=sa(t),i=sa(e),s=P(i,ry(n),Qc(ks,(f,d)=>Lc(f,{_tag:gw,supervisor:d}))),c=P(n,ry(i),Qc(ks,(f,d)=>Lc(f,{_tag:yw,supervisor:d})));return Lc(s,c)},tj=X3({empty:ks,patch:Q3,combine:Lc,diff:V3}),ej=Ha("effect_fiber_started"),Xy=Ha("effect_fiber_active"),nj=Ha("effect_fiber_successes"),rj=Ha("effect_fiber_failures"),ij=j3(B3("effect_fiber_lifetimes",TB({start:.5,factor:2,count:35})),"time_unit","milliseconds"),Fs="Continue",oj="Done",Qy="Yield",sj={_E:t=>t,_A:t=>t},$s=t=>{throw new Error(`BUG: FiberRuntime - ${JSON.stringify(t)} - please report an issue at https://github.com/Effect-TS/effect/issues`)},Br=Symbol.for("effect/internal/fiberRuntime/YieldedOp"),gr=Rt("effect/internal/fiberRuntime/yieldedOpChannel",()=>({currentOp:null})),Pc={[Kc]:(t,e,n)=>e.i1(n),OnStep:(t,e,n)=>Re(Re(n)),[Hc]:(t,e,n)=>e.i2(n),[dh]:(t,e,n)=>(t.patchRuntimeFlags(t._runtimeFlags,e.patch),qr(t._runtimeFlags)&&t.isInterrupted()?kt(t.getInterruptedCause()):Re(n)),[Gc]:(t,e,n)=>(e.i2(n),e.i0()?(t.pushStack(e),e.i1()):Fr)},uj={[qh]:(t,e,n,i)=>(t.processNewInterruptSignal(i.cause),qr(e)?kt(i.cause):n),[Kh]:(t,e,n,i)=>{throw new Error("It is illegal to have multiple concurrent run loops in a single fiber")},[Wh]:(t,e,n,i)=>(i.onFiber(t,J1(e)),n),[Hh]:(t,e,n,i)=>G(Lh(),()=>n)},cj=t=>La(xT(t),e=>xi(LT(e),([n,i])=>{const s=new Map;for(const c of i)for(const f of c)s.set(f.request,f);return ja(Ij(n.runAll(i),i.flat()),Z1,s)},!1,!1));var vK,NK;class bw{constructor(e,n,i){_(this,vK,SB);_(this,NK,sj);_(this,"_fiberRefs");_(this,"_fiberId");_(this,"_runtimeFlags");_(this,"_queue",new Array);_(this,"_children",null);_(this,"_observers",new Array);_(this,"_running",!1);_(this,"_stack",[]);_(this,"_asyncInterruptor",null);_(this,"_asyncBlockingOn",null);_(this,"_exitValue",null);_(this,"_steps",[]);_(this,"_supervisor");_(this,"_scheduler");_(this,"_tracer");_(this,"currentOpCount",0);_(this,"isYielding",!1);_(this,"run",()=>{this.drainQueueOnCurrentThread()});if(this._runtimeFlags=i,this._fiberId=e,this._fiberRefs=n,this._supervisor=this.getFiberRef(r_),this._scheduler=this.getFiberRef(Pd),ay(i)){const s=this.getFiberRef(Iy);ej.unsafeUpdate(1,s),Xy.unsafeUpdate(1,s)}this._tracer=As(this.getFiberRef(Cs),dd)}pipe(){return X(this,arguments)}id(){return this._fiberId}resume(e){this.tell(so(e))}get status(){return this.ask((e,n)=>n)}get runtimeFlags(){return this.ask((e,n)=>lB(n)?e._runtimeFlags:n.runtimeFlags)}scope(){return _B(this)}get children(){return this.ask(e=>Array.from(e.getChildren()))}getChildren(){return this._children===null&&(this._children=new Set),this._children}getInterruptedCause(){return this.getFiberRef($c)}fiberRefs(){return this.ask(e=>e.getFiberRefs())}ask(e){return re(()=>{const n=QL(this._fiberId);return this.tell(Tc((i,s)=>{M1(n,z(()=>e(i,s)))})),ZL(n)})}tell(e){this._queue.push(e),this._running||(this._running=!0,this.drainQueueLaterOnExecutor())}get await(){return zo(e=>{const n=i=>e(At(i));return this.tell(Tc((i,s)=>{i._exitValue!==null?n(this._exitValue):i.addObserver(n)})),z(()=>this.tell(Tc((i,s)=>{i.removeObserver(n)})))},this.id())}get inheritAll(){return Zn((e,n)=>{const i=e.id(),s=e.getFiberRefs(),c=n.runtimeFlags,f=this.getFiberRefs(),d=OD(s,i,f);e.setFiberRefs(d);const p=e.getFiberRef(n_),y=P(Cc(c,p),ly(Ho),ly(fd));return SL(y)})}get poll(){return z(()=>mh(this._exitValue))}unsafePoll(){return this._exitValue}interruptAsFork(e){return z(()=>this.tell(Bl(wi(e))))}unsafeInterruptAsFork(e){this.tell(Bl(wi(e)))}addObserver(e){this._exitValue!==null?e(this._exitValue):this._observers.push(e)}removeObserver(e){this._observers=this._observers.filter(n=>n!==e)}getFiberRefs(){return this.setFiberRef(n_,this._runtimeFlags),this._fiberRefs}unsafeDeleteFiberRef(e){this._fiberRefs=j1(this._fiberRefs,e)}getFiberRef(e){return this._fiberRefs.locals.has(e)?this._fiberRefs.locals.get(e)[0][1]:e.initial}setFiberRef(e,n){this._fiberRefs=Sd(this._fiberRefs,{fiberId:this._fiberId,fiberRef:e,value:n}),this.refreshRefCache()}refreshRefCache(){this._tracer=As(this.getFiberRef(Cs),dd),this._supervisor=this.getFiberRef(r_),this._scheduler=this.getFiberRef(Pd)}setFiberRefs(e){this._fiberRefs=e,this.refreshRefCache()}addChild(e){this.getChildren().add(e)}removeChild(e){this.getChildren().delete(e)}drainQueueOnCurrentThread(){let e=!0;for(;e;){let n=Fs;const i=globalThis[pi];globalThis[pi]=this;try{for(;n===Fs;)n=this._queue.length===0?oj:this.evaluateMessageWhileSuspended(this._queue.splice(0,1)[0])}finally{this._running=!1,globalThis[pi]=i}this._queue.length>0&&!this._running?(this._running=!0,n===Qy?(this.drainQueueLaterOnExecutor(),e=!1):e=!0):e=!1}}drainQueueLaterOnExecutor(){this._scheduler.scheduleTask(this.run,this.getFiberRef(qa))}drainQueueWhileRunning(e,n){let i=n;for(;this._queue.length>0;){const s=this._queue.splice(0,1)[0];i=uj[s._tag](this,e,i,s)}return i}isInterrupted(){return!BT(this.getFiberRef($c))}addInterruptedCause(e){const n=this.getFiberRef($c);this.setFiberRef($c,En(n,e))}processNewInterruptSignal(e){this.addInterruptedCause(e),this.sendInterruptSignalToAllChildren()}sendInterruptSignalToAllChildren(){if(this._children===null||this._children.size===0)return!1;let e=!1;for(const n of this._children)n.tell(Bl(wi(this.id()))),e=!0;return e}interruptAllChildren(){if(this.sendInterruptSignalToAllChildren()){const e=this._children.values();this._children=null;let n=!1;return Th({while:()=>!n,body:()=>{const s=e.next();return s.done?z(()=>{n=!0}):Ou(s.value.await)},step:()=>{}})}return null}reportExitValue(e){if(ay(this._runtimeFlags)){const n=this.getFiberRef(Iy),i=this.id().startTimeMillis,s=Date.now();switch(ij.unsafeUpdate(s-i,n),Xy.unsafeUpdate(-1,n),e._tag){case vn:{nj.unsafeUpdate(1,n);break}case An:{rj.unsafeUpdate(1,n);break}}}if(e._tag==="Failure"){const n=this.getFiberRef(jL);!Eh(e.cause)&&n._tag==="Some"&&this.log("Fiber terminated with a non handled error",e.cause,n)}}setExitValue(e){this._exitValue=e,this.reportExitValue(e);for(let n=this._observers.length-1;n>=0;n--)this._observers[n](e)}getLoggers(){return this.getFiberRef(hj)}log(e,n,i){const s=Qn(i)?i.value:this.getFiberRef(TL),c=this.getFiberRef(aj);if(LD(c,s))return;const f=this.getFiberRef(LL),d=this.getFiberRef(kL),p=this.getLoggers(),y=this.getFiberRefs();if(I0(p)>0){const M=As(this.getFiberRef(Cs),Dh),A=new Date(M.unsafeCurrentTimeMillis());for(const N of p)N.log({fiberId:this.id(),logLevel:s,message:e,cause:n,context:y,spans:f,annotations:d,date:A})}}evaluateMessageWhileSuspended(e){switch(e._tag){case Hh:return Qy;case qh:return this.processNewInterruptSignal(e.cause),this._asyncInterruptor!==null&&(this._asyncInterruptor(kt(e.cause)),this._asyncInterruptor=null),Fs;case Kh:return this._asyncInterruptor=null,this._asyncBlockingOn=null,this.evaluateEffect(e.effect),Fs;case Wh:return e.onFiber(this,this._exitValue!==null?aB:fB(this._runtimeFlags,this._asyncBlockingOn)),Fs;default:return $s(e)}}evaluateEffect(e){this._supervisor.onResume(this);try{let n=qr(this._runtimeFlags)&&this.isInterrupted()?kt(this.getInterruptedCause()):e;for(;n!==null;){const i=n,s=this.runLoop(i);if(s===Br){const c=gr.currentOp;gr.currentOp=null,c._op===Ac?bT(this._runtimeFlags)?(this.tell(mB()),this.tell(so(Si)),n=null):n=Si:c._op===Ec&&(n=null)}else{this._runtimeFlags=P(this._runtimeFlags,wT(fd));const c=this.interruptAllChildren();c!==null?n=G(c,()=>s):(this._queue.length===0?this.setExitValue(s):this.tell(so(s)),n=null)}}}finally{this._supervisor.onSuspend(this)}}start(e){if(this._running)this.tell(so(e));else{this._running=!0;const n=globalThis[pi];globalThis[pi]=this;try{this.evaluateEffect(e)}finally{this._running=!1,globalThis[pi]=n,this._queue.length>0&&this.drainQueueLaterOnExecutor()}}}startFork(e){this.tell(so(e))}patchRuntimeFlags(e,n){const i=kc(e,n);return globalThis[pi]=this,this._runtimeFlags=i,i}initiateAsync(e,n){let i=!1;const s=c=>{i||(i=!0,this.tell(so(c)))};qr(e)&&(this._asyncInterruptor=s);try{n(s)}catch(c){s(xr(Kr(c)))}}pushStack(e){this._stack.push(e),e._op==="OnStep"&&this._steps.push({refs:this.getFiberRefs(),flags:this._runtimeFlags})}popStack(){const e=this._stack.pop();if(e)return e._op==="OnStep"&&this._steps.pop(),e}getNextSuccessCont(){let e=this.popStack();for(;e;){if(e._op!==Al)return e;e=this.popStack()}}getNextFailCont(){let e=this.popStack();for(;e;){if(e._op!==Kc&&e._op!==Gc)return e;e=this.popStack()}}[(vK=wB,NK=IB,QN)](e){return de(Ba(ji),n=>ck(n,e))}Left(e){return Ie(e.left)}None(e){return Ie(new $1)}Right(e){return Re(e.right)}Some(e){return Re(e.value)}[Eb](e){const n=e.i0(),i=this.getNextSuccessCont();return i!==void 0?(i._op in Pc||$s(i),Pc[i._op](this,i,n)):(gr.currentOp=Re(n),Br)}[vn](e){const n=e,i=this.getNextSuccessCont();return i!==void 0?(i._op in Pc||$s(i),Pc[i._op](this,i,n.i0)):(gr.currentOp=n,Br)}[An](e){const n=e.i0,i=this.getNextFailCont();if(i!==void 0)switch(i._op){case Al:case Hc:return qr(this._runtimeFlags)&&this.isInterrupted()?kt(dy(n)):i.i1(n);case"OnStep":return qr(this._runtimeFlags)&&this.isInterrupted()?kt(dy(n)):Re(kt(n));case dh:return this.patchRuntimeFlags(this._runtimeFlags,i.patch),qr(this._runtimeFlags)&&this.isInterrupted()?kt(En(n,this.getInterruptedCause())):kt(n);default:$s(i)}else return gr.currentOp=kt(n),Br}[Ab](e){return e.i0(this,J1(this._runtimeFlags))}Blocked(e){const n=this.getFiberRefs(),i=this._runtimeFlags;if(this._steps.length>0){const s=[],c=this._steps[this._steps.length-1];let f=this.popStack();for(;f&&f._op!=="OnStep";)s.push(f),f=this.popStack();this.setFiberRefs(c.refs),this._runtimeFlags=c.flags;const d=VD(c.refs,n),p=Cc(c.flags,i);return Re(r1(e.i0,Zn(y=>{for(;s.length>0;)y.pushStack(s.pop());return y.setFiberRefs(tB(y.id(),y.getFiberRefs())(d)),y._runtimeFlags=kc(p)(y._runtimeFlags),e.i1})))}return Ua(s=>G(ww(fL(e.i0)),()=>s(e.i1)))}RunBlocked(e){return cj(e.i0)}[hu](e){const n=e.i0,i=this._runtimeFlags,s=kc(i,n);if(qr(s)&&this.isInterrupted())return kt(this.getInterruptedCause());if(this.patchRuntimeFlags(this._runtimeFlags,n),e.i1){const c=Cc(s,i);return this.pushStack(new lL(c,e)),e.i1(i)}else return Si}[Kc](e){return this.pushStack(e),e.i0}OnStep(e){return this.pushStack(e),e.i0}[Al](e){return this.pushStack(e),e.i0}[Hc](e){return this.pushStack(e),e.i0}[Ec](e){return this._asyncBlockingOn=e.i1,this.initiateAsync(this._runtimeFlags,e.i0),gr.currentOp=e,Br}[Ac](e){return this.isYielding=!1,gr.currentOp=e,Br}[Gc](e){const n=e.i0,i=e.i1;return n()?(this.pushStack(e),i()):Si}[Rb](e){return e.commit()}runLoop(e){let n=e;for(this.currentOpCount=0;;){if(this._runtimeFlags&_T&&this._supervisor.onEffect(this,n),this._queue.length>0&&(n=this.drainQueueWhileRunning(this._runtimeFlags,n)),!this.isYielding){this.currentOpCount+=1;const i=this._scheduler.shouldYield(this);if(i!==!1){this.isYielding=!0,this.currentOpCount=0;const s=n;n=G(Lh({priority:i}),()=>s)}}try{if((!("_op"in n)||!(n._op in this))&&$s(n),n=this._tracer.context(()=>qc()!==n[qy]._V?pL(`Cannot execute an Effect versioned ${n[qy]._V} with a Runtime of version ${qc()}`):this[n._op](n),this),n===Br){const i=gr.currentOp;return i._op===Ac||i._op===Ec?Br:(gr.currentOp=null,i._op===vn||i._op===An?i:kt(Kr(i)))}}catch(i){cL(i)?n=kt(i.cause):GL(i)?n=kt(En(Kr(i),wi($h))):n=kt(Kr(i))}}}}const aj=Rt("effect/FiberRef/currentMinimumLogLevel",()=>Ve(UD("Info"))),fj=t=>{const e=FD(t,Cs);return As(e,D1).unsafe},lj=Rt(Symbol.for("effect/Logger/defaultLogger"),()=>Yh(t=>{const e=RB.log(t);fj(t.context).log(e)})),dj=Rt(Symbol.for("effect/Logger/tracerLogger"),()=>Yh(({annotations:t,cause:e,context:n,fiberId:i,logLevel:s,message:c})=>{const f=Gb(wd(n,ji),mu(n1)),d=yC(wd(n,Cs),y=>As(y,Dh));if(f._tag==="None"||f.value._tag==="ExternalSpan"||d._tag==="None")return;const p=Object.fromEntries(v0(t,y=>Md(y)));p["effect.fiberId"]=r2(i),p["effect.logLevel"]=s.label,e!==null&&e._tag!=="Empty"&&(p["effect.cause"]=Ca(e)),f.value.event(String(c),d.value.unsafeCurrentTimeNanos(),p)})),hj=Rt(Symbol.for("effect/FiberRef/currentLoggers"),()=>vL(xh(lj,dj))),mj=t=>{if(Array.isArray(t)||$b(t))return[t,Z()];const e=Object.keys(t),n=e.length;return[e.map(i=>t[i]),bt(i=>{const s={};for(let c=0;c{const i=[];for(const s of t)i.push(Js(s));return G(Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching}),s=>{const c=Z(),f=s.length,d=new Array(f),p=new Array(f);let y=!1;for(let M=0;M{const i=[];for(const s of t)i.push(Js(s));return n!=null&&n.discard?Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching,discard:!0}):de(Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching}),s=>e._tag==="Some"?e.value(s):s)},yj=(t,e)=>{const[n,i]=mj(t);return(e==null?void 0:e.mode)==="validate"?pj(n,i,e):(e==null?void 0:e.mode)==="either"?gj(n,i,e):i._tag==="Some"?de(Qs(n,ie,e),i.value):Qs(n,ie,e)},Qs=x(t=>$b(t[0]),(t,e,n)=>Zn(i=>{const s=(n==null?void 0:n.batching)===!0||(n==null?void 0:n.batching)==="inherit"&&i.getFiberRef(BL);return n!=null&&n.discard?Hy(n.concurrency,()=>uo(xd)(c=>s?xi(t,(f,d)=>c(e(f,d)),!0,!1,1):La(t,(f,d)=>c(e(f,d)))),()=>uo(Fd)(c=>xi(t,(f,d)=>c(e(f,d)),s,!1)),c=>uo($d(c))(f=>xi(t,(d,p)=>f(e(d,p)),s,!1,c))):Hy(n==null?void 0:n.concurrency,()=>uo(xd)(c=>s?Zy(t,1,(f,d)=>c(e(f,d)),!0):Hr(t,(f,d)=>c(e(f,d)))),()=>uo(Fd)(c=>_j(t,(f,d)=>c(e(f,d)),s)),c=>uo($d(c))(f=>Zy(t,c,(d,p)=>f(e(d,p)),s)))})),_j=(t,e,n)=>re(()=>{const i=Yt(t),s=new Array(i.length);return Da(xi(i,(f,d)=>G(e(f,d),p=>z(()=>s[d]=p)),n,!1),At(s))}),xi=(t,e,n,i,s)=>Ua(c=>wL(f=>Zn(d=>{let p=Array.from(t).reverse(),y=p.length;if(y===0)return Fr;let M=0,A=!1;const N=s?Math.min(p.length,s):p.length,C=new Set,B=new Array,mt=()=>C.forEach(Qt=>{Qt._scheduler.scheduleTask(()=>{Qt.unsafeInterruptAsFork(d.id())},0)}),tt=new Array,Ft=new Array,pt=new Array,ft=()=>{const Qt=B.filter(({exit:be})=>be._tag==="Failure").sort((be,Bn)=>be.indexbe);return Qt.length===0&&Qt.push(Si),Qt},Xt=Qt=>{const be=m1(f(Qt)),Bn=wj(be,d,d._runtimeFlags,Gh);return d._scheduler.scheduleTask(()=>{Bn.resume(be)},0),Bn},Ht=()=>{i||(y-=p.length,p=[]),A=!0,mt()},_n=n?_L:s1,_e=Xt(zo(Qt=>{const be=(bn,ir)=>{bn._op==="Blocked"?pt.push(bn):(B.push({index:ir,exit:bn}),bn._op==="Failure"&&!A&&Ht())},Bn=()=>{if(p.length>0){const bn=p.pop();let ir=M++;const ef=()=>{const we=p.pop();return ir=M++,G(Lh(),()=>G(_n(c(e(we,ir))),Qo))},Qo=we=>p.length>0&&(be(we,ir),p.length>0)?ef():At(we),nf=G(_n(c(e(bn,ir))),Qo),or=Xt(nf);tt.push(or),C.add(or),A&&or._scheduler.scheduleTask(()=>{or.unsafeInterruptAsFork(d.id())},0),or.addObserver(we=>{let tn;if(we._op==="Failure"?tn=we:tn=we.i0,Ft.push(or),C.delete(or),be(tn,ir),B.length===y)Qt(At($i(Py(ft(),{parallel:!0}),()=>Si)));else if(pt.length+B.length===y){const rf=pt.map(jn=>jn.i0).reduce(Y0);Qt(At(r1(rf,xi([$i(Py(ft(),{parallel:!0}),()=>Si),...pt.map(jn=>jn.i1)],jn=>jn,n,!0,s))))}else Bn()})}};for(let bn=0;bn(Ht(),xB(_e)))),()=>Hr(Ft,Qt=>Qt.inheritAll)))}))),Zy=(t,e,n,i)=>re(()=>{const s=Yt(t),c=new Array(s.length);return Da(xi(s,(d,p)=>de(n(d,p),y=>c[p]=y),i,!1,e),At(c))}),ww=t=>Sj(t,Gh),bj=(t,e,n,i=null)=>{const s=Sw(t,e,n,i);return s.resume(t),s},wj=(t,e,n,i=null)=>Sw(t,e,n,i),Sw=(t,e,n,i=null)=>{const s=M0(),c=e.getFiberRefs(),f=ID(c,s),d=new bw(s,f,n),p=Bh(f,ji),y=d._supervisor;return y.onStart(p,t,bt(e),d),d.addObserver(A=>y.onEnd(A,d)),(i!==null?i:P(e.getFiberRef(pd),$i(()=>e.scope()))).add(n,d),d},Sj=(t,e)=>Zn((n,i)=>At(bj(t,n,i.runtimeFlags,e))),Vy=t=>Iu(e=>Di(mu(e,Pu),{onNone:()=>t,onSome:n=>{switch(n.strategy._tag){case"Parallel":return t;case"Sequential":case"ParallelN":return G(Wa(n,Fd),i=>Xh(t,i))}}})),t_=t=>e=>Iu(n=>Di(mu(n,Pu),{onNone:()=>e,onSome:i=>i.strategy._tag==="ParallelN"&&i.strategy.parallelism===t?e:G(Wa(i,$d(t)),s=>Xh(e,s))})),uo=t=>e=>Iu(n=>Di(mu(n,Pu),{onNone:()=>e(ie),onSome:i=>{const s=t._tag==="Parallel"?Vy:t._tag==="Sequential"?e_:t_(t.parallelism);switch(i.strategy._tag){case"Parallel":return s(e(Vy));case"Sequential":return s(e(e_));case"ParallelN":return s(e(t_(i.strategy.parallelism)))}}})),e_=t=>Iu(e=>Di(mu(e,Pu),{onNone:()=>t,onSome:n=>{switch(n.strategy._tag){case"Sequential":return t;case"Parallel":case"ParallelN":return G(Wa(n,xd),i=>Xh(t,i))}}})),Pu=Bi("effect/Scope"),Xh=x(2,(t,e)=>rU(t,ak(uk(Pu,e)))),Oj=t=>Jo(t,{differ:tj,fork:ks}),n_=CL(ST),r_=Oj(Ya),Ij=(t,e)=>c1(n=>G(G(ww(f1(t)),i=>zo(s=>{const c=e.map(p=>p.listeners.count),f=()=>{c.every(p=>p===0)&&(d.forEach(p=>p()),s(OL(i)))};i.addObserver(p=>{d.forEach(y=>y()),s(p)});const d=e.map((p,y)=>{const M=A=>{c[y]=A,f()};return p.listeners.addObserver(M),()=>p.listeners.removeObserver(M)});return f(),z(()=>{d.forEach(p=>p())})})),()=>re(()=>{const i=e.flatMap(s=>s.state.completed?[]:[s]);return La(i,s=>G3(s.request,YL(n)))}))),xj=WL,Fj=Wa,i_=(t,e)=>n=>n.replace(t,e),$j=t=>(e,n)=>{const i=M0(),s=[[ji,[[i,t.context]]]];n!=null&&n.scheduler&&s.push([Pd,[[i,n.scheduler]]]);let c=$D(t.fiberRefs,{entries:s,forkAs:i});n!=null&&n.updateRefs&&(c=n.updateRefs(c,i));const f=new bw(i,c,t.runtimeFlags);let d=e;n!=null&&n.scope&&(d=G(Fj(n.scope,z1),y=>Da(qL(y,c1(M=>ct(M,f.id())?Fr:y1(f,M))),d1(e,M=>xj(y,M)))));const p=f._supervisor;return p!==Ya&&(p.onStart(t.context,d,Z(),f),f.addObserver(y=>p.onEnd(y,f))),Gh.add(t.runtimeFlags,f),(n==null?void 0:n.immediate)===!1?f.resume(d):f.start(d),f},Pj=t=>e=>{const n=vj(t)(e);if(n._tag==="Failure")throw Ej(n.i0);return n.i0},Mj=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const n=new Error;Error.stackTraceLimit=e;const i=`Fiber #${t.id().id} cannot be be resolved synchronously, this is caused by using runSync on an effect that performs async work`,s="AsyncFiberException";return Object.defineProperties(n,{_tag:{value:s},fiber:{value:t},message:{value:i},name:{value:s},toString:{get(){return()=>i}},[Kt]:{get(){return()=>i}}}),n},o_=Symbol.for("effect/Runtime/FiberFailure"),Rj=Symbol.for("effect/Runtime/FiberFailure/Cause"),Ej=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const n=new Error;Error.stackTraceLimit=e;const i=t1(t);if(i.length>0){const s=i[0];n.name=s.message.split(":")[0],n.message=s.message.substring(n.name.length+2),n.stack=Ca(t)}return n[o_]=o_,n[Rj]=t,n.toJSON=()=>({_id:"FiberFailure",cause:t.toJSON()}),n.toString=()=>ye(n.toJSON()),n[Kt]=()=>n.toJSON(),n},Aj=t=>{const e=t;switch(e._op){case"Failure":case"Success":return e;case"Left":return My(e.left);case"Right":return Re(e.right);case"Some":return Re(e.value);case"None":return My($1())}},vj=t=>e=>{const n=Aj(e);if(n)return n;const i=new hB,s=$j(t)(e,{scheduler:i});i.flush();const c=s.unsafePoll();if(c)return c;throw Mj(s)};class Nj{constructor(e,n,i){_(this,"context");_(this,"runtimeFlags");_(this,"fiberRefs");this.context=e,this.runtimeFlags=n,this.fiberRefs=i}pipe(){return X(this,arguments)}}const Cj=t=>new Nj(t.context,t.runtimeFlags,t.fiberRefs),kj=H0(Ho,W0,q0),Tj=Cj({context:gh(),runtimeFlags:kj,fiberRefs:PD()}),Lj=Pj(Tj),Ud=yj,Ow=Ie,Iw=At,Uj=z,xw=YD,Mu=de,Qh=G,Dj=kh,za=Lj,Bj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jj=(t,e,n)=>{let i;const s=Bj[t];return typeof s=="string"?i=s:e===1?i=s.one:i=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function ql(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const qj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hj={date:ql({formats:qj,defaultWidth:"full"}),time:ql({formats:Wj,defaultWidth:"full"}),dateTime:ql({formats:Kj,defaultWidth:"full"})},Gj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yj=(t,e,n,i)=>Gj[t];function Ps(t){return(e,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,d=n!=null&&n.width?String(n.width):f;s=t.formattingValues[d]||t.formattingValues[f]}else{const f=t.defaultWidth,d=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[d]||t.values[f]}const c=t.argumentCallback?t.argumentCallback(e):e;return s[c]}}const zj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Qj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Zj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tq=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},eq={ordinalNumber:tq,era:Ps({values:zj,defaultWidth:"wide"}),quarter:Ps({values:Jj,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ps({values:Xj,defaultWidth:"wide"}),day:Ps({values:Qj,defaultWidth:"wide"}),dayPeriod:Ps({values:Zj,defaultWidth:"wide",formattingValues:Vj,defaultFormattingWidth:"wide"})};function Ms(t){return(e,n={})=>{const i=n.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],c=e.match(s);if(!c)return null;const f=c[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(d)?rq(d,A=>A.test(f)):nq(d,A=>A.test(f));let y;y=t.valueCallback?t.valueCallback(p):p,y=n.valueCallback?n.valueCallback(y):y;const M=e.slice(f.length);return{value:y,rest:M}}}function nq(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function rq(t,e){for(let n=0;n{const i=e.match(t.matchPattern);if(!i)return null;const s=i[0],c=e.match(t.parsePattern);if(!c)return null;let f=t.valueCallback?t.valueCallback(c[0]):c[0];f=n.valueCallback?n.valueCallback(f):f;const d=e.slice(s.length);return{value:f,rest:d}}}const oq=/^(\d+)(th|st|nd|rd)?/i,sq=/\d+/i,uq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cq={any:[/^b/i,/^(a|c)/i]},aq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fq={any:[/1/i,/2/i,/3/i,/4/i]},lq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yq={ordinalNumber:iq({matchPattern:oq,parsePattern:sq,valueCallback:t=>parseInt(t,10)}),era:Ms({matchPatterns:uq,defaultMatchWidth:"wide",parsePatterns:cq,defaultParseWidth:"any"}),quarter:Ms({matchPatterns:aq,defaultMatchWidth:"wide",parsePatterns:fq,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ms({matchPatterns:lq,defaultMatchWidth:"wide",parsePatterns:dq,defaultParseWidth:"any"}),day:Ms({matchPatterns:hq,defaultMatchWidth:"wide",parsePatterns:mq,defaultParseWidth:"any"}),dayPeriod:Ms({matchPatterns:pq,defaultMatchWidth:"any",parsePatterns:gq,defaultParseWidth:"any"})},_q={code:"en-US",formatDistance:jj,formatLong:Hj,formatRelative:Yj,localize:eq,match:yq,options:{weekStartsOn:0,firstWeekContainsDate:1}};let bq={};function Ja(){return bq}const Fw=6048e5,wq=864e5;function Dn(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function s_(t){const e=Dn(t);return e.setHours(0,0,0,0),e}function u_(t){const e=Dn(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Sq(t,e){const n=s_(t),i=s_(e),s=+n-u_(n),c=+i-u_(i);return Math.round((s-c)/wq)}function Ni(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Oq(t){const e=Dn(t),n=Ni(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Iq(t){const e=Dn(t);return Sq(e,Oq(e))+1}function Zs(t,e){var d,p,y,M;const n=Ja(),i=(e==null?void 0:e.weekStartsOn)??((p=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((M=(y=n.locale)==null?void 0:y.options)==null?void 0:M.weekStartsOn)??0,s=Dn(t),c=s.getDay(),f=(c=s.getTime()?n+1:e.getTime()>=f.getTime()?n:n-1}function xq(t){const e=$w(t),n=Ni(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),ua(n)}function Fq(t){const e=Dn(t),n=+ua(e)-+xq(e);return Math.round(n/Fw)+1}function Pw(t,e){var M,A,N,C;const n=Dn(t),i=n.getFullYear(),s=Ja(),c=(e==null?void 0:e.firstWeekContainsDate)??((A=(M=e==null?void 0:e.locale)==null?void 0:M.options)==null?void 0:A.firstWeekContainsDate)??s.firstWeekContainsDate??((C=(N=s.locale)==null?void 0:N.options)==null?void 0:C.firstWeekContainsDate)??1,f=Ni(t,0);f.setFullYear(i+1,0,c),f.setHours(0,0,0,0);const d=Zs(f,e),p=Ni(t,0);p.setFullYear(i,0,c),p.setHours(0,0,0,0);const y=Zs(p,e);return n.getTime()>=d.getTime()?i+1:n.getTime()>=y.getTime()?i:i-1}function $q(t,e){var d,p,y,M;const n=Ja(),i=(e==null?void 0:e.firstWeekContainsDate)??((p=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(y=n.locale)==null?void 0:y.options)==null?void 0:M.firstWeekContainsDate)??1,s=Pw(t,e),c=Ni(t,0);return c.setFullYear(s,0,i),c.setHours(0,0,0,0),Zs(c,e)}function Pq(t,e){const n=Dn(t),i=+Zs(n,e)-+$q(n,e);return Math.round(i/Fw)+1}function Ot(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const jr={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return Ot(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ot(n+1,2)},d(t,e){return Ot(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ot(t.getHours()%12||12,e.length)},H(t,e){return Ot(t.getHours(),e.length)},m(t,e){return Ot(t.getMinutes(),e.length)},s(t,e){return Ot(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return Ot(s,e.length)}},co={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},c_={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return jr.y(t,e)},Y:function(t,e,n,i){const s=Pw(t,i),c=s>0?s:1-s;if(e==="YY"){const f=c%100;return Ot(f,2)}return e==="Yo"?n.ordinalNumber(c,{unit:"year"}):Ot(c,e.length)},R:function(t,e){const n=$w(t);return Ot(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ot(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ot(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ot(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return jr.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ot(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const s=Pq(t,i);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):Ot(s,e.length)},I:function(t,e,n){const i=Fq(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):Ot(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):jr.d(t,e)},D:function(t,e,n){const i=Iq(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ot(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const s=t.getDay(),c=(s-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(c);case"ee":return Ot(c,2);case"eo":return n.ordinalNumber(c,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const s=t.getDay(),c=(s-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(c);case"cc":return Ot(c,e.length);case"co":return n.ordinalNumber(c,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),s=i===0?7:i;switch(e){case"i":return String(s);case"ii":return Ot(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let s;switch(i===12?s=co.noon:i===0?s=co.midnight:s=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let s;switch(i>=17?s=co.evening:i>=12?s=co.afternoon:i>=4?s=co.morning:s=co.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return jr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):jr.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ot(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ot(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):jr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):jr.s(t,e)},S:function(t,e){return jr.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return f_(i);case"XXXX":case"XX":return _i(i);case"XXXXX":case"XXX":default:return _i(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return f_(i);case"xxxx":case"xx":return _i(i);case"xxxxx":case"xxx":default:return _i(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+a_(i,":");case"OOOO":default:return"GMT"+_i(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+a_(i,":");case"zzzz":default:return"GMT"+_i(i,":")}},t:function(t,e,n){const i=Math.trunc(t.getTime()/1e3);return Ot(i,e.length)},T:function(t,e,n){const i=t.getTime();return Ot(i,e.length)}};function a_(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),c=i%60;return c===0?n+String(s):n+String(s)+e+Ot(c,2)}function f_(t,e){return t%60===0?(t>0?"-":"+")+Ot(Math.abs(t)/60,2):_i(t,e)}function _i(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Ot(Math.trunc(i/60),2),c=Ot(i%60,2);return n+s+e+c}const l_=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Mw=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Mq=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return l_(t,e);let c;switch(i){case"P":c=e.dateTime({width:"short"});break;case"PP":c=e.dateTime({width:"medium"});break;case"PPP":c=e.dateTime({width:"long"});break;case"PPPP":default:c=e.dateTime({width:"full"});break}return c.replace("{{date}}",l_(i,e)).replace("{{time}}",Mw(s,e))},Rq={p:Mw,P:Mq},Eq=/^D+$/,Aq=/^Y+$/,vq=["D","DD","YY","YYYY"];function Nq(t){return Eq.test(t)}function Cq(t){return Aq.test(t)}function kq(t,e,n){const i=Tq(t,e,n);if(console.warn(i),vq.includes(t))throw new RangeError(i)}function Tq(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Lq(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Uq(t){if(!Lq(t)&&typeof t!="number")return!1;const e=Dn(t);return!isNaN(Number(e))}const Dq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jq=/^'([^]*?)'?$/,qq=/''/g,Wq=/[a-zA-Z]/;function Kq(t,e,n){var M,A,N,C,B,mt,tt,Ft;const i=Ja(),s=(n==null?void 0:n.locale)??i.locale??_q,c=(n==null?void 0:n.firstWeekContainsDate)??((A=(M=n==null?void 0:n.locale)==null?void 0:M.options)==null?void 0:A.firstWeekContainsDate)??i.firstWeekContainsDate??((C=(N=i.locale)==null?void 0:N.options)==null?void 0:C.firstWeekContainsDate)??1,f=(n==null?void 0:n.weekStartsOn)??((mt=(B=n==null?void 0:n.locale)==null?void 0:B.options)==null?void 0:mt.weekStartsOn)??i.weekStartsOn??((Ft=(tt=i.locale)==null?void 0:tt.options)==null?void 0:Ft.weekStartsOn)??0,d=Dn(t);if(!Uq(d))throw new RangeError("Invalid time value");let p=e.match(Bq).map(pt=>{const ft=pt[0];if(ft==="p"||ft==="P"){const Xt=Rq[ft];return Xt(pt,s.formatLong)}return pt}).join("").match(Dq).map(pt=>{if(pt==="''")return{isToken:!1,value:"'"};const ft=pt[0];if(ft==="'")return{isToken:!1,value:Hq(pt)};if(c_[ft])return{isToken:!0,value:pt};if(ft.match(Wq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ft+"`");return{isToken:!1,value:pt}});s.localize.preprocessor&&(p=s.localize.preprocessor(d,p));const y={firstWeekContainsDate:c,weekStartsOn:f,locale:s};return p.map(pt=>{if(!pt.isToken)return pt.value;const ft=pt.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Cq(ft)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Nq(ft))&&kq(ft,e,String(t));const Xt=c_[ft[0]];return Xt(d,ft,s.localize,y)}).join("")}function Hq(t){const e=t.match(jq);return e?e[1].replace(qq,"'"):t}const d_=ot.String,Wl=ot.Object,Kl=ot.Optional,Gq=ot.Boolean,h_=t=>ot.Transform(ot.String()).Decode(Yq).Encode(zq(t));function Yq(t){try{return new Date(t)}catch{return t}}function zq(t){return e=>typeof e=="string"?e:Kq(e,t)}const Jq=()=>ot.String({});function Xq(t){const e=AN[t];return ot.Union(e.map(n=>ot.Literal(n)))}function Qq(t){return ot.Transform(Xq(t)).Decode(e=>({collection:t,id:e,get:()=>qw(t,e)})).Encode(e=>e.id)}const Zq={organizations:Wl({name:d_(),location:d_(),logo:Kl(Jq())}),work_experiences:Wl({date_start:h_("yyyy-MM"),date_end:Kl(h_("yyyy-MM")),current:Kl(Gq()),organization:Qq("organizations")}),projects:Wl({})};function Rw(t){return Xa(t)&&Symbol.asyncIterator in t}function Ew(t){return Xa(t)&&Symbol.iterator in t}function Aw(t){return t instanceof Promise}function Zh(t){return t instanceof Uint8Array}function Vh(t){return t instanceof Date&&Number.isFinite(t.getTime())}function qi(t){return Xa(t)&&tm(t.constructor)&&t.constructor.name==="Object"}function Xa(t){return t!==null&&typeof t=="object"}function Ln(t){return Array.isArray(t)&&!ArrayBuffer.isView(t)}function Ru(t){return t===void 0}function Qa(t){return t===null}function Za(t){return typeof t=="boolean"}function Yn(t){return typeof t=="number"}function vw(t){return Yn(t)&&Number.isInteger(t)}function Va(t){return typeof t=="bigint"}function Or(t){return typeof t=="string"}function tm(t){return typeof t=="function"}function tf(t){return typeof t=="symbol"}function Nw(t){return Va(t)||Za(t)||Qa(t)||Yn(t)||Or(t)||tf(t)||Ru(t)}var mn;(function(t){t.ExactOptionalPropertyTypes=!1,t.AllowArrayObject=!1,t.AllowNaN=!1,t.AllowNullVoid=!1;function e(f,d){return t.ExactOptionalPropertyTypes?d in f:f[d]!==void 0}t.IsExactOptionalProperty=e;function n(f){const d=Xa(f);return t.AllowArrayObject?d:d&&!Ln(f)}t.IsObjectLike=n;function i(f){return n(f)&&!(f instanceof Date)&&!(f instanceof Uint8Array)}t.IsRecordLike=i;function s(f){const d=Yn(f);return t.AllowNaN?d:d&&Number.isFinite(f)}t.IsNumberLike=s;function c(f){const d=Ru(f);return t.AllowNullVoid?d||f===null:d}t.IsVoidLike=c})(mn||(mn={}));class Vq extends Ae{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class tW extends Ae{constructor(e){super(`Duplicate string format '${e}' detected`)}}var m_;(function(t){function e(i,s){if(ga(i))throw new Vq(i);return lR(i,s),(c={})=>Ib({...c,[U]:i})}t.Type=e;function n(i,s){if(Gd(i))throw new tW(i);return fR(i,s),i}t.Format=n})(m_||(m_={}));function eW(t){switch(t.errorType){case I.ArrayContains:return"Expected array to contain at least one matching value";case I.ArrayMaxContains:return`Expected array to contain no more than ${t.schema.maxContains} matching values`;case I.ArrayMinContains:return`Expected array to contain at least ${t.schema.minContains} matching values`;case I.ArrayMaxItems:return`Expected array length to be less or equal to ${t.schema.maxItems}`;case I.ArrayMinItems:return`Expected array length to be greater or equal to ${t.schema.minItems}`;case I.ArrayUniqueItems:return"Expected array elements to be unique";case I.Array:return"Expected array";case I.AsyncIterator:return"Expected AsyncIterator";case I.BigIntExclusiveMaximum:return`Expected bigint to be less than ${t.schema.exclusiveMaximum}`;case I.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${t.schema.exclusiveMinimum}`;case I.BigIntMaximum:return`Expected bigint to be less or equal to ${t.schema.maximum}`;case I.BigIntMinimum:return`Expected bigint to be greater or equal to ${t.schema.minimum}`;case I.BigIntMultipleOf:return`Expected bigint to be a multiple of ${t.schema.multipleOf}`;case I.BigInt:return"Expected bigint";case I.Boolean:return"Expected boolean";case I.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${t.schema.exclusiveMinimumTimestamp}`;case I.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${t.schema.exclusiveMaximumTimestamp}`;case I.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${t.schema.minimumTimestamp}`;case I.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${t.schema.maximumTimestamp}`;case I.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${t.schema.multipleOfTimestamp}`;case I.Date:return"Expected Date";case I.Function:return"Expected function";case I.IntegerExclusiveMaximum:return`Expected integer to be less than ${t.schema.exclusiveMaximum}`;case I.IntegerExclusiveMinimum:return`Expected integer to be greater than ${t.schema.exclusiveMinimum}`;case I.IntegerMaximum:return`Expected integer to be less or equal to ${t.schema.maximum}`;case I.IntegerMinimum:return`Expected integer to be greater or equal to ${t.schema.minimum}`;case I.IntegerMultipleOf:return`Expected integer to be a multiple of ${t.schema.multipleOf}`;case I.Integer:return"Expected integer";case I.IntersectUnevaluatedProperties:return"Unexpected property";case I.Intersect:return"Expected all values to match";case I.Iterator:return"Expected Iterator";case I.Literal:return`Expected ${typeof t.schema.const=="string"?`'${t.schema.const}'`:t.schema.const}`;case I.Never:return"Never";case I.Not:return"Value should not match";case I.Null:return"Expected null";case I.NumberExclusiveMaximum:return`Expected number to be less than ${t.schema.exclusiveMaximum}`;case I.NumberExclusiveMinimum:return`Expected number to be greater than ${t.schema.exclusiveMinimum}`;case I.NumberMaximum:return`Expected number to be less or equal to ${t.schema.maximum}`;case I.NumberMinimum:return`Expected number to be greater or equal to ${t.schema.minimum}`;case I.NumberMultipleOf:return`Expected number to be a multiple of ${t.schema.multipleOf}`;case I.Number:return"Expected number";case I.Object:return"Expected object";case I.ObjectAdditionalProperties:return"Unexpected property";case I.ObjectMaxProperties:return`Expected object to have no more than ${t.schema.maxProperties} properties`;case I.ObjectMinProperties:return`Expected object to have at least ${t.schema.minProperties} properties`;case I.ObjectRequiredProperty:return"Required property";case I.Promise:return"Expected Promise";case I.RegExp:return"Expected string to match regular expression";case I.StringFormatUnknown:return`Unknown format '${t.schema.format}'`;case I.StringFormat:return`Expected string to match '${t.schema.format}' format`;case I.StringMaxLength:return`Expected string length less or equal to ${t.schema.maxLength}`;case I.StringMinLength:return`Expected string length greater or equal to ${t.schema.minLength}`;case I.StringPattern:return`Expected string to match '${t.schema.pattern}'`;case I.String:return"Expected string";case I.Symbol:return"Expected symbol";case I.TupleLength:return`Expected tuple to have ${t.schema.maxItems||0} elements`;case I.Tuple:return"Expected tuple";case I.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${t.schema.maxByteLength}`;case I.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${t.schema.minByteLength}`;case I.Uint8Array:return"Expected Uint8Array";case I.Undefined:return"Expected undefined";case I.Union:return"Expected union value";case I.Void:return"Expected void";case I.Kind:return`Expected kind '${t.schema[U]}'`;default:return"Unknown error type"}}let nW=eW;function rW(){return nW}class iW extends Ae{constructor(n){super(`Unable to dereference schema with $id '${n.$id}'`);_(this,"schema");this.schema=n}}function ii(t,e){const n=e.findIndex(i=>i.$id===t.$ref);if(n===-1)throw new iW(t);return e[n]}class oW extends Ae{constructor(n){super("Unable to hash value");_(this,"value");this.value=n}}var Qe;(function(t){t[t.Undefined=0]="Undefined",t[t.Null=1]="Null",t[t.Boolean=2]="Boolean",t[t.Number=3]="Number",t[t.String=4]="String",t[t.Object=5]="Object",t[t.Array=6]="Array",t[t.Date=7]="Date",t[t.Uint8Array=8]="Uint8Array",t[t.Symbol=9]="Symbol",t[t.BigInt=10]="BigInt"})(Qe||(Qe={}));let fo=BigInt("14695981039346656037");const[sW,uW]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")],cW=Array.from({length:256}).map((t,e)=>BigInt(e)),Cw=new Float64Array(1),kw=new DataView(Cw.buffer),Tw=new Uint8Array(Cw.buffer);function*aW(t){const e=t===0?1:Math.ceil(Math.floor(Math.log2(t)+1)/8);for(let n=0;n>8*(e-1-n)&255}function fW(t){xe(Qe.Array);for(const e of t)Co(e)}function lW(t){xe(Qe.Boolean),xe(t?1:0)}function dW(t){xe(Qe.BigInt),kw.setBigInt64(0,t);for(const e of Tw)xe(e)}function hW(t){xe(Qe.Date),Co(t.getTime())}function mW(t){xe(Qe.Null)}function pW(t){xe(Qe.Number),kw.setFloat64(0,t);for(const e of Tw)xe(e)}function gW(t){xe(Qe.Object);for(const e of globalThis.Object.keys(t).sort())Co(e),Co(t[e])}function yW(t){xe(Qe.String);for(let e=0;e=t.minItems)&&(yield T(I.ArrayMinItems,t,n,i)),st(t.maxItems)&&!(i.length<=t.maxItems)&&(yield T(I.ArrayMaxItems,t,n,i));for(let f=0;fhe(s,e,`${n}${p}`,d).next().done===!0?f+1:f,0);c===0&&(yield T(I.ArrayContains,t,n,i)),Yn(t.minContains)&&ct.maxContains&&(yield T(I.ArrayMaxContains,t,n,i))}function*FW(t,e,n,i){Rw(i)||(yield T(I.AsyncIterator,t,n,i))}function*$W(t,e,n,i){if(!Va(i))return yield T(I.BigInt,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.BigIntExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.BigIntMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.BigIntMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==BigInt(0)&&(yield T(I.BigIntMultipleOf,t,n,i))}function*PW(t,e,n,i){Za(i)||(yield T(I.Boolean,t,n,i))}function*MW(t,e,n,i){yield*he(t.returns,e,n,i.prototype)}function*RW(t,e,n,i){if(!Vh(i))return yield T(I.Date,t,n,i);st(t.exclusiveMaximumTimestamp)&&!(i.getTime()t.exclusiveMinimumTimestamp)&&(yield T(I.DateExclusiveMinimumTimestamp,t,n,i)),st(t.maximumTimestamp)&&!(i.getTime()<=t.maximumTimestamp)&&(yield T(I.DateMaximumTimestamp,t,n,i)),st(t.minimumTimestamp)&&!(i.getTime()>=t.minimumTimestamp)&&(yield T(I.DateMinimumTimestamp,t,n,i)),st(t.multipleOfTimestamp)&&i.getTime()%t.multipleOfTimestamp!==0&&(yield T(I.DateMultipleOfTimestamp,t,n,i))}function*EW(t,e,n,i){tm(i)||(yield T(I.Function,t,n,i))}function*AW(t,e,n,i){if(!vw(i))return yield T(I.Integer,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.IntegerExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.IntegerMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.IntegerMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==0&&(yield T(I.IntegerMultipleOf,t,n,i))}function*vW(t,e,n,i){for(const s of t.allOf){const c=he(s,e,n,i).next();c.done||(yield T(I.Intersect,t,n,i),yield c.value)}if(t.unevaluatedProperties===!1){const s=new RegExp(jc(t));for(const c of Object.getOwnPropertyNames(i))s.test(c)||(yield T(I.IntersectUnevaluatedProperties,t,`${n}/${c}`,i))}if(typeof t.unevaluatedProperties=="object"){const s=new RegExp(jc(t));for(const c of Object.getOwnPropertyNames(i))if(!s.test(c)){const f=he(t.unevaluatedProperties,e,`${n}/${c}`,i[c]).next();f.done||(yield f.value)}}}function*NW(t,e,n,i){Ew(i)||(yield T(I.Iterator,t,n,i))}function*CW(t,e,n,i){i!==t.const&&(yield T(I.Literal,t,n,i))}function*kW(t,e,n,i){yield T(I.Never,t,n,i)}function*TW(t,e,n,i){he(t.not,e,n,i).next().done===!0&&(yield T(I.Not,t,n,i))}function*LW(t,e,n,i){Qa(i)||(yield T(I.Null,t,n,i))}function*UW(t,e,n,i){if(!mn.IsNumberLike(i))return yield T(I.Number,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.NumberExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.NumberMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.NumberMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==0&&(yield T(I.NumberMultipleOf,t,n,i))}function*DW(t,e,n,i){if(!mn.IsObjectLike(i))return yield T(I.Object,t,n,i);st(t.minProperties)&&!(Object.getOwnPropertyNames(i).length>=t.minProperties)&&(yield T(I.ObjectMinProperties,t,n,i)),st(t.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=t.maxProperties)&&(yield T(I.ObjectMaxProperties,t,n,i));const s=Array.isArray(t.required)?t.required:[],c=Object.getOwnPropertyNames(t.properties),f=Object.getOwnPropertyNames(i);for(const d of s)f.includes(d)||(yield T(I.ObjectRequiredProperty,t.properties[d],`${n}/${yr(d)}`,void 0));if(t.additionalProperties===!1)for(const d of f)c.includes(d)||(yield T(I.ObjectAdditionalProperties,t,`${n}/${yr(d)}`,i[d]));if(typeof t.additionalProperties=="object")for(const d of f)c.includes(d)||(yield*he(t.additionalProperties,e,`${n}/${yr(d)}`,i[d]));for(const d of c){const p=t.properties[d];t.required&&t.required.includes(d)?(yield*he(p,e,`${n}/${yr(d)}`,i[d]),au(t)&&!(d in i)&&(yield T(I.ObjectRequiredProperty,p,`${n}/${yr(d)}`,void 0))):mn.IsExactOptionalProperty(i,d)&&(yield*he(p,e,`${n}/${yr(d)}`,i[d]))}}function*BW(t,e,n,i){Aw(i)||(yield T(I.Promise,t,n,i))}function*jW(t,e,n,i){if(!mn.IsRecordLike(i))return yield T(I.Object,t,n,i);st(t.minProperties)&&!(Object.getOwnPropertyNames(i).length>=t.minProperties)&&(yield T(I.ObjectMinProperties,t,n,i)),st(t.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=t.maxProperties)&&(yield T(I.ObjectMaxProperties,t,n,i));const[s,c]=Object.entries(t.patternProperties)[0],f=new RegExp(s);for(const[d,p]of Object.entries(i))f.test(d)&&(yield*he(c,e,`${n}/${yr(d)}`,p));if(typeof t.additionalProperties=="object")for(const[d,p]of Object.entries(i))f.test(d)||(yield*he(t.additionalProperties,e,`${n}/${yr(d)}`,p));if(t.additionalProperties===!1){for(const[d,p]of Object.entries(i))if(!f.test(d))return yield T(I.ObjectAdditionalProperties,t,`${n}/${yr(d)}`,p)}}function*qW(t,e,n,i){yield*he(ii(t,e),e,n,i)}function*WW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);if(st(t.minLength)&&!(i.length>=t.minLength)&&(yield T(I.StringMinLength,t,n,i)),st(t.maxLength)&&!(i.length<=t.maxLength)&&(yield T(I.StringMaxLength,t,n,i)),!new RegExp(t.source,t.flags).test(i))return yield T(I.RegExp,t,n,i)}function*KW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);st(t.minLength)&&!(i.length>=t.minLength)&&(yield T(I.StringMinLength,t,n,i)),st(t.maxLength)&&!(i.length<=t.maxLength)&&(yield T(I.StringMaxLength,t,n,i)),Or(t.pattern)&&(new RegExp(t.pattern).test(i)||(yield T(I.StringPattern,t,n,i))),Or(t.format)&&(Gd(t.format)?U_(t.format)(i)||(yield T(I.StringFormat,t,n,i)):yield T(I.StringFormatUnknown,t,n,i))}function*HW(t,e,n,i){tf(i)||(yield T(I.Symbol,t,n,i))}function*GW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);new RegExp(t.pattern).test(i)||(yield T(I.StringPattern,t,n,i))}function*YW(t,e,n,i){yield*he(ii(t,e),e,n,i)}function*zW(t,e,n,i){if(!Ln(i))return yield T(I.Tuple,t,n,i);if(t.items===void 0&&i.length!==0)return yield T(I.TupleLength,t,n,i);if(i.length!==t.maxItems)return yield T(I.TupleLength,t,n,i);if(t.items)for(let s=0;s0&&(yield T(I.Union,t,n,i))}function*QW(t,e,n,i){if(!Zh(i))return yield T(I.Uint8Array,t,n,i);st(t.maxByteLength)&&!(i.length<=t.maxByteLength)&&(yield T(I.Uint8ArrayMaxByteLength,t,n,i)),st(t.minByteLength)&&!(i.length>=t.minByteLength)&&(yield T(I.Uint8ArrayMinByteLength,t,n,i))}function*ZW(t,e,n,i){}function*VW(t,e,n,i){mn.IsVoidLike(i)||(yield T(I.Void,t,n,i))}function*t4(t,e,n,i){D_(t[U])(t,i)||(yield T(I.Kind,t,n,i))}function*he(t,e,n,i){const s=st(t.$id)?[...e,t]:e,c=t;switch(c[U]){case"Any":return yield*IW();case"Array":return yield*xW(c,s,n,i);case"AsyncIterator":return yield*FW(c,s,n,i);case"BigInt":return yield*$W(c,s,n,i);case"Boolean":return yield*PW(c,s,n,i);case"Constructor":return yield*MW(c,s,n,i);case"Date":return yield*RW(c,s,n,i);case"Function":return yield*EW(c,s,n,i);case"Integer":return yield*AW(c,s,n,i);case"Intersect":return yield*vW(c,s,n,i);case"Iterator":return yield*NW(c,s,n,i);case"Literal":return yield*CW(c,s,n,i);case"Never":return yield*kW(c,s,n,i);case"Not":return yield*TW(c,s,n,i);case"Null":return yield*LW(c,s,n,i);case"Number":return yield*UW(c,s,n,i);case"Object":return yield*DW(c,s,n,i);case"Promise":return yield*BW(c,s,n,i);case"Record":return yield*jW(c,s,n,i);case"Ref":return yield*qW(c,s,n,i);case"RegExp":return yield*WW(c,s,n,i);case"String":return yield*KW(c,s,n,i);case"Symbol":return yield*HW(c,s,n,i);case"TemplateLiteral":return yield*GW(c,s,n,i);case"This":return yield*YW(c,s,n,i);case"Tuple":return yield*zW(c,s,n,i);case"Undefined":return yield*JW(c,s,n,i);case"Union":return yield*XW(c,s,n,i);case"Uint8Array":return yield*QW(c,s,n,i);case"Unknown":return yield*ZW();case"Void":return yield*VW(c,s,n,i);default:if(!ga(c[U]))throw new SW(t);return yield*t4(c,s,n,i)}}function p_(...t){const e=t.length===3?he(t[0],t[1],"",t[2]):he(t[0],[],"",t[1]);return new OW(e)}class e4 extends Ae{constructor(n){super("Unknown type");_(this,"schema");this.schema=n}}function n4(t){return t[U]==="Any"||t[U]==="Unknown"}function ut(t){return t!==void 0}function r4(t,e,n){return!0}function i4(t,e,n){if(!Ln(n)||ut(t.minItems)&&!(n.length>=t.minItems)||ut(t.maxItems)&&!(n.length<=t.maxItems)||!n.every(c=>me(t.items,e,c))||t.uniqueItems===!0&&!function(){const c=new Set;for(const f of n){const d=Lw(f);if(c.has(d))return!1;c.add(d)}return!0}())return!1;if(!(ut(t.contains)||Yn(t.minContains)||Yn(t.maxContains)))return!0;const i=ut(t.contains)?t.contains:ve(),s=n.reduce((c,f)=>me(i,e,f)?c+1:c,0);return!(s===0||Yn(t.minContains)&&st.maxContains)}function o4(t,e,n){return Rw(n)}function s4(t,e,n){return!(!Va(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.multipleOf)&&n%t.multipleOf!==BigInt(0))}function u4(t,e,n){return Za(n)}function c4(t,e,n){return me(t.returns,e,n.prototype)}function a4(t,e,n){return!(!Vh(n)||ut(t.exclusiveMaximumTimestamp)&&!(n.getTime()t.exclusiveMinimumTimestamp)||ut(t.maximumTimestamp)&&!(n.getTime()<=t.maximumTimestamp)||ut(t.minimumTimestamp)&&!(n.getTime()>=t.minimumTimestamp)||ut(t.multipleOfTimestamp)&&n.getTime()%t.multipleOfTimestamp!==0)}function f4(t,e,n){return tm(n)}function l4(t,e,n){return!(!vw(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.multipleOf)&&n%t.multipleOf!==0)}function d4(t,e,n){const i=t.allOf.every(s=>me(s,e,n));if(t.unevaluatedProperties===!1){const s=new RegExp(jc(t)),c=Object.getOwnPropertyNames(n).every(f=>s.test(f));return i&&c}else if($t(t.unevaluatedProperties)){const s=new RegExp(jc(t)),c=Object.getOwnPropertyNames(n).every(f=>s.test(f)||me(t.unevaluatedProperties,e,n[f]));return i&&c}else return i}function h4(t,e,n){return Ew(n)}function m4(t,e,n){return n===t.const}function p4(t,e,n){return!1}function g4(t,e,n){return!me(t.not,e,n)}function y4(t,e,n){return Qa(n)}function _4(t,e,n){return!(!mn.IsNumberLike(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.multipleOf)&&n%t.multipleOf!==0)}function b4(t,e,n){if(!mn.IsObjectLike(n)||ut(t.minProperties)&&!(Object.getOwnPropertyNames(n).length>=t.minProperties)||ut(t.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=t.maxProperties))return!1;const i=Object.getOwnPropertyNames(t.properties);for(const s of i){const c=t.properties[s];if(t.required&&t.required.includes(s)){if(!me(c,e,n[s])||(au(c)||n4(c))&&!(s in n))return!1}else if(mn.IsExactOptionalProperty(n,s)&&!me(c,e,n[s]))return!1}if(t.additionalProperties===!1){const s=Object.getOwnPropertyNames(n);return t.required&&t.required.length===i.length&&s.length===i.length?!0:s.every(c=>i.includes(c))}else return typeof t.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(c=>i.includes(c)||me(t.additionalProperties,e,n[c])):!0}function w4(t,e,n){return Aw(n)}function S4(t,e,n){if(!mn.IsRecordLike(n)||ut(t.minProperties)&&!(Object.getOwnPropertyNames(n).length>=t.minProperties)||ut(t.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=t.maxProperties))return!1;const[i,s]=Object.entries(t.patternProperties)[0],c=new RegExp(i),f=Object.entries(n).every(([y,M])=>c.test(y)?me(s,e,M):!0),d=typeof t.additionalProperties=="object"?Object.entries(n).every(([y,M])=>c.test(y)?!0:me(t.additionalProperties,e,M)):!0,p=t.additionalProperties===!1?Object.getOwnPropertyNames(n).every(y=>c.test(y)):!0;return f&&d&&p}function O4(t,e,n){return me(ii(t,e),e,n)}function I4(t,e,n){const i=new RegExp(t.source,t.flags);return ut(t.minLength)&&!(n.length>=t.minLength)||ut(t.maxLength)&&!(n.length<=t.maxLength)?!1:i.test(n)}function x4(t,e,n){return!Or(n)||ut(t.minLength)&&!(n.length>=t.minLength)||ut(t.maxLength)&&!(n.length<=t.maxLength)||ut(t.pattern)&&!new RegExp(t.pattern).test(n)?!1:ut(t.format)?Gd(t.format)?U_(t.format)(n):!1:!0}function F4(t,e,n){return tf(n)}function $4(t,e,n){return Or(n)&&new RegExp(t.pattern).test(n)}function P4(t,e,n){return me(ii(t,e),e,n)}function M4(t,e,n){if(!Ln(n)||t.items===void 0&&n.length!==0||n.length!==t.maxItems)return!1;if(!t.items)return!0;for(let i=0;ime(i,e,n))}function A4(t,e,n){return!(!Zh(n)||ut(t.maxByteLength)&&!(n.length<=t.maxByteLength)||ut(t.minByteLength)&&!(n.length>=t.minByteLength))}function v4(t,e,n){return!0}function N4(t,e,n){return mn.IsVoidLike(n)}function C4(t,e,n){return ga(t[U])?D_(t[U])(t,n):!1}function me(t,e,n){const i=ut(t.$id)?[...e,t]:e,s=t;switch(s[U]){case"Any":return r4();case"Array":return i4(s,i,n);case"AsyncIterator":return o4(s,i,n);case"BigInt":return s4(s,i,n);case"Boolean":return u4(s,i,n);case"Constructor":return c4(s,i,n);case"Date":return a4(s,i,n);case"Function":return f4(s,i,n);case"Integer":return l4(s,i,n);case"Intersect":return d4(s,i,n);case"Iterator":return h4(s,i,n);case"Literal":return m4(s,i,n);case"Never":return p4();case"Not":return g4(s,i,n);case"Null":return y4(s,i,n);case"Number":return _4(s,i,n);case"Object":return b4(s,i,n);case"Promise":return w4(s,i,n);case"Record":return S4(s,i,n);case"Ref":return O4(s,i,n);case"RegExp":return I4(s,i,n);case"String":return x4(s,i,n);case"Symbol":return F4(s,i,n);case"TemplateLiteral":return $4(s,i,n);case"This":return P4(s,i,n);case"Tuple":return M4(s,i,n);case"Undefined":return R4(s,i,n);case"Union":return E4(s,i,n);case"Uint8Array":return A4(s,i,n);case"Unknown":return v4();case"Void":return N4(s,i,n);default:if(!ga(s[U]))throw new e4(s);return C4(s,i,n)}}function Vs(...t){return t.length===3?me(t[0],t[1],t[2]):me(t[0],[],t[1])}const k4=ue({type:qt("insert"),path:Xr(),value:su()}),T4=ue({type:qt("update"),path:Xr(),value:su()}),L4=ue({type:qt("delete"),path:Xr()});Ne([k4,T4,L4]);class U4 extends Ae{constructor(n,i,s){super("Unable to decode due to invalid value");_(this,"schema");_(this,"value");_(this,"error");this.schema=n,this.value=i,this.error=s}}class D4 extends Ae{constructor(n,i,s){super(`${s instanceof Error?s.message:"Unknown error"}`);_(this,"schema");_(this,"value");this.schema=n,this.value=i}}function Lt(t,e){try{return ei(t)?t[Mn].Decode(e):e}catch(n){throw new D4(t,e,n)}}function B4(t,e,n){return Ln(n)?Lt(t,n.map(i=>rr(t.items,e,i))):Lt(t,n)}function j4(t,e,n){if(!qi(n)||Nw(n))return Lt(t,n);const i=ri(t),s=i.reduce((p,y)=>y in p?{...p,[y]:rr(iu(t,[y]),e,p[y])}:p,n);if(!ei(t.unevaluatedProperties))return Lt(t,s);const c=Object.getOwnPropertyNames(s),f=t.unevaluatedProperties,d=c.reduce((p,y)=>i.includes(y)?p:{...p,[y]:Lt(f,p[y])},s);return Lt(t,d)}function q4(t,e,n){return Lt(t,rr(t.not,e,n))}function W4(t,e,n){if(!qi(n))return Lt(t,n);const i=ri(t),s=i.reduce((p,y)=>y in p?{...p,[y]:rr(t.properties[y],e,p[y])}:p,n);if(!$t(t.additionalProperties))return Lt(t,s);const c=Object.getOwnPropertyNames(s),f=t.additionalProperties,d=c.reduce((p,y)=>i.includes(y)?p:{...p,[y]:Lt(f,p[y])},s);return Lt(t,d)}function K4(t,e,n){if(!qi(n))return Lt(t,n);const i=Object.getOwnPropertyNames(t.patternProperties)[0],s=new RegExp(i),c=Object.getOwnPropertyNames(n).reduce((y,M)=>s.test(M)?{...y,[M]:rr(t.patternProperties[i],e,y[M])}:y,n);if(!$t(t.additionalProperties))return Lt(t,c);const f=Object.getOwnPropertyNames(c),d=t.additionalProperties,p=f.reduce((y,M)=>s.test(M)?y:{...y,[M]:Lt(d,y[M])},c);return Lt(t,p)}function H4(t,e,n){const i=ii(t,e);return Lt(t,rr(i,e,n))}function G4(t,e,n){const i=ii(t,e);return Lt(t,rr(i,e,n))}function Y4(t,e,n){return Ln(n)&&Ln(t.items)?Lt(t,t.items.map((i,s)=>rr(i,e,n[s]))):Lt(t,n)}function z4(t,e,n){for(const i of t.anyOf){if(!Vs(i,e,n))continue;const s=rr(i,e,n);return Lt(t,s)}return Lt(t,n)}function rr(t,e,n){const i=typeof t.$id=="string"?[...e,t]:e,s=t;switch(t[U]){case"Array":return B4(s,i,n);case"Intersect":return j4(s,i,n);case"Not":return q4(s,i,n);case"Object":return W4(s,i,n);case"Record":return K4(s,i,n);case"Ref":return H4(s,i,n);case"Symbol":return Lt(s,n);case"This":return G4(s,i,n);case"Tuple":return Y4(s,i,n);case"Union":return z4(s,i,n);default:return Lt(s,n)}}function J4(t,e,n){return rr(t,e,n)}class X4 extends Ae{constructor(n,i,s){super("Unable to encode due to invalid value");_(this,"schema");_(this,"value");_(this,"error");this.schema=n,this.value=i,this.error=s}}class Q4 extends Ae{constructor(n,i,s){super(`${s instanceof Error?s.message:"Unknown error"}`);_(this,"schema");_(this,"value");this.schema=n,this.value=i}}function oe(t,e){try{return ei(t)?t[Mn].Encode(e):e}catch(n){throw new Q4(t,e,n)}}function Z4(t,e,n){const i=oe(t,n);return Ln(i)?i.map(s=>Vn(t.items,e,s)):i}function V4(t,e,n){const i=oe(t,n);if(!qi(n)||Nw(n))return i;const s=ri(t),c=s.reduce((p,y)=>y in i?{...p,[y]:Vn(iu(t,[y]),e,p[y])}:p,i);if(!ei(t.unevaluatedProperties))return oe(t,c);const f=Object.getOwnPropertyNames(c),d=t.unevaluatedProperties;return f.reduce((p,y)=>s.includes(y)?p:{...p,[y]:oe(d,p[y])},c)}function t6(t,e,n){return oe(t.not,oe(t,n))}function e6(t,e,n){const i=oe(t,n);if(!qi(n))return i;const s=ri(t),c=s.reduce((p,y)=>y in p?{...p,[y]:Vn(t.properties[y],e,p[y])}:p,i);if(!$t(t.additionalProperties))return c;const f=Object.getOwnPropertyNames(c),d=t.additionalProperties;return f.reduce((p,y)=>s.includes(y)?p:{...p,[y]:oe(d,p[y])},c)}function n6(t,e,n){const i=oe(t,n);if(!qi(n))return i;const s=Object.getOwnPropertyNames(t.patternProperties)[0],c=new RegExp(s),f=Object.getOwnPropertyNames(n).reduce((y,M)=>c.test(M)?{...y,[M]:Vn(t.patternProperties[s],e,y[M])}:y,i);if(!$t(t.additionalProperties))return oe(t,f);const d=Object.getOwnPropertyNames(f),p=t.additionalProperties;return d.reduce((y,M)=>c.test(M)?y:{...y,[M]:oe(p,y[M])},f)}function r6(t,e,n){const i=ii(t,e),s=Vn(i,e,n);return oe(t,s)}function i6(t,e,n){const i=ii(t,e),s=Vn(i,e,n);return oe(t,s)}function o6(t,e,n){const i=oe(t,n);return Ln(t.items)?t.items.map((s,c)=>Vn(s,e,i[c])):[]}function s6(t,e,n){for(const i of t.anyOf){if(!Vs(i,e,n))continue;const s=Vn(i,e,n);return oe(t,s)}for(const i of t.anyOf){const s=Vn(i,e,n);if(Vs(t,e,s))return oe(t,s)}return oe(t,n)}function Vn(t,e,n){const i=typeof t.$id=="string"?[...e,t]:e,s=t;switch(t[U]){case"Array":return Z4(s,i,n);case"Intersect":return V4(s,i,n);case"Not":return t6(s,i,n);case"Object":return e6(s,i,n);case"Record":return n6(s,i,n);case"Ref":return r6(s,i,n);case"This":return i6(s,i,n);case"Tuple":return o6(s,i,n);case"Union":return s6(s,i,n);default:return oe(s,n)}}function u6(t,e,n){return Vn(t,e,n)}function em(...t){return Vs.apply(Vs,t)}function Uw(...t){const[e,n,i]=t.length===3?[t[0],t[1],t[2]]:[t[0],[],t[1]];if(!em(e,n,i))throw new U4(e,i,nm(e,n,i).First());return J4(e,n,i)}function c6(...t){const[e,n,i]=t.length===3?[t[0],t[1],t[2]]:[t[0],[],t[1]],s=u6(e,n,i);if(!em(e,n,s))throw new X4(e,i,nm(e,n,i).First());return s}function nm(...t){return p_.apply(p_,t)}const Dd=""+new URL("../assets/logo.BN0rvja2.jpeg",import.meta.url).href,a6=t=>({}),g_=t=>({doc:t[0]});function f6(t){let e;const n=t[4].default,i=NM(n,t,t[3],g_);return{c(){i&&i.c()},l(s){i&&i.l(s)},m(s,c){i&&i.m(s,c),e=!0},p(s,[c]){i&&i.p&&(!e||c&8)&&CM(i,n,s,s[3],e?TM(n,s[3],c,a6):kM(s[3]),g_)},i(s){e||(Bd(i,s),e=!0)},o(s){jd(i,s),e=!1},d(s){i&&i.d(s)}}}const l6=Symbol("DCK");function d6(t,e,n){let{$$slots:i={},$$scope:s}=e,{collection:c}=e,{name:f}=e;const d=qw(c,f);return LM(l6,{content:d==null?void 0:d.content}),t.$$set=p=>{"collection"in p&&n(1,c=p.collection),"name"in p&&n(2,f=p.name),"$$scope"in p&&n(3,s=p.$$scope)},[d,c,f,s,i]}class Dw extends Pr{constructor(e){super(),Mr(this,e,d6,f6,$r,{collection:1,name:2})}}function h6(t){let e,n=JSON.stringify(t[0],null,2)+"",i;return{c(){e=Gr("pre"),i=O_(n)},l(s){e=Yr(s,"PRE",{});var c=I_(e);i=x_(c,n),c.forEach(Ge)},m(s,c){Pn(s,e,c),F_(e,i)},p(s,c){c&1&&n!==(n=JSON.stringify(s[0],null,2)+"")&&$_(i,n)},d(s){s&&Ge(e)}}}function m6(t){let e,n="Mo bellissima dyne",i,s,c,f,d,p,y,M,A;return d=new Dw({props:{collection:"organizations",name:"freelance",$$slots:{default:[h6,({doc:N})=>({0:N}),({doc:N})=>N?1:0]},$$scope:{ctx:t}}}),{c(){e=Gr("p"),e.textContent=n,i=$l(),s=Gr("img"),f=$l(),__(d.$$.fragment),p=$l(),y=Gr("img"),this.h()},l(N){e=Yr(N,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-1k1q0s1"&&(e.textContent=n),i=Pl(N),s=Yr(N,"IMG",{src:!0,alt:!0}),f=Pl(N),b_(d.$$.fragment,N),p=Pl(N),y=Yr(N,"IMG",{src:!0,alt:!0}),this.h()},h(){Ug(s.src,c=Dd)||Oc(s,"src",c),Oc(s,"alt","dyne logo"),Ug(y.src,M=Dd)||Oc(y,"src",M),Oc(y,"alt","dyne logo")},m(N,C){Pn(N,e,C),Pn(N,i,C),Pn(N,s,C),Pn(N,f,C),w_(d,N,C),Pn(N,p,C),Pn(N,y,C),A=!0},p(N,[C]){const B={};C&3&&(B.$$scope={dirty:C,ctx:N}),d.$set(B)},i(N){A||(Bd(d.$$.fragment,N),A=!0)},o(N){jd(d.$$.fragment,N),A=!1},d(N){N&&(Ge(e),Ge(i),Ge(s),Ge(f),Ge(p),Ge(y)),S_(d,N)}}}const p6=oi("organizations",{name:"Dyne.org",location:"Amsterdam, Paesi Bassi",logo:Dd});let g6=class extends Pr{constructor(e){super(),Mr(this,e,null,m6,$r,{})}};const y6=Object.freeze(Object.defineProperty({__proto__:null,default:g6,props:p6},Symbol.toStringTag,{value:"Module"}));function _6(t){let e,n="Mo bellissima ff";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-fi9953"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const b6=oi("organizations",{name:"Studio FF3300",location:"Bari, Italia"});let w6=class extends Pr{constructor(e){super(),Mr(this,e,null,_6,$r,{})}};const S6=Object.freeze(Object.defineProperty({__proto__:null,default:w6,props:b6},Symbol.toStringTag,{value:"Module"}));function O6(t){let e,n="Mo bellissimo il freelance";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-khatbd"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const I6=oi("organizations",{name:"Freelance",location:"Bari, Italia"});let x6=class extends Pr{constructor(e){super(),Mr(this,e,null,O6,$r,{})}};const F6=Object.freeze(Object.defineProperty({__proto__:null,default:x6,props:I6},Symbol.toStringTag,{value:"Module"}));function $6(t){let e,n="Mo bellissima la sos";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-1yooyin"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const P6=oi("organizations",{name:"La Scuola Open Source",location:"Bari, Italia"});let M6=class extends Pr{constructor(e){super(),Mr(this,e,null,$6,$r,{})}};const R6=Object.freeze(Object.defineProperty({__proto__:null,default:M6,props:P6},Symbol.toStringTag,{value:"Module"})),E6=oi("work_experiences",{date_start:"2019-07",current:!0,organization:"freelance"});let A6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const v6=Object.freeze(Object.defineProperty({__proto__:null,default:A6,props:E6},Symbol.toStringTag,{value:"Module"})),N6=oi("work_experiences",{date_start:"2021-05",current:!0,organization:"la-scuola-open-source"});let C6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const k6=Object.freeze(Object.defineProperty({__proto__:null,default:C6,props:N6},Symbol.toStringTag,{value:"Module"})),T6=oi("work_experiences",{date_start:"2021-09",date_end:"2022-03",current:!1,organization:"freelance"});let L6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const U6=Object.freeze(Object.defineProperty({__proto__:null,default:L6,props:T6},Symbol.toStringTag,{value:"Module"}));function D6(t){let e,n=JSON.stringify(t[0],null,2)+"",i;return{c(){e=Gr("pre"),i=O_(n)},l(s){e=Yr(s,"PRE",{});var c=I_(e);i=x_(c,n),c.forEach(Ge)},m(s,c){Pn(s,e,c),F_(e,i)},p(s,c){c&1&&n!==(n=JSON.stringify(s[0],null,2)+"")&&$_(i,n)},d(s){s&&Ge(e)}}}function B6(t){let e,n;return e=new Dw({props:{collection:"organizations",name:Bw.organization.id,$$slots:{default:[D6,({doc:i})=>({0:i}),({doc:i})=>i?1:0]},$$scope:{ctx:t}}}),{c(){__(e.$$.fragment)},l(i){b_(e.$$.fragment,i)},m(i,s){w_(e,i,s),n=!0},p(i,[s]){const c={};s&3&&(c.$$scope={dirty:s,ctx:i}),e.$set(c)},i(i){n||(Bd(e.$$.fragment,i),n=!0)},o(i){jd(e.$$.fragment,i),n=!1},d(i){S_(e,i)}}}const Bw=oi("work_experiences",{date_start:"2022-10",current:!0,organization:"dyne"});class j6 extends Pr{constructor(e){super(),Mr(this,e,null,B6,$r,{})}}const q6=Object.freeze(Object.defineProperty({__proto__:null,default:j6,props:Bw},Symbol.toStringTag,{value:"Module"})),y_=Object.assign({"./organizations/dyne/+page.svelte":y6,"./organizations/ff3300/+page.svelte":S6,"./organizations/freelance/+page.svelte":F6,"./organizations/la-scuola-open-source/+page.svelte":R6,"./projects/join/+page.svelte":UM,"./projects/reaction-diffusion/+page.svelte":DM,"./projects/scabec/+page.svelte":BM,"./projects/signroom/+page.svelte":jM,"./work_experiences/2019-07_oggi_freelance_docente/+page.svelte":v6,"./work_experiences/2021-05_oggi_sos/+page.svelte":k6,"./work_experiences/2021-09_2022-03_sos/+page.svelte":U6,"./work_experiences/2022-10_oggi_dyne/+page.svelte":q6}),W6=ot.Object({props:ot.Optional(ot.Object({})),default:ot.Any()}),K6=ot.Record(ot.String(),W6);function H6(){return em(K6,y_)?Iw(y_):Ow(new Error("Invalid Vite glob import"))}function G6(t){return P(t,i_("/+page.svelte",""),i_("./","/"),qM)}function Y6(t){return P(t,xC,zr(([e,n])=>({path:G6(e),props:n.props,content:n.default})))}function rm(){return P(H6(),Mu(Y6))}function z6(t){return P(rm(),Mu(e=>P(e,Zb(n=>n.path.includes(t)),lo)))}function jw(t,e){return xw({try:()=>{const n=c6(e,t.props),i=Uw(e,n);return{...t,props:i}},catch:()=>{const n=[...nm(e,t.props)];return console.log(t,n),new Error(`Parse error: ${t.path}`)}})}var Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ca={exports:{}};/** +`)}`:this.toString()}}return Object.assign(t.prototype,rC),t}(),x1=(t,e)=>{class n extends I1{constructor(){super(...arguments);_(this,"_tag",e)}}return Object.assign(n.prototype,t),n.prototype.name=e,n},xy=Symbol.for("effect/Cause/errors/RuntimeException"),WL=x1({[xy]:xy},"RuntimeException"),KL=Symbol.for("effect/Cause/errors/InterruptedException"),HL=t=>at(t,KL),Fy=Symbol.for("effect/Cause/errors/NoSuchElement"),F1=x1({[Fy]:Fy},"NoSuchElementException"),$y=Symbol.for("effect/Cause/errors/UnknownException"),$1=function(){class t extends I1{constructor(i,s){super(s??(at(i,"message")&&CN(i.message)?i.message:void 0));_(this,"error");_(this,"_tag","UnknownException");this.error=i}}return Object.assign(t.prototype,{[$y]:$y,name:"UnknownException"}),t}(),Py=(t,e)=>JL(t,e!=null&&e.parallel?wu:En),My=t=>kt(ta(t)),kt=t=>{const e=new r1(An);return e.i0=t,e},GL=t=>kt(wi(t)),Tl=x(2,(t,e)=>{switch(t._tag){case An:return kt(t.i0);case vn:return Re(e(t.i0))}}),YL=x(2,(t,{onFailure:e,onSuccess:n})=>{switch(t._tag){case An:return e(t.i0);case vn:return n(t.i0)}}),Re=t=>{const e=new i1(vn);return e.i0=t,e},Si=Re(void 0),zL=x(3,(t,e,{onFailure:n,onSuccess:i})=>{switch(t._tag){case An:switch(e._tag){case vn:return kt(t.i0);case An:return kt(n(t.i0,e.i0))}case vn:switch(e._tag){case vn:return Re(i(t.i0,e.i0));case An:return kt(e.i0)}}}),JL=(t,e)=>{const n=s0(t);return xo(n)?P(bi(n),Zb(P(Fo(n),Tl(Ir)),(i,s)=>P(i,zL(s,{onSuccess:(c,f)=>P(c,Tn(f)),onFailure:e}))),Tl(Io),Tl(i=>Array.from(i)),bt):Z()},XL=t=>({[VT]:tL,state:x0(vh([])),blockingOn:t,pipe(){return X(this,arguments)}}),QL=t=>zo(e=>{const n=Ea(t.state);switch(n._tag){case t1:return e(n.effect);case ka:return P(t.state,Aa(vh([e,...n.joiners]))),ZL(t,e)}},t.blockingOn),P1=(t,e)=>{const n=Ea(t.state);if(n._tag===ka){P(t.state,Aa(eL(e)));for(let i=n.joiners.length-1;i>=0;i--)n.joiners[i](e)}},ZL=(t,e)=>z(()=>{const n=Ea(t.state);n._tag===ka&&P(t.state,Aa(vh(n.joiners.filter(i=>i!==e))))}),VL=Ba(ji),tU=()=>VL,Iu=t=>G(tU(),t),eU=x(2,(t,e)=>ja(ji,e)(t)),nU=x(2,(t,e)=>Iu(n=>eU(t,e(n)))),rU=t=>{const e=t.getFiberRef(ji).unsafeMap.get(e1.key);return e!==void 0&&e._tag==="Span"?bt(e):Z()},gd=Symbol.for("effect/Duration"),iU=BigInt(1e3),yd=BigInt(1e9),Ry=/^(-?\d+(?:\.\d+)?)\s+(nanos|micros|millis|seconds|minutes|hours|days|weeks)$/,Zr=t=>{if(M1(t))return t;if(Rc(t))return _d(t);if(kN(t))return Ll(t);if(Array.isArray(t)){if(t.length===2&&Rc(t[0])&&Rc(t[1]))return Ll(BigInt(t[0])*yd+BigInt(t[1]))}else{Ry.lastIndex=0;const e=Ry.exec(t);if(e){const[n,i,s]=e,c=Number(i);switch(s){case"nanos":return Ll(BigInt(i));case"micros":return cU(BigInt(i));case"millis":return _d(c);case"seconds":return aU(c);case"minutes":return fU(c);case"hours":return lU(c);case"days":return dU(c);case"weeks":return hU(c)}}}throw new Error("Invalid duration input")},Ey={_tag:"Millis",millis:0},oU={_tag:"Infinity"},sU={[gd]:gd,[rt](){return Wt(this,Pb(this.value))},[nt](t){return M1(t)&&_U(this,t)},toString(){return`Duration(${bU(this)})`},toJSON(){switch(this.value._tag){case"Millis":return{_id:"Duration",_tag:"Millis",millis:this.value.millis};case"Nanos":return{_id:"Duration",_tag:"Nanos",hrtime:pU(this)};case"Infinity":return{_id:"Duration",_tag:"Infinity"}}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}},Er=t=>{const e=Object.create(sU);return Rc(t)?isNaN(t)||t<0?e.value=Ey:Number.isFinite(t)?Number.isInteger(t)?e.value={_tag:"Millis",millis:t}:e.value={_tag:"Nanos",nanos:BigInt(Math.round(t*1e6))}:e.value=oU:tat(t,gd),uU=Er(0),Ll=t=>Er(t),cU=t=>Er(t*iU),_d=t=>Er(t),aU=t=>Er(t*1e3),fU=t=>Er(t*6e4),lU=t=>Er(t*36e5),dU=t=>Er(t*864e5),hU=t=>Er(t*6048e5),bd=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":return 1/0;case"Nanos":return Number(e.value.nanos)/1e6;case"Millis":return e.value.millis}},mU=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":throw new Error("Cannot convert infinite duration to nanos");case"Nanos":return e.value.nanos;case"Millis":return BigInt(Math.round(e.value.millis*1e6))}},pU=t=>{const e=Zr(t);switch(e.value._tag){case"Infinity":return[1/0,0];case"Nanos":return[Number(e.value.nanos/yd),Number(e.value.nanos%yd)];case"Millis":return[Math.floor(e.value.millis/1e3),Math.round(e.value.millis%1e3*1e6)]}},R1=x(3,(t,e,n)=>{const i=Zr(t),s=Zr(e);if(i.value._tag==="Infinity"||s.value._tag==="Infinity")return n.onMillis(bd(i),bd(s));if(i.value._tag==="Nanos"||s.value._tag==="Nanos"){const c=i.value._tag==="Nanos"?i.value.nanos:BigInt(Math.round(i.value.millis*1e6)),f=s.value._tag==="Nanos"?s.value.nanos:BigInt(Math.round(s.value.millis*1e6));return n.onNanos(c,f)}return n.onMillis(i.value.millis,s.value.millis)}),gU=(t,e)=>R1(t,e,{onMillis:(n,i)=>n===i,onNanos:(n,i)=>n===i}),yU=x(2,(t,e)=>R1(t,e,{onMillis:(n,i)=>n>=i,onNanos:(n,i)=>n>=i})),_U=x(2,(t,e)=>gU(Zr(t),Zr(e))),bU=t=>{const e=Zr(t),n=[];if(e.value._tag==="Infinity")return"Infinity";const i=mU(e);i%1000000n&&n.push(`${i%1000000n}ns`);const s=i/1000000n;s%1000n!==0n&&n.push(`${s%1000n}ms`);const c=s/1000n;c%60n!==0n&&n.push(`${c%60n}s`);const f=c/60n;f%60n!==0n&&n.push(`${f%60n}m`);const d=f/60n;d%24n!==0n&&n.push(`${d%24n}h`);const p=d/24n;return p!==0n&&n.push(`${p}d`),n.reverse().join(" ")},Ay=Symbol.for("effect/MutableHashMap"),wU={[Ay]:Ay,[Symbol.iterator](){return new Uh(this)},toString(){return ye(this.toJSON())},toJSON(){return{_id:"MutableHashMap",values:Array.from(this).map(te)}},[Kt](){return this.toJSON()},pipe(){return X(this,arguments)}};class Uh{constructor(e){_(this,"self");_(this,"referentialIterator");_(this,"bucketIterator");this.self=e,this.referentialIterator=e.referential[Symbol.iterator]()}next(){if(this.bucketIterator!==void 0)return this.bucketIterator.next();const e=this.referentialIterator.next();return e.done?(this.bucketIterator=new SU(this.self.buckets.values()),this.next()):e}[Symbol.iterator](){return new Uh(this.self)}}class SU{constructor(e){_(this,"backing");_(this,"currentBucket");this.backing=e}next(){if(this.currentBucket===void 0){const n=this.backing.next();if(n.done)return n;this.currentBucket=n.value[Symbol.iterator]()}const e=this.currentBucket.next();return e.done?(this.currentBucket=void 0,this.next()):e}}const OU=()=>{const t=Object.create(wU);return t.referential=new Map,t.buckets=new Map,t.bucketsSize=0,t},yi=x(2,(t,e)=>{if(Wc(e)===!1)return t.referential.has(e)?bt(t.referential.get(e)):Z();const n=e[rt](),i=t.buckets.get(n);return i===void 0?Z():IU(t,i,e)}),IU=(t,e,n,i=!1)=>{for(let s=0,c=e.length;sQn(yi(t,e))),xs=x(3,(t,e,n)=>{if(Wc(e)===!1)return t.referential.set(e,n),t;const i=e[rt](),s=t.buckets.get(i);return s===void 0?(t.buckets.set(i,[[e,n]]),t.bucketsSize++,t):(xU(t,s,e),s.push([e,n]),t.bucketsSize++,t)}),xU=(t,e,n)=>{for(let i=0,s=e.length;i$U)return Ql;let i=!1;const s=setTimeout(()=>{i=!0,t()},n);return()=>(clearTimeout(s),!i)}},Cy=function(){const t=BigInt(1e6);if(typeof performance>"u")return()=>BigInt(Date.now())*t;const e="timeOrigin"in performance&&typeof performance.timeOrigin=="number"?BigInt(Math.round(performance.timeOrigin*1e6)):BigInt(Date.now())*t-BigInt(Math.round(performance.now()*1e6));return()=>e+BigInt(Math.round(performance.now()*1e6))}(),PU=function(){const t=typeof process=="object"&&"hrtime"in process&&typeof process.hrtime.bigint=="function"?process.hrtime:void 0;if(!t)return Cy;const e=Cy()-t.bigint();return()=>e+t.bigint()}();var rK;class MU{constructor(){_(this,rK,vy);_(this,"currentTimeMillis",z(()=>this.unsafeCurrentTimeMillis()));_(this,"currentTimeNanos",z(()=>this.unsafeCurrentTimeNanos()))}unsafeCurrentTimeMillis(){return Date.now()}unsafeCurrentTimeNanos(){return PU()}scheduler(){return At(Ny)}sleep(e){return zo(n=>{const i=Ny.unsafeSchedule(()=>n(Fr),e);return Ou(z(i))})}}rK=vy;const RU=()=>new MU,Xs=lC,E1="And",A1="Or",v1="InvalidData",N1="MissingData",C1="SourceUnavailable",k1="Unsupported",EU="effect/ConfigError",ky=Symbol.for(EU),Xo={[ky]:ky},T1=(t,e)=>{const n=Object.create(Xo);return n._tag=E1,n.left=t,n.right=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} and ${this.right}`}}),n},L1=(t,e)=>{const n=Object.create(Xo);return n._tag=A1,n.left=t,n.right=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} or ${this.right}`}}),n},AU=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=v1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Invalid data at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},Ai=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=N1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Missing data at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},vU=(t,e,n,i={pathDelim:"."})=>{const s=Object.create(Xo);return s._tag=C1,s.path=t,s.message=e,s.cause=n,Object.defineProperty(s,"toString",{enumerable:!1,value(){return`(Source unavailable at ${P(this.path,qo(i.pathDelim))}: "${this.message}")`}}),s},NU=(t,e,n={pathDelim:"."})=>{const i=Object.create(Xo);return i._tag=k1,i.path=t,i.message=e,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Unsupported operation at ${P(this.path,qo(n.pathDelim))}: "${this.message}")`}}),i},Oi=x(2,(t,e)=>{switch(t._tag){case E1:return T1(Oi(t.left,e),Oi(t.right,e));case A1:return L1(Oi(t.left,e),Oi(t.right,e));case v1:return AU([...e,...t.path],t.message);case N1:return Ai([...e,...t.path],t.message);case C1:return vU([...e,...t.path],t.message,t.cause);case k1:return NU([...e,...t.path],t.message)}}),CU={_tag:"Empty"},Ul=x(2,(t,e)=>{let n=Mh(e),i=t;for(;k0(n);){const s=n.head;switch(s._tag){case"Empty":{n=n.tail;break}case"AndThen":{n=Ei(s.first,Ei(s.second,n.tail));break}case"MapName":{i=zr(i,s.f),n=n.tail;break}case"Nested":{i=Yc(i,s.name),n=n.tail;break}case"Unnested":{if(P(lo(i),bC(s.name)))i=wo(i),n=n.tail;else return bo(Ai(i,`Expected ${s.name} to be in path in ConfigProvider#unnested`));break}}}return br(i)}),kU="Constant",TU="Fail",LU="Fallback",UU="Described",DU="Lazy",BU="MapOrFail",jU="Nested",qU="Primitive",WU="Sequence",KU="HashMap",HU="ZipWith";var Ty={};const ea=(t,e)=>[...t,...e],GU="effect/ConfigProvider",Ly=Symbol.for(GU),YU=Bi("effect/ConfigProvider"),zU="effect/ConfigProviderFlat",Uy=Symbol.for(zU),JU=t=>({[Ly]:Ly,pipe(){return X(this,arguments)},...t}),XU=t=>({[Uy]:Uy,patch:t.patch,load:(e,n,i=!0)=>t.load(e,n,i),enumerateChildren:t.enumerateChildren}),QU=t=>JU({load:e=>G(fn(t,So(),e,!1),n=>Di(lo(n),{onNone:()=>Ie(Ai(So(),`Expected a single value having structure: ${e}`)),onSome:At})),flattened:t}),ZU=t=>{const{pathDelim:e,seqDelim:n}=Object.assign({},{pathDelim:"_",seqDelim:","},t),i=p=>P(p,qo(e)),s=p=>p.split(e),c=()=>typeof process<"u"&&"env"in process&&typeof Ty=="object"?Ty:{};return QU(XU({load:(p,y,M=!0)=>{const A=i(p),N=c(),C=A in N?bt(N[A]):Z();return P(C,Ch(()=>Ai(p,`Expected ${A} to exist in the process context`)),G(B=>rD(B,p,y,n,M)))},enumerateChildren:p=>z(()=>{const y=c(),M=Object.keys(y),N=Array.from(M).map(C=>s(C.toUpperCase())).filter(C=>{for(let B=0;BC.slice(p.length,p.length+1));return Yk(N)}),patch:CU}))},VU=(t,e,n,i)=>{const s=ey(n.length,p=>p>=i.length?Z():bt([t(p),p+1])),c=ey(i.length,p=>p>=n.length?Z():bt([e(p),p+1])),f=ea(n,s),d=ea(i,c);return[f,d]},tD=(t,e)=>{let n=e;if(n._tag==="Nested"){const i=t.slice();for(;n._tag==="Nested";)i.push(n.name),n=n.config;return i}return t},fn=(t,e,n,i)=>{const s=n;switch(s._tag){case kU:return At($n(s.value));case UU:return re(()=>fn(t,e,s.config,i));case TU:return Ie(Ai(e,s.message));case LU:return P(re(()=>fn(t,e,s.first,i)),wy(c=>s.condition(c)?P(fn(t,e,s.second,i),wy(f=>Ie(L1(c,f)))):Ie(c)));case DU:return re(()=>fn(t,e,s.config(),i));case BU:return re(()=>P(fn(t,e,s.original,i),G(Hr(c=>P(s.mapOrFail(c),Ch(Oi(tD(e,s.original))))))));case jU:return re(()=>fn(t,ea(e,$n(s.name)),s.config,i));case qU:return P(Ul(e,t.patch),G(c=>P(t.load(c,s,i),G(f=>{if(f.length===0){const d=P(NC(c),$i(()=>""));return Ie(Ai([],`Expected ${s.description} with name ${d}`))}return At(f)}))));case WU:return P(Ul(e,t.patch),G(c=>P(t.enumerateChildren(c),G(sD),G(f=>f.length===0?re(()=>de(fn(t,c,s.config,!0),$n)):P(Hr(f,d=>fn(t,PC(e,`[${d}]`),s.config,!0)),de(d=>{const p=KC(d);return p.length===0?$n(So()):$n(p)}))))));case KU:return re(()=>P(Ul(e,t.patch),G(c=>P(t.enumerateChildren(c),G(f=>P(f,Hr(d=>fn(t,ea(c,$n(d)),s.valueConfig,i)),de(d=>{if(d.length===0)return $n(Ph());const p=d.map(y=>Array.from(y));return P(iD(p),zr(y=>i2(ty(Yt(f),y))))})))))));case HU:return re(()=>P(fn(t,e,s.left,i),Js,G(c=>P(fn(t,e,s.right,i),Js,G(f=>{if(Es(c)&&Es(f))return Ie(T1(c.left,f.left));if(Es(c)&&xc(f))return Ie(c.left);if(xc(c)&&Es(f))return Ie(f.left);if(xc(c)&&xc(f)){const d=P(e,qo(".")),p=eD(e,d),[y,M]=VU(p,p,P(c.right,zr(br)),P(f.right,zr(br)));return P(y,ty(M),Hr(([A,N])=>P(m1(A,N),de(([C,B])=>s.zip(C,B)))))}throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues")})))))}},eD=(t,e)=>n=>bo(Ai(t,`The element at index ${n} in a sequence at path "${e}" was missing`)),nD=(t,e)=>t.split(new RegExp(`\\s*${oD(e)}\\s*`)),rD=(t,e,n,i,s)=>s?P(nD(t,i),Hr(c=>n.parse(c.trim())),Ch(Oi(e))):P(n.parse(t),f1({onFailure:Oi(e),onSuccess:$n})),iD=t=>Object.keys(t[0]).map(e=>t.map(n=>n[e])),oD=t=>t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),sD=t=>P(Hr(t,cD),f1({onFailure:()=>So(),onSuccess:zc(Xs)}),Js,de(SC)),uD=/^(\[(\d+)\])$/,cD=t=>{const e=t.match(uD);if(e!==null){const n=e[2];return P(n!==void 0&&n.length>0?bt(n):Z(),Hb(aD))}return Z()},aD=t=>{const e=Number.parseInt(t);return Number.isNaN(e)?Z():bt(e)},Dy=Symbol.for("effect/Console"),U1=Bi("effect/Console"),fD={[Dy]:Dy,assert(t,...e){return z(()=>{console.assert(t,...e)})},clear:z(()=>{console.clear()}),count(t){return z(()=>{console.count(t)})},countReset(t){return z(()=>{console.countReset(t)})},debug(...t){return z(()=>{console.debug(...t)})},dir(t,e){return z(()=>{console.dir(t,e)})},dirxml(...t){return z(()=>{console.dirxml(...t)})},error(...t){return z(()=>{console.error(...t)})},group(t){return t!=null&&t.collapsed?z(()=>console.groupCollapsed(t==null?void 0:t.label)):z(()=>console.group(t==null?void 0:t.label))},groupEnd:z(()=>{console.groupEnd()}),info(...t){return z(()=>{console.info(...t)})},log(...t){return z(()=>{console.log(...t)})},table(t,e){return z(()=>{console.table(t,e)})},time(t){return z(()=>console.time(t))},timeEnd(t){return z(()=>console.timeEnd(t))},timeLog(t,...e){return z(()=>{console.timeLog(t,...e)})},trace(...t){return z(()=>{console.trace(...t)})},warn(...t){return z(()=>{console.warn(...t)})},unsafe:console},lD="effect/Random",By=Symbol.for(lD),dD=Bi("effect/Random");var iK;class hD{constructor(e){_(this,"seed");_(this,iK,By);_(this,"PRNG");this.seed=e,this.PRNG=new $b(e)}get next(){return z(()=>this.PRNG.number())}get nextBoolean(){return de(this.next,e=>e>.5)}get nextInt(){return z(()=>this.PRNG.integer(Number.MAX_SAFE_INTEGER))}nextRange(e,n){return de(this.next,i=>(n-e)*i+e)}nextIntBetween(e,n){return z(()=>this.PRNG.integer(n-e)+e)}shuffle(e){return mD(e,n=>this.nextIntBetween(0,n))}}iK=By;const mD=(t,e)=>re(()=>P(z(()=>Array.from(t)),G(n=>{const i=[];for(let s=n.length;s>=2;s=s-1)i.push(s);return P(i,La(s=>P(e(s),de(c=>pD(n,s-1,c)))),Su(s0(n)))}))),pD=(t,e,n)=>{const i=t[e];return t[e]=t[n],t[n]=i,t},gD=t=>new hD(t),yD=P(gh(),Os(Dh,RU()),Os(U1,fD),Os(dD,gD(Math.random()*4294967296>>>0)),Os(YU,ZU()),Os(dd,oL)),Cs=Rt(Symbol.for("effect/DefaultServices/currentServices"),()=>S1(yD));function _D(t){return new Vr(t)}function bD(){return _D(new Map)}const jy=Symbol.for("effect/FiberRefs");var oK;class Vr{constructor(e){_(this,"locals");_(this,oK,jy);this.locals=e}pipe(){return X(this,arguments)}}oK=jy;const wD=(t,e,n,i=!1)=>{const s=t;let c=e,f=n,d=i,p;for(;p===void 0;)if(Xe(c)&&Xe(f)){const y=ze(c)[0],M=wo(c),A=ze(f)[0],N=ze(f)[1],C=wo(f);y.startTimeMillisA.startTimeMillis?c=M:y.idA.id?c=M:p=[N,d]}else p=[s.initial,!0];return p},SD=x(3,(t,e,n)=>{const i=new Map(t.locals);return n.locals.forEach((s,c)=>{const f=s[0][1];if(!s[0][0][nt](e)){if(!i.has(c)){if(ct(f,c.initial))return;i.set(c,[[e,c.join(c.initial,f)]]);return}const d=i.get(c),[p,y]=wD(c,d,s);if(y){const M=c.diff(p,f),A=d[0][1],N=c.join(A,c.patch(M)(A));if(!ct(A,N)){let C;const B=d[0][0];B[nt](e)?C=[[B,N],...d.slice(1)]:C=[[e,N],...d],i.set(c,C)}}}}),new Vr(i)}),OD=x(2,(t,e)=>{const n=new Map;return D1(t,n,e),new Vr(n)}),D1=(t,e,n)=>{t.locals.forEach((i,s)=>{const c=i[0][1],f=s.patch(s.fork)(c);ct(c,f)?e.set(s,i):e.set(s,[[n,f],...i])})},B1=x(2,(t,e)=>{const n=new Map(t.locals);return n.delete(e),new Vr(n)}),wd=x(2,(t,e)=>t.locals.has(e)?bt(ze(t.locals.get(e))[1]):Z()),Bh=x(2,(t,e)=>P(wd(t,e),$i(()=>e.initial))),Sd=x(2,(t,{fiberId:e,fiberRef:n,value:i})=>{if(t.locals.size===0)return new Vr(new Map([[n,[[e,i]]]]));const s=new Map(t.locals);return Od(s,e,n,i),new Vr(s)}),Od=(t,e,n,i)=>{const s=t.get(n)??[];let c;if(Xe(s)){const[f,d]=ze(s);if(f[nt](e)){if(ct(d,i))return;c=[[e,i],...s.slice(1)]}else c=[[e,i],...s]}else c=[[e,i]];t.set(n,c)},ID=x(2,(t,{entries:e,forkAs:n})=>{if(t.locals.size===0)return new Vr(new Map(e));const i=new Map(t.locals);return n!==void 0&&D1(t,i,n),e.forEach(([s,c])=>{c.length===1?Od(i,c[0][0],s,c[0][1]):c.forEach(([f,d])=>{Od(i,f,s,d)})}),new Vr(i)}),xD=Bh,FD=ID,$D=bD,PD=OL,MD=IL,RD=xL,ED=FL,AD=y1,vD=_1,ND=$L,CD=PL,kD=P(Xs,dC(t=>t.ordinal)),TD=hC(kD),LD=t=>{switch(t){case"All":return PD;case"Debug":return vD;case"Error":return RD;case"Fatal":return MD;case"Info":return AD;case"Trace":return ND;case"None":return CD;case"Warning":return ED}},UD=t=>e=>`${e.label.replace(/[\s="]/g,"_")}=${t-e.startTime}ms`,DD=UD,j1="Empty",q1="Add",W1="Remove",K1="Update",H1="AndThen",BD={_tag:j1},jD=(t,e)=>{const n=new Map(t.locals);let i=BD;for(const[s,c]of e.locals.entries()){const f=ze(c)[1],d=n.get(s);if(d!==void 0){const p=ze(d)[1];ct(p,f)||(i=Dl({_tag:K1,fiberRef:s,patch:s.diff(p,f)})(i))}else i=Dl({_tag:q1,fiberRef:s,value:f})(i);n.delete(s)}for(const[s]of n.entries())i=Dl({_tag:W1,fiberRef:s})(i);return i},Dl=x(2,(t,e)=>({_tag:H1,first:t,second:e})),qD=x(3,(t,e,n)=>{let i=n,s=$n(t);for(;Xe(s);){const c=ze(s),f=wo(s);switch(c._tag){case j1:{s=f;break}case q1:{i=Sd(i,{fiberId:e,fiberRef:c.fiberRef,value:c.value}),s=f;break}case W1:{i=B1(i,c.fiberRef),s=f;break}case K1:{const d=Bh(i,c.fiberRef);i=Sd(i,{fiberId:e,fiberRef:c.fiberRef,value:c.fiberRef.patch(c.patch)(d)}),s=f;break}case H1:{s=Yc(c.first)(Yc(c.second)(f));break}}}return i}),G1="effect/MetricLabel",Id=Symbol.for(G1);var sK;class WD{constructor(e,n){_(this,"key");_(this,"value");_(this,sK,Id);_(this,"_hash");this.key=e,this.value=n,this._hash=fe(G1+this.key+this.value)}[(sK=Id,rt)](){return this._hash}[nt](e){return HD(e)&&this.key===e.key&&this.value===e.value}pipe(){return X(this,arguments)}}const KD=(t,e)=>new WD(t,e),HD=t=>at(t,Id),GD=t=>{let e,n;return typeof t=="function"?e=t:(e=t.try,n=t.catch),z(()=>{try{return e()}catch(i){throw cL(ta(n?n(i):new $1(i)))}})},qy=Ab,YD="Sequential",zD="Parallel",JD="ParallelN",Y1={_tag:YD},XD={_tag:zD},QD=t=>({_tag:JD,parallelism:t}),xd=Y1,Fd=XD,$d=QD,ZD=jD,VD=qD,Ka="effect/FiberStatus",vi=Symbol.for(Ka),na="Done",Wy="Running",Ky="Suspended",tB=fe(`${Ka}-${na}`);var uK;class eB{constructor(){_(this,uK,vi);_(this,"_tag",na)}[(uK=vi,rt)](){return tB}[nt](e){return jh(e)&&e._tag===na}}var cK;class nB{constructor(e){_(this,"runtimeFlags");_(this,cK,vi);_(this,"_tag",Wy);this.runtimeFlags=e}[(cK=vi,rt)](){return P(K(Ka),_t(K(this._tag)),_t(K(this.runtimeFlags)),Wt(this))}[nt](e){return jh(e)&&e._tag===Wy&&this.runtimeFlags===e.runtimeFlags}}var aK;class rB{constructor(e,n){_(this,"runtimeFlags");_(this,"blockingOn");_(this,aK,vi);_(this,"_tag",Ky);this.runtimeFlags=e,this.blockingOn=n}[(aK=vi,rt)](){return P(K(Ka),_t(K(this._tag)),_t(K(this.runtimeFlags)),_t(K(this.blockingOn)),Wt(this))}[nt](e){return jh(e)&&e._tag===Ky&&this.runtimeFlags===e.runtimeFlags&&ct(this.blockingOn,e.blockingOn)}}const iB=new eB,oB=t=>new nB(t),sB=(t,e)=>new rB(t,e),jh=t=>at(t,vi),uB=t=>t._tag===na,cB=iB,z1=oB,aB=sB,fB=uB;class J1{constructor(){_(this,"buckets",[])}scheduleTask(e,n){let i,s;for(s=0;s=this.maxNextTickBeforeTimer?setTimeout(()=>this.starveInternal(0),0):Promise.resolve(void 0).then(()=>this.starveInternal(e+1))}shouldYield(e){return e.currentOpCount>e.getFiberRef(O1)?e.getFiberRef(qa):!1}scheduleTask(e,n){this.tasks.scheduleTask(e,n),this.running||(this.running=!0,this.starve())}}const X1=Rt(Symbol.for("effect/Scheduler/defaultScheduler"),()=>new lB(2048));class dB{constructor(){_(this,"tasks",new J1);_(this,"deferred",!1)}scheduleTask(e,n){this.deferred?X1.scheduleTask(e,n):this.tasks.scheduleTask(e,n)}shouldYield(e){return e.currentOpCount>e.getFiberRef(O1)?e.getFiberRef(qa):!1}flush(){for(;this.tasks.buckets.length>0;){const e=this.tasks.buckets;this.tasks.buckets=[];for(const[n,i]of e)for(let s=0;sVe(X1)),Q1=Rt(Symbol.for("effect/FiberRef/currentRequestMap"),()=>Ve(new Map)),Hy=(t,e,n,i)=>{switch(t){case void 0:return e();case"unbounded":return n();case"inherit":return b1(UL,s=>s==="unbounded"?n():s>1?i(s):e());default:return t>1?i(t):e()}},qh="InterruptSignal",Wh="Stateful",Kh="Resume",Hh="YieldNow",Bl=t=>({_tag:qh,cause:t}),Tc=t=>({_tag:Wh,onFiber:t}),so=t=>({_tag:Kh,effect:t}),hB=()=>({_tag:Hh}),mB="effect/FiberScope",ra=Symbol.for(mB);var fK;class pB{constructor(){_(this,fK,ra);_(this,"fiberId",$h);_(this,"roots",new Set)}add(e,n){this.roots.add(n),n.addObserver(()=>{this.roots.delete(n)})}}fK=ra;var lK;class gB{constructor(e,n){_(this,"fiberId");_(this,"parent");_(this,lK,ra);this.fiberId=e,this.parent=n}add(e,n){this.parent.tell(Tc(i=>{i.addChild(n),n.addObserver(()=>{i.removeChild(n)})}))}}lK=ra;const yB=t=>new gB(t.id(),t),Gh=Rt(Symbol.for("effect/FiberScope/Global"),()=>new pB),_B="effect/Fiber",bB=Symbol.for(_B),wB={_E:t=>t,_A:t=>t},SB="effect/Fiber",OB=Symbol.for(SB),IB=t=>t.await,xB=t=>p1(c1(t.await),t.inheritAll),pi="effect/FiberCurrent",FB="effect/Logger",$B=Symbol.for(FB),PB={_Message:t=>t,_Output:t=>t},Yh=t=>({[$B]:PB,log:t,pipe(){return X(this,arguments)}}),MB=Yh(({annotations:t,cause:e,date:n,fiberId:i,logLevel:s,message:c,spans:f})=>{const d=n.getTime();let y=[`timestamp=${n.toISOString()}`,`level=${s.label}`,`fiber=${$0(i)}`].join(" ");const M=Md(c);if(M.length>0&&(y=y+" message=",y=jl(M,y)),e!=null&&e._tag!=="Empty"&&(y=y+" cause=",y=jl(Ca(e),y)),k0(f)){y=y+" ";let A=!0;for(const N of f)A?A=!1:y=y+" ",y=y+P(N,DD(d))}if(P(t,s2)>0){y=y+" ";let A=!0;for(const[N,C]of t)A?A=!1:y=y+" ",y=y+AB(N),y=y+"=",y=jl(Md(C),y)}return y}),Md=t=>{try{return typeof t=="object"?JSON.stringify(t):String(t)}catch{return String(t)}},RB=t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`,EB=/^[^\s"=]+$/,jl=(t,e)=>e+(t.match(EB)?t:RB(t)),AB=t=>t.replace(/[\s="]/g,"_"),Z1="effect/MetricBoundaries",Rd=Symbol.for(Z1);var dK;class vB{constructor(e){_(this,"values");_(this,dK,Rd);_(this,"_hash");this.values=e,this._hash=P(fe(Z1),_t(du(this.values)))}[(dK=Rd,rt)](){return this._hash}[nt](e){return NB(e)&&ct(this.values,e.values)}pipe(){return X(this,arguments)}}const NB=t=>at(t,Rd),CB=t=>{const e=P(t,Yb(Ir(Number.POSITIVE_INFINITY)),HC);return new vB(e)},kB=t=>P($C(t.count-1,e=>t.start*Math.pow(t.factor,e)),u0,CB),TB="effect/MetricKeyType",V1=Symbol.for(TB),tw="effect/MetricKeyType/Counter",Ed=Symbol.for(tw),LB="effect/MetricKeyType/Frequency",UB=Symbol.for(LB),DB="effect/MetricKeyType/Gauge",BB=Symbol.for(DB),ew="effect/MetricKeyType/Histogram",Ad=Symbol.for(ew),jB="effect/MetricKeyType/Summary",qB=Symbol.for(jB),nw={_In:t=>t,_Out:t=>t};var hK,mK;class WB{constructor(e,n){_(this,"incremental");_(this,"bigint");_(this,hK,nw);_(this,mK,Ed);_(this,"_hash");this.incremental=e,this.bigint=n,this._hash=fe(tw)}[(hK=V1,mK=Ed,rt)](){return this._hash}[nt](e){return rw(e)}pipe(){return X(this,arguments)}}var pK,gK;class KB{constructor(e){_(this,"boundaries");_(this,pK,nw);_(this,gK,Ad);_(this,"_hash");this.boundaries=e,this._hash=P(fe(ew),_t(K(this.boundaries)))}[(pK=V1,gK=Ad,rt)](){return this._hash}[nt](e){return iw(e)&&ct(this.boundaries,e.boundaries)}pipe(){return X(this,arguments)}}const HB=t=>new WB((t==null?void 0:t.incremental)??!1,(t==null?void 0:t.bigint)??!1),GB=t=>new KB(t),rw=t=>at(t,Ed),YB=t=>at(t,UB),zB=t=>at(t,BB),iw=t=>at(t,Ad),JB=t=>at(t,qB),XB="effect/MetricKey",ow=Symbol.for(XB),QB={_Type:t=>t},ZB=ph(ct);var yK;class zh{constructor(e,n,i,s=[]){_(this,"name");_(this,"keyType");_(this,"description");_(this,"tags");_(this,yK,QB);_(this,"_hash");this.name=e,this.keyType=n,this.description=i,this.tags=s,this._hash=P(fe(this.name+this.description),_t(K(this.keyType)),_t(du(this.tags)))}[(yK=ow,rt)](){return this._hash}[nt](e){return VB(e)&&this.name===e.name&&ct(this.keyType,e.keyType)&&ct(this.description,e.description)&&ZB(this.tags,e.tags)}pipe(){return X(this,arguments)}}const VB=t=>at(t,ow),t3=(t,e)=>new zh(t,HB(e),mh(e==null?void 0:e.description)),e3=(t,e,n)=>new zh(t,GB(e),mh(n)),n3=x(2,(t,e)=>e.length===0?t:new zh(t.name,t.keyType,t.description,Vl(t.tags,e))),r3="effect/MetricState",xu=Symbol.for(r3),sw="effect/MetricState/Counter",vd=Symbol.for(sw),uw="effect/MetricState/Frequency",Nd=Symbol.for(uw),cw="effect/MetricState/Gauge",Cd=Symbol.for(cw),aw="effect/MetricState/Histogram",kd=Symbol.for(aw),fw="effect/MetricState/Summary",Td=Symbol.for(fw),Fu={_A:t=>t};var _K,bK;class i3{constructor(e){_(this,"count");_(this,_K,Fu);_(this,bK,vd);this.count=e}[(_K=xu,bK=vd,rt)](){return P(K(sw),_t(K(this.count)),Wt(this))}[nt](e){return p3(e)&&this.count===e.count}pipe(){return X(this,arguments)}}const o3=ph(ct);var wK,SK;class s3{constructor(e){_(this,"occurrences");_(this,wK,Fu);_(this,SK,Nd);_(this,"_hash");this.occurrences=e}[(wK=xu,SK=Nd,rt)](){return P(fe(uw),_t(du(Yt(this.occurrences.entries()))),Wt(this))}[nt](e){return g3(e)&&o3(Yt(this.occurrences.entries()),Yt(e.occurrences.entries()))}pipe(){return X(this,arguments)}}var OK,IK;class u3{constructor(e){_(this,"value");_(this,OK,Fu);_(this,IK,Cd);this.value=e}[(OK=xu,IK=Cd,rt)](){return P(K(cw),_t(K(this.value)),Wt(this))}[nt](e){return y3(e)&&this.value===e.value}pipe(){return X(this,arguments)}}var xK,FK;class c3{constructor(e,n,i,s,c){_(this,"buckets");_(this,"count");_(this,"min");_(this,"max");_(this,"sum");_(this,xK,Fu);_(this,FK,kd);this.buckets=e,this.count=n,this.min=i,this.max=s,this.sum=c}[(xK=xu,FK=kd,rt)](){return P(K(aw),_t(K(this.buckets)),_t(K(this.count)),_t(K(this.min)),_t(K(this.max)),_t(K(this.sum)),Wt(this))}[nt](e){return _3(e)&&ct(this.buckets,e.buckets)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return X(this,arguments)}}var $K,PK;class a3{constructor(e,n,i,s,c,f){_(this,"error");_(this,"quantiles");_(this,"count");_(this,"min");_(this,"max");_(this,"sum");_(this,$K,Fu);_(this,PK,Td);this.error=e,this.quantiles=n,this.count=i,this.min=s,this.max=c,this.sum=f}[($K=xu,PK=Td,rt)](){return P(K(fw),_t(K(this.error)),_t(K(this.quantiles)),_t(K(this.count)),_t(K(this.min)),_t(K(this.max)),_t(K(this.sum)),Wt(this))}[nt](e){return b3(e)&&this.error===e.error&&ct(this.quantiles,e.quantiles)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return X(this,arguments)}}const f3=t=>new i3(t),l3=t=>new s3(t),d3=t=>new u3(t),h3=t=>new c3(t.buckets,t.count,t.min,t.max,t.sum),m3=t=>new a3(t.error,t.quantiles,t.count,t.min,t.max,t.sum),p3=t=>at(t,vd),g3=t=>at(t,Nd),y3=t=>at(t,Cd),_3=t=>at(t,kd),b3=t=>at(t,Td),w3="effect/MetricHook",S3=Symbol.for(w3),O3={_In:t=>t,_Out:t=>t},$u=t=>({[S3]:O3,pipe(){return X(this,arguments)},...t}),Gy=BigInt(0),I3=t=>{let e=t.keyType.bigint?Gy:0;const n=t.keyType.incremental?t.keyType.bigint?i=>i>=Gy:i=>i>=0:i=>!0;return $u({get:()=>f3(e),update:i=>{n(i)&&(e=e+i)}})},x3=t=>{const e=new Map;return $u({get:()=>l3(e),update:i=>{const s=e.get(i)??0;e.set(i,s+1)}})},F3=(t,e)=>{let n=e;return $u({get:()=>d3(n),update:i=>{n=i}})},$3=t=>{const e=t.keyType.boundaries.values,n=e.length,i=new Uint32Array(n+1),s=new Float32Array(n);let c=0,f=0,d=Number.MAX_VALUE,p=Number.MIN_VALUE;P(e,zc(Xs),zr((A,N)=>{s[N]=A}));const y=A=>{let N=0,C=n;for(;N!==C;){const B=Math.floor(N+(C-N)/2),mt=s[B];A<=mt?C=B:N=B,C===N+1&&(A<=s[N]?C=N:N=C)}i[N]=i[N]+1,c=c+1,f=f+A,Ap&&(p=A)},M=()=>{const A=Array(n);let N=0;for(let C=0;Ch3({buckets:M(),count:c,min:d,max:p,sum:f}),update:y})},P3=t=>{const{error:e,maxAge:n,maxSize:i,quantiles:s}=t.keyType,c=P(s,zc(Xs)),f=Array(i);let d=0,p=0,y=0,M=Number.MAX_VALUE,A=Number.MIN_VALUE;const N=B=>{const mt=[];let tt=0;for(;tt!==i-1;){const Ft=f[tt];if(Ft!=null){const[pt,ft]=Ft,Xt=_d(B-pt);yU(Xt,uU)&&Xt<=n&&mt.push(ft)}tt=tt+1}return M3(e,c,zc(mt,Xs))},C=(B,mt)=>{if(i>0){d=d+1;const tt=d%i;f[tt]=[mt,B]}p=p+1,y=y+B,BA&&(A=B)};return $u({get:()=>m3({error:e,quantiles:N(Date.now()),count:p,min:M,max:A,sum:y}),update:([B,mt])=>C(B,mt)})},M3=(t,e,n)=>{const i=n.length;if(!Xe(e))return So();const s=e[0],c=e.slice(1),f=Yy(t,i,Z(),0,s,n),d=$n(f);return c.forEach(p=>{d.push(Yy(t,i,f.value,f.consumed,p,f.rest))}),zr(d,p=>[p.quantile,p.value])},Yy=(t,e,n,i,s,c)=>{let f=t,d=e,p=n,y=i,M=s,A=c,N=t,C=e,B=n,mt=i,tt=s,Ft=c;for(;;){if(!Xe(A))return{quantile:M,value:Z(),consumed:y,rest:[]};if(M===1)return{quantile:M,value:bt(Xb(A)),consumed:y+A.length,rest:[]};const pt=kC(A,_e=>_e<=A[0]),ft=M*d,Xt=f/2*ft,Ht=y+pt[0].length,_n=Math.abs(Ht-ft);if(Htft+Xt)return{quantile:M,value:p,consumed:y,rest:A};switch(p._tag){case"None":{N=f,C=d,B=lo(A),mt=Ht,tt=M,Ft=pt[1],f=N,d=C,p=B,y=mt,M=tt,A=Ft;continue}case"Some":{const _e=Math.abs(ft-p.value);if(_n<_e){N=f,C=d,B=lo(A),mt=Ht,tt=M,Ft=pt[1],f=N,d=C,p=B,y=mt,M=tt,A=Ft;continue}return{quantile:M,value:bt(p.value),consumed:y,rest:A}}}}throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues")},R3="effect/MetricPair",E3=Symbol.for(R3),A3={_Type:t=>t},v3=(t,e)=>({[E3]:A3,metricKey:t,metricState:e,pipe(){return X(this,arguments)}}),N3="effect/MetricRegistry",zy=Symbol.for(N3);var MK;class C3{constructor(){_(this,MK,zy);_(this,"map",OU())}snapshot(){const e=[];for(const[n,i]of this.map)e.push(v3(n,i.get()));return e}get(e){const n=P(this.map,yi(e),gi);if(n==null){if(rw(e.keyType))return this.getCounter(e);if(zB(e.keyType))return this.getGauge(e);if(YB(e.keyType))return this.getFrequency(e);if(iw(e.keyType))return this.getHistogram(e);if(JB(e.keyType))return this.getSummary(e);throw new Error("BUG: MetricRegistry.get - unknown MetricKeyType - please report an issue at https://github.com/Effect-TS/effect/issues")}else return n}getCounter(e){let n=P(this.map,yi(e),gi);if(n==null){const i=I3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getFrequency(e){let n=P(this.map,yi(e),gi);if(n==null){const i=x3();P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getGauge(e){let n=P(this.map,yi(e),gi);if(n==null){const i=F3(e,e.keyType.bigint?BigInt(0):0);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getHistogram(e){let n=P(this.map,yi(e),gi);if(n==null){const i=$3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}getSummary(e){let n=P(this.map,yi(e),gi);if(n==null){const i=P3(e);P(this.map,Is(e))||P(this.map,xs(e,i)),n=i}return n}}MK=zy;const k3=()=>new C3,T3="effect/Metric",L3=Symbol.for(T3),U3={_Type:t=>t,_In:t=>t,_Out:t=>t},Jy=Rt(Symbol.for("effect/Metric/globalMetricRegistry"),()=>k3()),lw=function(t,e,n){return Object.assign(s=>kh(s,c=>z(()=>e(c,[]))),{[L3]:U3,keyType:t,unsafeUpdate:e,unsafeValue:n,register(){return this.unsafeValue([]),this},pipe(){return X(this,arguments)}})},Ha=(t,e)=>dw(t3(t,e)),dw=t=>{let e;const n=new WeakMap,i=s=>{if(s.length===0)return e!==void 0||(e=Jy.get(t)),e;let c=n.get(s);return c!==void 0||(c=Jy.get(n3(t,s)),n.set(s,c)),c};return lw(t.keyType,(s,c)=>i(c).update(s),s=>i(s).get())},D3=(t,e,n)=>dw(e3(t,e,n)),B3=x(3,(t,e,n)=>j3(t,[KD(e,n)])),j3=x(2,(t,e)=>lw(t.keyType,(n,i)=>t.unsafeUpdate(n,Vl(e,i)),n=>t.unsafeValue(Vl(e,n)))),q3="effect/Request",W3=Symbol.for(q3),K3={_E:t=>t,_A:t=>t};({...hh,[W3]:0});const H3=x(2,(t,e)=>b1(Q1,n=>z(()=>{if(n.has(t)){const i=n.get(t);i.state.completed||(i.state.completed=!0,P1(i.result,e))}}))),G3="effect/Supervisor",Ga=Symbol.for(G3),Jh={_T:t=>t};var RK;const om=class om{constructor(e,n){_(this,"underlying");_(this,"value0");_(this,RK,Jh);this.underlying=e,this.value0=n}get value(){return this.value0}onStart(e,n,i,s){this.underlying.onStart(e,n,i,s)}onEnd(e,n){this.underlying.onEnd(e,n)}onEffect(e,n){this.underlying.onEffect(e,n)}onSuspend(e){this.underlying.onSuspend(e)}onResume(e){this.underlying.onResume(e)}map(e){return new om(this,P(this.value,de(e)))}zip(e){return new oa(this,e)}};RK=Ga;let ia=om;var EK;const sm=class sm{constructor(e,n){_(this,"left");_(this,"right");_(this,"_tag","Zip");_(this,EK,Jh);this.left=e,this.right=n}get value(){return m1(this.left.value,this.right.value)}onStart(e,n,i,s){this.left.onStart(e,n,i,s),this.right.onStart(e,n,i,s)}onEnd(e,n){this.left.onEnd(e,n),this.right.onEnd(e,n)}onEffect(e,n){this.left.onEffect(e,n),this.right.onEffect(e,n)}onSuspend(e){this.left.onSuspend(e),this.right.onSuspend(e)}onResume(e){this.left.onResume(e),this.right.onResume(e)}map(e){return new ia(this,P(this.value,de(e)))}zip(e){return new sm(this,e)}};EK=Ga;let oa=sm;const hw=t=>at(t,Ga)&&xb(t,"Zip");var AK;class Y3{constructor(e){_(this,"effect");_(this,AK,Jh);this.effect=e}get value(){return this.effect}onStart(e,n,i,s){}onEnd(e,n){}onEffect(e,n){}onSuspend(e){}onResume(e){}map(e){return new ia(this,P(this.value,de(e)))}zip(e){return new oa(this,e)}onRun(e,n){return e()}}AK=Ga;const z3=t=>new Y3(t),Ya=Rt("effect/Supervisor/none",()=>z3(Fr)),J3=Ko,mw="Empty",pw="AddSupervisor",gw="RemoveSupervisor",yw="AndThen",ks={_tag:mw},Lc=(t,e)=>({_tag:yw,first:t,second:e}),X3=(t,e)=>Q3(e,Ir(t)),Q3=(t,e)=>{let n=t,i=e;for(;xo(i);){const s=Fo(i);switch(s._tag){case mw:{i=bi(i);break}case pw:{n=n.zip(s.supervisor),i=bi(i);break}case gw:{n=Ld(n,s.supervisor),i=bi(i);break}case yw:{i=Tn(s.first)(Tn(s.second)(bi(i)));break}}}return n},Ld=(t,e)=>ct(t,e)?Ya:hw(t)?Ld(t.left,e).zip(Ld(t.right,e)):t,sa=t=>ct(t,Ya)?Ri():hw(t)?P(sa(t.left),Ks(sa(t.right))):xh(t),Z3=(t,e)=>{if(ct(t,e))return ks;const n=sa(t),i=sa(e),s=P(i,ry(n),Qc(ks,(f,d)=>Lc(f,{_tag:pw,supervisor:d}))),c=P(n,ry(i),Qc(ks,(f,d)=>Lc(f,{_tag:gw,supervisor:d})));return Lc(s,c)},V3=J3({empty:ks,patch:X3,combine:Lc,diff:Z3}),tj=Ha("effect_fiber_started"),Xy=Ha("effect_fiber_active"),ej=Ha("effect_fiber_successes"),nj=Ha("effect_fiber_failures"),rj=B3(D3("effect_fiber_lifetimes",kB({start:.5,factor:2,count:35})),"time_unit","milliseconds"),Fs="Continue",ij="Done",Qy="Yield",oj={_E:t=>t,_A:t=>t},$s=t=>{throw new Error(`BUG: FiberRuntime - ${JSON.stringify(t)} - please report an issue at https://github.com/Effect-TS/effect/issues`)},Br=Symbol.for("effect/internal/fiberRuntime/YieldedOp"),gr=Rt("effect/internal/fiberRuntime/yieldedOpChannel",()=>({currentOp:null})),Pc={[Kc]:(t,e,n)=>e.i1(n),OnStep:(t,e,n)=>Re(Re(n)),[Hc]:(t,e,n)=>e.i2(n),[dh]:(t,e,n)=>(t.patchRuntimeFlags(t._runtimeFlags,e.patch),qr(t._runtimeFlags)&&t.isInterrupted()?kt(t.getInterruptedCause()):Re(n)),[Gc]:(t,e,n)=>(e.i2(n),e.i0()?(t.pushStack(e),e.i1()):Fr)},sj={[qh]:(t,e,n,i)=>(t.processNewInterruptSignal(i.cause),qr(e)?kt(i.cause):n),[Kh]:(t,e,n,i)=>{throw new Error("It is illegal to have multiple concurrent run loops in a single fiber")},[Wh]:(t,e,n,i)=>(i.onFiber(t,z1(e)),n),[Hh]:(t,e,n,i)=>G(Lh(),()=>n)},uj=t=>La(IT(t),e=>xi(TT(e),([n,i])=>{const s=new Map;for(const c of i)for(const f of c)s.set(f.request,f);return ja(Oj(n.runAll(i),i.flat()),Q1,s)},!1,!1));var vK,NK;class _w{constructor(e,n,i){_(this,vK,wB);_(this,NK,oj);_(this,"_fiberRefs");_(this,"_fiberId");_(this,"_runtimeFlags");_(this,"_queue",new Array);_(this,"_children",null);_(this,"_observers",new Array);_(this,"_running",!1);_(this,"_stack",[]);_(this,"_asyncInterruptor",null);_(this,"_asyncBlockingOn",null);_(this,"_exitValue",null);_(this,"_steps",[]);_(this,"_supervisor");_(this,"_scheduler");_(this,"_tracer");_(this,"currentOpCount",0);_(this,"isYielding",!1);_(this,"run",()=>{this.drainQueueOnCurrentThread()});if(this._runtimeFlags=i,this._fiberId=e,this._fiberRefs=n,this._supervisor=this.getFiberRef(r_),this._scheduler=this.getFiberRef(Pd),ay(i)){const s=this.getFiberRef(Iy);tj.unsafeUpdate(1,s),Xy.unsafeUpdate(1,s)}this._tracer=As(this.getFiberRef(Cs),dd)}pipe(){return X(this,arguments)}id(){return this._fiberId}resume(e){this.tell(so(e))}get status(){return this.ask((e,n)=>n)}get runtimeFlags(){return this.ask((e,n)=>fB(n)?e._runtimeFlags:n.runtimeFlags)}scope(){return yB(this)}get children(){return this.ask(e=>Array.from(e.getChildren()))}getChildren(){return this._children===null&&(this._children=new Set),this._children}getInterruptedCause(){return this.getFiberRef($c)}fiberRefs(){return this.ask(e=>e.getFiberRefs())}ask(e){return re(()=>{const n=XL(this._fiberId);return this.tell(Tc((i,s)=>{P1(n,z(()=>e(i,s)))})),QL(n)})}tell(e){this._queue.push(e),this._running||(this._running=!0,this.drainQueueLaterOnExecutor())}get await(){return zo(e=>{const n=i=>e(At(i));return this.tell(Tc((i,s)=>{i._exitValue!==null?n(this._exitValue):i.addObserver(n)})),z(()=>this.tell(Tc((i,s)=>{i.removeObserver(n)})))},this.id())}get inheritAll(){return Zn((e,n)=>{const i=e.id(),s=e.getFiberRefs(),c=n.runtimeFlags,f=this.getFiberRefs(),d=SD(s,i,f);e.setFiberRefs(d);const p=e.getFiberRef(n_),y=P(Cc(c,p),ly(Ho),ly(fd));return wL(y)})}get poll(){return z(()=>mh(this._exitValue))}unsafePoll(){return this._exitValue}interruptAsFork(e){return z(()=>this.tell(Bl(wi(e))))}unsafeInterruptAsFork(e){this.tell(Bl(wi(e)))}addObserver(e){this._exitValue!==null?e(this._exitValue):this._observers.push(e)}removeObserver(e){this._observers=this._observers.filter(n=>n!==e)}getFiberRefs(){return this.setFiberRef(n_,this._runtimeFlags),this._fiberRefs}unsafeDeleteFiberRef(e){this._fiberRefs=B1(this._fiberRefs,e)}getFiberRef(e){return this._fiberRefs.locals.has(e)?this._fiberRefs.locals.get(e)[0][1]:e.initial}setFiberRef(e,n){this._fiberRefs=Sd(this._fiberRefs,{fiberId:this._fiberId,fiberRef:e,value:n}),this.refreshRefCache()}refreshRefCache(){this._tracer=As(this.getFiberRef(Cs),dd),this._supervisor=this.getFiberRef(r_),this._scheduler=this.getFiberRef(Pd)}setFiberRefs(e){this._fiberRefs=e,this.refreshRefCache()}addChild(e){this.getChildren().add(e)}removeChild(e){this.getChildren().delete(e)}drainQueueOnCurrentThread(){let e=!0;for(;e;){let n=Fs;const i=globalThis[pi];globalThis[pi]=this;try{for(;n===Fs;)n=this._queue.length===0?ij:this.evaluateMessageWhileSuspended(this._queue.splice(0,1)[0])}finally{this._running=!1,globalThis[pi]=i}this._queue.length>0&&!this._running?(this._running=!0,n===Qy?(this.drainQueueLaterOnExecutor(),e=!1):e=!0):e=!1}}drainQueueLaterOnExecutor(){this._scheduler.scheduleTask(this.run,this.getFiberRef(qa))}drainQueueWhileRunning(e,n){let i=n;for(;this._queue.length>0;){const s=this._queue.splice(0,1)[0];i=sj[s._tag](this,e,i,s)}return i}isInterrupted(){return!DT(this.getFiberRef($c))}addInterruptedCause(e){const n=this.getFiberRef($c);this.setFiberRef($c,En(n,e))}processNewInterruptSignal(e){this.addInterruptedCause(e),this.sendInterruptSignalToAllChildren()}sendInterruptSignalToAllChildren(){if(this._children===null||this._children.size===0)return!1;let e=!1;for(const n of this._children)n.tell(Bl(wi(this.id()))),e=!0;return e}interruptAllChildren(){if(this.sendInterruptSignalToAllChildren()){const e=this._children.values();this._children=null;let n=!1;return Th({while:()=>!n,body:()=>{const s=e.next();return s.done?z(()=>{n=!0}):Ou(s.value.await)},step:()=>{}})}return null}reportExitValue(e){if(ay(this._runtimeFlags)){const n=this.getFiberRef(Iy),i=this.id().startTimeMillis,s=Date.now();switch(rj.unsafeUpdate(s-i,n),Xy.unsafeUpdate(-1,n),e._tag){case vn:{ej.unsafeUpdate(1,n);break}case An:{nj.unsafeUpdate(1,n);break}}}if(e._tag==="Failure"){const n=this.getFiberRef(BL);!Eh(e.cause)&&n._tag==="Some"&&this.log("Fiber terminated with a non handled error",e.cause,n)}}setExitValue(e){this._exitValue=e,this.reportExitValue(e);for(let n=this._observers.length-1;n>=0;n--)this._observers[n](e)}getLoggers(){return this.getFiberRef(dj)}log(e,n,i){const s=Qn(i)?i.value:this.getFiberRef(kL),c=this.getFiberRef(cj);if(TD(c,s))return;const f=this.getFiberRef(TL),d=this.getFiberRef(CL),p=this.getLoggers(),y=this.getFiberRefs();if(O0(p)>0){const M=As(this.getFiberRef(Cs),Dh),A=new Date(M.unsafeCurrentTimeMillis());for(const N of p)N.log({fiberId:this.id(),logLevel:s,message:e,cause:n,context:y,spans:f,annotations:d,date:A})}}evaluateMessageWhileSuspended(e){switch(e._tag){case Hh:return Qy;case qh:return this.processNewInterruptSignal(e.cause),this._asyncInterruptor!==null&&(this._asyncInterruptor(kt(e.cause)),this._asyncInterruptor=null),Fs;case Kh:return this._asyncInterruptor=null,this._asyncBlockingOn=null,this.evaluateEffect(e.effect),Fs;case Wh:return e.onFiber(this,this._exitValue!==null?cB:aB(this._runtimeFlags,this._asyncBlockingOn)),Fs;default:return $s(e)}}evaluateEffect(e){this._supervisor.onResume(this);try{let n=qr(this._runtimeFlags)&&this.isInterrupted()?kt(this.getInterruptedCause()):e;for(;n!==null;){const i=n,s=this.runLoop(i);if(s===Br){const c=gr.currentOp;gr.currentOp=null,c._op===Ac?_T(this._runtimeFlags)?(this.tell(hB()),this.tell(so(Si)),n=null):n=Si:c._op===Ec&&(n=null)}else{this._runtimeFlags=P(this._runtimeFlags,bT(fd));const c=this.interruptAllChildren();c!==null?n=G(c,()=>s):(this._queue.length===0?this.setExitValue(s):this.tell(so(s)),n=null)}}}finally{this._supervisor.onSuspend(this)}}start(e){if(this._running)this.tell(so(e));else{this._running=!0;const n=globalThis[pi];globalThis[pi]=this;try{this.evaluateEffect(e)}finally{this._running=!1,globalThis[pi]=n,this._queue.length>0&&this.drainQueueLaterOnExecutor()}}}startFork(e){this.tell(so(e))}patchRuntimeFlags(e,n){const i=kc(e,n);return globalThis[pi]=this,this._runtimeFlags=i,i}initiateAsync(e,n){let i=!1;const s=c=>{i||(i=!0,this.tell(so(c)))};qr(e)&&(this._asyncInterruptor=s);try{n(s)}catch(c){s(xr(Kr(c)))}}pushStack(e){this._stack.push(e),e._op==="OnStep"&&this._steps.push({refs:this.getFiberRefs(),flags:this._runtimeFlags})}popStack(){const e=this._stack.pop();if(e)return e._op==="OnStep"&&this._steps.pop(),e}getNextSuccessCont(){let e=this.popStack();for(;e;){if(e._op!==Al)return e;e=this.popStack()}}getNextFailCont(){let e=this.popStack();for(;e;){if(e._op!==Kc&&e._op!==Gc)return e;e=this.popStack()}}[(vK=bB,NK=OB,XN)](e){return de(Ba(ji),n=>uk(n,e))}Left(e){return Ie(e.left)}None(e){return Ie(new F1)}Right(e){return Re(e.right)}Some(e){return Re(e.value)}[Rb](e){const n=e.i0(),i=this.getNextSuccessCont();return i!==void 0?(i._op in Pc||$s(i),Pc[i._op](this,i,n)):(gr.currentOp=Re(n),Br)}[vn](e){const n=e,i=this.getNextSuccessCont();return i!==void 0?(i._op in Pc||$s(i),Pc[i._op](this,i,n.i0)):(gr.currentOp=n,Br)}[An](e){const n=e.i0,i=this.getNextFailCont();if(i!==void 0)switch(i._op){case Al:case Hc:return qr(this._runtimeFlags)&&this.isInterrupted()?kt(dy(n)):i.i1(n);case"OnStep":return qr(this._runtimeFlags)&&this.isInterrupted()?kt(dy(n)):Re(kt(n));case dh:return this.patchRuntimeFlags(this._runtimeFlags,i.patch),qr(this._runtimeFlags)&&this.isInterrupted()?kt(En(n,this.getInterruptedCause())):kt(n);default:$s(i)}else return gr.currentOp=kt(n),Br}[Eb](e){return e.i0(this,z1(this._runtimeFlags))}Blocked(e){const n=this.getFiberRefs(),i=this._runtimeFlags;if(this._steps.length>0){const s=[],c=this._steps[this._steps.length-1];let f=this.popStack();for(;f&&f._op!=="OnStep";)s.push(f),f=this.popStack();this.setFiberRefs(c.refs),this._runtimeFlags=c.flags;const d=ZD(c.refs,n),p=Cc(c.flags,i);return Re(n1(e.i0,Zn(y=>{for(;s.length>0;)y.pushStack(s.pop());return y.setFiberRefs(VD(y.id(),y.getFiberRefs())(d)),y._runtimeFlags=kc(p)(y._runtimeFlags),e.i1})))}return Ua(s=>G(bw(aL(e.i0)),()=>s(e.i1)))}RunBlocked(e){return uj(e.i0)}[hu](e){const n=e.i0,i=this._runtimeFlags,s=kc(i,n);if(qr(s)&&this.isInterrupted())return kt(this.getInterruptedCause());if(this.patchRuntimeFlags(this._runtimeFlags,n),e.i1){const c=Cc(s,i);return this.pushStack(new fL(c,e)),e.i1(i)}else return Si}[Kc](e){return this.pushStack(e),e.i0}OnStep(e){return this.pushStack(e),e.i0}[Al](e){return this.pushStack(e),e.i0}[Hc](e){return this.pushStack(e),e.i0}[Ec](e){return this._asyncBlockingOn=e.i1,this.initiateAsync(this._runtimeFlags,e.i0),gr.currentOp=e,Br}[Ac](e){return this.isYielding=!1,gr.currentOp=e,Br}[Gc](e){const n=e.i0,i=e.i1;return n()?(this.pushStack(e),i()):Si}[Mb](e){return e.commit()}runLoop(e){let n=e;for(this.currentOpCount=0;;){if(this._runtimeFlags&yT&&this._supervisor.onEffect(this,n),this._queue.length>0&&(n=this.drainQueueWhileRunning(this._runtimeFlags,n)),!this.isYielding){this.currentOpCount+=1;const i=this._scheduler.shouldYield(this);if(i!==!1){this.isYielding=!0,this.currentOpCount=0;const s=n;n=G(Lh({priority:i}),()=>s)}}try{if((!("_op"in n)||!(n._op in this))&&$s(n),n=this._tracer.context(()=>qc()!==n[qy]._V?mL(`Cannot execute an Effect versioned ${n[qy]._V} with a Runtime of version ${qc()}`):this[n._op](n),this),n===Br){const i=gr.currentOp;return i._op===Ac||i._op===Ec?Br:(gr.currentOp=null,i._op===vn||i._op===An?i:kt(Kr(i)))}}catch(i){uL(i)?n=kt(i.cause):HL(i)?n=kt(En(Kr(i),wi($h))):n=kt(Kr(i))}}}}const cj=Rt("effect/FiberRef/currentMinimumLogLevel",()=>Ve(LD("Info"))),aj=t=>{const e=xD(t,Cs);return As(e,U1).unsafe},fj=Rt(Symbol.for("effect/Logger/defaultLogger"),()=>Yh(t=>{const e=MB.log(t);aj(t.context).log(e)})),lj=Rt(Symbol.for("effect/Logger/tracerLogger"),()=>Yh(({annotations:t,cause:e,context:n,fiberId:i,logLevel:s,message:c})=>{const f=Hb(wd(n,ji),mu(e1)),d=gC(wd(n,Cs),y=>As(y,Dh));if(f._tag==="None"||f.value._tag==="ExternalSpan"||d._tag==="None")return;const p=Object.fromEntries(A0(t,y=>Md(y)));p["effect.fiberId"]=n2(i),p["effect.logLevel"]=s.label,e!==null&&e._tag!=="Empty"&&(p["effect.cause"]=Ca(e)),f.value.event(String(c),d.value.unsafeCurrentTimeNanos(),p)})),dj=Rt(Symbol.for("effect/FiberRef/currentLoggers"),()=>AL(xh(fj,lj))),hj=t=>{if(Array.isArray(t)||Fb(t))return[t,Z()];const e=Object.keys(t),n=e.length;return[e.map(i=>t[i]),bt(i=>{const s={};for(let c=0;c{const i=[];for(const s of t)i.push(Js(s));return G(Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching}),s=>{const c=Z(),f=s.length,d=new Array(f),p=new Array(f);let y=!1;for(let M=0;M{const i=[];for(const s of t)i.push(Js(s));return n!=null&&n.discard?Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching,discard:!0}):de(Qs(i,ie,{concurrency:n==null?void 0:n.concurrency,batching:n==null?void 0:n.batching}),s=>e._tag==="Some"?e.value(s):s)},gj=(t,e)=>{const[n,i]=hj(t);return(e==null?void 0:e.mode)==="validate"?mj(n,i,e):(e==null?void 0:e.mode)==="either"?pj(n,i,e):i._tag==="Some"?de(Qs(n,ie,e),i.value):Qs(n,ie,e)},Qs=x(t=>Fb(t[0]),(t,e,n)=>Zn(i=>{const s=(n==null?void 0:n.batching)===!0||(n==null?void 0:n.batching)==="inherit"&&i.getFiberRef(DL);return n!=null&&n.discard?Hy(n.concurrency,()=>uo(xd)(c=>s?xi(t,(f,d)=>c(e(f,d)),!0,!1,1):La(t,(f,d)=>c(e(f,d)))),()=>uo(Fd)(c=>xi(t,(f,d)=>c(e(f,d)),s,!1)),c=>uo($d(c))(f=>xi(t,(d,p)=>f(e(d,p)),s,!1,c))):Hy(n==null?void 0:n.concurrency,()=>uo(xd)(c=>s?Zy(t,1,(f,d)=>c(e(f,d)),!0):Hr(t,(f,d)=>c(e(f,d)))),()=>uo(Fd)(c=>yj(t,(f,d)=>c(e(f,d)),s)),c=>uo($d(c))(f=>Zy(t,c,(d,p)=>f(e(d,p)),s)))})),yj=(t,e,n)=>re(()=>{const i=Yt(t),s=new Array(i.length);return Da(xi(i,(f,d)=>G(e(f,d),p=>z(()=>s[d]=p)),n,!1),At(s))}),xi=(t,e,n,i,s)=>Ua(c=>bL(f=>Zn(d=>{let p=Array.from(t).reverse(),y=p.length;if(y===0)return Fr;let M=0,A=!1;const N=s?Math.min(p.length,s):p.length,C=new Set,B=new Array,mt=()=>C.forEach(Qt=>{Qt._scheduler.scheduleTask(()=>{Qt.unsafeInterruptAsFork(d.id())},0)}),tt=new Array,Ft=new Array,pt=new Array,ft=()=>{const Qt=B.filter(({exit:be})=>be._tag==="Failure").sort((be,Bn)=>be.indexbe);return Qt.length===0&&Qt.push(Si),Qt},Xt=Qt=>{const be=h1(f(Qt)),Bn=bj(be,d,d._runtimeFlags,Gh);return d._scheduler.scheduleTask(()=>{Bn.resume(be)},0),Bn},Ht=()=>{i||(y-=p.length,p=[]),A=!0,mt()},_n=n?yL:o1,_e=Xt(zo(Qt=>{const be=(bn,ir)=>{bn._op==="Blocked"?pt.push(bn):(B.push({index:ir,exit:bn}),bn._op==="Failure"&&!A&&Ht())},Bn=()=>{if(p.length>0){const bn=p.pop();let ir=M++;const ef=()=>{const we=p.pop();return ir=M++,G(Lh(),()=>G(_n(c(e(we,ir))),Qo))},Qo=we=>p.length>0&&(be(we,ir),p.length>0)?ef():At(we),nf=G(_n(c(e(bn,ir))),Qo),or=Xt(nf);tt.push(or),C.add(or),A&&or._scheduler.scheduleTask(()=>{or.unsafeInterruptAsFork(d.id())},0),or.addObserver(we=>{let tn;if(we._op==="Failure"?tn=we:tn=we.i0,Ft.push(or),C.delete(or),be(tn,ir),B.length===y)Qt(At($i(Py(ft(),{parallel:!0}),()=>Si)));else if(pt.length+B.length===y){const rf=pt.map(jn=>jn.i0).reduce(G0);Qt(At(n1(rf,xi([$i(Py(ft(),{parallel:!0}),()=>Si),...pt.map(jn=>jn.i1)],jn=>jn,n,!0,s))))}else Bn()})}};for(let bn=0;bn(Ht(),IB(_e)))),()=>Hr(Ft,Qt=>Qt.inheritAll)))}))),Zy=(t,e,n,i)=>re(()=>{const s=Yt(t),c=new Array(s.length);return Da(xi(s,(d,p)=>de(n(d,p),y=>c[p]=y),i,!1,e),At(c))}),bw=t=>wj(t,Gh),_j=(t,e,n,i=null)=>{const s=ww(t,e,n,i);return s.resume(t),s},bj=(t,e,n,i=null)=>ww(t,e,n,i),ww=(t,e,n,i=null)=>{const s=P0(),c=e.getFiberRefs(),f=OD(c,s),d=new _w(s,f,n),p=Bh(f,ji),y=d._supervisor;return y.onStart(p,t,bt(e),d),d.addObserver(A=>y.onEnd(A,d)),(i!==null?i:P(e.getFiberRef(pd),$i(()=>e.scope()))).add(n,d),d},wj=(t,e)=>Zn((n,i)=>At(_j(t,n,i.runtimeFlags,e))),Vy=t=>Iu(e=>Di(mu(e,Pu),{onNone:()=>t,onSome:n=>{switch(n.strategy._tag){case"Parallel":return t;case"Sequential":case"ParallelN":return G(Wa(n,Fd),i=>Xh(t,i))}}})),t_=t=>e=>Iu(n=>Di(mu(n,Pu),{onNone:()=>e,onSome:i=>i.strategy._tag==="ParallelN"&&i.strategy.parallelism===t?e:G(Wa(i,$d(t)),s=>Xh(e,s))})),uo=t=>e=>Iu(n=>Di(mu(n,Pu),{onNone:()=>e(ie),onSome:i=>{const s=t._tag==="Parallel"?Vy:t._tag==="Sequential"?e_:t_(t.parallelism);switch(i.strategy._tag){case"Parallel":return s(e(Vy));case"Sequential":return s(e(e_));case"ParallelN":return s(e(t_(i.strategy.parallelism)))}}})),e_=t=>Iu(e=>Di(mu(e,Pu),{onNone:()=>t,onSome:n=>{switch(n.strategy._tag){case"Sequential":return t;case"Parallel":case"ParallelN":return G(Wa(n,xd),i=>Xh(t,i))}}})),Pu=Bi("effect/Scope"),Xh=x(2,(t,e)=>nU(t,ck(sk(Pu,e)))),Sj=t=>Jo(t,{differ:V3,fork:ks}),n_=NL(wT),r_=Sj(Ya),Oj=(t,e)=>u1(n=>G(G(bw(a1(t)),i=>zo(s=>{const c=e.map(p=>p.listeners.count),f=()=>{c.every(p=>p===0)&&(d.forEach(p=>p()),s(SL(i)))};i.addObserver(p=>{d.forEach(y=>y()),s(p)});const d=e.map((p,y)=>{const M=A=>{c[y]=A,f()};return p.listeners.addObserver(M),()=>p.listeners.removeObserver(M)});return f(),z(()=>{d.forEach(p=>p())})})),()=>re(()=>{const i=e.flatMap(s=>s.state.completed?[]:[s]);return La(i,s=>H3(s.request,GL(n)))}))),Ij=qL,xj=Wa,i_=(t,e)=>n=>n.replace(t,e),Fj=t=>(e,n)=>{const i=P0(),s=[[ji,[[i,t.context]]]];n!=null&&n.scheduler&&s.push([Pd,[[i,n.scheduler]]]);let c=FD(t.fiberRefs,{entries:s,forkAs:i});n!=null&&n.updateRefs&&(c=n.updateRefs(c,i));const f=new _w(i,c,t.runtimeFlags);let d=e;n!=null&&n.scope&&(d=G(xj(n.scope,Y1),y=>Da(jL(y,u1(M=>ct(M,f.id())?Fr:g1(f,M))),l1(e,M=>Ij(y,M)))));const p=f._supervisor;return p!==Ya&&(p.onStart(t.context,d,Z(),f),f.addObserver(y=>p.onEnd(y,f))),Gh.add(t.runtimeFlags,f),(n==null?void 0:n.immediate)===!1?f.resume(d):f.start(d),f},$j=t=>e=>{const n=Aj(t)(e);if(n._tag==="Failure")throw Rj(n.i0);return n.i0},Pj=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const n=new Error;Error.stackTraceLimit=e;const i=`Fiber #${t.id().id} cannot be be resolved synchronously, this is caused by using runSync on an effect that performs async work`,s="AsyncFiberException";return Object.defineProperties(n,{_tag:{value:s},fiber:{value:t},message:{value:i},name:{value:s},toString:{get(){return()=>i}},[Kt]:{get(){return()=>i}}}),n},o_=Symbol.for("effect/Runtime/FiberFailure"),Mj=Symbol.for("effect/Runtime/FiberFailure/Cause"),Rj=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const n=new Error;Error.stackTraceLimit=e;const i=V0(t);if(i.length>0){const s=i[0];n.name=s.message.split(":")[0],n.message=s.message.substring(n.name.length+2),n.stack=Ca(t)}return n[o_]=o_,n[Mj]=t,n.toJSON=()=>({_id:"FiberFailure",cause:t.toJSON()}),n.toString=()=>ye(n.toJSON()),n[Kt]=()=>n.toJSON(),n},Ej=t=>{const e=t;switch(e._op){case"Failure":case"Success":return e;case"Left":return My(e.left);case"Right":return Re(e.right);case"Some":return Re(e.value);case"None":return My(F1())}},Aj=t=>e=>{const n=Ej(e);if(n)return n;const i=new dB,s=Fj(t)(e,{scheduler:i});i.flush();const c=s.unsafePoll();if(c)return c;throw Pj(s)};class vj{constructor(e,n,i){_(this,"context");_(this,"runtimeFlags");_(this,"fiberRefs");this.context=e,this.runtimeFlags=n,this.fiberRefs=i}pipe(){return X(this,arguments)}}const Nj=t=>new vj(t.context,t.runtimeFlags,t.fiberRefs),Cj=K0(Ho,q0,j0),kj=Nj({context:gh(),runtimeFlags:Cj,fiberRefs:$D()}),Tj=$j(kj),Ud=gj,Sw=Ie,Ow=At,Lj=z,Iw=GD,Mu=de,Qh=G,Uj=kh,za=Tj,Dj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bj=(t,e,n)=>{let i;const s=Dj[t];return typeof s=="string"?i=s:e===1?i=s.one:i=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function ql(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const jj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kj={date:ql({formats:jj,defaultWidth:"full"}),time:ql({formats:qj,defaultWidth:"full"}),dateTime:ql({formats:Wj,defaultWidth:"full"})},Hj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gj=(t,e,n,i)=>Hj[t];function Ps(t){return(e,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,d=n!=null&&n.width?String(n.width):f;s=t.formattingValues[d]||t.formattingValues[f]}else{const f=t.defaultWidth,d=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[d]||t.values[f]}const c=t.argumentCallback?t.argumentCallback(e):e;return s[c]}}const Yj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Xj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Zj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vj=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},tq={ordinalNumber:Vj,era:Ps({values:Yj,defaultWidth:"wide"}),quarter:Ps({values:zj,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ps({values:Jj,defaultWidth:"wide"}),day:Ps({values:Xj,defaultWidth:"wide"}),dayPeriod:Ps({values:Qj,defaultWidth:"wide",formattingValues:Zj,defaultFormattingWidth:"wide"})};function Ms(t){return(e,n={})=>{const i=n.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],c=e.match(s);if(!c)return null;const f=c[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(d)?nq(d,A=>A.test(f)):eq(d,A=>A.test(f));let y;y=t.valueCallback?t.valueCallback(p):p,y=n.valueCallback?n.valueCallback(y):y;const M=e.slice(f.length);return{value:y,rest:M}}}function eq(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function nq(t,e){for(let n=0;n{const i=e.match(t.matchPattern);if(!i)return null;const s=i[0],c=e.match(t.parsePattern);if(!c)return null;let f=t.valueCallback?t.valueCallback(c[0]):c[0];f=n.valueCallback?n.valueCallback(f):f;const d=e.slice(s.length);return{value:f,rest:d}}}const iq=/^(\d+)(th|st|nd|rd)?/i,oq=/\d+/i,sq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uq={any:[/^b/i,/^(a|c)/i]},cq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},aq={any:[/1/i,/2/i,/3/i,/4/i]},fq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gq={ordinalNumber:rq({matchPattern:iq,parsePattern:oq,valueCallback:t=>parseInt(t,10)}),era:Ms({matchPatterns:sq,defaultMatchWidth:"wide",parsePatterns:uq,defaultParseWidth:"any"}),quarter:Ms({matchPatterns:cq,defaultMatchWidth:"wide",parsePatterns:aq,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ms({matchPatterns:fq,defaultMatchWidth:"wide",parsePatterns:lq,defaultParseWidth:"any"}),day:Ms({matchPatterns:dq,defaultMatchWidth:"wide",parsePatterns:hq,defaultParseWidth:"any"}),dayPeriod:Ms({matchPatterns:mq,defaultMatchWidth:"any",parsePatterns:pq,defaultParseWidth:"any"})},yq={code:"en-US",formatDistance:Bj,formatLong:Kj,formatRelative:Gj,localize:tq,match:gq,options:{weekStartsOn:0,firstWeekContainsDate:1}};let _q={};function Ja(){return _q}const xw=6048e5,bq=864e5;function Dn(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function s_(t){const e=Dn(t);return e.setHours(0,0,0,0),e}function u_(t){const e=Dn(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function wq(t,e){const n=s_(t),i=s_(e),s=+n-u_(n),c=+i-u_(i);return Math.round((s-c)/bq)}function Ni(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Sq(t){const e=Dn(t),n=Ni(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Oq(t){const e=Dn(t);return wq(e,Sq(e))+1}function Zs(t,e){var d,p,y,M;const n=Ja(),i=(e==null?void 0:e.weekStartsOn)??((p=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((M=(y=n.locale)==null?void 0:y.options)==null?void 0:M.weekStartsOn)??0,s=Dn(t),c=s.getDay(),f=(c=s.getTime()?n+1:e.getTime()>=f.getTime()?n:n-1}function Iq(t){const e=Fw(t),n=Ni(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),ua(n)}function xq(t){const e=Dn(t),n=+ua(e)-+Iq(e);return Math.round(n/xw)+1}function $w(t,e){var M,A,N,C;const n=Dn(t),i=n.getFullYear(),s=Ja(),c=(e==null?void 0:e.firstWeekContainsDate)??((A=(M=e==null?void 0:e.locale)==null?void 0:M.options)==null?void 0:A.firstWeekContainsDate)??s.firstWeekContainsDate??((C=(N=s.locale)==null?void 0:N.options)==null?void 0:C.firstWeekContainsDate)??1,f=Ni(t,0);f.setFullYear(i+1,0,c),f.setHours(0,0,0,0);const d=Zs(f,e),p=Ni(t,0);p.setFullYear(i,0,c),p.setHours(0,0,0,0);const y=Zs(p,e);return n.getTime()>=d.getTime()?i+1:n.getTime()>=y.getTime()?i:i-1}function Fq(t,e){var d,p,y,M;const n=Ja(),i=(e==null?void 0:e.firstWeekContainsDate)??((p=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(y=n.locale)==null?void 0:y.options)==null?void 0:M.firstWeekContainsDate)??1,s=$w(t,e),c=Ni(t,0);return c.setFullYear(s,0,i),c.setHours(0,0,0,0),Zs(c,e)}function $q(t,e){const n=Dn(t),i=+Zs(n,e)-+Fq(n,e);return Math.round(i/xw)+1}function Ot(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const jr={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return Ot(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ot(n+1,2)},d(t,e){return Ot(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ot(t.getHours()%12||12,e.length)},H(t,e){return Ot(t.getHours(),e.length)},m(t,e){return Ot(t.getMinutes(),e.length)},s(t,e){return Ot(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return Ot(s,e.length)}},co={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},c_={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return jr.y(t,e)},Y:function(t,e,n,i){const s=$w(t,i),c=s>0?s:1-s;if(e==="YY"){const f=c%100;return Ot(f,2)}return e==="Yo"?n.ordinalNumber(c,{unit:"year"}):Ot(c,e.length)},R:function(t,e){const n=Fw(t);return Ot(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ot(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ot(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ot(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return jr.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ot(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const s=$q(t,i);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):Ot(s,e.length)},I:function(t,e,n){const i=xq(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):Ot(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):jr.d(t,e)},D:function(t,e,n){const i=Oq(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ot(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const s=t.getDay(),c=(s-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(c);case"ee":return Ot(c,2);case"eo":return n.ordinalNumber(c,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const s=t.getDay(),c=(s-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(c);case"cc":return Ot(c,e.length);case"co":return n.ordinalNumber(c,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),s=i===0?7:i;switch(e){case"i":return String(s);case"ii":return Ot(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let s;switch(i===12?s=co.noon:i===0?s=co.midnight:s=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let s;switch(i>=17?s=co.evening:i>=12?s=co.afternoon:i>=4?s=co.morning:s=co.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return jr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):jr.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ot(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ot(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):jr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):jr.s(t,e)},S:function(t,e){return jr.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return f_(i);case"XXXX":case"XX":return _i(i);case"XXXXX":case"XXX":default:return _i(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return f_(i);case"xxxx":case"xx":return _i(i);case"xxxxx":case"xxx":default:return _i(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+a_(i,":");case"OOOO":default:return"GMT"+_i(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+a_(i,":");case"zzzz":default:return"GMT"+_i(i,":")}},t:function(t,e,n){const i=Math.trunc(t.getTime()/1e3);return Ot(i,e.length)},T:function(t,e,n){const i=t.getTime();return Ot(i,e.length)}};function a_(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),c=i%60;return c===0?n+String(s):n+String(s)+e+Ot(c,2)}function f_(t,e){return t%60===0?(t>0?"-":"+")+Ot(Math.abs(t)/60,2):_i(t,e)}function _i(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Ot(Math.trunc(i/60),2),c=Ot(i%60,2);return n+s+e+c}const l_=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Pw=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Pq=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return l_(t,e);let c;switch(i){case"P":c=e.dateTime({width:"short"});break;case"PP":c=e.dateTime({width:"medium"});break;case"PPP":c=e.dateTime({width:"long"});break;case"PPPP":default:c=e.dateTime({width:"full"});break}return c.replace("{{date}}",l_(i,e)).replace("{{time}}",Pw(s,e))},Mq={p:Pw,P:Pq},Rq=/^D+$/,Eq=/^Y+$/,Aq=["D","DD","YY","YYYY"];function vq(t){return Rq.test(t)}function Nq(t){return Eq.test(t)}function Cq(t,e,n){const i=kq(t,e,n);if(console.warn(i),Aq.includes(t))throw new RangeError(i)}function kq(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Tq(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Lq(t){if(!Tq(t)&&typeof t!="number")return!1;const e=Dn(t);return!isNaN(Number(e))}const Uq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bq=/^'([^]*?)'?$/,jq=/''/g,qq=/[a-zA-Z]/;function Wq(t,e,n){var M,A,N,C,B,mt,tt,Ft;const i=Ja(),s=(n==null?void 0:n.locale)??i.locale??yq,c=(n==null?void 0:n.firstWeekContainsDate)??((A=(M=n==null?void 0:n.locale)==null?void 0:M.options)==null?void 0:A.firstWeekContainsDate)??i.firstWeekContainsDate??((C=(N=i.locale)==null?void 0:N.options)==null?void 0:C.firstWeekContainsDate)??1,f=(n==null?void 0:n.weekStartsOn)??((mt=(B=n==null?void 0:n.locale)==null?void 0:B.options)==null?void 0:mt.weekStartsOn)??i.weekStartsOn??((Ft=(tt=i.locale)==null?void 0:tt.options)==null?void 0:Ft.weekStartsOn)??0,d=Dn(t);if(!Lq(d))throw new RangeError("Invalid time value");let p=e.match(Dq).map(pt=>{const ft=pt[0];if(ft==="p"||ft==="P"){const Xt=Mq[ft];return Xt(pt,s.formatLong)}return pt}).join("").match(Uq).map(pt=>{if(pt==="''")return{isToken:!1,value:"'"};const ft=pt[0];if(ft==="'")return{isToken:!1,value:Kq(pt)};if(c_[ft])return{isToken:!0,value:pt};if(ft.match(qq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ft+"`");return{isToken:!1,value:pt}});s.localize.preprocessor&&(p=s.localize.preprocessor(d,p));const y={firstWeekContainsDate:c,weekStartsOn:f,locale:s};return p.map(pt=>{if(!pt.isToken)return pt.value;const ft=pt.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Nq(ft)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&vq(ft))&&Cq(ft,e,String(t));const Xt=c_[ft[0]];return Xt(d,ft,s.localize,y)}).join("")}function Kq(t){const e=t.match(Bq);return e?e[1].replace(jq,"'"):t}const d_=ot.String,Wl=ot.Object,Kl=ot.Optional,Hq=ot.Boolean,h_=t=>ot.Transform(ot.String()).Decode(Gq).Encode(Yq(t));function Gq(t){try{return new Date(t)}catch{return t}}function Yq(t){return e=>typeof e=="string"?e:Wq(e,t)}const zq=()=>ot.String({});function Jq(t){const e=EN[t];return ot.Union(e.map(n=>ot.Literal(n)))}function Xq(t){return ot.Transform(Jq(t)).Decode(e=>({collection:t,id:e,get:()=>jw(t,e)})).Encode(e=>e.id)}const Qq={organizations:Wl({name:d_(),location:d_(),logo:Kl(zq())}),work_experiences:Wl({date_start:h_("yyyy-MM"),date_end:Kl(h_("yyyy-MM")),current:Kl(Hq()),organization:Xq("organizations")}),projects:Wl({})};function Mw(t){return Xa(t)&&Symbol.asyncIterator in t}function Rw(t){return Xa(t)&&Symbol.iterator in t}function Ew(t){return t instanceof Promise}function Zh(t){return t instanceof Uint8Array}function Vh(t){return t instanceof Date&&Number.isFinite(t.getTime())}function qi(t){return Xa(t)&&tm(t.constructor)&&t.constructor.name==="Object"}function Xa(t){return t!==null&&typeof t=="object"}function Ln(t){return Array.isArray(t)&&!ArrayBuffer.isView(t)}function Ru(t){return t===void 0}function Qa(t){return t===null}function Za(t){return typeof t=="boolean"}function Yn(t){return typeof t=="number"}function Aw(t){return Yn(t)&&Number.isInteger(t)}function Va(t){return typeof t=="bigint"}function Or(t){return typeof t=="string"}function tm(t){return typeof t=="function"}function tf(t){return typeof t=="symbol"}function vw(t){return Va(t)||Za(t)||Qa(t)||Yn(t)||Or(t)||tf(t)||Ru(t)}var mn;(function(t){t.ExactOptionalPropertyTypes=!1,t.AllowArrayObject=!1,t.AllowNaN=!1,t.AllowNullVoid=!1;function e(f,d){return t.ExactOptionalPropertyTypes?d in f:f[d]!==void 0}t.IsExactOptionalProperty=e;function n(f){const d=Xa(f);return t.AllowArrayObject?d:d&&!Ln(f)}t.IsObjectLike=n;function i(f){return n(f)&&!(f instanceof Date)&&!(f instanceof Uint8Array)}t.IsRecordLike=i;function s(f){const d=Yn(f);return t.AllowNaN?d:d&&Number.isFinite(f)}t.IsNumberLike=s;function c(f){const d=Ru(f);return t.AllowNullVoid?d||f===null:d}t.IsVoidLike=c})(mn||(mn={}));class Zq extends Ae{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class Vq extends Ae{constructor(e){super(`Duplicate string format '${e}' detected`)}}var m_;(function(t){function e(i,s){if(ga(i))throw new Zq(i);return fR(i,s),(c={})=>Ob({...c,[U]:i})}t.Type=e;function n(i,s){if(Gd(i))throw new Vq(i);return aR(i,s),i}t.Format=n})(m_||(m_={}));function tW(t){switch(t.errorType){case I.ArrayContains:return"Expected array to contain at least one matching value";case I.ArrayMaxContains:return`Expected array to contain no more than ${t.schema.maxContains} matching values`;case I.ArrayMinContains:return`Expected array to contain at least ${t.schema.minContains} matching values`;case I.ArrayMaxItems:return`Expected array length to be less or equal to ${t.schema.maxItems}`;case I.ArrayMinItems:return`Expected array length to be greater or equal to ${t.schema.minItems}`;case I.ArrayUniqueItems:return"Expected array elements to be unique";case I.Array:return"Expected array";case I.AsyncIterator:return"Expected AsyncIterator";case I.BigIntExclusiveMaximum:return`Expected bigint to be less than ${t.schema.exclusiveMaximum}`;case I.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${t.schema.exclusiveMinimum}`;case I.BigIntMaximum:return`Expected bigint to be less or equal to ${t.schema.maximum}`;case I.BigIntMinimum:return`Expected bigint to be greater or equal to ${t.schema.minimum}`;case I.BigIntMultipleOf:return`Expected bigint to be a multiple of ${t.schema.multipleOf}`;case I.BigInt:return"Expected bigint";case I.Boolean:return"Expected boolean";case I.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${t.schema.exclusiveMinimumTimestamp}`;case I.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${t.schema.exclusiveMaximumTimestamp}`;case I.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${t.schema.minimumTimestamp}`;case I.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${t.schema.maximumTimestamp}`;case I.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${t.schema.multipleOfTimestamp}`;case I.Date:return"Expected Date";case I.Function:return"Expected function";case I.IntegerExclusiveMaximum:return`Expected integer to be less than ${t.schema.exclusiveMaximum}`;case I.IntegerExclusiveMinimum:return`Expected integer to be greater than ${t.schema.exclusiveMinimum}`;case I.IntegerMaximum:return`Expected integer to be less or equal to ${t.schema.maximum}`;case I.IntegerMinimum:return`Expected integer to be greater or equal to ${t.schema.minimum}`;case I.IntegerMultipleOf:return`Expected integer to be a multiple of ${t.schema.multipleOf}`;case I.Integer:return"Expected integer";case I.IntersectUnevaluatedProperties:return"Unexpected property";case I.Intersect:return"Expected all values to match";case I.Iterator:return"Expected Iterator";case I.Literal:return`Expected ${typeof t.schema.const=="string"?`'${t.schema.const}'`:t.schema.const}`;case I.Never:return"Never";case I.Not:return"Value should not match";case I.Null:return"Expected null";case I.NumberExclusiveMaximum:return`Expected number to be less than ${t.schema.exclusiveMaximum}`;case I.NumberExclusiveMinimum:return`Expected number to be greater than ${t.schema.exclusiveMinimum}`;case I.NumberMaximum:return`Expected number to be less or equal to ${t.schema.maximum}`;case I.NumberMinimum:return`Expected number to be greater or equal to ${t.schema.minimum}`;case I.NumberMultipleOf:return`Expected number to be a multiple of ${t.schema.multipleOf}`;case I.Number:return"Expected number";case I.Object:return"Expected object";case I.ObjectAdditionalProperties:return"Unexpected property";case I.ObjectMaxProperties:return`Expected object to have no more than ${t.schema.maxProperties} properties`;case I.ObjectMinProperties:return`Expected object to have at least ${t.schema.minProperties} properties`;case I.ObjectRequiredProperty:return"Required property";case I.Promise:return"Expected Promise";case I.RegExp:return"Expected string to match regular expression";case I.StringFormatUnknown:return`Unknown format '${t.schema.format}'`;case I.StringFormat:return`Expected string to match '${t.schema.format}' format`;case I.StringMaxLength:return`Expected string length less or equal to ${t.schema.maxLength}`;case I.StringMinLength:return`Expected string length greater or equal to ${t.schema.minLength}`;case I.StringPattern:return`Expected string to match '${t.schema.pattern}'`;case I.String:return"Expected string";case I.Symbol:return"Expected symbol";case I.TupleLength:return`Expected tuple to have ${t.schema.maxItems||0} elements`;case I.Tuple:return"Expected tuple";case I.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${t.schema.maxByteLength}`;case I.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${t.schema.minByteLength}`;case I.Uint8Array:return"Expected Uint8Array";case I.Undefined:return"Expected undefined";case I.Union:return"Expected union value";case I.Void:return"Expected void";case I.Kind:return`Expected kind '${t.schema[U]}'`;default:return"Unknown error type"}}let eW=tW;function nW(){return eW}class rW extends Ae{constructor(n){super(`Unable to dereference schema with $id '${n.$id}'`);_(this,"schema");this.schema=n}}function ii(t,e){const n=e.findIndex(i=>i.$id===t.$ref);if(n===-1)throw new rW(t);return e[n]}class iW extends Ae{constructor(n){super("Unable to hash value");_(this,"value");this.value=n}}var Qe;(function(t){t[t.Undefined=0]="Undefined",t[t.Null=1]="Null",t[t.Boolean=2]="Boolean",t[t.Number=3]="Number",t[t.String=4]="String",t[t.Object=5]="Object",t[t.Array=6]="Array",t[t.Date=7]="Date",t[t.Uint8Array=8]="Uint8Array",t[t.Symbol=9]="Symbol",t[t.BigInt=10]="BigInt"})(Qe||(Qe={}));let fo=BigInt("14695981039346656037");const[oW,sW]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")],uW=Array.from({length:256}).map((t,e)=>BigInt(e)),Nw=new Float64Array(1),Cw=new DataView(Nw.buffer),kw=new Uint8Array(Nw.buffer);function*cW(t){const e=t===0?1:Math.ceil(Math.floor(Math.log2(t)+1)/8);for(let n=0;n>8*(e-1-n)&255}function aW(t){xe(Qe.Array);for(const e of t)Co(e)}function fW(t){xe(Qe.Boolean),xe(t?1:0)}function lW(t){xe(Qe.BigInt),Cw.setBigInt64(0,t);for(const e of kw)xe(e)}function dW(t){xe(Qe.Date),Co(t.getTime())}function hW(t){xe(Qe.Null)}function mW(t){xe(Qe.Number),Cw.setFloat64(0,t);for(const e of kw)xe(e)}function pW(t){xe(Qe.Object);for(const e of globalThis.Object.keys(t).sort())Co(e),Co(t[e])}function gW(t){xe(Qe.String);for(let e=0;e=t.minItems)&&(yield T(I.ArrayMinItems,t,n,i)),st(t.maxItems)&&!(i.length<=t.maxItems)&&(yield T(I.ArrayMaxItems,t,n,i));for(let f=0;fhe(s,e,`${n}${p}`,d).next().done===!0?f+1:f,0);c===0&&(yield T(I.ArrayContains,t,n,i)),Yn(t.minContains)&&ct.maxContains&&(yield T(I.ArrayMaxContains,t,n,i))}function*xW(t,e,n,i){Mw(i)||(yield T(I.AsyncIterator,t,n,i))}function*FW(t,e,n,i){if(!Va(i))return yield T(I.BigInt,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.BigIntExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.BigIntMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.BigIntMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==BigInt(0)&&(yield T(I.BigIntMultipleOf,t,n,i))}function*$W(t,e,n,i){Za(i)||(yield T(I.Boolean,t,n,i))}function*PW(t,e,n,i){yield*he(t.returns,e,n,i.prototype)}function*MW(t,e,n,i){if(!Vh(i))return yield T(I.Date,t,n,i);st(t.exclusiveMaximumTimestamp)&&!(i.getTime()t.exclusiveMinimumTimestamp)&&(yield T(I.DateExclusiveMinimumTimestamp,t,n,i)),st(t.maximumTimestamp)&&!(i.getTime()<=t.maximumTimestamp)&&(yield T(I.DateMaximumTimestamp,t,n,i)),st(t.minimumTimestamp)&&!(i.getTime()>=t.minimumTimestamp)&&(yield T(I.DateMinimumTimestamp,t,n,i)),st(t.multipleOfTimestamp)&&i.getTime()%t.multipleOfTimestamp!==0&&(yield T(I.DateMultipleOfTimestamp,t,n,i))}function*RW(t,e,n,i){tm(i)||(yield T(I.Function,t,n,i))}function*EW(t,e,n,i){if(!Aw(i))return yield T(I.Integer,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.IntegerExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.IntegerMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.IntegerMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==0&&(yield T(I.IntegerMultipleOf,t,n,i))}function*AW(t,e,n,i){for(const s of t.allOf){const c=he(s,e,n,i).next();c.done||(yield T(I.Intersect,t,n,i),yield c.value)}if(t.unevaluatedProperties===!1){const s=new RegExp(jc(t));for(const c of Object.getOwnPropertyNames(i))s.test(c)||(yield T(I.IntersectUnevaluatedProperties,t,`${n}/${c}`,i))}if(typeof t.unevaluatedProperties=="object"){const s=new RegExp(jc(t));for(const c of Object.getOwnPropertyNames(i))if(!s.test(c)){const f=he(t.unevaluatedProperties,e,`${n}/${c}`,i[c]).next();f.done||(yield f.value)}}}function*vW(t,e,n,i){Rw(i)||(yield T(I.Iterator,t,n,i))}function*NW(t,e,n,i){i!==t.const&&(yield T(I.Literal,t,n,i))}function*CW(t,e,n,i){yield T(I.Never,t,n,i)}function*kW(t,e,n,i){he(t.not,e,n,i).next().done===!0&&(yield T(I.Not,t,n,i))}function*TW(t,e,n,i){Qa(i)||(yield T(I.Null,t,n,i))}function*LW(t,e,n,i){if(!mn.IsNumberLike(i))return yield T(I.Number,t,n,i);st(t.exclusiveMaximum)&&!(it.exclusiveMinimum)&&(yield T(I.NumberExclusiveMinimum,t,n,i)),st(t.maximum)&&!(i<=t.maximum)&&(yield T(I.NumberMaximum,t,n,i)),st(t.minimum)&&!(i>=t.minimum)&&(yield T(I.NumberMinimum,t,n,i)),st(t.multipleOf)&&i%t.multipleOf!==0&&(yield T(I.NumberMultipleOf,t,n,i))}function*UW(t,e,n,i){if(!mn.IsObjectLike(i))return yield T(I.Object,t,n,i);st(t.minProperties)&&!(Object.getOwnPropertyNames(i).length>=t.minProperties)&&(yield T(I.ObjectMinProperties,t,n,i)),st(t.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=t.maxProperties)&&(yield T(I.ObjectMaxProperties,t,n,i));const s=Array.isArray(t.required)?t.required:[],c=Object.getOwnPropertyNames(t.properties),f=Object.getOwnPropertyNames(i);for(const d of s)f.includes(d)||(yield T(I.ObjectRequiredProperty,t.properties[d],`${n}/${yr(d)}`,void 0));if(t.additionalProperties===!1)for(const d of f)c.includes(d)||(yield T(I.ObjectAdditionalProperties,t,`${n}/${yr(d)}`,i[d]));if(typeof t.additionalProperties=="object")for(const d of f)c.includes(d)||(yield*he(t.additionalProperties,e,`${n}/${yr(d)}`,i[d]));for(const d of c){const p=t.properties[d];t.required&&t.required.includes(d)?(yield*he(p,e,`${n}/${yr(d)}`,i[d]),au(t)&&!(d in i)&&(yield T(I.ObjectRequiredProperty,p,`${n}/${yr(d)}`,void 0))):mn.IsExactOptionalProperty(i,d)&&(yield*he(p,e,`${n}/${yr(d)}`,i[d]))}}function*DW(t,e,n,i){Ew(i)||(yield T(I.Promise,t,n,i))}function*BW(t,e,n,i){if(!mn.IsRecordLike(i))return yield T(I.Object,t,n,i);st(t.minProperties)&&!(Object.getOwnPropertyNames(i).length>=t.minProperties)&&(yield T(I.ObjectMinProperties,t,n,i)),st(t.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=t.maxProperties)&&(yield T(I.ObjectMaxProperties,t,n,i));const[s,c]=Object.entries(t.patternProperties)[0],f=new RegExp(s);for(const[d,p]of Object.entries(i))f.test(d)&&(yield*he(c,e,`${n}/${yr(d)}`,p));if(typeof t.additionalProperties=="object")for(const[d,p]of Object.entries(i))f.test(d)||(yield*he(t.additionalProperties,e,`${n}/${yr(d)}`,p));if(t.additionalProperties===!1){for(const[d,p]of Object.entries(i))if(!f.test(d))return yield T(I.ObjectAdditionalProperties,t,`${n}/${yr(d)}`,p)}}function*jW(t,e,n,i){yield*he(ii(t,e),e,n,i)}function*qW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);if(st(t.minLength)&&!(i.length>=t.minLength)&&(yield T(I.StringMinLength,t,n,i)),st(t.maxLength)&&!(i.length<=t.maxLength)&&(yield T(I.StringMaxLength,t,n,i)),!new RegExp(t.source,t.flags).test(i))return yield T(I.RegExp,t,n,i)}function*WW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);st(t.minLength)&&!(i.length>=t.minLength)&&(yield T(I.StringMinLength,t,n,i)),st(t.maxLength)&&!(i.length<=t.maxLength)&&(yield T(I.StringMaxLength,t,n,i)),Or(t.pattern)&&(new RegExp(t.pattern).test(i)||(yield T(I.StringPattern,t,n,i))),Or(t.format)&&(Gd(t.format)?L_(t.format)(i)||(yield T(I.StringFormat,t,n,i)):yield T(I.StringFormatUnknown,t,n,i))}function*KW(t,e,n,i){tf(i)||(yield T(I.Symbol,t,n,i))}function*HW(t,e,n,i){if(!Or(i))return yield T(I.String,t,n,i);new RegExp(t.pattern).test(i)||(yield T(I.StringPattern,t,n,i))}function*GW(t,e,n,i){yield*he(ii(t,e),e,n,i)}function*YW(t,e,n,i){if(!Ln(i))return yield T(I.Tuple,t,n,i);if(t.items===void 0&&i.length!==0)return yield T(I.TupleLength,t,n,i);if(i.length!==t.maxItems)return yield T(I.TupleLength,t,n,i);if(t.items)for(let s=0;s0&&(yield T(I.Union,t,n,i))}function*XW(t,e,n,i){if(!Zh(i))return yield T(I.Uint8Array,t,n,i);st(t.maxByteLength)&&!(i.length<=t.maxByteLength)&&(yield T(I.Uint8ArrayMaxByteLength,t,n,i)),st(t.minByteLength)&&!(i.length>=t.minByteLength)&&(yield T(I.Uint8ArrayMinByteLength,t,n,i))}function*QW(t,e,n,i){}function*ZW(t,e,n,i){mn.IsVoidLike(i)||(yield T(I.Void,t,n,i))}function*VW(t,e,n,i){U_(t[U])(t,i)||(yield T(I.Kind,t,n,i))}function*he(t,e,n,i){const s=st(t.$id)?[...e,t]:e,c=t;switch(c[U]){case"Any":return yield*OW();case"Array":return yield*IW(c,s,n,i);case"AsyncIterator":return yield*xW(c,s,n,i);case"BigInt":return yield*FW(c,s,n,i);case"Boolean":return yield*$W(c,s,n,i);case"Constructor":return yield*PW(c,s,n,i);case"Date":return yield*MW(c,s,n,i);case"Function":return yield*RW(c,s,n,i);case"Integer":return yield*EW(c,s,n,i);case"Intersect":return yield*AW(c,s,n,i);case"Iterator":return yield*vW(c,s,n,i);case"Literal":return yield*NW(c,s,n,i);case"Never":return yield*CW(c,s,n,i);case"Not":return yield*kW(c,s,n,i);case"Null":return yield*TW(c,s,n,i);case"Number":return yield*LW(c,s,n,i);case"Object":return yield*UW(c,s,n,i);case"Promise":return yield*DW(c,s,n,i);case"Record":return yield*BW(c,s,n,i);case"Ref":return yield*jW(c,s,n,i);case"RegExp":return yield*qW(c,s,n,i);case"String":return yield*WW(c,s,n,i);case"Symbol":return yield*KW(c,s,n,i);case"TemplateLiteral":return yield*HW(c,s,n,i);case"This":return yield*GW(c,s,n,i);case"Tuple":return yield*YW(c,s,n,i);case"Undefined":return yield*zW(c,s,n,i);case"Union":return yield*JW(c,s,n,i);case"Uint8Array":return yield*XW(c,s,n,i);case"Unknown":return yield*QW();case"Void":return yield*ZW(c,s,n,i);default:if(!ga(c[U]))throw new wW(t);return yield*VW(c,s,n,i)}}function p_(...t){const e=t.length===3?he(t[0],t[1],"",t[2]):he(t[0],[],"",t[1]);return new SW(e)}class t4 extends Ae{constructor(n){super("Unknown type");_(this,"schema");this.schema=n}}function e4(t){return t[U]==="Any"||t[U]==="Unknown"}function ut(t){return t!==void 0}function n4(t,e,n){return!0}function r4(t,e,n){if(!Ln(n)||ut(t.minItems)&&!(n.length>=t.minItems)||ut(t.maxItems)&&!(n.length<=t.maxItems)||!n.every(c=>me(t.items,e,c))||t.uniqueItems===!0&&!function(){const c=new Set;for(const f of n){const d=Tw(f);if(c.has(d))return!1;c.add(d)}return!0}())return!1;if(!(ut(t.contains)||Yn(t.minContains)||Yn(t.maxContains)))return!0;const i=ut(t.contains)?t.contains:ve(),s=n.reduce((c,f)=>me(i,e,f)?c+1:c,0);return!(s===0||Yn(t.minContains)&&st.maxContains)}function i4(t,e,n){return Mw(n)}function o4(t,e,n){return!(!Va(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.multipleOf)&&n%t.multipleOf!==BigInt(0))}function s4(t,e,n){return Za(n)}function u4(t,e,n){return me(t.returns,e,n.prototype)}function c4(t,e,n){return!(!Vh(n)||ut(t.exclusiveMaximumTimestamp)&&!(n.getTime()t.exclusiveMinimumTimestamp)||ut(t.maximumTimestamp)&&!(n.getTime()<=t.maximumTimestamp)||ut(t.minimumTimestamp)&&!(n.getTime()>=t.minimumTimestamp)||ut(t.multipleOfTimestamp)&&n.getTime()%t.multipleOfTimestamp!==0)}function a4(t,e,n){return tm(n)}function f4(t,e,n){return!(!Aw(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.multipleOf)&&n%t.multipleOf!==0)}function l4(t,e,n){const i=t.allOf.every(s=>me(s,e,n));if(t.unevaluatedProperties===!1){const s=new RegExp(jc(t)),c=Object.getOwnPropertyNames(n).every(f=>s.test(f));return i&&c}else if($t(t.unevaluatedProperties)){const s=new RegExp(jc(t)),c=Object.getOwnPropertyNames(n).every(f=>s.test(f)||me(t.unevaluatedProperties,e,n[f]));return i&&c}else return i}function d4(t,e,n){return Rw(n)}function h4(t,e,n){return n===t.const}function m4(t,e,n){return!1}function p4(t,e,n){return!me(t.not,e,n)}function g4(t,e,n){return Qa(n)}function y4(t,e,n){return!(!mn.IsNumberLike(n)||ut(t.exclusiveMaximum)&&!(nt.exclusiveMinimum)||ut(t.minimum)&&!(n>=t.minimum)||ut(t.maximum)&&!(n<=t.maximum)||ut(t.multipleOf)&&n%t.multipleOf!==0)}function _4(t,e,n){if(!mn.IsObjectLike(n)||ut(t.minProperties)&&!(Object.getOwnPropertyNames(n).length>=t.minProperties)||ut(t.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=t.maxProperties))return!1;const i=Object.getOwnPropertyNames(t.properties);for(const s of i){const c=t.properties[s];if(t.required&&t.required.includes(s)){if(!me(c,e,n[s])||(au(c)||e4(c))&&!(s in n))return!1}else if(mn.IsExactOptionalProperty(n,s)&&!me(c,e,n[s]))return!1}if(t.additionalProperties===!1){const s=Object.getOwnPropertyNames(n);return t.required&&t.required.length===i.length&&s.length===i.length?!0:s.every(c=>i.includes(c))}else return typeof t.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(c=>i.includes(c)||me(t.additionalProperties,e,n[c])):!0}function b4(t,e,n){return Ew(n)}function w4(t,e,n){if(!mn.IsRecordLike(n)||ut(t.minProperties)&&!(Object.getOwnPropertyNames(n).length>=t.minProperties)||ut(t.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=t.maxProperties))return!1;const[i,s]=Object.entries(t.patternProperties)[0],c=new RegExp(i),f=Object.entries(n).every(([y,M])=>c.test(y)?me(s,e,M):!0),d=typeof t.additionalProperties=="object"?Object.entries(n).every(([y,M])=>c.test(y)?!0:me(t.additionalProperties,e,M)):!0,p=t.additionalProperties===!1?Object.getOwnPropertyNames(n).every(y=>c.test(y)):!0;return f&&d&&p}function S4(t,e,n){return me(ii(t,e),e,n)}function O4(t,e,n){const i=new RegExp(t.source,t.flags);return ut(t.minLength)&&!(n.length>=t.minLength)||ut(t.maxLength)&&!(n.length<=t.maxLength)?!1:i.test(n)}function I4(t,e,n){return!Or(n)||ut(t.minLength)&&!(n.length>=t.minLength)||ut(t.maxLength)&&!(n.length<=t.maxLength)||ut(t.pattern)&&!new RegExp(t.pattern).test(n)?!1:ut(t.format)?Gd(t.format)?L_(t.format)(n):!1:!0}function x4(t,e,n){return tf(n)}function F4(t,e,n){return Or(n)&&new RegExp(t.pattern).test(n)}function $4(t,e,n){return me(ii(t,e),e,n)}function P4(t,e,n){if(!Ln(n)||t.items===void 0&&n.length!==0||n.length!==t.maxItems)return!1;if(!t.items)return!0;for(let i=0;ime(i,e,n))}function E4(t,e,n){return!(!Zh(n)||ut(t.maxByteLength)&&!(n.length<=t.maxByteLength)||ut(t.minByteLength)&&!(n.length>=t.minByteLength))}function A4(t,e,n){return!0}function v4(t,e,n){return mn.IsVoidLike(n)}function N4(t,e,n){return ga(t[U])?U_(t[U])(t,n):!1}function me(t,e,n){const i=ut(t.$id)?[...e,t]:e,s=t;switch(s[U]){case"Any":return n4();case"Array":return r4(s,i,n);case"AsyncIterator":return i4(s,i,n);case"BigInt":return o4(s,i,n);case"Boolean":return s4(s,i,n);case"Constructor":return u4(s,i,n);case"Date":return c4(s,i,n);case"Function":return a4(s,i,n);case"Integer":return f4(s,i,n);case"Intersect":return l4(s,i,n);case"Iterator":return d4(s,i,n);case"Literal":return h4(s,i,n);case"Never":return m4();case"Not":return p4(s,i,n);case"Null":return g4(s,i,n);case"Number":return y4(s,i,n);case"Object":return _4(s,i,n);case"Promise":return b4(s,i,n);case"Record":return w4(s,i,n);case"Ref":return S4(s,i,n);case"RegExp":return O4(s,i,n);case"String":return I4(s,i,n);case"Symbol":return x4(s,i,n);case"TemplateLiteral":return F4(s,i,n);case"This":return $4(s,i,n);case"Tuple":return P4(s,i,n);case"Undefined":return M4(s,i,n);case"Union":return R4(s,i,n);case"Uint8Array":return E4(s,i,n);case"Unknown":return A4();case"Void":return v4(s,i,n);default:if(!ga(s[U]))throw new t4(s);return N4(s,i,n)}}function Vs(...t){return t.length===3?me(t[0],t[1],t[2]):me(t[0],[],t[1])}const C4=ue({type:qt("insert"),path:Xr(),value:su()}),k4=ue({type:qt("update"),path:Xr(),value:su()}),T4=ue({type:qt("delete"),path:Xr()});Ne([C4,k4,T4]);class L4 extends Ae{constructor(n,i,s){super("Unable to decode due to invalid value");_(this,"schema");_(this,"value");_(this,"error");this.schema=n,this.value=i,this.error=s}}class U4 extends Ae{constructor(n,i,s){super(`${s instanceof Error?s.message:"Unknown error"}`);_(this,"schema");_(this,"value");this.schema=n,this.value=i}}function Lt(t,e){try{return ei(t)?t[Mn].Decode(e):e}catch(n){throw new U4(t,e,n)}}function D4(t,e,n){return Ln(n)?Lt(t,n.map(i=>rr(t.items,e,i))):Lt(t,n)}function B4(t,e,n){if(!qi(n)||vw(n))return Lt(t,n);const i=ri(t),s=i.reduce((p,y)=>y in p?{...p,[y]:rr(iu(t,[y]),e,p[y])}:p,n);if(!ei(t.unevaluatedProperties))return Lt(t,s);const c=Object.getOwnPropertyNames(s),f=t.unevaluatedProperties,d=c.reduce((p,y)=>i.includes(y)?p:{...p,[y]:Lt(f,p[y])},s);return Lt(t,d)}function j4(t,e,n){return Lt(t,rr(t.not,e,n))}function q4(t,e,n){if(!qi(n))return Lt(t,n);const i=ri(t),s=i.reduce((p,y)=>y in p?{...p,[y]:rr(t.properties[y],e,p[y])}:p,n);if(!$t(t.additionalProperties))return Lt(t,s);const c=Object.getOwnPropertyNames(s),f=t.additionalProperties,d=c.reduce((p,y)=>i.includes(y)?p:{...p,[y]:Lt(f,p[y])},s);return Lt(t,d)}function W4(t,e,n){if(!qi(n))return Lt(t,n);const i=Object.getOwnPropertyNames(t.patternProperties)[0],s=new RegExp(i),c=Object.getOwnPropertyNames(n).reduce((y,M)=>s.test(M)?{...y,[M]:rr(t.patternProperties[i],e,y[M])}:y,n);if(!$t(t.additionalProperties))return Lt(t,c);const f=Object.getOwnPropertyNames(c),d=t.additionalProperties,p=f.reduce((y,M)=>s.test(M)?y:{...y,[M]:Lt(d,y[M])},c);return Lt(t,p)}function K4(t,e,n){const i=ii(t,e);return Lt(t,rr(i,e,n))}function H4(t,e,n){const i=ii(t,e);return Lt(t,rr(i,e,n))}function G4(t,e,n){return Ln(n)&&Ln(t.items)?Lt(t,t.items.map((i,s)=>rr(i,e,n[s]))):Lt(t,n)}function Y4(t,e,n){for(const i of t.anyOf){if(!Vs(i,e,n))continue;const s=rr(i,e,n);return Lt(t,s)}return Lt(t,n)}function rr(t,e,n){const i=typeof t.$id=="string"?[...e,t]:e,s=t;switch(t[U]){case"Array":return D4(s,i,n);case"Intersect":return B4(s,i,n);case"Not":return j4(s,i,n);case"Object":return q4(s,i,n);case"Record":return W4(s,i,n);case"Ref":return K4(s,i,n);case"Symbol":return Lt(s,n);case"This":return H4(s,i,n);case"Tuple":return G4(s,i,n);case"Union":return Y4(s,i,n);default:return Lt(s,n)}}function z4(t,e,n){return rr(t,e,n)}class J4 extends Ae{constructor(n,i,s){super("Unable to encode due to invalid value");_(this,"schema");_(this,"value");_(this,"error");this.schema=n,this.value=i,this.error=s}}class X4 extends Ae{constructor(n,i,s){super(`${s instanceof Error?s.message:"Unknown error"}`);_(this,"schema");_(this,"value");this.schema=n,this.value=i}}function oe(t,e){try{return ei(t)?t[Mn].Encode(e):e}catch(n){throw new X4(t,e,n)}}function Q4(t,e,n){const i=oe(t,n);return Ln(i)?i.map(s=>Vn(t.items,e,s)):i}function Z4(t,e,n){const i=oe(t,n);if(!qi(n)||vw(n))return i;const s=ri(t),c=s.reduce((p,y)=>y in i?{...p,[y]:Vn(iu(t,[y]),e,p[y])}:p,i);if(!ei(t.unevaluatedProperties))return oe(t,c);const f=Object.getOwnPropertyNames(c),d=t.unevaluatedProperties;return f.reduce((p,y)=>s.includes(y)?p:{...p,[y]:oe(d,p[y])},c)}function V4(t,e,n){return oe(t.not,oe(t,n))}function t6(t,e,n){const i=oe(t,n);if(!qi(n))return i;const s=ri(t),c=s.reduce((p,y)=>y in p?{...p,[y]:Vn(t.properties[y],e,p[y])}:p,i);if(!$t(t.additionalProperties))return c;const f=Object.getOwnPropertyNames(c),d=t.additionalProperties;return f.reduce((p,y)=>s.includes(y)?p:{...p,[y]:oe(d,p[y])},c)}function e6(t,e,n){const i=oe(t,n);if(!qi(n))return i;const s=Object.getOwnPropertyNames(t.patternProperties)[0],c=new RegExp(s),f=Object.getOwnPropertyNames(n).reduce((y,M)=>c.test(M)?{...y,[M]:Vn(t.patternProperties[s],e,y[M])}:y,i);if(!$t(t.additionalProperties))return oe(t,f);const d=Object.getOwnPropertyNames(f),p=t.additionalProperties;return d.reduce((y,M)=>c.test(M)?y:{...y,[M]:oe(p,y[M])},f)}function n6(t,e,n){const i=ii(t,e),s=Vn(i,e,n);return oe(t,s)}function r6(t,e,n){const i=ii(t,e),s=Vn(i,e,n);return oe(t,s)}function i6(t,e,n){const i=oe(t,n);return Ln(t.items)?t.items.map((s,c)=>Vn(s,e,i[c])):[]}function o6(t,e,n){for(const i of t.anyOf){if(!Vs(i,e,n))continue;const s=Vn(i,e,n);return oe(t,s)}for(const i of t.anyOf){const s=Vn(i,e,n);if(Vs(t,e,s))return oe(t,s)}return oe(t,n)}function Vn(t,e,n){const i=typeof t.$id=="string"?[...e,t]:e,s=t;switch(t[U]){case"Array":return Q4(s,i,n);case"Intersect":return Z4(s,i,n);case"Not":return V4(s,i,n);case"Object":return t6(s,i,n);case"Record":return e6(s,i,n);case"Ref":return n6(s,i,n);case"This":return r6(s,i,n);case"Tuple":return i6(s,i,n);case"Union":return o6(s,i,n);default:return oe(s,n)}}function s6(t,e,n){return Vn(t,e,n)}function em(...t){return Vs.apply(Vs,t)}function Lw(...t){const[e,n,i]=t.length===3?[t[0],t[1],t[2]]:[t[0],[],t[1]];if(!em(e,n,i))throw new L4(e,i,nm(e,n,i).First());return z4(e,n,i)}function u6(...t){const[e,n,i]=t.length===3?[t[0],t[1],t[2]]:[t[0],[],t[1]],s=s6(e,n,i);if(!em(e,n,s))throw new J4(e,i,nm(e,n,i).First());return s}function nm(...t){return p_.apply(p_,t)}const Dd=""+new URL("../assets/logo.BN0rvja2.jpeg",import.meta.url).href,c6=t=>({}),g_=t=>({doc:t[0]});function a6(t){let e;const n=t[4].default,i=vM(n,t,t[3],g_);return{c(){i&&i.c()},l(s){i&&i.l(s)},m(s,c){i&&i.m(s,c),e=!0},p(s,[c]){i&&i.p&&(!e||c&8)&&NM(i,n,s,s[3],e?kM(n,s[3],c,c6):CM(s[3]),g_)},i(s){e||(Bd(i,s),e=!0)},o(s){jd(i,s),e=!1},d(s){i&&i.d(s)}}}const f6=Symbol("DCK");function l6(t,e,n){let{$$slots:i={},$$scope:s}=e,{collection:c}=e,{name:f}=e;const d=jw(c,f);return TM(f6,{content:d==null?void 0:d.content}),t.$$set=p=>{"collection"in p&&n(1,c=p.collection),"name"in p&&n(2,f=p.name),"$$scope"in p&&n(3,s=p.$$scope)},[d,c,f,s,i]}class Uw extends Pr{constructor(e){super(),Mr(this,e,l6,a6,$r,{collection:1,name:2})}}function d6(t){let e,n=JSON.stringify(t[0],null,2)+"",i;return{c(){e=Gr("pre"),i=S_(n)},l(s){e=Yr(s,"PRE",{});var c=O_(e);i=I_(c,n),c.forEach(Ge)},m(s,c){Pn(s,e,c),x_(e,i)},p(s,c){c&1&&n!==(n=JSON.stringify(s[0],null,2)+"")&&F_(i,n)},d(s){s&&Ge(e)}}}function h6(t){let e,n="Mo bellissima dyne",i,s,c,f,d,p,y,M,A;return d=new Uw({props:{collection:"organizations",name:"freelance",$$slots:{default:[d6,({doc:N})=>({0:N}),({doc:N})=>N?1:0]},$$scope:{ctx:t}}}),{c(){e=Gr("p"),e.textContent=n,i=$l(),s=Gr("img"),f=$l(),y_(d.$$.fragment),p=$l(),y=Gr("img"),this.h()},l(N){e=Yr(N,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-1k1q0s1"&&(e.textContent=n),i=Pl(N),s=Yr(N,"IMG",{src:!0,alt:!0}),f=Pl(N),__(d.$$.fragment,N),p=Pl(N),y=Yr(N,"IMG",{src:!0,alt:!0}),this.h()},h(){Ug(s.src,c=Dd)||Oc(s,"src",c),Oc(s,"alt","dyne logo"),Ug(y.src,M=Dd)||Oc(y,"src",M),Oc(y,"alt","dyne logo")},m(N,C){Pn(N,e,C),Pn(N,i,C),Pn(N,s,C),Pn(N,f,C),b_(d,N,C),Pn(N,p,C),Pn(N,y,C),A=!0},p(N,[C]){const B={};C&3&&(B.$$scope={dirty:C,ctx:N}),d.$set(B)},i(N){A||(Bd(d.$$.fragment,N),A=!0)},o(N){jd(d.$$.fragment,N),A=!1},d(N){N&&(Ge(e),Ge(i),Ge(s),Ge(f),Ge(p),Ge(y)),w_(d,N)}}}const m6=oi("organizations",{name:"Dyne.org",location:"Amsterdam, Paesi Bassi",logo:Dd});let p6=class extends Pr{constructor(e){super(),Mr(this,e,null,h6,$r,{})}};const g6=Object.freeze(Object.defineProperty({__proto__:null,default:p6,props:m6},Symbol.toStringTag,{value:"Module"}));function y6(t){let e,n="Mo bellissima ff";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-fi9953"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const _6=oi("organizations",{name:"Studio FF3300",location:"Bari, Italia"});let b6=class extends Pr{constructor(e){super(),Mr(this,e,null,y6,$r,{})}};const w6=Object.freeze(Object.defineProperty({__proto__:null,default:b6,props:_6},Symbol.toStringTag,{value:"Module"}));function S6(t){let e,n="Mo bellissimo il freelance";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-khatbd"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const O6=oi("organizations",{name:"Freelance",location:"Bari, Italia"});let I6=class extends Pr{constructor(e){super(),Mr(this,e,null,S6,$r,{})}};const x6=Object.freeze(Object.defineProperty({__proto__:null,default:I6,props:O6},Symbol.toStringTag,{value:"Module"}));function F6(t){let e,n="Mo bellissima la sos";return{c(){e=Gr("p"),e.textContent=n},l(i){e=Yr(i,"P",{"data-svelte-h":!0}),aa(e)!=="svelte-1yooyin"&&(e.textContent=n)},m(i,s){Pn(i,e,s)},p:wr,i:wr,o:wr,d(i){i&&Ge(e)}}}const $6=oi("organizations",{name:"La Scuola Open Source",location:"Bari, Italia"});let P6=class extends Pr{constructor(e){super(),Mr(this,e,null,F6,$r,{})}};const M6=Object.freeze(Object.defineProperty({__proto__:null,default:P6,props:$6},Symbol.toStringTag,{value:"Module"})),R6=oi("work_experiences",{date_start:"2019-07",current:!0,organization:"freelance"});let E6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const A6=Object.freeze(Object.defineProperty({__proto__:null,default:E6,props:R6},Symbol.toStringTag,{value:"Module"})),v6=oi("work_experiences",{date_start:"2021-05",current:!0,organization:"la-scuola-open-source"});let N6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const C6=Object.freeze(Object.defineProperty({__proto__:null,default:N6,props:v6},Symbol.toStringTag,{value:"Module"})),k6=oi("work_experiences",{date_start:"2021-09",date_end:"2022-03",current:!1,organization:"freelance"});let T6=class extends Pr{constructor(e){super(),Mr(this,e,null,null,$r,{})}};const L6=Object.freeze(Object.defineProperty({__proto__:null,default:T6,props:k6},Symbol.toStringTag,{value:"Module"}));function U6(t){let e,n=JSON.stringify(t[0],null,2)+"",i;return{c(){e=Gr("pre"),i=S_(n)},l(s){e=Yr(s,"PRE",{});var c=O_(e);i=I_(c,n),c.forEach(Ge)},m(s,c){Pn(s,e,c),x_(e,i)},p(s,c){c&1&&n!==(n=JSON.stringify(s[0],null,2)+"")&&F_(i,n)},d(s){s&&Ge(e)}}}function D6(t){let e,n;return e=new Uw({props:{collection:"organizations",name:Dw.organization.id,$$slots:{default:[U6,({doc:i})=>({0:i}),({doc:i})=>i?1:0]},$$scope:{ctx:t}}}),{c(){y_(e.$$.fragment)},l(i){__(e.$$.fragment,i)},m(i,s){b_(e,i,s),n=!0},p(i,[s]){const c={};s&3&&(c.$$scope={dirty:s,ctx:i}),e.$set(c)},i(i){n||(Bd(e.$$.fragment,i),n=!0)},o(i){jd(e.$$.fragment,i),n=!1},d(i){w_(e,i)}}}const Dw=oi("work_experiences",{date_start:"2022-10",current:!0,organization:"dyne"});class B6 extends Pr{constructor(e){super(),Mr(this,e,null,D6,$r,{})}}const j6=Object.freeze(Object.defineProperty({__proto__:null,default:B6,props:Dw},Symbol.toStringTag,{value:"Module"})),q6=()=>Object.assign({"./organizations/dyne/+page.svelte":g6,"./organizations/ff3300/+page.svelte":w6,"./organizations/freelance/+page.svelte":x6,"./organizations/la-scuola-open-source/+page.svelte":M6,"./projects/join/+page.svelte":LM,"./projects/reaction-diffusion/+page.svelte":UM,"./projects/scabec/+page.svelte":DM,"./projects/signroom/+page.svelte":BM,"./work_experiences/2019-07_oggi_freelance_docente/+page.svelte":A6,"./work_experiences/2021-05_oggi_sos/+page.svelte":C6,"./work_experiences/2021-09_2022-03_sos/+page.svelte":L6,"./work_experiences/2022-10_oggi_dyne/+page.svelte":j6}),W6=ot.Object({props:ot.Optional(ot.Object({})),default:ot.Any()}),K6=ot.Record(ot.String(),W6);function H6(){const t=q6();return em(K6,t)?Ow(t):Sw(new Error("Invalid Vite glob import"))}function G6(t){return P(t,i_("/+page.svelte",""),i_("./","/"),jM)}function Y6(t){return P(t,IC,zr(([e,n])=>({path:G6(e),props:n.props,content:n.default})))}function rm(){return P(H6(),Mu(Y6))}function z6(t){return P(rm(),Mu(e=>P(e,Qb(n=>n.path.includes(t)),lo)))}function Bw(t,e){return Iw({try:()=>{const n=u6(e,t.props),i=Lw(e,n);return{...t,props:i}},catch:()=>{const n=[...nm(e,t.props)];return console.log(t,n),new Error(`Parse error: ${t.path}`)}})}var Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ca={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ca.exports;(function(t,e){(function(){var n,i="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",y=500,M="__lodash_placeholder__",A=1,N=2,C=4,B=1,mt=2,tt=1,Ft=2,pt=4,ft=8,Xt=16,Ht=32,_n=64,_e=128,Qt=256,be=512,Bn=30,bn="...",ir=800,ef=16,Qo=1,nf=2,or=3,we=1/0,tn=9007199254740991,rf=17976931348623157e292,jn=NaN,qn=4294967295,Ww=qn-1,Kw=qn>>>1,Hw=[["ary",_e],["bind",tt],["bindKey",Ft],["curry",ft],["curryRight",Xt],["flip",be],["partial",Ht],["partialRight",_n],["rearg",Qt]],Wi="[object Arguments]",Eu="[object Array]",Gw="[object AsyncFunction]",Zo="[object Boolean]",Vo="[object Date]",Yw="[object DOMException]",Au="[object Error]",vu="[object Function]",um="[object GeneratorFunction]",wn="[object Map]",ts="[object Number]",zw="[object Null]",sr="[object Object]",cm="[object Promise]",Jw="[object Proxy]",es="[object RegExp]",Sn="[object Set]",ns="[object String]",Nu="[object Symbol]",Xw="[object Undefined]",rs="[object WeakMap]",Qw="[object WeakSet]",is="[object ArrayBuffer]",Ki="[object DataView]",of="[object Float32Array]",sf="[object Float64Array]",uf="[object Int8Array]",cf="[object Int16Array]",af="[object Int32Array]",ff="[object Uint8Array]",lf="[object Uint8ClampedArray]",df="[object Uint16Array]",hf="[object Uint32Array]",Zw=/\b__p \+= '';/g,Vw=/\b(__p \+=) '' \+/g,tS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,am=/&(?:amp|lt|gt|quot|#39);/g,fm=/[&<>"']/g,eS=RegExp(am.source),nS=RegExp(fm.source),rS=/<%-([\s\S]+?)%>/g,iS=/<%([\s\S]+?)%>/g,lm=/<%=([\s\S]+?)%>/g,oS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sS=/^\w*$/,uS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/[\\^$.*+?()[\]{}|]/g,cS=RegExp(mf.source),pf=/^\s+/,aS=/\s/,fS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lS=/\{\n\/\* \[wrapped with (.+)\] \*/,dS=/,? & /,hS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mS=/[()=,{}\[\]\/\s]/,pS=/\\(\\)?/g,gS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dm=/\w*$/,yS=/^[-+]0x[0-9a-f]+$/i,_S=/^0b[01]+$/i,bS=/^\[object .+?Constructor\]$/,wS=/^0o[0-7]+$/i,SS=/^(?:0|[1-9]\d*)$/,OS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cu=/($^)/,IS=/['\n\r\u2028\u2029\\]/g,ku="\\ud800-\\udfff",xS="\\u0300-\\u036f",FS="\\ufe20-\\ufe2f",$S="\\u20d0-\\u20ff",hm=xS+FS+$S,mm="\\u2700-\\u27bf",pm="a-z\\xdf-\\xf6\\xf8-\\xff",PS="\\xac\\xb1\\xd7\\xf7",MS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RS="\\u2000-\\u206f",ES=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gm="A-Z\\xc0-\\xd6\\xd8-\\xde",ym="\\ufe0e\\ufe0f",_m=PS+MS+RS+ES,gf="['’]",AS="["+ku+"]",bm="["+_m+"]",Tu="["+hm+"]",wm="\\d+",vS="["+mm+"]",Sm="["+pm+"]",Om="[^"+ku+_m+wm+mm+pm+gm+"]",yf="\\ud83c[\\udffb-\\udfff]",NS="(?:"+Tu+"|"+yf+")",Im="[^"+ku+"]",_f="(?:\\ud83c[\\udde6-\\uddff]){2}",bf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hi="["+gm+"]",xm="\\u200d",Fm="(?:"+Sm+"|"+Om+")",CS="(?:"+Hi+"|"+Om+")",$m="(?:"+gf+"(?:d|ll|m|re|s|t|ve))?",Pm="(?:"+gf+"(?:D|LL|M|RE|S|T|VE))?",Mm=NS+"?",Rm="["+ym+"]?",kS="(?:"+xm+"(?:"+[Im,_f,bf].join("|")+")"+Rm+Mm+")*",TS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Em=Rm+Mm+kS,US="(?:"+[vS,_f,bf].join("|")+")"+Em,DS="(?:"+[Im+Tu+"?",Tu,_f,bf,AS].join("|")+")",BS=RegExp(gf,"g"),jS=RegExp(Tu,"g"),wf=RegExp(yf+"(?="+yf+")|"+DS+Em,"g"),qS=RegExp([Hi+"?"+Sm+"+"+$m+"(?="+[bm,Hi,"$"].join("|")+")",CS+"+"+Pm+"(?="+[bm,Hi+Fm,"$"].join("|")+")",Hi+"?"+Fm+"+"+$m,Hi+"+"+Pm,LS,TS,wm,US].join("|"),"g"),WS=RegExp("["+xm+ku+hm+ym+"]"),KS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],GS=-1,vt={};vt[of]=vt[sf]=vt[uf]=vt[cf]=vt[af]=vt[ff]=vt[lf]=vt[df]=vt[hf]=!0,vt[Wi]=vt[Eu]=vt[is]=vt[Zo]=vt[Ki]=vt[Vo]=vt[Au]=vt[vu]=vt[wn]=vt[ts]=vt[sr]=vt[es]=vt[Sn]=vt[ns]=vt[rs]=!1;var Et={};Et[Wi]=Et[Eu]=Et[is]=Et[Ki]=Et[Zo]=Et[Vo]=Et[of]=Et[sf]=Et[uf]=Et[cf]=Et[af]=Et[wn]=Et[ts]=Et[sr]=Et[es]=Et[Sn]=Et[ns]=Et[Nu]=Et[ff]=Et[lf]=Et[df]=Et[hf]=!0,Et[Au]=Et[vu]=Et[rs]=!1;var YS={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zS={"&":"&","<":"<",">":">",'"':""","'":"'"},JS={"&":"&","<":"<",">":">",""":'"',"'":"'"},XS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QS=parseFloat,ZS=parseInt,Am=typeof Rs=="object"&&Rs&&Rs.Object===Object&&Rs,VS=typeof self=="object"&&self&&self.Object===Object&&self,ce=Am||VS||Function("return this")(),Sf=e&&!e.nodeType&&e,si=Sf&&!0&&t&&!t.nodeType&&t,vm=si&&si.exports===Sf,Of=vm&&Am.process,en=function(){try{var w=si&&si.require&&si.require("util").types;return w||Of&&Of.binding&&Of.binding("util")}catch{}}(),Nm=en&&en.isArrayBuffer,Cm=en&&en.isDate,km=en&&en.isMap,Tm=en&&en.isRegExp,Lm=en&&en.isSet,Um=en&&en.isTypedArray;function Be(w,$,O){switch(O.length){case 0:return w.call($);case 1:return w.call($,O[0]);case 2:return w.call($,O[0],O[1]);case 3:return w.call($,O[0],O[1],O[2])}return w.apply($,O)}function tO(w,$,O,L){for(var Y=-1,yt=w==null?0:w.length;++Y-1}function If(w,$,O){for(var L=-1,Y=w==null?0:w.length;++L-1;);return O}function Gm(w,$){for(var O=w.length;O--&&Gi($,w[O],0)>-1;);return O}function aO(w,$){for(var O=w.length,L=0;O--;)w[O]===$&&++L;return L}var fO=Pf(YS),lO=Pf(zS);function dO(w){return"\\"+XS[w]}function hO(w,$){return w==null?n:w[$]}function Yi(w){return WS.test(w)}function mO(w){return KS.test(w)}function pO(w){for(var $,O=[];!($=w.next()).done;)O.push($.value);return O}function Af(w){var $=-1,O=Array(w.size);return w.forEach(function(L,Y){O[++$]=[Y,L]}),O}function Ym(w,$){return function(O){return w($(O))}}function Nr(w,$){for(var O=-1,L=w.length,Y=0,yt=[];++O-1}function nI(r,o){var u=this.__data__,a=tc(u,r);return a<0?(++this.size,u.push([r,o])):u[a][1]=o,this}ur.prototype.clear=ZO,ur.prototype.delete=VO,ur.prototype.get=tI,ur.prototype.has=eI,ur.prototype.set=nI;function cr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o=o?r:o)),r}function sn(r,o,u,a,l,m){var g,b=o&A,S=o&N,R=o&C;if(u&&(g=l?u(r,a,l,m):u(r)),g!==n)return g;if(!Tt(r))return r;var E=J(r);if(E){if(g=sx(r),!b)return Ce(r,g)}else{var v=Oe(r),k=v==vu||v==um;if(Dr(r))return Rp(r,b);if(v==sr||v==Wi||k&&!l){if(g=S||k?{}:zp(r),!b)return S?JI(r,_I(g,r)):zI(r,op(g,r))}else{if(!Et[v])return l?r:{};g=ux(r,v,b)}}m||(m=new In);var D=m.get(r);if(D)return D;m.set(r,g),Ig(r)?r.forEach(function(W){g.add(sn(W,o,u,W,r,m))}):Sg(r)&&r.forEach(function(W,it){g.set(it,sn(W,o,u,it,r,m))});var q=R?S?rl:nl:S?Te:ne,V=E?n:q(r);return nn(V||r,function(W,it){V&&(it=W,W=r[it]),ls(g,it,sn(W,o,u,it,r,m))}),g}function bI(r){var o=ne(r);return function(u){return sp(u,r,o)}}function sp(r,o,u){var a=u.length;if(r==null)return!a;for(r=Pt(r);a--;){var l=u[a],m=o[l],g=r[l];if(g===n&&!(l in r)||!m(g))return!1}return!0}function up(r,o,u){if(typeof r!="function")throw new rn(f);return _s(function(){r.apply(n,u)},o)}function ds(r,o,u,a){var l=-1,m=Lu,g=!0,b=r.length,S=[],R=o.length;if(!b)return S;u&&(o=Ct(o,je(u))),a?(m=If,g=!1):o.length>=s&&(m=os,g=!1,o=new ai(o));t:for(;++ll?0:l+u),a=a===n||a>l?l:Q(a),a<0&&(a+=l),a=u>a?0:Fg(a);u0&&u(b)?o>1?ae(b,o-1,u,a,l):vr(l,b):a||(l[l.length]=b)}return l}var Uf=kp(),fp=kp(!0);function Wn(r,o){return r&&Uf(r,o,ne)}function Df(r,o){return r&&fp(r,o,ne)}function nc(r,o){return Ar(o,function(u){return hr(r[u])})}function li(r,o){o=Lr(o,r);for(var u=0,a=o.length;r!=null&&uo}function OI(r,o){return r!=null&&St.call(r,o)}function II(r,o){return r!=null&&o in Pt(r)}function xI(r,o,u){return r>=Se(o,u)&&r=120&&E.length>=120)?new ai(g&&E):n}E=r[0];var v=-1,k=b[0];t:for(;++v-1;)b!==r&&Yu.call(b,S,1),Yu.call(r,S,1);return r}function Sp(r,o){for(var u=r?o.length:0,a=u-1;u--;){var l=o[u];if(u==a||l!==m){var m=l;dr(l)?Yu.call(r,l,1):Jf(r,l)}}return r}function Gf(r,o){return r+Xu(ep()*(o-r+1))}function LI(r,o,u,a){for(var l=-1,m=Vt(Ju((o-r)/(u||1)),0),g=O(m);m--;)g[a?m:++l]=r,r+=u;return g}function Yf(r,o){var u="";if(!r||o<1||o>tn)return u;do o%2&&(u+=r),o=Xu(o/2),o&&(r+=r);while(o);return u}function et(r,o){return fl(Qp(r,o,Le),r+"")}function UI(r){return ip(io(r))}function DI(r,o){var u=io(r);return hc(u,fi(o,0,u.length))}function ps(r,o,u,a){if(!Tt(r))return r;o=Lr(o,r);for(var l=-1,m=o.length,g=m-1,b=r;b!=null&&++ll?0:l+o),u=u>l?l:u,u<0&&(u+=l),l=o>u?0:u-o>>>0,o>>>=0;for(var m=O(l);++a>>1,g=r[m];g!==null&&!We(g)&&(u?g<=o:g=s){var R=o?null:VI(r);if(R)return Du(R);g=!1,l=os,S=new ai}else S=o?[]:b;t:for(;++a=a?r:un(r,o,u)}var Mp=EO||function(r){return ce.clearTimeout(r)};function Rp(r,o){if(o)return r.slice();var u=r.length,a=Xm?Xm(u):new r.constructor(u);return r.copy(a),a}function Vf(r){var o=new r.constructor(r.byteLength);return new Hu(o).set(new Hu(r)),o}function KI(r,o){var u=o?Vf(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function HI(r){var o=new r.constructor(r.source,dm.exec(r));return o.lastIndex=r.lastIndex,o}function GI(r){return fs?Pt(fs.call(r)):{}}function Ep(r,o){var u=o?Vf(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function Ap(r,o){if(r!==o){var u=r!==n,a=r===null,l=r===r,m=We(r),g=o!==n,b=o===null,S=o===o,R=We(o);if(!b&&!R&&!m&&r>o||m&&g&&S&&!b&&!R||a&&g&&S||!u&&S||!l)return 1;if(!a&&!m&&!R&&r=b)return S;var R=u[a];return S*(R=="desc"?-1:1)}}return r.index-o.index}function vp(r,o,u,a){for(var l=-1,m=r.length,g=u.length,b=-1,S=o.length,R=Vt(m-g,0),E=O(S+R),v=!a;++b1?u[l-1]:n,g=l>2?u[2]:n;for(m=r.length>3&&typeof m=="function"?(l--,m):n,g&&Pe(u[0],u[1],g)&&(m=l<3?n:m,l=1),o=Pt(o);++a-1?l[m?o[g]:g]:n}}function Up(r){return lr(function(o){var u=o.length,a=u,l=on.prototype.thru;for(r&&o.reverse();a--;){var m=o[a];if(typeof m!="function")throw new rn(f);if(l&&!g&&lc(m)=="wrapper")var g=new on([],!0)}for(a=g?a:u;++a1&&dt.reverse(),E&&Sb))return!1;var R=m.get(r),E=m.get(o);if(R&&E)return R==o&&E==r;var v=-1,k=!0,D=u&mt?new ai:n;for(m.set(r,o),m.set(o,r);++v1?"& ":"")+o[a],o=o.join(u>2?", ":" "),r.replace(fS,`{ + */ca.exports;(function(t,e){(function(){var n,i="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",y=500,M="__lodash_placeholder__",A=1,N=2,C=4,B=1,mt=2,tt=1,Ft=2,pt=4,ft=8,Xt=16,Ht=32,_n=64,_e=128,Qt=256,be=512,Bn=30,bn="...",ir=800,ef=16,Qo=1,nf=2,or=3,we=1/0,tn=9007199254740991,rf=17976931348623157e292,jn=NaN,qn=4294967295,qw=qn-1,Ww=qn>>>1,Kw=[["ary",_e],["bind",tt],["bindKey",Ft],["curry",ft],["curryRight",Xt],["flip",be],["partial",Ht],["partialRight",_n],["rearg",Qt]],Wi="[object Arguments]",Eu="[object Array]",Hw="[object AsyncFunction]",Zo="[object Boolean]",Vo="[object Date]",Gw="[object DOMException]",Au="[object Error]",vu="[object Function]",um="[object GeneratorFunction]",wn="[object Map]",ts="[object Number]",Yw="[object Null]",sr="[object Object]",cm="[object Promise]",zw="[object Proxy]",es="[object RegExp]",Sn="[object Set]",ns="[object String]",Nu="[object Symbol]",Jw="[object Undefined]",rs="[object WeakMap]",Xw="[object WeakSet]",is="[object ArrayBuffer]",Ki="[object DataView]",of="[object Float32Array]",sf="[object Float64Array]",uf="[object Int8Array]",cf="[object Int16Array]",af="[object Int32Array]",ff="[object Uint8Array]",lf="[object Uint8ClampedArray]",df="[object Uint16Array]",hf="[object Uint32Array]",Qw=/\b__p \+= '';/g,Zw=/\b(__p \+=) '' \+/g,Vw=/(__e\(.*?\)|\b__t\)) \+\n'';/g,am=/&(?:amp|lt|gt|quot|#39);/g,fm=/[&<>"']/g,tS=RegExp(am.source),eS=RegExp(fm.source),nS=/<%-([\s\S]+?)%>/g,rS=/<%([\s\S]+?)%>/g,lm=/<%=([\s\S]+?)%>/g,iS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oS=/^\w*$/,sS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/[\\^$.*+?()[\]{}|]/g,uS=RegExp(mf.source),pf=/^\s+/,cS=/\s/,aS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fS=/\{\n\/\* \[wrapped with (.+)\] \*/,lS=/,? & /,dS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hS=/[()=,{}\[\]\/\s]/,mS=/\\(\\)?/g,pS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dm=/\w*$/,gS=/^[-+]0x[0-9a-f]+$/i,yS=/^0b[01]+$/i,_S=/^\[object .+?Constructor\]$/,bS=/^0o[0-7]+$/i,wS=/^(?:0|[1-9]\d*)$/,SS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cu=/($^)/,OS=/['\n\r\u2028\u2029\\]/g,ku="\\ud800-\\udfff",IS="\\u0300-\\u036f",xS="\\ufe20-\\ufe2f",FS="\\u20d0-\\u20ff",hm=IS+xS+FS,mm="\\u2700-\\u27bf",pm="a-z\\xdf-\\xf6\\xf8-\\xff",$S="\\xac\\xb1\\xd7\\xf7",PS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",MS="\\u2000-\\u206f",RS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gm="A-Z\\xc0-\\xd6\\xd8-\\xde",ym="\\ufe0e\\ufe0f",_m=$S+PS+MS+RS,gf="['’]",ES="["+ku+"]",bm="["+_m+"]",Tu="["+hm+"]",wm="\\d+",AS="["+mm+"]",Sm="["+pm+"]",Om="[^"+ku+_m+wm+mm+pm+gm+"]",yf="\\ud83c[\\udffb-\\udfff]",vS="(?:"+Tu+"|"+yf+")",Im="[^"+ku+"]",_f="(?:\\ud83c[\\udde6-\\uddff]){2}",bf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hi="["+gm+"]",xm="\\u200d",Fm="(?:"+Sm+"|"+Om+")",NS="(?:"+Hi+"|"+Om+")",$m="(?:"+gf+"(?:d|ll|m|re|s|t|ve))?",Pm="(?:"+gf+"(?:D|LL|M|RE|S|T|VE))?",Mm=vS+"?",Rm="["+ym+"]?",CS="(?:"+xm+"(?:"+[Im,_f,bf].join("|")+")"+Rm+Mm+")*",kS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Em=Rm+Mm+CS,LS="(?:"+[AS,_f,bf].join("|")+")"+Em,US="(?:"+[Im+Tu+"?",Tu,_f,bf,ES].join("|")+")",DS=RegExp(gf,"g"),BS=RegExp(Tu,"g"),wf=RegExp(yf+"(?="+yf+")|"+US+Em,"g"),jS=RegExp([Hi+"?"+Sm+"+"+$m+"(?="+[bm,Hi,"$"].join("|")+")",NS+"+"+Pm+"(?="+[bm,Hi+Fm,"$"].join("|")+")",Hi+"?"+Fm+"+"+$m,Hi+"+"+Pm,TS,kS,wm,LS].join("|"),"g"),qS=RegExp("["+xm+ku+hm+ym+"]"),WS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,KS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],HS=-1,vt={};vt[of]=vt[sf]=vt[uf]=vt[cf]=vt[af]=vt[ff]=vt[lf]=vt[df]=vt[hf]=!0,vt[Wi]=vt[Eu]=vt[is]=vt[Zo]=vt[Ki]=vt[Vo]=vt[Au]=vt[vu]=vt[wn]=vt[ts]=vt[sr]=vt[es]=vt[Sn]=vt[ns]=vt[rs]=!1;var Et={};Et[Wi]=Et[Eu]=Et[is]=Et[Ki]=Et[Zo]=Et[Vo]=Et[of]=Et[sf]=Et[uf]=Et[cf]=Et[af]=Et[wn]=Et[ts]=Et[sr]=Et[es]=Et[Sn]=Et[ns]=Et[Nu]=Et[ff]=Et[lf]=Et[df]=Et[hf]=!0,Et[Au]=Et[vu]=Et[rs]=!1;var GS={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YS={"&":"&","<":"<",">":">",'"':""","'":"'"},zS={"&":"&","<":"<",">":">",""":'"',"'":"'"},JS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},XS=parseFloat,QS=parseInt,Am=typeof Rs=="object"&&Rs&&Rs.Object===Object&&Rs,ZS=typeof self=="object"&&self&&self.Object===Object&&self,ce=Am||ZS||Function("return this")(),Sf=e&&!e.nodeType&&e,si=Sf&&!0&&t&&!t.nodeType&&t,vm=si&&si.exports===Sf,Of=vm&&Am.process,en=function(){try{var w=si&&si.require&&si.require("util").types;return w||Of&&Of.binding&&Of.binding("util")}catch{}}(),Nm=en&&en.isArrayBuffer,Cm=en&&en.isDate,km=en&&en.isMap,Tm=en&&en.isRegExp,Lm=en&&en.isSet,Um=en&&en.isTypedArray;function Be(w,$,O){switch(O.length){case 0:return w.call($);case 1:return w.call($,O[0]);case 2:return w.call($,O[0],O[1]);case 3:return w.call($,O[0],O[1],O[2])}return w.apply($,O)}function VS(w,$,O,L){for(var Y=-1,yt=w==null?0:w.length;++Y-1}function If(w,$,O){for(var L=-1,Y=w==null?0:w.length;++L-1;);return O}function Gm(w,$){for(var O=w.length;O--&&Gi($,w[O],0)>-1;);return O}function cO(w,$){for(var O=w.length,L=0;O--;)w[O]===$&&++L;return L}var aO=Pf(GS),fO=Pf(YS);function lO(w){return"\\"+JS[w]}function dO(w,$){return w==null?n:w[$]}function Yi(w){return qS.test(w)}function hO(w){return WS.test(w)}function mO(w){for(var $,O=[];!($=w.next()).done;)O.push($.value);return O}function Af(w){var $=-1,O=Array(w.size);return w.forEach(function(L,Y){O[++$]=[Y,L]}),O}function Ym(w,$){return function(O){return w($(O))}}function Nr(w,$){for(var O=-1,L=w.length,Y=0,yt=[];++O-1}function eI(r,o){var u=this.__data__,a=tc(u,r);return a<0?(++this.size,u.push([r,o])):u[a][1]=o,this}ur.prototype.clear=QO,ur.prototype.delete=ZO,ur.prototype.get=VO,ur.prototype.has=tI,ur.prototype.set=eI;function cr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o=o?r:o)),r}function sn(r,o,u,a,l,m){var g,b=o&A,S=o&N,R=o&C;if(u&&(g=l?u(r,a,l,m):u(r)),g!==n)return g;if(!Tt(r))return r;var E=J(r);if(E){if(g=ox(r),!b)return Ce(r,g)}else{var v=Oe(r),k=v==vu||v==um;if(Dr(r))return Rp(r,b);if(v==sr||v==Wi||k&&!l){if(g=S||k?{}:zp(r),!b)return S?zI(r,yI(g,r)):YI(r,op(g,r))}else{if(!Et[v])return l?r:{};g=sx(r,v,b)}}m||(m=new In);var D=m.get(r);if(D)return D;m.set(r,g),Ig(r)?r.forEach(function(W){g.add(sn(W,o,u,W,r,m))}):Sg(r)&&r.forEach(function(W,it){g.set(it,sn(W,o,u,it,r,m))});var q=R?S?rl:nl:S?Te:ne,V=E?n:q(r);return nn(V||r,function(W,it){V&&(it=W,W=r[it]),ls(g,it,sn(W,o,u,it,r,m))}),g}function _I(r){var o=ne(r);return function(u){return sp(u,r,o)}}function sp(r,o,u){var a=u.length;if(r==null)return!a;for(r=Pt(r);a--;){var l=u[a],m=o[l],g=r[l];if(g===n&&!(l in r)||!m(g))return!1}return!0}function up(r,o,u){if(typeof r!="function")throw new rn(f);return _s(function(){r.apply(n,u)},o)}function ds(r,o,u,a){var l=-1,m=Lu,g=!0,b=r.length,S=[],R=o.length;if(!b)return S;u&&(o=Ct(o,je(u))),a?(m=If,g=!1):o.length>=s&&(m=os,g=!1,o=new ai(o));t:for(;++ll?0:l+u),a=a===n||a>l?l:Q(a),a<0&&(a+=l),a=u>a?0:Fg(a);u0&&u(b)?o>1?ae(b,o-1,u,a,l):vr(l,b):a||(l[l.length]=b)}return l}var Uf=kp(),fp=kp(!0);function Wn(r,o){return r&&Uf(r,o,ne)}function Df(r,o){return r&&fp(r,o,ne)}function nc(r,o){return Ar(o,function(u){return hr(r[u])})}function li(r,o){o=Lr(o,r);for(var u=0,a=o.length;r!=null&&uo}function SI(r,o){return r!=null&&St.call(r,o)}function OI(r,o){return r!=null&&o in Pt(r)}function II(r,o,u){return r>=Se(o,u)&&r=120&&E.length>=120)?new ai(g&&E):n}E=r[0];var v=-1,k=b[0];t:for(;++v-1;)b!==r&&Yu.call(b,S,1),Yu.call(r,S,1);return r}function Sp(r,o){for(var u=r?o.length:0,a=u-1;u--;){var l=o[u];if(u==a||l!==m){var m=l;dr(l)?Yu.call(r,l,1):Jf(r,l)}}return r}function Gf(r,o){return r+Xu(ep()*(o-r+1))}function TI(r,o,u,a){for(var l=-1,m=Vt(Ju((o-r)/(u||1)),0),g=O(m);m--;)g[a?m:++l]=r,r+=u;return g}function Yf(r,o){var u="";if(!r||o<1||o>tn)return u;do o%2&&(u+=r),o=Xu(o/2),o&&(r+=r);while(o);return u}function et(r,o){return fl(Qp(r,o,Le),r+"")}function LI(r){return ip(io(r))}function UI(r,o){var u=io(r);return hc(u,fi(o,0,u.length))}function ps(r,o,u,a){if(!Tt(r))return r;o=Lr(o,r);for(var l=-1,m=o.length,g=m-1,b=r;b!=null&&++ll?0:l+o),u=u>l?l:u,u<0&&(u+=l),l=o>u?0:u-o>>>0,o>>>=0;for(var m=O(l);++a>>1,g=r[m];g!==null&&!We(g)&&(u?g<=o:g=s){var R=o?null:ZI(r);if(R)return Du(R);g=!1,l=os,S=new ai}else S=o?[]:b;t:for(;++a=a?r:un(r,o,u)}var Mp=RO||function(r){return ce.clearTimeout(r)};function Rp(r,o){if(o)return r.slice();var u=r.length,a=Xm?Xm(u):new r.constructor(u);return r.copy(a),a}function Vf(r){var o=new r.constructor(r.byteLength);return new Hu(o).set(new Hu(r)),o}function WI(r,o){var u=o?Vf(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function KI(r){var o=new r.constructor(r.source,dm.exec(r));return o.lastIndex=r.lastIndex,o}function HI(r){return fs?Pt(fs.call(r)):{}}function Ep(r,o){var u=o?Vf(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function Ap(r,o){if(r!==o){var u=r!==n,a=r===null,l=r===r,m=We(r),g=o!==n,b=o===null,S=o===o,R=We(o);if(!b&&!R&&!m&&r>o||m&&g&&S&&!b&&!R||a&&g&&S||!u&&S||!l)return 1;if(!a&&!m&&!R&&r=b)return S;var R=u[a];return S*(R=="desc"?-1:1)}}return r.index-o.index}function vp(r,o,u,a){for(var l=-1,m=r.length,g=u.length,b=-1,S=o.length,R=Vt(m-g,0),E=O(S+R),v=!a;++b1?u[l-1]:n,g=l>2?u[2]:n;for(m=r.length>3&&typeof m=="function"?(l--,m):n,g&&Pe(u[0],u[1],g)&&(m=l<3?n:m,l=1),o=Pt(o);++a-1?l[m?o[g]:g]:n}}function Up(r){return lr(function(o){var u=o.length,a=u,l=on.prototype.thru;for(r&&o.reverse();a--;){var m=o[a];if(typeof m!="function")throw new rn(f);if(l&&!g&&lc(m)=="wrapper")var g=new on([],!0)}for(a=g?a:u;++a1&&dt.reverse(),E&&Sb))return!1;var R=m.get(r),E=m.get(o);if(R&&E)return R==o&&E==r;var v=-1,k=!0,D=u&mt?new ai:n;for(m.set(r,o),m.set(o,r);++v1?"& ":"")+o[a],o=o.join(u>2?", ":" "),r.replace(aS,`{ /* [wrapped with `+o+`] */ -`)}function ax(r){return J(r)||mi(r)||!!(Vm&&r&&r[Vm])}function dr(r,o){var u=typeof r;return o=o??tn,!!o&&(u=="number"||u!="symbol"&&SS.test(r))&&r>-1&&r%1==0&&r0){if(++o>=ir)return arguments[0]}else o=0;return r.apply(n,arguments)}}function hc(r,o){var u=-1,a=r.length,l=a-1;for(o=o===n?a:o;++u1?r[o-1]:n;return u=typeof u=="function"?(r.pop(),u):n,ag(r,u)});function fg(r){var o=h(r);return o.__chain__=!0,o}function wF(r,o){return o(r),r}function mc(r,o){return o(r)}var SF=lr(function(r){var o=r.length,u=o?r[0]:0,a=this.__wrapped__,l=function(m){return Lf(m,r)};return o>1||this.__actions__.length||!(a instanceof lt)||!dr(u)?this.thru(l):(a=a.slice(u,+u+(o?1:0)),a.__actions__.push({func:mc,args:[l],thisArg:n}),new on(a,this.__chain__).thru(function(m){return o&&!m.length&&m.push(n),m}))});function OF(){return fg(this)}function IF(){return new on(this.value(),this.__chain__)}function xF(){this.__values__===n&&(this.__values__=xg(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function FF(){return this}function $F(r){for(var o,u=this;u instanceof Vu;){var a=rg(u);a.__index__=0,a.__values__=n,o?l.__wrapped__=a:o=a;var l=a;u=u.__wrapped__}return l.__wrapped__=r,o}function PF(){var r=this.__wrapped__;if(r instanceof lt){var o=r;return this.__actions__.length&&(o=new lt(this)),o=o.reverse(),o.__actions__.push({func:mc,args:[ll],thisArg:n}),new on(o,this.__chain__)}return this.thru(ll)}function MF(){return $p(this.__wrapped__,this.__actions__)}var RF=sc(function(r,o,u){St.call(r,u)?++r[u]:ar(r,u,1)});function EF(r,o,u){var a=J(r)?Dm:wI;return u&&Pe(r,o,u)&&(o=n),a(r,j(o,3))}function AF(r,o){var u=J(r)?Ar:ap;return u(r,j(o,3))}var vF=Lp(ig),NF=Lp(og);function CF(r,o){return ae(pc(r,o),1)}function kF(r,o){return ae(pc(r,o),we)}function TF(r,o,u){return u=u===n?1:Q(u),ae(pc(r,o),u)}function lg(r,o){var u=J(r)?nn:kr;return u(r,j(o,3))}function dg(r,o){var u=J(r)?eO:cp;return u(r,j(o,3))}var LF=sc(function(r,o,u){St.call(r,u)?r[u].push(o):ar(r,u,[o])});function UF(r,o,u,a){r=ke(r)?r:io(r),u=u&&!a?Q(u):0;var l=r.length;return u<0&&(u=Vt(l+u,0)),wc(r)?u<=l&&r.indexOf(o,u)>-1:!!l&&Gi(r,o,u)>-1}var DF=et(function(r,o,u){var a=-1,l=typeof o=="function",m=ke(r)?O(r.length):[];return kr(r,function(g){m[++a]=l?Be(o,g,u):hs(g,o,u)}),m}),BF=sc(function(r,o,u){ar(r,u,o)});function pc(r,o){var u=J(r)?Ct:pp;return u(r,j(o,3))}function jF(r,o,u,a){return r==null?[]:(J(o)||(o=o==null?[]:[o]),u=a?n:u,J(u)||(u=u==null?[]:[u]),bp(r,o,u))}var qF=sc(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function WF(r,o,u){var a=J(r)?xf:Wm,l=arguments.length<3;return a(r,j(o,4),u,l,kr)}function KF(r,o,u){var a=J(r)?nO:Wm,l=arguments.length<3;return a(r,j(o,4),u,l,cp)}function HF(r,o){var u=J(r)?Ar:ap;return u(r,_c(j(o,3)))}function GF(r){var o=J(r)?ip:UI;return o(r)}function YF(r,o,u){(u?Pe(r,o,u):o===n)?o=1:o=Q(o);var a=J(r)?pI:DI;return a(r,o)}function zF(r){var o=J(r)?gI:jI;return o(r)}function JF(r){if(r==null)return 0;if(ke(r))return wc(r)?zi(r):r.length;var o=Oe(r);return o==wn||o==Sn?r.size:Wf(r).length}function XF(r,o,u){var a=J(r)?Ff:qI;return u&&Pe(r,o,u)&&(o=n),a(r,j(o,3))}var QF=et(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Pe(r,o[0],o[1])?o=[]:u>2&&Pe(o[0],o[1],o[2])&&(o=[o[0]]),bp(r,ae(o,1),[])}),gc=AO||function(){return ce.Date.now()};function ZF(r,o){if(typeof o!="function")throw new rn(f);return r=Q(r),function(){if(--r<1)return o.apply(this,arguments)}}function hg(r,o,u){return o=u?n:o,o=r&&o==null?r.length:o,fr(r,_e,n,n,n,n,o)}function mg(r,o){var u;if(typeof o!="function")throw new rn(f);return r=Q(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=n),u}}var hl=et(function(r,o,u){var a=tt;if(u.length){var l=Nr(u,no(hl));a|=Ht}return fr(r,a,o,u,l)}),pg=et(function(r,o,u){var a=tt|Ft;if(u.length){var l=Nr(u,no(pg));a|=Ht}return fr(o,a,r,u,l)});function gg(r,o,u){o=u?n:o;var a=fr(r,ft,n,n,n,n,n,o);return a.placeholder=gg.placeholder,a}function yg(r,o,u){o=u?n:o;var a=fr(r,Xt,n,n,n,n,n,o);return a.placeholder=yg.placeholder,a}function _g(r,o,u){var a,l,m,g,b,S,R=0,E=!1,v=!1,k=!0;if(typeof r!="function")throw new rn(f);o=an(o)||0,Tt(u)&&(E=!!u.leading,v="maxWait"in u,m=v?Vt(an(u.maxWait)||0,o):m,k="trailing"in u?!!u.trailing:k);function D(Bt){var Fn=a,pr=l;return a=l=n,R=Bt,g=r.apply(pr,Fn),g}function q(Bt){return R=Bt,b=_s(it,o),E?D(Bt):g}function V(Bt){var Fn=Bt-S,pr=Bt-R,Lg=o-Fn;return v?Se(Lg,m-pr):Lg}function W(Bt){var Fn=Bt-S,pr=Bt-R;return S===n||Fn>=o||Fn<0||v&&pr>=m}function it(){var Bt=gc();if(W(Bt))return dt(Bt);b=_s(it,V(Bt))}function dt(Bt){return b=n,k&&a?D(Bt):(a=l=n,g)}function Ke(){b!==n&&Mp(b),R=0,a=S=l=b=n}function Me(){return b===n?g:dt(gc())}function He(){var Bt=gc(),Fn=W(Bt);if(a=arguments,l=this,S=Bt,Fn){if(b===n)return q(S);if(v)return Mp(b),b=_s(it,o),D(S)}return b===n&&(b=_s(it,o)),g}return He.cancel=Ke,He.flush=Me,He}var VF=et(function(r,o){return up(r,1,o)}),t$=et(function(r,o,u){return up(r,an(o)||0,u)});function e$(r){return fr(r,be)}function yc(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new rn(f);var u=function(){var a=arguments,l=o?o.apply(this,a):a[0],m=u.cache;if(m.has(l))return m.get(l);var g=r.apply(this,a);return u.cache=m.set(l,g)||m,g};return u.cache=new(yc.Cache||cr),u}yc.Cache=cr;function _c(r){if(typeof r!="function")throw new rn(f);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function n$(r){return mg(2,r)}var r$=WI(function(r,o){o=o.length==1&&J(o[0])?Ct(o[0],je(j())):Ct(ae(o,1),je(j()));var u=o.length;return et(function(a){for(var l=-1,m=Se(a.length,u);++l=o}),mi=dp(function(){return arguments}())?dp:function(r){return Ut(r)&&St.call(r,"callee")&&!Zm.call(r,"callee")},J=O.isArray,_$=Nm?je(Nm):$I;function ke(r){return r!=null&&bc(r.length)&&!hr(r)}function Dt(r){return Ut(r)&&ke(r)}function b$(r){return r===!0||r===!1||Ut(r)&&$e(r)==Zo}var Dr=NO||Fl,w$=Cm?je(Cm):PI;function S$(r){return Ut(r)&&r.nodeType===1&&!bs(r)}function O$(r){if(r==null)return!0;if(ke(r)&&(J(r)||typeof r=="string"||typeof r.splice=="function"||Dr(r)||ro(r)||mi(r)))return!r.length;var o=Oe(r);if(o==wn||o==Sn)return!r.size;if(ys(r))return!Wf(r).length;for(var u in r)if(St.call(r,u))return!1;return!0}function I$(r,o){return ms(r,o)}function x$(r,o,u){u=typeof u=="function"?u:n;var a=u?u(r,o):n;return a===n?ms(r,o,n,u):!!a}function pl(r){if(!Ut(r))return!1;var o=$e(r);return o==Au||o==Yw||typeof r.message=="string"&&typeof r.name=="string"&&!bs(r)}function F$(r){return typeof r=="number"&&tp(r)}function hr(r){if(!Tt(r))return!1;var o=$e(r);return o==vu||o==um||o==Gw||o==Jw}function wg(r){return typeof r=="number"&&r==Q(r)}function bc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=tn}function Tt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function Ut(r){return r!=null&&typeof r=="object"}var Sg=km?je(km):RI;function $$(r,o){return r===o||qf(r,o,ol(o))}function P$(r,o,u){return u=typeof u=="function"?u:n,qf(r,o,ol(o),u)}function M$(r){return Og(r)&&r!=+r}function R$(r){if(dx(r))throw new Y(c);return hp(r)}function E$(r){return r===null}function A$(r){return r==null}function Og(r){return typeof r=="number"||Ut(r)&&$e(r)==ts}function bs(r){if(!Ut(r)||$e(r)!=sr)return!1;var o=Gu(r);if(o===null)return!0;var u=St.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&qu.call(u)==PO}var gl=Tm?je(Tm):EI;function v$(r){return wg(r)&&r>=-tn&&r<=tn}var Ig=Lm?je(Lm):AI;function wc(r){return typeof r=="string"||!J(r)&&Ut(r)&&$e(r)==ns}function We(r){return typeof r=="symbol"||Ut(r)&&$e(r)==Nu}var ro=Um?je(Um):vI;function N$(r){return r===n}function C$(r){return Ut(r)&&Oe(r)==rs}function k$(r){return Ut(r)&&$e(r)==Qw}var T$=fc(Kf),L$=fc(function(r,o){return r<=o});function xg(r){if(!r)return[];if(ke(r))return wc(r)?On(r):Ce(r);if(ss&&r[ss])return pO(r[ss]());var o=Oe(r),u=o==wn?Af:o==Sn?Du:io;return u(r)}function mr(r){if(!r)return r===0?r:0;if(r=an(r),r===we||r===-we){var o=r<0?-1:1;return o*rf}return r===r?r:0}function Q(r){var o=mr(r),u=o%1;return o===o?u?o-u:o:0}function Fg(r){return r?fi(Q(r),0,qn):0}function an(r){if(typeof r=="number")return r;if(We(r))return jn;if(Tt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Tt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Km(r);var u=_S.test(r);return u||wS.test(r)?ZS(r.slice(2),u?2:8):yS.test(r)?jn:+r}function $g(r){return Kn(r,Te(r))}function U$(r){return r?fi(Q(r),-tn,tn):r===0?r:0}function wt(r){return r==null?"":qe(r)}var D$=to(function(r,o){if(ys(o)||ke(o)){Kn(o,ne(o),r);return}for(var u in o)St.call(o,u)&&ls(r,u,o[u])}),Pg=to(function(r,o){Kn(o,Te(o),r)}),Sc=to(function(r,o,u,a){Kn(o,Te(o),r,a)}),B$=to(function(r,o,u,a){Kn(o,ne(o),r,a)}),j$=lr(Lf);function q$(r,o){var u=Vi(r);return o==null?u:op(u,o)}var W$=et(function(r,o){r=Pt(r);var u=-1,a=o.length,l=a>2?o[2]:n;for(l&&Pe(o[0],o[1],l)&&(a=1);++u1),m}),Kn(r,rl(r),u),a&&(u=sn(u,A|N|C,tx));for(var l=o.length;l--;)Jf(u,o[l]);return u});function uP(r,o){return Rg(r,_c(j(o)))}var cP=lr(function(r,o){return r==null?{}:kI(r,o)});function Rg(r,o){if(r==null)return{};var u=Ct(rl(r),function(a){return[a]});return o=j(o),wp(r,u,function(a,l){return o(a,l[0])})}function aP(r,o,u){o=Lr(o,r);var a=-1,l=o.length;for(l||(l=1,r=n);++ao){var a=r;r=o,o=a}if(u||r%1||o%1){var l=ep();return Se(r+l*(o-r+QS("1e-"+((l+"").length-1))),o)}return Gf(r,o)}var wP=eo(function(r,o,u){return o=o.toLowerCase(),r+(u?vg(o):o)});function vg(r){return bl(wt(r).toLowerCase())}function Ng(r){return r=wt(r),r&&r.replace(OS,fO).replace(jS,"")}function SP(r,o,u){r=wt(r),o=qe(o);var a=r.length;u=u===n?a:fi(Q(u),0,a);var l=u;return u-=o.length,u>=0&&r.slice(u,l)==o}function OP(r){return r=wt(r),r&&nS.test(r)?r.replace(fm,lO):r}function IP(r){return r=wt(r),r&&cS.test(r)?r.replace(mf,"\\$&"):r}var xP=eo(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),FP=eo(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),$P=Tp("toLowerCase");function PP(r,o,u){r=wt(r),o=Q(o);var a=o?zi(r):0;if(!o||a>=o)return r;var l=(o-a)/2;return ac(Xu(l),u)+r+ac(Ju(l),u)}function MP(r,o,u){r=wt(r),o=Q(o);var a=o?zi(r):0;return o&&a>>0,u?(r=wt(r),r&&(typeof o=="string"||o!=null&&!gl(o))&&(o=qe(o),!o&&Yi(r))?Ur(On(r),0,u):r.split(o,u)):[]}var kP=eo(function(r,o,u){return r+(u?" ":"")+bl(o)});function TP(r,o,u){return r=wt(r),u=u==null?0:fi(Q(u),0,r.length),o=qe(o),r.slice(u,u+o.length)==o}function LP(r,o,u){var a=h.templateSettings;u&&Pe(r,o,u)&&(o=n),r=wt(r),o=Sc({},o,a,Wp);var l=Sc({},o.imports,a.imports,Wp),m=ne(l),g=Ef(l,m),b,S,R=0,E=o.interpolate||Cu,v="__p += '",k=vf((o.escape||Cu).source+"|"+E.source+"|"+(E===lm?gS:Cu).source+"|"+(o.evaluate||Cu).source+"|$","g"),D="//# sourceURL="+(St.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++GS+"]")+` -`;r.replace(k,function(W,it,dt,Ke,Me,He){return dt||(dt=Ke),v+=r.slice(R,He).replace(IS,dO),it&&(b=!0,v+=`' + +`)}function cx(r){return J(r)||mi(r)||!!(Vm&&r&&r[Vm])}function dr(r,o){var u=typeof r;return o=o??tn,!!o&&(u=="number"||u!="symbol"&&wS.test(r))&&r>-1&&r%1==0&&r0){if(++o>=ir)return arguments[0]}else o=0;return r.apply(n,arguments)}}function hc(r,o){var u=-1,a=r.length,l=a-1;for(o=o===n?a:o;++u1?r[o-1]:n;return u=typeof u=="function"?(r.pop(),u):n,ag(r,u)});function fg(r){var o=h(r);return o.__chain__=!0,o}function bF(r,o){return o(r),r}function mc(r,o){return o(r)}var wF=lr(function(r){var o=r.length,u=o?r[0]:0,a=this.__wrapped__,l=function(m){return Lf(m,r)};return o>1||this.__actions__.length||!(a instanceof lt)||!dr(u)?this.thru(l):(a=a.slice(u,+u+(o?1:0)),a.__actions__.push({func:mc,args:[l],thisArg:n}),new on(a,this.__chain__).thru(function(m){return o&&!m.length&&m.push(n),m}))});function SF(){return fg(this)}function OF(){return new on(this.value(),this.__chain__)}function IF(){this.__values__===n&&(this.__values__=xg(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function xF(){return this}function FF(r){for(var o,u=this;u instanceof Vu;){var a=rg(u);a.__index__=0,a.__values__=n,o?l.__wrapped__=a:o=a;var l=a;u=u.__wrapped__}return l.__wrapped__=r,o}function $F(){var r=this.__wrapped__;if(r instanceof lt){var o=r;return this.__actions__.length&&(o=new lt(this)),o=o.reverse(),o.__actions__.push({func:mc,args:[ll],thisArg:n}),new on(o,this.__chain__)}return this.thru(ll)}function PF(){return $p(this.__wrapped__,this.__actions__)}var MF=sc(function(r,o,u){St.call(r,u)?++r[u]:ar(r,u,1)});function RF(r,o,u){var a=J(r)?Dm:bI;return u&&Pe(r,o,u)&&(o=n),a(r,j(o,3))}function EF(r,o){var u=J(r)?Ar:ap;return u(r,j(o,3))}var AF=Lp(ig),vF=Lp(og);function NF(r,o){return ae(pc(r,o),1)}function CF(r,o){return ae(pc(r,o),we)}function kF(r,o,u){return u=u===n?1:Q(u),ae(pc(r,o),u)}function lg(r,o){var u=J(r)?nn:kr;return u(r,j(o,3))}function dg(r,o){var u=J(r)?tO:cp;return u(r,j(o,3))}var TF=sc(function(r,o,u){St.call(r,u)?r[u].push(o):ar(r,u,[o])});function LF(r,o,u,a){r=ke(r)?r:io(r),u=u&&!a?Q(u):0;var l=r.length;return u<0&&(u=Vt(l+u,0)),wc(r)?u<=l&&r.indexOf(o,u)>-1:!!l&&Gi(r,o,u)>-1}var UF=et(function(r,o,u){var a=-1,l=typeof o=="function",m=ke(r)?O(r.length):[];return kr(r,function(g){m[++a]=l?Be(o,g,u):hs(g,o,u)}),m}),DF=sc(function(r,o,u){ar(r,u,o)});function pc(r,o){var u=J(r)?Ct:pp;return u(r,j(o,3))}function BF(r,o,u,a){return r==null?[]:(J(o)||(o=o==null?[]:[o]),u=a?n:u,J(u)||(u=u==null?[]:[u]),bp(r,o,u))}var jF=sc(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function qF(r,o,u){var a=J(r)?xf:Wm,l=arguments.length<3;return a(r,j(o,4),u,l,kr)}function WF(r,o,u){var a=J(r)?eO:Wm,l=arguments.length<3;return a(r,j(o,4),u,l,cp)}function KF(r,o){var u=J(r)?Ar:ap;return u(r,_c(j(o,3)))}function HF(r){var o=J(r)?ip:LI;return o(r)}function GF(r,o,u){(u?Pe(r,o,u):o===n)?o=1:o=Q(o);var a=J(r)?mI:UI;return a(r,o)}function YF(r){var o=J(r)?pI:BI;return o(r)}function zF(r){if(r==null)return 0;if(ke(r))return wc(r)?zi(r):r.length;var o=Oe(r);return o==wn||o==Sn?r.size:Wf(r).length}function JF(r,o,u){var a=J(r)?Ff:jI;return u&&Pe(r,o,u)&&(o=n),a(r,j(o,3))}var XF=et(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Pe(r,o[0],o[1])?o=[]:u>2&&Pe(o[0],o[1],o[2])&&(o=[o[0]]),bp(r,ae(o,1),[])}),gc=EO||function(){return ce.Date.now()};function QF(r,o){if(typeof o!="function")throw new rn(f);return r=Q(r),function(){if(--r<1)return o.apply(this,arguments)}}function hg(r,o,u){return o=u?n:o,o=r&&o==null?r.length:o,fr(r,_e,n,n,n,n,o)}function mg(r,o){var u;if(typeof o!="function")throw new rn(f);return r=Q(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=n),u}}var hl=et(function(r,o,u){var a=tt;if(u.length){var l=Nr(u,no(hl));a|=Ht}return fr(r,a,o,u,l)}),pg=et(function(r,o,u){var a=tt|Ft;if(u.length){var l=Nr(u,no(pg));a|=Ht}return fr(o,a,r,u,l)});function gg(r,o,u){o=u?n:o;var a=fr(r,ft,n,n,n,n,n,o);return a.placeholder=gg.placeholder,a}function yg(r,o,u){o=u?n:o;var a=fr(r,Xt,n,n,n,n,n,o);return a.placeholder=yg.placeholder,a}function _g(r,o,u){var a,l,m,g,b,S,R=0,E=!1,v=!1,k=!0;if(typeof r!="function")throw new rn(f);o=an(o)||0,Tt(u)&&(E=!!u.leading,v="maxWait"in u,m=v?Vt(an(u.maxWait)||0,o):m,k="trailing"in u?!!u.trailing:k);function D(Bt){var Fn=a,pr=l;return a=l=n,R=Bt,g=r.apply(pr,Fn),g}function q(Bt){return R=Bt,b=_s(it,o),E?D(Bt):g}function V(Bt){var Fn=Bt-S,pr=Bt-R,Lg=o-Fn;return v?Se(Lg,m-pr):Lg}function W(Bt){var Fn=Bt-S,pr=Bt-R;return S===n||Fn>=o||Fn<0||v&&pr>=m}function it(){var Bt=gc();if(W(Bt))return dt(Bt);b=_s(it,V(Bt))}function dt(Bt){return b=n,k&&a?D(Bt):(a=l=n,g)}function Ke(){b!==n&&Mp(b),R=0,a=S=l=b=n}function Me(){return b===n?g:dt(gc())}function He(){var Bt=gc(),Fn=W(Bt);if(a=arguments,l=this,S=Bt,Fn){if(b===n)return q(S);if(v)return Mp(b),b=_s(it,o),D(S)}return b===n&&(b=_s(it,o)),g}return He.cancel=Ke,He.flush=Me,He}var ZF=et(function(r,o){return up(r,1,o)}),VF=et(function(r,o,u){return up(r,an(o)||0,u)});function t$(r){return fr(r,be)}function yc(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new rn(f);var u=function(){var a=arguments,l=o?o.apply(this,a):a[0],m=u.cache;if(m.has(l))return m.get(l);var g=r.apply(this,a);return u.cache=m.set(l,g)||m,g};return u.cache=new(yc.Cache||cr),u}yc.Cache=cr;function _c(r){if(typeof r!="function")throw new rn(f);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function e$(r){return mg(2,r)}var n$=qI(function(r,o){o=o.length==1&&J(o[0])?Ct(o[0],je(j())):Ct(ae(o,1),je(j()));var u=o.length;return et(function(a){for(var l=-1,m=Se(a.length,u);++l=o}),mi=dp(function(){return arguments}())?dp:function(r){return Ut(r)&&St.call(r,"callee")&&!Zm.call(r,"callee")},J=O.isArray,y$=Nm?je(Nm):FI;function ke(r){return r!=null&&bc(r.length)&&!hr(r)}function Dt(r){return Ut(r)&&ke(r)}function _$(r){return r===!0||r===!1||Ut(r)&&$e(r)==Zo}var Dr=vO||Fl,b$=Cm?je(Cm):$I;function w$(r){return Ut(r)&&r.nodeType===1&&!bs(r)}function S$(r){if(r==null)return!0;if(ke(r)&&(J(r)||typeof r=="string"||typeof r.splice=="function"||Dr(r)||ro(r)||mi(r)))return!r.length;var o=Oe(r);if(o==wn||o==Sn)return!r.size;if(ys(r))return!Wf(r).length;for(var u in r)if(St.call(r,u))return!1;return!0}function O$(r,o){return ms(r,o)}function I$(r,o,u){u=typeof u=="function"?u:n;var a=u?u(r,o):n;return a===n?ms(r,o,n,u):!!a}function pl(r){if(!Ut(r))return!1;var o=$e(r);return o==Au||o==Gw||typeof r.message=="string"&&typeof r.name=="string"&&!bs(r)}function x$(r){return typeof r=="number"&&tp(r)}function hr(r){if(!Tt(r))return!1;var o=$e(r);return o==vu||o==um||o==Hw||o==zw}function wg(r){return typeof r=="number"&&r==Q(r)}function bc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=tn}function Tt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function Ut(r){return r!=null&&typeof r=="object"}var Sg=km?je(km):MI;function F$(r,o){return r===o||qf(r,o,ol(o))}function $$(r,o,u){return u=typeof u=="function"?u:n,qf(r,o,ol(o),u)}function P$(r){return Og(r)&&r!=+r}function M$(r){if(lx(r))throw new Y(c);return hp(r)}function R$(r){return r===null}function E$(r){return r==null}function Og(r){return typeof r=="number"||Ut(r)&&$e(r)==ts}function bs(r){if(!Ut(r)||$e(r)!=sr)return!1;var o=Gu(r);if(o===null)return!0;var u=St.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&qu.call(u)==$O}var gl=Tm?je(Tm):RI;function A$(r){return wg(r)&&r>=-tn&&r<=tn}var Ig=Lm?je(Lm):EI;function wc(r){return typeof r=="string"||!J(r)&&Ut(r)&&$e(r)==ns}function We(r){return typeof r=="symbol"||Ut(r)&&$e(r)==Nu}var ro=Um?je(Um):AI;function v$(r){return r===n}function N$(r){return Ut(r)&&Oe(r)==rs}function C$(r){return Ut(r)&&$e(r)==Xw}var k$=fc(Kf),T$=fc(function(r,o){return r<=o});function xg(r){if(!r)return[];if(ke(r))return wc(r)?On(r):Ce(r);if(ss&&r[ss])return mO(r[ss]());var o=Oe(r),u=o==wn?Af:o==Sn?Du:io;return u(r)}function mr(r){if(!r)return r===0?r:0;if(r=an(r),r===we||r===-we){var o=r<0?-1:1;return o*rf}return r===r?r:0}function Q(r){var o=mr(r),u=o%1;return o===o?u?o-u:o:0}function Fg(r){return r?fi(Q(r),0,qn):0}function an(r){if(typeof r=="number")return r;if(We(r))return jn;if(Tt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Tt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Km(r);var u=yS.test(r);return u||bS.test(r)?QS(r.slice(2),u?2:8):gS.test(r)?jn:+r}function $g(r){return Kn(r,Te(r))}function L$(r){return r?fi(Q(r),-tn,tn):r===0?r:0}function wt(r){return r==null?"":qe(r)}var U$=to(function(r,o){if(ys(o)||ke(o)){Kn(o,ne(o),r);return}for(var u in o)St.call(o,u)&&ls(r,u,o[u])}),Pg=to(function(r,o){Kn(o,Te(o),r)}),Sc=to(function(r,o,u,a){Kn(o,Te(o),r,a)}),D$=to(function(r,o,u,a){Kn(o,ne(o),r,a)}),B$=lr(Lf);function j$(r,o){var u=Vi(r);return o==null?u:op(u,o)}var q$=et(function(r,o){r=Pt(r);var u=-1,a=o.length,l=a>2?o[2]:n;for(l&&Pe(o[0],o[1],l)&&(a=1);++u1),m}),Kn(r,rl(r),u),a&&(u=sn(u,A|N|C,VI));for(var l=o.length;l--;)Jf(u,o[l]);return u});function sP(r,o){return Rg(r,_c(j(o)))}var uP=lr(function(r,o){return r==null?{}:CI(r,o)});function Rg(r,o){if(r==null)return{};var u=Ct(rl(r),function(a){return[a]});return o=j(o),wp(r,u,function(a,l){return o(a,l[0])})}function cP(r,o,u){o=Lr(o,r);var a=-1,l=o.length;for(l||(l=1,r=n);++ao){var a=r;r=o,o=a}if(u||r%1||o%1){var l=ep();return Se(r+l*(o-r+XS("1e-"+((l+"").length-1))),o)}return Gf(r,o)}var bP=eo(function(r,o,u){return o=o.toLowerCase(),r+(u?vg(o):o)});function vg(r){return bl(wt(r).toLowerCase())}function Ng(r){return r=wt(r),r&&r.replace(SS,aO).replace(BS,"")}function wP(r,o,u){r=wt(r),o=qe(o);var a=r.length;u=u===n?a:fi(Q(u),0,a);var l=u;return u-=o.length,u>=0&&r.slice(u,l)==o}function SP(r){return r=wt(r),r&&eS.test(r)?r.replace(fm,fO):r}function OP(r){return r=wt(r),r&&uS.test(r)?r.replace(mf,"\\$&"):r}var IP=eo(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),xP=eo(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),FP=Tp("toLowerCase");function $P(r,o,u){r=wt(r),o=Q(o);var a=o?zi(r):0;if(!o||a>=o)return r;var l=(o-a)/2;return ac(Xu(l),u)+r+ac(Ju(l),u)}function PP(r,o,u){r=wt(r),o=Q(o);var a=o?zi(r):0;return o&&a>>0,u?(r=wt(r),r&&(typeof o=="string"||o!=null&&!gl(o))&&(o=qe(o),!o&&Yi(r))?Ur(On(r),0,u):r.split(o,u)):[]}var CP=eo(function(r,o,u){return r+(u?" ":"")+bl(o)});function kP(r,o,u){return r=wt(r),u=u==null?0:fi(Q(u),0,r.length),o=qe(o),r.slice(u,u+o.length)==o}function TP(r,o,u){var a=h.templateSettings;u&&Pe(r,o,u)&&(o=n),r=wt(r),o=Sc({},o,a,Wp);var l=Sc({},o.imports,a.imports,Wp),m=ne(l),g=Ef(l,m),b,S,R=0,E=o.interpolate||Cu,v="__p += '",k=vf((o.escape||Cu).source+"|"+E.source+"|"+(E===lm?pS:Cu).source+"|"+(o.evaluate||Cu).source+"|$","g"),D="//# sourceURL="+(St.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++HS+"]")+` +`;r.replace(k,function(W,it,dt,Ke,Me,He){return dt||(dt=Ke),v+=r.slice(R,He).replace(OS,lO),it&&(b=!0,v+=`' + __e(`+it+`) + '`),Me&&(S=!0,v+=`'; `+Me+`; @@ -32,10 +32,10 @@ __p += '`),dt&&(v+=`' + `;var q=St.call(o,"variable")&&o.variable;if(!q)v=`with (obj) { `+v+` } -`;else if(mS.test(q))throw new Y(d);v=(S?v.replace(Zw,""):v).replace(Vw,"$1").replace(tS,"$1;"),v="function("+(q||"obj")+`) { +`;else if(hS.test(q))throw new Y(d);v=(S?v.replace(Qw,""):v).replace(Zw,"$1").replace(Vw,"$1;"),v="function("+(q||"obj")+`) { `+(q?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(S?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+v+`return __p -}`;var V=kg(function(){return yt(m,D+"return "+v).apply(n,g)});if(V.source=v,pl(V))throw V;return V}function UP(r){return wt(r).toLowerCase()}function DP(r){return wt(r).toUpperCase()}function BP(r,o,u){if(r=wt(r),r&&(u||o===n))return Km(r);if(!r||!(o=qe(o)))return r;var a=On(r),l=On(o),m=Hm(a,l),g=Gm(a,l)+1;return Ur(a,m,g).join("")}function jP(r,o,u){if(r=wt(r),r&&(u||o===n))return r.slice(0,zm(r)+1);if(!r||!(o=qe(o)))return r;var a=On(r),l=Gm(a,On(o))+1;return Ur(a,0,l).join("")}function qP(r,o,u){if(r=wt(r),r&&(u||o===n))return r.replace(pf,"");if(!r||!(o=qe(o)))return r;var a=On(r),l=Hm(a,On(o));return Ur(a,l).join("")}function WP(r,o){var u=Bn,a=bn;if(Tt(o)){var l="separator"in o?o.separator:l;u="length"in o?Q(o.length):u,a="omission"in o?qe(o.omission):a}r=wt(r);var m=r.length;if(Yi(r)){var g=On(r);m=g.length}if(u>=m)return r;var b=u-zi(a);if(b<1)return a;var S=g?Ur(g,0,b).join(""):r.slice(0,b);if(l===n)return S+a;if(g&&(b+=S.length-b),gl(l)){if(r.slice(b).search(l)){var R,E=S;for(l.global||(l=vf(l.source,wt(dm.exec(l))+"g")),l.lastIndex=0;R=l.exec(E);)var v=R.index;S=S.slice(0,v===n?b:v)}}else if(r.indexOf(qe(l),b)!=b){var k=S.lastIndexOf(l);k>-1&&(S=S.slice(0,k))}return S+a}function KP(r){return r=wt(r),r&&eS.test(r)?r.replace(am,bO):r}var HP=eo(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),bl=Tp("toUpperCase");function Cg(r,o,u){return r=wt(r),o=u?n:o,o===n?mO(r)?OO(r):oO(r):r.match(o)||[]}var kg=et(function(r,o){try{return Be(r,n,o)}catch(u){return pl(u)?u:new Y(u)}}),GP=lr(function(r,o){return nn(o,function(u){u=Hn(u),ar(r,u,hl(r[u],r))}),r});function YP(r){var o=r==null?0:r.length,u=j();return r=o?Ct(r,function(a){if(typeof a[1]!="function")throw new rn(f);return[u(a[0]),a[1]]}):[],et(function(a){for(var l=-1;++ltn)return[];var u=qn,a=Se(r,qn);o=j(o),r-=qn;for(var l=Rf(a,o);++u0||o<0)?new lt(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==n&&(o=Q(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},lt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},lt.prototype.toArray=function(){return this.take(qn)},Wn(lt.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),a=/^(?:head|last)$/.test(o),l=h[a?"take"+(o=="last"?"Right":""):o],m=a||/^find/.test(o);l&&(h.prototype[o]=function(){var g=this.__wrapped__,b=a?[1]:arguments,S=g instanceof lt,R=b[0],E=S||J(g),v=function(it){var dt=l.apply(h,vr([it],b));return a&&k?dt[0]:dt};E&&u&&typeof R=="function"&&R.length!=1&&(S=E=!1);var k=this.__chain__,D=!!this.__actions__.length,q=m&&!k,V=S&&!D;if(!m&&E){g=V?g:new lt(this);var W=r.apply(g,b);return W.__actions__.push({func:mc,args:[v],thisArg:n}),new on(W,k)}return q&&V?r.apply(this,b):(W=this.thru(v),q?a?W.value()[0]:W.value():W)})}),nn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Bu[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",a=/^(?:pop|shift)$/.test(r);h.prototype[r]=function(){var l=arguments;if(a&&!this.__chain__){var m=this.value();return o.apply(J(m)?m:[],l)}return this[u](function(g){return o.apply(J(g)?g:[],l)})}}),Wn(lt.prototype,function(r,o){var u=h[o];if(u){var a=u.name+"";St.call(Zi,a)||(Zi[a]=[]),Zi[a].push({name:o,func:u})}}),Zi[uc(n,Ft).name]=[{name:"wrapper",func:n}],lt.prototype.clone=KO,lt.prototype.reverse=HO,lt.prototype.value=GO,h.prototype.at=SF,h.prototype.chain=OF,h.prototype.commit=IF,h.prototype.next=xF,h.prototype.plant=$F,h.prototype.reverse=PF,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=MF,h.prototype.first=h.prototype.head,ss&&(h.prototype[ss]=FF),h},Ji=IO();si?((si.exports=Ji)._=Ji,Sf._=Ji):ce._=Ji}).call(Rs)})(ca,ca.exports);ca.exports;function im(t){const e=Zq[t];return e?Iw(e):Ow(new Error(`Schema for "${t}" not found`))}function XK(){return P(rm(),Mu(zr(t=>t.path)),za)}function oi(t,e){return P(im(t),Qh(n=>xw({try:()=>Uw(n,e),catch:()=>new Error("Invalid data")})),za)}function qw(t,e){return P(Ud([z6(`${t}/${e}`),im(t)]),Mu(([n,i])=>({base_document:gC(n),schema:i})),Qh(({base_document:n,schema:i})=>jw(n,i)),za)}function QK(t,e={}){return P(Ud([P(rm(),Mu(Zb(n=>n.path.startsWith(`/${t}`)))),im(t)]),Dj(n=>Uj(()=>console.log(n))),Qh(([n,i])=>Ud(n.map(s=>jw(s,i)))),za)}const J6=ot.Union([ot.Literal("asc"),ot.Literal("desc")]);ot.Tuple([ot.String(),J6]);export{Dw as D,g6 as P,qw as a,XK as b,w6 as c,x6 as d,M6 as e,A6 as f,QK as g,C6 as h,L6 as i,j6 as j}; +}`;var V=kg(function(){return yt(m,D+"return "+v).apply(n,g)});if(V.source=v,pl(V))throw V;return V}function LP(r){return wt(r).toLowerCase()}function UP(r){return wt(r).toUpperCase()}function DP(r,o,u){if(r=wt(r),r&&(u||o===n))return Km(r);if(!r||!(o=qe(o)))return r;var a=On(r),l=On(o),m=Hm(a,l),g=Gm(a,l)+1;return Ur(a,m,g).join("")}function BP(r,o,u){if(r=wt(r),r&&(u||o===n))return r.slice(0,zm(r)+1);if(!r||!(o=qe(o)))return r;var a=On(r),l=Gm(a,On(o))+1;return Ur(a,0,l).join("")}function jP(r,o,u){if(r=wt(r),r&&(u||o===n))return r.replace(pf,"");if(!r||!(o=qe(o)))return r;var a=On(r),l=Hm(a,On(o));return Ur(a,l).join("")}function qP(r,o){var u=Bn,a=bn;if(Tt(o)){var l="separator"in o?o.separator:l;u="length"in o?Q(o.length):u,a="omission"in o?qe(o.omission):a}r=wt(r);var m=r.length;if(Yi(r)){var g=On(r);m=g.length}if(u>=m)return r;var b=u-zi(a);if(b<1)return a;var S=g?Ur(g,0,b).join(""):r.slice(0,b);if(l===n)return S+a;if(g&&(b+=S.length-b),gl(l)){if(r.slice(b).search(l)){var R,E=S;for(l.global||(l=vf(l.source,wt(dm.exec(l))+"g")),l.lastIndex=0;R=l.exec(E);)var v=R.index;S=S.slice(0,v===n?b:v)}}else if(r.indexOf(qe(l),b)!=b){var k=S.lastIndexOf(l);k>-1&&(S=S.slice(0,k))}return S+a}function WP(r){return r=wt(r),r&&tS.test(r)?r.replace(am,_O):r}var KP=eo(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),bl=Tp("toUpperCase");function Cg(r,o,u){return r=wt(r),o=u?n:o,o===n?hO(r)?SO(r):iO(r):r.match(o)||[]}var kg=et(function(r,o){try{return Be(r,n,o)}catch(u){return pl(u)?u:new Y(u)}}),HP=lr(function(r,o){return nn(o,function(u){u=Hn(u),ar(r,u,hl(r[u],r))}),r});function GP(r){var o=r==null?0:r.length,u=j();return r=o?Ct(r,function(a){if(typeof a[1]!="function")throw new rn(f);return[u(a[0]),a[1]]}):[],et(function(a){for(var l=-1;++ltn)return[];var u=qn,a=Se(r,qn);o=j(o),r-=qn;for(var l=Rf(a,o);++u0||o<0)?new lt(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==n&&(o=Q(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},lt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},lt.prototype.toArray=function(){return this.take(qn)},Wn(lt.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),a=/^(?:head|last)$/.test(o),l=h[a?"take"+(o=="last"?"Right":""):o],m=a||/^find/.test(o);l&&(h.prototype[o]=function(){var g=this.__wrapped__,b=a?[1]:arguments,S=g instanceof lt,R=b[0],E=S||J(g),v=function(it){var dt=l.apply(h,vr([it],b));return a&&k?dt[0]:dt};E&&u&&typeof R=="function"&&R.length!=1&&(S=E=!1);var k=this.__chain__,D=!!this.__actions__.length,q=m&&!k,V=S&&!D;if(!m&&E){g=V?g:new lt(this);var W=r.apply(g,b);return W.__actions__.push({func:mc,args:[v],thisArg:n}),new on(W,k)}return q&&V?r.apply(this,b):(W=this.thru(v),q?a?W.value()[0]:W.value():W)})}),nn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Bu[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",a=/^(?:pop|shift)$/.test(r);h.prototype[r]=function(){var l=arguments;if(a&&!this.__chain__){var m=this.value();return o.apply(J(m)?m:[],l)}return this[u](function(g){return o.apply(J(g)?g:[],l)})}}),Wn(lt.prototype,function(r,o){var u=h[o];if(u){var a=u.name+"";St.call(Zi,a)||(Zi[a]=[]),Zi[a].push({name:o,func:u})}}),Zi[uc(n,Ft).name]=[{name:"wrapper",func:n}],lt.prototype.clone=WO,lt.prototype.reverse=KO,lt.prototype.value=HO,h.prototype.at=wF,h.prototype.chain=SF,h.prototype.commit=OF,h.prototype.next=IF,h.prototype.plant=FF,h.prototype.reverse=$F,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=PF,h.prototype.first=h.prototype.head,ss&&(h.prototype[ss]=xF),h},Ji=OO();si?((si.exports=Ji)._=Ji,Sf._=Ji):ce._=Ji}).call(Rs)})(ca,ca.exports);ca.exports;function im(t){const e=Qq[t];return e?Ow(e):Sw(new Error(`Schema for "${t}" not found`))}function XK(){return P(rm(),Mu(zr(t=>t.path)),za)}function oi(t,e){return P(im(t),Qh(n=>Iw({try:()=>Lw(n,e),catch:()=>new Error("Invalid data")})),za)}function jw(t,e){return P(Ud([z6(`${t}/${e}`),im(t)]),Mu(([n,i])=>({base_document:pC(n),schema:i})),Qh(({base_document:n,schema:i})=>Bw(n,i)),za)}function QK(t,e={}){return P(Ud([P(rm(),Mu(Qb(n=>n.path.startsWith(`/${t}`)))),im(t)]),Uj(n=>Lj(()=>console.log(n))),Qh(([n,i])=>Ud(n.map(s=>Bw(s,i)))),za)}const J6=ot.Union([ot.Literal("asc"),ot.Literal("desc")]);ot.Tuple([ot.String(),J6]);export{Uw as D,p6 as P,jw as a,XK as b,b6 as c,I6 as d,P6 as e,E6 as f,QK as g,N6 as h,T6 as i,B6 as j}; diff --git a/docs/_app/immutable/chunks/entry.NcvX3iJh.js b/docs/_app/immutable/chunks/entry.VZ50ZZNV.js similarity index 99% rename from docs/_app/immutable/chunks/entry.NcvX3iJh.js rename to docs/_app/immutable/chunks/entry.VZ50ZZNV.js index bc5c407..1bc5201 100644 --- a/docs/_app/immutable/chunks/entry.NcvX3iJh.js +++ b/docs/_app/immutable/chunks/entry.VZ50ZZNV.js @@ -1,3 +1,3 @@ -import{n as it,s as re,t as oe}from"./scheduler.BRd-yEOV.js";import{a as se,b as I}from"./paths.CgtpqLoR.js";new URL("sveltekit-internal://");function ie(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ce(t){return t.split("%25").map(decodeURI).join("%25")}function le(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ct({href:t}){return t.split("#")[0]}const fe=["href","pathname","search","toString","toJSON"];function ue(t,n,e){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of fe)Object.defineProperty(r,a,{get(){return n(),t[a]},enumerable:!0,configurable:!0});return r}const de="/__data.json",he=".html__data.json";function pe(t){return t.endsWith(".html")?t.replace(/\.html$/,he):t.replace(/\/$/,"")+de}function ge(...t){let n=5381;for(const e of t)if(typeof e=="string"){let r=e.length;for(;r;)n=n*33^e.charCodeAt(--r)}else if(ArrayBuffer.isView(e)){const r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function me(t){const n=atob(t),e=new Uint8Array(n.length);for(let r=0;r((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&F.delete(pt(t)),Ot(t,n));const F=new Map;function _e(t,n){const e=pt(t,n),r=document.querySelector(e);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&F.set(e,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=me(a)),Promise.resolve(new Response(a,o))}return window.fetch(t,n)}function ye(t,n,e){if(F.size>0){const r=pt(t,e),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return lt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return lt(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=we.exec(c),[,h,g,d,m]=u;return n.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return lt(c)}).join("")}).join("")}/?$`),params:n}}function be(t){return!/^\([^)]+\)$/.test(t)}function Ee(t){return t.slice(1).split("/").filter(be)}function ke(t,n,e){const r={},a=t.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||e[c.matcher](l)){r[c.name]=l;const u=n[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function lt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Se({nodes:t,server_loads:n,dictionary:e,matchers:r}){const a=new Set(n);return Object.entries(e).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=ve(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return ke(f,g,r)},errors:[1,...u||[]].map(m=>t[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[a.has(s),t[s]]}}function jt(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function It(t,n,e=JSON.stringify){const r=e(n);try{sessionStorage[t]=r}catch{}}const N=[];function gt(t,n=it){let e;const r=new Set;function a(s){if(re(t,s)&&(t=s,e)){const c=!N.length;for(const l of r)l[1](),N.push(l,t);if(c){for(let l=0;l{r.delete(l),r.size===0&&e&&(e(),e=null)}}return{set:a,update:o,subscribe:i}}const Ae="1709217978934",$t="sveltekit:snapshot",Dt="sveltekit:scroll",Ct="sveltekit:states",Re="sveltekit:pageurl",$="sveltekit:history",q="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},B=location.origin;function Vt(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function mt(){return{x:pageXOffset,y:pageYOffset}}function O(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const Lt={...z,"":z.hover};function Ft(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function qt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Ft(t)}}function ut(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,a=!e||!!r||et(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===B&&t.hasAttribute("download");return{url:e,external:a,target:r,download:o}}function Y(t){let n=null,e=null,r=null,a=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,"preload-code")),a===null&&(a=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),e===null&&(e=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Ft(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Lt[r??"off"],preload_data:Lt[a??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Pt(t){const n=gt(t);let e=!0;function r(){e=!0,n.update(i=>i)}function a(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Ie(){const{set:t,subscribe:n}=gt(!1);let e;async function r(){clearTimeout(e);try{const a=await fetch(`${se}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ae;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:r}}function et(t,n){return t.origin!==B||!t.pathname.startsWith(n)}const Le=-1,Pe=-2,Ue=-3,xe=-4,Te=-5,Ne=-6;function Oe(t,n){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,r=Array(e.length);function a(o,i=!1){if(o===Le)return;if(o===Ue)return NaN;if(o===xe)return 1/0;if(o===Te)return-1/0;if(o===Ne)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=e[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=n==null?void 0:n[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dn!=null)}class nt{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Mt{constructor(n,e){this.status=n,this.location=e}}class _t extends Error{constructor(n,e,r){super(r),this.status=n,this.text=e}}const De="x-sveltekit-invalidated",Ce="x-sveltekit-trailing-slash";function J(t){return t instanceof nt||t instanceof _t?t.status:500}function Ve(t){return t instanceof _t?t.text:"Internal Error"}const T=jt(Dt)??{},G=jt($t)??{},U={url:Pt({}),page:Pt({}),navigating:gt(null),updated:Ie()};function yt(t){T[t]=mt()}function Fe(t,n){let e=t+1;for(;T[e];)delete T[e],e+=1;for(e=n+1;G[e];)delete G[e],e+=1}function D(t){return location.href=t.href,new Promise(()=>{})}function Ut(){}let at,dt,W,L,ht,C;const Ht=[],X=[];let P=null;const Bt=[],qe=[];let j=[],w={branch:[],error:null,url:null},wt=!1,Z=!1,xt=!0,M=!1,V=!1,Kt=!1,vt=!1,bt,k,A,R,Q;async function Qe(t,n,e){var a,o;document.URL!==location.href&&(location.href=location.href),C=t,at=Se(t),L=document.documentElement,ht=n,dt=t.nodes[0],W=t.nodes[1],dt(),W(),k=(a=history.state)==null?void 0:a[$],A=(o=history.state)==null?void 0:o[q],k||(k=A=Date.now(),history.replaceState({...history.state,[$]:k,[q]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),e?await Je(ht,e):ze(location.href,{replaceState:!0}),Ye()}function Ge(){Ht.length=0,vt=!1}function zt(t){X.some(n=>n==null?void 0:n.snapshot)&&(G[t]=X.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Yt(t){var n;(n=G[t])==null||n.forEach((e,r)=>{var a,o;(o=(a=X[r])==null?void 0:a.snapshot)==null||o.restore(e)})}function Tt(){yt(k),It(Dt,T),zt(A),It($t,G)}async function Jt(t,n,e,r){return K({type:"goto",url:Vt(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:r,accept:()=>{n.invalidateAll&&(vt=!0)}})}async function Me(t){return P={id:t.id,promise:Xt(t).then(n=>(n.type==="loaded"&&n.state.error&&(P=null),n))},P.promise}async function ft(t){const n=at.find(e=>e.exec(Zt(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Wt(t,n){var a;w=t.state;const e=document.querySelector("style[data-sveltekit]");e&&e.remove(),R=t.props.page,bt=new C.root({target:n,props:{...t.props,stores:U,components:X},hydrate:!0}),Yt(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(o=>o(r)),Z=!0}async function tt({url:t,params:n,branch:e,status:r,error:a,route:o,form:i}){let s="never";if(I&&(t.pathname===I||t.pathname===I+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=ie(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:a,route:o},props:{constructors:$e(e).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:ue(e,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,e);return s&&d(S.href),S.origin===e.origin&&(v=S.href.slice(e.origin.length)),Z?ye(v,S.href,_):_e(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:t,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Nt(t,n,e,r,a,o){if(vt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&n||a.url&&e)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Ht.some(s=>s(new URL(i))))return!0;return!1}function kt(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function He(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const r of e){const a=t.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&e.delete(r)}return e}async function Xt({id:t,invalidating:n,url:e,params:r,route:a}){if((P==null?void 0:P.id)===t)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?t!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=He(w.url,e);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Nt(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await ee(e,m)}catch(p){return rt({status:J(p),error:await H(p,{url:e,params:r,route:{id:a.id}}),url:e,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ot;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Nt(_,h,u,g,(ot=b.universal)==null?void 0:ot.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return Et({loader:p[1],url:e,params:r,route:a,parent:async()=>{var Rt;const At={};for(let st=0;st{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:kt(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await tt({url:e,params:a,branch:[s,c],status:t,error:n,route:null})}function St(t,n){if(!t||et(t,I))return;let e;try{e=C.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const r=Zt(e);for(const a of at){const o=a.exec(r);if(o)return{id:t.pathname+t.search,invalidating:n,route:a,params:le(o),url:t}}}function Zt(t){return ce(t.slice(I.length)||"/")}function Qt({url:t,type:n,intent:e,delta:r}){let a=!1;const o=ae(w,e,t,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return M||Bt.forEach(s=>s(i)),a?null:o}async function K({type:t,url:n,popped:e,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ut,block:u=Ut}){const h=St(n,!1),g=Qt({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),M=!0,Z&&U.navigating.set(g.navigation),Q=c;let f=h&&await Xt(h);if(!f){if(et(n,I))return await D(n);f=await te(n,{id:null},await H(new _t(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,Q!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await rt({status:500,error:await H(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Jt(new URL(f.location,n).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await D(n);if(Ge(),yt(d),zt(m),f.props.page.url.pathname!==n.pathname&&(n.pathname=f.props.page.url.pathname),i=e?e.state:i,!e){const p=o?0:1,y={[$]:k+=p,[q]:A+=p,[Ct]:i};(o?history.replaceState:history.pushState).call(history,y,"",n),o||Fe(k,A)}if(P=null,f.props.page.state=i,Z){w=f.state,f.props.page&&(f.props.page.url=n);const p=(await Promise.all(qe.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){j=j.filter(b=>!p.includes(b))};p.push(y),j.push(...p)}bt.$set(f.props),Kt=!0}else Wt(f,ht);const{activeElement:_}=document;await oe();const v=e?e.scroll:a?mt():null;if(xt){const p=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&We(),xt=!0,f.props.page&&(R=f.props.page),M=!1,t==="popstate"&&Yt(A),g.fulfil(void 0),j.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function te(t,n,e,r){return t.origin===B&&t.pathname===location.pathname&&!wt?await rt({status:r,error:e,url:t,route:n}):await D(t)}function Ke(){let t;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{r(i,2)},20)});function n(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",n),L.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ft(i.target.href),e.unobserve(i.target))},{threshold:0});function r(o,i){const s=qt(o,L);if(!s)return;const{url:c,external:l,download:u}=ut(s,I);if(l||u)return;const h=Y(s);if(!h.reload)if(i<=h.preload_data){const g=St(c,!1);g&&Me(g)}else i<=h.preload_code&&ft(c.pathname)}function a(){e.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ut(o,I);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===z.viewport&&e.observe(o),l.preload_code===z.eager&&ft(i.pathname))}}j.push(a),a()}function H(t,n){if(t instanceof nt)return t.body;const e=J(t),r=Ve(t);return C.hooks.handleError({error:t,event:n,status:e,message:r})??{message:r}}function ze(t,n={}){return t=Vt(t),t.origin!==B?Promise.reject(new Error("goto: invalid URL")):Jt(t,n,0)}function Ye(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let r=!1;if(Tt(),!M){const a=ae(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Bt.forEach(i=>i(o))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Tt()}),(n=navigator.connection)!=null&&n.saveData||Ke(),L.addEventListener("click",e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const r=qt(e.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=ut(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=Y(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qt({url:a,type:"link"})?M=!0:e.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===ct(location)){const[,d]=w.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,yt(k),t(a),!c.replace_state)return;V=!1}e.preventDefault(),K({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",e=>{if(e.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(e.target),a=e.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(et(i,I))return;const s=e.target,c=Y(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),K({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var r;if((r=e.state)!=null&&r[$]){const a=e.state[$];if(Q={},a===k)return;const o=T[a],i=e.state[Ct]??{},s=new URL(e.state[Re]??location.href),c=e.state[q],l=ct(location)===ct(w.url);if(c===A&&(Kt||l)){t(s),T[k]=mt(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},bt.$set({page:R})),k=a;return}const h=a-k;await K({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:Q})}else if(!V){const a=new URL(location.href);t(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[$]:++k,[q]:A},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&U.navigating.set(null)});function t(e){w.url=e,U.page.set({...R,url:e}),U.page.notify()}}async function Je(t,{status:n=200,error:e,node_ids:r,params:a,route:o,data:i,form:s}){wt=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=St(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=ne(f.uses)),Et({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await Ot(e.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new nt(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Oe(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{n as it,s as re,t as oe}from"./scheduler.BRd-yEOV.js";import{a as se,b as I}from"./paths.udMIXrA7.js";new URL("sveltekit-internal://");function ie(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ce(t){return t.split("%25").map(decodeURI).join("%25")}function le(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ct({href:t}){return t.split("#")[0]}const fe=["href","pathname","search","toString","toJSON"];function ue(t,n,e){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of fe)Object.defineProperty(r,a,{get(){return n(),t[a]},enumerable:!0,configurable:!0});return r}const de="/__data.json",he=".html__data.json";function pe(t){return t.endsWith(".html")?t.replace(/\.html$/,he):t.replace(/\/$/,"")+de}function ge(...t){let n=5381;for(const e of t)if(typeof e=="string"){let r=e.length;for(;r;)n=n*33^e.charCodeAt(--r)}else if(ArrayBuffer.isView(e)){const r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function me(t){const n=atob(t),e=new Uint8Array(n.length);for(let r=0;r((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&F.delete(pt(t)),Ot(t,n));const F=new Map;function _e(t,n){const e=pt(t,n),r=document.querySelector(e);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&F.set(e,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=me(a)),Promise.resolve(new Response(a,o))}return window.fetch(t,n)}function ye(t,n,e){if(F.size>0){const r=pt(t,e),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return lt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return lt(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=we.exec(c),[,h,g,d,m]=u;return n.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return lt(c)}).join("")}).join("")}/?$`),params:n}}function be(t){return!/^\([^)]+\)$/.test(t)}function Ee(t){return t.slice(1).split("/").filter(be)}function ke(t,n,e){const r={},a=t.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||e[c.matcher](l)){r[c.name]=l;const u=n[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function lt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Se({nodes:t,server_loads:n,dictionary:e,matchers:r}){const a=new Set(n);return Object.entries(e).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=ve(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return ke(f,g,r)},errors:[1,...u||[]].map(m=>t[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[a.has(s),t[s]]}}function jt(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function It(t,n,e=JSON.stringify){const r=e(n);try{sessionStorage[t]=r}catch{}}const N=[];function gt(t,n=it){let e;const r=new Set;function a(s){if(re(t,s)&&(t=s,e)){const c=!N.length;for(const l of r)l[1](),N.push(l,t);if(c){for(let l=0;l{r.delete(l),r.size===0&&e&&(e(),e=null)}}return{set:a,update:o,subscribe:i}}const Ae="1709218273055",$t="sveltekit:snapshot",Dt="sveltekit:scroll",Ct="sveltekit:states",Re="sveltekit:pageurl",$="sveltekit:history",q="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},B=location.origin;function Vt(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function mt(){return{x:pageXOffset,y:pageYOffset}}function O(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const Lt={...z,"":z.hover};function Ft(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function qt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Ft(t)}}function ut(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,a=!e||!!r||et(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===B&&t.hasAttribute("download");return{url:e,external:a,target:r,download:o}}function Y(t){let n=null,e=null,r=null,a=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,"preload-code")),a===null&&(a=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),e===null&&(e=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Ft(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Lt[r??"off"],preload_data:Lt[a??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Pt(t){const n=gt(t);let e=!0;function r(){e=!0,n.update(i=>i)}function a(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Ie(){const{set:t,subscribe:n}=gt(!1);let e;async function r(){clearTimeout(e);try{const a=await fetch(`${se}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ae;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:r}}function et(t,n){return t.origin!==B||!t.pathname.startsWith(n)}const Le=-1,Pe=-2,Ue=-3,xe=-4,Te=-5,Ne=-6;function Oe(t,n){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,r=Array(e.length);function a(o,i=!1){if(o===Le)return;if(o===Ue)return NaN;if(o===xe)return 1/0;if(o===Te)return-1/0;if(o===Ne)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=e[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=n==null?void 0:n[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dn!=null)}class nt{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Mt{constructor(n,e){this.status=n,this.location=e}}class _t extends Error{constructor(n,e,r){super(r),this.status=n,this.text=e}}const De="x-sveltekit-invalidated",Ce="x-sveltekit-trailing-slash";function J(t){return t instanceof nt||t instanceof _t?t.status:500}function Ve(t){return t instanceof _t?t.text:"Internal Error"}const T=jt(Dt)??{},G=jt($t)??{},U={url:Pt({}),page:Pt({}),navigating:gt(null),updated:Ie()};function yt(t){T[t]=mt()}function Fe(t,n){let e=t+1;for(;T[e];)delete T[e],e+=1;for(e=n+1;G[e];)delete G[e],e+=1}function D(t){return location.href=t.href,new Promise(()=>{})}function Ut(){}let at,dt,W,L,ht,C;const Ht=[],X=[];let P=null;const Bt=[],qe=[];let j=[],w={branch:[],error:null,url:null},wt=!1,Z=!1,xt=!0,M=!1,V=!1,Kt=!1,vt=!1,bt,k,A,R,Q;async function Qe(t,n,e){var a,o;document.URL!==location.href&&(location.href=location.href),C=t,at=Se(t),L=document.documentElement,ht=n,dt=t.nodes[0],W=t.nodes[1],dt(),W(),k=(a=history.state)==null?void 0:a[$],A=(o=history.state)==null?void 0:o[q],k||(k=A=Date.now(),history.replaceState({...history.state,[$]:k,[q]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),e?await Je(ht,e):ze(location.href,{replaceState:!0}),Ye()}function Ge(){Ht.length=0,vt=!1}function zt(t){X.some(n=>n==null?void 0:n.snapshot)&&(G[t]=X.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Yt(t){var n;(n=G[t])==null||n.forEach((e,r)=>{var a,o;(o=(a=X[r])==null?void 0:a.snapshot)==null||o.restore(e)})}function Tt(){yt(k),It(Dt,T),zt(A),It($t,G)}async function Jt(t,n,e,r){return K({type:"goto",url:Vt(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:r,accept:()=>{n.invalidateAll&&(vt=!0)}})}async function Me(t){return P={id:t.id,promise:Xt(t).then(n=>(n.type==="loaded"&&n.state.error&&(P=null),n))},P.promise}async function ft(t){const n=at.find(e=>e.exec(Zt(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Wt(t,n){var a;w=t.state;const e=document.querySelector("style[data-sveltekit]");e&&e.remove(),R=t.props.page,bt=new C.root({target:n,props:{...t.props,stores:U,components:X},hydrate:!0}),Yt(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(o=>o(r)),Z=!0}async function tt({url:t,params:n,branch:e,status:r,error:a,route:o,form:i}){let s="never";if(I&&(t.pathname===I||t.pathname===I+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=ie(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:a,route:o},props:{constructors:$e(e).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:ue(e,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,e);return s&&d(S.href),S.origin===e.origin&&(v=S.href.slice(e.origin.length)),Z?ye(v,S.href,_):_e(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:t,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Nt(t,n,e,r,a,o){if(vt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&n||a.url&&e)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Ht.some(s=>s(new URL(i))))return!0;return!1}function kt(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function He(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const r of e){const a=t.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&e.delete(r)}return e}async function Xt({id:t,invalidating:n,url:e,params:r,route:a}){if((P==null?void 0:P.id)===t)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?t!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=He(w.url,e);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Nt(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await ee(e,m)}catch(p){return rt({status:J(p),error:await H(p,{url:e,params:r,route:{id:a.id}}),url:e,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ot;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Nt(_,h,u,g,(ot=b.universal)==null?void 0:ot.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return Et({loader:p[1],url:e,params:r,route:a,parent:async()=>{var Rt;const At={};for(let st=0;st{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:kt(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await tt({url:e,params:a,branch:[s,c],status:t,error:n,route:null})}function St(t,n){if(!t||et(t,I))return;let e;try{e=C.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const r=Zt(e);for(const a of at){const o=a.exec(r);if(o)return{id:t.pathname+t.search,invalidating:n,route:a,params:le(o),url:t}}}function Zt(t){return ce(t.slice(I.length)||"/")}function Qt({url:t,type:n,intent:e,delta:r}){let a=!1;const o=ae(w,e,t,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return M||Bt.forEach(s=>s(i)),a?null:o}async function K({type:t,url:n,popped:e,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ut,block:u=Ut}){const h=St(n,!1),g=Qt({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),M=!0,Z&&U.navigating.set(g.navigation),Q=c;let f=h&&await Xt(h);if(!f){if(et(n,I))return await D(n);f=await te(n,{id:null},await H(new _t(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,Q!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await rt({status:500,error:await H(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Jt(new URL(f.location,n).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await D(n);if(Ge(),yt(d),zt(m),f.props.page.url.pathname!==n.pathname&&(n.pathname=f.props.page.url.pathname),i=e?e.state:i,!e){const p=o?0:1,y={[$]:k+=p,[q]:A+=p,[Ct]:i};(o?history.replaceState:history.pushState).call(history,y,"",n),o||Fe(k,A)}if(P=null,f.props.page.state=i,Z){w=f.state,f.props.page&&(f.props.page.url=n);const p=(await Promise.all(qe.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){j=j.filter(b=>!p.includes(b))};p.push(y),j.push(...p)}bt.$set(f.props),Kt=!0}else Wt(f,ht);const{activeElement:_}=document;await oe();const v=e?e.scroll:a?mt():null;if(xt){const p=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&We(),xt=!0,f.props.page&&(R=f.props.page),M=!1,t==="popstate"&&Yt(A),g.fulfil(void 0),j.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function te(t,n,e,r){return t.origin===B&&t.pathname===location.pathname&&!wt?await rt({status:r,error:e,url:t,route:n}):await D(t)}function Ke(){let t;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{r(i,2)},20)});function n(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",n),L.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ft(i.target.href),e.unobserve(i.target))},{threshold:0});function r(o,i){const s=qt(o,L);if(!s)return;const{url:c,external:l,download:u}=ut(s,I);if(l||u)return;const h=Y(s);if(!h.reload)if(i<=h.preload_data){const g=St(c,!1);g&&Me(g)}else i<=h.preload_code&&ft(c.pathname)}function a(){e.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ut(o,I);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===z.viewport&&e.observe(o),l.preload_code===z.eager&&ft(i.pathname))}}j.push(a),a()}function H(t,n){if(t instanceof nt)return t.body;const e=J(t),r=Ve(t);return C.hooks.handleError({error:t,event:n,status:e,message:r})??{message:r}}function ze(t,n={}){return t=Vt(t),t.origin!==B?Promise.reject(new Error("goto: invalid URL")):Jt(t,n,0)}function Ye(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let r=!1;if(Tt(),!M){const a=ae(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Bt.forEach(i=>i(o))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Tt()}),(n=navigator.connection)!=null&&n.saveData||Ke(),L.addEventListener("click",e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const r=qt(e.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=ut(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=Y(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qt({url:a,type:"link"})?M=!0:e.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===ct(location)){const[,d]=w.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,yt(k),t(a),!c.replace_state)return;V=!1}e.preventDefault(),K({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",e=>{if(e.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(e.target),a=e.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(et(i,I))return;const s=e.target,c=Y(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),K({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var r;if((r=e.state)!=null&&r[$]){const a=e.state[$];if(Q={},a===k)return;const o=T[a],i=e.state[Ct]??{},s=new URL(e.state[Re]??location.href),c=e.state[q],l=ct(location)===ct(w.url);if(c===A&&(Kt||l)){t(s),T[k]=mt(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},bt.$set({page:R})),k=a;return}const h=a-k;await K({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:Q})}else if(!V){const a=new URL(location.href);t(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[$]:++k,[q]:A},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&U.navigating.set(null)});function t(e){w.url=e,U.page.set({...R,url:e}),U.page.notify()}}async function Je(t,{status:n=200,error:e,node_ids:r,params:a,route:o,data:i,form:s}){wt=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=St(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=ne(f.uses)),Et({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await Ot(e.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new nt(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Oe(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const m=u.indexOf(` `);if(m===-1)break;const f=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=ne(_.uses),_.data=l(_.data))}),o(f);else if(f.type==="chunk"){const{id:_,data:v,error:S}=f,p=i.get(_);i.delete(_),S?p.reject(l(S)):p.fulfil(l(v))}}}})}function ne(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}function We(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=document.body,e=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),e!==null?n.setAttribute("tabindex",e):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:e&&{params:(n==null?void 0:n.params)??null,route:{id:((l=n==null?void 0:n.route)==null?void 0:l.id)??null},url:e},willUnload:!n,type:r,complete:i},fulfil:a,reject:o}}export{Qe as a,U as s}; diff --git a/docs/_app/immutable/chunks/paths.CgtpqLoR.js b/docs/_app/immutable/chunks/paths.CgtpqLoR.js deleted file mode 100644 index 949af7e..0000000 --- a/docs/_app/immutable/chunks/paths.CgtpqLoR.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_1lziiuu)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1lziiuu)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/docs/_app/immutable/chunks/paths.udMIXrA7.js b/docs/_app/immutable/chunks/paths.udMIXrA7.js new file mode 100644 index 0000000..b95b2db --- /dev/null +++ b/docs/_app/immutable/chunks/paths.udMIXrA7.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_pb2c1j)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_pb2c1j)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/docs/_app/immutable/chunks/utils.CpCCSDFZ.js b/docs/_app/immutable/chunks/utils.CpCCSDFZ.js new file mode 100644 index 0000000..887d194 --- /dev/null +++ b/docs/_app/immutable/chunks/utils.CpCCSDFZ.js @@ -0,0 +1 @@ +import{b as s}from"./paths.udMIXrA7.js";const e=r=>s?`${s}${r}`:r;export{e as h}; diff --git a/docs/_app/immutable/chunks/utils.rIxyFrg4.js b/docs/_app/immutable/chunks/utils.rIxyFrg4.js deleted file mode 100644 index 9965031..0000000 --- a/docs/_app/immutable/chunks/utils.rIxyFrg4.js +++ /dev/null @@ -1 +0,0 @@ -import{b as s}from"./paths.CgtpqLoR.js";const e=r=>s?`${s}${r}`:r;export{e as h}; diff --git a/docs/_app/immutable/entry/app.DkmzEByy.js b/docs/_app/immutable/entry/app.CBeRFFlH.js similarity index 89% rename from docs/_app/immutable/entry/app.DkmzEByy.js rename to docs/_app/immutable/entry/app.CBeRFFlH.js index d6f29a8..9460a55 100644 --- a/docs/_app/immutable/entry/app.DkmzEByy.js +++ b/docs/_app/immutable/entry/app.CBeRFFlH.js @@ -1,7 +1,7 @@ -import{s as M,d as W,o as F,e as D,t as G}from"../chunks/scheduler.BRd-yEOV.js";import{S as H,i as J,s as K,o as u,a as Q,h as v,j as m,p as R,t as p,d as w,e as X,c as Y,b as Z,f as O,q as L,k as x,l as ee,n as te,r as P,u as g,v as b,w as I,x as k,y as E}from"../chunks/index.BHR9i4nQ.js";const ne="modulepreload",ie=function(a,e){return new URL(a,e).href},A={},h=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");r=Promise.all(n.map(t=>{if(t=ie(t,o),t in A)return;A[t]=!0;const s=t.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(!!o)for(let d=l.length-1;d>=0;d--){const $=l[d];if($.href===t&&(!s||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const _=document.createElement("link");if(_.rel=s?"stylesheet":ne,s||(_.as="script",_.crossOrigin=""),_.href=t,document.head.appendChild(_),s)return new Promise((d,$)=>{_.addEventListener("load",d),_.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${t}`)))})}))}return r.then(()=>e()).catch(l=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=l,window.dispatchEvent(t),!t.defaultPrevented)throw l})},we={};function re(a){let e,n,o;var r=a[1][0];function l(t,s){return{props:{data:t[3],form:t[2]}}}return r&&(e=g(r,l(a)),a[18](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[18](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[18](null),e&&E(e,t)}}}function se(a){let e,n,o;var r=a[1][0];function l(t,s){return{props:{data:t[3],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[17](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[17](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&524407&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[17](null),e&&E(e,t)}}}function oe(a){let e,n,o;var r=a[1][1];function l(t,s){return{props:{data:t[4],form:t[2]}}}return r&&(e=g(r,l(a)),a[16](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[16](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[16](null),e&&E(e,t)}}}function ae(a){let e,n,o;var r=a[1][1];function l(t,s){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[15](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[15](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&524391&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[15](null),e&&E(e,t)}}}function _e(a){let e,n,o;var r=a[1][2];function l(t,s){return{props:{data:t[5],form:t[2]}}}return r&&(e=g(r,l(a)),a[14](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[14](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[14](null),e&&E(e,t)}}}function fe(a){let e,n,o;var r=a[1][2];function l(t,s){return{props:{data:t[5],$$slots:{default:[le]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[13](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[13](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&524359&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[13](null),e&&E(e,t)}}}function le(a){let e,n,o;var r=a[1][3];function l(t,s){return{props:{data:t[6],form:t[2]}}}return r&&(e=g(r,l(a)),a[12](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][3])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[12](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&64&&(i.data=t[6]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[12](null),e&&E(e,t)}}}function ce(a){let e,n,o,r;const l=[fe,_e],t=[];function s(i,c){return i[1][3]?0:1}return e=s(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,c){t[e].m(i,c),v(i,o,c),r=!0},p(i,c){let _=e;e=s(i),e===_?t[e].p(i,c):(P(),m(t[_],1,1,()=>{t[_]=null}),R(),n=t[e],n?n.p(i,c):(n=t[e]=l[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&w(o),t[e].d(i)}}}function ue(a){let e,n,o,r;const l=[ae,oe],t=[];function s(i,c){return i[1][2]?0:1}return e=s(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,c){t[e].m(i,c),v(i,o,c),r=!0},p(i,c){let _=e;e=s(i),e===_?t[e].p(i,c):(P(),m(t[_],1,1,()=>{t[_]=null}),R(),n=t[e],n?n.p(i,c):(n=t[e]=l[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&w(o),t[e].d(i)}}}function y(a){let e,n=a[8]&&N(a);return{c(){e=X("div"),n&&n.c(),this.h()},l(o){e=Y(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Z(e);n&&n.l(r),r.forEach(w),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),L(e,"position","absolute"),L(e,"left","0"),L(e,"top","0"),L(e,"clip","rect(0 0 0 0)"),L(e,"clip-path","inset(50%)"),L(e,"overflow","hidden"),L(e,"white-space","nowrap"),L(e,"width","1px"),L(e,"height","1px")},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,r){o[8]?n?n.p(o,r):(n=N(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&w(e),n&&n.d()}}}function N(a){let e;return{c(){e=x(a[9])},l(n){e=ee(n,a[9])},m(n,o){v(n,e,o)},p(n,o){o&512&&te(e,n[9])},d(n){n&&w(e)}}}function me(a){let e,n,o,r,l;const t=[se,re],s=[];function i(_,d){return _[1][1]?0:1}e=i(a),n=s[e]=t[e](a);let c=a[7]&&y(a);return{c(){n.c(),o=K(),c&&c.c(),r=u()},l(_){n.l(_),o=Q(_),c&&c.l(_),r=u()},m(_,d){s[e].m(_,d),v(_,o,d),c&&c.m(_,d),v(_,r,d),l=!0},p(_,[d]){let $=e;e=i(_),e===$?s[e].p(_,d):(P(),m(s[$],1,1,()=>{s[$]=null}),R(),n=s[e],n?n.p(_,d):(n=s[e]=t[e](_),n.c()),p(n,1),n.m(o.parentNode,o)),_[7]?c?c.p(_,d):(c=y(_),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null)},i(_){l||(p(n),l=!0)},o(_){m(n),l=!1},d(_){_&&(w(o),w(r)),s[e].d(_),c&&c.d(_)}}}function pe(a,e,n){let{stores:o}=e,{page:r}=e,{constructors:l}=e,{components:t=[]}=e,{form:s}=e,{data_0:i=null}=e,{data_1:c=null}=e,{data_2:_=null}=e,{data_3:d=null}=e;W(o.page.notify);let $=!1,T=!1,V=null;F(()=>{const f=o.page.subscribe(()=>{$&&(n(8,T=!0),G().then(()=>{n(9,V=document.title||"untitled page")}))});return n(7,$=!0),f});function j(f){D[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function S(f){D[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){D[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function C(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function q(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function B(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function U(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(10,o=f.stores),"page"in f&&n(11,r=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,s=f.form),"data_0"in f&&n(3,i=f.data_0),"data_1"in f&&n(4,c=f.data_1),"data_2"in f&&n(5,_=f.data_2),"data_3"in f&&n(6,d=f.data_3)},a.$$.update=()=>{a.$$.dirty&3072&&o.page.set(r)},[t,l,s,i,c,_,d,$,T,V,o,r,j,S,z,C,q,B,U]}class ge extends H{constructor(e){super(),J(this,e,pe,me,M,{stores:10,page:11,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6})}}const be=[()=>h(()=>import("../nodes/0.BNpQuhvl.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>h(()=>import("../nodes/1.PJQ18G9A.js"),__vite__mapDeps([4,1,2,5,6]),import.meta.url),()=>h(()=>import("../nodes/2.Dj5JHHjz.js"),__vite__mapDeps([7,1,2,8,6]),import.meta.url),()=>h(()=>import("../nodes/3.lEw74TIv.js"),__vite__mapDeps([9,1,2,10,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/4.DtYcaRek.js"),__vite__mapDeps([15,1,2,10,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/5.BQLp8i60.js"),__vite__mapDeps([16,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/6.BR_lp4Zm.js"),__vite__mapDeps([17,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/7.5Vz0FGKA.js"),__vite__mapDeps([18,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/8.DrX9OYhH.js"),__vite__mapDeps([19,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/9.D53o2-SC.js"),__vite__mapDeps([20,11,1,2]),import.meta.url),()=>h(()=>import("../nodes/10.BWh6-GB_.js"),__vite__mapDeps([21,12,1,2]),import.meta.url),()=>h(()=>import("../nodes/11.D09UhxOU.js"),__vite__mapDeps([22,13,1,2]),import.meta.url),()=>h(()=>import("../nodes/12.X1Hp7kLB.js"),__vite__mapDeps([23,14,1,2]),import.meta.url),()=>h(()=>import("../nodes/13.DSpS2eKf.js"),__vite__mapDeps([24,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/14.DXxk4nFJ.js"),__vite__mapDeps([25,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/15.CBoX5vgC.js"),__vite__mapDeps([26,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/16.DcshRrxs.js"),__vite__mapDeps([27,10,1,2,11,12,13,14,8,6]),import.meta.url)],ke=[],Ee={"/":[4],"/(database)/organizations/dyne":[5,[2]],"/(database)/organizations/ff3300":[6,[2]],"/(database)/organizations/freelance":[7,[2]],"/(database)/organizations/la-scuola-open-source":[8,[2]],"/(database)/projects/join":[9,[2]],"/(database)/projects/reaction-diffusion":[10,[2]],"/(database)/projects/scabec":[11,[2]],"/(database)/projects/signroom":[12,[2]],"/(database)/work_experiences/2019-07_oggi_freelance_docente":[13,[2,3]],"/(database)/work_experiences/2021-05_oggi_sos":[14,[2,3]],"/(database)/work_experiences/2021-09_2022-03_sos":[15,[2,3]],"/(database)/work_experiences/2022-10_oggi_dyne":[16,[2,3]]},ve={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{Ee as dictionary,ve as hooks,we as matchers,be as nodes,ge as root,ke as server_loads}; +import{s as M,d as W,o as F,e as D,t as G}from"../chunks/scheduler.BRd-yEOV.js";import{S as H,i as J,s as K,o as u,a as Q,h as v,j as m,p as R,t as p,d as w,e as X,c as Y,b as Z,f as O,q as L,k as x,l as ee,n as te,r as P,u as g,v as b,w as I,x as k,y as E}from"../chunks/index.BHR9i4nQ.js";const ne="modulepreload",ie=function(a,e){return new URL(a,e).href},A={},h=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");r=Promise.all(n.map(t=>{if(t=ie(t,o),t in A)return;A[t]=!0;const s=t.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(!!o)for(let d=l.length-1;d>=0;d--){const $=l[d];if($.href===t&&(!s||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const _=document.createElement("link");if(_.rel=s?"stylesheet":ne,s||(_.as="script",_.crossOrigin=""),_.href=t,document.head.appendChild(_),s)return new Promise((d,$)=>{_.addEventListener("load",d),_.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${t}`)))})}))}return r.then(()=>e()).catch(l=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=l,window.dispatchEvent(t),!t.defaultPrevented)throw l})},we={};function re(a){let e,n,o;var r=a[1][0];function l(t,s){return{props:{data:t[3],form:t[2]}}}return r&&(e=g(r,l(a)),a[18](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[18](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[18](null),e&&E(e,t)}}}function se(a){let e,n,o;var r=a[1][0];function l(t,s){return{props:{data:t[3],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[17](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[17](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&524407&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[17](null),e&&E(e,t)}}}function oe(a){let e,n,o;var r=a[1][1];function l(t,s){return{props:{data:t[4],form:t[2]}}}return r&&(e=g(r,l(a)),a[16](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[16](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[16](null),e&&E(e,t)}}}function ae(a){let e,n,o;var r=a[1][1];function l(t,s){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[15](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[15](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&524391&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[15](null),e&&E(e,t)}}}function _e(a){let e,n,o;var r=a[1][2];function l(t,s){return{props:{data:t[5],form:t[2]}}}return r&&(e=g(r,l(a)),a[14](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[14](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[14](null),e&&E(e,t)}}}function fe(a){let e,n,o;var r=a[1][2];function l(t,s){return{props:{data:t[5],$$slots:{default:[le]},$$scope:{ctx:t}}}}return r&&(e=g(r,l(a)),a[13](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[13](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&524359&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[13](null),e&&E(e,t)}}}function le(a){let e,n,o;var r=a[1][3];function l(t,s){return{props:{data:t[6],form:t[2]}}}return r&&(e=g(r,l(a)),a[12](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&I(e.$$.fragment,t),n=u()},m(t,s){e&&k(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][3])){if(e){P();const i=e;m(i.$$.fragment,1,0,()=>{E(i,1)}),R()}r?(e=g(r,l(t)),t[12](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(r){const i={};s&64&&(i.data=t[6]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&w(n),a[12](null),e&&E(e,t)}}}function ce(a){let e,n,o,r;const l=[fe,_e],t=[];function s(i,c){return i[1][3]?0:1}return e=s(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,c){t[e].m(i,c),v(i,o,c),r=!0},p(i,c){let _=e;e=s(i),e===_?t[e].p(i,c):(P(),m(t[_],1,1,()=>{t[_]=null}),R(),n=t[e],n?n.p(i,c):(n=t[e]=l[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&w(o),t[e].d(i)}}}function ue(a){let e,n,o,r;const l=[ae,oe],t=[];function s(i,c){return i[1][2]?0:1}return e=s(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,c){t[e].m(i,c),v(i,o,c),r=!0},p(i,c){let _=e;e=s(i),e===_?t[e].p(i,c):(P(),m(t[_],1,1,()=>{t[_]=null}),R(),n=t[e],n?n.p(i,c):(n=t[e]=l[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&w(o),t[e].d(i)}}}function y(a){let e,n=a[8]&&N(a);return{c(){e=X("div"),n&&n.c(),this.h()},l(o){e=Y(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Z(e);n&&n.l(r),r.forEach(w),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),L(e,"position","absolute"),L(e,"left","0"),L(e,"top","0"),L(e,"clip","rect(0 0 0 0)"),L(e,"clip-path","inset(50%)"),L(e,"overflow","hidden"),L(e,"white-space","nowrap"),L(e,"width","1px"),L(e,"height","1px")},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,r){o[8]?n?n.p(o,r):(n=N(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&w(e),n&&n.d()}}}function N(a){let e;return{c(){e=x(a[9])},l(n){e=ee(n,a[9])},m(n,o){v(n,e,o)},p(n,o){o&512&&te(e,n[9])},d(n){n&&w(e)}}}function me(a){let e,n,o,r,l;const t=[se,re],s=[];function i(_,d){return _[1][1]?0:1}e=i(a),n=s[e]=t[e](a);let c=a[7]&&y(a);return{c(){n.c(),o=K(),c&&c.c(),r=u()},l(_){n.l(_),o=Q(_),c&&c.l(_),r=u()},m(_,d){s[e].m(_,d),v(_,o,d),c&&c.m(_,d),v(_,r,d),l=!0},p(_,[d]){let $=e;e=i(_),e===$?s[e].p(_,d):(P(),m(s[$],1,1,()=>{s[$]=null}),R(),n=s[e],n?n.p(_,d):(n=s[e]=t[e](_),n.c()),p(n,1),n.m(o.parentNode,o)),_[7]?c?c.p(_,d):(c=y(_),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null)},i(_){l||(p(n),l=!0)},o(_){m(n),l=!1},d(_){_&&(w(o),w(r)),s[e].d(_),c&&c.d(_)}}}function pe(a,e,n){let{stores:o}=e,{page:r}=e,{constructors:l}=e,{components:t=[]}=e,{form:s}=e,{data_0:i=null}=e,{data_1:c=null}=e,{data_2:_=null}=e,{data_3:d=null}=e;W(o.page.notify);let $=!1,T=!1,V=null;F(()=>{const f=o.page.subscribe(()=>{$&&(n(8,T=!0),G().then(()=>{n(9,V=document.title||"untitled page")}))});return n(7,$=!0),f});function j(f){D[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function S(f){D[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){D[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function C(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function q(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function B(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function U(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(10,o=f.stores),"page"in f&&n(11,r=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,s=f.form),"data_0"in f&&n(3,i=f.data_0),"data_1"in f&&n(4,c=f.data_1),"data_2"in f&&n(5,_=f.data_2),"data_3"in f&&n(6,d=f.data_3)},a.$$.update=()=>{a.$$.dirty&3072&&o.page.set(r)},[t,l,s,i,c,_,d,$,T,V,o,r,j,S,z,C,q,B,U]}class ge extends H{constructor(e){super(),J(this,e,pe,me,M,{stores:10,page:11,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6})}}const be=[()=>h(()=>import("../nodes/0.BNpQuhvl.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>h(()=>import("../nodes/1.DunWYl0X.js"),__vite__mapDeps([4,1,2,5,6]),import.meta.url),()=>h(()=>import("../nodes/2.3fy9hBh0.js"),__vite__mapDeps([7,1,2,8,6]),import.meta.url),()=>h(()=>import("../nodes/3.DpyGOltx.js"),__vite__mapDeps([9,1,2,10,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/4.D8SNx2dc.js"),__vite__mapDeps([15,1,2,10,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/5.D1otNT5X.js"),__vite__mapDeps([16,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/6.BDqu72EF.js"),__vite__mapDeps([17,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/7.FZJiREs5.js"),__vite__mapDeps([18,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/8.JQ3f7zIt.js"),__vite__mapDeps([19,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/9.D53o2-SC.js"),__vite__mapDeps([20,11,1,2]),import.meta.url),()=>h(()=>import("../nodes/10.BWh6-GB_.js"),__vite__mapDeps([21,12,1,2]),import.meta.url),()=>h(()=>import("../nodes/11.D09UhxOU.js"),__vite__mapDeps([22,13,1,2]),import.meta.url),()=>h(()=>import("../nodes/12.X1Hp7kLB.js"),__vite__mapDeps([23,14,1,2]),import.meta.url),()=>h(()=>import("../nodes/13.T1ouY28T.js"),__vite__mapDeps([24,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/14.Cr--S5ma.js"),__vite__mapDeps([25,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/15.gf1lWMDc.js"),__vite__mapDeps([26,10,1,2,11,12,13,14,8,6]),import.meta.url),()=>h(()=>import("../nodes/16.C2Fh3IDJ.js"),__vite__mapDeps([27,10,1,2,11,12,13,14,8,6]),import.meta.url)],ke=[],Ee={"/":[4],"/(database)/organizations/dyne":[5,[2]],"/(database)/organizations/ff3300":[6,[2]],"/(database)/organizations/freelance":[7,[2]],"/(database)/organizations/la-scuola-open-source":[8,[2]],"/(database)/projects/join":[9,[2]],"/(database)/projects/reaction-diffusion":[10,[2]],"/(database)/projects/scabec":[11,[2]],"/(database)/projects/signroom":[12,[2]],"/(database)/work_experiences/2019-07_oggi_freelance_docente":[13,[2,3]],"/(database)/work_experiences/2021-05_oggi_sos":[14,[2,3]],"/(database)/work_experiences/2021-09_2022-03_sos":[15,[2,3]],"/(database)/work_experiences/2022-10_oggi_dyne":[16,[2,3]]},ve={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{Ee as dictionary,ve as hooks,we as matchers,be as nodes,ge as root,ke as server_loads}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["../nodes/0.BNpQuhvl.js","../chunks/scheduler.BRd-yEOV.js","../chunks/index.BHR9i4nQ.js","../assets/0.B39-hNc-.css","../nodes/1.PJQ18G9A.js","../chunks/entry.NcvX3iJh.js","../chunks/paths.CgtpqLoR.js","../nodes/2.Dj5JHHjz.js","../chunks/utils.rIxyFrg4.js","../nodes/3.lEw74TIv.js","../chunks/16.Daqv5-z-.js","../chunks/9.CIeohZ6G.js","../chunks/10.CIeohZ6G.js","../chunks/11.CIeohZ6G.js","../chunks/12.CIeohZ6G.js","../nodes/4.DtYcaRek.js","../nodes/5.BQLp8i60.js","../nodes/6.BR_lp4Zm.js","../nodes/7.5Vz0FGKA.js","../nodes/8.DrX9OYhH.js","../nodes/9.D53o2-SC.js","../nodes/10.BWh6-GB_.js","../nodes/11.D09UhxOU.js","../nodes/12.X1Hp7kLB.js","../nodes/13.DSpS2eKf.js","../nodes/14.DXxk4nFJ.js","../nodes/15.CBoX5vgC.js","../nodes/16.DcshRrxs.js"] + __vite__mapDeps.viteFileDeps = ["../nodes/0.BNpQuhvl.js","../chunks/scheduler.BRd-yEOV.js","../chunks/index.BHR9i4nQ.js","../assets/0.B39-hNc-.css","../nodes/1.DunWYl0X.js","../chunks/entry.VZ50ZZNV.js","../chunks/paths.udMIXrA7.js","../nodes/2.3fy9hBh0.js","../chunks/utils.CpCCSDFZ.js","../nodes/3.DpyGOltx.js","../chunks/16.DduAFaeW.js","../chunks/9.CIeohZ6G.js","../chunks/10.CIeohZ6G.js","../chunks/11.CIeohZ6G.js","../chunks/12.CIeohZ6G.js","../nodes/4.D8SNx2dc.js","../nodes/5.D1otNT5X.js","../nodes/6.BDqu72EF.js","../nodes/7.FZJiREs5.js","../nodes/8.JQ3f7zIt.js","../nodes/9.D53o2-SC.js","../nodes/10.BWh6-GB_.js","../nodes/11.D09UhxOU.js","../nodes/12.X1Hp7kLB.js","../nodes/13.T1ouY28T.js","../nodes/14.Cr--S5ma.js","../nodes/15.gf1lWMDc.js","../nodes/16.C2Fh3IDJ.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/_app/immutable/entry/start.Bmjydfrh.js b/docs/_app/immutable/entry/start.Bmjydfrh.js new file mode 100644 index 0000000..c973cc4 --- /dev/null +++ b/docs/_app/immutable/entry/start.Bmjydfrh.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.VZ50ZZNV.js";export{t as start}; diff --git a/docs/_app/immutable/entry/start.CmdJMYho.js b/docs/_app/immutable/entry/start.CmdJMYho.js deleted file mode 100644 index 505a622..0000000 --- a/docs/_app/immutable/entry/start.CmdJMYho.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.NcvX3iJh.js";export{t as start}; diff --git a/docs/_app/immutable/nodes/1.PJQ18G9A.js b/docs/_app/immutable/nodes/1.DunWYl0X.js similarity index 93% rename from docs/_app/immutable/nodes/1.PJQ18G9A.js rename to docs/_app/immutable/nodes/1.DunWYl0X.js index 8b59df1..735ff7e 100644 --- a/docs/_app/immutable/nodes/1.PJQ18G9A.js +++ b/docs/_app/immutable/nodes/1.DunWYl0X.js @@ -1 +1 @@ -import{s as S,n as _,b as x}from"../chunks/scheduler.BRd-yEOV.js";import{S as k,i as q,e as d,k as f,s as y,c as g,b as h,l as v,d as l,a as C,h as m,m as $,n as E}from"../chunks/index.BHR9i4nQ.js";import{s as H}from"../chunks/entry.NcvX3iJh.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},j={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",n,o,i,c=((b=s[0].error)==null?void 0:b.message)+"",u;return{c(){t=d("h1"),n=f(r),o=y(),i=d("p"),u=f(c)},l(e){t=g(e,"H1",{});var a=h(t);n=v(a,r),a.forEach(l),o=C(e),i=g(e,"P",{});var p=h(i);u=v(p,c),p.forEach(l)},m(e,a){m(e,t,a),$(t,n),m(e,o,a),m(e,i,a),$(i,u)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(n,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(u,c)},i:_,o:_,d(e){e&&(l(t),l(o),l(i))}}}function z(s,t,r){let n;return x(s,j,o=>r(0,n=o)),[n]}let F=class extends k{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component}; +import{s as S,n as _,b as x}from"../chunks/scheduler.BRd-yEOV.js";import{S as k,i as q,e as d,k as f,s as y,c as g,b as h,l as v,d as l,a as C,h as m,m as $,n as E}from"../chunks/index.BHR9i4nQ.js";import{s as H}from"../chunks/entry.VZ50ZZNV.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},j={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",n,o,i,c=((b=s[0].error)==null?void 0:b.message)+"",u;return{c(){t=d("h1"),n=f(r),o=y(),i=d("p"),u=f(c)},l(e){t=g(e,"H1",{});var a=h(t);n=v(a,r),a.forEach(l),o=C(e),i=g(e,"P",{});var p=h(i);u=v(p,c),p.forEach(l)},m(e,a){m(e,t,a),$(t,n),m(e,o,a),m(e,i,a),$(i,u)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(n,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(u,c)},i:_,o:_,d(e){e&&(l(t),l(o),l(i))}}}function z(s,t,r){let n;return x(s,j,o=>r(0,n=o)),[n]}let F=class extends k{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component}; diff --git a/docs/_app/immutable/nodes/13.DSpS2eKf.js b/docs/_app/immutable/nodes/13.DSpS2eKf.js deleted file mode 100644 index 8318372..0000000 --- a/docs/_app/immutable/nodes/13.DSpS2eKf.js +++ /dev/null @@ -1 +0,0 @@ -import{f}from"../chunks/16.Daqv5-z-.js";export{f as component}; diff --git a/docs/_app/immutable/nodes/13.T1ouY28T.js b/docs/_app/immutable/nodes/13.T1ouY28T.js new file mode 100644 index 0000000..d4c8a97 --- /dev/null +++ b/docs/_app/immutable/nodes/13.T1ouY28T.js @@ -0,0 +1 @@ +import{f}from"../chunks/16.DduAFaeW.js";export{f as component}; diff --git a/docs/_app/immutable/nodes/14.Cr--S5ma.js b/docs/_app/immutable/nodes/14.Cr--S5ma.js new file mode 100644 index 0000000..bee8e05 --- /dev/null +++ b/docs/_app/immutable/nodes/14.Cr--S5ma.js @@ -0,0 +1 @@ +import{h as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/14.DXxk4nFJ.js b/docs/_app/immutable/nodes/14.DXxk4nFJ.js deleted file mode 100644 index b5612ac..0000000 --- a/docs/_app/immutable/nodes/14.DXxk4nFJ.js +++ /dev/null @@ -1 +0,0 @@ -import{h as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/15.CBoX5vgC.js b/docs/_app/immutable/nodes/15.CBoX5vgC.js deleted file mode 100644 index b460fe4..0000000 --- a/docs/_app/immutable/nodes/15.CBoX5vgC.js +++ /dev/null @@ -1 +0,0 @@ -import{i as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/15.gf1lWMDc.js b/docs/_app/immutable/nodes/15.gf1lWMDc.js new file mode 100644 index 0000000..9294a3e --- /dev/null +++ b/docs/_app/immutable/nodes/15.gf1lWMDc.js @@ -0,0 +1 @@ +import{i as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/16.C2Fh3IDJ.js b/docs/_app/immutable/nodes/16.C2Fh3IDJ.js new file mode 100644 index 0000000..832aeee --- /dev/null +++ b/docs/_app/immutable/nodes/16.C2Fh3IDJ.js @@ -0,0 +1 @@ +import{j as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/16.DcshRrxs.js b/docs/_app/immutable/nodes/16.DcshRrxs.js deleted file mode 100644 index 69a95ce..0000000 --- a/docs/_app/immutable/nodes/16.DcshRrxs.js +++ /dev/null @@ -1 +0,0 @@ -import{j as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/2.Dj5JHHjz.js b/docs/_app/immutable/nodes/2.3fy9hBh0.js similarity index 94% rename from docs/_app/immutable/nodes/2.Dj5JHHjz.js rename to docs/_app/immutable/nodes/2.3fy9hBh0.js index b4dc76a..88f895a 100644 --- a/docs/_app/immutable/nodes/2.Dj5JHHjz.js +++ b/docs/_app/immutable/nodes/2.3fy9hBh0.js @@ -1 +1 @@ -import{s as d,c as h,u as v,g as $,a as g}from"../chunks/scheduler.BRd-yEOV.js";import{S as b,i as H,e as _,s as L,c as m,g as y,a as C,b as D,d as f,f as p,h as u,t as I,j as M}from"../chunks/index.BHR9i4nQ.js";import{h as S}from"../chunks/utils.rIxyFrg4.js";function T(n){let s,r=`← Home`,o,a,l;const c=n[1].default,t=h(c,n,n[0],null);return{c(){s=_("div"),s.innerHTML=r,o=L(),a=_("div"),t&&t.c(),this.h()},l(e){s=m(e,"DIV",{class:!0,"data-svelte-h":!0}),y(s)!=="svelte-166zorm"&&(s.innerHTML=r),o=C(e),a=m(e,"DIV",{class:!0});var i=D(a);t&&t.l(i),i.forEach(f),this.h()},h(){p(s,"class","bg-stone-100 p-4"),p(a,"class","p-4")},m(e,i){u(e,s,i),u(e,o,i),u(e,a,i),t&&t.m(a,null),l=!0},p(e,[i]){t&&t.p&&(!l||i&1)&&v(t,c,e,e[0],l?g(c,e[0],i,null):$(e[0]),null)},i(e){l||(I(t,e),l=!0)},o(e){M(t,e),l=!1},d(e){e&&(f(s),f(o),f(a)),t&&t.d(e)}}}function V(n,s,r){let{$$slots:o={},$$scope:a}=s;return n.$$set=l=>{"$$scope"in l&&r(0,a=l.$$scope)},[a,o]}class z extends b{constructor(s){super(),H(this,s,V,T,d,{})}}export{z as component}; +import{s as d,c as h,u as v,g as $,a as g}from"../chunks/scheduler.BRd-yEOV.js";import{S as b,i as H,e as _,s as L,c as m,g as y,a as C,b as D,d as f,f as p,h as u,t as I,j as M}from"../chunks/index.BHR9i4nQ.js";import{h as S}from"../chunks/utils.CpCCSDFZ.js";function T(n){let s,r=`← Home`,o,a,l;const c=n[1].default,t=h(c,n,n[0],null);return{c(){s=_("div"),s.innerHTML=r,o=L(),a=_("div"),t&&t.c(),this.h()},l(e){s=m(e,"DIV",{class:!0,"data-svelte-h":!0}),y(s)!=="svelte-166zorm"&&(s.innerHTML=r),o=C(e),a=m(e,"DIV",{class:!0});var i=D(a);t&&t.l(i),i.forEach(f),this.h()},h(){p(s,"class","bg-stone-100 p-4"),p(a,"class","p-4")},m(e,i){u(e,s,i),u(e,o,i),u(e,a,i),t&&t.m(a,null),l=!0},p(e,[i]){t&&t.p&&(!l||i&1)&&v(t,c,e,e[0],l?g(c,e[0],i,null):$(e[0]),null)},i(e){l||(I(t,e),l=!0)},o(e){M(t,e),l=!1},d(e){e&&(f(s),f(o),f(a)),t&&t.d(e)}}}function V(n,s,r){let{$$slots:o={},$$scope:a}=s;return n.$$set=l=>{"$$scope"in l&&r(0,a=l.$$scope)},[a,o]}class z extends b{constructor(s){super(),H(this,s,V,T,d,{})}}export{z as component}; diff --git a/docs/_app/immutable/nodes/3.lEw74TIv.js b/docs/_app/immutable/nodes/3.DpyGOltx.js similarity index 89% rename from docs/_app/immutable/nodes/3.lEw74TIv.js rename to docs/_app/immutable/nodes/3.DpyGOltx.js index c544fe9..64f68c6 100644 --- a/docs/_app/immutable/nodes/3.lEw74TIv.js +++ b/docs/_app/immutable/nodes/3.DpyGOltx.js @@ -1 +1 @@ -import{s as l,c as i,u as r,g as u,a as f}from"../chunks/scheduler.BRd-yEOV.js";import{S as _,i as c,t as p,j as m}from"../chunks/index.BHR9i4nQ.js";import"../chunks/16.Daqv5-z-.js";function $(n){let s;const a=n[1].default,e=i(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class b extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{b as component}; +import{s as l,c as i,u as r,g as u,a as f}from"../chunks/scheduler.BRd-yEOV.js";import{S as _,i as c,t as p,j as m}from"../chunks/index.BHR9i4nQ.js";import"../chunks/16.DduAFaeW.js";function $(n){let s;const a=n[1].default,e=i(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class b extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{b as component}; diff --git a/docs/_app/immutable/nodes/4.DtYcaRek.js b/docs/_app/immutable/nodes/4.D8SNx2dc.js similarity index 83% rename from docs/_app/immutable/nodes/4.DtYcaRek.js rename to docs/_app/immutable/nodes/4.D8SNx2dc.js index 4d2f3dd..738373f 100644 --- a/docs/_app/immutable/nodes/4.DtYcaRek.js +++ b/docs/_app/immutable/nodes/4.D8SNx2dc.js @@ -1 +1 @@ -import{s as K,c as ae,u as ce,g as ue,a as _e,n as ge,f as x}from"../chunks/scheduler.BRd-yEOV.js";import{S as L,i as Q,t as d,j as E,o as ee,h as p,r as T,p as U,d as c,u as te,e as b,s as w,v as A,k as y,c as N,b as R,a as J,w as H,l as V,f as P,x as C,m as O,z as me,y as j,n as W}from"../chunks/index.BHR9i4nQ.js";import{g as pe,a as he,D as $e,b as de}from"../chunks/16.Daqv5-z-.js";function M(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}const ve=s=>({entries:s&3}),le=s=>({entries:pe(s[0],{sort:s[1]})});function Ee(s){let l;const o=s[3].default,e=ae(o,s,s[2],le);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,i){e&&e.m(t,i),l=!0},p(t,[i]){e&&e.p&&(!l||i&7)&&ce(e,o,t,t[2],l?_e(o,t[2],i,ve):ue(t[2]),le)},i(t){l||(d(e,t),l=!0)},o(t){E(e,t),l=!1},d(t){e&&e.d(t)}}}function be(s,l,o){let{$$slots:e={},$$scope:t}=l,{name:i}=l,{sort:r=void 0}=l;return s.$$set=f=>{"name"in f&&o(0,i=f.name),"sort"in f&&o(1,r=f.sort),"$$scope"in f&&o(2,t=f.$$scope)},[i,r,t,e]}class Ne extends L{constructor(l){super(),Q(this,l,be,Ee,K,{name:0,sort:1})}}const Se=s=>({relation:s&1}),ne=s=>{var l;return{relation:he((l=s[0])==null?void 0:l.collection,s[0].id)}};function se(s){let l;const o=s[2].default,e=ae(o,s,s[1],ne);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,i){e&&e.m(t,i),l=!0},p(t,i){e&&e.p&&(!l||i&3)&&ce(e,o,t,t[1],l?_e(o,t[1],i,Se):ue(t[1]),ne)},i(t){l||(d(e,t),l=!0)},o(t){E(e,t),l=!1},d(t){e&&e.d(t)}}}function ke(s){let l,o,e=s[0]&&se(s);return{c(){e&&e.c(),l=ee()},l(t){e&&e.l(t),l=ee()},m(t,i){e&&e.m(t,i),p(t,l,i),o=!0},p(t,[i]){t[0]?e?(e.p(t,i),i&1&&d(e,1)):(e=se(t),e.c(),d(e,1),e.m(l.parentNode,l)):e&&(T(),E(e,1,1,()=>{e=null}),U())},i(t){o||(d(e),o=!0)},o(t){E(e),o=!1},d(t){t&&c(l),e&&e.d(t)}}}function we(s,l,o){let{$$slots:e={},$$scope:t}=l,{relation:i}=l;return s.$$set=r=>{"relation"in r&&o(0,i=r.relation),"$$scope"in r&&o(1,t=r.$$scope)},[i,t,e]}class Je extends L{constructor(l){super(),Q(this,l,we,ke,K,{relation:0})}}function oe(s,l,o){const e=s.slice();return e[3]=l[o],e}function ie(s,l,o){const e=s.slice();return e[8]=l[o],e}function re(s){let l,o=s[8]+"",e;return{c(){l=b("a"),e=y(o),this.h()},l(t){l=N(t,"A",{class:!0,href:!0});var i=R(l);e=V(i,o),i.forEach(c),this.h()},h(){P(l,"class","link block"),P(l,"href",s[8])},m(t,i){p(t,l,i),O(l,e)},p:ge,d(t){t&&c(l)}}}function Oe(s){let l,o=JSON.stringify(s[7])+"",e,t,i,r;return{c(){l=b("pre"),e=y(o),t=w(),i=b("img"),this.h()},l(f){l=N(f,"PRE",{});var a=R(l);e=V(a,o),a.forEach(c),t=J(f),i=N(f,"IMG",{alt:!0,src:!0}),this.h()},h(){var f;P(i,"alt","ciao"),x(i.src,r=(f=s[7].props)==null?void 0:f.logo)||P(i,"src",r)},m(f,a){p(f,l,a),O(l,e),p(f,t,a),p(f,i,a)},p(f,a){var h;a&128&&o!==(o=JSON.stringify(f[7])+"")&&W(e,o),a&128&&!x(i.src,r=(h=f[7].props)==null?void 0:h.logo)&&P(i,"src",r)},d(f){f&&(c(l),c(t),c(i))}}}function Re(s){let l,o=JSON.stringify(s[6],null,2)+"",e;return{c(){l=b("pre"),e=y(o)},l(t){l=N(t,"PRE",{});var i=R(l);e=V(i,o),i.forEach(c)},m(t,i){p(t,l,i),O(l,e)},p(t,i){i&64&&o!==(o=JSON.stringify(t[6],null,2)+"")&&W(e,o)},d(t){t&&c(l)}}}function fe(s){var h;let l,o,e=JSON.stringify(s[3],null,2)+"",t,i,r,f,a;return r=new Je({props:{relation:(h=s[3].props)==null?void 0:h.organization,$$slots:{default:[Re,({relation:_})=>({6:_}),({relation:_})=>_?64:0]},$$scope:{ctx:s}}}),{c(){l=b("div"),o=b("pre"),t=y(e),i=w(),A(r.$$.fragment),f=w(),this.h()},l(_){l=N(_,"DIV",{class:!0});var g=R(l);o=N(g,"PRE",{});var v=R(o);t=V(v,e),v.forEach(c),i=J(g),H(r.$$.fragment,g),f=J(g),g.forEach(c),this.h()},h(){P(l,"class","rounded-lg border border-gray-300 p-4")},m(_,g){p(_,l,g),O(l,o),O(o,t),O(l,i),C(r,l,null),O(l,f),a=!0},p(_,g){var k;(!a||g&4)&&e!==(e=JSON.stringify(_[3],null,2)+"")&&W(t,e);const v={};g&4&&(v.relation=(k=_[3].props)==null?void 0:k.organization),g&2112&&(v.$$scope={dirty:g,ctx:_}),r.$set(v)},i(_){a||(d(r.$$.fragment,_),a=!0)},o(_){E(r.$$.fragment,_),a=!1},d(_){_&&c(l),j(r)}}}function ze(s){let l,o,e=M(s[2]),t=[];for(let r=0;rE(t[r],1,1,()=>{t[r]=null});return{c(){l=b("div");for(let r=0;r({7:n}),({doc:n})=>n?128:0]},$$scope:{ctx:s}}}),z=new Ne({props:{name:"work_experiences",sort:[["current","asc"],["date_start","desc"]],$$slots:{default:[ze,({entries:n})=>({2:n}),({entries:n})=>n?4:0]},$$scope:{ctx:s}}}),{c(){l=b("div");for(let n=0;n<$.length;n+=1)$[n].c();o=w(),e&&A(e.$$.fragment),t=w(),i=b("pre"),f=y(r),a=w(),A(h.$$.fragment),_=w(),g=b("hr"),v=w(),k=b("pre"),F=y(X),B=w(),A(z.$$.fragment),this.h()},l(n){l=N(n,"DIV",{class:!0});var u=R(l);for(let m=0;m<$.length;m+=1)$[m].l(u);u.forEach(c),o=J(n),e&&H(e.$$.fragment,n),t=J(n),i=N(n,"PRE",{});var S=R(i);f=V(S,r),S.forEach(c),a=J(n),H(h.$$.fragment,n),_=J(n),g=N(n,"HR",{}),v=J(n),k=N(n,"PRE",{});var q=R(k);F=V(q,X),q.forEach(c),B=J(n),H(z.$$.fragment,n),this.h()},h(){P(l,"class","space-y-2 p-4")},m(n,u){p(n,l,u);for(let S=0;S<$.length;S+=1)$[S]&&$[S].m(l,null);p(n,o,u),e&&C(e,n,u),p(n,t,u),p(n,i,u),O(i,f),p(n,a,u),C(h,n,u),p(n,_,u),p(n,g,u),p(n,v,u),p(n,k,u),O(k,F),p(n,B,u),C(z,n,u),G=!0},p(n,[u]){if(u&1){D=M(n[0]);let m;for(m=0;m{j(m,1)}),U()}I?(e=te(I,Y()),A(e.$$.fragment),d(e.$$.fragment,1),C(e,t.parentNode,t)):e=null}const S={};u&2176&&(S.$$scope={dirty:u,ctx:n}),h.$set(S);const q={};u&2052&&(q.$$scope={dirty:u,ctx:n}),z.$set(q)},i(n){G||(e&&d(e.$$.fragment,n),d(h.$$.fragment,n),d(z.$$.fragment,n),G=!0)},o(n){e&&E(e.$$.fragment,n),E(h.$$.fragment,n),E(z.$$.fragment,n),G=!1},d(n){n&&(c(l),c(o),c(t),c(i),c(a),c(_),c(g),c(v),c(k),c(B)),me($,n),e&&j(e,n),j(h,n),j(z,n)}}}function De(s){const l=de(),o=he("organizations","dyne");return[l,o]}class qe extends L{constructor(l){super(),Q(this,l,De,Pe,K,{})}}export{qe as component}; +import{s as K,c as ae,u as ce,g as ue,a as _e,n as ge,f as x}from"../chunks/scheduler.BRd-yEOV.js";import{S as L,i as Q,t as d,j as E,o as ee,h as p,r as T,p as U,d as c,u as te,e as b,s as w,v as A,k as V,c as N,b as R,a as J,w as H,l as q,f as P,x as C,m as O,z as me,y as j,n as W}from"../chunks/index.BHR9i4nQ.js";import{g as pe,a as he,D as $e,b as de}from"../chunks/16.DduAFaeW.js";function M(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}const ve=s=>({entries:s&3}),le=s=>({entries:pe(s[0],{sort:s[1]})});function Ee(s){let l;const o=s[3].default,e=ae(o,s,s[2],le);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,i){e&&e.m(t,i),l=!0},p(t,[i]){e&&e.p&&(!l||i&7)&&ce(e,o,t,t[2],l?_e(o,t[2],i,ve):ue(t[2]),le)},i(t){l||(d(e,t),l=!0)},o(t){E(e,t),l=!1},d(t){e&&e.d(t)}}}function be(s,l,o){let{$$slots:e={},$$scope:t}=l,{name:i}=l,{sort:r=void 0}=l;return s.$$set=f=>{"name"in f&&o(0,i=f.name),"sort"in f&&o(1,r=f.sort),"$$scope"in f&&o(2,t=f.$$scope)},[i,r,t,e]}class Ne extends L{constructor(l){super(),Q(this,l,be,Ee,K,{name:0,sort:1})}}const Se=s=>({relation:s&1}),ne=s=>{var l;return{relation:he((l=s[0])==null?void 0:l.collection,s[0].id)}};function se(s){let l;const o=s[2].default,e=ae(o,s,s[1],ne);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,i){e&&e.m(t,i),l=!0},p(t,i){e&&e.p&&(!l||i&3)&&ce(e,o,t,t[1],l?_e(o,t[1],i,Se):ue(t[1]),ne)},i(t){l||(d(e,t),l=!0)},o(t){E(e,t),l=!1},d(t){e&&e.d(t)}}}function ke(s){let l,o,e=s[0]&&se(s);return{c(){e&&e.c(),l=ee()},l(t){e&&e.l(t),l=ee()},m(t,i){e&&e.m(t,i),p(t,l,i),o=!0},p(t,[i]){t[0]?e?(e.p(t,i),i&1&&d(e,1)):(e=se(t),e.c(),d(e,1),e.m(l.parentNode,l)):e&&(T(),E(e,1,1,()=>{e=null}),U())},i(t){o||(d(e),o=!0)},o(t){E(e),o=!1},d(t){t&&c(l),e&&e.d(t)}}}function we(s,l,o){let{$$slots:e={},$$scope:t}=l,{relation:i}=l;return s.$$set=r=>{"relation"in r&&o(0,i=r.relation),"$$scope"in r&&o(1,t=r.$$scope)},[i,t,e]}class Je extends L{constructor(l){super(),Q(this,l,we,ke,K,{relation:0})}}function oe(s,l,o){const e=s.slice();return e[3]=l[o],e}function ie(s,l,o){const e=s.slice();return e[8]=l[o],e}function re(s){let l,o=s[8]+"",e;return{c(){l=b("a"),e=V(o),this.h()},l(t){l=N(t,"A",{class:!0,href:!0});var i=R(l);e=q(i,o),i.forEach(c),this.h()},h(){P(l,"class","link block"),P(l,"href",s[8])},m(t,i){p(t,l,i),O(l,e)},p:ge,d(t){t&&c(l)}}}function Oe(s){let l,o=JSON.stringify(s[7])+"",e,t,i,r;return{c(){l=b("pre"),e=V(o),t=w(),i=b("img"),this.h()},l(f){l=N(f,"PRE",{});var a=R(l);e=q(a,o),a.forEach(c),t=J(f),i=N(f,"IMG",{alt:!0,src:!0}),this.h()},h(){var f;P(i,"alt","ciao"),x(i.src,r=(f=s[7].props)==null?void 0:f.logo)||P(i,"src",r)},m(f,a){p(f,l,a),O(l,e),p(f,t,a),p(f,i,a)},p(f,a){var h;a&128&&o!==(o=JSON.stringify(f[7])+"")&&W(e,o),a&128&&!x(i.src,r=(h=f[7].props)==null?void 0:h.logo)&&P(i,"src",r)},d(f){f&&(c(l),c(t),c(i))}}}function Re(s){let l,o=JSON.stringify(s[6],null,2)+"",e;return{c(){l=b("pre"),e=V(o)},l(t){l=N(t,"PRE",{});var i=R(l);e=q(i,o),i.forEach(c)},m(t,i){p(t,l,i),O(l,e)},p(t,i){i&64&&o!==(o=JSON.stringify(t[6],null,2)+"")&&W(e,o)},d(t){t&&c(l)}}}function fe(s){var h;let l,o,e=JSON.stringify(s[3],null,2)+"",t,i,r,f,a;return r=new Je({props:{relation:(h=s[3].props)==null?void 0:h.organization,$$slots:{default:[Re,({relation:_})=>({6:_}),({relation:_})=>_?64:0]},$$scope:{ctx:s}}}),{c(){l=b("div"),o=b("pre"),t=V(e),i=w(),A(r.$$.fragment),f=w(),this.h()},l(_){l=N(_,"DIV",{class:!0});var g=R(l);o=N(g,"PRE",{});var v=R(o);t=q(v,e),v.forEach(c),i=J(g),H(r.$$.fragment,g),f=J(g),g.forEach(c),this.h()},h(){P(l,"class","rounded-lg border border-gray-300 p-4")},m(_,g){p(_,l,g),O(l,o),O(o,t),O(l,i),C(r,l,null),O(l,f),a=!0},p(_,g){var k;(!a||g&4)&&e!==(e=JSON.stringify(_[3],null,2)+"")&&W(t,e);const v={};g&4&&(v.relation=(k=_[3].props)==null?void 0:k.organization),g&2112&&(v.$$scope={dirty:g,ctx:_}),r.$set(v)},i(_){a||(d(r.$$.fragment,_),a=!0)},o(_){E(r.$$.fragment,_),a=!1},d(_){_&&c(l),j(r)}}}function ze(s){let l,o,e=M(s[2]),t=[];for(let r=0;rE(t[r],1,1,()=>{t[r]=null});return{c(){l=b("div");for(let r=0;r({7:n}),({doc:n})=>n?128:0]},$$scope:{ctx:s}}}),z=new Ne({props:{name:"work_experiences",sort:[["current","asc"],["date_start","desc"]],$$slots:{default:[ze,({entries:n})=>({2:n}),({entries:n})=>n?4:0]},$$scope:{ctx:s}}}),{c(){l=b("div");for(let n=0;n<$.length;n+=1)$[n].c();o=w(),e&&A(e.$$.fragment),t=w(),i=b("pre"),f=V(r),a=w(),A(h.$$.fragment),_=w(),g=b("hr"),v=w(),k=b("pre"),F=V(X),B=w(),A(z.$$.fragment),this.h()},l(n){l=N(n,"DIV",{class:!0});var u=R(l);for(let m=0;m<$.length;m+=1)$[m].l(u);u.forEach(c),o=J(n),e&&H(e.$$.fragment,n),t=J(n),i=N(n,"PRE",{});var S=R(i);f=q(S,r),S.forEach(c),a=J(n),H(h.$$.fragment,n),_=J(n),g=N(n,"HR",{}),v=J(n),k=N(n,"PRE",{});var y=R(k);F=q(y,X),y.forEach(c),B=J(n),H(z.$$.fragment,n),this.h()},h(){P(l,"class","space-y-2 p-4")},m(n,u){p(n,l,u);for(let S=0;S<$.length;S+=1)$[S]&&$[S].m(l,null);p(n,o,u),e&&C(e,n,u),p(n,t,u),p(n,i,u),O(i,f),p(n,a,u),C(h,n,u),p(n,_,u),p(n,g,u),p(n,v,u),p(n,k,u),O(k,F),p(n,B,u),C(z,n,u),G=!0},p(n,[u]){if(u&1){D=M(n[0]);let m;for(m=0;m{j(m,1)}),U()}I?(e=te(I,Y()),A(e.$$.fragment),d(e.$$.fragment,1),C(e,t.parentNode,t)):e=null}const S={};u&2176&&(S.$$scope={dirty:u,ctx:n}),h.$set(S);const y={};u&2052&&(y.$$scope={dirty:u,ctx:n}),z.$set(y)},i(n){G||(e&&d(e.$$.fragment,n),d(h.$$.fragment,n),d(z.$$.fragment,n),G=!0)},o(n){e&&E(e.$$.fragment,n),E(h.$$.fragment,n),E(z.$$.fragment,n),G=!1},d(n){n&&(c(l),c(o),c(t),c(i),c(a),c(_),c(g),c(v),c(k),c(B)),me($,n),e&&j(e,n),j(h,n),j(z,n)}}}function De(s){const l=de(),o=he("organizations","ff3300");return[l,o]}class ye extends L{constructor(l){super(),Q(this,l,De,Pe,K,{})}}export{ye as component}; diff --git a/docs/_app/immutable/nodes/5.BQLp8i60.js b/docs/_app/immutable/nodes/5.BQLp8i60.js deleted file mode 100644 index f9f2edb..0000000 --- a/docs/_app/immutable/nodes/5.BQLp8i60.js +++ /dev/null @@ -1 +0,0 @@ -import{P as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/5.D1otNT5X.js b/docs/_app/immutable/nodes/5.D1otNT5X.js new file mode 100644 index 0000000..b40bffc --- /dev/null +++ b/docs/_app/immutable/nodes/5.D1otNT5X.js @@ -0,0 +1 @@ +import{P as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/6.BDqu72EF.js b/docs/_app/immutable/nodes/6.BDqu72EF.js new file mode 100644 index 0000000..5fcc6e5 --- /dev/null +++ b/docs/_app/immutable/nodes/6.BDqu72EF.js @@ -0,0 +1 @@ +import{c as e}from"../chunks/16.DduAFaeW.js";export{e as component}; diff --git a/docs/_app/immutable/nodes/6.BR_lp4Zm.js b/docs/_app/immutable/nodes/6.BR_lp4Zm.js deleted file mode 100644 index 400016a..0000000 --- a/docs/_app/immutable/nodes/6.BR_lp4Zm.js +++ /dev/null @@ -1 +0,0 @@ -import{c as e}from"../chunks/16.Daqv5-z-.js";export{e as component}; diff --git a/docs/_app/immutable/nodes/7.5Vz0FGKA.js b/docs/_app/immutable/nodes/7.5Vz0FGKA.js deleted file mode 100644 index 004096e..0000000 --- a/docs/_app/immutable/nodes/7.5Vz0FGKA.js +++ /dev/null @@ -1 +0,0 @@ -import{d as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/7.FZJiREs5.js b/docs/_app/immutable/nodes/7.FZJiREs5.js new file mode 100644 index 0000000..e149069 --- /dev/null +++ b/docs/_app/immutable/nodes/7.FZJiREs5.js @@ -0,0 +1 @@ +import{d as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/8.DrX9OYhH.js b/docs/_app/immutable/nodes/8.DrX9OYhH.js deleted file mode 100644 index 2999faf..0000000 --- a/docs/_app/immutable/nodes/8.DrX9OYhH.js +++ /dev/null @@ -1 +0,0 @@ -import{e as m}from"../chunks/16.Daqv5-z-.js";export{m as component}; diff --git a/docs/_app/immutable/nodes/8.JQ3f7zIt.js b/docs/_app/immutable/nodes/8.JQ3f7zIt.js new file mode 100644 index 0000000..2512e38 --- /dev/null +++ b/docs/_app/immutable/nodes/8.JQ3f7zIt.js @@ -0,0 +1 @@ +import{e as m}from"../chunks/16.DduAFaeW.js";export{m as component}; diff --git a/docs/_app/version.json b/docs/_app/version.json index 0040c9e..7b909f2 100644 --- a/docs/_app/version.json +++ b/docs/_app/version.json @@ -1 +1 @@ -{"version":"1709217978934"} \ No newline at end of file +{"version":"1709218273055"} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0672e9a..5a1969e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,26 +5,26 @@ - - + + - - + +