@powerhousedao/connect 3.3.0-dev.1 → 3.3.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/assets/{AddDriveModal.yXJEA9dn.js → AddDriveModal.BgXhoiMh.js} +2 -2
  2. package/dist/assets/{AddDriveModal.yXJEA9dn.js.map → AddDriveModal.BgXhoiMh.js.map} +1 -1
  3. package/dist/assets/{CreateDocumentModal.zhx2uYGp.js → CreateDocumentModal.CoUl7lV3.js} +2 -2
  4. package/dist/assets/{CreateDocumentModal.zhx2uYGp.js.map → CreateDocumentModal.CoUl7lV3.js.map} +1 -1
  5. package/dist/assets/{DebugSettingsModal.DvEkX05w.js → DebugSettingsModal.DqLTP5K6.js} +2 -2
  6. package/dist/assets/{DebugSettingsModal.DvEkX05w.js.map → DebugSettingsModal.DqLTP5K6.js.map} +1 -1
  7. package/dist/assets/{SettingsModal.CPuOjusQ.js → SettingsModal.c0B6jJq2.js} +2 -2
  8. package/dist/assets/{SettingsModal.CPuOjusQ.js.map → SettingsModal.c0B6jJq2.js.map} +1 -1
  9. package/dist/assets/{app.BBGMhdcG.js → app.32c5gHmj.js} +5 -5
  10. package/dist/assets/{app.BBGMhdcG.js.map → app.32c5gHmj.js.map} +1 -1
  11. package/dist/assets/{atlas-import.B08ZeL8Z.js → atlas-import.DEWsCiBk.js} +2 -2
  12. package/dist/assets/{atlas-import.B08ZeL8Z.js.map → atlas-import.DEWsCiBk.js.map} +1 -1
  13. package/dist/assets/{connect.config.Chuz5qOB.js → connect.config.DPyK4Jod.js} +2 -2
  14. package/dist/assets/{connect.config.Chuz5qOB.js.map → connect.config.DPyK4Jod.js.map} +1 -1
  15. package/dist/assets/{content.CNwqWaAX.js → content.kA-PYal5.js} +2 -2
  16. package/dist/assets/{content.CNwqWaAX.js.map → content.kA-PYal5.js.map} +1 -1
  17. package/dist/assets/{cookie-banner.DlRocDj6.js → cookie-banner.BYNFfEKW.js} +2 -2
  18. package/dist/assets/{cookie-banner.DlRocDj6.js.map → cookie-banner.BYNFfEKW.js.map} +1 -1
  19. package/dist/assets/{home.FhOoy9rZ.js → home.rIH0yqJa.js} +2 -2
  20. package/dist/assets/{home.FhOoy9rZ.js.map → home.rIH0yqJa.js.map} +1 -1
  21. package/dist/assets/{index.DEtgl3ZO.js → index.Boraf2w_.js} +2 -2
  22. package/dist/assets/{index.DEtgl3ZO.js.map → index.Boraf2w_.js.map} +1 -1
  23. package/dist/assets/{index.jLonB9Cd.js → index.C-xTFooO.js} +2 -2
  24. package/dist/assets/{index.jLonB9Cd.js.map → index.C-xTFooO.js.map} +1 -1
  25. package/dist/assets/{index.Dc4XjKbd.js → index.CSR1o9jA.js} +2 -2
  26. package/dist/assets/{index.Dc4XjKbd.js.map → index.CSR1o9jA.js.map} +1 -1
  27. package/dist/assets/{index.BJM1a6Vn.js → index.CWo9c4bp.js} +2 -2
  28. package/dist/assets/{index.BJM1a6Vn.js.map → index.CWo9c4bp.js.map} +1 -1
  29. package/dist/assets/{index.CsVNRIpe.js → index.StNaZPq6.js} +3 -3
  30. package/dist/assets/{index.CsVNRIpe.js.map → index.StNaZPq6.js.map} +1 -1
  31. package/dist/assets/{index.NPS3Qt0p.js → index.uNRd3jPU.js} +2 -2
  32. package/dist/assets/{index.NPS3Qt0p.js.map → index.uNRd3jPU.js.map} +1 -1
  33. package/dist/assets/{index.Dq6VnXBz.js → index.wi4PancZ.js} +2 -2
  34. package/dist/assets/{index.Dq6VnXBz.js.map → index.wi4PancZ.js.map} +1 -1
  35. package/dist/assets/{main.BLwndYQG.js → main.CQVDjmCu.js} +3 -3
  36. package/dist/assets/{main.BLwndYQG.js.map → main.CQVDjmCu.js.map} +1 -1
  37. package/dist/assets/{modal.9FClW3-d.js → modal.BfdcABh4.js} +3 -3
  38. package/dist/assets/{modal.9FClW3-d.js.map → modal.BfdcABh4.js.map} +1 -1
  39. package/dist/assets/{modals.CYKC1tke.js → modals.A6sVd5gD.js} +2 -2
  40. package/dist/assets/{modals.CYKC1tke.js.map → modals.A6sVd5gD.js.map} +1 -1
  41. package/dist/assets/{nodefs.DpgsV4pB.js → nodefs.-VhAN1o-.js} +2 -2
  42. package/dist/assets/{nodefs.DpgsV4pB.js.map → nodefs.-VhAN1o-.js.map} +1 -1
  43. package/dist/assets/{opfs-ahp.CCt086dZ.js → opfs-ahp.DfAaRTE1.js} +2 -2
  44. package/dist/assets/{opfs-ahp.CCt086dZ.js.map → opfs-ahp.DfAaRTE1.js.map} +1 -1
  45. package/dist/assets/{registerServiceWorker.Bx7UoMzt.js → registerServiceWorker.EQxorQcm.js} +2 -2
  46. package/dist/assets/{registerServiceWorker.Bx7UoMzt.js.map → registerServiceWorker.EQxorQcm.js.map} +1 -1
  47. package/dist/assets/{root.CcruTSJD.js → root.CPcpblDb.js} +2 -2
  48. package/dist/assets/{root.CcruTSJD.js.map → root.CPcpblDb.js.map} +1 -1
  49. package/dist/assets/{useAcceptedCookies.DKmGnYgZ.js → useAcceptedCookies.0oEpgMaL.js} +2 -2
  50. package/dist/assets/{useAcceptedCookies.DKmGnYgZ.js.map → useAcceptedCookies.0oEpgMaL.js.map} +1 -1
  51. package/dist/assets/useConnectConfig.DdI2NHQB.js +2 -0
  52. package/dist/assets/{useConnectConfig.CgYEWJU3.js.map → useConnectConfig.DdI2NHQB.js.map} +1 -1
  53. package/dist/assets/{useDefaultDocumentModelEditor.CQii-K8R.js → useDefaultDocumentModelEditor.BqgqU3q7.js} +2 -2
  54. package/dist/assets/{useDefaultDocumentModelEditor.CQii-K8R.js.map → useDefaultDocumentModelEditor.BqgqU3q7.js.map} +1 -1
  55. package/dist/assets/{useDocumentDriveServer.DDI3bzlQ.js → useDocumentDriveServer.DWcjAAwV.js} +2 -2
  56. package/dist/assets/{useDocumentDriveServer.DDI3bzlQ.js.map → useDocumentDriveServer.DWcjAAwV.js.map} +1 -1
  57. package/dist/assets/{useFeatureFlags.7iD-Xvzq.js → useFeatureFlags.sXfJU4Dt.js} +2 -2
  58. package/dist/assets/{useFeatureFlags.7iD-Xvzq.js.map → useFeatureFlags.sXfJU4Dt.js.map} +1 -1
  59. package/dist/assets/{user.DXq1cNF_.js → user.BMmmB6tx.js} +4 -4
  60. package/dist/assets/{user.DXq1cNF_.js.map → user.BMmmB6tx.js.map} +1 -1
  61. package/dist/index.html +1 -1
  62. package/dist/vite-envs.sh +1 -1
  63. package/package.json +9 -9
  64. package/dist/assets/useConnectConfig.CgYEWJU3.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./nodefs.DpgsV4pB.js","./index.BMPxkQED.js","./connect.config.Chuz5qOB.js","./browser.BkwNmV2Z.js","./user.DXq1cNF_.js","./index.CsVNRIpe.js","./app-skeleton.js","./index-B7k827uL.css","./useFeatureFlags.7iD-Xvzq.js","./useAcceptedCookies.DKmGnYgZ.js","./useConnectConfig.CgYEWJU3.js","./index.CAUjMUXb.js","./registerServiceWorker.Bx7UoMzt.js","./opfs-ahp.CCt086dZ.js","./index.Dq6VnXBz.js","./index.Dc4XjKbd.js","./index.BJM1a6Vn.js","./index.DEtgl3ZO.js","./home.FhOoy9rZ.js","./modals.CYKC1tke.js","./i18next.CqOP20KE.js","./useDocumentDriveServer.DDI3bzlQ.js","./slug.C6xW_7Wm.js","./modal.9FClW3-d.js","./content.CNwqWaAX.js","./react-error-boundary.esm.BPLyXlMw.js","./useDefaultDocumentModelEditor.CQii-K8R.js","./useTranslation.BpVv6XIW.js","./toast.BX1oolJV.js","./root.CcruTSJD.js","./atlas-import.B08ZeL8Z.js"])))=>i.map(i=>d[i]);
2
- var Ni=Object.defineProperty;var $i=(e,t,I)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:I}):e[t]=I;var Mi=(e,t,I)=>$i(e,typeof t!="symbol"?t+"":t,I);import{jsxs,jsx,Fragment}from"react/jsx-runtime";import{r as require$$1,d as commonjsGlobal,p as process,g as getDefaultExportFromCjs,_ as __vitePreload,Q as QueryClientProvider,e as QueryClient,f as useQuery,h as useQueryClient,i as useMutation,j as childLogger,k as generateId,I as InternalTransmitter,l as logger$4,R as ReadDriveNotFoundError,b as useAtomValue,a as atom,W as WagmiContext,T as ToastContainer,U as UiNodesContextProvider}from"./index.BMPxkQED.js";import*as React from"react";import React__default,{useMemo,useEffect,useState,createContext,useContext,useRef,Suspense}from"react";import{c as connectConfig}from"./connect.config.Chuz5qOB.js";import{e as externalPackagesAtom,u as useRenown}from"./user.DXq1cNF_.js";import{u as useAsyncReactor,a as useUserPermissions,d as drivesToHash,r as reactorAtom}from"./useFeatureFlags.7iD-Xvzq.js";import{a as atomWithLazy,u as unwrap,b as atomStore}from"./index.CsVNRIpe.js";import{u as useAcceptedCookies}from"./useAcceptedCookies.DKmGnYgZ.js";import{u as useConnectConfig}from"./useConnectConfig.CgYEWJU3.js";import*as ReactDOM from"react-dom";import{l as logV6DeprecationWarnings,D as DataRouterContext,a as DataRouterStateContext,R as Router$1,c as createRouter$1,b as createBrowserHistory,u as useRoutesImpl,E as ErrorResponseImpl,m as mapRouteProperties,d as useLocation,e as useNavigate,f as matchRoutes,g as createRoutesFromChildren,h as useNavigationType}from"./index.CAUjMUXb.js";import{s as serviceWorkerManager}from"./registerServiceWorker.Bx7UoMzt.js";class PassthroughAnalyticsProfiler{get prefix(){return""}push(t){}pop(){}popAndReturn(t){return t}async record(t,I){return await I()}recordSync(t,I){return I()}}var AnalyticsSerializerTypes;(function(e){e[e.AnalyticsPath=0]="AnalyticsPath",e[e.AnalyticsPathSegment=1]="AnalyticsPathSegment",e[e.AnalyticsPeriod=2]="AnalyticsPeriod"})(AnalyticsSerializerTypes||(AnalyticsSerializerTypes={}));var AnalyticsPeriodType;(function(e){e[e.Year=0]="Year",e[e.Quarter=1]="Quarter",e[e.Month=2]="Month"})(AnalyticsPeriodType||(AnalyticsPeriodType={}));class AnalyticsPath{constructor(t){Mi(this,"_segments");this._segments=t}get segments(){return this._segments}static fromString(t){const I=parseSeparatedList(t,"/").map(B=>AnalyticsPathSegment.fromString(B));return new AnalyticsPath(I)}static fromStringArray(t){return new AnalyticsPath(t.map(I=>AnalyticsPathSegment.fromString(I)))}static fromArray(t){return new AnalyticsPath(t)}static fromJSON(t){const I=t._v.split("/").map(B=>AnalyticsPathSegment.fromString(B));return new AnalyticsPath(I)}toJSON(){return{_t:AnalyticsSerializerTypes.AnalyticsPath,_v:this.toString()}}toString(t=""){return this._segments.map(I=>I.toString()).join("/")+t}firstSegment(){return this._segments.length>0?this._segments[0]:new AnalyticsPathSegment}reduce(){const t=this._segments.slice(1);return t.length<1&&t.push(new AnalyticsPathSegment),new AnalyticsPath(t)}applyLod(t){const I=[...this._segments];for(;I.length<t;)I.push(new AnalyticsPathSegment);return new AnalyticsPath(I.slice(0,t))}}class AnalyticsPathSegment{constructor(t=null,I=[]){Mi(this,"_filters",null);Mi(this,"_groups",null);this._filters=t,this._groups=I}get filters(){return this._filters}get groups(){return this._groups}static fromString(t){const I=parseSeparatedList(t,":");let B;I[0]==="*"?B=null:B=parseSeparatedList(I[0],",").map(rr=>AnalyticsPathSegment.unescape(rr));let tr;return I[1]===void 0||I[1].length<1?tr=[]:I[1]==="*"?tr=null:tr=parseSeparatedList(I[1],",").map(rr=>AnalyticsPathSegment.unescape(rr)),new AnalyticsPathSegment(B,tr)}static escape(t){return t.replace(/(\\|:|\/|,)/gi,"\\$1")}static unescape(t){return t.replace(/\\(.)/gi,"$1")}toJSON(){return{_t:AnalyticsSerializerTypes.AnalyticsPathSegment,_v:this.toString()}}toString(){let t="";return this._filters===null?t+="*":t+=this._filters.map(I=>AnalyticsPathSegment.escape(I)).join(","),this._groups===null?t+=":*":this._groups.length>0&&(t+=":"+this._groups.map(I=>AnalyticsPathSegment.escape(I)).join(",")),t}}const unescapedSeparatorPattern={":":new RegExp("(?<!\\\\):"),",":new RegExp("(?<!\\\\),"),"/":new RegExp("(?<!\\\\)\\/")};function parseSeparatedList(e,t){let I="@@";for(;e.indexOf(I)>-1;)I+="@";return e.replaceAll("\\\\",I).split(unescapedSeparatorPattern[t]).map(B=>B.replaceAll(I,"\\\\"))}var AnalyticsMetric;(function(e){e[e.Budget=0]="Budget",e[e.Forecast=1]="Forecast",e[e.Actuals=2]="Actuals",e[e.PaymentsOnChain=3]="PaymentsOnChain",e[e.PaymentsOffChainIncluded=4]="PaymentsOffChainIncluded",e[e.FTEs=5]="FTEs"})(AnalyticsMetric||(AnalyticsMetric={}));var CompoundOperator;(function(e){e[e.VectorAdd=0]="VectorAdd",e[e.VectorSubtract=1]="VectorSubtract",e[e.ScalarMultiply=2]="ScalarMultiply",e[e.ScalarDivide=3]="ScalarDivide"})(CompoundOperator||(CompoundOperator={}));var AnalyticsGranularity;(function(e){e[e.Total=0]="Total",e[e.Annual=1]="Annual",e[e.SemiAnnual=2]="SemiAnnual",e[e.Quarterly=3]="Quarterly",e[e.Monthly=4]="Monthly",e[e.Weekly=5]="Weekly",e[e.Daily=6]="Daily",e[e.Hourly=7]="Hourly"})(AnalyticsGranularity||(AnalyticsGranularity={}));class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(t){super(`Invalid unit ${t}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n$1="numeric",s$2="short",l$3="long",DATE_SHORT={year:n$1,month:n$1,day:n$1},DATE_MED={year:n$1,month:s$2,day:n$1},DATE_MED_WITH_WEEKDAY={year:n$1,month:s$2,day:n$1,weekday:s$2},DATE_FULL={year:n$1,month:l$3,day:n$1},DATE_HUGE={year:n$1,month:l$3,day:n$1,weekday:l$3},TIME_SIMPLE={hour:n$1,minute:n$1},TIME_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$2},TIME_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$3},TIME_24_SIMPLE={hour:n$1,minute:n$1,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:s$2},TIME_24_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:l$3},DATETIME_SHORT={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED={year:n$1,month:s$2,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS={year:n$1,month:s$2,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY={year:n$1,month:s$2,day:n$1,weekday:s$2,hour:n$1,minute:n$1},DATETIME_FULL={year:n$1,month:l$3,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$2},DATETIME_FULL_WITH_SECONDS={year:n$1,month:l$3,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$2},DATETIME_HUGE={year:n$1,month:l$3,day:n$1,weekday:l$3,hour:n$1,minute:n$1,timeZoneName:l$3},DATETIME_HUGE_WITH_SECONDS={year:n$1,month:l$3,day:n$1,weekday:l$3,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$3};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(t,I){throw new ZoneIsAbstractError}formatOffset(t,I){throw new ZoneIsAbstractError}offset(t){throw new ZoneIsAbstractError}equals(t){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:I,locale:B}){return parseZoneInfo(t,I,B)}formatOffset(t,I){return formatOffset(this.offset(t),I)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const dtfCache=new Map;function makeDTF(e){let t=dtfCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache.set(e,t)),t}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const I=e.format(t).replace(/\u200E/g,""),B=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(I),[,tr,rr,ir,lr,dr,mr,fr]=B;return[ir,tr,rr,lr,dr,mr,fr]}function partsOffset(e,t){const I=e.formatToParts(t),B=[];for(let tr=0;tr<I.length;tr++){const{type:rr,value:ir}=I[tr],lr=typeToPos[rr];rr==="era"?B[lr]=ir:isUndefined(lr)||(B[lr]=parseInt(ir,10))}return B}const ianaZoneCache=new Map;class IANAZone extends Zone{static create(t){let I=ianaZoneCache.get(t);return I===void 0&&ianaZoneCache.set(t,I=new IANAZone(t)),I}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=IANAZone.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:I,locale:B}){return parseZoneInfo(t,I,B,this.name)}formatOffset(t,I){return formatOffset(this.offset(t),I)}offset(t){if(!this.valid)return NaN;const I=new Date(t);if(isNaN(I))return NaN;const B=makeDTF(this.name);let[tr,rr,ir,lr,dr,mr,fr]=B.formatToParts?partsOffset(B,I):hackyOffset(B,I);lr==="BC"&&(tr=-Math.abs(tr)+1);const _r=objToLocalTS({year:tr,month:rr,day:ir,hour:dr===24?0:dr,minute:mr,second:fr,millisecond:0});let yr=+I;const Mr=yr%1e3;return yr-=Mr>=0?Mr:1e3+Mr,(_r-yr)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(e,t={}){const I=JSON.stringify([e,t]);let B=intlLFCache[I];return B||(B=new Intl.ListFormat(e,t),intlLFCache[I]=B),B}const intlDTCache=new Map;function getCachedDTF(e,t={}){const I=JSON.stringify([e,t]);let B=intlDTCache.get(I);return B===void 0&&(B=new Intl.DateTimeFormat(e,t),intlDTCache.set(I,B)),B}const intlNumCache=new Map;function getCachedINF(e,t={}){const I=JSON.stringify([e,t]);let B=intlNumCache.get(I);return B===void 0&&(B=new Intl.NumberFormat(e,t),intlNumCache.set(I,B)),B}const intlRelCache=new Map;function getCachedRTF(e,t={}){const{base:I,...B}=t,tr=JSON.stringify([e,B]);let rr=intlRelCache.get(tr);return rr===void 0&&(rr=new Intl.RelativeTimeFormat(e,t),intlRelCache.set(tr,rr)),rr}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(e){let t=intlResolvedOptionsCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),intlResolvedOptionsCache.set(e,t)),t}const weekInfoCache=new Map;function getCachedWeekInfo(e){let t=weekInfoCache.get(e);if(!t){const I=new Intl.Locale(e);t="getWeekInfo"in I?I.getWeekInfo():I.weekInfo,"minimalDays"in t||(t={...fallbackWeekSettings,...t}),weekInfoCache.set(e,t)}return t}function parseLocaleString(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const I=e.indexOf("-u-");if(I===-1)return[e];{let B,tr;try{B=getCachedDTF(e).resolvedOptions(),tr=e}catch{const dr=e.substring(0,I);B=getCachedDTF(dr).resolvedOptions(),tr=dr}const{numberingSystem:rr,calendar:ir}=B;return[tr,rr,ir]}}function intlConfigString(e,t,I){return(I||t)&&(e.includes("-u-")||(e+="-u"),I&&(e+=`-ca-${I}`),t&&(e+=`-nu-${t}`)),e}function mapMonths(e){const t=[];for(let I=1;I<=12;I++){const B=DateTime.utc(2009,I,1);t.push(e(B))}return t}function mapWeekdays(e){const t=[];for(let I=1;I<=7;I++){const B=DateTime.utc(2016,11,13+I);t.push(e(B))}return t}function listStuff(e,t,I,B){const tr=e.listingMode();return tr==="error"?null:tr==="en"?I(t):B(t)}function supportsFastNumbers(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||getCachedIntResolvedOptions(e.locale).numberingSystem==="latn"}class PolyNumberFormatter{constructor(t,I,B){this.padTo=B.padTo||0,this.floor=B.floor||!1;const{padTo:tr,floor:rr,...ir}=B;if(!I||Object.keys(ir).length>0){const lr={useGrouping:!1,...B};B.padTo>0&&(lr.minimumIntegerDigits=B.padTo),this.inf=getCachedINF(t,lr)}}format(t){if(this.inf){const I=this.floor?Math.floor(t):t;return this.inf.format(I)}else{const I=this.floor?Math.floor(t):roundTo(t,3);return padStart(I,this.padTo)}}}class PolyDateFormatter{constructor(t,I,B){this.opts=B,this.originalZone=void 0;let tr;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const ir=-1*(t.offset/60),lr=ir>=0?`Etc/GMT+${ir}`:`Etc/GMT${ir}`;t.offset!==0&&IANAZone.create(lr).valid?(tr=lr,this.dt=t):(tr="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,tr=t.zone.name):(tr="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const rr={...this.opts};rr.timeZone=rr.timeZone||tr,this.dtf=getCachedDTF(I,rr)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(I=>{if(I.type==="timeZoneName"){const B=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...I,value:B}}else return I}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(t,I,B){this.opts={style:"long",...B},!I&&hasRelative()&&(this.rtf=getCachedRTF(t,B))}format(t,I){return this.rtf?this.rtf.format(t,I):formatRelativeTime(I,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,I){return this.rtf?this.rtf.formatToParts(t,I):[]}}const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(t){return Locale.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,I,B,tr,rr=!1){const ir=t||Settings.defaultLocale,lr=ir||(rr?"en-US":systemLocale()),dr=I||Settings.defaultNumberingSystem,mr=B||Settings.defaultOutputCalendar,fr=validateWeekSettings(tr)||Settings.defaultWeekSettings;return new Locale(lr,dr,mr,fr,ir)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale:t,numberingSystem:I,outputCalendar:B,weekSettings:tr}={}){return Locale.create(t,I,B,tr)}constructor(t,I,B,tr,rr){const[ir,lr,dr]=parseLocaleString(t);this.locale=ir,this.numberingSystem=I||lr||null,this.outputCalendar=B||dr||null,this.weekSettings=tr,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=rr,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),I=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&I?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Locale.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,validateWeekSettings(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,I=!1){return listStuff(this,t,months,()=>{const B=I?{month:t,day:"numeric"}:{month:t},tr=I?"format":"standalone";return this.monthsCache[tr][t]||(this.monthsCache[tr][t]=mapMonths(rr=>this.extract(rr,B,"month"))),this.monthsCache[tr][t]})}weekdays(t,I=!1){return listStuff(this,t,weekdays,()=>{const B=I?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},tr=I?"format":"standalone";return this.weekdaysCache[tr][t]||(this.weekdaysCache[tr][t]=mapWeekdays(rr=>this.extract(rr,B,"weekday"))),this.weekdaysCache[tr][t]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(I=>this.extract(I,t,"dayperiod"))}return this.meridiemCache})}eras(t){return listStuff(this,t,eras,()=>{const I={era:t};return this.eraCache[t]||(this.eraCache[t]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(B=>this.extract(B,I,"era"))),this.eraCache[t]})}extract(t,I,B){const tr=this.dtFormatter(t,I),rr=tr.formatToParts(),ir=rr.find(lr=>lr.type.toLowerCase()===B);return ir?ir.value:null}numberFormatter(t={}){return new PolyNumberFormatter(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,I={}){return new PolyDateFormatter(t,this.intl,I)}relFormatter(t={}){return new PolyRelFormatter(this.intl,this.isEnglish(),t)}listFormatter(t={}){return getCachedLF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(t){return t===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(t)}static parseSpecifier(t){if(t){const I=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(I)return new FixedOffsetZone(signedOffset(I[1],I[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,I){return formatOffset(this.fixed,I)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(e,t){if(isUndefined(e)||e===null)return t;if(e instanceof Zone)return e;if(isString(e)){const I=e.toLowerCase();return I==="default"?t:I==="local"||I==="system"?SystemZone.instance:I==="utc"||I==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(I)||IANAZone.create(e)}else return isNumber(e)?FixedOffsetZone.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new InvalidZone(e)}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let I=0;I<e.length;I++){const B=e.charCodeAt(I);if(e[I].search(numberingSystems.hanidec)!==-1)t+=hanidecChars.indexOf(e[I]);else for(const tr in numberingSystemsUTF16){const[rr,ir]=numberingSystemsUTF16[tr];B>=rr&&B<=ir&&(t+=B-rr)}}return parseInt(t,10)}else return t}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem:e},t=""){const I=e||"latn";let B=digitRegexCache.get(I);B===void 0&&(B=new Map,digitRegexCache.set(I,B));let tr=B.get(t);return tr===void 0&&(tr=new RegExp(`${numberingSystems[I]}${t}`),B.set(t,tr)),tr}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;class Settings{static get now(){return now}static set now(t){now=t}static set defaultZone(t){defaultZone=t}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(t){defaultLocale=t}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(t){defaultNumberingSystem=t}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(t){defaultOutputCalendar=t}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(t){defaultWeekSettings=validateWeekSettings(t)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(t){twoDigitCutoffYear=t%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t){throwOnInvalid=t}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}}class Invalid{constructor(t,I){this.reason=t,this.explanation=I}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,I){const B=new Date(Date.UTC(e,t-1,I));e<100&&e>=0&&B.setUTCFullYear(B.getUTCFullYear()-1900);const tr=B.getUTCDay();return tr===0?7:tr}function computeOrdinal(e,t,I){return I+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){const I=isLeapYear(e)?leapLadder:nonLeapLadder,B=I.findIndex(rr=>rr<t),tr=t-I[B];return{month:B+1,day:tr}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,I=1){const{year:B,month:tr,day:rr}=e,ir=computeOrdinal(B,tr,rr),lr=isoWeekdayToLocal(dayOfWeek(B,tr,rr),I);let dr=Math.floor((ir-lr+14-t)/7),mr;return dr<1?(mr=B-1,dr=weeksInWeekYear(mr,t,I)):dr>weeksInWeekYear(B,t,I)?(mr=B+1,dr=1):mr=B,{weekYear:mr,weekNumber:dr,weekday:lr,...timeObject(e)}}function weekToGregorian(e,t=4,I=1){const{weekYear:B,weekNumber:tr,weekday:rr}=e,ir=isoWeekdayToLocal(dayOfWeek(B,1,t),I),lr=daysInYear(B);let dr=tr*7+rr-ir-7+t,mr;dr<1?(mr=B-1,dr+=daysInYear(mr)):dr>lr?(mr=B+1,dr-=daysInYear(B)):mr=B;const{month:fr,day:hr}=uncomputeOrdinal(mr,dr);return{year:mr,month:fr,day:hr,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:I,day:B}=e,tr=computeOrdinal(t,I,B);return{year:t,ordinal:tr,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:I}=e,{month:B,day:tr}=uncomputeOrdinal(t,I);return{year:t,month:B,day:tr,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear)){if(!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(e,t=4,I=1){const B=isInteger(e.weekYear),tr=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,I)),rr=integerBetween(e.weekday,1,7);return B?tr?rr?!1:unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.weekNumber):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){const t=isInteger(e.year),I=integerBetween(e.ordinal,1,daysInYear(e.year));return t?I?!1:unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){const t=isInteger(e.year),I=integerBetween(e.month,1,12),B=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?I?B?!1:unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){const{hour:t,minute:I,second:B,millisecond:tr}=e,rr=integerBetween(t,0,23)||t===24&&I===0&&B===0&&tr===0,ir=integerBetween(I,0,59),lr=integerBetween(B,0,59),dr=integerBetween(tr,0,999);return rr?ir?lr?dr?!1:unitOutOfRange("millisecond",tr):unitOutOfRange("second",B):unitOutOfRange("minute",I):unitOutOfRange("hour",t)}function isUndefined(e){return typeof e>"u"}function isNumber(e){return typeof e=="number"}function isInteger(e){return typeof e=="number"&&e%1===0}function isString(e){return typeof e=="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,I){if(e.length!==0)return e.reduce((B,tr)=>{const rr=[t(tr),tr];return B&&I(B[0],rr[0])===B[0]?B:rr},null)[1]}function pick(e,t){return t.reduce((I,B)=>(I[B]=e[B],I),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null)return null;if(typeof e!="object")throw new InvalidArgumentError("Week settings must be an object");if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!integerBetween(t,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween(e,t,I){return isInteger(e)&&e>=t&&e<=I}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const I=e<0;let B;return I?B="-"+(""+-e).padStart(t,"0"):B=(""+e).padStart(t,"0"),B}function parseInteger(e){if(!(isUndefined(e)||e===null||e===""))return parseInt(e,10)}function parseFloating(e){if(!(isUndefined(e)||e===null||e===""))return parseFloat(e)}function parseMillis(e){if(!(isUndefined(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,I=!1){const B=10**t;return(I?Math.trunc:Math.round)(e*B)/B}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const I=floorMod(t-1,12)+1,B=e+(t-I)/12;return I===2?isLeapYear(B)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][I-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,I){return-isoWeekdayToLocal(dayOfWeek(e,1,t),I)+t-1}function weeksInWeekYear(e,t=4,I=1){const B=firstWeekOffset(e,t,I),tr=firstWeekOffset(e+1,t,I);return(daysInYear(e)-B+tr)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,I,B=null){const tr=new Date(e),rr={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};B&&(rr.timeZone=B);const ir={timeZoneName:t,...rr},lr=new Intl.DateTimeFormat(I,ir).formatToParts(tr).find(dr=>dr.type.toLowerCase()==="timezonename");return lr?lr.value:null}function signedOffset(e,t){let I=parseInt(e,10);Number.isNaN(I)&&(I=0);const B=parseInt(t,10)||0,tr=I<0||Object.is(I,-0)?-B:B;return I*60+tr}function asNumber(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const I={};for(const B in e)if(hasOwnProperty(e,B)){const tr=e[B];if(tr==null)continue;I[t(B)]=asNumber(tr)}return I}function formatOffset(e,t){const I=Math.trunc(Math.abs(e/60)),B=Math.trunc(Math.abs(e%60)),tr=e>=0?"+":"-";switch(t){case"short":return`${tr}${padStart(I,2)}:${padStart(B,2)}`;case"narrow":return`${tr}${I}${B>0?`:${B}`:""}`;case"techie":return`${tr}${padStart(I,2)}${padStart(B,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,I="always",B=!1){const tr={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},rr=["hours","minutes","seconds"].indexOf(e)===-1;if(I==="auto"&&rr){const hr=e==="days";switch(t){case 1:return hr?"tomorrow":`next ${tr[e][0]}`;case-1:return hr?"yesterday":`last ${tr[e][0]}`;case 0:return hr?"today":`this ${tr[e][0]}`}}const ir=Object.is(t,-0)||t<0,lr=Math.abs(t),dr=lr===1,mr=tr[e],fr=B?dr?mr[1]:mr[2]||mr[1]:dr?tr[e][0]:e;return ir?`${lr} ${fr} ago`:`in ${lr} ${fr}`}function stringifyTokens(e,t){let I="";for(const B of e)B.literal?I+=B.val:I+=t(B.val);return I}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(t,I={}){return new Formatter(t,I)}static parseFormat(t){let I=null,B="",tr=!1;const rr=[];for(let ir=0;ir<t.length;ir++){const lr=t.charAt(ir);lr==="'"?(B.length>0&&rr.push({literal:tr||/^\s+$/.test(B),val:B}),I=null,B="",tr=!tr):tr||lr===I?B+=lr:(B.length>0&&rr.push({literal:/^\s+$/.test(B),val:B}),B=lr,I=lr)}return B.length>0&&rr.push({literal:tr||/^\s+$/.test(B),val:B}),rr}static macroTokenToFormatOpts(t){return macroTokenToFormatOpts[t]}constructor(t,I){this.opts=I,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,I){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...I}).format()}dtFormatter(t,I={}){return this.loc.dtFormatter(t,{...this.opts,...I})}formatDateTime(t,I){return this.dtFormatter(t,I).format()}formatDateTimeParts(t,I){return this.dtFormatter(t,I).formatToParts()}formatInterval(t,I){return this.dtFormatter(t.start,I).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,I){return this.dtFormatter(t,I).resolvedOptions()}num(t,I=0){if(this.opts.forceSimple)return padStart(t,I);const B={...this.opts};return I>0&&(B.padTo=I),this.loc.numberFormatter(B).format(t)}formatDateTimeFromString(t,I){const B=this.loc.listingMode()==="en",tr=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",rr=(yr,Mr)=>this.loc.extract(t,yr,Mr),ir=yr=>t.isOffsetFixed&&t.offset===0&&yr.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,yr.format):"",lr=()=>B?meridiemForDateTime(t):rr({hour:"numeric",hourCycle:"h12"},"dayperiod"),dr=(yr,Mr)=>B?monthForDateTime(t,yr):rr(Mr?{month:yr}:{month:yr,day:"numeric"},"month"),mr=(yr,Mr)=>B?weekdayForDateTime(t,yr):rr(Mr?{weekday:yr}:{weekday:yr,month:"long",day:"numeric"},"weekday"),fr=yr=>{const Mr=Formatter.macroTokenToFormatOpts(yr);return Mr?this.formatWithSystemDefault(t,Mr):yr},hr=yr=>B?eraForDateTime(t,yr):rr({era:yr},"era"),_r=yr=>{switch(yr){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return ir({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ir({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ir({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return lr();case"d":return tr?rr({day:"numeric"},"day"):this.num(t.day);case"dd":return tr?rr({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return mr("short",!0);case"cccc":return mr("long",!0);case"ccccc":return mr("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return mr("short",!1);case"EEEE":return mr("long",!1);case"EEEEE":return mr("narrow",!1);case"L":return tr?rr({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return tr?rr({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return dr("short",!0);case"LLLL":return dr("long",!0);case"LLLLL":return dr("narrow",!0);case"M":return tr?rr({month:"numeric"},"month"):this.num(t.month);case"MM":return tr?rr({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return dr("short",!1);case"MMMM":return dr("long",!1);case"MMMMM":return dr("narrow",!1);case"y":return tr?rr({year:"numeric"},"year"):this.num(t.year);case"yy":return tr?rr({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return tr?rr({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return tr?rr({year:"numeric"},"year"):this.num(t.year,6);case"G":return hr("short");case"GG":return hr("long");case"GGGGG":return hr("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return fr(yr)}};return stringifyTokens(Formatter.parseFormat(I),_r)}formatDurationFromString(t,I){const B=dr=>{switch(dr[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tr=dr=>mr=>{const fr=B(mr);return fr?this.num(dr.get(fr),mr.length):mr},rr=Formatter.parseFormat(I),ir=rr.reduce((dr,{literal:mr,val:fr})=>mr?dr:dr.concat(fr),[]),lr=t.shiftTo(...ir.map(B).filter(dr=>dr));return stringifyTokens(rr,tr(lr))}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce((I,B)=>I+B.source,"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce(([I,B,tr],rr)=>{const[ir,lr,dr]=rr(t,tr);return[{...I,...ir},lr||B,dr]},[{},null,1]).slice(0,2)}function parse(e,...t){if(e==null)return[null,null];for(const[I,B]of t){const tr=I.exec(e);if(tr)return B(tr)}return[null,null]}function simpleParse(...e){return(t,I)=>{const B={};let tr;for(tr=0;tr<e.length;tr++)B[e[tr]]=parseInteger(t[I+tr]);return[B,null,I+tr]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(e,t,I){const B=e[t];return isUndefined(B)?I:parseInteger(B)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){const I=!e[t]&&!e[t+1],B=signedOffset(e[t+1],e[t+2]),tr=I?null:FixedOffsetZone.instance(B);return[{},tr,t+3]}function extractIANAZone(e,t){const I=e[t]?IANAZone.create(e[t]):null;return[{},I,t+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,I,B,tr,rr,ir,lr,dr,mr]=e,fr=t[0]==="-",hr=dr&&dr[0]==="-",_r=(yr,Mr=!1)=>yr!==void 0&&(Mr||yr&&fr)?-yr:yr;return[{years:_r(parseFloating(I)),months:_r(parseFloating(B)),weeks:_r(parseFloating(tr)),days:_r(parseFloating(rr)),hours:_r(parseFloating(ir)),minutes:_r(parseFloating(lr)),seconds:_r(parseFloating(dr),dr==="-0"),milliseconds:_r(parseMillis(mr),hr)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,I,B,tr,rr,ir){const lr={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(I)+1,day:parseInteger(B),hour:parseInteger(tr),minute:parseInteger(rr)};return ir&&(lr.second=parseInteger(ir)),e&&(lr.weekday=e.length>3?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),lr}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr]=e,_r=fromStrings(t,tr,B,I,rr,ir,lr);let yr;return dr?yr=obsOffsets[dr]:mr?yr=0:yr=signedOffset(fr,hr),[_r,new FixedOffsetZone(yr)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,I,B,tr,rr,ir,lr]=e;return[fromStrings(t,tr,B,I,rr,ir,lr),FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,I,B,tr,rr,ir,lr]=e;return[fromStrings(t,lr,I,B,tr,rr,ir),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(e,t,I=!1){const B={values:I?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(B)}function durationToMillis(e,t){let I=t.milliseconds??0;for(const B of reverseUnits.slice(1))t[B]&&(I+=t[B]*e[B].milliseconds);return I}function normalizeValues(e,t){const I=durationToMillis(e,t)<0?-1:1;orderedUnits$1.reduceRight((B,tr)=>{if(isUndefined(t[tr]))return B;if(B){const rr=t[B]*I,ir=e[tr][B],lr=Math.floor(rr/ir);t[tr]+=lr*I,t[B]-=lr*ir*I}return tr},null),orderedUnits$1.reduce((B,tr)=>{if(isUndefined(t[tr]))return B;if(B){const rr=t[B]%1;t[B]-=rr,t[tr]+=rr*e[B][tr]}return tr},null)}function removeZeroes(e){const t={};for(const[I,B]of Object.entries(e))B!==0&&(t[I]=B);return t}class Duration{constructor(t){const I=t.conversionAccuracy==="longterm"||!1;let B=I?accurateMatrix:casualMatrix;t.matrix&&(B=t.matrix),this.values=t.values,this.loc=t.loc||Locale.create(),this.conversionAccuracy=I?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=B,this.isLuxonDuration=!0}static fromMillis(t,I){return Duration.fromObject({milliseconds:t},I)}static fromObject(t,I={}){if(t==null||typeof t!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Duration({values:normalizeObject(t,Duration.normalizeUnit),loc:Locale.fromObject(I),conversionAccuracy:I.conversionAccuracy,matrix:I.matrix})}static fromDurationLike(t){if(isNumber(t))return Duration.fromMillis(t);if(Duration.isDuration(t))return t;if(typeof t=="object")return Duration.fromObject(t);throw new InvalidArgumentError(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,I){const[B]=parseISODuration(t);return B?Duration.fromObject(B,I):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,I){const[B]=parseISOTimeOnly(t);return B?Duration.fromObject(B,I):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidDurationError(B);return new Duration({invalid:B})}static normalizeUnit(t){const I={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!I)throw new InvalidUnitError(t);return I}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,I={}){const B={...I,floor:I.round!==!1&&I.floor!==!1};return this.isValid?Formatter.create(this.loc,B).formatDurationFromString(this,t):INVALID$2}toHuman(t={}){if(!this.isValid)return INVALID$2;const I=orderedUnits$1.map(B=>{const tr=this.values[B];return isUndefined(tr)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:B.slice(0,-1)}).format(tr)}).filter(B=>B);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(I)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const I=this.toMillis();return I<0||I>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},DateTime.fromMillis(I,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t),B={};for(const tr of orderedUnits$1)(hasOwnProperty(I.values,tr)||hasOwnProperty(this.values,tr))&&(B[tr]=I.get(tr)+this.get(tr));return clone$1(this,{values:B},!0)}minus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t);return this.plus(I.negate())}mapUnits(t){if(!this.isValid)return this;const I={};for(const B of Object.keys(this.values))I[B]=asNumber(t(this.values[B],B));return clone$1(this,{values:I},!0)}get(t){return this[Duration.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const I={...this.values,...normalizeObject(t,Duration.normalizeUnit)};return clone$1(this,{values:I})}reconfigure({locale:t,numberingSystem:I,conversionAccuracy:B,matrix:tr}={}){const ir={loc:this.loc.clone({locale:t,numberingSystem:I}),matrix:tr,conversionAccuracy:B};return clone$1(this,ir)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return normalizeValues(this.matrix,t),clone$1(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(ir=>Duration.normalizeUnit(ir));const I={},B={},tr=this.toObject();let rr;for(const ir of orderedUnits$1)if(t.indexOf(ir)>=0){rr=ir;let lr=0;for(const mr in B)lr+=this.matrix[mr][ir]*B[mr],B[mr]=0;isNumber(tr[ir])&&(lr+=tr[ir]);const dr=Math.trunc(lr);I[ir]=dr,B[ir]=(lr*1e3-dr*1e3)/1e3}else isNumber(tr[ir])&&(B[ir]=tr[ir]);for(const ir in B)B[ir]!==0&&(I[rr]+=ir===rr?B[ir]:B[ir]/this.matrix[rr][ir]);return normalizeValues(this.matrix,I),clone$1(this,{values:I},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const I of Object.keys(this.values))t[I]=this.values[I]===0?0:-this.values[I];return clone$1(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function I(B,tr){return B===void 0||B===0?tr===void 0||tr===0:B===tr}for(const B of orderedUnits$1)if(!I(this.values[B],t.values[B]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(e,t){return!e||!e.isValid?Interval.invalid("missing or invalid start"):!t||!t.isValid?Interval.invalid("missing or invalid end"):t<e?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Interval{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidIntervalError(B);return new Interval({invalid:B})}static fromDateTimes(t,I){const B=friendlyDateTime(t),tr=friendlyDateTime(I),rr=validateStartEnd(B,tr);return rr??new Interval({start:B,end:tr})}static after(t,I){const B=Duration.fromDurationLike(I),tr=friendlyDateTime(t);return Interval.fromDateTimes(tr,tr.plus(B))}static before(t,I){const B=Duration.fromDurationLike(I),tr=friendlyDateTime(t);return Interval.fromDateTimes(tr.minus(B),tr)}static fromISO(t,I){const[B,tr]=(t||"").split("/",2);if(B&&tr){let rr,ir;try{rr=DateTime.fromISO(B,I),ir=rr.isValid}catch{ir=!1}let lr,dr;try{lr=DateTime.fromISO(tr,I),dr=lr.isValid}catch{dr=!1}if(ir&&dr)return Interval.fromDateTimes(rr,lr);if(ir){const mr=Duration.fromISO(tr,I);if(mr.isValid)return Interval.after(rr,mr)}else if(dr){const mr=Duration.fromISO(B,I);if(mr.isValid)return Interval.before(lr,mr)}}return Interval.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",I){if(!this.isValid)return NaN;const B=this.start.startOf(t,I);let tr;return I!=null&&I.useLocaleWeeks?tr=this.end.reconfigure({locale:B.locale}):tr=this.end,tr=tr.startOf(t,I),Math.floor(tr.diff(B,t).get(t))+(tr.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:I}={}){return this.isValid?Interval.fromDateTimes(t||this.s,I||this.e):this}splitAt(...t){if(!this.isValid)return[];const I=t.map(friendlyDateTime).filter(ir=>this.contains(ir)).sort((ir,lr)=>ir.toMillis()-lr.toMillis()),B=[];let{s:tr}=this,rr=0;for(;tr<this.e;){const ir=I[rr]||this.e,lr=+ir>+this.e?this.e:ir;B.push(Interval.fromDateTimes(tr,lr)),tr=lr,rr+=1}return B}splitBy(t){const I=Duration.fromDurationLike(t);if(!this.isValid||!I.isValid||I.as("milliseconds")===0)return[];let{s:B}=this,tr=1,rr;const ir=[];for(;B<this.e;){const lr=this.start.plus(I.mapUnits(dr=>dr*tr));rr=+lr>+this.e?this.e:lr,ir.push(Interval.fromDateTimes(B,rr)),B=rr,tr+=1}return ir}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const I=this.s>t.s?this.s:t.s,B=this.e<t.e?this.e:t.e;return I>=B?null:Interval.fromDateTimes(I,B)}union(t){if(!this.isValid)return this;const I=this.s<t.s?this.s:t.s,B=this.e>t.e?this.e:t.e;return Interval.fromDateTimes(I,B)}static merge(t){const[I,B]=t.sort((tr,rr)=>tr.s-rr.s).reduce(([tr,rr],ir)=>rr?rr.overlaps(ir)||rr.abutsStart(ir)?[tr,rr.union(ir)]:[tr.concat([rr]),ir]:[tr,ir],[[],null]);return B&&I.push(B),I}static xor(t){let I=null,B=0;const tr=[],rr=t.map(dr=>[{time:dr.s,type:"s"},{time:dr.e,type:"e"}]),ir=Array.prototype.concat(...rr),lr=ir.sort((dr,mr)=>dr.time-mr.time);for(const dr of lr)B+=dr.type==="s"?1:-1,B===1?I=dr.time:(I&&+I!=+dr.time&&tr.push(Interval.fromDateTimes(I,dr.time)),I=null);return Interval.merge(tr)}difference(...t){return Interval.xor([this].concat(t)).map(I=>this.intersection(I)).filter(I=>I&&!I.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=DATE_SHORT,I={}){return this.isValid?Formatter.create(this.s.loc.clone(I),t).formatInterval(this):INVALID$1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:INVALID$1}toFormat(t,{separator:I=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${I}${this.e.toFormat(t)}`:INVALID$1}toDuration(t,I){return this.isValid?this.e.diff(this.s,t,I):Duration.invalid(this.invalidReason)}mapEndpoints(t){return Interval.fromDateTimes(t(this.s),t(this.e))}}class Info{static hasDST(t=Settings.defaultZone){const I=DateTime.now().setZone(t).set({month:12});return!t.isUniversal&&I.offset!==I.set({month:6}).offset}static isValidIANAZone(t){return IANAZone.isValidZone(t)}static normalizeZone(t){return normalizeZone(t,Settings.defaultZone)}static getStartOfWeek({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getWeekendDays().slice()}static months(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null,outputCalendar:rr="gregory"}={}){return(tr||Locale.create(I,B,rr)).months(t)}static monthsFormat(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null,outputCalendar:rr="gregory"}={}){return(tr||Locale.create(I,B,rr)).months(t,!0)}static weekdays(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null}={}){return(tr||Locale.create(I,B,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null}={}){return(tr||Locale.create(I,B,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Locale.create(t).meridiems()}static eras(t="short",{locale:I=null}={}){return Locale.create(I,null,"gregory").eras(t)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const I=tr=>tr.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),B=I(t)-I(e);return Math.floor(Duration.fromMillis(B).as("days"))}function highOrderDiffs(e,t,I){const B=[["years",(dr,mr)=>mr.year-dr.year],["quarters",(dr,mr)=>mr.quarter-dr.quarter+(mr.year-dr.year)*4],["months",(dr,mr)=>mr.month-dr.month+(mr.year-dr.year)*12],["weeks",(dr,mr)=>{const fr=dayDiff(dr,mr);return(fr-fr%7)/7}],["days",dayDiff]],tr={},rr=e;let ir,lr;for(const[dr,mr]of B)I.indexOf(dr)>=0&&(ir=dr,tr[dr]=mr(e,t),lr=rr.plus(tr),lr>t?(tr[dr]--,e=rr.plus(tr),e>t&&(lr=e,tr[dr]--,e=rr.plus(tr))):e=lr);return[e,tr,lr,ir]}function diff(e,t,I,B){let[tr,rr,ir,lr]=highOrderDiffs(e,t,I);const dr=t-tr,mr=I.filter(hr=>["hours","minutes","seconds","milliseconds"].indexOf(hr)>=0);mr.length===0&&(ir<t&&(ir=tr.plus({[lr]:1})),ir!==tr&&(rr[lr]=(rr[lr]||0)+dr/(ir-tr)));const fr=Duration.fromObject(rr,B);return mr.length>0?Duration.fromMillis(dr,B).shiftTo(...mr).plus(fr):fr}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=I=>I){return{regex:e,deser:([I])=>t(parseDigits(I))}}const NBSP=" ",spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(e,t){return e===null?null:{regex:RegExp(e.map(fixListRegex).join("|")),deser:([I])=>e.findIndex(B=>stripInsensitivities(I)===stripInsensitivities(B))+t}}function offset(e,t){return{regex:e,deser:([,I,B])=>signedOffset(I,B),groups:t}}function simple(e){return{regex:e,deser:([t])=>t}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const I=digitRegex(t),B=digitRegex(t,"{2}"),tr=digitRegex(t,"{3}"),rr=digitRegex(t,"{4}"),ir=digitRegex(t,"{6}"),lr=digitRegex(t,"{1,2}"),dr=digitRegex(t,"{1,3}"),mr=digitRegex(t,"{1,6}"),fr=digitRegex(t,"{1,9}"),hr=digitRegex(t,"{2,4}"),_r=digitRegex(t,"{4,6}"),yr=Sr=>({regex:RegExp(escapeToken(Sr.val)),deser:([br])=>br,literal:!0}),vr=(Sr=>{if(e.literal)return yr(Sr);switch(Sr.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(mr);case"yy":return intUnit(hr,untruncateYear);case"yyyy":return intUnit(rr);case"yyyyy":return intUnit(_r);case"yyyyyy":return intUnit(ir);case"M":return intUnit(lr);case"MM":return intUnit(B);case"MMM":return oneOf(t.months("short",!0),1);case"MMMM":return oneOf(t.months("long",!0),1);case"L":return intUnit(lr);case"LL":return intUnit(B);case"LLL":return oneOf(t.months("short",!1),1);case"LLLL":return oneOf(t.months("long",!1),1);case"d":return intUnit(lr);case"dd":return intUnit(B);case"o":return intUnit(dr);case"ooo":return intUnit(tr);case"HH":return intUnit(B);case"H":return intUnit(lr);case"hh":return intUnit(B);case"h":return intUnit(lr);case"mm":return intUnit(B);case"m":return intUnit(lr);case"q":return intUnit(lr);case"qq":return intUnit(B);case"s":return intUnit(lr);case"ss":return intUnit(B);case"S":return intUnit(dr);case"SSS":return intUnit(tr);case"u":return simple(fr);case"uu":return simple(lr);case"uuu":return intUnit(I);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(rr);case"kk":return intUnit(hr,untruncateYear);case"W":return intUnit(lr);case"WW":return intUnit(B);case"E":case"c":return intUnit(I);case"EEE":return oneOf(t.weekdays("short",!1),1);case"EEEE":return oneOf(t.weekdays("long",!1),1);case"ccc":return oneOf(t.weekdays("short",!0),1);case"cccc":return oneOf(t.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${lr.source})(?::(${B.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${lr.source})(${B.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return yr(Sr)}})(e)||{invalidReason:MISSING_FTP};return vr.token=e,vr}const partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,I){const{type:B,value:tr}=e;if(B==="literal"){const dr=/^\s+$/.test(tr);return{literal:!dr,val:dr?" ":tr}}const rr=t[B];let ir=B;B==="hour"&&(t.hour12!=null?ir=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?ir="hour12":ir="hour24":ir=I.hour12?"hour12":"hour24");let lr=partTypeStyleToTokenVal[ir];if(typeof lr=="object"&&(lr=lr[rr]),lr)return{literal:!1,val:lr}}function buildRegex(e){return[`^${e.map(I=>I.regex).reduce((I,B)=>`${I}(${B.source})`,"")}$`,e]}function match(e,t,I){const B=e.match(t);if(B){const tr={};let rr=1;for(const ir in I)if(hasOwnProperty(I,ir)){const lr=I[ir],dr=lr.groups?lr.groups+1:1;!lr.literal&&lr.token&&(tr[lr.token.val[0]]=lr.deser(B.slice(rr,rr+dr))),rr+=dr}return[B,tr]}else return[B,{}]}function dateTimeFromMatches(e){const t=rr=>{switch(rr){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let I=null,B;return isUndefined(e.z)||(I=IANAZone.create(e.z)),isUndefined(e.Z)||(I||(I=new FixedOffsetZone(e.Z)),B=e.Z),isUndefined(e.q)||(e.M=(e.q-1)*3+1),isUndefined(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),isUndefined(e.u)||(e.S=parseMillis(e.u)),[Object.keys(e).reduce((rr,ir)=>{const lr=t(ir);return lr&&(rr[lr]=e[ir]),rr},{}),I,B]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(e,t){if(e.literal)return e;const I=Formatter.macroTokenToFormatOpts(e.val),B=formatOptsToTokens(I,t);return B==null||B.includes(void 0)?e:B}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map(I=>maybeExpandMacroToken(I,t)))}class TokenParser{constructor(t,I){if(this.locale=t,this.format=I,this.tokens=expandMacroTokens(Formatter.parseFormat(I),t),this.units=this.tokens.map(B=>unitForToken(B,t)),this.disqualifyingUnit=this.units.find(B=>B.invalidReason),!this.disqualifyingUnit){const[B,tr]=buildRegex(this.units);this.regex=RegExp(B,"i"),this.handlers=tr}}explainFromTokens(t){if(this.isValid){const[I,B]=match(t,this.regex,this.handlers),[tr,rr,ir]=B?dateTimeFromMatches(B):[null,null,void 0];if(hasOwnProperty(B,"a")&&hasOwnProperty(B,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:I,matches:B,result:tr,zone:rr,specificOffset:ir}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function explainFromTokens(e,t,I){return new TokenParser(e,I).explainFromTokens(t)}function parseFromTokens(e,t,I){const{result:B,zone:tr,specificOffset:rr,invalidReason:ir}=explainFromTokens(e,t,I);return[B,tr,rr,ir]}function formatOptsToTokens(e,t){if(!e)return null;const B=Formatter.create(t,e).dtFormatter(getDummyDateTime()),tr=B.formatToParts(),rr=B.resolvedOptions();return tr.map(ir=>tokenForPart(ir,e,rr))}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return e.weekData===null&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return e.localWeekData===null&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone(e,t){const I={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...I,...t,old:I})}function fixOffset(e,t,I){let B=e-t*60*1e3;const tr=I.offset(B);if(t===tr)return[B,t];B-=(tr-t)*60*1e3;const rr=I.offset(B);return tr===rr?[B,tr]:[e-Math.min(tr,rr)*60*1e3,Math.max(tr,rr)]}function tsToObj(e,t){e+=t*60*1e3;const I=new Date(e);return{year:I.getUTCFullYear(),month:I.getUTCMonth()+1,day:I.getUTCDate(),hour:I.getUTCHours(),minute:I.getUTCMinutes(),second:I.getUTCSeconds(),millisecond:I.getUTCMilliseconds()}}function objToTS(e,t,I){return fixOffset(objToLocalTS(e),t,I)}function adjustTime(e,t){const I=e.o,B=e.c.year+Math.trunc(t.years),tr=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,rr={...e.c,year:B,month:tr,day:Math.min(e.c.day,daysInMonth(B,tr))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},ir=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),lr=objToLocalTS(rr);let[dr,mr]=fixOffset(lr,I,e.zone);return ir!==0&&(dr+=ir,mr=e.zone.offset(dr)),{ts:dr,o:mr}}function parseDataToDateTime(e,t,I,B,tr,rr){const{setZone:ir,zone:lr}=I;if(e&&Object.keys(e).length!==0||t){const dr=t||lr,mr=DateTime.fromObject(e,{...I,zone:dr,specificOffset:rr});return ir?mr:mr.setZone(lr)}else return DateTime.invalid(new Invalid("unparsable",`the input "${tr}" can't be parsed as ${B}`))}function toTechFormat(e,t,I=!0){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:I,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const I=e.c.year>9999||e.c.year<0;let B="";return I&&e.c.year>=0&&(B+="+"),B+=padStart(e.c.year,I?6:4),t?(B+="-",B+=padStart(e.c.month),B+="-",B+=padStart(e.c.day)):(B+=padStart(e.c.month),B+=padStart(e.c.day)),B}function toISOTime(e,t,I,B,tr,rr){let ir=padStart(e.c.hour);return t?(ir+=":",ir+=padStart(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!I)&&(ir+=":")):ir+=padStart(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!I)&&(ir+=padStart(e.c.second),(e.c.millisecond!==0||!B)&&(ir+=".",ir+=padStart(e.c.millisecond,3))),tr&&(e.isOffsetFixed&&e.offset===0&&!rr?ir+="Z":e.o<0?(ir+="-",ir+=padStart(Math.trunc(-e.o/60)),ir+=":",ir+=padStart(Math.trunc(-e.o%60))):(ir+="+",ir+=padStart(Math.trunc(e.o/60)),ir+=":",ir+=padStart(Math.trunc(e.o%60)))),rr&&(ir+="["+e.zone.ianaName+"]"),ir}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function guessOffsetForZone(e){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),e.type!=="iana")return e.offset(zoneOffsetTs);const t=e.name;let I=zoneOffsetGuessCache.get(t);return I===void 0&&(I=e.offset(zoneOffsetTs),zoneOffsetGuessCache.set(t,I)),I}function quickDT(e,t){const I=normalizeZone(t.zone,Settings.defaultZone);if(!I.isValid)return DateTime.invalid(unsupportedZone(I));const B=Locale.fromObject(t);let tr,rr;if(isUndefined(e.year))tr=Settings.now();else{for(const dr of orderedUnits)isUndefined(e[dr])&&(e[dr]=defaultUnitValues[dr]);const ir=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(ir)return DateTime.invalid(ir);const lr=guessOffsetForZone(I);[tr,rr]=objToTS(e,lr,I)}return new DateTime({ts:tr,zone:I,loc:B,o:rr})}function diffRelative(e,t,I){const B=isUndefined(I.round)?!0:I.round,tr=(ir,lr)=>(ir=roundTo(ir,B||I.calendary?0:2,!0),t.loc.clone(I).relFormatter(I).format(ir,lr)),rr=ir=>I.calendary?t.hasSame(e,ir)?0:t.startOf(ir).diff(e.startOf(ir),ir).get(ir):t.diff(e,ir).get(ir);if(I.unit)return tr(rr(I.unit),I.unit);for(const ir of I.units){const lr=rr(ir);if(Math.abs(lr)>=1)return tr(lr,ir)}return tr(e>t?-0:0,I.units[I.units.length-1])}function lastOpts(e){let t={},I;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],I=Array.from(e).slice(0,e.length-1)):I=Array.from(e),[t,I]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;class DateTime{constructor(t){const I=t.zone||Settings.defaultZone;let B=t.invalid||(Number.isNaN(t.ts)?new Invalid("invalid input"):null)||(I.isValid?null:unsupportedZone(I));this.ts=isUndefined(t.ts)?Settings.now():t.ts;let tr=null,rr=null;if(!B)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(I))[tr,rr]=[t.old.c,t.old.o];else{const lr=isNumber(t.o)&&!t.old?t.o:I.offset(this.ts);tr=tsToObj(this.ts,lr),B=Number.isNaN(tr.year)?new Invalid("invalid input"):null,tr=B?null:tr,rr=B?null:lr}this._zone=I,this.loc=t.loc||Locale.create(),this.invalid=B,this.weekData=null,this.localWeekData=null,this.c=tr,this.o=rr,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[t,I]=lastOpts(arguments),[B,tr,rr,ir,lr,dr,mr]=I;return quickDT({year:B,month:tr,day:rr,hour:ir,minute:lr,second:dr,millisecond:mr},t)}static utc(){const[t,I]=lastOpts(arguments),[B,tr,rr,ir,lr,dr,mr]=I;return t.zone=FixedOffsetZone.utcInstance,quickDT({year:B,month:tr,day:rr,hour:ir,minute:lr,second:dr,millisecond:mr},t)}static fromJSDate(t,I={}){const B=isDate(t)?t.valueOf():NaN;if(Number.isNaN(B))return DateTime.invalid("invalid input");const tr=normalizeZone(I.zone,Settings.defaultZone);return tr.isValid?new DateTime({ts:B,zone:tr,loc:Locale.fromObject(I)}):DateTime.invalid(unsupportedZone(tr))}static fromMillis(t,I={}){if(isNumber(t))return t<-MAX_DATE||t>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:t,zone:normalizeZone(I.zone,Settings.defaultZone),loc:Locale.fromObject(I)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,I={}){if(isNumber(t))return new DateTime({ts:t*1e3,zone:normalizeZone(I.zone,Settings.defaultZone),loc:Locale.fromObject(I)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(t,I={}){t=t||{};const B=normalizeZone(I.zone,Settings.defaultZone);if(!B.isValid)return DateTime.invalid(unsupportedZone(B));const tr=Locale.fromObject(I),rr=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:ir,startOfWeek:lr}=usesLocalWeekValues(rr,tr),dr=Settings.now(),mr=isUndefined(I.specificOffset)?B.offset(dr):I.specificOffset,fr=!isUndefined(rr.ordinal),hr=!isUndefined(rr.year),_r=!isUndefined(rr.month)||!isUndefined(rr.day),yr=hr||_r,Mr=rr.weekYear||rr.weekNumber;if((yr||fr)&&Mr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_r&&fr)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const vr=Mr||rr.weekday&&!yr;let Sr,br,gr=tsToObj(dr,mr);vr?(Sr=orderedWeekUnits,br=defaultWeekUnitValues,gr=gregorianToWeek(gr,ir,lr)):fr?(Sr=orderedOrdinalUnits,br=defaultOrdinalUnitValues,gr=gregorianToOrdinal(gr)):(Sr=orderedUnits,br=defaultUnitValues);let wr=!1;for(const Pr of Sr){const Fr=rr[Pr];isUndefined(Fr)?wr?rr[Pr]=br[Pr]:rr[Pr]=gr[Pr]:wr=!0}const xr=vr?hasInvalidWeekData(rr,ir,lr):fr?hasInvalidOrdinalData(rr):hasInvalidGregorianData(rr),Ir=xr||hasInvalidTimeData(rr);if(Ir)return DateTime.invalid(Ir);const kr=vr?weekToGregorian(rr,ir,lr):fr?ordinalToGregorian(rr):rr,[Or,Lr]=objToTS(kr,mr,B),Kn=new DateTime({ts:Or,zone:B,o:Lr,loc:tr});return rr.weekday&&yr&&t.weekday!==Kn.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${rr.weekday} and a date of ${Kn.toISO()}`):Kn.isValid?Kn:DateTime.invalid(Kn.invalid)}static fromISO(t,I={}){const[B,tr]=parseISODate(t);return parseDataToDateTime(B,tr,I,"ISO 8601",t)}static fromRFC2822(t,I={}){const[B,tr]=parseRFC2822Date(t);return parseDataToDateTime(B,tr,I,"RFC 2822",t)}static fromHTTP(t,I={}){const[B,tr]=parseHTTPDate(t);return parseDataToDateTime(B,tr,I,"HTTP",I)}static fromFormat(t,I,B={}){if(isUndefined(t)||isUndefined(I))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0}),[lr,dr,mr,fr]=parseFromTokens(ir,t,I);return fr?DateTime.invalid(fr):parseDataToDateTime(lr,dr,B,`format ${I}`,t,mr)}static fromString(t,I,B={}){return DateTime.fromFormat(t,I,B)}static fromSQL(t,I={}){const[B,tr]=parseSQL(t);return parseDataToDateTime(B,tr,I,"SQL",t)}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(B);return new DateTime({invalid:B})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,I={}){const B=formatOptsToTokens(t,Locale.fromObject(I));return B?B.map(tr=>tr?tr.val:null).join(""):null}static expandFormat(t,I={}){return expandMacroTokens(Formatter.parseFormat(t),Locale.fromObject(I)).map(tr=>tr.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,I=6e4,B=objToLocalTS(this.c),tr=this.zone.offset(B-t),rr=this.zone.offset(B+t),ir=this.zone.offset(B-tr*I),lr=this.zone.offset(B-rr*I);if(ir===lr)return[this];const dr=B-ir*I,mr=B-lr*I,fr=tsToObj(dr,ir),hr=tsToObj(mr,lr);return fr.hour===hr.hour&&fr.minute===hr.minute&&fr.second===hr.second&&fr.millisecond===hr.millisecond?[clone(this,{ts:dr}),clone(this,{ts:mr})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:I,numberingSystem:B,calendar:tr}=Formatter.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:I,numberingSystem:B,outputCalendar:tr}}toUTC(t=0,I={}){return this.setZone(FixedOffsetZone.instance(t),I)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(t,{keepLocalTime:I=!1,keepCalendarTime:B=!1}={}){if(t=normalizeZone(t,Settings.defaultZone),t.equals(this.zone))return this;if(t.isValid){let tr=this.ts;if(I||B){const rr=t.offset(this.ts),ir=this.toObject();[tr]=objToTS(ir,rr,t)}return clone(this,{ts:tr,zone:t})}else return DateTime.invalid(unsupportedZone(t))}reconfigure({locale:t,numberingSystem:I,outputCalendar:B}={}){const tr=this.loc.clone({locale:t,numberingSystem:I,outputCalendar:B});return clone(this,{loc:tr})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const I=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:B,startOfWeek:tr}=usesLocalWeekValues(I,this.loc),rr=!isUndefined(I.weekYear)||!isUndefined(I.weekNumber)||!isUndefined(I.weekday),ir=!isUndefined(I.ordinal),lr=!isUndefined(I.year),dr=!isUndefined(I.month)||!isUndefined(I.day),mr=lr||dr,fr=I.weekYear||I.weekNumber;if((mr||ir)&&fr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(dr&&ir)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let hr;rr?hr=weekToGregorian({...gregorianToWeek(this.c,B,tr),...I},B,tr):isUndefined(I.ordinal)?(hr={...this.toObject(),...I},isUndefined(I.day)&&(hr.day=Math.min(daysInMonth(hr.year,hr.month),hr.day))):hr=ordinalToGregorian({...gregorianToOrdinal(this.c),...I});const[_r,yr]=objToTS(hr,this.o,this.zone);return clone(this,{ts:_r,o:yr})}plus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t);return clone(this,adjustTime(this,I))}minus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t).negate();return clone(this,adjustTime(this,I))}startOf(t,{useLocaleWeeks:I=!1}={}){if(!this.isValid)return this;const B={},tr=Duration.normalizeUnit(t);switch(tr){case"years":B.month=1;case"quarters":case"months":B.day=1;case"weeks":case"days":B.hour=0;case"hours":B.minute=0;case"minutes":B.second=0;case"seconds":B.millisecond=0;break}if(tr==="weeks")if(I){const rr=this.loc.getStartOfWeek(),{weekday:ir}=this;ir<rr&&(B.weekNumber=this.weekNumber-1),B.weekday=rr}else B.weekday=1;if(tr==="quarters"){const rr=Math.ceil(this.month/3);B.month=(rr-1)*3+1}return this.set(B)}endOf(t,I){return this.isValid?this.plus({[t]:1}).startOf(t,I).minus(1):this}toFormat(t,I={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(I)).formatDateTimeFromString(this,t):INVALID}toLocaleString(t=DATE_SHORT,I={}){return this.isValid?Formatter.create(this.loc.clone(I),t).formatDateTime(this):INVALID}toLocaleParts(t={}){return this.isValid?Formatter.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:I=!1,suppressMilliseconds:B=!1,includeOffset:tr=!0,extendedZone:rr=!1}={}){if(!this.isValid)return null;const ir=t==="extended";let lr=toISODate(this,ir);return lr+="T",lr+=toISOTime(this,ir,I,B,tr,rr),lr}toISODate({format:t="extended"}={}){return this.isValid?toISODate(this,t==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:I=!1,includeOffset:B=!0,includePrefix:tr=!1,extendedZone:rr=!1,format:ir="extended"}={}){return this.isValid?(tr?"T":"")+toISOTime(this,ir==="extended",I,t,B,rr):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:I=!1,includeOffsetSpace:B=!0}={}){let tr="HH:mm:ss.SSS";return(I||t)&&(B&&(tr+=" "),I?tr+="z":t&&(tr+="ZZ")),toTechFormat(this,tr,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const I={...this.c};return t.includeConfig&&(I.outputCalendar=this.outputCalendar,I.numberingSystem=this.loc.numberingSystem,I.locale=this.loc.locale),I}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,I="milliseconds",B={}){if(!this.isValid||!t.isValid)return Duration.invalid("created by diffing an invalid DateTime");const tr={locale:this.locale,numberingSystem:this.numberingSystem,...B},rr=maybeArray(I).map(Duration.normalizeUnit),ir=t.valueOf()>this.valueOf(),lr=ir?this:t,dr=ir?t:this,mr=diff(lr,dr,rr,tr);return ir?mr.negate():mr}diffNow(t="milliseconds",I={}){return this.diff(DateTime.now(),t,I)}until(t){return this.isValid?Interval.fromDateTimes(this,t):this}hasSame(t,I,B){if(!this.isValid)return!1;const tr=t.valueOf(),rr=this.setZone(t.zone,{keepLocalTime:!0});return rr.startOf(I,B)<=tr&&tr<=rr.endOf(I,B)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const I=t.base||DateTime.fromObject({},{zone:this.zone}),B=t.padding?this<I?-t.padding:t.padding:0;let tr=["years","months","days","hours","minutes","seconds"],rr=t.unit;return Array.isArray(t.unit)&&(tr=t.unit,rr=void 0),diffRelative(I,this.plus(B),{...t,numeric:"always",units:tr,unit:rr})}toRelativeCalendar(t={}){return this.isValid?diffRelative(t.base||DateTime.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(t,I=>I.valueOf(),Math.min)}static max(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(t,I=>I.valueOf(),Math.max)}static fromFormatExplain(t,I,B={}){const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0});return explainFromTokens(ir,t,I)}static fromStringExplain(t,I,B={}){return DateTime.fromFormatExplain(t,I,B)}static buildFormatParser(t,I={}){const{locale:B=null,numberingSystem:tr=null}=I,rr=Locale.fromOpts({locale:B,numberingSystem:tr,defaultToEN:!0});return new TokenParser(rr,t)}static fromFormatParser(t,I,B={}){if(isUndefined(t)||isUndefined(I))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0});if(!ir.equals(I.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${ir}, but the format parser was created for ${I.locale}`);const{result:lr,zone:dr,specificOffset:mr,invalidReason:fr}=I.explainFromTokens(t);return fr?DateTime.invalid(fr):parseDataToDateTime(lr,dr,B,`format ${I.format}`,t,mr)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&typeof e=="object")return DateTime.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const getPeriodSeriesArray=e=>{const t=[],I=getPeriodSeries(e);let B=I.next();for(;B;)t.push(B),B=I.next();return t},getPeriodSeries=e=>({...e,next:_createFactoryFn(e)}),_createFactoryFn=e=>{let t=e.start;return()=>{if(t==null)return null;let I=null;switch(e.granularity){case AnalyticsGranularity.Total:I=_nextTotalPeriod(t,e.end);break;case AnalyticsGranularity.Annual:I=_nextAnnualPeriod(t,e.end);break;case AnalyticsGranularity.SemiAnnual:I=_nextSemiAnnualPeriod(t,e.end);break;case AnalyticsGranularity.Quarterly:I=_nextQuarterlyPeriod(t,e.end);break;case AnalyticsGranularity.Monthly:I=_nextMonthlyPeriod(t,e.end);break;case AnalyticsGranularity.Weekly:I=_nextWeeklyPeriod(t,e.end);break;case AnalyticsGranularity.Daily:I=_nextDailyPeriod(t,e.end);break;case AnalyticsGranularity.Hourly:I=_nextHourlyPeriod(t,e.end)}return I===null?t=null:t=I.end.plus({milliseconds:1}),I}},_nextTotalPeriod=(e,t)=>t<=e?null:{period:"total",start:e,end:t},_nextAnnualPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC(),B=DateTime.utc(I.year,I.month,I.day).plus({years:1});return{period:"annual",start:e,end:B}},_nextSemiAnnualPeriod=(e,t)=>{if(t<=e)return null;const I=DateTime.utc(e.year,7,1),B=DateTime.utc(e.year,12,31,23,59,59,999);let tr;return I>e?tr=I:tr=B,tr>t&&(tr=t),{period:"semiAnnual",start:e,end:tr}},_nextQuarterlyPeriod=(e,t)=>{if(t<=e)return null;let I;const B=e.toUTC(),tr=B.month;return tr<3?I=DateTime.utc(B.year,4,1):tr<6?I=DateTime.utc(B.year,7,1):tr<9?I=DateTime.utc(B.year,10,1):I=DateTime.utc(B.year,12,31,23,59,59,999),I>t&&(I=t),{period:"quarterly",start:e,end:I}},_nextMonthlyPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC();let B=DateTime.utc(I.year,I.month,I.day).plus({months:1}).startOf("month");return B>t&&(e.hasSame(t,"month")||(B=t)),{period:"monthly",start:e,end:B}},_nextWeeklyPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC(),B=DateTime.utc(I.year,I.month,I.day).plus({weeks:1}).startOf("week");return B>t&&!B.hasSame(t,"day")?{period:"weekly",start:e,end:t}:{period:"weekly",start:e,end:B}},_nextDailyPeriod=(e,t)=>{if(t<=e)return null;let B=e.toUTC().plus({days:1}).startOf("day");return(B>t||B.hasSame(t,"day"))&&(B=t),{period:"daily",start:e,end:B}},_nextHourlyPeriod=(e,t)=>{if(t<=e)return null;let B=e.toUTC().plus({hours:1});return B>t&&e.hour!==t.hour&&(B=t.toUTC()),{period:"hourly",start:e,end:B}},getQuarter=e=>Math.floor((e.month-1)/3)+1;class AnalyticsDiscretizer{static discretize(t,I,B,tr,rr){const ir=this._buildIndex(t,I),lr=getPeriodSeriesArray(this._calculateRange(B,tr,rr,t)),dr=this._discretizeNode(ir,{},I,lr);return this._groupResultsByPeriod(lr,dr)}static _calculateRange(t,I,B,tr){let rr=t||null,ir=I||null;if(rr==null||ir==null)for(const lr of tr){rr==null&&(rr=lr.start);const dr=lr.end||lr.start;(ir==null||ir<dr)&&(ir=dr)}if(rr==null||ir==null)throw new Error("Cannot determine query start and/or end.");return{start:rr,end:ir,granularity:B}}static _groupResultsByPeriod(t,I){const B={};for(const tr of t){const rr=tr.start.toISO()+"-"+tr.period,ir=AnalyticsDiscretizer._getPeriodString(tr);B[rr]={period:ir,start:tr.start,end:tr.end,rows:[]}}for(const tr of I)for(const rr of Object.keys(tr.series))B[rr].rows.push({dimensions:tr.dimensions,metric:tr.metric,unit:tr.unit=="__NULL__"?null:tr.unit,value:tr.series[rr].inc,sum:tr.series[rr].sum});return Object.values(B)}static _getPeriodString(t){switch(t.period){case"annual":return t.start.year.toString();case"semiAnnual":return`${t.start.year}/${t.start.month<7?"H1":"H2"}`;case"quarterly":return`${t.start.year}/Q${getQuarter(t.start)}`;case"monthly":const I=t.start.toUTC().month,B=I<10?`0${I}`:`${I}`;return`${t.start.year}/${B}`;case"weekly":return`${t.start.weekYear}/W${t.start.weekNumber}`;case"daily":const tr=t.start.month,rr=t.start.day,ir=tr<10?`0${tr}`:`${tr}`,lr=rr<10?`0${rr}`:`${rr}`;return`${t.start.year}/${ir}/${lr}`;case"hourly":const dr=t.start.month,mr=t.start.day,fr=t.start.hour,hr=dr<10?`0${dr}`:`${dr}`,_r=mr<10?`0${mr}`:`${mr}`,yr=fr<10?`0${fr}`:`${fr}`;return`${t.start.year}/${hr}/${_r}/${yr}`;default:return t.period}}static _discretizeNode(t,I,B,tr){const rr=[];if(B.length>0){const ir=B[0];Object.keys(t).forEach((lr,dr,mr)=>{const fr={...I};fr[ir]=lr,rr.push(...this._discretizeNode(t[lr],fr,B.slice(1),tr))})}else Object.keys(t).forEach(ir=>{rr.push(...this._discretizeLeaf(t[ir],tr,ir,I))});return rr}static _discretizeLeaf(t,I,B,tr){const rr=[];return Object.keys(t).forEach(ir=>{const lr={};Object.keys(tr).forEach(dr=>{lr[dr]={path:t[ir][0].dimensions[dr],icon:t[ir][0].dimensions.icon,label:t[ir][0].dimensions.label,description:t[ir][0].dimensions.description}}),rr.push({unit:ir,metric:B,dimensions:lr,series:this._discretizeSeries(t[ir],I)})}),rr}static _discretizeSeries(t,I){const B={};for(const tr of t){let rr=this._getValue(tr,I[0].start);for(const ir of I){const lr=this._getValue(tr,ir.end),dr=`${ir.start.toISO()}-${ir.period}`;B[dr]?(B[dr].inc+=lr-rr,B[dr].sum+=lr):B[dr]={inc:lr-rr,sum:lr},rr=lr}}return B}static _getValue(t,I){switch(t.fn){case"Single":return this._getSingleValue(t,I);case"DssVest":return this._getVestValue(t,I);default:return 0}}static _getSingleValue(t,I){return I>=t.start?t.value:0}static _getVestValue(t,I){var mr;const B=I,tr=t.start,rr=t.end,ir=(mr=t.params)!=null&&mr.cliff?DateTime.fromISO(t.params.cliff):null;if(B<tr||ir&&B<ir)return 0;if(rr&&B>=rr)return t.value;const lr=Interval.fromDateTimes(tr,B),dr=Interval.fromDateTimes(tr,rr||B);return lr.length()/dr.length()*t.value}static _buildIndex(t,I){const B={},tr={},rr=I[0]||"";for(const ir of t){const lr=ir.dimensions[rr];tr[lr]===void 0&&(tr[lr]=[]),tr[lr].push(ir)}if(I.length>1){const ir=I.slice(1);Object.keys(tr).forEach(lr=>{B[lr]=this._buildIndex(tr[lr],ir)})}else Object.keys(tr).forEach(ir=>{B[ir]=this._buildMetricsIndex(tr[ir])});return B}static _buildMetricsIndex(t){const I={},B={};for(const tr of t){const rr=tr.metric;B[rr]===void 0&&(B[rr]=[]),B[rr].push(tr)}return Object.keys(B).forEach(tr=>I[tr]=this._buildUnitIndex(B[tr])),I}static _buildUnitIndex(t){const I={};for(const B of t){const tr=B.unit||"__NULL__";I[tr]===void 0&&(I[tr]=[]),I[tr].push(B)}return I}}class AnalyticsQueryEngine{constructor(t,I){Mi(this,"_analyticsStore");Mi(this,"_profiler");this._analyticsStore=t,this._profiler=I??new PassthroughAnalyticsProfiler}async executeCompound(t){let I;const B={start:t.start,end:t.end,granularity:t.granularity,lod:t.lod,select:t.select,metrics:t.expression.inputs.metrics,currency:t.expression.inputs.currency},tr={start:t.start,end:t.end,granularity:t.granularity,lod:{priceData:1},select:{priceData:[AnalyticsPath.fromString("atlas")]},metrics:[t.expression.operand.metric],currency:t.expression.operand.currency},rr=await this.execute(B),ir=await this.execute(tr);return[CompoundOperator.VectorAdd,CompoundOperator.VectorSubtract].includes(t.expression.operator)?I=await this._profiler.record("ApplyVectorOperator",async()=>await this._applyVectorOperator(rr,ir,t.expression.operator,t.expression.resultCurrency)):I=await this._profiler.record("ApplyScalarOperator",async()=>await this._applyScalarOperator(rr,ir,t.expression.operator,t.expression.operand.useSum,t.expression.resultCurrency)),I}async execute(t){const I=await this._executeSeriesQuery(t),B=this._profiler.recordSync("ApplyLODs",()=>this._applyLods(I,t.lod)),tr=Object.keys(t.select);return this._profiler.recordSync("Discretize",()=>B.length<1?[]:AnalyticsDiscretizer.discretize(B,tr,t.start,t.end,t.granularity))}async executeMultiCurrency(t,I){const B={...t,currency:I.targetCurrency??t.currency};let tr=await this.execute(B);for(const rr of I.conversions){const ir={start:t.start,end:t.end,granularity:t.granularity,lod:t.lod,select:t.select,expression:{inputs:{metrics:B.metrics,currency:rr.currency},operator:CompoundOperator.ScalarMultiply,operand:{metric:rr.metric,currency:I.targetCurrency,useSum:!0},resultCurrency:I.targetCurrency}},lr=await this.executeCompound(ir);tr=await this._applyVectorOperator(tr,lr,CompoundOperator.VectorAdd,I.targetCurrency)}return tr}async _applyVectorOperator(t,I,B,tr){if([CompoundOperator.ScalarMultiply,CompoundOperator.ScalarDivide].includes(B))throw new Error("Invalid operator for vector operation");return I}async _applyScalarOperator(t,I,B,tr,rr){if([CompoundOperator.VectorAdd,CompoundOperator.VectorSubtract].includes(B))throw new Error("Invalid operator for scalar operation");const ir=[],lr={},dr=tr?"sum":"value";for(const mr of I)mr.rows.length>0&&(lr[mr.period]=mr.rows[0][dr]);for(const mr of t){const fr={period:mr.period,start:mr.start,end:mr.end,rows:mr.rows.map(hr=>({dimensions:hr.dimensions,metric:hr.metric,unit:rr?rr.toString():hr.unit,value:this._calculateOutputValue(hr.value,B,lr[mr.period]),sum:-1}))};ir.push(fr)}return ir}_calculateOutputValue(t,I,B){switch(I){case CompoundOperator.VectorAdd:return t+B;case CompoundOperator.VectorSubtract:return t-B;case CompoundOperator.ScalarMultiply:return t*B;case CompoundOperator.ScalarDivide:return t/B}}async _executeSeriesQuery(t){const I={start:t.start,end:t.end,select:t.select,metrics:t.metrics,currency:t.currency};return await this._analyticsStore.getMatchingSeries(I)}_applyLods(t,I){return t.map(B=>({...B,dimensions:this._applyDimensionsLods(B.dimensions,I)}))}_applyDimensionsLods(t,I){const B={};for(const[tr,rr]of Object.entries(I))rr!==null&&t[tr]&&(B[tr]=t[tr].path.applyLod(rr).toString(),B.icon=t[tr].icon.toString(),B.label=t[tr].label.toString(),B.description=t[tr].description.toString());return B}async getDimensions(){return await this._analyticsStore.getDimensions()}}class NotificationError extends Error{constructor(I){super(I.map(B=>B.message).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./nodefs.-VhAN1o-.js","./index.BMPxkQED.js","./connect.config.DPyK4Jod.js","./browser.BkwNmV2Z.js","./user.BMmmB6tx.js","./index.StNaZPq6.js","./app-skeleton.js","./index-B7k827uL.css","./useFeatureFlags.sXfJU4Dt.js","./useAcceptedCookies.0oEpgMaL.js","./useConnectConfig.DdI2NHQB.js","./index.CAUjMUXb.js","./registerServiceWorker.EQxorQcm.js","./opfs-ahp.DfAaRTE1.js","./index.wi4PancZ.js","./index.CSR1o9jA.js","./index.CWo9c4bp.js","./index.Boraf2w_.js","./home.rIH0yqJa.js","./modals.A6sVd5gD.js","./i18next.CqOP20KE.js","./useDocumentDriveServer.DWcjAAwV.js","./slug.C6xW_7Wm.js","./modal.BfdcABh4.js","./content.kA-PYal5.js","./react-error-boundary.esm.BPLyXlMw.js","./useDefaultDocumentModelEditor.BqgqU3q7.js","./useTranslation.BpVv6XIW.js","./toast.BX1oolJV.js","./root.CPcpblDb.js","./atlas-import.DEWsCiBk.js"])))=>i.map(i=>d[i]);
2
+ var Ni=Object.defineProperty;var $i=(e,t,I)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:I}):e[t]=I;var Mi=(e,t,I)=>$i(e,typeof t!="symbol"?t+"":t,I);import{jsxs,jsx,Fragment}from"react/jsx-runtime";import{r as require$$1,d as commonjsGlobal,p as process,g as getDefaultExportFromCjs,_ as __vitePreload,Q as QueryClientProvider,e as QueryClient,f as useQuery,h as useQueryClient,i as useMutation,j as childLogger,k as generateId,I as InternalTransmitter,l as logger$4,R as ReadDriveNotFoundError,b as useAtomValue,a as atom,W as WagmiContext,T as ToastContainer,U as UiNodesContextProvider}from"./index.BMPxkQED.js";import*as React from"react";import React__default,{useMemo,useEffect,useState,createContext,useContext,useRef,Suspense}from"react";import{c as connectConfig}from"./connect.config.DPyK4Jod.js";import{e as externalPackagesAtom,u as useRenown}from"./user.BMmmB6tx.js";import{u as useAsyncReactor,a as useUserPermissions,d as drivesToHash,r as reactorAtom}from"./useFeatureFlags.sXfJU4Dt.js";import{a as atomWithLazy,u as unwrap,b as atomStore}from"./index.StNaZPq6.js";import{u as useAcceptedCookies}from"./useAcceptedCookies.0oEpgMaL.js";import{u as useConnectConfig}from"./useConnectConfig.DdI2NHQB.js";import*as ReactDOM from"react-dom";import{l as logV6DeprecationWarnings,D as DataRouterContext,a as DataRouterStateContext,R as Router$1,c as createRouter$1,b as createBrowserHistory,u as useRoutesImpl,E as ErrorResponseImpl,m as mapRouteProperties,d as useLocation,e as useNavigate,f as matchRoutes,g as createRoutesFromChildren,h as useNavigationType}from"./index.CAUjMUXb.js";import{s as serviceWorkerManager}from"./registerServiceWorker.EQxorQcm.js";class PassthroughAnalyticsProfiler{get prefix(){return""}push(t){}pop(){}popAndReturn(t){return t}async record(t,I){return await I()}recordSync(t,I){return I()}}var AnalyticsSerializerTypes;(function(e){e[e.AnalyticsPath=0]="AnalyticsPath",e[e.AnalyticsPathSegment=1]="AnalyticsPathSegment",e[e.AnalyticsPeriod=2]="AnalyticsPeriod"})(AnalyticsSerializerTypes||(AnalyticsSerializerTypes={}));var AnalyticsPeriodType;(function(e){e[e.Year=0]="Year",e[e.Quarter=1]="Quarter",e[e.Month=2]="Month"})(AnalyticsPeriodType||(AnalyticsPeriodType={}));class AnalyticsPath{constructor(t){Mi(this,"_segments");this._segments=t}get segments(){return this._segments}static fromString(t){const I=parseSeparatedList(t,"/").map(B=>AnalyticsPathSegment.fromString(B));return new AnalyticsPath(I)}static fromStringArray(t){return new AnalyticsPath(t.map(I=>AnalyticsPathSegment.fromString(I)))}static fromArray(t){return new AnalyticsPath(t)}static fromJSON(t){const I=t._v.split("/").map(B=>AnalyticsPathSegment.fromString(B));return new AnalyticsPath(I)}toJSON(){return{_t:AnalyticsSerializerTypes.AnalyticsPath,_v:this.toString()}}toString(t=""){return this._segments.map(I=>I.toString()).join("/")+t}firstSegment(){return this._segments.length>0?this._segments[0]:new AnalyticsPathSegment}reduce(){const t=this._segments.slice(1);return t.length<1&&t.push(new AnalyticsPathSegment),new AnalyticsPath(t)}applyLod(t){const I=[...this._segments];for(;I.length<t;)I.push(new AnalyticsPathSegment);return new AnalyticsPath(I.slice(0,t))}}class AnalyticsPathSegment{constructor(t=null,I=[]){Mi(this,"_filters",null);Mi(this,"_groups",null);this._filters=t,this._groups=I}get filters(){return this._filters}get groups(){return this._groups}static fromString(t){const I=parseSeparatedList(t,":");let B;I[0]==="*"?B=null:B=parseSeparatedList(I[0],",").map(rr=>AnalyticsPathSegment.unescape(rr));let tr;return I[1]===void 0||I[1].length<1?tr=[]:I[1]==="*"?tr=null:tr=parseSeparatedList(I[1],",").map(rr=>AnalyticsPathSegment.unescape(rr)),new AnalyticsPathSegment(B,tr)}static escape(t){return t.replace(/(\\|:|\/|,)/gi,"\\$1")}static unescape(t){return t.replace(/\\(.)/gi,"$1")}toJSON(){return{_t:AnalyticsSerializerTypes.AnalyticsPathSegment,_v:this.toString()}}toString(){let t="";return this._filters===null?t+="*":t+=this._filters.map(I=>AnalyticsPathSegment.escape(I)).join(","),this._groups===null?t+=":*":this._groups.length>0&&(t+=":"+this._groups.map(I=>AnalyticsPathSegment.escape(I)).join(",")),t}}const unescapedSeparatorPattern={":":new RegExp("(?<!\\\\):"),",":new RegExp("(?<!\\\\),"),"/":new RegExp("(?<!\\\\)\\/")};function parseSeparatedList(e,t){let I="@@";for(;e.indexOf(I)>-1;)I+="@";return e.replaceAll("\\\\",I).split(unescapedSeparatorPattern[t]).map(B=>B.replaceAll(I,"\\\\"))}var AnalyticsMetric;(function(e){e[e.Budget=0]="Budget",e[e.Forecast=1]="Forecast",e[e.Actuals=2]="Actuals",e[e.PaymentsOnChain=3]="PaymentsOnChain",e[e.PaymentsOffChainIncluded=4]="PaymentsOffChainIncluded",e[e.FTEs=5]="FTEs"})(AnalyticsMetric||(AnalyticsMetric={}));var CompoundOperator;(function(e){e[e.VectorAdd=0]="VectorAdd",e[e.VectorSubtract=1]="VectorSubtract",e[e.ScalarMultiply=2]="ScalarMultiply",e[e.ScalarDivide=3]="ScalarDivide"})(CompoundOperator||(CompoundOperator={}));var AnalyticsGranularity;(function(e){e[e.Total=0]="Total",e[e.Annual=1]="Annual",e[e.SemiAnnual=2]="SemiAnnual",e[e.Quarterly=3]="Quarterly",e[e.Monthly=4]="Monthly",e[e.Weekly=5]="Weekly",e[e.Daily=6]="Daily",e[e.Hourly=7]="Hourly"})(AnalyticsGranularity||(AnalyticsGranularity={}));class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(t){super(`Invalid unit ${t}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n$1="numeric",s$2="short",l$3="long",DATE_SHORT={year:n$1,month:n$1,day:n$1},DATE_MED={year:n$1,month:s$2,day:n$1},DATE_MED_WITH_WEEKDAY={year:n$1,month:s$2,day:n$1,weekday:s$2},DATE_FULL={year:n$1,month:l$3,day:n$1},DATE_HUGE={year:n$1,month:l$3,day:n$1,weekday:l$3},TIME_SIMPLE={hour:n$1,minute:n$1},TIME_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$2},TIME_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$3},TIME_24_SIMPLE={hour:n$1,minute:n$1,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:s$2},TIME_24_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:l$3},DATETIME_SHORT={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED={year:n$1,month:s$2,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS={year:n$1,month:s$2,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY={year:n$1,month:s$2,day:n$1,weekday:s$2,hour:n$1,minute:n$1},DATETIME_FULL={year:n$1,month:l$3,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$2},DATETIME_FULL_WITH_SECONDS={year:n$1,month:l$3,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$2},DATETIME_HUGE={year:n$1,month:l$3,day:n$1,weekday:l$3,hour:n$1,minute:n$1,timeZoneName:l$3},DATETIME_HUGE_WITH_SECONDS={year:n$1,month:l$3,day:n$1,weekday:l$3,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$3};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(t,I){throw new ZoneIsAbstractError}formatOffset(t,I){throw new ZoneIsAbstractError}offset(t){throw new ZoneIsAbstractError}equals(t){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:I,locale:B}){return parseZoneInfo(t,I,B)}formatOffset(t,I){return formatOffset(this.offset(t),I)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const dtfCache=new Map;function makeDTF(e){let t=dtfCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache.set(e,t)),t}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const I=e.format(t).replace(/\u200E/g,""),B=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(I),[,tr,rr,ir,lr,dr,mr,fr]=B;return[ir,tr,rr,lr,dr,mr,fr]}function partsOffset(e,t){const I=e.formatToParts(t),B=[];for(let tr=0;tr<I.length;tr++){const{type:rr,value:ir}=I[tr],lr=typeToPos[rr];rr==="era"?B[lr]=ir:isUndefined(lr)||(B[lr]=parseInt(ir,10))}return B}const ianaZoneCache=new Map;class IANAZone extends Zone{static create(t){let I=ianaZoneCache.get(t);return I===void 0&&ianaZoneCache.set(t,I=new IANAZone(t)),I}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=IANAZone.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:I,locale:B}){return parseZoneInfo(t,I,B,this.name)}formatOffset(t,I){return formatOffset(this.offset(t),I)}offset(t){if(!this.valid)return NaN;const I=new Date(t);if(isNaN(I))return NaN;const B=makeDTF(this.name);let[tr,rr,ir,lr,dr,mr,fr]=B.formatToParts?partsOffset(B,I):hackyOffset(B,I);lr==="BC"&&(tr=-Math.abs(tr)+1);const _r=objToLocalTS({year:tr,month:rr,day:ir,hour:dr===24?0:dr,minute:mr,second:fr,millisecond:0});let yr=+I;const Mr=yr%1e3;return yr-=Mr>=0?Mr:1e3+Mr,(_r-yr)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(e,t={}){const I=JSON.stringify([e,t]);let B=intlLFCache[I];return B||(B=new Intl.ListFormat(e,t),intlLFCache[I]=B),B}const intlDTCache=new Map;function getCachedDTF(e,t={}){const I=JSON.stringify([e,t]);let B=intlDTCache.get(I);return B===void 0&&(B=new Intl.DateTimeFormat(e,t),intlDTCache.set(I,B)),B}const intlNumCache=new Map;function getCachedINF(e,t={}){const I=JSON.stringify([e,t]);let B=intlNumCache.get(I);return B===void 0&&(B=new Intl.NumberFormat(e,t),intlNumCache.set(I,B)),B}const intlRelCache=new Map;function getCachedRTF(e,t={}){const{base:I,...B}=t,tr=JSON.stringify([e,B]);let rr=intlRelCache.get(tr);return rr===void 0&&(rr=new Intl.RelativeTimeFormat(e,t),intlRelCache.set(tr,rr)),rr}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(e){let t=intlResolvedOptionsCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),intlResolvedOptionsCache.set(e,t)),t}const weekInfoCache=new Map;function getCachedWeekInfo(e){let t=weekInfoCache.get(e);if(!t){const I=new Intl.Locale(e);t="getWeekInfo"in I?I.getWeekInfo():I.weekInfo,"minimalDays"in t||(t={...fallbackWeekSettings,...t}),weekInfoCache.set(e,t)}return t}function parseLocaleString(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const I=e.indexOf("-u-");if(I===-1)return[e];{let B,tr;try{B=getCachedDTF(e).resolvedOptions(),tr=e}catch{const dr=e.substring(0,I);B=getCachedDTF(dr).resolvedOptions(),tr=dr}const{numberingSystem:rr,calendar:ir}=B;return[tr,rr,ir]}}function intlConfigString(e,t,I){return(I||t)&&(e.includes("-u-")||(e+="-u"),I&&(e+=`-ca-${I}`),t&&(e+=`-nu-${t}`)),e}function mapMonths(e){const t=[];for(let I=1;I<=12;I++){const B=DateTime.utc(2009,I,1);t.push(e(B))}return t}function mapWeekdays(e){const t=[];for(let I=1;I<=7;I++){const B=DateTime.utc(2016,11,13+I);t.push(e(B))}return t}function listStuff(e,t,I,B){const tr=e.listingMode();return tr==="error"?null:tr==="en"?I(t):B(t)}function supportsFastNumbers(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||getCachedIntResolvedOptions(e.locale).numberingSystem==="latn"}class PolyNumberFormatter{constructor(t,I,B){this.padTo=B.padTo||0,this.floor=B.floor||!1;const{padTo:tr,floor:rr,...ir}=B;if(!I||Object.keys(ir).length>0){const lr={useGrouping:!1,...B};B.padTo>0&&(lr.minimumIntegerDigits=B.padTo),this.inf=getCachedINF(t,lr)}}format(t){if(this.inf){const I=this.floor?Math.floor(t):t;return this.inf.format(I)}else{const I=this.floor?Math.floor(t):roundTo(t,3);return padStart(I,this.padTo)}}}class PolyDateFormatter{constructor(t,I,B){this.opts=B,this.originalZone=void 0;let tr;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const ir=-1*(t.offset/60),lr=ir>=0?`Etc/GMT+${ir}`:`Etc/GMT${ir}`;t.offset!==0&&IANAZone.create(lr).valid?(tr=lr,this.dt=t):(tr="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,tr=t.zone.name):(tr="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const rr={...this.opts};rr.timeZone=rr.timeZone||tr,this.dtf=getCachedDTF(I,rr)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(I=>{if(I.type==="timeZoneName"){const B=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...I,value:B}}else return I}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(t,I,B){this.opts={style:"long",...B},!I&&hasRelative()&&(this.rtf=getCachedRTF(t,B))}format(t,I){return this.rtf?this.rtf.format(t,I):formatRelativeTime(I,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,I){return this.rtf?this.rtf.formatToParts(t,I):[]}}const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(t){return Locale.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,I,B,tr,rr=!1){const ir=t||Settings.defaultLocale,lr=ir||(rr?"en-US":systemLocale()),dr=I||Settings.defaultNumberingSystem,mr=B||Settings.defaultOutputCalendar,fr=validateWeekSettings(tr)||Settings.defaultWeekSettings;return new Locale(lr,dr,mr,fr,ir)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale:t,numberingSystem:I,outputCalendar:B,weekSettings:tr}={}){return Locale.create(t,I,B,tr)}constructor(t,I,B,tr,rr){const[ir,lr,dr]=parseLocaleString(t);this.locale=ir,this.numberingSystem=I||lr||null,this.outputCalendar=B||dr||null,this.weekSettings=tr,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=rr,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),I=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&I?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Locale.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,validateWeekSettings(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,I=!1){return listStuff(this,t,months,()=>{const B=I?{month:t,day:"numeric"}:{month:t},tr=I?"format":"standalone";return this.monthsCache[tr][t]||(this.monthsCache[tr][t]=mapMonths(rr=>this.extract(rr,B,"month"))),this.monthsCache[tr][t]})}weekdays(t,I=!1){return listStuff(this,t,weekdays,()=>{const B=I?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},tr=I?"format":"standalone";return this.weekdaysCache[tr][t]||(this.weekdaysCache[tr][t]=mapWeekdays(rr=>this.extract(rr,B,"weekday"))),this.weekdaysCache[tr][t]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(I=>this.extract(I,t,"dayperiod"))}return this.meridiemCache})}eras(t){return listStuff(this,t,eras,()=>{const I={era:t};return this.eraCache[t]||(this.eraCache[t]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(B=>this.extract(B,I,"era"))),this.eraCache[t]})}extract(t,I,B){const tr=this.dtFormatter(t,I),rr=tr.formatToParts(),ir=rr.find(lr=>lr.type.toLowerCase()===B);return ir?ir.value:null}numberFormatter(t={}){return new PolyNumberFormatter(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,I={}){return new PolyDateFormatter(t,this.intl,I)}relFormatter(t={}){return new PolyRelFormatter(this.intl,this.isEnglish(),t)}listFormatter(t={}){return getCachedLF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(t){return t===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(t)}static parseSpecifier(t){if(t){const I=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(I)return new FixedOffsetZone(signedOffset(I[1],I[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,I){return formatOffset(this.fixed,I)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(e,t){if(isUndefined(e)||e===null)return t;if(e instanceof Zone)return e;if(isString(e)){const I=e.toLowerCase();return I==="default"?t:I==="local"||I==="system"?SystemZone.instance:I==="utc"||I==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(I)||IANAZone.create(e)}else return isNumber(e)?FixedOffsetZone.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new InvalidZone(e)}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let I=0;I<e.length;I++){const B=e.charCodeAt(I);if(e[I].search(numberingSystems.hanidec)!==-1)t+=hanidecChars.indexOf(e[I]);else for(const tr in numberingSystemsUTF16){const[rr,ir]=numberingSystemsUTF16[tr];B>=rr&&B<=ir&&(t+=B-rr)}}return parseInt(t,10)}else return t}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem:e},t=""){const I=e||"latn";let B=digitRegexCache.get(I);B===void 0&&(B=new Map,digitRegexCache.set(I,B));let tr=B.get(t);return tr===void 0&&(tr=new RegExp(`${numberingSystems[I]}${t}`),B.set(t,tr)),tr}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;class Settings{static get now(){return now}static set now(t){now=t}static set defaultZone(t){defaultZone=t}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(t){defaultLocale=t}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(t){defaultNumberingSystem=t}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(t){defaultOutputCalendar=t}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(t){defaultWeekSettings=validateWeekSettings(t)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(t){twoDigitCutoffYear=t%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t){throwOnInvalid=t}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}}class Invalid{constructor(t,I){this.reason=t,this.explanation=I}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,I){const B=new Date(Date.UTC(e,t-1,I));e<100&&e>=0&&B.setUTCFullYear(B.getUTCFullYear()-1900);const tr=B.getUTCDay();return tr===0?7:tr}function computeOrdinal(e,t,I){return I+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){const I=isLeapYear(e)?leapLadder:nonLeapLadder,B=I.findIndex(rr=>rr<t),tr=t-I[B];return{month:B+1,day:tr}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,I=1){const{year:B,month:tr,day:rr}=e,ir=computeOrdinal(B,tr,rr),lr=isoWeekdayToLocal(dayOfWeek(B,tr,rr),I);let dr=Math.floor((ir-lr+14-t)/7),mr;return dr<1?(mr=B-1,dr=weeksInWeekYear(mr,t,I)):dr>weeksInWeekYear(B,t,I)?(mr=B+1,dr=1):mr=B,{weekYear:mr,weekNumber:dr,weekday:lr,...timeObject(e)}}function weekToGregorian(e,t=4,I=1){const{weekYear:B,weekNumber:tr,weekday:rr}=e,ir=isoWeekdayToLocal(dayOfWeek(B,1,t),I),lr=daysInYear(B);let dr=tr*7+rr-ir-7+t,mr;dr<1?(mr=B-1,dr+=daysInYear(mr)):dr>lr?(mr=B+1,dr-=daysInYear(B)):mr=B;const{month:fr,day:hr}=uncomputeOrdinal(mr,dr);return{year:mr,month:fr,day:hr,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:I,day:B}=e,tr=computeOrdinal(t,I,B);return{year:t,ordinal:tr,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:I}=e,{month:B,day:tr}=uncomputeOrdinal(t,I);return{year:t,month:B,day:tr,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear)){if(!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(e,t=4,I=1){const B=isInteger(e.weekYear),tr=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,I)),rr=integerBetween(e.weekday,1,7);return B?tr?rr?!1:unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.weekNumber):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){const t=isInteger(e.year),I=integerBetween(e.ordinal,1,daysInYear(e.year));return t?I?!1:unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){const t=isInteger(e.year),I=integerBetween(e.month,1,12),B=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?I?B?!1:unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){const{hour:t,minute:I,second:B,millisecond:tr}=e,rr=integerBetween(t,0,23)||t===24&&I===0&&B===0&&tr===0,ir=integerBetween(I,0,59),lr=integerBetween(B,0,59),dr=integerBetween(tr,0,999);return rr?ir?lr?dr?!1:unitOutOfRange("millisecond",tr):unitOutOfRange("second",B):unitOutOfRange("minute",I):unitOutOfRange("hour",t)}function isUndefined(e){return typeof e>"u"}function isNumber(e){return typeof e=="number"}function isInteger(e){return typeof e=="number"&&e%1===0}function isString(e){return typeof e=="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,I){if(e.length!==0)return e.reduce((B,tr)=>{const rr=[t(tr),tr];return B&&I(B[0],rr[0])===B[0]?B:rr},null)[1]}function pick(e,t){return t.reduce((I,B)=>(I[B]=e[B],I),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null)return null;if(typeof e!="object")throw new InvalidArgumentError("Week settings must be an object");if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!integerBetween(t,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween(e,t,I){return isInteger(e)&&e>=t&&e<=I}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const I=e<0;let B;return I?B="-"+(""+-e).padStart(t,"0"):B=(""+e).padStart(t,"0"),B}function parseInteger(e){if(!(isUndefined(e)||e===null||e===""))return parseInt(e,10)}function parseFloating(e){if(!(isUndefined(e)||e===null||e===""))return parseFloat(e)}function parseMillis(e){if(!(isUndefined(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,I=!1){const B=10**t;return(I?Math.trunc:Math.round)(e*B)/B}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const I=floorMod(t-1,12)+1,B=e+(t-I)/12;return I===2?isLeapYear(B)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][I-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,I){return-isoWeekdayToLocal(dayOfWeek(e,1,t),I)+t-1}function weeksInWeekYear(e,t=4,I=1){const B=firstWeekOffset(e,t,I),tr=firstWeekOffset(e+1,t,I);return(daysInYear(e)-B+tr)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,I,B=null){const tr=new Date(e),rr={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};B&&(rr.timeZone=B);const ir={timeZoneName:t,...rr},lr=new Intl.DateTimeFormat(I,ir).formatToParts(tr).find(dr=>dr.type.toLowerCase()==="timezonename");return lr?lr.value:null}function signedOffset(e,t){let I=parseInt(e,10);Number.isNaN(I)&&(I=0);const B=parseInt(t,10)||0,tr=I<0||Object.is(I,-0)?-B:B;return I*60+tr}function asNumber(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const I={};for(const B in e)if(hasOwnProperty(e,B)){const tr=e[B];if(tr==null)continue;I[t(B)]=asNumber(tr)}return I}function formatOffset(e,t){const I=Math.trunc(Math.abs(e/60)),B=Math.trunc(Math.abs(e%60)),tr=e>=0?"+":"-";switch(t){case"short":return`${tr}${padStart(I,2)}:${padStart(B,2)}`;case"narrow":return`${tr}${I}${B>0?`:${B}`:""}`;case"techie":return`${tr}${padStart(I,2)}${padStart(B,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,I="always",B=!1){const tr={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},rr=["hours","minutes","seconds"].indexOf(e)===-1;if(I==="auto"&&rr){const hr=e==="days";switch(t){case 1:return hr?"tomorrow":`next ${tr[e][0]}`;case-1:return hr?"yesterday":`last ${tr[e][0]}`;case 0:return hr?"today":`this ${tr[e][0]}`}}const ir=Object.is(t,-0)||t<0,lr=Math.abs(t),dr=lr===1,mr=tr[e],fr=B?dr?mr[1]:mr[2]||mr[1]:dr?tr[e][0]:e;return ir?`${lr} ${fr} ago`:`in ${lr} ${fr}`}function stringifyTokens(e,t){let I="";for(const B of e)B.literal?I+=B.val:I+=t(B.val);return I}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(t,I={}){return new Formatter(t,I)}static parseFormat(t){let I=null,B="",tr=!1;const rr=[];for(let ir=0;ir<t.length;ir++){const lr=t.charAt(ir);lr==="'"?(B.length>0&&rr.push({literal:tr||/^\s+$/.test(B),val:B}),I=null,B="",tr=!tr):tr||lr===I?B+=lr:(B.length>0&&rr.push({literal:/^\s+$/.test(B),val:B}),B=lr,I=lr)}return B.length>0&&rr.push({literal:tr||/^\s+$/.test(B),val:B}),rr}static macroTokenToFormatOpts(t){return macroTokenToFormatOpts[t]}constructor(t,I){this.opts=I,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,I){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...I}).format()}dtFormatter(t,I={}){return this.loc.dtFormatter(t,{...this.opts,...I})}formatDateTime(t,I){return this.dtFormatter(t,I).format()}formatDateTimeParts(t,I){return this.dtFormatter(t,I).formatToParts()}formatInterval(t,I){return this.dtFormatter(t.start,I).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,I){return this.dtFormatter(t,I).resolvedOptions()}num(t,I=0){if(this.opts.forceSimple)return padStart(t,I);const B={...this.opts};return I>0&&(B.padTo=I),this.loc.numberFormatter(B).format(t)}formatDateTimeFromString(t,I){const B=this.loc.listingMode()==="en",tr=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",rr=(yr,Mr)=>this.loc.extract(t,yr,Mr),ir=yr=>t.isOffsetFixed&&t.offset===0&&yr.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,yr.format):"",lr=()=>B?meridiemForDateTime(t):rr({hour:"numeric",hourCycle:"h12"},"dayperiod"),dr=(yr,Mr)=>B?monthForDateTime(t,yr):rr(Mr?{month:yr}:{month:yr,day:"numeric"},"month"),mr=(yr,Mr)=>B?weekdayForDateTime(t,yr):rr(Mr?{weekday:yr}:{weekday:yr,month:"long",day:"numeric"},"weekday"),fr=yr=>{const Mr=Formatter.macroTokenToFormatOpts(yr);return Mr?this.formatWithSystemDefault(t,Mr):yr},hr=yr=>B?eraForDateTime(t,yr):rr({era:yr},"era"),_r=yr=>{switch(yr){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return ir({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ir({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ir({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return lr();case"d":return tr?rr({day:"numeric"},"day"):this.num(t.day);case"dd":return tr?rr({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return mr("short",!0);case"cccc":return mr("long",!0);case"ccccc":return mr("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return mr("short",!1);case"EEEE":return mr("long",!1);case"EEEEE":return mr("narrow",!1);case"L":return tr?rr({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return tr?rr({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return dr("short",!0);case"LLLL":return dr("long",!0);case"LLLLL":return dr("narrow",!0);case"M":return tr?rr({month:"numeric"},"month"):this.num(t.month);case"MM":return tr?rr({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return dr("short",!1);case"MMMM":return dr("long",!1);case"MMMMM":return dr("narrow",!1);case"y":return tr?rr({year:"numeric"},"year"):this.num(t.year);case"yy":return tr?rr({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return tr?rr({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return tr?rr({year:"numeric"},"year"):this.num(t.year,6);case"G":return hr("short");case"GG":return hr("long");case"GGGGG":return hr("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return fr(yr)}};return stringifyTokens(Formatter.parseFormat(I),_r)}formatDurationFromString(t,I){const B=dr=>{switch(dr[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tr=dr=>mr=>{const fr=B(mr);return fr?this.num(dr.get(fr),mr.length):mr},rr=Formatter.parseFormat(I),ir=rr.reduce((dr,{literal:mr,val:fr})=>mr?dr:dr.concat(fr),[]),lr=t.shiftTo(...ir.map(B).filter(dr=>dr));return stringifyTokens(rr,tr(lr))}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce((I,B)=>I+B.source,"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce(([I,B,tr],rr)=>{const[ir,lr,dr]=rr(t,tr);return[{...I,...ir},lr||B,dr]},[{},null,1]).slice(0,2)}function parse(e,...t){if(e==null)return[null,null];for(const[I,B]of t){const tr=I.exec(e);if(tr)return B(tr)}return[null,null]}function simpleParse(...e){return(t,I)=>{const B={};let tr;for(tr=0;tr<e.length;tr++)B[e[tr]]=parseInteger(t[I+tr]);return[B,null,I+tr]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(e,t,I){const B=e[t];return isUndefined(B)?I:parseInteger(B)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){const I=!e[t]&&!e[t+1],B=signedOffset(e[t+1],e[t+2]),tr=I?null:FixedOffsetZone.instance(B);return[{},tr,t+3]}function extractIANAZone(e,t){const I=e[t]?IANAZone.create(e[t]):null;return[{},I,t+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,I,B,tr,rr,ir,lr,dr,mr]=e,fr=t[0]==="-",hr=dr&&dr[0]==="-",_r=(yr,Mr=!1)=>yr!==void 0&&(Mr||yr&&fr)?-yr:yr;return[{years:_r(parseFloating(I)),months:_r(parseFloating(B)),weeks:_r(parseFloating(tr)),days:_r(parseFloating(rr)),hours:_r(parseFloating(ir)),minutes:_r(parseFloating(lr)),seconds:_r(parseFloating(dr),dr==="-0"),milliseconds:_r(parseMillis(mr),hr)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,I,B,tr,rr,ir){const lr={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(I)+1,day:parseInteger(B),hour:parseInteger(tr),minute:parseInteger(rr)};return ir&&(lr.second=parseInteger(ir)),e&&(lr.weekday=e.length>3?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),lr}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr]=e,_r=fromStrings(t,tr,B,I,rr,ir,lr);let yr;return dr?yr=obsOffsets[dr]:mr?yr=0:yr=signedOffset(fr,hr),[_r,new FixedOffsetZone(yr)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,I,B,tr,rr,ir,lr]=e;return[fromStrings(t,tr,B,I,rr,ir,lr),FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,I,B,tr,rr,ir,lr]=e;return[fromStrings(t,lr,I,B,tr,rr,ir),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(e,t,I=!1){const B={values:I?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(B)}function durationToMillis(e,t){let I=t.milliseconds??0;for(const B of reverseUnits.slice(1))t[B]&&(I+=t[B]*e[B].milliseconds);return I}function normalizeValues(e,t){const I=durationToMillis(e,t)<0?-1:1;orderedUnits$1.reduceRight((B,tr)=>{if(isUndefined(t[tr]))return B;if(B){const rr=t[B]*I,ir=e[tr][B],lr=Math.floor(rr/ir);t[tr]+=lr*I,t[B]-=lr*ir*I}return tr},null),orderedUnits$1.reduce((B,tr)=>{if(isUndefined(t[tr]))return B;if(B){const rr=t[B]%1;t[B]-=rr,t[tr]+=rr*e[B][tr]}return tr},null)}function removeZeroes(e){const t={};for(const[I,B]of Object.entries(e))B!==0&&(t[I]=B);return t}class Duration{constructor(t){const I=t.conversionAccuracy==="longterm"||!1;let B=I?accurateMatrix:casualMatrix;t.matrix&&(B=t.matrix),this.values=t.values,this.loc=t.loc||Locale.create(),this.conversionAccuracy=I?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=B,this.isLuxonDuration=!0}static fromMillis(t,I){return Duration.fromObject({milliseconds:t},I)}static fromObject(t,I={}){if(t==null||typeof t!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Duration({values:normalizeObject(t,Duration.normalizeUnit),loc:Locale.fromObject(I),conversionAccuracy:I.conversionAccuracy,matrix:I.matrix})}static fromDurationLike(t){if(isNumber(t))return Duration.fromMillis(t);if(Duration.isDuration(t))return t;if(typeof t=="object")return Duration.fromObject(t);throw new InvalidArgumentError(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,I){const[B]=parseISODuration(t);return B?Duration.fromObject(B,I):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,I){const[B]=parseISOTimeOnly(t);return B?Duration.fromObject(B,I):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidDurationError(B);return new Duration({invalid:B})}static normalizeUnit(t){const I={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!I)throw new InvalidUnitError(t);return I}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,I={}){const B={...I,floor:I.round!==!1&&I.floor!==!1};return this.isValid?Formatter.create(this.loc,B).formatDurationFromString(this,t):INVALID$2}toHuman(t={}){if(!this.isValid)return INVALID$2;const I=orderedUnits$1.map(B=>{const tr=this.values[B];return isUndefined(tr)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:B.slice(0,-1)}).format(tr)}).filter(B=>B);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(I)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const I=this.toMillis();return I<0||I>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},DateTime.fromMillis(I,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t),B={};for(const tr of orderedUnits$1)(hasOwnProperty(I.values,tr)||hasOwnProperty(this.values,tr))&&(B[tr]=I.get(tr)+this.get(tr));return clone$1(this,{values:B},!0)}minus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t);return this.plus(I.negate())}mapUnits(t){if(!this.isValid)return this;const I={};for(const B of Object.keys(this.values))I[B]=asNumber(t(this.values[B],B));return clone$1(this,{values:I},!0)}get(t){return this[Duration.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const I={...this.values,...normalizeObject(t,Duration.normalizeUnit)};return clone$1(this,{values:I})}reconfigure({locale:t,numberingSystem:I,conversionAccuracy:B,matrix:tr}={}){const ir={loc:this.loc.clone({locale:t,numberingSystem:I}),matrix:tr,conversionAccuracy:B};return clone$1(this,ir)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return normalizeValues(this.matrix,t),clone$1(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(ir=>Duration.normalizeUnit(ir));const I={},B={},tr=this.toObject();let rr;for(const ir of orderedUnits$1)if(t.indexOf(ir)>=0){rr=ir;let lr=0;for(const mr in B)lr+=this.matrix[mr][ir]*B[mr],B[mr]=0;isNumber(tr[ir])&&(lr+=tr[ir]);const dr=Math.trunc(lr);I[ir]=dr,B[ir]=(lr*1e3-dr*1e3)/1e3}else isNumber(tr[ir])&&(B[ir]=tr[ir]);for(const ir in B)B[ir]!==0&&(I[rr]+=ir===rr?B[ir]:B[ir]/this.matrix[rr][ir]);return normalizeValues(this.matrix,I),clone$1(this,{values:I},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const I of Object.keys(this.values))t[I]=this.values[I]===0?0:-this.values[I];return clone$1(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function I(B,tr){return B===void 0||B===0?tr===void 0||tr===0:B===tr}for(const B of orderedUnits$1)if(!I(this.values[B],t.values[B]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(e,t){return!e||!e.isValid?Interval.invalid("missing or invalid start"):!t||!t.isValid?Interval.invalid("missing or invalid end"):t<e?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Interval{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidIntervalError(B);return new Interval({invalid:B})}static fromDateTimes(t,I){const B=friendlyDateTime(t),tr=friendlyDateTime(I),rr=validateStartEnd(B,tr);return rr??new Interval({start:B,end:tr})}static after(t,I){const B=Duration.fromDurationLike(I),tr=friendlyDateTime(t);return Interval.fromDateTimes(tr,tr.plus(B))}static before(t,I){const B=Duration.fromDurationLike(I),tr=friendlyDateTime(t);return Interval.fromDateTimes(tr.minus(B),tr)}static fromISO(t,I){const[B,tr]=(t||"").split("/",2);if(B&&tr){let rr,ir;try{rr=DateTime.fromISO(B,I),ir=rr.isValid}catch{ir=!1}let lr,dr;try{lr=DateTime.fromISO(tr,I),dr=lr.isValid}catch{dr=!1}if(ir&&dr)return Interval.fromDateTimes(rr,lr);if(ir){const mr=Duration.fromISO(tr,I);if(mr.isValid)return Interval.after(rr,mr)}else if(dr){const mr=Duration.fromISO(B,I);if(mr.isValid)return Interval.before(lr,mr)}}return Interval.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",I){if(!this.isValid)return NaN;const B=this.start.startOf(t,I);let tr;return I!=null&&I.useLocaleWeeks?tr=this.end.reconfigure({locale:B.locale}):tr=this.end,tr=tr.startOf(t,I),Math.floor(tr.diff(B,t).get(t))+(tr.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:I}={}){return this.isValid?Interval.fromDateTimes(t||this.s,I||this.e):this}splitAt(...t){if(!this.isValid)return[];const I=t.map(friendlyDateTime).filter(ir=>this.contains(ir)).sort((ir,lr)=>ir.toMillis()-lr.toMillis()),B=[];let{s:tr}=this,rr=0;for(;tr<this.e;){const ir=I[rr]||this.e,lr=+ir>+this.e?this.e:ir;B.push(Interval.fromDateTimes(tr,lr)),tr=lr,rr+=1}return B}splitBy(t){const I=Duration.fromDurationLike(t);if(!this.isValid||!I.isValid||I.as("milliseconds")===0)return[];let{s:B}=this,tr=1,rr;const ir=[];for(;B<this.e;){const lr=this.start.plus(I.mapUnits(dr=>dr*tr));rr=+lr>+this.e?this.e:lr,ir.push(Interval.fromDateTimes(B,rr)),B=rr,tr+=1}return ir}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const I=this.s>t.s?this.s:t.s,B=this.e<t.e?this.e:t.e;return I>=B?null:Interval.fromDateTimes(I,B)}union(t){if(!this.isValid)return this;const I=this.s<t.s?this.s:t.s,B=this.e>t.e?this.e:t.e;return Interval.fromDateTimes(I,B)}static merge(t){const[I,B]=t.sort((tr,rr)=>tr.s-rr.s).reduce(([tr,rr],ir)=>rr?rr.overlaps(ir)||rr.abutsStart(ir)?[tr,rr.union(ir)]:[tr.concat([rr]),ir]:[tr,ir],[[],null]);return B&&I.push(B),I}static xor(t){let I=null,B=0;const tr=[],rr=t.map(dr=>[{time:dr.s,type:"s"},{time:dr.e,type:"e"}]),ir=Array.prototype.concat(...rr),lr=ir.sort((dr,mr)=>dr.time-mr.time);for(const dr of lr)B+=dr.type==="s"?1:-1,B===1?I=dr.time:(I&&+I!=+dr.time&&tr.push(Interval.fromDateTimes(I,dr.time)),I=null);return Interval.merge(tr)}difference(...t){return Interval.xor([this].concat(t)).map(I=>this.intersection(I)).filter(I=>I&&!I.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=DATE_SHORT,I={}){return this.isValid?Formatter.create(this.s.loc.clone(I),t).formatInterval(this):INVALID$1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:INVALID$1}toFormat(t,{separator:I=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${I}${this.e.toFormat(t)}`:INVALID$1}toDuration(t,I){return this.isValid?this.e.diff(this.s,t,I):Duration.invalid(this.invalidReason)}mapEndpoints(t){return Interval.fromDateTimes(t(this.s),t(this.e))}}class Info{static hasDST(t=Settings.defaultZone){const I=DateTime.now().setZone(t).set({month:12});return!t.isUniversal&&I.offset!==I.set({month:6}).offset}static isValidIANAZone(t){return IANAZone.isValidZone(t)}static normalizeZone(t){return normalizeZone(t,Settings.defaultZone)}static getStartOfWeek({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:I=null}={}){return(I||Locale.create(t)).getWeekendDays().slice()}static months(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null,outputCalendar:rr="gregory"}={}){return(tr||Locale.create(I,B,rr)).months(t)}static monthsFormat(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null,outputCalendar:rr="gregory"}={}){return(tr||Locale.create(I,B,rr)).months(t,!0)}static weekdays(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null}={}){return(tr||Locale.create(I,B,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:I=null,numberingSystem:B=null,locObj:tr=null}={}){return(tr||Locale.create(I,B,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Locale.create(t).meridiems()}static eras(t="short",{locale:I=null}={}){return Locale.create(I,null,"gregory").eras(t)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const I=tr=>tr.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),B=I(t)-I(e);return Math.floor(Duration.fromMillis(B).as("days"))}function highOrderDiffs(e,t,I){const B=[["years",(dr,mr)=>mr.year-dr.year],["quarters",(dr,mr)=>mr.quarter-dr.quarter+(mr.year-dr.year)*4],["months",(dr,mr)=>mr.month-dr.month+(mr.year-dr.year)*12],["weeks",(dr,mr)=>{const fr=dayDiff(dr,mr);return(fr-fr%7)/7}],["days",dayDiff]],tr={},rr=e;let ir,lr;for(const[dr,mr]of B)I.indexOf(dr)>=0&&(ir=dr,tr[dr]=mr(e,t),lr=rr.plus(tr),lr>t?(tr[dr]--,e=rr.plus(tr),e>t&&(lr=e,tr[dr]--,e=rr.plus(tr))):e=lr);return[e,tr,lr,ir]}function diff(e,t,I,B){let[tr,rr,ir,lr]=highOrderDiffs(e,t,I);const dr=t-tr,mr=I.filter(hr=>["hours","minutes","seconds","milliseconds"].indexOf(hr)>=0);mr.length===0&&(ir<t&&(ir=tr.plus({[lr]:1})),ir!==tr&&(rr[lr]=(rr[lr]||0)+dr/(ir-tr)));const fr=Duration.fromObject(rr,B);return mr.length>0?Duration.fromMillis(dr,B).shiftTo(...mr).plus(fr):fr}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=I=>I){return{regex:e,deser:([I])=>t(parseDigits(I))}}const NBSP=" ",spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(e,t){return e===null?null:{regex:RegExp(e.map(fixListRegex).join("|")),deser:([I])=>e.findIndex(B=>stripInsensitivities(I)===stripInsensitivities(B))+t}}function offset(e,t){return{regex:e,deser:([,I,B])=>signedOffset(I,B),groups:t}}function simple(e){return{regex:e,deser:([t])=>t}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const I=digitRegex(t),B=digitRegex(t,"{2}"),tr=digitRegex(t,"{3}"),rr=digitRegex(t,"{4}"),ir=digitRegex(t,"{6}"),lr=digitRegex(t,"{1,2}"),dr=digitRegex(t,"{1,3}"),mr=digitRegex(t,"{1,6}"),fr=digitRegex(t,"{1,9}"),hr=digitRegex(t,"{2,4}"),_r=digitRegex(t,"{4,6}"),yr=Sr=>({regex:RegExp(escapeToken(Sr.val)),deser:([br])=>br,literal:!0}),vr=(Sr=>{if(e.literal)return yr(Sr);switch(Sr.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(mr);case"yy":return intUnit(hr,untruncateYear);case"yyyy":return intUnit(rr);case"yyyyy":return intUnit(_r);case"yyyyyy":return intUnit(ir);case"M":return intUnit(lr);case"MM":return intUnit(B);case"MMM":return oneOf(t.months("short",!0),1);case"MMMM":return oneOf(t.months("long",!0),1);case"L":return intUnit(lr);case"LL":return intUnit(B);case"LLL":return oneOf(t.months("short",!1),1);case"LLLL":return oneOf(t.months("long",!1),1);case"d":return intUnit(lr);case"dd":return intUnit(B);case"o":return intUnit(dr);case"ooo":return intUnit(tr);case"HH":return intUnit(B);case"H":return intUnit(lr);case"hh":return intUnit(B);case"h":return intUnit(lr);case"mm":return intUnit(B);case"m":return intUnit(lr);case"q":return intUnit(lr);case"qq":return intUnit(B);case"s":return intUnit(lr);case"ss":return intUnit(B);case"S":return intUnit(dr);case"SSS":return intUnit(tr);case"u":return simple(fr);case"uu":return simple(lr);case"uuu":return intUnit(I);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(rr);case"kk":return intUnit(hr,untruncateYear);case"W":return intUnit(lr);case"WW":return intUnit(B);case"E":case"c":return intUnit(I);case"EEE":return oneOf(t.weekdays("short",!1),1);case"EEEE":return oneOf(t.weekdays("long",!1),1);case"ccc":return oneOf(t.weekdays("short",!0),1);case"cccc":return oneOf(t.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${lr.source})(?::(${B.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${lr.source})(${B.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return yr(Sr)}})(e)||{invalidReason:MISSING_FTP};return vr.token=e,vr}const partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,I){const{type:B,value:tr}=e;if(B==="literal"){const dr=/^\s+$/.test(tr);return{literal:!dr,val:dr?" ":tr}}const rr=t[B];let ir=B;B==="hour"&&(t.hour12!=null?ir=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?ir="hour12":ir="hour24":ir=I.hour12?"hour12":"hour24");let lr=partTypeStyleToTokenVal[ir];if(typeof lr=="object"&&(lr=lr[rr]),lr)return{literal:!1,val:lr}}function buildRegex(e){return[`^${e.map(I=>I.regex).reduce((I,B)=>`${I}(${B.source})`,"")}$`,e]}function match(e,t,I){const B=e.match(t);if(B){const tr={};let rr=1;for(const ir in I)if(hasOwnProperty(I,ir)){const lr=I[ir],dr=lr.groups?lr.groups+1:1;!lr.literal&&lr.token&&(tr[lr.token.val[0]]=lr.deser(B.slice(rr,rr+dr))),rr+=dr}return[B,tr]}else return[B,{}]}function dateTimeFromMatches(e){const t=rr=>{switch(rr){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let I=null,B;return isUndefined(e.z)||(I=IANAZone.create(e.z)),isUndefined(e.Z)||(I||(I=new FixedOffsetZone(e.Z)),B=e.Z),isUndefined(e.q)||(e.M=(e.q-1)*3+1),isUndefined(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),isUndefined(e.u)||(e.S=parseMillis(e.u)),[Object.keys(e).reduce((rr,ir)=>{const lr=t(ir);return lr&&(rr[lr]=e[ir]),rr},{}),I,B]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(e,t){if(e.literal)return e;const I=Formatter.macroTokenToFormatOpts(e.val),B=formatOptsToTokens(I,t);return B==null||B.includes(void 0)?e:B}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map(I=>maybeExpandMacroToken(I,t)))}class TokenParser{constructor(t,I){if(this.locale=t,this.format=I,this.tokens=expandMacroTokens(Formatter.parseFormat(I),t),this.units=this.tokens.map(B=>unitForToken(B,t)),this.disqualifyingUnit=this.units.find(B=>B.invalidReason),!this.disqualifyingUnit){const[B,tr]=buildRegex(this.units);this.regex=RegExp(B,"i"),this.handlers=tr}}explainFromTokens(t){if(this.isValid){const[I,B]=match(t,this.regex,this.handlers),[tr,rr,ir]=B?dateTimeFromMatches(B):[null,null,void 0];if(hasOwnProperty(B,"a")&&hasOwnProperty(B,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:I,matches:B,result:tr,zone:rr,specificOffset:ir}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function explainFromTokens(e,t,I){return new TokenParser(e,I).explainFromTokens(t)}function parseFromTokens(e,t,I){const{result:B,zone:tr,specificOffset:rr,invalidReason:ir}=explainFromTokens(e,t,I);return[B,tr,rr,ir]}function formatOptsToTokens(e,t){if(!e)return null;const B=Formatter.create(t,e).dtFormatter(getDummyDateTime()),tr=B.formatToParts(),rr=B.resolvedOptions();return tr.map(ir=>tokenForPart(ir,e,rr))}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return e.weekData===null&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return e.localWeekData===null&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone(e,t){const I={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...I,...t,old:I})}function fixOffset(e,t,I){let B=e-t*60*1e3;const tr=I.offset(B);if(t===tr)return[B,t];B-=(tr-t)*60*1e3;const rr=I.offset(B);return tr===rr?[B,tr]:[e-Math.min(tr,rr)*60*1e3,Math.max(tr,rr)]}function tsToObj(e,t){e+=t*60*1e3;const I=new Date(e);return{year:I.getUTCFullYear(),month:I.getUTCMonth()+1,day:I.getUTCDate(),hour:I.getUTCHours(),minute:I.getUTCMinutes(),second:I.getUTCSeconds(),millisecond:I.getUTCMilliseconds()}}function objToTS(e,t,I){return fixOffset(objToLocalTS(e),t,I)}function adjustTime(e,t){const I=e.o,B=e.c.year+Math.trunc(t.years),tr=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,rr={...e.c,year:B,month:tr,day:Math.min(e.c.day,daysInMonth(B,tr))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},ir=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),lr=objToLocalTS(rr);let[dr,mr]=fixOffset(lr,I,e.zone);return ir!==0&&(dr+=ir,mr=e.zone.offset(dr)),{ts:dr,o:mr}}function parseDataToDateTime(e,t,I,B,tr,rr){const{setZone:ir,zone:lr}=I;if(e&&Object.keys(e).length!==0||t){const dr=t||lr,mr=DateTime.fromObject(e,{...I,zone:dr,specificOffset:rr});return ir?mr:mr.setZone(lr)}else return DateTime.invalid(new Invalid("unparsable",`the input "${tr}" can't be parsed as ${B}`))}function toTechFormat(e,t,I=!0){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:I,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const I=e.c.year>9999||e.c.year<0;let B="";return I&&e.c.year>=0&&(B+="+"),B+=padStart(e.c.year,I?6:4),t?(B+="-",B+=padStart(e.c.month),B+="-",B+=padStart(e.c.day)):(B+=padStart(e.c.month),B+=padStart(e.c.day)),B}function toISOTime(e,t,I,B,tr,rr){let ir=padStart(e.c.hour);return t?(ir+=":",ir+=padStart(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!I)&&(ir+=":")):ir+=padStart(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!I)&&(ir+=padStart(e.c.second),(e.c.millisecond!==0||!B)&&(ir+=".",ir+=padStart(e.c.millisecond,3))),tr&&(e.isOffsetFixed&&e.offset===0&&!rr?ir+="Z":e.o<0?(ir+="-",ir+=padStart(Math.trunc(-e.o/60)),ir+=":",ir+=padStart(Math.trunc(-e.o%60))):(ir+="+",ir+=padStart(Math.trunc(e.o/60)),ir+=":",ir+=padStart(Math.trunc(e.o%60)))),rr&&(ir+="["+e.zone.ianaName+"]"),ir}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function guessOffsetForZone(e){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),e.type!=="iana")return e.offset(zoneOffsetTs);const t=e.name;let I=zoneOffsetGuessCache.get(t);return I===void 0&&(I=e.offset(zoneOffsetTs),zoneOffsetGuessCache.set(t,I)),I}function quickDT(e,t){const I=normalizeZone(t.zone,Settings.defaultZone);if(!I.isValid)return DateTime.invalid(unsupportedZone(I));const B=Locale.fromObject(t);let tr,rr;if(isUndefined(e.year))tr=Settings.now();else{for(const dr of orderedUnits)isUndefined(e[dr])&&(e[dr]=defaultUnitValues[dr]);const ir=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(ir)return DateTime.invalid(ir);const lr=guessOffsetForZone(I);[tr,rr]=objToTS(e,lr,I)}return new DateTime({ts:tr,zone:I,loc:B,o:rr})}function diffRelative(e,t,I){const B=isUndefined(I.round)?!0:I.round,tr=(ir,lr)=>(ir=roundTo(ir,B||I.calendary?0:2,!0),t.loc.clone(I).relFormatter(I).format(ir,lr)),rr=ir=>I.calendary?t.hasSame(e,ir)?0:t.startOf(ir).diff(e.startOf(ir),ir).get(ir):t.diff(e,ir).get(ir);if(I.unit)return tr(rr(I.unit),I.unit);for(const ir of I.units){const lr=rr(ir);if(Math.abs(lr)>=1)return tr(lr,ir)}return tr(e>t?-0:0,I.units[I.units.length-1])}function lastOpts(e){let t={},I;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],I=Array.from(e).slice(0,e.length-1)):I=Array.from(e),[t,I]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;class DateTime{constructor(t){const I=t.zone||Settings.defaultZone;let B=t.invalid||(Number.isNaN(t.ts)?new Invalid("invalid input"):null)||(I.isValid?null:unsupportedZone(I));this.ts=isUndefined(t.ts)?Settings.now():t.ts;let tr=null,rr=null;if(!B)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(I))[tr,rr]=[t.old.c,t.old.o];else{const lr=isNumber(t.o)&&!t.old?t.o:I.offset(this.ts);tr=tsToObj(this.ts,lr),B=Number.isNaN(tr.year)?new Invalid("invalid input"):null,tr=B?null:tr,rr=B?null:lr}this._zone=I,this.loc=t.loc||Locale.create(),this.invalid=B,this.weekData=null,this.localWeekData=null,this.c=tr,this.o=rr,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[t,I]=lastOpts(arguments),[B,tr,rr,ir,lr,dr,mr]=I;return quickDT({year:B,month:tr,day:rr,hour:ir,minute:lr,second:dr,millisecond:mr},t)}static utc(){const[t,I]=lastOpts(arguments),[B,tr,rr,ir,lr,dr,mr]=I;return t.zone=FixedOffsetZone.utcInstance,quickDT({year:B,month:tr,day:rr,hour:ir,minute:lr,second:dr,millisecond:mr},t)}static fromJSDate(t,I={}){const B=isDate(t)?t.valueOf():NaN;if(Number.isNaN(B))return DateTime.invalid("invalid input");const tr=normalizeZone(I.zone,Settings.defaultZone);return tr.isValid?new DateTime({ts:B,zone:tr,loc:Locale.fromObject(I)}):DateTime.invalid(unsupportedZone(tr))}static fromMillis(t,I={}){if(isNumber(t))return t<-MAX_DATE||t>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:t,zone:normalizeZone(I.zone,Settings.defaultZone),loc:Locale.fromObject(I)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,I={}){if(isNumber(t))return new DateTime({ts:t*1e3,zone:normalizeZone(I.zone,Settings.defaultZone),loc:Locale.fromObject(I)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(t,I={}){t=t||{};const B=normalizeZone(I.zone,Settings.defaultZone);if(!B.isValid)return DateTime.invalid(unsupportedZone(B));const tr=Locale.fromObject(I),rr=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:ir,startOfWeek:lr}=usesLocalWeekValues(rr,tr),dr=Settings.now(),mr=isUndefined(I.specificOffset)?B.offset(dr):I.specificOffset,fr=!isUndefined(rr.ordinal),hr=!isUndefined(rr.year),_r=!isUndefined(rr.month)||!isUndefined(rr.day),yr=hr||_r,Mr=rr.weekYear||rr.weekNumber;if((yr||fr)&&Mr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_r&&fr)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const vr=Mr||rr.weekday&&!yr;let Sr,br,gr=tsToObj(dr,mr);vr?(Sr=orderedWeekUnits,br=defaultWeekUnitValues,gr=gregorianToWeek(gr,ir,lr)):fr?(Sr=orderedOrdinalUnits,br=defaultOrdinalUnitValues,gr=gregorianToOrdinal(gr)):(Sr=orderedUnits,br=defaultUnitValues);let wr=!1;for(const Pr of Sr){const Fr=rr[Pr];isUndefined(Fr)?wr?rr[Pr]=br[Pr]:rr[Pr]=gr[Pr]:wr=!0}const xr=vr?hasInvalidWeekData(rr,ir,lr):fr?hasInvalidOrdinalData(rr):hasInvalidGregorianData(rr),Ir=xr||hasInvalidTimeData(rr);if(Ir)return DateTime.invalid(Ir);const kr=vr?weekToGregorian(rr,ir,lr):fr?ordinalToGregorian(rr):rr,[Or,Lr]=objToTS(kr,mr,B),Kn=new DateTime({ts:Or,zone:B,o:Lr,loc:tr});return rr.weekday&&yr&&t.weekday!==Kn.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${rr.weekday} and a date of ${Kn.toISO()}`):Kn.isValid?Kn:DateTime.invalid(Kn.invalid)}static fromISO(t,I={}){const[B,tr]=parseISODate(t);return parseDataToDateTime(B,tr,I,"ISO 8601",t)}static fromRFC2822(t,I={}){const[B,tr]=parseRFC2822Date(t);return parseDataToDateTime(B,tr,I,"RFC 2822",t)}static fromHTTP(t,I={}){const[B,tr]=parseHTTPDate(t);return parseDataToDateTime(B,tr,I,"HTTP",I)}static fromFormat(t,I,B={}){if(isUndefined(t)||isUndefined(I))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0}),[lr,dr,mr,fr]=parseFromTokens(ir,t,I);return fr?DateTime.invalid(fr):parseDataToDateTime(lr,dr,B,`format ${I}`,t,mr)}static fromString(t,I,B={}){return DateTime.fromFormat(t,I,B)}static fromSQL(t,I={}){const[B,tr]=parseSQL(t);return parseDataToDateTime(B,tr,I,"SQL",t)}static invalid(t,I=null){if(!t)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const B=t instanceof Invalid?t:new Invalid(t,I);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(B);return new DateTime({invalid:B})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,I={}){const B=formatOptsToTokens(t,Locale.fromObject(I));return B?B.map(tr=>tr?tr.val:null).join(""):null}static expandFormat(t,I={}){return expandMacroTokens(Formatter.parseFormat(t),Locale.fromObject(I)).map(tr=>tr.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,I=6e4,B=objToLocalTS(this.c),tr=this.zone.offset(B-t),rr=this.zone.offset(B+t),ir=this.zone.offset(B-tr*I),lr=this.zone.offset(B-rr*I);if(ir===lr)return[this];const dr=B-ir*I,mr=B-lr*I,fr=tsToObj(dr,ir),hr=tsToObj(mr,lr);return fr.hour===hr.hour&&fr.minute===hr.minute&&fr.second===hr.second&&fr.millisecond===hr.millisecond?[clone(this,{ts:dr}),clone(this,{ts:mr})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:I,numberingSystem:B,calendar:tr}=Formatter.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:I,numberingSystem:B,outputCalendar:tr}}toUTC(t=0,I={}){return this.setZone(FixedOffsetZone.instance(t),I)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(t,{keepLocalTime:I=!1,keepCalendarTime:B=!1}={}){if(t=normalizeZone(t,Settings.defaultZone),t.equals(this.zone))return this;if(t.isValid){let tr=this.ts;if(I||B){const rr=t.offset(this.ts),ir=this.toObject();[tr]=objToTS(ir,rr,t)}return clone(this,{ts:tr,zone:t})}else return DateTime.invalid(unsupportedZone(t))}reconfigure({locale:t,numberingSystem:I,outputCalendar:B}={}){const tr=this.loc.clone({locale:t,numberingSystem:I,outputCalendar:B});return clone(this,{loc:tr})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const I=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:B,startOfWeek:tr}=usesLocalWeekValues(I,this.loc),rr=!isUndefined(I.weekYear)||!isUndefined(I.weekNumber)||!isUndefined(I.weekday),ir=!isUndefined(I.ordinal),lr=!isUndefined(I.year),dr=!isUndefined(I.month)||!isUndefined(I.day),mr=lr||dr,fr=I.weekYear||I.weekNumber;if((mr||ir)&&fr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(dr&&ir)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let hr;rr?hr=weekToGregorian({...gregorianToWeek(this.c,B,tr),...I},B,tr):isUndefined(I.ordinal)?(hr={...this.toObject(),...I},isUndefined(I.day)&&(hr.day=Math.min(daysInMonth(hr.year,hr.month),hr.day))):hr=ordinalToGregorian({...gregorianToOrdinal(this.c),...I});const[_r,yr]=objToTS(hr,this.o,this.zone);return clone(this,{ts:_r,o:yr})}plus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t);return clone(this,adjustTime(this,I))}minus(t){if(!this.isValid)return this;const I=Duration.fromDurationLike(t).negate();return clone(this,adjustTime(this,I))}startOf(t,{useLocaleWeeks:I=!1}={}){if(!this.isValid)return this;const B={},tr=Duration.normalizeUnit(t);switch(tr){case"years":B.month=1;case"quarters":case"months":B.day=1;case"weeks":case"days":B.hour=0;case"hours":B.minute=0;case"minutes":B.second=0;case"seconds":B.millisecond=0;break}if(tr==="weeks")if(I){const rr=this.loc.getStartOfWeek(),{weekday:ir}=this;ir<rr&&(B.weekNumber=this.weekNumber-1),B.weekday=rr}else B.weekday=1;if(tr==="quarters"){const rr=Math.ceil(this.month/3);B.month=(rr-1)*3+1}return this.set(B)}endOf(t,I){return this.isValid?this.plus({[t]:1}).startOf(t,I).minus(1):this}toFormat(t,I={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(I)).formatDateTimeFromString(this,t):INVALID}toLocaleString(t=DATE_SHORT,I={}){return this.isValid?Formatter.create(this.loc.clone(I),t).formatDateTime(this):INVALID}toLocaleParts(t={}){return this.isValid?Formatter.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:I=!1,suppressMilliseconds:B=!1,includeOffset:tr=!0,extendedZone:rr=!1}={}){if(!this.isValid)return null;const ir=t==="extended";let lr=toISODate(this,ir);return lr+="T",lr+=toISOTime(this,ir,I,B,tr,rr),lr}toISODate({format:t="extended"}={}){return this.isValid?toISODate(this,t==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:I=!1,includeOffset:B=!0,includePrefix:tr=!1,extendedZone:rr=!1,format:ir="extended"}={}){return this.isValid?(tr?"T":"")+toISOTime(this,ir==="extended",I,t,B,rr):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:I=!1,includeOffsetSpace:B=!0}={}){let tr="HH:mm:ss.SSS";return(I||t)&&(B&&(tr+=" "),I?tr+="z":t&&(tr+="ZZ")),toTechFormat(this,tr,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const I={...this.c};return t.includeConfig&&(I.outputCalendar=this.outputCalendar,I.numberingSystem=this.loc.numberingSystem,I.locale=this.loc.locale),I}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,I="milliseconds",B={}){if(!this.isValid||!t.isValid)return Duration.invalid("created by diffing an invalid DateTime");const tr={locale:this.locale,numberingSystem:this.numberingSystem,...B},rr=maybeArray(I).map(Duration.normalizeUnit),ir=t.valueOf()>this.valueOf(),lr=ir?this:t,dr=ir?t:this,mr=diff(lr,dr,rr,tr);return ir?mr.negate():mr}diffNow(t="milliseconds",I={}){return this.diff(DateTime.now(),t,I)}until(t){return this.isValid?Interval.fromDateTimes(this,t):this}hasSame(t,I,B){if(!this.isValid)return!1;const tr=t.valueOf(),rr=this.setZone(t.zone,{keepLocalTime:!0});return rr.startOf(I,B)<=tr&&tr<=rr.endOf(I,B)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const I=t.base||DateTime.fromObject({},{zone:this.zone}),B=t.padding?this<I?-t.padding:t.padding:0;let tr=["years","months","days","hours","minutes","seconds"],rr=t.unit;return Array.isArray(t.unit)&&(tr=t.unit,rr=void 0),diffRelative(I,this.plus(B),{...t,numeric:"always",units:tr,unit:rr})}toRelativeCalendar(t={}){return this.isValid?diffRelative(t.base||DateTime.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(t,I=>I.valueOf(),Math.min)}static max(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(t,I=>I.valueOf(),Math.max)}static fromFormatExplain(t,I,B={}){const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0});return explainFromTokens(ir,t,I)}static fromStringExplain(t,I,B={}){return DateTime.fromFormatExplain(t,I,B)}static buildFormatParser(t,I={}){const{locale:B=null,numberingSystem:tr=null}=I,rr=Locale.fromOpts({locale:B,numberingSystem:tr,defaultToEN:!0});return new TokenParser(rr,t)}static fromFormatParser(t,I,B={}){if(isUndefined(t)||isUndefined(I))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:tr=null,numberingSystem:rr=null}=B,ir=Locale.fromOpts({locale:tr,numberingSystem:rr,defaultToEN:!0});if(!ir.equals(I.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${ir}, but the format parser was created for ${I.locale}`);const{result:lr,zone:dr,specificOffset:mr,invalidReason:fr}=I.explainFromTokens(t);return fr?DateTime.invalid(fr):parseDataToDateTime(lr,dr,B,`format ${I.format}`,t,mr)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&typeof e=="object")return DateTime.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const getPeriodSeriesArray=e=>{const t=[],I=getPeriodSeries(e);let B=I.next();for(;B;)t.push(B),B=I.next();return t},getPeriodSeries=e=>({...e,next:_createFactoryFn(e)}),_createFactoryFn=e=>{let t=e.start;return()=>{if(t==null)return null;let I=null;switch(e.granularity){case AnalyticsGranularity.Total:I=_nextTotalPeriod(t,e.end);break;case AnalyticsGranularity.Annual:I=_nextAnnualPeriod(t,e.end);break;case AnalyticsGranularity.SemiAnnual:I=_nextSemiAnnualPeriod(t,e.end);break;case AnalyticsGranularity.Quarterly:I=_nextQuarterlyPeriod(t,e.end);break;case AnalyticsGranularity.Monthly:I=_nextMonthlyPeriod(t,e.end);break;case AnalyticsGranularity.Weekly:I=_nextWeeklyPeriod(t,e.end);break;case AnalyticsGranularity.Daily:I=_nextDailyPeriod(t,e.end);break;case AnalyticsGranularity.Hourly:I=_nextHourlyPeriod(t,e.end)}return I===null?t=null:t=I.end.plus({milliseconds:1}),I}},_nextTotalPeriod=(e,t)=>t<=e?null:{period:"total",start:e,end:t},_nextAnnualPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC(),B=DateTime.utc(I.year,I.month,I.day).plus({years:1});return{period:"annual",start:e,end:B}},_nextSemiAnnualPeriod=(e,t)=>{if(t<=e)return null;const I=DateTime.utc(e.year,7,1),B=DateTime.utc(e.year,12,31,23,59,59,999);let tr;return I>e?tr=I:tr=B,tr>t&&(tr=t),{period:"semiAnnual",start:e,end:tr}},_nextQuarterlyPeriod=(e,t)=>{if(t<=e)return null;let I;const B=e.toUTC(),tr=B.month;return tr<3?I=DateTime.utc(B.year,4,1):tr<6?I=DateTime.utc(B.year,7,1):tr<9?I=DateTime.utc(B.year,10,1):I=DateTime.utc(B.year,12,31,23,59,59,999),I>t&&(I=t),{period:"quarterly",start:e,end:I}},_nextMonthlyPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC();let B=DateTime.utc(I.year,I.month,I.day).plus({months:1}).startOf("month");return B>t&&(e.hasSame(t,"month")||(B=t)),{period:"monthly",start:e,end:B}},_nextWeeklyPeriod=(e,t)=>{if(t<=e)return null;const I=e.toUTC(),B=DateTime.utc(I.year,I.month,I.day).plus({weeks:1}).startOf("week");return B>t&&!B.hasSame(t,"day")?{period:"weekly",start:e,end:t}:{period:"weekly",start:e,end:B}},_nextDailyPeriod=(e,t)=>{if(t<=e)return null;let B=e.toUTC().plus({days:1}).startOf("day");return(B>t||B.hasSame(t,"day"))&&(B=t),{period:"daily",start:e,end:B}},_nextHourlyPeriod=(e,t)=>{if(t<=e)return null;let B=e.toUTC().plus({hours:1});return B>t&&e.hour!==t.hour&&(B=t.toUTC()),{period:"hourly",start:e,end:B}},getQuarter=e=>Math.floor((e.month-1)/3)+1;class AnalyticsDiscretizer{static discretize(t,I,B,tr,rr){const ir=this._buildIndex(t,I),lr=getPeriodSeriesArray(this._calculateRange(B,tr,rr,t)),dr=this._discretizeNode(ir,{},I,lr);return this._groupResultsByPeriod(lr,dr)}static _calculateRange(t,I,B,tr){let rr=t||null,ir=I||null;if(rr==null||ir==null)for(const lr of tr){rr==null&&(rr=lr.start);const dr=lr.end||lr.start;(ir==null||ir<dr)&&(ir=dr)}if(rr==null||ir==null)throw new Error("Cannot determine query start and/or end.");return{start:rr,end:ir,granularity:B}}static _groupResultsByPeriod(t,I){const B={};for(const tr of t){const rr=tr.start.toISO()+"-"+tr.period,ir=AnalyticsDiscretizer._getPeriodString(tr);B[rr]={period:ir,start:tr.start,end:tr.end,rows:[]}}for(const tr of I)for(const rr of Object.keys(tr.series))B[rr].rows.push({dimensions:tr.dimensions,metric:tr.metric,unit:tr.unit=="__NULL__"?null:tr.unit,value:tr.series[rr].inc,sum:tr.series[rr].sum});return Object.values(B)}static _getPeriodString(t){switch(t.period){case"annual":return t.start.year.toString();case"semiAnnual":return`${t.start.year}/${t.start.month<7?"H1":"H2"}`;case"quarterly":return`${t.start.year}/Q${getQuarter(t.start)}`;case"monthly":const I=t.start.toUTC().month,B=I<10?`0${I}`:`${I}`;return`${t.start.year}/${B}`;case"weekly":return`${t.start.weekYear}/W${t.start.weekNumber}`;case"daily":const tr=t.start.month,rr=t.start.day,ir=tr<10?`0${tr}`:`${tr}`,lr=rr<10?`0${rr}`:`${rr}`;return`${t.start.year}/${ir}/${lr}`;case"hourly":const dr=t.start.month,mr=t.start.day,fr=t.start.hour,hr=dr<10?`0${dr}`:`${dr}`,_r=mr<10?`0${mr}`:`${mr}`,yr=fr<10?`0${fr}`:`${fr}`;return`${t.start.year}/${hr}/${_r}/${yr}`;default:return t.period}}static _discretizeNode(t,I,B,tr){const rr=[];if(B.length>0){const ir=B[0];Object.keys(t).forEach((lr,dr,mr)=>{const fr={...I};fr[ir]=lr,rr.push(...this._discretizeNode(t[lr],fr,B.slice(1),tr))})}else Object.keys(t).forEach(ir=>{rr.push(...this._discretizeLeaf(t[ir],tr,ir,I))});return rr}static _discretizeLeaf(t,I,B,tr){const rr=[];return Object.keys(t).forEach(ir=>{const lr={};Object.keys(tr).forEach(dr=>{lr[dr]={path:t[ir][0].dimensions[dr],icon:t[ir][0].dimensions.icon,label:t[ir][0].dimensions.label,description:t[ir][0].dimensions.description}}),rr.push({unit:ir,metric:B,dimensions:lr,series:this._discretizeSeries(t[ir],I)})}),rr}static _discretizeSeries(t,I){const B={};for(const tr of t){let rr=this._getValue(tr,I[0].start);for(const ir of I){const lr=this._getValue(tr,ir.end),dr=`${ir.start.toISO()}-${ir.period}`;B[dr]?(B[dr].inc+=lr-rr,B[dr].sum+=lr):B[dr]={inc:lr-rr,sum:lr},rr=lr}}return B}static _getValue(t,I){switch(t.fn){case"Single":return this._getSingleValue(t,I);case"DssVest":return this._getVestValue(t,I);default:return 0}}static _getSingleValue(t,I){return I>=t.start?t.value:0}static _getVestValue(t,I){var mr;const B=I,tr=t.start,rr=t.end,ir=(mr=t.params)!=null&&mr.cliff?DateTime.fromISO(t.params.cliff):null;if(B<tr||ir&&B<ir)return 0;if(rr&&B>=rr)return t.value;const lr=Interval.fromDateTimes(tr,B),dr=Interval.fromDateTimes(tr,rr||B);return lr.length()/dr.length()*t.value}static _buildIndex(t,I){const B={},tr={},rr=I[0]||"";for(const ir of t){const lr=ir.dimensions[rr];tr[lr]===void 0&&(tr[lr]=[]),tr[lr].push(ir)}if(I.length>1){const ir=I.slice(1);Object.keys(tr).forEach(lr=>{B[lr]=this._buildIndex(tr[lr],ir)})}else Object.keys(tr).forEach(ir=>{B[ir]=this._buildMetricsIndex(tr[ir])});return B}static _buildMetricsIndex(t){const I={},B={};for(const tr of t){const rr=tr.metric;B[rr]===void 0&&(B[rr]=[]),B[rr].push(tr)}return Object.keys(B).forEach(tr=>I[tr]=this._buildUnitIndex(B[tr])),I}static _buildUnitIndex(t){const I={};for(const B of t){const tr=B.unit||"__NULL__";I[tr]===void 0&&(I[tr]=[]),I[tr].push(B)}return I}}class AnalyticsQueryEngine{constructor(t,I){Mi(this,"_analyticsStore");Mi(this,"_profiler");this._analyticsStore=t,this._profiler=I??new PassthroughAnalyticsProfiler}async executeCompound(t){let I;const B={start:t.start,end:t.end,granularity:t.granularity,lod:t.lod,select:t.select,metrics:t.expression.inputs.metrics,currency:t.expression.inputs.currency},tr={start:t.start,end:t.end,granularity:t.granularity,lod:{priceData:1},select:{priceData:[AnalyticsPath.fromString("atlas")]},metrics:[t.expression.operand.metric],currency:t.expression.operand.currency},rr=await this.execute(B),ir=await this.execute(tr);return[CompoundOperator.VectorAdd,CompoundOperator.VectorSubtract].includes(t.expression.operator)?I=await this._profiler.record("ApplyVectorOperator",async()=>await this._applyVectorOperator(rr,ir,t.expression.operator,t.expression.resultCurrency)):I=await this._profiler.record("ApplyScalarOperator",async()=>await this._applyScalarOperator(rr,ir,t.expression.operator,t.expression.operand.useSum,t.expression.resultCurrency)),I}async execute(t){const I=await this._executeSeriesQuery(t),B=this._profiler.recordSync("ApplyLODs",()=>this._applyLods(I,t.lod)),tr=Object.keys(t.select);return this._profiler.recordSync("Discretize",()=>B.length<1?[]:AnalyticsDiscretizer.discretize(B,tr,t.start,t.end,t.granularity))}async executeMultiCurrency(t,I){const B={...t,currency:I.targetCurrency??t.currency};let tr=await this.execute(B);for(const rr of I.conversions){const ir={start:t.start,end:t.end,granularity:t.granularity,lod:t.lod,select:t.select,expression:{inputs:{metrics:B.metrics,currency:rr.currency},operator:CompoundOperator.ScalarMultiply,operand:{metric:rr.metric,currency:I.targetCurrency,useSum:!0},resultCurrency:I.targetCurrency}},lr=await this.executeCompound(ir);tr=await this._applyVectorOperator(tr,lr,CompoundOperator.VectorAdd,I.targetCurrency)}return tr}async _applyVectorOperator(t,I,B,tr){if([CompoundOperator.ScalarMultiply,CompoundOperator.ScalarDivide].includes(B))throw new Error("Invalid operator for vector operation");return I}async _applyScalarOperator(t,I,B,tr,rr){if([CompoundOperator.VectorAdd,CompoundOperator.VectorSubtract].includes(B))throw new Error("Invalid operator for scalar operation");const ir=[],lr={},dr=tr?"sum":"value";for(const mr of I)mr.rows.length>0&&(lr[mr.period]=mr.rows[0][dr]);for(const mr of t){const fr={period:mr.period,start:mr.start,end:mr.end,rows:mr.rows.map(hr=>({dimensions:hr.dimensions,metric:hr.metric,unit:rr?rr.toString():hr.unit,value:this._calculateOutputValue(hr.value,B,lr[mr.period]),sum:-1}))};ir.push(fr)}return ir}_calculateOutputValue(t,I,B){switch(I){case CompoundOperator.VectorAdd:return t+B;case CompoundOperator.VectorSubtract:return t-B;case CompoundOperator.ScalarMultiply:return t*B;case CompoundOperator.ScalarDivide:return t/B}}async _executeSeriesQuery(t){const I={start:t.start,end:t.end,select:t.select,metrics:t.metrics,currency:t.currency};return await this._analyticsStore.getMatchingSeries(I)}_applyLods(t,I){return t.map(B=>({...B,dimensions:this._applyDimensionsLods(B.dimensions,I)}))}_applyDimensionsLods(t,I){const B={};for(const[tr,rr]of Object.entries(I))rr!==null&&t[tr]&&(B[tr]=t[tr].path.applyLod(rr).toString(),B.icon=t[tr].icon.toString(),B.label=t[tr].label.toString(),B.description=t[tr].description.toString());return B}async getDimensions(){return await this._analyticsStore.getDimensions()}}class NotificationError extends Error{constructor(I){super(I.map(B=>B.message).join(`
3
3
  `));Mi(this,"innerErrors");this.name="NotificationError",this.innerErrors=I}}class AnalyticsSubscriptionManager{constructor(){Mi(this,"_subscriptions",new Map)}subscribeToPath(t,I){const B=this.normalizePath(t.toString("/"));return this._subscriptions.has(B)||this._subscriptions.set(B,new Set),this._subscriptions.get(B).add(I),()=>{const tr=this._subscriptions.get(B);tr&&(tr.delete(I),tr.size===0&&this._subscriptions.delete(B))}}notifySubscribers(t){if(t.length===0||this._subscriptions.size===0)return;const I=[];for(const B of t){const tr=this.normalizePath(B.toString("/")),rr=this.getPathPrefixes(tr),ir=[];rr.filter(lr=>this._subscriptions.has(lr)).forEach(lr=>{ir.push({prefix:lr,callbacks:this._subscriptions.get(lr)})});for(const[lr,dr]of this._subscriptions.entries())rr.includes(lr)||this.pathMatchesWildcardPattern(tr,lr)&&ir.push({prefix:lr,callbacks:dr});if(ir.length!==0)for(const{callbacks:lr}of ir)for(const dr of lr)try{dr(B)}catch(mr){I.push(mr)}}if(I.length>0)throw new NotificationError(I)}normalizePath(t){return"/"+t.split("/").filter(tr=>tr.length>0).join("/")}pathMatchesWildcardPattern(t,I){if(I.includes("*")){const B=t.split("/").filter(rr=>rr.length>0),tr=I.split("/").filter(rr=>rr.length>0);if(tr.length>B.length)return!1;for(let rr=0;rr<tr.length;rr++){const ir=tr[rr],lr=B[rr];if(!(ir==="*"||ir.startsWith("*:"))&&ir!==lr)return!1}return!0}return t===I||t.startsWith(I+"/")}getPathPrefixes(t){const I=t.split("/").filter(rr=>rr.length>0),B=[];let tr="";for(const rr of I)tr=tr?`${tr}/${rr}`:`/${rr}`,B.push(tr);return B.length===0&&t==="/"&&B.push("/"),B}}function toPascalCase(e){return e.replace(/\w+/g,function(t){return t[0].toUpperCase()+t.slice(1)}).replace(/\s+/g,"")}class KnexAnalyticsStore{constructor({executor:t,knex:I}){Mi(this,"_executor");Mi(this,"_knex");Mi(this,"_subscriptionManager",new AnalyticsSubscriptionManager);this._executor=t,this._knex=I}destroy(){this._knex.destroy()}async clearSeriesBySource(t,I=!1){const B=this._knex("AnalyticsSeries").whereLike("source",t.toString("/%")).delete();let tr=await this._executor.execute(B);return I&&(tr+=await this.clearEmptyAnalyticsDimensions()),this._subscriptionManager.notifySubscribers([t]),tr}async clearEmptyAnalyticsDimensions(){const t=this._knex("AnalyticsDimension AS AD").whereNotExists(I=>I.select("*").from("AnalyticsSeries_AnalyticsDimension AS ASAD").where("ASAD.dimensionId",this._knex.ref("AD.id"))).delete();return await this._executor.execute(t)}async getMatchingSeries(t){const I=t.currency?t.currency.firstSegment().filters:null,B=this._buildViewQuery("AV",Object.keys(t.select),t.metrics.map(ir=>ir),I,t.end),tr=this._knex(this._knex.raw(B)).select("AV.*");for(const[ir,lr]of Object.entries(t.select))tr.leftJoin(`AnalyticsDimension as ${ir}`,dr=>{dr.on(`${ir}.path`,`dim_${ir}`)}),tr.select(`${ir}.icon as dim_icon`),tr.select(`${ir}.description as dim_description`),tr.select(`${ir}.label as dim_label`),lr.length==1?tr.andWhereLike(`dim_${ir}`,lr[0].toString("/%")):lr.length>1&&tr.andWhere(dr=>(lr.forEach(mr=>dr.orWhereLike(`dim_${ir}`,mr.toString("/%"))),dr));tr.orderBy("start");const rr=await this._executor.execute(tr);return this._formatQueryRecords(rr,Object.keys(t.select))}async addSeriesValue(t){return this.addSeriesValues([t])}async addSeriesValues(t){const I={};for(let tr=0;tr<t.length;tr++){const rr=t[tr],ir=this._knex("AnalyticsSeries").insert({start:rr.start.toJSDate(),end:rr.end?rr.end.toJSDate():null,source:rr.source.toString("/"),metric:toPascalCase(rr.metric),value:rr.value,unit:rr.unit||null,fn:rr.fn||"Single",params:rr.params||null},"id"),lr=await this._executor.execute(ir);for(const[dr,mr]of Object.entries(t[tr].dimensions||{})){I[dr]||(I[dr]={});const fr=mr.toString("/");I[dr][fr]||(I[dr][fr]=[]),I[dr][fr].push(lr[0].id)}}for(const[tr,rr]of Object.entries(I))await this._linkDimensions(tr,rr);for(let tr=0;tr<t.length;tr++){const rr=t[tr].dimensionMetadata;rr&&await this.addDimensionMetadata(rr.path,rr.icon,rr.label,rr.description)}const B=t.map(tr=>tr.source);this._subscriptionManager.notifySubscribers(B)}_formatQueryRecords(t,I){return t.map(tr=>{const rr={id:tr.id,source:AnalyticsPath.fromString(tr.source.slice(0,-1)),start:DateTime.fromJSDate(tr.start),end:tr.end?DateTime.fromJSDate(tr.end):null,metric:tr.metric,value:tr.value,unit:tr.unit,fn:tr.fn,params:tr.params,dimensions:{}};return I.forEach(ir=>rr.dimensions[ir]={path:AnalyticsPath.fromString(tr[`dim_${ir}`]?tr[`dim_${ir}`].slice(0,-1):"?"),icon:tr.dim_icon?tr.dim_icon:"",label:tr.dim_label?tr.dim_label:"",description:tr.dim_description?tr.dim_description:""}),rr}).sort((tr,rr)=>tr.id-rr.id)}_buildViewQuery(t,I,B,tr,rr){const ir=this._knex("AnalyticsSeries as AS_inner").select("*").whereIn("metric",B);for(const lr of I)ir.select(this._buildDimensionQuery(lr));return tr&&tr.length>0&&tr[0]!==""&&ir.whereIn("unit",tr),rr&&ir.where("start","<",rr.toISO()),`(${ir.toString()}) AS "${t}"`}_buildDimensionQuery(t){const I=this._knex.ref("AS_inner.id");return this._knex("AnalyticsSeries_AnalyticsDimension as ASAD").leftJoin("AnalyticsDimension as AD","AD.id","ASAD.dimensionId").where("ASAD.seriesId",I).where("AD.dimension",t).select("path").as(`dim_${t}`)}async _linkDimensions(t,I){const B=this._knex("AnalyticsDimension").select("path","id").where("dimension",t).whereIn("path",Object.keys(I)),tr=await this._executor.execute(B);for(const[rr,ir]of Object.entries(I)){const lr=tr.findIndex(mr=>mr.path==rr),dr=lr<0?await this._createDimensionPath(t,rr):tr[lr].id;for(let mr=0;mr<ir.length;mr++){const fr=this._knex("AnalyticsSeries_AnalyticsDimension").insert({seriesId:ir[mr],dimensionId:dr});await this._executor.execute(fr)}}}async _createDimensionPath(t,I){const B=this._knex("AnalyticsDimension").insert({dimension:t,path:I},"id");return(await this._executor.execute(B))[0].id}async addDimensionMetadata(t,I,B,tr){if(!I&&!B&&!tr)return;const rr=this._knex("AnalyticsDimension").where("path",`${t.toString()}/`).update({icon:I||"",label:B||"",description:tr||""});await this._executor.execute(rr)}async getDimensions(){const t=this._knex.select("dimension","path","icon","label","description").from("AnalyticsDimension").whereNotNull("path").whereNot("path","").whereNot("path","/"),B=(await this._executor.execute(t)).reduce((rr,ir)=>(rr[ir.dimension]||(rr[ir.dimension]={name:ir.dimension,values:[]}),rr[ir.dimension].values.push({path:ir.path,icon:ir.icon,label:ir.label,description:ir.description}),rr),{});return Object.values(B)}async getMetrics(){const t=this._knex("AnalyticsSeries").select("metric").distinct().whereNotNull("metric"),B=(await this._executor.execute(t)).map(rr=>rr.metric);return["Budget","Forecast","Actuals","PaymentsOnChain","PaymentsOffChainIncluded"].forEach(rr=>{B.includes(rr)||B.push(rr)}),B}async getCurrencies(){const t=this._knex("AnalyticsSeries").select("unit").distinct().whereNotNull("unit");return(await this._executor.execute(t)).map(B=>B.unit)}subscribeToSource(t,I){return this._subscriptionManager.subscribeToPath(t,I)}}var tarn={exports:{}},Pool={},PendingOperation={},TimeoutError={},hasRequiredTimeoutError;function requireTimeoutError(){if(hasRequiredTimeoutError)return TimeoutError;hasRequiredTimeoutError=1,Object.defineProperty(TimeoutError,"__esModule",{value:!0});let e=class extends Error{};return TimeoutError.TimeoutError=e,TimeoutError}var utils$3={},PromiseInspection={},hasRequiredPromiseInspection;function requirePromiseInspection(){if(hasRequiredPromiseInspection)return PromiseInspection;hasRequiredPromiseInspection=1,Object.defineProperty(PromiseInspection,"__esModule",{value:!0});let e=class{constructor(I){this._value=I.value,this._error=I.error}value(){return this._value}reason(){return this._error}isRejected(){return!!this._error}isFulfilled(){return!!this._value}};return PromiseInspection.PromiseInspection=e,PromiseInspection}var hasRequiredUtils$3;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1,Object.defineProperty(utils$3,"__esModule",{value:!0});const e=requirePromiseInspection();function t(){let mr=null,fr=null;return{promise:new Promise((_r,yr)=>{mr=_r,fr=yr}),resolve:mr,reject:fr}}utils$3.defer=t;function I(){return Date.now()}utils$3.now=I;function B(mr,fr){return Math.abs(fr-mr)}utils$3.duration=B;function tr(mr){return typeof mr>"u"?!0:rr(mr)}utils$3.checkOptionalTime=tr;function rr(mr){return typeof mr=="number"&&mr===Math.round(mr)&&mr>0}utils$3.checkRequiredTime=rr;function ir(mr){return new Promise(fr=>setTimeout(fr,mr))}utils$3.delay=ir;function lr(mr){return mr.then(fr=>new e.PromiseInspection({value:fr})).catch(fr=>new e.PromiseInspection({error:fr}))}utils$3.reflect=lr;function dr(mr){try{const fr=mr();return Promise.resolve(fr)}catch(fr){return Promise.reject(fr)}}return utils$3.tryPromise=dr,utils$3}var hasRequiredPendingOperation;function requirePendingOperation(){if(hasRequiredPendingOperation)return PendingOperation;hasRequiredPendingOperation=1,Object.defineProperty(PendingOperation,"__esModule",{value:!0});const e=requireTimeoutError(),t=requireUtils$3();let I=class{constructor(rr){this.timeoutMillis=rr,this.deferred=t.defer(),this.possibleTimeoutCause=null,this.isRejected=!1,this.promise=B(this.deferred.promise,rr).catch(ir=>(ir instanceof e.TimeoutError&&(this.possibleTimeoutCause?ir=new e.TimeoutError(this.possibleTimeoutCause.message):ir=new e.TimeoutError("operation timed out for an unknown reason")),this.isRejected=!0,Promise.reject(ir)))}abort(){this.reject(new Error("aborted"))}reject(rr){this.deferred.reject(rr)}resolve(rr){this.deferred.resolve(rr)}};PendingOperation.PendingOperation=I;function B(tr,rr){return new Promise((ir,lr)=>{const dr=setTimeout(()=>lr(new e.TimeoutError),rr);tr.then(mr=>{clearTimeout(dr),ir(mr)}).catch(mr=>{clearTimeout(dr),lr(mr)})})}return PendingOperation}var Resource={},hasRequiredResource;function requireResource(){if(hasRequiredResource)return Resource;hasRequiredResource=1,Object.defineProperty(Resource,"__esModule",{value:!0});const e=requireUtils$3();let t=class Fi{constructor(B){this.resource=B,this.resource=B,this.timestamp=e.now(),this.deferred=e.defer()}get promise(){return this.deferred.promise}resolve(){return this.deferred.resolve(void 0),new Fi(this.resource)}};return Resource.Resource=t,Resource}var events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(Ir,kr,Or){return Function.prototype.apply.call(Ir,kr,Or)},I;e&&typeof e.ownKeys=="function"?I=e.ownKeys:Object.getOwnPropertySymbols?I=function(Ir){return Object.getOwnPropertyNames(Ir).concat(Object.getOwnPropertySymbols(Ir))}:I=function(Ir){return Object.getOwnPropertyNames(Ir)};function B(xr){console&&console.warn&&console.warn(xr)}var tr=Number.isNaN||function(Ir){return Ir!==Ir};function rr(){rr.init.call(this)}events.exports=rr,events.exports.once=br,rr.EventEmitter=rr,rr.prototype._events=void 0,rr.prototype._eventsCount=0,rr.prototype._maxListeners=void 0;var ir=10;function lr(xr){if(typeof xr!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof xr)}Object.defineProperty(rr,"defaultMaxListeners",{enumerable:!0,get:function(){return ir},set:function(xr){if(typeof xr!="number"||xr<0||tr(xr))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+xr+".");ir=xr}}),rr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},rr.prototype.setMaxListeners=function(Ir){if(typeof Ir!="number"||Ir<0||tr(Ir))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ir+".");return this._maxListeners=Ir,this};function dr(xr){return xr._maxListeners===void 0?rr.defaultMaxListeners:xr._maxListeners}rr.prototype.getMaxListeners=function(){return dr(this)},rr.prototype.emit=function(Ir){for(var kr=[],Or=1;Or<arguments.length;Or++)kr.push(arguments[Or]);var Lr=Ir==="error",Kn=this._events;if(Kn!==void 0)Lr=Lr&&Kn.error===void 0;else if(!Lr)return!1;if(Lr){var Pr;if(kr.length>0&&(Pr=kr[0]),Pr instanceof Error)throw Pr;var Fr=new Error("Unhandled error."+(Pr?" ("+Pr.message+")":""));throw Fr.context=Pr,Fr}var Jr=Kn[Ir];if(Jr===void 0)return!1;if(typeof Jr=="function")t(Jr,this,kr);else for(var Jn=Jr.length,Ar=Mr(Jr,Jn),Or=0;Or<Jn;++Or)t(Ar[Or],this,kr);return!0};function mr(xr,Ir,kr,Or){var Lr,Kn,Pr;if(lr(kr),Kn=xr._events,Kn===void 0?(Kn=xr._events=Object.create(null),xr._eventsCount=0):(Kn.newListener!==void 0&&(xr.emit("newListener",Ir,kr.listener?kr.listener:kr),Kn=xr._events),Pr=Kn[Ir]),Pr===void 0)Pr=Kn[Ir]=kr,++xr._eventsCount;else if(typeof Pr=="function"?Pr=Kn[Ir]=Or?[kr,Pr]:[Pr,kr]:Or?Pr.unshift(kr):Pr.push(kr),Lr=dr(xr),Lr>0&&Pr.length>Lr&&!Pr.warned){Pr.warned=!0;var Fr=new Error("Possible EventEmitter memory leak detected. "+Pr.length+" "+String(Ir)+" listeners added. Use emitter.setMaxListeners() to increase limit");Fr.name="MaxListenersExceededWarning",Fr.emitter=xr,Fr.type=Ir,Fr.count=Pr.length,B(Fr)}return xr}rr.prototype.addListener=function(Ir,kr){return mr(this,Ir,kr,!1)},rr.prototype.on=rr.prototype.addListener,rr.prototype.prependListener=function(Ir,kr){return mr(this,Ir,kr,!0)};function fr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function hr(xr,Ir,kr){var Or={fired:!1,wrapFn:void 0,target:xr,type:Ir,listener:kr},Lr=fr.bind(Or);return Lr.listener=kr,Or.wrapFn=Lr,Lr}rr.prototype.once=function(Ir,kr){return lr(kr),this.on(Ir,hr(this,Ir,kr)),this},rr.prototype.prependOnceListener=function(Ir,kr){return lr(kr),this.prependListener(Ir,hr(this,Ir,kr)),this},rr.prototype.removeListener=function(Ir,kr){var Or,Lr,Kn,Pr,Fr;if(lr(kr),Lr=this._events,Lr===void 0)return this;if(Or=Lr[Ir],Or===void 0)return this;if(Or===kr||Or.listener===kr)--this._eventsCount===0?this._events=Object.create(null):(delete Lr[Ir],Lr.removeListener&&this.emit("removeListener",Ir,Or.listener||kr));else if(typeof Or!="function"){for(Kn=-1,Pr=Or.length-1;Pr>=0;Pr--)if(Or[Pr]===kr||Or[Pr].listener===kr){Fr=Or[Pr].listener,Kn=Pr;break}if(Kn<0)return this;Kn===0?Or.shift():vr(Or,Kn),Or.length===1&&(Lr[Ir]=Or[0]),Lr.removeListener!==void 0&&this.emit("removeListener",Ir,Fr||kr)}return this},rr.prototype.off=rr.prototype.removeListener,rr.prototype.removeAllListeners=function(Ir){var kr,Or,Lr;if(Or=this._events,Or===void 0)return this;if(Or.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Or[Ir]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Or[Ir]),this;if(arguments.length===0){var Kn=Object.keys(Or),Pr;for(Lr=0;Lr<Kn.length;++Lr)Pr=Kn[Lr],Pr!=="removeListener"&&this.removeAllListeners(Pr);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(kr=Or[Ir],typeof kr=="function")this.removeListener(Ir,kr);else if(kr!==void 0)for(Lr=kr.length-1;Lr>=0;Lr--)this.removeListener(Ir,kr[Lr]);return this};function _r(xr,Ir,kr){var Or=xr._events;if(Or===void 0)return[];var Lr=Or[Ir];return Lr===void 0?[]:typeof Lr=="function"?kr?[Lr.listener||Lr]:[Lr]:kr?Sr(Lr):Mr(Lr,Lr.length)}rr.prototype.listeners=function(Ir){return _r(this,Ir,!0)},rr.prototype.rawListeners=function(Ir){return _r(this,Ir,!1)},rr.listenerCount=function(xr,Ir){return typeof xr.listenerCount=="function"?xr.listenerCount(Ir):yr.call(xr,Ir)},rr.prototype.listenerCount=yr;function yr(xr){var Ir=this._events;if(Ir!==void 0){var kr=Ir[xr];if(typeof kr=="function")return 1;if(kr!==void 0)return kr.length}return 0}rr.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]};function Mr(xr,Ir){for(var kr=new Array(Ir),Or=0;Or<Ir;++Or)kr[Or]=xr[Or];return kr}function vr(xr,Ir){for(;Ir+1<xr.length;Ir++)xr[Ir]=xr[Ir+1];xr.pop()}function Sr(xr){for(var Ir=new Array(xr.length),kr=0;kr<Ir.length;++kr)Ir[kr]=xr[kr].listener||xr[kr];return Ir}function br(xr,Ir){return new Promise(function(kr,Or){function Lr(Pr){xr.removeListener(Ir,Kn),Or(Pr)}function Kn(){typeof xr.removeListener=="function"&&xr.removeListener("error",Lr),kr([].slice.call(arguments))}wr(xr,Ir,Kn,{once:!0}),Ir!=="error"&&gr(xr,Lr,{once:!0})})}function gr(xr,Ir,kr){typeof xr.on=="function"&&wr(xr,"error",Ir,kr)}function wr(xr,Ir,kr,Or){if(typeof xr.on=="function")Or.once?xr.once(Ir,kr):xr.on(Ir,kr);else if(typeof xr.addEventListener=="function")xr.addEventListener(Ir,function Lr(Kn){Or.once&&xr.removeEventListener(Ir,Lr),kr(Kn)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof xr)}return events.exports}var hasRequiredPool;function requirePool(){if(hasRequiredPool)return Pool;hasRequiredPool=1,Object.defineProperty(Pool,"__esModule",{value:!0});const e=requirePendingOperation(),t=requireResource(),I=requireUtils$3(),B=requireEvents(),tr=require$$1;let rr=class{constructor(mr){if(this.destroyed=!1,this.emitter=new B.EventEmitter,mr=mr||{},!mr.create)throw new Error("Tarn: opt.create function most be provided");if(!mr.destroy)throw new Error("Tarn: opt.destroy function most be provided");if(typeof mr.min!="number"||mr.min<0||mr.min!==Math.round(mr.min))throw new Error("Tarn: opt.min must be an integer >= 0");if(typeof mr.max!="number"||mr.max<=0||mr.max!==Math.round(mr.max))throw new Error("Tarn: opt.max must be an integer > 0");if(mr.min>mr.max)throw new Error("Tarn: opt.max is smaller than opt.min");if(!I.checkOptionalTime(mr.acquireTimeoutMillis))throw new Error("Tarn: invalid opt.acquireTimeoutMillis "+JSON.stringify(mr.acquireTimeoutMillis));if(!I.checkOptionalTime(mr.createTimeoutMillis))throw new Error("Tarn: invalid opt.createTimeoutMillis "+JSON.stringify(mr.createTimeoutMillis));if(!I.checkOptionalTime(mr.destroyTimeoutMillis))throw new Error("Tarn: invalid opt.destroyTimeoutMillis "+JSON.stringify(mr.destroyTimeoutMillis));if(!I.checkOptionalTime(mr.idleTimeoutMillis))throw new Error("Tarn: invalid opt.idleTimeoutMillis "+JSON.stringify(mr.idleTimeoutMillis));if(!I.checkOptionalTime(mr.reapIntervalMillis))throw new Error("Tarn: invalid opt.reapIntervalMillis "+JSON.stringify(mr.reapIntervalMillis));if(!I.checkOptionalTime(mr.createRetryIntervalMillis))throw new Error("Tarn: invalid opt.createRetryIntervalMillis "+JSON.stringify(mr.createRetryIntervalMillis));const fr={create:!0,validate:!0,destroy:!0,log:!0,min:!0,max:!0,acquireTimeoutMillis:!0,createTimeoutMillis:!0,destroyTimeoutMillis:!0,idleTimeoutMillis:!0,reapIntervalMillis:!0,createRetryIntervalMillis:!0,propagateCreateError:!0};for(const hr of Object.keys(mr))if(!fr[hr])throw new Error(`Tarn: unsupported option opt.${hr}`);this.creator=mr.create,this.destroyer=mr.destroy,this.validate=typeof mr.validate=="function"?mr.validate:()=>!0,this.log=mr.log||(()=>{}),this.acquireTimeoutMillis=mr.acquireTimeoutMillis||3e4,this.createTimeoutMillis=mr.createTimeoutMillis||3e4,this.destroyTimeoutMillis=mr.destroyTimeoutMillis||5e3,this.idleTimeoutMillis=mr.idleTimeoutMillis||3e4,this.reapIntervalMillis=mr.reapIntervalMillis||1e3,this.createRetryIntervalMillis=mr.createRetryIntervalMillis||200,this.propagateCreateError=!!mr.propagateCreateError,this.min=mr.min,this.max=mr.max,this.used=[],this.free=[],this.pendingCreates=[],this.pendingAcquires=[],this.pendingDestroys=[],this.pendingValidations=[],this.destroyed=!1,this.interval=null,this.eventId=1}numUsed(){return this.used.length}numFree(){return this.free.length}numPendingAcquires(){return this.pendingAcquires.length}numPendingValidations(){return this.pendingValidations.length}numPendingCreates(){return this.pendingCreates.length}acquire(){const mr=this.eventId++;this._executeEventHandlers("acquireRequest",mr);const fr=new e.PendingOperation(this.acquireTimeoutMillis);return this.pendingAcquires.push(fr),fr.promise=fr.promise.then(hr=>(this._executeEventHandlers("acquireSuccess",mr,hr),hr)).catch(hr=>(this._executeEventHandlers("acquireFail",mr,hr),ir(this.pendingAcquires,fr),Promise.reject(hr))),this._tryAcquireOrCreate(),fr}release(mr){this._executeEventHandlers("release",mr);for(let fr=0,hr=this.used.length;fr<hr;++fr){const _r=this.used[fr];if(_r.resource===mr)return this.used.splice(fr,1),this.free.push(_r.resolve()),this._tryAcquireOrCreate(),!0}return!1}isEmpty(){return[this.numFree(),this.numUsed(),this.numPendingAcquires(),this.numPendingValidations(),this.numPendingCreates()].reduce((mr,fr)=>mr+fr)===0}check(){const mr=I.now(),fr=[],hr=this.min-this.used.length,_r=this.free.length-hr;let yr=0;this.free.forEach(Mr=>{I.duration(mr,Mr.timestamp)>=this.idleTimeoutMillis&&yr<_r?(yr++,this._destroy(Mr.resource)):fr.push(Mr)}),this.free=fr,this.isEmpty()&&this._stopReaping()}destroy(){const mr=this.eventId++;return this._executeEventHandlers("poolDestroyRequest",mr),this._stopReaping(),this.destroyed=!0,I.reflect(Promise.all(this.pendingCreates.map(fr=>I.reflect(fr.promise))).then(()=>new Promise((fr,hr)=>{if(this.numPendingValidations()===0){fr();return}const _r=setInterval(()=>{this.numPendingValidations()===0&&(tr.clearInterval(_r),fr())},100)})).then(()=>Promise.all(this.used.map(fr=>I.reflect(fr.promise)))).then(()=>Promise.all(this.pendingAcquires.map(fr=>(fr.abort(),I.reflect(fr.promise))))).then(()=>Promise.all(this.free.map(fr=>I.reflect(this._destroy(fr.resource))))).then(()=>Promise.all(this.pendingDestroys.map(fr=>fr.promise))).then(()=>{this.free=[],this.pendingAcquires=[]})).then(fr=>(this._executeEventHandlers("poolDestroySuccess",mr),this.emitter.removeAllListeners(),fr))}on(mr,fr){this.emitter.on(mr,fr)}removeListener(mr,fr){this.emitter.removeListener(mr,fr)}removeAllListeners(mr){this.emitter.removeAllListeners(mr)}_tryAcquireOrCreate(){this.destroyed||(this._hasFreeResources()?this._doAcquire():this._shouldCreateMoreResources()&&this._doCreate())}_hasFreeResources(){return this.free.length>0}_doAcquire(){for(;this._canAcquire();){const mr=this.pendingAcquires.shift(),fr=this.free.pop();if(fr===void 0||mr===void 0){const _r="this.free was empty while trying to acquire resource";throw this.log(`Tarn: ${_r}`,"warn"),new Error(`Internal error, should never happen. ${_r}`)}this.pendingValidations.push(mr),this.used.push(fr);const hr=new e.PendingOperation(this.acquireTimeoutMillis);mr.promise.catch(_r=>{hr.abort()}),hr.promise.catch(_r=>(this.log("Tarn: resource validator threw an exception "+_r.stack,"warn"),!1)).then(_r=>{try{_r&&!mr.isRejected?(this._startReaping(),mr.resolve(fr.resource)):(ir(this.used,fr),_r?this.free.push(fr):(this._destroy(fr.resource),setTimeout(()=>{this._tryAcquireOrCreate()},0)),mr.isRejected||this.pendingAcquires.unshift(mr))}finally{ir(this.pendingValidations,mr)}}),this._validateResource(fr.resource).then(_r=>{hr.resolve(_r)}).catch(_r=>{hr.reject(_r)})}}_canAcquire(){return this.free.length>0&&this.pendingAcquires.length>0}_validateResource(mr){try{return Promise.resolve(this.validate(mr))}catch(fr){return Promise.reject(fr)}}_shouldCreateMoreResources(){return this.used.length+this.pendingCreates.length<this.max&&this.pendingCreates.length<this.pendingAcquires.length}_doCreate(){const mr=this.pendingAcquires.slice();this._create().promise.then(()=>(this._tryAcquireOrCreate(),null)).catch(hr=>{this.propagateCreateError&&this.pendingAcquires.length!==0&&this.pendingAcquires[0].reject(hr),mr.forEach(_r=>{_r.possibleTimeoutCause=hr}),I.delay(this.createRetryIntervalMillis).then(()=>this._tryAcquireOrCreate())})}_create(){const mr=this.eventId++;this._executeEventHandlers("createRequest",mr);const fr=new e.PendingOperation(this.createTimeoutMillis);return fr.promise=fr.promise.catch(hr=>{throw ir(this.pendingCreates,fr)&&this._executeEventHandlers("createFail",mr,hr),hr}),this.pendingCreates.push(fr),lr(this.creator).then(hr=>fr.isRejected?(this.destroyer(hr),null):(ir(this.pendingCreates,fr),this.free.push(new t.Resource(hr)),fr.resolve(hr),this._executeEventHandlers("createSuccess",mr,hr),null)).catch(hr=>(fr.isRejected||(ir(this.pendingCreates,fr)&&this._executeEventHandlers("createFail",mr,hr),fr.reject(hr)),null)),fr}_destroy(mr){const fr=this.eventId++;this._executeEventHandlers("destroyRequest",fr,mr);const hr=new e.PendingOperation(this.destroyTimeoutMillis);return Promise.resolve().then(()=>this.destroyer(mr)).then(()=>{hr.resolve(mr)}).catch(yr=>{hr.reject(yr)}),this.pendingDestroys.push(hr),hr.promise.then(yr=>(this._executeEventHandlers("destroySuccess",fr,mr),yr)).catch(yr=>this._logDestroyerError(fr,mr,yr)).then(yr=>{const Mr=this.pendingDestroys.findIndex(vr=>vr===hr);return this.pendingDestroys.splice(Mr,1),yr})}_logDestroyerError(mr,fr,hr){this._executeEventHandlers("destroyFail",mr,fr,hr),this.log("Tarn: resource destroyer threw an exception "+hr.stack,"warn")}_startReaping(){this.interval||(this._executeEventHandlers("startReaping"),this.interval=setInterval(()=>this.check(),this.reapIntervalMillis))}_stopReaping(){this.interval!==null&&(this._executeEventHandlers("stopReaping"),tr.clearInterval(this.interval)),this.interval=null}_executeEventHandlers(mr,...fr){this.emitter.listeners(mr).forEach(_r=>{try{_r(...fr)}catch(yr){this.log(`Tarn: event handler "${mr}" threw an exception ${yr.stack}`,"warn")}})}};Pool.Pool=rr;function ir(dr,mr){const fr=dr.indexOf(mr);return fr===-1?!1:(dr.splice(fr,1),!0)}function lr(dr){return new Promise((mr,fr)=>{const hr=(_r,yr)=>{_r?fr(_r):mr(yr)};I.tryPromise(()=>dr(hr)).then(_r=>{_r&&mr(_r)}).catch(_r=>{fr(_r)})})}return Pool}var hasRequiredTarn;function requireTarn(){return hasRequiredTarn||(hasRequiredTarn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const I=requirePool();t.Pool=I.Pool;const B=requireTimeoutError();t.TimeoutError=B.TimeoutError,e.exports={Pool:I.Pool,TimeoutError:B.TimeoutError}}(tarn,tarn.exports)),tarn.exports}var util={},types={},shams$1,hasRequiredShams$1;function requireShams$1(){return hasRequiredShams$1||(hasRequiredShams$1=1,shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},I=Symbol("test"),B=Object(I);if(typeof I=="string"||Object.prototype.toString.call(I)!=="[object Symbol]"||Object.prototype.toString.call(B)!=="[object Symbol]")return!1;var tr=42;t[I]=tr;for(var rr in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var ir=Object.getOwnPropertySymbols(t);if(ir.length!==1||ir[0]!==I||!Object.prototype.propertyIsEnumerable.call(t,I))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var lr=Object.getOwnPropertyDescriptor(t,I);if(lr.value!==tr||lr.enumerable!==!0)return!1}return!0}),shams$1}var shams,hasRequiredShams;function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag},shams}var esObjectAtoms,hasRequiredEsObjectAtoms;function requireEsObjectAtoms(){return hasRequiredEsObjectAtoms||(hasRequiredEsObjectAtoms=1,esObjectAtoms=Object),esObjectAtoms}var esErrors,hasRequiredEsErrors;function requireEsErrors(){return hasRequiredEsErrors||(hasRequiredEsErrors=1,esErrors=Error),esErrors}var _eval,hasRequired_eval;function require_eval(){return hasRequired_eval||(hasRequired_eval=1,_eval=EvalError),_eval}var range,hasRequiredRange;function requireRange(){return hasRequiredRange||(hasRequiredRange=1,range=RangeError),range}var ref$1,hasRequiredRef$1;function requireRef$1(){return hasRequiredRef$1||(hasRequiredRef$1=1,ref$1=ReferenceError),ref$1}var syntax,hasRequiredSyntax;function requireSyntax(){return hasRequiredSyntax||(hasRequiredSyntax=1,syntax=SyntaxError),syntax}var type,hasRequiredType;function requireType(){return hasRequiredType||(hasRequiredType=1,type=TypeError),type}var uri,hasRequiredUri;function requireUri(){return hasRequiredUri||(hasRequiredUri=1,uri=URIError),uri}var abs,hasRequiredAbs;function requireAbs(){return hasRequiredAbs||(hasRequiredAbs=1,abs=Math.abs),abs}var floor,hasRequiredFloor;function requireFloor(){return hasRequiredFloor||(hasRequiredFloor=1,floor=Math.floor),floor}var max,hasRequiredMax;function requireMax(){return hasRequiredMax||(hasRequiredMax=1,max=Math.max),max}var min,hasRequiredMin;function requireMin(){return hasRequiredMin||(hasRequiredMin=1,min=Math.min),min}var pow,hasRequiredPow;function requirePow(){return hasRequiredPow||(hasRequiredPow=1,pow=Math.pow),pow}var round,hasRequiredRound;function requireRound(){return hasRequiredRound||(hasRequiredRound=1,round=Math.round),round}var _isNaN,hasRequired_isNaN;function require_isNaN(){return hasRequired_isNaN||(hasRequired_isNaN=1,_isNaN=Number.isNaN||function(t){return t!==t}),_isNaN}var sign,hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign;hasRequiredSign=1;var e=require_isNaN();return sign=function(I){return e(I)||I===0?I:I<0?-1:1},sign}var gOPD,hasRequiredGOPD;function requireGOPD(){return hasRequiredGOPD||(hasRequiredGOPD=1,gOPD=Object.getOwnPropertyDescriptor),gOPD}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGOPD();if(e)try{e([],"length")}catch{e=null}return gopd=e,gopd}var esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return esDefineProperty=e,esDefineProperty}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,t=requireShams$1();return hasSymbols=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},hasSymbols}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var e=requireEsObjectAtoms();return Object_getPrototypeOf=e.getPrototypeOf||null,Object_getPrototypeOf}var implementation$4,hasRequiredImplementation$4;function requireImplementation$4(){if(hasRequiredImplementation$4)return implementation$4;hasRequiredImplementation$4=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,I=Math.max,B="[object Function]",tr=function(dr,mr){for(var fr=[],hr=0;hr<dr.length;hr+=1)fr[hr]=dr[hr];for(var _r=0;_r<mr.length;_r+=1)fr[_r+dr.length]=mr[_r];return fr},rr=function(dr,mr){for(var fr=[],hr=mr,_r=0;hr<dr.length;hr+=1,_r+=1)fr[_r]=dr[hr];return fr},ir=function(lr,dr){for(var mr="",fr=0;fr<lr.length;fr+=1)mr+=lr[fr],fr+1<lr.length&&(mr+=dr);return mr};return implementation$4=function(dr){var mr=this;if(typeof mr!="function"||t.apply(mr)!==B)throw new TypeError(e+mr);for(var fr=rr(arguments,1),hr,_r=function(){if(this instanceof hr){var br=mr.apply(this,tr(fr,arguments));return Object(br)===br?br:this}return mr.apply(dr,tr(fr,arguments))},yr=I(0,mr.length-fr.length),Mr=[],vr=0;vr<yr;vr++)Mr[vr]="$"+vr;if(hr=Function("binder","return function ("+ir(Mr,",")+"){ return binder.apply(this,arguments); }")(_r),mr.prototype){var Sr=function(){};Sr.prototype=mr.prototype,hr.prototype=new Sr,Sr.prototype=null}return hr},implementation$4}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var e=requireImplementation$4();return functionBind=Function.prototype.bind||e,functionBind}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply,hasRequiredReflectApply;function requireReflectApply(){return hasRequiredReflectApply||(hasRequiredReflectApply=1,reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply),reflectApply}var actualApply,hasRequiredActualApply;function requireActualApply(){if(hasRequiredActualApply)return actualApply;hasRequiredActualApply=1;var e=requireFunctionBind(),t=requireFunctionApply(),I=requireFunctionCall(),B=requireReflectApply();return actualApply=B||e.call(I,t),actualApply}var callBindApplyHelpers,hasRequiredCallBindApplyHelpers;function requireCallBindApplyHelpers(){if(hasRequiredCallBindApplyHelpers)return callBindApplyHelpers;hasRequiredCallBindApplyHelpers=1;var e=requireFunctionBind(),t=requireType(),I=requireFunctionCall(),B=requireActualApply();return callBindApplyHelpers=function(rr){if(rr.length<1||typeof rr[0]!="function")throw new t("a function is required");return B(e,I,rr)},callBindApplyHelpers}var get,hasRequiredGet$1;function requireGet$1(){if(hasRequiredGet$1)return get;hasRequiredGet$1=1;var e=requireCallBindApplyHelpers(),t=requireGopd(),I;try{I=[].__proto__===Array.prototype}catch(ir){if(!ir||typeof ir!="object"||!("code"in ir)||ir.code!=="ERR_PROTO_ACCESS")throw ir}var B=!!I&&t&&t(Object.prototype,"__proto__"),tr=Object,rr=tr.getPrototypeOf;return get=B&&typeof B.get=="function"?e([B.get]):typeof rr=="function"?function(lr){return rr(lr==null?lr:tr(lr))}:!1,get}var getProto,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto;hasRequiredGetProto=1;var e=requireReflect_getPrototypeOf(),t=requireObject_getPrototypeOf(),I=requireGet$1();return getProto=e?function(tr){return e(tr)}:t?function(tr){if(!tr||typeof tr!="object"&&typeof tr!="function")throw new TypeError("getProto: not an object");return t(tr)}:I?function(tr){return I(tr)}:null,getProto}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,I=requireFunctionBind();return hasown=I.call(e,t),hasown}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var e,t=requireEsObjectAtoms(),I=requireEsErrors(),B=require_eval(),tr=requireRange(),rr=requireRef$1(),ir=requireSyntax(),lr=requireType(),dr=requireUri(),mr=requireAbs(),fr=requireFloor(),hr=requireMax(),_r=requireMin(),yr=requirePow(),Mr=requireRound(),vr=requireSign(),Sr=Function,br=function(ii){try{return Sr('"use strict"; return ('+ii+").constructor;")()}catch{}},gr=requireGopd(),wr=requireEsDefineProperty(),xr=function(){throw new lr},Ir=gr?function(){try{return xr}catch{try{return gr(arguments,"callee").get}catch{return xr}}}():xr,kr=requireHasSymbols()(),Or=requireGetProto(),Lr=requireObject_getPrototypeOf(),Kn=requireReflect_getPrototypeOf(),Pr=requireFunctionApply(),Fr=requireFunctionCall(),Jr={},Jn=typeof Uint8Array>"u"||!Or?e:Or(Uint8Array),Ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":kr&&Or?Or([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Jr,"%AsyncGenerator%":Jr,"%AsyncGeneratorFunction%":Jr,"%AsyncIteratorPrototype%":Jr,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":I,"%eval%":eval,"%EvalError%":B,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":Sr,"%GeneratorFunction%":Jr,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":kr&&Or?Or(Or([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!kr||!Or?e:Or(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":gr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":tr,"%ReferenceError%":rr,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!kr||!Or?e:Or(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":kr&&Or?Or(""[Symbol.iterator]()):e,"%Symbol%":kr?Symbol:e,"%SyntaxError%":ir,"%ThrowTypeError%":Ir,"%TypedArray%":Jn,"%TypeError%":lr,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":dr,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Fr,"%Function.prototype.apply%":Pr,"%Object.defineProperty%":wr,"%Object.getPrototypeOf%":Lr,"%Math.abs%":mr,"%Math.floor%":fr,"%Math.max%":hr,"%Math.min%":_r,"%Math.pow%":yr,"%Math.round%":Mr,"%Math.sign%":vr,"%Reflect.getPrototypeOf%":Kn},$r=function ii(ti){var ui;if(ti==="%AsyncFunction%")ui=br("async function () {}");else if(ti==="%GeneratorFunction%")ui=br("function* () {}");else if(ti==="%AsyncGeneratorFunction%")ui=br("async function* () {}");else if(ti==="%AsyncGenerator%"){var pi=ii("%AsyncGeneratorFunction%");pi&&(ui=pi.prototype)}else if(ti==="%AsyncIteratorPrototype%"){var fi=ii("%AsyncGenerator%");fi&&Or&&(ui=Or(fi.prototype))}return Ar[ti]=ui,ui},Qr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ai=requireFunctionBind(),di=requireHasown(),ri=ai.call(Fr,Array.prototype.concat),zr=ai.call(Pr,Array.prototype.splice),ni=ai.call(Fr,String.prototype.replace),oi=ai.call(Fr,String.prototype.slice),qn=ai.call(Fr,RegExp.prototype.exec),Dr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gr=/\\(\\)?/g,Xn=function(ti){var ui=oi(ti,0,1),pi=oi(ti,-1);if(ui==="%"&&pi!=="%")throw new ir("invalid intrinsic syntax, expected closing `%`");if(pi==="%"&&ui!=="%")throw new ir("invalid intrinsic syntax, expected opening `%`");var fi=[];return ni(ti,Dr,function(gi,$n,ei,yi){fi[fi.length]=ei?ni(yi,Gr,"$1"):$n||gi}),fi},li=function(ti,ui){var pi=ti,fi;if(di(Qr,pi)&&(fi=Qr[pi],pi="%"+fi[0]+"%"),di(Ar,pi)){var gi=Ar[pi];if(gi===Jr&&(gi=$r(pi)),typeof gi>"u"&&!ui)throw new lr("intrinsic "+ti+" exists, but is not available. Please file an issue!");return{alias:fi,name:pi,value:gi}}throw new ir("intrinsic "+ti+" does not exist!")};return getIntrinsic=function(ti,ui){if(typeof ti!="string"||ti.length===0)throw new lr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ui!="boolean")throw new lr('"allowMissing" argument must be a boolean');if(qn(/^%?[^%]*%?$/,ti)===null)throw new ir("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pi=Xn(ti),fi=pi.length>0?pi[0]:"",gi=li("%"+fi+"%",ui),$n=gi.name,ei=gi.value,yi=!1,_i=gi.alias;_i&&(fi=_i[0],zr(pi,ri([0,1],_i)));for(var Si=1,si=!0;Si<pi.length;Si+=1){var Ci=pi[Si],xi=oi(Ci,0,1),vi=oi(Ci,-1);if((xi==='"'||xi==="'"||xi==="`"||vi==='"'||vi==="'"||vi==="`")&&xi!==vi)throw new ir("property names with quotes must have matching quotes");if((Ci==="constructor"||!si)&&(yi=!0),fi+="."+Ci,$n="%"+fi+"%",di(Ar,$n))ei=Ar[$n];else if(ei!=null){if(!(Ci in ei)){if(!ui)throw new lr("base intrinsic for "+ti+" exists, but the property is not available.");return}if(gr&&Si+1>=pi.length){var wi=gr(ei,Ci);si=!!wi,si&&"get"in wi&&!("originalValue"in wi.get)?ei=wi.get:ei=ei[Ci]}else si=di(ei,Ci),ei=ei[Ci];si&&!yi&&(Ar[$n]=ei)}}return ei},getIntrinsic}var callBound$1,hasRequiredCallBound$1;function requireCallBound$1(){if(hasRequiredCallBound$1)return callBound$1;hasRequiredCallBound$1=1;var e=requireGetIntrinsic(),t=requireCallBindApplyHelpers(),I=t([e("%String.prototype.indexOf%")]);return callBound$1=function(tr,rr){var ir=e(tr,!!rr);return typeof ir=="function"&&I(tr,".prototype.")>-1?t([ir]):ir},callBound$1}var isArguments$1,hasRequiredIsArguments$2;function requireIsArguments$2(){if(hasRequiredIsArguments$2)return isArguments$1;hasRequiredIsArguments$2=1;var e=requireShams()(),t=requireCallBound$1(),I=t("Object.prototype.toString"),B=function(lr){return e&&lr&&typeof lr=="object"&&Symbol.toStringTag in lr?!1:I(lr)==="[object Arguments]"},tr=function(lr){return B(lr)?!0:lr!==null&&typeof lr=="object"&&"length"in lr&&typeof lr.length=="number"&&lr.length>=0&&I(lr)!=="[object Array]"&&"callee"in lr&&I(lr.callee)==="[object Function]"},rr=function(){return B(arguments)}();return B.isLegacyArguments=tr,isArguments$1=rr?B:tr,isArguments$1}var isRegex,hasRequiredIsRegex;function requireIsRegex(){if(hasRequiredIsRegex)return isRegex;hasRequiredIsRegex=1;var e=requireCallBound$1(),t=requireShams()(),I=requireHasown(),B=requireGopd(),tr;if(t){var rr=e("RegExp.prototype.exec"),ir={},lr=function(){throw ir},dr={toString:lr,valueOf:lr};typeof Symbol.toPrimitive=="symbol"&&(dr[Symbol.toPrimitive]=lr),tr=function(_r){if(!_r||typeof _r!="object")return!1;var yr=B(_r,"lastIndex"),Mr=yr&&I(yr,"value");if(!Mr)return!1;try{rr(_r,dr)}catch(vr){return vr===ir}}}else{var mr=e("Object.prototype.toString"),fr="[object RegExp]";tr=function(_r){return!_r||typeof _r!="object"&&typeof _r!="function"?!1:mr(_r)===fr}}return isRegex=tr,isRegex}var safeRegexTest,hasRequiredSafeRegexTest;function requireSafeRegexTest(){if(hasRequiredSafeRegexTest)return safeRegexTest;hasRequiredSafeRegexTest=1;var e=requireCallBound$1(),t=requireIsRegex(),I=e("RegExp.prototype.exec"),B=requireType();return safeRegexTest=function(rr){if(!t(rr))throw new B("`regex` must be a RegExp");return function(lr){return I(rr,lr)!==null}},safeRegexTest}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=requireCallBound$1(),t=requireSafeRegexTest(),I=t(/^\s*(?:function)?\*/),B=requireShams()(),tr=requireGetProto(),rr=e("Object.prototype.toString"),ir=e("Function.prototype.toString"),lr=function(){if(!B)return!1;try{return Function("return function*() {}")()}catch{}},dr;return isGeneratorFunction=function(fr){if(typeof fr!="function")return!1;if(I(ir(fr)))return!0;if(!B){var hr=rr(fr);return hr==="[object GeneratorFunction]"}if(!tr)return!1;if(typeof dr>"u"){var _r=lr();dr=_r?tr(_r):!1}return tr(fr)===dr},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,I,B;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{I=Object.defineProperty({},"length",{get:function(){throw B}}),B={},t(function(){throw 42},null,I)}catch(gr){gr!==B&&(t=null)}else t=null;var tr=/^\s*class\b/,rr=function(wr){try{var xr=e.call(wr);return tr.test(xr)}catch{return!1}},ir=function(wr){try{return rr(wr)?!1:(e.call(wr),!0)}catch{return!1}},lr=Object.prototype.toString,dr="[object Object]",mr="[object Function]",fr="[object GeneratorFunction]",hr="[object HTMLAllCollection]",_r="[object HTML document.all class]",yr="[object HTMLCollection]",Mr=typeof Symbol=="function"&&!!Symbol.toStringTag,vr=!(0 in[,]),Sr=function(){return!1};if(typeof document=="object"){var br=document.all;lr.call(br)===lr.call(document.all)&&(Sr=function(wr){if((vr||!wr)&&(typeof wr>"u"||typeof wr=="object"))try{var xr=lr.call(wr);return(xr===hr||xr===_r||xr===yr||xr===dr)&&wr("")==null}catch{}return!1})}return isCallable=t?function(wr){if(Sr(wr))return!0;if(!wr||typeof wr!="function"&&typeof wr!="object")return!1;try{t(wr,null,I)}catch(xr){if(xr!==B)return!1}return!rr(wr)&&ir(wr)}:function(wr){if(Sr(wr))return!0;if(!wr||typeof wr!="function"&&typeof wr!="object")return!1;if(Mr)return ir(wr);if(rr(wr))return!1;var xr=lr.call(wr);return xr!==mr&&xr!==fr&&!/^\[object HTML/.test(xr)?!1:ir(wr)},isCallable}var forEach,hasRequiredForEach$1;function requireForEach$1(){if(hasRequiredForEach$1)return forEach;hasRequiredForEach$1=1;var e=requireIsCallable(),t=Object.prototype.toString,I=Object.prototype.hasOwnProperty,B=function(dr,mr,fr){for(var hr=0,_r=dr.length;hr<_r;hr++)I.call(dr,hr)&&(fr==null?mr(dr[hr],hr,dr):mr.call(fr,dr[hr],hr,dr))},tr=function(dr,mr,fr){for(var hr=0,_r=dr.length;hr<_r;hr++)fr==null?mr(dr.charAt(hr),hr,dr):mr.call(fr,dr.charAt(hr),hr,dr)},rr=function(dr,mr,fr){for(var hr in dr)I.call(dr,hr)&&(fr==null?mr(dr[hr],hr,dr):mr.call(fr,dr[hr],hr,dr))};function ir(lr){return t.call(lr)==="[object Array]"}return forEach=function(dr,mr,fr){if(!e(mr))throw new TypeError("iterator must be a function");var hr;arguments.length>=3&&(hr=fr),ir(dr)?B(dr,mr,hr):typeof dr=="string"?tr(dr,mr,hr):rr(dr,mr,hr)},forEach}var possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames;function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames||(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),possibleTypedArrayNames}var availableTypedArrays,hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=requirePossibleTypedArrayNames(),t=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var B=[],tr=0;tr<e.length;tr++)typeof t[e[tr]]=="function"&&(B[B.length]=e[tr]);return B},availableTypedArrays}var callBind={exports:{}},defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),t=requireSyntax(),I=requireType(),B=requireGopd();return defineDataProperty=function(rr,ir,lr){if(!rr||typeof rr!="object"&&typeof rr!="function")throw new I("`obj` must be an object or a function`");if(typeof ir!="string"&&typeof ir!="symbol")throw new I("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new I("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new I("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new I("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new I("`loose`, if provided, must be a boolean");var dr=arguments.length>3?arguments[3]:null,mr=arguments.length>4?arguments[4]:null,fr=arguments.length>5?arguments[5]:null,hr=arguments.length>6?arguments[6]:!1,_r=!!B&&B(rr,ir);if(e)e(rr,ir,{configurable:fr===null&&_r?_r.configurable:!fr,enumerable:dr===null&&_r?_r.enumerable:!dr,value:lr,writable:mr===null&&_r?_r.writable:!mr});else if(hr||!dr&&!mr&&!fr)rr[ir]=lr;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},defineDataProperty}var hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=requireEsDefineProperty(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=t,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),t=requireDefineDataProperty(),I=requireHasPropertyDescriptors()(),B=requireGopd(),tr=requireType(),rr=e("%Math.floor%");return setFunctionLength=function(lr,dr){if(typeof lr!="function")throw new tr("`fn` is not a function");if(typeof dr!="number"||dr<0||dr>4294967295||rr(dr)!==dr)throw new tr("`length` must be a positive 32-bit integer");var mr=arguments.length>2&&!!arguments[2],fr=!0,hr=!0;if("length"in lr&&B){var _r=B(lr,"length");_r&&!_r.configurable&&(fr=!1),_r&&!_r.writable&&(hr=!1)}return(fr||hr||!mr)&&(I?t(lr,"length",dr,!0,!0):t(lr,"length",dr)),lr},setFunctionLength}var applyBind,hasRequiredApplyBind;function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=requireFunctionBind(),t=requireFunctionApply(),I=requireActualApply();return applyBind=function(){return I(e,t,arguments)},applyBind}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var t=requireSetFunctionLength(),I=requireEsDefineProperty(),B=requireCallBindApplyHelpers(),tr=requireApplyBind();e.exports=function(ir){var lr=B(arguments),dr=ir.length-(arguments.length-1);return t(lr,1+(dr>0?dr:0),!0)},I?I(e.exports,"apply",{value:tr}):e.exports.apply=tr}(callBind)),callBind.exports}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach$1(),t=requireAvailableTypedArrays(),I=requireCallBind(),B=requireCallBound$1(),tr=requireGopd(),rr=requireGetProto(),ir=B("Object.prototype.toString"),lr=requireShams()(),dr=typeof globalThis>"u"?commonjsGlobal:globalThis,mr=t(),fr=B("String.prototype.slice"),hr=B("Array.prototype.indexOf",!0)||function(Sr,br){for(var gr=0;gr<Sr.length;gr+=1)if(Sr[gr]===br)return gr;return-1},_r={__proto__:null};lr&&tr&&rr?e(mr,function(vr){var Sr=new dr[vr];if(Symbol.toStringTag in Sr&&rr){var br=rr(Sr),gr=tr(br,Symbol.toStringTag);if(!gr&&br){var wr=rr(br);gr=tr(wr,Symbol.toStringTag)}_r["$"+vr]=I(gr.get)}}):e(mr,function(vr){var Sr=new dr[vr],br=Sr.slice||Sr.set;br&&(_r["$"+vr]=I(br))});var yr=function(Sr){var br=!1;return e(_r,function(gr,wr){if(!br)try{"$"+gr(Sr)===wr&&(br=fr(wr,1))}catch{}}),br},Mr=function(Sr){var br=!1;return e(_r,function(gr,wr){if(!br)try{gr(Sr),br=fr(wr,1)}catch{}}),br};return whichTypedArray=function(Sr){if(!Sr||typeof Sr!="object")return!1;if(!lr){var br=fr(ir(Sr),8,-1);return hr(mr,br)>-1?br:br!=="Object"?!1:Mr(Sr)}return tr?yr(Sr):null},whichTypedArray}var isTypedArray,hasRequiredIsTypedArray$1;function requireIsTypedArray$1(){if(hasRequiredIsTypedArray$1)return isTypedArray;hasRequiredIsTypedArray$1=1;var e=requireWhichTypedArray();return isTypedArray=function(I){return!!e(I)},isTypedArray}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var t=requireIsArguments$2(),I=requireIsGeneratorFunction(),B=requireWhichTypedArray(),tr=requireIsTypedArray$1();function rr(si){return si.call.bind(si)}var ir=typeof BigInt<"u",lr=typeof Symbol<"u",dr=rr(Object.prototype.toString),mr=rr(Number.prototype.valueOf),fr=rr(String.prototype.valueOf),hr=rr(Boolean.prototype.valueOf);if(ir)var _r=rr(BigInt.prototype.valueOf);if(lr)var yr=rr(Symbol.prototype.valueOf);function Mr(si,Ci){if(typeof si!="object")return!1;try{return Ci(si),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=I,e.isTypedArray=tr;function vr(si){return typeof Promise<"u"&&si instanceof Promise||si!==null&&typeof si=="object"&&typeof si.then=="function"&&typeof si.catch=="function"}e.isPromise=vr;function Sr(si){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(si):tr(si)||qn(si)}e.isArrayBufferView=Sr;function br(si){return B(si)==="Uint8Array"}e.isUint8Array=br;function gr(si){return B(si)==="Uint8ClampedArray"}e.isUint8ClampedArray=gr;function wr(si){return B(si)==="Uint16Array"}e.isUint16Array=wr;function xr(si){return B(si)==="Uint32Array"}e.isUint32Array=xr;function Ir(si){return B(si)==="Int8Array"}e.isInt8Array=Ir;function kr(si){return B(si)==="Int16Array"}e.isInt16Array=kr;function Or(si){return B(si)==="Int32Array"}e.isInt32Array=Or;function Lr(si){return B(si)==="Float32Array"}e.isFloat32Array=Lr;function Kn(si){return B(si)==="Float64Array"}e.isFloat64Array=Kn;function Pr(si){return B(si)==="BigInt64Array"}e.isBigInt64Array=Pr;function Fr(si){return B(si)==="BigUint64Array"}e.isBigUint64Array=Fr;function Jr(si){return dr(si)==="[object Map]"}Jr.working=typeof Map<"u"&&Jr(new Map);function Jn(si){return typeof Map>"u"?!1:Jr.working?Jr(si):si instanceof Map}e.isMap=Jn;function Ar(si){return dr(si)==="[object Set]"}Ar.working=typeof Set<"u"&&Ar(new Set);function $r(si){return typeof Set>"u"?!1:Ar.working?Ar(si):si instanceof Set}e.isSet=$r;function Qr(si){return dr(si)==="[object WeakMap]"}Qr.working=typeof WeakMap<"u"&&Qr(new WeakMap);function ai(si){return typeof WeakMap>"u"?!1:Qr.working?Qr(si):si instanceof WeakMap}e.isWeakMap=ai;function di(si){return dr(si)==="[object WeakSet]"}di.working=typeof WeakSet<"u"&&di(new WeakSet);function ri(si){return di(si)}e.isWeakSet=ri;function zr(si){return dr(si)==="[object ArrayBuffer]"}zr.working=typeof ArrayBuffer<"u"&&zr(new ArrayBuffer);function ni(si){return typeof ArrayBuffer>"u"?!1:zr.working?zr(si):si instanceof ArrayBuffer}e.isArrayBuffer=ni;function oi(si){return dr(si)==="[object DataView]"}oi.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&oi(new DataView(new ArrayBuffer(1),0,1));function qn(si){return typeof DataView>"u"?!1:oi.working?oi(si):si instanceof DataView}e.isDataView=qn;var Dr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Gr(si){return dr(si)==="[object SharedArrayBuffer]"}function Xn(si){return typeof Dr>"u"?!1:(typeof Gr.working>"u"&&(Gr.working=Gr(new Dr)),Gr.working?Gr(si):si instanceof Dr)}e.isSharedArrayBuffer=Xn;function li(si){return dr(si)==="[object AsyncFunction]"}e.isAsyncFunction=li;function ii(si){return dr(si)==="[object Map Iterator]"}e.isMapIterator=ii;function ti(si){return dr(si)==="[object Set Iterator]"}e.isSetIterator=ti;function ui(si){return dr(si)==="[object Generator]"}e.isGeneratorObject=ui;function pi(si){return dr(si)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=pi;function fi(si){return Mr(si,mr)}e.isNumberObject=fi;function gi(si){return Mr(si,fr)}e.isStringObject=gi;function $n(si){return Mr(si,hr)}e.isBooleanObject=$n;function ei(si){return ir&&Mr(si,_r)}e.isBigIntObject=ei;function yi(si){return lr&&Mr(si,yr)}e.isSymbolObject=yi;function _i(si){return fi(si)||gi(si)||$n(si)||ei(si)||yi(si)}e.isBoxedPrimitive=_i;function Si(si){return typeof Uint8Array<"u"&&(ni(si)||Xn(si))}e.isAnyArrayBuffer=Si,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(si){Object.defineProperty(e,si,{enumerable:!1,value:function(){throw new Error(si+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,I){I&&(t.super_=I,t.prototype=Object.create(I.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,I){if(I){t.super_=I;var B=function(){};B.prototype=I.prototype,t.prototype=new B,t.prototype.constructor=t}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var t={},I=Object.getOwnPropertyDescriptors||function(Dr){for(var Gr=Object.keys(Dr),Xn={},li=0;li<Gr.length;li++)Xn[Gr[li]]=Object.getOwnPropertyDescriptor(Dr,Gr[li]);return Xn},B=/%[sdj%]/g;e.format=function(qn){if(!kr(qn)){for(var Dr=[],Gr=0;Gr<arguments.length;Gr++)Dr.push(lr(arguments[Gr]));return Dr.join(" ")}for(var Gr=1,Xn=arguments,li=Xn.length,ii=String(qn).replace(B,function(ui){if(ui==="%%")return"%";if(Gr>=li)return ui;switch(ui){case"%s":return String(Xn[Gr++]);case"%d":return Number(Xn[Gr++]);case"%j":try{return JSON.stringify(Xn[Gr++])}catch{return"[Circular]"}default:return ui}}),ti=Xn[Gr];Gr<li;ti=Xn[++Gr])wr(ti)||!Pr(ti)?ii+=" "+ti:ii+=" "+lr(ti);return ii},e.deprecate=function(qn,Dr){if(typeof process<"u"&&process.noDeprecation===!0)return qn;if(typeof process>"u")return function(){return e.deprecate(qn,Dr).apply(this,arguments)};var Gr=!1;function Xn(){if(!Gr){if(process.throwDeprecation)throw new Error(Dr);process.traceDeprecation?console.trace(Dr):console.error(Dr),Gr=!0}return qn.apply(this,arguments)}return Xn};var tr={},rr=/^$/;if(t.NODE_DEBUG){var ir=t.NODE_DEBUG;ir=ir.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),rr=new RegExp("^"+ir+"$","i")}e.debuglog=function(qn){if(qn=qn.toUpperCase(),!tr[qn])if(rr.test(qn)){var Dr=process.pid;tr[qn]=function(){var Gr=e.format.apply(e,arguments);console.error("%s %d: %s",qn,Dr,Gr)}}else tr[qn]=function(){};return tr[qn]};function lr(qn,Dr){var Gr={seen:[],stylize:mr};return arguments.length>=3&&(Gr.depth=arguments[2]),arguments.length>=4&&(Gr.colors=arguments[3]),gr(Dr)?Gr.showHidden=Dr:Dr&&e._extend(Gr,Dr),Lr(Gr.showHidden)&&(Gr.showHidden=!1),Lr(Gr.depth)&&(Gr.depth=2),Lr(Gr.colors)&&(Gr.colors=!1),Lr(Gr.customInspect)&&(Gr.customInspect=!0),Gr.colors&&(Gr.stylize=dr),hr(Gr,qn,Gr.depth)}e.inspect=lr,lr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},lr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function dr(qn,Dr){var Gr=lr.styles[Dr];return Gr?"\x1B["+lr.colors[Gr][0]+"m"+qn+"\x1B["+lr.colors[Gr][1]+"m":qn}function mr(qn,Dr){return qn}function fr(qn){var Dr={};return qn.forEach(function(Gr,Xn){Dr[Gr]=!0}),Dr}function hr(qn,Dr,Gr){if(qn.customInspect&&Dr&&Jn(Dr.inspect)&&Dr.inspect!==e.inspect&&!(Dr.constructor&&Dr.constructor.prototype===Dr)){var Xn=Dr.inspect(Gr,qn);return kr(Xn)||(Xn=hr(qn,Xn,Gr)),Xn}var li=_r(qn,Dr);if(li)return li;var ii=Object.keys(Dr),ti=fr(ii);if(qn.showHidden&&(ii=Object.getOwnPropertyNames(Dr)),Jr(Dr)&&(ii.indexOf("message")>=0||ii.indexOf("description")>=0))return yr(Dr);if(ii.length===0){if(Jn(Dr)){var ui=Dr.name?": "+Dr.name:"";return qn.stylize("[Function"+ui+"]","special")}if(Kn(Dr))return qn.stylize(RegExp.prototype.toString.call(Dr),"regexp");if(Fr(Dr))return qn.stylize(Date.prototype.toString.call(Dr),"date");if(Jr(Dr))return yr(Dr)}var pi="",fi=!1,gi=["{","}"];if(br(Dr)&&(fi=!0,gi=["[","]"]),Jn(Dr)){var $n=Dr.name?": "+Dr.name:"";pi=" [Function"+$n+"]"}if(Kn(Dr)&&(pi=" "+RegExp.prototype.toString.call(Dr)),Fr(Dr)&&(pi=" "+Date.prototype.toUTCString.call(Dr)),Jr(Dr)&&(pi=" "+yr(Dr)),ii.length===0&&(!fi||Dr.length==0))return gi[0]+pi+gi[1];if(Gr<0)return Kn(Dr)?qn.stylize(RegExp.prototype.toString.call(Dr),"regexp"):qn.stylize("[Object]","special");qn.seen.push(Dr);var ei;return fi?ei=Mr(qn,Dr,Gr,ti,ii):ei=ii.map(function(yi){return vr(qn,Dr,Gr,ti,yi,fi)}),qn.seen.pop(),Sr(ei,pi,gi)}function _r(qn,Dr){if(Lr(Dr))return qn.stylize("undefined","undefined");if(kr(Dr)){var Gr="'"+JSON.stringify(Dr).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return qn.stylize(Gr,"string")}if(Ir(Dr))return qn.stylize(""+Dr,"number");if(gr(Dr))return qn.stylize(""+Dr,"boolean");if(wr(Dr))return qn.stylize("null","null")}function yr(qn){return"["+Error.prototype.toString.call(qn)+"]"}function Mr(qn,Dr,Gr,Xn,li){for(var ii=[],ti=0,ui=Dr.length;ti<ui;++ti)ri(Dr,String(ti))?ii.push(vr(qn,Dr,Gr,Xn,String(ti),!0)):ii.push("");return li.forEach(function(pi){pi.match(/^\d+$/)||ii.push(vr(qn,Dr,Gr,Xn,pi,!0))}),ii}function vr(qn,Dr,Gr,Xn,li,ii){var ti,ui,pi;if(pi=Object.getOwnPropertyDescriptor(Dr,li)||{value:Dr[li]},pi.get?pi.set?ui=qn.stylize("[Getter/Setter]","special"):ui=qn.stylize("[Getter]","special"):pi.set&&(ui=qn.stylize("[Setter]","special")),ri(Xn,li)||(ti="["+li+"]"),ui||(qn.seen.indexOf(pi.value)<0?(wr(Gr)?ui=hr(qn,pi.value,null):ui=hr(qn,pi.value,Gr-1),ui.indexOf(`
4
4
  `)>-1&&(ii?ui=ui.split(`
5
5
  `).map(function(fi){return" "+fi}).join(`
@@ -133,7 +133,7 @@ ${tr.message}`)}}validateConnection(tr){return tr&&!tr._fatalError&&!tr._protoco
133
133
  WHERE a.typcategory = 'A'
134
134
  GROUP BY b.oid, b.typarray
135
135
  ORDER BY b.oid
136
- `);for(let I of t.rows)this.serializers[I.typarray]=B=>Ke$1(B,this.serializers[I.oid],I.typarray),this.parsers[I.typarray]=B=>yn(B,this.parsers[I.oid],I.typarray)}async refreshArrayTypes(){await this._initArrayTypes({force:!0})}async query(e,t,I){return await this._checkReady(),await this._runExclusiveTransaction(async()=>await T(this,r,g$1).call(this,e,t,I))}async sql(e,...t){let{query:I,params:B}=g$2(e,...t);return await this.query(I,B)}async exec(e,t){return await this._checkReady(),await this._runExclusiveTransaction(async()=>await T(this,r,h).call(this,e,t))}async describeQuery(e,t){try{await T(this,r,l).call(this,O$1.parse({text:e,types:t==null?void 0:t.paramTypes}),t);let I=await T(this,r,l).call(this,O$1.describe({type:"S"}),t),B=I.messages.find(lr=>lr.name==="parameterDescription"),tr=I.messages.find(lr=>lr.name==="rowDescription"),rr=(B==null?void 0:B.dataTypeIDs.map(lr=>({dataTypeID:lr,serializer:this.serializers[lr]})))??[],ir=(tr==null?void 0:tr.fields.map(lr=>({name:lr.name,dataTypeID:lr.dataTypeID,parser:this.parsers[lr.dataTypeID]})))??[];return{queryParams:rr,resultFields:ir}}finally{await T(this,r,l).call(this,O$1.sync(),t)}}async transaction(e){return await this._checkReady(),await this._runExclusiveTransaction(async()=>{await T(this,r,h).call(this,"BEGIN"),x$2(this,u,!0);let t=!1,I=()=>{if(t)throw new Error("Transaction is closed")},B={query:async(tr,rr,ir)=>(I(),await T(this,r,g$1).call(this,tr,rr,ir)),sql:async(tr,...rr)=>{let{query:ir,params:lr}=g$2(tr,...rr);return await T(this,r,g$1).call(this,ir,lr)},exec:async(tr,rr)=>(I(),await T(this,r,h).call(this,tr,rr)),rollback:async()=>{I(),await T(this,r,h).call(this,"ROLLBACK"),t=!0},get closed(){return t}};try{let tr=await e(B);return t||(t=!0,await T(this,r,h).call(this,"COMMIT")),x$2(this,u,!1),tr}catch(tr){throw t||await T(this,r,h).call(this,"ROLLBACK"),x$2(this,u,!1),tr}})}async runExclusive(e){return await this._runExclusiveQuery(e)}};b=new WeakMap,u=new WeakMap,r=new WeakSet,l=async function(e,t={}){return await this.execProtocol(e,{...t,syncToFs:!1})},g$1=async function(e,t=[],I){return await this._runExclusiveQuery(async()=>{T(this,r,R).call(this,"runQuery",e,t,I),await this._handleBlob(I==null?void 0:I.blob);let B;try{let{messages:rr}=await T(this,r,l).call(this,O$1.parse({text:e,types:I==null?void 0:I.paramTypes}),I),ir=De((await T(this,r,l).call(this,O$1.describe({type:"S"}),I)).messages),lr=t.map((dr,mr)=>{var _r;let fr=ir[mr];if(dr==null)return null;let hr=((_r=I==null?void 0:I.serializers)==null?void 0:_r[fr])??this.serializers[fr];return hr?hr(dr):dr.toString()});B=[...rr,...(await T(this,r,l).call(this,O$1.bind({values:lr}),I)).messages,...(await T(this,r,l).call(this,O$1.describe({type:"P"}),I)).messages,...(await T(this,r,l).call(this,O$1.execute({}),I)).messages]}finally{await T(this,r,l).call(this,O$1.sync(),I)}await this._cleanupBlob(),h$1(this,u)||await this.syncToFs();let tr=await this._getWrittenBlob();return bn(B,this.parsers,I,tr)[0]})},h=async function(e,t){return await this._runExclusiveQuery(async()=>{T(this,r,R).call(this,"runExec",e,t),await this._handleBlob(t==null?void 0:t.blob);let I;try{I=(await T(this,r,l).call(this,O$1.query(e),t)).messages}finally{await T(this,r,l).call(this,O$1.sync(),t)}this._cleanupBlob(),h$1(this,u)||await this.syncToFs();let B=await this._getWrittenBlob();return bn(I,this.parsers,t,B)})},R=function(...e){this.debug>0&&console.log(...e)};var w=D$1((e,t)=>{u$1();var I=9007199254740991,B=function(br){return br}();function tr(br){return br===B}function rr(br){return typeof br=="string"||Object.prototype.toString.call(br)=="[object String]"}function ir(br){return Object.prototype.toString.call(br)=="[object Date]"}function lr(br){return br!==null&&typeof br=="object"}function dr(br){return typeof br=="function"}function mr(br){return typeof br=="number"&&br>-1&&br%1==0&&br<=I}function fr(br){return Object.prototype.toString.call(br)=="[object Array]"}function hr(br){return lr(br)&&!dr(br)&&mr(br.length)}function _r(br){return Object.prototype.toString.call(br)=="[object ArrayBuffer]"}function yr(br,gr){return Array.prototype.map.call(br,gr)}function Mr(br,gr){var wr=B;return dr(gr)&&Array.prototype.every.call(br,function(xr,Ir,kr){var Or=gr(xr,Ir,kr);return Or&&(wr=xr),!Or}),wr}function vr(br){return Object.assign.apply(null,arguments)}function Sr(br){var gr,wr,xr;if(rr(br)){for(wr=br.length,xr=new Uint8Array(wr),gr=0;gr<wr;gr++)xr[gr]=br.charCodeAt(gr)&255;return xr}return _r(br)?new Uint8Array(br):lr(br)&&_r(br.buffer)?new Uint8Array(br.buffer):hr(br)?new Uint8Array(br):lr(br)&&dr(br.toString)?Sr(br.toString()):new Uint8Array}t.exports.MAX_SAFE_INTEGER=I,t.exports.isUndefined=tr,t.exports.isString=rr,t.exports.isObject=lr,t.exports.isDateTime=ir,t.exports.isFunction=dr,t.exports.isArray=fr,t.exports.isArrayLike=hr,t.exports.isArrayBuffer=_r,t.exports.map=yr,t.exports.find=Mr,t.exports.extend=vr,t.exports.toUint8Array=Sr}),x=D$1((e,t)=>{u$1();var I="\0";t.exports={NULL_CHAR:I,TMAGIC:"ustar"+I+"00",OLDGNU_MAGIC:"ustar "+I,REGTYPE:0,LNKTYPE:1,SYMTYPE:2,CHRTYPE:3,BLKTYPE:4,DIRTYPE:5,FIFOTYPE:6,CONTTYPE:7,TSUID:parseInt("4000",8),TSGID:parseInt("2000",8),TSVTX:parseInt("1000",8),TUREAD:parseInt("0400",8),TUWRITE:parseInt("0200",8),TUEXEC:parseInt("0100",8),TGREAD:parseInt("0040",8),TGWRITE:parseInt("0020",8),TGEXEC:parseInt("0010",8),TOREAD:parseInt("0004",8),TOWRITE:parseInt("0002",8),TOEXEC:parseInt("0001",8),TPERMALL:parseInt("0777",8),TPERMMASK:parseInt("0777",8)}}),L=D$1((e,t)=>{u$1();var I=w(),B=x(),tr=512,rr=B.TPERMALL,ir=0,lr=0,dr=[["name",100,0,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["mode",8,100,function(gr,wr){var xr=gr[wr[0]]||rr;return xr=xr&B.TPERMMASK,_r(xr,wr[1],rr)},function(gr,wr,xr){var Ir=vr(gr.slice(wr,wr+xr[1]));return Ir&=B.TPERMMASK,Ir}],["uid",8,108,function(gr,wr){return _r(gr[wr[0]],wr[1],ir)},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["gid",8,116,function(gr,wr){return _r(gr[wr[0]],wr[1],lr)},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["size",12,124,function(gr,wr){return _r(gr.data.length,wr[1])},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["modifyTime",12,136,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}],["checksum",8,148,function(gr,wr){return" "},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["type",1,156,function(gr,wr){return""+(parseInt(gr[wr[0]],10)||0)%8},function(gr,wr,xr){return(parseInt(String.fromCharCode(gr[wr]),10)||0)%8}],["linkName",100,157,function(gr,wr){return""},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["ustar",8,257,function(gr,wr){return B.TMAGIC},function(gr,wr,xr){return fr(Mr(gr.slice(wr,wr+xr[1]),!0))},function(gr,wr){return gr[wr[0]]==B.TMAGIC||gr[wr[0]]==B.OLDGNU_MAGIC}],["owner",32,265,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["group",32,297,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["majorNumber",8,329,function(gr,wr){return""},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["minorNumber",8,337,function(gr,wr){return""},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["prefix",131,345,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["accessTime",12,476,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}],["createTime",12,488,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}]],mr=function(gr){var wr=gr[gr.length-1];return wr[2]+wr[1]}(dr);function fr(gr){if(gr.length==8){var wr=gr.split("");if(wr[5]==B.NULL_CHAR)return(wr[6]==" "||wr[6]==B.NULL_CHAR)&&(wr[6]="0"),(wr[7]==" "||wr[7]==B.NULL_CHAR)&&(wr[7]="0"),wr=wr.join(""),wr==B.TMAGIC?wr:gr;if(wr[7]==B.NULL_CHAR)return wr[5]==B.NULL_CHAR&&(wr[5]=" "),wr[6]==B.NULL_CHAR&&(wr[6]=" "),wr==B.OLDGNU_MAGIC?wr:gr}return gr}function hr(gr,wr){return wr-=1,I.isUndefined(gr)&&(gr=""),gr=(""+gr).substr(0,wr),gr+B.NULL_CHAR}function _r(gr,wr,xr){for(xr=parseInt(xr)||0,wr-=1,gr=(parseInt(gr)||xr).toString(8).substr(-wr,wr);gr.length<wr;)gr="0"+gr;return gr+B.NULL_CHAR}function yr(gr,wr){if(I.isDateTime(gr))gr=Math.floor(1*gr/1e3);else if(gr=parseInt(gr,10),isFinite(gr)){if(gr<=0)return""}else gr=Math.floor(1*new Date/1e3);return _r(gr,wr,0)}function Mr(gr,wr){var xr=String.fromCharCode.apply(null,gr);if(wr)return xr;var Ir=xr.indexOf(B.NULL_CHAR);return Ir>=0?xr.substr(0,Ir):xr}function vr(gr){var wr=String.fromCharCode.apply(null,gr);return parseInt(wr.replace(/^0+$/g,""),8)||0}function Sr(gr){return gr.length==0||gr[0]==0?null:new Date(1e3*vr(gr))}function br(gr,wr,xr){var Ir=parseInt(wr,10)||0,kr=Math.min(Ir+mr,gr.length),Or=0,Lr=0,Kn=0;xr&&dr.every(function(Jn){return Jn[0]=="checksum"?(Lr=Ir+Jn[2],Kn=Lr+Jn[1],!1):!0});for(var Pr=32,Fr=Ir;Fr<kr;Fr++){var Jr=Fr>=Lr&&Fr<Kn?Pr:gr[Fr];Or=(Or+Jr)%262144}return Or}t.exports.recordSize=tr,t.exports.defaultFileMode=rr,t.exports.defaultUid=ir,t.exports.defaultGid=lr,t.exports.posixHeader=dr,t.exports.effectiveHeaderSize=mr,t.exports.calculateChecksum=br,t.exports.formatTarString=hr,t.exports.formatTarNumber=_r,t.exports.formatTarDateTime=yr,t.exports.parseTarString=Mr,t.exports.parseTarNumber=vr,t.exports.parseTarDateTime=Sr}),er=D$1((e,t)=>{u$1();var I=x(),B=w(),tr=L();function rr(hr){return tr.recordSize}function ir(hr){return Math.ceil(hr.data.length/tr.recordSize)*tr.recordSize}function lr(hr){var _r=0;return hr.forEach(function(yr){_r+=rr()+ir(yr)}),_r+=tr.recordSize*2,new Uint8Array(_r)}function dr(hr,_r,yr){yr=parseInt(yr)||0;var Mr=yr;tr.posixHeader.forEach(function(wr){for(var xr=wr[3](_r,wr),Ir=xr.length,kr=0;kr<Ir;kr+=1)hr[Mr+kr]=xr.charCodeAt(kr)&255;Mr+=wr[1]});var vr=B.find(tr.posixHeader,function(wr){return wr[0]=="checksum"});if(vr){var Sr=tr.calculateChecksum(hr,yr,!0),br=tr.formatTarNumber(Sr,vr[1]-2)+I.NULL_CHAR+" ";Mr=yr+vr[2];for(var gr=0;gr<br.length;gr+=1)hr[Mr]=br.charCodeAt(gr)&255,Mr++}return yr+rr()}function mr(hr,_r,yr){return yr=parseInt(yr,10)||0,hr.set(_r.data,yr),yr+ir(_r)}function fr(hr){hr=B.map(hr,function(Mr){return B.extend({},Mr,{data:B.toUint8Array(Mr.data)})});var _r=lr(hr),yr=0;return hr.forEach(function(Mr){yr=dr(_r,Mr,yr),yr=mr(_r,Mr,yr)}),_r}t.exports.tar=fr}),nr=D$1((e,t)=>{u$1();var I=x(),B=w(),tr=L(),rr={extractData:!0,checkHeader:!0,checkChecksum:!0,checkFileSize:!0},ir={size:!0,checksum:!0,ustar:!0},lr={unexpectedEndOfFile:"Unexpected end of file.",fileCorrupted:"File is corrupted.",checksumCheckFailed:"Checksum check failed."};function dr(vr){return tr.recordSize}function mr(vr){return Math.ceil(vr/tr.recordSize)*tr.recordSize}function fr(vr,Sr){for(var br=Sr,gr=Math.min(vr.length,Sr+tr.recordSize*2),wr=br;wr<gr;wr++)if(vr[wr]!=0)return!1;return!0}function hr(vr,Sr,br){if(vr.length-Sr<tr.recordSize){if(br.checkFileSize)throw new Error(lr.unexpectedEndOfFile);return null}Sr=parseInt(Sr)||0;var gr={},wr=Sr;if(tr.posixHeader.forEach(function(kr){gr[kr[0]]=kr[4](vr,wr,kr),wr+=kr[1]}),gr.type!=0&&(gr.size=0),br.checkHeader&&tr.posixHeader.forEach(function(kr){if(B.isFunction(kr[5])&&!kr[5](gr,kr)){var Or=new Error(lr.fileCorrupted);throw Or.data={offset:Sr+kr[2],field:kr[0]},Or}}),br.checkChecksum){var xr=tr.calculateChecksum(vr,Sr,!0);if(xr!=gr.checksum){var Ir=new Error(lr.checksumCheckFailed);throw Ir.data={offset:Sr,header:gr,checksum:xr},Ir}}return gr}function _r(vr,Sr,br,gr){return gr.extractData?br.size<=0?new Uint8Array:vr.slice(Sr,Sr+br.size):null}function yr(vr,Sr){var br={};return tr.posixHeader.forEach(function(gr){var wr=gr[0];ir[wr]||(br[wr]=vr[wr])}),br.isOldGNUFormat=vr.ustar==I.OLDGNU_MAGIC,Sr&&(br.data=Sr),br}function Mr(vr,Sr){Sr=B.extend({},rr,Sr);for(var br=[],gr=0,wr=vr.length;wr-gr>=tr.recordSize;){vr=B.toUint8Array(vr);var xr=hr(vr,gr,Sr);if(!xr)break;gr+=dr();var Ir=_r(vr,gr,xr,Sr);if(br.push(yr(xr,Ir)),gr+=mr(xr.size),fr(vr,gr))break}return br}t.exports.untar=Mr}),or=D$1((e,t)=>{u$1();var I=w(),B=x(),tr=er(),rr=nr();I.extend(t.exports,tr,rr,B)});u$1();u$1();var g=L$2(or());async function H$1(e,t,I="pgdata",B="auto"){let tr=Br(e,t),[rr,ir]=await qr(tr,B),lr=I+(ir?".tar.gz":".tar"),dr=ir?"application/x-gzip":"application/x-tar";return typeof File<"u"?new File([rr],lr,{type:dr}):new Blob([rr],{type:dr})}var Hr=["application/x-gtar","application/x-tar+gzip","application/x-gzip","application/gzip"];async function ce$1(e,t,I){let B=new Uint8Array(await t.arrayBuffer()),tr=typeof File<"u"&&t instanceof File?t.name:void 0;(Hr.includes(t.type)||tr!=null&&tr.endsWith(".tgz")||tr!=null&&tr.endsWith(".tar.gz"))&&(B=await ar(B));let rr;try{rr=(0,g.untar)(B)}catch(ir){if(ir instanceof Error&&ir.message.includes("File is corrupted"))B=await ar(B),rr=(0,g.untar)(B);else throw ir}for(let ir of rr){let lr=I+ir.name,dr=lr.split("/").slice(0,-1);for(let mr=1;mr<=dr.length;mr++){let fr=dr.slice(0,mr).join("/");e.analyzePath(fr).exists||e.mkdir(fr)}ir.type===g.REGTYPE?(e.writeFile(lr,ir.data),e.utime(lr,sr(ir.modifyTime),sr(ir.modifyTime))):ir.type===g.DIRTYPE&&e.mkdir(lr)}}function jr(e,t){let I=[],B=tr=>{e.readdir(tr).forEach(rr=>{if(rr==="."||rr==="..")return;let ir=tr+"/"+rr,lr=e.stat(ir),dr=e.isFile(lr.mode)?e.readFile(ir,{encoding:"binary"}):new Uint8Array(0);I.push({name:ir.substring(t.length),mode:lr.mode,size:lr.size,type:e.isFile(lr.mode)?g.REGTYPE:g.DIRTYPE,modifyTime:lr.mtime,data:dr}),e.isDir(lr.mode)&&B(ir)})};return B(t),I}function Br(e,t){let I=jr(e,t);return(0,g.tar)(I)}async function qr(e,t="auto"){if(t==="none")return[e,!1];if(typeof CompressionStream<"u")return[await Yr(e),!0];if(typeof process<"u"&&process.versions&&process.versions.node)return[await Wr(e),!0];if(t==="auto")return[e,!1];throw new Error("Compression not supported in this environment")}async function Yr(e){let t=new CompressionStream("gzip"),I=t.writable.getWriter(),B=t.readable.getReader();I.write(e),I.close();let tr=[];for(;;){let{value:lr,done:dr}=await B.read();if(dr)break;lr&&tr.push(lr)}let rr=new Uint8Array(tr.reduce((lr,dr)=>lr+dr.length,0)),ir=0;return tr.forEach(lr=>{rr.set(lr,ir),ir+=lr.length}),rr}async function Wr(e){let{promisify:t}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(B=>B.c$),[],import.meta.url),{gzip:I}=await __vitePreload(async()=>{const{gzip:B}=await import("./index.BMPxkQED.js").then(tr=>tr.c$);return{gzip:B}},[],import.meta.url);return await t(I)(e)}async function ar(e){if(typeof CompressionStream<"u")return await Xr(e);if(typeof process<"u"&&process.versions&&process.versions.node)return await Kr(e);throw new Error("Unsupported environment for decompression")}async function Xr(e){let t=new DecompressionStream("gzip"),I=t.writable.getWriter(),B=t.readable.getReader();I.write(e),I.close();let tr=[];for(;;){let{value:lr,done:dr}=await B.read();if(dr)break;lr&&tr.push(lr)}let rr=new Uint8Array(tr.reduce((lr,dr)=>lr+dr.length,0)),ir=0;return tr.forEach(lr=>{rr.set(lr,ir),ir+=lr.length}),rr}async function Kr(e){let{promisify:t}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(B=>B.c$),[],import.meta.url),{gunzip:I}=await __vitePreload(async()=>{const{gunzip:B}=await import("./index.BMPxkQED.js").then(tr=>tr.c$);return{gunzip:B}},[],import.meta.url);return await t(I)(e)}function sr(e){return e?typeof e=="number"?e:Math.floor(e.getTime()/1e3):Math.floor(Date.now()/1e3)}var Vr="/tmp/pglite",C=Vr+"/base",ur=class{constructor(e){this.dataDir=e}async init(e,t){return this.pg=e,{emscriptenOpts:t}}async syncToFs(e){}async initialSyncFs(){}async closeFs(){}async dumpTar(e,t){return H$1(this.pg.Module.FS,C,e,t)}},cr=class{constructor(e,{debug:t=!1}={}){this.dataDir=e,this.debug=t}async syncToFs(e){}async initialSyncFs(){}async closeFs(){}async dumpTar(e,t){return H$1(this.pg.Module.FS,C,e,t)}async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],I=>{let B=Zr(I,this);I.FS.mkdir(C),I.FS.mount(B,{},C)}]}}}},pr={EBADF:8,EBADFD:127,EEXIST:20,EINVAL:28,EISDIR:31,ENODEV:43,ENOENT:44,ENOTDIR:54,ENOTEMPTY:55},Zr=(e,t)=>{let I=e.FS,B=t.debug?console.log:null,tr={tryFSOperation(rr){try{return rr()}catch(ir){throw ir.code?ir.code==="UNKNOWN"?new I.ErrnoError(pr.EINVAL):new I.ErrnoError(ir.code):ir}},mount(rr){return tr.createNode(null,"/",16895,0)},syncfs(rr,ir,lr){},createNode(rr,ir,lr,dr){if(!I.isDir(lr)&&!I.isFile(lr))throw new I.ErrnoError(28);let mr=I.createNode(rr,ir,lr);return mr.node_ops=tr.node_ops,mr.stream_ops=tr.stream_ops,mr},getMode:function(rr){return B==null||B("getMode",rr),tr.tryFSOperation(()=>t.lstat(rr).mode)},realPath:function(rr){let ir=[];for(;rr.parent!==rr;)ir.push(rr.name),rr=rr.parent;return ir.push(rr.mount.opts.root),ir.reverse(),ir.join("/")},node_ops:{getattr(rr){B==null||B("getattr",tr.realPath(rr));let ir=tr.realPath(rr);return tr.tryFSOperation(()=>{let lr=t.lstat(ir);return{...lr,dev:0,ino:rr.id,nlink:1,rdev:rr.rdev,atime:new Date(lr.atime),mtime:new Date(lr.mtime),ctime:new Date(lr.ctime)}})},setattr(rr,ir){B==null||B("setattr",tr.realPath(rr),ir);let lr=tr.realPath(rr);tr.tryFSOperation(()=>{ir.mode!==void 0&&t.chmod(lr,ir.mode),ir.size!==void 0&&t.truncate(lr,ir.size),ir.timestamp!==void 0&&t.utimes(lr,ir.timestamp,ir.timestamp),ir.size!==void 0&&t.truncate(lr,ir.size)})},lookup(rr,ir){B==null||B("lookup",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/"),dr=tr.getMode(lr);return tr.createNode(rr,ir,dr)},mknod(rr,ir,lr,dr){B==null||B("mknod",tr.realPath(rr),ir,lr,dr);let mr=tr.createNode(rr,ir,lr,dr),fr=tr.realPath(mr);return tr.tryFSOperation(()=>(I.isDir(mr.mode)?t.mkdir(fr,{mode:lr}):t.writeFile(fr,"",{mode:lr}),mr))},rename(rr,ir,lr){B==null||B("rename",tr.realPath(rr),tr.realPath(ir),lr);let dr=tr.realPath(rr),mr=[tr.realPath(ir),lr].join("/");tr.tryFSOperation(()=>{t.rename(dr,mr)}),rr.name=lr},unlink(rr,ir){B==null||B("unlink",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/");try{t.unlink(lr)}catch{}},rmdir(rr,ir){B==null||B("rmdir",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/");return tr.tryFSOperation(()=>{t.rmdir(lr)})},readdir(rr){B==null||B("readdir",tr.realPath(rr));let ir=tr.realPath(rr);return tr.tryFSOperation(()=>t.readdir(ir))},symlink(rr,ir,lr){throw B==null||B("symlink",tr.realPath(rr),ir,lr),new I.ErrnoError(63)},readlink(rr){throw B==null||B("readlink",tr.realPath(rr)),new I.ErrnoError(63)}},stream_ops:{open(rr){B==null||B("open stream",tr.realPath(rr.node));let ir=tr.realPath(rr.node);return tr.tryFSOperation(()=>{I.isFile(rr.node.mode)&&(rr.shared.refcount=1,rr.nfd=t.open(ir))})},close(rr){return B==null||B("close stream",tr.realPath(rr.node)),tr.tryFSOperation(()=>{I.isFile(rr.node.mode)&&rr.nfd&&--rr.shared.refcount===0&&t.close(rr.nfd)})},dup(rr){B==null||B("dup stream",tr.realPath(rr.node)),rr.shared.refcount++},read(rr,ir,lr,dr,mr){return B==null||B("read stream",tr.realPath(rr.node),lr,dr,mr),dr===0?0:tr.tryFSOperation(()=>t.read(rr.nfd,ir,lr,dr,mr))},write(rr,ir,lr,dr,mr){return B==null||B("write stream",tr.realPath(rr.node),lr,dr,mr),tr.tryFSOperation(()=>t.write(rr.nfd,ir.buffer,lr,dr,mr))},llseek(rr,ir,lr){B==null||B("llseek stream",tr.realPath(rr.node),ir,lr);let dr=ir;if(lr===1?dr+=rr.position:lr===2&&I.isFile(rr.node.mode)&&tr.tryFSOperation(()=>{let mr=t.fstat(rr.nfd);dr+=mr.size}),dr<0)throw new I.ErrnoError(28);return dr},mmap(rr,ir,lr,dr,mr){if(B==null||B("mmap stream",tr.realPath(rr.node),ir,lr,dr,mr),!I.isFile(rr.node.mode))throw new I.ErrnoError(pr.ENODEV);let fr=e.mmapAlloc(ir);return tr.stream_ops.read(rr,e.HEAP8,fr,ir,lr),{ptr:fr,allocated:!0}},msync(rr,ir,lr,dr,mr){return B==null||B("msync stream",tr.realPath(rr.node),lr,dr,mr),tr.stream_ops.write(rr,ir,0,dr,lr),0}}};return tr};u$1();u$1();u$1();var He=new Error("request for lock canceled"),We=function(e,t,I,B){function tr(rr){return rr instanceof I?rr:new I(function(ir){ir(rr)})}return new(I||(I=Promise))(function(rr,ir){function lr(fr){try{mr(B.next(fr))}catch(hr){ir(hr)}}function dr(fr){try{mr(B.throw(fr))}catch(hr){ir(hr)}}function mr(fr){fr.done?rr(fr.value):tr(fr.value).then(lr,dr)}mr((B=B.apply(e,[])).next())})},ce=class{constructor(e,t=He){this._value=e,this._cancelError=t,this._weightedQueues=[],this._weightedWaiters=[]}acquire(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((t,I)=>{this._weightedQueues[e-1]||(this._weightedQueues[e-1]=[]),this._weightedQueues[e-1].push({resolve:t,reject:I}),this._dispatch()})}runExclusive(e,t=1){return We(this,void 0,void 0,function*(){let[I,B]=yield this.acquire(t);try{return yield e(I)}finally{B()}})}waitForUnlock(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise(t=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),this._weightedWaiters[e-1].push(t),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatch()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatch()}cancel(){this._weightedQueues.forEach(e=>e.forEach(t=>t.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var e;for(let t=this._value;t>0;t--){let I=(e=this._weightedQueues[t-1])===null||e===void 0?void 0:e.shift();if(!I)continue;let B=this._value,tr=t;this._value-=t,t=this._value+1,I.resolve([B,this._newReleaser(tr)])}this._drainUnlockWaiters()}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){for(let e=this._value;e>0;e--)this._weightedWaiters[e-1]&&(this._weightedWaiters[e-1].forEach(t=>t()),this._weightedWaiters[e-1]=[])}},je=function(e,t,I,B){function tr(rr){return rr instanceof I?rr:new I(function(ir){ir(rr)})}return new(I||(I=Promise))(function(rr,ir){function lr(fr){try{mr(B.next(fr))}catch(hr){ir(hr)}}function dr(fr){try{mr(B.throw(fr))}catch(hr){ir(hr)}}function mr(fr){fr.done?rr(fr.value):tr(fr.value).then(lr,dr)}mr((B=B.apply(e,[])).next())})},H=class{constructor(e){this._semaphore=new ce(1,e)}acquire(){return je(this,void 0,void 0,function*(){let[,e]=yield this._semaphore.acquire();return e})}runExclusive(e){return this._semaphore.runExclusive(()=>e())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}};u$1();var Ie=L$2(or());async function ge(e){if(Fe$1){let t=await __vitePreload(()=>import("./index.BMPxkQED.js").then(lr=>lr.c$),[],import.meta.url),I=await __vitePreload(()=>import("./index.BMPxkQED.js").then(lr=>lr.c$),[],import.meta.url),{Writable:B}=await __vitePreload(async()=>{const{Writable:lr}=await import("./index.BMPxkQED.js").then(dr=>dr.c$);return{Writable:lr}},[],import.meta.url),{pipeline:tr}=await __vitePreload(async()=>{const{pipeline:lr}=await import("./index.BMPxkQED.js").then(dr=>dr.c$);return{pipeline:lr}},[],import.meta.url);if(!t.existsSync(e))throw new Error(`Extension bundle not found: ${e}`);let rr=I.createGunzip(),ir=[];return await tr(t.createReadStream(e),rr,new B({write(lr,dr,mr){ir.push(lr),mr()}})),new Blob(ir)}else{let t=await fetch(e.toString());if(!t.ok||!t.body)return null;if(t.headers.get("Content-Encoding")==="gzip")return t.blob();{let I=new DecompressionStream("gzip");return new Response(t.body.pipeThrough(I)).blob()}}}async function Pe(e,t){for(let I in e.pg_extensions){let B;try{B=await e.pg_extensions[I]}catch(tr){console.error("Failed to fetch extension:",I,tr);continue}if(B){let tr=new Uint8Array(await B.arrayBuffer());Ve(e,I,tr,t)}else console.error("Could not get binary data for extension:",I)}}function Ve(e,t,I,B){Ie.default.untar(I).forEach(tr=>{if(!tr.name.startsWith(".")){let rr=e.WASM_PREFIX+"/"+tr.name;if(tr.name.endsWith(".so")){let ir=(...dr)=>{B("pgfs:ext OK",rr,dr)},lr=(...dr)=>{B("pgfs:ext FAIL",rr,dr)};e.FS.createPreloadedFile(Ke(rr),tr.name.split("/").pop().slice(0,-3),tr.data,!0,!0,ir,lr,!1)}else e.FS.writeFile(rr,tr.data)}})}function Ke(e){let t=e.lastIndexOf("/");return t>0?e.slice(0,t):e}u$1();u$1();var ee=class extends ur{async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],I=>{let B=I.FS.filesystems.IDBFS;I.FS.mkdir("/pglite"),I.FS.mkdir(`/pglite/${this.dataDir}`),I.FS.mount(B,{},`/pglite/${this.dataDir}`),I.FS.symlink(`/pglite/${this.dataDir}`,C)}]}}}initialSyncFs(){return new Promise((e,t)=>{this.pg.Module.FS.syncfs(!0,I=>{I?t(I):e()})})}syncToFs(e){return new Promise((t,I)=>{this.pg.Module.FS.syncfs(!1,B=>{B?I(B):t()})})}async closeFs(){let e=this.pg.Module.FS.filesystems.IDBFS.dbs[this.dataDir];e&&e.close(),this.pg.Module.FS.quit()}};u$1();var te=class extends ur{async closeFs(){this.pg.Module.FS.quit()}};function Fe(e){let t;if(e!=null&&e.startsWith("file://")){if(e=e.slice(7),!e)throw new Error("Invalid dataDir, must be a valid path");t="nodefs"}else e!=null&&e.startsWith("idb://")?(e=e.slice(6),t="idbfs"):e!=null&&e.startsWith("opfs-ahp://")?(e=e.slice(11),t="opfs-ahp"):!e||e!=null&&e.startsWith("memory://")?t="memoryfs":t="nodefs";return{dataDir:e,fsType:t}}async function Ae(e,t){let I;if(e&&t==="nodefs"){let{NodeFS:B}=await __vitePreload(()=>import("./nodefs.DpgsV4pB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);I=new B(e)}else if(e&&t==="idbfs")I=new ee(e);else if(e&&t==="opfs-ahp"){let{OpfsAhpFS:B}=await __vitePreload(()=>import("./opfs-ahp.CCt086dZ.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);I=new B(e)}else I=new te;return I}u$1();u$1();var Qe=(()=>{var _scriptName=import.meta.url;return async function(moduleArg={}){var moduleRtn,Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t}),ENVIRONMENT_IS_WEB=typeof window=="object",ENVIRONMENT_IS_WORKER=typeof WorkerGlobalScope<"u",ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";if(ENVIRONMENT_IS_NODE){let{createRequire:e}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(I=>I.c$),[],import.meta.url),t=import.meta.url;t.startsWith("data:")&&(t="/");var require=e(t)}Module.expectedDataFileDownloads??(Module.expectedDataFileDownloads=0),Module.expectedDataFileDownloads++,(()=>{var e=typeof ENVIRONMENT_IS_PTHREAD<"u"&&ENVIRONMENT_IS_PTHREAD,t=typeof ENVIRONMENT_IS_WASM_WORKER<"u"&&ENVIRONMENT_IS_WASM_WORKER;if(e||t)return;var I=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";function B(tr){typeof window=="object"?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):typeof process>"u"&&typeof location<"u"&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var rr="postgres.data",ir="postgres.data",lr=Module.locateFile?Module.locateFile(ir,""):ir,dr=tr.remote_package_size;function mr(Mr,vr,Sr,br){if(I){require("fs").readFile(Mr,(gr,wr)=>{gr?br(gr):Sr(wr.buffer)});return}Module.dataFileDownloads??(Module.dataFileDownloads={}),fetch(Mr).catch(gr=>Promise.reject(new Error(`Network Error: ${Mr}`,{cause:gr}))).then(gr=>{var Pr;if(!gr.ok)return Promise.reject(new Error(`${gr.status}: ${gr.url}`));if(!gr.body&&gr.arrayBuffer)return gr.arrayBuffer().then(Sr);let wr=gr.body.getReader(),xr=()=>wr.read().then(Kn).catch(Fr=>Promise.reject(new Error(`Unexpected error while handling : ${gr.url} ${Fr}`,{cause:Fr}))),Ir=[],kr=gr.headers,Or=Number(kr.get("Content-Length")??vr),Lr=0,Kn=({done:Fr,value:Jr})=>{var Jn;if(Fr){let Ar=new Uint8Array(Ir.map(Qr=>Qr.length).reduce((Qr,ai)=>Qr+ai,0)),$r=0;for(let Qr of Ir)Ar.set(Qr,$r),$r+=Qr.length;Sr(Ar.buffer)}else{Ir.push(Jr),Lr+=Jr.length,Module.dataFileDownloads[Mr]={loaded:Lr,total:Or};let Ar=0,$r=0;for(let Qr of Object.values(Module.dataFileDownloads))Ar+=Qr.loaded,$r+=Qr.total;return(Jn=Module.setStatus)==null||Jn.call(Module,`Downloading data... (${Ar}/${$r})`),xr()}};return(Pr=Module.setStatus)==null||Pr.call(Module,"Downloading data..."),xr()})}function fr(Mr){console.error("package error:",Mr)}var hr=null,_r=Module.getPreloadedPackage?Module.getPreloadedPackage(lr,dr):null;_r||mr(lr,dr,Mr=>{hr?(hr(Mr),hr=null):_r=Mr},fr);function yr(Mr){function vr(xr,Ir){if(!xr)throw Ir+new Error().stack}Mr.FS_createPath("/","home",!0,!0),Mr.FS_createPath("/home","web_user",!0,!0),Mr.FS_createPath("/","tmp",!0,!0),Mr.FS_createPath("/tmp","pglite",!0,!0),Mr.FS_createPath("/tmp/pglite","bin",!0,!0),Mr.FS_createPath("/tmp/pglite","lib",!0,!0),Mr.FS_createPath("/tmp/pglite/lib","postgresql",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql","pgxs",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs","config",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs","src",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src","makefiles",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src","test",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src/test","isolation",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src/test","regress",!0,!0),Mr.FS_createPath("/tmp/pglite","share",!0,!0),Mr.FS_createPath("/tmp/pglite/share","postgresql",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","extension",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","timezone",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Africa",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","America",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Argentina",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Indiana",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Kentucky",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","North_Dakota",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Antarctica",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Arctic",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Asia",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Atlantic",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Australia",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Brazil",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Canada",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Chile",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Etc",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Europe",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Indian",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Mexico",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Pacific",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","US",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","timezonesets",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","tsearch_data",!0,!0);function Sr(xr,Ir,kr){this.start=xr,this.end=Ir,this.audio=kr}Sr.prototype={requests:{},open:function(xr,Ir){this.name=Ir,this.requests[Ir]=this,Mr.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var xr=this.byteArray.subarray(this.start,this.end);this.finish(xr)},finish:function(xr){var Ir=this;Mr.FS_createDataFile(this.name,null,xr,!0,!0,!0),Mr.removeRunDependency(`fp ${Ir.name}`),this.requests[this.name]=null}};for(var br=tr.files,gr=0;gr<br.length;++gr)new Sr(br[gr].start,br[gr].end,br[gr].audio||0).open("GET",br[gr].filename);function wr(xr){vr(xr,"Loading data file failed."),vr(xr.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var Ir=new Uint8Array(xr);Sr.prototype.byteArray=Ir;for(var kr=tr.files,Or=0;Or<kr.length;++Or)Sr.prototype.requests[kr[Or].filename].onload();Mr.removeRunDependency("datafile_postgres.data")}Mr.addRunDependency("datafile_postgres.data"),Mr.preloadResults??(Mr.preloadResults={}),Mr.preloadResults[rr]={fromCache:!1},_r?(wr(_r),_r=null):hr=wr}Module.calledRun?yr(Module):(Module.preRun??(Module.preRun=[])).push(yr)}B({files:[{filename:"/home/web_user/.pgpass",start:0,end:204},{filename:"/tmp/pglite/bin/initdb",start:204,end:216},{filename:"/tmp/pglite/bin/postgres",start:216,end:228},{filename:"/tmp/pglite/lib/postgresql/cyrillic_and_mic.so",start:228,end:20397},{filename:"/tmp/pglite/lib/postgresql/dict_snowball.so",start:20397,end:1581299},{filename:"/tmp/pglite/lib/postgresql/euc2004_sjis2004.so",start:1581299,end:1592382},{filename:"/tmp/pglite/lib/postgresql/euc_cn_and_mic.so",start:1592382,end:1599256},{filename:"/tmp/pglite/lib/postgresql/euc_jp_and_sjis.so",start:1599256,end:1622931},{filename:"/tmp/pglite/lib/postgresql/euc_kr_and_mic.so",start:1622931,end:1630057},{filename:"/tmp/pglite/lib/postgresql/euc_tw_and_big5.so",start:1630057,end:1651566},{filename:"/tmp/pglite/lib/postgresql/latin2_and_win1250.so",start:1651566,end:1660345},{filename:"/tmp/pglite/lib/postgresql/latin_and_mic.so",start:1660345,end:1668272},{filename:"/tmp/pglite/lib/postgresql/libpqwalreceiver.so",start:1668272,end:2186522},{filename:"/tmp/pglite/lib/postgresql/pgoutput.so",start:2186522,end:2303364},{filename:"/tmp/pglite/lib/postgresql/pgxs/config/install-sh",start:2303364,end:2317361},{filename:"/tmp/pglite/lib/postgresql/pgxs/config/missing",start:2317361,end:2318709},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.global",start:2318709,end:2354956},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.port",start:2354956,end:2355232},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.shlib",start:2355232,end:2371270},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/makefiles/pgxs.mk",start:2371270,end:2386198},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/nls-global.mk",start:2386198,end:2393083},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/isolation/isolationtester.cjs",start:2393083,end:2589770},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/isolation/pg_isolation_regress.cjs",start:2589770,end:2742128},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/regress/pg_regress.cjs",start:2742128,end:2894476},{filename:"/tmp/pglite/lib/postgresql/plpgsql.so",start:2894476,end:3653241},{filename:"/tmp/pglite/password",start:3653241,end:3653250},{filename:"/tmp/pglite/share/postgresql/errcodes.txt",start:3653250,end:3686708},{filename:"/tmp/pglite/share/postgresql/extension/plpgsql--1.0.sql",start:3686708,end:3687366},{filename:"/tmp/pglite/share/postgresql/extension/plpgsql.control",start:3687366,end:3687559},{filename:"/tmp/pglite/share/postgresql/fix-CVE-2024-4317.sql",start:3687559,end:3693324},{filename:"/tmp/pglite/share/postgresql/information_schema.sql",start:3693324,end:3808299},{filename:"/tmp/pglite/share/postgresql/pg_hba.conf.sample",start:3808299,end:3813924},{filename:"/tmp/pglite/share/postgresql/pg_ident.conf.sample",start:3813924,end:3816564},{filename:"/tmp/pglite/share/postgresql/pg_service.conf.sample",start:3816564,end:3817168},{filename:"/tmp/pglite/share/postgresql/postgres.bki",start:3817168,end:4761272},{filename:"/tmp/pglite/share/postgresql/postgresql.conf.sample",start:4761272,end:4790919},{filename:"/tmp/pglite/share/postgresql/psqlrc.sample",start:4790919,end:4791197},{filename:"/tmp/pglite/share/postgresql/snowball_create.sql",start:4791197,end:4835373},{filename:"/tmp/pglite/share/postgresql/sql_features.txt",start:4835373,end:4871054},{filename:"/tmp/pglite/share/postgresql/system_constraints.sql",start:4871054,end:4879949},{filename:"/tmp/pglite/share/postgresql/system_functions.sql",start:4879949,end:4903264},{filename:"/tmp/pglite/share/postgresql/system_views.sql",start:4903264,end:4953537},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Abidjan",start:4953537,end:4953667},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Accra",start:4953667,end:4953797},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Addis_Ababa",start:4953797,end:4953988},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Algiers",start:4953988,end:4954458},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Asmara",start:4954458,end:4954649},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Asmera",start:4954649,end:4954840},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bamako",start:4954840,end:4954970},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bangui",start:4954970,end:4955150},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Banjul",start:4955150,end:4955280},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bissau",start:4955280,end:4955429},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Blantyre",start:4955429,end:4955560},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Brazzaville",start:4955560,end:4955740},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bujumbura",start:4955740,end:4955871},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Cairo",start:4955871,end:4957180},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Casablanca",start:4957180,end:4959099},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ceuta",start:4959099,end:4959661},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Conakry",start:4959661,end:4959791},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Dakar",start:4959791,end:4959921},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Dar_es_Salaam",start:4959921,end:4960112},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Djibouti",start:4960112,end:4960303},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Douala",start:4960303,end:4960483},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/El_Aaiun",start:4960483,end:4962313},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Freetown",start:4962313,end:4962443},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Gaborone",start:4962443,end:4962574},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Harare",start:4962574,end:4962705},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Johannesburg",start:4962705,end:4962895},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Juba",start:4962895,end:4963353},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kampala",start:4963353,end:4963544},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Khartoum",start:4963544,end:4964002},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kigali",start:4964002,end:4964133},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kinshasa",start:4964133,end:4964313},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lagos",start:4964313,end:4964493},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Libreville",start:4964493,end:4964673},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lome",start:4964673,end:4964803},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Luanda",start:4964803,end:4964983},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lubumbashi",start:4964983,end:4965114},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lusaka",start:4965114,end:4965245},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Malabo",start:4965245,end:4965425},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Maputo",start:4965425,end:4965556},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Maseru",start:4965556,end:4965746},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Mbabane",start:4965746,end:4965936},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Mogadishu",start:4965936,end:4966127},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Monrovia",start:4966127,end:4966291},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Nairobi",start:4966291,end:4966482},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ndjamena",start:4966482,end:4966642},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Niamey",start:4966642,end:4966822},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Nouakchott",start:4966822,end:4966952},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ouagadougou",start:4966952,end:4967082},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Porto-Novo",start:4967082,end:4967262},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Sao_Tome",start:4967262,end:4967435},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Timbuktu",start:4967435,end:4967565},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Tripoli",start:4967565,end:4967996},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Tunis",start:4967996,end:4968445},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Windhoek",start:4968445,end:4969083},{filename:"/tmp/pglite/share/postgresql/timezone/America/Adak",start:4969083,end:4970052},{filename:"/tmp/pglite/share/postgresql/timezone/America/Anchorage",start:4970052,end:4971029},{filename:"/tmp/pglite/share/postgresql/timezone/America/Anguilla",start:4971029,end:4971206},{filename:"/tmp/pglite/share/postgresql/timezone/America/Antigua",start:4971206,end:4971383},{filename:"/tmp/pglite/share/postgresql/timezone/America/Araguaina",start:4971383,end:4971975},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Buenos_Aires",start:4971975,end:4972683},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Catamarca",start:4972683,end:4973391},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/ComodRivadavia",start:4973391,end:4974099},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Cordoba",start:4974099,end:4974807},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Jujuy",start:4974807,end:4975497},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/La_Rioja",start:4975497,end:4976214},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Mendoza",start:4976214,end:4976922},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Rio_Gallegos",start:4976922,end:4977630},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Salta",start:4977630,end:4978320},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/San_Juan",start:4978320,end:4979037},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/San_Luis",start:4979037,end:4979754},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Tucuman",start:4979754,end:4980480},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Ushuaia",start:4980480,end:4981188},{filename:"/tmp/pglite/share/postgresql/timezone/America/Aruba",start:4981188,end:4981365},{filename:"/tmp/pglite/share/postgresql/timezone/America/Asuncion",start:4981365,end:4982249},{filename:"/tmp/pglite/share/postgresql/timezone/America/Atikokan",start:4982249,end:4982398},{filename:"/tmp/pglite/share/postgresql/timezone/America/Atka",start:4982398,end:4983367},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bahia",start:4983367,end:4984049},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bahia_Banderas",start:4984049,end:4984777},{filename:"/tmp/pglite/share/postgresql/timezone/America/Barbados",start:4984777,end:4985055},{filename:"/tmp/pglite/share/postgresql/timezone/America/Belem",start:4985055,end:4985449},{filename:"/tmp/pglite/share/postgresql/timezone/America/Belize",start:4985449,end:4986494},{filename:"/tmp/pglite/share/postgresql/timezone/America/Blanc-Sablon",start:4986494,end:4986671},{filename:"/tmp/pglite/share/postgresql/timezone/America/Boa_Vista",start:4986671,end:4987101},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bogota",start:4987101,end:4987280},{filename:"/tmp/pglite/share/postgresql/timezone/America/Boise",start:4987280,end:4988279},{filename:"/tmp/pglite/share/postgresql/timezone/America/Buenos_Aires",start:4988279,end:4988987},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cambridge_Bay",start:4988987,end:4989870},{filename:"/tmp/pglite/share/postgresql/timezone/America/Campo_Grande",start:4989870,end:4990822},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cancun",start:4990822,end:4991351},{filename:"/tmp/pglite/share/postgresql/timezone/America/Caracas",start:4991351,end:4991541},{filename:"/tmp/pglite/share/postgresql/timezone/America/Catamarca",start:4991541,end:4992249},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cayenne",start:4992249,end:4992400},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cayman",start:4992400,end:4992549},{filename:"/tmp/pglite/share/postgresql/timezone/America/Chicago",start:4992549,end:4994303},{filename:"/tmp/pglite/share/postgresql/timezone/America/Chihuahua",start:4994303,end:4994994},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ciudad_Juarez",start:4994994,end:4995712},{filename:"/tmp/pglite/share/postgresql/timezone/America/Coral_Harbour",start:4995712,end:4995861},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cordoba",start:4995861,end:4996569},{filename:"/tmp/pglite/share/postgresql/timezone/America/Costa_Rica",start:4996569,end:4996801},{filename:"/tmp/pglite/share/postgresql/timezone/America/Creston",start:4996801,end:4997041},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cuiaba",start:4997041,end:4997975},{filename:"/tmp/pglite/share/postgresql/timezone/America/Curacao",start:4997975,end:4998152},{filename:"/tmp/pglite/share/postgresql/timezone/America/Danmarkshavn",start:4998152,end:4998599},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dawson",start:4998599,end:4999628},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dawson_Creek",start:4999628,end:5000311},{filename:"/tmp/pglite/share/postgresql/timezone/America/Denver",start:5000311,end:5001353},{filename:"/tmp/pglite/share/postgresql/timezone/America/Detroit",start:5001353,end:5002252},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dominica",start:5002252,end:5002429},{filename:"/tmp/pglite/share/postgresql/timezone/America/Edmonton",start:5002429,end:5003399},{filename:"/tmp/pglite/share/postgresql/timezone/America/Eirunepe",start:5003399,end:5003835},{filename:"/tmp/pglite/share/postgresql/timezone/America/El_Salvador",start:5003835,end:5004011},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ensenada",start:5004011,end:5005036},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fort_Nelson",start:5005036,end:5006484},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fort_Wayne",start:5006484,end:5007015},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fortaleza",start:5007015,end:5007499},{filename:"/tmp/pglite/share/postgresql/timezone/America/Glace_Bay",start:5007499,end:5008379},{filename:"/tmp/pglite/share/postgresql/timezone/America/Godthab",start:5008379,end:5009344},{filename:"/tmp/pglite/share/postgresql/timezone/America/Goose_Bay",start:5009344,end:5010924},{filename:"/tmp/pglite/share/postgresql/timezone/America/Grand_Turk",start:5010924,end:5011777},{filename:"/tmp/pglite/share/postgresql/timezone/America/Grenada",start:5011777,end:5011954},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guadeloupe",start:5011954,end:5012131},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guatemala",start:5012131,end:5012343},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guayaquil",start:5012343,end:5012522},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guyana",start:5012522,end:5012703},{filename:"/tmp/pglite/share/postgresql/timezone/America/Halifax",start:5012703,end:5014375},{filename:"/tmp/pglite/share/postgresql/timezone/America/Havana",start:5014375,end:5015492},{filename:"/tmp/pglite/share/postgresql/timezone/America/Hermosillo",start:5015492,end:5015778},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Indianapolis",start:5015778,end:5016309},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Knox",start:5016309,end:5017325},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Marengo",start:5017325,end:5017892},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Petersburg",start:5017892,end:5018575},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Tell_City",start:5018575,end:5019097},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Vevay",start:5019097,end:5019466},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Vincennes",start:5019466,end:5020024},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Winamac",start:5020024,end:5020636},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indianapolis",start:5020636,end:5021167},{filename:"/tmp/pglite/share/postgresql/timezone/America/Inuvik",start:5021167,end:5021984},{filename:"/tmp/pglite/share/postgresql/timezone/America/Iqaluit",start:5021984,end:5022839},{filename:"/tmp/pglite/share/postgresql/timezone/America/Jamaica",start:5022839,end:5023178},{filename:"/tmp/pglite/share/postgresql/timezone/America/Jujuy",start:5023178,end:5023868},{filename:"/tmp/pglite/share/postgresql/timezone/America/Juneau",start:5023868,end:5024834},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kentucky/Louisville",start:5024834,end:5026076},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kentucky/Monticello",start:5026076,end:5027048},{filename:"/tmp/pglite/share/postgresql/timezone/America/Knox_IN",start:5027048,end:5028064},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kralendijk",start:5028064,end:5028241},{filename:"/tmp/pglite/share/postgresql/timezone/America/La_Paz",start:5028241,end:5028411},{filename:"/tmp/pglite/share/postgresql/timezone/America/Lima",start:5028411,end:5028694},{filename:"/tmp/pglite/share/postgresql/timezone/America/Los_Angeles",start:5028694,end:5029988},{filename:"/tmp/pglite/share/postgresql/timezone/America/Louisville",start:5029988,end:5031230},{filename:"/tmp/pglite/share/postgresql/timezone/America/Lower_Princes",start:5031230,end:5031407},{filename:"/tmp/pglite/share/postgresql/timezone/America/Maceio",start:5031407,end:5031909},{filename:"/tmp/pglite/share/postgresql/timezone/America/Managua",start:5031909,end:5032204},{filename:"/tmp/pglite/share/postgresql/timezone/America/Manaus",start:5032204,end:5032616},{filename:"/tmp/pglite/share/postgresql/timezone/America/Marigot",start:5032616,end:5032793},{filename:"/tmp/pglite/share/postgresql/timezone/America/Martinique",start:5032793,end:5032971},{filename:"/tmp/pglite/share/postgresql/timezone/America/Matamoros",start:5032971,end:5033408},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mazatlan",start:5033408,end:5034126},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mendoza",start:5034126,end:5034834},{filename:"/tmp/pglite/share/postgresql/timezone/America/Menominee",start:5034834,end:5035751},{filename:"/tmp/pglite/share/postgresql/timezone/America/Merida",start:5035751,end:5036405},{filename:"/tmp/pglite/share/postgresql/timezone/America/Metlakatla",start:5036405,end:5037e3},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mexico_City",start:5037e3,end:5037773},{filename:"/tmp/pglite/share/postgresql/timezone/America/Miquelon",start:5037773,end:5038323},{filename:"/tmp/pglite/share/postgresql/timezone/America/Moncton",start:5038323,end:5039816},{filename:"/tmp/pglite/share/postgresql/timezone/America/Monterrey",start:5039816,end:5040460},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montevideo",start:5040460,end:5041429},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montreal",start:5041429,end:5043146},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montserrat",start:5043146,end:5043323},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nassau",start:5043323,end:5045040},{filename:"/tmp/pglite/share/postgresql/timezone/America/New_York",start:5045040,end:5046784},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nipigon",start:5046784,end:5048501},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nome",start:5048501,end:5049476},{filename:"/tmp/pglite/share/postgresql/timezone/America/Noronha",start:5049476,end:5049960},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/Beulah",start:5049960,end:5051003},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/Center",start:5051003,end:5051993},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/New_Salem",start:5051993,end:5052983},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nuuk",start:5052983,end:5053948},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ojinaga",start:5053948,end:5054657},{filename:"/tmp/pglite/share/postgresql/timezone/America/Panama",start:5054657,end:5054806},{filename:"/tmp/pglite/share/postgresql/timezone/America/Pangnirtung",start:5054806,end:5055661},{filename:"/tmp/pglite/share/postgresql/timezone/America/Paramaribo",start:5055661,end:5055848},{filename:"/tmp/pglite/share/postgresql/timezone/America/Phoenix",start:5055848,end:5056088},{filename:"/tmp/pglite/share/postgresql/timezone/America/Port-au-Prince",start:5056088,end:5056653},{filename:"/tmp/pglite/share/postgresql/timezone/America/Port_of_Spain",start:5056653,end:5056830},{filename:"/tmp/pglite/share/postgresql/timezone/America/Porto_Acre",start:5056830,end:5057248},{filename:"/tmp/pglite/share/postgresql/timezone/America/Porto_Velho",start:5057248,end:5057642},{filename:"/tmp/pglite/share/postgresql/timezone/America/Puerto_Rico",start:5057642,end:5057819},{filename:"/tmp/pglite/share/postgresql/timezone/America/Punta_Arenas",start:5057819,end:5059037},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rainy_River",start:5059037,end:5060331},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rankin_Inlet",start:5060331,end:5061138},{filename:"/tmp/pglite/share/postgresql/timezone/America/Recife",start:5061138,end:5061622},{filename:"/tmp/pglite/share/postgresql/timezone/America/Regina",start:5061622,end:5062260},{filename:"/tmp/pglite/share/postgresql/timezone/America/Resolute",start:5062260,end:5063067},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rio_Branco",start:5063067,end:5063485},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rosario",start:5063485,end:5064193},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santa_Isabel",start:5064193,end:5065218},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santarem",start:5065218,end:5065627},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santiago",start:5065627,end:5066981},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santo_Domingo",start:5066981,end:5067298},{filename:"/tmp/pglite/share/postgresql/timezone/America/Sao_Paulo",start:5067298,end:5068250},{filename:"/tmp/pglite/share/postgresql/timezone/America/Scoresbysund",start:5068250,end:5069234},{filename:"/tmp/pglite/share/postgresql/timezone/America/Shiprock",start:5069234,end:5070276},{filename:"/tmp/pglite/share/postgresql/timezone/America/Sitka",start:5070276,end:5071232},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Barthelemy",start:5071232,end:5071409},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Johns",start:5071409,end:5073287},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Kitts",start:5073287,end:5073464},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Lucia",start:5073464,end:5073641},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Thomas",start:5073641,end:5073818},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Vincent",start:5073818,end:5073995},{filename:"/tmp/pglite/share/postgresql/timezone/America/Swift_Current",start:5073995,end:5074363},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tegucigalpa",start:5074363,end:5074557},{filename:"/tmp/pglite/share/postgresql/timezone/America/Thule",start:5074557,end:5075012},{filename:"/tmp/pglite/share/postgresql/timezone/America/Thunder_Bay",start:5075012,end:5076729},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tijuana",start:5076729,end:5077754},{filename:"/tmp/pglite/share/postgresql/timezone/America/Toronto",start:5077754,end:5079471},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tortola",start:5079471,end:5079648},{filename:"/tmp/pglite/share/postgresql/timezone/America/Vancouver",start:5079648,end:5080978},{filename:"/tmp/pglite/share/postgresql/timezone/America/Virgin",start:5080978,end:5081155},{filename:"/tmp/pglite/share/postgresql/timezone/America/Whitehorse",start:5081155,end:5082184},{filename:"/tmp/pglite/share/postgresql/timezone/America/Winnipeg",start:5082184,end:5083478},{filename:"/tmp/pglite/share/postgresql/timezone/America/Yakutat",start:5083478,end:5084424},{filename:"/tmp/pglite/share/postgresql/timezone/America/Yellowknife",start:5084424,end:5085394},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Casey",start:5085394,end:5085681},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Davis",start:5085681,end:5085878},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/DumontDUrville",start:5085878,end:5086032},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Macquarie",start:5086032,end:5087008},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Mawson",start:5087008,end:5087160},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/McMurdo",start:5087160,end:5088203},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Palmer",start:5088203,end:5089090},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Rothera",start:5089090,end:5089222},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/South_Pole",start:5089222,end:5090265},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Syowa",start:5090265,end:5090398},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Troll",start:5090398,end:5090575},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Vostok",start:5090575,end:5090745},{filename:"/tmp/pglite/share/postgresql/timezone/Arctic/Longyearbyen",start:5090745,end:5091450},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aden",start:5091450,end:5091583},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Almaty",start:5091583,end:5092201},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Amman",start:5092201,end:5093129},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Anadyr",start:5093129,end:5093872},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aqtau",start:5093872,end:5094478},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aqtobe",start:5094478,end:5095093},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ashgabat",start:5095093,end:5095468},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ashkhabad",start:5095468,end:5095843},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Atyrau",start:5095843,end:5096459},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Baghdad",start:5096459,end:5097089},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bahrain",start:5097089,end:5097241},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Baku",start:5097241,end:5097985},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bangkok",start:5097985,end:5098137},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Barnaul",start:5098137,end:5098890},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Beirut",start:5098890,end:5099622},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bishkek",start:5099622,end:5100240},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Brunei",start:5100240,end:5100560},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Calcutta",start:5100560,end:5100780},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chita",start:5100780,end:5101530},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Choibalsan",start:5101530,end:5102149},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chongqing",start:5102149,end:5102542},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chungking",start:5102542,end:5102935},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Colombo",start:5102935,end:5103182},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dacca",start:5103182,end:5103413},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Damascus",start:5103413,end:5104647},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dhaka",start:5104647,end:5104878},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dili",start:5104878,end:5105048},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dubai",start:5105048,end:5105181},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dushanbe",start:5105181,end:5105547},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Famagusta",start:5105547,end:5106487},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Gaza",start:5106487,end:5108933},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Harbin",start:5108933,end:5109326},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hebron",start:5109326,end:5111790},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ho_Chi_Minh",start:5111790,end:5112026},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hong_Kong",start:5112026,end:5112801},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hovd",start:5112801,end:5113395},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Irkutsk",start:5113395,end:5114155},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Istanbul",start:5114155,end:5115355},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jakarta",start:5115355,end:5115603},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jayapura",start:5115603,end:5115774},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jerusalem",start:5115774,end:5116848},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kabul",start:5116848,end:5117007},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kamchatka",start:5117007,end:5117734},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Karachi",start:5117734,end:5118e3},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kashgar",start:5118e3,end:5118133},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kathmandu",start:5118133,end:5118294},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Katmandu",start:5118294,end:5118455},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Khandyga",start:5118455,end:5119230},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kolkata",start:5119230,end:5119450},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Krasnoyarsk",start:5119450,end:5120191},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuala_Lumpur",start:5120191,end:5120447},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuching",start:5120447,end:5120767},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuwait",start:5120767,end:5120900},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Macao",start:5120900,end:5121691},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Macau",start:5121691,end:5122482},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Magadan",start:5122482,end:5123233},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Makassar",start:5123233,end:5123423},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Manila",start:5123423,end:5123661},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Muscat",start:5123661,end:5123794},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Nicosia",start:5123794,end:5124391},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Novokuznetsk",start:5124391,end:5125117},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Novosibirsk",start:5125117,end:5125870},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Omsk",start:5125870,end:5126611},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Oral",start:5126611,end:5127236},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Phnom_Penh",start:5127236,end:5127388},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Pontianak",start:5127388,end:5127635},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Pyongyang",start:5127635,end:5127818},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qatar",start:5127818,end:5127970},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qostanay",start:5127970,end:5128594},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qyzylorda",start:5128594,end:5129218},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Rangoon",start:5129218,end:5129405},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Riyadh",start:5129405,end:5129538},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Saigon",start:5129538,end:5129774},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Sakhalin",start:5129774,end:5130529},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Samarkand",start:5130529,end:5130895},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Seoul",start:5130895,end:5131310},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Shanghai",start:5131310,end:5131703},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Singapore",start:5131703,end:5131959},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Srednekolymsk",start:5131959,end:5132701},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Taipei",start:5132701,end:5133212},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tashkent",start:5133212,end:5133578},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tbilisi",start:5133578,end:5134207},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tehran",start:5134207,end:5135019},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tel_Aviv",start:5135019,end:5136093},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Thimbu",start:5136093,end:5136247},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Thimphu",start:5136247,end:5136401},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tokyo",start:5136401,end:5136614},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tomsk",start:5136614,end:5137367},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ujung_Pandang",start:5137367,end:5137557},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ulaanbaatar",start:5137557,end:5138151},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ulan_Bator",start:5138151,end:5138745},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Urumqi",start:5138745,end:5138878},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ust-Nera",start:5138878,end:5139649},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Vientiane",start:5139649,end:5139801},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Vladivostok",start:5139801,end:5140543},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yakutsk",start:5140543,end:5141284},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yangon",start:5141284,end:5141471},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yekaterinburg",start:5141471,end:5142231},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yerevan",start:5142231,end:5142939},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Azores",start:5142939,end:5144392},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Bermuda",start:5144392,end:5145416},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Canary",start:5145416,end:5145894},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Cape_Verde",start:5145894,end:5146069},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Faeroe",start:5146069,end:5146510},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Faroe",start:5146510,end:5146951},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Jan_Mayen",start:5146951,end:5147656},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Madeira",start:5147656,end:5149109},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Reykjavik",start:5149109,end:5149239},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/South_Georgia",start:5149239,end:5149371},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/St_Helena",start:5149371,end:5149501},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Stanley",start:5149501,end:5150290},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/ACT",start:5150290,end:5151194},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Adelaide",start:5151194,end:5152115},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Brisbane",start:5152115,end:5152404},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Broken_Hill",start:5152404,end:5153345},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Canberra",start:5153345,end:5154249},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Currie",start:5154249,end:5155252},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Darwin",start:5155252,end:5155486},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Eucla",start:5155486,end:5155800},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Hobart",start:5155800,end:5156803},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/LHI",start:5156803,end:5157495},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Lindeman",start:5157495,end:5157820},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Lord_Howe",start:5157820,end:5158512},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Melbourne",start:5158512,end:5159416},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/NSW",start:5159416,end:5160320},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/North",start:5160320,end:5160554},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Perth",start:5160554,end:5160860},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Queensland",start:5160860,end:5161149},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/South",start:5161149,end:5162070},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Sydney",start:5162070,end:5162974},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Tasmania",start:5162974,end:5163977},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Victoria",start:5163977,end:5164881},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/West",start:5164881,end:5165187},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Yancowinna",start:5165187,end:5166128},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/Acre",start:5166128,end:5166546},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/DeNoronha",start:5166546,end:5167030},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/East",start:5167030,end:5167982},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/West",start:5167982,end:5168394},{filename:"/tmp/pglite/share/postgresql/timezone/CET",start:5168394,end:5169015},{filename:"/tmp/pglite/share/postgresql/timezone/CST6CDT",start:5169015,end:5169966},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Atlantic",start:5169966,end:5171638},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Central",start:5171638,end:5172932},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Eastern",start:5172932,end:5174649},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Mountain",start:5174649,end:5175619},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Newfoundland",start:5175619,end:5177497},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Pacific",start:5177497,end:5178827},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Saskatchewan",start:5178827,end:5179465},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Yukon",start:5179465,end:5180494},{filename:"/tmp/pglite/share/postgresql/timezone/Chile/Continental",start:5180494,end:5181848},{filename:"/tmp/pglite/share/postgresql/timezone/Chile/EasterIsland",start:5181848,end:5183022},{filename:"/tmp/pglite/share/postgresql/timezone/Cuba",start:5183022,end:5184139},{filename:"/tmp/pglite/share/postgresql/timezone/EET",start:5184139,end:5184636},{filename:"/tmp/pglite/share/postgresql/timezone/EST",start:5184636,end:5184747},{filename:"/tmp/pglite/share/postgresql/timezone/EST5EDT",start:5184747,end:5185698},{filename:"/tmp/pglite/share/postgresql/timezone/Egypt",start:5185698,end:5187007},{filename:"/tmp/pglite/share/postgresql/timezone/Eire",start:5187007,end:5188503},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT",start:5188503,end:5188614},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+0",start:5188614,end:5188725},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+1",start:5188725,end:5188838},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+10",start:5188838,end:5188952},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+11",start:5188952,end:5189066},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+12",start:5189066,end:5189180},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+2",start:5189180,end:5189293},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+3",start:5189293,end:5189406},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+4",start:5189406,end:5189519},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+5",start:5189519,end:5189632},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+6",start:5189632,end:5189745},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+7",start:5189745,end:5189858},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+8",start:5189858,end:5189971},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+9",start:5189971,end:5190084},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-0",start:5190084,end:5190195},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-1",start:5190195,end:5190309},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-10",start:5190309,end:5190424},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-11",start:5190424,end:5190539},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-12",start:5190539,end:5190654},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-13",start:5190654,end:5190769},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-14",start:5190769,end:5190884},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-2",start:5190884,end:5190998},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-3",start:5190998,end:5191112},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-4",start:5191112,end:5191226},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-5",start:5191226,end:5191340},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-6",start:5191340,end:5191454},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-7",start:5191454,end:5191568},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-8",start:5191568,end:5191682},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-9",start:5191682,end:5191796},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT0",start:5191796,end:5191907},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Greenwich",start:5191907,end:5192018},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/UCT",start:5192018,end:5192129},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/UTC",start:5192129,end:5192240},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Universal",start:5192240,end:5192351},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Zulu",start:5192351,end:5192462},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Amsterdam",start:5192462,end:5193565},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Andorra",start:5193565,end:5193954},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Astrakhan",start:5193954,end:5194680},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Athens",start:5194680,end:5195362},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Belfast",start:5195362,end:5196961},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Belgrade",start:5196961,end:5197439},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Berlin",start:5197439,end:5198144},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Bratislava",start:5198144,end:5198867},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Brussels",start:5198867,end:5199970},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Bucharest",start:5199970,end:5200631},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Budapest",start:5200631,end:5201397},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Busingen",start:5201397,end:5201894},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Chisinau",start:5201894,end:5202649},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Copenhagen",start:5202649,end:5203354},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Dublin",start:5203354,end:5204850},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Gibraltar",start:5204850,end:5206070},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Guernsey",start:5206070,end:5207669},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Helsinki",start:5207669,end:5208150},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Isle_of_Man",start:5208150,end:5209749},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Istanbul",start:5209749,end:5210949},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Jersey",start:5210949,end:5212548},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kaliningrad",start:5212548,end:5213452},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kiev",start:5213452,end:5214010},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kirov",start:5214010,end:5214745},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kyiv",start:5214745,end:5215303},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Lisbon",start:5215303,end:5216757},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Ljubljana",start:5216757,end:5217235},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/London",start:5217235,end:5218834},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Luxembourg",start:5218834,end:5219937},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Madrid",start:5219937,end:5220834},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Malta",start:5220834,end:5221762},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Mariehamn",start:5221762,end:5222243},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Minsk",start:5222243,end:5223051},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Monaco",start:5223051,end:5224156},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Moscow",start:5224156,end:5225064},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Nicosia",start:5225064,end:5225661},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Oslo",start:5225661,end:5226366},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Paris",start:5226366,end:5227471},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Podgorica",start:5227471,end:5227949},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Prague",start:5227949,end:5228672},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Riga",start:5228672,end:5229366},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Rome",start:5229366,end:5230313},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Samara",start:5230313,end:5231045},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/San_Marino",start:5231045,end:5231992},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Sarajevo",start:5231992,end:5232470},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Saratov",start:5232470,end:5233196},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Simferopol",start:5233196,end:5234061},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Skopje",start:5234061,end:5234539},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Sofia",start:5234539,end:5235131},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Stockholm",start:5235131,end:5235836},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tallinn",start:5235836,end:5236511},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tirane",start:5236511,end:5237115},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tiraspol",start:5237115,end:5237870},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Ulyanovsk",start:5237870,end:5238630},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Uzhgorod",start:5238630,end:5239188},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vaduz",start:5239188,end:5239685},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vatican",start:5239685,end:5240632},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vienna",start:5240632,end:5241290},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vilnius",start:5241290,end:5241966},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Volgograd",start:5241966,end:5242719},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Warsaw",start:5242719,end:5243642},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zagreb",start:5243642,end:5244120},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zaporozhye",start:5244120,end:5244678},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zurich",start:5244678,end:5245175},{filename:"/tmp/pglite/share/postgresql/timezone/Factory",start:5245175,end:5245288},{filename:"/tmp/pglite/share/postgresql/timezone/GB",start:5245288,end:5246887},{filename:"/tmp/pglite/share/postgresql/timezone/GB-Eire",start:5246887,end:5248486},{filename:"/tmp/pglite/share/postgresql/timezone/GMT",start:5248486,end:5248597},{filename:"/tmp/pglite/share/postgresql/timezone/GMT+0",start:5248597,end:5248708},{filename:"/tmp/pglite/share/postgresql/timezone/GMT-0",start:5248708,end:5248819},{filename:"/tmp/pglite/share/postgresql/timezone/GMT0",start:5248819,end:5248930},{filename:"/tmp/pglite/share/postgresql/timezone/Greenwich",start:5248930,end:5249041},{filename:"/tmp/pglite/share/postgresql/timezone/HST",start:5249041,end:5249153},{filename:"/tmp/pglite/share/postgresql/timezone/Hongkong",start:5249153,end:5249928},{filename:"/tmp/pglite/share/postgresql/timezone/Iceland",start:5249928,end:5250058},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Antananarivo",start:5250058,end:5250249},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Chagos",start:5250249,end:5250401},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Christmas",start:5250401,end:5250553},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Cocos",start:5250553,end:5250740},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Comoro",start:5250740,end:5250931},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Kerguelen",start:5250931,end:5251083},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mahe",start:5251083,end:5251216},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Maldives",start:5251216,end:5251368},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mauritius",start:5251368,end:5251547},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mayotte",start:5251547,end:5251738},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Reunion",start:5251738,end:5251871},{filename:"/tmp/pglite/share/postgresql/timezone/Iran",start:5251871,end:5252683},{filename:"/tmp/pglite/share/postgresql/timezone/Israel",start:5252683,end:5253757},{filename:"/tmp/pglite/share/postgresql/timezone/Jamaica",start:5253757,end:5254096},{filename:"/tmp/pglite/share/postgresql/timezone/Japan",start:5254096,end:5254309},{filename:"/tmp/pglite/share/postgresql/timezone/Kwajalein",start:5254309,end:5254528},{filename:"/tmp/pglite/share/postgresql/timezone/Libya",start:5254528,end:5254959},{filename:"/tmp/pglite/share/postgresql/timezone/MET",start:5254959,end:5255580},{filename:"/tmp/pglite/share/postgresql/timezone/MST",start:5255580,end:5255691},{filename:"/tmp/pglite/share/postgresql/timezone/MST7MDT",start:5255691,end:5256642},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/BajaNorte",start:5256642,end:5257667},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/BajaSur",start:5257667,end:5258385},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/General",start:5258385,end:5259158},{filename:"/tmp/pglite/share/postgresql/timezone/NZ",start:5259158,end:5260201},{filename:"/tmp/pglite/share/postgresql/timezone/NZ-CHAT",start:5260201,end:5261009},{filename:"/tmp/pglite/share/postgresql/timezone/Navajo",start:5261009,end:5262051},{filename:"/tmp/pglite/share/postgresql/timezone/PRC",start:5262051,end:5262444},{filename:"/tmp/pglite/share/postgresql/timezone/PST8PDT",start:5262444,end:5263395},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Apia",start:5263395,end:5263802},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Auckland",start:5263802,end:5264845},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Bougainville",start:5264845,end:5265046},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Chatham",start:5265046,end:5265854},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Chuuk",start:5265854,end:5266008},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Easter",start:5266008,end:5267182},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Efate",start:5267182,end:5267524},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Enderbury",start:5267524,end:5267696},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Fakaofo",start:5267696,end:5267849},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Fiji",start:5267849,end:5268245},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Funafuti",start:5268245,end:5268379},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Galapagos",start:5268379,end:5268554},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Gambier",start:5268554,end:5268686},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Guadalcanal",start:5268686,end:5268820},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Guam",start:5268820,end:5269170},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Honolulu",start:5269170,end:5269391},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Johnston",start:5269391,end:5269612},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kanton",start:5269612,end:5269784},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kiritimati",start:5269784,end:5269958},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kosrae",start:5269958,end:5270200},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kwajalein",start:5270200,end:5270419},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Majuro",start:5270419,end:5270553},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Marquesas",start:5270553,end:5270692},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Midway",start:5270692,end:5270838},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Nauru",start:5270838,end:5271021},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Niue",start:5271021,end:5271175},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Norfolk",start:5271175,end:5271422},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Noumea",start:5271422,end:5271620},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pago_Pago",start:5271620,end:5271766},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Palau",start:5271766,end:5271914},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pitcairn",start:5271914,end:5272067},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pohnpei",start:5272067,end:5272201},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Ponape",start:5272201,end:5272335},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Port_Moresby",start:5272335,end:5272489},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Rarotonga",start:5272489,end:5272895},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Saipan",start:5272895,end:5273245},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Samoa",start:5273245,end:5273391},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tahiti",start:5273391,end:5273524},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tarawa",start:5273524,end:5273658},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tongatapu",start:5273658,end:5273895},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Truk",start:5273895,end:5274049},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Wake",start:5274049,end:5274183},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Wallis",start:5274183,end:5274317},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Yap",start:5274317,end:5274471},{filename:"/tmp/pglite/share/postgresql/timezone/Poland",start:5274471,end:5275394},{filename:"/tmp/pglite/share/postgresql/timezone/Portugal",start:5275394,end:5276848},{filename:"/tmp/pglite/share/postgresql/timezone/ROC",start:5276848,end:5277359},{filename:"/tmp/pglite/share/postgresql/timezone/ROK",start:5277359,end:5277774},{filename:"/tmp/pglite/share/postgresql/timezone/Singapore",start:5277774,end:5278030},{filename:"/tmp/pglite/share/postgresql/timezone/Turkey",start:5278030,end:5279230},{filename:"/tmp/pglite/share/postgresql/timezone/UCT",start:5279230,end:5279341},{filename:"/tmp/pglite/share/postgresql/timezone/US/Alaska",start:5279341,end:5280318},{filename:"/tmp/pglite/share/postgresql/timezone/US/Aleutian",start:5280318,end:5281287},{filename:"/tmp/pglite/share/postgresql/timezone/US/Arizona",start:5281287,end:5281527},{filename:"/tmp/pglite/share/postgresql/timezone/US/Central",start:5281527,end:5283281},{filename:"/tmp/pglite/share/postgresql/timezone/US/East-Indiana",start:5283281,end:5283812},{filename:"/tmp/pglite/share/postgresql/timezone/US/Eastern",start:5283812,end:5285556},{filename:"/tmp/pglite/share/postgresql/timezone/US/Hawaii",start:5285556,end:5285777},{filename:"/tmp/pglite/share/postgresql/timezone/US/Indiana-Starke",start:5285777,end:5286793},{filename:"/tmp/pglite/share/postgresql/timezone/US/Michigan",start:5286793,end:5287692},{filename:"/tmp/pglite/share/postgresql/timezone/US/Mountain",start:5287692,end:5288734},{filename:"/tmp/pglite/share/postgresql/timezone/US/Pacific",start:5288734,end:5290028},{filename:"/tmp/pglite/share/postgresql/timezone/US/Samoa",start:5290028,end:5290174},{filename:"/tmp/pglite/share/postgresql/timezone/UTC",start:5290174,end:5290285},{filename:"/tmp/pglite/share/postgresql/timezone/Universal",start:5290285,end:5290396},{filename:"/tmp/pglite/share/postgresql/timezone/W-SU",start:5290396,end:5291304},{filename:"/tmp/pglite/share/postgresql/timezone/WET",start:5291304,end:5291798},{filename:"/tmp/pglite/share/postgresql/timezone/Zulu",start:5291798,end:5291909},{filename:"/tmp/pglite/share/postgresql/timezonesets/Africa.txt",start:5291909,end:5298882},{filename:"/tmp/pglite/share/postgresql/timezonesets/America.txt",start:5298882,end:5309889},{filename:"/tmp/pglite/share/postgresql/timezonesets/Antarctica.txt",start:5309889,end:5311023},{filename:"/tmp/pglite/share/postgresql/timezonesets/Asia.txt",start:5311023,end:5319334},{filename:"/tmp/pglite/share/postgresql/timezonesets/Atlantic.txt",start:5319334,end:5322867},{filename:"/tmp/pglite/share/postgresql/timezonesets/Australia",start:5322867,end:5324002},{filename:"/tmp/pglite/share/postgresql/timezonesets/Australia.txt",start:5324002,end:5327386},{filename:"/tmp/pglite/share/postgresql/timezonesets/Default",start:5327386,end:5354636},{filename:"/tmp/pglite/share/postgresql/timezonesets/Etc.txt",start:5354636,end:5355886},{filename:"/tmp/pglite/share/postgresql/timezonesets/Europe.txt",start:5355886,end:5364668},{filename:"/tmp/pglite/share/postgresql/timezonesets/India",start:5364668,end:5365261},{filename:"/tmp/pglite/share/postgresql/timezonesets/Indian.txt",start:5365261,end:5366522},{filename:"/tmp/pglite/share/postgresql/timezonesets/Pacific.txt",start:5366522,end:5370290},{filename:"/tmp/pglite/share/postgresql/tsearch_data/danish.stop",start:5370290,end:5370714},{filename:"/tmp/pglite/share/postgresql/tsearch_data/dutch.stop",start:5370714,end:5371167},{filename:"/tmp/pglite/share/postgresql/tsearch_data/english.stop",start:5371167,end:5371789},{filename:"/tmp/pglite/share/postgresql/tsearch_data/finnish.stop",start:5371789,end:5373368},{filename:"/tmp/pglite/share/postgresql/tsearch_data/french.stop",start:5373368,end:5374173},{filename:"/tmp/pglite/share/postgresql/tsearch_data/german.stop",start:5374173,end:5375522},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hungarian.stop",start:5375522,end:5376749},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample.affix",start:5376749,end:5376992},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_long.affix",start:5376992,end:5377625},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_long.dict",start:5377625,end:5377723},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_num.affix",start:5377723,end:5378185},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_num.dict",start:5378185,end:5378314},{filename:"/tmp/pglite/share/postgresql/tsearch_data/ispell_sample.affix",start:5378314,end:5378779},{filename:"/tmp/pglite/share/postgresql/tsearch_data/ispell_sample.dict",start:5378779,end:5378860},{filename:"/tmp/pglite/share/postgresql/tsearch_data/italian.stop",start:5378860,end:5380514},{filename:"/tmp/pglite/share/postgresql/tsearch_data/nepali.stop",start:5380514,end:5384775},{filename:"/tmp/pglite/share/postgresql/tsearch_data/norwegian.stop",start:5384775,end:5385626},{filename:"/tmp/pglite/share/postgresql/tsearch_data/portuguese.stop",start:5385626,end:5386893},{filename:"/tmp/pglite/share/postgresql/tsearch_data/russian.stop",start:5386893,end:5388128},{filename:"/tmp/pglite/share/postgresql/tsearch_data/spanish.stop",start:5388128,end:5390306},{filename:"/tmp/pglite/share/postgresql/tsearch_data/swedish.stop",start:5390306,end:5390865},{filename:"/tmp/pglite/share/postgresql/tsearch_data/synonym_sample.syn",start:5390865,end:5390938},{filename:"/tmp/pglite/share/postgresql/tsearch_data/thesaurus_sample.ths",start:5390938,end:5391411},{filename:"/tmp/pglite/share/postgresql/tsearch_data/turkish.stop",start:5391411,end:5391671},{filename:"/tmp/pglite/share/postgresql/tsearch_data/unaccent.rules",start:5391671,end:5401610},{filename:"/tmp/pglite/share/postgresql/tsearch_data/xsyn_sample.rules",start:5401610,end:5401749}],remote_package_size:5401749})})();var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require("fs"),nodePath=require("path");import.meta.url.startsWith("data:")||(scriptDirectory=nodePath.dirname(require("url").fileURLToPath(import.meta.url))+"/"),readBinary=e=>{e=isFileURI(e)?new URL(e):e;var t=fs.readFileSync(e);return t},readAsync=async(e,t=!0)=>{e=isFileURI(e)?new URL(e):e;var I=fs.readFileSync(e,t?void 0:"utf8");return I},!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptName&&(scriptDirectory=_scriptName),scriptDirectory.startsWith("blob:")?scriptDirectory="":scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),readAsync=async e=>{var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)});var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary=Module.wasmBinary,wasmMemory,ABORT=!1,EXITSTATUS;function assert(e,t){e||abort(t)}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAP64,HEAPF64;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=new BigUint64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||134217728;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for(typeof Module.preRun=="function"&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.initialized&&FS.init(),FS.ignorePermissions=!1,SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for(typeof Module.postRun=="function"&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,dependenciesFulfilled=null;function addRunDependency(e){var t;runDependencies++,(t=Module.monitorRunDependencies)==null||t.call(Module,runDependencies)}function removeRunDependency(e){var I;if(runDependencies--,(I=Module.monitorRunDependencies)==null||I.call(Module,runDependencies),runDependencies==0&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){var I;(I=Module.onAbort)==null||I.call(Module,e),e="Aborted("+e+")",err(e),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject(t),t}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://");function findWasmBinary(){if(Module.locateFile){var e="postgres.wasm";return isDataURI(e)?e:locateFile(e)}return new URL(""+new URL("postgres-CyuUVpXN.wasm",import.meta.url).href,import.meta.url).href}var wasmBinaryFile;function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var I=await getWasmBinary(e),B=await WebAssembly.instantiate(I,t);return B}catch(tr){err(`failed to asynchronously prepare wasm: ${tr}`),abort(tr)}}async function instantiateAsync(e,t,I){if(!e&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(t)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function")try{var B=fetch(t,{credentials:"same-origin"}),tr=await WebAssembly.instantiateStreaming(B,I);return tr}catch(rr){err(`wasm streaming compile failed: ${rr}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,I)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(tr,rr){wasmExports=tr.exports,wasmExports=relocateExports(wasmExports,16777216);var ir=getDylinkMetadata(rr);return ir.neededDynlibs&&(dynamicLibraries=ir.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency(),wasmExports}addRunDependency();function t(tr){e(tr.instance,tr.module)}var I=getWasmImports();if(Module.instantiateWasm)try{return Module.instantiateWasm(I,e)}catch(tr){err(`Module.instantiateWasm callback failed with error: ${tr}`),readyPromiseReject(tr)}wasmBinaryFile??(wasmBinaryFile=findWasmBinary());try{var B=await instantiateAsync(wasmBinary,wasmBinaryFile,I);return t(B),B}catch(tr){readyPromiseReject(tr);return}}var ASM_CONSTS={18792944:e=>{Module.is_worker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Module.FD_BUFFER_MAX=e,Module.emscripten_copy_to=console.warn},18793117:()=>{Module.postMessage=function(e){console.log("# 1252: onCustomMessage:",__FILE__,e)}},18793242:()=>{if(Module.is_worker){let e=function(t){console.log("onCustomMessage:",t)};Module.onCustomMessage=e}else Module.postMessage=function(e){switch(e.type){case"raw":{stringToUTF8(e.data,shm_rawinput,Module.FD_BUFFER_MAX);break}case"stdin":{stringToUTF8(e.data,1,Module.FD_BUFFER_MAX);break}case"rcon":{stringToUTF8(e.data,shm_rcon,Module.FD_BUFFER_MAX);break}default:console.warn("custom_postMessage?",e)}}}};function is_web_env(){try{if(window)return 1}catch{return 0}}is_web_env.sig="i";class ExitStatus{constructor(t){P$1(this,"name","ExitStatus"),this.message=`Program terminated with exit(${t})`,this.status=t}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var I=GOT[t];return I||(I=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(I.required=!0),I}},callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder:void 0,UTF8ArrayToString=(e,t=0,I=NaN)=>{for(var B=t+I,tr=t;e[tr]&&!(tr>=B);)++tr;if(tr-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,tr));for(var rr="";t<tr;){var ir=e[t++];if(!(ir&128)){rr+=String.fromCharCode(ir);continue}var lr=e[t++]&63;if((ir&224)==192){rr+=String.fromCharCode((ir&31)<<6|lr);continue}var dr=e[t++]&63;if((ir&240)==224?ir=(ir&15)<<12|lr<<6|dr:ir=(ir&7)<<18|lr<<12|dr<<6|e[t++]&63,ir<65536)rr+=String.fromCharCode(ir);else{var mr=ir-65536;rr+=String.fromCharCode(55296|mr>>10,56320|mr&1023)}}return rr},getDylinkMetadata=e=>{var t=0,I=0;function B(){return e[t++]}function tr(){for(var Jr=0,Jn=1;;){var Ar=e[t++];if(Jr+=(Ar&127)*Jn,Jn*=128,!(Ar&128))break}return Jr}function rr(){var Jr=tr();return t+=Jr,UTF8ArrayToString(e,t-Jr,Jr)}function ir(Jr,Jn){if(Jr)throw new Error(Jn)}var lr="dylink.0";if(e instanceof WebAssembly.Module){var dr=WebAssembly.Module.customSections(e,lr);dr.length===0&&(lr="dylink",dr=WebAssembly.Module.customSections(e,lr)),ir(dr.length===0,"need dylink section"),e=new Uint8Array(dr[0]),I=e.length}else{var mr=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer),fr=mr[0]==1836278016;ir(!fr,"need to see wasm magic number"),ir(e[8]!==0,"need the dylink section to be first"),t=9;var hr=tr();I=t+hr,lr=rr()}var _r={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if(lr=="dylink"){_r.memorySize=tr(),_r.memoryAlign=tr(),_r.tableSize=tr(),_r.tableAlign=tr();for(var yr=tr(),Mr=0;Mr<yr;++Mr){var vr=rr();_r.neededDynlibs.push(vr)}}else{ir(lr!=="dylink.0");for(var Sr=1,br=2,gr=3,wr=4,xr=256,Ir=3,kr=1;t<I;){var Or=B(),Lr=tr();if(Or===Sr)_r.memorySize=tr(),_r.memoryAlign=tr(),_r.tableSize=tr(),_r.tableAlign=tr();else if(Or===br)for(var yr=tr(),Mr=0;Mr<yr;++Mr)vr=rr(),_r.neededDynlibs.push(vr);else if(Or===gr)for(var Kn=tr();Kn--;){var Pr=rr(),Fr=tr();Fr&xr&&_r.tlsExports.add(Pr)}else if(Or===wr)for(var Kn=tr();Kn--;){rr();var Pr=rr(),Fr=tr();(Fr&Ir)==kr&&_r.weakImports.add(Pr)}else t+=Lr}}return _r};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":return HEAP8[e];case"i8":return HEAP8[e];case"i16":return HEAP16[e>>1];case"i32":return HEAP32[e>>2];case"i64":return HEAP64[e>>3];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,I)=>{var B={refcount:1/0,name:e,exports:I,global:!0};return LDSO.loadedLibsByName[e]=B,t!=null&&(LDSO.loadedLibsByHandle[t]=B),B},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=23144432,alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,I=t+alignMemory(e,16);return ___heap_base=I,GOT.__heap_base.value=I,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},I={parameters:[],results:e[0]=="v"?[]:[t[e[0]]]},B=1;B<e.length;++B)I.parameters.push(t[e[B]]);return I},generateFuncType=(e,t)=>{var I=e.slice(0,1),B=e.slice(1),tr={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(B.length,t);for(var rr=0;rr<B.length;++rr)t.push(tr[B[rr]]);I=="v"?t.push(0):t.push(1,tr[I])},convertJsFunctionToWasm=(e,t)=>{if(typeof WebAssembly.Function=="function")return new WebAssembly.Function(sigToWasmTypes(t),e);var I=[1];generateFuncType(t,I);var B=[0,97,115,109,1,0,0,0,1];uleb128Encode(I.length,B),B.push(...I),B.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var tr=new WebAssembly.Module(new Uint8Array(B)),rr=new WebAssembly.Instance(tr,{e:{f:e}}),ir=rr.exports.f;return ir},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:5360,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var I=e;I<e+t;I++){var B=getWasmTableEntry(I);B&&functionsInTableMap.set(B,I)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var I=getFunctionAddress(e);if(I)return I;var B=getEmptyTableSlot();try{setWasmTableEntry(B,e)}catch(rr){if(!(rr instanceof TypeError))throw rr;var tr=convertJsFunctionToWasm(e,t);setWasmTableEntry(B,tr)}return functionsInTableMap.set(e,B),B},updateGOT=(e,t)=>{for(var I in e)if(!isInternalSym(I)){var B=e[I];GOT[I]||(GOT[I]=new WebAssembly.Global({value:"i32",mutable:!0})),GOT[I].value==0&&(typeof B=="function"?GOT[I].value=addFunction(B):typeof B=="number"?GOT[I].value=B:err(`unhandled export type for '${I}': ${typeof B}`))}},relocateExports=(e,t,I)=>{var B={};for(var tr in e){var rr=e[tr];typeof rr=="object"&&(rr=rr.value),typeof rr=="number"&&(rr+=t),B[tr]=rr}return updateGOT(B),B},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCall=(e,t,I=[])=>{var B=getWasmTableEntry(t)(...I);return B},stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...I)=>{var B=stackSave();try{return dynCall(e,t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;if(_setThrew(1,0),e[0]=="j")return 0n}},resolveGlobalSymbol=(e,t=!1)=>{var I;return isSymbolDefined(e)?I=wasmImports[e]:e.startsWith("invoke_")&&(I=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:I,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);currentModuleWeakSymbols=metadata.weakImports;function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,HEAPU32[handle+12>>2]=memoryBase,HEAP32[handle+16>>2]=metadata.memorySize,HEAPU32[handle+20>>2]=tableBase,HEAP32[handle+24>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+12>>2],tableBase=HEAPU32[handle+20>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length;tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];if(!(t in e)){var I;e[t]=(...B)=>(I||(I=resolveSymbol(t)),I(...B))}return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols();function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&body.indexOf("$"+arity)!=-1;arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if("__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),cSig!="void"){cSig=cSig.split(",");for(var i in cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replaceAll("*",""))}}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then(e=>postInstantiation(e.module,e.instance))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return flags.loadAsync?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},mergeLibSymbols=(e,t)=>{for(var[I,B]of Object.entries(e)){let tr=ir=>{isSymbolDefined(ir)||(wasmImports[ir]=B)};tr(I);let rr="__main_argc_argv";I=="main"&&tr(rr),I==rr&&tr("main")}},asyncLoad=async e=>{var t=await readAsync(e);return new Uint8Array(t)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:t=>!Module.noWasmDecoding&&t.endsWith(".so"),handle:(t,I,B,tr)=>{e.promiseChainEnd=e.promiseChainEnd.then(()=>loadWebAssemblyModule(t,{loadAsync:!0,nodelete:!0},I,{})).then(rr=>{preloadedWasm[I]=rr,B(t)},rr=>{err(`failed to instantiate wasm: ${I}: ${rr}`),tr()})}};preloadPlugins.push(e)},preloadedWasm={};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},I,B){var tr=LDSO.loadedLibsByName[e];if(tr)return t.global?tr.global||(tr.global=!0,mergeLibSymbols(tr.exports)):I&&Object.assign(I,tr.exports),t.nodelete&&tr.refcount!==1/0&&(tr.refcount=1/0),tr.refcount++,B&&(LDSO.loadedLibsByHandle[B]=tr),t.loadAsync?Promise.resolve(!0):!0;tr=newDSO(e,B,"loading"),tr.refcount=t.nodelete?1/0:1,tr.global=t.global;function rr(){if(B){var dr=HEAPU32[B+28>>2],mr=HEAPU32[B+32>>2];if(dr&&mr){var fr=HEAP8.slice(dr,dr+mr);return t.loadAsync?Promise.resolve(fr):fr}}var hr=locateFile(e);if(t.loadAsync)return asyncLoad(hr);if(!readBinary)throw new Error(`${hr}: file not found, and synchronous loading of external files is not available`);return readBinary(hr)}function ir(){var dr=preloadedWasm[e];return dr?t.loadAsync?Promise.resolve(dr):dr:t.loadAsync?rr().then(mr=>loadWebAssemblyModule(mr,t,e,I,B)):loadWebAssemblyModule(rr(),t,e,I,B)}function lr(dr){tr.global?mergeLibSymbols(dr):I&&Object.assign(I,dr),tr.exports=dr}return t.loadAsync?ir().then(dr=>(lr(dr),!0)):(lr(ir()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(t.value==0){var I=resolveGlobalSymbol(e,!0).sym;if(!I&&!t.required)continue;if(typeof I=="function")t.value=addFunction(I,I.sig);else if(typeof I=="number")t.value=I;else throw new Error(`bad export type for '${e}': ${typeof I}`)}},loadDylibs=()=>{if(!dynamicLibraries.length){reportUndefinedSymbols();return}addRunDependency(),dynamicLibraries.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})),Promise.resolve()).then(()=>{reportUndefinedSymbols(),removeRunDependency()})},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,I="i8"){switch(I.endsWith("*")&&(I="*"),I){case"i1":HEAP8[e]=t;break;case"i8":HEAP8[e]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":HEAP64[e>>3]=BigInt(t);break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort(`invalid type for setValue: ${I}`)}}var ___assert_fail=(e,t,I,B)=>abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",I,B?UTF8ToString(B):"unknown function"]);___assert_fail.sig="vppip";var ___call_sighandler=(e,t)=>getWasmTableEntry(e)(t);___call_sighandler.sig="vpi";var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},16777216),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},23144432),PATH={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(e).slice(1)},normalizeArray:(e,t)=>{for(var I=0,B=e.length-1;B>=0;B--){var tr=e[B];tr==="."?e.splice(B,1):tr===".."?(e.splice(B,1),I++):I&&(e.splice(B,1),I--)}if(t)for(;I;I--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),I=e.substr(-1)==="/";return e=PATH.normalizeArray(e.split("/").filter(B=>!!B),!t).join("/"),!e&&!t&&(e="."),e&&I&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),I=t[0],B=t[1];return!I&&!B?".":(B&&(B=B.substr(0,B.length-1)),I+B)},basename:e=>{if(e==="/")return"/";e=PATH.normalize(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return B=>crypto.getRandomValues(B);if(ENVIRONMENT_IS_NODE)try{var e=require("crypto"),t=e.randomFillSync;if(t)return B=>e.randomFillSync(B);var I=e.randomBytes;return B=>(B.set(I(B.byteLength)),B)}catch{}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var t="",I=!1,B=e.length-1;B>=-1&&!I;B--){var tr=B>=0?e[B]:FS.cwd();if(typeof tr!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!tr)return"";t=tr+"/"+t,I=PATH.isAbs(tr)}return t=PATH.normalizeArray(t.split("/").filter(rr=>!!rr),!I).join("/"),(I?"/":"")+t||"."},relative:(e,t)=>{e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);function I(mr){for(var fr=0;fr<mr.length&&mr[fr]==="";fr++);for(var hr=mr.length-1;hr>=0&&mr[hr]==="";hr--);return fr>hr?[]:mr.slice(fr,hr-fr+1)}for(var B=I(e.split("/")),tr=I(t.split("/")),rr=Math.min(B.length,tr.length),ir=rr,lr=0;lr<rr;lr++)if(B[lr]!==tr[lr]){ir=lr;break}for(var dr=[],lr=ir;lr<B.length;lr++)dr.push("..");return dr=dr.concat(tr.slice(ir)),dr.join("/")}},FS_stdin_getChar_buffer=[],lengthBytesUTF8=e=>{for(var t=0,I=0;I<e.length;++I){var B=e.charCodeAt(I);B<=127?t++:B<=2047?t+=2:B>=55296&&B<=57343?(t+=4,++I):t+=3}return t},stringToUTF8Array=(e,t,I,B)=>{if(!(B>0))return 0;for(var tr=I,rr=I+B-1,ir=0;ir<e.length;++ir){var lr=e.charCodeAt(ir);if(lr>=55296&&lr<=57343){var dr=e.charCodeAt(++ir);lr=65536+((lr&1023)<<10)|dr&1023}if(lr<=127){if(I>=rr)break;t[I++]=lr}else if(lr<=2047){if(I+1>=rr)break;t[I++]=192|lr>>6,t[I++]=128|lr&63}else if(lr<=65535){if(I+2>=rr)break;t[I++]=224|lr>>12,t[I++]=128|lr>>6&63,t[I++]=128|lr&63}else{if(I+3>=rr)break;t[I++]=240|lr>>18,t[I++]=128|lr>>12&63,t[I++]=128|lr>>6&63,t[I++]=128|lr&63}}return t[I]=0,I-tr};function intArrayFromString(e,t,I){var B=lengthBytesUTF8(e)+1,tr=new Array(B),rr=stringToUTF8Array(e,tr,0,tr.length);return tr.length=rr,tr}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var t=256,I=Buffer.alloc(t),B=0,tr=process.stdin.fd;try{B=fs.readSync(tr,I,0,t)}catch(rr){if(rr.toString().includes("EOF"))B=0;else throw rr}B>0&&(e=I.slice(0,B).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
136
+ `);for(let I of t.rows)this.serializers[I.typarray]=B=>Ke$1(B,this.serializers[I.oid],I.typarray),this.parsers[I.typarray]=B=>yn(B,this.parsers[I.oid],I.typarray)}async refreshArrayTypes(){await this._initArrayTypes({force:!0})}async query(e,t,I){return await this._checkReady(),await this._runExclusiveTransaction(async()=>await T(this,r,g$1).call(this,e,t,I))}async sql(e,...t){let{query:I,params:B}=g$2(e,...t);return await this.query(I,B)}async exec(e,t){return await this._checkReady(),await this._runExclusiveTransaction(async()=>await T(this,r,h).call(this,e,t))}async describeQuery(e,t){try{await T(this,r,l).call(this,O$1.parse({text:e,types:t==null?void 0:t.paramTypes}),t);let I=await T(this,r,l).call(this,O$1.describe({type:"S"}),t),B=I.messages.find(lr=>lr.name==="parameterDescription"),tr=I.messages.find(lr=>lr.name==="rowDescription"),rr=(B==null?void 0:B.dataTypeIDs.map(lr=>({dataTypeID:lr,serializer:this.serializers[lr]})))??[],ir=(tr==null?void 0:tr.fields.map(lr=>({name:lr.name,dataTypeID:lr.dataTypeID,parser:this.parsers[lr.dataTypeID]})))??[];return{queryParams:rr,resultFields:ir}}finally{await T(this,r,l).call(this,O$1.sync(),t)}}async transaction(e){return await this._checkReady(),await this._runExclusiveTransaction(async()=>{await T(this,r,h).call(this,"BEGIN"),x$2(this,u,!0);let t=!1,I=()=>{if(t)throw new Error("Transaction is closed")},B={query:async(tr,rr,ir)=>(I(),await T(this,r,g$1).call(this,tr,rr,ir)),sql:async(tr,...rr)=>{let{query:ir,params:lr}=g$2(tr,...rr);return await T(this,r,g$1).call(this,ir,lr)},exec:async(tr,rr)=>(I(),await T(this,r,h).call(this,tr,rr)),rollback:async()=>{I(),await T(this,r,h).call(this,"ROLLBACK"),t=!0},get closed(){return t}};try{let tr=await e(B);return t||(t=!0,await T(this,r,h).call(this,"COMMIT")),x$2(this,u,!1),tr}catch(tr){throw t||await T(this,r,h).call(this,"ROLLBACK"),x$2(this,u,!1),tr}})}async runExclusive(e){return await this._runExclusiveQuery(e)}};b=new WeakMap,u=new WeakMap,r=new WeakSet,l=async function(e,t={}){return await this.execProtocol(e,{...t,syncToFs:!1})},g$1=async function(e,t=[],I){return await this._runExclusiveQuery(async()=>{T(this,r,R).call(this,"runQuery",e,t,I),await this._handleBlob(I==null?void 0:I.blob);let B;try{let{messages:rr}=await T(this,r,l).call(this,O$1.parse({text:e,types:I==null?void 0:I.paramTypes}),I),ir=De((await T(this,r,l).call(this,O$1.describe({type:"S"}),I)).messages),lr=t.map((dr,mr)=>{var _r;let fr=ir[mr];if(dr==null)return null;let hr=((_r=I==null?void 0:I.serializers)==null?void 0:_r[fr])??this.serializers[fr];return hr?hr(dr):dr.toString()});B=[...rr,...(await T(this,r,l).call(this,O$1.bind({values:lr}),I)).messages,...(await T(this,r,l).call(this,O$1.describe({type:"P"}),I)).messages,...(await T(this,r,l).call(this,O$1.execute({}),I)).messages]}finally{await T(this,r,l).call(this,O$1.sync(),I)}await this._cleanupBlob(),h$1(this,u)||await this.syncToFs();let tr=await this._getWrittenBlob();return bn(B,this.parsers,I,tr)[0]})},h=async function(e,t){return await this._runExclusiveQuery(async()=>{T(this,r,R).call(this,"runExec",e,t),await this._handleBlob(t==null?void 0:t.blob);let I;try{I=(await T(this,r,l).call(this,O$1.query(e),t)).messages}finally{await T(this,r,l).call(this,O$1.sync(),t)}this._cleanupBlob(),h$1(this,u)||await this.syncToFs();let B=await this._getWrittenBlob();return bn(I,this.parsers,t,B)})},R=function(...e){this.debug>0&&console.log(...e)};var w=D$1((e,t)=>{u$1();var I=9007199254740991,B=function(br){return br}();function tr(br){return br===B}function rr(br){return typeof br=="string"||Object.prototype.toString.call(br)=="[object String]"}function ir(br){return Object.prototype.toString.call(br)=="[object Date]"}function lr(br){return br!==null&&typeof br=="object"}function dr(br){return typeof br=="function"}function mr(br){return typeof br=="number"&&br>-1&&br%1==0&&br<=I}function fr(br){return Object.prototype.toString.call(br)=="[object Array]"}function hr(br){return lr(br)&&!dr(br)&&mr(br.length)}function _r(br){return Object.prototype.toString.call(br)=="[object ArrayBuffer]"}function yr(br,gr){return Array.prototype.map.call(br,gr)}function Mr(br,gr){var wr=B;return dr(gr)&&Array.prototype.every.call(br,function(xr,Ir,kr){var Or=gr(xr,Ir,kr);return Or&&(wr=xr),!Or}),wr}function vr(br){return Object.assign.apply(null,arguments)}function Sr(br){var gr,wr,xr;if(rr(br)){for(wr=br.length,xr=new Uint8Array(wr),gr=0;gr<wr;gr++)xr[gr]=br.charCodeAt(gr)&255;return xr}return _r(br)?new Uint8Array(br):lr(br)&&_r(br.buffer)?new Uint8Array(br.buffer):hr(br)?new Uint8Array(br):lr(br)&&dr(br.toString)?Sr(br.toString()):new Uint8Array}t.exports.MAX_SAFE_INTEGER=I,t.exports.isUndefined=tr,t.exports.isString=rr,t.exports.isObject=lr,t.exports.isDateTime=ir,t.exports.isFunction=dr,t.exports.isArray=fr,t.exports.isArrayLike=hr,t.exports.isArrayBuffer=_r,t.exports.map=yr,t.exports.find=Mr,t.exports.extend=vr,t.exports.toUint8Array=Sr}),x=D$1((e,t)=>{u$1();var I="\0";t.exports={NULL_CHAR:I,TMAGIC:"ustar"+I+"00",OLDGNU_MAGIC:"ustar "+I,REGTYPE:0,LNKTYPE:1,SYMTYPE:2,CHRTYPE:3,BLKTYPE:4,DIRTYPE:5,FIFOTYPE:6,CONTTYPE:7,TSUID:parseInt("4000",8),TSGID:parseInt("2000",8),TSVTX:parseInt("1000",8),TUREAD:parseInt("0400",8),TUWRITE:parseInt("0200",8),TUEXEC:parseInt("0100",8),TGREAD:parseInt("0040",8),TGWRITE:parseInt("0020",8),TGEXEC:parseInt("0010",8),TOREAD:parseInt("0004",8),TOWRITE:parseInt("0002",8),TOEXEC:parseInt("0001",8),TPERMALL:parseInt("0777",8),TPERMMASK:parseInt("0777",8)}}),L=D$1((e,t)=>{u$1();var I=w(),B=x(),tr=512,rr=B.TPERMALL,ir=0,lr=0,dr=[["name",100,0,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["mode",8,100,function(gr,wr){var xr=gr[wr[0]]||rr;return xr=xr&B.TPERMMASK,_r(xr,wr[1],rr)},function(gr,wr,xr){var Ir=vr(gr.slice(wr,wr+xr[1]));return Ir&=B.TPERMMASK,Ir}],["uid",8,108,function(gr,wr){return _r(gr[wr[0]],wr[1],ir)},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["gid",8,116,function(gr,wr){return _r(gr[wr[0]],wr[1],lr)},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["size",12,124,function(gr,wr){return _r(gr.data.length,wr[1])},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["modifyTime",12,136,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}],["checksum",8,148,function(gr,wr){return" "},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["type",1,156,function(gr,wr){return""+(parseInt(gr[wr[0]],10)||0)%8},function(gr,wr,xr){return(parseInt(String.fromCharCode(gr[wr]),10)||0)%8}],["linkName",100,157,function(gr,wr){return""},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["ustar",8,257,function(gr,wr){return B.TMAGIC},function(gr,wr,xr){return fr(Mr(gr.slice(wr,wr+xr[1]),!0))},function(gr,wr){return gr[wr[0]]==B.TMAGIC||gr[wr[0]]==B.OLDGNU_MAGIC}],["owner",32,265,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["group",32,297,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["majorNumber",8,329,function(gr,wr){return""},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["minorNumber",8,337,function(gr,wr){return""},function(gr,wr,xr){return vr(gr.slice(wr,wr+xr[1]))}],["prefix",131,345,function(gr,wr){return hr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Mr(gr.slice(wr,wr+xr[1]))}],["accessTime",12,476,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}],["createTime",12,488,function(gr,wr){return yr(gr[wr[0]],wr[1])},function(gr,wr,xr){return Sr(gr.slice(wr,wr+xr[1]))}]],mr=function(gr){var wr=gr[gr.length-1];return wr[2]+wr[1]}(dr);function fr(gr){if(gr.length==8){var wr=gr.split("");if(wr[5]==B.NULL_CHAR)return(wr[6]==" "||wr[6]==B.NULL_CHAR)&&(wr[6]="0"),(wr[7]==" "||wr[7]==B.NULL_CHAR)&&(wr[7]="0"),wr=wr.join(""),wr==B.TMAGIC?wr:gr;if(wr[7]==B.NULL_CHAR)return wr[5]==B.NULL_CHAR&&(wr[5]=" "),wr[6]==B.NULL_CHAR&&(wr[6]=" "),wr==B.OLDGNU_MAGIC?wr:gr}return gr}function hr(gr,wr){return wr-=1,I.isUndefined(gr)&&(gr=""),gr=(""+gr).substr(0,wr),gr+B.NULL_CHAR}function _r(gr,wr,xr){for(xr=parseInt(xr)||0,wr-=1,gr=(parseInt(gr)||xr).toString(8).substr(-wr,wr);gr.length<wr;)gr="0"+gr;return gr+B.NULL_CHAR}function yr(gr,wr){if(I.isDateTime(gr))gr=Math.floor(1*gr/1e3);else if(gr=parseInt(gr,10),isFinite(gr)){if(gr<=0)return""}else gr=Math.floor(1*new Date/1e3);return _r(gr,wr,0)}function Mr(gr,wr){var xr=String.fromCharCode.apply(null,gr);if(wr)return xr;var Ir=xr.indexOf(B.NULL_CHAR);return Ir>=0?xr.substr(0,Ir):xr}function vr(gr){var wr=String.fromCharCode.apply(null,gr);return parseInt(wr.replace(/^0+$/g,""),8)||0}function Sr(gr){return gr.length==0||gr[0]==0?null:new Date(1e3*vr(gr))}function br(gr,wr,xr){var Ir=parseInt(wr,10)||0,kr=Math.min(Ir+mr,gr.length),Or=0,Lr=0,Kn=0;xr&&dr.every(function(Jn){return Jn[0]=="checksum"?(Lr=Ir+Jn[2],Kn=Lr+Jn[1],!1):!0});for(var Pr=32,Fr=Ir;Fr<kr;Fr++){var Jr=Fr>=Lr&&Fr<Kn?Pr:gr[Fr];Or=(Or+Jr)%262144}return Or}t.exports.recordSize=tr,t.exports.defaultFileMode=rr,t.exports.defaultUid=ir,t.exports.defaultGid=lr,t.exports.posixHeader=dr,t.exports.effectiveHeaderSize=mr,t.exports.calculateChecksum=br,t.exports.formatTarString=hr,t.exports.formatTarNumber=_r,t.exports.formatTarDateTime=yr,t.exports.parseTarString=Mr,t.exports.parseTarNumber=vr,t.exports.parseTarDateTime=Sr}),er=D$1((e,t)=>{u$1();var I=x(),B=w(),tr=L();function rr(hr){return tr.recordSize}function ir(hr){return Math.ceil(hr.data.length/tr.recordSize)*tr.recordSize}function lr(hr){var _r=0;return hr.forEach(function(yr){_r+=rr()+ir(yr)}),_r+=tr.recordSize*2,new Uint8Array(_r)}function dr(hr,_r,yr){yr=parseInt(yr)||0;var Mr=yr;tr.posixHeader.forEach(function(wr){for(var xr=wr[3](_r,wr),Ir=xr.length,kr=0;kr<Ir;kr+=1)hr[Mr+kr]=xr.charCodeAt(kr)&255;Mr+=wr[1]});var vr=B.find(tr.posixHeader,function(wr){return wr[0]=="checksum"});if(vr){var Sr=tr.calculateChecksum(hr,yr,!0),br=tr.formatTarNumber(Sr,vr[1]-2)+I.NULL_CHAR+" ";Mr=yr+vr[2];for(var gr=0;gr<br.length;gr+=1)hr[Mr]=br.charCodeAt(gr)&255,Mr++}return yr+rr()}function mr(hr,_r,yr){return yr=parseInt(yr,10)||0,hr.set(_r.data,yr),yr+ir(_r)}function fr(hr){hr=B.map(hr,function(Mr){return B.extend({},Mr,{data:B.toUint8Array(Mr.data)})});var _r=lr(hr),yr=0;return hr.forEach(function(Mr){yr=dr(_r,Mr,yr),yr=mr(_r,Mr,yr)}),_r}t.exports.tar=fr}),nr=D$1((e,t)=>{u$1();var I=x(),B=w(),tr=L(),rr={extractData:!0,checkHeader:!0,checkChecksum:!0,checkFileSize:!0},ir={size:!0,checksum:!0,ustar:!0},lr={unexpectedEndOfFile:"Unexpected end of file.",fileCorrupted:"File is corrupted.",checksumCheckFailed:"Checksum check failed."};function dr(vr){return tr.recordSize}function mr(vr){return Math.ceil(vr/tr.recordSize)*tr.recordSize}function fr(vr,Sr){for(var br=Sr,gr=Math.min(vr.length,Sr+tr.recordSize*2),wr=br;wr<gr;wr++)if(vr[wr]!=0)return!1;return!0}function hr(vr,Sr,br){if(vr.length-Sr<tr.recordSize){if(br.checkFileSize)throw new Error(lr.unexpectedEndOfFile);return null}Sr=parseInt(Sr)||0;var gr={},wr=Sr;if(tr.posixHeader.forEach(function(kr){gr[kr[0]]=kr[4](vr,wr,kr),wr+=kr[1]}),gr.type!=0&&(gr.size=0),br.checkHeader&&tr.posixHeader.forEach(function(kr){if(B.isFunction(kr[5])&&!kr[5](gr,kr)){var Or=new Error(lr.fileCorrupted);throw Or.data={offset:Sr+kr[2],field:kr[0]},Or}}),br.checkChecksum){var xr=tr.calculateChecksum(vr,Sr,!0);if(xr!=gr.checksum){var Ir=new Error(lr.checksumCheckFailed);throw Ir.data={offset:Sr,header:gr,checksum:xr},Ir}}return gr}function _r(vr,Sr,br,gr){return gr.extractData?br.size<=0?new Uint8Array:vr.slice(Sr,Sr+br.size):null}function yr(vr,Sr){var br={};return tr.posixHeader.forEach(function(gr){var wr=gr[0];ir[wr]||(br[wr]=vr[wr])}),br.isOldGNUFormat=vr.ustar==I.OLDGNU_MAGIC,Sr&&(br.data=Sr),br}function Mr(vr,Sr){Sr=B.extend({},rr,Sr);for(var br=[],gr=0,wr=vr.length;wr-gr>=tr.recordSize;){vr=B.toUint8Array(vr);var xr=hr(vr,gr,Sr);if(!xr)break;gr+=dr();var Ir=_r(vr,gr,xr,Sr);if(br.push(yr(xr,Ir)),gr+=mr(xr.size),fr(vr,gr))break}return br}t.exports.untar=Mr}),or=D$1((e,t)=>{u$1();var I=w(),B=x(),tr=er(),rr=nr();I.extend(t.exports,tr,rr,B)});u$1();u$1();var g=L$2(or());async function H$1(e,t,I="pgdata",B="auto"){let tr=Br(e,t),[rr,ir]=await qr(tr,B),lr=I+(ir?".tar.gz":".tar"),dr=ir?"application/x-gzip":"application/x-tar";return typeof File<"u"?new File([rr],lr,{type:dr}):new Blob([rr],{type:dr})}var Hr=["application/x-gtar","application/x-tar+gzip","application/x-gzip","application/gzip"];async function ce$1(e,t,I){let B=new Uint8Array(await t.arrayBuffer()),tr=typeof File<"u"&&t instanceof File?t.name:void 0;(Hr.includes(t.type)||tr!=null&&tr.endsWith(".tgz")||tr!=null&&tr.endsWith(".tar.gz"))&&(B=await ar(B));let rr;try{rr=(0,g.untar)(B)}catch(ir){if(ir instanceof Error&&ir.message.includes("File is corrupted"))B=await ar(B),rr=(0,g.untar)(B);else throw ir}for(let ir of rr){let lr=I+ir.name,dr=lr.split("/").slice(0,-1);for(let mr=1;mr<=dr.length;mr++){let fr=dr.slice(0,mr).join("/");e.analyzePath(fr).exists||e.mkdir(fr)}ir.type===g.REGTYPE?(e.writeFile(lr,ir.data),e.utime(lr,sr(ir.modifyTime),sr(ir.modifyTime))):ir.type===g.DIRTYPE&&e.mkdir(lr)}}function jr(e,t){let I=[],B=tr=>{e.readdir(tr).forEach(rr=>{if(rr==="."||rr==="..")return;let ir=tr+"/"+rr,lr=e.stat(ir),dr=e.isFile(lr.mode)?e.readFile(ir,{encoding:"binary"}):new Uint8Array(0);I.push({name:ir.substring(t.length),mode:lr.mode,size:lr.size,type:e.isFile(lr.mode)?g.REGTYPE:g.DIRTYPE,modifyTime:lr.mtime,data:dr}),e.isDir(lr.mode)&&B(ir)})};return B(t),I}function Br(e,t){let I=jr(e,t);return(0,g.tar)(I)}async function qr(e,t="auto"){if(t==="none")return[e,!1];if(typeof CompressionStream<"u")return[await Yr(e),!0];if(typeof process<"u"&&process.versions&&process.versions.node)return[await Wr(e),!0];if(t==="auto")return[e,!1];throw new Error("Compression not supported in this environment")}async function Yr(e){let t=new CompressionStream("gzip"),I=t.writable.getWriter(),B=t.readable.getReader();I.write(e),I.close();let tr=[];for(;;){let{value:lr,done:dr}=await B.read();if(dr)break;lr&&tr.push(lr)}let rr=new Uint8Array(tr.reduce((lr,dr)=>lr+dr.length,0)),ir=0;return tr.forEach(lr=>{rr.set(lr,ir),ir+=lr.length}),rr}async function Wr(e){let{promisify:t}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(B=>B.c$),[],import.meta.url),{gzip:I}=await __vitePreload(async()=>{const{gzip:B}=await import("./index.BMPxkQED.js").then(tr=>tr.c$);return{gzip:B}},[],import.meta.url);return await t(I)(e)}async function ar(e){if(typeof CompressionStream<"u")return await Xr(e);if(typeof process<"u"&&process.versions&&process.versions.node)return await Kr(e);throw new Error("Unsupported environment for decompression")}async function Xr(e){let t=new DecompressionStream("gzip"),I=t.writable.getWriter(),B=t.readable.getReader();I.write(e),I.close();let tr=[];for(;;){let{value:lr,done:dr}=await B.read();if(dr)break;lr&&tr.push(lr)}let rr=new Uint8Array(tr.reduce((lr,dr)=>lr+dr.length,0)),ir=0;return tr.forEach(lr=>{rr.set(lr,ir),ir+=lr.length}),rr}async function Kr(e){let{promisify:t}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(B=>B.c$),[],import.meta.url),{gunzip:I}=await __vitePreload(async()=>{const{gunzip:B}=await import("./index.BMPxkQED.js").then(tr=>tr.c$);return{gunzip:B}},[],import.meta.url);return await t(I)(e)}function sr(e){return e?typeof e=="number"?e:Math.floor(e.getTime()/1e3):Math.floor(Date.now()/1e3)}var Vr="/tmp/pglite",C=Vr+"/base",ur=class{constructor(e){this.dataDir=e}async init(e,t){return this.pg=e,{emscriptenOpts:t}}async syncToFs(e){}async initialSyncFs(){}async closeFs(){}async dumpTar(e,t){return H$1(this.pg.Module.FS,C,e,t)}},cr=class{constructor(e,{debug:t=!1}={}){this.dataDir=e,this.debug=t}async syncToFs(e){}async initialSyncFs(){}async closeFs(){}async dumpTar(e,t){return H$1(this.pg.Module.FS,C,e,t)}async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],I=>{let B=Zr(I,this);I.FS.mkdir(C),I.FS.mount(B,{},C)}]}}}},pr={EBADF:8,EBADFD:127,EEXIST:20,EINVAL:28,EISDIR:31,ENODEV:43,ENOENT:44,ENOTDIR:54,ENOTEMPTY:55},Zr=(e,t)=>{let I=e.FS,B=t.debug?console.log:null,tr={tryFSOperation(rr){try{return rr()}catch(ir){throw ir.code?ir.code==="UNKNOWN"?new I.ErrnoError(pr.EINVAL):new I.ErrnoError(ir.code):ir}},mount(rr){return tr.createNode(null,"/",16895,0)},syncfs(rr,ir,lr){},createNode(rr,ir,lr,dr){if(!I.isDir(lr)&&!I.isFile(lr))throw new I.ErrnoError(28);let mr=I.createNode(rr,ir,lr);return mr.node_ops=tr.node_ops,mr.stream_ops=tr.stream_ops,mr},getMode:function(rr){return B==null||B("getMode",rr),tr.tryFSOperation(()=>t.lstat(rr).mode)},realPath:function(rr){let ir=[];for(;rr.parent!==rr;)ir.push(rr.name),rr=rr.parent;return ir.push(rr.mount.opts.root),ir.reverse(),ir.join("/")},node_ops:{getattr(rr){B==null||B("getattr",tr.realPath(rr));let ir=tr.realPath(rr);return tr.tryFSOperation(()=>{let lr=t.lstat(ir);return{...lr,dev:0,ino:rr.id,nlink:1,rdev:rr.rdev,atime:new Date(lr.atime),mtime:new Date(lr.mtime),ctime:new Date(lr.ctime)}})},setattr(rr,ir){B==null||B("setattr",tr.realPath(rr),ir);let lr=tr.realPath(rr);tr.tryFSOperation(()=>{ir.mode!==void 0&&t.chmod(lr,ir.mode),ir.size!==void 0&&t.truncate(lr,ir.size),ir.timestamp!==void 0&&t.utimes(lr,ir.timestamp,ir.timestamp),ir.size!==void 0&&t.truncate(lr,ir.size)})},lookup(rr,ir){B==null||B("lookup",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/"),dr=tr.getMode(lr);return tr.createNode(rr,ir,dr)},mknod(rr,ir,lr,dr){B==null||B("mknod",tr.realPath(rr),ir,lr,dr);let mr=tr.createNode(rr,ir,lr,dr),fr=tr.realPath(mr);return tr.tryFSOperation(()=>(I.isDir(mr.mode)?t.mkdir(fr,{mode:lr}):t.writeFile(fr,"",{mode:lr}),mr))},rename(rr,ir,lr){B==null||B("rename",tr.realPath(rr),tr.realPath(ir),lr);let dr=tr.realPath(rr),mr=[tr.realPath(ir),lr].join("/");tr.tryFSOperation(()=>{t.rename(dr,mr)}),rr.name=lr},unlink(rr,ir){B==null||B("unlink",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/");try{t.unlink(lr)}catch{}},rmdir(rr,ir){B==null||B("rmdir",tr.realPath(rr),ir);let lr=[tr.realPath(rr),ir].join("/");return tr.tryFSOperation(()=>{t.rmdir(lr)})},readdir(rr){B==null||B("readdir",tr.realPath(rr));let ir=tr.realPath(rr);return tr.tryFSOperation(()=>t.readdir(ir))},symlink(rr,ir,lr){throw B==null||B("symlink",tr.realPath(rr),ir,lr),new I.ErrnoError(63)},readlink(rr){throw B==null||B("readlink",tr.realPath(rr)),new I.ErrnoError(63)}},stream_ops:{open(rr){B==null||B("open stream",tr.realPath(rr.node));let ir=tr.realPath(rr.node);return tr.tryFSOperation(()=>{I.isFile(rr.node.mode)&&(rr.shared.refcount=1,rr.nfd=t.open(ir))})},close(rr){return B==null||B("close stream",tr.realPath(rr.node)),tr.tryFSOperation(()=>{I.isFile(rr.node.mode)&&rr.nfd&&--rr.shared.refcount===0&&t.close(rr.nfd)})},dup(rr){B==null||B("dup stream",tr.realPath(rr.node)),rr.shared.refcount++},read(rr,ir,lr,dr,mr){return B==null||B("read stream",tr.realPath(rr.node),lr,dr,mr),dr===0?0:tr.tryFSOperation(()=>t.read(rr.nfd,ir,lr,dr,mr))},write(rr,ir,lr,dr,mr){return B==null||B("write stream",tr.realPath(rr.node),lr,dr,mr),tr.tryFSOperation(()=>t.write(rr.nfd,ir.buffer,lr,dr,mr))},llseek(rr,ir,lr){B==null||B("llseek stream",tr.realPath(rr.node),ir,lr);let dr=ir;if(lr===1?dr+=rr.position:lr===2&&I.isFile(rr.node.mode)&&tr.tryFSOperation(()=>{let mr=t.fstat(rr.nfd);dr+=mr.size}),dr<0)throw new I.ErrnoError(28);return dr},mmap(rr,ir,lr,dr,mr){if(B==null||B("mmap stream",tr.realPath(rr.node),ir,lr,dr,mr),!I.isFile(rr.node.mode))throw new I.ErrnoError(pr.ENODEV);let fr=e.mmapAlloc(ir);return tr.stream_ops.read(rr,e.HEAP8,fr,ir,lr),{ptr:fr,allocated:!0}},msync(rr,ir,lr,dr,mr){return B==null||B("msync stream",tr.realPath(rr.node),lr,dr,mr),tr.stream_ops.write(rr,ir,0,dr,lr),0}}};return tr};u$1();u$1();u$1();var He=new Error("request for lock canceled"),We=function(e,t,I,B){function tr(rr){return rr instanceof I?rr:new I(function(ir){ir(rr)})}return new(I||(I=Promise))(function(rr,ir){function lr(fr){try{mr(B.next(fr))}catch(hr){ir(hr)}}function dr(fr){try{mr(B.throw(fr))}catch(hr){ir(hr)}}function mr(fr){fr.done?rr(fr.value):tr(fr.value).then(lr,dr)}mr((B=B.apply(e,[])).next())})},ce=class{constructor(e,t=He){this._value=e,this._cancelError=t,this._weightedQueues=[],this._weightedWaiters=[]}acquire(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((t,I)=>{this._weightedQueues[e-1]||(this._weightedQueues[e-1]=[]),this._weightedQueues[e-1].push({resolve:t,reject:I}),this._dispatch()})}runExclusive(e,t=1){return We(this,void 0,void 0,function*(){let[I,B]=yield this.acquire(t);try{return yield e(I)}finally{B()}})}waitForUnlock(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise(t=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),this._weightedWaiters[e-1].push(t),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatch()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatch()}cancel(){this._weightedQueues.forEach(e=>e.forEach(t=>t.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var e;for(let t=this._value;t>0;t--){let I=(e=this._weightedQueues[t-1])===null||e===void 0?void 0:e.shift();if(!I)continue;let B=this._value,tr=t;this._value-=t,t=this._value+1,I.resolve([B,this._newReleaser(tr)])}this._drainUnlockWaiters()}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){for(let e=this._value;e>0;e--)this._weightedWaiters[e-1]&&(this._weightedWaiters[e-1].forEach(t=>t()),this._weightedWaiters[e-1]=[])}},je=function(e,t,I,B){function tr(rr){return rr instanceof I?rr:new I(function(ir){ir(rr)})}return new(I||(I=Promise))(function(rr,ir){function lr(fr){try{mr(B.next(fr))}catch(hr){ir(hr)}}function dr(fr){try{mr(B.throw(fr))}catch(hr){ir(hr)}}function mr(fr){fr.done?rr(fr.value):tr(fr.value).then(lr,dr)}mr((B=B.apply(e,[])).next())})},H=class{constructor(e){this._semaphore=new ce(1,e)}acquire(){return je(this,void 0,void 0,function*(){let[,e]=yield this._semaphore.acquire();return e})}runExclusive(e){return this._semaphore.runExclusive(()=>e())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}};u$1();var Ie=L$2(or());async function ge(e){if(Fe$1){let t=await __vitePreload(()=>import("./index.BMPxkQED.js").then(lr=>lr.c$),[],import.meta.url),I=await __vitePreload(()=>import("./index.BMPxkQED.js").then(lr=>lr.c$),[],import.meta.url),{Writable:B}=await __vitePreload(async()=>{const{Writable:lr}=await import("./index.BMPxkQED.js").then(dr=>dr.c$);return{Writable:lr}},[],import.meta.url),{pipeline:tr}=await __vitePreload(async()=>{const{pipeline:lr}=await import("./index.BMPxkQED.js").then(dr=>dr.c$);return{pipeline:lr}},[],import.meta.url);if(!t.existsSync(e))throw new Error(`Extension bundle not found: ${e}`);let rr=I.createGunzip(),ir=[];return await tr(t.createReadStream(e),rr,new B({write(lr,dr,mr){ir.push(lr),mr()}})),new Blob(ir)}else{let t=await fetch(e.toString());if(!t.ok||!t.body)return null;if(t.headers.get("Content-Encoding")==="gzip")return t.blob();{let I=new DecompressionStream("gzip");return new Response(t.body.pipeThrough(I)).blob()}}}async function Pe(e,t){for(let I in e.pg_extensions){let B;try{B=await e.pg_extensions[I]}catch(tr){console.error("Failed to fetch extension:",I,tr);continue}if(B){let tr=new Uint8Array(await B.arrayBuffer());Ve(e,I,tr,t)}else console.error("Could not get binary data for extension:",I)}}function Ve(e,t,I,B){Ie.default.untar(I).forEach(tr=>{if(!tr.name.startsWith(".")){let rr=e.WASM_PREFIX+"/"+tr.name;if(tr.name.endsWith(".so")){let ir=(...dr)=>{B("pgfs:ext OK",rr,dr)},lr=(...dr)=>{B("pgfs:ext FAIL",rr,dr)};e.FS.createPreloadedFile(Ke(rr),tr.name.split("/").pop().slice(0,-3),tr.data,!0,!0,ir,lr,!1)}else e.FS.writeFile(rr,tr.data)}})}function Ke(e){let t=e.lastIndexOf("/");return t>0?e.slice(0,t):e}u$1();u$1();var ee=class extends ur{async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],I=>{let B=I.FS.filesystems.IDBFS;I.FS.mkdir("/pglite"),I.FS.mkdir(`/pglite/${this.dataDir}`),I.FS.mount(B,{},`/pglite/${this.dataDir}`),I.FS.symlink(`/pglite/${this.dataDir}`,C)}]}}}initialSyncFs(){return new Promise((e,t)=>{this.pg.Module.FS.syncfs(!0,I=>{I?t(I):e()})})}syncToFs(e){return new Promise((t,I)=>{this.pg.Module.FS.syncfs(!1,B=>{B?I(B):t()})})}async closeFs(){let e=this.pg.Module.FS.filesystems.IDBFS.dbs[this.dataDir];e&&e.close(),this.pg.Module.FS.quit()}};u$1();var te=class extends ur{async closeFs(){this.pg.Module.FS.quit()}};function Fe(e){let t;if(e!=null&&e.startsWith("file://")){if(e=e.slice(7),!e)throw new Error("Invalid dataDir, must be a valid path");t="nodefs"}else e!=null&&e.startsWith("idb://")?(e=e.slice(6),t="idbfs"):e!=null&&e.startsWith("opfs-ahp://")?(e=e.slice(11),t="opfs-ahp"):!e||e!=null&&e.startsWith("memory://")?t="memoryfs":t="nodefs";return{dataDir:e,fsType:t}}async function Ae(e,t){let I;if(e&&t==="nodefs"){let{NodeFS:B}=await __vitePreload(()=>import("./nodefs.-VhAN1o-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);I=new B(e)}else if(e&&t==="idbfs")I=new ee(e);else if(e&&t==="opfs-ahp"){let{OpfsAhpFS:B}=await __vitePreload(()=>import("./opfs-ahp.DfAaRTE1.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);I=new B(e)}else I=new te;return I}u$1();u$1();var Qe=(()=>{var _scriptName=import.meta.url;return async function(moduleArg={}){var moduleRtn,Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t}),ENVIRONMENT_IS_WEB=typeof window=="object",ENVIRONMENT_IS_WORKER=typeof WorkerGlobalScope<"u",ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";if(ENVIRONMENT_IS_NODE){let{createRequire:e}=await __vitePreload(()=>import("./index.BMPxkQED.js").then(I=>I.c$),[],import.meta.url),t=import.meta.url;t.startsWith("data:")&&(t="/");var require=e(t)}Module.expectedDataFileDownloads??(Module.expectedDataFileDownloads=0),Module.expectedDataFileDownloads++,(()=>{var e=typeof ENVIRONMENT_IS_PTHREAD<"u"&&ENVIRONMENT_IS_PTHREAD,t=typeof ENVIRONMENT_IS_WASM_WORKER<"u"&&ENVIRONMENT_IS_WASM_WORKER;if(e||t)return;var I=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";function B(tr){typeof window=="object"?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):typeof process>"u"&&typeof location<"u"&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var rr="postgres.data",ir="postgres.data",lr=Module.locateFile?Module.locateFile(ir,""):ir,dr=tr.remote_package_size;function mr(Mr,vr,Sr,br){if(I){require("fs").readFile(Mr,(gr,wr)=>{gr?br(gr):Sr(wr.buffer)});return}Module.dataFileDownloads??(Module.dataFileDownloads={}),fetch(Mr).catch(gr=>Promise.reject(new Error(`Network Error: ${Mr}`,{cause:gr}))).then(gr=>{var Pr;if(!gr.ok)return Promise.reject(new Error(`${gr.status}: ${gr.url}`));if(!gr.body&&gr.arrayBuffer)return gr.arrayBuffer().then(Sr);let wr=gr.body.getReader(),xr=()=>wr.read().then(Kn).catch(Fr=>Promise.reject(new Error(`Unexpected error while handling : ${gr.url} ${Fr}`,{cause:Fr}))),Ir=[],kr=gr.headers,Or=Number(kr.get("Content-Length")??vr),Lr=0,Kn=({done:Fr,value:Jr})=>{var Jn;if(Fr){let Ar=new Uint8Array(Ir.map(Qr=>Qr.length).reduce((Qr,ai)=>Qr+ai,0)),$r=0;for(let Qr of Ir)Ar.set(Qr,$r),$r+=Qr.length;Sr(Ar.buffer)}else{Ir.push(Jr),Lr+=Jr.length,Module.dataFileDownloads[Mr]={loaded:Lr,total:Or};let Ar=0,$r=0;for(let Qr of Object.values(Module.dataFileDownloads))Ar+=Qr.loaded,$r+=Qr.total;return(Jn=Module.setStatus)==null||Jn.call(Module,`Downloading data... (${Ar}/${$r})`),xr()}};return(Pr=Module.setStatus)==null||Pr.call(Module,"Downloading data..."),xr()})}function fr(Mr){console.error("package error:",Mr)}var hr=null,_r=Module.getPreloadedPackage?Module.getPreloadedPackage(lr,dr):null;_r||mr(lr,dr,Mr=>{hr?(hr(Mr),hr=null):_r=Mr},fr);function yr(Mr){function vr(xr,Ir){if(!xr)throw Ir+new Error().stack}Mr.FS_createPath("/","home",!0,!0),Mr.FS_createPath("/home","web_user",!0,!0),Mr.FS_createPath("/","tmp",!0,!0),Mr.FS_createPath("/tmp","pglite",!0,!0),Mr.FS_createPath("/tmp/pglite","bin",!0,!0),Mr.FS_createPath("/tmp/pglite","lib",!0,!0),Mr.FS_createPath("/tmp/pglite/lib","postgresql",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql","pgxs",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs","config",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs","src",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src","makefiles",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src","test",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src/test","isolation",!0,!0),Mr.FS_createPath("/tmp/pglite/lib/postgresql/pgxs/src/test","regress",!0,!0),Mr.FS_createPath("/tmp/pglite","share",!0,!0),Mr.FS_createPath("/tmp/pglite/share","postgresql",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","extension",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","timezone",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Africa",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","America",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Argentina",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Indiana",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","Kentucky",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone/America","North_Dakota",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Antarctica",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Arctic",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Asia",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Atlantic",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Australia",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Brazil",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Canada",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Chile",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Etc",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Europe",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Indian",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Mexico",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","Pacific",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql/timezone","US",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","timezonesets",!0,!0),Mr.FS_createPath("/tmp/pglite/share/postgresql","tsearch_data",!0,!0);function Sr(xr,Ir,kr){this.start=xr,this.end=Ir,this.audio=kr}Sr.prototype={requests:{},open:function(xr,Ir){this.name=Ir,this.requests[Ir]=this,Mr.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var xr=this.byteArray.subarray(this.start,this.end);this.finish(xr)},finish:function(xr){var Ir=this;Mr.FS_createDataFile(this.name,null,xr,!0,!0,!0),Mr.removeRunDependency(`fp ${Ir.name}`),this.requests[this.name]=null}};for(var br=tr.files,gr=0;gr<br.length;++gr)new Sr(br[gr].start,br[gr].end,br[gr].audio||0).open("GET",br[gr].filename);function wr(xr){vr(xr,"Loading data file failed."),vr(xr.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var Ir=new Uint8Array(xr);Sr.prototype.byteArray=Ir;for(var kr=tr.files,Or=0;Or<kr.length;++Or)Sr.prototype.requests[kr[Or].filename].onload();Mr.removeRunDependency("datafile_postgres.data")}Mr.addRunDependency("datafile_postgres.data"),Mr.preloadResults??(Mr.preloadResults={}),Mr.preloadResults[rr]={fromCache:!1},_r?(wr(_r),_r=null):hr=wr}Module.calledRun?yr(Module):(Module.preRun??(Module.preRun=[])).push(yr)}B({files:[{filename:"/home/web_user/.pgpass",start:0,end:204},{filename:"/tmp/pglite/bin/initdb",start:204,end:216},{filename:"/tmp/pglite/bin/postgres",start:216,end:228},{filename:"/tmp/pglite/lib/postgresql/cyrillic_and_mic.so",start:228,end:20397},{filename:"/tmp/pglite/lib/postgresql/dict_snowball.so",start:20397,end:1581299},{filename:"/tmp/pglite/lib/postgresql/euc2004_sjis2004.so",start:1581299,end:1592382},{filename:"/tmp/pglite/lib/postgresql/euc_cn_and_mic.so",start:1592382,end:1599256},{filename:"/tmp/pglite/lib/postgresql/euc_jp_and_sjis.so",start:1599256,end:1622931},{filename:"/tmp/pglite/lib/postgresql/euc_kr_and_mic.so",start:1622931,end:1630057},{filename:"/tmp/pglite/lib/postgresql/euc_tw_and_big5.so",start:1630057,end:1651566},{filename:"/tmp/pglite/lib/postgresql/latin2_and_win1250.so",start:1651566,end:1660345},{filename:"/tmp/pglite/lib/postgresql/latin_and_mic.so",start:1660345,end:1668272},{filename:"/tmp/pglite/lib/postgresql/libpqwalreceiver.so",start:1668272,end:2186522},{filename:"/tmp/pglite/lib/postgresql/pgoutput.so",start:2186522,end:2303364},{filename:"/tmp/pglite/lib/postgresql/pgxs/config/install-sh",start:2303364,end:2317361},{filename:"/tmp/pglite/lib/postgresql/pgxs/config/missing",start:2317361,end:2318709},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.global",start:2318709,end:2354956},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.port",start:2354956,end:2355232},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/Makefile.shlib",start:2355232,end:2371270},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/makefiles/pgxs.mk",start:2371270,end:2386198},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/nls-global.mk",start:2386198,end:2393083},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/isolation/isolationtester.cjs",start:2393083,end:2589770},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/isolation/pg_isolation_regress.cjs",start:2589770,end:2742128},{filename:"/tmp/pglite/lib/postgresql/pgxs/src/test/regress/pg_regress.cjs",start:2742128,end:2894476},{filename:"/tmp/pglite/lib/postgresql/plpgsql.so",start:2894476,end:3653241},{filename:"/tmp/pglite/password",start:3653241,end:3653250},{filename:"/tmp/pglite/share/postgresql/errcodes.txt",start:3653250,end:3686708},{filename:"/tmp/pglite/share/postgresql/extension/plpgsql--1.0.sql",start:3686708,end:3687366},{filename:"/tmp/pglite/share/postgresql/extension/plpgsql.control",start:3687366,end:3687559},{filename:"/tmp/pglite/share/postgresql/fix-CVE-2024-4317.sql",start:3687559,end:3693324},{filename:"/tmp/pglite/share/postgresql/information_schema.sql",start:3693324,end:3808299},{filename:"/tmp/pglite/share/postgresql/pg_hba.conf.sample",start:3808299,end:3813924},{filename:"/tmp/pglite/share/postgresql/pg_ident.conf.sample",start:3813924,end:3816564},{filename:"/tmp/pglite/share/postgresql/pg_service.conf.sample",start:3816564,end:3817168},{filename:"/tmp/pglite/share/postgresql/postgres.bki",start:3817168,end:4761272},{filename:"/tmp/pglite/share/postgresql/postgresql.conf.sample",start:4761272,end:4790919},{filename:"/tmp/pglite/share/postgresql/psqlrc.sample",start:4790919,end:4791197},{filename:"/tmp/pglite/share/postgresql/snowball_create.sql",start:4791197,end:4835373},{filename:"/tmp/pglite/share/postgresql/sql_features.txt",start:4835373,end:4871054},{filename:"/tmp/pglite/share/postgresql/system_constraints.sql",start:4871054,end:4879949},{filename:"/tmp/pglite/share/postgresql/system_functions.sql",start:4879949,end:4903264},{filename:"/tmp/pglite/share/postgresql/system_views.sql",start:4903264,end:4953537},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Abidjan",start:4953537,end:4953667},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Accra",start:4953667,end:4953797},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Addis_Ababa",start:4953797,end:4953988},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Algiers",start:4953988,end:4954458},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Asmara",start:4954458,end:4954649},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Asmera",start:4954649,end:4954840},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bamako",start:4954840,end:4954970},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bangui",start:4954970,end:4955150},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Banjul",start:4955150,end:4955280},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bissau",start:4955280,end:4955429},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Blantyre",start:4955429,end:4955560},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Brazzaville",start:4955560,end:4955740},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Bujumbura",start:4955740,end:4955871},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Cairo",start:4955871,end:4957180},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Casablanca",start:4957180,end:4959099},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ceuta",start:4959099,end:4959661},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Conakry",start:4959661,end:4959791},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Dakar",start:4959791,end:4959921},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Dar_es_Salaam",start:4959921,end:4960112},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Djibouti",start:4960112,end:4960303},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Douala",start:4960303,end:4960483},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/El_Aaiun",start:4960483,end:4962313},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Freetown",start:4962313,end:4962443},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Gaborone",start:4962443,end:4962574},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Harare",start:4962574,end:4962705},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Johannesburg",start:4962705,end:4962895},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Juba",start:4962895,end:4963353},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kampala",start:4963353,end:4963544},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Khartoum",start:4963544,end:4964002},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kigali",start:4964002,end:4964133},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Kinshasa",start:4964133,end:4964313},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lagos",start:4964313,end:4964493},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Libreville",start:4964493,end:4964673},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lome",start:4964673,end:4964803},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Luanda",start:4964803,end:4964983},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lubumbashi",start:4964983,end:4965114},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Lusaka",start:4965114,end:4965245},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Malabo",start:4965245,end:4965425},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Maputo",start:4965425,end:4965556},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Maseru",start:4965556,end:4965746},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Mbabane",start:4965746,end:4965936},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Mogadishu",start:4965936,end:4966127},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Monrovia",start:4966127,end:4966291},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Nairobi",start:4966291,end:4966482},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ndjamena",start:4966482,end:4966642},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Niamey",start:4966642,end:4966822},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Nouakchott",start:4966822,end:4966952},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Ouagadougou",start:4966952,end:4967082},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Porto-Novo",start:4967082,end:4967262},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Sao_Tome",start:4967262,end:4967435},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Timbuktu",start:4967435,end:4967565},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Tripoli",start:4967565,end:4967996},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Tunis",start:4967996,end:4968445},{filename:"/tmp/pglite/share/postgresql/timezone/Africa/Windhoek",start:4968445,end:4969083},{filename:"/tmp/pglite/share/postgresql/timezone/America/Adak",start:4969083,end:4970052},{filename:"/tmp/pglite/share/postgresql/timezone/America/Anchorage",start:4970052,end:4971029},{filename:"/tmp/pglite/share/postgresql/timezone/America/Anguilla",start:4971029,end:4971206},{filename:"/tmp/pglite/share/postgresql/timezone/America/Antigua",start:4971206,end:4971383},{filename:"/tmp/pglite/share/postgresql/timezone/America/Araguaina",start:4971383,end:4971975},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Buenos_Aires",start:4971975,end:4972683},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Catamarca",start:4972683,end:4973391},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/ComodRivadavia",start:4973391,end:4974099},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Cordoba",start:4974099,end:4974807},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Jujuy",start:4974807,end:4975497},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/La_Rioja",start:4975497,end:4976214},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Mendoza",start:4976214,end:4976922},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Rio_Gallegos",start:4976922,end:4977630},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Salta",start:4977630,end:4978320},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/San_Juan",start:4978320,end:4979037},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/San_Luis",start:4979037,end:4979754},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Tucuman",start:4979754,end:4980480},{filename:"/tmp/pglite/share/postgresql/timezone/America/Argentina/Ushuaia",start:4980480,end:4981188},{filename:"/tmp/pglite/share/postgresql/timezone/America/Aruba",start:4981188,end:4981365},{filename:"/tmp/pglite/share/postgresql/timezone/America/Asuncion",start:4981365,end:4982249},{filename:"/tmp/pglite/share/postgresql/timezone/America/Atikokan",start:4982249,end:4982398},{filename:"/tmp/pglite/share/postgresql/timezone/America/Atka",start:4982398,end:4983367},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bahia",start:4983367,end:4984049},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bahia_Banderas",start:4984049,end:4984777},{filename:"/tmp/pglite/share/postgresql/timezone/America/Barbados",start:4984777,end:4985055},{filename:"/tmp/pglite/share/postgresql/timezone/America/Belem",start:4985055,end:4985449},{filename:"/tmp/pglite/share/postgresql/timezone/America/Belize",start:4985449,end:4986494},{filename:"/tmp/pglite/share/postgresql/timezone/America/Blanc-Sablon",start:4986494,end:4986671},{filename:"/tmp/pglite/share/postgresql/timezone/America/Boa_Vista",start:4986671,end:4987101},{filename:"/tmp/pglite/share/postgresql/timezone/America/Bogota",start:4987101,end:4987280},{filename:"/tmp/pglite/share/postgresql/timezone/America/Boise",start:4987280,end:4988279},{filename:"/tmp/pglite/share/postgresql/timezone/America/Buenos_Aires",start:4988279,end:4988987},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cambridge_Bay",start:4988987,end:4989870},{filename:"/tmp/pglite/share/postgresql/timezone/America/Campo_Grande",start:4989870,end:4990822},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cancun",start:4990822,end:4991351},{filename:"/tmp/pglite/share/postgresql/timezone/America/Caracas",start:4991351,end:4991541},{filename:"/tmp/pglite/share/postgresql/timezone/America/Catamarca",start:4991541,end:4992249},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cayenne",start:4992249,end:4992400},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cayman",start:4992400,end:4992549},{filename:"/tmp/pglite/share/postgresql/timezone/America/Chicago",start:4992549,end:4994303},{filename:"/tmp/pglite/share/postgresql/timezone/America/Chihuahua",start:4994303,end:4994994},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ciudad_Juarez",start:4994994,end:4995712},{filename:"/tmp/pglite/share/postgresql/timezone/America/Coral_Harbour",start:4995712,end:4995861},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cordoba",start:4995861,end:4996569},{filename:"/tmp/pglite/share/postgresql/timezone/America/Costa_Rica",start:4996569,end:4996801},{filename:"/tmp/pglite/share/postgresql/timezone/America/Creston",start:4996801,end:4997041},{filename:"/tmp/pglite/share/postgresql/timezone/America/Cuiaba",start:4997041,end:4997975},{filename:"/tmp/pglite/share/postgresql/timezone/America/Curacao",start:4997975,end:4998152},{filename:"/tmp/pglite/share/postgresql/timezone/America/Danmarkshavn",start:4998152,end:4998599},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dawson",start:4998599,end:4999628},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dawson_Creek",start:4999628,end:5000311},{filename:"/tmp/pglite/share/postgresql/timezone/America/Denver",start:5000311,end:5001353},{filename:"/tmp/pglite/share/postgresql/timezone/America/Detroit",start:5001353,end:5002252},{filename:"/tmp/pglite/share/postgresql/timezone/America/Dominica",start:5002252,end:5002429},{filename:"/tmp/pglite/share/postgresql/timezone/America/Edmonton",start:5002429,end:5003399},{filename:"/tmp/pglite/share/postgresql/timezone/America/Eirunepe",start:5003399,end:5003835},{filename:"/tmp/pglite/share/postgresql/timezone/America/El_Salvador",start:5003835,end:5004011},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ensenada",start:5004011,end:5005036},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fort_Nelson",start:5005036,end:5006484},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fort_Wayne",start:5006484,end:5007015},{filename:"/tmp/pglite/share/postgresql/timezone/America/Fortaleza",start:5007015,end:5007499},{filename:"/tmp/pglite/share/postgresql/timezone/America/Glace_Bay",start:5007499,end:5008379},{filename:"/tmp/pglite/share/postgresql/timezone/America/Godthab",start:5008379,end:5009344},{filename:"/tmp/pglite/share/postgresql/timezone/America/Goose_Bay",start:5009344,end:5010924},{filename:"/tmp/pglite/share/postgresql/timezone/America/Grand_Turk",start:5010924,end:5011777},{filename:"/tmp/pglite/share/postgresql/timezone/America/Grenada",start:5011777,end:5011954},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guadeloupe",start:5011954,end:5012131},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guatemala",start:5012131,end:5012343},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guayaquil",start:5012343,end:5012522},{filename:"/tmp/pglite/share/postgresql/timezone/America/Guyana",start:5012522,end:5012703},{filename:"/tmp/pglite/share/postgresql/timezone/America/Halifax",start:5012703,end:5014375},{filename:"/tmp/pglite/share/postgresql/timezone/America/Havana",start:5014375,end:5015492},{filename:"/tmp/pglite/share/postgresql/timezone/America/Hermosillo",start:5015492,end:5015778},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Indianapolis",start:5015778,end:5016309},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Knox",start:5016309,end:5017325},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Marengo",start:5017325,end:5017892},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Petersburg",start:5017892,end:5018575},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Tell_City",start:5018575,end:5019097},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Vevay",start:5019097,end:5019466},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Vincennes",start:5019466,end:5020024},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indiana/Winamac",start:5020024,end:5020636},{filename:"/tmp/pglite/share/postgresql/timezone/America/Indianapolis",start:5020636,end:5021167},{filename:"/tmp/pglite/share/postgresql/timezone/America/Inuvik",start:5021167,end:5021984},{filename:"/tmp/pglite/share/postgresql/timezone/America/Iqaluit",start:5021984,end:5022839},{filename:"/tmp/pglite/share/postgresql/timezone/America/Jamaica",start:5022839,end:5023178},{filename:"/tmp/pglite/share/postgresql/timezone/America/Jujuy",start:5023178,end:5023868},{filename:"/tmp/pglite/share/postgresql/timezone/America/Juneau",start:5023868,end:5024834},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kentucky/Louisville",start:5024834,end:5026076},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kentucky/Monticello",start:5026076,end:5027048},{filename:"/tmp/pglite/share/postgresql/timezone/America/Knox_IN",start:5027048,end:5028064},{filename:"/tmp/pglite/share/postgresql/timezone/America/Kralendijk",start:5028064,end:5028241},{filename:"/tmp/pglite/share/postgresql/timezone/America/La_Paz",start:5028241,end:5028411},{filename:"/tmp/pglite/share/postgresql/timezone/America/Lima",start:5028411,end:5028694},{filename:"/tmp/pglite/share/postgresql/timezone/America/Los_Angeles",start:5028694,end:5029988},{filename:"/tmp/pglite/share/postgresql/timezone/America/Louisville",start:5029988,end:5031230},{filename:"/tmp/pglite/share/postgresql/timezone/America/Lower_Princes",start:5031230,end:5031407},{filename:"/tmp/pglite/share/postgresql/timezone/America/Maceio",start:5031407,end:5031909},{filename:"/tmp/pglite/share/postgresql/timezone/America/Managua",start:5031909,end:5032204},{filename:"/tmp/pglite/share/postgresql/timezone/America/Manaus",start:5032204,end:5032616},{filename:"/tmp/pglite/share/postgresql/timezone/America/Marigot",start:5032616,end:5032793},{filename:"/tmp/pglite/share/postgresql/timezone/America/Martinique",start:5032793,end:5032971},{filename:"/tmp/pglite/share/postgresql/timezone/America/Matamoros",start:5032971,end:5033408},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mazatlan",start:5033408,end:5034126},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mendoza",start:5034126,end:5034834},{filename:"/tmp/pglite/share/postgresql/timezone/America/Menominee",start:5034834,end:5035751},{filename:"/tmp/pglite/share/postgresql/timezone/America/Merida",start:5035751,end:5036405},{filename:"/tmp/pglite/share/postgresql/timezone/America/Metlakatla",start:5036405,end:5037e3},{filename:"/tmp/pglite/share/postgresql/timezone/America/Mexico_City",start:5037e3,end:5037773},{filename:"/tmp/pglite/share/postgresql/timezone/America/Miquelon",start:5037773,end:5038323},{filename:"/tmp/pglite/share/postgresql/timezone/America/Moncton",start:5038323,end:5039816},{filename:"/tmp/pglite/share/postgresql/timezone/America/Monterrey",start:5039816,end:5040460},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montevideo",start:5040460,end:5041429},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montreal",start:5041429,end:5043146},{filename:"/tmp/pglite/share/postgresql/timezone/America/Montserrat",start:5043146,end:5043323},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nassau",start:5043323,end:5045040},{filename:"/tmp/pglite/share/postgresql/timezone/America/New_York",start:5045040,end:5046784},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nipigon",start:5046784,end:5048501},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nome",start:5048501,end:5049476},{filename:"/tmp/pglite/share/postgresql/timezone/America/Noronha",start:5049476,end:5049960},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/Beulah",start:5049960,end:5051003},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/Center",start:5051003,end:5051993},{filename:"/tmp/pglite/share/postgresql/timezone/America/North_Dakota/New_Salem",start:5051993,end:5052983},{filename:"/tmp/pglite/share/postgresql/timezone/America/Nuuk",start:5052983,end:5053948},{filename:"/tmp/pglite/share/postgresql/timezone/America/Ojinaga",start:5053948,end:5054657},{filename:"/tmp/pglite/share/postgresql/timezone/America/Panama",start:5054657,end:5054806},{filename:"/tmp/pglite/share/postgresql/timezone/America/Pangnirtung",start:5054806,end:5055661},{filename:"/tmp/pglite/share/postgresql/timezone/America/Paramaribo",start:5055661,end:5055848},{filename:"/tmp/pglite/share/postgresql/timezone/America/Phoenix",start:5055848,end:5056088},{filename:"/tmp/pglite/share/postgresql/timezone/America/Port-au-Prince",start:5056088,end:5056653},{filename:"/tmp/pglite/share/postgresql/timezone/America/Port_of_Spain",start:5056653,end:5056830},{filename:"/tmp/pglite/share/postgresql/timezone/America/Porto_Acre",start:5056830,end:5057248},{filename:"/tmp/pglite/share/postgresql/timezone/America/Porto_Velho",start:5057248,end:5057642},{filename:"/tmp/pglite/share/postgresql/timezone/America/Puerto_Rico",start:5057642,end:5057819},{filename:"/tmp/pglite/share/postgresql/timezone/America/Punta_Arenas",start:5057819,end:5059037},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rainy_River",start:5059037,end:5060331},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rankin_Inlet",start:5060331,end:5061138},{filename:"/tmp/pglite/share/postgresql/timezone/America/Recife",start:5061138,end:5061622},{filename:"/tmp/pglite/share/postgresql/timezone/America/Regina",start:5061622,end:5062260},{filename:"/tmp/pglite/share/postgresql/timezone/America/Resolute",start:5062260,end:5063067},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rio_Branco",start:5063067,end:5063485},{filename:"/tmp/pglite/share/postgresql/timezone/America/Rosario",start:5063485,end:5064193},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santa_Isabel",start:5064193,end:5065218},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santarem",start:5065218,end:5065627},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santiago",start:5065627,end:5066981},{filename:"/tmp/pglite/share/postgresql/timezone/America/Santo_Domingo",start:5066981,end:5067298},{filename:"/tmp/pglite/share/postgresql/timezone/America/Sao_Paulo",start:5067298,end:5068250},{filename:"/tmp/pglite/share/postgresql/timezone/America/Scoresbysund",start:5068250,end:5069234},{filename:"/tmp/pglite/share/postgresql/timezone/America/Shiprock",start:5069234,end:5070276},{filename:"/tmp/pglite/share/postgresql/timezone/America/Sitka",start:5070276,end:5071232},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Barthelemy",start:5071232,end:5071409},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Johns",start:5071409,end:5073287},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Kitts",start:5073287,end:5073464},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Lucia",start:5073464,end:5073641},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Thomas",start:5073641,end:5073818},{filename:"/tmp/pglite/share/postgresql/timezone/America/St_Vincent",start:5073818,end:5073995},{filename:"/tmp/pglite/share/postgresql/timezone/America/Swift_Current",start:5073995,end:5074363},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tegucigalpa",start:5074363,end:5074557},{filename:"/tmp/pglite/share/postgresql/timezone/America/Thule",start:5074557,end:5075012},{filename:"/tmp/pglite/share/postgresql/timezone/America/Thunder_Bay",start:5075012,end:5076729},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tijuana",start:5076729,end:5077754},{filename:"/tmp/pglite/share/postgresql/timezone/America/Toronto",start:5077754,end:5079471},{filename:"/tmp/pglite/share/postgresql/timezone/America/Tortola",start:5079471,end:5079648},{filename:"/tmp/pglite/share/postgresql/timezone/America/Vancouver",start:5079648,end:5080978},{filename:"/tmp/pglite/share/postgresql/timezone/America/Virgin",start:5080978,end:5081155},{filename:"/tmp/pglite/share/postgresql/timezone/America/Whitehorse",start:5081155,end:5082184},{filename:"/tmp/pglite/share/postgresql/timezone/America/Winnipeg",start:5082184,end:5083478},{filename:"/tmp/pglite/share/postgresql/timezone/America/Yakutat",start:5083478,end:5084424},{filename:"/tmp/pglite/share/postgresql/timezone/America/Yellowknife",start:5084424,end:5085394},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Casey",start:5085394,end:5085681},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Davis",start:5085681,end:5085878},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/DumontDUrville",start:5085878,end:5086032},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Macquarie",start:5086032,end:5087008},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Mawson",start:5087008,end:5087160},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/McMurdo",start:5087160,end:5088203},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Palmer",start:5088203,end:5089090},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Rothera",start:5089090,end:5089222},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/South_Pole",start:5089222,end:5090265},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Syowa",start:5090265,end:5090398},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Troll",start:5090398,end:5090575},{filename:"/tmp/pglite/share/postgresql/timezone/Antarctica/Vostok",start:5090575,end:5090745},{filename:"/tmp/pglite/share/postgresql/timezone/Arctic/Longyearbyen",start:5090745,end:5091450},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aden",start:5091450,end:5091583},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Almaty",start:5091583,end:5092201},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Amman",start:5092201,end:5093129},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Anadyr",start:5093129,end:5093872},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aqtau",start:5093872,end:5094478},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Aqtobe",start:5094478,end:5095093},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ashgabat",start:5095093,end:5095468},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ashkhabad",start:5095468,end:5095843},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Atyrau",start:5095843,end:5096459},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Baghdad",start:5096459,end:5097089},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bahrain",start:5097089,end:5097241},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Baku",start:5097241,end:5097985},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bangkok",start:5097985,end:5098137},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Barnaul",start:5098137,end:5098890},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Beirut",start:5098890,end:5099622},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Bishkek",start:5099622,end:5100240},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Brunei",start:5100240,end:5100560},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Calcutta",start:5100560,end:5100780},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chita",start:5100780,end:5101530},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Choibalsan",start:5101530,end:5102149},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chongqing",start:5102149,end:5102542},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Chungking",start:5102542,end:5102935},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Colombo",start:5102935,end:5103182},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dacca",start:5103182,end:5103413},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Damascus",start:5103413,end:5104647},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dhaka",start:5104647,end:5104878},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dili",start:5104878,end:5105048},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dubai",start:5105048,end:5105181},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Dushanbe",start:5105181,end:5105547},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Famagusta",start:5105547,end:5106487},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Gaza",start:5106487,end:5108933},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Harbin",start:5108933,end:5109326},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hebron",start:5109326,end:5111790},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ho_Chi_Minh",start:5111790,end:5112026},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hong_Kong",start:5112026,end:5112801},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Hovd",start:5112801,end:5113395},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Irkutsk",start:5113395,end:5114155},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Istanbul",start:5114155,end:5115355},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jakarta",start:5115355,end:5115603},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jayapura",start:5115603,end:5115774},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Jerusalem",start:5115774,end:5116848},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kabul",start:5116848,end:5117007},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kamchatka",start:5117007,end:5117734},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Karachi",start:5117734,end:5118e3},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kashgar",start:5118e3,end:5118133},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kathmandu",start:5118133,end:5118294},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Katmandu",start:5118294,end:5118455},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Khandyga",start:5118455,end:5119230},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kolkata",start:5119230,end:5119450},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Krasnoyarsk",start:5119450,end:5120191},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuala_Lumpur",start:5120191,end:5120447},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuching",start:5120447,end:5120767},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Kuwait",start:5120767,end:5120900},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Macao",start:5120900,end:5121691},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Macau",start:5121691,end:5122482},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Magadan",start:5122482,end:5123233},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Makassar",start:5123233,end:5123423},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Manila",start:5123423,end:5123661},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Muscat",start:5123661,end:5123794},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Nicosia",start:5123794,end:5124391},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Novokuznetsk",start:5124391,end:5125117},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Novosibirsk",start:5125117,end:5125870},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Omsk",start:5125870,end:5126611},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Oral",start:5126611,end:5127236},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Phnom_Penh",start:5127236,end:5127388},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Pontianak",start:5127388,end:5127635},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Pyongyang",start:5127635,end:5127818},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qatar",start:5127818,end:5127970},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qostanay",start:5127970,end:5128594},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Qyzylorda",start:5128594,end:5129218},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Rangoon",start:5129218,end:5129405},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Riyadh",start:5129405,end:5129538},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Saigon",start:5129538,end:5129774},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Sakhalin",start:5129774,end:5130529},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Samarkand",start:5130529,end:5130895},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Seoul",start:5130895,end:5131310},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Shanghai",start:5131310,end:5131703},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Singapore",start:5131703,end:5131959},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Srednekolymsk",start:5131959,end:5132701},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Taipei",start:5132701,end:5133212},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tashkent",start:5133212,end:5133578},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tbilisi",start:5133578,end:5134207},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tehran",start:5134207,end:5135019},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tel_Aviv",start:5135019,end:5136093},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Thimbu",start:5136093,end:5136247},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Thimphu",start:5136247,end:5136401},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tokyo",start:5136401,end:5136614},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Tomsk",start:5136614,end:5137367},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ujung_Pandang",start:5137367,end:5137557},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ulaanbaatar",start:5137557,end:5138151},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ulan_Bator",start:5138151,end:5138745},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Urumqi",start:5138745,end:5138878},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Ust-Nera",start:5138878,end:5139649},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Vientiane",start:5139649,end:5139801},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Vladivostok",start:5139801,end:5140543},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yakutsk",start:5140543,end:5141284},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yangon",start:5141284,end:5141471},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yekaterinburg",start:5141471,end:5142231},{filename:"/tmp/pglite/share/postgresql/timezone/Asia/Yerevan",start:5142231,end:5142939},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Azores",start:5142939,end:5144392},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Bermuda",start:5144392,end:5145416},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Canary",start:5145416,end:5145894},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Cape_Verde",start:5145894,end:5146069},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Faeroe",start:5146069,end:5146510},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Faroe",start:5146510,end:5146951},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Jan_Mayen",start:5146951,end:5147656},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Madeira",start:5147656,end:5149109},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Reykjavik",start:5149109,end:5149239},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/South_Georgia",start:5149239,end:5149371},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/St_Helena",start:5149371,end:5149501},{filename:"/tmp/pglite/share/postgresql/timezone/Atlantic/Stanley",start:5149501,end:5150290},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/ACT",start:5150290,end:5151194},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Adelaide",start:5151194,end:5152115},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Brisbane",start:5152115,end:5152404},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Broken_Hill",start:5152404,end:5153345},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Canberra",start:5153345,end:5154249},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Currie",start:5154249,end:5155252},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Darwin",start:5155252,end:5155486},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Eucla",start:5155486,end:5155800},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Hobart",start:5155800,end:5156803},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/LHI",start:5156803,end:5157495},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Lindeman",start:5157495,end:5157820},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Lord_Howe",start:5157820,end:5158512},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Melbourne",start:5158512,end:5159416},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/NSW",start:5159416,end:5160320},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/North",start:5160320,end:5160554},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Perth",start:5160554,end:5160860},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Queensland",start:5160860,end:5161149},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/South",start:5161149,end:5162070},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Sydney",start:5162070,end:5162974},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Tasmania",start:5162974,end:5163977},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Victoria",start:5163977,end:5164881},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/West",start:5164881,end:5165187},{filename:"/tmp/pglite/share/postgresql/timezone/Australia/Yancowinna",start:5165187,end:5166128},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/Acre",start:5166128,end:5166546},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/DeNoronha",start:5166546,end:5167030},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/East",start:5167030,end:5167982},{filename:"/tmp/pglite/share/postgresql/timezone/Brazil/West",start:5167982,end:5168394},{filename:"/tmp/pglite/share/postgresql/timezone/CET",start:5168394,end:5169015},{filename:"/tmp/pglite/share/postgresql/timezone/CST6CDT",start:5169015,end:5169966},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Atlantic",start:5169966,end:5171638},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Central",start:5171638,end:5172932},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Eastern",start:5172932,end:5174649},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Mountain",start:5174649,end:5175619},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Newfoundland",start:5175619,end:5177497},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Pacific",start:5177497,end:5178827},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Saskatchewan",start:5178827,end:5179465},{filename:"/tmp/pglite/share/postgresql/timezone/Canada/Yukon",start:5179465,end:5180494},{filename:"/tmp/pglite/share/postgresql/timezone/Chile/Continental",start:5180494,end:5181848},{filename:"/tmp/pglite/share/postgresql/timezone/Chile/EasterIsland",start:5181848,end:5183022},{filename:"/tmp/pglite/share/postgresql/timezone/Cuba",start:5183022,end:5184139},{filename:"/tmp/pglite/share/postgresql/timezone/EET",start:5184139,end:5184636},{filename:"/tmp/pglite/share/postgresql/timezone/EST",start:5184636,end:5184747},{filename:"/tmp/pglite/share/postgresql/timezone/EST5EDT",start:5184747,end:5185698},{filename:"/tmp/pglite/share/postgresql/timezone/Egypt",start:5185698,end:5187007},{filename:"/tmp/pglite/share/postgresql/timezone/Eire",start:5187007,end:5188503},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT",start:5188503,end:5188614},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+0",start:5188614,end:5188725},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+1",start:5188725,end:5188838},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+10",start:5188838,end:5188952},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+11",start:5188952,end:5189066},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+12",start:5189066,end:5189180},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+2",start:5189180,end:5189293},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+3",start:5189293,end:5189406},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+4",start:5189406,end:5189519},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+5",start:5189519,end:5189632},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+6",start:5189632,end:5189745},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+7",start:5189745,end:5189858},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+8",start:5189858,end:5189971},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT+9",start:5189971,end:5190084},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-0",start:5190084,end:5190195},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-1",start:5190195,end:5190309},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-10",start:5190309,end:5190424},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-11",start:5190424,end:5190539},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-12",start:5190539,end:5190654},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-13",start:5190654,end:5190769},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-14",start:5190769,end:5190884},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-2",start:5190884,end:5190998},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-3",start:5190998,end:5191112},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-4",start:5191112,end:5191226},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-5",start:5191226,end:5191340},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-6",start:5191340,end:5191454},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-7",start:5191454,end:5191568},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-8",start:5191568,end:5191682},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT-9",start:5191682,end:5191796},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/GMT0",start:5191796,end:5191907},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Greenwich",start:5191907,end:5192018},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/UCT",start:5192018,end:5192129},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/UTC",start:5192129,end:5192240},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Universal",start:5192240,end:5192351},{filename:"/tmp/pglite/share/postgresql/timezone/Etc/Zulu",start:5192351,end:5192462},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Amsterdam",start:5192462,end:5193565},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Andorra",start:5193565,end:5193954},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Astrakhan",start:5193954,end:5194680},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Athens",start:5194680,end:5195362},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Belfast",start:5195362,end:5196961},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Belgrade",start:5196961,end:5197439},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Berlin",start:5197439,end:5198144},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Bratislava",start:5198144,end:5198867},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Brussels",start:5198867,end:5199970},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Bucharest",start:5199970,end:5200631},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Budapest",start:5200631,end:5201397},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Busingen",start:5201397,end:5201894},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Chisinau",start:5201894,end:5202649},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Copenhagen",start:5202649,end:5203354},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Dublin",start:5203354,end:5204850},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Gibraltar",start:5204850,end:5206070},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Guernsey",start:5206070,end:5207669},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Helsinki",start:5207669,end:5208150},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Isle_of_Man",start:5208150,end:5209749},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Istanbul",start:5209749,end:5210949},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Jersey",start:5210949,end:5212548},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kaliningrad",start:5212548,end:5213452},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kiev",start:5213452,end:5214010},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kirov",start:5214010,end:5214745},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Kyiv",start:5214745,end:5215303},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Lisbon",start:5215303,end:5216757},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Ljubljana",start:5216757,end:5217235},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/London",start:5217235,end:5218834},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Luxembourg",start:5218834,end:5219937},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Madrid",start:5219937,end:5220834},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Malta",start:5220834,end:5221762},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Mariehamn",start:5221762,end:5222243},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Minsk",start:5222243,end:5223051},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Monaco",start:5223051,end:5224156},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Moscow",start:5224156,end:5225064},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Nicosia",start:5225064,end:5225661},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Oslo",start:5225661,end:5226366},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Paris",start:5226366,end:5227471},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Podgorica",start:5227471,end:5227949},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Prague",start:5227949,end:5228672},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Riga",start:5228672,end:5229366},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Rome",start:5229366,end:5230313},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Samara",start:5230313,end:5231045},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/San_Marino",start:5231045,end:5231992},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Sarajevo",start:5231992,end:5232470},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Saratov",start:5232470,end:5233196},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Simferopol",start:5233196,end:5234061},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Skopje",start:5234061,end:5234539},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Sofia",start:5234539,end:5235131},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Stockholm",start:5235131,end:5235836},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tallinn",start:5235836,end:5236511},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tirane",start:5236511,end:5237115},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Tiraspol",start:5237115,end:5237870},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Ulyanovsk",start:5237870,end:5238630},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Uzhgorod",start:5238630,end:5239188},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vaduz",start:5239188,end:5239685},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vatican",start:5239685,end:5240632},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vienna",start:5240632,end:5241290},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Vilnius",start:5241290,end:5241966},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Volgograd",start:5241966,end:5242719},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Warsaw",start:5242719,end:5243642},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zagreb",start:5243642,end:5244120},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zaporozhye",start:5244120,end:5244678},{filename:"/tmp/pglite/share/postgresql/timezone/Europe/Zurich",start:5244678,end:5245175},{filename:"/tmp/pglite/share/postgresql/timezone/Factory",start:5245175,end:5245288},{filename:"/tmp/pglite/share/postgresql/timezone/GB",start:5245288,end:5246887},{filename:"/tmp/pglite/share/postgresql/timezone/GB-Eire",start:5246887,end:5248486},{filename:"/tmp/pglite/share/postgresql/timezone/GMT",start:5248486,end:5248597},{filename:"/tmp/pglite/share/postgresql/timezone/GMT+0",start:5248597,end:5248708},{filename:"/tmp/pglite/share/postgresql/timezone/GMT-0",start:5248708,end:5248819},{filename:"/tmp/pglite/share/postgresql/timezone/GMT0",start:5248819,end:5248930},{filename:"/tmp/pglite/share/postgresql/timezone/Greenwich",start:5248930,end:5249041},{filename:"/tmp/pglite/share/postgresql/timezone/HST",start:5249041,end:5249153},{filename:"/tmp/pglite/share/postgresql/timezone/Hongkong",start:5249153,end:5249928},{filename:"/tmp/pglite/share/postgresql/timezone/Iceland",start:5249928,end:5250058},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Antananarivo",start:5250058,end:5250249},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Chagos",start:5250249,end:5250401},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Christmas",start:5250401,end:5250553},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Cocos",start:5250553,end:5250740},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Comoro",start:5250740,end:5250931},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Kerguelen",start:5250931,end:5251083},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mahe",start:5251083,end:5251216},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Maldives",start:5251216,end:5251368},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mauritius",start:5251368,end:5251547},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Mayotte",start:5251547,end:5251738},{filename:"/tmp/pglite/share/postgresql/timezone/Indian/Reunion",start:5251738,end:5251871},{filename:"/tmp/pglite/share/postgresql/timezone/Iran",start:5251871,end:5252683},{filename:"/tmp/pglite/share/postgresql/timezone/Israel",start:5252683,end:5253757},{filename:"/tmp/pglite/share/postgresql/timezone/Jamaica",start:5253757,end:5254096},{filename:"/tmp/pglite/share/postgresql/timezone/Japan",start:5254096,end:5254309},{filename:"/tmp/pglite/share/postgresql/timezone/Kwajalein",start:5254309,end:5254528},{filename:"/tmp/pglite/share/postgresql/timezone/Libya",start:5254528,end:5254959},{filename:"/tmp/pglite/share/postgresql/timezone/MET",start:5254959,end:5255580},{filename:"/tmp/pglite/share/postgresql/timezone/MST",start:5255580,end:5255691},{filename:"/tmp/pglite/share/postgresql/timezone/MST7MDT",start:5255691,end:5256642},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/BajaNorte",start:5256642,end:5257667},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/BajaSur",start:5257667,end:5258385},{filename:"/tmp/pglite/share/postgresql/timezone/Mexico/General",start:5258385,end:5259158},{filename:"/tmp/pglite/share/postgresql/timezone/NZ",start:5259158,end:5260201},{filename:"/tmp/pglite/share/postgresql/timezone/NZ-CHAT",start:5260201,end:5261009},{filename:"/tmp/pglite/share/postgresql/timezone/Navajo",start:5261009,end:5262051},{filename:"/tmp/pglite/share/postgresql/timezone/PRC",start:5262051,end:5262444},{filename:"/tmp/pglite/share/postgresql/timezone/PST8PDT",start:5262444,end:5263395},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Apia",start:5263395,end:5263802},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Auckland",start:5263802,end:5264845},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Bougainville",start:5264845,end:5265046},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Chatham",start:5265046,end:5265854},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Chuuk",start:5265854,end:5266008},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Easter",start:5266008,end:5267182},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Efate",start:5267182,end:5267524},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Enderbury",start:5267524,end:5267696},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Fakaofo",start:5267696,end:5267849},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Fiji",start:5267849,end:5268245},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Funafuti",start:5268245,end:5268379},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Galapagos",start:5268379,end:5268554},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Gambier",start:5268554,end:5268686},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Guadalcanal",start:5268686,end:5268820},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Guam",start:5268820,end:5269170},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Honolulu",start:5269170,end:5269391},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Johnston",start:5269391,end:5269612},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kanton",start:5269612,end:5269784},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kiritimati",start:5269784,end:5269958},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kosrae",start:5269958,end:5270200},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Kwajalein",start:5270200,end:5270419},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Majuro",start:5270419,end:5270553},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Marquesas",start:5270553,end:5270692},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Midway",start:5270692,end:5270838},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Nauru",start:5270838,end:5271021},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Niue",start:5271021,end:5271175},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Norfolk",start:5271175,end:5271422},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Noumea",start:5271422,end:5271620},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pago_Pago",start:5271620,end:5271766},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Palau",start:5271766,end:5271914},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pitcairn",start:5271914,end:5272067},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Pohnpei",start:5272067,end:5272201},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Ponape",start:5272201,end:5272335},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Port_Moresby",start:5272335,end:5272489},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Rarotonga",start:5272489,end:5272895},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Saipan",start:5272895,end:5273245},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Samoa",start:5273245,end:5273391},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tahiti",start:5273391,end:5273524},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tarawa",start:5273524,end:5273658},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Tongatapu",start:5273658,end:5273895},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Truk",start:5273895,end:5274049},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Wake",start:5274049,end:5274183},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Wallis",start:5274183,end:5274317},{filename:"/tmp/pglite/share/postgresql/timezone/Pacific/Yap",start:5274317,end:5274471},{filename:"/tmp/pglite/share/postgresql/timezone/Poland",start:5274471,end:5275394},{filename:"/tmp/pglite/share/postgresql/timezone/Portugal",start:5275394,end:5276848},{filename:"/tmp/pglite/share/postgresql/timezone/ROC",start:5276848,end:5277359},{filename:"/tmp/pglite/share/postgresql/timezone/ROK",start:5277359,end:5277774},{filename:"/tmp/pglite/share/postgresql/timezone/Singapore",start:5277774,end:5278030},{filename:"/tmp/pglite/share/postgresql/timezone/Turkey",start:5278030,end:5279230},{filename:"/tmp/pglite/share/postgresql/timezone/UCT",start:5279230,end:5279341},{filename:"/tmp/pglite/share/postgresql/timezone/US/Alaska",start:5279341,end:5280318},{filename:"/tmp/pglite/share/postgresql/timezone/US/Aleutian",start:5280318,end:5281287},{filename:"/tmp/pglite/share/postgresql/timezone/US/Arizona",start:5281287,end:5281527},{filename:"/tmp/pglite/share/postgresql/timezone/US/Central",start:5281527,end:5283281},{filename:"/tmp/pglite/share/postgresql/timezone/US/East-Indiana",start:5283281,end:5283812},{filename:"/tmp/pglite/share/postgresql/timezone/US/Eastern",start:5283812,end:5285556},{filename:"/tmp/pglite/share/postgresql/timezone/US/Hawaii",start:5285556,end:5285777},{filename:"/tmp/pglite/share/postgresql/timezone/US/Indiana-Starke",start:5285777,end:5286793},{filename:"/tmp/pglite/share/postgresql/timezone/US/Michigan",start:5286793,end:5287692},{filename:"/tmp/pglite/share/postgresql/timezone/US/Mountain",start:5287692,end:5288734},{filename:"/tmp/pglite/share/postgresql/timezone/US/Pacific",start:5288734,end:5290028},{filename:"/tmp/pglite/share/postgresql/timezone/US/Samoa",start:5290028,end:5290174},{filename:"/tmp/pglite/share/postgresql/timezone/UTC",start:5290174,end:5290285},{filename:"/tmp/pglite/share/postgresql/timezone/Universal",start:5290285,end:5290396},{filename:"/tmp/pglite/share/postgresql/timezone/W-SU",start:5290396,end:5291304},{filename:"/tmp/pglite/share/postgresql/timezone/WET",start:5291304,end:5291798},{filename:"/tmp/pglite/share/postgresql/timezone/Zulu",start:5291798,end:5291909},{filename:"/tmp/pglite/share/postgresql/timezonesets/Africa.txt",start:5291909,end:5298882},{filename:"/tmp/pglite/share/postgresql/timezonesets/America.txt",start:5298882,end:5309889},{filename:"/tmp/pglite/share/postgresql/timezonesets/Antarctica.txt",start:5309889,end:5311023},{filename:"/tmp/pglite/share/postgresql/timezonesets/Asia.txt",start:5311023,end:5319334},{filename:"/tmp/pglite/share/postgresql/timezonesets/Atlantic.txt",start:5319334,end:5322867},{filename:"/tmp/pglite/share/postgresql/timezonesets/Australia",start:5322867,end:5324002},{filename:"/tmp/pglite/share/postgresql/timezonesets/Australia.txt",start:5324002,end:5327386},{filename:"/tmp/pglite/share/postgresql/timezonesets/Default",start:5327386,end:5354636},{filename:"/tmp/pglite/share/postgresql/timezonesets/Etc.txt",start:5354636,end:5355886},{filename:"/tmp/pglite/share/postgresql/timezonesets/Europe.txt",start:5355886,end:5364668},{filename:"/tmp/pglite/share/postgresql/timezonesets/India",start:5364668,end:5365261},{filename:"/tmp/pglite/share/postgresql/timezonesets/Indian.txt",start:5365261,end:5366522},{filename:"/tmp/pglite/share/postgresql/timezonesets/Pacific.txt",start:5366522,end:5370290},{filename:"/tmp/pglite/share/postgresql/tsearch_data/danish.stop",start:5370290,end:5370714},{filename:"/tmp/pglite/share/postgresql/tsearch_data/dutch.stop",start:5370714,end:5371167},{filename:"/tmp/pglite/share/postgresql/tsearch_data/english.stop",start:5371167,end:5371789},{filename:"/tmp/pglite/share/postgresql/tsearch_data/finnish.stop",start:5371789,end:5373368},{filename:"/tmp/pglite/share/postgresql/tsearch_data/french.stop",start:5373368,end:5374173},{filename:"/tmp/pglite/share/postgresql/tsearch_data/german.stop",start:5374173,end:5375522},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hungarian.stop",start:5375522,end:5376749},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample.affix",start:5376749,end:5376992},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_long.affix",start:5376992,end:5377625},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_long.dict",start:5377625,end:5377723},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_num.affix",start:5377723,end:5378185},{filename:"/tmp/pglite/share/postgresql/tsearch_data/hunspell_sample_num.dict",start:5378185,end:5378314},{filename:"/tmp/pglite/share/postgresql/tsearch_data/ispell_sample.affix",start:5378314,end:5378779},{filename:"/tmp/pglite/share/postgresql/tsearch_data/ispell_sample.dict",start:5378779,end:5378860},{filename:"/tmp/pglite/share/postgresql/tsearch_data/italian.stop",start:5378860,end:5380514},{filename:"/tmp/pglite/share/postgresql/tsearch_data/nepali.stop",start:5380514,end:5384775},{filename:"/tmp/pglite/share/postgresql/tsearch_data/norwegian.stop",start:5384775,end:5385626},{filename:"/tmp/pglite/share/postgresql/tsearch_data/portuguese.stop",start:5385626,end:5386893},{filename:"/tmp/pglite/share/postgresql/tsearch_data/russian.stop",start:5386893,end:5388128},{filename:"/tmp/pglite/share/postgresql/tsearch_data/spanish.stop",start:5388128,end:5390306},{filename:"/tmp/pglite/share/postgresql/tsearch_data/swedish.stop",start:5390306,end:5390865},{filename:"/tmp/pglite/share/postgresql/tsearch_data/synonym_sample.syn",start:5390865,end:5390938},{filename:"/tmp/pglite/share/postgresql/tsearch_data/thesaurus_sample.ths",start:5390938,end:5391411},{filename:"/tmp/pglite/share/postgresql/tsearch_data/turkish.stop",start:5391411,end:5391671},{filename:"/tmp/pglite/share/postgresql/tsearch_data/unaccent.rules",start:5391671,end:5401610},{filename:"/tmp/pglite/share/postgresql/tsearch_data/xsyn_sample.rules",start:5401610,end:5401749}],remote_package_size:5401749})})();var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require("fs"),nodePath=require("path");import.meta.url.startsWith("data:")||(scriptDirectory=nodePath.dirname(require("url").fileURLToPath(import.meta.url))+"/"),readBinary=e=>{e=isFileURI(e)?new URL(e):e;var t=fs.readFileSync(e);return t},readAsync=async(e,t=!0)=>{e=isFileURI(e)?new URL(e):e;var I=fs.readFileSync(e,t?void 0:"utf8");return I},!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptName&&(scriptDirectory=_scriptName),scriptDirectory.startsWith("blob:")?scriptDirectory="":scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),readAsync=async e=>{var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)});var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary=Module.wasmBinary,wasmMemory,ABORT=!1,EXITSTATUS;function assert(e,t){e||abort(t)}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAP64,HEAPF64;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=new BigUint64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||134217728;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for(typeof Module.preRun=="function"&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.initialized&&FS.init(),FS.ignorePermissions=!1,SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for(typeof Module.postRun=="function"&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,dependenciesFulfilled=null;function addRunDependency(e){var t;runDependencies++,(t=Module.monitorRunDependencies)==null||t.call(Module,runDependencies)}function removeRunDependency(e){var I;if(runDependencies--,(I=Module.monitorRunDependencies)==null||I.call(Module,runDependencies),runDependencies==0&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){var I;(I=Module.onAbort)==null||I.call(Module,e),e="Aborted("+e+")",err(e),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject(t),t}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://");function findWasmBinary(){if(Module.locateFile){var e="postgres.wasm";return isDataURI(e)?e:locateFile(e)}return new URL(""+new URL("postgres-CyuUVpXN.wasm",import.meta.url).href,import.meta.url).href}var wasmBinaryFile;function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var I=await getWasmBinary(e),B=await WebAssembly.instantiate(I,t);return B}catch(tr){err(`failed to asynchronously prepare wasm: ${tr}`),abort(tr)}}async function instantiateAsync(e,t,I){if(!e&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(t)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function")try{var B=fetch(t,{credentials:"same-origin"}),tr=await WebAssembly.instantiateStreaming(B,I);return tr}catch(rr){err(`wasm streaming compile failed: ${rr}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,I)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(tr,rr){wasmExports=tr.exports,wasmExports=relocateExports(wasmExports,16777216);var ir=getDylinkMetadata(rr);return ir.neededDynlibs&&(dynamicLibraries=ir.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency(),wasmExports}addRunDependency();function t(tr){e(tr.instance,tr.module)}var I=getWasmImports();if(Module.instantiateWasm)try{return Module.instantiateWasm(I,e)}catch(tr){err(`Module.instantiateWasm callback failed with error: ${tr}`),readyPromiseReject(tr)}wasmBinaryFile??(wasmBinaryFile=findWasmBinary());try{var B=await instantiateAsync(wasmBinary,wasmBinaryFile,I);return t(B),B}catch(tr){readyPromiseReject(tr);return}}var ASM_CONSTS={18792944:e=>{Module.is_worker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Module.FD_BUFFER_MAX=e,Module.emscripten_copy_to=console.warn},18793117:()=>{Module.postMessage=function(e){console.log("# 1252: onCustomMessage:",__FILE__,e)}},18793242:()=>{if(Module.is_worker){let e=function(t){console.log("onCustomMessage:",t)};Module.onCustomMessage=e}else Module.postMessage=function(e){switch(e.type){case"raw":{stringToUTF8(e.data,shm_rawinput,Module.FD_BUFFER_MAX);break}case"stdin":{stringToUTF8(e.data,1,Module.FD_BUFFER_MAX);break}case"rcon":{stringToUTF8(e.data,shm_rcon,Module.FD_BUFFER_MAX);break}default:console.warn("custom_postMessage?",e)}}}};function is_web_env(){try{if(window)return 1}catch{return 0}}is_web_env.sig="i";class ExitStatus{constructor(t){P$1(this,"name","ExitStatus"),this.message=`Program terminated with exit(${t})`,this.status=t}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var I=GOT[t];return I||(I=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(I.required=!0),I}},callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder:void 0,UTF8ArrayToString=(e,t=0,I=NaN)=>{for(var B=t+I,tr=t;e[tr]&&!(tr>=B);)++tr;if(tr-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,tr));for(var rr="";t<tr;){var ir=e[t++];if(!(ir&128)){rr+=String.fromCharCode(ir);continue}var lr=e[t++]&63;if((ir&224)==192){rr+=String.fromCharCode((ir&31)<<6|lr);continue}var dr=e[t++]&63;if((ir&240)==224?ir=(ir&15)<<12|lr<<6|dr:ir=(ir&7)<<18|lr<<12|dr<<6|e[t++]&63,ir<65536)rr+=String.fromCharCode(ir);else{var mr=ir-65536;rr+=String.fromCharCode(55296|mr>>10,56320|mr&1023)}}return rr},getDylinkMetadata=e=>{var t=0,I=0;function B(){return e[t++]}function tr(){for(var Jr=0,Jn=1;;){var Ar=e[t++];if(Jr+=(Ar&127)*Jn,Jn*=128,!(Ar&128))break}return Jr}function rr(){var Jr=tr();return t+=Jr,UTF8ArrayToString(e,t-Jr,Jr)}function ir(Jr,Jn){if(Jr)throw new Error(Jn)}var lr="dylink.0";if(e instanceof WebAssembly.Module){var dr=WebAssembly.Module.customSections(e,lr);dr.length===0&&(lr="dylink",dr=WebAssembly.Module.customSections(e,lr)),ir(dr.length===0,"need dylink section"),e=new Uint8Array(dr[0]),I=e.length}else{var mr=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer),fr=mr[0]==1836278016;ir(!fr,"need to see wasm magic number"),ir(e[8]!==0,"need the dylink section to be first"),t=9;var hr=tr();I=t+hr,lr=rr()}var _r={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if(lr=="dylink"){_r.memorySize=tr(),_r.memoryAlign=tr(),_r.tableSize=tr(),_r.tableAlign=tr();for(var yr=tr(),Mr=0;Mr<yr;++Mr){var vr=rr();_r.neededDynlibs.push(vr)}}else{ir(lr!=="dylink.0");for(var Sr=1,br=2,gr=3,wr=4,xr=256,Ir=3,kr=1;t<I;){var Or=B(),Lr=tr();if(Or===Sr)_r.memorySize=tr(),_r.memoryAlign=tr(),_r.tableSize=tr(),_r.tableAlign=tr();else if(Or===br)for(var yr=tr(),Mr=0;Mr<yr;++Mr)vr=rr(),_r.neededDynlibs.push(vr);else if(Or===gr)for(var Kn=tr();Kn--;){var Pr=rr(),Fr=tr();Fr&xr&&_r.tlsExports.add(Pr)}else if(Or===wr)for(var Kn=tr();Kn--;){rr();var Pr=rr(),Fr=tr();(Fr&Ir)==kr&&_r.weakImports.add(Pr)}else t+=Lr}}return _r};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":return HEAP8[e];case"i8":return HEAP8[e];case"i16":return HEAP16[e>>1];case"i32":return HEAP32[e>>2];case"i64":return HEAP64[e>>3];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,I)=>{var B={refcount:1/0,name:e,exports:I,global:!0};return LDSO.loadedLibsByName[e]=B,t!=null&&(LDSO.loadedLibsByHandle[t]=B),B},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=23144432,alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,I=t+alignMemory(e,16);return ___heap_base=I,GOT.__heap_base.value=I,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},I={parameters:[],results:e[0]=="v"?[]:[t[e[0]]]},B=1;B<e.length;++B)I.parameters.push(t[e[B]]);return I},generateFuncType=(e,t)=>{var I=e.slice(0,1),B=e.slice(1),tr={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(B.length,t);for(var rr=0;rr<B.length;++rr)t.push(tr[B[rr]]);I=="v"?t.push(0):t.push(1,tr[I])},convertJsFunctionToWasm=(e,t)=>{if(typeof WebAssembly.Function=="function")return new WebAssembly.Function(sigToWasmTypes(t),e);var I=[1];generateFuncType(t,I);var B=[0,97,115,109,1,0,0,0,1];uleb128Encode(I.length,B),B.push(...I),B.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var tr=new WebAssembly.Module(new Uint8Array(B)),rr=new WebAssembly.Instance(tr,{e:{f:e}}),ir=rr.exports.f;return ir},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:5360,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var I=e;I<e+t;I++){var B=getWasmTableEntry(I);B&&functionsInTableMap.set(B,I)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var I=getFunctionAddress(e);if(I)return I;var B=getEmptyTableSlot();try{setWasmTableEntry(B,e)}catch(rr){if(!(rr instanceof TypeError))throw rr;var tr=convertJsFunctionToWasm(e,t);setWasmTableEntry(B,tr)}return functionsInTableMap.set(e,B),B},updateGOT=(e,t)=>{for(var I in e)if(!isInternalSym(I)){var B=e[I];GOT[I]||(GOT[I]=new WebAssembly.Global({value:"i32",mutable:!0})),GOT[I].value==0&&(typeof B=="function"?GOT[I].value=addFunction(B):typeof B=="number"?GOT[I].value=B:err(`unhandled export type for '${I}': ${typeof B}`))}},relocateExports=(e,t,I)=>{var B={};for(var tr in e){var rr=e[tr];typeof rr=="object"&&(rr=rr.value),typeof rr=="number"&&(rr+=t),B[tr]=rr}return updateGOT(B),B},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCall=(e,t,I=[])=>{var B=getWasmTableEntry(t)(...I);return B},stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...I)=>{var B=stackSave();try{return dynCall(e,t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;if(_setThrew(1,0),e[0]=="j")return 0n}},resolveGlobalSymbol=(e,t=!1)=>{var I;return isSymbolDefined(e)?I=wasmImports[e]:e.startsWith("invoke_")&&(I=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:I,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);currentModuleWeakSymbols=metadata.weakImports;function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,HEAPU32[handle+12>>2]=memoryBase,HEAP32[handle+16>>2]=metadata.memorySize,HEAPU32[handle+20>>2]=tableBase,HEAP32[handle+24>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+12>>2],tableBase=HEAPU32[handle+20>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length;tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];if(!(t in e)){var I;e[t]=(...B)=>(I||(I=resolveSymbol(t)),I(...B))}return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols();function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&body.indexOf("$"+arity)!=-1;arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if("__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),cSig!="void"){cSig=cSig.split(",");for(var i in cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replaceAll("*",""))}}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then(e=>postInstantiation(e.module,e.instance))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return flags.loadAsync?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},mergeLibSymbols=(e,t)=>{for(var[I,B]of Object.entries(e)){let tr=ir=>{isSymbolDefined(ir)||(wasmImports[ir]=B)};tr(I);let rr="__main_argc_argv";I=="main"&&tr(rr),I==rr&&tr("main")}},asyncLoad=async e=>{var t=await readAsync(e);return new Uint8Array(t)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:t=>!Module.noWasmDecoding&&t.endsWith(".so"),handle:(t,I,B,tr)=>{e.promiseChainEnd=e.promiseChainEnd.then(()=>loadWebAssemblyModule(t,{loadAsync:!0,nodelete:!0},I,{})).then(rr=>{preloadedWasm[I]=rr,B(t)},rr=>{err(`failed to instantiate wasm: ${I}: ${rr}`),tr()})}};preloadPlugins.push(e)},preloadedWasm={};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},I,B){var tr=LDSO.loadedLibsByName[e];if(tr)return t.global?tr.global||(tr.global=!0,mergeLibSymbols(tr.exports)):I&&Object.assign(I,tr.exports),t.nodelete&&tr.refcount!==1/0&&(tr.refcount=1/0),tr.refcount++,B&&(LDSO.loadedLibsByHandle[B]=tr),t.loadAsync?Promise.resolve(!0):!0;tr=newDSO(e,B,"loading"),tr.refcount=t.nodelete?1/0:1,tr.global=t.global;function rr(){if(B){var dr=HEAPU32[B+28>>2],mr=HEAPU32[B+32>>2];if(dr&&mr){var fr=HEAP8.slice(dr,dr+mr);return t.loadAsync?Promise.resolve(fr):fr}}var hr=locateFile(e);if(t.loadAsync)return asyncLoad(hr);if(!readBinary)throw new Error(`${hr}: file not found, and synchronous loading of external files is not available`);return readBinary(hr)}function ir(){var dr=preloadedWasm[e];return dr?t.loadAsync?Promise.resolve(dr):dr:t.loadAsync?rr().then(mr=>loadWebAssemblyModule(mr,t,e,I,B)):loadWebAssemblyModule(rr(),t,e,I,B)}function lr(dr){tr.global?mergeLibSymbols(dr):I&&Object.assign(I,dr),tr.exports=dr}return t.loadAsync?ir().then(dr=>(lr(dr),!0)):(lr(ir()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(t.value==0){var I=resolveGlobalSymbol(e,!0).sym;if(!I&&!t.required)continue;if(typeof I=="function")t.value=addFunction(I,I.sig);else if(typeof I=="number")t.value=I;else throw new Error(`bad export type for '${e}': ${typeof I}`)}},loadDylibs=()=>{if(!dynamicLibraries.length){reportUndefinedSymbols();return}addRunDependency(),dynamicLibraries.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})),Promise.resolve()).then(()=>{reportUndefinedSymbols(),removeRunDependency()})},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,I="i8"){switch(I.endsWith("*")&&(I="*"),I){case"i1":HEAP8[e]=t;break;case"i8":HEAP8[e]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":HEAP64[e>>3]=BigInt(t);break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort(`invalid type for setValue: ${I}`)}}var ___assert_fail=(e,t,I,B)=>abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",I,B?UTF8ToString(B):"unknown function"]);___assert_fail.sig="vppip";var ___call_sighandler=(e,t)=>getWasmTableEntry(e)(t);___call_sighandler.sig="vpi";var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},16777216),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},23144432),PATH={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(e).slice(1)},normalizeArray:(e,t)=>{for(var I=0,B=e.length-1;B>=0;B--){var tr=e[B];tr==="."?e.splice(B,1):tr===".."?(e.splice(B,1),I++):I&&(e.splice(B,1),I--)}if(t)for(;I;I--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),I=e.substr(-1)==="/";return e=PATH.normalizeArray(e.split("/").filter(B=>!!B),!t).join("/"),!e&&!t&&(e="."),e&&I&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),I=t[0],B=t[1];return!I&&!B?".":(B&&(B=B.substr(0,B.length-1)),I+B)},basename:e=>{if(e==="/")return"/";e=PATH.normalize(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return B=>crypto.getRandomValues(B);if(ENVIRONMENT_IS_NODE)try{var e=require("crypto"),t=e.randomFillSync;if(t)return B=>e.randomFillSync(B);var I=e.randomBytes;return B=>(B.set(I(B.byteLength)),B)}catch{}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var t="",I=!1,B=e.length-1;B>=-1&&!I;B--){var tr=B>=0?e[B]:FS.cwd();if(typeof tr!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!tr)return"";t=tr+"/"+t,I=PATH.isAbs(tr)}return t=PATH.normalizeArray(t.split("/").filter(rr=>!!rr),!I).join("/"),(I?"/":"")+t||"."},relative:(e,t)=>{e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);function I(mr){for(var fr=0;fr<mr.length&&mr[fr]==="";fr++);for(var hr=mr.length-1;hr>=0&&mr[hr]==="";hr--);return fr>hr?[]:mr.slice(fr,hr-fr+1)}for(var B=I(e.split("/")),tr=I(t.split("/")),rr=Math.min(B.length,tr.length),ir=rr,lr=0;lr<rr;lr++)if(B[lr]!==tr[lr]){ir=lr;break}for(var dr=[],lr=ir;lr<B.length;lr++)dr.push("..");return dr=dr.concat(tr.slice(ir)),dr.join("/")}},FS_stdin_getChar_buffer=[],lengthBytesUTF8=e=>{for(var t=0,I=0;I<e.length;++I){var B=e.charCodeAt(I);B<=127?t++:B<=2047?t+=2:B>=55296&&B<=57343?(t+=4,++I):t+=3}return t},stringToUTF8Array=(e,t,I,B)=>{if(!(B>0))return 0;for(var tr=I,rr=I+B-1,ir=0;ir<e.length;++ir){var lr=e.charCodeAt(ir);if(lr>=55296&&lr<=57343){var dr=e.charCodeAt(++ir);lr=65536+((lr&1023)<<10)|dr&1023}if(lr<=127){if(I>=rr)break;t[I++]=lr}else if(lr<=2047){if(I+1>=rr)break;t[I++]=192|lr>>6,t[I++]=128|lr&63}else if(lr<=65535){if(I+2>=rr)break;t[I++]=224|lr>>12,t[I++]=128|lr>>6&63,t[I++]=128|lr&63}else{if(I+3>=rr)break;t[I++]=240|lr>>18,t[I++]=128|lr>>12&63,t[I++]=128|lr>>6&63,t[I++]=128|lr&63}}return t[I]=0,I-tr};function intArrayFromString(e,t,I){var B=lengthBytesUTF8(e)+1,tr=new Array(B),rr=stringToUTF8Array(e,tr,0,tr.length);return tr.length=rr,tr}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var t=256,I=Buffer.alloc(t),B=0,tr=process.stdin.fd;try{B=fs.readSync(tr,I,0,t)}catch(rr){if(rr.toString().includes("EOF"))B=0;else throw rr}B>0&&(e=I.slice(0,B).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
137
137
  `));if(!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,I,B,tr){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var rr=0,ir=0;ir<B;ir++){var lr;try{lr=e.tty.ops.get_char(e.tty)}catch{throw new FS.ErrnoError(29)}if(lr===void 0&&rr===0)throw new FS.ErrnoError(6);if(lr==null)break;rr++,t[I+ir]=lr}return rr&&(e.node.atime=Date.now()),rr},write(e,t,I,B,tr){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var rr=0;rr<B;rr++)e.tty.ops.put_char(e.tty,t[I+rr])}catch{throw new FS.ErrnoError(29)}return B&&(e.node.mtime=e.node.ctime=Date.now()),rr}},default_tty_ops:{get_char(e){return FS_stdin_getChar()},put_char(e,t){t===null||t===10?(out(UTF8ArrayToString(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output)),e.output=[])},ioctl_tcgets(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(e,t,I){return 0},ioctl_tiocgwinsz(e){return[24,80]}},default_tty1_ops:{put_char(e,t){t===null||t===10?(err(UTF8ArrayToString(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output)),e.output=[])}}},zeroMemory=(e,t)=>{HEAPU8.fill(0,e,e+t)},mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t&&zeroMemory(t,e),t},MEMFS={ops_table:null,mount(e){return MEMFS.createNode(null,"/",16895,0)},createNode(e,t,I,B){if(FS.isBlkdev(I)||FS.isFIFO(I))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var tr=FS.createNode(e,t,I,B);return FS.isDir(tr.mode)?(tr.node_ops=MEMFS.ops_table.dir.node,tr.stream_ops=MEMFS.ops_table.dir.stream,tr.contents={}):FS.isFile(tr.mode)?(tr.node_ops=MEMFS.ops_table.file.node,tr.stream_ops=MEMFS.ops_table.file.stream,tr.usedBytes=0,tr.contents=null):FS.isLink(tr.mode)?(tr.node_ops=MEMFS.ops_table.link.node,tr.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(tr.mode)&&(tr.node_ops=MEMFS.ops_table.chrdev.node,tr.stream_ops=MEMFS.ops_table.chrdev.stream),tr.atime=tr.mtime=tr.ctime=Date.now(),e&&(e.contents[t]=tr,e.atime=e.mtime=e.ctime=tr.atime),tr},getFileDataAsTypedArray(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage(e,t){var I=e.contents?e.contents.length:0;if(!(I>=t)){var B=1048576;t=Math.max(t,I*(I<B?2:1.125)>>>0),I!=0&&(t=Math.max(t,256));var tr=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(tr.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(t==0)e.contents=null,e.usedBytes=0;else{var I=e.contents;e.contents=new Uint8Array(t),I&&e.contents.set(I.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){for(let I of["mode","atime","mtime","ctime"])t[I]&&(e[I]=t[I]);t.size!==void 0&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw MEMFS.doesNotExistError},mknod(e,t,I,B){return MEMFS.createNode(e,t,I,B)},rename(e,t,I){var B;try{B=FS.lookupNode(t,I)}catch{}if(B){if(FS.isDir(e.mode))for(var tr in B.contents)throw new FS.ErrnoError(55);FS.hashRemoveNode(B)}delete e.parent.contents[e.name],t.contents[I]=e,e.name=I,t.ctime=t.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,t){delete e.contents[t],e.ctime=e.mtime=Date.now()},rmdir(e,t){var I=FS.lookupNode(e,t);for(var B in I.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.ctime=e.mtime=Date.now()},readdir(e){return[".","..",...Object.keys(e.contents)]},symlink(e,t,I){var B=MEMFS.createNode(e,t,41471,0);return B.link=I,B},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,I,B,tr){var rr=e.node.contents;if(tr>=e.node.usedBytes)return 0;var ir=Math.min(e.node.usedBytes-tr,B);if(ir>8&&rr.subarray)t.set(rr.subarray(tr,tr+ir),I);else for(var lr=0;lr<ir;lr++)t[I+lr]=rr[tr+lr];return ir},write(e,t,I,B,tr,rr){if(t.buffer===HEAP8.buffer&&(rr=!1),!B)return 0;var ir=e.node;if(ir.mtime=ir.ctime=Date.now(),t.subarray&&(!ir.contents||ir.contents.subarray)){if(rr)return ir.contents=t.subarray(I,I+B),ir.usedBytes=B,B;if(ir.usedBytes===0&&tr===0)return ir.contents=t.slice(I,I+B),ir.usedBytes=B,B;if(tr+B<=ir.usedBytes)return ir.contents.set(t.subarray(I,I+B),tr),B}if(MEMFS.expandFileStorage(ir,tr+B),ir.contents.subarray&&t.subarray)ir.contents.set(t.subarray(I,I+B),tr);else for(var lr=0;lr<B;lr++)ir.contents[tr+lr]=t[I+lr];return ir.usedBytes=Math.max(ir.usedBytes,tr+B),B},llseek(e,t,I){var B=t;if(I===1?B+=e.position:I===2&&FS.isFile(e.node.mode)&&(B+=e.node.usedBytes),B<0)throw new FS.ErrnoError(28);return B},allocate(e,t,I){MEMFS.expandFileStorage(e.node,t+I),e.node.usedBytes=Math.max(e.node.usedBytes,t+I)},mmap(e,t,I,B,tr){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var rr,ir,lr=e.node.contents;if(!(tr&2)&&lr&&lr.buffer===HEAP8.buffer)ir=!1,rr=lr.byteOffset;else{if(ir=!0,rr=mmapAlloc(t),!rr)throw new FS.ErrnoError(48);lr&&((I>0||I+t<lr.length)&&(lr.subarray?lr=lr.subarray(I,I+t):lr=Array.prototype.slice.call(lr,I,I+t)),HEAP8.set(lr,rr))}return{ptr:rr,allocated:ir}},msync(e,t,I,B,tr){return MEMFS.stream_ops.write(e,t,0,B,I,!1),0}}},FS_createDataFile=(e,t,I,B,tr,rr)=>{FS.createDataFile(e,t,I,B,tr,rr)},FS_handledByPreloadPlugin=(e,t,I,B)=>{typeof Browser<"u"&&Browser.init();var tr=!1;return preloadPlugins.forEach(rr=>{tr||rr.canHandle(t)&&(rr.handle(e,t,I,B),tr=!0)}),tr},FS_createPreloadedFile=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>{var fr=t?PATH_FS.resolve(PATH.join2(e,t)):e;function hr(_r){function yr(Mr){mr==null||mr(),lr||FS_createDataFile(e,t,Mr,B,tr,dr),rr==null||rr(),removeRunDependency()}FS_handledByPreloadPlugin(_r,fr,yr,()=>{ir==null||ir(),removeRunDependency()})||yr(_r)}addRunDependency(),typeof I=="string"?asyncLoad(I).then(hr,ir):hr(I)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},I=t[e];if(typeof I>"u")throw new Error(`Unknown file open mode: ${e}`);return I},FS_getMode=(e,t)=>{var I=0;return e&&(I|=365),t&&(I|=146),I},IDBFS={dbs:{},indexedDB:()=>{if(typeof indexedDB<"u")return indexedDB;var e=null;return typeof window=="object"&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),e},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",queuePersist:e=>{function t(){e.idbPersistState==="again"?I():e.idbPersistState=0}function I(){e.idbPersistState="idb",IDBFS.syncfs(e,!1,t)}e.idbPersistState?e.idbPersistState==="idb"&&(e.idbPersistState="again"):e.idbPersistState=setTimeout(I,0)},mount:e=>{var B;var t=MEMFS.mount(e);if((B=e==null?void 0:e.opts)!=null&&B.autoPersist){t.idbPersistState=0;var I=t.node_ops;t.node_ops=Object.assign({},t.node_ops),t.node_ops.mknod=(tr,rr,ir,lr)=>{var dr=I.mknod(tr,rr,ir,lr);return dr.node_ops=t.node_ops,dr.idbfs_mount=t.mount,dr.memfs_stream_ops=dr.stream_ops,dr.stream_ops=Object.assign({},dr.stream_ops),dr.stream_ops.write=(mr,fr,hr,_r,yr,Mr)=>(mr.node.isModified=!0,dr.memfs_stream_ops.write(mr,fr,hr,_r,yr,Mr)),dr.stream_ops.close=mr=>{var fr=mr.node;if(fr.isModified&&(IDBFS.queuePersist(fr.idbfs_mount),fr.isModified=!1),fr.memfs_stream_ops.close)return fr.memfs_stream_ops.close(mr)},dr},t.node_ops.mkdir=(...tr)=>(IDBFS.queuePersist(t.mount),I.mkdir(...tr)),t.node_ops.rmdir=(...tr)=>(IDBFS.queuePersist(t.mount),I.rmdir(...tr)),t.node_ops.symlink=(...tr)=>(IDBFS.queuePersist(t.mount),I.symlink(...tr)),t.node_ops.unlink=(...tr)=>(IDBFS.queuePersist(t.mount),I.unlink(...tr)),t.node_ops.rename=(...tr)=>(IDBFS.queuePersist(t.mount),I.rename(...tr))}return t},syncfs:(e,t,I)=>{IDBFS.getLocalSet(e,(B,tr)=>{if(B)return I(B);IDBFS.getRemoteSet(e,(rr,ir)=>{if(rr)return I(rr);var lr=t?ir:tr,dr=t?tr:ir;IDBFS.reconcile(lr,dr,I)})})},quit:()=>{Object.values(IDBFS.dbs).forEach(e=>e.close()),IDBFS.dbs={}},getDB:(e,t)=>{var I=IDBFS.dbs[e];if(I)return t(null,I);var B;try{B=IDBFS.indexedDB().open(e,IDBFS.DB_VERSION)}catch(tr){return t(tr)}if(!B)return t("Unable to connect to IndexedDB");B.onupgradeneeded=tr=>{var rr=tr.target.result,ir=tr.target.transaction,lr;rr.objectStoreNames.contains(IDBFS.DB_STORE_NAME)?lr=ir.objectStore(IDBFS.DB_STORE_NAME):lr=rr.createObjectStore(IDBFS.DB_STORE_NAME),lr.indexNames.contains("timestamp")||lr.createIndex("timestamp","timestamp",{unique:!1})},B.onsuccess=()=>{I=B.result,IDBFS.dbs[e]=I,t(null,I)},B.onerror=tr=>{t(tr.target.error),tr.preventDefault()}},getLocalSet:(e,t)=>{var I={};function B(dr){return dr!=="."&&dr!==".."}function tr(dr){return mr=>PATH.join2(dr,mr)}for(var rr=FS.readdir(e.mountpoint).filter(B).map(tr(e.mountpoint));rr.length;){var ir=rr.pop(),lr;try{lr=FS.stat(ir)}catch(dr){return t(dr)}FS.isDir(lr.mode)&&rr.push(...FS.readdir(ir).filter(B).map(tr(ir))),I[ir]={timestamp:lr.mtime}}return t(null,{type:"local",entries:I})},getRemoteSet:(e,t)=>{var I={};IDBFS.getDB(e.mountpoint,(B,tr)=>{if(B)return t(B);try{var rr=tr.transaction([IDBFS.DB_STORE_NAME],"readonly");rr.onerror=dr=>{t(dr.target.error),dr.preventDefault()};var ir=rr.objectStore(IDBFS.DB_STORE_NAME),lr=ir.index("timestamp");lr.openKeyCursor().onsuccess=dr=>{var mr=dr.target.result;if(!mr)return t(null,{type:"remote",db:tr,entries:I});I[mr.primaryKey]={timestamp:mr.key},mr.continue()}}catch(dr){return t(dr)}})},loadLocalEntry:(e,t)=>{var I,B;try{var tr=FS.lookupPath(e);B=tr.node,I=FS.stat(e)}catch(rr){return t(rr)}return FS.isDir(I.mode)?t(null,{timestamp:I.mtime,mode:I.mode}):FS.isFile(I.mode)?(B.contents=MEMFS.getFileDataAsTypedArray(B),t(null,{timestamp:I.mtime,mode:I.mode,contents:B.contents})):t(new Error("node type not supported"))},storeLocalEntry:(e,t,I)=>{try{if(FS.isDir(t.mode))FS.mkdirTree(e,t.mode);else if(FS.isFile(t.mode))FS.writeFile(e,t.contents,{canOwn:!0});else return I(new Error("node type not supported"));FS.chmod(e,t.mode),FS.utime(e,t.timestamp,t.timestamp)}catch(B){return I(B)}I(null)},removeLocalEntry:(e,t)=>{try{var I=FS.stat(e);FS.isDir(I.mode)?FS.rmdir(e):FS.isFile(I.mode)&&FS.unlink(e)}catch(B){return t(B)}t(null)},loadRemoteEntry:(e,t,I)=>{var B=e.get(t);B.onsuccess=tr=>I(null,tr.target.result),B.onerror=tr=>{I(tr.target.error),tr.preventDefault()}},storeRemoteEntry:(e,t,I,B)=>{try{var tr=e.put(I,t)}catch(rr){B(rr);return}tr.onsuccess=rr=>B(),tr.onerror=rr=>{B(rr.target.error),rr.preventDefault()}},removeRemoteEntry:(e,t,I)=>{var B=e.delete(t);B.onsuccess=tr=>I(),B.onerror=tr=>{I(tr.target.error),tr.preventDefault()}},reconcile:(e,t,I)=>{var B=0,tr=[];Object.keys(e.entries).forEach(hr=>{var _r=e.entries[hr],yr=t.entries[hr];(!yr||_r.timestamp.getTime()!=yr.timestamp.getTime())&&(tr.push(hr),B++)});var rr=[];if(Object.keys(t.entries).forEach(hr=>{e.entries[hr]||(rr.push(hr),B++)}),!B)return I(null);var ir=!1,lr=e.type==="remote"?e.db:t.db,dr=lr.transaction([IDBFS.DB_STORE_NAME],"readwrite"),mr=dr.objectStore(IDBFS.DB_STORE_NAME);function fr(hr){if(hr&&!ir)return ir=!0,I(hr)}dr.onerror=dr.onabort=hr=>{fr(hr.target.error),hr.preventDefault()},dr.oncomplete=hr=>{ir||I(null)},tr.sort().forEach(hr=>{t.type==="local"?IDBFS.loadRemoteEntry(mr,hr,(_r,yr)=>{if(_r)return fr(_r);IDBFS.storeLocalEntry(hr,yr,fr)}):IDBFS.loadLocalEntry(hr,(_r,yr)=>{if(_r)return fr(_r);IDBFS.storeRemoteEntry(mr,hr,yr,fr)})}),rr.sort().reverse().forEach(hr=>{t.type==="local"?IDBFS.removeLocalEntry(hr,fr):IDBFS.removeRemoteEntry(mr,hr,fr)})}},ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},NODEFS={isWindows:!1,staticInit(){NODEFS.isWindows=!!process.platform.match(/^win/);var e=process.binding("constants");e.fs&&(e=e.fs),NODEFS.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,256:e.O_NOCTTY,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY,131072:e.O_NOFOLLOW}},convertNodeCode(e){var t=e.code;return ERRNO_CODES[t]},tryFSOperation(e){try{return e()}catch(t){throw t.code?t.code==="UNKNOWN"?new FS.ErrnoError(28):new FS.ErrnoError(NODEFS.convertNodeCode(t)):t}},mount(e){return NODEFS.createNode(null,"/",NODEFS.getMode(e.opts.root),0)},createNode(e,t,I,B){if(!FS.isDir(I)&&!FS.isFile(I)&&!FS.isLink(I))throw new FS.ErrnoError(28);var tr=FS.createNode(e,t,I);return tr.node_ops=NODEFS.node_ops,tr.stream_ops=NODEFS.stream_ops,tr},getMode(e){return NODEFS.tryFSOperation(()=>{var t=fs.lstatSync(e).mode;return NODEFS.isWindows&&(t|=(t&292)>>2),t})},realPath(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),PATH.join(...t)},flagsForNode(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289,e&=-65537;var t=0;for(var I in NODEFS.flagsForNodeMap)e&I&&(t|=NODEFS.flagsForNodeMap[I],e^=I);if(e)throw new FS.ErrnoError(28);return t},node_ops:{getattr(e){var t=NODEFS.realPath(e),I;return NODEFS.tryFSOperation(()=>I=fs.lstatSync(t)),NODEFS.isWindows&&(I.blksize||(I.blksize=4096),I.blocks||(I.blocks=(I.size+I.blksize-1)/I.blksize|0),I.mode|=(I.mode&292)>>2),{dev:I.dev,ino:I.ino,mode:I.mode,nlink:I.nlink,uid:I.uid,gid:I.gid,rdev:I.rdev,size:I.size,atime:I.atime,mtime:I.mtime,ctime:I.ctime,blksize:I.blksize,blocks:I.blocks}},setattr(e,t){var I=NODEFS.realPath(e);NODEFS.tryFSOperation(()=>{if(t.mode!==void 0){var B=t.mode;NODEFS.isWindows&&(B&=384),fs.chmodSync(I,B),e.mode=t.mode}if(t.atime||t.mtime){var tr=t.atime&&new Date(t.atime),rr=t.mtime&&new Date(t.mtime);fs.utimesSync(I,tr,rr)}t.size!==void 0&&fs.truncateSync(I,t.size)})},lookup(e,t){var I=PATH.join2(NODEFS.realPath(e),t),B=NODEFS.getMode(I);return NODEFS.createNode(e,t,B)},mknod(e,t,I,B){var tr=NODEFS.createNode(e,t,I,B),rr=NODEFS.realPath(tr);return NODEFS.tryFSOperation(()=>{FS.isDir(tr.mode)?fs.mkdirSync(rr,tr.mode):fs.writeFileSync(rr,"",{mode:tr.mode})}),tr},rename(e,t,I){var B=NODEFS.realPath(e),tr=PATH.join2(NODEFS.realPath(t),I);try{FS.unlink(tr)}catch{}NODEFS.tryFSOperation(()=>fs.renameSync(B,tr)),e.name=I},unlink(e,t){var I=PATH.join2(NODEFS.realPath(e),t);NODEFS.tryFSOperation(()=>fs.unlinkSync(I))},rmdir(e,t){var I=PATH.join2(NODEFS.realPath(e),t);NODEFS.tryFSOperation(()=>fs.rmdirSync(I))},readdir(e){var t=NODEFS.realPath(e);return NODEFS.tryFSOperation(()=>fs.readdirSync(t))},symlink(e,t,I){var B=PATH.join2(NODEFS.realPath(e),t);NODEFS.tryFSOperation(()=>fs.symlinkSync(I,B))},readlink(e){var t=NODEFS.realPath(e);return NODEFS.tryFSOperation(()=>fs.readlinkSync(t))},statfs(e){var t=NODEFS.tryFSOperation(()=>fs.statfsSync(e));return t.frsize=t.bsize,t}},stream_ops:{open(e){var t=NODEFS.realPath(e.node);NODEFS.tryFSOperation(()=>{FS.isFile(e.node.mode)&&(e.shared.refcount=1,e.nfd=fs.openSync(t,NODEFS.flagsForNode(e.flags)))})},close(e){NODEFS.tryFSOperation(()=>{FS.isFile(e.node.mode)&&e.nfd&&--e.shared.refcount===0&&fs.closeSync(e.nfd)})},dup(e){e.shared.refcount++},read(e,t,I,B,tr){return B===0?0:NODEFS.tryFSOperation(()=>fs.readSync(e.nfd,new Int8Array(t.buffer,I,B),0,B,tr))},write(e,t,I,B,tr){return NODEFS.tryFSOperation(()=>fs.writeSync(e.nfd,new Int8Array(t.buffer,I,B),0,B,tr))},llseek(e,t,I){var B=t;if(I===1?B+=e.position:I===2&&FS.isFile(e.node.mode)&&NODEFS.tryFSOperation(()=>{var tr=fs.fstatSync(e.nfd);B+=tr.size}),B<0)throw new FS.ErrnoError(28);return B},mmap(e,t,I,B,tr){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var rr=mmapAlloc(t);return NODEFS.stream_ops.read(e,HEAP8,rr,t,I),{ptr:rr,allocated:!0}},msync(e,t,I,B,tr){return NODEFS.stream_ops.write(e,t,0,B,I,!1),0}}},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){P$1(this,"name","ErrnoError"),this.errno=e}},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{constructor(){P$1(this,"shared",{})}get object(){return this.node}set object(e){this.node=e}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,I,B){P$1(this,"node_ops",{}),P$1(this,"stream_ops",{}),P$1(this,"readMode",365),P$1(this,"writeMode",146),P$1(this,"mounted",null),e||(e=this),this.parent=e,this.mount=e.mount,this.id=FS.nextInode++,this.name=t,this.mode=I,this.rdev=B,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return FS.isDir(this.mode)}get isDevice(){return FS.isChrdev(this.mode)}},lookupPath(e,t={}){if(!e)return{path:"",node:null};t.follow_mount??(t.follow_mount=!0),PATH.isAbs(e)||(e=FS.cwd()+"/"+e);e:for(var I=0;I<40;I++){for(var B=e.split("/").filter(mr=>!!mr&&mr!=="."),tr=FS.root,rr="/",ir=0;ir<B.length;ir++){var lr=ir===B.length-1;if(lr&&t.parent)break;if(B[ir]===".."){rr=PATH.dirname(rr),tr=tr.parent;continue}rr=PATH.join2(rr,B[ir]);try{tr=FS.lookupNode(tr,B[ir])}catch(mr){if((mr==null?void 0:mr.errno)===44&&lr&&t.noent_okay)return{path:rr};throw mr}if(FS.isMountpoint(tr)&&(!lr||t.follow_mount)&&(tr=tr.mounted.root),FS.isLink(tr.mode)&&(!lr||t.follow)){if(!tr.node_ops.readlink)throw new FS.ErrnoError(52);var dr=tr.node_ops.readlink(tr);PATH.isAbs(dr)||(dr=PATH.dirname(rr)+"/"+dr),e=dr+"/"+B.slice(ir+1).join("/");continue e}}return{path:rr,node:tr}}throw new FS.ErrnoError(32)},getPath(e){for(var t;;){if(FS.isRoot(e)){var I=e.mount.mountpoint;return t?I[I.length-1]!=="/"?`${I}/${t}`:I+t:I}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var I=0,B=0;B<t.length;B++)I=(I<<5)-I+t.charCodeAt(B)|0;return(e+I>>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var I=FS.nameTable[t];I;){if(I.name_next===e){I.name_next=e.name_next;break}I=I.name_next}},lookupNode(e,t){var I=FS.mayLookup(e);if(I)throw new FS.ErrnoError(I);for(var B=FS.hashName(e.id,t),tr=FS.nameTable[B];tr;tr=tr.name_next){var rr=tr.name;if(tr.parent.id===e.id&&rr===t)return tr}return FS.lookup(e,t)},createNode(e,t,I,B){var tr=new FS.FSNode(e,t,I,B);return FS.hashAddNode(tr),tr},destroyNode(e){FS.hashRemoveNode(e)},isRoot(e){return e===e.parent},isMountpoint(e){return!!e.mounted},isFile(e){return(e&61440)===32768},isDir(e){return(e&61440)===16384},isLink(e){return(e&61440)===40960},isChrdev(e){return(e&61440)===8192},isBlkdev(e){return(e&61440)===24576},isFIFO(e){return(e&61440)===4096},isSocket(e){return(e&49152)===49152},flagsToPermissionString(e){var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t},nodePermissions(e,t){return FS.ignorePermissions?0:t.includes("r")&&!(e.mode&292)||t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73)?2:0},mayLookup(e){if(!FS.isDir(e.mode))return 54;var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){if(!FS.isDir(e.mode))return 54;try{return FS.lookupNode(e,t),20}catch{}return FS.nodePermissions(e,"wx")},mayDelete(e,t,I){var B;try{B=FS.lookupNode(e,t)}catch(rr){return rr.errno}var tr=FS.nodePermissions(e,"wx");if(tr)return tr;if(I){if(!FS.isDir(B.mode))return 54;if(FS.isRoot(B)||FS.getPath(B)===FS.cwd())return 10}else if(FS.isDir(B.mode))return 31;return 0},mayOpen(e,t){return e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&(FS.flagsToPermissionString(t)!=="r"||t&512)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream(e,t=-1){return e=Object.assign(new FS.FSStream,e),t==-1&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e},closeStream(e){FS.streams[e]=null},dupStream(e,t=-1){var B,tr;var I=FS.createStream(e,t);return(tr=(B=I.stream_ops)==null?void 0:B.dup)==null||tr.call(B,I),I},chrdev_stream_ops:{open(e){var I,B;var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,(B=(I=e.stream_ops).open)==null||B.call(I,e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>e&255,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],I=[e];I.length;){var B=I.pop();t.push(B),I.push(...B.mounts)}return t},syncfs(e,t){typeof e=="function"&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var I=FS.getMounts(FS.root.mount),B=0;function tr(ir){return FS.syncFSRequests--,t(ir)}function rr(ir){if(ir)return rr.errored?void 0:(rr.errored=!0,tr(ir));++B>=I.length&&tr(null)}I.forEach(ir=>{if(!ir.type.syncfs)return rr(null);ir.type.syncfs(ir,e,rr)})},mount(e,t,I){var B=I==="/",tr=!I,rr;if(B&&FS.root)throw new FS.ErrnoError(10);if(!B&&!tr){var ir=FS.lookupPath(I,{follow_mount:!1});if(I=ir.path,rr=ir.node,FS.isMountpoint(rr))throw new FS.ErrnoError(10);if(!FS.isDir(rr.mode))throw new FS.ErrnoError(54)}var lr={type:e,opts:t,mountpoint:I,mounts:[]},dr=e.mount(lr);return dr.mount=lr,lr.root=dr,B?FS.root=dr:rr&&(rr.mounted=lr,rr.mount&&rr.mount.mounts.push(lr)),dr},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var I=t.node,B=I.mounted,tr=FS.getMounts(B);Object.keys(FS.nameTable).forEach(ir=>{for(var lr=FS.nameTable[ir];lr;){var dr=lr.name_next;tr.includes(lr.mount)&&FS.destroyNode(lr),lr=dr}}),I.mounted=null;var rr=I.mount.mounts.indexOf(B);I.mount.mounts.splice(rr,1)},lookup(e,t){return e.node_ops.lookup(e,t)},mknod(e,t,I){var B=FS.lookupPath(e,{parent:!0}),tr=B.node,rr=PATH.basename(e);if(!rr||rr==="."||rr==="..")throw new FS.ErrnoError(28);var ir=FS.mayCreate(tr,rr);if(ir)throw new FS.ErrnoError(ir);if(!tr.node_ops.mknod)throw new FS.ErrnoError(63);return tr.node_ops.mknod(tr,rr,t,I)},statfs(e){var t={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:FS.nextInode,ffree:FS.nextInode-1,fsid:42,flags:2,namelen:255},I=FS.lookupPath(e,{follow:!0}).node;return I!=null&&I.node_ops.statfs&&Object.assign(t,I.node_ops.statfs(I.mount.opts.root)),t},create(e,t=438){return t&=4095,t|=32768,FS.mknod(e,t,0)},mkdir(e,t=511){return t&=1023,t|=16384,FS.mknod(e,t,0)},mkdirTree(e,t){for(var I=e.split("/"),B="",tr=0;tr<I.length;++tr)if(I[tr]){B+="/"+I[tr];try{FS.mkdir(B,t)}catch(rr){if(rr.errno!=20)throw rr}}},mkdev(e,t,I){return typeof I>"u"&&(I=t,t=438),t|=8192,FS.mknod(e,t,I)},symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var I=FS.lookupPath(t,{parent:!0}),B=I.node;if(!B)throw new FS.ErrnoError(44);var tr=PATH.basename(t),rr=FS.mayCreate(B,tr);if(rr)throw new FS.ErrnoError(rr);if(!B.node_ops.symlink)throw new FS.ErrnoError(63);return B.node_ops.symlink(B,tr,e)},rename(e,t){var I=PATH.dirname(e),B=PATH.dirname(t),tr=PATH.basename(e),rr=PATH.basename(t),ir,lr,dr;if(ir=FS.lookupPath(e,{parent:!0}),lr=ir.node,ir=FS.lookupPath(t,{parent:!0}),dr=ir.node,!lr||!dr)throw new FS.ErrnoError(44);if(lr.mount!==dr.mount)throw new FS.ErrnoError(75);var mr=FS.lookupNode(lr,tr),fr=PATH_FS.relative(e,B);if(fr.charAt(0)!==".")throw new FS.ErrnoError(28);if(fr=PATH_FS.relative(t,I),fr.charAt(0)!==".")throw new FS.ErrnoError(55);var hr;try{hr=FS.lookupNode(dr,rr)}catch{}if(mr!==hr){var _r=FS.isDir(mr.mode),yr=FS.mayDelete(lr,tr,_r);if(yr)throw new FS.ErrnoError(yr);if(yr=hr?FS.mayDelete(dr,rr,_r):FS.mayCreate(dr,rr),yr)throw new FS.ErrnoError(yr);if(!lr.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(mr)||hr&&FS.isMountpoint(hr))throw new FS.ErrnoError(10);if(dr!==lr&&(yr=FS.nodePermissions(lr,"w"),yr))throw new FS.ErrnoError(yr);FS.hashRemoveNode(mr);try{lr.node_ops.rename(mr,dr,rr),mr.parent=dr}catch(Mr){throw Mr}finally{FS.hashAddNode(mr)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}),I=t.node,B=PATH.basename(e),tr=FS.lookupNode(I,B),rr=FS.mayDelete(I,B,!0);if(rr)throw new FS.ErrnoError(rr);if(!I.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(tr))throw new FS.ErrnoError(10);I.node_ops.rmdir(I,B),FS.destroyNode(tr)},readdir(e){var t=FS.lookupPath(e,{follow:!0}),I=t.node;if(!I.node_ops.readdir)throw new FS.ErrnoError(54);return I.node_ops.readdir(I)},unlink(e){var t=FS.lookupPath(e,{parent:!0}),I=t.node;if(!I)throw new FS.ErrnoError(44);var B=PATH.basename(e),tr=FS.lookupNode(I,B),rr=FS.mayDelete(I,B,!1);if(rr)throw new FS.ErrnoError(rr);if(!I.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(tr))throw new FS.ErrnoError(10);I.node_ops.unlink(I,B),FS.destroyNode(tr)},readlink(e){var t=FS.lookupPath(e),I=t.node;if(!I)throw new FS.ErrnoError(44);if(!I.node_ops.readlink)throw new FS.ErrnoError(28);return I.node_ops.readlink(I)},stat(e,t){var I=FS.lookupPath(e,{follow:!t}),B=I.node;if(!B)throw new FS.ErrnoError(44);if(!B.node_ops.getattr)throw new FS.ErrnoError(63);return B.node_ops.getattr(B)},lstat(e){return FS.stat(e,!0)},chmod(e,t,I){var B;if(typeof e=="string"){var tr=FS.lookupPath(e,{follow:!I});B=tr.node}else B=e;if(!B.node_ops.setattr)throw new FS.ErrnoError(63);B.node_ops.setattr(B,{mode:t&4095|B.mode&-4096,ctime:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var I=FS.getStreamChecked(e);FS.chmod(I.node,t)},chown(e,t,I,B){var tr;if(typeof e=="string"){var rr=FS.lookupPath(e,{follow:!B});tr=rr.node}else tr=e;if(!tr.node_ops.setattr)throw new FS.ErrnoError(63);tr.node_ops.setattr(tr,{timestamp:Date.now()})},lchown(e,t,I){FS.chown(e,t,I,!0)},fchown(e,t,I){var B=FS.getStreamChecked(e);FS.chown(B.node,t,I)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var I;if(typeof e=="string"){var B=FS.lookupPath(e,{follow:!0});I=B.node}else I=e;if(!I.node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(I.mode))throw new FS.ErrnoError(31);if(!FS.isFile(I.mode))throw new FS.ErrnoError(28);var tr=FS.nodePermissions(I,"w");if(tr)throw new FS.ErrnoError(tr);I.node_ops.setattr(I,{size:t,timestamp:Date.now()})},ftruncate(e,t){var I=FS.getStreamChecked(e);if(!(I.flags&2097155))throw new FS.ErrnoError(28);FS.truncate(I.node,t)},utime(e,t,I){var B=FS.lookupPath(e,{follow:!0}),tr=B.node;tr.node_ops.setattr(tr,{atime:t,mtime:I})},open(e,t,I=438){if(e==="")throw new FS.ErrnoError(44);t=typeof t=="string"?FS_modeStringToFlags(t):t,t&64?I=I&4095|32768:I=0;var B;if(typeof e=="object")B=e;else{var tr=FS.lookupPath(e,{follow:!(t&131072),noent_okay:!0});B=tr.node,e=tr.path}var rr=!1;if(t&64)if(B){if(t&128)throw new FS.ErrnoError(20)}else B=FS.mknod(e,I,0),rr=!0;if(!B)throw new FS.ErrnoError(44);if(FS.isChrdev(B.mode)&&(t&=-513),t&65536&&!FS.isDir(B.mode))throw new FS.ErrnoError(54);if(!rr){var ir=FS.mayOpen(B,t);if(ir)throw new FS.ErrnoError(ir)}t&512&&!rr&&FS.truncate(B,0),t&=-131713;var lr=FS.createStream({node:B,path:FS.getPath(B),flags:t,seekable:!0,position:0,stream_ops:B.stream_ops,ungotten:[],error:!1});return lr.stream_ops.open&&lr.stream_ops.open(lr),Module.logReadFiles&&!(t&1)&&(e in FS.readFiles||(FS.readFiles[e]=1)),lr},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(t){throw t}finally{FS.closeStream(e.fd)}e.fd=null},isClosed(e){return e.fd===null},llseek(e,t,I){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(I!=0&&I!=1&&I!=2)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,I),e.ungotten=[],e.position},read(e,t,I,B,tr){if(B<0||tr<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if((e.flags&2097155)===1)throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var rr=typeof tr<"u";if(!rr)tr=e.position;else if(!e.seekable)throw new FS.ErrnoError(70);var ir=e.stream_ops.read(e,t,I,B,tr);return rr||(e.position+=ir),ir},write(e,t,I,B,tr,rr){if(B<0||tr<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(e.flags&2097155))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&e.flags&1024&&FS.llseek(e,0,2);var ir=typeof tr<"u";if(!ir)tr=e.position;else if(!e.seekable)throw new FS.ErrnoError(70);var lr=e.stream_ops.write(e,t,I,B,tr,rr);return ir||(e.position+=lr),lr},allocate(e,t,I){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||I<=0)throw new FS.ErrnoError(28);if(!(e.flags&2097155))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,I)},mmap(e,t,I,B,tr){if(B&2&&!(tr&2)&&(e.flags&2097155)!==2)throw new FS.ErrnoError(2);if((e.flags&2097155)===1)throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);if(!t)throw new FS.ErrnoError(28);return e.stream_ops.mmap(e,t,I,B,tr)},msync(e,t,I,B,tr){return e.stream_ops.msync?e.stream_ops.msync(e,t,I,B,tr):0},ioctl(e,t,I){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,I)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary",t.encoding!=="utf8"&&t.encoding!=="binary")throw new Error(`Invalid encoding type "${t.encoding}"`);var I,B=FS.open(e,t.flags),tr=FS.stat(e),rr=tr.size,ir=new Uint8Array(rr);return FS.read(B,ir,0,rr,0),t.encoding==="utf8"?I=UTF8ArrayToString(ir):t.encoding==="binary"&&(I=ir),FS.close(B),I},writeFile(e,t,I={}){I.flags=I.flags||577;var B=FS.open(e,I.flags,I.mode);if(typeof t=="string"){var tr=new Uint8Array(lengthBytesUTF8(t)+1),rr=stringToUTF8Array(t,tr,0,tr.length);FS.write(B,tr,0,rr,void 0,I.canOwn)}else if(ArrayBuffer.isView(t))FS.write(B,t,0,t.byteLength,void 0,I.canOwn);else throw new Error("Unsupported data type");FS.close(B)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(t.node===null)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var I=FS.nodePermissions(t.node,"x");if(I)throw new FS.ErrnoError(I);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(B,tr,rr,ir,lr)=>ir,llseek:()=>0}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,I=()=>(t===0&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",I),FS.createDevice("/dev","urandom",I),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.stream_ops={llseek:MEMFS.stream_ops.llseek},t.node_ops={lookup(I,B){var tr=+B,rr=FS.getStreamChecked(tr),ir={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>rr.path},id:tr+1};return ir.parent=ir,ir},readdir(){return Array.from(FS.streams.entries()).filter(([I,B])=>B).map(([I,B])=>I.toString())}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,I){e?FS.createDevice("/dev","stdin",e):FS.symlink("/dev/tty","/dev/stdin"),t?FS.createDevice("/dev","stdout",null,t):FS.symlink("/dev/tty","/dev/stdout"),I?FS.createDevice("/dev","stderr",null,I):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},staticInit(){FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS,IDBFS,NODEFS}},init(e,t,I){FS.initialized=!0,e??(e=Module.stdin),t??(t=Module.stdout),I??(I=Module.stderr),FS.createStandardStreams(e,t,I)},quit(){FS.initialized=!1,_fflush(0);for(var e=0;e<FS.streams.length;e++){var t=FS.streams[e];t&&FS.close(t)}},findObject(e,t){var I=FS.analyzePath(e,t);return I.exists?I.object:null},analyzePath(e,t){try{var I=FS.lookupPath(e,{follow:!t});e=I.path}catch{}var B={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var I=FS.lookupPath(e,{parent:!0});B.parentExists=!0,B.parentPath=I.path,B.parentObject=I.node,B.name=PATH.basename(e),I=FS.lookupPath(e,{follow:!t}),B.exists=!0,B.path=I.path,B.object=I.node,B.name=I.node.name,B.isRoot=I.path==="/"}catch(tr){B.error=tr.errno}return B},createPath(e,t,I,B){e=typeof e=="string"?e:FS.getPath(e);for(var tr=t.split("/").reverse();tr.length;){var rr=tr.pop();if(rr){var ir=PATH.join2(e,rr);try{FS.mkdir(ir)}catch{}e=ir}}return ir},createFile(e,t,I,B,tr){var rr=PATH.join2(typeof e=="string"?e:FS.getPath(e),t),ir=FS_getMode(B,tr);return FS.create(rr,ir)},createDataFile(e,t,I,B,tr,rr){var ir=t;e&&(e=typeof e=="string"?e:FS.getPath(e),ir=t?PATH.join2(e,t):e);var lr=FS_getMode(B,tr),dr=FS.create(ir,lr);if(I){if(typeof I=="string"){for(var mr=new Array(I.length),fr=0,hr=I.length;fr<hr;++fr)mr[fr]=I.charCodeAt(fr);I=mr}FS.chmod(dr,lr|146);var _r=FS.open(dr,577);FS.write(_r,I,0,I.length,0,rr),FS.close(_r),FS.chmod(dr,lr)}},createDevice(e,t,I,B){var tr,rr=PATH.join2(typeof e=="string"?e:FS.getPath(e),t),ir=FS_getMode(!!I,!!B);(tr=FS.createDevice).major??(tr.major=64);var lr=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(lr,{open(dr){dr.seekable=!1},close(dr){var mr;(mr=B==null?void 0:B.buffer)!=null&&mr.length&&B(10)},read(dr,mr,fr,hr,_r){for(var yr=0,Mr=0;Mr<hr;Mr++){var vr;try{vr=I()}catch{throw new FS.ErrnoError(29)}if(vr===void 0&&yr===0)throw new FS.ErrnoError(6);if(vr==null)break;yr++,mr[fr+Mr]=vr}return yr&&(dr.node.atime=Date.now()),yr},write(dr,mr,fr,hr,_r){for(var yr=0;yr<hr;yr++)try{B(mr[fr+yr])}catch{throw new FS.ErrnoError(29)}return hr&&(dr.node.mtime=dr.node.ctime=Date.now()),yr}}),FS.mkdev(rr,ir,lr)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{e.contents=readBinary(e.url),e.usedBytes=e.contents.length}catch{throw new FS.ErrnoError(29)}},createLazyFile(e,t,I,B,tr){class rr{constructor(){P$1(this,"lengthKnown",!1),P$1(this,"chunks",[])}get(yr){if(!(yr>this.length-1||yr<0)){var Mr=yr%this.chunkSize,vr=yr/this.chunkSize|0;return this.getter(vr)[Mr]}}setDataGetter(yr){this.getter=yr}cacheLength(){var yr=new XMLHttpRequest;if(yr.open("HEAD",I,!1),yr.send(null),!(yr.status>=200&&yr.status<300||yr.status===304))throw new Error("Couldn't load "+I+". Status: "+yr.status);var Mr=Number(yr.getResponseHeader("Content-length")),vr,Sr=(vr=yr.getResponseHeader("Accept-Ranges"))&&vr==="bytes",br=(vr=yr.getResponseHeader("Content-Encoding"))&&vr==="gzip",gr=1024*1024;Sr||(gr=Mr);var wr=(Ir,kr)=>{if(Ir>kr)throw new Error("invalid range ("+Ir+", "+kr+") or no bytes requested!");if(kr>Mr-1)throw new Error("only "+Mr+" bytes available! programmer error!");var Or=new XMLHttpRequest;if(Or.open("GET",I,!1),Mr!==gr&&Or.setRequestHeader("Range","bytes="+Ir+"-"+kr),Or.responseType="arraybuffer",Or.overrideMimeType&&Or.overrideMimeType("text/plain; charset=x-user-defined"),Or.send(null),!(Or.status>=200&&Or.status<300||Or.status===304))throw new Error("Couldn't load "+I+". Status: "+Or.status);return Or.response!==void 0?new Uint8Array(Or.response||[]):intArrayFromString(Or.responseText||"")},xr=this;xr.setDataGetter(Ir=>{var kr=Ir*gr,Or=(Ir+1)*gr-1;if(Or=Math.min(Or,Mr-1),typeof xr.chunks[Ir]>"u"&&(xr.chunks[Ir]=wr(kr,Or)),typeof xr.chunks[Ir]>"u")throw new Error("doXHR failed!");return xr.chunks[Ir]}),(br||!Mr)&&(gr=Mr=1,Mr=this.getter(0).length,gr=Mr,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Mr,this._chunkSize=gr,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var ir=new rr,lr={isDevice:!1,contents:ir}}else var lr={isDevice:!1,url:I};var dr=FS.createFile(e,t,lr,B,tr);lr.contents?dr.contents=lr.contents:lr.url&&(dr.contents=null,dr.url=lr.url),Object.defineProperties(dr,{usedBytes:{get:function(){return this.contents.length}}});var mr={},fr=Object.keys(dr.stream_ops);fr.forEach(_r=>{var yr=dr.stream_ops[_r];mr[_r]=(...Mr)=>(FS.forceLoadFile(dr),yr(...Mr))});function hr(_r,yr,Mr,vr,Sr){var br=_r.node.contents;if(Sr>=br.length)return 0;var gr=Math.min(br.length-Sr,vr);if(br.slice)for(var wr=0;wr<gr;wr++)yr[Mr+wr]=br[Sr+wr];else for(var wr=0;wr<gr;wr++)yr[Mr+wr]=br.get(Sr+wr);return gr}return mr.read=(_r,yr,Mr,vr,Sr)=>(FS.forceLoadFile(dr),hr(_r,yr,Mr,vr,Sr)),mr.mmap=(_r,yr,Mr,vr,Sr)=>{FS.forceLoadFile(dr);var br=mmapAlloc(yr);if(!br)throw new FS.ErrnoError(48);return hr(_r,HEAP8,br,yr,Mr),{ptr:br,allocated:!0}},dr.stream_ops=mr,dr}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,I){if(PATH.isAbs(t))return t;var B;if(e===-100)B=FS.cwd();else{var tr=SYSCALLS.getStreamFromFD(e);B=tr.path}if(t.length==0){if(!I)throw new FS.ErrnoError(44);return B}return B+"/"+t},doStat(e,t,I){var B=e(t);HEAP32[I>>2]=B.dev,HEAP32[I+4>>2]=B.mode,HEAPU32[I+8>>2]=B.nlink,HEAP32[I+12>>2]=B.uid,HEAP32[I+16>>2]=B.gid,HEAP32[I+20>>2]=B.rdev,HEAP64[I+24>>3]=BigInt(B.size),HEAP32[I+32>>2]=4096,HEAP32[I+36>>2]=B.blocks;var tr=B.atime.getTime(),rr=B.mtime.getTime(),ir=B.ctime.getTime();return HEAP64[I+40>>3]=BigInt(Math.floor(tr/1e3)),HEAPU32[I+48>>2]=tr%1e3*1e3*1e3,HEAP64[I+56>>3]=BigInt(Math.floor(rr/1e3)),HEAPU32[I+64>>2]=rr%1e3*1e3*1e3,HEAP64[I+72>>3]=BigInt(Math.floor(ir/1e3)),HEAPU32[I+80>>2]=ir%1e3*1e3*1e3,HEAP64[I+88>>3]=BigInt(B.ino),0},doMsync(e,t,I,B,tr){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(B&2)return 0;var rr=HEAPU8.slice(e,e+I);FS.msync(t,rr,tr,I,B)},getStreamFromFD(e){var t=FS.getStreamChecked(e);return t},varargs:void 0,getStr(e){var t=UTF8ToString(e);return t}},___syscall__newselect=function(e,t,I,B,tr){try{for(var rr=0,ir=t?HEAP32[t>>2]:0,lr=t?HEAP32[t+4>>2]:0,dr=I?HEAP32[I>>2]:0,mr=I?HEAP32[I+4>>2]:0,fr=B?HEAP32[B>>2]:0,hr=B?HEAP32[B+4>>2]:0,_r=0,yr=0,Mr=0,vr=0,Sr=0,br=0,gr=(t?HEAP32[t>>2]:0)|(I?HEAP32[I>>2]:0)|(B?HEAP32[B>>2]:0),wr=(t?HEAP32[t+4>>2]:0)|(I?HEAP32[I+4>>2]:0)|(B?HEAP32[B+4>>2]:0),xr=(Jr,Jn,Ar,$r)=>Jr<32?Jn&$r:Ar&$r,Ir=0;Ir<e;Ir++){var kr=1<<Ir%32;if(xr(Ir,gr,wr,kr)){var Or=SYSCALLS.getStreamFromFD(Ir),Lr=SYSCALLS.DEFAULT_POLLMASK;if(Or.stream_ops.poll){var Kn=-1;if(tr){var Pr=t?HEAP32[tr>>2]:0,Fr=t?HEAP32[tr+4>>2]:0;Kn=(Pr+Fr/1e6)*1e3}Lr=Or.stream_ops.poll(Or,Kn)}Lr&1&&xr(Ir,ir,lr,kr)&&(Ir<32?_r=_r|kr:yr=yr|kr,rr++),Lr&4&&xr(Ir,dr,mr,kr)&&(Ir<32?Mr=Mr|kr:vr=vr|kr,rr++),Lr&2&&xr(Ir,fr,hr,kr)&&(Ir<32?Sr=Sr|kr:br=br|kr,rr++)}}return t&&(HEAP32[t>>2]=_r,HEAP32[t+4>>2]=yr),I&&(HEAP32[I>>2]=Mr,HEAP32[I+4>>2]=vr),B&&(HEAP32[B>>2]=Sr,HEAP32[B+4>>2]=br),rr}catch(Jr){if(typeof FS>"u"||Jr.name!=="ErrnoError")throw Jr;return-Jr.errno}};___syscall__newselect.sig="iipppp";var SOCKFS={websocketArgs:{},callbacks:{},on(e,t){SOCKFS.callbacks[e]=t},emit(e,t){var I,B;(B=(I=SOCKFS.callbacks)[e])==null||B.call(I,t)},mount(e){return SOCKFS.websocketArgs=Module.websocket||{},(Module.websocket??(Module.websocket={})).on=SOCKFS.on,FS.createNode(null,"/",16895,0)},createSocket(e,t,I){t&=-526337;var B=t==1;if(B&&I&&I!=6)throw new FS.ErrnoError(66);var tr={family:e,type:t,protocol:I,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},rr=SOCKFS.nextname(),ir=FS.createNode(SOCKFS.root,rr,49152,0);ir.sock=tr;var lr=FS.createStream({path:rr,node:ir,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return tr.stream=lr,tr},getSocket(e){var t=FS.getStream(e);return!t||!FS.isSocket(t.node.mode)?null:t.node.sock},stream_ops:{poll(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl(e,t,I){var B=e.node.sock;return B.sock_ops.ioctl(B,t,I)},read(e,t,I,B,tr){var rr=e.node.sock,ir=rr.sock_ops.recvmsg(rr,B);return ir?(t.set(ir.buffer,I),ir.buffer.length):0},write(e,t,I,B,tr){var rr=e.node.sock;return rr.sock_ops.sendmsg(rr,t,I,B)},close(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname(){return SOCKFS.nextname.current||(SOCKFS.nextname.current=0),`socket[${SOCKFS.nextname.current++}]`},websocket_sock_ops:{createPeer(e,t,I){var B;if(typeof t=="object"&&(B=t,t=null,I=null),B)if(B._socket)t=B._socket.remoteAddress,I=B._socket.remotePort;else{var tr=/ws[s]?:\/\/([^:]+):(\d+)/.exec(B.url);if(!tr)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=tr[1],I=parseInt(tr[2],10)}else try{var rr="ws:#".replace("#","//"),ir="binary",lr=void 0;if(SOCKFS.websocketArgs.url&&(rr=SOCKFS.websocketArgs.url),SOCKFS.websocketArgs.subprotocol?ir=SOCKFS.websocketArgs.subprotocol:SOCKFS.websocketArgs.subprotocol===null&&(ir="null"),rr==="ws://"||rr==="wss://"){var dr=t.split("/");rr=rr+dr[0]+":"+I+"/"+dr.slice(1).join("/")}ir!=="null"&&(ir=ir.replace(/^ +| +$/g,"").split(/ *, */),lr=ir);var mr;ENVIRONMENT_IS_NODE?mr=require("ws"):mr=WebSocket,B=new mr(rr,lr),B.binaryType="arraybuffer"}catch{throw new FS.ErrnoError(23)}var fr={addr:t,port:I,socket:B,msg_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,fr),SOCKFS.websocket_sock_ops.handlePeerEvents(e,fr),e.type===2&&typeof e.sport<"u"&&fr.msg_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(e.sport&65280)>>8,e.sport&255])),fr},getPeer(e,t,I){return e.peers[t+":"+I]},addPeer(e,t){e.peers[t.addr+":"+t.port]=t},removePeer(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents(e,t){var I=!0,B=function(){e.connecting=!1,SOCKFS.emit("open",e.stream.fd);try{for(var rr=t.msg_send_queue.shift();rr;)t.socket.send(rr),rr=t.msg_send_queue.shift()}catch{t.socket.close()}};function tr(rr){if(typeof rr=="string"){var ir=new TextEncoder;rr=ir.encode(rr)}else{if(assert(rr.byteLength!==void 0),rr.byteLength==0)return;rr=new Uint8Array(rr)}var lr=I;if(I=!1,lr&&rr.length===10&&rr[0]===255&&rr[1]===255&&rr[2]===255&&rr[3]===255&&rr[4]===112&&rr[5]===111&&rr[6]===114&&rr[7]===116){var dr=rr[8]<<8|rr[9];SOCKFS.websocket_sock_ops.removePeer(e,t),t.port=dr,SOCKFS.websocket_sock_ops.addPeer(e,t);return}e.recv_queue.push({addr:t.addr,port:t.port,data:rr}),SOCKFS.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(t.socket.on("open",B),t.socket.on("message",function(rr,ir){ir&&tr(new Uint8Array(rr).buffer)}),t.socket.on("close",function(){SOCKFS.emit("close",e.stream.fd)}),t.socket.on("error",function(rr){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})):(t.socket.onopen=B,t.socket.onclose=function(){SOCKFS.emit("close",e.stream.fd)},t.socket.onmessage=function(rr){tr(rr.data)},t.socket.onerror=function(rr){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(e.type===1&&e.server)return e.pending.length?65:0;var t=0,I=e.type===1?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!I||I&&I.socket.readyState===I.socket.CLOSING||I&&I.socket.readyState===I.socket.CLOSED)&&(t|=65),(!I||I&&I.socket.readyState===I.socket.OPEN)&&(t|=4),(I&&I.socket.readyState===I.socket.CLOSING||I&&I.socket.readyState===I.socket.CLOSED)&&(e.connecting?t|=4:t|=16),t},ioctl(e,t,I){switch(t){case 21531:var B=0;return e.recv_queue.length&&(B=e.recv_queue[0].data.length),HEAP32[I>>2]=B,0;default:return 28}},close(e){if(e.server){try{e.server.close()}catch{}e.server=null}for(var t=Object.keys(e.peers),I=0;I<t.length;I++){var B=e.peers[t[I]];try{B.socket.close()}catch{}SOCKFS.websocket_sock_ops.removePeer(e,B)}return 0},bind(e,t,I){if(typeof e.saddr<"u"||typeof e.sport<"u")throw new FS.ErrnoError(28);if(e.saddr=t,e.sport=I,e.type===2){e.server&&(e.server.close(),e.server=null);try{e.sock_ops.listen(e,0)}catch(B){if(B.name!=="ErrnoError"||B.errno!==138)throw B}}},connect(e,t,I){if(e.server)throw new FS.ErrnoError(138);if(typeof e.daddr<"u"&&typeof e.dport<"u"){var B=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(B)throw B.socket.readyState===B.socket.CONNECTING?new FS.ErrnoError(7):new FS.ErrnoError(30)}var tr=SOCKFS.websocket_sock_ops.createPeer(e,t,I);e.daddr=tr.addr,e.dport=tr.port,e.connecting=!0},listen(e,t){if(!ENVIRONMENT_IS_NODE)throw new FS.ErrnoError(138);if(e.server)throw new FS.ErrnoError(28);var I=require("ws").Server,B=e.saddr;e.server=new I({host:B,port:e.sport}),SOCKFS.emit("listen",e.stream.fd),e.server.on("connection",function(tr){if(e.type===1){var rr=SOCKFS.createSocket(e.family,e.type,e.protocol),ir=SOCKFS.websocket_sock_ops.createPeer(rr,tr);rr.daddr=ir.addr,rr.dport=ir.port,e.pending.push(rr),SOCKFS.emit("connection",rr.stream.fd)}else SOCKFS.websocket_sock_ops.createPeer(e,tr),SOCKFS.emit("connection",e.stream.fd)}),e.server.on("close",function(){SOCKFS.emit("close",e.stream.fd),e.server=null}),e.server.on("error",function(tr){e.error=23,SOCKFS.emit("error",[e.stream.fd,e.error,"EHOSTUNREACH: Host is unreachable"])})},accept(e){if(!e.server||!e.pending.length)throw new FS.ErrnoError(28);var t=e.pending.shift();return t.stream.flags=e.stream.flags,t},getname(e,t){var I,B;if(t){if(e.daddr===void 0||e.dport===void 0)throw new FS.ErrnoError(53);I=e.daddr,B=e.dport}else I=e.saddr||0,B=e.sport||0;return{addr:I,port:B}},sendmsg(e,t,I,B,tr,rr){if(e.type===2){if((tr===void 0||rr===void 0)&&(tr=e.daddr,rr=e.dport),tr===void 0||rr===void 0)throw new FS.ErrnoError(17)}else tr=e.daddr,rr=e.dport;var ir=SOCKFS.websocket_sock_ops.getPeer(e,tr,rr);if(e.type===1&&(!ir||ir.socket.readyState===ir.socket.CLOSING||ir.socket.readyState===ir.socket.CLOSED))throw new FS.ErrnoError(53);ArrayBuffer.isView(t)&&(I+=t.byteOffset,t=t.buffer);var lr=t.slice(I,I+B);if(!ir||ir.socket.readyState!==ir.socket.OPEN)return e.type===2&&(!ir||ir.socket.readyState===ir.socket.CLOSING||ir.socket.readyState===ir.socket.CLOSED)&&(ir=SOCKFS.websocket_sock_ops.createPeer(e,tr,rr)),ir.msg_send_queue.push(lr),B;try{return ir.socket.send(lr),B}catch{throw new FS.ErrnoError(28)}},recvmsg(e,t){if(e.type===1&&e.server)throw new FS.ErrnoError(53);var I=e.recv_queue.shift();if(!I){if(e.type===1){var B=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(!B)throw new FS.ErrnoError(53);if(B.socket.readyState===B.socket.CLOSING||B.socket.readyState===B.socket.CLOSED)return null;throw new FS.ErrnoError(6)}throw new FS.ErrnoError(6)}var tr=I.data.byteLength||I.data.length,rr=I.data.byteOffset||0,ir=I.data.buffer||I.data,lr=Math.min(t,tr),dr={buffer:new Uint8Array(ir,rr,lr),addr:I.addr,port:I.port};if(e.type===1&&lr<tr){var mr=tr-lr;I.data=new Uint8Array(ir,rr+lr,mr),e.recv_queue.unshift(I)}return dr}}},getSocketFromFD=e=>{var t=SOCKFS.getSocket(e);if(!t)throw new FS.ErrnoError(8);return t},inetNtop4=e=>(e&255)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var t="",I=0,B=0,tr=0,rr=0,ir=0,lr=0,dr=[e[0]&65535,e[0]>>16,e[1]&65535,e[1]>>16,e[2]&65535,e[2]>>16,e[3]&65535,e[3]>>16],mr=!0,fr="";for(lr=0;lr<5;lr++)if(dr[lr]!==0){mr=!1;break}if(mr){if(fr=inetNtop4(dr[6]|dr[7]<<16),dr[5]===-1)return t="::ffff:",t+=fr,t;if(dr[5]===0)return t="::",fr==="0.0.0.0"&&(fr=""),fr==="0.0.0.1"&&(fr="1"),t+=fr,t}for(I=0;I<8;I++)dr[I]===0&&(I-tr>1&&(ir=0),tr=I,ir++),ir>B&&(B=ir,rr=I-B+1);for(I=0;I<8;I++){if(B>1&&dr[I]===0&&I>=rr&&I<rr+B){I===rr&&(t+=":",rr===0&&(t+=":"));continue}t+=Number(_ntohs(dr[I]&65535)).toString(16),t+=I<7?":":""}return t},readSockaddr=(e,t)=>{var I=HEAP16[e>>1],B=_ntohs(HEAPU16[e+2>>1]),tr;switch(I){case 2:if(t!==16)return{errno:28};tr=HEAP32[e+4>>2],tr=inetNtop4(tr);break;case 10:if(t!==28)return{errno:28};tr=[HEAP32[e+8>>2],HEAP32[e+12>>2],HEAP32[e+16>>2],HEAP32[e+20>>2]],tr=inetNtop6(tr);break;default:return{errno:5}}return{family:I,addr:tr,port:B}},inetPton4=e=>{for(var t=e.split("."),I=0;I<4;I++){var B=Number(t[I]);if(isNaN(B))return null;t[I]=B}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var t,I,B,tr,rr=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,ir=[];if(!rr.test(e))return null;if(e==="::")return[0,0,0,0,0,0,0,0];for(e.startsWith("::")?e=e.replace("::","Z:"):e=e.replace("::",":Z:"),e.indexOf(".")>0?(e=e.replace(new RegExp("[.]","g"),":"),t=e.split(":"),t[t.length-4]=jstoi_q(t[t.length-4])+jstoi_q(t[t.length-3])*256,t[t.length-3]=jstoi_q(t[t.length-2])+jstoi_q(t[t.length-1])*256,t=t.slice(0,t.length-2)):t=e.split(":"),B=0,tr=0,I=0;I<t.length;I++)if(typeof t[I]=="string")if(t[I]==="Z"){for(tr=0;tr<8-t.length+1;tr++)ir[I+tr]=0;B=tr-1}else ir[I+B]=_htons(parseInt(t[I],16));else ir[I+B]=t[I];return[ir[1]<<16|ir[0],ir[3]<<16|ir[2],ir[5]<<16|ir[4],ir[7]<<16|ir[6]]},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t=inetPton4(e);if(t!==null||(t=inetPton6(e),t!==null))return e;var I;if(DNS.address_map.addrs[e])I=DNS.address_map.addrs[e];else{var B=DNS.address_map.id++;assert(B<65535,"exceeded max address mappings of 65535"),I="172.29."+(B&255)+"."+(B&65280),DNS.address_map.names[I]=e,DNS.address_map.addrs[e]=I}return I},lookup_addr(e){return DNS.address_map.names[e]?DNS.address_map.names[e]:null}},getSocketAddress=(e,t)=>{var I=readSockaddr(e,t);if(I.errno)throw new FS.ErrnoError(I.errno);return I.addr=DNS.lookup_addr(I.addr)||I.addr,I};function ___syscall_bind(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e),lr=getSocketAddress(t,I);return ir.sock_ops.bind(ir,lr.addr,lr.port),0}catch(dr){if(typeof FS>"u"||dr.name!=="ErrnoError")throw dr;return-dr.errno}}___syscall_bind.sig="iippiii";function ___syscall_chdir(e){try{return e=SYSCALLS.getStr(e),FS.chdir(e),0}catch(t){if(typeof FS>"u"||t.name!=="ErrnoError")throw t;return-t.errno}}___syscall_chdir.sig="ip";function ___syscall_chmod(e,t){try{return e=SYSCALLS.getStr(e),FS.chmod(e,t),0}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_chmod.sig="ipi";function ___syscall_connect(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e),lr=getSocketAddress(t,I);return ir.sock_ops.connect(ir,lr.addr,lr.port),0}catch(dr){if(typeof FS>"u"||dr.name!=="ErrnoError")throw dr;return-dr.errno}}___syscall_connect.sig="iippiii";function ___syscall_dup(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.dupStream(t).fd}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_dup.sig="ii";function ___syscall_dup3(e,t,I){try{var B=SYSCALLS.getStreamFromFD(e);if(B.fd===t)return-28;if(t<0||t>=FS.MAX_OPEN_FDS)return-8;var tr=FS.getStream(t);return tr&&FS.close(tr),FS.dupStream(B,t).fd}catch(rr){if(typeof FS>"u"||rr.name!=="ErrnoError")throw rr;return-rr.errno}}___syscall_dup3.sig="iiii";function ___syscall_faccessat(e,t,I,B){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),I&-8)return-28;var tr=FS.lookupPath(t,{follow:!0}),rr=tr.node;if(!rr)return-44;var ir="";return I&4&&(ir+="r"),I&2&&(ir+="w"),I&1&&(ir+="x"),ir&&FS.nodePermissions(rr,ir)?-2:0}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}___syscall_faccessat.sig="iipii";var ___syscall_fadvise64=(e,t,I,B)=>0;___syscall_fadvise64.sig="iijji";var INT53_MAX=9007199254740992,INT53_MIN=-9007199254740992,bigintToI53Checked=e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e);function ___syscall_fallocate(e,t,I,B){I=bigintToI53Checked(I),B=bigintToI53Checked(B);try{if(isNaN(I))return 61;var tr=SYSCALLS.getStreamFromFD(e);return FS.allocate(tr,I,B),0}catch(rr){if(typeof FS>"u"||rr.name!=="ErrnoError")throw rr;return-rr.errno}}___syscall_fallocate.sig="iiijj";var syscallGetVarargI=()=>{var e=HEAP32[+SYSCALLS.varargs>>2];return SYSCALLS.varargs+=4,e},syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(e,t,I){SYSCALLS.varargs=I;try{var B=SYSCALLS.getStreamFromFD(e);switch(t){case 0:{var tr=syscallGetVarargI();if(tr<0)return-28;for(;FS.streams[tr];)tr++;var rr;return rr=FS.dupStream(B,tr),rr.fd}case 1:case 2:return 0;case 3:return B.flags;case 4:{var tr=syscallGetVarargI();return B.flags|=tr,0}case 12:{var tr=syscallGetVarargP(),ir=0;return HEAP16[tr+ir>>1]=2,0}case 13:case 14:return 0}return-28}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}___syscall_fcntl64.sig="iiip";function ___syscall_fdatasync(e){try{return SYSCALLS.getStreamFromFD(e),0}catch(t){if(typeof FS>"u"||t.name!=="ErrnoError")throw t;return-t.errno}}___syscall_fdatasync.sig="ii";function ___syscall_fstat64(e,t){try{var I=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,I.path,t)}catch(B){if(typeof FS>"u"||B.name!=="ErrnoError")throw B;return-B.errno}}___syscall_fstat64.sig="iip";function ___syscall_ftruncate64(e,t){t=bigintToI53Checked(t);try{return isNaN(t)?61:(FS.ftruncate(e,t),0)}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_ftruncate64.sig="iij";var stringToUTF8=(e,t,I)=>stringToUTF8Array(e,HEAPU8,t,I);function ___syscall_getcwd(e,t){try{if(t===0)return-28;var I=FS.cwd(),B=lengthBytesUTF8(I)+1;return t<B?-68:(stringToUTF8(I,e,t),B)}catch(tr){if(typeof FS>"u"||tr.name!=="ErrnoError")throw tr;return-tr.errno}}___syscall_getcwd.sig="ipp";function ___syscall_getdents64(e,t,I){try{var B=SYSCALLS.getStreamFromFD(e);B.getdents||(B.getdents=FS.readdir(B.path));for(var tr=280,rr=0,ir=FS.llseek(B,0,1),lr=Math.floor(ir/tr),dr=Math.min(B.getdents.length,lr+Math.floor(I/tr)),mr=lr;mr<dr;mr++){var fr,hr,_r=B.getdents[mr];if(_r===".")fr=B.node.id,hr=4;else if(_r===".."){var yr=FS.lookupPath(B.path,{parent:!0});fr=yr.node.id,hr=4}else{var Mr;try{Mr=FS.lookupNode(B.node,_r)}catch(vr){if((vr==null?void 0:vr.errno)===28)continue;throw vr}fr=Mr.id,hr=FS.isChrdev(Mr.mode)?2:FS.isDir(Mr.mode)?4:FS.isLink(Mr.mode)?10:8}HEAP64[t+rr>>3]=BigInt(fr),HEAP64[t+rr+8>>3]=BigInt((mr+1)*tr),HEAP16[t+rr+16>>1]=280,HEAP8[t+rr+18]=hr,stringToUTF8(_r,t+rr+19,256),rr+=tr}return FS.llseek(B,mr*tr,0),rr}catch(vr){if(typeof FS>"u"||vr.name!=="ErrnoError")throw vr;return-vr.errno}}___syscall_getdents64.sig="iipp";var writeSockaddr=(e,t,I,B,tr)=>{switch(t){case 2:I=inetPton4(I),zeroMemory(e,16),tr&&(HEAP32[tr>>2]=16),HEAP16[e>>1]=t,HEAP32[e+4>>2]=I,HEAP16[e+2>>1]=_htons(B);break;case 10:I=inetPton6(I),zeroMemory(e,28),tr&&(HEAP32[tr>>2]=28),HEAP32[e>>2]=t,HEAP32[e+8>>2]=I[0],HEAP32[e+12>>2]=I[1],HEAP32[e+16>>2]=I[2],HEAP32[e+20>>2]=I[3],HEAP16[e+2>>1]=_htons(B);break;default:return 5}return 0};function ___syscall_getsockname(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e);return writeSockaddr(t,ir.family,DNS.lookup_name(ir.saddr||"0.0.0.0"),ir.sport,I),0}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}___syscall_getsockname.sig="iippiii";function ___syscall_getsockopt(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e);return t===1&&I===4?(HEAP32[B>>2]=ir.error,HEAP32[tr>>2]=4,ir.error=null,0):-50}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}___syscall_getsockopt.sig="iiiippi";function ___syscall_ioctl(e,t,I){SYSCALLS.varargs=I;try{var B=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:return B.tty?0:-59;case 21505:{if(!B.tty)return-59;if(B.tty.ops.ioctl_tcgets){var tr=B.tty.ops.ioctl_tcgets(B),rr=syscallGetVarargP();HEAP32[rr>>2]=tr.c_iflag||0,HEAP32[rr+4>>2]=tr.c_oflag||0,HEAP32[rr+8>>2]=tr.c_cflag||0,HEAP32[rr+12>>2]=tr.c_lflag||0;for(var ir=0;ir<32;ir++)HEAP8[rr+ir+17]=tr.c_cc[ir]||0;return 0}return 0}case 21510:case 21511:case 21512:return B.tty?0:-59;case 21506:case 21507:case 21508:{if(!B.tty)return-59;if(B.tty.ops.ioctl_tcsets){for(var rr=syscallGetVarargP(),lr=HEAP32[rr>>2],dr=HEAP32[rr+4>>2],mr=HEAP32[rr+8>>2],fr=HEAP32[rr+12>>2],hr=[],ir=0;ir<32;ir++)hr.push(HEAP8[rr+ir+17]);return B.tty.ops.ioctl_tcsets(B.tty,t,{c_iflag:lr,c_oflag:dr,c_cflag:mr,c_lflag:fr,c_cc:hr})}return 0}case 21519:{if(!B.tty)return-59;var rr=syscallGetVarargP();return HEAP32[rr>>2]=0,0}case 21520:return B.tty?-28:-59;case 21531:{var rr=syscallGetVarargP();return FS.ioctl(B,t,rr)}case 21523:{if(!B.tty)return-59;if(B.tty.ops.ioctl_tiocgwinsz){var _r=B.tty.ops.ioctl_tiocgwinsz(B.tty),rr=syscallGetVarargP();HEAP16[rr>>1]=_r[0],HEAP16[rr+2>>1]=_r[1]}return 0}case 21524:return B.tty?0:-59;case 21515:return B.tty?0:-59;default:return-28}}catch(yr){if(typeof FS>"u"||yr.name!=="ErrnoError")throw yr;return-yr.errno}}___syscall_ioctl.sig="iiip";function ___syscall_lstat64(e,t){try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_lstat64.sig="ipp";function ___syscall_mkdirat(e,t,I){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),FS.mkdir(t,I,0),0}catch(B){if(typeof FS>"u"||B.name!=="ErrnoError")throw B;return-B.errno}}___syscall_mkdirat.sig="iipi";function ___syscall_newfstatat(e,t,I,B){try{t=SYSCALLS.getStr(t);var tr=B&256,rr=B&4096;return B=B&-6401,t=SYSCALLS.calculateAt(e,t,rr),SYSCALLS.doStat(tr?FS.lstat:FS.stat,t,I)}catch(ir){if(typeof FS>"u"||ir.name!=="ErrnoError")throw ir;return-ir.errno}}___syscall_newfstatat.sig="iippi";function ___syscall_openat(e,t,I,B){SYSCALLS.varargs=B;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var tr=B?syscallGetVarargI():0;return FS.open(t,I,tr).fd}catch(rr){if(typeof FS>"u"||rr.name!=="ErrnoError")throw rr;return-rr.errno}}___syscall_openat.sig="iipip";var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount(e){return FS.createNode(null,"/",16895,0)},createPipe(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var t=PIPEFS.nextname(),I=PIPEFS.nextname(),B=FS.createNode(PIPEFS.root,t,4096,0),tr=FS.createNode(PIPEFS.root,I,4096,0);B.pipe=e,tr.pipe=e;var rr=FS.createStream({path:t,node:B,flags:0,seekable:!1,stream_ops:PIPEFS.stream_ops});B.stream=rr;var ir=FS.createStream({path:I,node:tr,flags:1,seekable:!1,stream_ops:PIPEFS.stream_ops});return tr.stream=ir,{readable_fd:rr.fd,writable_fd:ir.fd}},stream_ops:{poll(e){var t=e.node.pipe;if((e.flags&2097155)===1)return 260;if(t.buckets.length>0)for(var I=0;I<t.buckets.length;I++){var B=t.buckets[I];if(B.offset-B.roffset>0)return 65}return 0},ioctl(e,t,I){return 28},fsync(e){return 28},read(e,t,I,B,tr){for(var rr=e.node.pipe,ir=0,lr=0;lr<rr.buckets.length;lr++){var dr=rr.buckets[lr];ir+=dr.offset-dr.roffset}var mr=t.subarray(I,I+B);if(B<=0)return 0;if(ir==0)throw new FS.ErrnoError(6);for(var fr=Math.min(ir,B),hr=fr,_r=0,lr=0;lr<rr.buckets.length;lr++){var yr=rr.buckets[lr],Mr=yr.offset-yr.roffset;if(fr<=Mr){var vr=yr.buffer.subarray(yr.roffset,yr.offset);fr<Mr?(vr=vr.subarray(0,fr),yr.roffset+=fr):_r++,mr.set(vr);break}else{var vr=yr.buffer.subarray(yr.roffset,yr.offset);mr.set(vr),mr=mr.subarray(vr.byteLength),fr-=vr.byteLength,_r++}}return _r&&_r==rr.buckets.length&&(_r--,rr.buckets[_r].offset=0,rr.buckets[_r].roffset=0),rr.buckets.splice(0,_r),hr},write(e,t,I,B,tr){var rr=e.node.pipe,ir=t.subarray(I,I+B),lr=ir.byteLength;if(lr<=0)return 0;var dr=null;rr.buckets.length==0?(dr={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0},rr.buckets.push(dr)):dr=rr.buckets[rr.buckets.length-1],assert(dr.offset<=PIPEFS.BUCKET_BUFFER_SIZE);var mr=PIPEFS.BUCKET_BUFFER_SIZE-dr.offset;if(mr>=lr)return dr.buffer.set(ir,dr.offset),dr.offset+=lr,lr;mr>0&&(dr.buffer.set(ir.subarray(0,mr),dr.offset),dr.offset+=mr,ir=ir.subarray(mr,ir.byteLength));for(var fr=ir.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0,hr=ir.byteLength%PIPEFS.BUCKET_BUFFER_SIZE,_r=0;_r<fr;_r++){var yr={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:PIPEFS.BUCKET_BUFFER_SIZE,roffset:0};rr.buckets.push(yr),yr.buffer.set(ir.subarray(0,PIPEFS.BUCKET_BUFFER_SIZE)),ir=ir.subarray(PIPEFS.BUCKET_BUFFER_SIZE,ir.byteLength)}if(hr>0){var yr={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:ir.byteLength,roffset:0};rr.buckets.push(yr),yr.buffer.set(ir)}return lr},close(e){var t=e.node.pipe;t.refcnt--,t.refcnt===0&&(t.buckets=null)}},nextname(){return PIPEFS.nextname.current||(PIPEFS.nextname.current=0),"pipe["+PIPEFS.nextname.current+++"]"}};function ___syscall_pipe(e){try{if(e==0)throw new FS.ErrnoError(21);var t=PIPEFS.createPipe();return HEAP32[e>>2]=t.readable_fd,HEAP32[e+4>>2]=t.writable_fd,0}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_pipe.sig="ip";function ___syscall_poll(e,t,I){try{for(var B=0,tr=0;tr<t;tr++){var rr=e+8*tr,ir=HEAP32[rr>>2],lr=HEAP16[rr+4>>1],dr=32,mr=FS.getStream(ir);mr&&(dr=SYSCALLS.DEFAULT_POLLMASK,mr.stream_ops.poll&&(dr=mr.stream_ops.poll(mr,-1))),dr&=lr|8|16,dr&&B++,HEAP16[rr+6>>1]=dr}return B}catch(fr){if(typeof FS>"u"||fr.name!=="ErrnoError")throw fr;return-fr.errno}}___syscall_poll.sig="ipii";function ___syscall_readlinkat(e,t,I,B){try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),B<=0)return-28;var tr=FS.readlink(t),rr=Math.min(B,lengthBytesUTF8(tr)),ir=HEAP8[I+rr];return stringToUTF8(tr,I,B+1),HEAP8[I+rr]=ir,rr}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}___syscall_readlinkat.sig="iippp";function ___syscall_recvfrom(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e),lr=ir.sock_ops.recvmsg(ir,I);if(!lr)return 0;if(tr)var dr=writeSockaddr(tr,ir.family,DNS.lookup_name(lr.addr),lr.port,rr);return HEAPU8.set(lr.buffer,t),lr.buffer.byteLength}catch(mr){if(typeof FS>"u"||mr.name!=="ErrnoError")throw mr;return-mr.errno}}___syscall_recvfrom.sig="iippipp";function ___syscall_renameat(e,t,I,B){try{return t=SYSCALLS.getStr(t),B=SYSCALLS.getStr(B),t=SYSCALLS.calculateAt(e,t),B=SYSCALLS.calculateAt(I,B),FS.rename(t,B),0}catch(tr){if(typeof FS>"u"||tr.name!=="ErrnoError")throw tr;return-tr.errno}}___syscall_renameat.sig="iipip";function ___syscall_rmdir(e){try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(t){if(typeof FS>"u"||t.name!=="ErrnoError")throw t;return-t.errno}}___syscall_rmdir.sig="ip";function ___syscall_sendto(e,t,I,B,tr,rr){try{var ir=getSocketFromFD(e);if(!tr)return FS.write(ir.stream,HEAP8,t,I);var lr=getSocketAddress(tr,rr);return ir.sock_ops.sendmsg(ir,HEAP8,t,I,lr.addr,lr.port)}catch(dr){if(typeof FS>"u"||dr.name!=="ErrnoError")throw dr;return-dr.errno}}___syscall_sendto.sig="iippipp";function ___syscall_socket(e,t,I){try{var B=SOCKFS.createSocket(e,t,I);return B.stream.fd}catch(tr){if(typeof FS>"u"||tr.name!=="ErrnoError")throw tr;return-tr.errno}}___syscall_socket.sig="iiiiiii";function ___syscall_stat64(e,t){try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_stat64.sig="ipp";function ___syscall_symlinkat(e,t,I){try{return e=SYSCALLS.getStr(e),I=SYSCALLS.getStr(I),I=SYSCALLS.calculateAt(t,I),FS.symlink(e,I),0}catch(B){if(typeof FS>"u"||B.name!=="ErrnoError")throw B;return-B.errno}}___syscall_symlinkat.sig="ipip";function ___syscall_truncate64(e,t){t=bigintToI53Checked(t);try{return isNaN(t)?61:(e=SYSCALLS.getStr(e),FS.truncate(e,t),0)}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return-I.errno}}___syscall_truncate64.sig="ipj";function ___syscall_unlinkat(e,t,I){try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),I===0?FS.unlink(t):I===512?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(B){if(typeof FS>"u"||B.name!=="ErrnoError")throw B;return-B.errno}}___syscall_unlinkat.sig="iipi";var ___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>abort("");__abort_js.sig="v";var ENV={},stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,I=stackAlloc(t);return stringToUTF8(e,I,t),I},dlSetError=e=>{var t=stackSave(),I=stringToUTF8OnStack(e);___dl_seterr(I,0),stackRestore(t)},dlopenInternal=(e,t)=>{var I=UTF8ToString(e+36),B=HEAP32[e+4>>2];I=PATH.normalize(I);var tr=!!(B&256),rr=tr?null:{},ir={global:tr,nodelete:!!(B&4096),loadAsync:t.loadAsync};try{return loadDynamicLibrary(I,ir,rr,e)}catch(lr){return dlSetError(`Could not load dynamic lib: ${I}
138
138
  ${lr}`),0}},__dlopen_js=e=>dlopenInternal(e,{loadAsync:!1});__dlopen_js.sig="pp";var __dlsym_js=(e,t,I)=>{t=UTF8ToString(t);var B,tr,rr=LDSO.loadedLibsByHandle[e];if(!rr.exports.hasOwnProperty(t)||rr.exports[t].stub)return dlSetError(`Tried to lookup unknown symbol "${t}" in dynamic lib: ${rr.name}`),0;if(tr=Object.keys(rr.exports).indexOf(t),B=rr.exports[t],typeof B=="function"){var ir=getFunctionAddress(B);ir?B=ir:(B=addFunction(B,B.sig),HEAPU32[I>>2]=tr)}return B};__dlsym_js.sig="pppp";var __emscripten_memcpy_js=(e,t,I)=>HEAPU8.copyWithin(e,t,t+I);__emscripten_memcpy_js.sig="vppp";var runtimeKeepaliveCounter=0,__emscripten_runtime_keepalive_clear=()=>{noExitRuntime=!1,runtimeKeepaliveCounter=0};__emscripten_runtime_keepalive_clear.sig="v";var __emscripten_system=e=>{if(ENVIRONMENT_IS_NODE){if(!e)return 1;var t=UTF8ToString(e);if(!t.length)return 0;var I=require("child_process"),B=I.spawnSync(t,[],{shell:!0,stdio:"inherit"}),tr=(ir,lr)=>ir<<8|lr;if(B.status===null){var rr=ir=>{switch(ir){case"SIGHUP":return 1;case"SIGQUIT":return 3;case"SIGFPE":return 8;case"SIGKILL":return 9;case"SIGALRM":return 14;case"SIGTERM":return 15;default:return 2}};return tr(0,rr(B.signal))}return tr(B.status,0)}return e?-52:0};__emscripten_system.sig="ip";var __emscripten_throw_longjmp=()=>{throw 1/0};__emscripten_throw_longjmp.sig="v";function __gmtime_js(e,t){e=bigintToI53Checked(e);var I=new Date(e*1e3);HEAP32[t>>2]=I.getUTCSeconds(),HEAP32[t+4>>2]=I.getUTCMinutes(),HEAP32[t+8>>2]=I.getUTCHours(),HEAP32[t+12>>2]=I.getUTCDate(),HEAP32[t+16>>2]=I.getUTCMonth(),HEAP32[t+20>>2]=I.getUTCFullYear()-1900,HEAP32[t+24>>2]=I.getUTCDay();var B=Date.UTC(I.getUTCFullYear(),0,1,0,0,0,0),tr=(I.getTime()-B)/(1e3*60*60*24)|0;HEAP32[t+28>>2]=tr}__gmtime_js.sig="vjp";var isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>{var t=isLeapYear(e.getFullYear()),I=t?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE,B=I[e.getMonth()]+e.getDate()-1;return B};function __localtime_js(e,t){e=bigintToI53Checked(e);var I=new Date(e*1e3);HEAP32[t>>2]=I.getSeconds(),HEAP32[t+4>>2]=I.getMinutes(),HEAP32[t+8>>2]=I.getHours(),HEAP32[t+12>>2]=I.getDate(),HEAP32[t+16>>2]=I.getMonth(),HEAP32[t+20>>2]=I.getFullYear()-1900,HEAP32[t+24>>2]=I.getDay();var B=ydayFromDate(I)|0;HEAP32[t+28>>2]=B,HEAP32[t+36>>2]=-(I.getTimezoneOffset()*60);var tr=new Date(I.getFullYear(),0,1),rr=new Date(I.getFullYear(),6,1).getTimezoneOffset(),ir=tr.getTimezoneOffset(),lr=(rr!=ir&&I.getTimezoneOffset()==Math.min(ir,rr))|0;HEAP32[t+32>>2]=lr}__localtime_js.sig="vjp";function __mmap_js(e,t,I,B,tr,rr,ir){tr=bigintToI53Checked(tr);try{if(isNaN(tr))return 61;var lr=SYSCALLS.getStreamFromFD(B),dr=FS.mmap(lr,e,tr,t,I),mr=dr.ptr;return HEAP32[rr>>2]=dr.allocated,HEAPU32[ir>>2]=mr,0}catch(fr){if(typeof FS>"u"||fr.name!=="ErrnoError")throw fr;return-fr.errno}}__mmap_js.sig="ipiiijpp";function __munmap_js(e,t,I,B,tr,rr){rr=bigintToI53Checked(rr);try{var ir=SYSCALLS.getStreamFromFD(tr);I&2&&SYSCALLS.doMsync(e,ir,t,B,rr)}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return-lr.errno}}__munmap_js.sig="ippiiij";var timers={},handleException=e=>{if(e instanceof ExitStatus||e=="unwind")return EXITSTATUS;quit_(1,e)},keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{var t;EXITSTATUS=e,keepRuntimeAlive()||((t=Module.onExit)==null||t.call(Module,e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},_exit=exitJS;_exit.sig="vi";var maybeExit=()=>{if(!keepRuntimeAlive())try{_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(t){handleException(t)}},_emscripten_get_now=()=>performance.now();_emscripten_get_now.sig="d";var __setitimer_js=(e,t)=>{if(timers[e]&&(clearTimeout(timers[e].id),delete timers[e]),!t)return 0;var I=setTimeout(()=>{delete timers[e],callUserCallback(()=>__emscripten_timeout(e,_emscripten_get_now()))},t);return timers[e]={id:I,timeout_ms:t},0};__setitimer_js.sig="iid";var __tzset_js=(e,t,I,B)=>{var tr=new Date().getFullYear(),rr=new Date(tr,0,1),ir=new Date(tr,6,1),lr=rr.getTimezoneOffset(),dr=ir.getTimezoneOffset(),mr=Math.max(lr,dr);HEAPU32[e>>2]=mr*60,HEAP32[t>>2]=+(lr!=dr);var fr=yr=>{var Mr=yr>=0?"-":"+",vr=Math.abs(yr),Sr=String(Math.floor(vr/60)).padStart(2,"0"),br=String(vr%60).padStart(2,"0");return`UTC${Mr}${Sr}${br}`},hr=fr(lr),_r=fr(dr);dr<lr?(stringToUTF8(hr,I,17),stringToUTF8(_r,B,17)):(stringToUTF8(hr,B,17),stringToUTF8(_r,I,17))};__tzset_js.sig="vpppp";var _emscripten_date_now=()=>Date.now();_emscripten_date_now.sig="d";var checkWasiClock=e=>e>=0&&e<=3;function _clock_time_get(e,t,I){if(!checkWasiClock(e))return 28;var B;e===0?B=_emscripten_date_now():B=_emscripten_get_now();var tr=Math.round(B*1e3*1e3);return HEAP64[I>>3]=BigInt(tr),0}_clock_time_get.sig="iijp";var readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{readEmAsmArgsArray.length=0;for(var I;I=HEAPU8[e++];){var B=I!=105;B&=I!=112,t+=B&&t%8?4:0,readEmAsmArgsArray.push(I==112?HEAPU32[t>>2]:I==106?HEAP64[t>>3]:I==105?HEAP32[t>>2]:HEAPF64[t>>3]),t+=B?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,I)=>{var B=readEmAsmArgs(t,I);return ASM_CONSTS[e](...B)},_emscripten_asm_const_int=(e,t,I)=>runEmAsmFunction(e,t,I);_emscripten_asm_const_int.sig="ippp";var _emscripten_force_exit=e=>{__emscripten_runtime_keepalive_clear(),_exit(e)};_emscripten_force_exit.sig="vi";var getHeapMax=()=>2147483648,growMemory=e=>{var t=wasmMemory.buffer,I=(e-t.byteLength+65535)/65536|0;try{return wasmMemory.grow(I),updateMemoryViews(),1}catch{}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var I=getHeapMax();if(e>I)return!1;for(var B=1;B<=4;B*=2){var tr=t*(1+.2/B);tr=Math.min(tr,e+100663296);var rr=Math.min(I,alignMemory(Math.max(e,tr),65536)),ir=growMemory(rr);if(ir)return!0}return!1};_emscripten_resize_heap.sig="ip";var _emscripten_set_main_loop_timing=(e,t)=>{if(MainLoop.timingMode=e,MainLoop.timingValue=t,!MainLoop.func)return 1;if(MainLoop.running||(MainLoop.running=!0),e==0)MainLoop.scheduler=function(){var rr=Math.max(0,MainLoop.tickStartTime+t-_emscripten_get_now())|0;setTimeout(MainLoop.runner,rr)},MainLoop.method="timeout";else if(e==1)MainLoop.scheduler=function(){MainLoop.requestAnimationFrame(MainLoop.runner)},MainLoop.method="rAF";else if(e==2){if(typeof MainLoop.setImmediate>"u")if(typeof setImmediate>"u"){var I=[],B="setimmediate",tr=rr=>{(rr.data===B||rr.data.target===B)&&(rr.stopPropagation(),I.shift()())};addEventListener("message",tr,!0),MainLoop.setImmediate=rr=>{I.push(rr),ENVIRONMENT_IS_WORKER?(Module.setImmediates??(Module.setImmediates=[]),Module.setImmediates.push(rr),postMessage({target:B})):postMessage(B,"*")}}else MainLoop.setImmediate=setImmediate;MainLoop.scheduler=function(){MainLoop.setImmediate(MainLoop.runner)},MainLoop.method="immediate"}return 0};_emscripten_set_main_loop_timing.sig="iii";var MainLoop={running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],preMainLoop:[],postMainLoop:[],pause(){MainLoop.scheduler=null,MainLoop.currentlyRunningMainloop++},resume(){MainLoop.currentlyRunningMainloop++;var e=MainLoop.timingMode,t=MainLoop.timingValue,I=MainLoop.func;MainLoop.func=null,setMainLoop(I,0,!1,MainLoop.arg,!0),_emscripten_set_main_loop_timing(e,t),MainLoop.scheduler()},updateStatus(){if(Module.setStatus){var e=Module.statusMessage||"Please wait...",t=MainLoop.remainingBlockers??0,I=MainLoop.expectedBlockers??0;t?t<I?Module.setStatus("{message} ({expected - remaining}/{expected})"):Module.setStatus(e):Module.setStatus("")}},init(){Module.preMainLoop&&MainLoop.preMainLoop.push(Module.preMainLoop),Module.postMainLoop&&MainLoop.postMainLoop.push(Module.postMainLoop)},runIter(e){if(!ABORT){for(var t of MainLoop.preMainLoop)if(t()===!1)return;callUserCallback(e);for(var I of MainLoop.postMainLoop)I()}},nextRAF:0,fakeRequestAnimationFrame(e){var t=Date.now();if(MainLoop.nextRAF===0)MainLoop.nextRAF=t+1e3/60;else for(;t+2>=MainLoop.nextRAF;)MainLoop.nextRAF+=1e3/60;var I=Math.max(MainLoop.nextRAF-t,0);setTimeout(e,I)},requestAnimationFrame(e){if(typeof requestAnimationFrame=="function"){requestAnimationFrame(e);return}var t=MainLoop.fakeRequestAnimationFrame;t(e)}},setMainLoop=(e,t,I,B,tr)=>{MainLoop.func=e,MainLoop.arg=B;var rr=MainLoop.currentlyRunningMainloop;function ir(){return rr<MainLoop.currentlyRunningMainloop?(maybeExit(),!1):!0}if(MainLoop.running=!1,MainLoop.runner=function(){if(!ABORT){if(MainLoop.queue.length>0){var lr=MainLoop.queue.shift();if(lr.func(lr.arg),MainLoop.remainingBlockers){var dr=MainLoop.remainingBlockers,mr=dr%1==0?dr-1:Math.floor(dr);lr.counted?MainLoop.remainingBlockers=mr:(mr=mr+.5,MainLoop.remainingBlockers=(8*dr+mr)/9)}if(MainLoop.updateStatus(),!ir())return;setTimeout(MainLoop.runner,0);return}if(ir()){if(MainLoop.currentFrameNumber=MainLoop.currentFrameNumber+1|0,MainLoop.timingMode==1&&MainLoop.timingValue>1&&MainLoop.currentFrameNumber%MainLoop.timingValue!=0){MainLoop.scheduler();return}else MainLoop.timingMode==0&&(MainLoop.tickStartTime=_emscripten_get_now());MainLoop.runIter(e),ir()&&MainLoop.scheduler()}}},tr||(t&&t>0?_emscripten_set_main_loop_timing(0,1e3/t):_emscripten_set_main_loop_timing(1,1),MainLoop.scheduler()),I)throw"unwind"},_emscripten_set_main_loop=(e,t,I)=>{var B=getWasmTableEntry(e);setMainLoop(B,t,I)};_emscripten_set_main_loop.sig="vpii";var getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:getExecutableName()};for(var I in ENV)ENV[I]===void 0?delete t[I]:t[I]=ENV[I];var B=[];for(var I in t)B.push(`${I}=${t[I]}`);getEnvStrings.strings=B}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var I=0;I<e.length;++I)HEAP8[t++]=e.charCodeAt(I);HEAP8[t]=0},_environ_get=(e,t)=>{var I=0;return getEnvStrings().forEach((B,tr)=>{var rr=t+I;HEAPU32[e+tr*4>>2]=rr,stringToAscii(B,rr),I+=B.length+1}),0};_environ_get.sig="ipp";var _environ_sizes_get=(e,t)=>{var I=getEnvStrings();HEAPU32[e>>2]=I.length;var B=0;return I.forEach(tr=>B+=tr.length+1),HEAPU32[t>>2]=B,0};_environ_sizes_get.sig="ipp";function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(I){if(typeof FS>"u"||I.name!=="ErrnoError")throw I;return I.errno}}_fd_close.sig="ii";function _fd_fdstat_get(e,t){try{var I=0,B=0,tr=0,rr=SYSCALLS.getStreamFromFD(e),ir=rr.tty?2:FS.isDir(rr.mode)?3:FS.isLink(rr.mode)?7:4;return HEAP8[t]=ir,HEAP16[t+2>>1]=tr,HEAP64[t+8>>3]=BigInt(I),HEAP64[t+16>>3]=BigInt(B),0}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return lr.errno}}_fd_fdstat_get.sig="iip";var doReadv=(e,t,I,B)=>{for(var tr=0,rr=0;rr<I;rr++){var ir=HEAPU32[t>>2],lr=HEAPU32[t+4>>2];t+=8;var dr=FS.read(e,HEAP8,ir,lr,B);if(dr<0)return-1;if(tr+=dr,dr<lr)break;typeof B<"u"&&(B+=dr)}return tr};function _fd_pread(e,t,I,B,tr){B=bigintToI53Checked(B);try{if(isNaN(B))return 61;var rr=SYSCALLS.getStreamFromFD(e),ir=doReadv(rr,t,I,B);return HEAPU32[tr>>2]=ir,0}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return lr.errno}}_fd_pread.sig="iippjp";var doWritev=(e,t,I,B)=>{for(var tr=0,rr=0;rr<I;rr++){var ir=HEAPU32[t>>2],lr=HEAPU32[t+4>>2];t+=8;var dr=FS.write(e,HEAP8,ir,lr,B);if(dr<0)return-1;if(tr+=dr,dr<lr)break;typeof B<"u"&&(B+=dr)}return tr};function _fd_pwrite(e,t,I,B,tr){B=bigintToI53Checked(B);try{if(isNaN(B))return 61;var rr=SYSCALLS.getStreamFromFD(e),ir=doWritev(rr,t,I,B);return HEAPU32[tr>>2]=ir,0}catch(lr){if(typeof FS>"u"||lr.name!=="ErrnoError")throw lr;return lr.errno}}_fd_pwrite.sig="iippjp";function _fd_read(e,t,I,B){try{var tr=SYSCALLS.getStreamFromFD(e),rr=doReadv(tr,t,I);return HEAPU32[B>>2]=rr,0}catch(ir){if(typeof FS>"u"||ir.name!=="ErrnoError")throw ir;return ir.errno}}_fd_read.sig="iippp";function _fd_seek(e,t,I,B){t=bigintToI53Checked(t);try{if(isNaN(t))return 61;var tr=SYSCALLS.getStreamFromFD(e);return FS.llseek(tr,t,I),HEAP64[B>>3]=BigInt(tr.position),tr.getdents&&t===0&&I===0&&(tr.getdents=null),0}catch(rr){if(typeof FS>"u"||rr.name!=="ErrnoError")throw rr;return rr.errno}}_fd_seek.sig="iijip";function _fd_sync(e){var I;try{var t=SYSCALLS.getStreamFromFD(e);return(I=t.stream_ops)!=null&&I.fsync?t.stream_ops.fsync(t):0}catch(B){if(typeof FS>"u"||B.name!=="ErrnoError")throw B;return B.errno}}_fd_sync.sig="ii";function _fd_write(e,t,I,B){try{var tr=SYSCALLS.getStreamFromFD(e),rr=doWritev(tr,t,I);return HEAPU32[B>>2]=rr,0}catch(ir){if(typeof FS>"u"||ir.name!=="ErrnoError")throw ir;return ir.errno}}_fd_write.sig="iippp";var _getaddrinfo=(e,t,I,B)=>{var tr=0,rr=0,ir=0,lr=0,dr=0,mr=0,fr;function hr(_r,yr,Mr,vr,Sr,br){var gr,wr,xr,Ir;return wr=_r===10?28:16,Sr=_r===10?inetNtop6(Sr):inetNtop4(Sr),gr=_malloc(wr),Ir=writeSockaddr(gr,_r,Sr,br),assert(!Ir),xr=_malloc(32),HEAP32[xr+4>>2]=_r,HEAP32[xr+8>>2]=yr,HEAP32[xr+12>>2]=Mr,HEAPU32[xr+24>>2]=vr,HEAPU32[xr+20>>2]=gr,_r===10?HEAP32[xr+16>>2]=28:HEAP32[xr+16>>2]=16,HEAP32[xr+28>>2]=0,xr}if(I&&(ir=HEAP32[I>>2],lr=HEAP32[I+4>>2],dr=HEAP32[I+8>>2],mr=HEAP32[I+12>>2]),dr&&!mr&&(mr=dr===2?17:6),!dr&&mr&&(dr=mr===17?2:1),mr===0&&(mr=6),dr===0&&(dr=1),!e&&!t)return-2;if(ir&-1088||I!==0&&HEAP32[I>>2]&2&&!e)return-1;if(ir&32)return-2;if(dr!==0&&dr!==1&&dr!==2)return-7;if(lr!==0&&lr!==2&&lr!==10)return-6;if(t&&(t=UTF8ToString(t),rr=parseInt(t,10),isNaN(rr)))return ir&1024?-2:-8;if(!e)return lr===0&&(lr=2),ir&1||(lr===2?tr=_htonl(2130706433):tr=[0,0,0,_htonl(1)]),fr=hr(lr,dr,mr,null,tr,rr),HEAPU32[B>>2]=fr,0;if(e=UTF8ToString(e),tr=inetPton4(e),tr!==null)if(lr===0||lr===2)lr=2;else if(lr===10&&ir&8)tr=[0,0,_htonl(65535),tr],lr=10;else return-2;else if(tr=inetPton6(e),tr!==null)if(lr===0||lr===10)lr=10;else return-2;return tr!=null?(fr=hr(lr,dr,mr,e,tr,rr),HEAPU32[B>>2]=fr,0):ir&4?-2:(e=DNS.lookup_name(e),tr=inetPton4(e),lr===0?lr=2:lr===10&&(tr=[0,0,_htonl(65535),tr]),fr=hr(lr,dr,mr,null,tr,rr),HEAPU32[B>>2]=fr,0)};_getaddrinfo.sig="ipppp";var _getnameinfo=(e,t,I,B,tr,rr,ir)=>{var lr=readSockaddr(e,t);if(lr.errno)return-6;var dr=lr.port,mr=lr.addr,fr=!1;if(I&&B){var hr;if(ir&1||!(hr=DNS.lookup_addr(mr))){if(ir&8)return-2}else mr=hr;var _r=stringToUTF8(mr,I,B);_r+1>=B&&(fr=!0)}if(tr&&rr){dr=""+dr;var _r=stringToUTF8(dr,tr,rr);_r+1>=rr&&(fr=!0)}return fr?-12:0};_getnameinfo.sig="ipipipii";var stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,I=_malloc(t);return I&&stringToUTF8(e,I,t),I},getCFunc=e=>{var t=Module["_"+e];return t},writeArrayToMemory=(e,t)=>{HEAP8.set(e,t)},ccall=(e,t,I,B,tr)=>{var rr={string:Mr=>{var vr=0;return Mr!=null&&Mr!==0&&(vr=stringToUTF8OnStack(Mr)),vr},array:Mr=>{var vr=stackAlloc(Mr.length);return writeArrayToMemory(Mr,vr),vr}};function ir(Mr){return t==="string"?UTF8ToString(Mr):t==="boolean"?!!Mr:Mr}var lr=getCFunc(e),dr=[],mr=0;if(B)for(var fr=0;fr<B.length;fr++){var hr=rr[I[fr]];hr?(mr===0&&(mr=stackSave()),dr[fr]=hr(B[fr])):dr[fr]=B[fr]}var _r=lr(...dr);function yr(Mr){return mr!==0&&stackRestore(mr),ir(Mr)}return _r=yr(_r),_r},cwrap=(e,t,I,B)=>{var tr=!I||I.every(ir=>ir==="number"||ir==="boolean"),rr=t!=="string";return rr&&tr&&!B?getCFunc(e):(...ir)=>ccall(e,t,I,ir)},FS_createPath=FS.createPath,FS_unlink=e=>FS.unlink(e),FS_createLazyFile=FS.createLazyFile,FS_createDevice=FS.createDevice,setTempRet0=e=>__emscripten_tempret_set(e),_setTempRet0=setTempRet0;Module._setTempRet0=_setTempRet0;var getTempRet0=e=>__emscripten_tempret_get(),_getTempRet0=getTempRet0;Module._getTempRet0=_getTempRet0,registerWasmPlugin(),FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit(),Module.FS_createPath=FS.createPath,Module.FS_createDataFile=FS.createDataFile,Module.FS_createPreloadedFile=FS.createPreloadedFile,Module.FS_unlink=FS.unlink,Module.FS_createLazyFile=FS.createLazyFile,Module.FS_createDevice=FS.createDevice,MEMFS.doesNotExistError=new FS.ErrnoError(44),MEMFS.doesNotExistError.stack="<generic error, no stack>",ENVIRONMENT_IS_NODE&&NODEFS.staticInit(),Module.requestAnimationFrame=MainLoop.requestAnimationFrame,Module.pauseMainLoop=MainLoop.pause,Module.resumeMainLoop=MainLoop.resume,MainLoop.init();var wasmImports={__assert_fail:___assert_fail,__call_sighandler:___call_sighandler,__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__syscall__newselect:___syscall__newselect,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_dup3:___syscall_dup3,__syscall_faccessat:___syscall_faccessat,__syscall_fadvise64:___syscall_fadvise64,__syscall_fallocate:___syscall_fallocate,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_symlinkat:___syscall_symlinkat,__syscall_truncate64:___syscall_truncate64,__syscall_unlinkat:___syscall_unlinkat,__table_base:___table_base,_abort_js:__abort_js,_dlopen_js:__dlopen_js,_dlsym_js:__dlsym_js,_emscripten_memcpy_js:__emscripten_memcpy_js,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_system:__emscripten_system,_emscripten_throw_longjmp:__emscripten_throw_longjmp,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mmap_js:__mmap_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_tzset_js:__tzset_js,clock_time_get:_clock_time_get,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_date_now:_emscripten_date_now,emscripten_force_exit:_emscripten_force_exit,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,emscripten_set_main_loop:_emscripten_set_main_loop,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_pread:_fd_pread,fd_pwrite:_fd_pwrite,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,getTempRet0:_getTempRet0,getaddrinfo:_getaddrinfo,getnameinfo:_getnameinfo,invoke_di,invoke_i,invoke_id,invoke_ii,invoke_iii,invoke_iiii,invoke_iiiii,invoke_iiiiii,invoke_iiiiiii,invoke_iiiiiiii,invoke_iiiiiiiii,invoke_iiiiiiiiii,invoke_iiiiiiiiiiiiiiiii,invoke_iiiiiji,invoke_iiiij,invoke_iiiijii,invoke_iiij,invoke_iiji,invoke_ij,invoke_ijiiiii,invoke_ijiiiiii,invoke_ji,invoke_jii,invoke_jiiii,invoke_jiiiii,invoke_jiiiiiiii,invoke_v,invoke_vi,invoke_vid,invoke_vii,invoke_viii,invoke_viiii,invoke_viiiii,invoke_viiiiii,invoke_viiiiiii,invoke_viiiiiiii,invoke_viiiiiiiii,invoke_viiiiiiiiiiii,invoke_viiij,invoke_viij,invoke_viiji,invoke_viijii,invoke_viijiiii,invoke_vij,invoke_viji,invoke_vijiji,invoke_vj,invoke_vji,is_web_env,memory:wasmMemory,proc_exit:_proc_exit,setTempRet0:_setTempRet0},wasmExports;createWasm(),Module._ScanKeywordLookup=(e,t)=>(Module._ScanKeywordLookup=wasmExports.ScanKeywordLookup)(e,t),Module._pg_snprintf=(e,t,I,B)=>(Module._pg_snprintf=wasmExports.pg_snprintf)(e,t,I,B),Module._strlen=e=>(Module._strlen=wasmExports.strlen)(e),Module._memset=(e,t,I)=>(Module._memset=wasmExports.memset)(e,t,I),Module._strchr=(e,t)=>(Module._strchr=wasmExports.strchr)(e,t),Module._PQserverVersion=e=>(Module._PQserverVersion=wasmExports.PQserverVersion)(e),Module._strstr=(e,t)=>(Module._strstr=wasmExports.strstr)(e,t),Module._pg_fprintf=(e,t,I)=>(Module._pg_fprintf=wasmExports.pg_fprintf)(e,t,I),Module._strspn=(e,t)=>(Module._strspn=wasmExports.strspn)(e,t);var _malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e);Module._pg_strcasecmp=(e,t)=>(Module._pg_strcasecmp=wasmExports.pg_strcasecmp)(e,t),Module._strcmp=(e,t)=>(Module._strcmp=wasmExports.strcmp)(e,t),Module._free=e=>(Module._free=wasmExports.free)(e),Module._pg_tolower=e=>(Module._pg_tolower=wasmExports.pg_tolower)(e),Module._memchr=(e,t,I)=>(Module._memchr=wasmExports.memchr)(e,t,I),Module._getenv=e=>(Module._getenv=wasmExports.getenv)(e),Module._fileno=e=>(Module._fileno=wasmExports.fileno)(e),Module._isatty=e=>(Module._isatty=wasmExports.isatty)(e),Module._strdup=e=>(Module._strdup=wasmExports.strdup)(e),Module.___errno_location=()=>(Module.___errno_location=wasmExports.__errno_location)();var _fflush=Module._fflush=e=>(_fflush=Module._fflush=wasmExports.fflush)(e);Module._pg_vsnprintf=(e,t,I,B)=>(Module._pg_vsnprintf=wasmExports.pg_vsnprintf)(e,t,I,B),Module._pg_malloc_extended=(e,t)=>(Module._pg_malloc_extended=wasmExports.pg_malloc_extended)(e,t),Module._PageInit=(e,t,I)=>(Module._PageInit=wasmExports.PageInit)(e,t,I),Module._pg_checksum_page=(e,t)=>(Module._pg_checksum_page=wasmExports.pg_checksum_page)(e,t),Module._errstart=(e,t)=>(Module._errstart=wasmExports.errstart)(e,t),Module._errcode=e=>(Module._errcode=wasmExports.errcode)(e),Module._errmsg=(e,t)=>(Module._errmsg=wasmExports.errmsg)(e,t),Module._errfinish=(e,t,I)=>(Module._errfinish=wasmExports.errfinish)(e,t,I),Module._PageAddItemExtended=(e,t,I,B,tr)=>(Module._PageAddItemExtended=wasmExports.PageAddItemExtended)(e,t,I,B,tr),Module._errstart_cold=(e,t)=>(Module._errstart_cold=wasmExports.errstart_cold)(e,t),Module._puts=e=>(Module._puts=wasmExports.puts)(e),Module._errmsg_internal=(e,t)=>(Module._errmsg_internal=wasmExports.errmsg_internal)(e,t),Module._memmove=(e,t,I)=>(Module._memmove=wasmExports.memmove)(e,t,I),Module._memcpy=(e,t,I)=>(Module._memcpy=wasmExports.memcpy)(e,t,I),Module._palloc=e=>(Module._palloc=wasmExports.palloc)(e),Module._pfree=e=>(Module._pfree=wasmExports.pfree)(e),Module._PageGetFreeSpace=e=>(Module._PageGetFreeSpace=wasmExports.PageGetFreeSpace)(e),Module._PageGetExactFreeSpace=e=>(Module._PageGetExactFreeSpace=wasmExports.PageGetExactFreeSpace)(e),Module._PageGetHeapFreeSpace=e=>(Module._PageGetHeapFreeSpace=wasmExports.PageGetHeapFreeSpace)(e),Module._PageIndexMultiDelete=(e,t,I)=>(Module._PageIndexMultiDelete=wasmExports.PageIndexMultiDelete)(e,t,I),Module._PageIndexTupleOverwrite=(e,t,I,B)=>(Module._PageIndexTupleOverwrite=wasmExports.PageIndexTupleOverwrite)(e,t,I,B),Module._ItemPointerEquals=(e,t)=>(Module._ItemPointerEquals=wasmExports.ItemPointerEquals)(e,t),Module._ItemPointerCompare=(e,t)=>(Module._ItemPointerCompare=wasmExports.ItemPointerCompare)(e,t),Module._add_size=(e,t)=>(Module._add_size=wasmExports.add_size)(e,t),Module._ShmemInitStruct=(e,t,I)=>(Module._ShmemInitStruct=wasmExports.ShmemInitStruct)(e,t,I),Module._s_init_lock_sema=(e,t)=>(Module._s_init_lock_sema=wasmExports.s_init_lock_sema)(e,t),Module._LWLockAcquire=(e,t)=>(Module._LWLockAcquire=wasmExports.LWLockAcquire)(e,t),Module._LWLockRelease=e=>(Module._LWLockRelease=wasmExports.LWLockRelease)(e),Module._on_shmem_exit=(e,t)=>(Module._on_shmem_exit=wasmExports.on_shmem_exit)(e,t),Module._tas_sema=e=>(Module._tas_sema=wasmExports.tas_sema)(e),Module._s_lock=(e,t,I,B)=>(Module._s_lock=wasmExports.s_lock)(e,t,I,B),Module._s_unlock_sema=e=>(Module._s_unlock_sema=wasmExports.s_unlock_sema)(e),Module._StartTransactionCommand=()=>(Module._StartTransactionCommand=wasmExports.StartTransactionCommand)(),Module._CommitTransactionCommand=()=>(Module._CommitTransactionCommand=wasmExports.CommitTransactionCommand)(),Module._WaitLatch=(e,t,I,B)=>(Module._WaitLatch=wasmExports.WaitLatch)(e,t,I,B),Module._ResetLatch=e=>(Module._ResetLatch=wasmExports.ResetLatch)(e),Module._ProcessInterrupts=()=>(Module._ProcessInterrupts=wasmExports.ProcessInterrupts)(),Module._MemoryContextAlloc=(e,t)=>(Module._MemoryContextAlloc=wasmExports.MemoryContextAlloc)(e,t),Module._AllocateDir=e=>(Module._AllocateDir=wasmExports.AllocateDir)(e),Module._ReadDir=(e,t)=>(Module._ReadDir=wasmExports.ReadDir)(e,t),Module._strncmp=(e,t,I)=>(Module._strncmp=wasmExports.strncmp)(e,t,I),Module._unlink=e=>(Module._unlink=wasmExports.unlink)(e),Module._errcode_for_file_access=()=>(Module._errcode_for_file_access=wasmExports.errcode_for_file_access)(),Module._FreeDir=e=>(Module._FreeDir=wasmExports.FreeDir)(e),Module._pg_prng_uint32=e=>(Module._pg_prng_uint32=wasmExports.pg_prng_uint32)(e),Module._dsm_create=(e,t)=>(Module._dsm_create=wasmExports.dsm_create)(e,t),Module._dsm_attach=e=>(Module._dsm_attach=wasmExports.dsm_attach)(e),Module._dsm_detach=e=>(Module._dsm_detach=wasmExports.dsm_detach)(e),Module._dsm_segment_address=e=>(Module._dsm_segment_address=wasmExports.dsm_segment_address)(e),Module._dsm_segment_handle=e=>(Module._dsm_segment_handle=wasmExports.dsm_segment_handle)(e),Module._MemoryContextAllocZero=(e,t)=>(Module._MemoryContextAllocZero=wasmExports.MemoryContextAllocZero)(e,t),Module._read=(e,t,I)=>(Module._read=wasmExports.read)(e,t,I),Module._hash_create=(e,t,I,B)=>(Module._hash_create=wasmExports.hash_create)(e,t,I,B),Module._hash_destroy=e=>(Module._hash_destroy=wasmExports.hash_destroy)(e),Module._hash_seq_init=(e,t)=>(Module._hash_seq_init=wasmExports.hash_seq_init)(e,t),Module._hash_seq_search=e=>(Module._hash_seq_search=wasmExports.hash_seq_search)(e),Module._hash_search=(e,t,I,B)=>(Module._hash_search=wasmExports.hash_search)(e,t,I,B),Module._initStringInfo=e=>(Module._initStringInfo=wasmExports.initStringInfo)(e),Module._appendStringInfo=(e,t,I)=>(Module._appendStringInfo=wasmExports.appendStringInfo)(e,t,I),Module._GetCurrentTimestamp=()=>(Module._GetCurrentTimestamp=wasmExports.GetCurrentTimestamp)(),Module._pg_usleep=e=>(Module._pg_usleep=wasmExports.pg_usleep)(e),Module._errdetail=(e,t)=>(Module._errdetail=wasmExports.errdetail)(e,t),Module._TransactionIdDidCommit=e=>(Module._TransactionIdDidCommit=wasmExports.TransactionIdDidCommit)(e),Module._TransactionIdPrecedes=(e,t)=>(Module._TransactionIdPrecedes=wasmExports.TransactionIdPrecedes)(e,t),Module._XLogBeginInsert=()=>(Module._XLogBeginInsert=wasmExports.XLogBeginInsert)(),Module._XLogRegisterData=(e,t)=>(Module._XLogRegisterData=wasmExports.XLogRegisterData)(e,t),Module._XLogInsert=(e,t)=>(Module._XLogInsert=wasmExports.XLogInsert)(e,t),Module._ConditionVariableInit=e=>(Module._ConditionVariableInit=wasmExports.ConditionVariableInit)(e),Module._ConditionVariableCancelSleep=()=>(Module._ConditionVariableCancelSleep=wasmExports.ConditionVariableCancelSleep)(),Module._ConditionVariableSleep=(e,t)=>(Module._ConditionVariableSleep=wasmExports.ConditionVariableSleep)(e,t),Module.___wasm_setjmp=(e,t,I)=>(Module.___wasm_setjmp=wasmExports.__wasm_setjmp)(e,t,I),Module.___wasm_setjmp_test=(e,t)=>(Module.___wasm_setjmp_test=wasmExports.__wasm_setjmp_test)(e,t),Module._pg_re_throw=()=>(Module._pg_re_throw=wasmExports.pg_re_throw)(),Module._emscripten_longjmp=(e,t)=>(Module._emscripten_longjmp=wasmExports.emscripten_longjmp)(e,t),Module._procsignal_sigusr1_handler=e=>(Module._procsignal_sigusr1_handler=wasmExports.procsignal_sigusr1_handler)(e),Module._close=e=>(Module._close=wasmExports.close)(e),Module._ReleaseExternalFD=()=>(Module._ReleaseExternalFD=wasmExports.ReleaseExternalFD)(),Module._fcntl=(e,t,I)=>(Module._fcntl=wasmExports.fcntl)(e,t,I),Module._pqsignal=(e,t)=>(Module._pqsignal=wasmExports.pqsignal)(e,t),Module._write=(e,t,I)=>(Module._write=wasmExports.write)(e,t,I),Module._AddWaitEventToSet=(e,t,I,B,tr)=>(Module._AddWaitEventToSet=wasmExports.AddWaitEventToSet)(e,t,I,B,tr),Module._clock_gettime=(e,t)=>(Module._clock_gettime=wasmExports.clock_gettime)(e,t),Module._poll=(e,t,I)=>(Module._poll=wasmExports.poll)(e,t,I),Module._WaitLatchOrSocket=(e,t,I,B,tr)=>(Module._WaitLatchOrSocket=wasmExports.WaitLatchOrSocket)(e,t,I,B,tr),Module._GetNumRegisteredWaitEvents=e=>(Module._GetNumRegisteredWaitEvents=wasmExports.GetNumRegisteredWaitEvents)(e),Module._ShmemInitHash=(e,t,I,B,tr)=>(Module._ShmemInitHash=wasmExports.ShmemInitHash)(e,t,I,B,tr),Module._InitMaterializedSRF=(e,t)=>(Module._InitMaterializedSRF=wasmExports.InitMaterializedSRF)(e,t),Module._cstring_to_text=e=>(Module._cstring_to_text=wasmExports.cstring_to_text)(e),Module._Int64GetDatum=e=>(Module._Int64GetDatum=wasmExports.Int64GetDatum)(e),Module._tuplestore_putvalues=(e,t,I,B)=>(Module._tuplestore_putvalues=wasmExports.tuplestore_putvalues)(e,t,I,B),Module._shm_toc_allocate=(e,t)=>(Module._shm_toc_allocate=wasmExports.shm_toc_allocate)(e,t),Module._shm_toc_insert=(e,t,I)=>(Module._shm_toc_insert=wasmExports.shm_toc_insert)(e,t,I),Module._shm_toc_lookup=(e,t,I)=>(Module._shm_toc_lookup=wasmExports.shm_toc_lookup)(e,t,I),Module._superuser_arg=e=>(Module._superuser_arg=wasmExports.superuser_arg)(e),Module._superuser=()=>(Module._superuser=wasmExports.superuser)(),Module._GetUserId=()=>(Module._GetUserId=wasmExports.GetUserId)(),Module._has_privs_of_role=(e,t)=>(Module._has_privs_of_role=wasmExports.has_privs_of_role)(e,t),Module._errmsg_plural=(e,t,I,B)=>(Module._errmsg_plural=wasmExports.errmsg_plural)(e,t,I,B),Module._errhint=(e,t)=>(Module._errhint=wasmExports.errhint)(e,t),Module._fstat=(e,t)=>(Module._fstat=wasmExports.fstat)(e,t),Module._ftruncate=(e,t)=>(Module._ftruncate=wasmExports.ftruncate)(e,t),Module._RequestAddinShmemSpace=e=>(Module._RequestAddinShmemSpace=wasmExports.RequestAddinShmemSpace)(e),Module._hash_estimate_size=(e,t)=>(Module._hash_estimate_size=wasmExports.hash_estimate_size)(e,t),Module._pg_sprintf=(e,t,I)=>(Module._pg_sprintf=wasmExports.pg_sprintf)(e,t,I),Module._SetConfigOption=(e,t,I,B)=>(Module._SetConfigOption=wasmExports.SetConfigOption)(e,t,I,B),Module._pg_printf=(e,t)=>(Module._pg_printf=wasmExports.pg_printf)(e,t),Module._before_shmem_exit=(e,t)=>(Module._before_shmem_exit=wasmExports.before_shmem_exit)(e,t),Module._cancel_before_shmem_exit=(e,t)=>(Module._cancel_before_shmem_exit=wasmExports.cancel_before_shmem_exit)(e,t),Module._pg_qsort=(e,t,I,B)=>(Module._pg_qsort=wasmExports.pg_qsort)(e,t,I,B),Module._TransactionIdIsInProgress=e=>(Module._TransactionIdIsInProgress=wasmExports.TransactionIdIsInProgress)(e),Module._TransactionIdIsCurrentTransactionId=e=>(Module._TransactionIdIsCurrentTransactionId=wasmExports.TransactionIdIsCurrentTransactionId)(e),Module._RecoveryInProgress=()=>(Module._RecoveryInProgress=wasmExports.RecoveryInProgress)(),Module._GetOldestNonRemovableTransactionId=e=>(Module._GetOldestNonRemovableTransactionId=wasmExports.GetOldestNonRemovableTransactionId)(e),Module._GetCurrentCommandId=e=>(Module._GetCurrentCommandId=wasmExports.GetCurrentCommandId)(e),Module._BackendXidGetPid=e=>(Module._BackendXidGetPid=wasmExports.BackendXidGetPid)(e),Module._lappend_int=(e,t)=>(Module._lappend_int=wasmExports.lappend_int)(e,t),Module._index_close=(e,t)=>(Module._index_close=wasmExports.index_close)(e,t),Module._table_close=(e,t)=>(Module._table_close=wasmExports.table_close)(e,t),Module._CommandCounterIncrement=()=>(Module._CommandCounterIncrement=wasmExports.CommandCounterIncrement)(),Module._GetActiveSnapshot=()=>(Module._GetActiveSnapshot=wasmExports.GetActiveSnapshot)(),Module._ScanKeyInit=(e,t,I,B,tr)=>(Module._ScanKeyInit=wasmExports.ScanKeyInit)(e,t,I,B,tr),Module._table_open=(e,t)=>(Module._table_open=wasmExports.table_open)(e,t),Module._systable_beginscan=(e,t,I,B,tr,rr)=>(Module._systable_beginscan=wasmExports.systable_beginscan)(e,t,I,B,tr,rr),Module._systable_getnext=e=>(Module._systable_getnext=wasmExports.systable_getnext)(e),Module._systable_endscan=e=>(Module._systable_endscan=wasmExports.systable_endscan)(e),Module._index_open=(e,t)=>(Module._index_open=wasmExports.index_open)(e,t),Module._systable_beginscan_ordered=(e,t,I,B,tr)=>(Module._systable_beginscan_ordered=wasmExports.systable_beginscan_ordered)(e,t,I,B,tr),Module._systable_getnext_ordered=(e,t)=>(Module._systable_getnext_ordered=wasmExports.systable_getnext_ordered)(e,t),Module._systable_endscan_ordered=e=>(Module._systable_endscan_ordered=wasmExports.systable_endscan_ordered)(e),Module._heap_form_tuple=(e,t,I)=>(Module._heap_form_tuple=wasmExports.heap_form_tuple)(e,t,I),Module._heap_freetuple=e=>(Module._heap_freetuple=wasmExports.heap_freetuple)(e),Module._AllocSetContextCreateInternal=(e,t,I,B,tr)=>(Module._AllocSetContextCreateInternal=wasmExports.AllocSetContextCreateInternal)(e,t,I,B,tr),Module._list_free_deep=e=>(Module._list_free_deep=wasmExports.list_free_deep)(e),Module._lappend=(e,t)=>(Module._lappend=wasmExports.lappend)(e,t),Module._LockBuffer=(e,t)=>(Module._LockBuffer=wasmExports.LockBuffer)(e,t),Module._GetFreeIndexPage=e=>(Module._GetFreeIndexPage=wasmExports.GetFreeIndexPage)(e),Module._RecordFreeIndexPage=(e,t)=>(Module._RecordFreeIndexPage=wasmExports.RecordFreeIndexPage)(e,t),Module._IndexFreeSpaceMapVacuum=e=>(Module._IndexFreeSpaceMapVacuum=wasmExports.IndexFreeSpaceMapVacuum)(e),Module._UnlockReleaseBuffer=e=>(Module._UnlockReleaseBuffer=wasmExports.UnlockReleaseBuffer)(e),Module._smgropen=(e,t)=>(Module._smgropen=wasmExports.smgropen)(e,t),Module._smgrsetowner=(e,t)=>(Module._smgrsetowner=wasmExports.smgrsetowner)(e,t),Module._RelationGetNumberOfBlocksInFork=(e,t)=>(Module._RelationGetNumberOfBlocksInFork=wasmExports.RelationGetNumberOfBlocksInFork)(e,t),Module._ReleaseBuffer=e=>(Module._ReleaseBuffer=wasmExports.ReleaseBuffer)(e),Module._GetRecordedFreeSpace=(e,t)=>(Module._GetRecordedFreeSpace=wasmExports.GetRecordedFreeSpace)(e,t),Module._smgrexists=(e,t)=>(Module._smgrexists=wasmExports.smgrexists)(e,t),Module._ReadBufferExtended=(e,t,I,B,tr)=>(Module._ReadBufferExtended=wasmExports.ReadBufferExtended)(e,t,I,B,tr),Module._MarkBufferDirty=e=>(Module._MarkBufferDirty=wasmExports.MarkBufferDirty)(e),Module._log_newpage_buffer=(e,t)=>(Module._log_newpage_buffer=wasmExports.log_newpage_buffer)(e,t),Module._copy_file=(e,t)=>(Module._copy_file=wasmExports.copy_file)(e,t),Module._fd_fsync_fname=(e,t)=>(Module._fd_fsync_fname=wasmExports.fd_fsync_fname)(e,t),Module._OpenTransientFile=(e,t)=>(Module._OpenTransientFile=wasmExports.OpenTransientFile)(e,t),Module._CloseTransientFile=e=>(Module._CloseTransientFile=wasmExports.CloseTransientFile)(e),Module._hash_bytes=(e,t)=>(Module._hash_bytes=wasmExports.hash_bytes)(e,t),Module._pstrdup=e=>(Module._pstrdup=wasmExports.pstrdup)(e),Module._repalloc=(e,t)=>(Module._repalloc=wasmExports.repalloc)(e,t),Module._wasm_OpenPipeStream=(e,t)=>(Module._wasm_OpenPipeStream=wasmExports.wasm_OpenPipeStream)(e,t),Module._access=(e,t)=>(Module._access=wasmExports.access)(e,t),Module._fopen=(e,t)=>(Module._fopen=wasmExports.fopen)(e,t),Module._fiprintf=(e,t,I)=>(Module._fiprintf=wasmExports.fiprintf)(e,t,I),Module._fclose=e=>(Module._fclose=wasmExports.fclose)(e),Module._fsync_fname_ext=(e,t,I,B)=>(Module._fsync_fname_ext=wasmExports.fsync_fname_ext)(e,t,I,B),Module._fd_durable_rename=(e,t,I)=>(Module._fd_durable_rename=wasmExports.fd_durable_rename)(e,t,I),Module._rename=(e,t)=>(Module._rename=wasmExports.rename)(e,t),Module._strlcpy=(e,t,I)=>(Module._strlcpy=wasmExports.strlcpy)(e,t,I),Module._dup=e=>(Module._dup=wasmExports.dup)(e),Module._open=(e,t,I)=>(Module._open=wasmExports.open)(e,t,I),Module._AcquireExternalFD=()=>(Module._AcquireExternalFD=wasmExports.AcquireExternalFD)(),Module._realloc=(e,t)=>(Module._realloc=wasmExports.realloc)(e,t),Module._stat=(e,t)=>(Module._stat=wasmExports.stat)(e,t),Module._pwrite=(e,t,I,B)=>(Module._pwrite=wasmExports.pwrite)(e,t,I,B),Module._lseek=(e,t,I)=>(Module._lseek=wasmExports.lseek)(e,t,I),Module._AllocateFile=(e,t)=>(Module._AllocateFile=wasmExports.AllocateFile)(e,t),Module._GetCurrentSubTransactionId=()=>(Module._GetCurrentSubTransactionId=wasmExports.GetCurrentSubTransactionId)(),Module._FreeFile=e=>(Module._FreeFile=wasmExports.FreeFile)(e),Module._pclose=e=>(Module._pclose=wasmExports.pclose)(e),Module._ClosePipeStream=e=>(Module._ClosePipeStream=wasmExports.ClosePipeStream)(e),Module._pg_prng_uint64_range=(e,t,I)=>(Module._pg_prng_uint64_range=wasmExports.pg_prng_uint64_range)(e,t,I),Module._AtEOSubXact_Files=(e,t,I)=>(Module._AtEOSubXact_Files=wasmExports.AtEOSubXact_Files)(e,t,I),Module._pre_format_elog_string=(e,t)=>(Module._pre_format_elog_string=wasmExports.pre_format_elog_string)(e,t),Module._format_elog_string=(e,t)=>(Module._format_elog_string=wasmExports.format_elog_string)(e,t),Module._list_free=e=>(Module._list_free=wasmExports.list_free)(e),Module._guc_malloc=(e,t)=>(Module._guc_malloc=wasmExports.guc_malloc)(e,t),Module._MemoryContextDelete=e=>(Module._MemoryContextDelete=wasmExports.MemoryContextDelete)(e),Module._strtoul=(e,t,I)=>(Module._strtoul=wasmExports.strtoul)(e,t,I),Module._hash_get_num_entries=e=>(Module._hash_get_num_entries=wasmExports.hash_get_num_entries)(e),Module._LWLockInitialize=(e,t)=>(Module._LWLockInitialize=wasmExports.LWLockInitialize)(e,t),Module._PrefetchBuffer=(e,t,I,B)=>(Module._PrefetchBuffer=wasmExports.PrefetchBuffer)(e,t,I,B),Module._LockBufHdr=e=>(Module._LockBufHdr=wasmExports.LockBufHdr)(e),Module._ReadBuffer=(e,t)=>(Module._ReadBuffer=wasmExports.ReadBuffer)(e,t),Module._pgstat_assoc_relation=e=>(Module._pgstat_assoc_relation=wasmExports.pgstat_assoc_relation)(e),Module._ExtendBufferedRel=(e,t,I,B)=>(Module._ExtendBufferedRel=wasmExports.ExtendBufferedRel)(e,t,I,B),Module._LockBufferForCleanup=e=>(Module._LockBufferForCleanup=wasmExports.LockBufferForCleanup)(e),Module._smgrread=(e,t,I,B)=>(Module._smgrread=wasmExports.smgrread)(e,t,I,B),Module._LockRelationForExtension=(e,t)=>(Module._LockRelationForExtension=wasmExports.LockRelationForExtension)(e,t),Module._UnlockRelationForExtension=(e,t)=>(Module._UnlockRelationForExtension=wasmExports.UnlockRelationForExtension)(e,t),Module._BufferGetBlockNumber=e=>(Module._BufferGetBlockNumber=wasmExports.BufferGetBlockNumber)(e),Module._bsearch=(e,t,I,B,tr)=>(Module._bsearch=wasmExports.bsearch)(e,t,I,B,tr),Module._set_errcontext_domain=e=>(Module._set_errcontext_domain=wasmExports.set_errcontext_domain)(e),Module._errcontext_msg=(e,t)=>(Module._errcontext_msg=wasmExports.errcontext_msg)(e,t),Module._GetAccessStrategy=e=>(Module._GetAccessStrategy=wasmExports.GetAccessStrategy)(e),Module._FreeAccessStrategy=e=>(Module._FreeAccessStrategy=wasmExports.FreeAccessStrategy)(e),Module._ConditionalLockBuffer=e=>(Module._ConditionalLockBuffer=wasmExports.ConditionalLockBuffer)(e),Module._TestForOldSnapshot_impl=(e,t)=>(Module._TestForOldSnapshot_impl=wasmExports.TestForOldSnapshot_impl)(e,t);var _calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t);Module._have_free_buffer=()=>(Module._have_free_buffer=wasmExports.have_free_buffer)(),Module._palloc0=e=>(Module._palloc0=wasmExports.palloc0)(e),Module._resetStringInfo=e=>(Module._resetStringInfo=wasmExports.resetStringInfo)(e),Module._appendStringInfoChar=(e,t)=>(Module._appendStringInfoChar=wasmExports.appendStringInfoChar)(e,t),Module._appendBinaryStringInfo=(e,t,I)=>(Module._appendBinaryStringInfo=wasmExports.appendBinaryStringInfo)(e,t,I),Module._errdetail_internal=(e,t)=>(Module._errdetail_internal=wasmExports.errdetail_internal)(e,t),Module._strcpy=(e,t)=>(Module._strcpy=wasmExports.strcpy)(e,t),Module._LWLockRegisterTranche=(e,t)=>(Module._LWLockRegisterTranche=wasmExports.LWLockRegisterTranche)(e,t),Module._GetNamedLWLockTranche=e=>(Module._GetNamedLWLockTranche=wasmExports.GetNamedLWLockTranche)(e),Module._LWLockNewTrancheId=()=>(Module._LWLockNewTrancheId=wasmExports.LWLockNewTrancheId)(),Module._RequestNamedLWLockTranche=(e,t)=>(Module._RequestNamedLWLockTranche=wasmExports.RequestNamedLWLockTranche)(e,t),Module._pg_prng_double=e=>(Module._pg_prng_double=wasmExports.pg_prng_double)(e),Module._getpid=()=>(Module._getpid=wasmExports.getpid)(),Module._GetTransactionSnapshot=()=>(Module._GetTransactionSnapshot=wasmExports.GetTransactionSnapshot)(),Module._ConditionVariableSignal=e=>(Module._ConditionVariableSignal=wasmExports.ConditionVariableSignal)(e),Module._LockPage=(e,t,I)=>(Module._LockPage=wasmExports.LockPage)(e,t,I),Module._UnlockPage=(e,t,I)=>(Module._UnlockPage=wasmExports.UnlockPage)(e,t,I),Module._pgstat_progress_update_param=(e,t)=>(Module._pgstat_progress_update_param=wasmExports.pgstat_progress_update_param)(e,t),Module._list_make1_impl=(e,t)=>(Module._list_make1_impl=wasmExports.list_make1_impl)(e,t),Module._psprintf=(e,t)=>(Module._psprintf=wasmExports.psprintf)(e,t),Module._smgrtruncate=(e,t,I,B)=>(Module._smgrtruncate=wasmExports.smgrtruncate)(e,t,I,B),Module._log=e=>(Module._log=wasmExports.log)(e),Module._pairingheap_allocate=(e,t)=>(Module._pairingheap_allocate=wasmExports.pairingheap_allocate)(e,t),Module._pairingheap_add=(e,t)=>(Module._pairingheap_add=wasmExports.pairingheap_add)(e,t),Module._pairingheap_first=e=>(Module._pairingheap_first=wasmExports.pairingheap_first)(e),Module._pairingheap_remove_first=e=>(Module._pairingheap_remove_first=wasmExports.pairingheap_remove_first)(e),Module._bloom_create=(e,t,I)=>(Module._bloom_create=wasmExports.bloom_create)(e,t,I),Module._bloom_free=e=>(Module._bloom_free=wasmExports.bloom_free)(e),Module._bloom_add_element=(e,t,I)=>(Module._bloom_add_element=wasmExports.bloom_add_element)(e,t,I),Module._hash_bytes_extended=(e,t,I)=>(Module._hash_bytes_extended=wasmExports.hash_bytes_extended)(e,t,I),Module._bloom_lacks_element=(e,t,I)=>(Module._bloom_lacks_element=wasmExports.bloom_lacks_element)(e,t,I),Module._bloom_prop_bits_set=e=>(Module._bloom_prop_bits_set=wasmExports.bloom_prop_bits_set)(e),Module._pg_popcount=(e,t)=>(Module._pg_popcount=wasmExports.pg_popcount)(e,t),Module._memcmp=(e,t,I)=>(Module._memcmp=wasmExports.memcmp)(e,t,I),Module._bms_make_singleton=e=>(Module._bms_make_singleton=wasmExports.bms_make_singleton)(e),Module._bms_add_members=(e,t)=>(Module._bms_add_members=wasmExports.bms_add_members)(e,t),Module._bms_add_member=(e,t)=>(Module._bms_add_member=wasmExports.bms_add_member)(e,t),Module._bms_del_member=(e,t)=>(Module._bms_del_member=wasmExports.bms_del_member)(e,t),Module._check_stack_depth=()=>(Module._check_stack_depth=wasmExports.check_stack_depth)(),Module._parser_errposition=(e,t)=>(Module._parser_errposition=wasmExports.parser_errposition)(e,t),Module._makeVar=(e,t,I,B,tr,rr)=>(Module._makeVar=wasmExports.makeVar)(e,t,I,B,tr,rr),Module._bms_union=(e,t)=>(Module._bms_union=wasmExports.bms_union)(e,t),Module._varstr_levenshtein_less_equal=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._varstr_levenshtein_less_equal=wasmExports.varstr_levenshtein_less_equal)(e,t,I,B,tr,rr,ir,lr,dr),Module._SearchSysCacheExists=(e,t,I,B,tr)=>(Module._SearchSysCacheExists=wasmExports.SearchSysCacheExists)(e,t,I,B,tr),Module._MemoryContextAllocZeroAligned=(e,t)=>(Module._MemoryContextAllocZeroAligned=wasmExports.MemoryContextAllocZeroAligned)(e,t),Module._makeString=e=>(Module._makeString=wasmExports.makeString)(e),Module._addRTEPermissionInfo=(e,t)=>(Module._addRTEPermissionInfo=wasmExports.addRTEPermissionInfo)(e,t),Module._copyObjectImpl=e=>(Module._copyObjectImpl=wasmExports.copyObjectImpl)(e),Module._exprType=e=>(Module._exprType=wasmExports.exprType)(e),Module._lappend_oid=(e,t)=>(Module._lappend_oid=wasmExports.lappend_oid)(e,t),Module._exprTypmod=e=>(Module._exprTypmod=wasmExports.exprTypmod)(e),Module._exprLocation=e=>(Module._exprLocation=wasmExports.exprLocation)(e),Module._CreateTemplateTupleDesc=e=>(Module._CreateTemplateTupleDesc=wasmExports.CreateTemplateTupleDesc)(e),Module._TupleDescInitEntry=(e,t,I,B,tr,rr)=>(Module._TupleDescInitEntry=wasmExports.TupleDescInitEntry)(e,t,I,B,tr,rr),Module._TupleDescInitEntryCollation=(e,t,I)=>(Module._TupleDescInitEntryCollation=wasmExports.TupleDescInitEntryCollation)(e,t,I),Module._typenameTypeIdAndMod=(e,t,I,B)=>(Module._typenameTypeIdAndMod=wasmExports.typenameTypeIdAndMod)(e,t,I,B),Module._format_type_be=e=>(Module._format_type_be=wasmExports.format_type_be)(e),Module._list_concat=(e,t)=>(Module._list_concat=wasmExports.list_concat)(e,t),Module._list_copy=e=>(Module._list_copy=wasmExports.list_copy)(e),Module._relation_open=(e,t)=>(Module._relation_open=wasmExports.relation_open)(e,t),Module._relation_close=(e,t)=>(Module._relation_close=wasmExports.relation_close)(e,t),Module._makeTargetEntry=(e,t,I,B)=>(Module._makeTargetEntry=wasmExports.makeTargetEntry)(e,t,I,B),Module._get_attname=(e,t,I)=>(Module._get_attname=wasmExports.get_attname)(e,t,I),Module._SearchSysCache2=(e,t,I)=>(Module._SearchSysCache2=wasmExports.SearchSysCache2)(e,t,I),Module._ReleaseSysCache=e=>(Module._ReleaseSysCache=wasmExports.ReleaseSysCache)(e),Module._RangeVarGetRelidExtended=(e,t,I,B,tr)=>(Module._RangeVarGetRelidExtended=wasmExports.RangeVarGetRelidExtended)(e,t,I,B,tr),Module._pg_mbstrlen_with_len=(e,t)=>(Module._pg_mbstrlen_with_len=wasmExports.pg_mbstrlen_with_len)(e,t),Module._errposition=e=>(Module._errposition=wasmExports.errposition)(e),Module._numeric_in=e=>(Module._numeric_in=wasmExports.numeric_in)(e),Module._DirectFunctionCall3Coll=(e,t,I,B,tr)=>(Module._DirectFunctionCall3Coll=wasmExports.DirectFunctionCall3Coll)(e,t,I,B,tr),Module._bit_in=e=>(Module._bit_in=wasmExports.bit_in)(e),Module._NameListToString=e=>(Module._NameListToString=wasmExports.NameListToString)(e),Module._appendStringInfoString=(e,t)=>(Module._appendStringInfoString=wasmExports.appendStringInfoString)(e,t),Module._lookup_type_cache=(e,t)=>(Module._lookup_type_cache=wasmExports.lookup_type_cache)(e,t),Module._CacheRegisterSyscacheCallback=(e,t,I)=>(Module._CacheRegisterSyscacheCallback=wasmExports.CacheRegisterSyscacheCallback)(e,t,I),Module._SearchSysCache1=(e,t)=>(Module._SearchSysCache1=wasmExports.SearchSysCache1)(e,t),Module._list_make2_impl=(e,t,I)=>(Module._list_make2_impl=wasmExports.list_make2_impl)(e,t,I),Module._get_base_element_type=e=>(Module._get_base_element_type=wasmExports.get_base_element_type)(e),Module._downcase_truncate_identifier=(e,t,I)=>(Module._downcase_truncate_identifier=wasmExports.downcase_truncate_identifier)(e,t,I),Module._pg_database_encoding_max_length=()=>(Module._pg_database_encoding_max_length=wasmExports.pg_database_encoding_max_length)(),Module._truncate_identifier=(e,t,I)=>(Module._truncate_identifier=wasmExports.truncate_identifier)(e,t,I),Module._scanner_isspace=e=>(Module._scanner_isspace=wasmExports.scanner_isspace)(e),Module._get_typcollation=e=>(Module._get_typcollation=wasmExports.get_typcollation)(e),Module._list_delete_cell=(e,t)=>(Module._list_delete_cell=wasmExports.list_delete_cell)(e,t),Module._makeTypeNameFromNameList=e=>(Module._makeTypeNameFromNameList=wasmExports.makeTypeNameFromNameList)(e),Module._SysCacheGetAttrNotNull=(e,t,I)=>(Module._SysCacheGetAttrNotNull=wasmExports.SysCacheGetAttrNotNull)(e,t,I),Module._text_to_cstring=e=>(Module._text_to_cstring=wasmExports.text_to_cstring)(e),Module._stringToNode=e=>(Module._stringToNode=wasmExports.stringToNode)(e),Module._bms_is_member=(e,t)=>(Module._bms_is_member=wasmExports.bms_is_member)(e,t),Module._bms_free=e=>(Module._bms_free=wasmExports.bms_free)(e),Module._core_yylex=(e,t,I)=>(Module._core_yylex=wasmExports.core_yylex)(e,t,I),Module._getc=e=>(Module._getc=wasmExports.getc)(e),Module._ferror=e=>(Module._ferror=wasmExports.ferror)(e),Module._fread=(e,t,I,B)=>(Module._fread=wasmExports.fread)(e,t,I,B),Module._clearerr=e=>(Module._clearerr=wasmExports.clearerr)(e),Module._scanner_init=(e,t,I,B)=>(Module._scanner_init=wasmExports.scanner_init)(e,t,I,B),Module._scanner_finish=e=>(Module._scanner_finish=wasmExports.scanner_finish)(e),Module._get_namespace_name=e=>(Module._get_namespace_name=wasmExports.get_namespace_name)(e),Module._lookup_rowtype_tupdesc=(e,t)=>(Module._lookup_rowtype_tupdesc=wasmExports.lookup_rowtype_tupdesc)(e,t),Module._DecrTupleDescRefCount=e=>(Module._DecrTupleDescRefCount=wasmExports.DecrTupleDescRefCount)(e),Module._relation_openrv=(e,t)=>(Module._relation_openrv=wasmExports.relation_openrv)(e,t),Module._errdetail_relkind_not_supported=e=>(Module._errdetail_relkind_not_supported=wasmExports.errdetail_relkind_not_supported)(e),Module._object_aclcheck=(e,t,I,B)=>(Module._object_aclcheck=wasmExports.object_aclcheck)(e,t,I,B),Module._aclcheck_error=(e,t,I)=>(Module._aclcheck_error=wasmExports.aclcheck_error)(e,t,I),Module._pg_class_aclcheck=(e,t,I)=>(Module._pg_class_aclcheck=wasmExports.pg_class_aclcheck)(e,t,I),Module._get_relkind_objtype=e=>(Module._get_relkind_objtype=wasmExports.get_relkind_objtype)(e),Module._list_make3_impl=(e,t,I,B)=>(Module._list_make3_impl=wasmExports.list_make3_impl)(e,t,I,B),Module._quote_qualified_identifier=(e,t)=>(Module._quote_qualified_identifier=wasmExports.quote_qualified_identifier)(e,t),Module._table_openrv=(e,t)=>(Module._table_openrv=wasmExports.table_openrv)(e,t),Module._equal=(e,t)=>(Module._equal=wasmExports.equal)(e,t),Module._RelationGetIndexList=e=>(Module._RelationGetIndexList=wasmExports.RelationGetIndexList)(e),Module._pg_detoast_datum=e=>(Module._pg_detoast_datum=wasmExports.pg_detoast_datum)(e),Module._SysCacheGetAttr=(e,t,I,B)=>(Module._SysCacheGetAttr=wasmExports.SysCacheGetAttr)(e,t,I,B),Module._deconstruct_array_builtin=(e,t,I,B,tr)=>(Module._deconstruct_array_builtin=wasmExports.deconstruct_array_builtin)(e,t,I,B,tr),Module._untransformRelOptions=e=>(Module._untransformRelOptions=wasmExports.untransformRelOptions)(e),Module._transformExpr=(e,t,I)=>(Module._transformExpr=wasmExports.transformExpr)(e,t,I),Module._get_rel_namespace=e=>(Module._get_rel_namespace=wasmExports.get_rel_namespace)(e),Module._get_rel_name=e=>(Module._get_rel_name=wasmExports.get_rel_name)(e),Module._makeRangeVar=(e,t,I)=>(Module._makeRangeVar=wasmExports.makeRangeVar)(e,t,I),Module._makeDefElem=(e,t,I)=>(Module._makeDefElem=wasmExports.makeDefElem)(e,t,I),Module._makeRangeVarFromNameList=e=>(Module._makeRangeVarFromNameList=wasmExports.makeRangeVarFromNameList)(e),Module._coerce_to_target_type=(e,t,I,B,tr,rr,ir,lr)=>(Module._coerce_to_target_type=wasmExports.coerce_to_target_type)(e,t,I,B,tr,rr,ir,lr),Module._LookupTypeName=(e,t,I,B)=>(Module._LookupTypeName=wasmExports.LookupTypeName)(e,t,I,B),Module._GetSysCacheOid=(e,t,I,B,tr,rr)=>(Module._GetSysCacheOid=wasmExports.GetSysCacheOid)(e,t,I,B,tr,rr),Module._construct_array_builtin=(e,t,I)=>(Module._construct_array_builtin=wasmExports.construct_array_builtin)(e,t,I),Module._get_collation_oid=(e,t)=>(Module._get_collation_oid=wasmExports.get_collation_oid)(e,t),Module._typeStringToTypeName=(e,t)=>(Module._typeStringToTypeName=wasmExports.typeStringToTypeName)(e,t),Module._raw_parser=(e,t)=>(Module._raw_parser=wasmExports.raw_parser)(e,t),Module._errsave_start=(e,t)=>(Module._errsave_start=wasmExports.errsave_start)(e,t),Module._errsave_finish=(e,t,I,B)=>(Module._errsave_finish=wasmExports.errsave_finish)(e,t,I,B),Module._defGetBoolean=e=>(Module._defGetBoolean=wasmExports.defGetBoolean)(e),Module._list_delete_last=e=>(Module._list_delete_last=wasmExports.list_delete_last)(e),Module._format_type_with_typemod=(e,t)=>(Module._format_type_with_typemod=wasmExports.format_type_with_typemod)(e,t),Module._list_member=(e,t)=>(Module._list_member=wasmExports.list_member)(e,t),Module._list_member_int=(e,t)=>(Module._list_member_int=wasmExports.list_member_int)(e,t),Module._list_sort=(e,t)=>(Module._list_sort=wasmExports.list_sort)(e,t),Module._get_element_type=e=>(Module._get_element_type=wasmExports.get_element_type)(e),Module._makeBoolean=e=>(Module._makeBoolean=wasmExports.makeBoolean)(e),Module._makeInteger=e=>(Module._makeInteger=wasmExports.makeInteger)(e),Module._makeTypeName=e=>(Module._makeTypeName=wasmExports.makeTypeName)(e),Module._list_make4_impl=(e,t,I,B,tr)=>(Module._list_make4_impl=wasmExports.list_make4_impl)(e,t,I,B,tr),Module._isxdigit=e=>(Module._isxdigit=wasmExports.isxdigit)(e),Module._strip_implicit_coercions=e=>(Module._strip_implicit_coercions=wasmExports.strip_implicit_coercions)(e),Module._SearchSysCacheList=(e,t,I,B,tr)=>(Module._SearchSysCacheList=wasmExports.SearchSysCacheList)(e,t,I,B,tr),Module._ReleaseCatCacheList=e=>(Module._ReleaseCatCacheList=wasmExports.ReleaseCatCacheList)(e),Module._get_sortgroupref_tle=(e,t)=>(Module._get_sortgroupref_tle=wasmExports.get_sortgroupref_tle)(e,t),Module._type_is_rowtype=e=>(Module._type_is_rowtype=wasmExports.type_is_rowtype)(e),Module._bms_next_member=(e,t)=>(Module._bms_next_member=wasmExports.bms_next_member)(e,t),Module._MemoryContextReset=e=>(Module._MemoryContextReset=wasmExports.MemoryContextReset)(e),Module._abort=()=>(Module._abort=wasmExports.abort)(),Module._heap_getnext=(e,t)=>(Module._heap_getnext=wasmExports.heap_getnext)(e,t),Module._OidOutputFunctionCall=(e,t)=>(Module._OidOutputFunctionCall=wasmExports.OidOutputFunctionCall)(e,t),Module._atoi=e=>(Module._atoi=wasmExports.atoi)(e),Module._GetConfigOption=(e,t,I)=>(Module._GetConfigOption=wasmExports.GetConfigOption)(e,t,I),Module._pg_strong_random=(e,t)=>(Module._pg_strong_random=wasmExports.pg_strong_random)(e,t),Module._pg_prng_seed_check=e=>(Module._pg_prng_seed_check=wasmExports.pg_prng_seed_check)(e),Module._pg_prng_seed=(e,t)=>(Module._pg_prng_seed=wasmExports.pg_prng_seed)(e,t),Module._fputc=(e,t)=>(Module._fputc=wasmExports.fputc)(e,t),Module._time=e=>(Module._time=wasmExports.time)(e),Module._TimestampDifferenceMilliseconds=(e,t)=>(Module._TimestampDifferenceMilliseconds=wasmExports.TimestampDifferenceMilliseconds)(e,t),Module._ProcessConfigFile=e=>(Module._ProcessConfigFile=wasmExports.ProcessConfigFile)(e),Module._send=(e,t,I,B)=>(Module._send=wasmExports.send)(e,t,I,B),Module._parse_bool=(e,t)=>(Module._parse_bool=wasmExports.parse_bool)(e,t),Module._enlargeStringInfo=(e,t)=>(Module._enlargeStringInfo=wasmExports.enlargeStringInfo)(e,t),Module._BackgroundWorkerInitializeConnectionByOid=(e,t,I)=>(Module._BackgroundWorkerInitializeConnectionByOid=wasmExports.BackgroundWorkerInitializeConnectionByOid)(e,t,I),Module._BackgroundWorkerUnblockSignals=()=>(Module._BackgroundWorkerUnblockSignals=wasmExports.BackgroundWorkerUnblockSignals)(),Module._pg_getnameinfo_all=(e,t,I,B,tr,rr,ir)=>(Module._pg_getnameinfo_all=wasmExports.pg_getnameinfo_all)(e,t,I,B,tr,rr,ir),Module._gai_strerror=e=>(Module._gai_strerror=wasmExports.gai_strerror)(e),Module._SignalHandlerForConfigReload=e=>(Module._SignalHandlerForConfigReload=wasmExports.SignalHandlerForConfigReload)(e),Module._fwrite=(e,t,I,B)=>(Module._fwrite=wasmExports.fwrite)(e,t,I,B),Module._SignalHandlerForShutdownRequest=e=>(Module._SignalHandlerForShutdownRequest=wasmExports.SignalHandlerForShutdownRequest)(e),Module._EmitErrorReport=()=>(Module._EmitErrorReport=wasmExports.EmitErrorReport)(),Module._FlushErrorState=()=>(Module._FlushErrorState=wasmExports.FlushErrorState)(),Module._die=e=>(Module._die=wasmExports.die)(e),Module._MultiXactIdPrecedes=(e,t)=>(Module._MultiXactIdPrecedes=wasmExports.MultiXactIdPrecedes)(e,t),Module._CreateTupleDescCopy=e=>(Module._CreateTupleDescCopy=wasmExports.CreateTupleDescCopy)(e),Module._pgstat_report_activity=(e,t)=>(Module._pgstat_report_activity=wasmExports.pgstat_report_activity)(e,t),Module._DirectFunctionCall2Coll=(e,t,I,B)=>(Module._DirectFunctionCall2Coll=wasmExports.DirectFunctionCall2Coll)(e,t,I,B),Module._RegisterBackgroundWorker=e=>(Module._RegisterBackgroundWorker=wasmExports.RegisterBackgroundWorker)(e),Module._RegisterDynamicBackgroundWorker=(e,t)=>(Module._RegisterDynamicBackgroundWorker=wasmExports.RegisterDynamicBackgroundWorker)(e,t),Module._WaitForBackgroundWorkerStartup=(e,t)=>(Module._WaitForBackgroundWorkerStartup=wasmExports.WaitForBackgroundWorkerStartup)(e,t),Module._WaitForBackgroundWorkerShutdown=e=>(Module._WaitForBackgroundWorkerShutdown=wasmExports.WaitForBackgroundWorkerShutdown)(e),Module._GetXLogReplayRecPtr=e=>(Module._GetXLogReplayRecPtr=wasmExports.GetXLogReplayRecPtr)(e),Module._gettimeofday=(e,t)=>(Module._gettimeofday=wasmExports.gettimeofday)(e,t),Module._sscanf=(e,t,I)=>(Module._sscanf=wasmExports.sscanf)(e,t,I),Module._get_call_result_type=(e,t,I)=>(Module._get_call_result_type=wasmExports.get_call_result_type)(e,t,I),Module._HeapTupleHeaderGetDatum=e=>(Module._HeapTupleHeaderGetDatum=wasmExports.HeapTupleHeaderGetDatum)(e),Module._wal_segment_close=e=>(Module._wal_segment_close=wasmExports.wal_segment_close)(e),Module._wal_segment_open=(e,t,I)=>(Module._wal_segment_open=wasmExports.wal_segment_open)(e,t,I),Module._GetFlushRecPtr=e=>(Module._GetFlushRecPtr=wasmExports.GetFlushRecPtr)(e),Module._XLogReadRecord=(e,t)=>(Module._XLogReadRecord=wasmExports.XLogReadRecord)(e,t),Module._RmgrNotFound=e=>(Module._RmgrNotFound=wasmExports.RmgrNotFound)(e),Module._CacheRegisterRelcacheCallback=(e,t)=>(Module._CacheRegisterRelcacheCallback=wasmExports.CacheRegisterRelcacheCallback)(e,t),Module._free_attrmap=e=>(Module._free_attrmap=wasmExports.free_attrmap)(e),Module._BuildIndexInfo=e=>(Module._BuildIndexInfo=wasmExports.BuildIndexInfo)(e),Module._hash_seq_term=e=>(Module._hash_seq_term=wasmExports.hash_seq_term)(e),Module._PushActiveSnapshot=e=>(Module._PushActiveSnapshot=wasmExports.PushActiveSnapshot)(e),Module._PopActiveSnapshot=()=>(Module._PopActiveSnapshot=wasmExports.PopActiveSnapshot)(),Module._MakePerTupleExprContext=e=>(Module._MakePerTupleExprContext=wasmExports.MakePerTupleExprContext)(e),Module._ExecInitExpr=(e,t)=>(Module._ExecInitExpr=wasmExports.ExecInitExpr)(e,t),Module._FreeExecutorState=e=>(Module._FreeExecutorState=wasmExports.FreeExecutorState)(e),Module._list_member_oid=(e,t)=>(Module._list_member_oid=wasmExports.list_member_oid)(e,t),Module._MemoryContextStrdup=(e,t)=>(Module._MemoryContextStrdup=wasmExports.MemoryContextStrdup)(e,t),Module._pq_getmsgint=(e,t)=>(Module._pq_getmsgint=wasmExports.pq_getmsgint)(e,t),Module._CreateExecutorState=()=>(Module._CreateExecutorState=wasmExports.CreateExecutorState)(),Module._ExecInitRangeTable=(e,t,I)=>(Module._ExecInitRangeTable=wasmExports.ExecInitRangeTable)(e,t,I),Module._getTypeInputInfo=(e,t,I)=>(Module._getTypeInputInfo=wasmExports.getTypeInputInfo)(e,t,I),Module._ExecStoreVirtualTuple=e=>(Module._ExecStoreVirtualTuple=wasmExports.ExecStoreVirtualTuple)(e),Module._execute_attr_map_slot=(e,t,I)=>(Module._execute_attr_map_slot=wasmExports.execute_attr_map_slot)(e,t,I),Module._slot_getsomeattrs_int=(e,t)=>(Module._slot_getsomeattrs_int=wasmExports.slot_getsomeattrs_int)(e,t),Module._GetUserNameFromId=(e,t)=>(Module._GetUserNameFromId=wasmExports.GetUserNameFromId)(e,t),Module._makeStringInfo=()=>(Module._makeStringInfo=wasmExports.makeStringInfo)(),Module._list_member_xid=(e,t)=>(Module._list_member_xid=wasmExports.list_member_xid)(e,t),Module._lappend_xid=(e,t)=>(Module._lappend_xid=wasmExports.lappend_xid)(e,t),Module._tuplestore_end=e=>(Module._tuplestore_end=wasmExports.tuplestore_end)(e),Module._quote_literal_cstr=e=>(Module._quote_literal_cstr=wasmExports.quote_literal_cstr)(e),Module._MakeSingleTupleTableSlot=(e,t)=>(Module._MakeSingleTupleTableSlot=wasmExports.MakeSingleTupleTableSlot)(e,t),Module._ExecDropSingleTupleTableSlot=e=>(Module._ExecDropSingleTupleTableSlot=wasmExports.ExecDropSingleTupleTableSlot)(e),Module._tuplestore_tuple_count=e=>(Module._tuplestore_tuple_count=wasmExports.tuplestore_tuple_count)(e),Module._quote_identifier=e=>(Module._quote_identifier=wasmExports.quote_identifier)(e),Module._BeginCopyFrom=(e,t,I,B,tr,rr,ir,lr)=>(Module._BeginCopyFrom=wasmExports.BeginCopyFrom)(e,t,I,B,tr,rr,ir,lr),Module._array_contains_nulls=e=>(Module._array_contains_nulls=wasmExports.array_contains_nulls)(e),Module._format_procedure=e=>(Module._format_procedure=wasmExports.format_procedure)(e),Module._pg_detoast_datum_packed=e=>(Module._pg_detoast_datum_packed=wasmExports.pg_detoast_datum_packed)(e),Module._cstring_to_text_with_len=(e,t)=>(Module._cstring_to_text_with_len=wasmExports.cstring_to_text_with_len)(e,t),Module._GenerationContextCreate=(e,t,I,B,tr)=>(Module._GenerationContextCreate=wasmExports.GenerationContextCreate)(e,t,I,B,tr),Module._BeginInternalSubTransaction=e=>(Module._BeginInternalSubTransaction=wasmExports.BeginInternalSubTransaction)(e),Module._RollbackAndReleaseCurrentSubTransaction=()=>(Module._RollbackAndReleaseCurrentSubTransaction=wasmExports.RollbackAndReleaseCurrentSubTransaction)(),Module._CopyErrorData=()=>(Module._CopyErrorData=wasmExports.CopyErrorData)(),Module._FreeErrorData=e=>(Module._FreeErrorData=wasmExports.FreeErrorData)(e),Module._RelidByRelfilenumber=(e,t)=>(Module._RelidByRelfilenumber=wasmExports.RelidByRelfilenumber)(e,t),Module._RelationIdGetRelation=e=>(Module._RelationIdGetRelation=wasmExports.RelationIdGetRelation)(e),Module._heap_deform_tuple=(e,t,I,B)=>(Module._heap_deform_tuple=wasmExports.heap_deform_tuple)(e,t,I,B),Module._RelationClose=e=>(Module._RelationClose=wasmExports.RelationClose)(e),Module._nocachegetattr=(e,t,I)=>(Module._nocachegetattr=wasmExports.nocachegetattr)(e,t,I),Module._XLogReaderAllocate=(e,t,I,B)=>(Module._XLogReaderAllocate=wasmExports.XLogReaderAllocate)(e,t,I,B),Module._XLogReaderFree=e=>(Module._XLogReaderFree=wasmExports.XLogReaderFree)(e),Module._OutputPluginPrepareWrite=(e,t)=>(Module._OutputPluginPrepareWrite=wasmExports.OutputPluginPrepareWrite)(e,t),Module._OutputPluginWrite=(e,t)=>(Module._OutputPluginWrite=wasmExports.OutputPluginWrite)(e,t),Module._OutputPluginUpdateProgress=(e,t)=>(Module._OutputPluginUpdateProgress=wasmExports.OutputPluginUpdateProgress)(e,t),Module._replorigin_by_oid=(e,t,I)=>(Module._replorigin_by_oid=wasmExports.replorigin_by_oid)(e,t,I),Module._logicalrep_write_begin=(e,t)=>(Module._logicalrep_write_begin=wasmExports.logicalrep_write_begin)(e,t),Module._logicalrep_write_commit=(e,t,I)=>(Module._logicalrep_write_commit=wasmExports.logicalrep_write_commit)(e,t,I),Module._logicalrep_write_begin_prepare=(e,t)=>(Module._logicalrep_write_begin_prepare=wasmExports.logicalrep_write_begin_prepare)(e,t),Module._logicalrep_write_prepare=(e,t,I)=>(Module._logicalrep_write_prepare=wasmExports.logicalrep_write_prepare)(e,t,I),Module._logicalrep_write_commit_prepared=(e,t,I)=>(Module._logicalrep_write_commit_prepared=wasmExports.logicalrep_write_commit_prepared)(e,t,I),Module._logicalrep_write_rollback_prepared=(e,t,I,B)=>(Module._logicalrep_write_rollback_prepared=wasmExports.logicalrep_write_rollback_prepared)(e,t,I,B),Module._logicalrep_write_stream_prepare=(e,t,I)=>(Module._logicalrep_write_stream_prepare=wasmExports.logicalrep_write_stream_prepare)(e,t,I),Module._logicalrep_write_origin=(e,t,I)=>(Module._logicalrep_write_origin=wasmExports.logicalrep_write_origin)(e,t,I),Module._logicalrep_write_insert=(e,t,I,B,tr,rr)=>(Module._logicalrep_write_insert=wasmExports.logicalrep_write_insert)(e,t,I,B,tr,rr),Module._logicalrep_write_update=(e,t,I,B,tr,rr,ir)=>(Module._logicalrep_write_update=wasmExports.logicalrep_write_update)(e,t,I,B,tr,rr,ir),Module._logicalrep_write_delete=(e,t,I,B,tr,rr)=>(Module._logicalrep_write_delete=wasmExports.logicalrep_write_delete)(e,t,I,B,tr,rr),Module._logicalrep_write_truncate=(e,t,I,B,tr,rr)=>(Module._logicalrep_write_truncate=wasmExports.logicalrep_write_truncate)(e,t,I,B,tr,rr),Module._logicalrep_write_message=(e,t,I,B,tr,rr,ir)=>(Module._logicalrep_write_message=wasmExports.logicalrep_write_message)(e,t,I,B,tr,rr,ir),Module._logicalrep_write_rel=(e,t,I,B)=>(Module._logicalrep_write_rel=wasmExports.logicalrep_write_rel)(e,t,I,B),Module._logicalrep_write_typ=(e,t,I)=>(Module._logicalrep_write_typ=wasmExports.logicalrep_write_typ)(e,t,I),Module._logicalrep_write_stream_start=(e,t,I)=>(Module._logicalrep_write_stream_start=wasmExports.logicalrep_write_stream_start)(e,t,I),Module._logicalrep_write_stream_stop=e=>(Module._logicalrep_write_stream_stop=wasmExports.logicalrep_write_stream_stop)(e),Module._logicalrep_write_stream_commit=(e,t,I)=>(Module._logicalrep_write_stream_commit=wasmExports.logicalrep_write_stream_commit)(e,t,I),Module._logicalrep_write_stream_abort=(e,t,I,B,tr,rr)=>(Module._logicalrep_write_stream_abort=wasmExports.logicalrep_write_stream_abort)(e,t,I,B,tr,rr),Module._ProcessWalRcvInterrupts=()=>(Module._ProcessWalRcvInterrupts=wasmExports.ProcessWalRcvInterrupts)(),Module._timestamptz_to_str=e=>(Module._timestamptz_to_str=wasmExports.timestamptz_to_str)(e),Module._GetDatabaseEncodingName=()=>(Module._GetDatabaseEncodingName=wasmExports.GetDatabaseEncodingName)(),Module._PQconnectStartParams=(e,t,I)=>(Module._PQconnectStartParams=wasmExports.PQconnectStartParams)(e,t,I),Module._PQstatus=e=>(Module._PQstatus=wasmExports.PQstatus)(e),Module._PQsocket=e=>(Module._PQsocket=wasmExports.PQsocket)(e),Module._PQconnectPoll=e=>(Module._PQconnectPoll=wasmExports.PQconnectPoll)(e),Module._PQconnectionUsedPassword=e=>(Module._PQconnectionUsedPassword=wasmExports.PQconnectionUsedPassword)(e),Module._PQfinish=e=>(Module._PQfinish=wasmExports.PQfinish)(e),Module._PQresultStatus=e=>(Module._PQresultStatus=wasmExports.PQresultStatus)(e),Module._PQclear=e=>(Module._PQclear=wasmExports.PQclear)(e),Module._PQerrorMessage=e=>(Module._PQerrorMessage=wasmExports.PQerrorMessage)(e),Module._pchomp=e=>(Module._pchomp=wasmExports.pchomp)(e),Module._PQnfields=e=>(Module._PQnfields=wasmExports.PQnfields)(e),Module._PQntuples=e=>(Module._PQntuples=wasmExports.PQntuples)(e),Module._PQgetvalue=(e,t,I)=>(Module._PQgetvalue=wasmExports.PQgetvalue)(e,t,I),Module._pg_strtoint32=e=>(Module._pg_strtoint32=wasmExports.pg_strtoint32)(e),Module._PQconsumeInput=e=>(Module._PQconsumeInput=wasmExports.PQconsumeInput)(e),Module._pg_lsn_in=e=>(Module._pg_lsn_in=wasmExports.pg_lsn_in)(e),Module._DirectFunctionCall1Coll=(e,t,I)=>(Module._DirectFunctionCall1Coll=wasmExports.DirectFunctionCall1Coll)(e,t,I),Module._PQgetisnull=(e,t,I)=>(Module._PQgetisnull=wasmExports.PQgetisnull)(e,t,I),Module._tuplestore_begin_heap=(e,t,I)=>(Module._tuplestore_begin_heap=wasmExports.tuplestore_begin_heap)(e,t,I),Module._TupleDescGetAttInMetadata=e=>(Module._TupleDescGetAttInMetadata=wasmExports.TupleDescGetAttInMetadata)(e),Module._BuildTupleFromCStrings=(e,t)=>(Module._BuildTupleFromCStrings=wasmExports.BuildTupleFromCStrings)(e,t),Module._tuplestore_puttuple=(e,t)=>(Module._tuplestore_puttuple=wasmExports.tuplestore_puttuple)(e,t),Module._PQresultErrorField=(e,t)=>(Module._PQresultErrorField=wasmExports.PQresultErrorField)(e,t),Module._PQsendQuery=(e,t)=>(Module._PQsendQuery=wasmExports.PQsendQuery)(e,t),Module._PQisBusy=e=>(Module._PQisBusy=wasmExports.PQisBusy)(e),Module._PQgetResult=e=>(Module._PQgetResult=wasmExports.PQgetResult)(e),Module._ResourceOwnerDelete=e=>(Module._ResourceOwnerDelete=wasmExports.ResourceOwnerDelete)(e),Module._CreateDestReceiver=e=>(Module._CreateDestReceiver=wasmExports.CreateDestReceiver)(e),Module._defGetString=e=>(Module._defGetString=wasmExports.defGetString)(e),Module._pg_md5_encrypt=(e,t,I,B,tr)=>(Module._pg_md5_encrypt=wasmExports.pg_md5_encrypt)(e,t,I,B,tr),Module._plain_crypt_verify=(e,t,I,B)=>(Module._plain_crypt_verify=wasmExports.plain_crypt_verify)(e,t,I,B),Module._pg_b64_enc_len=e=>(Module._pg_b64_enc_len=wasmExports.pg_b64_enc_len)(e),Module._pg_b64_encode=(e,t,I,B)=>(Module._pg_b64_encode=wasmExports.pg_b64_encode)(e,t,I,B),Module._pg_b64_dec_len=e=>(Module._pg_b64_dec_len=wasmExports.pg_b64_dec_len)(e),Module._pg_b64_decode=(e,t,I,B)=>(Module._pg_b64_decode=wasmExports.pg_b64_decode)(e,t,I,B),Module._pg_hmac_create=e=>(Module._pg_hmac_create=wasmExports.pg_hmac_create)(e),Module._pg_hmac_init=(e,t,I)=>(Module._pg_hmac_init=wasmExports.pg_hmac_init)(e,t,I),Module._pg_hmac_update=(e,t,I)=>(Module._pg_hmac_update=wasmExports.pg_hmac_update)(e,t,I),Module._pg_hmac_final=(e,t,I)=>(Module._pg_hmac_final=wasmExports.pg_hmac_final)(e,t,I),Module._pg_hmac_error=e=>(Module._pg_hmac_error=wasmExports.pg_hmac_error)(e),Module._pg_hmac_free=e=>(Module._pg_hmac_free=wasmExports.pg_hmac_free)(e),Module._scram_H=(e,t,I,B,tr)=>(Module._scram_H=wasmExports.scram_H)(e,t,I,B,tr),Module._pg_saslprep=(e,t)=>(Module._pg_saslprep=wasmExports.pg_saslprep)(e,t),Module._scram_build_secret=(e,t,I,B,tr,rr,ir)=>(Module._scram_build_secret=wasmExports.scram_build_secret)(e,t,I,B,tr,rr,ir),Module._scram_SaltedPassword=(e,t,I,B,tr,rr,ir,lr)=>(Module._scram_SaltedPassword=wasmExports.scram_SaltedPassword)(e,t,I,B,tr,rr,ir,lr),Module._scram_ServerKey=(e,t,I,B,tr)=>(Module._scram_ServerKey=wasmExports.scram_ServerKey)(e,t,I,B,tr),Module._strtol=(e,t,I)=>(Module._strtol=wasmExports.strtol)(e,t,I),Module._replace_percent_placeholders=(e,t,I,B)=>(Module._replace_percent_placeholders=wasmExports.replace_percent_placeholders)(e,t,I,B),Module._fgets=(e,t,I)=>(Module._fgets=wasmExports.fgets)(e,t,I),Module._explicit_bzero=(e,t)=>(Module._explicit_bzero=wasmExports.explicit_bzero)(e,t),Module._wait_result_to_str=e=>(Module._wait_result_to_str=wasmExports.wait_result_to_str)(e),Module._pg_strip_crlf=e=>(Module._pg_strip_crlf=wasmExports.pg_strip_crlf)(e),Module._geteuid=()=>(Module._geteuid=wasmExports.geteuid)(),Module._getpeereid=(e,t,I)=>(Module._getpeereid=wasmExports.getpeereid)(e,t,I),Module._pg_getaddrinfo_all=(e,t,I,B)=>(Module._pg_getaddrinfo_all=wasmExports.pg_getaddrinfo_all)(e,t,I,B),Module._socket=(e,t,I)=>(Module._socket=wasmExports.socket)(e,t,I),Module._connect=(e,t,I)=>(Module._connect=wasmExports.connect)(e,t,I),Module._recv=(e,t,I,B)=>(Module._recv=wasmExports.recv)(e,t,I,B),Module._pg_freeaddrinfo_all=(e,t)=>(Module._pg_freeaddrinfo_all=wasmExports.pg_freeaddrinfo_all)(e,t),Module._pq_sendtext=(e,t,I)=>(Module._pq_sendtext=wasmExports.pq_sendtext)(e,t,I),Module._pq_sendfloat4=(e,t)=>(Module._pq_sendfloat4=wasmExports.pq_sendfloat4)(e,t),Module._pq_sendfloat8=(e,t)=>(Module._pq_sendfloat8=wasmExports.pq_sendfloat8)(e,t),Module._pq_begintypsend=e=>(Module._pq_begintypsend=wasmExports.pq_begintypsend)(e),Module._pq_endtypsend=e=>(Module._pq_endtypsend=wasmExports.pq_endtypsend)(e),Module._pq_getmsgfloat4=e=>(Module._pq_getmsgfloat4=wasmExports.pq_getmsgfloat4)(e),Module._pq_getmsgfloat8=e=>(Module._pq_getmsgfloat8=wasmExports.pq_getmsgfloat8)(e),Module._pq_getmsgtext=(e,t,I)=>(Module._pq_getmsgtext=wasmExports.pq_getmsgtext)(e,t,I),Module._feof=e=>(Module._feof=wasmExports.feof)(e),Module._pg_mb2wchar_with_len=(e,t,I)=>(Module._pg_mb2wchar_with_len=wasmExports.pg_mb2wchar_with_len)(e,t,I),Module._pg_regcomp=(e,t,I,B,tr)=>(Module._pg_regcomp=wasmExports.pg_regcomp)(e,t,I,B,tr),Module._pg_regerror=(e,t,I,B)=>(Module._pg_regerror=wasmExports.pg_regerror)(e,t,I,B),Module._get_role_oid=(e,t)=>(Module._get_role_oid=wasmExports.get_role_oid)(e,t),Module._strcat=(e,t)=>(Module._strcat=wasmExports.strcat)(e,t),Module._sigemptyset=e=>(Module._sigemptyset=wasmExports.sigemptyset)(e),Module._be_lo_unlink=e=>(Module._be_lo_unlink=wasmExports.be_lo_unlink)(e),Module._object_ownercheck=(e,t,I)=>(Module._object_ownercheck=wasmExports.object_ownercheck)(e,t,I),Module._text_to_cstring_buffer=(e,t,I)=>(Module._text_to_cstring_buffer=wasmExports.text_to_cstring_buffer)(e,t,I),Module._setsockopt=(e,t,I,B,tr)=>(Module._setsockopt=wasmExports.setsockopt)(e,t,I,B,tr),Module._getsockname=(e,t,I)=>(Module._getsockname=wasmExports.getsockname)(e,t,I),Module._pq_recvbuf_fill=(e,t)=>(Module._pq_recvbuf_fill=wasmExports.pq_recvbuf_fill)(e,t),Module._getsockopt=(e,t,I,B,tr)=>(Module._getsockopt=wasmExports.getsockopt)(e,t,I,B,tr),Module._getmissingattr=(e,t,I)=>(Module._getmissingattr=wasmExports.getmissingattr)(e,t,I),Module._get_rel_relkind=e=>(Module._get_rel_relkind=wasmExports.get_rel_relkind)(e),Module._MemoryContextSetIdentifier=(e,t)=>(Module._MemoryContextSetIdentifier=wasmExports.MemoryContextSetIdentifier)(e,t),Module._MemoryContextSetParent=(e,t)=>(Module._MemoryContextSetParent=wasmExports.MemoryContextSetParent)(e,t),Module._find_base_rel=(e,t)=>(Module._find_base_rel=wasmExports.find_base_rel)(e,t),Module._bms_equal=(e,t)=>(Module._bms_equal=wasmExports.bms_equal)(e,t),Module._bms_num_members=e=>(Module._bms_num_members=wasmExports.bms_num_members)(e),Module._fmgr_info_copy=(e,t,I)=>(Module._fmgr_info_copy=wasmExports.fmgr_info_copy)(e,t,I),Module._fmgr_info_cxt=(e,t,I)=>(Module._fmgr_info_cxt=wasmExports.fmgr_info_cxt)(e,t,I),Module._get_typlenbyvalalign=(e,t,I,B)=>(Module._get_typlenbyvalalign=wasmExports.get_typlenbyvalalign)(e,t,I,B),Module._deconstruct_array=(e,t,I,B,tr,rr,ir,lr)=>(Module._deconstruct_array=wasmExports.deconstruct_array)(e,t,I,B,tr,rr,ir,lr),Module._datumCopy=(e,t,I)=>(Module._datumCopy=wasmExports.datumCopy)(e,t,I),Module._qsort_arg=(e,t,I,B,tr)=>(Module._qsort_arg=wasmExports.qsort_arg)(e,t,I,B,tr),Module._FunctionCall2Coll=(e,t,I,B)=>(Module._FunctionCall2Coll=wasmExports.FunctionCall2Coll)(e,t,I,B),Module._datumIsEqual=(e,t,I,B)=>(Module._datumIsEqual=wasmExports.datumIsEqual)(e,t,I,B),Module._bms_overlap=(e,t)=>(Module._bms_overlap=wasmExports.bms_overlap)(e,t),Module._ExecPrepareExpr=(e,t)=>(Module._ExecPrepareExpr=wasmExports.ExecPrepareExpr)(e,t),Module._RegisterSnapshot=e=>(Module._RegisterSnapshot=wasmExports.RegisterSnapshot)(e),Module._UnregisterSnapshot=e=>(Module._UnregisterSnapshot=wasmExports.UnregisterSnapshot)(e),Module._get_fn_expr_argtype=(e,t)=>(Module._get_fn_expr_argtype=wasmExports.get_fn_expr_argtype)(e,t),Module._get_opfamily_member=(e,t,I,B)=>(Module._get_opfamily_member=wasmExports.get_opfamily_member)(e,t,I,B),Module._init_MultiFuncCall=e=>(Module._init_MultiFuncCall=wasmExports.init_MultiFuncCall)(e),Module._per_MultiFuncCall=e=>(Module._per_MultiFuncCall=wasmExports.per_MultiFuncCall)(e),Module._end_MultiFuncCall=(e,t)=>(Module._end_MultiFuncCall=wasmExports.end_MultiFuncCall)(e,t),Module._textToQualifiedNameList=e=>(Module._textToQualifiedNameList=wasmExports.textToQualifiedNameList)(e),Module._FunctionCall1Coll=(e,t,I)=>(Module._FunctionCall1Coll=wasmExports.FunctionCall1Coll)(e,t,I),Module._DirectFunctionCall4Coll=(e,t,I,B,tr,rr)=>(Module._DirectFunctionCall4Coll=wasmExports.DirectFunctionCall4Coll)(e,t,I,B,tr,rr),Module._pg_mblen=e=>(Module._pg_mblen=wasmExports.pg_mblen)(e),Module._tsearch_readline_begin=(e,t)=>(Module._tsearch_readline_begin=wasmExports.tsearch_readline_begin)(e,t),Module._tsearch_readline=e=>(Module._tsearch_readline=wasmExports.tsearch_readline)(e),Module._t_isspace=e=>(Module._t_isspace=wasmExports.t_isspace)(e),Module._lowerstr=e=>(Module._lowerstr=wasmExports.lowerstr)(e),Module._tsearch_readline_end=e=>(Module._tsearch_readline_end=wasmExports.tsearch_readline_end)(e),Module._t_isdigit=e=>(Module._t_isdigit=wasmExports.t_isdigit)(e),Module._pnstrdup=(e,t)=>(Module._pnstrdup=wasmExports.pnstrdup)(e,t),Module._get_tsearch_config_filename=(e,t)=>(Module._get_tsearch_config_filename=wasmExports.get_tsearch_config_filename)(e,t),Module._lookup_ts_dictionary_cache=e=>(Module._lookup_ts_dictionary_cache=wasmExports.lookup_ts_dictionary_cache)(e),Module._FunctionCall4Coll=(e,t,I,B,tr,rr)=>(Module._FunctionCall4Coll=wasmExports.FunctionCall4Coll)(e,t,I,B,tr,rr),Module._t_isalnum=e=>(Module._t_isalnum=wasmExports.t_isalnum)(e),Module._isalnum=e=>(Module._isalnum=wasmExports.isalnum)(e),Module._pg_any_to_server=(e,t,I)=>(Module._pg_any_to_server=wasmExports.pg_any_to_server)(e,t,I),Module._lowerstr_with_len=(e,t)=>(Module._lowerstr_with_len=wasmExports.lowerstr_with_len)(e,t),Module._tolower=e=>(Module._tolower=wasmExports.tolower)(e),Module._readstoplist=(e,t,I)=>(Module._readstoplist=wasmExports.readstoplist)(e,t,I),Module._searchstoplist=(e,t)=>(Module._searchstoplist=wasmExports.searchstoplist)(e,t),Module._GetDatabaseEncoding=()=>(Module._GetDatabaseEncoding=wasmExports.GetDatabaseEncoding)(),Module._vacuum_delay_point=()=>(Module._vacuum_delay_point=wasmExports.vacuum_delay_point)(),Module._get_restriction_variable=(e,t,I,B,tr,rr)=>(Module._get_restriction_variable=wasmExports.get_restriction_variable)(e,t,I,B,tr,rr),Module._get_attstatsslot=(e,t,I,B,tr)=>(Module._get_attstatsslot=wasmExports.get_attstatsslot)(e,t,I,B,tr),Module._free_attstatsslot=e=>(Module._free_attstatsslot=wasmExports.free_attstatsslot)(e),Module._Float8GetDatum=e=>(Module._Float8GetDatum=wasmExports.Float8GetDatum)(e),Module._ExecReScan=e=>(Module._ExecReScan=wasmExports.ExecReScan)(e),Module._ExecAsyncResponse=e=>(Module._ExecAsyncResponse=wasmExports.ExecAsyncResponse)(e),Module._ExecAsyncRequestDone=(e,t)=>(Module._ExecAsyncRequestDone=wasmExports.ExecAsyncRequestDone)(e,t),Module._ExecAsyncRequestPending=e=>(Module._ExecAsyncRequestPending=wasmExports.ExecAsyncRequestPending)(e),Module._tuplesort_end=e=>(Module._tuplesort_end=wasmExports.tuplesort_end)(e),Module._ExecInitExprList=(e,t)=>(Module._ExecInitExprList=wasmExports.ExecInitExprList)(e,t),Module._fmgr_info=(e,t)=>(Module._fmgr_info=wasmExports.fmgr_info)(e,t),Module._get_typlenbyval=(e,t,I)=>(Module._get_typlenbyval=wasmExports.get_typlenbyval)(e,t,I),Module._ExecForceStoreHeapTuple=(e,t,I)=>(Module._ExecForceStoreHeapTuple=wasmExports.ExecForceStoreHeapTuple)(e,t,I),Module._tuplesort_performsort=e=>(Module._tuplesort_performsort=wasmExports.tuplesort_performsort)(e),Module._tuplesort_begin_heap=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._tuplesort_begin_heap=wasmExports.tuplesort_begin_heap)(e,t,I,B,tr,rr,ir,lr,dr),Module._MemoryContextMemAllocated=(e,t)=>(Module._MemoryContextMemAllocated=wasmExports.MemoryContextMemAllocated)(e,t),Module._tuplesort_gettupleslot=(e,t,I,B,tr)=>(Module._tuplesort_gettupleslot=wasmExports.tuplesort_gettupleslot)(e,t,I,B,tr),Module._tuplesort_puttupleslot=(e,t)=>(Module._tuplesort_puttupleslot=wasmExports.tuplesort_puttupleslot)(e,t),Module._ExecStoreAllNullTuple=e=>(Module._ExecStoreAllNullTuple=wasmExports.ExecStoreAllNullTuple)(e),Module._MakeExpandedObjectReadOnlyInternal=e=>(Module._MakeExpandedObjectReadOnlyInternal=wasmExports.MakeExpandedObjectReadOnlyInternal)(e),Module._BlessTupleDesc=e=>(Module._BlessTupleDesc=wasmExports.BlessTupleDesc)(e),Module._pg_detoast_datum_copy=e=>(Module._pg_detoast_datum_copy=wasmExports.pg_detoast_datum_copy)(e),Module._construct_md_array=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._construct_md_array=wasmExports.construct_md_array)(e,t,I,B,tr,rr,ir,lr,dr),Module._ArrayGetNItems=(e,t)=>(Module._ArrayGetNItems=wasmExports.ArrayGetNItems)(e,t),Module._construct_empty_array=e=>(Module._construct_empty_array=wasmExports.construct_empty_array)(e),Module._DatumGetEOHP=e=>(Module._DatumGetEOHP=wasmExports.DatumGetEOHP)(e),Module._expanded_record_fetch_tupdesc=e=>(Module._expanded_record_fetch_tupdesc=wasmExports.expanded_record_fetch_tupdesc)(e),Module._expanded_record_fetch_field=(e,t,I)=>(Module._expanded_record_fetch_field=wasmExports.expanded_record_fetch_field)(e,t,I),Module._execute_attr_map_tuple=(e,t)=>(Module._execute_attr_map_tuple=wasmExports.execute_attr_map_tuple)(e,t),Module._MemoryContextAllocExtended=(e,t,I)=>(Module._MemoryContextAllocExtended=wasmExports.MemoryContextAllocExtended)(e,t,I),Module._lookup_rowtype_tupdesc_domain=(e,t,I)=>(Module._lookup_rowtype_tupdesc_domain=wasmExports.lookup_rowtype_tupdesc_domain)(e,t,I),Module._MemoryContextGetParent=e=>(Module._MemoryContextGetParent=wasmExports.MemoryContextGetParent)(e),Module._DeleteExpandedObject=e=>(Module._DeleteExpandedObject=wasmExports.DeleteExpandedObject)(e),Module._InstrAlloc=(e,t,I)=>(Module._InstrAlloc=wasmExports.InstrAlloc)(e,t,I),Module._ExprEvalPushStep=(e,t)=>(Module._ExprEvalPushStep=wasmExports.ExprEvalPushStep)(e,t),Module._getTypeOutputInfo=(e,t,I)=>(Module._getTypeOutputInfo=wasmExports.getTypeOutputInfo)(e,t,I),Module._ExecInitExprWithParams=(e,t)=>(Module._ExecInitExprWithParams=wasmExports.ExecInitExprWithParams)(e,t),Module._ExecOpenScanRelation=(e,t,I)=>(Module._ExecOpenScanRelation=wasmExports.ExecOpenScanRelation)(e,t,I),Module._FreeExprContext=(e,t)=>(Module._FreeExprContext=wasmExports.FreeExprContext)(e,t),Module._CreateExprContext=e=>(Module._CreateExprContext=wasmExports.CreateExprContext)(e),Module._ExecGetReturningSlot=(e,t)=>(Module._ExecGetReturningSlot=wasmExports.ExecGetReturningSlot)(e,t),Module._build_attrmap_by_name_if_req=(e,t,I)=>(Module._build_attrmap_by_name_if_req=wasmExports.build_attrmap_by_name_if_req)(e,t,I),Module._ExecGetResultRelCheckAsUser=(e,t)=>(Module._ExecGetResultRelCheckAsUser=wasmExports.ExecGetResultRelCheckAsUser)(e,t),Module._InstrEndLoop=e=>(Module._InstrEndLoop=wasmExports.InstrEndLoop)(e),Module._ExecStoreHeapTuple=(e,t,I)=>(Module._ExecStoreHeapTuple=wasmExports.ExecStoreHeapTuple)(e,t,I),Module._get_partition_ancestors=e=>(Module._get_partition_ancestors=wasmExports.get_partition_ancestors)(e),Module._pull_varattnos=(e,t,I)=>(Module._pull_varattnos=wasmExports.pull_varattnos)(e,t,I),Module._ExecFindJunkAttributeInTlist=(e,t)=>(Module._ExecFindJunkAttributeInTlist=wasmExports.ExecFindJunkAttributeInTlist)(e,t),Module._visibilitymap_get_status=(e,t,I)=>(Module._visibilitymap_get_status=wasmExports.visibilitymap_get_status)(e,t,I),Module._index_deform_tuple=(e,t,I,B)=>(Module._index_deform_tuple=wasmExports.index_deform_tuple)(e,t,I,B),Module._LaunchParallelWorkers=e=>(Module._LaunchParallelWorkers=wasmExports.LaunchParallelWorkers)(e),Module._standard_ExecutorStart=(e,t)=>(Module._standard_ExecutorStart=wasmExports.standard_ExecutorStart)(e,t),Module._GetCommandTagName=e=>(Module._GetCommandTagName=wasmExports.GetCommandTagName)(e),Module._standard_ExecutorRun=(e,t,I,B)=>(Module._standard_ExecutorRun=wasmExports.standard_ExecutorRun)(e,t,I,B),Module._EnterParallelMode=()=>(Module._EnterParallelMode=wasmExports.EnterParallelMode)(),Module._ExitParallelMode=()=>(Module._ExitParallelMode=wasmExports.ExitParallelMode)(),Module._standard_ExecutorFinish=e=>(Module._standard_ExecutorFinish=wasmExports.standard_ExecutorFinish)(e),Module._standard_ExecutorEnd=e=>(Module._standard_ExecutorEnd=wasmExports.standard_ExecutorEnd)(e),Module._MakeTupleTableSlot=(e,t)=>(Module._MakeTupleTableSlot=wasmExports.MakeTupleTableSlot)(e,t),Module._CreateParallelContext=(e,t,I)=>(Module._CreateParallelContext=wasmExports.CreateParallelContext)(e,t,I),Module._InitializeParallelDSM=e=>(Module._InitializeParallelDSM=wasmExports.InitializeParallelDSM)(e),Module._WaitForParallelWorkersToFinish=e=>(Module._WaitForParallelWorkersToFinish=wasmExports.WaitForParallelWorkersToFinish)(e),Module._DestroyParallelContext=e=>(Module._DestroyParallelContext=wasmExports.DestroyParallelContext)(e),Module._SPI_connect=()=>(Module._SPI_connect=wasmExports.SPI_connect)(),Module._SPI_connect_ext=e=>(Module._SPI_connect_ext=wasmExports.SPI_connect_ext)(e),Module._SPI_finish=()=>(Module._SPI_finish=wasmExports.SPI_finish)(),Module._SPI_commit=()=>(Module._SPI_commit=wasmExports.SPI_commit)(),Module._ReThrowError=e=>(Module._ReThrowError=wasmExports.ReThrowError)(e),Module._SPI_commit_and_chain=()=>(Module._SPI_commit_and_chain=wasmExports.SPI_commit_and_chain)(),Module._SPI_rollback=()=>(Module._SPI_rollback=wasmExports.SPI_rollback)(),Module._SPI_rollback_and_chain=()=>(Module._SPI_rollback_and_chain=wasmExports.SPI_rollback_and_chain)(),Module._SPI_execute=(e,t,I)=>(Module._SPI_execute=wasmExports.SPI_execute)(e,t,I),Module._EnsurePortalSnapshotExists=()=>(Module._EnsurePortalSnapshotExists=wasmExports.EnsurePortalSnapshotExists)(),Module._SPI_freetuptable=e=>(Module._SPI_freetuptable=wasmExports.SPI_freetuptable)(e),Module._ReleaseCachedPlan=(e,t)=>(Module._ReleaseCachedPlan=wasmExports.ReleaseCachedPlan)(e,t),Module._SPI_exec=(e,t)=>(Module._SPI_exec=wasmExports.SPI_exec)(e,t),Module._SPI_execute_extended=(e,t)=>(Module._SPI_execute_extended=wasmExports.SPI_execute_extended)(e,t),Module._makeParamList=e=>(Module._makeParamList=wasmExports.makeParamList)(e),Module._SPI_execp=(e,t,I,B)=>(Module._SPI_execp=wasmExports.SPI_execp)(e,t,I,B),Module._SPI_execute_plan_extended=(e,t)=>(Module._SPI_execute_plan_extended=wasmExports.SPI_execute_plan_extended)(e,t),Module._SPI_execute_plan_with_paramlist=(e,t,I,B)=>(Module._SPI_execute_plan_with_paramlist=wasmExports.SPI_execute_plan_with_paramlist)(e,t,I,B),Module._SPI_prepare=(e,t,I)=>(Module._SPI_prepare=wasmExports.SPI_prepare)(e,t,I),Module._SPI_prepare_extended=(e,t)=>(Module._SPI_prepare_extended=wasmExports.SPI_prepare_extended)(e,t),Module._SPI_keepplan=e=>(Module._SPI_keepplan=wasmExports.SPI_keepplan)(e),Module._SPI_freeplan=e=>(Module._SPI_freeplan=wasmExports.SPI_freeplan)(e),Module._SPI_copytuple=e=>(Module._SPI_copytuple=wasmExports.SPI_copytuple)(e),Module._SPI_returntuple=(e,t)=>(Module._SPI_returntuple=wasmExports.SPI_returntuple)(e,t),Module._SPI_fnumber=(e,t)=>(Module._SPI_fnumber=wasmExports.SPI_fnumber)(e,t),Module._SPI_fname=(e,t)=>(Module._SPI_fname=wasmExports.SPI_fname)(e,t),Module._SPI_getvalue=(e,t,I)=>(Module._SPI_getvalue=wasmExports.SPI_getvalue)(e,t,I),Module._SPI_getbinval=(e,t,I,B)=>(Module._SPI_getbinval=wasmExports.SPI_getbinval)(e,t,I,B),Module._SPI_gettype=(e,t)=>(Module._SPI_gettype=wasmExports.SPI_gettype)(e,t),Module._SPI_gettypeid=(e,t)=>(Module._SPI_gettypeid=wasmExports.SPI_gettypeid)(e,t),Module._SPI_getrelname=e=>(Module._SPI_getrelname=wasmExports.SPI_getrelname)(e),Module._SPI_palloc=e=>(Module._SPI_palloc=wasmExports.SPI_palloc)(e),Module._SPI_datumTransfer=(e,t,I)=>(Module._SPI_datumTransfer=wasmExports.SPI_datumTransfer)(e,t,I),Module._datumTransfer=(e,t,I)=>(Module._datumTransfer=wasmExports.datumTransfer)(e,t,I),Module._SPI_cursor_open_with_paramlist=(e,t,I,B)=>(Module._SPI_cursor_open_with_paramlist=wasmExports.SPI_cursor_open_with_paramlist)(e,t,I,B),Module._SPI_cursor_parse_open=(e,t,I)=>(Module._SPI_cursor_parse_open=wasmExports.SPI_cursor_parse_open)(e,t,I),Module._SPI_cursor_find=e=>(Module._SPI_cursor_find=wasmExports.SPI_cursor_find)(e),Module._SPI_cursor_fetch=(e,t,I)=>(Module._SPI_cursor_fetch=wasmExports.SPI_cursor_fetch)(e,t,I),Module._SPI_scroll_cursor_fetch=(e,t,I)=>(Module._SPI_scroll_cursor_fetch=wasmExports.SPI_scroll_cursor_fetch)(e,t,I),Module._SPI_scroll_cursor_move=(e,t,I)=>(Module._SPI_scroll_cursor_move=wasmExports.SPI_scroll_cursor_move)(e,t,I),Module._SPI_cursor_close=e=>(Module._SPI_cursor_close=wasmExports.SPI_cursor_close)(e),Module._SPI_result_code_string=e=>(Module._SPI_result_code_string=wasmExports.SPI_result_code_string)(e),Module._SPI_plan_get_plan_sources=e=>(Module._SPI_plan_get_plan_sources=wasmExports.SPI_plan_get_plan_sources)(e),Module._SPI_plan_get_cached_plan=e=>(Module._SPI_plan_get_cached_plan=wasmExports.SPI_plan_get_cached_plan)(e),Module._geterrposition=()=>(Module._geterrposition=wasmExports.geterrposition)(),Module._internalerrposition=e=>(Module._internalerrposition=wasmExports.internalerrposition)(e),Module._internalerrquery=e=>(Module._internalerrquery=wasmExports.internalerrquery)(e),Module._SPI_register_trigger_data=e=>(Module._SPI_register_trigger_data=wasmExports.SPI_register_trigger_data)(e),Module._EOH_get_flat_size=e=>(Module._EOH_get_flat_size=wasmExports.EOH_get_flat_size)(e),Module._EOH_flatten_into=(e,t,I)=>(Module._EOH_flatten_into=wasmExports.EOH_flatten_into)(e,t,I),Module._ExecFetchSlotHeapTuple=(e,t,I)=>(Module._ExecFetchSlotHeapTuple=wasmExports.ExecFetchSlotHeapTuple)(e,t,I),Module._InputFunctionCall=(e,t,I,B)=>(Module._InputFunctionCall=wasmExports.InputFunctionCall)(e,t,I,B),Module._convert_tuples_by_position=(e,t,I)=>(Module._convert_tuples_by_position=wasmExports.convert_tuples_by_position)(e,t,I),Module._SetTuplestoreDestReceiverParams=(e,t,I,B,tr,rr)=>(Module._SetTuplestoreDestReceiverParams=wasmExports.SetTuplestoreDestReceiverParams)(e,t,I,B,tr,rr),Module._detoast_external_attr=e=>(Module._detoast_external_attr=wasmExports.detoast_external_attr)(e),Module._bms_nonempty_difference=(e,t)=>(Module._bms_nonempty_difference=wasmExports.bms_nonempty_difference)(e,t),Module._table_parallelscan_estimate=(e,t)=>(Module._table_parallelscan_estimate=wasmExports.table_parallelscan_estimate)(e,t),Module._table_parallelscan_initialize=(e,t,I)=>(Module._table_parallelscan_initialize=wasmExports.table_parallelscan_initialize)(e,t,I),Module._table_beginscan_parallel=(e,t)=>(Module._table_beginscan_parallel=wasmExports.table_beginscan_parallel)(e,t),Module._BufferUsageAccumDiff=(e,t,I)=>(Module._BufferUsageAccumDiff=wasmExports.BufferUsageAccumDiff)(e,t,I),Module._WalUsageAccumDiff=(e,t,I)=>(Module._WalUsageAccumDiff=wasmExports.WalUsageAccumDiff)(e,t,I),Module._InstrUpdateTupleCount=(e,t)=>(Module._InstrUpdateTupleCount=wasmExports.InstrUpdateTupleCount)(e,t),Module._tuplesort_reset=e=>(Module._tuplesort_reset=wasmExports.tuplesort_reset)(e),Module._get_call_expr_argtype=(e,t)=>(Module._get_call_expr_argtype=wasmExports.get_call_expr_argtype)(e,t),Module._get_typtype=e=>(Module._get_typtype=wasmExports.get_typtype)(e),Module._pull_var_clause=(e,t)=>(Module._pull_var_clause=wasmExports.pull_var_clause)(e,t),Module._bms_is_subset=(e,t)=>(Module._bms_is_subset=wasmExports.bms_is_subset)(e,t),Module._bms_membership=e=>(Module._bms_membership=wasmExports.bms_membership)(e),Module._make_restrictinfo=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>(Module._make_restrictinfo=wasmExports.make_restrictinfo)(e,t,I,B,tr,rr,ir,lr,dr,mr),Module._GetSysCacheHashValue=(e,t,I,B,tr)=>(Module._GetSysCacheHashValue=wasmExports.GetSysCacheHashValue)(e,t,I,B,tr),Module._tlist_member=(e,t)=>(Module._tlist_member=wasmExports.tlist_member)(e,t),Module._add_path=(e,t)=>(Module._add_path=wasmExports.add_path)(e,t),Module._contain_mutable_functions=e=>(Module._contain_mutable_functions=wasmExports.contain_mutable_functions)(e),Module._make_orclause=e=>(Module._make_orclause=wasmExports.make_orclause)(e),Module._extract_actual_clauses=(e,t)=>(Module._extract_actual_clauses=wasmExports.extract_actual_clauses)(e,t),Module._cost_sort=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._cost_sort=wasmExports.cost_sort)(e,t,I,B,tr,rr,ir,lr,dr),Module._pathkeys_contained_in=(e,t)=>(Module._pathkeys_contained_in=wasmExports.pathkeys_contained_in)(e,t),Module._change_plan_targetlist=(e,t,I)=>(Module._change_plan_targetlist=wasmExports.change_plan_targetlist)(e,t,I),Module._make_foreignscan=(e,t,I,B,tr,rr,ir,lr)=>(Module._make_foreignscan=wasmExports.make_foreignscan)(e,t,I,B,tr,rr,ir,lr),Module._list_member_ptr=(e,t)=>(Module._list_member_ptr=wasmExports.list_member_ptr)(e,t),Module._clamp_row_est=e=>(Module._clamp_row_est=wasmExports.clamp_row_est)(e),Module._standard_planner=(e,t,I,B)=>(Module._standard_planner=wasmExports.standard_planner)(e,t,I,B),Module._estimate_expression_value=(e,t)=>(Module._estimate_expression_value=wasmExports.estimate_expression_value)(e,t),Module._add_new_columns_to_pathtarget=(e,t)=>(Module._add_new_columns_to_pathtarget=wasmExports.add_new_columns_to_pathtarget)(e,t),Module._get_sortgroupref_clause_noerr=(e,t)=>(Module._get_sortgroupref_clause_noerr=wasmExports.get_sortgroupref_clause_noerr)(e,t),Module._get_agg_clause_costs=(e,t,I)=>(Module._get_agg_clause_costs=wasmExports.get_agg_clause_costs)(e,t,I),Module._grouping_is_sortable=e=>(Module._grouping_is_sortable=wasmExports.grouping_is_sortable)(e),Module._create_sort_path=(e,t,I,B,tr)=>(Module._create_sort_path=wasmExports.create_sort_path)(e,t,I,B,tr),Module._copy_pathtarget=e=>(Module._copy_pathtarget=wasmExports.copy_pathtarget)(e),Module._get_sortgrouplist_exprs=(e,t)=>(Module._get_sortgrouplist_exprs=wasmExports.get_sortgrouplist_exprs)(e,t),Module._estimate_num_groups=(e,t,I,B,tr)=>(Module._estimate_num_groups=wasmExports.estimate_num_groups)(e,t,I,B,tr),Module._cost_qual_eval=(e,t,I)=>(Module._cost_qual_eval=wasmExports.cost_qual_eval)(e,t,I),Module._plan_create_index_workers=(e,t)=>(Module._plan_create_index_workers=wasmExports.plan_create_index_workers)(e,t),Module._create_projection_path=(e,t,I,B)=>(Module._create_projection_path=wasmExports.create_projection_path)(e,t,I,B),Module._get_plan_rowmark=(e,t)=>(Module._get_plan_rowmark=wasmExports.get_plan_rowmark)(e,t),Module._find_join_rel=(e,t)=>(Module._find_join_rel=wasmExports.find_join_rel)(e,t),Module._make_canonical_pathkey=(e,t,I,B,tr)=>(Module._make_canonical_pathkey=wasmExports.make_canonical_pathkey)(e,t,I,B,tr),Module._eclass_useful_for_merging=(e,t,I)=>(Module._eclass_useful_for_merging=wasmExports.eclass_useful_for_merging)(e,t,I),Module._update_mergeclause_eclasses=(e,t)=>(Module._update_mergeclause_eclasses=wasmExports.update_mergeclause_eclasses)(e,t),Module._clauselist_selectivity=(e,t,I,B,tr)=>(Module._clauselist_selectivity=wasmExports.clauselist_selectivity)(e,t,I,B,tr),Module._join_clause_is_movable_to=(e,t)=>(Module._join_clause_is_movable_to=wasmExports.join_clause_is_movable_to)(e,t),Module._generate_implied_equalities_for_column=(e,t,I,B,tr)=>(Module._generate_implied_equalities_for_column=wasmExports.generate_implied_equalities_for_column)(e,t,I,B,tr),Module._get_tablespace_page_costs=(e,t,I)=>(Module._get_tablespace_page_costs=wasmExports.get_tablespace_page_costs)(e,t,I),Module._set_baserel_size_estimates=(e,t)=>(Module._set_baserel_size_estimates=wasmExports.set_baserel_size_estimates)(e,t),Module._add_to_flat_tlist=(e,t)=>(Module._add_to_flat_tlist=wasmExports.add_to_flat_tlist)(e,t),Module._get_baserel_parampathinfo=(e,t,I)=>(Module._get_baserel_parampathinfo=wasmExports.get_baserel_parampathinfo)(e,t,I),Module._create_foreignscan_path=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>(Module._create_foreignscan_path=wasmExports.create_foreignscan_path)(e,t,I,B,tr,rr,ir,lr,dr,mr),Module._create_foreign_join_path=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>(Module._create_foreign_join_path=wasmExports.create_foreign_join_path)(e,t,I,B,tr,rr,ir,lr,dr,mr),Module._create_foreign_upper_path=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._create_foreign_upper_path=wasmExports.create_foreign_upper_path)(e,t,I,B,tr,rr,ir,lr,dr),Module._adjust_limit_rows_costs=(e,t,I,B,tr)=>(Module._adjust_limit_rows_costs=wasmExports.adjust_limit_rows_costs)(e,t,I,B,tr),Module._SearchSysCacheAttName=(e,t)=>(Module._SearchSysCacheAttName=wasmExports.SearchSysCacheAttName)(e,t),Module._get_translated_update_targetlist=(e,t,I,B)=>(Module._get_translated_update_targetlist=wasmExports.get_translated_update_targetlist)(e,t,I,B),Module._add_row_identity_var=(e,t,I,B)=>(Module._add_row_identity_var=wasmExports.add_row_identity_var)(e,t,I,B),Module._get_rel_all_updated_cols=(e,t)=>(Module._get_rel_all_updated_cols=wasmExports.get_rel_all_updated_cols)(e,t),Module._list_append_unique_ptr=(e,t)=>(Module._list_append_unique_ptr=wasmExports.list_append_unique_ptr)(e,t),Module._palloc_extended=(e,t)=>(Module._palloc_extended=wasmExports.palloc_extended)(e,t),Module._pg_reg_getinitialstate=e=>(Module._pg_reg_getinitialstate=wasmExports.pg_reg_getinitialstate)(e),Module._pg_reg_getfinalstate=e=>(Module._pg_reg_getfinalstate=wasmExports.pg_reg_getfinalstate)(e),Module._pg_reg_getnumoutarcs=(e,t)=>(Module._pg_reg_getnumoutarcs=wasmExports.pg_reg_getnumoutarcs)(e,t),Module._pg_reg_getoutarcs=(e,t,I,B)=>(Module._pg_reg_getoutarcs=wasmExports.pg_reg_getoutarcs)(e,t,I,B),Module._pg_reg_getnumcolors=e=>(Module._pg_reg_getnumcolors=wasmExports.pg_reg_getnumcolors)(e),Module._pg_reg_colorisbegin=(e,t)=>(Module._pg_reg_colorisbegin=wasmExports.pg_reg_colorisbegin)(e,t),Module._pg_reg_colorisend=(e,t)=>(Module._pg_reg_colorisend=wasmExports.pg_reg_colorisend)(e,t),Module._pg_reg_getnumcharacters=(e,t)=>(Module._pg_reg_getnumcharacters=wasmExports.pg_reg_getnumcharacters)(e,t),Module._pg_reg_getcharacters=(e,t,I,B)=>(Module._pg_reg_getcharacters=wasmExports.pg_reg_getcharacters)(e,t,I,B),Module._toupper=e=>(Module._toupper=wasmExports.toupper)(e),Module._pg_initdb=()=>(Module._pg_initdb=wasmExports.pg_initdb)(),Module._pg_initdb_main=()=>(Module._pg_initdb_main=wasmExports.pg_initdb_main)(),Module.___cxa_throw=(e,t,I)=>(Module.___cxa_throw=wasmExports.__cxa_throw)(e,t,I),Module._main_repl=()=>(Module._main_repl=wasmExports.main_repl)(),Module._main=(e,t)=>(Module._main=wasmExports.__main_argc_argv)(e,t),Module._setenv=(e,t,I)=>(Module._setenv=wasmExports.setenv)(e,t,I),Module._pg_repl_raf=()=>(Module._pg_repl_raf=wasmExports.pg_repl_raf)(),Module._GetForeignDataWrapper=e=>(Module._GetForeignDataWrapper=wasmExports.GetForeignDataWrapper)(e),Module._GetForeignServer=e=>(Module._GetForeignServer=wasmExports.GetForeignServer)(e),Module._GetForeignServerExtended=(e,t)=>(Module._GetForeignServerExtended=wasmExports.GetForeignServerExtended)(e,t),Module._GetForeignServerByName=(e,t)=>(Module._GetForeignServerByName=wasmExports.GetForeignServerByName)(e,t),Module._GetUserMapping=(e,t)=>(Module._GetUserMapping=wasmExports.GetUserMapping)(e,t),Module._GetForeignTable=e=>(Module._GetForeignTable=wasmExports.GetForeignTable)(e),Module._GetForeignColumnOptions=(e,t)=>(Module._GetForeignColumnOptions=wasmExports.GetForeignColumnOptions)(e,t),Module._initClosestMatch=(e,t,I)=>(Module._initClosestMatch=wasmExports.initClosestMatch)(e,t,I),Module._updateClosestMatch=(e,t)=>(Module._updateClosestMatch=wasmExports.updateClosestMatch)(e,t),Module._getClosestMatch=e=>(Module._getClosestMatch=wasmExports.getClosestMatch)(e),Module._GetExistingLocalJoinPath=e=>(Module._GetExistingLocalJoinPath=wasmExports.GetExistingLocalJoinPath)(e),Module._BaseBackupAddTarget=(e,t,I)=>(Module._BaseBackupAddTarget=wasmExports.BaseBackupAddTarget)(e,t,I),Module._bbsink_forward_begin_backup=e=>(Module._bbsink_forward_begin_backup=wasmExports.bbsink_forward_begin_backup)(e),Module._bbsink_forward_archive_contents=(e,t)=>(Module._bbsink_forward_archive_contents=wasmExports.bbsink_forward_archive_contents)(e,t),Module._bbsink_forward_end_archive=e=>(Module._bbsink_forward_end_archive=wasmExports.bbsink_forward_end_archive)(e),Module._bbsink_forward_begin_archive=(e,t)=>(Module._bbsink_forward_begin_archive=wasmExports.bbsink_forward_begin_archive)(e,t),Module._bbsink_forward_begin_manifest=e=>(Module._bbsink_forward_begin_manifest=wasmExports.bbsink_forward_begin_manifest)(e),Module._bbsink_forward_manifest_contents=(e,t)=>(Module._bbsink_forward_manifest_contents=wasmExports.bbsink_forward_manifest_contents)(e,t),Module._bbsink_forward_end_manifest=e=>(Module._bbsink_forward_end_manifest=wasmExports.bbsink_forward_end_manifest)(e),Module._bbsink_forward_end_backup=(e,t,I)=>(Module._bbsink_forward_end_backup=wasmExports.bbsink_forward_end_backup)(e,t,I),Module._bbsink_forward_cleanup=e=>(Module._bbsink_forward_cleanup=wasmExports.bbsink_forward_cleanup)(e),Module._ResourceOwnerCreate=(e,t)=>(Module._ResourceOwnerCreate=wasmExports.ResourceOwnerCreate)(e,t),Module._escape_json=(e,t)=>(Module._escape_json=wasmExports.escape_json)(e,t),Module._exprIsLengthCoercion=(e,t)=>(Module._exprIsLengthCoercion=wasmExports.exprIsLengthCoercion)(e,t),Module._tbm_add_tuples=(e,t,I,B)=>(Module._tbm_add_tuples=wasmExports.tbm_add_tuples)(e,t,I,B),Module._appendStringInfoStringQuoted=(e,t,I)=>(Module._appendStringInfoStringQuoted=wasmExports.appendStringInfoStringQuoted)(e,t,I),Module._list_make5_impl=(e,t,I,B,tr,rr)=>(Module._list_make5_impl=wasmExports.list_make5_impl)(e,t,I,B,tr,rr),Module._list_delete=(e,t)=>(Module._list_delete=wasmExports.list_delete)(e,t),Module._CleanQuerytext=(e,t,I)=>(Module._CleanQuerytext=wasmExports.CleanQuerytext)(e,t,I),Module._EnableQueryId=()=>(Module._EnableQueryId=wasmExports.EnableQueryId)(),Module._get_rel_type_id=e=>(Module._get_rel_type_id=wasmExports.get_rel_type_id)(e),Module._set_config_option=(e,t,I,B,tr,rr,ir,lr)=>(Module._set_config_option=wasmExports.set_config_option)(e,t,I,B,tr,rr,ir,lr),Module._NewGUCNestLevel=()=>(Module._NewGUCNestLevel=wasmExports.NewGUCNestLevel)(),Module._AtEOXact_GUC=(e,t)=>(Module._AtEOXact_GUC=wasmExports.AtEOXact_GUC)(e,t),Module._parse_int=(e,t,I,B)=>(Module._parse_int=wasmExports.parse_int)(e,t,I,B),Module._strtod=(e,t)=>(Module._strtod=wasmExports.strtod)(e,t),Module._parse_real=(e,t,I,B)=>(Module._parse_real=wasmExports.parse_real)(e,t,I,B),Module._DefineCustomBoolVariable=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>(Module._DefineCustomBoolVariable=wasmExports.DefineCustomBoolVariable)(e,t,I,B,tr,rr,ir,lr,dr,mr),Module._DefineCustomIntVariable=(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr)=>(Module._DefineCustomIntVariable=wasmExports.DefineCustomIntVariable)(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr),Module._DefineCustomRealVariable=(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr)=>(Module._DefineCustomRealVariable=wasmExports.DefineCustomRealVariable)(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr),Module._DefineCustomStringVariable=(e,t,I,B,tr,rr,ir,lr,dr,mr)=>(Module._DefineCustomStringVariable=wasmExports.DefineCustomStringVariable)(e,t,I,B,tr,rr,ir,lr,dr,mr),Module._DefineCustomEnumVariable=(e,t,I,B,tr,rr,ir,lr,dr,mr,fr)=>(Module._DefineCustomEnumVariable=wasmExports.DefineCustomEnumVariable)(e,t,I,B,tr,rr,ir,lr,dr,mr,fr),Module._MarkGUCPrefixReserved=e=>(Module._MarkGUCPrefixReserved=wasmExports.MarkGUCPrefixReserved)(e),Module._strcspn=(e,t)=>(Module._strcspn=wasmExports.strcspn)(e,t),Module._BlockSampler_Init=(e,t,I,B)=>(Module._BlockSampler_Init=wasmExports.BlockSampler_Init)(e,t,I,B),Module._sampler_random_init_state=(e,t)=>(Module._sampler_random_init_state=wasmExports.sampler_random_init_state)(e,t),Module._BlockSampler_HasMore=e=>(Module._BlockSampler_HasMore=wasmExports.BlockSampler_HasMore)(e),Module._BlockSampler_Next=e=>(Module._BlockSampler_Next=wasmExports.BlockSampler_Next)(e),Module._sampler_random_fract=e=>(Module._sampler_random_fract=wasmExports.sampler_random_fract)(e),Module._reservoir_init_selection_state=(e,t)=>(Module._reservoir_init_selection_state=wasmExports.reservoir_init_selection_state)(e,t),Module._reservoir_get_next_S=(e,t,I)=>(Module._reservoir_get_next_S=wasmExports.reservoir_get_next_S)(e,t,I),Module._canonicalize_path=e=>(Module._canonicalize_path=wasmExports.canonicalize_path)(e),Module.__bt_mkscankey=(e,t)=>(Module.__bt_mkscankey=wasmExports._bt_mkscankey)(e,t),Module._nocache_index_getattr=(e,t,I)=>(Module._nocache_index_getattr=wasmExports.nocache_index_getattr)(e,t,I),Module._tuplesort_estimate_shared=e=>(Module._tuplesort_estimate_shared=wasmExports.tuplesort_estimate_shared)(e),Module._tuplesort_initialize_shared=(e,t,I)=>(Module._tuplesort_initialize_shared=wasmExports.tuplesort_initialize_shared)(e,t,I),Module._tuplesort_attach_shared=(e,t)=>(Module._tuplesort_attach_shared=wasmExports.tuplesort_attach_shared)(e,t),Module._GetCurrentTransactionNestLevel=()=>(Module._GetCurrentTransactionNestLevel=wasmExports.GetCurrentTransactionNestLevel)(),Module._in_error_recursion_trouble=()=>(Module._in_error_recursion_trouble=wasmExports.in_error_recursion_trouble)(),Module._strrchr=(e,t)=>(Module._strrchr=wasmExports.strrchr)(e,t),Module._errhidestmt=e=>(Module._errhidestmt=wasmExports.errhidestmt)(e),Module._err_generic_string=(e,t)=>(Module._err_generic_string=wasmExports.err_generic_string)(e,t),Module._getinternalerrposition=()=>(Module._getinternalerrposition=wasmExports.getinternalerrposition)(),Module._GetErrorContextStack=()=>(Module._GetErrorContextStack=wasmExports.GetErrorContextStack)(),Module._SplitIdentifierString=(e,t,I)=>(Module._SplitIdentifierString=wasmExports.SplitIdentifierString)(e,t,I),Module._appendStringInfoSpaces=(e,t)=>(Module._appendStringInfoSpaces=wasmExports.appendStringInfoSpaces)(e,t),Module._unpack_sql_state=e=>(Module._unpack_sql_state=wasmExports.unpack_sql_state)(e),Module._CreateTupleDescCopyConstr=e=>(Module._CreateTupleDescCopyConstr=wasmExports.CreateTupleDescCopyConstr)(e),Module._CachedPlanAllowsSimpleValidityCheck=(e,t,I)=>(Module._CachedPlanAllowsSimpleValidityCheck=wasmExports.CachedPlanAllowsSimpleValidityCheck)(e,t,I),Module._CachedPlanIsSimplyValid=(e,t,I)=>(Module._CachedPlanIsSimplyValid=wasmExports.CachedPlanIsSimplyValid)(e,t,I),Module._GetCachedExpression=e=>(Module._GetCachedExpression=wasmExports.GetCachedExpression)(e),Module._FreeCachedExpression=e=>(Module._FreeCachedExpression=wasmExports.FreeCachedExpression)(e),Module._MemoryContextDeleteChildren=e=>(Module._MemoryContextDeleteChildren=wasmExports.MemoryContextDeleteChildren)(e),Module._is_publishable_relation=e=>(Module._is_publishable_relation=wasmExports.is_publishable_relation)(e),Module._GetRelationPublications=e=>(Module._GetRelationPublications=wasmExports.GetRelationPublications)(e),Module._GetSchemaPublications=e=>(Module._GetSchemaPublications=wasmExports.GetSchemaPublications)(e),Module._index_getprocid=(e,t,I)=>(Module._index_getprocid=wasmExports.index_getprocid)(e,t,I),Module._get_rel_relispartition=e=>(Module._get_rel_relispartition=wasmExports.get_rel_relispartition)(e),Module._get_func_namespace=e=>(Module._get_func_namespace=wasmExports.get_func_namespace)(e),Module._get_typsubscript=(e,t)=>(Module._get_typsubscript=wasmExports.get_typsubscript)(e,t),Module._get_namespace_name_or_temp=e=>(Module._get_namespace_name_or_temp=wasmExports.get_namespace_name_or_temp)(e),Module._texteq=e=>(Module._texteq=wasmExports.texteq)(e),Module._GetUserIdAndSecContext=(e,t)=>(Module._GetUserIdAndSecContext=wasmExports.GetUserIdAndSecContext)(e,t),Module._SetUserIdAndSecContext=(e,t)=>(Module._SetUserIdAndSecContext=wasmExports.SetUserIdAndSecContext)(e,t),Module._DirectFunctionCall5Coll=(e,t,I,B,tr,rr,ir)=>(Module._DirectFunctionCall5Coll=wasmExports.DirectFunctionCall5Coll)(e,t,I,B,tr,rr,ir),Module._CallerFInfoFunctionCall2=(e,t,I,B,tr)=>(Module._CallerFInfoFunctionCall2=wasmExports.CallerFInfoFunctionCall2)(e,t,I,B,tr),Module._FunctionCall0Coll=(e,t)=>(Module._FunctionCall0Coll=wasmExports.FunctionCall0Coll)(e,t),Module._OutputFunctionCall=(e,t)=>(Module._OutputFunctionCall=wasmExports.OutputFunctionCall)(e,t),Module._get_fn_expr_rettype=e=>(Module._get_fn_expr_rettype=wasmExports.get_fn_expr_rettype)(e),Module._has_fn_opclass_options=e=>(Module._has_fn_opclass_options=wasmExports.has_fn_opclass_options)(e),Module._get_fn_opclass_options=e=>(Module._get_fn_opclass_options=wasmExports.get_fn_opclass_options)(e),Module._CheckFunctionValidatorAccess=(e,t)=>(Module._CheckFunctionValidatorAccess=wasmExports.CheckFunctionValidatorAccess)(e,t),Module._resolve_polymorphic_argtypes=(e,t,I,B)=>(Module._resolve_polymorphic_argtypes=wasmExports.resolve_polymorphic_argtypes)(e,t,I,B),Module._get_func_arg_info=(e,t,I,B)=>(Module._get_func_arg_info=wasmExports.get_func_arg_info)(e,t,I,B),Module._dlsym=(e,t)=>(Module._dlsym=wasmExports.dlsym)(e,t),Module._dlopen=(e,t)=>(Module._dlopen=wasmExports.dlopen)(e,t),Module._dlerror=()=>(Module._dlerror=wasmExports.dlerror)(),Module._dlclose=e=>(Module._dlclose=wasmExports.dlclose)(e),Module._find_rendezvous_variable=e=>(Module._find_rendezvous_variable=wasmExports.find_rendezvous_variable)(e),Module._fscanf=(e,t,I)=>(Module._fscanf=wasmExports.fscanf)(e,t,I),Module._strlcat=(e,t,I)=>(Module._strlcat=wasmExports.strlcat)(e,t,I),Module._pg_bindtextdomain=e=>(Module._pg_bindtextdomain=wasmExports.pg_bindtextdomain)(e),Module._pg_do_encoding_conversion=(e,t,I,B)=>(Module._pg_do_encoding_conversion=wasmExports.pg_do_encoding_conversion)(e,t,I,B),Module._report_invalid_encoding=(e,t,I)=>(Module._report_invalid_encoding=wasmExports.report_invalid_encoding)(e,t,I),Module._pg_encoding_to_char_private=e=>(Module._pg_encoding_to_char_private=wasmExports.pg_encoding_to_char_private)(e),Module._MemoryContextAllocHuge=(e,t)=>(Module._MemoryContextAllocHuge=wasmExports.MemoryContextAllocHuge)(e,t),Module._namein=e=>(Module._namein=wasmExports.namein)(e),Module._pg_char_to_encoding_private=e=>(Module._pg_char_to_encoding_private=wasmExports.pg_char_to_encoding_private)(e),Module._pg_encoding_max_length=e=>(Module._pg_encoding_max_length=wasmExports.pg_encoding_max_length)(e),Module._pg_server_to_any=(e,t,I)=>(Module._pg_server_to_any=wasmExports.pg_server_to_any)(e,t,I),Module._pg_utf_mblen=e=>(Module._pg_utf_mblen=wasmExports.pg_utf_mblen)(e),Module._pg_wchar2mb_with_len=(e,t,I)=>(Module._pg_wchar2mb_with_len=wasmExports.pg_wchar2mb_with_len)(e,t,I),Module._pg_encoding_mblen=(e,t)=>(Module._pg_encoding_mblen=wasmExports.pg_encoding_mblen)(e,t),Module._check_encoding_conversion_args=(e,t,I,B,tr)=>(Module._check_encoding_conversion_args=wasmExports.check_encoding_conversion_args)(e,t,I,B,tr),Module._report_untranslatable_char=(e,t,I,B)=>(Module._report_untranslatable_char=wasmExports.report_untranslatable_char)(e,t,I,B),Module._local2local=(e,t,I,B,tr,rr,ir)=>(Module._local2local=wasmExports.local2local)(e,t,I,B,tr,rr,ir),Module._latin2mic=(e,t,I,B,tr,rr)=>(Module._latin2mic=wasmExports.latin2mic)(e,t,I,B,tr,rr),Module._mic2latin=(e,t,I,B,tr,rr)=>(Module._mic2latin=wasmExports.mic2latin)(e,t,I,B,tr,rr),Module._latin2mic_with_table=(e,t,I,B,tr,rr,ir)=>(Module._latin2mic_with_table=wasmExports.latin2mic_with_table)(e,t,I,B,tr,rr,ir),Module._mic2latin_with_table=(e,t,I,B,tr,rr,ir)=>(Module._mic2latin_with_table=wasmExports.mic2latin_with_table)(e,t,I,B,tr,rr,ir),Module._pg_encoding_verifymbchar=(e,t,I)=>(Module._pg_encoding_verifymbchar=wasmExports.pg_encoding_verifymbchar)(e,t,I),Module._float_overflow_error=()=>(Module._float_overflow_error=wasmExports.float_overflow_error)(),Module._float_underflow_error=()=>(Module._float_underflow_error=wasmExports.float_underflow_error)(),Module._float4in_internal=(e,t,I,B,tr)=>(Module._float4in_internal=wasmExports.float4in_internal)(e,t,I,B,tr),Module._strtof=(e,t)=>(Module._strtof=wasmExports.strtof)(e,t),Module._float_to_shortest_decimal_buf=(e,t)=>(Module._float_to_shortest_decimal_buf=wasmExports.float_to_shortest_decimal_buf)(e,t),Module._float8in_internal=(e,t,I,B,tr)=>(Module._float8in_internal=wasmExports.float8in_internal)(e,t,I,B,tr),Module._float8out_internal=e=>(Module._float8out_internal=wasmExports.float8out_internal)(e),Module._btfloat4cmp=e=>(Module._btfloat4cmp=wasmExports.btfloat4cmp)(e),Module._btfloat8cmp=e=>(Module._btfloat8cmp=wasmExports.btfloat8cmp)(e),Module._pow=(e,t)=>(Module._pow=wasmExports.pow)(e,t),Module._log10=e=>(Module._log10=wasmExports.log10)(e),Module._acos=e=>(Module._acos=wasmExports.acos)(e),Module._asin=e=>(Module._asin=wasmExports.asin)(e),Module._cos=e=>(Module._cos=wasmExports.cos)(e),Module._sin=e=>(Module._sin=wasmExports.sin)(e),Module._fmod=(e,t)=>(Module._fmod=wasmExports.fmod)(e,t),Module._construct_array=(e,t,I,B,tr,rr)=>(Module._construct_array=wasmExports.construct_array)(e,t,I,B,tr,rr),Module._try_relation_open=(e,t)=>(Module._try_relation_open=wasmExports.try_relation_open)(e,t),Module._forkname_to_number=e=>(Module._forkname_to_number=wasmExports.forkname_to_number)(e),Module._numeric_lt=e=>(Module._numeric_lt=wasmExports.numeric_lt)(e),Module._int64_to_numeric=e=>(Module._int64_to_numeric=wasmExports.int64_to_numeric)(e),Module._numeric_sub=e=>(Module._numeric_sub=wasmExports.numeric_sub)(e),Module._numeric_ge=e=>(Module._numeric_ge=wasmExports.numeric_ge)(e),Module._inet_in=e=>(Module._inet_in=wasmExports.inet_in)(e),Module._format_operator=e=>(Module._format_operator=wasmExports.format_operator)(e),Module._RelationIsVisible=e=>(Module._RelationIsVisible=wasmExports.RelationIsVisible)(e),Module._pg_get_indexdef_columns_extended=(e,t)=>(Module._pg_get_indexdef_columns_extended=wasmExports.pg_get_indexdef_columns_extended)(e,t),Module._accumArrayResult=(e,t,I,B,tr)=>(Module._accumArrayResult=wasmExports.accumArrayResult)(e,t,I,B,tr),Module._makeArrayResult=(e,t)=>(Module._makeArrayResult=wasmExports.makeArrayResult)(e,t),Module._init_local_reloptions=(e,t)=>(Module._init_local_reloptions=wasmExports.init_local_reloptions)(e,t),Module._add_local_int_reloption=(e,t,I,B,tr,rr,ir)=>(Module._add_local_int_reloption=wasmExports.add_local_int_reloption)(e,t,I,B,tr,rr,ir),Module._pg_inet_net_ntop=(e,t,I,B,tr)=>(Module._pg_inet_net_ntop=wasmExports.pg_inet_net_ntop)(e,t,I,B,tr),Module._network_cmp=e=>(Module._network_cmp=wasmExports.network_cmp)(e),Module._convert_network_to_scalar=(e,t,I)=>(Module._convert_network_to_scalar=wasmExports.convert_network_to_scalar)(e,t,I),Module._JsonbValueToJsonb=e=>(Module._JsonbValueToJsonb=wasmExports.JsonbValueToJsonb)(e),Module._pushJsonbValue=(e,t,I)=>(Module._pushJsonbValue=wasmExports.pushJsonbValue)(e,t,I),Module._numeric_cmp=e=>(Module._numeric_cmp=wasmExports.numeric_cmp)(e),Module._timetz_cmp=e=>(Module._timetz_cmp=wasmExports.timetz_cmp)(e),Module._date_cmp=e=>(Module._date_cmp=wasmExports.date_cmp)(e),Module._time_cmp=e=>(Module._time_cmp=wasmExports.time_cmp)(e),Module._timestamp_cmp=e=>(Module._timestamp_cmp=wasmExports.timestamp_cmp)(e),Module._domain_check=(e,t,I,B,tr)=>(Module._domain_check=wasmExports.domain_check)(e,t,I,B,tr),Module._initArrayResult=(e,t,I)=>(Module._initArrayResult=wasmExports.initArrayResult)(e,t,I),Module._path_is_prefix_of_path=(e,t)=>(Module._path_is_prefix_of_path=wasmExports.path_is_prefix_of_path)(e,t),Module._path_is_relative_and_below_cwd=e=>(Module._path_is_relative_and_below_cwd=wasmExports.path_is_relative_and_below_cwd)(e),Module._ArrayGetIntegerTypmods=(e,t)=>(Module._ArrayGetIntegerTypmods=wasmExports.ArrayGetIntegerTypmods)(e,t),Module._bpchareq=e=>(Module._bpchareq=wasmExports.bpchareq)(e),Module._varstr_cmp=(e,t,I,B,tr)=>(Module._varstr_cmp=wasmExports.varstr_cmp)(e,t,I,B,tr),Module._bpcharlt=e=>(Module._bpcharlt=wasmExports.bpcharlt)(e),Module._bpcharle=e=>(Module._bpcharle=wasmExports.bpcharle)(e),Module._bpchargt=e=>(Module._bpchargt=wasmExports.bpchargt)(e),Module._bpcharge=e=>(Module._bpcharge=wasmExports.bpcharge)(e),Module._bpcharcmp=e=>(Module._bpcharcmp=wasmExports.bpcharcmp)(e),Module._current_query=e=>(Module._current_query=wasmExports.current_query)(e),Module._str_tolower=(e,t,I)=>(Module._str_tolower=wasmExports.str_tolower)(e,t,I),Module._TransferExpandedObject=(e,t)=>(Module._TransferExpandedObject=wasmExports.TransferExpandedObject)(e,t),Module._macaddr_cmp=e=>(Module._macaddr_cmp=wasmExports.macaddr_cmp)(e),Module._macaddr_lt=e=>(Module._macaddr_lt=wasmExports.macaddr_lt)(e),Module._macaddr_le=e=>(Module._macaddr_le=wasmExports.macaddr_le)(e),Module._macaddr_eq=e=>(Module._macaddr_eq=wasmExports.macaddr_eq)(e),Module._macaddr_ge=e=>(Module._macaddr_ge=wasmExports.macaddr_ge)(e),Module._macaddr_gt=e=>(Module._macaddr_gt=wasmExports.macaddr_gt)(e),Module._quote_ident=e=>(Module._quote_ident=wasmExports.quote_ident)(e),Module._timestamp_in=e=>(Module._timestamp_in=wasmExports.timestamp_in)(e),Module._ParseDateTime=(e,t,I,B,tr,rr,ir)=>(Module._ParseDateTime=wasmExports.ParseDateTime)(e,t,I,B,tr,rr,ir),Module._DecodeDateTime=(e,t,I,B,tr,rr,ir,lr)=>(Module._DecodeDateTime=wasmExports.DecodeDateTime)(e,t,I,B,tr,rr,ir,lr),Module.___multi3=(e,t,I,B,tr)=>(Module.___multi3=wasmExports.__multi3)(e,t,I,B,tr),Module._timestamptz_in=e=>(Module._timestamptz_in=wasmExports.timestamptz_in)(e),Module._timestamp_eq=e=>(Module._timestamp_eq=wasmExports.timestamp_eq)(e),Module._timestamp_lt=e=>(Module._timestamp_lt=wasmExports.timestamp_lt)(e),Module._timestamp_gt=e=>(Module._timestamp_gt=wasmExports.timestamp_gt)(e),Module._timestamp_le=e=>(Module._timestamp_le=wasmExports.timestamp_le)(e),Module._timestamp_ge=e=>(Module._timestamp_ge=wasmExports.timestamp_ge)(e),Module._interval_eq=e=>(Module._interval_eq=wasmExports.interval_eq)(e),Module._interval_lt=e=>(Module._interval_lt=wasmExports.interval_lt)(e),Module._interval_gt=e=>(Module._interval_gt=wasmExports.interval_gt)(e),Module._interval_le=e=>(Module._interval_le=wasmExports.interval_le)(e),Module._interval_ge=e=>(Module._interval_ge=wasmExports.interval_ge)(e),Module._interval_cmp=e=>(Module._interval_cmp=wasmExports.interval_cmp)(e),Module._timestamp_mi=e=>(Module._timestamp_mi=wasmExports.timestamp_mi)(e),Module._interval_um=e=>(Module._interval_um=wasmExports.interval_um)(e),Module._interval_mi=e=>(Module._interval_mi=wasmExports.interval_mi)(e),Module._IsValidJsonNumber=(e,t)=>(Module._IsValidJsonNumber=wasmExports.IsValidJsonNumber)(e,t),Module._btnamecmp=e=>(Module._btnamecmp=wasmExports.btnamecmp)(e),Module._strncpy=(e,t,I)=>(Module._strncpy=wasmExports.strncpy)(e,t,I),Module._expand_array=(e,t,I)=>(Module._expand_array=wasmExports.expand_array)(e,t,I),Module._pg_get_encoding_from_locale=(e,t)=>(Module._pg_get_encoding_from_locale=wasmExports.pg_get_encoding_from_locale)(e,t),Module._localtime=e=>(Module._localtime=wasmExports.localtime)(e),Module._strftime=(e,t,I,B)=>(Module._strftime=wasmExports.strftime)(e,t,I,B),Module._numeric_is_nan=e=>(Module._numeric_is_nan=wasmExports.numeric_is_nan)(e),Module._numeric_eq=e=>(Module._numeric_eq=wasmExports.numeric_eq)(e),Module._numeric_gt=e=>(Module._numeric_gt=wasmExports.numeric_gt)(e),Module._numeric_le=e=>(Module._numeric_le=wasmExports.numeric_le)(e),Module._numeric_div=e=>(Module._numeric_div=wasmExports.numeric_div)(e),Module._numeric_float8_no_overflow=e=>(Module._numeric_float8_no_overflow=wasmExports.numeric_float8_no_overflow)(e),Module._numeric_float4=e=>(Module._numeric_float4=wasmExports.numeric_float4)(e),Module._date_eq=e=>(Module._date_eq=wasmExports.date_eq)(e),Module._date_lt=e=>(Module._date_lt=wasmExports.date_lt)(e),Module._date_le=e=>(Module._date_le=wasmExports.date_le)(e),Module._date_gt=e=>(Module._date_gt=wasmExports.date_gt)(e),Module._date_ge=e=>(Module._date_ge=wasmExports.date_ge)(e),Module._date_mi=e=>(Module._date_mi=wasmExports.date_mi)(e),Module._time_eq=e=>(Module._time_eq=wasmExports.time_eq)(e),Module._time_lt=e=>(Module._time_lt=wasmExports.time_lt)(e),Module._time_le=e=>(Module._time_le=wasmExports.time_le)(e),Module._time_gt=e=>(Module._time_gt=wasmExports.time_gt)(e),Module._time_ge=e=>(Module._time_ge=wasmExports.time_ge)(e),Module._time_mi_time=e=>(Module._time_mi_time=wasmExports.time_mi_time)(e),Module._get_extension_oid=(e,t)=>(Module._get_extension_oid=wasmExports.get_extension_oid)(e,t),Module._pg_ltoa=(e,t)=>(Module._pg_ltoa=wasmExports.pg_ltoa)(e,t),Module._varbit_in=e=>(Module._varbit_in=wasmExports.varbit_in)(e),Module._biteq=e=>(Module._biteq=wasmExports.biteq)(e),Module._bitlt=e=>(Module._bitlt=wasmExports.bitlt)(e),Module._bitle=e=>(Module._bitle=wasmExports.bitle)(e),Module._bitgt=e=>(Module._bitgt=wasmExports.bitgt)(e),Module._bitge=e=>(Module._bitge=wasmExports.bitge)(e),Module._bitcmp=e=>(Module._bitcmp=wasmExports.bitcmp)(e),Module._tidin=e=>(Module._tidin=wasmExports.tidin)(e),Module._tidout=e=>(Module._tidout=wasmExports.tidout)(e),Module._cash_cmp=e=>(Module._cash_cmp=wasmExports.cash_cmp)(e),Module._arraycontsel=e=>(Module._arraycontsel=wasmExports.arraycontsel)(e),Module._arraycontjoinsel=e=>(Module._arraycontjoinsel=wasmExports.arraycontjoinsel)(e),Module._text_lt=e=>(Module._text_lt=wasmExports.text_lt)(e),Module._text_le=e=>(Module._text_le=wasmExports.text_le)(e),Module._text_gt=e=>(Module._text_gt=wasmExports.text_gt)(e),Module._text_ge=e=>(Module._text_ge=wasmExports.text_ge)(e),Module._bttextcmp=e=>(Module._bttextcmp=wasmExports.bttextcmp)(e),Module._byteaeq=e=>(Module._byteaeq=wasmExports.byteaeq)(e),Module._bytealt=e=>(Module._bytealt=wasmExports.bytealt)(e),Module._byteale=e=>(Module._byteale=wasmExports.byteale)(e),Module._byteagt=e=>(Module._byteagt=wasmExports.byteagt)(e),Module._byteage=e=>(Module._byteage=wasmExports.byteage)(e),Module._byteacmp=e=>(Module._byteacmp=wasmExports.byteacmp)(e),Module._to_hex32=e=>(Module._to_hex32=wasmExports.to_hex32)(e),Module._varstr_levenshtein=(e,t,I,B,tr,rr,ir,lr)=>(Module._varstr_levenshtein=wasmExports.varstr_levenshtein)(e,t,I,B,tr,rr,ir,lr),Module._utf8_to_unicode=e=>(Module._utf8_to_unicode=wasmExports.utf8_to_unicode)(e),Module._format_type_extended=(e,t,I)=>(Module._format_type_extended=wasmExports.format_type_extended)(e,t,I),Module._array_create_iterator=(e,t,I)=>(Module._array_create_iterator=wasmExports.array_create_iterator)(e,t,I),Module._array_iterate=(e,t,I)=>(Module._array_iterate=wasmExports.array_iterate)(e,t,I),Module._make_expanded_record_from_typeid=(e,t,I)=>(Module._make_expanded_record_from_typeid=wasmExports.make_expanded_record_from_typeid)(e,t,I),Module._make_expanded_record_from_tupdesc=(e,t)=>(Module._make_expanded_record_from_tupdesc=wasmExports.make_expanded_record_from_tupdesc)(e,t),Module._make_expanded_record_from_exprecord=(e,t)=>(Module._make_expanded_record_from_exprecord=wasmExports.make_expanded_record_from_exprecord)(e,t),Module._expanded_record_set_tuple=(e,t,I,B)=>(Module._expanded_record_set_tuple=wasmExports.expanded_record_set_tuple)(e,t,I,B),Module._expanded_record_get_tuple=e=>(Module._expanded_record_get_tuple=wasmExports.expanded_record_get_tuple)(e),Module._deconstruct_expanded_record=e=>(Module._deconstruct_expanded_record=wasmExports.deconstruct_expanded_record)(e),Module._expanded_record_lookup_field=(e,t,I)=>(Module._expanded_record_lookup_field=wasmExports.expanded_record_lookup_field)(e,t,I),Module._expanded_record_set_field_internal=(e,t,I,B,tr,rr)=>(Module._expanded_record_set_field_internal=wasmExports.expanded_record_set_field_internal)(e,t,I,B,tr,rr),Module._expanded_record_set_fields=(e,t,I,B)=>(Module._expanded_record_set_fields=wasmExports.expanded_record_set_fields)(e,t,I,B),Module._macaddr8_cmp=e=>(Module._macaddr8_cmp=wasmExports.macaddr8_cmp)(e),Module._macaddr8_lt=e=>(Module._macaddr8_lt=wasmExports.macaddr8_lt)(e),Module._macaddr8_le=e=>(Module._macaddr8_le=wasmExports.macaddr8_le)(e),Module._macaddr8_eq=e=>(Module._macaddr8_eq=wasmExports.macaddr8_eq)(e),Module._macaddr8_ge=e=>(Module._macaddr8_ge=wasmExports.macaddr8_ge)(e),Module._macaddr8_gt=e=>(Module._macaddr8_gt=wasmExports.macaddr8_gt)(e),Module._enum_lt=e=>(Module._enum_lt=wasmExports.enum_lt)(e),Module._enum_le=e=>(Module._enum_le=wasmExports.enum_le)(e),Module._enum_ge=e=>(Module._enum_ge=wasmExports.enum_ge)(e),Module._enum_gt=e=>(Module._enum_gt=wasmExports.enum_gt)(e),Module._enum_cmp=e=>(Module._enum_cmp=wasmExports.enum_cmp)(e),Module._uuid_in=e=>(Module._uuid_in=wasmExports.uuid_in)(e),Module._uuid_out=e=>(Module._uuid_out=wasmExports.uuid_out)(e),Module._uuid_cmp=e=>(Module._uuid_cmp=wasmExports.uuid_cmp)(e),Module._gen_random_uuid=e=>(Module._gen_random_uuid=wasmExports.gen_random_uuid)(e),Module._generic_restriction_selectivity=(e,t,I,B,tr,rr)=>(Module._generic_restriction_selectivity=wasmExports.generic_restriction_selectivity)(e,t,I,B,tr,rr),Module._genericcostestimate=(e,t,I,B)=>(Module._genericcostestimate=wasmExports.genericcostestimate)(e,t,I,B),Module._pg_xml_init=e=>(Module._pg_xml_init=wasmExports.pg_xml_init)(e),Module._xmlInitParser=()=>(Module._xmlInitParser=wasmExports.xmlInitParser)(),Module._xml_ereport=(e,t,I,B)=>(Module._xml_ereport=wasmExports.xml_ereport)(e,t,I,B),Module._pg_xml_done=(e,t)=>(Module._pg_xml_done=wasmExports.pg_xml_done)(e,t),Module._xmlXPathNewContext=e=>(Module._xmlXPathNewContext=wasmExports.xmlXPathNewContext)(e),Module._xmlXPathFreeContext=e=>(Module._xmlXPathFreeContext=wasmExports.xmlXPathFreeContext)(e),Module._xmlFreeDoc=e=>(Module._xmlFreeDoc=wasmExports.xmlFreeDoc)(e),Module._xmlXPathCompile=e=>(Module._xmlXPathCompile=wasmExports.xmlXPathCompile)(e),Module._xmlXPathCompiledEval=(e,t)=>(Module._xmlXPathCompiledEval=wasmExports.xmlXPathCompiledEval)(e,t),Module._xmlXPathFreeCompExpr=e=>(Module._xmlXPathFreeCompExpr=wasmExports.xmlXPathFreeCompExpr)(e),Module._xmlStrdup=e=>(Module._xmlStrdup=wasmExports.xmlStrdup)(e),Module._strnlen=(e,t)=>(Module._strnlen=wasmExports.strnlen)(e,t),Module._xmlXPathCastNodeToString=e=>(Module._xmlXPathCastNodeToString=wasmExports.xmlXPathCastNodeToString)(e),Module._heap_modify_tuple_by_cols=(e,t,I,B,tr,rr)=>(Module._heap_modify_tuple_by_cols=wasmExports.heap_modify_tuple_by_cols)(e,t,I,B,tr,rr),Module._ResourceOwnerReleaseAllPlanCacheRefs=e=>(Module._ResourceOwnerReleaseAllPlanCacheRefs=wasmExports.ResourceOwnerReleaseAllPlanCacheRefs)(e),Module._RegisterResourceReleaseCallback=(e,t)=>(Module._RegisterResourceReleaseCallback=wasmExports.RegisterResourceReleaseCallback)(e,t),Module._PinPortal=e=>(Module._PinPortal=wasmExports.PinPortal)(e),Module._UnpinPortal=e=>(Module._UnpinPortal=wasmExports.UnpinPortal)(e),Module._btint2cmp=e=>(Module._btint2cmp=wasmExports.btint2cmp)(e),Module._btint4cmp=e=>(Module._btint4cmp=wasmExports.btint4cmp)(e),Module._btoidcmp=e=>(Module._btoidcmp=wasmExports.btoidcmp)(e),Module._btcharcmp=e=>(Module._btcharcmp=wasmExports.btcharcmp)(e),Module._btint8cmp=e=>(Module._btint8cmp=wasmExports.btint8cmp)(e),Module._btboolcmp=e=>(Module._btboolcmp=wasmExports.btboolcmp)(e),Module._GetPublicationByName=(e,t)=>(Module._GetPublicationByName=wasmExports.GetPublicationByName)(e,t),Module._GetTopMostAncestorInPublication=(e,t,I)=>(Module._GetTopMostAncestorInPublication=wasmExports.GetTopMostAncestorInPublication)(e,t,I),Module._pub_collist_to_bitmapset=(e,t,I)=>(Module._pub_collist_to_bitmapset=wasmExports.pub_collist_to_bitmapset)(e,t,I),Module._getExtensionOfObject=(e,t)=>(Module._getExtensionOfObject=wasmExports.getExtensionOfObject)(e,t),Module._visibilitymap_prepare_truncate=(e,t)=>(Module._visibilitymap_prepare_truncate=wasmExports.visibilitymap_prepare_truncate)(e,t),Module._log_newpage_range=(e,t,I,B,tr)=>(Module._log_newpage_range=wasmExports.log_newpage_range)(e,t,I,B,tr),Module._function_parse_error_transpose=e=>(Module._function_parse_error_transpose=wasmExports.function_parse_error_transpose)(e),Module._IndexGetRelation=(e,t)=>(Module._IndexGetRelation=wasmExports.IndexGetRelation)(e,t),Module._RelnameGetRelid=e=>(Module._RelnameGetRelid=wasmExports.RelnameGetRelid)(e),Module._standard_ProcessUtility=(e,t,I,B,tr,rr,ir,lr)=>(Module._standard_ProcessUtility=wasmExports.standard_ProcessUtility)(e,t,I,B,tr,rr,ir,lr),Module._Async_Notify=(e,t)=>(Module._Async_Notify=wasmExports.Async_Notify)(e,t),Module._sigaddset=(e,t)=>(Module._sigaddset=wasmExports.sigaddset)(e,t),Module._fsync_pgdata=(e,t)=>(Module._fsync_pgdata=wasmExports.fsync_pgdata)(e,t),Module._get_restricted_token=()=>(Module._get_restricted_token=wasmExports.get_restricted_token)(),Module._pg_malloc=e=>(Module._pg_malloc=wasmExports.pg_malloc)(e),Module._pg_realloc=(e,t)=>(Module._pg_realloc=wasmExports.pg_realloc)(e,t),Module._pg_strdup=e=>(Module._pg_strdup=wasmExports.pg_strdup)(e),Module._simple_prompt=(e,t)=>(Module._simple_prompt=wasmExports.simple_prompt)(e,t),Module._interactive_file=()=>(Module._interactive_file=wasmExports.interactive_file)(),Module._interactive_one=()=>(Module._interactive_one=wasmExports.interactive_one)(),Module._pg_shutdown=()=>(Module._pg_shutdown=wasmExports.pg_shutdown)(),Module._interactive_write=e=>(Module._interactive_write=wasmExports.interactive_write)(e),Module._interactive_read=()=>(Module._interactive_read=wasmExports.interactive_read)(),Module._visibilitymap_pin=(e,t,I)=>(Module._visibilitymap_pin=wasmExports.visibilitymap_pin)(e,t,I),Module._HeapTupleSatisfiesVacuum=(e,t,I)=>(Module._HeapTupleSatisfiesVacuum=wasmExports.HeapTupleSatisfiesVacuum)(e,t,I),Module._visibilitymap_clear=(e,t,I,B)=>(Module._visibilitymap_clear=wasmExports.visibilitymap_clear)(e,t,I,B),Module._vac_estimate_reltuples=(e,t,I,B)=>(Module._vac_estimate_reltuples=wasmExports.vac_estimate_reltuples)(e,t,I,B),Module._heap_tuple_needs_eventual_freeze=e=>(Module._heap_tuple_needs_eventual_freeze=wasmExports.heap_tuple_needs_eventual_freeze)(e),Module._HeapTupleSatisfiesUpdate=(e,t,I)=>(Module._HeapTupleSatisfiesUpdate=wasmExports.HeapTupleSatisfiesUpdate)(e,t,I),Module._HeapTupleGetUpdateXid=e=>(Module._HeapTupleGetUpdateXid=wasmExports.HeapTupleGetUpdateXid)(e),Module._HeapTupleSatisfiesVisibility=(e,t,I)=>(Module._HeapTupleSatisfiesVisibility=wasmExports.HeapTupleSatisfiesVisibility)(e,t,I),Module._GetMultiXactIdMembers=(e,t,I,B)=>(Module._GetMultiXactIdMembers=wasmExports.GetMultiXactIdMembers)(e,t,I,B),Module._XLogRecGetBlockTagExtended=(e,t,I,B,tr,rr)=>(Module._XLogRecGetBlockTagExtended=wasmExports.XLogRecGetBlockTagExtended)(e,t,I,B,tr,rr),Module._toast_open_indexes=(e,t,I,B)=>(Module._toast_open_indexes=wasmExports.toast_open_indexes)(e,t,I,B),Module._init_toast_snapshot=e=>(Module._init_toast_snapshot=wasmExports.init_toast_snapshot)(e),Module._toast_close_indexes=(e,t,I)=>(Module._toast_close_indexes=wasmExports.toast_close_indexes)(e,t,I),Module._index_getprocinfo=(e,t,I)=>(Module._index_getprocinfo=wasmExports.index_getprocinfo)(e,t,I),Module._identify_opfamily_groups=(e,t)=>(Module._identify_opfamily_groups=wasmExports.identify_opfamily_groups)(e,t),Module._check_amproc_signature=(e,t,I,B,tr,rr)=>(Module._check_amproc_signature=wasmExports.check_amproc_signature)(e,t,I,B,tr,rr),Module._check_amoptsproc_signature=e=>(Module._check_amoptsproc_signature=wasmExports.check_amoptsproc_signature)(e),Module._check_amop_signature=(e,t,I,B)=>(Module._check_amop_signature=wasmExports.check_amop_signature)(e,t,I,B),Module._RelationGetIndexScan=(e,t,I)=>(Module._RelationGetIndexScan=wasmExports.RelationGetIndexScan)(e,t,I),Module.__hash_get_indextuple_hashkey=e=>(Module.__hash_get_indextuple_hashkey=wasmExports._hash_get_indextuple_hashkey)(e),Module.__hash_getbuf=(e,t,I,B)=>(Module.__hash_getbuf=wasmExports._hash_getbuf)(e,t,I,B),Module.__hash_relbuf=(e,t)=>(Module.__hash_relbuf=wasmExports._hash_relbuf)(e,t),Module.__hash_getbuf_with_strategy=(e,t,I,B,tr)=>(Module.__hash_getbuf_with_strategy=wasmExports._hash_getbuf_with_strategy)(e,t,I,B,tr),Module._build_reloptions=(e,t,I,B,tr,rr)=>(Module._build_reloptions=wasmExports.build_reloptions)(e,t,I,B,tr,rr),Module._index_form_tuple=(e,t,I)=>(Module._index_form_tuple=wasmExports.index_form_tuple)(e,t,I),Module.__hash_ovflblkno_to_bitno=(e,t)=>(Module.__hash_ovflblkno_to_bitno=wasmExports._hash_ovflblkno_to_bitno)(e,t),Module._brin_build_desc=e=>(Module._brin_build_desc=wasmExports.brin_build_desc)(e),Module._brin_deform_tuple=(e,t,I)=>(Module._brin_deform_tuple=wasmExports.brin_deform_tuple)(e,t,I),Module._brin_free_desc=e=>(Module._brin_free_desc=wasmExports.brin_free_desc)(e),Module._XLogRecGetBlockRefInfo=(e,t,I,B,tr)=>(Module._XLogRecGetBlockRefInfo=wasmExports.XLogRecGetBlockRefInfo)(e,t,I,B,tr),Module._ginPostingListDecode=(e,t)=>(Module._ginPostingListDecode=wasmExports.ginPostingListDecode)(e,t),Module._add_reloption_kind=()=>(Module._add_reloption_kind=wasmExports.add_reloption_kind)(),Module._register_reloptions_validator=(e,t)=>(Module._register_reloptions_validator=wasmExports.register_reloptions_validator)(e,t),Module._add_int_reloption=(e,t,I,B,tr,rr,ir)=>(Module._add_int_reloption=wasmExports.add_int_reloption)(e,t,I,B,tr,rr,ir),Module._XLogFindNextRecord=(e,t)=>(Module._XLogFindNextRecord=wasmExports.XLogFindNextRecord)(e,t),Module._RestoreBlockImage=(e,t,I)=>(Module._RestoreBlockImage=wasmExports.RestoreBlockImage)(e,t,I),Module._GenericXLogStart=e=>(Module._GenericXLogStart=wasmExports.GenericXLogStart)(e),Module._GenericXLogRegisterBuffer=(e,t,I)=>(Module._GenericXLogRegisterBuffer=wasmExports.GenericXLogRegisterBuffer)(e,t,I),Module._GenericXLogFinish=e=>(Module._GenericXLogFinish=wasmExports.GenericXLogFinish)(e),Module._GenericXLogAbort=e=>(Module._GenericXLogAbort=wasmExports.GenericXLogAbort)(e),Module._read_local_xlog_page_no_wait=(e,t,I,B,tr)=>(Module._read_local_xlog_page_no_wait=wasmExports.read_local_xlog_page_no_wait)(e,t,I,B,tr),Module._XLogRecStoreStats=(e,t)=>(Module._XLogRecStoreStats=wasmExports.XLogRecStoreStats)(e,t),Module._ReadMultiXactIdRange=(e,t)=>(Module._ReadMultiXactIdRange=wasmExports.ReadMultiXactIdRange)(e,t),Module._MultiXactIdPrecedesOrEquals=(e,t)=>(Module._MultiXactIdPrecedesOrEquals=wasmExports.MultiXactIdPrecedesOrEquals)(e,t),Module._RegisterXactCallback=(e,t)=>(Module._RegisterXactCallback=wasmExports.RegisterXactCallback)(e,t),Module._RegisterSubXactCallback=(e,t)=>(Module._RegisterSubXactCallback=wasmExports.RegisterSubXactCallback)(e,t),Module._ReleaseCurrentSubTransaction=()=>(Module._ReleaseCurrentSubTransaction=wasmExports.ReleaseCurrentSubTransaction)(),Module._WaitForParallelWorkersToAttach=e=>(Module._WaitForParallelWorkersToAttach=wasmExports.WaitForParallelWorkersToAttach)(e),Module.__bt_allequalimage=(e,t)=>(Module.__bt_allequalimage=wasmExports._bt_allequalimage)(e,t),Module.__bt_checkpage=(e,t)=>(Module.__bt_checkpage=wasmExports._bt_checkpage)(e,t),Module.__bt_relbuf=(e,t)=>(Module.__bt_relbuf=wasmExports._bt_relbuf)(e,t),Module.__bt_metaversion=(e,t,I)=>(Module.__bt_metaversion=wasmExports._bt_metaversion)(e,t,I),Module.__bt_search=(e,t,I,B,tr,rr)=>(Module.__bt_search=wasmExports._bt_search)(e,t,I,B,tr,rr),Module.__bt_compare=(e,t,I,B)=>(Module.__bt_compare=wasmExports._bt_compare)(e,t,I,B),Module.__bt_binsrch_insert=(e,t)=>(Module.__bt_binsrch_insert=wasmExports._bt_binsrch_insert)(e,t),Module.__bt_freestack=e=>(Module.__bt_freestack=wasmExports._bt_freestack)(e),Module.__bt_form_posting=(e,t,I)=>(Module.__bt_form_posting=wasmExports._bt_form_posting)(e,t,I),Module.__bt_check_natts=(e,t,I,B)=>(Module.__bt_check_natts=wasmExports._bt_check_natts)(e,t,I,B),Module._gistcheckpage=(e,t)=>(Module._gistcheckpage=wasmExports.gistcheckpage)(e,t),Module._EndCopyFrom=e=>(Module._EndCopyFrom=wasmExports.EndCopyFrom)(e),Module._ProcessCopyOptions=(e,t,I,B)=>(Module._ProcessCopyOptions=wasmExports.ProcessCopyOptions)(e,t,I,B),Module._CopyFromErrorCallback=e=>(Module._CopyFromErrorCallback=wasmExports.CopyFromErrorCallback)(e),Module._NextCopyFrom=(e,t,I,B)=>(Module._NextCopyFrom=wasmExports.NextCopyFrom)(e,t,I,B),Module._nextval=e=>(Module._nextval=wasmExports.nextval)(e),Module._defGetStreamingMode=e=>(Module._defGetStreamingMode=wasmExports.defGetStreamingMode)(e),Module._ExplainBeginOutput=e=>(Module._ExplainBeginOutput=wasmExports.ExplainBeginOutput)(e),Module._NewExplainState=()=>(Module._NewExplainState=wasmExports.NewExplainState)(),Module._ExplainEndOutput=e=>(Module._ExplainEndOutput=wasmExports.ExplainEndOutput)(e),Module._ExplainPrintPlan=(e,t)=>(Module._ExplainPrintPlan=wasmExports.ExplainPrintPlan)(e,t),Module._ExplainPrintTriggers=(e,t)=>(Module._ExplainPrintTriggers=wasmExports.ExplainPrintTriggers)(e,t),Module._ExplainPrintJITSummary=(e,t)=>(Module._ExplainPrintJITSummary=wasmExports.ExplainPrintJITSummary)(e,t),Module._ExplainPropertyInteger=(e,t,I,B)=>(Module._ExplainPropertyInteger=wasmExports.ExplainPropertyInteger)(e,t,I,B),Module._ExplainQueryText=(e,t)=>(Module._ExplainQueryText=wasmExports.ExplainQueryText)(e,t),Module._ExplainPropertyText=(e,t,I)=>(Module._ExplainPropertyText=wasmExports.ExplainPropertyText)(e,t,I),Module._ExplainQueryParameters=(e,t,I)=>(Module._ExplainQueryParameters=wasmExports.ExplainQueryParameters)(e,t,I),Module._pg_is_ascii=e=>(Module._pg_is_ascii=wasmExports.pg_is_ascii)(e),Module._fputs=(e,t)=>(Module._fputs=wasmExports.fputs)(e,t),Module._popen=(e,t)=>(Module._popen=wasmExports.popen)(e,t),Module._float_to_shortest_decimal_bufn=(e,t)=>(Module._float_to_shortest_decimal_bufn=wasmExports.float_to_shortest_decimal_bufn)(e,t),Module._pg_prng_uint64=e=>(Module._pg_prng_uint64=wasmExports.pg_prng_uint64)(e),Module._scram_ClientKey=(e,t,I,B,tr)=>(Module._scram_ClientKey=wasmExports.scram_ClientKey)(e,t,I,B,tr),Module._pg_encoding_dsplen=(e,t)=>(Module._pg_encoding_dsplen=wasmExports.pg_encoding_dsplen)(e,t),Module._getcwd=(e,t)=>(Module._getcwd=wasmExports.getcwd)(e,t),Module._pg_get_user_home_dir=(e,t,I)=>(Module._pg_get_user_home_dir=wasmExports.pg_get_user_home_dir)(e,t,I),Module._nanosleep=(e,t)=>(Module._nanosleep=wasmExports.nanosleep)(e,t),Module._snprintf=(e,t,I,B)=>(Module._snprintf=wasmExports.snprintf)(e,t,I,B),Module._pg_strerror_r=(e,t,I)=>(Module._pg_strerror_r=wasmExports.pg_strerror_r)(e,t,I),Module._pthread_mutex_lock=e=>(Module._pthread_mutex_lock=wasmExports.pthread_mutex_lock)(e),Module._pthread_mutex_unlock=e=>(Module._pthread_mutex_unlock=wasmExports.pthread_mutex_unlock)(e),Module._strncat=(e,t,I)=>(Module._strncat=wasmExports.strncat)(e,t,I),Module._PQexec=(e,t)=>(Module._PQexec=wasmExports.PQexec)(e,t),Module._PQsetSingleRowMode=e=>(Module._PQsetSingleRowMode=wasmExports.PQsetSingleRowMode)(e),Module._PQcmdStatus=e=>(Module._PQcmdStatus=wasmExports.PQcmdStatus)(e),Module._pthread_sigmask=(e,t,I)=>(Module._pthread_sigmask=wasmExports.pthread_sigmask)(e,t,I),Module._sigismember=(e,t)=>(Module._sigismember=wasmExports.sigismember)(e,t),Module._sigpending=e=>(Module._sigpending=wasmExports.sigpending)(e),Module._sigwait=(e,t)=>(Module._sigwait=wasmExports.sigwait)(e,t),Module._isolat1ToUTF8=(e,t,I,B)=>(Module._isolat1ToUTF8=wasmExports.isolat1ToUTF8)(e,t,I,B),Module._UTF8Toisolat1=(e,t,I,B)=>(Module._UTF8Toisolat1=wasmExports.UTF8Toisolat1)(e,t,I,B),Module._vfprintf=(e,t,I)=>(Module._vfprintf=wasmExports.vfprintf)(e,t,I),Module._vsnprintf=(e,t,I,B)=>(Module._vsnprintf=wasmExports.vsnprintf)(e,t,I,B),Module._xmlParserValidityWarning=(e,t,I)=>(Module._xmlParserValidityWarning=wasmExports.xmlParserValidityWarning)(e,t,I),Module._xmlParserValidityError=(e,t,I)=>(Module._xmlParserValidityError=wasmExports.xmlParserValidityError)(e,t,I),Module._xmlParserError=(e,t,I)=>(Module._xmlParserError=wasmExports.xmlParserError)(e,t,I),Module._xmlParserWarning=(e,t,I)=>(Module._xmlParserWarning=wasmExports.xmlParserWarning)(e,t,I),Module._fprintf=(e,t,I)=>(Module._fprintf=wasmExports.fprintf)(e,t,I),Module.___xmlParserInputBufferCreateFilename=(e,t)=>(Module.___xmlParserInputBufferCreateFilename=wasmExports.__xmlParserInputBufferCreateFilename)(e,t),Module.___xmlOutputBufferCreateFilename=(e,t,I)=>(Module.___xmlOutputBufferCreateFilename=wasmExports.__xmlOutputBufferCreateFilename)(e,t,I),Module._xmlSAX2InternalSubset=(e,t,I,B)=>(Module._xmlSAX2InternalSubset=wasmExports.xmlSAX2InternalSubset)(e,t,I,B),Module._xmlSAX2IsStandalone=e=>(Module._xmlSAX2IsStandalone=wasmExports.xmlSAX2IsStandalone)(e),Module._xmlSAX2HasInternalSubset=e=>(Module._xmlSAX2HasInternalSubset=wasmExports.xmlSAX2HasInternalSubset)(e),Module._xmlSAX2HasExternalSubset=e=>(Module._xmlSAX2HasExternalSubset=wasmExports.xmlSAX2HasExternalSubset)(e),Module._xmlSAX2ResolveEntity=(e,t,I)=>(Module._xmlSAX2ResolveEntity=wasmExports.xmlSAX2ResolveEntity)(e,t,I),Module._xmlSAX2GetEntity=(e,t)=>(Module._xmlSAX2GetEntity=wasmExports.xmlSAX2GetEntity)(e,t),Module._xmlSAX2EntityDecl=(e,t,I,B,tr,rr)=>(Module._xmlSAX2EntityDecl=wasmExports.xmlSAX2EntityDecl)(e,t,I,B,tr,rr),Module._xmlSAX2NotationDecl=(e,t,I,B)=>(Module._xmlSAX2NotationDecl=wasmExports.xmlSAX2NotationDecl)(e,t,I,B),Module._xmlSAX2AttributeDecl=(e,t,I,B,tr,rr,ir)=>(Module._xmlSAX2AttributeDecl=wasmExports.xmlSAX2AttributeDecl)(e,t,I,B,tr,rr,ir),Module._xmlSAX2ElementDecl=(e,t,I,B)=>(Module._xmlSAX2ElementDecl=wasmExports.xmlSAX2ElementDecl)(e,t,I,B),Module._xmlSAX2UnparsedEntityDecl=(e,t,I,B,tr)=>(Module._xmlSAX2UnparsedEntityDecl=wasmExports.xmlSAX2UnparsedEntityDecl)(e,t,I,B,tr),Module._xmlSAX2SetDocumentLocator=(e,t)=>(Module._xmlSAX2SetDocumentLocator=wasmExports.xmlSAX2SetDocumentLocator)(e,t),Module._xmlSAX2StartDocument=e=>(Module._xmlSAX2StartDocument=wasmExports.xmlSAX2StartDocument)(e),Module._xmlSAX2EndDocument=e=>(Module._xmlSAX2EndDocument=wasmExports.xmlSAX2EndDocument)(e),Module._xmlSAX2StartElement=(e,t,I)=>(Module._xmlSAX2StartElement=wasmExports.xmlSAX2StartElement)(e,t,I),Module._xmlSAX2EndElement=(e,t)=>(Module._xmlSAX2EndElement=wasmExports.xmlSAX2EndElement)(e,t),Module._xmlSAX2Reference=(e,t)=>(Module._xmlSAX2Reference=wasmExports.xmlSAX2Reference)(e,t),Module._xmlSAX2Characters=(e,t,I)=>(Module._xmlSAX2Characters=wasmExports.xmlSAX2Characters)(e,t,I),Module._xmlSAX2ProcessingInstruction=(e,t,I)=>(Module._xmlSAX2ProcessingInstruction=wasmExports.xmlSAX2ProcessingInstruction)(e,t,I),Module._xmlSAX2Comment=(e,t)=>(Module._xmlSAX2Comment=wasmExports.xmlSAX2Comment)(e,t),Module._xmlSAX2GetParameterEntity=(e,t)=>(Module._xmlSAX2GetParameterEntity=wasmExports.xmlSAX2GetParameterEntity)(e,t),Module._xmlSAX2CDataBlock=(e,t,I)=>(Module._xmlSAX2CDataBlock=wasmExports.xmlSAX2CDataBlock)(e,t,I),Module._xmlSAX2ExternalSubset=(e,t,I,B)=>(Module._xmlSAX2ExternalSubset=wasmExports.xmlSAX2ExternalSubset)(e,t,I,B),Module._xmlSAX2GetPublicId=e=>(Module._xmlSAX2GetPublicId=wasmExports.xmlSAX2GetPublicId)(e),Module._xmlSAX2GetSystemId=e=>(Module._xmlSAX2GetSystemId=wasmExports.xmlSAX2GetSystemId)(e),Module._xmlSAX2GetLineNumber=e=>(Module._xmlSAX2GetLineNumber=wasmExports.xmlSAX2GetLineNumber)(e),Module._xmlSAX2GetColumnNumber=e=>(Module._xmlSAX2GetColumnNumber=wasmExports.xmlSAX2GetColumnNumber)(e),Module._xmlSAX2IgnorableWhitespace=(e,t,I)=>(Module._xmlSAX2IgnorableWhitespace=wasmExports.xmlSAX2IgnorableWhitespace)(e,t,I),Module._xmlHashDefaultDeallocator=(e,t)=>(Module._xmlHashDefaultDeallocator=wasmExports.xmlHashDefaultDeallocator)(e,t),Module._iconv_open=(e,t)=>(Module._iconv_open=wasmExports.iconv_open)(e,t),Module._iconv_close=e=>(Module._iconv_close=wasmExports.iconv_close)(e),Module._iconv=(e,t,I,B,tr)=>(Module._iconv=wasmExports.iconv)(e,t,I,B,tr),Module._UTF8ToHtml=(e,t,I,B)=>(Module._UTF8ToHtml=wasmExports.UTF8ToHtml)(e,t,I,B),Module._xmlReadMemory=(e,t,I,B,tr)=>(Module._xmlReadMemory=wasmExports.xmlReadMemory)(e,t,I,B,tr),Module._xmlSAX2StartElementNs=(e,t,I,B,tr,rr,ir,lr,dr)=>(Module._xmlSAX2StartElementNs=wasmExports.xmlSAX2StartElementNs)(e,t,I,B,tr,rr,ir,lr,dr),Module._xmlSAX2EndElementNs=(e,t,I,B)=>(Module._xmlSAX2EndElementNs=wasmExports.xmlSAX2EndElementNs)(e,t,I,B),Module.___cxa_atexit=(e,t,I)=>(Module.___cxa_atexit=wasmExports.__cxa_atexit)(e,t,I),Module._xmlDocGetRootElement=e=>(Module._xmlDocGetRootElement=wasmExports.xmlDocGetRootElement)(e),Module._xmlFileMatch=e=>(Module._xmlFileMatch=wasmExports.xmlFileMatch)(e),Module._xmlFileOpen=e=>(Module._xmlFileOpen=wasmExports.xmlFileOpen)(e),Module._xmlFileRead=(e,t,I)=>(Module._xmlFileRead=wasmExports.xmlFileRead)(e,t,I),Module._xmlFileClose=e=>(Module._xmlFileClose=wasmExports.xmlFileClose)(e),Module._gzread=(e,t,I)=>(Module._gzread=wasmExports.gzread)(e,t,I),Module._gzclose=e=>(Module._gzclose=wasmExports.gzclose)(e),Module._gzdirect=e=>(Module._gzdirect=wasmExports.gzdirect)(e),Module._gzdopen=(e,t)=>(Module._gzdopen=wasmExports.gzdopen)(e,t),Module._gzopen=(e,t)=>(Module._gzopen=wasmExports.gzopen)(e,t),Module._gzwrite=(e,t,I)=>(Module._gzwrite=wasmExports.gzwrite)(e,t,I),Module._xmlUCSIsCatNd=e=>(Module._xmlUCSIsCatNd=wasmExports.xmlUCSIsCatNd)(e),Module._xmlUCSIsCatP=e=>(Module._xmlUCSIsCatP=wasmExports.xmlUCSIsCatP)(e),Module._xmlUCSIsCatZ=e=>(Module._xmlUCSIsCatZ=wasmExports.xmlUCSIsCatZ)(e),Module._xmlUCSIsCatC=e=>(Module._xmlUCSIsCatC=wasmExports.xmlUCSIsCatC)(e),Module._xmlUCSIsCatL=e=>(Module._xmlUCSIsCatL=wasmExports.xmlUCSIsCatL)(e),Module._xmlUCSIsCatLu=e=>(Module._xmlUCSIsCatLu=wasmExports.xmlUCSIsCatLu)(e),Module._xmlUCSIsCatLl=e=>(Module._xmlUCSIsCatLl=wasmExports.xmlUCSIsCatLl)(e),Module._xmlUCSIsCatLt=e=>(Module._xmlUCSIsCatLt=wasmExports.xmlUCSIsCatLt)(e),Module._xmlUCSIsCatLm=e=>(Module._xmlUCSIsCatLm=wasmExports.xmlUCSIsCatLm)(e),Module._xmlUCSIsCatLo=e=>(Module._xmlUCSIsCatLo=wasmExports.xmlUCSIsCatLo)(e),Module._xmlUCSIsCatM=e=>(Module._xmlUCSIsCatM=wasmExports.xmlUCSIsCatM)(e),Module._xmlUCSIsCatMn=e=>(Module._xmlUCSIsCatMn=wasmExports.xmlUCSIsCatMn)(e),Module._xmlUCSIsCatMc=e=>(Module._xmlUCSIsCatMc=wasmExports.xmlUCSIsCatMc)(e),Module._xmlUCSIsCatMe=e=>(Module._xmlUCSIsCatMe=wasmExports.xmlUCSIsCatMe)(e),Module._xmlUCSIsCatN=e=>(Module._xmlUCSIsCatN=wasmExports.xmlUCSIsCatN)(e),Module._xmlUCSIsCatNl=e=>(Module._xmlUCSIsCatNl=wasmExports.xmlUCSIsCatNl)(e),Module._xmlUCSIsCatNo=e=>(Module._xmlUCSIsCatNo=wasmExports.xmlUCSIsCatNo)(e),Module._xmlUCSIsCatPc=e=>(Module._xmlUCSIsCatPc=wasmExports.xmlUCSIsCatPc)(e),Module._xmlUCSIsCatPd=e=>(Module._xmlUCSIsCatPd=wasmExports.xmlUCSIsCatPd)(e),Module._xmlUCSIsCatPs=e=>(Module._xmlUCSIsCatPs=wasmExports.xmlUCSIsCatPs)(e),Module._xmlUCSIsCatPe=e=>(Module._xmlUCSIsCatPe=wasmExports.xmlUCSIsCatPe)(e),Module._xmlUCSIsCatPi=e=>(Module._xmlUCSIsCatPi=wasmExports.xmlUCSIsCatPi)(e),Module._xmlUCSIsCatPf=e=>(Module._xmlUCSIsCatPf=wasmExports.xmlUCSIsCatPf)(e),Module._xmlUCSIsCatPo=e=>(Module._xmlUCSIsCatPo=wasmExports.xmlUCSIsCatPo)(e),Module._xmlUCSIsCatZs=e=>(Module._xmlUCSIsCatZs=wasmExports.xmlUCSIsCatZs)(e),Module._xmlUCSIsCatZl=e=>(Module._xmlUCSIsCatZl=wasmExports.xmlUCSIsCatZl)(e),Module._xmlUCSIsCatZp=e=>(Module._xmlUCSIsCatZp=wasmExports.xmlUCSIsCatZp)(e),Module._xmlUCSIsCatS=e=>(Module._xmlUCSIsCatS=wasmExports.xmlUCSIsCatS)(e),Module._xmlUCSIsCatSm=e=>(Module._xmlUCSIsCatSm=wasmExports.xmlUCSIsCatSm)(e),Module._xmlUCSIsCatSc=e=>(Module._xmlUCSIsCatSc=wasmExports.xmlUCSIsCatSc)(e),Module._xmlUCSIsCatSk=e=>(Module._xmlUCSIsCatSk=wasmExports.xmlUCSIsCatSk)(e),Module._xmlUCSIsCatSo=e=>(Module._xmlUCSIsCatSo=wasmExports.xmlUCSIsCatSo)(e),Module._xmlUCSIsCatCc=e=>(Module._xmlUCSIsCatCc=wasmExports.xmlUCSIsCatCc)(e),Module._xmlUCSIsCatCf=e=>(Module._xmlUCSIsCatCf=wasmExports.xmlUCSIsCatCf)(e),Module._xmlUCSIsCatCo=e=>(Module._xmlUCSIsCatCo=wasmExports.xmlUCSIsCatCo)(e),Module._xmlUCSIsAegeanNumbers=e=>(Module._xmlUCSIsAegeanNumbers=wasmExports.xmlUCSIsAegeanNumbers)(e),Module._xmlUCSIsAlphabeticPresentationForms=e=>(Module._xmlUCSIsAlphabeticPresentationForms=wasmExports.xmlUCSIsAlphabeticPresentationForms)(e),Module._xmlUCSIsArabic=e=>(Module._xmlUCSIsArabic=wasmExports.xmlUCSIsArabic)(e),Module._xmlUCSIsArabicPresentationFormsA=e=>(Module._xmlUCSIsArabicPresentationFormsA=wasmExports.xmlUCSIsArabicPresentationFormsA)(e),Module._xmlUCSIsArabicPresentationFormsB=e=>(Module._xmlUCSIsArabicPresentationFormsB=wasmExports.xmlUCSIsArabicPresentationFormsB)(e),Module._xmlUCSIsArmenian=e=>(Module._xmlUCSIsArmenian=wasmExports.xmlUCSIsArmenian)(e),Module._xmlUCSIsArrows=e=>(Module._xmlUCSIsArrows=wasmExports.xmlUCSIsArrows)(e),Module._xmlUCSIsBasicLatin=e=>(Module._xmlUCSIsBasicLatin=wasmExports.xmlUCSIsBasicLatin)(e),Module._xmlUCSIsBengali=e=>(Module._xmlUCSIsBengali=wasmExports.xmlUCSIsBengali)(e),Module._xmlUCSIsBlockElements=e=>(Module._xmlUCSIsBlockElements=wasmExports.xmlUCSIsBlockElements)(e),Module._xmlUCSIsBopomofo=e=>(Module._xmlUCSIsBopomofo=wasmExports.xmlUCSIsBopomofo)(e),Module._xmlUCSIsBopomofoExtended=e=>(Module._xmlUCSIsBopomofoExtended=wasmExports.xmlUCSIsBopomofoExtended)(e),Module._xmlUCSIsBoxDrawing=e=>(Module._xmlUCSIsBoxDrawing=wasmExports.xmlUCSIsBoxDrawing)(e),Module._xmlUCSIsBraillePatterns=e=>(Module._xmlUCSIsBraillePatterns=wasmExports.xmlUCSIsBraillePatterns)(e),Module._xmlUCSIsBuhid=e=>(Module._xmlUCSIsBuhid=wasmExports.xmlUCSIsBuhid)(e),Module._xmlUCSIsByzantineMusicalSymbols=e=>(Module._xmlUCSIsByzantineMusicalSymbols=wasmExports.xmlUCSIsByzantineMusicalSymbols)(e),Module._xmlUCSIsCJKCompatibility=e=>(Module._xmlUCSIsCJKCompatibility=wasmExports.xmlUCSIsCJKCompatibility)(e),Module._xmlUCSIsCJKCompatibilityForms=e=>(Module._xmlUCSIsCJKCompatibilityForms=wasmExports.xmlUCSIsCJKCompatibilityForms)(e),Module._xmlUCSIsCJKCompatibilityIdeographs=e=>(Module._xmlUCSIsCJKCompatibilityIdeographs=wasmExports.xmlUCSIsCJKCompatibilityIdeographs)(e),Module._xmlUCSIsCJKCompatibilityIdeographsSupplement=e=>(Module._xmlUCSIsCJKCompatibilityIdeographsSupplement=wasmExports.xmlUCSIsCJKCompatibilityIdeographsSupplement)(e),Module._xmlUCSIsCJKRadicalsSupplement=e=>(Module._xmlUCSIsCJKRadicalsSupplement=wasmExports.xmlUCSIsCJKRadicalsSupplement)(e),Module._xmlUCSIsCJKSymbolsandPunctuation=e=>(Module._xmlUCSIsCJKSymbolsandPunctuation=wasmExports.xmlUCSIsCJKSymbolsandPunctuation)(e),Module._xmlUCSIsCJKUnifiedIdeographs=e=>(Module._xmlUCSIsCJKUnifiedIdeographs=wasmExports.xmlUCSIsCJKUnifiedIdeographs)(e),Module._xmlUCSIsCJKUnifiedIdeographsExtensionA=e=>(Module._xmlUCSIsCJKUnifiedIdeographsExtensionA=wasmExports.xmlUCSIsCJKUnifiedIdeographsExtensionA)(e),Module._xmlUCSIsCJKUnifiedIdeographsExtensionB=e=>(Module._xmlUCSIsCJKUnifiedIdeographsExtensionB=wasmExports.xmlUCSIsCJKUnifiedIdeographsExtensionB)(e),Module._xmlUCSIsCherokee=e=>(Module._xmlUCSIsCherokee=wasmExports.xmlUCSIsCherokee)(e),Module._xmlUCSIsCombiningDiacriticalMarks=e=>(Module._xmlUCSIsCombiningDiacriticalMarks=wasmExports.xmlUCSIsCombiningDiacriticalMarks)(e),Module._xmlUCSIsCombiningDiacriticalMarksforSymbols=e=>(Module._xmlUCSIsCombiningDiacriticalMarksforSymbols=wasmExports.xmlUCSIsCombiningDiacriticalMarksforSymbols)(e),Module._xmlUCSIsCombiningHalfMarks=e=>(Module._xmlUCSIsCombiningHalfMarks=wasmExports.xmlUCSIsCombiningHalfMarks)(e),Module._xmlUCSIsCombiningMarksforSymbols=e=>(Module._xmlUCSIsCombiningMarksforSymbols=wasmExports.xmlUCSIsCombiningMarksforSymbols)(e),Module._xmlUCSIsControlPictures=e=>(Module._xmlUCSIsControlPictures=wasmExports.xmlUCSIsControlPictures)(e),Module._xmlUCSIsCurrencySymbols=e=>(Module._xmlUCSIsCurrencySymbols=wasmExports.xmlUCSIsCurrencySymbols)(e),Module._xmlUCSIsCypriotSyllabary=e=>(Module._xmlUCSIsCypriotSyllabary=wasmExports.xmlUCSIsCypriotSyllabary)(e),Module._xmlUCSIsCyrillic=e=>(Module._xmlUCSIsCyrillic=wasmExports.xmlUCSIsCyrillic)(e),Module._xmlUCSIsCyrillicSupplement=e=>(Module._xmlUCSIsCyrillicSupplement=wasmExports.xmlUCSIsCyrillicSupplement)(e),Module._xmlUCSIsDeseret=e=>(Module._xmlUCSIsDeseret=wasmExports.xmlUCSIsDeseret)(e),Module._xmlUCSIsDevanagari=e=>(Module._xmlUCSIsDevanagari=wasmExports.xmlUCSIsDevanagari)(e),Module._xmlUCSIsDingbats=e=>(Module._xmlUCSIsDingbats=wasmExports.xmlUCSIsDingbats)(e),Module._xmlUCSIsEnclosedAlphanumerics=e=>(Module._xmlUCSIsEnclosedAlphanumerics=wasmExports.xmlUCSIsEnclosedAlphanumerics)(e),Module._xmlUCSIsEnclosedCJKLettersandMonths=e=>(Module._xmlUCSIsEnclosedCJKLettersandMonths=wasmExports.xmlUCSIsEnclosedCJKLettersandMonths)(e),Module._xmlUCSIsEthiopic=e=>(Module._xmlUCSIsEthiopic=wasmExports.xmlUCSIsEthiopic)(e),Module._xmlUCSIsGeneralPunctuation=e=>(Module._xmlUCSIsGeneralPunctuation=wasmExports.xmlUCSIsGeneralPunctuation)(e),Module._xmlUCSIsGeometricShapes=e=>(Module._xmlUCSIsGeometricShapes=wasmExports.xmlUCSIsGeometricShapes)(e),Module._xmlUCSIsGeorgian=e=>(Module._xmlUCSIsGeorgian=wasmExports.xmlUCSIsGeorgian)(e),Module._xmlUCSIsGothic=e=>(Module._xmlUCSIsGothic=wasmExports.xmlUCSIsGothic)(e),Module._xmlUCSIsGreek=e=>(Module._xmlUCSIsGreek=wasmExports.xmlUCSIsGreek)(e),Module._xmlUCSIsGreekExtended=e=>(Module._xmlUCSIsGreekExtended=wasmExports.xmlUCSIsGreekExtended)(e),Module._xmlUCSIsGreekandCoptic=e=>(Module._xmlUCSIsGreekandCoptic=wasmExports.xmlUCSIsGreekandCoptic)(e),Module._xmlUCSIsGujarati=e=>(Module._xmlUCSIsGujarati=wasmExports.xmlUCSIsGujarati)(e),Module._xmlUCSIsGurmukhi=e=>(Module._xmlUCSIsGurmukhi=wasmExports.xmlUCSIsGurmukhi)(e),Module._xmlUCSIsHalfwidthandFullwidthForms=e=>(Module._xmlUCSIsHalfwidthandFullwidthForms=wasmExports.xmlUCSIsHalfwidthandFullwidthForms)(e),Module._xmlUCSIsHangulCompatibilityJamo=e=>(Module._xmlUCSIsHangulCompatibilityJamo=wasmExports.xmlUCSIsHangulCompatibilityJamo)(e),Module._xmlUCSIsHangulJamo=e=>(Module._xmlUCSIsHangulJamo=wasmExports.xmlUCSIsHangulJamo)(e),Module._xmlUCSIsHangulSyllables=e=>(Module._xmlUCSIsHangulSyllables=wasmExports.xmlUCSIsHangulSyllables)(e),Module._xmlUCSIsHanunoo=e=>(Module._xmlUCSIsHanunoo=wasmExports.xmlUCSIsHanunoo)(e),Module._xmlUCSIsHebrew=e=>(Module._xmlUCSIsHebrew=wasmExports.xmlUCSIsHebrew)(e),Module._xmlUCSIsHighPrivateUseSurrogates=e=>(Module._xmlUCSIsHighPrivateUseSurrogates=wasmExports.xmlUCSIsHighPrivateUseSurrogates)(e),Module._xmlUCSIsHighSurrogates=e=>(Module._xmlUCSIsHighSurrogates=wasmExports.xmlUCSIsHighSurrogates)(e),Module._xmlUCSIsHiragana=e=>(Module._xmlUCSIsHiragana=wasmExports.xmlUCSIsHiragana)(e),Module._xmlUCSIsIPAExtensions=e=>(Module._xmlUCSIsIPAExtensions=wasmExports.xmlUCSIsIPAExtensions)(e),Module._xmlUCSIsIdeographicDescriptionCharacters=e=>(Module._xmlUCSIsIdeographicDescriptionCharacters=wasmExports.xmlUCSIsIdeographicDescriptionCharacters)(e),Module._xmlUCSIsKanbun=e=>(Module._xmlUCSIsKanbun=wasmExports.xmlUCSIsKanbun)(e),Module._xmlUCSIsKangxiRadicals=e=>(Module._xmlUCSIsKangxiRadicals=wasmExports.xmlUCSIsKangxiRadicals)(e),Module._xmlUCSIsKannada=e=>(Module._xmlUCSIsKannada=wasmExports.xmlUCSIsKannada)(e),Module._xmlUCSIsKatakana=e=>(Module._xmlUCSIsKatakana=wasmExports.xmlUCSIsKatakana)(e),Module._xmlUCSIsKatakanaPhoneticExtensions=e=>(Module._xmlUCSIsKatakanaPhoneticExtensions=wasmExports.xmlUCSIsKatakanaPhoneticExtensions)(e),Module._xmlUCSIsKhmer=e=>(Module._xmlUCSIsKhmer=wasmExports.xmlUCSIsKhmer)(e),Module._xmlUCSIsKhmerSymbols=e=>(Module._xmlUCSIsKhmerSymbols=wasmExports.xmlUCSIsKhmerSymbols)(e),Module._xmlUCSIsLao=e=>(Module._xmlUCSIsLao=wasmExports.xmlUCSIsLao)(e),Module._xmlUCSIsLatin1Supplement=e=>(Module._xmlUCSIsLatin1Supplement=wasmExports.xmlUCSIsLatin1Supplement)(e),Module._xmlUCSIsLatinExtendedA=e=>(Module._xmlUCSIsLatinExtendedA=wasmExports.xmlUCSIsLatinExtendedA)(e),Module._xmlUCSIsLatinExtendedB=e=>(Module._xmlUCSIsLatinExtendedB=wasmExports.xmlUCSIsLatinExtendedB)(e),Module._xmlUCSIsLatinExtendedAdditional=e=>(Module._xmlUCSIsLatinExtendedAdditional=wasmExports.xmlUCSIsLatinExtendedAdditional)(e),Module._xmlUCSIsLetterlikeSymbols=e=>(Module._xmlUCSIsLetterlikeSymbols=wasmExports.xmlUCSIsLetterlikeSymbols)(e),Module._xmlUCSIsLimbu=e=>(Module._xmlUCSIsLimbu=wasmExports.xmlUCSIsLimbu)(e),Module._xmlUCSIsLinearBIdeograms=e=>(Module._xmlUCSIsLinearBIdeograms=wasmExports.xmlUCSIsLinearBIdeograms)(e),Module._xmlUCSIsLinearBSyllabary=e=>(Module._xmlUCSIsLinearBSyllabary=wasmExports.xmlUCSIsLinearBSyllabary)(e),Module._xmlUCSIsLowSurrogates=e=>(Module._xmlUCSIsLowSurrogates=wasmExports.xmlUCSIsLowSurrogates)(e),Module._xmlUCSIsMalayalam=e=>(Module._xmlUCSIsMalayalam=wasmExports.xmlUCSIsMalayalam)(e),Module._xmlUCSIsMathematicalAlphanumericSymbols=e=>(Module._xmlUCSIsMathematicalAlphanumericSymbols=wasmExports.xmlUCSIsMathematicalAlphanumericSymbols)(e),Module._xmlUCSIsMathematicalOperators=e=>(Module._xmlUCSIsMathematicalOperators=wasmExports.xmlUCSIsMathematicalOperators)(e),Module._xmlUCSIsMiscellaneousMathematicalSymbolsA=e=>(Module._xmlUCSIsMiscellaneousMathematicalSymbolsA=wasmExports.xmlUCSIsMiscellaneousMathematicalSymbolsA)(e),Module._xmlUCSIsMiscellaneousMathematicalSymbolsB=e=>(Module._xmlUCSIsMiscellaneousMathematicalSymbolsB=wasmExports.xmlUCSIsMiscellaneousMathematicalSymbolsB)(e),Module._xmlUCSIsMiscellaneousSymbols=e=>(Module._xmlUCSIsMiscellaneousSymbols=wasmExports.xmlUCSIsMiscellaneousSymbols)(e),Module._xmlUCSIsMiscellaneousSymbolsandArrows=e=>(Module._xmlUCSIsMiscellaneousSymbolsandArrows=wasmExports.xmlUCSIsMiscellaneousSymbolsandArrows)(e),Module._xmlUCSIsMiscellaneousTechnical=e=>(Module._xmlUCSIsMiscellaneousTechnical=wasmExports.xmlUCSIsMiscellaneousTechnical)(e),Module._xmlUCSIsMongolian=e=>(Module._xmlUCSIsMongolian=wasmExports.xmlUCSIsMongolian)(e),Module._xmlUCSIsMusicalSymbols=e=>(Module._xmlUCSIsMusicalSymbols=wasmExports.xmlUCSIsMusicalSymbols)(e),Module._xmlUCSIsMyanmar=e=>(Module._xmlUCSIsMyanmar=wasmExports.xmlUCSIsMyanmar)(e),Module._xmlUCSIsNumberForms=e=>(Module._xmlUCSIsNumberForms=wasmExports.xmlUCSIsNumberForms)(e),Module._xmlUCSIsOgham=e=>(Module._xmlUCSIsOgham=wasmExports.xmlUCSIsOgham)(e),Module._xmlUCSIsOldItalic=e=>(Module._xmlUCSIsOldItalic=wasmExports.xmlUCSIsOldItalic)(e),Module._xmlUCSIsOpticalCharacterRecognition=e=>(Module._xmlUCSIsOpticalCharacterRecognition=wasmExports.xmlUCSIsOpticalCharacterRecognition)(e),Module._xmlUCSIsOriya=e=>(Module._xmlUCSIsOriya=wasmExports.xmlUCSIsOriya)(e),Module._xmlUCSIsOsmanya=e=>(Module._xmlUCSIsOsmanya=wasmExports.xmlUCSIsOsmanya)(e),Module._xmlUCSIsPhoneticExtensions=e=>(Module._xmlUCSIsPhoneticExtensions=wasmExports.xmlUCSIsPhoneticExtensions)(e),Module._xmlUCSIsPrivateUse=e=>(Module._xmlUCSIsPrivateUse=wasmExports.xmlUCSIsPrivateUse)(e),Module._xmlUCSIsPrivateUseArea=e=>(Module._xmlUCSIsPrivateUseArea=wasmExports.xmlUCSIsPrivateUseArea)(e),Module._xmlUCSIsRunic=e=>(Module._xmlUCSIsRunic=wasmExports.xmlUCSIsRunic)(e),Module._xmlUCSIsShavian=e=>(Module._xmlUCSIsShavian=wasmExports.xmlUCSIsShavian)(e),Module._xmlUCSIsSinhala=e=>(Module._xmlUCSIsSinhala=wasmExports.xmlUCSIsSinhala)(e),Module._xmlUCSIsSmallFormVariants=e=>(Module._xmlUCSIsSmallFormVariants=wasmExports.xmlUCSIsSmallFormVariants)(e),Module._xmlUCSIsSpacingModifierLetters=e=>(Module._xmlUCSIsSpacingModifierLetters=wasmExports.xmlUCSIsSpacingModifierLetters)(e),Module._xmlUCSIsSpecials=e=>(Module._xmlUCSIsSpecials=wasmExports.xmlUCSIsSpecials)(e),Module._xmlUCSIsSuperscriptsandSubscripts=e=>(Module._xmlUCSIsSuperscriptsandSubscripts=wasmExports.xmlUCSIsSuperscriptsandSubscripts)(e),Module._xmlUCSIsSupplementalArrowsA=e=>(Module._xmlUCSIsSupplementalArrowsA=wasmExports.xmlUCSIsSupplementalArrowsA)(e),Module._xmlUCSIsSupplementalArrowsB=e=>(Module._xmlUCSIsSupplementalArrowsB=wasmExports.xmlUCSIsSupplementalArrowsB)(e),Module._xmlUCSIsSupplementalMathematicalOperators=e=>(Module._xmlUCSIsSupplementalMathematicalOperators=wasmExports.xmlUCSIsSupplementalMathematicalOperators)(e),Module._xmlUCSIsSupplementaryPrivateUseAreaA=e=>(Module._xmlUCSIsSupplementaryPrivateUseAreaA=wasmExports.xmlUCSIsSupplementaryPrivateUseAreaA)(e),Module._xmlUCSIsSupplementaryPrivateUseAreaB=e=>(Module._xmlUCSIsSupplementaryPrivateUseAreaB=wasmExports.xmlUCSIsSupplementaryPrivateUseAreaB)(e),Module._xmlUCSIsSyriac=e=>(Module._xmlUCSIsSyriac=wasmExports.xmlUCSIsSyriac)(e),Module._xmlUCSIsTagalog=e=>(Module._xmlUCSIsTagalog=wasmExports.xmlUCSIsTagalog)(e),Module._xmlUCSIsTagbanwa=e=>(Module._xmlUCSIsTagbanwa=wasmExports.xmlUCSIsTagbanwa)(e),Module._xmlUCSIsTags=e=>(Module._xmlUCSIsTags=wasmExports.xmlUCSIsTags)(e),Module._xmlUCSIsTaiLe=e=>(Module._xmlUCSIsTaiLe=wasmExports.xmlUCSIsTaiLe)(e),Module._xmlUCSIsTaiXuanJingSymbols=e=>(Module._xmlUCSIsTaiXuanJingSymbols=wasmExports.xmlUCSIsTaiXuanJingSymbols)(e),Module._xmlUCSIsTamil=e=>(Module._xmlUCSIsTamil=wasmExports.xmlUCSIsTamil)(e),Module._xmlUCSIsTelugu=e=>(Module._xmlUCSIsTelugu=wasmExports.xmlUCSIsTelugu)(e),Module._xmlUCSIsThaana=e=>(Module._xmlUCSIsThaana=wasmExports.xmlUCSIsThaana)(e),Module._xmlUCSIsThai=e=>(Module._xmlUCSIsThai=wasmExports.xmlUCSIsThai)(e),Module._xmlUCSIsTibetan=e=>(Module._xmlUCSIsTibetan=wasmExports.xmlUCSIsTibetan)(e),Module._xmlUCSIsUgaritic=e=>(Module._xmlUCSIsUgaritic=wasmExports.xmlUCSIsUgaritic)(e),Module._xmlUCSIsUnifiedCanadianAboriginalSyllabics=e=>(Module._xmlUCSIsUnifiedCanadianAboriginalSyllabics=wasmExports.xmlUCSIsUnifiedCanadianAboriginalSyllabics)(e),Module._xmlUCSIsVariationSelectors=e=>(Module._xmlUCSIsVariationSelectors=wasmExports.xmlUCSIsVariationSelectors)(e),Module._xmlUCSIsVariationSelectorsSupplement=e=>(Module._xmlUCSIsVariationSelectorsSupplement=wasmExports.xmlUCSIsVariationSelectorsSupplement)(e),Module._xmlUCSIsYiRadicals=e=>(Module._xmlUCSIsYiRadicals=wasmExports.xmlUCSIsYiRadicals)(e),Module._xmlUCSIsYiSyllables=e=>(Module._xmlUCSIsYiSyllables=wasmExports.xmlUCSIsYiSyllables)(e),Module._xmlUCSIsYijingHexagramSymbols=e=>(Module._xmlUCSIsYijingHexagramSymbols=wasmExports.xmlUCSIsYijingHexagramSymbols)(e),Module._xmlUCSIsCatCs=e=>(Module._xmlUCSIsCatCs=wasmExports.xmlUCSIsCatCs)(e),Module.___small_fprintf=(e,t,I)=>(Module.___small_fprintf=wasmExports.__small_fprintf)(e,t,I),Module._xmlXPathBooleanFunction=(e,t)=>(Module._xmlXPathBooleanFunction=wasmExports.xmlXPathBooleanFunction)(e,t),Module._xmlXPathCeilingFunction=(e,t)=>(Module._xmlXPathCeilingFunction=wasmExports.xmlXPathCeilingFunction)(e,t),Module._xmlXPathCountFunction=(e,t)=>(Module._xmlXPathCountFunction=wasmExports.xmlXPathCountFunction)(e,t),Module._xmlXPathConcatFunction=(e,t)=>(Module._xmlXPathConcatFunction=wasmExports.xmlXPathConcatFunction)(e,t),Module._xmlXPathContainsFunction=(e,t)=>(Module._xmlXPathContainsFunction=wasmExports.xmlXPathContainsFunction)(e,t),Module._xmlXPathIdFunction=(e,t)=>(Module._xmlXPathIdFunction=wasmExports.xmlXPathIdFunction)(e,t),Module._xmlXPathFalseFunction=(e,t)=>(Module._xmlXPathFalseFunction=wasmExports.xmlXPathFalseFunction)(e,t),Module._xmlXPathFloorFunction=(e,t)=>(Module._xmlXPathFloorFunction=wasmExports.xmlXPathFloorFunction)(e,t),Module._xmlXPathLastFunction=(e,t)=>(Module._xmlXPathLastFunction=wasmExports.xmlXPathLastFunction)(e,t),Module._xmlXPathLangFunction=(e,t)=>(Module._xmlXPathLangFunction=wasmExports.xmlXPathLangFunction)(e,t),Module._xmlXPathLocalNameFunction=(e,t)=>(Module._xmlXPathLocalNameFunction=wasmExports.xmlXPathLocalNameFunction)(e,t),Module._xmlXPathNotFunction=(e,t)=>(Module._xmlXPathNotFunction=wasmExports.xmlXPathNotFunction)(e,t),Module._xmlXPathNamespaceURIFunction=(e,t)=>(Module._xmlXPathNamespaceURIFunction=wasmExports.xmlXPathNamespaceURIFunction)(e,t),Module._xmlXPathNormalizeFunction=(e,t)=>(Module._xmlXPathNormalizeFunction=wasmExports.xmlXPathNormalizeFunction)(e,t),Module._xmlXPathNumberFunction=(e,t)=>(Module._xmlXPathNumberFunction=wasmExports.xmlXPathNumberFunction)(e,t),Module._xmlXPathPositionFunction=(e,t)=>(Module._xmlXPathPositionFunction=wasmExports.xmlXPathPositionFunction)(e,t),Module._xmlXPathRoundFunction=(e,t)=>(Module._xmlXPathRoundFunction=wasmExports.xmlXPathRoundFunction)(e,t),Module._xmlXPathStringFunction=(e,t)=>(Module._xmlXPathStringFunction=wasmExports.xmlXPathStringFunction)(e,t),Module._xmlXPathStringLengthFunction=(e,t)=>(Module._xmlXPathStringLengthFunction=wasmExports.xmlXPathStringLengthFunction)(e,t),Module._xmlXPathStartsWithFunction=(e,t)=>(Module._xmlXPathStartsWithFunction=wasmExports.xmlXPathStartsWithFunction)(e,t),Module._xmlXPathSubstringFunction=(e,t)=>(Module._xmlXPathSubstringFunction=wasmExports.xmlXPathSubstringFunction)(e,t),Module._xmlXPathSubstringBeforeFunction=(e,t)=>(Module._xmlXPathSubstringBeforeFunction=wasmExports.xmlXPathSubstringBeforeFunction)(e,t),Module._xmlXPathSubstringAfterFunction=(e,t)=>(Module._xmlXPathSubstringAfterFunction=wasmExports.xmlXPathSubstringAfterFunction)(e,t),Module._xmlXPathSumFunction=(e,t)=>(Module._xmlXPathSumFunction=wasmExports.xmlXPathSumFunction)(e,t),Module._xmlXPathTrueFunction=(e,t)=>(Module._xmlXPathTrueFunction=wasmExports.xmlXPathTrueFunction)(e,t),Module._xmlXPathTranslateFunction=(e,t)=>(Module._xmlXPathTranslateFunction=wasmExports.xmlXPathTranslateFunction)(e,t),Module._xmlXPathNextSelf=(e,t)=>(Module._xmlXPathNextSelf=wasmExports.xmlXPathNextSelf)(e,t),Module._xmlXPathNextChild=(e,t)=>(Module._xmlXPathNextChild=wasmExports.xmlXPathNextChild)(e,t),Module._xmlXPathNextDescendant=(e,t)=>(Module._xmlXPathNextDescendant=wasmExports.xmlXPathNextDescendant)(e,t),Module._xmlXPathNextDescendantOrSelf=(e,t)=>(Module._xmlXPathNextDescendantOrSelf=wasmExports.xmlXPathNextDescendantOrSelf)(e,t),Module._xmlXPathNextParent=(e,t)=>(Module._xmlXPathNextParent=wasmExports.xmlXPathNextParent)(e,t),Module._xmlXPathNextAncestor=(e,t)=>(Module._xmlXPathNextAncestor=wasmExports.xmlXPathNextAncestor)(e,t),Module._xmlXPathNextAncestorOrSelf=(e,t)=>(Module._xmlXPathNextAncestorOrSelf=wasmExports.xmlXPathNextAncestorOrSelf)(e,t),Module._xmlXPathNextFollowingSibling=(e,t)=>(Module._xmlXPathNextFollowingSibling=wasmExports.xmlXPathNextFollowingSibling)(e,t),Module._xmlXPathNextPrecedingSibling=(e,t)=>(Module._xmlXPathNextPrecedingSibling=wasmExports.xmlXPathNextPrecedingSibling)(e,t),Module._xmlXPathNextFollowing=(e,t)=>(Module._xmlXPathNextFollowing=wasmExports.xmlXPathNextFollowing)(e,t),Module._xmlXPathNextNamespace=(e,t)=>(Module._xmlXPathNextNamespace=wasmExports.xmlXPathNextNamespace)(e,t),Module._xmlXPathNextAttribute=(e,t)=>(Module._xmlXPathNextAttribute=wasmExports.xmlXPathNextAttribute)(e,t),Module._zcalloc=(e,t,I)=>(Module._zcalloc=wasmExports.zcalloc)(e,t,I),Module._zcfree=(e,t)=>(Module._zcfree=wasmExports.zcfree)(e,t),Module._strerror=e=>(Module._strerror=wasmExports.strerror)(e);var ___dl_seterr=(e,t)=>(___dl_seterr=wasmExports.__dl_seterr)(e,t);Module._putc=(e,t)=>(Module._putc=wasmExports.putc)(e,t),Module._gmtime=e=>(Module._gmtime=wasmExports.gmtime)(e);var _htonl=e=>(_htonl=wasmExports.htonl)(e),_htons=e=>(_htons=wasmExports.htons)(e);Module._ioctl=(e,t,I)=>(Module._ioctl=wasmExports.ioctl)(e,t,I);var _emscripten_builtin_memalign=(e,t)=>(_emscripten_builtin_memalign=wasmExports.emscripten_builtin_memalign)(e,t),_ntohs=e=>(_ntohs=wasmExports.ntohs)(e);Module._srand=e=>(Module._srand=wasmExports.srand)(e),Module._rand=()=>(Module._rand=wasmExports.rand)();var __emscripten_timeout=(e,t)=>(__emscripten_timeout=wasmExports._emscripten_timeout)(e,t);Module.___floatsitf=(e,t)=>(Module.___floatsitf=wasmExports.__floatsitf)(e,t),Module.___multf3=(e,t,I,B,tr)=>(Module.___multf3=wasmExports.__multf3)(e,t,I,B,tr),Module.___extenddftf2=(e,t)=>(Module.___extenddftf2=wasmExports.__extenddftf2)(e,t),Module.___getf2=(e,t,I,B)=>(Module.___getf2=wasmExports.__getf2)(e,t,I,B),Module.___subtf3=(e,t,I,B,tr)=>(Module.___subtf3=wasmExports.__subtf3)(e,t,I,B,tr),Module.___letf2=(e,t,I,B)=>(Module.___letf2=wasmExports.__letf2)(e,t,I,B),Module.___lttf2=(e,t,I,B)=>(Module.___lttf2=wasmExports.__lttf2)(e,t,I,B);var _setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_tempret_set=e=>(__emscripten_tempret_set=wasmExports._emscripten_tempret_set)(e),__emscripten_tempret_get=()=>(__emscripten_tempret_get=wasmExports._emscripten_tempret_get)();Module.___fixtfsi=(e,t)=>(Module.___fixtfsi=wasmExports.__fixtfsi)(e,t);var __emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)();Module._ScanKeywords=18770052,Module._stderr=18792480,Module._stdout=18792784,Module._TopMemoryContext=18830716,Module._MainLWLockArray=18800668,Module._MyProc=18802328,Module._MyProcPid=18824228,Module._MyLatch=18824260,Module._CurrentMemoryContext=18830712,Module._InterruptPending=18824092,Module._pg_global_prng_state=18936304,Module._CurrentResourceOwner=18830692,Module._InterruptHoldoffCount=18824132,Module._IsUnderPostmaster=18824165,Module._wal_level=18758340,Module._MyDatabaseId=18824148,Module._error_context_stack=18816816,Module._PG_exception_stack=18816820,Module.___THREW__=18950052,Module.___threwValue=18950056,Module._ShmemVariableCache=18849760,Module._shmem_startup_hook=18794508,Module._debug_query_string=18848300,Module._CritSectionCount=18824140,Module._old_snapshot_threshold=18823756,Module._TopTransactionResourceOwner=18830700,Module._LocalBufferBlockPointers=18800556,Module._BufferBlocks=18795304,Module._pgBufferUsage=18813728,Module._GUC_check_errdetail_string=18814680,Module._NBuffers=18690456,Module._BufferDescriptors=18795300,Module._ParallelWorkerNumber=18767008,Module._stdin=18792632,Module._ScanKeywordTokens=17487664,Module._post_parse_analyze_hook=18802584,Module._progname=18848060,Module._DataDir=18824144,Module._MyStartTime=18824232,Module._MyProcPort=18824248,Module._Log_directory=18803120,Module._Log_filename=18803124,Module._ConfigReloadPending=18803272,Module._ShutdownRequestPending=18803276,Module._process_shared_preload_libraries_in_progress=18824080,Module._wal_segment_size=18758360,Module._application_name=18815988,Module._XactIsoLevel=18758700,Module._RmgrTable=18758816,Module._CacheMemoryContext=18830728,Module._TopTransactionContext=18830736,Module._TTSOpsVirtual=18638668,Module._WalReceiverFunctions=18803712,Module._TTSOpsMinimalTuple=18638764,Module._cluster_name=18640444,Module._work_mem=18690432,Module._ClientAuthentication_hook=18804032,Module._cma_rsize=18848108,Module._SOCKET_DATA=18854312,Module._SOCKET_FILE=18854308,Module._TTSOpsHeapTuple=18638716,Module._SnapshotAnyData=18690240,Module._ExecutorStart_hook=18813600,Module._ExecutorRun_hook=18813604,Module._ExecutorFinish_hook=18813608,Module._ExecutorEnd_hook=18813612,Module._SPI_processed=18813624,Module._SPI_tuptable=18813632,Module._SPI_result=18813636,Module._pgWalUsage=18813840,Module._cpu_operator_cost=18638912,Module._planner_hook=18813876,Module._maintenance_work_mem=18690448,Module._max_parallel_maintenance_workers=18690452,Module._cpu_tuple_cost=18638896,Module._seq_page_cost=18638880,Module._check_function_bodies=18640389,Module._quote_all_identifiers=18848065,Module._extra_float_digits=18692128,Module._IntervalStyle=18824172,Module._pg_crc32_table=18115504,Module._oldSnapshotControl=18823760,Module._shmem_request_hook=18824084,Module._DateStyle=18690420,Module._pg_number_of_ones=18433360,Module._xmlStructuredError=18936668,Module._xmlStructuredErrorContext=18936676,Module._xmlGenericErrorContext=18936672,Module._xmlGenericError=18774356,Module._xmlIsBaseCharGroup=18774120,Module._xmlIsDigitGroup=18774152,Module._xmlIsCombiningGroup=18774136,Module._xmlIsExtenderGroup=18774168,Module._xmlFree=18774320,Module._ProcessUtility_hook=18848012,Module._single_mode_feed=18848076,Module._cma_wsize=18848116,Module._check_password_hook=18850784,Module._IDB_STAGE=18854320,Module._IDB_PIPE_FP=18854316,Module._pg_scram_mech=18774064,Module._pg_g_threadlock=18772168,Module._pgresStatus=18773856,Module._xmlIsPubidChar_tab=18433648,Module._xmlGetWarningsDefaultValue=18774348,Module._xmlMalloc=18774324,Module._xmlRealloc=18774332,Module._xmlLastError=18936688,Module._xmlMallocAtomic=18774328,Module._xmlMemStrdup=18774336,Module._xmlBufferAllocScheme=18774340,Module._xmlDefaultBufferSize=18774344,Module._xmlParserDebugEntities=18936628,Module._xmlDoValidityCheckingDefaultValue=18936632,Module._xmlLoadExtDtdDefaultValue=18936636,Module._xmlPedanticParserDefaultValue=18936640,Module._xmlLineNumbersDefaultValue=18936644,Module._xmlKeepBlanksDefaultValue=18774352,Module._xmlSubstituteEntitiesDefaultValue=18936648,Module._xmlRegisterNodeDefaultValue=18936652,Module._xmlDeregisterNodeDefaultValue=18936656,Module._xmlParserInputBufferCreateFilenameValue=18936660,Module._xmlOutputBufferCreateFilenameValue=18936664,Module._xmlIndentTreeOutput=18774360,Module._xmlTreeIndentString=18774364,Module._xmlSaveNoEmptyTags=18936680,Module._xmlDefaultSAXHandler=18774368,Module._xmlDefaultSAXLocator=18774480,Module._xmlParserMaxDepth=18775140,Module._xmlStringText=18435456,Module._xmlStringComment=18435471,Module._xmlStringTextNoenc=18435461,Module._xmlXPathNAN=18937352,Module._xmlXPathNINF=18937368,Module._xmlXPathPINF=18937360,Module._z_errmsg=18791696,Module.__length_code=18455120,Module.__dist_code=18454608;function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(I){if(stackRestore(t),I!==I+0)throw I;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(I){if(stackRestore(t),I!==I+0)throw I;_setThrew(1,0)}}function invoke_vi(e,t){var I=stackSave();try{getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_iii(e,t,I){var B=stackSave();try{return getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;_setThrew(1,0)}}function invoke_iiiiii(e,t,I,B,tr,rr){var ir=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr)}catch(lr){if(stackRestore(ir),lr!==lr+0)throw lr;_setThrew(1,0)}}function invoke_viii(e,t,I,B){var tr=stackSave();try{getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_viiiiiii(e,t,I,B,tr,rr,ir,lr){var dr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr)}catch(mr){if(stackRestore(dr),mr!==mr+0)throw mr;_setThrew(1,0)}}function invoke_iiii(e,t,I,B){var tr=stackSave();try{return getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_viiii(e,t,I,B,tr){var rr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;_setThrew(1,0)}}function invoke_iiiii(e,t,I,B,tr){var rr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;_setThrew(1,0)}}function invoke_vii(e,t,I){var B=stackSave();try{getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;_setThrew(1,0)}}function invoke_ii(e,t){var I=stackSave();try{return getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_viiiiiiii(e,t,I,B,tr,rr,ir,lr,dr){var mr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr)}catch(fr){if(stackRestore(mr),fr!==fr+0)throw fr;_setThrew(1,0)}}function invoke_viiiii(e,t,I,B,tr,rr){var ir=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr)}catch(lr){if(stackRestore(ir),lr!==lr+0)throw lr;_setThrew(1,0)}}function invoke_ij(e,t){var I=stackSave();try{return getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_ji(e,t){var I=stackSave();try{return getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;return _setThrew(1,0),0n}}function invoke_ijiiiiii(e,t,I,B,tr,rr,ir,lr){var dr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr)}catch(mr){if(stackRestore(dr),mr!==mr+0)throw mr;_setThrew(1,0)}}function invoke_vij(e,t,I){var B=stackSave();try{getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;_setThrew(1,0)}}function invoke_vj(e,t){var I=stackSave();try{getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_viijii(e,t,I,B,tr,rr){var ir=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr)}catch(lr){if(stackRestore(ir),lr!==lr+0)throw lr;_setThrew(1,0)}}function invoke_iiiiiji(e,t,I,B,tr,rr,ir){var lr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir)}catch(dr){if(stackRestore(lr),dr!==dr+0)throw dr;_setThrew(1,0)}}function invoke_viijiiii(e,t,I,B,tr,rr,ir,lr){var dr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr)}catch(mr){if(stackRestore(dr),mr!==mr+0)throw mr;_setThrew(1,0)}}function invoke_viij(e,t,I,B){var tr=stackSave();try{getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_jiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr){var mr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr)}catch(fr){if(stackRestore(mr),fr!==fr+0)throw fr;return _setThrew(1,0),0n}}function invoke_jiiiii(e,t,I,B,tr,rr){var ir=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr)}catch(lr){if(stackRestore(ir),lr!==lr+0)throw lr;return _setThrew(1,0),0n}}function invoke_iiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr){var mr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr)}catch(fr){if(stackRestore(mr),fr!==fr+0)throw fr;_setThrew(1,0)}}function invoke_vji(e,t,I){var B=stackSave();try{getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;_setThrew(1,0)}}function invoke_iiiijii(e,t,I,B,tr,rr,ir){var lr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir)}catch(dr){if(stackRestore(lr),dr!==dr+0)throw dr;_setThrew(1,0)}}function invoke_vijiji(e,t,I,B,tr,rr){var ir=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr)}catch(lr){if(stackRestore(ir),lr!==lr+0)throw lr;_setThrew(1,0)}}function invoke_viji(e,t,I,B){var tr=stackSave();try{getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_iiij(e,t,I,B){var tr=stackSave();try{return getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,I,B,tr,rr,ir,lr){var dr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr)}catch(mr){if(stackRestore(dr),mr!==mr+0)throw mr;_setThrew(1,0)}}function invoke_iiiiiii(e,t,I,B,tr,rr,ir){var lr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir)}catch(dr){if(stackRestore(lr),dr!==dr+0)throw dr;_setThrew(1,0)}}function invoke_di(e,t){var I=stackSave();try{return getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_id(e,t){var I=stackSave();try{return getWasmTableEntry(e)(t)}catch(B){if(stackRestore(I),B!==B+0)throw B;_setThrew(1,0)}}function invoke_ijiiiii(e,t,I,B,tr,rr,ir){var lr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir)}catch(dr){if(stackRestore(lr),dr!==dr+0)throw dr;_setThrew(1,0)}}function invoke_jiiii(e,t,I,B,tr){var rr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;return _setThrew(1,0),0n}}function invoke_viiiiii(e,t,I,B,tr,rr,ir){var lr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir)}catch(dr){if(stackRestore(lr),dr!==dr+0)throw dr;_setThrew(1,0)}}function invoke_viiiiiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr,_r){var yr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr,mr,fr,hr,_r)}catch(Mr){if(stackRestore(yr),Mr!==Mr+0)throw Mr;_setThrew(1,0)}}function invoke_jii(e,t,I){var B=stackSave();try{return getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;return _setThrew(1,0),0n}}function invoke_iiiij(e,t,I,B,tr){var rr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;_setThrew(1,0)}}function invoke_iiiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr,mr){var fr=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr,mr)}catch(hr){if(stackRestore(fr),hr!==hr+0)throw hr;_setThrew(1,0)}}function invoke_viiji(e,t,I,B,tr){var rr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;_setThrew(1,0)}}function invoke_iiji(e,t,I,B){var tr=stackSave();try{return getWasmTableEntry(e)(t,I,B)}catch(rr){if(stackRestore(tr),rr!==rr+0)throw rr;_setThrew(1,0)}}function invoke_vid(e,t,I){var B=stackSave();try{getWasmTableEntry(e)(t,I)}catch(tr){if(stackRestore(B),tr!==tr+0)throw tr;_setThrew(1,0)}}function invoke_viiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr,mr){var fr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr,mr)}catch(hr){if(stackRestore(fr),hr!==hr+0)throw hr;_setThrew(1,0)}}function invoke_viiij(e,t,I,B,tr){var rr=stackSave();try{getWasmTableEntry(e)(t,I,B,tr)}catch(ir){if(stackRestore(rr),ir!==ir+0)throw ir;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiii(e,t,I,B,tr,rr,ir,lr,dr,mr,fr,hr,_r,yr,Mr,vr,Sr){var br=stackSave();try{return getWasmTableEntry(e)(t,I,B,tr,rr,ir,lr,dr,mr,fr,hr,_r,yr,Mr,vr,Sr)}catch(gr){if(stackRestore(br),gr!==gr+0)throw gr;_setThrew(1,0)}}Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.callMain=callMain,Module.ccall=ccall,Module.cwrap=cwrap,Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToNewUTF8=stringToNewUTF8,Module.stringToUTF8OnStack=stringToUTF8OnStack,Module.FS_createPreloadedFile=FS_createPreloadedFile,Module.FS_unlink=FS_unlink,Module.FS_createPath=FS_createPath,Module.FS_createDevice=FS_createDevice,Module.FS=FS,Module.FS_createDataFile=FS_createDataFile,Module.FS_createLazyFile=FS_createLazyFile;var calledRun;dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var I=e.length,B=stackAlloc((I+1)*4),tr=B;e.forEach(ir=>{HEAPU32[tr>>2]=stringToUTF8OnStack(ir),tr+=4}),HEAPU32[tr>>2]=0;try{var rr=t(I,B);return exitJS(rr),rr}catch(ir){return handleException(ir)}}}function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0))return;function t(){var I;calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),readyPromiseResolve(Module),(I=Module.onRuntimeInitialized)==null||I.call(Module),shouldRunNow&&callMain(e),postRun()))}Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()}if(Module.preInit)for(typeof Module.preInit=="function"&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;return Module.noInitialRun&&(shouldRunNow=!1),run(),moduleRtn=readyPromise,moduleRtn}})(),ke=Qe,Te=ke,Y,W,j,J,$,_e,ie,me,Z,ae,oe,se,V,G,k,K,O,qe,re,pe=class ki extends z{constructor(t={},I={}){super(),R$2(this,O),R$2(this,Y,!1),R$2(this,W,!1),R$2(this,j,!1),R$2(this,J,!1),R$2(this,$,!1),R$2(this,_e,new H),R$2(this,ie,new H),R$2(this,me,new H),R$2(this,Z,!1),this.debug=0,R$2(this,ae),R$2(this,oe,[]),R$2(this,se,new ye),R$2(this,V),R$2(this,G),R$2(this,k,new Map),R$2(this,K,new Set),typeof t=="string"?I={dataDir:t,...I}:I=t,this.dataDir=I.dataDir,I.parsers!==void 0&&(this.parsers={...this.parsers,...I.parsers}),I.serializers!==void 0&&(this.serializers={...this.serializers,...I.serializers}),(I==null?void 0:I.debug)!==void 0&&(this.debug=I.debug),(I==null?void 0:I.relaxedDurability)!==void 0&&x$2(this,$,I.relaxedDurability),x$2(this,ae,I.extensions??{}),this.waitReady=T(this,O,qe).call(this,I??{})}static async create(t,I){let B=typeof t=="string"?{dataDir:t,...I??{}}:t??{},tr=new ki(B);return await tr.waitReady,tr}get Module(){return this.mod}get ready(){return h$1(this,Y)&&!h$1(this,W)&&!h$1(this,j)}get closed(){return h$1(this,j)}async close(){await this._checkReady(),x$2(this,W,!0);for(let t of h$1(this,oe))await t();try{await this.execProtocol(O$1.end()),this.mod._pg_shutdown()}catch(t){let I=t;if(!(I.name==="ExitStatus"&&I.status===0))throw t}await this.fs.closeFs(),x$2(this,j,!0),x$2(this,W,!1)}async[Symbol.asyncDispose](){await this.close()}async _handleBlob(t){x$2(this,V,t?await t.arrayBuffer():void 0)}async _cleanupBlob(){x$2(this,V,void 0)}async _getWrittenBlob(){if(!h$1(this,G))return;let t=new Blob(h$1(this,G));return x$2(this,G,void 0),t}async _checkReady(){if(h$1(this,W))throw new Error("PGlite is closing");if(h$1(this,j))throw new Error("PGlite is closed");h$1(this,Y)||await this.waitReady}execProtocolRawSync(t){let I=t.length,B=this.mod;B._interactive_write(I),B.HEAPU8.set(t,1),B._interactive_one();let tr=I+2,rr=tr+B._interactive_read();return B.HEAPU8.subarray(tr,rr)}async execProtocolRaw(t,{syncToFs:I=!0}={}){let B=t.length,tr=this.mod;tr._interactive_write(B),tr.HEAPU8.set(t,1),tr._interactive_one();let rr=B+2,ir=rr+tr._interactive_read(),lr=tr.HEAPU8.subarray(rr,ir);return I&&await this.syncToFs(),lr}async execProtocol(t,{syncToFs:I=!0,throwOnError:B=!0,onNotice:tr}={}){let rr=await this.execProtocolRaw(t,{syncToFs:I}),ir=[];return h$1(this,se).parse(rr,lr=>{if(lr instanceof E){if(x$2(this,se,new ye),B)throw lr}else if(lr instanceof ne)this.debug>0&&console.warn(lr),tr&&tr(lr);else if(lr instanceof ee$1)switch(lr.text){case"BEGIN":x$2(this,J,!0);break;case"COMMIT":case"ROLLBACK":x$2(this,J,!1);break}else if(lr instanceof X){let dr=h$1(this,k).get(lr.channel);dr&&dr.forEach(mr=>{queueMicrotask(()=>mr(lr.payload))}),h$1(this,K).forEach(mr=>{queueMicrotask(()=>mr(lr.channel,lr.payload))})}ir.push(lr)}),{messages:ir,data:rr}}isInTransaction(){return h$1(this,J)}async syncToFs(){if(h$1(this,Z))return;x$2(this,Z,!0);let t=async()=>{await h$1(this,me).runExclusive(async()=>{x$2(this,Z,!1),await this.fs.syncToFs(h$1(this,$))})};h$1(this,$)?t():await t()}async listen(t,I){var tr;let B=Nr(t);h$1(this,k).has(B)||h$1(this,k).set(B,new Set),h$1(this,k).get(B).add(I);try{await this.exec(`LISTEN ${t}`)}catch(rr){throw h$1(this,k).get(B).delete(I),((tr=h$1(this,k).get(B))==null?void 0:tr.size)===0&&h$1(this,k).delete(B),rr}return async()=>{await this.unlisten(B,I)}}async unlisten(t,I){var tr,rr;let B=Nr(t);I?((tr=h$1(this,k).get(B))==null||tr.delete(I),((rr=h$1(this,k).get(B))==null?void 0:rr.size)===0&&(await this.exec(`UNLISTEN ${t}`),h$1(this,k).delete(B))):(await this.exec(`UNLISTEN ${t}`),h$1(this,k).delete(B))}onNotification(t){return h$1(this,K).add(t),()=>{h$1(this,K).delete(t)}}offNotification(t){h$1(this,K).delete(t)}async dumpDataDir(t){var B;let I=((B=this.dataDir)==null?void 0:B.split("/").pop())??"pgdata";return this.fs.dumpTar(I,t)}_runExclusiveQuery(t){return h$1(this,_e).runExclusive(t)}_runExclusiveTransaction(t){return h$1(this,ie).runExclusive(t)}async clone(){let t=await this.dumpDataDir("none");return new ki({loadDataDir:t})}};Y=new WeakMap,W=new WeakMap,j=new WeakMap,J=new WeakMap,$=new WeakMap,_e=new WeakMap,ie=new WeakMap,me=new WeakMap,Z=new WeakMap,ae=new WeakMap,oe=new WeakMap,se=new WeakMap,V=new WeakMap,G=new WeakMap,k=new WeakMap,K=new WeakMap,O=new WeakSet,qe=async function(e){if(e.fs)this.fs=e.fs;else{let{dataDir:mr,fsType:fr}=Fe(e.dataDir);this.fs=await Ae(mr,fr)}let t={},I=[],B=[`PGDATA=${C}`,`PREFIX=${Vr}`,`PGUSER=${e.username??"postgres"}`,`PGDATABASE=${e.database??"template1"}`,"MODE=REACT","REPL=N",...this.debug?["-d",this.debug.toString()]:[]];e.wasmModule||Rr();let tr=e.fsBundle?e.fsBundle.arrayBuffer():Er(),rr;tr.then(mr=>{rr=mr});let ir={WASM_PREFIX:Vr,arguments:B,INITIAL_MEMORY:e.initialMemory,noExitRuntime:!0,...this.debug>0?{print:console.info,printErr:console.error}:{print:()=>{},printErr:()=>{}},instantiateWasm:(mr,fr)=>(Tr(mr,e.wasmModule).then(({instance:hr,module:_r})=>{fr(hr,_r)}),{}),getPreloadedPackage:(mr,fr)=>{if(mr==="postgres.data"){if(rr.byteLength!==fr)throw new Error(`Invalid FS bundle size: ${rr.byteLength} !== ${fr}`);return rr}throw new Error(`Unknown package: ${mr}`)},preRun:[mr=>{let fr=mr.FS.makedev(64,0),hr={open:_r=>{},close:_r=>{},read:(_r,yr,Mr,vr,Sr)=>{let br=h$1(this,V);if(!br)throw new Error("No /dev/blob File or Blob provided to read from");let gr=new Uint8Array(br);if(Sr>=gr.length)return 0;let wr=Math.min(gr.length-Sr,vr);for(let xr=0;xr<wr;xr++)yr[Mr+xr]=gr[Sr+xr];return wr},write:(_r,yr,Mr,vr,Sr)=>(h$1(this,G)??x$2(this,G,[]),h$1(this,G).push(yr.slice(Mr,Mr+vr)),vr),llseek:(_r,yr,Mr)=>{let vr=h$1(this,V);if(!vr)throw new Error("No /dev/blob File or Blob provided to llseek");let Sr=yr;if(Mr===1?Sr+=_r.position:Mr===2&&(Sr=new Uint8Array(vr).length),Sr<0)throw new mr.FS.ErrnoError(28);return Sr}};mr.FS.registerDevice(fr,hr),mr.FS.mkdev("/dev/blob",fr)}]},{emscriptenOpts:lr}=await this.fs.init(this,ir);ir=lr;for(let[mr,fr]of Object.entries(h$1(this,ae)))if(fr instanceof URL)t[mr]=ge(fr);else{let hr=await fr.setup(this,ir);if(hr.emscriptenOpts&&(ir=hr.emscriptenOpts),hr.namespaceObj){let _r=this;_r[mr]=hr.namespaceObj}hr.bundlePath&&(t[mr]=ge(hr.bundlePath)),hr.init&&I.push(hr.init),hr.close&&h$1(this,oe).push(hr.close)}if(ir.pg_extensions=t,await tr,this.mod=await Te(ir),await this.fs.initialSyncFs(),e.loadDataDir){if(this.mod.FS.analyzePath(C+"/PG_VERSION").exists)throw new Error("Database already exists, cannot load from tarball");T(this,O,re).call(this,"pglite: loading data from tarball"),await ce$1(this.mod.FS,e.loadDataDir,C)}this.mod.FS.analyzePath(C+"/PG_VERSION").exists?T(this,O,re).call(this,"pglite: found DB, resuming"):T(this,O,re).call(this,"pglite: no db"),await Pe(this.mod,(...mr)=>T(this,O,re).call(this,...mr));let dr=this.mod._pg_initdb();if(!dr)throw new Error("INITDB failed to return value");if(dr&1)throw new Error("INITDB failed");if(dr&2){let mr=e.username??"postgres",fr=e.database??"template1";if(dr&4){if(!(dr&12))throw new Error("Invalid db/user combination")}else if(fr!=="template1"&&mr!=="postgres")throw new Error("INITDB created a new datadir, but an alternative db/user was requested")}await this.syncToFs(),x$2(this,Y,!0),await this.exec("SET search_path TO public;"),await this._initArrayTypes();for(let mr of I)await mr()},re=function(...e){this.debug>0&&console.log(...e)};var Ue=pe;u$1();const initSql=`
139
139
 
@@ -220,5 +220,5 @@ ${lr}`),0}},__dlopen_js=e=>dlopenInternal(e,{loadAsync:!1});__dlopen_js.sig="pp"
220
220
  * LICENSE.md file in the root directory of this source tree.
221
221
  *
222
222
  * @license MIT
223
- */function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var I=arguments[t];for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(e[B]=I[B])}return e},_extends.apply(this,arguments)}function createSearchParams(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,I)=>{let B=e[I];return t.concat(Array.isArray(B)?B.map(tr=>[I,tr]):[[I,B]])},[]))}function getSearchParamsForLocation(e,t){let I=createSearchParams(e);return t&&t.forEach((B,tr)=>{I.has(tr)||t.getAll(tr).forEach(rr=>{I.append(tr,rr)})}),I}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch(e){}function createBrowserRouter(e,t){return createRouter$1({basename:t==null?void 0:t.basename,future:_extends({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:createBrowserHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||parseHydrationData(),routes:e,mapRouteProperties,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function parseHydrationData(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_extends({},t,{errors:deserializeErrors(t.errors)})),t}function deserializeErrors(e){if(!e)return null;let t=Object.entries(e),I={};for(let[B,tr]of t)if(tr&&tr.__type==="RouteErrorResponse")I[B]=new ErrorResponseImpl(tr.status,tr.statusText,tr.data,tr.internal===!0);else if(tr&&tr.__type==="Error"){if(tr.__subType){let rr=window[tr.__subType];if(typeof rr=="function")try{let ir=new rr(tr.message);ir.stack="",I[B]=ir}catch{}}if(I[B]==null){let rr=new Error(tr.message);rr.stack="",I[B]=rr}}else I[B]=tr;return I}const ViewTransitionContext=React.createContext({isTransitioning:!1}),FetchersContext=React.createContext(new Map),START_TRANSITION="startTransition",startTransitionImpl=React[START_TRANSITION],FLUSH_SYNC="flushSync",flushSyncImpl=ReactDOM[FLUSH_SYNC];function startTransitionSafe(e){startTransitionImpl?startTransitionImpl(e):e()}function flushSyncSafe(e){flushSyncImpl?flushSyncImpl(e):e()}class Deferred{constructor(){this.status="pending",this.promise=new Promise((t,I)=>{this.resolve=B=>{this.status==="pending"&&(this.status="resolved",t(B))},this.reject=B=>{this.status==="pending"&&(this.status="rejected",I(B))}})}}function RouterProvider(e){let{fallbackElement:t,router:I,future:B}=e,[tr,rr]=React.useState(I.state),[ir,lr]=React.useState(),[dr,mr]=React.useState({isTransitioning:!1}),[fr,hr]=React.useState(),[_r,yr]=React.useState(),[Mr,vr]=React.useState(),Sr=React.useRef(new Map),{v7_startTransition:br}=B||{},gr=React.useCallback(Lr=>{br?startTransitionSafe(Lr):Lr()},[br]),wr=React.useCallback((Lr,Kn)=>{let{deletedFetchers:Pr,flushSync:Fr,viewTransitionOpts:Jr}=Kn;Lr.fetchers.forEach((Ar,$r)=>{Ar.data!==void 0&&Sr.current.set($r,Ar.data)}),Pr.forEach(Ar=>Sr.current.delete(Ar));let Jn=I.window==null||I.window.document==null||typeof I.window.document.startViewTransition!="function";if(!Jr||Jn){Fr?flushSyncSafe(()=>rr(Lr)):gr(()=>rr(Lr));return}if(Fr){flushSyncSafe(()=>{_r&&(fr&&fr.resolve(),_r.skipTransition()),mr({isTransitioning:!0,flushSync:!0,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation})});let Ar=I.window.document.startViewTransition(()=>{flushSyncSafe(()=>rr(Lr))});Ar.finished.finally(()=>{flushSyncSafe(()=>{hr(void 0),yr(void 0),lr(void 0),mr({isTransitioning:!1})})}),flushSyncSafe(()=>yr(Ar));return}_r?(fr&&fr.resolve(),_r.skipTransition(),vr({state:Lr,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation})):(lr(Lr),mr({isTransitioning:!0,flushSync:!1,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation}))},[I.window,_r,fr,Sr,gr]);React.useLayoutEffect(()=>I.subscribe(wr),[I,wr]),React.useEffect(()=>{dr.isTransitioning&&!dr.flushSync&&hr(new Deferred)},[dr]),React.useEffect(()=>{if(fr&&ir&&I.window){let Lr=ir,Kn=fr.promise,Pr=I.window.document.startViewTransition(async()=>{gr(()=>rr(Lr)),await Kn});Pr.finished.finally(()=>{hr(void 0),yr(void 0),lr(void 0),mr({isTransitioning:!1})}),yr(Pr)}},[gr,ir,fr,I.window]),React.useEffect(()=>{fr&&ir&&tr.location.key===ir.location.key&&fr.resolve()},[fr,_r,tr.location,ir]),React.useEffect(()=>{!dr.isTransitioning&&Mr&&(lr(Mr.state),mr({isTransitioning:!0,flushSync:!1,currentLocation:Mr.currentLocation,nextLocation:Mr.nextLocation}),vr(void 0))},[dr.isTransitioning,Mr]),React.useEffect(()=>{},[]);let xr=React.useMemo(()=>({createHref:I.createHref,encodeLocation:I.encodeLocation,go:Lr=>I.navigate(Lr),push:(Lr,Kn,Pr)=>I.navigate(Lr,{state:Kn,preventScrollReset:Pr==null?void 0:Pr.preventScrollReset}),replace:(Lr,Kn,Pr)=>I.navigate(Lr,{replace:!0,state:Kn,preventScrollReset:Pr==null?void 0:Pr.preventScrollReset})}),[I]),Ir=I.basename||"/",kr=React.useMemo(()=>({router:I,navigator:xr,static:!1,basename:Ir}),[I,xr,Ir]),Or=React.useMemo(()=>({v7_relativeSplatPath:I.future.v7_relativeSplatPath}),[I.future.v7_relativeSplatPath]);return React.useEffect(()=>logV6DeprecationWarnings(),[B,I.future]),React.createElement(React.Fragment,null,React.createElement(DataRouterContext.Provider,{value:kr},React.createElement(DataRouterStateContext.Provider,{value:tr},React.createElement(FetchersContext.Provider,{value:Sr.current},React.createElement(ViewTransitionContext.Provider,{value:dr},React.createElement(Router$1,{basename:Ir,location:tr.location,navigationType:tr.historyAction,navigator:xr,future:Or},tr.initialized||I.future.v7_partialHydration?React.createElement(MemoizedDataRoutes,{routes:I.routes,future:I.future,state:tr}):t))))),null)}const MemoizedDataRoutes=React.memo(DataRoutes);function DataRoutes(e){let{routes:t,future:I,state:B}=e;return useRoutesImpl(t,void 0,B,I)}var DataRouterHook;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(e){let t=React.useRef(createSearchParams(e)),I=React.useRef(!1),B=useLocation(),tr=React.useMemo(()=>getSearchParamsForLocation(B.search,I.current?null:t.current),[B.search]),rr=useNavigate(),ir=React.useCallback((lr,dr)=>{const mr=createSearchParams(typeof lr=="function"?lr(tr):lr);I.current=!0,rr("?"+mr,dr)},[rr,tr]);return[tr,ir]}const logger$1=childLogger(["sentry"]);let clientStarted=!1;async function getSentry(){return await __vitePreload(()=>import("./index.Dq6VnXBz.js"),__vite__mapDeps([14,4,2,1,3,5,6,7]),import.meta.url)}async function initSentry(){const e=window.__VITE_ENVS.SENTRY_RELEASE,t=await getSentry(),I=[t.httpClientIntegration(),t.extraErrorDataIntegration({depth:5}),t.replayIntegration(),t.captureConsoleIntegration({levels:["error"]})];connectConfig.sentry.tracing&&I.push(t.reactRouterV6BrowserTracingIntegration({useEffect:React__default.useEffect,useLocation,useNavigationType,createRoutesFromChildren,matchRoutes})),t.init({release:e,dsn:connectConfig.sentry.dsn,environment:connectConfig.sentry.env,integrations:I,ignoreErrors:["User is not allowed to create files","User is not allowed to move documents","The user aborted a request."],sendDefaultPii:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(B,tr){const rr=tr.originalException;return rr instanceof TypeError&&rr.message.includes("Failed to fetch")&&!navigator.onLine?null:B}}),clientStarted=!0}async function closeClient(){if(!clientStarted)return;const t=(await getSentry()).getClient();return t==null?void 0:t.close()}function useInitSentry(){const[e]=useAcceptedCookies(),{analytics:t}=e;useEffect(()=>{if(!t){closeClient().catch(I=>logger$1.error(I));return}clientStarted||!connectConfig.sentry.dsn||connectConfig.sentry.dsn===""||initSentry().catch(I=>logger$1.error(I))},[t])}var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(e,t,I,B)=>{for(var tr=__getOwnPropDesc(t,I),rr=e.length-1,ir;rr>=0;rr--)(ir=e[rr])&&(tr=ir(t,I,tr)||tr);return tr&&__defProp(t,I,tr),tr};function checkServer(e,t,I){const B=I.value;I.value=function(...tr){if(!this.server)throw new Error("Read mode document drive not initialized.");return B.apply(this,tr)}}function bindClassMethods(e){const t=Object.getPrototypeOf(e);Object.getOwnPropertyNames(t).forEach(B=>{const tr=Object.getOwnPropertyDescriptor(t,B);tr&&typeof tr.value=="function"&&B!=="constructor"&&(e[B]=e[B].bind(e))})}class ReadModeContextImpl{constructor(t){Mi(this,"server");bindClassMethods(this),this.server=t}getServer(){return this.server}setDocumentDrive(t){this.server=t}migrateReadDrive(t,I){return this.server.migrateReadDrive(t,I)}addReadDrive(t,I){return this.server.addReadDrive(t,I)}getReadDrives(){return this.server.getReadDrives()}getReadDriveBySlug(t){return this.server.getReadDriveBySlug(t)}getReadDrive(t){return this.server.getReadDrive(t)}getReadDriveContext(t){return this.server.getReadDriveContext(t)}fetchDrive(t){return this.server.fetchDrive(t)}fetchDocument(t,I,B){return this.server.fetchDocument(t,I,B)}deleteReadDrive(t){return this.server.deleteReadDrive(t)}onReadDrivesUpdate(t){return this.server.onReadDrivesUpdate(t)}}__decorateClass([checkServer],ReadModeContextImpl.prototype,"migrateReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"addReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDrives");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDriveBySlug");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDriveContext");__decorateClass([checkServer],ReadModeContextImpl.prototype,"fetchDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"fetchDocument");__decorateClass([checkServer],ReadModeContextImpl.prototype,"deleteReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"onReadDrivesUpdate");const ReadModeInstance=new ReadModeContextImpl,ReadModeContext=createContext({...ReadModeInstance,readDrives:[]});async function getReadDrives(e){const t=await e.getReadDrives();return(await Promise.all(t.map(B=>e.getReadDrive(B)))).filter(B=>!(B instanceof ReadDriveNotFoundError))}const ReadModeContextProvider=e=>{const t=useAsyncReactor(),[I,B]=useState([]),tr=useUserPermissions(),[rr,ir]=useState(!1);useEffect(()=>{t&&(ReadModeInstance.setDocumentDrive(t),ir(!0))},[t]);const lr=tr===void 0?void 0:!(tr.isAllowedToCreateDocuments||tr.isAllowedToEditDocuments);useMemo(()=>{if(!rr||lr===void 0)return;const mr=lr?"READ":"WRITE",fr=ReadModeInstance.getServer();fr&&typeof fr.setAllDefaultDrivesAccessLevel=="function"&&fr.setAllDefaultDrivesAccessLevel(mr).catch(logger$4.error)},[lr,rr]),useEffect(()=>{if(!rr)return;getReadDrives(ReadModeInstance).then(fr=>B(fr)).catch(logger$4.error);const mr=ReadModeInstance.onReadDrivesUpdate(fr=>{B(hr=>hr.length!==fr.length||drivesToHash(hr)!==drivesToHash(fr)?fr:hr)}).catch(logger$4.error);return()=>{mr.then(fr=>fr==null?void 0:fr()).catch(logger$4.error)}},[rr]);const dr=useMemo(()=>({...ReadModeInstance,readDrives:I}),[I]);return jsx(ReadModeContext.Provider,{...e,value:dr})},useReadModeContext=()=>useContext(ReadModeContext),SentryProvider=({children:e})=>(useInitSentry(),e);function getProcessorsFromModules(e){return e.map(t=>({packageName:t.manifest.name,processors:t.processors})).reduce((t,I)=>(I.processors&&(t=[...t,{packageName:I.packageName,processors:I.processors}]),t),[])}const externalProcessorsAtom=atom(async e=>{const t=await e(externalPackagesAtom);return getProcessorsFromModules(t)}),useExternalProcessors=()=>useAtomValue(externalProcessorsAtom);async function createProcessorManager(){const e=await atomStore.get(reactorAtom),t=new ProcessorManager(e.listeners,e);return e.on("driveAdded",async I=>{await t.registerDrive(I.header.id)}),t}const processorManagerAtom=atomWithLazy(createProcessorManager);processorManagerAtom.debugLabel="processorManagerAtomInConnect";const useProcessorManager=()=>useAtomValue(processorManagerAtom),unwrappedProcessorManager=unwrap(processorManagerAtom);unwrappedProcessorManager.debugLabel="unwrappedProcessorManagerInConnect";const useUnwrappedProcessorManager=()=>useAtomValue(unwrappedProcessorManager);atomStore.sub(reactorAtom,()=>atomStore.get(processorManagerAtom));const logger=childLogger(["reactor-analytics"]);function createPgLiteFactoryWorker(e){return async()=>{const t=(await __vitePreload(async()=>{const{default:rr}=await import("./pglite-worker.BAk0Ey85.js");return{default:rr}},[],import.meta.url)).default,{PGliteWorker:I}=await __vitePreload(async()=>{const{PGliteWorker:rr}=await import("./index.Dc4XjKbd.js");return{PGliteWorker:rr}},__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),B=new t({name:"pglite-worker"});B.onmessage=rr=>{logger.verbose(rr.data)},B.onerror=rr=>{throw logger.error(rr.message),rr.error};const tr=new I(B,{meta:{databaseName:e}});return await tr.waitReady,tr}}async function registerExternalProcessors(e,t,I,B){return await e.registerFactory(I,B({analyticsStore:t}))}async function registerDiffAnalyzer(e,t){const{processorFactory:I}=await __vitePreload(async()=>{const{processorFactory:B}=await import("./index.BJM1a6Vn.js");return{processorFactory:B}},__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return await e.registerFactory("@powerhousedao/diff-analyzer",I({analyticsStore:t}))}async function registerDriveAnalytics(e,t){const{processorFactory:I}=await __vitePreload(async()=>{const{processorFactory:B}=await import("./index.DEtgl3ZO.js");return{processorFactory:B}},__vite__mapDeps([17,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return await e.registerFactory("@powerhousedao/common/drive-analytics",I({analyticsStore:t}))}function DiffAnalyzerProcessor(){const e=useAnalyticsStoreAsync(),t=useUnwrappedProcessorManager(),I=useRef(!1);return useEffect(()=>{!e.data||!t||I.current||(I.current=!0,registerDiffAnalyzer(t,e.data).catch(logger.error))},[e.data,t]),null}function DriveAnalyticsProcessor(){const e=useAnalyticsStoreAsync(),t=useUnwrappedProcessorManager(),I=useRef(!1);return useEffect(()=>{!e.data||!t||I.current||(I.current=!0,registerDriveAnalytics(t,e.data).then(()=>{logger.verbose("Drive analytics processor registered")}).catch(logger.error))},[e.data,t]),null}function ExternalProcessors(){const e=useExternalProcessors(),t=useAnalyticsStoreAsync(),I=useUnwrappedProcessorManager(),B=useRef(!1);return useEffect(()=>{if(!t.data||!I||B.current||e.length===0)return;B.current=!0;let tr=0;for(const{packageName:rr,processors:ir}of e)registerExternalProcessors(I,t.data,`${rr}-${tr}`,ir).catch(logger.error),tr++},[t.data,I]),null}function ProcessorManagerProvider({children:e}){return jsxs(AnalyticsProvider,{options:{databaseName:connectConfig.analytics.databaseName,pgLiteFactory:connectConfig.analytics.useWorker?createPgLiteFactoryWorker(connectConfig.analytics.databaseName):void 0},children:[connectConfig.analytics.diffProcessorEnabled&&jsx(DiffAnalyzerProcessor,{}),connectConfig.analytics.driveAnalyticsEnabled&&jsx(DriveAnalyticsProcessor,{}),connectConfig.analytics.externalProcessorsEnabled&&jsx(ExternalProcessors,{}),e]})}const Home=React__default.lazy(()=>__vitePreload(()=>import("./home.FhOoy9rZ.js"),__vite__mapDeps([18,4,2,1,3,5,6,7,19,20,21,8,22,23,10]),import.meta.url).then(e=>({default:e.Home}))),Content=React__default.lazy(()=>__vitePreload(()=>import("./content.CNwqWaAX.js"),__vite__mapDeps([24,1,25,8,4,2,3,5,6,7,26,21,11,23,27,28,9,10,12]),import.meta.url)),Root=React__default.lazy(()=>__vitePreload(()=>import("./root.CcruTSJD.js"),__vite__mapDeps([29,25,1,11,19,20,21,4,2,3,5,6,7,8,22,23,10,28,27,9,12]),import.meta.url)),AtlasImport=React__default.lazy(()=>__vitePreload(()=>import("./atlas-import.B08ZeL8Z.js"),__vite__mapDeps([30,1,28,8,4,2,3,5,6,7,11,21]),import.meta.url).then(e=>({default:e.AtlasImport}))),routerBasename=connectConfig.routerBasename.endsWith("/")?connectConfig.routerBasename.slice(0,-1):connectConfig.routerBasename;function createRouter(e){return createBrowserRouter(e,{basename:routerBasename,future:{v7_fetcherPersist:!0,v7_relativeSplatPath:!0}})}function createRoutes(){return[{element:jsx(Suspense,{name:"RouteRoot",children:jsx(Root,{})}),children:[{index:!0,element:jsx(Suspense,{name:"Home",children:jsx(Home,{})})},{path:"d?/:driveId?/*?",element:jsx(Suspense,{name:"Drive",children:jsx(Content,{})})},{path:"import/:documentId",element:jsx(Suspense,{name:"AtlasImport",children:jsx(AtlasImport,{})})}]}]}const routes=createRoutes(),router=createRouter(routes),Router=()=>jsx(RouterProvider,{router});window.__VITE_ENVS.MODE==="development"?window.documentEditorDebugTools=new DocumentEditorDebugTools:serviceWorkerManager.registerServiceWorker(!1);const PreloadRenown=()=>(useRenown(),null),PreloadProcessorManager=()=>(useProcessorManager(),null),App=()=>jsxs(Fragment,{children:[jsx(SentryProvider,{children:jsx(WagmiContext,{children:jsx(ReadModeContextProvider,{children:jsxs(ProcessorManagerProvider,{children:[jsx(ToastContainer,{position:"bottom-right",containerId:"connect"}),jsxs(UiNodesContextProvider,{children:[jsx(Router,{}),jsx(Analytics,{})]})]})})})}),jsxs(Suspense,{children:[jsx(PreloadProcessorManager,{}),jsx(PreloadRenown,{})]})]}),app=Object.freeze(Object.defineProperty({__proto__:null,default:App},Symbol.toStringTag,{value:"Module"}));export{AnalyticsPath as A,Cr as C,DateTime as D,Nr as N,R$2 as R,T,U$1 as U,useAnalyticsStoreAsync as a,useAnalyticsEngineAsync as b,AnalyticsGranularity as c,useReadModeContext as d,useSearchParams as e,ur as f,C as g,h$1 as h,cr as i,app as j,pr as p,u$1 as u,x$2 as x,z};
224
- //# sourceMappingURL=app.BBGMhdcG.js.map
223
+ */function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var I=arguments[t];for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(e[B]=I[B])}return e},_extends.apply(this,arguments)}function createSearchParams(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,I)=>{let B=e[I];return t.concat(Array.isArray(B)?B.map(tr=>[I,tr]):[[I,B]])},[]))}function getSearchParamsForLocation(e,t){let I=createSearchParams(e);return t&&t.forEach((B,tr)=>{I.has(tr)||t.getAll(tr).forEach(rr=>{I.append(tr,rr)})}),I}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch(e){}function createBrowserRouter(e,t){return createRouter$1({basename:t==null?void 0:t.basename,future:_extends({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:createBrowserHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||parseHydrationData(),routes:e,mapRouteProperties,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function parseHydrationData(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_extends({},t,{errors:deserializeErrors(t.errors)})),t}function deserializeErrors(e){if(!e)return null;let t=Object.entries(e),I={};for(let[B,tr]of t)if(tr&&tr.__type==="RouteErrorResponse")I[B]=new ErrorResponseImpl(tr.status,tr.statusText,tr.data,tr.internal===!0);else if(tr&&tr.__type==="Error"){if(tr.__subType){let rr=window[tr.__subType];if(typeof rr=="function")try{let ir=new rr(tr.message);ir.stack="",I[B]=ir}catch{}}if(I[B]==null){let rr=new Error(tr.message);rr.stack="",I[B]=rr}}else I[B]=tr;return I}const ViewTransitionContext=React.createContext({isTransitioning:!1}),FetchersContext=React.createContext(new Map),START_TRANSITION="startTransition",startTransitionImpl=React[START_TRANSITION],FLUSH_SYNC="flushSync",flushSyncImpl=ReactDOM[FLUSH_SYNC];function startTransitionSafe(e){startTransitionImpl?startTransitionImpl(e):e()}function flushSyncSafe(e){flushSyncImpl?flushSyncImpl(e):e()}class Deferred{constructor(){this.status="pending",this.promise=new Promise((t,I)=>{this.resolve=B=>{this.status==="pending"&&(this.status="resolved",t(B))},this.reject=B=>{this.status==="pending"&&(this.status="rejected",I(B))}})}}function RouterProvider(e){let{fallbackElement:t,router:I,future:B}=e,[tr,rr]=React.useState(I.state),[ir,lr]=React.useState(),[dr,mr]=React.useState({isTransitioning:!1}),[fr,hr]=React.useState(),[_r,yr]=React.useState(),[Mr,vr]=React.useState(),Sr=React.useRef(new Map),{v7_startTransition:br}=B||{},gr=React.useCallback(Lr=>{br?startTransitionSafe(Lr):Lr()},[br]),wr=React.useCallback((Lr,Kn)=>{let{deletedFetchers:Pr,flushSync:Fr,viewTransitionOpts:Jr}=Kn;Lr.fetchers.forEach((Ar,$r)=>{Ar.data!==void 0&&Sr.current.set($r,Ar.data)}),Pr.forEach(Ar=>Sr.current.delete(Ar));let Jn=I.window==null||I.window.document==null||typeof I.window.document.startViewTransition!="function";if(!Jr||Jn){Fr?flushSyncSafe(()=>rr(Lr)):gr(()=>rr(Lr));return}if(Fr){flushSyncSafe(()=>{_r&&(fr&&fr.resolve(),_r.skipTransition()),mr({isTransitioning:!0,flushSync:!0,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation})});let Ar=I.window.document.startViewTransition(()=>{flushSyncSafe(()=>rr(Lr))});Ar.finished.finally(()=>{flushSyncSafe(()=>{hr(void 0),yr(void 0),lr(void 0),mr({isTransitioning:!1})})}),flushSyncSafe(()=>yr(Ar));return}_r?(fr&&fr.resolve(),_r.skipTransition(),vr({state:Lr,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation})):(lr(Lr),mr({isTransitioning:!0,flushSync:!1,currentLocation:Jr.currentLocation,nextLocation:Jr.nextLocation}))},[I.window,_r,fr,Sr,gr]);React.useLayoutEffect(()=>I.subscribe(wr),[I,wr]),React.useEffect(()=>{dr.isTransitioning&&!dr.flushSync&&hr(new Deferred)},[dr]),React.useEffect(()=>{if(fr&&ir&&I.window){let Lr=ir,Kn=fr.promise,Pr=I.window.document.startViewTransition(async()=>{gr(()=>rr(Lr)),await Kn});Pr.finished.finally(()=>{hr(void 0),yr(void 0),lr(void 0),mr({isTransitioning:!1})}),yr(Pr)}},[gr,ir,fr,I.window]),React.useEffect(()=>{fr&&ir&&tr.location.key===ir.location.key&&fr.resolve()},[fr,_r,tr.location,ir]),React.useEffect(()=>{!dr.isTransitioning&&Mr&&(lr(Mr.state),mr({isTransitioning:!0,flushSync:!1,currentLocation:Mr.currentLocation,nextLocation:Mr.nextLocation}),vr(void 0))},[dr.isTransitioning,Mr]),React.useEffect(()=>{},[]);let xr=React.useMemo(()=>({createHref:I.createHref,encodeLocation:I.encodeLocation,go:Lr=>I.navigate(Lr),push:(Lr,Kn,Pr)=>I.navigate(Lr,{state:Kn,preventScrollReset:Pr==null?void 0:Pr.preventScrollReset}),replace:(Lr,Kn,Pr)=>I.navigate(Lr,{replace:!0,state:Kn,preventScrollReset:Pr==null?void 0:Pr.preventScrollReset})}),[I]),Ir=I.basename||"/",kr=React.useMemo(()=>({router:I,navigator:xr,static:!1,basename:Ir}),[I,xr,Ir]),Or=React.useMemo(()=>({v7_relativeSplatPath:I.future.v7_relativeSplatPath}),[I.future.v7_relativeSplatPath]);return React.useEffect(()=>logV6DeprecationWarnings(),[B,I.future]),React.createElement(React.Fragment,null,React.createElement(DataRouterContext.Provider,{value:kr},React.createElement(DataRouterStateContext.Provider,{value:tr},React.createElement(FetchersContext.Provider,{value:Sr.current},React.createElement(ViewTransitionContext.Provider,{value:dr},React.createElement(Router$1,{basename:Ir,location:tr.location,navigationType:tr.historyAction,navigator:xr,future:Or},tr.initialized||I.future.v7_partialHydration?React.createElement(MemoizedDataRoutes,{routes:I.routes,future:I.future,state:tr}):t))))),null)}const MemoizedDataRoutes=React.memo(DataRoutes);function DataRoutes(e){let{routes:t,future:I,state:B}=e;return useRoutesImpl(t,void 0,B,I)}var DataRouterHook;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(e){let t=React.useRef(createSearchParams(e)),I=React.useRef(!1),B=useLocation(),tr=React.useMemo(()=>getSearchParamsForLocation(B.search,I.current?null:t.current),[B.search]),rr=useNavigate(),ir=React.useCallback((lr,dr)=>{const mr=createSearchParams(typeof lr=="function"?lr(tr):lr);I.current=!0,rr("?"+mr,dr)},[rr,tr]);return[tr,ir]}const logger$1=childLogger(["sentry"]);let clientStarted=!1;async function getSentry(){return await __vitePreload(()=>import("./index.wi4PancZ.js"),__vite__mapDeps([14,4,2,1,3,5,6,7]),import.meta.url)}async function initSentry(){const e=window.__VITE_ENVS.SENTRY_RELEASE,t=await getSentry(),I=[t.httpClientIntegration(),t.extraErrorDataIntegration({depth:5}),t.replayIntegration(),t.captureConsoleIntegration({levels:["error"]})];connectConfig.sentry.tracing&&I.push(t.reactRouterV6BrowserTracingIntegration({useEffect:React__default.useEffect,useLocation,useNavigationType,createRoutesFromChildren,matchRoutes})),t.init({release:e,dsn:connectConfig.sentry.dsn,environment:connectConfig.sentry.env,integrations:I,ignoreErrors:["User is not allowed to create files","User is not allowed to move documents","The user aborted a request."],sendDefaultPii:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(B,tr){const rr=tr.originalException;return rr instanceof TypeError&&rr.message.includes("Failed to fetch")&&!navigator.onLine?null:B}}),clientStarted=!0}async function closeClient(){if(!clientStarted)return;const t=(await getSentry()).getClient();return t==null?void 0:t.close()}function useInitSentry(){const[e]=useAcceptedCookies(),{analytics:t}=e;useEffect(()=>{if(!t){closeClient().catch(I=>logger$1.error(I));return}clientStarted||!connectConfig.sentry.dsn||connectConfig.sentry.dsn===""||initSentry().catch(I=>logger$1.error(I))},[t])}var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(e,t,I,B)=>{for(var tr=__getOwnPropDesc(t,I),rr=e.length-1,ir;rr>=0;rr--)(ir=e[rr])&&(tr=ir(t,I,tr)||tr);return tr&&__defProp(t,I,tr),tr};function checkServer(e,t,I){const B=I.value;I.value=function(...tr){if(!this.server)throw new Error("Read mode document drive not initialized.");return B.apply(this,tr)}}function bindClassMethods(e){const t=Object.getPrototypeOf(e);Object.getOwnPropertyNames(t).forEach(B=>{const tr=Object.getOwnPropertyDescriptor(t,B);tr&&typeof tr.value=="function"&&B!=="constructor"&&(e[B]=e[B].bind(e))})}class ReadModeContextImpl{constructor(t){Mi(this,"server");bindClassMethods(this),this.server=t}getServer(){return this.server}setDocumentDrive(t){this.server=t}migrateReadDrive(t,I){return this.server.migrateReadDrive(t,I)}addReadDrive(t,I){return this.server.addReadDrive(t,I)}getReadDrives(){return this.server.getReadDrives()}getReadDriveBySlug(t){return this.server.getReadDriveBySlug(t)}getReadDrive(t){return this.server.getReadDrive(t)}getReadDriveContext(t){return this.server.getReadDriveContext(t)}fetchDrive(t){return this.server.fetchDrive(t)}fetchDocument(t,I,B){return this.server.fetchDocument(t,I,B)}deleteReadDrive(t){return this.server.deleteReadDrive(t)}onReadDrivesUpdate(t){return this.server.onReadDrivesUpdate(t)}}__decorateClass([checkServer],ReadModeContextImpl.prototype,"migrateReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"addReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDrives");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDriveBySlug");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"getReadDriveContext");__decorateClass([checkServer],ReadModeContextImpl.prototype,"fetchDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"fetchDocument");__decorateClass([checkServer],ReadModeContextImpl.prototype,"deleteReadDrive");__decorateClass([checkServer],ReadModeContextImpl.prototype,"onReadDrivesUpdate");const ReadModeInstance=new ReadModeContextImpl,ReadModeContext=createContext({...ReadModeInstance,readDrives:[]});async function getReadDrives(e){const t=await e.getReadDrives();return(await Promise.all(t.map(B=>e.getReadDrive(B)))).filter(B=>!(B instanceof ReadDriveNotFoundError))}const ReadModeContextProvider=e=>{const t=useAsyncReactor(),[I,B]=useState([]),tr=useUserPermissions(),[rr,ir]=useState(!1);useEffect(()=>{t&&(ReadModeInstance.setDocumentDrive(t),ir(!0))},[t]);const lr=tr===void 0?void 0:!(tr.isAllowedToCreateDocuments||tr.isAllowedToEditDocuments);useMemo(()=>{if(!rr||lr===void 0)return;const mr=lr?"READ":"WRITE",fr=ReadModeInstance.getServer();fr&&typeof fr.setAllDefaultDrivesAccessLevel=="function"&&fr.setAllDefaultDrivesAccessLevel(mr).catch(logger$4.error)},[lr,rr]),useEffect(()=>{if(!rr)return;getReadDrives(ReadModeInstance).then(fr=>B(fr)).catch(logger$4.error);const mr=ReadModeInstance.onReadDrivesUpdate(fr=>{B(hr=>hr.length!==fr.length||drivesToHash(hr)!==drivesToHash(fr)?fr:hr)}).catch(logger$4.error);return()=>{mr.then(fr=>fr==null?void 0:fr()).catch(logger$4.error)}},[rr]);const dr=useMemo(()=>({...ReadModeInstance,readDrives:I}),[I]);return jsx(ReadModeContext.Provider,{...e,value:dr})},useReadModeContext=()=>useContext(ReadModeContext),SentryProvider=({children:e})=>(useInitSentry(),e);function getProcessorsFromModules(e){return e.map(t=>({packageName:t.manifest.name,processors:t.processors})).reduce((t,I)=>(I.processors&&(t=[...t,{packageName:I.packageName,processors:I.processors}]),t),[])}const externalProcessorsAtom=atom(async e=>{const t=await e(externalPackagesAtom);return getProcessorsFromModules(t)}),useExternalProcessors=()=>useAtomValue(externalProcessorsAtom);async function createProcessorManager(){const e=await atomStore.get(reactorAtom),t=new ProcessorManager(e.listeners,e);return e.on("driveAdded",async I=>{await t.registerDrive(I.header.id)}),t}const processorManagerAtom=atomWithLazy(createProcessorManager);processorManagerAtom.debugLabel="processorManagerAtomInConnect";const useProcessorManager=()=>useAtomValue(processorManagerAtom),unwrappedProcessorManager=unwrap(processorManagerAtom);unwrappedProcessorManager.debugLabel="unwrappedProcessorManagerInConnect";const useUnwrappedProcessorManager=()=>useAtomValue(unwrappedProcessorManager);atomStore.sub(reactorAtom,()=>atomStore.get(processorManagerAtom));const logger=childLogger(["reactor-analytics"]);function createPgLiteFactoryWorker(e){return async()=>{const t=(await __vitePreload(async()=>{const{default:rr}=await import("./pglite-worker.BAk0Ey85.js");return{default:rr}},[],import.meta.url)).default,{PGliteWorker:I}=await __vitePreload(async()=>{const{PGliteWorker:rr}=await import("./index.CSR1o9jA.js");return{PGliteWorker:rr}},__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),B=new t({name:"pglite-worker"});B.onmessage=rr=>{logger.verbose(rr.data)},B.onerror=rr=>{throw logger.error(rr.message),rr.error};const tr=new I(B,{meta:{databaseName:e}});return await tr.waitReady,tr}}async function registerExternalProcessors(e,t,I,B){return await e.registerFactory(I,B({analyticsStore:t}))}async function registerDiffAnalyzer(e,t){const{processorFactory:I}=await __vitePreload(async()=>{const{processorFactory:B}=await import("./index.CWo9c4bp.js");return{processorFactory:B}},__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return await e.registerFactory("@powerhousedao/diff-analyzer",I({analyticsStore:t}))}async function registerDriveAnalytics(e,t){const{processorFactory:I}=await __vitePreload(async()=>{const{processorFactory:B}=await import("./index.Boraf2w_.js");return{processorFactory:B}},__vite__mapDeps([17,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return await e.registerFactory("@powerhousedao/common/drive-analytics",I({analyticsStore:t}))}function DiffAnalyzerProcessor(){const e=useAnalyticsStoreAsync(),t=useUnwrappedProcessorManager(),I=useRef(!1);return useEffect(()=>{!e.data||!t||I.current||(I.current=!0,registerDiffAnalyzer(t,e.data).catch(logger.error))},[e.data,t]),null}function DriveAnalyticsProcessor(){const e=useAnalyticsStoreAsync(),t=useUnwrappedProcessorManager(),I=useRef(!1);return useEffect(()=>{!e.data||!t||I.current||(I.current=!0,registerDriveAnalytics(t,e.data).then(()=>{logger.verbose("Drive analytics processor registered")}).catch(logger.error))},[e.data,t]),null}function ExternalProcessors(){const e=useExternalProcessors(),t=useAnalyticsStoreAsync(),I=useUnwrappedProcessorManager(),B=useRef(!1);return useEffect(()=>{if(!t.data||!I||B.current||e.length===0)return;B.current=!0;let tr=0;for(const{packageName:rr,processors:ir}of e)registerExternalProcessors(I,t.data,`${rr}-${tr}`,ir).catch(logger.error),tr++},[t.data,I]),null}function ProcessorManagerProvider({children:e}){return jsxs(AnalyticsProvider,{options:{databaseName:connectConfig.analytics.databaseName,pgLiteFactory:connectConfig.analytics.useWorker?createPgLiteFactoryWorker(connectConfig.analytics.databaseName):void 0},children:[connectConfig.analytics.diffProcessorEnabled&&jsx(DiffAnalyzerProcessor,{}),connectConfig.analytics.driveAnalyticsEnabled&&jsx(DriveAnalyticsProcessor,{}),connectConfig.analytics.externalProcessorsEnabled&&jsx(ExternalProcessors,{}),e]})}const Home=React__default.lazy(()=>__vitePreload(()=>import("./home.rIH0yqJa.js"),__vite__mapDeps([18,4,2,1,3,5,6,7,19,20,21,8,22,23,10]),import.meta.url).then(e=>({default:e.Home}))),Content=React__default.lazy(()=>__vitePreload(()=>import("./content.kA-PYal5.js"),__vite__mapDeps([24,1,25,8,4,2,3,5,6,7,26,21,11,23,27,28,9,10,12]),import.meta.url)),Root=React__default.lazy(()=>__vitePreload(()=>import("./root.CPcpblDb.js"),__vite__mapDeps([29,25,1,11,19,20,21,4,2,3,5,6,7,8,22,23,10,28,27,9,12]),import.meta.url)),AtlasImport=React__default.lazy(()=>__vitePreload(()=>import("./atlas-import.DEWsCiBk.js"),__vite__mapDeps([30,1,28,8,4,2,3,5,6,7,11,21]),import.meta.url).then(e=>({default:e.AtlasImport}))),routerBasename=connectConfig.routerBasename.endsWith("/")?connectConfig.routerBasename.slice(0,-1):connectConfig.routerBasename;function createRouter(e){return createBrowserRouter(e,{basename:routerBasename,future:{v7_fetcherPersist:!0,v7_relativeSplatPath:!0}})}function createRoutes(){return[{element:jsx(Suspense,{name:"RouteRoot",children:jsx(Root,{})}),children:[{index:!0,element:jsx(Suspense,{name:"Home",children:jsx(Home,{})})},{path:"d?/:driveId?/*?",element:jsx(Suspense,{name:"Drive",children:jsx(Content,{})})},{path:"import/:documentId",element:jsx(Suspense,{name:"AtlasImport",children:jsx(AtlasImport,{})})}]}]}const routes=createRoutes(),router=createRouter(routes),Router=()=>jsx(RouterProvider,{router});window.__VITE_ENVS.MODE==="development"?window.documentEditorDebugTools=new DocumentEditorDebugTools:serviceWorkerManager.registerServiceWorker(!1);const PreloadRenown=()=>(useRenown(),null),PreloadProcessorManager=()=>(useProcessorManager(),null),App=()=>jsxs(Fragment,{children:[jsx(SentryProvider,{children:jsx(WagmiContext,{children:jsx(ReadModeContextProvider,{children:jsxs(ProcessorManagerProvider,{children:[jsx(ToastContainer,{position:"bottom-right",containerId:"connect"}),jsxs(UiNodesContextProvider,{children:[jsx(Router,{}),jsx(Analytics,{})]})]})})})}),jsxs(Suspense,{children:[jsx(PreloadProcessorManager,{}),jsx(PreloadRenown,{})]})]}),app=Object.freeze(Object.defineProperty({__proto__:null,default:App},Symbol.toStringTag,{value:"Module"}));export{AnalyticsPath as A,Cr as C,DateTime as D,Nr as N,R$2 as R,T,U$1 as U,useAnalyticsStoreAsync as a,useAnalyticsEngineAsync as b,AnalyticsGranularity as c,useReadModeContext as d,useSearchParams as e,ur as f,C as g,h$1 as h,cr as i,app as j,pr as p,u$1 as u,x$2 as x,z};
224
+ //# sourceMappingURL=app.32c5gHmj.js.map